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
008663dedf2d0f123a76a0f55e1297fb8c466346
Remove imports
explosion/thinc,spacy-io/thinc,spacy-io/thinc,spacy-io/thinc,explosion/thinc,explosion/thinc,explosion/thinc
thinc/api.py
thinc/api.py
from .config import Config, registry from .initializers import normal_init, uniform_init, glorot_uniform_init, zero_init from .loss import CategoricalCrossentropy, L1Distance, CosineDistance from .loss import SequenceCategoricalCrossentropy from .model import Model, serialize_attr, deserialize_attr from .model import s...
from .config import Config, registry from .initializers import normal_init, uniform_init, glorot_uniform_init, zero_init from .loss import CategoricalCrossentropy, L1Distance, CosineDistance from .loss import SequenceCategoricalCrossentropy from .model import Model, serialize_attr, deserialize_attr from .model import s...
mit
Python
e17beeb171c5716465404984581b4e74ceccacf6
Work around pyflakes error introduced in r624
libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar
libravatar/urls.py
libravatar/urls.py
# Copyright (C) 2010, 2011 Francois Marier <francois@libravatar.org> # # This file is part of Libravatar # # Libravatar 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 version 3 of the License, ...
# Copyright (C) 2010, 2011 Francois Marier <francois@libravatar.org> # # This file is part of Libravatar # # Libravatar 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 version 3 of the License, ...
agpl-3.0
Python
11381500eed6418151ba23990c0810582e625704
fix logic in JError.custom
zloidemon/aiohttp_jrpc
aiohttp_jrpc/errors.py
aiohttp_jrpc/errors.py
""" Error responses """ from aiohttp.web import Response import json class JResponse(Response): """ Modified Reponse from aohttp """ def __init__(self, *, status=200, reason=None, headers=None, jsonrpc=None): if jsonrpc is not None: jsonrpc.update({'jsonrpc': '2.0'}) ...
""" Error responses """ from aiohttp.web import Response import json class JResponse(Response): """ Modified Reponse from aohttp """ def __init__(self, *, status=200, reason=None, headers=None, jsonrpc=None): if jsonrpc is not None: jsonrpc.update({'jsonrpc': '2.0'}) ...
bsd-2-clause
Python
48d9e4b3359c46116df2edd02345dc970449d351
enable context aware commits (#126)
googleapis/google-cloud-java,googleapis/google-cloud-java,googleapis/google-cloud-java
java-recommender/synth.py
java-recommender/synth.py
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
apache-2.0
Python
fb5c6d5288b6d69d16f917976ae068e9c52a6c7d
Update to Python 2.3, getting rid of backward compatiblity crud. We don't need the _compat21 or _compat22 modules either.
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
Lib/email/Iterators.py
Lib/email/Iterators.py
# Copyright (C) 2001-2004 Python Software Foundation # Author: Barry Warsaw <barry@python.org> """Various types of useful iterators and generators. """ import sys from cStringIO import StringIO # This function will become a method of the Message class def walk(self): """Walk over the message tree, yielding ea...
# Copyright (C) 2001,2002 Python Software Foundation # Author: barry@zope.com (Barry Warsaw) """Various types of useful iterators and generators. """ import sys try: from email._compat22 import body_line_iterator, typed_subpart_iterator except SyntaxError: # Python 2.1 doesn't have generators from email....
mit
Python
b4a57231b1b3d1209d8d7accaf26b58ec4278cd1
Enable fixed plugins again.
weezel/BandEventNotifier
plugin_handler.py
plugin_handler.py
# -*- coding: utf-8 -*- # Execute this file to see what plugins will be loaded. # Implementation leans to Lex Toumbourou's example: # https://lextoumbourou.com/blog/posts/dynamically-loading-modules-and-classes-in-python/ import os import pkgutil import sys from typing import List from venues.abstract_venue import ...
# -*- coding: utf-8 -*- # Execute this file to see what plugins will be loaded. # Implementation leans to Lex Toumbourou's example: # https://lextoumbourou.com/blog/posts/dynamically-loading-modules-and-classes-in-python/ import os import pkgutil import sys from typing import List from venues.abstract_venue import ...
isc
Python
20f8a45c1c7369787a823012040342782b9596be
Add projection module to __init__.py
AmiiThinks/amii-tf-nn
amii_tf_nn/__init__.py
amii_tf_nn/__init__.py
from .criterion import * from .classifier import * from .data_set import * from .data import * from .debug import * from .estimator import * from .experiment import * from .layer import * from .monitored_estimator import * from .network_model import * from .tf_extra import * from .trainer import * from .projection impo...
from .criterion import * from .classifier import * from .data_set import * from .data import * from .debug import * from .estimator import * from .experiment import * from .layer import * from .monitored_estimator import * from .network_model import * from .tf_extra import * from .trainer import *
mit
Python
edc644869daaf788bc4785446d76a322440c5714
Update test.
dronecrew/px4tools
test/test_analysis.py
test/test_analysis.py
import os import pandas import unittest import inspect from px4tools.analysis import * from px4tools.mapping import * TEST_PATH = os.path.dirname(os.path.abspath( inspect.getfile(inspect.currentframe()))) class Test(unittest.TestCase): def test_process_data(self): filename = os.path.join(TEST_PATH,...
import os import matplotlib if 'DISPLAY' not in os.environ: matplotlib.use('Agg') import matplotlib.pyplot import pandas import unittest import inspect from px4tools.analysis import * from px4tools.mapping import * TEST_PATH = os.path.dirname(os.path.abspath( inspect.getfile(inspect.currentframe()))) cl...
bsd-3-clause
Python
7404ba980569352149ee5cc27cb676474c69cea2
remove index from sim-test-data
jburos/survivalstan,jburos/survivalstan
test/test_datasets.py
test/test_datasets.py
import statsmodels import survivalstan import random random.seed(9001) def load_test_dataset(n=50): ''' Load test dataset from R survival package ''' dataset = statsmodels.datasets.get_rdataset(package='survival', dataname='flchain' ) d = dataset.data.query('futime > 7').sample(n=n) d.reset_index(l...
import statsmodels import survivalstan import random random.seed(9001) def load_test_dataset(n=50): ''' Load test dataset from R survival package ''' dataset = statsmodels.datasets.get_rdataset(package='survival', dataname='flchain' ) d = dataset.data.query('futime > 7').sample(n=n) d.reset_index(...
apache-2.0
Python
3489b2076faf101a1d834fa3ffcb2b92a88f2005
Drop old symlinks
xaque208/dotfiles,xaque208/dotfiles,xaque208/dotfiles
bin/init.py
bin/init.py
#! /usr/bin/env python import os from dotfiles import Dotfiles def main(): homedir = os.environ['HOME'] dotfilesRoot = homedir + '/dotfiles' d = Dotfiles(dotfilesRoot) d.setup() if __name__ == "__main__": main()
#! /usr/bin/env python import symlinks import os from dotfiles import Dotfiles def main(): homedir = os.environ['HOME'] dotfilesRoot = homedir + '/dotfiles' d = Dotfiles(dotfilesRoot) d.setup() if __name__ == "__main__": main()
mit
Python
c62167939485954ede7f1e5e709741e80c9a1127
Update create_sample_job.py
Tendrl/node_agent,r0h4n/node-agent,Tendrl/node-agent,r0h4n/node-agent,Tendrl/node_agent,Tendrl/node-agent,Tendrl/node-agent,r0h4n/node-agent
etc/create_sample_job.py
etc/create_sample_job.py
import json import uuid import etcd job_id1 = str(uuid.uuid4()) job = { "integration_id": "rohan_create_job_script_test", "run": "tendrl.node_agent.flows.import_cluster.ImportCluster", "status": "new", "parameters": { "TendrlContext.integration_id": "some_uuid", "Node[]": ["9eced8a0-f...
import json import uuid import etcd job_id1 = str(uuid.uuid4()) job = { "integration_id": "49fa2adde8a6e98591f0f5cb4bc5f44d", "sds_type": "generic", "flow": "ExecuteCommand", "object_type": "generic", "status": 'new', "message": 'Executing command', "attributes": { "_raw_input": "...
lgpl-2.1
Python
267a1afaf27122954ce04220f55667109c6ccbf6
change logic for source.url in case of tor_node
aaronkaplan/intelmq,certtools/intelmq,certtools/intelmq,certtools/intelmq,aaronkaplan/intelmq,aaronkaplan/intelmq
intelmq/bots/parsers/blueliv/parser_crimeserver.py
intelmq/bots/parsers/blueliv/parser_crimeserver.py
# -*- coding: utf-8 -*- """ """ import json from intelmq.lib import utils from intelmq.lib.bot import Bot TYPES = { 'PHISHING': 'phishing', 'MALWARE': 'malware', 'EXPLOIT_KIT': 'exploit', 'BACKDOOR': 'backdoor', 'TOR_IP': 'proxy', 'C_AND_C': 'c&c' } class BluelivCrimeserverParserBot(Bot): ...
# -*- coding: utf-8 -*- """ """ import json from intelmq.lib import utils from intelmq.lib.bot import Bot from intelmq.lib.harmonization import IPAddress TYPES = { 'PHISHING': 'phishing', 'MALWARE': 'malware', 'EXPLOIT_KIT': 'exploit', 'BACKDOOR': 'backdoor', 'TOR_IP': 'proxy', 'C_AND_C': 'c&...
agpl-3.0
Python
6aadd0ff991df18f59152f65d0332c913ba91b93
add stats calc
wgerlach/pipeline,MG-RAST/pipeline,MG-RAST/pipeline,teharrison/pipeline,wgerlach/pipeline,MG-RAST/pipeline,wgerlach/pipeline,teharrison/pipeline,teharrison/pipeline
bin/extract_darkmatter.py
bin/extract_darkmatter.py
#!/usr/bin/env python import os import sys import json import shutil import leveldb import argparse import subprocess from Bio import SeqIO def get_seq_stats(fname): stats = {} cmd = ["seq_length_stats.py", "-f", "-i", fname] proc = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE ...
#!/usr/bin/env python import argparse import leveldb import os import shutil import sys from Bio import SeqIO def main(args): parser = argparse.ArgumentParser(description="Script to extract darkmatter - predicted proteins with no similarities") parser.add_argument("-i", "--input", dest="input", help="Name of ...
bsd-2-clause
Python
3702edd34881a95db656eb83a952a245a18edc62
remove debug print
nipy/nireg,arokem/nipy,alexis-roche/nipy,arokem/nipy,alexis-roche/register,bthirion/nipy,bthirion/nipy,alexis-roche/nipy,nipy/nipy-labs,alexis-roche/nireg,alexis-roche/niseg,nipy/nireg,arokem/nipy,alexis-roche/niseg,alexis-roche/nireg,arokem/nipy,bthirion/nipy,alexis-roche/register,alexis-roche/register,alexis-roche/ni...
lib/neuroimaging/__init__.py
lib/neuroimaging/__init__.py
""" Insert long description here. """ import re from path import path __version__ = "0.01a" packages = ( 'neuroimaging', 'neuroimaging.tests', 'neuroimaging.data', 'neuroimaging.data.tests', 'neuroimaging.fmri', 'neuroimaging.fmri.tests', 'neuroimaging.fmri.fmristat', 'neuroimaging.fmri.fmristat.tests...
""" Insert long description here. """ import re from path import path __version__ = "0.01a" packages = ( 'neuroimaging', 'neuroimaging.tests', 'neuroimaging.data', 'neuroimaging.data.tests', 'neuroimaging.fmri', 'neuroimaging.fmri.tests', 'neuroimaging.fmri.fmristat', 'neuroimaging.fmri.fmristat.tests...
bsd-3-clause
Python
3fcc6e4fe09ecaa27e5863b2650df101fc605db8
Update Chapter05/PracticeQuestions/Question3.py added docstring
JoseALermaIII/python-tutorials,JoseALermaIII/python-tutorials
books/CrackingCodesWithPython/Chapter05/PracticeQuestions/Question3.py
books/CrackingCodesWithPython/Chapter05/PracticeQuestions/Question3.py
""" Chapter 5 Practice Question 3 Which Python instruction would import a module named watermelon.py? Note: Contains spoilers for Chapter 7 (functions) """ import books.CrackingCodesWithPython.Chapter05.PracticeQuestions.watermelon as watermelon def main(): watermelon.nutrition() # If Question3.py is run...
# Which Python instruction would import a module named watermelon.py? import books.CrackingCodesWithPython.Chapter05.PracticeQuestions.watermelon as watermelon def main(): watermelon.nutrition() # If Question3.py is run (instead of imported as a module), call # the main() function: if __name__ == '__main__': ...
mit
Python
e42b1d4f673a43f0a0bc73723c697524e08ffdc7
Change back to 1 second
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
backend/scripts/db_running.py
backend/scripts/db_running.py
#!/usr/bin/env python # # db_running.py will attempt to connect to the database. It will retry --retry times (defaults to 100), and will # sleep for --sleep time (defaults to 1 second). It connects to the database on --port (defaults to 30815). # db_running.py will exit 0 if is successfully connects. It will exit 1 if ...
#!/usr/bin/env python # # db_running.py will attempt to connect to the database. It will retry --retry times (defaults to 100), and will # sleep for --sleep time (defaults to 1 second). It connects to the database on --port (defaults to 30815). # db_running.py will exit 0 if is successfully connects. It will exit 1 if ...
mit
Python
1ef8508790071b8d19b0da5e3dde1f48eb9e9479
add numpy
gordon-n-stevenson/colormap_to_ITKSNAP
runColorMap.py
runColorMap.py
import matplotlib.cm as cmap import numpy as np import ColorMapWriter mpl_map = cmap.viridis(np.arange(256)) c = ColorMapWriter.ColorMapWriter(mpl_map, 'viridis.xml', 5) c.createLookupTable()
import matplotlib.cm as cmap import ColorMapWriter mpl_map = cmap.viridis(np.arange(256)) c = ColorMapWriter.ColorMapWriter(mpl_map, 'viridis.xml', 5) c.createLookupTable()
mit
Python
f8479aa9b3416921d7d387efacedf8a36e4027fd
add cat /etc/ansible/hosts
le9i0nx/ansible-role-test
bin/virt.py
bin/virt.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import yaml import subprocess import os import sys def proc(cmd,sh = True ): p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE, shell=sh) p.wait() outs, errs = p.communicate() if p.returncode: print(errs) sys.exi...
#!/usr/bin/env python # -*- coding: utf-8 -*- import yaml import subprocess import os import sys def proc(cmd,sh = True ): p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE, shell=sh) p.wait() outs, errs = p.communicate() if p.returncode: print(errs) sys.exi...
mit
Python
0cbd437b536f9f24eabc1ce63282512016326a08
Set extra libraries on windows condition only
etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web,etaylor8086/prime-randomizer-web
binding.gyp
binding.gyp
{ "targets": [ { "target_name": "randomprime", "sources": [ "./native/randomprime.c" ], "conditions": [ ["OS=='win'", { "libraries": [ "-l<(module_root_dir)/native/lib/randomprime", "-lcredui.lib", "-lmsimg32.lib", "-lopengl32.lib...
{ "targets": [ { "target_name": "randomprime", "sources": [ "./native/randomprime.c" ], "libraries": [ "-l<(module_root_dir)/native/lib/randomprime", "-lcredui.lib", "-lmsimg32.lib", "-lopengl32.lib", "-lsecur32.lib", "-lsetupapi....
mit
Python
3c9a9c0729b8c6dc0ecc70f307de07543eeba098
Remove debug output
tyewang/invoke,frol/invoke,mattrobenolt/invoke,pfmoore/invoke,frol/invoke,kejbaly2/invoke,pyinvoke/invoke,pfmoore/invoke,pyinvoke/invoke,mkusz/invoke,singingwolfboy/invoke,alex/invoke,sophacles/invoke,mattrobenolt/invoke,mkusz/invoke,kejbaly2/invoke
tests/_support/foo.py
tests/_support/foo.py
from invoke.task import task @task def mytask(): pass
from invoke.task import task @task def mytask(): pass print mytask print mytask.is_invoke_task
bsd-2-clause
Python
acc192111fae6590bcf52bfae292606e985c1102
fix script to run on individual asset as well
kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi
kobo/apps/subsequences/scripts/repop_known_cols.py
kobo/apps/subsequences/scripts/repop_known_cols.py
# coding: utf-8 ''' Usage: python manage.py runscript repop_known_cols --script-args=<assetUid> ''' import re import json # from pprint import pprint from kpi.models.asset import Asset from kobo.apps.subsequences.models import SubmissionExtras from kobo.apps.subsequences.utils.parse_knowncols import parse_knowncol...
# coding: utf-8 ''' Usage: python manage.py runscript repop_known_cols --script-args=<assetUid> ''' import re import json from pprint import pprint from kpi.models.asset import Asset from kobo.apps.subsequences.models import SubmissionExtras from kobo.apps.subsequences.utils.parse_knowncols import parse_knowncols ...
agpl-3.0
Python
bd4a6e79725acb7b89f4c1382f885c401aa30690
Use database context manager for sybase fetch
sot/mica,sot/mica
mica/web/star_hist.py
mica/web/star_hist.py
from astropy.table import Table from mica.stats import acq_stats from Ska.DBI import DBI def get_acq_data(agasc_id): """ Fetch acquisition history from mica acq stats for an agasc id :param agasc_id: AGASC id :returns: list of dicts of acquisitions """ acq = Table(acq_stats.get_stats()) ...
from astropy.table import Table from mica.stats import acq_stats from Ska.DBI import DBI def get_acq_data(agasc_id): """ Fetch acquisition history from mica acq stats for an agasc id :param agasc_id: AGASC id :returns: list of dicts of acquisitions """ acq = Table(acq_stats.get_stats()) ...
bsd-3-clause
Python
0e01b0a8845e0309cbb7131a35eacc1b87ded3f1
Update version to 1.1.0
gunthercox/chatterbot-corpus
chatterbot_corpus/__init__.py
chatterbot_corpus/__init__.py
""" A machine readable multilingual dialog corpus. """ from .corpus import Corpus __version__ = '1.1.0' __author__ = 'Gunther Cox' __email__ = 'gunthercx@gmail.com' __url__ = 'https://github.com/gunthercox/chatterbot-corpus' __all__ = ( 'Corpus', )
""" A machine readable multilingual dialog corpus. """ from .corpus import Corpus __version__ = '1.0.1' __author__ = 'Gunther Cox' __email__ = 'gunthercx@gmail.com' __url__ = 'https://github.com/gunthercox/chatterbot-corpus' __all__ = ( 'Corpus', )
bsd-3-clause
Python
2674338d6896b62485f33b049c85ae3fedfefc9d
bump to version 0.8.1
ndawe/rootpy,ndawe/rootpy,ndawe/rootpy,rootpy/rootpy,kreczko/rootpy,kreczko/rootpy,rootpy/rootpy,kreczko/rootpy,rootpy/rootpy
rootpy/info.py
rootpy/info.py
# Copyright 2012 the rootpy developers # distributed under the terms of the GNU General Public License """ _ _ __ ___ ___ | |_ _ __ _ _ | '__/ _ \ / _ \| __| '_ \| | | | | | | (_) | (_) | |_| |_) | |_| | |_| \___/ \___/ \__| .__/ \__, | |_| |___/ {0} """ __version__ ...
# Copyright 2012 the rootpy developers # distributed under the terms of the GNU General Public License """ _ _ __ ___ ___ | |_ _ __ _ _ | '__/ _ \ / _ \| __| '_ \| | | | | | | (_) | (_) | |_| |_) | |_| | |_| \___/ \___/ \__| .__/ \__, | |_| |___/ {0} """ __version__ ...
bsd-3-clause
Python
cc1d5ab4a863bfcb69b68c6d56743c7efd079b7a
Fix shap version (#1053)
kubeflow/kfserving-lts,kubeflow/kfserving-lts,kubeflow/kfserving-lts,kubeflow/kfserving-lts,kubeflow/kfserving-lts,kubeflow/kfserving-lts
python/alibiexplainer/setup.py
python/alibiexplainer/setup.py
# Copyright 2019 kubeflow.org. # # 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 writing,...
# Copyright 2019 kubeflow.org. # # 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 writing,...
apache-2.0
Python
35114cf05ebdc12f6ec0a1ea8f647c8a5f4bc03b
Fix verb relation parsing
tomshen/sherlock,tomshen/sherlock
parse.py
parse.py
#!/usr/bin/env python import re import sys import string import unicodedata from textblob import TextBlob import grammars import util def preprocess(doc): paragraphs = [s.strip() for s in doc.split('\n') if s.strip()][1:] # strip out title return TextBlob('\n'.join(paragraphs)) def extract_generic_relations...
#!/usr/bin/env python import re import sys import string import unicodedata from textblob import TextBlob import grammars import util def preprocess(doc): paragraphs = [s.strip() for s in doc.split('\n') if s.strip()][1:] # strip out title return TextBlob('\n'.join(paragraphs)) def extract_generic_relations...
mit
Python
0a99166bb035b662ca40224ea48847dc0e86edf9
Switch to using `unittest` directly.
jakirkham/rank_filter,DudLab/rank_filter,jakirkham/rank_filter,nanshe-org/rank_filter,DudLab/rank_filter,nanshe-org/rank_filter,jakirkham/rank_filter,DudLab/rank_filter,nanshe-org/rank_filter
rank_filter.recipe/run_test.py
rank_filter.recipe/run_test.py
#!/usr/bin/env python import os import subprocess import sys import nose def main(*argv): argv = list(argv) test = os.path.join(os.environ["SRC_DIR"], "test", "test_rank_filter.py") return(subprocess.check_call(["python", "-m", "unittest"] + argv[1:], stdin=sys.std...
#!/usr/bin/env python import os import subprocess import sys import nose def main(*argv): argv = list(argv) test = os.path.join(os.environ["SRC_DIR"], "test", "test_rank_filter.py") return(subprocess.check_call(["python", nose.core.__file__, test] + argv[1:], stdin...
bsd-3-clause
Python
213148d5732eee7bfbc9cda0f6fb36ae36d947ce
fix args
Anaconda-Platform/anaconda-client,Anaconda-Platform/anaconda-client,Anaconda-Platform/anaconda-client
binstar_client/scripts/cli.py
binstar_client/scripts/cli.py
''' Binstar command line utility ''' from __future__ import print_function, unicode_literals from argparse import ArgumentParser, RawDescriptionHelpFormatter import logging from os import makedirs from os.path import join, exists from binstar_client import __version__ as version from binstar_client import commands as...
''' Binstar command line utility ''' from __future__ import print_function, unicode_literals from argparse import ArgumentParser, RawDescriptionHelpFormatter import logging from os import makedirs from os.path import join, exists from binstar_client import __version__ as version from binstar_client import commands as...
bsd-3-clause
Python
79df0eccd44c6c01d69725b9cc7a851ab2be957c
add body property to request.
korakon/glaso
glaso/request.py
glaso/request.py
from werkzeug.wrappers import Request as Base from functools import lru_cache from json import loads class Request(Base): def __init__(self, environ): super(Request, self).__init__(environ) # Params captured from request url self.params = {} # Used to mount apps # eg: mount(...
from werkzeug.wrappers import Request as Base class Request(Base): def __init__(self, environ): super(Request, self).__init__(environ) # Params captured from request url self.params = {} # Used to mount apps # eg: mount('/api/users', users.app) self.prefix = [] ...
cc0-1.0
Python
a5724bce1360d5fa290af3a9a240f76ae12d892d
Adjust blocking client output.
jakesyl/twisted-intro,s0lst1ce/twisted-intro,walkinreeds/twisted-intro,shankig/twisted-intro,s0lst1ce/twisted-intro,leixinstar/twisted-intro,elenaoat/tests,shankisg/twisted-intro,elenaoat/tests,leixinstar/twisted-intro,shankig/twisted-intro,jdavisp3/twisted-intro,jakesyl/twisted-intro,shankisg/twisted-intro,vaniakov/tw...
blocking-client/get-poetry.py
blocking-client/get-poetry.py
# This is the blocking Get Poetry Now! client. import datetime, optparse, socket def parse_args(): usage = """usage: %prog [options] [hostname]:port ... This is the Get Poetry Now! client, blocking edition. Run it like this: python get-poetry.py port1 port2 port3 ... If you are in the base directory of the ...
# This is the blocking Get Poetry Now! client. import datetime, optparse, socket def parse_args(): usage = """usage: %prog [options] [hostname]:port ... This is the Get Poetry Now! client, blocking edition. Run it like this: python get-poetry.py port1 port2 port3 ... If you are in the base directory of the ...
mit
Python
2eaf27d9c3a97c4c7dbe4e653d82c92e22d9afb2
Print some more info.
jcharum/pycurl,ninemoreminutes/pycurl,jcharum/pycurl,m13253/pycurl-python3,ninemoreminutes/pycurl,m13253/pycurl-python3,ninemoreminutes/pycurl,jcharum/pycurl,m13253/pycurl-python3,ninemoreminutes/pycurl
tests/test_getinfo.py
tests/test_getinfo.py
#! /usr/bin/env python # -*- coding: iso-8859-1 -*- # vi:ts=4:et # $Id: test_getinfo.py,v 1.18 2003/05/01 19:35:01 mfx Exp $ import time import pycurl ## Callback function invoked when progress information is updated def progress(download_t, download_d, upload_t, upload_d): print "Total to download %d bytes, hav...
#! /usr/bin/env python # -*- coding: iso-8859-1 -*- # vi:ts=4:et # $Id: test_getinfo.py,v 1.17 2003/04/21 18:46:10 mfx Exp $ import time import pycurl ## Callback function invoked when progress information is updated def progress(download_t, download_d, upload_t, upload_d): print "Total to download %d bytes, hav...
lgpl-2.1
Python
b7ebaf022fd2c0992afeb0e87ce510376e799224
bump version
ii0/python-goose,voidfiles/python-goose,goose3/goose3,vetal4444/python-goose,goose3/goose3,goose3/goose,raven47git/python-goose,samim23/python-goose,jaepil/python-goose,raven47git/python-goose,goose3/goose,muckrack/python-goose,github4ry/python-goose,blmlove409/python-goose,blmlove409/python-goose,ii0/python-goose,muck...
goose/version.py
goose/version.py
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
apache-2.0
Python
4a42285b6b0afbd5dbd23df049ab2a6d493fc256
Add production domain
tvorogme/gotosite,tvorogme/gotosite,tvorogme/gotosite
gotosite/urls.py
gotosite/urls.py
from django.conf import settings from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from main.views import * domain = 'https://goto.msk.ru/new/' urlpatterns = [ # Admin url(r'^%sadmin/' % domain, admin.site.urls), # Index url(r'^%s$'...
from django.conf import settings from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from main.views import * urlpatterns = [ # Admin url(r'^admin/', admin.site.urls), # Index url(r'^$', index, name='index'), # About # url(r'^...
apache-2.0
Python
a8855bd2045f965bdeb783cfa1bd51c311bf013c
Replace domain to localhost
tvorogme/gotosite,tvorogme/gotosite,tvorogme/gotosite
gotosite/urls.py
gotosite/urls.py
from django.conf import settings from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from main.views import * domain = 'http://localhost:8000/new/' urlpatterns = [ # Admin url(r'^%sadmin/' % domain, admin.site.urls), # Index url(r'^%s...
from django.conf import settings from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from main.views import * domain = 'https://goto.msk.ru/new/' urlpatterns = [ # Admin url(r'^%sadmin/' % domain, admin.site.urls), # Index url(r'^%s$'...
apache-2.0
Python
9056febc4c29984bb838dcaae3d209841ed27344
add tests for apply_referrer method
Chris7/django-referral,byteweaver/django-referral
referral/tests/models_tests.py
referral/tests/models_tests.py
from django.http import HttpRequest from django.test import TestCase from referral.models import UserReferrer from referral import settings from referral.tests.factories import CampaignFactory, ReferrerFactory, UserReferrerFactory, UserFactory class CampaignTestCase(TestCase): def test_model(self): obj =...
from django.test import TestCase from referral.tests.factories import CampaignFactory, ReferrerFactory, UserReferrerFactory class CampaignTestCase(TestCase): def test_model(self): obj = CampaignFactory() self.assertTrue(obj.pk) def test_count_users(self): obj = CampaignFactory() ...
mit
Python
5ac248bcbe1e2c0a97754fad185f8a9b2eff2280
disable weird test.
abadger/Bento,cournape/Bento,abadger/Bento,abadger/Bento,cournape/Bento,cournape/Bento,abadger/Bento,cournape/Bento
tests/test_parsing.py
tests/test_parsing.py
import os import tempfile import shutil import unittest import sys from os.path import \ join, dirname from nose.tools import \ assert_equal, raises try: from cStringIO import StringIO finally: from StringIO import StringIO from bento.core.pkg_objects import \ PathOption, FlagOption, Executable, ...
import os import tempfile import shutil import unittest import sys from os.path import \ join, dirname from nose.tools import \ assert_equal, raises try: from cStringIO import StringIO finally: from StringIO import StringIO from bento.core.pkg_objects import \ PathOption, FlagOption, Executable, ...
bsd-3-clause
Python
3340367519181ef933847e655cc08a63474b7d06
Remove the tests for metanl_word_frequency too. Doh.
LuminosoInsight/wordfreq
tests/test_queries.py
tests/test_queries.py
from __future__ import unicode_literals from nose.tools import eq_, assert_almost_equal, assert_greater from wordfreq.query import (word_frequency, average_frequency, wordlist_size, wordlist_info) def test_freq_examples(): assert_almost_equal( word_frequency('normalization', 'e...
from __future__ import unicode_literals from nose.tools import eq_, assert_almost_equal, assert_greater from wordfreq.query import (word_frequency, average_frequency, wordlist_size, wordlist_info, metanl_word_frequency) def test_freq_examples(): assert_almost_equal( word_freque...
mit
Python
8fedd77849b320140dbf8588a4c91afeba2b674d
Add test for full Bucket
leonkoens/dht
tests/test_routing.py
tests/test_routing.py
import unittest from dht.node import Node, SelfNode from dht.routing import BucketTree from dht.utils import hash_string from dht.bucket import NodeAlreadyAddedException, BucketIsFullException from dht import settings class BucketTreeTest(unittest.TestCase): """ BucketTree.find_node(key) BucketTree.add_n...
import unittest from dht.node import Node, SelfNode from dht.routing import BucketTree from dht.utils import hash_string from dht.bucket import NodeAlreadyAddedException from dht import settings class BucketTreeTest(unittest.TestCase): """ BucketTree.find_node(key) BucketTree.add_node(node) """ ...
mit
Python
7d165a1855339ee06c2982176ab33c2f02f75b35
return the most 8 colors
LanceGin/haishoku
haishoku/main.py
haishoku/main.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2017-05-15 15:10 # @Author : Gin (gin.lance.inside@hotmail.com) # @Link : # @Disc : haishoku main function import sys import haishoku import alg def main(): # get image_path from system args image_path = sys.argv[1] # get colors tuple with...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2017-05-15 15:10 # @Author : Gin (gin.lance.inside@hotmail.com) # @Link : # @Disc : haishoku main function import sys import haishoku import alg def main(): # get image_path from system args image_path = sys.argv[1] # get colors tuple with...
mit
Python
90a19e1987903456eb890164d558e57c6ebf2ae0
Set up media for deploy.
flavoi/diventi,flavoi/diventi
config/settings/production.py
config/settings/production.py
import dj_database_url from .base import * # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = get_env_variable('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases DATABA...
import dj_database_url from .base import * # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = get_env_variable('SECRET_KEY') # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases DATABA...
apache-2.0
Python
b7c7391fb6f7ec8863d60cb448e24fc0cd18f3cb
Optimize timer.sleep and timer.timeout creation and execution.
abusesa/idiokit
idiokit/timer.py
idiokit/timer.py
from __future__ import absolute_import from functools import partial from . import idiokit from ._selectloop import cancel as selectloop_cancel, sleep as selectloop_sleep def _cancel(node, _): selectloop_cancel(node) def sleep(delay): event = idiokit.Event() node = selectloop_sleep(delay, event.succee...
from . import idiokit, _selectloop @idiokit.stream def sleep(delay): event = idiokit.Event() node = _selectloop.sleep(delay, event.succeed) try: yield event except: _selectloop.cancel(node) raise class Timeout(Exception): pass @idiokit.stream def timeout(timeout, stream...
mit
Python
35a62db7ac313e87ae6a7ff6471e302678232466
Bump version for pypi to 0.2018.01.05.0208
oduwsdl/ipwb,oduwsdl/ipwb,oduwsdl/ipwb,oduwsdl/ipwb
ipwb/__init__.py
ipwb/__init__.py
__version__ = '0.2018.01.05.0208'
__version__ = '0.2018.01.05.0029'
mit
Python
27bc3fc887092bd01b7ecbf69ce6b86e92287e20
fix adding BGGClientLegacy to exports (prefer using extend with a list in case there could be more classes to add)
lcosmin/boardgamegeek
boardgamegeek/__init__.py
boardgamegeek/__init__.py
# coding: utf-8 """ .. module:: boardgamegeek :platform: Unix, Windows :synopsis: interface to boardgamegeek.com .. moduleauthor:: Cosmin Luță <q4break@gmail.com> """ from .api import BGGClient, BGGChoose, BGGRestrictDomainTo, BGGRestrictPlaysTo, BGGRestrictSearchResultsTo, BGGRestrictCollectionTo from .legacy_...
# coding: utf-8 """ .. module:: boardgamegeek :platform: Unix, Windows :synopsis: interface to boardgamegeek.com .. moduleauthor:: Cosmin Luță <q4break@gmail.com> """ from .api import BGGClient, BGGChoose, BGGRestrictDomainTo, BGGRestrictPlaysTo, BGGRestrictSearchResultsTo, BGGRestrictCollectionTo from .legacy_...
bsd-3-clause
Python
acf3819d433f3ebc3d3eed17c61f2542f7429f8e
Use __file__ instead of inspect, for compatibility with frozen environments
mikedh/trimesh,mikedh/trimesh,dajusc/trimesh,mikedh/trimesh,mikedh/trimesh,dajusc/trimesh
trimesh/resources/__init__.py
trimesh/resources/__init__.py
import os # find the current absolute path to this directory _pwd = os.path.dirname(__file__) def get_resource(name, decode=True): """ Get a resource from the trimesh/resources folder. Parameters ------------- name : str File path relative to `trimesh/resources` decode : bool Wh...
import os import inspect # find the current absolute path using inspect _pwd = os.path.dirname( os.path.abspath( inspect.getfile( inspect.currentframe()))) def get_resource(name, decode=True): """ Get a resource from the trimesh/resources folder. Parameters ------------- ...
mit
Python
c20d34b0f26c8b97e8ac44bcab241f74ee8bbccf
fix import
theno/fabsetup,theno/fabsetup
fabfile/setup/calibre.py
fabfile/setup/calibre.py
import os.path from fabsetup.fabutils import task from fabsetup.fabutils import subtask, run from fabsetup.utils import flo @task def calibre(): '''Install or update calibre (ebook management tool). More info: https://calibre-ebook.com/ https://calibre-ebook.com/download_linux https://gith...
import os.path from fabsetup.fabutils import custom_task as task # here, every task is custom from fabsetup.fabutils import subtask, run from fabsetup.utils import flo @task def calibre(): '''Install or update calibre (ebook management tool). More info: https://calibre-ebook.com/ https://calibr...
mit
Python
83dabc9fc1142e1575843d3a68c6241185543936
Make the warning for SQLite not being supported a print instead of an exception.
duointeractive/django-fabtastic
fabtastic/db/__init__.py
fabtastic/db/__init__.py
from django.conf import settings from fabtastic.db import util db_engine = util.get_db_setting('ENGINE') if 'postgresql_psycopg2' in db_engine: from fabtastic.db.postgres import * else: print("Fabtastic WARNING: DB engine '%s' is not supported" % db_engine)
from django.conf import settings from fabtastic.db import util db_engine = util.get_db_setting('ENGINE') if 'postgresql_psycopg2' in db_engine: from fabtastic.db.postgres import * else: raise NotImplementedError("Fabtastic: DB engine '%s' is not supported" % db_engine)
bsd-3-clause
Python
5ea4f15c7228ab41fefea437a9aeca6f1791e55b
make sure the verb storage is initialised
smuser90/Stream-Framework,smuser90/Stream-Framework,izhan/Stream-Framework,turbolabtech/Stream-Framework,SergioChan/Stream-Framework,izhan/Stream-Framework,SergioChan/Stream-Framework,SergioChan/Stream-Framework,nikolay-saskovets/Feedly,Anislav/Stream-Framework,turbolabtech/Stream-Framework,turbolabtech/Stream-Framewor...
feedly/verbs/__init__.py
feedly/verbs/__init__.py
from feedly.utils import get_class_from_string VERB_DICT = dict() def get_verb_storage(): from feedly import settings if settings.FEEDLY_VERB_STORAGE == 'in-memory': return VERB_DICT else: return get_class_from_string(settings.FEEDLY_VERB_STORAGE)() def register(verb): ''' Regi...
from feedly.utils import get_class_from_string VERB_DICT = dict() def get_verb_storage(): from feedly import settings if settings.FEEDLY_VERB_STORAGE == 'in-memory': return VERB_DICT else: return get_class_from_string(settings.FEEDLY_VERB_STORAGE) def register(verb): ''' Regist...
bsd-3-clause
Python
7a1ae8e1a0c614ddb2e3f9e441ab2fb97ed5fc25
Bump to 6.0.0
cheekiatng/titanium_mobile,jhaynie/titanium_mobile,ashcoding/titanium_mobile,AngelkPetkov/titanium_mobile,mano-mykingdom/titanium_mobile,ashcoding/titanium_mobile,cheekiatng/titanium_mobile,jhaynie/titanium_mobile,ashcoding/titanium_mobile,jhaynie/titanium_mobile,cheekiatng/titanium_mobile,AngelkPetkov/titanium_mobile,...
build/titanium_version.py
build/titanium_version.py
version = '6.0.0' module_apiversion = '2'
version = '5.2.0' module_apiversion = '2'
apache-2.0
Python
8decbeb6a3928668581d0f671ae87a21f7d2c6b7
add in sentinel support
ortoo/schooldata
update_school_data.py
update_school_data.py
import governorhub import logging import redis import os import loggly.handlers from datetime import datetime from similar_schools import update_similar_schools from dfe_data import update_dfe_data logging.basicConfig(level=logging.INFO) # Turn off requests INFO level logging requests_log = logging.getLogger("reques...
import governorhub import logging import redis import os import loggly.handlers from datetime import datetime from similar_schools import update_similar_schools from dfe_data import update_dfe_data logging.basicConfig(level=logging.INFO) # Turn off requests INFO level logging requests_log = logging.getLogger("reques...
mit
Python
9348b7df383e7a9fa970b7ad0692f7be280f6b79
fix scoping issue with exception handling
felliott/scrapi,fabianvf/scrapi,felliott/scrapi,erinspace/scrapi,erinspace/scrapi,fabianvf/scrapi,CenterForOpenScience/scrapi,CenterForOpenScience/scrapi
scrapi/util.py
scrapi/util.py
from datetime import datetime import six import pytz import time import logging logger = logging.getLogger() xrange = six.moves.xrange def timestamp(): return pytz.utc.localize(datetime.utcnow()).isoformat() def copy_to_unicode(element): """ used to transform the lxml version of unicode to a standard...
from datetime import datetime import six import pytz import time import logging logger = logging.getLogger() xrange = six.moves.xrange def timestamp(): return pytz.utc.localize(datetime.utcnow()).isoformat() def copy_to_unicode(element): """ used to transform the lxml version of unicode to a standard...
apache-2.0
Python
a3ac67a4174e01b893aa1c3ae72c251ee59fcec8
format code
ponty/entrypoint2,ponty/entrypoint2
doc/generate-doc.py
doc/generate-doc.py
import glob import logging import os from easyprocess import EasyProcess from entrypoint2 import entrypoint commands = [ "python3 -m entrypoint2.examples.hello 1", "python3 -m entrypoint2.examples.hello 1 --two 1", "python3 -m entrypoint2.examples.hello 1 -t 1", "python3 -m entrypoint2.examples.hello...
import logging import os import glob from entrypoint2 import entrypoint from easyprocess import EasyProcess commands = [ "python3 -m entrypoint2.examples.hello 1", "python3 -m entrypoint2.examples.hello 1 --two 1", "python3 -m entrypoint2.examples.hello 1 -t 1", "python3 -m entrypoint2.examples.hello...
bsd-2-clause
Python
b4e97efee571c51d686668de480a23abf3da4f7a
Move color selection of rows outside the addstr() method
leonkoens/utop
utop/views/content.py
utop/views/content.py
from utop import model from utop.model import Model from utop.view import View class Content(View): """ Draw the content of utop. This is the list of users with the other selected columns. """ def draw(self): """ Draw the whole pane. """ self.window.erase() self.draw_headers()...
from utop import model from utop.model import Model from utop.view import View class Content(View): """ Draw the content of utop. This is the list of users with the other selected columns. """ def draw(self): """ Draw the whole pane. """ self.window.erase() self.draw_headers()...
bsd-3-clause
Python
a92a611875f065a49f90897e8f113081d7882e4b
Optimize OpCompositeConstruct -> OpConstantComposite
kristerw/spirv-tools
constprop.py
constprop.py
"""Change instructions having only constant operands to a constant. This pass tends to leave dead instructions, so dead_code_elim should be run after.""" import ir def optimize_OpCompositeConstruct(module, inst): new_inst = ir.Instruction(module, 'OpConstantComposite', module.new_id(), ...
"""Change instructions having only constant operands to a constant. This pass tends to leave dead instructions, so dead_code_elim should be run after.""" import ir def optimize_OpCompositeExtract(module, inst): result_inst = inst.operands[0].inst for index in inst.operands[1:]: result_inst = result_i...
mit
Python
208f90497c7a6867f9aeece84b1161926ca1627b
Simplify nethack protocol to a single method.
ryansb/netHUD
nethud/nh_client.py
nethud/nh_client.py
""" An example client. Run simpleserv.py first before running this. """ import json from twisted.internet import reactor, protocol # a client protocol class EchoClient(protocol.Protocol): """Once connected, send a message, then print the result.""" def connectionMade(self): self.send_message('auth...
""" An example client. Run simpleserv.py first before running this. """ import json from twisted.internet import reactor, protocol # a client protocol class EchoClient(protocol.Protocol): """Once connected, send a message, then print the result.""" def connectionMade(self): data = '{"register": {"...
mit
Python
de4842fd3c587e74dcaa7ea4df036e1e7ab93b1a
Update compass.py
kived/plyer,kivy/plyer,KeyWeeUsr/plyer,johnbolia/plyer,kostyll/plyer,kivy/plyer,cleett/plyer,johnbolia/plyer,kived/plyer,cleett/plyer,KeyWeeUsr/plyer,KeyWeeUsr/plyer,kivy/plyer,kostyll/plyer
plyer/platforms/ios/compass.py
plyer/platforms/ios/compass.py
''' iOS Compass --------------------- ''' from plyer.facades import Compass from pyobjus import autoclass class IosCompass(Compass): def __init__(self): super(IosCompass, self).__init__() self.bridge = autoclass('bridge').alloc().init() self.bridge.motionManager.setMagnetometerUpdateInte...
''' iOS Compass --------------------- ''' from plyer.facades import Compass from pyobjus import autoclass Hardware = autoclass('org.renpy.Ios.Hardware') class IosCompass(Compass): def __init__(self): super(IosCompass, self).__init__() self.bridge = autoclass('bridge').alloc().init() sel...
mit
Python
986a5815d890f6b52747319b477fca17742b19bf
fix ConnectionWithTrace not using its timeout parameter
jvf/scalaris,caijieming-baidu/scalaris,caijieming-baidu/scalaris,scalaris-team/scalaris,caijieming-baidu/scalaris,jvf/scalaris,jvf/scalaris,caijieming-baidu/scalaris,caijieming-baidu/scalaris,jvf/scalaris,caijieming-baidu/scalaris,caijieming-baidu/scalaris,scalaris-team/scalaris,jvf/scalaris,jvf/scalaris,scalaris-team/...
python-api/scalaris_userdevguide_jsontrace.py
python-api/scalaris_userdevguide_jsontrace.py
#!/usr/bin/python # Copyright 2011 Zuse Institute Berlin # # 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 ...
#!/usr/bin/python # Copyright 2011 Zuse Institute Berlin # # 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 ...
apache-2.0
Python
a2ea05ee144dbcab22d17897df3ba01467b47497
test of meanvT for cold population for power-law rotation curves
jobovy/galpy,jobovy/galpy,jobovy/galpy,followthesheep/galpy,followthesheep/galpy,jobovy/galpy,followthesheep/galpy,followthesheep/galpy
nose/test_diskdf.py
nose/test_diskdf.py
# Tests of the diskdf module: distribution functions from Dehnen (1999) import numpy from galpy.df import dehnendf, shudf # Tests for cold population, flat rotation curve: <vt> =~ v_c def test_dehnendf_cold_flat_vt(): df= dehnendf(profileParams=(0.3333333333333333,1.0, 0.01), beta=0.,correct=False...
# Tests of the diskdf module: distribution functions from Dehnen (1999) import numpy from galpy.df import dehnendf, shudf # Tests for cold population, flat rotation curve: <vt> =~ v_c def test_dehnendf_cold_flat_vt(): df= dehnendf(profileParams=(0.3333333333333333,1.0, 0.01), beta=0.,correct=False...
bsd-3-clause
Python
881e693d16d12109c3ececffda61336b020c172a
Test sqlite and mongoquery variations.
ericdill/databroker,ericdill/databroker
portable_mds/tests/conftest.py
portable_mds/tests/conftest.py
import os import tempfile import shutil import tzlocal import pytest import portable_mds.mongoquery.mds import portable_mds.sqlite.mds variations = [portable_mds.mongoquery.mds, portable_mds.sqlite.mds] @pytest.fixture(params=variations, scope='function') def mds_all(request): '''Provide a function ...
import os import tempfile import shutil import tzlocal import pytest from ..mongoquery.mds import MDS @pytest.fixture(params=[1], scope='function') def mds_all(request): '''Provide a function level scoped FileStore instance talking to temporary database on localhost:27017 with both v0 and v1. ''' ver...
bsd-3-clause
Python
d789c4c1a5ef3f2d2003a18aa58cbafe86d5c85e
update funmath
misssoft/Fan.Python
src/funmath.py
src/funmath.py
import sys from math import factorial from math import sqrt def calculateFactorial(num): x = range(0, num) f = [factorial(x) for x in range(num)] l = [len(str(factorial(x))) for x in range(num)] for i in range(num): print({i},"-", {f[i]}, "-", {l[i]} ) def calculateFactorialinloop(num): f...
import sys from math import factorial def calculateFactorial(num): x = range(0, num) f = [factorial(x) for x in range(num)] l = [len(str(factorial(x))) for x in range(num)] for i in range(num): print({i},"-", {f[i]}, "-", {l[i]} ) def main(x): try: calculateFactorial((x)) exce...
mit
Python
25e060157e11d68a6fcfe826af437f7ff105d161
bump version
piotrjakimiak/cmsplugin-text-ng,360youlun/cmsplugin-text-ng,KristianOellegaard/cmsplugin-text-ng
cmsplugin_text_ng/__init__.py
cmsplugin_text_ng/__init__.py
__version__ = '0.5'
__version__ = '0.4'
bsd-3-clause
Python
84a21b5ee1868454f53c33e28d3da18bd499d8a2
update comments
devlights/try-python
trypython/stdlib/secrets01.py
trypython/stdlib/secrets01.py
# coding: utf-8 """ secretsモジュールについてのサンプルです。 """ import secrets import string from trypython.common.commoncls import SampleBase from trypython.common.commonfunc import pr class Sample(SampleBase): def exec(self): # # secretsモジュールは、3.6から追加された標準モジュール # 文字通りセキュアな値を管理することを目的としている # ...
# coding: utf-8 """ secretsモジュールについてのサンプルです。 """ import secrets import string from trypython.common.commoncls import SampleBase from trypython.common.commonfunc import pr class Sample(SampleBase): def exec(self): # # secretsモジュールは、3.6から追加された標準モジュール # 文字通りセキュアな値を管理することを目的としている # ...
mit
Python
f436e8f4fe774e73f59e0cda93be08dad9c1ce7d
convert &amp; to &, this sucks
akrherz/pyWWA,akrherz/pyWWA
util/get_text_from_nwschat.py
util/get_text_from_nwschat.py
''' Hit the NWSChat quasi web service to get the text IEM may have missed :( https://nwschat.weather.gov/vtec/json-text.php? year=2014&wfo=DDC&phenomena=SV&eventid=0020&significance=W ''' import urllib2 import sys import json year = sys.argv[1] wfo = sys.argv[2] phenomena = sys.argv[3] sig...
''' Hit the NWSChat quasi web service to get the text IEM may have missed :( https://nwschat.weather.gov/vtec/json-text.php? year=2014&wfo=DDC&phenomena=SV&eventid=0020&significance=W ''' import urllib2 import sys import json year = sys.argv[1] wfo = sys.argv[2] phenomena = sys.argv[3] sig...
mit
Python
64b85415f540efd64132c263c6de240bfc3b0bd8
Fix unused import error.
synicalsyntax/zulip,timabbott/zulip,punchagan/zulip,showell/zulip,shubhamdhama/zulip,zulip/zulip,eeshangarg/zulip,showell/zulip,brainwane/zulip,zulip/zulip,kou/zulip,timabbott/zulip,andersk/zulip,synicalsyntax/zulip,andersk/zulip,punchagan/zulip,punchagan/zulip,hackerkid/zulip,eeshangarg/zulip,rht/zulip,synicalsyntax/z...
analytics/migrations/0015_clear_duplicate_counts.py
analytics/migrations/0015_clear_duplicate_counts.py
# -*- coding: utf-8 -*- from django.db import migrations from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps from django.db.models import Count, Sum def clear_duplicate_counts(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None: ...
# -*- coding: utf-8 -*- from django.db import migrations from django.db.backends.postgresql_psycopg2.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps from django.db.models import Count, Sum, Q def clear_duplicate_counts(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None: ...
apache-2.0
Python
70b9de8e589776ba90c000addfa24dffe5915b33
Set version to v3.0.0a32
spacy-io/spaCy,honnibal/spaCy,honnibal/spaCy,spacy-io/spaCy,spacy-io/spaCy,explosion/spaCy,explosion/spaCy,spacy-io/spaCy,explosion/spaCy,spacy-io/spaCy,honnibal/spaCy,explosion/spaCy,explosion/spaCy,spacy-io/spaCy,honnibal/spaCy,explosion/spaCy
spacy/about.py
spacy/about.py
# fmt: off __title__ = "spacy-nightly" __version__ = "3.0.0a32" __release__ = True __download_url__ = "https://github.com/explosion/spacy-models/releases/download" __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json" __projects__ = "https://github.com/explosion/projec...
# fmt: off __title__ = "spacy-nightly" __version__ = "3.0.0a31" __release__ = True __download_url__ = "https://github.com/explosion/spacy-models/releases/download" __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json" __projects__ = "https://github.com/explosion/projec...
mit
Python
d90398643933999d734a09bc3637a8723d5de2c3
Increment version
explosion/spaCy,spacy-io/spaCy,explosion/spaCy,spacy-io/spaCy,recognai/spaCy,spacy-io/spaCy,explosion/spaCy,honnibal/spaCy,recognai/spaCy,recognai/spaCy,honnibal/spaCy,explosion/spaCy,aikramer2/spaCy,aikramer2/spaCy,recognai/spaCy,spacy-io/spaCy,spacy-io/spaCy,explosion/spaCy,aikramer2/spaCy,honnibal/spaCy,aikramer2/sp...
spacy/about.py
spacy/about.py
# inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy-nightly' __version__ = '2.0.0a16' __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython...
# inspired from: # https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy-nightly' __version__ = '2.0.0a15' __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython...
mit
Python
9da597780ee7115effb9662c5d36d1b6553c1cfb
Fix typo
enram/data-repository,enram/infrastructure,enram/data-repository,enram/data-repository,enram/infrastructure,enram/data-repository
file_transfer/baltrad_to_s3.py
file_transfer/baltrad_to_s3.py
""" Baltrad to S3 porting """ import sys from creds import URL, LOGIN, PASSWORD import datamover as dm def main(): """Run data transfer from Baltrad to S3""" # ------------------ # DATA TRANSFER # ------------------ # Setup the connection of the Baltrad and S3 btos = dm.BaltradToS3(URL, L...
""" Baltrad to S3 porting """ import sys from creds import URL, LOGIN, PASSWORD import datamover as dm def main(): """Run data transfer from Baltrad to S3""" # ------------------ # DATA TRANSFER # ------------------ # Setup the connection of the Baltrad and S3 btos = dm.BaltradToS3(URL, L...
mit
Python
46a222127bcfc30f89f8f43bac45c00fb677adf9
Add Interfaces column to plugins output. (#1667)
Danfocus/Flexget,OmgOhnoes/Flexget,qk4l/Flexget,malkavi/Flexget,Danfocus/Flexget,poulpito/Flexget,crawln45/Flexget,malkavi/Flexget,tobinjt/Flexget,Danfocus/Flexget,sean797/Flexget,ianstalk/Flexget,jawilson/Flexget,gazpachoking/Flexget,jawilson/Flexget,tobinjt/Flexget,JorisDeRieck/Flexget,LynxyssCZ/Flexget,malkavi/Flexg...
flexget/plugins/cli/plugins.py
flexget/plugins/cli/plugins.py
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin import logging from colorclass.toggles import disable_all_colors from flexget import options from flexget.event import event from flexget.plugin import get_plugins from fl...
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin import logging from colorclass.toggles import disable_all_colors from flexget import options from flexget.event import event from flexget.plugin import get_plugins from fl...
mit
Python
bd5c215c1c481f3811753412bca6b509bb00591a
Improve the way that import middlewares
lord63/me-api
me_api/app.py
me_api/app.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from flask import Flask from werkzeug.utils import import_string from me_api.middleware.me import me from me_api.cache import cache middlewares = { 'douban': 'me_api.middleware.douban:douban_api', 'githu...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from flask import Flask from .middleware.me import me from .cache import cache def _register_module(app, module): if module == 'douban': from .middleware import douban app.register_blueprint(...
mit
Python
bbe83e43feef903d3ac4485280f7b6f01a50b369
Fix bug: closes a batch if the data ends and the batch size is not reach
google/megalista,google/megalista
megalist_dataflow/utils/group_by_execution_dofn.py
megalist_dataflow/utils/group_by_execution_dofn.py
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
apache-2.0
Python
af6f4868f4329fec75e43fe0cdcd1a7665c5238a
Remove comment on attaching cloud debugger
DXCanas/content-curation,DXCanas/content-curation,DXCanas/content-curation,DXCanas/content-curation
contentcuration/manage.py
contentcuration/manage.py
#!/usr/bin/env python import os import sys if __name__ == "__main__": #import warnings #warnings.filterwarnings('ignore', message=r'Module .*? is being added to sys\.path', append=True) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "contentcuration.settings") from django.core.management import exe...
#!/usr/bin/env python import os import sys # Attach Python Cloud Debugger if __name__ == "__main__": #import warnings #warnings.filterwarnings('ignore', message=r'Module .*? is being added to sys\.path', append=True) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "contentcuration.settings") from dj...
mit
Python
256c321398daaad749905a466ba1a7dcd75711aa
Update to exception handling
TJKessler/ECNet
ecnet/error_utils.py
ecnet/error_utils.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ecnet/error_utils.py # v.1.3.0.dev1 # Developed in 2018 by Travis Kessler <Travis_Kessler@student.uml.edu> # # This program contains functions for error calculations # import numpy as np from math import sqrt # Calculates the root-mean-square error between two arg...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ecnet/error_utils.py # v.1.3.0.dev1 # Developed in 2018 by Travis Kessler <Travis_Kessler@student.uml.edu> # # This program contains functions for error calculations # import numpy as np from math import sqrt # Calculates the root-mean-square error between two arg...
mit
Python
948b9987afa95d7a69bd61f3d8f9fea822323b01
Implement equality check for DraftText nodes
gasman/wagtaildraftail,gasman/wagtaildraftail,gasman/wagtaildraftail,springload/wagtaildraftail,gasman/wagtaildraftail,springload/wagtaildraftail,springload/wagtaildraftail,springload/wagtaildraftail
wagtaildraftail/draft_text.py
wagtaildraftail/draft_text.py
from __future__ import absolute_import, unicode_literals import json from django.utils.functional import cached_property from draftjs_exporter.html import HTML from wagtail.wagtailcore.rich_text import RichText from wagtaildraftail.settings import get_exporter_config class DraftText(RichText): def __init__(se...
from __future__ import absolute_import, unicode_literals import json from draftjs_exporter.html import HTML from wagtail.wagtailcore.rich_text import RichText from wagtaildraftail.settings import get_exporter_config class DraftText(RichText): def __init__(self, value, **kwargs): super(DraftText, self)....
mit
Python
fa06c892c163054e3420e756acaa0b3af7863b88
add import test for OpenCV
rjw57/calibtools
setup.py
setup.py
import os import sys from setuptools import setup, find_packages from calibtools import __version__ as version try: import cv2 HAVE_OPENCV=True except ImportError: HAVE_OPENCV=False if not HAVE_OPENCV: sys.stderr.write("OpenCV's Python binding is required for calibtools\n") sys.exit(1) def read...
import os from setuptools import setup, find_packages from calibtools import __version__ as version def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = 'calibtools', version = version, description = 'Camera calibration tools for Python', long_descript...
mit
Python
dcca2dcdba9698c4a354cdb3de68c37a07ba0b1e
Create 0.2 release
bridadan/pyOCD,wjzhang/pyOCD,NordicSemiconductor/pyOCD,matthewelse/pyOCD,devanlai/pyOCD,devanlai/pyOCD,geky/pyOCDgdb,geky/pyDAPLink,flit/pyOCD,adamgreen/pyOCD,0xc0170/pyOCD,mesheven/pyOCD,geky/pyOCD,tgarc/pyOCD,wjzhang/pyOCD,mbedmicro/pyOCD,tgarc/pyOCD,wjzhang/pyOCD,matthewelse/pyOCD,matthewelse/pyOCD,pyocd/pyOCD,olivi...
setup.py
setup.py
""" mbed CMSIS-DAP debugger Copyright (c) 2012-2013 ARM Limited 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 ...
""" mbed CMSIS-DAP debugger Copyright (c) 2012-2013 ARM Limited 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
cca77827bcd80064bbcf47d362e367c8fe8dbcbb
Bump version 1.0.10
arteria/django-compat,arteria/django-compat
setup.py
setup.py
# -*- encoding: utf-8 -*- import os, sys from setuptools import setup from setuptools import find_packages # Make the open function accept encodings in python < 3.x if sys.version_info[0] < 3: import codecs open = codecs.open # pylint: disable=redefined-builtin # Utility function to read the README file. # U...
# -*- encoding: utf-8 -*- import os, sys from setuptools import setup from setuptools import find_packages # Make the open function accept encodings in python < 3.x if sys.version_info[0] < 3: import codecs open = codecs.open # pylint: disable=redefined-builtin # Utility function to read the README file. # U...
mit
Python
920d1946c6188b822d4d0f318741fdc784dbf0b9
change version #
kod3r/tracestack,danrobinson/tracestack
setup.py
setup.py
#!/usr/bin/env python try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): long_description = open('README.md').read() from setuptools import setup setup(name='tracestack', version='0.2.4', description='Instantly search your Python error me...
#!/usr/bin/env python try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): long_description = open('README.md').read() from setuptools import setup setup(name='tracestack', version='0.2.3', description='Instantly search your Python error me...
mit
Python
a6c28c06523db2bdec94c426c9e345fc163a0bb9
Update URLs to reflect new structure
Schevo/schevogtk
setup.py
setup.py
__version__ = '1.0a3' from setuptools import setup, find_packages import sys, os import textwrap setup( name="SchevoGtk", version=__version__, description="Schevo tools for PyGTK", long_description=textwrap.dedent(""" Provides integration between Schevo_ and PyGTK_. .. _Schevo: http://sch...
__version__ = '1.0a3' from setuptools import setup, find_packages import sys, os import textwrap setup( name="SchevoGtk", version=__version__, description="Schevo tools for PyGTK", long_description=textwrap.dedent(""" Provides integration between Schevo_ and PyGTK_. .. _Schevo: http://sch...
mit
Python
15f63ad1656c96aa05367efcaee45d30e74fbf6d
make pylint required for running tests so it installs on circle automatically
pantheon-systems/docker_iptables
setup.py
setup.py
from setuptools import setup setup( name='docker_iptables', scripts=['docker_iptables.py'], version='0.0.1', tests_require=['pylint', 'mock'], test_suite="tests", )
from setuptools import setup setup( name='docker_iptables', scripts=['docker_iptables.py'], version='0.0.1', tests_require=['mock'], test_suite="tests", )
mit
Python
ad53baaa9af1e18068c0e4924c123ffa6cd5dde0
Bump version number
AntoineGagne/cmus-notify
setup.py
setup.py
#! /usr/bin/env python3 import os from setuptools import setup def get_long_description(file_name: str) -> str: """Gets the long description from the specified file's name. :param file_name: The file's name :type file_name: str :return: The content of the file :rtype: str """ return open...
#! /usr/bin/env python3 import os from setuptools import setup def get_long_description(file_name: str) -> str: """Gets the long description from the specified file's name. :param file_name: The file's name :type file_name: str :return: The content of the file :rtype: str """ return open...
mit
Python
d1fc96d56e0efcf89a4269d4c0db90ecc7e89ba7
Add `south_migrations` to packages in setup.py
samuelcolvin/django-watson,arteria/django-watson,dbaxa/django-watson,etianen/django-watson,philippeowagner/django-watson,dbaxa/django-watson,etianen/django-watson,arteria/django-watson,samuelcolvin/django-watson,philippeowagner/django-watson
setup.py
setup.py
import os from distutils.core import setup setup( name = "django-watson", version = "1.1.6", description = "Full-text multi-table search application for Django. Easy to install and use, with good performance.", long_description = open(os.path.join(os.path.dirname(__file__), "README.markdown")).read(),...
import os from distutils.core import setup setup( name = "django-watson", version = "1.1.6", description = "Full-text multi-table search application for Django. Easy to install and use, with good performance.", long_description = open(os.path.join(os.path.dirname(__file__), "README.markdown")).read(),...
bsd-3-clause
Python
0e6e323c1f5952827382148662ec38bf0a076459
Bump to 0.7.2 dev
hydralabs/pyamf,hydralabs/pyamf,thijstriemstra/pyamf,thijstriemstra/pyamf
setup.py
setup.py
#!/usr/bin/env python # Copyright (c) The PyAMF Project. # See LICENSE.txt for details. # import ordering is important import setupinfo from setuptools import setup, find_packages version = (0, 7, 2, 'dev') name = "PyAMF" description = "AMF support for Python" long_description = setupinfo.read('README.rst') url = ...
#!/usr/bin/env python # Copyright (c) The PyAMF Project. # See LICENSE.txt for details. # import ordering is important import setupinfo from setuptools import setup, find_packages version = (0, 7, 2) name = "PyAMF" description = "AMF support for Python" long_description = setupinfo.read('README.rst') url = "http:/...
mit
Python
aa8ca0d4e7a88d6d5f67289c36652c182092f81e
Update setup.py to work for new packages
cpcloud/numba,gmarkall/numba,sklam/numba,stuartarchibald/numba,shiquanwang/numba,jriehl/numba,cpcloud/numba,seibert/numba,sklam/numba,pitrou/numba,stuartarchibald/numba,stuartarchibald/numba,pombredanne/numba,seibert/numba,ssarangi/numba,stefanseefeld/numba,shiquanwang/numba,stuartarchibald/numba,shiquanwang/numba,GaZ3...
setup.py
setup.py
import re import sys from os.path import join from distutils.core import setup, Extension import numpy if sys.version_info[:2] < (2, 5): raise Exception('numba requires Python 2.5 or greater.') kwds = {} kwds['long_description'] = open('README').read() setup( name = "numba", author = "Travis Oliphant",...
import re import sys from os.path import join from distutils.core import setup, Extension import numpy if sys.version_info[:2] < (2, 5): raise Exception('numba requires Python 2.5 or greater.') kwds = {} kwds['long_description'] = open('README').read() setup( name = "numba", author = "Travis Oliphant",...
bsd-2-clause
Python
c93de3b854772e6792c2af5f132b762d9cedfb11
Add missing dependency
tiagocoutinho/qredis
setup.py
setup.py
from setuptools import setup, find_packages def get_readme(name="README.md"): with open(name) as f: return f.read() requirements = ["redis", "qtpy", "PyQt5", "msgpack", "msgpack-numpy"] setup( name="qredis", version="0.5.1", description="Qt based Redis GUI", long_description=get_readme...
from setuptools import setup, find_packages def get_readme(name="README.md"): with open(name) as f: return f.read() requirements = ["redis", "PyQt5", "msgpack", "msgpack-numpy"] setup( name="qredis", version="0.5.1", description="Qt based Redis GUI", long_description=get_readme(), ...
mit
Python
d03bf67ad8fec7b8c96b4f0c238cd423e2f577c0
read version from landsat folder
developmentseed/landsat-util,DougFirErickson/landsat-util,njwilson23/landsat-util,ircwaves/landsat-util,mileswwatkins/landsat-util,simonemurzilli/landsat-util,RoboDonut/landsat-util,jalalomary/landsat-util,DougFirErickson/landsat-util,simonemurzilli/landsat-util,citterio/landsat-util,mileswwatkins/landsat-util
setup.py
setup.py
#!/usr/bin/env python # Landsat Util # License: CC0 1.0 Universal try: from setuptools import setup except ImportError: from distutils.core import setup from landsat import __version__ def readme(): with open("README.rst") as f: return f.read() test_requirements = [ 'nose==1.3.3' ] setup( ...
#!/usr/bin/env python # Landsat Util # License: CC0 1.0 Universal try: from setuptools import setup except ImportError: from distutils.core import setup def readme(): with open("README.rst") as f: return f.read() test_requirements = [ 'nose==1.3.3' ] setup( name="landsat", version='0...
cc0-1.0
Python
7a707cc66380482ef6fb5da93e42b898f7983dcc
add nosetests
knoguchi/acc
setup.py
setup.py
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='acc', version=version, description="An implementation of Accounting Pattern by Martin Fowler", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classif...
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='acc', version=version, description="An implementation of Accounting Pattern by Martin Fowler", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classif...
apache-2.0
Python
035dc6c0815089e728b5ee78738c4795367b1d94
switch to pyannote.core 1.0 and pyannote.database 0.12
hbredin/pyannote-generators,pyannote/pyannote-generators
setup.py
setup.py
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2016-2017 CNRS # 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 limita...
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2016-2017 CNRS # 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 limita...
mit
Python
f4b640783135ec93eb0bf0403c4be042144a0303
add dependencies to `install_requires`.
thruflo/pyramid_weblayer
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from os.path import dirname, join as join_path from setuptools import setup, find_packages def _read(file_name): sock = open(file_name) text = sock.read() sock.close() return text setup( name = 'pyramid_weblayer', version = '0.8.5', desc...
#!/usr/bin/env python # -*- coding: utf-8 -*- from os.path import dirname, join as join_path from setuptools import setup, find_packages def _read(file_name): sock = open(file_name) text = sock.read() sock.close() return text setup( name = 'pyramid_weblayer', version = '0.8.5', desc...
unlicense
Python
ba9bfad2d015b615e89e74957f6f3cc6567b27e8
Use kfac_jax@HEAD due to API changes in the latest version of JAX.
deepmind/ferminet
setup.py
setup.py
# Copyright 2020 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
# Copyright 2020 DeepMind Technologies Limited and Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
apache-2.0
Python
8df792393f0efec6df074318a0f65cddf8eb2335
change version to 0.0.11
xclxxl414/rqalpha,xclxxl414/rqalpha
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages from pip.req import parse_requirements setup( name='rqbacktest', version='0.0.11', description='Python Distribution Utilities', packages=find_packages(exclude=[]), author='ricequant', author_email='public@ricequant.com', u...
#!/usr/bin/env python from setuptools import setup, find_packages from pip.req import parse_requirements setup( name='rqbacktest', version='0.0.10', description='Python Distribution Utilities', packages=find_packages(exclude=[]), author='ricequant', author_email='public@ricequant.com', u...
apache-2.0
Python
b48ec701926fe449540fb9f794da5c11808b825b
change my email address
kevinoid/py-gnupg
setup.py
setup.py
import GnuPGInterface import distutils.core long_description = """ GnuPGInterface is a Python module to interface with GnuPG. It concentrates on interacting with GnuPG via filehandles, providing access to control GnuPG via versatile and extensible means. This module is based on GnuPG::Interface, a Perl module by the ...
import GnuPGInterface import distutils.core long_description = """ GnuPGInterface is a Python module to interface with GnuPG. It concentrates on interacting with GnuPG via filehandles, providing access to control GnuPG via versatile and extensible means. This module is based on GnuPG::Interface, a Perl module by the ...
lgpl-2.1
Python
cbc94311219ca7edea6f86fcc429dd7f6e4bc894
Remove old trove classifiers for Python 3.3 and 3.4
Eyepea/aiosip,sangoma/aiosip
setup.py
setup.py
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ 'multidict>=2.0', 'pyquery', 'aiodns' ] test_requirements = [ 'py...
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ 'multidict>=2.0', 'pyquery', 'aiodns' ] test_requirements = [ 'py...
apache-2.0
Python
347279a0e82769eac6430806f7adb9c907155465
add qimvn to setup.py
dmerejkowsky/qibuild,aldebaran/qibuild,dmerejkowsky/qibuild,dmerejkowsky/qibuild,aldebaran/qibuild,aldebaran/qibuild,dmerejkowsky/qibuild,dmerejkowsky/qibuild,aldebaran/qibuild
setup.py
setup.py
## Copyright (c) 2012, 2013 Aldebaran Robotics. All rights reserved. ## Use of this source code is governed by a BSD-style license that can be ## found in the COPYING file. import os from distutils.core import setup packages = [ "qisys", "qisys.actions", "qisrc", "qisrc.actions", "qibuild", "q...
## Copyright (c) 2012, 2013 Aldebaran Robotics. All rights reserved. ## Use of this source code is governed by a BSD-style license that can be ## found in the COPYING file. import os from distutils.core import setup packages = [ "qisys", "qisys.actions", "qisrc", "qisrc.actions", "qibuild", "q...
bsd-3-clause
Python
8312ac22c444b895bab9f2a3707e4d4a7ccc40b2
Remove sphinx pinning since 1.7.6 has been released.
vertexproject/synapse,vertexproject/synapse,vertexproject/synapse
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0a1', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.com/vertexproje...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0a1', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.com/vertexproje...
apache-2.0
Python
9ebc0daaa86cb268f395670f6b38cd3fdc0dbc4e
Add packages to setup to run tests
annpaul89/datetime_utils
setup.py
setup.py
from setuptools import setup setup( name='datetime_utils', version='0.1', license='MIT', packages=[ 'datetime_utils', ], url='https://github.com/annpaul89/datetime_utils', author='Ann Paul', author_email='ann.mpaul@gmail.com', description='Python functions for common operati...
from distutils.core import setup setup( name='datetime_utils', version='0.1', packages=[ 'datetime_utils', ], url='https://github.com/annpaul89/datetime_utils', description='Python functions for common operations on datetime instances', install_requires=[ 'pytz>=2016.4', ...
mit
Python
5a3e0859fe7774fc8caee54ff498f324a89be9e3
install command line scripts to bin/ when installing the package
williballenthin/python-evtx
setup.py
setup.py
#!/usr/bin/env python import setuptools long_description="""python-evtx is a pure Python parser for recent Windows Event Log files (those with the file extension ".evtx"). The module provides programmatic access to the File and Chunk headers, record templates, and event entries. For example, you can use python-evtx t...
#!/usr/bin/env python import setuptools long_description="""python-evtx is a pure Python parser for recent Windows Event Log files (those with the file extension ".evtx"). The module provides programmatic access to the File and Chunk headers, record templates, and event entries. For example, you can use python-evtx t...
apache-2.0
Python
c793fe512903fd381e7af0e3d85e375c6653e8fb
remove unique constraint in old migration which leads the migration to break if data is pressent in the database
TheMangalex/pyfeedback,TheMangalex/pyfeedback,TheMangalex/pyfeedback,d120/pyfeedback,TheMangalex/pyfeedback,TheMangalex/pyfeedback,d120/pyfeedback,d120/pyfeedback,d120/pyfeedback
src/feedback/migrations/0030_auto_20170108_1300.py
src/feedback/migrations/0030_auto_20170108_1300.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-08 13:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('feedback', '0029_auto_20161227_1258'), ] operations = [ migrations.AlterFie...
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-08 13:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('feedback', '0029_auto_20161227_1258'), ] operations = [ migrations.AlterFie...
agpl-3.0
Python
c956c0e42657a13642f2bee989ca538ecd43691d
change license to BSD to resolve Twine issue
watsonpy/watson-di
setup.py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import setup, find_packages import watson.di name = 'watson-di' description = 'Dependency Injection made simple.' version = watson.di.__version__ def read(filename, as_list=False): with open(os.path.join(os.path.dirname(__file__), filename)) as f: content...
# -*- coding: utf-8 -*- import os from setuptools import setup, find_packages import watson.di name = 'watson-di' description = 'Dependency Injection made simple.' version = watson.di.__version__ def read(filename, as_list=False): with open(os.path.join(os.path.dirname(__file__), filename)) as f: content...
bsd-3-clause
Python
1c4d4806ada333f3939d84be0fcb0a8df4cd059b
Bump to 0.0.3-dev
cdunklau/fbemissary
setup.py
setup.py
import os from setuptools import setup, find_packages requires = [ 'aiohttp', 'attrs', ] classifiers = [ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3 :: Only', 'Framework :: AsyncIO', 'Topic :: Internet', 'Topic...
import os from setuptools import setup, find_packages requires = [ 'aiohttp', 'attrs', ] classifiers = [ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3 :: Only', 'Framework :: AsyncIO', 'Topic :: Internet', 'Topic...
apache-2.0
Python
ae1aa047d7d25e6ea6e357ce31dfc085b341f4a7
add bruker_test_data subdirs
kaustubhmote/nmrglue,jjhelmus/nmrglue,kaustubhmote/nmrglue,jjhelmus/nmrglue
setup.py
setup.py
#!/usr/bin/env python # setup script for nmrglue from distutils.core import setup from codecs import open from os import path, walk here = path.abspath(path.dirname(__file__)) # get long description from README with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( ...
#!/usr/bin/env python # setup script for nmrglue from distutils.core import setup from codecs import open from os import path, walk here = path.abspath(path.dirname(__file__)) # get long description from README with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( ...
bsd-3-clause
Python
c52b2fc3f4a8cb20b2a692e4ae94575fa849c251
Update version to v0.5.0.
edelooff/sqlalchemy-json
setup.py
setup.py
import os from setuptools import setup def contents(filename): here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, filename)) as fp: return fp.read() setup( name="sqlalchemy-json", version="0.5.0", author="Elmer de Looff", author_email="elmer.delooff@gmail....
import os from setuptools import setup def contents(filename): here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, filename)) as fp: return fp.read() setup( name="sqlalchemy-json", version="0.4.0", author="Elmer de Looff", author_email="elmer.delooff@gmail....
bsd-2-clause
Python