commit
stringlengths
40
40
subject
stringlengths
4
1.73k
repos
stringlengths
5
127k
old_file
stringlengths
2
751
new_file
stringlengths
2
751
new_contents
stringlengths
1
8.98k
old_contents
stringlengths
0
6.59k
license
stringclasses
13 values
lang
stringclasses
23 values
63ff68b0513d1522eeea7bd0fa43b9e4eb20b6c9
Prepare v2.21.3.dev
crawln45/Flexget,ianstalk/Flexget,JorisDeRieck/Flexget,malkavi/Flexget,ianstalk/Flexget,Flexget/Flexget,JorisDeRieck/Flexget,Flexget/Flexget,malkavi/Flexget,gazpachoking/Flexget,crawln45/Flexget,malkavi/Flexget,Flexget/Flexget,gazpachoking/Flexget,ianstalk/Flexget,crawln45/Flexget,malkavi/Flexget,Flexget/Flexget,JorisD...
flexget/_version.py
flexget/_version.py
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
mit
Python
5591638de3dfce09eb46834327767d02a86703fc
update version to 0.8.5
sahlinet/fastapp,sahlinet/fastapp,sahlinet/fastapp,sahlinet/fastapp
fastapp/__init__.py
fastapp/__init__.py
__version__ = "0.8.5" import os from django.core.exceptions import ImproperlyConfigured # load plugins from django.conf import settings try: plugins_config = getattr(settings, "FASTAPP_PLUGINS_CONFIG", {}) plugins = plugins_config.keys() plugins = plugins + getattr(settings, "FASTAPP_PLUGINS", []) fo...
__version__ = "0.8.4" import os from django.core.exceptions import ImproperlyConfigured # load plugins from django.conf import settings try: plugins_config = getattr(settings, "FASTAPP_PLUGINS_CONFIG", {}) plugins = plugins_config.keys() plugins = plugins + getattr(settings, "FASTAPP_PLUGINS", []) fo...
mit
Python
6d3251ae22bf9d017da9542811fa338402018bd7
update version
fatrix/django-fastapp,fatrix/django-fastapp,fatrix/django-fastapp
fastapp/__init__.py
fastapp/__init__.py
__version__ = "0.402"
__version__ = "0.401"
mit
Python
a9cdf499d9045c991ad1959ca335828cd9927b9a
Prepare v2.0.50.dev
poulpito/Flexget,oxc/Flexget,JorisDeRieck/Flexget,dsemi/Flexget,jacobmetrick/Flexget,malkavi/Flexget,gazpachoking/Flexget,sean797/Flexget,JorisDeRieck/Flexget,poulpito/Flexget,qk4l/Flexget,LynxyssCZ/Flexget,Flexget/Flexget,JorisDeRieck/Flexget,jawilson/Flexget,LynxyssCZ/Flexget,tarzasai/Flexget,drwyrm/Flexget,Flexget/F...
flexget/_version.py
flexget/_version.py
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
mit
Python
4a8fdc97ab2b2cf34556b40c5462d21cd14dac84
Prepare v3.2.19.dev
Flexget/Flexget,Flexget/Flexget,Flexget/Flexget,Flexget/Flexget
flexget/_version.py
flexget/_version.py
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
mit
Python
7a26260e03105a79871cc93964e4e609392dc67f
Prepare v2.0.20.dev
oxc/Flexget,tobinjt/Flexget,dsemi/Flexget,LynxyssCZ/Flexget,Danfocus/Flexget,malkavi/Flexget,qk4l/Flexget,crawln45/Flexget,crawln45/Flexget,Flexget/Flexget,LynxyssCZ/Flexget,tobinjt/Flexget,drwyrm/Flexget,LynxyssCZ/Flexget,dsemi/Flexget,malkavi/Flexget,poulpito/Flexget,poulpito/Flexget,malkavi/Flexget,jawilson/Flexget,...
flexget/_version.py
flexget/_version.py
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
mit
Python
9199348a62a06b4576e38013a0ae270b1bc9e18a
Check whether two conflicting PageAdmin versions are selected.
matthiask/django-content-editor,hgrimelid/feincms,nickburlett/feincms,mjl/feincms,pjdelport/feincms,michaelkuty/feincms,feincms/feincms,nickburlett/feincms,joshuajonah/feincms,pjdelport/feincms,joshuajonah/feincms,mjl/feincms,hgrimelid/feincms,hgrimelid/feincms,joshuajonah/feincms,michaelkuty/feincms,michaelkuty/feincm...
feincms/settings.py
feincms/settings.py
# ------------------------------------------------------------------------ # coding=utf-8 # $Id$ # ------------------------------------------------------------------------ import django from django.conf import settings from django.core.exceptions import ImproperlyConfigured from os.path import join # Whether Django 1...
# ------------------------------------------------------------------------ # coding=utf-8 # $Id$ # ------------------------------------------------------------------------ import django from django.conf import settings from django.core.exceptions import ImproperlyConfigured from os.path import join # Whether Django 1...
bsd-3-clause
Python
9ecb60e401735e66c3160443242ca91e2f96c8eb
make super compatible with py2
mehdidc/fluentopt,mehdidc/fluentopt
fluentopt/random.py
fluentopt/random.py
""" This module contains the RandomSearch class, which is class that just samples randomly the next input to evaluate, without using a surrogate. """ from .base import Optimizer from .base import OptimizerWithHistory from .utils import check_random_state from .utils import check_sampler __all__ = [ "RandomSearch" ...
""" This module contains the RandomSearch class, which is class that just samples randomly the next input to evaluate, without using a surrogate. """ from .base import Optimizer from .base import OptimizerWithHistory from .utils import check_random_state from .utils import check_sampler __all__ = [ "RandomSearch" ...
bsd-3-clause
Python
b9d12c93efcf42e6b9e8b439ea14c20e721d1cc4
disable tests to fix build. (#19697)
LLNL/spack,LLNL/spack,iulian787/spack,iulian787/spack,LLNL/spack,LLNL/spack,LLNL/spack,iulian787/spack,iulian787/spack,iulian787/spack
var/spack/repos/builtin/packages/cppzmq/package.py
var/spack/repos/builtin/packages/cppzmq/package.py
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Cppzmq(CMakePackage): """C++ binding for 0MQ""" homepage = "http://www.zeromq.org" ...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Cppzmq(CMakePackage): """C++ binding for 0MQ""" homepage = "http://www.zeromq.org" ...
lgpl-2.1
Python
2553afac259f969a73aecda90cc88fe00a4d6c9f
Add latest version of libxpm (#4012)
lgarren/spack,LLNL/spack,LLNL/spack,mfherbst/spack,krafczyk/spack,EmreAtes/spack,matthiasdiener/spack,matthiasdiener/spack,matthiasdiener/spack,skosukhin/spack,LLNL/spack,krafczyk/spack,LLNL/spack,lgarren/spack,skosukhin/spack,LLNL/spack,skosukhin/spack,EmreAtes/spack,EmreAtes/spack,iulian787/spack,tmerrick1/spack,iuli...
var/spack/repos/builtin/packages/libxpm/package.py
var/spack/repos/builtin/packages/libxpm/package.py
############################################################################## # Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
############################################################################## # Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
lgpl-2.1
Python
331c879d132f6b631d40de97f9ee43b1c9831ec1
Remove double escaping
fxkr/free-oids,fxkr/free-oids,fxkr/free-oids
freeoids/backend.py
freeoids/backend.py
import datetime import io import flask import csv import flask from freeoids import util class BackendError(Exception): pass def assign_oid(comment="", prefix_str=None, path=None): prefix_str = prefix_str or flask.current_app.config['ASSIGNMENT_PREFIX'] path = path or flask.current_app.config['ASSIGNM...
import datetime import io import flask import csv import flask from freeoids import util class BackendError(Exception): pass def assign_oid(comment="", prefix_str=None, path=None): prefix_str = prefix_str or flask.current_app.config['ASSIGNMENT_PREFIX'] path = path or flask.current_app.config['ASSIGNM...
mit
Python
ab4e61d18bf1f367db46fb8acc0d02d5ff539a78
Add 'supervisor-config' command
frigg/frigg-worker
frigg/worker/cli.py
frigg/worker/cli.py
# -*- coding: utf8 -*- import getpass import os import logging.config from fabric import colors from .fetcher import fetcher from .config import sentry logger = logging.getLogger(__name__) SUPERVISOR_TEMPLATE = '''[program:frigg-worker] directory=%(path)s command=%(worker_path)s start autostart=true autorestart=tr...
# -*- coding: utf8 -*- import os import logging.config from fabric import colors from .fetcher import fetcher from .config import sentry logger = logging.getLogger(__name__) class Commands(object): @staticmethod def start(): print(colors.green("Starting frigg worker")) fetcher() @stat...
mit
Python
dadc3d6ebe1067b12df326273fcc7a12039855e5
fix OSX typo and other tweaks
SujaySKumar/bedrock,ericawright/bedrock,glogiotatidis/bedrock,gerv/bedrock,jacshfr/mozilla-bedrock,kyoshino/bedrock,mmmavis/bedrock,hoosteeno/bedrock,davehunt/bedrock,kyoshino/bedrock,mmmavis/lightbeam-bedrock-website,andreadelrio/bedrock,craigcook/bedrock,petabyte/bedrock,flodolo/bedrock,sylvestre/bedrock,analytics-pr...
apps/firefox/urls.py
apps/firefox/urls.py
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize.html'), page('firefox/feat...
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize.html'), page('firefox/feat...
mpl-2.0
Python
fea8b1ab1d4d1e281ea985f3c0ba2d5cfdf3bc32
Add date_joined field to user admin
ImaginationForPeople/imaginationforpeople,ImaginationForPeople/imaginationforpeople,ImaginationForPeople/imaginationforpeople,ImaginationForPeople/imaginationforpeople,ImaginationForPeople/imaginationforpeople,ImaginationForPeople/imaginationforpeople
apps/member/admin.py
apps/member/admin.py
#-- encoding: utf-8 -- # # This file is part of I4P. # # I4P is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # I4P is distributed in ...
#-- encoding: utf-8 -- # # This file is part of I4P. # # I4P is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # I4P is distributed in ...
agpl-3.0
Python
c69d99ff9c102926d94d8bd2d55c5de40f5e2072
Remove parameters that are not supported
grunskis/nuimo-hub-backend,grunskis/senic-hub,grunskis/senic-hub,getsenic/senic-hub,grunskis/senic-hub,grunskis/senic-hub,grunskis/nuimo-hub-backend,grunskis/nuimo-hub-backend,grunskis/senic-hub,getsenic/senic-hub,grunskis/nuimo-hub-backend,grunskis/senic-hub,grunskis/nuimo-hub-backend
application/senic/nuimo_hub/subprocess_run.py
application/senic/nuimo_hub/subprocess_run.py
"""Provides `subprocess.run()` from Python 3.5+ if available. Otherwise falls back to `subprocess.check_output()`.""" try: from subprocess import run except ImportError: from collections import namedtuple from subprocess import check_output def run(args, *, stdin=None, input=None, stdout=None, stderr=N...
"""Provides `subprocess.run()` from Python 3.5+ if available. Otherwise falls back to `subprocess.check_output()`.""" try: from subprocess import run except ImportError: from collections import namedtuple from subprocess import check_output def run(args, *, stdin=None, input=None, stdout=None, stderr=N...
mit
Python
44c2588255cbe873dc09c5163301c11b0fd54234
Update with more plausible Celery statements
bbulkow/MagnusFlora,bbulkow/MagnusFlora,bbulkow/MagnusFlora,bbulkow/MagnusFlora
flask/sound_task.py
flask/sound_task.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # """ The sound task will accept Celery messages as a Celery task It will manage playing files in the background It will have configuration options to do the following: - just output to a file some debug print logs - Use PyAudio, the most common python audio system that...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # """ This will Uses a background timer to read from a file to update a shared datastructure Because it's going to be used as a simulator Made available under the MIT license as follows: Copyright 2017 Brian Bulkowski brian@bulkowski.org Permission is hereby granted, ...
mit
Python
29c885db0654c7b4be17e4d516f81caa898bc3fd
Insert userdata from loacconfig
njall/Orctrix,njall/Orctrix,njall/Orctrix
flaskapp/mainapp.py
flaskapp/mainapp.py
from flask import Flask, render_template import yaml import orcid app = Flask(__name__) @app.route('/') def index(): with open("config.yml", 'r') as ymlfile: cfg = yaml.load(ymlfile) name = cfg['user']['name'] affiliation = cfg['user']['affiliation'] gravatarhash = cfg['user']['gravatarhash...
from flask import Flask, render_template import yaml import orcid app = Flask(__name__) @app.route('/') def index(): with open("config.yml", 'r') as ymlfile: cfg = yaml.load(ymlfile) name = cfg['user']['name'] affiliation = cfg['user']['affiliation'] gravatarhash = cfg['user']['gravatarhash...
mit
Python
802072aea749bc6c00726a093a9c422db28f7f91
Bump version to 0.18.3
racker/fleece,racker/fleece
fleece/__about__.py
fleece/__about__.py
"""Fleece package attributes and metadata.""" __all__ = ( '__title__', '__summary__', '__author__', '__email__', '__license__', '__version__', '__copyright__', '__url__', ) __title__ = 'fleece' __summary__ = 'Wrap the lamb...da' __author__ = 'Rackers' __email__ = 'bruce.stringer@racksp...
"""Fleece package attributes and metadata.""" __all__ = ( '__title__', '__summary__', '__author__', '__email__', '__license__', '__version__', '__copyright__', '__url__', ) __title__ = 'fleece' __summary__ = 'Wrap the lamb...da' __author__ = 'Rackers' __email__ = 'bruce.stringer@racksp...
apache-2.0
Python
cf43b310a62158296c1e93a69f3401abdc25035e
Prepare v1.2.508.dev
LynxyssCZ/Flexget,tobinjt/Flexget,JorisDeRieck/Flexget,ianstalk/Flexget,drwyrm/Flexget,qk4l/Flexget,OmgOhnoes/Flexget,gazpachoking/Flexget,crawln45/Flexget,malkavi/Flexget,qk4l/Flexget,JorisDeRieck/Flexget,Flexget/Flexget,LynxyssCZ/Flexget,tarzasai/Flexget,oxc/Flexget,crawln45/Flexget,tobinjt/Flexget,sean797/Flexget,ma...
flexget/_version.py
flexget/_version.py
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
mit
Python
a8b98c73d4a86952551bb4062b043c56ccf99709
Prepare v2.3.45.dev
jacobmetrick/Flexget,Flexget/Flexget,JorisDeRieck/Flexget,poulpito/Flexget,LynxyssCZ/Flexget,tobinjt/Flexget,malkavi/Flexget,OmgOhnoes/Flexget,drwyrm/Flexget,jawilson/Flexget,ianstalk/Flexget,sean797/Flexget,drwyrm/Flexget,crawln45/Flexget,Danfocus/Flexget,jacobmetrick/Flexget,LynxyssCZ/Flexget,malkavi/Flexget,qk4l/Fle...
flexget/_version.py
flexget/_version.py
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
mit
Python
99e6a1a6459b569e24de77b9cad0c105e460d269
Prepare v1.2.271.dev
xfouloux/Flexget,ratoaq2/Flexget,ratoaq2/Flexget,sean797/Flexget,malkavi/Flexget,v17al/Flexget,ibrahimkarahan/Flexget,ZefQ/Flexget,thalamus/Flexget,tarzasai/Flexget,jacobmetrick/Flexget,Pretagonist/Flexget,drwyrm/Flexget,spencerjanssen/Flexget,sean797/Flexget,v17al/Flexget,offbyone/Flexget,OmgOhnoes/Flexget,jawilson/Fl...
flexget/_version.py
flexget/_version.py
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
mit
Python
79c5445e20a1f0e6be10b0212deb3eabc0b76d87
Fix version number.
Flexget/Flexget,OmgOhnoes/Flexget,tobinjt/Flexget,sean797/Flexget,jawilson/Flexget,oxc/Flexget,sean797/Flexget,LynxyssCZ/Flexget,oxc/Flexget,Pretagonist/Flexget,tobinjt/Flexget,tobinjt/Flexget,crawln45/Flexget,tarzasai/Flexget,drwyrm/Flexget,cvium/Flexget,gazpachoking/Flexget,dsemi/Flexget,tarzasai/Flexget,dsemi/Flexge...
flexget/_version.py
flexget/_version.py
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
""" Current FlexGet version. This is contained in a separate file so that it can be easily read by setup.py, and easily edited and committed by release scripts in continuous integration. Should (almost) never be set manually. The version should always be set to the <next release version>.dev The jenkins release job wi...
mit
Python
73ceec5cd886a1b4f3f74280cee8e2e8162cc71b
Make sure the same unique id is returned on repeated calls.
deepmind/acme,deepmind/acme
acme/utils/paths.py
acme/utils/paths.py
# Copyright 2018 DeepMind Technologies Limited. 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 by ...
# Copyright 2018 DeepMind Technologies Limited. 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 by ...
apache-2.0
Python
3307de96b08e74b3605a167c930ccf83e93ca2b9
Allow data storage
jaybosamiya/fuzzing-numpy,jaybosamiya/fuzzing-numpy,jaybosamiya/fuzzing-numpy
fuzzer/generator.py
fuzzer/generator.py
import random import numpy as np import pickle exclude = ['lookfor','memmap','fromregex', 'fromfile', 'chararray', 'show_config'] callables = [a for a in dir(np) if a not in exclude and callable(getattr(np,a))] data_possibilities = [ '"A"', '("A"*0x100)', '("A"*0x1000)', '...
import random import numpy as np exclude = ['lookfor','memmap','fromregex', 'fromfile', 'chararray', 'show_config'] callables = [a for a in dir(np) if a not in exclude and callable(getattr(np,a))] data_possibilities = [ '"A"', '("A"*0x100)', '("A"*0x1000)', '0', '1', '-1',...
apache-2.0
Python
53e9f4b8daf2fe5739d7bee391e8c10f17cc31c1
Update main.py
Python-IoT/Smart-IoT-Planting-System,Python-IoT/Smart-IoT-Planting-System
gateway/src/main.py
gateway/src/main.py
#!/usr/bin/env python #Communicate with end devices via LoRa. #Communicate with server via MQTT(hbmqtt) and HTTP POST. #Save data in the sqlite database. #Parse JSON from MQTT and LoRa protocol. #Communication module: LoRa. #Communication method with device via LoRa. #Uart port drive LoRa module. #Parse JSON between d...
#!/usr/bin/env python #Communicate with end devices via LoRa. #Communicate with server via MQTT(hbmqtt) and HTTP POST. #Save data in the sqlite database. #Parse JSON from MQTT and LoRa protocol. #Communication module: LoRa. #Communication method with device via LoRa. #Uart port drive LoRa module. #Parse JSON between d...
mit
Python
1d26746bc96372ce8b92fd41ea9d5d6d4b5e9080
Add approved sets for Montana State
zamattiac/SHARE,aaxelb/SHARE,aaxelb/SHARE,laurenbarker/SHARE,CenterForOpenScience/SHARE,CenterForOpenScience/SHARE,laurenbarker/SHARE,aaxelb/SHARE,zamattiac/SHARE,CenterForOpenScience/SHARE,laurenbarker/SHARE,zamattiac/SHARE
providers/edu/scholarworks_montana/apps.py
providers/edu/scholarworks_montana/apps.py
from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.edu.scholarworks_montana' version = '0.0.1' title = 'scholarworks_montana' long_title = 'Montana State University' home_page = 'http://scholarworks.montana.edu' url = 'http://scholarworks.m...
from share.provider import OAIProviderAppConfig class AppConfig(OAIProviderAppConfig): name = 'providers.edu.scholarworks_montana' version = '0.0.1' title = 'scholarworks_montana' long_title = 'Montana State University' home_page = 'http://scholarworks.montana.edu' url = 'http://scholarworks.m...
apache-2.0
Python
0ba77587311ad2801bcf34ba837d66750edcebe9
Fix mnist regression bug
d4nst/RotNet
train/train_mnist_regression.py
train/train_mnist_regression.py
from __future__ import print_function import os import sys from keras.callbacks import ModelCheckpoint, EarlyStopping, TensorBoard from keras.datasets import mnist from keras.layers import Dense, Dropout, Flatten, Input from keras.layers import Conv2D, MaxPooling2D from keras.models import Model sys.path.append(os.p...
from __future__ import print_function import os import sys from keras.callbacks import ModelCheckpoint, EarlyStopping, TensorBoard from keras.datasets import mnist from keras.layers import Dense, Dropout, Flatten, Input from keras.layers import Conv2D, MaxPooling2D from keras.models import Model sys.path.append(os.p...
mit
Python
1fe1fc1301ca9aa60d7512db3e419d7e04ee9998
Change > to >= for all arrays
bowen0701/algorithms_data_structures
alg_find_peak_1D.py
alg_find_peak_1D.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function def find_peak_naive(arr): """Find peak by naive iteration. Time complexity: O(n). """ for i in range(len(arr)): if i == 0: if arr[i] >= arr[i + 1]: return a...
from __future__ import absolute_import from __future__ import division from __future__ import print_function def find_peak_naive(arr): """Find peak by naive iteration. Time complexity: O(n). """ for i in range(len(arr)): if i == 0: if arr[i] > arr[i + 1]: return ar...
bsd-2-clause
Python
e84826d8a6fbe437968fad281a1967e4f6fba943
bump version number to v0.6.0
allenai/allennlp,allenai/allennlp,allenai/allennlp,allenai/allennlp
allennlp/version.py
allennlp/version.py
_MAJOR = "0" _MINOR = "6" _REVISION = "0" VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR) VERSION = "{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION)
_MAJOR = "0" _MINOR = "5" _REVISION = "2-unreleased" VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR) VERSION = "{0}.{1}.{2}".format(_MAJOR, _MINOR, _REVISION)
apache-2.0
Python
9108b241d24a25b506ce5f7da14a7e1ad0ccc040
use train data
kozistr/Awesome-GANs
awesome_gans/data.py
awesome_gans/data.py
import tensorflow as tf import tensorflow_datasets as tfds class TFDatasets: """tensorflow_datasets package This opensource dataset contains lots of public datasets & loader. - CelebA - CelebA-HQ - DIV2K - MNIST - E-MNIST - Fashion-MNIST - CIFAR10 - CIFAR100 - lots...
import tensorflow as tf import tensorflow_datasets as tfds class TFDatasets: """tensorflow_datasets package This opensource dataset contains lots of public datasets & loader. - CelebA - CelebA-HQ - DIV2K - MNIST - E-MNIST - Fashion-MNIST - CIFAR10 - CIFAR100 - lots...
mit
Python
adda9aa4a3171a17b14dfa97f4a053616abe84f2
Add function to clean symbols
davidmogar/genderator
genderator/utils.py
genderator/utils.py
import unicodedata from unidecode import unidecode class Normalizer: def normalize(text): """ Normalize a given text applying all normalizations. Params: text: The text to be processed. Returns: The text normalized. """ text = Normalizer.rem...
import unicodedata class Normalizer: def normalize(text): """ Normalize a given text applying all normalizations. Params: text: The text to be processed. Returns: The text normalized. """ text = Normalizer.remove_extra_whitespaces(text) ...
mit
Python
48617e7230d99e292fde6c96e56277510e61afc7
Edit code for reference json generation
michiexile/sou-hack-word2vec,michiexile/sou-hack-word2vec,michiexile/sou-hack-word2vec
SOUrefs.py
SOUrefs.py
# studies citation lag frequencies: seems to be a powerlaw, stabilizes to an exponent # of ~60 after a few decades. __author__ = 'mik' import re import glob from collections import defaultdict import numpy as np import scipy as sp SOUre = re.compile("SOU\s*(\d+)\s*:\s*(\d+)") references = defaultdict(set) for file...
# studies citation lag frequencies: seems to be a powerlaw, stabilizes to an exponent # of ~60 after a few decades. __author__ = 'mik' import re import glob from collections import defaultdict import numpy as np import scipy as sp SOUre = re.compile("SOU\s*(\d+)\s*:\s*(\d+)") references = defaultdict(set) for file...
cc0-1.0
Python
3e9386e09469c8f787f1f4efb070919b5fb961b3
Remove unnecessary comment
gwhigs/digital-manifesto,gwhigs/digital-manifesto,gwhigs/digital-manifesto,gwhigs/digital-manifesto
annotations/urls.py
annotations/urls.py
from __future__ import absolute_import, unicode_literals from django.conf.urls import url, include from . import views, api_urls urlpatterns = [ url(r'^api/', include(api_urls, namespace='api')) ]
from __future__ import absolute_import, unicode_literals from django.conf.urls import url, include from . import views, api_urls urlpatterns = [ # url(r'^$', ManifestoListView.as_view(), name='index'), url(r'^api/', include(api_urls, namespace='api')) ]
mit
Python
98553d053f1be5647b376f8628f2235efe193494
Fix typo
funkybob/antfarm
antfarm/__init__.py
antfarm/__init__.py
from base import App from http import Response
from baes import App
mit
Python
7894b066cde13eca75479921531e9d005970e9c3
Add basic PDF view for billing
praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go
go/billing/views.py
go/billing/views.py
import os from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.shortcuts import get_object_or_404 from django.template import RequestContext, loader from xhtml2pdf import pisa from go.billing.models import Statement @login_requi...
# Create your views here.
bsd-3-clause
Python
a3b6aa273900c9d9c98a6ad9c9735a323086c64f
Fix clipboard URLs to not be greedy
MagicSolutions/django-user-clipboard,IndustriaTech/django-user-clipboard,MagicSolutions/django-user-clipboard,IndustriaTech/django-user-clipboard
user_clipboard/urls.py
user_clipboard/urls.py
from django.conf.urls import url from .views import ClipboardFileAPIView, ClipboardImageAPIView urlpatterns = [ url(r'^images/(?P<pk>\d+)/$', ClipboardImageAPIView.as_view(), name="clipboard_images"), url(r'^images/$', ClipboardImageAPIView.as_view(), name="clipboard_images"), url(r'^(?P<pk>\d+)$', Clipbo...
from django.conf.urls import url from .views import ClipboardFileAPIView, ClipboardImageAPIView urlpatterns = [ url(r'^images/(?P<pk>\d+)/$', ClipboardImageAPIView.as_view(), name="clipboard_images"), url(r'^images/$', ClipboardImageAPIView.as_view(), name="clipboard_images"), url(r'^(?P<pk>\d+)$', Clipbo...
mit
Python
de991fd4e1dc7131c6f02afd5dae3b785378e7b5
fix arch dependencies for non-x86 arches
fedora-conary/conary,fedora-conary/conary,fedora-conary/conary,fedora-conary/conary,fedora-conary/conary
deps/arch.py
deps/arch.py
# # Copyright (c) 2004-2005 Specifix, Inc. # # This program is distributed under the terms of the Common Public License, # version 1.0. A copy of this license should have been distributed with this # source file in a file called LICENSE. If it is not present, the license # is always available at http://www.opensource.o...
# # Copyright (c) 2004-2005 Specifix, Inc. # # This program is distributed under the terms of the Common Public License, # version 1.0. A copy of this license should have been distributed with this # source file in a file called LICENSE. If it is not present, the license # is always available at http://www.opensource.o...
apache-2.0
Python
5e4888e16ba85f4f0529a0fe79ef3acc4fe6135b
Update swagger documentation title.
kimond/gobgift,kimond/gobgift,kimond/gobgift,kimond/gobgift
gobgift/api/urls.py
gobgift/api/urls.py
from django.conf.urls import url, include from rest_framework import routers from rest_framework_swagger.views import get_swagger_view from gobgift.api.views import (WishlistViewSet, GiftViewSet, ListGroupViewSet, CommentViewSet, ListGroupUserViewSet, ListG...
from django.conf.urls import url, include from rest_framework import routers from rest_framework_swagger.views import get_swagger_view from gobgift.api.views import (WishlistViewSet, GiftViewSet, ListGroupViewSet, CommentViewSet, ListGroupUserViewSet, ListG...
mpl-2.0
Python
1f0823ccafee87d7153e72bbb3ab2425d236b9df
Remove redundant loop
alphagov/backdrop,alphagov/backdrop,alphagov/backdrop
backdrop/read/api.py
backdrop/read/api.py
import datetime import json from os import getenv from dateutil import parser from flask import Flask, jsonify, request import pytz from .validation import validate_request_args from ..core import storage app = Flask(__name__) # Configuration app.config.from_object( "backdrop.read.config.%s" % getenv("GOVUK_EN...
import datetime import json from os import getenv from dateutil import parser from flask import Flask, jsonify, request import pytz from .validation import validate_request_args from ..core import storage app = Flask(__name__) # Configuration app.config.from_object( "backdrop.read.config.%s" % getenv("GOVUK_EN...
mit
Python
3c1f7139a6b9899c61cd2743932e505446b717bb
Remove unuseful comments
Alignak-monitoring-contrib/alignak-backend,Alignak-monitoring-contrib/alignak-backend,Alignak-monitoring-contrib/alignak-backend,Alignak-monitoring-contrib/alignak-backend
alignak_backend/main.py
alignak_backend/main.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Main """ from alignak_backend.app import app def main(): """ Main function """ app.run() if __name__ == "__main__": # pragma: no cover main()
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Main """ from alignak_backend.app import app def main(): """ Main function """ # Process command line parameters # appli.process_args() app.run() if __name__ == "__main__": # pragma: no cover main()
agpl-3.0
Python
bf2caf6a0b7e8581fc4a6b6aa7bdf52a84f48e5a
Fix Client unit test
tellapart/taba
test/client_test.py
test/client_test.py
# Copyright 2014 TellApart, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
# Copyright 2014 TellApart, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
apache-2.0
Python
9896376d400fdc423dcb561667e7227b7ae74793
Refactor view
nerevu/prometheus-api,nerevu/prometheus-api,nerevu/prometheus-api
app/apollo/views.py
app/apollo/views.py
# from __future__ import print_function import numpy as np import pandas as pd import app.apollo as ap from pprint import pprint from flask import Blueprint, render_template, url_for from app import db from app.connection import Connection from app.helper import portify apollo = Blueprint('apollo', __name__) @apol...
# from __future__ import print_function import numpy as np import pandas as pd import app.apollo as ap from pprint import pprint from flask import Blueprint, render_template, url_for from app import db from app.connection import Connection from app.helper import portify apollo = Blueprint('apollo', __name__) @apol...
mit
Python
42cc8b52357e651c2c2f9d7ecb5339a6a180fe56
Change ECDSA to sign and verify correctly
mpdavis/python-jose
jose/algorithms/EC.py
jose/algorithms/EC.py
import hashlib import ecdsa from .base import Algorithm from six import string_types, text_type class ECAlgorithm(Algorithm): """ Performs signing and verification operations using ECDSA and the specified hash function This class requires the ecdsa package to be installed. This is based off o...
import hashlib import ecdsa from .base import Algorithm from six import string_types, text_type class ECAlgorithm(Algorithm): """ Performs signing and verification operations using ECDSA and the specified hash function This class requires the ecdsa package to be installed. This is based off o...
mit
Python
e10a6e721458b14d71741c10bc799e132ca4a791
remove wallpost metric module
onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle
dashboard.py
dashboard.py
from fluent_dashboard.dashboard import FluentIndexDashboard from bluebottle.bb_tasks.dashboard import RecentTasks from bluebottle.projects.dashboard import SubmittedPlans, EndedProjects, StartedCampaigns class CustomIndexDashboard(FluentIndexDashboard): """ Custom Dashboard for Bluebottle. """ column...
from admin_tools.dashboard.models import DashboardModule from django.utils.translation import ugettext_lazy as _ from fluent_dashboard.dashboard import FluentIndexDashboard from bluebottle.bb_tasks.dashboard import RecentTasks from bluebottle.projects.dashboard import SubmittedPlans, EndedProjects, StartedCampaigns ...
bsd-3-clause
Python
7770efd37e66932270e07865673ecd5384993799
FIX manifes of geo_project module
eicher31/compassion-modules,eicher31/compassion-modules,CompassionCH/compassion-modules,eicher31/compassion-modules,ecino/compassion-modules,maxime-beck/compassion-modules,ecino/compassion-modules,ecino/compassion-modules,maxime-beck/compassion-modules,eicher31/compassion-modules,maxime-beck/compassion-modules,ecino/co...
geo_project_compassion/__manifest__.py
geo_project_compassion/__manifest__.py
# -*- coding: utf-8 -*- ############################################################################## # # ______ Releasing children from poverty _ # / ____/___ ____ ___ ____ ____ ___________(_)___ ____ # / / / __ \/ __ `__ \/ __ \/ __ `/ ___/ ___/ / __ \/ __ \ # / /___/ /_/ / / / / / / /_/...
# -*- coding: utf-8 -*- ############################################################################## # # ______ Releasing children from poverty _ # / ____/___ ____ ___ ____ ____ ___________(_)___ ____ # / / / __ \/ __ `__ \/ __ \/ __ `/ ___/ ___/ / __ \/ __ \ # / /___/ /_/ / / / / / / /_/...
agpl-3.0
Python
6bcf52c02cfc88d4a2a0faff48ae474e9c3ffc63
solve mimic
haozai309/hello_python
google-python-exercises/basic/mimic.py
google-python-exercises/basic/mimic.py
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Mimic pyquick exercise -- optional extra exercise. Google's Python Class Read in the ...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Mimic pyquick exercise -- optional extra exercise. Google's Python Class Read in the ...
apache-2.0
Python
2f1019eb8f15183541dac3fe3e6deba2f566ae87
Use of floor division instead of regular division.
kaspermarstal/SimpleElastix,InsightSoftwareConsortium/SimpleITK,SimpleITK/SimpleITK,kaspermarstal/SimpleElastix,SimpleITK/SimpleITK,richardbeare/SimpleITK,blowekamp/SimpleITK,SimpleITK/SimpleITK,richardbeare/SimpleITK,richardbeare/SimpleITK,richardbeare/SimpleITK,richardbeare/SimpleITK,richardbeare/SimpleITK,kaspermars...
Examples/DemonsRegistration1/DemonsRegistration1.py
Examples/DemonsRegistration1/DemonsRegistration1.py
#!/usr/bin/env python #========================================================================= # # Copyright Insight Software Consortium # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at ...
#!/usr/bin/env python #========================================================================= # # Copyright Insight Software Consortium # # 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 ...
apache-2.0
Python
7ff7fdc0d930518b0692245625ed2449786e389b
update database env variable for heroku
GerryPy/GerryPy,GerryPy/GerryPy
gerrypy/__init__.py
gerrypy/__init__.py
import os from pyramid.config import Configurator def main(global_config, **settings): """ This function returns a Pyramid WSGI application. """ settings = {'sqlalchemy.url': os.environ["DATABASE_URL"]} config = Configurator(settings=settings) config.include('pyramid_jinja2') config.include('....
import os from pyramid.config import Configurator def main(global_config, **settings): """ This function returns a Pyramid WSGI application. """ settings = {'sqlalchemy.url': os.environ["SQL_URL"]} config = Configurator(settings=settings) config.include('pyramid_jinja2') config.include('.model...
mit
Python
50a8cc4003682963123d2bbb302d006af71a53dd
Remove urllib2 usage from steam util
Turupawn/website,lutris/website,lutris/website,Turupawn/website,lutris/website,Turupawn/website,Turupawn/website,lutris/website
games/util/steam.py
games/util/steam.py
import logging import requests from django.template.defaultfilters import slugify from django.conf import settings LOGGER = logging.getLogger(__name__) STEAM_API_URL = "http://api.steampowered.com/" def get_capsule(steamid): steam_cdn = "http://cdn2.steampowered.com" capsule_url = steam_cdn + "/v/gfx/apps/%d...
import logging import urllib2 import requests from django.template.defaultfilters import slugify from django.conf import settings LOGGER = logging.getLogger(__name__) STEAM_API_URL = "http://api.steampowered.com/" def get_capsule(steamid): steam_cdn = "http://cdn2.steampowered.com" capsule_url = steam_cdn + ...
agpl-3.0
Python
03de2aa55d3faf8dd66c3dea596daa06be7eb267
Fix name of action in pull_image to PullImageAction
StackStorm/st2contrib,lmEshoo/st2contrib,StackStorm/st2contrib,StackStorm/st2contrib,armab/st2contrib,tonybaloney/st2contrib,pearsontechnology/st2contrib,pidah/st2contrib,pidah/st2contrib,lmEshoo/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,pearsontechnology/st2contrib,armab/st2contrib,pinterb/st2cont...
packs/docker/actions/pull_image.py
packs/docker/actions/pull_image.py
from lib.base import DockerBasePythonAction __all__ = [ 'DockerPullImageAction' ] class DockerPullImageAction(DockerBasePythonAction): def run(self, repo, tag=None, insecure_registry=False, auth_username_override=None, auth_password_override=None): auth_override = (auth_username_override...
from lib.base import DockerBasePythonAction __all__ = [ 'DockerPushImageAction' ] class DockerPushImageAction(DockerBasePythonAction): def run(self, repo, tag=None, insecure_registry=False, auth_username_override=None, auth_password_override=None): auth_override = (auth_username_override...
apache-2.0
Python
9a1a05c33258461c5d474b014654464892cd7b90
Remove mention of bake.cfg file
AlexSzatmary/bake
bake/bakedefaults.py
bake/bakedefaults.py
#!/usr/bin/env python LABEL_KEY = 'label' KEY_START = '@' KEY_END = '@'
#!/usr/bin/env python LABEL_KEY = 'label' KEY_START = '@' KEY_END = '@' CFGFILE = 'bake.cfg'
mit
Python
8a8d5a3c75a07e9ec780af2bab3f6f653de69b86
Add check for addr:street, addr:housenumber for buildings: apartments, residential
n0s0r0g/perfect_OSM
handlers/checkers/building/building.py
handlers/checkers/building/building.py
from handlers.simplehandler import SimpleHandler _NODE_BUILDING = { 'title': 'Здание указано точкой', 'help_text': """ """, } _NO_ADDR = { 'title': 'Здание без адреса', 'help_text':"""Для здания не указан адрес.""", } _ADDR_BUILDING_TYPES = {'apartments', 'residential',} class BuildingChecker(Simpl...
from handlers.simplehandler import SimpleHandler _NODE_BUILDING = { 'title': 'Здание указано точкой', 'help_text': """ """, } class BuildingChecker(SimpleHandler): def __init__(self): self._building_on_node = [] def process(self, obj): if 'building' in obj and obj['@type'] == 'node':...
mit
Python
6f0b5a2ae8a7dfe218e37af8fdff118224de8faf
test procfile
bmdarshan/eesha
get_company_info.py
get_company_info.py
from flask import jsonify from pymongo import MongoClient from flask_restful import Resource class GetCompanyInfo(Resource): def get(self): companyProfile = db.company_profile.find({}); return jsonify({'result' : {"name": companyProfile[0]['name'], "address": companyProfile[0]['address']} })
from flask import jsonify from pymongo import MongoClient from flask_restful import Resource client = MongoClient("mongodb://heroku_jdf17hjj:s77scqp3e4kvhgub6su4g5bu12@ds251002.mlab.com:51002/heroku_jdf17hjj") db = client.heroku_jdf17hjj class GetCompanyInfo(Resource): def get(self): companyProfile = db.company...
mit
Python
c859416d2d35aab83fc9e8f400e00f8f07c0b8a9
Change test file to support different parsers
earwig/bitshift,earwig/bitshift,earwig/bitshift,earwig/bitshift,earwig/bitshift,earwig/bitshift
test/parser_test.py
test/parser_test.py
import socket, sys file_name = 'resources/<name>.c' server_socket_number = 5001 if __name__ == '__main__': if len(sys.argv) == 1: print "Please input a parser to test." elif len(sys.argv) > 2: print "Too many arguments." else: if sys.argv[1] == 'c': pass elif...
import socket client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client_socket.connect(("localhost", 5002)) with open("resources/Matrix.java", "r") as java_file: source = java_file.read() + "\nEOS_BITSHIFT" client_socket.send("%d\n%s" % (len(source), source)); data = '' while True: data = ...
mit
Python
28fc4ac143a466eac810f99796c0e98bb57987bf
improve message used on regressions
terceiro/squad,terceiro/squad,terceiro/squad,terceiro/squad
test/performance.py
test/performance.py
from contextlib import contextmanager import json import os import re import sys from django.conf import settings from django.db import connection, reset_queries count = {} @contextmanager def count_queries(k): q = 0 debug = settings.DEBUG try: settings.DEBUG = True reset_queries() ...
from contextlib import contextmanager import json import os import re import sys from django.conf import settings from django.db import connection, reset_queries count = {} @contextmanager def count_queries(k): q = 0 debug = settings.DEBUG try: settings.DEBUG = True reset_queries() ...
agpl-3.0
Python
d167f058ab2d267ed89ea599d1579db16b1ebd3e
improve government app admin
openkamer/openkamer,openkamer/openkamer,openkamer/openkamer,openkamer/openkamer
government/admin.py
government/admin.py
from django.contrib import admin from government.models import Government from government.models import GovernmentMember from government.models import GovernmentPosition from government.models import Ministry class GovernmentAdmin(admin.ModelAdmin): list_display = ( 'id', 'name', 'wikidat...
from django.contrib import admin from government.models import Government from government.models import GovernmentMember from government.models import GovernmentPosition from government.models import Ministry class GovernmentAdmin(admin.ModelAdmin): list_display = ( 'id', 'name', 'wikidat...
mit
Python
0326c16c11ddea21ba3c8fc4cb73eca93566c706
Fix error reporting in @stack_delete_after unit tests
cryptickp/heat,gonzolino/heat,srznew/heat,noironetworks/heat,jasondunsmore/heat,varunarya10/heat,pshchelo/heat,steveb/heat,redhat-openstack/heat,steveb/heat,citrix-openstack-build/heat,cryptickp/heat,miguelgrinberg/heat,maestro-hybrid-cloud/heat,ntt-sic/heat,rh-s/heat,gonzolino/heat,pratikmallya/heat,maestro-hybrid-clo...
heat/tests/utils.py
heat/tests/utils.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
apache-2.0
Python
9c82bae63834ac4328ddc8e17b042cde28efb0b8
remove useless code
gigayaya/YuGiOh_image_Crawler
get_image.py
get_image.py
# -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup import time import thread def download_imag(number): print('save numner: ' + str(number) + ' img') #set url referer_url = 'https://www.db.yugioh-card.com/yugiohdb/card_search.action?ope=2&cid=' + str(number) + '&request_locale=ja' im...
# -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup import time import thread headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36', 'X-Request-With' : 'XMLHttpRequest', } def download_imag(number...
mit
Python
c71b2f916222b83ffeca6a1e0427a6892b6a40f8
Bump version
paylogic/halogen
halogen/__init__.py
halogen/__init__.py
"""halogen public API.""" __version__ = "1.6.1" try: from halogen.schema import Schema, attr, Attr, Link, Curie, Embedded, Accessor from halogen import types from halogen import validators from halogen import exceptions __all__ = [ "attr", "Accessor", "Attr", "Curi...
"""halogen public API.""" __version__ = "1.6.0" try: from halogen.schema import Schema, attr, Attr, Link, Curie, Embedded, Accessor from halogen import types from halogen import validators from halogen import exceptions __all__ = [ "attr", "Accessor", "Attr", "Curi...
mit
Python
ec5b416e9e5b29a058f135c2c14a56968934e623
Add comment about proto file imports in __init__
tdryer/hangups,das7pad/hangups,jodizzle/hangups,baskervald/hangups,AshenDrops/hangups,ddboline/hangups
hangups/__init__.py
hangups/__init__.py
from .version import __version__ from .client import Client from .user import UserList, build_user_list from .conversation import ConversationList from .auth import get_auth, get_auth_stdin, GoogleAuthError from .exceptions import HangupsError, NetworkError from .conversation_event import (ChatMessageSegment, Conversat...
from .version import __version__ # TODO just import *? from .hangouts_pb2 import ( TYPING_TYPE_STARTED, TYPING_TYPE_PAUSED, TYPING_TYPE_STOPPED, MEMBERSHIP_CHANGE_TYPE_LEAVE, MEMBERSHIP_CHANGE_TYPE_JOIN ) from .client import Client from .user import UserList, build_user_list from .conversation import Conversati...
mit
Python
59e8b56283b93fa202c4803d269eaef216c0629e
Update work_time.py
pollseed/python_script_lib,pollseed/script_lib,pollseed/python_script_lib,pollseed/script_lib,pollseed/python_script_lib,pollseed/script_lib,pollseed/python_script_lib,pollseed/script_lib,pollseed/script_lib,pollseed/python_script_lib,pollseed/script_lib,pollseed/python_script_lib
lib/work_time.py
lib/work_time.py
# -*- coding: utf-8 -*- from datetime import datetime as dt from datetime import date as d """ python work_time.py What time is working end time of {__day of the week__}? Plerase your today's working-end hour >>> """ class WorkTime(object): DAY_OF_THE_WEEK = { 0: "monday", 1: "tuesday", ...
# -*- coding: utf-8 -*- from datetime import datetime as dt from datetime import date as d """ python work_time.py What time is working end time of {__day of the week__}? Plerase your today's working-end hour >>> """ class WorkTime(object): DAY_OF_THE_WEEK = { 0: "monday", 1: "tuesday", ...
mit
Python
10eda53e3e2aee1bb90be11f895a2d3f9a7c10a0
Add tests to integer field.
adamcupial/django-html5-forms,adamcupial/django-html5-forms
html5forms/tests.py
html5forms/tests.py
# -*- coding: utf-8 -*- from django.test import TestCase from html5forms import Form from html5forms.fields import * class TestBooleanField(TestCase): def setUp(self): class TestForm(Form): field = Html5BooleanField(required=False) self.form_class = TestForm def test_false1(self)...
# -*- coding: utf-8 -*- from django.test import TestCase from html5forms import Form from html5forms.fields import * class TestBooleanField(TestCase): def setUp(self): class TestForm(Form): field = Html5BooleanField(required=False) self.form_class = TestForm def test_false1(self)...
mit
Python
d6b97abac6bad3e9ee97c2f843364ded27d52b45
Update work_time.py
pollseed/python_script_lib,pollseed/python_script_lib,pollseed/script_lib,pollseed/python_script_lib,pollseed/script_lib,pollseed/script_lib,pollseed/script_lib,pollseed/python_script_lib,pollseed/script_lib,pollseed/python_script_lib,pollseed/python_script_lib,pollseed/script_lib
lib/work_time.py
lib/work_time.py
# -*- coding: utf-8 -*- from datetime import datetime as dt from datetime import date as d """ python work_time.py What time is working end time of {__day of the week__}? Plerase your today's working-end hour >>> Is accepted as a positive number only input value """ class WorkTime(object): DAY_OF_THE_WEEK = { ...
# -*- coding: utf-8 -*- from datetime import datetime as dt from datetime import date as d """ python work_time.py What time is working end time of {__day of the week__}? Plerase your today's working-end hour >>> Is accepted as a positive number only input value """ class WorkTime(object): DAY_OF_THE_WEEK = { ...
mit
Python
df115fadfb167847689d528812b8a80bf46a13d2
Expand output test case for FieldComponent.
emtpb/pyfds
test/test_fields.py
test/test_fields.py
import numpy as np import pyfds as fds def test_dimension(): dim = fds.Dimension(3, 0.1) assert np.allclose(dim.vector, np.asarray([0, 0.1, 0.2])) assert dim.get_index(0.1) == 1 def test_field_component_boundary_1(): fc = fds.FieldComponent(100) fc.values = np.random.rand(100) fc.boundaries ...
import numpy as np import pyfds as fds def test_dimension(): dim = fds.Dimension(3, 0.1) assert np.allclose(dim.vector, np.asarray([0, 0.1, 0.2])) assert dim.get_index(0.1) == 1 def test_field_component_boundary_1(): fc = fds.FieldComponent(100) fc.values = np.random.rand(100) fc.boundaries ...
bsd-3-clause
Python
61f54f1d726d59f87f22f62b2ece68e275fb4098
Fix pivot point to be included in the regex search.
chaseconey/rubix
rubix.py
rubix.py
#!/usr/bin/python import re import argparse import time # Let's time the execution for display in -v start_time = time.time() # String to hold regex regex = '' # Create a storage area for sorting words by size sortedDict = {} # For comparison, let's keep record of the sorted string of characters that was input sor...
#!/usr/bin/python import re import argparse import time # Let's time the execution for display in -v start_time = time.time() # String to hold regex regex = '' # Create a storage area for sorting words by size sortedDict = {} # For comparison, let's keep record of the sorted string of characters that was input sor...
mit
Python
4ff092367c27a8e72de25418529ba2dbfdd15c51
add get_all_questions
abau171/helpmio,abau171/helpmio,abau171/helpmio
helpmio/question.py
helpmio/question.py
import uuid import helpmio.chat class Question: def __init__(self, title, description): self._qid = str(uuid.uuid4()) self._title = title self._description = description self._is_resolved = False self._chatroom = helpmio.chat.ChatRoom() def get_qid(self): retu...
import uuid import helpmio.chat class Question: def __init__(self, title, description): self._qid = str(uuid.uuid4()) self._title = title self._description = description self._is_resolved = False self._chatroom = helpmio.chat.ChatRoom() def get_qid(self): retu...
mit
Python
cbcd55c311c3c3b32f5ef904c16a0cd7bb2bc12a
Update __init__
itfoundry/hindkit,itfoundry/hindkit
hindkit/__init__.py
hindkit/__init__.py
#!/usr/bin/env AFDKOPython # encoding: UTF-8 from __future__ import division, absolute_import, print_function, unicode_literals import os, sys, functools, shutil def relative_to_interpreter(path): return os.path.join(os.path.dirname(sys.executable), path) def relative_to_package(path): return os.path.join(__...
#!/usr/bin/env AFDKOPython # encoding: UTF-8 from __future__ import division, absolute_import, print_function, unicode_literals import os, sys, functools, shutil def relative_to_interpreter(path): return os.path.join(os.path.dirname(sys.executable), path) def relative_to_package(path): return os.path.join(__...
mit
Python
afb988e125ef9aa72c957a321c9d365164117a54
Use log10 in histogram
wac/cmp-meshop,wac/cmp-meshop,wac/cmp-meshop
histogram.py
histogram.py
# Make a histogram of the log values # column given by first arg import sys import math sep='|' def usage(): print "Generate histogram of the log10 (of absolute) values in field specified by first argument, binned to one decimal place" print "\n", sys.argv[0], "<hist_col>\n" print "Input from...
# Make a histogram of the log values # column given by first arg import sys import math sep='|' def usage(): print "Generate histogram of the log (of absolute) values in field specified by first argument, binned to one decimal place" print "\n", sys.argv[0], "<hist_col>\n" print "Input from s...
isc
Python
10a83df4dc8a70b866f867a7372b2c08af84c470
Make it actually tweet
singingwolfboy/hiptweet,singingwolfboy/hiptweet
hiptweet/webhook.py
hiptweet/webhook.py
import json from flask import Blueprint, request, jsonify from flask_login import login_required, current_user from flask_dance.contrib.twitter import twitter from hiptweet import db webhook = Blueprint('webhook', __name__) @webhook.route("/room_message", methods=["POST"]) @login_required def room_message(): try...
from flask import Blueprint, jsonify from flask_login import login_required, current_user from flask_dance.contrib.twitter import twitter from hiptweet import db webhook = Blueprint('webhook', __name__) @webhook.route("/room_message", methods=["POST"]) @login_required def room_message(): return jsonify({ ...
mit
Python
8120a1d77e658d98b02fa1129dc1c55ea345043f
Use 404
kudos/min.ie,kudos/min.ie
links/views.py
links/views.py
from urlparse import urlparse from django.shortcuts import render, redirect from django.http import Http404, HttpResponse from django.contrib import messages from .models import Link, LinkForm def get_client_ip(request): x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: ip = x_f...
from urlparse import urlparse from django.shortcuts import render, redirect from django.http import Http404, HttpResponse from django.contrib import messages from .models import Link, LinkForm def get_client_ip(request): x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: ip = x_f...
mit
Python
fb893ff64a8542f0cc1c6a3b7a38a2bb437796aa
add tests
sequana/sequana,sequana/sequana,sequana/sequana,sequana/sequana,sequana/sequana
test/test_snpeff.py
test/test_snpeff.py
from sequana import sequana_data from sequana import snpeff from easydev import TempFile import os def test_snpeff(): # a custom refrence fh_log = TempFile() mydata = snpeff.SnpEff(reference=sequana_data("JB409847.gbk"), log=fh_log.name) with TempFile() as fh: mydata.launch_snpeff(sequana_data...
from sequana import sequana_data from sequana import snpeff from easydev import TempFile import os def test_snpeff(): # a custom refrence mydata = snpeff.SnpEff(reference=sequana_data("JB409847.gbk")) with TempFile() as fh: mydata.launch_snpeff(sequana_data("JB409847.vcf"), fh.name) # cleanup...
bsd-3-clause
Python
6b6a3772f9295917a01b59a63e2b5cb6fb4710ca
Add bus query to ap_test.py
kuastw/AP-API,JohnSounder/AP-API,kuastw/AP-API,JohnSounder/AP-API
ap_test.py
ap_test.py
# -*- coding: utf-8 -*- import requests USERNAME = "1102108133" PASSWORD = "" URL = "http://kuas.grd.idv.tw:14768/" def process(): s = requests.Session() try: r = s.get(URL) print("[*] Server found, ready to test!") except Exception as e: print("[-] Server Error!!! Must to rese...
# -*- coding: utf-8 -*- import requests USERNAME = "1102108133" PASSWORD = "" URL = "http://kuas.grd.idv.tw:14768/" def process(): s = requests.Session() try: r = s.get(URL) print("[*] Server found, ready to test!") except Exception as e: print("[-] Server Error!!! Must to rese...
mit
Python
73c95c0dc80eb8d6dd83ee8575e24dfb80bc411b
fix stop without Temp. sensor
jeonghoonkang/BerePi,jeonghoonkang/BerePi,jeonghoonkang/BerePi,jeonghoonkang/BerePi,jeonghoonkang/BerePi,jeonghoonkang/BerePi,jeonghoonkang/BerePi
apps/sht20/sht25.py
apps/sht20/sht25.py
# Author : Philman Jeong (ipmstyle@gmail.com) import smbus import time SHT20_ADDR = 0x40 # SHT20 register address #SHT20_CMD_R_T = 0xE3 # hold Master Mode (Temperature) #SHT20_CMD_R_RH = 0xE5 # hold Master Mode (Humidity) SHT20_CMD_R_T = 0xF3 # no hold Master Mode (Temperature) SHT20_CMD_R_RH = 0xF5 # ...
# Author : Philman Jeong (ipmstyle@gmail.com) import smbus import time SHT20_ADDR = 0x40 # SHT20 register address #SHT20_CMD_R_T = 0xE3 # hold Master Mode (Temperature) #SHT20_CMD_R_RH = 0xE5 # hold Master Mode (Humidity) SHT20_CMD_R_T = 0xF3 # no hold Master Mode (Temperature) SHT20_CMD_R_RH = 0xF5 # ...
bsd-2-clause
Python
d285321a7fd94bbd10fe0d315e0e260ca9655476
Fix bug introduced by recent change.
isuraed/insight,isuraed/insight,isuraed/insight
api/api.py
api/api.py
#!flask/bin/python from flask import abort, Flask, jsonify import happybase import json import time API_VERSION = 'v0.2' app = Flask(__name__) connection = happybase.Connection('54.183.87.221') @app.route('/api/' + API_VERSION + '/brand_metrics', methods = ['GET']) def get_brand_metrics(): results = [] table...
#!flask/bin/python from flask import abort, Flask, jsonify import happybase import json import time API_VERSION = 'v0.2' app = Flask(__name__) connection = happybase.Connection('54.183.87.221') @app.route('/api/' + API_VERSION + '/brand_metrics', methods = ['GET']) def get_brand_metrics(): results = [] table...
mit
Python
b85c487185dd8e6855ee59f8c5c4077bb5a1118c
bump to 0.6
erikdejonge/django-htmlmin,Zowie/django-htmlmin,cobrateam/django-htmlmin,argollo/django-htmlmin,erikdejonge/django-htmlmin,Alcolo47/django-htmlmin,Alcolo47/django-htmlmin,erikdejonge/django-htmlmin,Zowie/django-htmlmin,cobrateam/django-htmlmin,argollo/django-htmlmin
htmlmin/__init__.py
htmlmin/__init__.py
# Copyright 2013 django-htmlmin authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. __version__ = '0.6'
# Copyright 2012 django-htmlmin authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. __version__ = '0.5.2'
bsd-2-clause
Python
6a1b233bd1d83461f8d658d183bd600df6fafe0c
Bump version to 1.1.1
jieter/python-lora
lora/__init__.py
lora/__init__.py
VERSION = '1.1.1'
VERSION = '1.1.0'
mit
Python
e56885c960909a53c80e17c44cf8995590a7f7c7
Test parent method
regenalgrant/datastructures
src/test_heap.py
src/test_heap.py
# _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low.push(data[1]) ...
# _*_coding:utf-8 _*_ """Test heap.""" data = [1, 2, 3, 4] def heap_init(): """Test heap init.""" from heap import Heap assert isinstance(Heap() == Heap) def test_push(): """Test push method.""" from heap import Heap high_low = Heap() high_low.push(data[0]) high_low.push(data[1]) ...
mit
Python
a087e3f19ad61076346aaf619de4395c4be15e61
Add getSecureHostname helper to system
rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son
app/soc/logic/system.py
app/soc/logic/system.py
#!/usr/bin/env python2.5 # # Copyright 2008 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 2008 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...
apache-2.0
Python
3318fba1979d1d6dc0d3c11a82d70f08d4332269
Add "?f" as a param as well
afreeorange/what-is-my-ip
serve.py
serve.py
import json from string import capwords import sys from http.server import HTTPServer, BaseHTTPRequestHandler import ssl import urllib.request class MyHTTPRequestHandler(BaseHTTPRequestHandler): def __tabulate_results(self, json_obj): table = '' for k, v in json_obj.items(): table +=...
import json from string import capwords import sys from http.server import HTTPServer, BaseHTTPRequestHandler import ssl import urllib.request class MyHTTPRequestHandler(BaseHTTPRequestHandler): def __tabulate_results(self, json_obj): table = '' for k, v in json_obj.items(): table +=...
mit
Python
8f04ee3d3153ab07ff5f6a1bd4cfb9bda52a20d5
fix typo
xmaruto/mcord,jermowery/xos,zdw/xos,wathsalav/xos,zdw/xos,opencord/xos,cboling/xos,cboling/xos,jermowery/xos,wathsalav/xos,cboling/xos,cboling/xos,xmaruto/mcord,open-cloud/xos,xmaruto/mcord,jermowery/xos,opencord/xos,wathsalav/xos,open-cloud/xos,open-cloud/xos,opencord/xos,xmaruto/mcord,zdw/xos,cboling/xos,wathsalav/xo...
planetstack/apigen/api.template.py
planetstack/apigen/api.template.py
from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework import serializers from core.models import * from django.forms import widgets """ Schema of the generator object: all: Set of all Model objects all_if(regex): ...
from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework import serializers from core.models import * from django.forms import widgets """ Schema of the generator object: all: Set of all Model objects all_if(regex): ...
apache-2.0
Python
617161c7dc7b8b8f97d273598acabdd00e793da1
set version no. for next release
openego/ego.io,openego/ego.io
setup.py
setup.py
#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='egoio', author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES', author_email='', description='ego input/output repository', version='0.3.0', url='https://github.com/openego/ego.io', pa...
#! /usr/bin/env python # coding: utf-8 from setuptools import find_packages, setup setup(name='egoio', author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES', author_email='', description='ego input/output repository', version='0.2.10', url='https://github.com/openego/ego.io', p...
agpl-3.0
Python
0fb93fed0c68aba34f5b7610f59205b6bb0fc537
Bump version to 1.1m5
cloudify-cosmo/cloudify-bash-plugin,cloudify-cosmo/cloudify-bash-plugin,cloudify-cosmo/cloudify-bash-plugin
setup.py
setup.py
######### # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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...
######### # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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...
apache-2.0
Python
75beb36ce1395f680f82074328d05fb20400a8e0
Bump version to 1.0-rc6
alculquicondor/psqlparse
setup.py
setup.py
from setuptools import setup, Extension from setuptools.command.build_ext import build_ext import os.path import subprocess import sys class PSqlParseBuildExt(build_ext): def run(self): return_code = subprocess.call(['./build_libpg_query.sh']) if return_code: sys.stderr.write(''' An e...
from setuptools import setup, Extension from setuptools.command.build_ext import build_ext import os.path import subprocess import sys class PSqlParseBuildExt(build_ext): def run(self): return_code = subprocess.call(['./build_libpg_query.sh']) if return_code: sys.stderr.write(''' An e...
bsd-3-clause
Python
9107b00783902e5ec4a7f363ff84af774d0e3cb7
Bump to 0.0.7
tsileo/blobstash-python-docstore
setup.py
setup.py
from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='blobstash-docstore', version='0.0.7', description='BlobStash DocStore client', long_description=long_description, author='Thomas Sileo', author_email='t@a4.io', url='https://github.com/ts...
from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='blobstash-docstore', version='0.0.6', description='BlobStash DocStore client', long_description=long_description, author='Thomas Sileo', author_email='t@a4.io', url='https://github.com/ts...
mit
Python
3d21f0d884835aef049de8319e4999b84915d6db
bump version for 18.0.0 release
zeroSteiner/boltons
setup.py
setup.py
"""Functionality that should be in the standard library. Like builtins, but Boltons. Otherwise known as, "everyone's util.py," but cleaned up and tested. Contains over 160 BSD-licensed utility types and functions that can be used as a package or independently. `Extensively documented on Read the Docs <http://boltons....
"""Functionality that should be in the standard library. Like builtins, but Boltons. Otherwise known as, "everyone's util.py," but cleaned up and tested. Contains over 160 BSD-licensed utility types and functions that can be used as a package or independently. `Extensively documented on Read the Docs <http://boltons....
bsd-3-clause
Python
27aa8698b90695c841475d0079fdf381119beba1
Bump versions for Markdown and Bleach
daGrevis/mdx_linkify
setup.py
setup.py
#!/usr/bin/env python2 from distutils.core import setup setup(name="mdx_linkify", version="0.2", description="Link recognition for Python Markdown", author="Raitis (daGrevis) Stengrevics", author_email="dagrevis@gmail.com", url="https://github.com/daGrevis/mdx_linkify", packages=["...
#!/usr/bin/env python2 from distutils.core import setup setup(name="mdx_linkify", version="0.2", description="Link recognition for Python Markdown", author="Raitis (daGrevis) Stengrevics", author_email="dagrevis@gmail.com", url="https://github.com/daGrevis/mdx_linkify", packages=["...
mit
Python
7c64057455a541bd5b37d7d49722507ee7bdf16f
Fix deps
ScottWales/django-testing
setup.py
setup.py
#!/usr/bin/env python """ Copyright 2015 ARC Centre of Excellence for Climate Systems Science author: Scott Wales <scott.wales@unimelb.edu.au> 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 h...
#!/usr/bin/env python """ Copyright 2015 ARC Centre of Excellence for Climate Systems Science author: Scott Wales <scott.wales@unimelb.edu.au> 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 h...
apache-2.0
Python
01306d0c67c5faa203994bab281c515b9d1248fa
Update the BUILD number to 4577.
google/mozc,fcitx/mozc,google/mozc,google/mozc,fcitx/mozc,fcitx/mozc,google/mozc,fcitx/mozc,fcitx/mozc,google/mozc
src/data/version/mozc_version_template.bzl
src/data/version/mozc_version_template.bzl
# Copyright 2010-2021, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
# Copyright 2010-2021, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
bsd-3-clause
Python
6603d277eb84712a907008bad8bc8156ed9bdf40
Fix license MIT to BSD
graphistry/pygraphistry,kcompher/pygraphistry,graphistry/pygraphistry
setup.py
setup.py
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'DESCRIPTION.rst'),...
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'DESCRIPTION.rst'),...
bsd-3-clause
Python
8af077a3f271ff2bd415d406903f7bc703055d73
change read_csv to pyarrow, update reqs
dgketchum/Landsat578
setup.py
setup.py
# =============================================================================== # Copyright 2017 dgketchum # # 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...
# =============================================================================== # Copyright 2017 dgketchum # # 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...
apache-2.0
Python
381385757dff1a3c081d59582c172b28551a6881
install boto if we're installing the pywincffi.build
opalmer/pywincffi,opalmer/pywincffi,opalmer/pywincffi,opalmer/pywincffi
setup.py
setup.py
import os from errno import ENOENT from setuptools import setup, find_packages try: WindowsError except NameError: WindowsError = OSError try: with open("README.rst") as readme: long_description = readme.read() except (OSError, IOError, WindowsError) as error: if error.errno == ENOENT: ...
import os from errno import ENOENT from setuptools import setup, find_packages try: WindowsError except NameError: WindowsError = OSError try: with open("README.rst") as readme: long_description = readme.read() except (OSError, IOError, WindowsError) as error: if error.errno == ENOENT: ...
mit
Python
ad2bc3b3786f22bdf4890fd5a131ae199f6d6765
add worker flavor
SUNET/eduid-common
setup.py
setup.py
from setuptools import setup, find_packages version = '0.3.8b0' requires = [ 'six >= 1.11.0', 'setuptools >= 2.2', 'eduid-userdb >= 0.4.0b19', ] # Flavours webapp_requires = [ 'Flask>=0.12.2,<0.13', 'pysaml2 >= 4.6.1', # version sync with dashboard to avoid pip catastrophes 'redis >= 2.10.5...
from setuptools import setup, find_packages version = '0.3.7' requires = [ 'six >= 1.11.0', 'setuptools >= 2.2', 'eduid-userdb >= 0.4.0b19', ] # Flavours webapp_requires = [ 'Flask>=0.12.2,<0.13', 'pysaml2 >= 4.6.1', # version sync with dashboard to avoid pip catastrophes 'redis >= 2.10.5',...
bsd-3-clause
Python
7be273957a89ec9cec281870cbc35acb659c5b20
Upgrade pyoidc dependency.
its-dirg/oidc-fed,its-dirg/oidc-fed
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='oidc-fed', version='0.0.1', description='Example implementation of model for OpenID Connect federations.', author='Rebecka Gulliksson', author_email='rebecka.gulliksson@its.umu.se', license='Apache 2.0', url='h...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='oidc-fed', version='0.0.1', description='Example implementation of model for OpenID Connect federations.', author='Rebecka Gulliksson', author_email='rebecka.gulliksson@its.umu.se', license='Apache 2.0', url='h...
apache-2.0
Python
18b7eabb3516ff9a43844c7244fb5dfd7ca416e1
add missing util package to setup.py
kareemallen/beets,mclearc/beets,tima/beets,untitaker/beets,untitaker/beets,beetbox/beets,swt30/beets,jackwilsdon/beets,madmouser1/beets,jbaiter/beets,parapente/beets,Andypsamp/CODjunit,asteven/beets,Andypsamp/CODfinalJUNIT,Freso/beets,untitaker/beets,ngokevin/beets,bj-yinyan/beets,tima/beets,mclearc/beets,m-urban/beets...
setup.py
setup.py
#!/usr/bin/env python # This file is part of beets. # Copyright 2010, Adrian Sampson. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation th...
#!/usr/bin/env python # This file is part of beets. # Copyright 2010, Adrian Sampson. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation th...
mit
Python
f4eab93ae9f246ca0d5ec35dce14a026118e0433
Bump version to v2.1.0
emlid/ntripbrowser
setup.py
setup.py
from setuptools import setup setup( name='ntripbrowser', version='2.1.0', author='Andrew Yushkevich, Alexander Yashin', author_email='andrew.yushkevich@emlid.com, alexandr.yashin@emlid.com', packages=['ntripbrowser'], install_requires=['chardet', 'geopy>=1.14', 'texttable', 'pager', 'pycurl', '...
from setuptools import setup setup( name='ntripbrowser', version='2.0.3', author='Andrew Yushkevich', author_email='andrew.yushkevich@emlid.com', packages=['ntripbrowser'], install_requires=['chardet', 'geopy>=1.14', 'texttable', 'pager', 'pycurl', 'cachecontrol>=0.12.4'], tests_requires=['...
bsd-3-clause
Python
614612bd4f6561c8caafd87c567136c12bb714ab
Fix the docblock in setup.py
fedora-infra/fmn.rules,jeremycline/fmn,jeremycline/fmn,jeremycline/fmn
setup.py
setup.py
""" Setup file for fmn.rules """ import sys import os import logging from setuptools import setup # Ridiculous as it may seem, we need to import multiprocessing and logging here # in order to get tests to pass smoothly on python 2.7. try: import multiprocessing import logging except: pass def get_descr...
""" Setup file for fmn.rules """ import sys import os import logging from setuptools import setup # Ridiculous as it may seem, we need to import multiprocessing and logging here # in order to get tests to pass smoothly on python 2.7. try: import multiprocessing import logging except: pass def get_descr...
lgpl-2.1
Python
cc1c412462e42058ac64d478aaac761a6aa045e8
Fix dependency resolution for six
AshenDrops/hangups,dxd132630/hangups,jodizzle/hangups,tdryer/hangups,taigrr/hangups,das7pad/hangups,hangoutsbot/hangups,ddboline/hangups,j16sdiz/hangups,baskervald/hangups
setup.py
setup.py
from setuptools import setup from setuptools.command.test import test as TestCommand import os import sys # Find __version__ without import that requires dependencies to be installed: exec(open(os.path.join( os.path.dirname(__file__), 'hangups/version.py' )).read()) class PyTest(TestCommand): def finalize_op...
from setuptools import setup from setuptools.command.test import test as TestCommand import os import sys # Find __version__ without import that requires dependencies to be installed: exec(open(os.path.join( os.path.dirname(__file__), 'hangups/version.py' )).read()) class PyTest(TestCommand): def finalize_op...
mit
Python
8172dbb10bc140653ece8f241be68653e799cc05
Apply changed function name
lqez/hog
setup.py
setup.py
#!/usr/bin/env python import re try: from setuptools import setup except ImportError: from distutils.core import setup with open('hog/__init__.py') as f: data = re.search(r'\(\s*(\d*).\s*(\d*).\s*(\d)*\)', f.read()) version = ".".join([data.group(1), data.group(2), data.group(3)]) assert version pac...
#!/usr/bin/env python import re try: from setuptools import setup except ImportError: from distutils.core import setup with open('hog/__init__.py') as f: data = re.search(r'\(\s*(\d*).\s*(\d*).\s*(\d)*\)', f.read()) version = ".".join([data.group(1), data.group(2), data.group(3)]) assert version pac...
mit
Python
52650d1388c82ed095b04b6bb489a1fd3821ccc0
Fix setup.py
hlef/juliet,hlef/juliet,hlef/juliet
setup.py
setup.py
#!/usr/bin/python3 from setuptools import setup setup(name='juliet', version='0.1-alpha.1', description='The lightweight static website generator', url='http://github.com/hlef/juliet', author='Hugo Lefeuvre', author_email='hle@owl.eu.com', license='MIT', packages=['juliet'], ...
from setuptools import setup setup(name='juliet', version='0.1~alpha', description='The lightweight static website generator', url='http://github.com/hlef/juliet', author='Hugo Lefeuvre', author_email='hle@owl.eu.com', license='MIT', packages=['juliet'], zip_safe=False, ...
mit
Python
c047c5273220d99a8db1c35045e100279bf9ab91
Bump requirement on simplesat to force update of deps
lowRISC/fusesoc,olofk/fusesoc,olofk/fusesoc,lowRISC/fusesoc
setup.py
setup.py
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "fusesoc", packages=['fusesoc', 'fusesoc.build', 'fusesoc.simulator', 'fusesoc.provider'], version = "1.6", author = "O...
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "fusesoc", packages=['fusesoc', 'fusesoc.build', 'fusesoc.simulator', 'fusesoc.provider'], version = "1.6", author = "O...
bsd-2-clause
Python