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 |
|---|---|---|---|---|---|---|---|---|
d134e9c461af2c9b67673aa97fc15a302dcbc58c | Add comments | PierreRust/beets,sadatay/beets,madmouser1/beets,krig/beets,mosesfistos1/beetbox,diego-plan9/beets,LordSputnik/beets,sampsyo/beets,ibmibmibm/beets,YetAnotherNerd/beets,mathstuf/beets,shamangeorge/beets,moodboom/beets,pdf/beets,dfc/beets,kareemallen/beets,LordSputnik/beets,shamangeorge/beets,tima/beets,pkess/beets,mathst... | beetsplug/smartplaylist.py | beetsplug/smartplaylist.py | # This file is part of beets.
# Copyright 2013, Dang Mai <contact@dangmai.net>.
#
# 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 the right... | from __future__ import print_function
from beets.plugins import BeetsPlugin
from beets import config, ui
from beets.util import normpath, syspath
import os
database_changed = False
library = None
def update_playlists(lib):
print("Updating smart playlists...")
playlists = config['smartplaylist']['playlists']... | mit | Python |
d043eef098be68690b9d6cd5790b667cdb2d825b | Add comments about security issue | stuffy-the-dragon/wKRApp,bafana5/wKRApp,stuffy-the-dragon/wKRApp,stuffy-the-dragon/wKRApp,bafana5/wKRApp,bafana5/wKRApp | runserver.py | runserver.py | from wKRApp import app
# 2 security flaws, need to sort out
# 1. the key should be randomy generated
# 2. the key should be set in a config file that is then imported in.
app.secret_key = "my precious"
app.run(debug=True)
| from wKRApp import app
app.secret_key = "my precious" # 2 security flaws, need to sort out
app.run(debug=True)
| mit | Python |
db4b77ee5be099cf0ac751956d010777e1ff6640 | Add DefinitionNotFoundError | onitake/Uranium,onitake/Uranium | UM/Settings/SettingsError.py | UM/Settings/SettingsError.py | # Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
class SettingsError(Exception):
pass
class InvalidFileError(SettingsError):
def __init__(self, path):
super().__init__("File {0} is an invalid settings file".format(path))
class InvalidVersionError(Sett... | # Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
class SettingsError(Exception):
pass
class InvalidFileError(SettingsError):
def __init__(self, path):
super().__init__("File {0} is an invalid settings file".format(path))
class InvalidVersionError(Sett... | agpl-3.0 | Python |
f5fcebed51923422aa82ac35576350889129e377 | Sort interstitial_sites by their voronoi radii. | henniggroup/MPInterfaces,joshgabriel/MPInterfaces,joshgabriel/MPInterfaces,henniggroup/MPInterfaces | twod_materials/ion_intercalation/startup.py | twod_materials/ion_intercalation/startup.py | from pymatgen.core.structure import Structure
from pymatgen.core.periodic_table import Element
from pymatgen.analysis.defects.point_defects import (
Interstitial, ValenceIonicRadiusEvaluator
)
import operator
def inject_ions(ion, atomic_fraction):
"""
Adds ions to a percentage of interstitial sites i... | from pymatgen.core.structure import Structure
from pymatgen.core.periodic_table import Element
from pymatgen.analysis.defects.point_defects import (
Interstitial, ValenceIonicRadiusEvaluator
)
def inject_ions(ion, atomic_fraction):
"""
Adds ions to a percentage of interstitial sites into the POSCAR
... | mit | Python |
cf439125f2350597f66796c89a088cd443ed77cd | Fix search results disappearing after they are viewed | yrro/igd-exporter,yrro/temper-exporter,yrro/temper-exporter,yrro/igd-exporter | igd_exporter/exporter.py | igd_exporter/exporter.py | import cgi
import socket
import urllib
import wsgiref.util
import prometheus_client
from . import igd
def wsgi_app(environ, start_response):
'''
Base WSGI application that routes requests to other applications.
'''
name = wsgiref.util.shift_path_info(environ)
if name == '':
return front(e... | import cgi
import socket
import urllib
import wsgiref.util
import prometheus_client
from . import igd
def wsgi_app(environ, start_response):
'''
Base WSGI application that routes requests to other applications.
'''
name = wsgiref.util.shift_path_info(environ)
if name == '':
return front(e... | mit | Python |
50d2bb0908ea3b45d1ab6da494953a88362a67d4 | add value summary | polltooh/CNN_LSTM | save_func.py | save_func.py | import tensorflow as tf
import time
def add_train_var():
""" add all trainable variable to summary"""
for var in tf.trainable_variables():
tf.histogram_summary(var.op.name, var)
def add_loss(loss_scope = 'losses'):
""" add all losses to summary """
for l in tf.get_collection(loss_scope):
tf.scalar_summary(l.o... | import tensorflow as tf
import time
def add_train_var():
""" add all trainable variable to summary"""
for var in tf.trainable_variables():
tf.histogram_summary(var.op.name, var)
def add_loss(loss_scope = 'losses'):
""" add all losses to summary """
for l in tf.get_collection(loss_scope):
tf.scalar_summary(l.o... | mit | Python |
d67249d0efb074ebcf5e5b20c5f21d92ffe81dae | Bump version to 0.1.7 | gams/openkongqi,gams/openkongqi | openkongqi/__init__.py | openkongqi/__init__.py | # -*- coding: utf-8 -*-
__version__ = '0.1.7'
__author__ = "Stefan Berder"
__contact__ = 'stefan@measureofqualty.com'
| # -*- coding: utf-8 -*-
__version__ = '0.1.6'
__author__ = "Stefan Berder"
__contact__ = 'stefan@measureofqualty.com'
| apache-2.0 | Python |
e8cae50b026f9136b9b5afc35a92a74f33937205 | Update 1482-maritime_boundary-buffered_land.py | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | integration-test/1482-maritime_boundary-buffered_land.py | integration-test/1482-maritime_boundary-buffered_land.py | from . import FixtureTest
# Adds tests for OSM features (but not NE features)
class MaritimeBoundary(FixtureTest):
def test_usa_canada_country_boundary(self):
# country boundary of USA and Canada
self.load_fixtures([
'https://www.openstreetmap.org/relation/148838',
'https:... | from . import FixtureTest
# Adds tests for OSM features (but not NE features)
class MaritimeBoundary(FixtureTest):
def test_usa_canada_country_boundary(self):
# country boundary of USA and Canada
self.load_fixtures([
'https://www.openstreetmap.org/relation/148838',
'https:... | mit | Python |
5cf2e157da810dfe9e0436f9e76f5f339444031a | Add doxygen to the linux bootstrap | EricssonResearch/cerbero,ylatuya/cerbero,BigBrother-International/gst-cerbero,multipath-rtp/cerbero,freedesktop-unofficial-mirror/gstreamer-sdk__cerbero,nirbheek/cerbero-old,EricssonResearch/cerbero,shoreflyer/cerbero,ikonst/cerbero,shoreflyer/cerbero,jackjansen/cerbero-2013,freedesktop-unofficial-mirror/gstreamer__cer... | cerbero/bootstrap/linux.py | cerbero/bootstrap/linux.py | # cerbero - a multi-platform build system for Open Source software
# Copyright (C) 2012 Andoni Morales Alastruey <ylatuya@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; eit... | # cerbero - a multi-platform build system for Open Source software
# Copyright (C) 2012 Andoni Morales Alastruey <ylatuya@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; eit... | lgpl-2.1 | Python |
0543774cffde0ad6eafe4bebc77df04c03027cf7 | Remove container specific import from __init__.py (#14) | SergeyPirogov/testcontainers-python | testcontainers/__init__.py | testcontainers/__init__.py | from testcontainers.core.generic import GenericContainer
from testcontainers.core.waiting_utils import wait_container_is_ready, wait_for
| from testcontainers.selenium import BrowserWebDriverContainer
from testcontainers.mysql import MySqlContainer
from testcontainers.postgres import PostgresContainer
from testcontainers.oracle import OracleDbContainer
from testcontainers.core.generic import GenericContainer
from testcontainers.core.waiting_utils import w... | apache-2.0 | Python |
3c54116f4c31a7e7392bdd7fd8fdc6773621d9f6 | fix bad fix of sync contrib-base branch :-P (#9088) | demisto/content,demisto/content,demisto/content,VirusTotal/content,demisto/content,VirusTotal/content,VirusTotal/content,VirusTotal/content | Utils/contribution_sync/sync_contrib_base.py | Utils/contribution_sync/sync_contrib_base.py | #!/usr/bin/env python3
import os
import sys
import urllib3
from github import Github, enable_console_debug_logging
from github.Repository import Repository
from typing import List
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def get_master_commit_sha(repo: Repository) -> str: # noqa: E999
... | #!/usr/bin/env python3
import os
import sys
import urllib3
from github import Github, enable_console_debug_logging
from github.Repository import Repository
from typing import List
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def get_master_commit_sha(repo: Repository) -> str: # noqa: E999
... | mit | Python |
315c3bc1e2961dc9de5d77fed5d232f106e59968 | improve a couple of comments | alces/gitlab-rest-client | users.py | users.py | '''
working with gitlab's users
'''
from crud import Crud
from utils import filter_dict
import random
class Users (Crud):
def __init__(self):
Crud.__init__(self, 'users', lambda x: x['username'])
# generate random password
rand_pass = lambda s, l = 10: ''.join(chr(random.randint(64, 122)) for x in xrange(l))
... | '''
working with gitlab's users
'''
from crud import Crud
from utils import filter_dict
import random
class Users (Crud):
def __init__(self):
Crud.__init__(self, 'users', lambda x: x['username'])
# generate random password
rand_pass = lambda s, l = 10: ''.join(chr(random.randint(64, 122)) for x in xrange(l))
... | bsd-2-clause | Python |
c63681e6fc3d5e336a13698a473f4aaf61fdb9b1 | Remove width and x arguments until fixed positioning. | RyanMcG/center_dmenu | center_dmenu.py | center_dmenu.py | #!/usr/bin/env python2
# Copyright 2013 Ryan McGowan
#
# 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... | #!/usr/bin/env python2
# Copyright 2013 Ryan McGowan
#
# 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... | apache-2.0 | Python |
999ae0c40a7a101672c735a552a7e79fcc6e9f96 | Add desk_update url to admin urls | caneruguz/osf.io,monikagrabowska/osf.io,mfraezz/osf.io,aaxelb/osf.io,pattisdr/osf.io,baylee-d/osf.io,mattclark/osf.io,acshi/osf.io,alexschiller/osf.io,adlius/osf.io,mfraezz/osf.io,TomBaxter/osf.io,mluo613/osf.io,TomBaxter/osf.io,acshi/osf.io,felliott/osf.io,chrisseto/osf.io,sloria/osf.io,Johnetordoff/osf.io,CenterForOp... | admin/common_auth/urls.py | admin/common_auth/urls.py | from __future__ import absolute_import
from django.conf.urls import url
from django.core.urlresolvers import reverse_lazy
from django.contrib.auth.views import password_change, password_change_done
from admin.common_auth import views
urlpatterns = [
url(r'^login/?$', views.LoginView.as_view(), name='login'),
... | from __future__ import absolute_import
from django.conf.urls import url
from django.core.urlresolvers import reverse_lazy
from django.contrib.auth.views import password_change, password_change_done
from admin.common_auth import views
urlpatterns = [
url(r'^login/?$', views.LoginView.as_view(), name='login'),
... | apache-2.0 | Python |
bce0c2853e6c7901280c9989893e6230ec29dbe4 | Allow util.retry to return result of task coroutine | aiorchestra/aiorchestra | aiorchestra/core/utils.py | aiorchestra/core/utils.py | # Author: Denys Makogon
#
# 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 t... | # Author: Denys Makogon
#
# 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 t... | apache-2.0 | Python |
54c18ae0c6372922fbf108e4ad659fa81ec66284 | Fix test on Win | platformio/platformio,platformio/platformio-core,platformio/platformio-core | tests/commands/pkg/test_exec.py | tests/commands/pkg/test_exec.py | # Copyright (c) 2014-present PlatformIO <contact@platformio.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 appli... | # Copyright (c) 2014-present PlatformIO <contact@platformio.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 appli... | apache-2.0 | Python |
ab13d8157090e452c1cffec2b917800cd9c5ed56 | Fix whitespace problem and always replace window['title'] None, with empty string | alexoneill/py3status,ultrabug/py3status,vvoland/py3status,valdur55/py3status,guiniol/py3status,tobes/py3status,Andrwe/py3status,ultrabug/py3status,Andrwe/py3status,valdur55/py3status,docwalter/py3status,valdur55/py3status,ultrabug/py3status,guiniol/py3status,tobes/py3status | py3status/modules/window_title.py | py3status/modules/window_title.py | # -*- coding: utf-8 -*-
"""
Display the current window title.
Configuration parameters:
cache_timeout: How often we refresh this module in seconds (default 0.5)
format: display format for window_title (default '{title}')
max_width: If width of title is greater, shrink it and add '...'
(default 120)... | # -*- coding: utf-8 -*-
"""
Display the current window title.
Configuration parameters:
cache_timeout: How often we refresh this module in seconds (default 0.5)
format: display format for window_title (default '{title}')
max_width: If width of title is greater, shrink it and add '...'
(default 120)... | bsd-3-clause | Python |
39824268150fb5b9cb86c599dad81b18f7ef7142 | Add the Award and AwardGrant models to the init set | leotrubach/sourceforge-allura,apache/incubator-allura,lym/allura-git,apache/allura,Bitergia/allura,heiths/allura,Bitergia/allura,leotrubach/sourceforge-allura,heiths/allura,heiths/allura,apache/allura,leotrubach/sourceforge-allura,apache/incubator-allura,lym/allura-git,Bitergia/allura,apache/incubator-allura,leotrubach... | pyforge/pyforge/model/__init__.py | pyforge/pyforge/model/__init__.py | # -*- coding: utf-8 -*-
"""The application's model objects"""
from .session import ProjectSession
from .project import Theme, Neighborhood, NeighborhoodFile, Project, ProjectFile, AppConfig, SearchConfig, ScheduledMessage
from .discuss import Discussion, Thread, PostHistory, Post, Attachment
from .artifact import Arti... | # -*- coding: utf-8 -*-
"""The application's model objects"""
from .session import ProjectSession
from .project import Theme, Neighborhood, NeighborhoodFile, Project, ProjectFile, AppConfig, SearchConfig, ScheduledMessage
from .discuss import Discussion, Thread, PostHistory, Post, Attachment
from .artifact import Arti... | apache-2.0 | Python |
803368f1741a9558ea84092dc975c1a10f51fa79 | Change url in dashboard administrador | erikiado/jp2_online,erikiado/jp2_online,erikiado/jp2_online | administracion/urls.py | administracion/urls.py | from django.conf.urls import url
from .views import admin_main_dashboard, admin_users_dashboard, \
admin_users_create, admin_users_edit, admin_users_edit_form, \
admin_users_delete_modal, admin_users_delete, list_studies
app_name = 'administracion'
# Urls en espanol
urlpatterns =... | from django.conf.urls import url
from .views import admin_main_dashboard, admin_users_dashboard, \
admin_users_create, admin_users_edit, admin_users_edit_form, \
admin_users_delete_modal, admin_users_delete, list_studies
app_name = 'administracion'
# Urls en espanol
urlpatterns =... | mit | Python |
b488b884cf802546a795b0084003a9200e0d646b | Implement update_cmd in cli | hackebrot/cibopath | cibopath/cli.py | cibopath/cli.py | # -*- coding: utf-8 -*-
import logging
import click
from cibopath import __version__
from cibopath.user_config import UserConfig
from cibopath.log import create_logger
from cibopath.scraper import load_templates
from cibopath.templates import dump
@click.group()
@click.pass_context
@click.option(
'-v', '--verb... | # -*- coding: utf-8 -*-
import logging
import click
from cibopath import __version__
from cibopath.user_config import UserConfig
from cibopath.log import create_logger
@click.group()
@click.pass_context
@click.option(
'-v', '--verbose',
is_flag=True, help='Print debug information'
)
@click.option(
'-c'... | bsd-3-clause | Python |
30230a29ea8ee40121a83bb5a3203f80a296cf0e | Bump to v0.5.0 | bradwright/flask-mustachejs,bradleywright/flask-mustachejs,bradleywright/flask-mustachejs,bradwright/flask-mustachejs | setup.py | setup.py | """
----------------
Flask-Mustache
----------------
`Mustache`__ integration for Flask.
__ http://mustache.github.com/
Flask-Mustache adds template helpers and context processors to assist
Flask developers with integrating the Mustache library into their
development process.
"""
from setuptools import setup
se... | """
----------------
Flask-Mustache
----------------
`Mustache`__ integration for Flask.
__ http://mustache.github.com/
Flask-Mustache adds template helpers and context processors to assist
Flask developers with integrating the Mustache library into their
development process.
"""
from setuptools import setup
se... | bsd-3-clause | Python |
b617b778d2e442d8e2ab6a2098f7799bfb83bf85 | Bump version to 0.8.1 | skwashd/python-acquia-cloud | setup.py | setup.py | #!/usr/bin/env python
"""Setup ACAPI package."""
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__name__), "README.md")) as f:
long_description = f.read()
setup(
name="acapi",
version="0.8.1",
description="Acquia Cloud API client.",
long_description=long_descriptio... | #!/usr/bin/env python
"""Setup ACAPI package."""
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__name__), "README.md")) as f:
long_description = f.read()
setup(
name="acapi",
version="0.8.0",
description="Acquia Cloud API client.",
long_description=long_descriptio... | mit | Python |
c7db3806a57935921c733609a265e505654ab601 | Add Korean language | alephobjects/Cura,alephobjects/Cura,alephobjects/Cura | Cura/util/resources.py | Cura/util/resources.py | #coding:utf8
"""
Helper module to get easy access to the path where resources are stored.
This is because the resource location is depended on the packaging method and OS
"""
__copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
import os
import sys
import glob
import gettext
... | #coding:utf8
"""
Helper module to get easy access to the path where resources are stored.
This is because the resource location is depended on the packaging method and OS
"""
__copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
import os
import sys
import glob
import gettext
... | agpl-3.0 | Python |
ff8b7ddbea7980c8464957880a1ae07afed49c64 | Update antibody_lot.py | ENCODE-DCC/snovault,4dn-dcic/fourfront,T2DREAM/t2dream-portal,hms-dbmi/fourfront,philiptzou/clincoded,hms-dbmi/fourfront,ENCODE-DCC/encoded,kidaa/encoded,T2DREAM/t2dream-portal,kidaa/encoded,philiptzou/clincoded,hms-dbmi/fourfront,philiptzou/clincoded,philiptzou/clincoded,4dn-dcic/fourfront,ClinGen/clincoded,4dn-dcic/f... | src/encoded/audit/antibody_lot.py | src/encoded/audit/antibody_lot.py | from ..auditor import (
AuditFailure,
audit_checker,
)
@audit_checker('antibody_lot')
def audit_antibody_lot_target(value, system):
'''
Antibody lots should not have associated characterizations
for different target labels
'''
if value['status'] in ['not pursued', 'deleted']:
retur... | from ..auditor import (
AuditFailure,
audit_checker,
)
@audit_checker('antibody_lot')
def audit_antibody_lot_target(value, system):
'''
Antibody lots should not have associated characterizations
for different target labels
'''
if value['status'] in ['not pursued', 'deleted']:
retur... | mit | Python |
bff7cf3d3cc2b636fb46a37b1edb60f7935e646e | Update consultants model | renalreg/radar,renalreg/radar,renalreg/radar,renalreg/radar | radar/radar/models/consultants.py | radar/radar/models/consultants.py | from sqlalchemy import Integer, Column, String
from sqlalchemy.orm import relationship
from radar.database import db
class Consultant(db.Model):
__tablename__ = 'consultants'
id = Column(Integer, primary_key=True)
title = Column(String, nullable=False)
first_name = Column(String, nullable=False)
... | from sqlalchemy import Integer, Column, String
from sqlalchemy.orm import relationship
from radar.database import db
class Consultant(db.Model):
__tablename__ = 'consultants'
id = Column(Integer, primary_key=True)
first_name = Column(String, nullable=False)
last_name = Column(String, nullable=False)... | agpl-3.0 | Python |
c26dc22512e9b36a497930df544891cd0d96310b | Remove useless function | james9909/IntroCTF,james9909/IntroCTF,james9909/IntroCTF,james9909/IntroCTF,james9909/IntroCTF,james9909/IntroCTF | utils.py | utils.py | import string
import random
from werkzeug.security import generate_password_hash, check_password_hash
from flask import current_app as app, url_for, redirect, session
from functools import wraps
def hash_password(s):
return generate_password_hash(s)
def check_password(hashed_password, try_password):
return ch... | import string
import random
from werkzeug.security import generate_password_hash, check_password_hash
from flask import current_app as app, url_for, redirect, session
from functools import wraps
def hash_password(s):
return generate_password_hash(s)
def check_password(hashed_password, try_password):
return ch... | mit | Python |
3450712ec629c1720b6a6af28835d95a91b8fce7 | Use classifiers to specify the license. | jongracecox/anybadge,jongracecox/anybadge | setup.py | setup.py | #!/usr/bin/python
import os
import re
from setuptools import setup
from m2r import parse_from_file
import restructuredtext_lint
# Parser README.md into reStructuredText format
rst_readme = parse_from_file('README.md')
# Validate the README, checking for errors
errors = restructuredtext_lint.lint(rst_readme)
# Raise ... | #!/usr/bin/python
import os
import re
from setuptools import setup
from m2r import parse_from_file
import restructuredtext_lint
# Parser README.md into reStructuredText format
rst_readme = parse_from_file('README.md')
# Validate the README, checking for errors
errors = restructuredtext_lint.lint(rst_readme)
# Raise ... | mit | Python |
22cb94902f5bbe32d636009c2599eae7aa66282c | fix extraction(closes #4319) | ozburo/youtube-dl,Tatsh/youtube-dl,remitamine/youtube-dl,vinegret/youtube-dl,nyuszika7h/youtube-dl,Orochimarufan/youtube-dl,Orochimarufan/youtube-dl,rg3/youtube-dl,remitamine/youtube-dl,yan12125/youtube-dl,yan12125/youtube-dl,spvkgn/youtube-dl,vinegret/youtube-dl,spvkgn/youtube-dl,rg3/youtube-dl,nyuszika7h/youtube-dl,o... | youtube_dl/extractor/stretchinternet.py | youtube_dl/extractor/stretchinternet.py | from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import int_or_none
class StretchInternetIE(InfoExtractor):
_VALID_URL = r'https?://portal\.stretchinternet\.com/[^/]+/(?:portal|full)\.htm\?.*?\beventId=(?P<id>\d+)'
_TEST = {
'url': 'https://portal.stretchinternet... | from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import int_or_none
class StretchInternetIE(InfoExtractor):
_VALID_URL = r'https?://portal\.stretchinternet\.com/[^/]+/portal\.htm\?.*?\beventId=(?P<id>\d+)'
_TEST = {
'url': 'https://portal.stretchinternet.com/umar... | unlicense | Python |
2b8535c34d92089fe84203f1f06e82472397eaea | Update version number | fgaudin/aemanager,fgaudin/aemanager,fgaudin/aemanager | core/context_processors.py | core/context_processors.py | from django.conf import settings
def common(request=None):
return {'logo_url': settings.LOGO_URL,
'parent_site_url': settings.PARENT_SITE_URL,
'version': '1.4',
'GOOGLE_API_KEY': settings.GOOGLE_API_KEY,
'demo_mode': settings.DEMO}
| from django.conf import settings
def common(request=None):
return {'logo_url': settings.LOGO_URL,
'parent_site_url': settings.PARENT_SITE_URL,
'version': '1.3',
'GOOGLE_API_KEY': settings.GOOGLE_API_KEY,
'demo_mode': settings.DEMO}
| agpl-3.0 | Python |
62ccee03efd3fb5d53139f89ae974708d3a82e32 | Add switches for cProfiling and verbosity output | OceanPARCELS/parcels,OceanPARCELS/parcels | tests/example_peninsula.py | tests/example_peninsula.py | from parcels import NEMOGrid, Particle, ParticleSet
from argparse import ArgumentParser
def pensinsula_example(filename, npart, degree=3, verbose=False):
"""Example configuration of particle flow around an idealised Peninsula
:arg filename: Basename of the input grid file set
:arg npart: Number of partic... | from parcels import NEMOGrid, Particle, ParticleSet
from argparse import ArgumentParser
def pensinsula_example(filename, npart, degree=3):
"""Example configuration of particle flow around an idealised Peninsula
:arg filename: Basename of the input grid file set
:arg npart: Number of particles to intialis... | mit | Python |
d5ed783c7dc691d7d0b847aa243989b626d90e9b | Add return None | bowen0701/algorithms_data_structures | alg_decimal_to_base.py | alg_decimal_to_base.py | from __future__ import print_function
from ds_stack import Stack
def convert_decimal_to_base2(dec_num):
"""Convert decimal number to binary number."""
rem_stack = Stack()
while dec_num > 0:
rem = dec_num % 2
rem_stack.push(rem)
dec_num = dec_num // 2
bin_str = ''
whil... | from __future__ import print_function
from ds_stack import Stack
def convert_decimal_to_base2(dec_num):
"""Convert decimal number to binary number."""
rem_stack = Stack()
while dec_num > 0:
rem = dec_num % 2
rem_stack.push(rem)
dec_num = dec_num // 2
bin_str = ''
whil... | bsd-2-clause | Python |
0205e519c2662bf33b59e20668f90a17a50c29e1 | Add github URL to setup.py | google/ml_collections,google/ml_collections | setup.py | setup.py | # Copyright 2020 The ML Collections 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 applicable law or agreed... | # Copyright 2020 The ML Collections 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 applicable law or agreed... | apache-2.0 | Python |
f2b796b94ea1cd9c71500521404ef39d10ca091d | improve to_big_endian_binary function | ethereum/pyethereum,ethermarket/pyethereum,holiman/pyethereum,ethereum/pyethereum,shahankhatch/pyethereum,ebuchman/daoist_protocol,shahankhatch/pyethereum,harlantwood/pyethereum,jnnk/pyethereum,ddworken/pyethereum,karlfloersch/pyethereum,ethers/pyethereum,pipermerriam/pyethereum,inzem77/pyethereum,vaporry/pyethereum,ck... | utils.py | utils.py | def to_big_endian_binary(val):
s = '%x' % val
if len(s) & 1:
s = '0' + s
return s.decode('hex')
| from binascii import unhexlify
def to_big_endian_binary(val):
# one (1) hex digit per four (4) bits
width = val.bit_length()
# unhexlify wants an even multiple of eight (8) bits, but we don't
# want more digits than we need (hence the ternary-ish 'or')
width += 8 - ((width % 8) or 8)
# format... | mit | Python |
4d85b334298bcfc58c9bfd2bdfae123302caa48e | Bump coveralls from 2.1.0 to 2.1.1 (#18) | glidernet/python-ogn-client | setup.py | setup.py | #!/usr/bin/env python3
from os import path
from setuptools import setup, find_packages
from ogn.client.settings import PACKAGE_VERSION
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f... | #!/usr/bin/env python3
from os import path
from setuptools import setup, find_packages
from ogn.client.settings import PACKAGE_VERSION
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f... | agpl-3.0 | Python |
8fc2e0ebf9fe8f753f7e9cdc6ad67ed22604e022 | support img src attr too | xsteadfastx/pelican-plugins,olgabot/pelican-plugins,farseerfc/pelican-plugins,ziaa/pelican-plugins,pestrickland/pelican-plugins,andreas-h/pelican-plugins,Neurita/pelican-plugins,joachimneu/pelican-plugins,cmacmackin/pelican-plugins,florianjacob/pelican-plugins,jfosorio/pelican-plugins,yuanboshe/pelican-plugins,lazycode... | interlinks/interlinks.py | interlinks/interlinks.py | # -*- coding: utf-8 -*-
"""
Interlinks
=========================
This plugin allows you to include "interwiki" or shortcuts links into the blog, as keyword>rest_of_url
"""
from bs4 import BeautifulSoup
from pelican import signals
import re
interlinks = {}
def getSettings (generator):
global interlinks
interl... | # -*- coding: utf-8 -*-
"""
Interlinks
=========================
This plugin allows you to include "interwiki" or shortcuts links into the blog, as keyword>rest_of_url
"""
from bs4 import BeautifulSoup
from pelican import signals
import re
interlinks = {}
def getSettings (generator):
global interlinks
interl... | agpl-3.0 | Python |
24f93c560c2fa19c512d2d88b8e1219690e2db68 | Bump the version up to 0.8 for release | cognitect/transit-python,dand-oss/transit-python,cognitect/transit-python,dand-oss/transit-python | setup.py | setup.py | #!/usr/bin/env python
## Copyright 2014 Cognitect. 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... | #!/usr/bin/env python
## Copyright 2014 Cognitect. 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 |
f6a2a21d91e06d417da8cd93fb2a28f28385ed19 | fix test | piotrmaslanka/satella,piotrmaslanka/satella | tests/test_coding/test_algos.py | tests/test_coding/test_algos.py | # coding=UTF-8
from __future__ import print_function, absolute_import, division
import six
import unittest
from satella.coding import merge_dicts
class TestMergeDicts(unittest.TestCase):
def test_merge_dicts(self):
tak = merge_dicts({'kupujemy': 'tak'}, {'kupujemy': 'nie'})
nie = merge_dicts({'ku... | # coding=UTF-8
from __future__ import print_function, absolute_import, division
import six
import unittest
from satella.coding import merge_dicts
class TestMergeDicts(unittest.TestCase):
def test_merge_dicts(self):
tak = merge_dicts({'kupujemy': 'tak'}, {'kupujemy': 'nie'})
nie = merge_dicts({'ku... | mit | Python |
b09197a38ebbf32abe45a787c475ae6706beaa53 | set ignore property | huahbo/pyamg,kidaa/pyamg,huahbo/pyamg,pyamg/pyamg,huahbo/pyamg,pyamg/pyamg,huahbo/pyamg,kidaa/pyamg,kidaa/pyamg,pyamg/pyamg,kidaa/pyamg | pyamg/relaxation/info.py | pyamg/relaxation/info.py | """
Relaxation methods
------------------
The multigrid cycle is formed by two complementary procedures: relaxation and
coarse-grid correction. The role of relaxation is to rapidly damp oscillatory
(high-frequency) errors out of the approximate solution. When the error is
smooth, it can then be accurately represent... | """
Relaxation methods
------------------
The multigrid cycle is formed by two complementary procedures: relaxation and
coarse-grid correction. The role of relaxation is to rapidly damp oscillatory
(high-frequency) errors out of the approximate solution. When the error is
smooth, it can then be accurately represent... | mit | Python |
be8625d983f147385956079c1c1b4bbc2b3ccb17 | fix flake8 | pnuckowski/aioresponses | aioresponses/compat.py | aioresponses/compat.py | # -*- coding: utf-8 -*-
import asyncio # noqa: F401
import sys
from typing import Dict, Optional, Tuple, Union # noqa
from urllib.parse import parse_qsl, urlencode
from aiohttp import __version__ as aiohttp_version, StreamReader
from multidict import MultiDict
from pkg_resources import parse_version
from yarl import... | # -*- coding: utf-8 -*-
import asyncio # noqa: F401
import sys
from typing import Dict, Optional, Tuple, Union # noqa
from urllib.parse import parse_qsl, urlencode
from aiohttp import __version__ as aiohttp_version, StreamReader
from multidict import MultiDict
from pkg_resources import parse_version
from yarl import... | mit | Python |
5eabe658d3c20f25fa78d1fc4fe2d2d692390e75 | Make requests.get(...) a bit more robust | ericvrp/PowerToThePeople,ericvrp/PowerToThePeople | PowerToThePeople.py | PowerToThePeople.py | #!/usr/bin/env python
import serial
from requests import get
from requests.exceptions import Timeout, ConnectionError
from time import time, strftime, asctime
from sys import stdout
from subprocess import check_output
try:
from config import *
except ImportError:
from defaults import *
print 'Warning! copy default... | #!/usr/bin/env python
import serial
from requests import get
from time import time, strftime, asctime
from sys import stdout
from subprocess import check_output
try:
from config import *
except ImportError:
from defaults import *
print 'Warning! copy defaults.py to config.py and edit that file!'
PVOUTPUT_INTERVAL... | mit | Python |
20db5eb25162665e817bef993ea84bbd1b9e3a45 | Update setup.py | oemof/feedinlib | setup.py | setup.py | import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developer group',
author_email='birgit.schachler@rl-institut.de',
lice... | # -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developer group',
author_email... | mit | Python |
888f2ee4c423e18a40cbcaec3eb9f4f29f993e44 | add mock payment as default for OrderPaymentFactory | onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,jfterpstra/bluebottle | bluebottle/test/factory_models/payments.py | bluebottle/test/factory_models/payments.py | import factory
from bluebottle.payments.models import Payment, OrderPayment
from bluebottle.payments_logger.models import PaymentLogEntry
from .orders import OrderFactory
class OrderPaymentFactory(factory.DjangoModelFactory):
FACTORY_FOR = OrderPayment
payment_method = 'mock'
amount = 100
order = fa... | import factory
from bluebottle.payments.models import Payment, OrderPayment
from bluebottle.payments_logger.models import PaymentLogEntry
from .orders import OrderFactory
class OrderPaymentFactory(factory.DjangoModelFactory):
FACTORY_FOR = OrderPayment
amount = 100
order = factory.SubFactory(OrderFactor... | bsd-3-clause | Python |
ed13a4d6ea21842568d1ef63797d50169b6dd040 | Add rpath | patricksnape/staged-recipes,petrushy/staged-recipes,mariusvniekerk/staged-recipes,mariusvniekerk/staged-recipes,birdsarah/staged-recipes,Juanlu001/staged-recipes,kwilcox/staged-recipes,conda-forge/staged-recipes,conda-forge/staged-recipes,ocefpaf/staged-recipes,Juanlu001/staged-recipes,ocefpaf/staged-recipes,asmeurer/s... | recipes/py2app/fix_macos_rpath.py | recipes/py2app/fix_macos_rpath.py | """
Tool for initial rpath fix for prebuilt binaries
"""
from __future__ import absolute_import, division, print_function
import os
import glob
from subprocess import CalledProcessError, check_output
# =============================================================================
if __name__ == '__main__':
main_fil... | """
Tool for initial rpath fix for prebuilt binaries
"""
from __future__ import absolute_import, division, print_function
import os
import glob
from subprocess import CalledProcessError, check_output
# =============================================================================
if __name__ == '__main__':
main_fil... | bsd-3-clause | Python |
cfabd36edd10819151caa25e8a30ef2938a55905 | add django-compat as requirement | arteria/django-ar-organizations,arteria/django-ar-organizations | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os.path import join, dirname
from setuptools import setup, find_packages
import organizations as app
def long_description():
try:
return open(join(dirname(__file__), 'README.rst')).read()
except IOError:
return "LONG_DESCRIPTION Error"
setup... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os.path import join, dirname
from setuptools import setup, find_packages
import organizations as app
def long_description():
try:
return open(join(dirname(__file__), 'README.rst')).read()
except IOError:
return "LONG_DESCRIPTION Error"
setup... | bsd-2-clause | Python |
333df12d64b7d0724a90c155858e3a8421967aa0 | Add test for copy_reads_file() | igboyes/virtool,virtool/virtool,igboyes/virtool,virtool/virtool | tests/samples/test_fake.py | tests/samples/test_fake.py | import os
import pytest
from virtool.samples.fake import create_fake_sample, create_fake_samples, copy_reads_file, READ_FILES_PATH
from virtool.fake.wrapper import FakerWrapper
from virtool.samples.db import LIST_PROJECTION
@pytest.fixture
def app(dbi, pg, run_in_thread, tmp_path):
return {
"db": dbi,
... | import os
import pytest
from virtool.samples.fake import create_fake_sample, create_fake_samples
from virtool.fake.wrapper import FakerWrapper
from virtool.samples.db import LIST_PROJECTION
@pytest.fixture
def app(dbi, pg, run_in_thread, tmp_path):
return {
"db": dbi,
"fake": FakerWrapper(),
... | mit | Python |
e822a1c863d5ff2b37f1123f2a5fae63061f7d44 | fix heartbeat origin | alerta/alerta-contrib,msupino/alerta-contrib,msupino/alerta-contrib,alerta/alerta-contrib,alerta/alerta-contrib | alert-sqs/alert-sqs.py | alert-sqs/alert-sqs.py | #!/usr/bin/env python
import os
import settings
from alert import Alert, Heartbeat, ApiClient
from kombu import BrokerConnection
from Queue import Empty
__version__ = '3.0.0'
from kombu.utils.debug import setup_logging
# setup_logging(loglevel='DEBUG', loggers=[''])
def main():
broker_url = getattr(settings,... | #!/usr/bin/env python
import settings
from alert import Alert, Heartbeat, ApiClient
from kombu import BrokerConnection
from Queue import Empty
__version__ = '3.0.0'
from kombu.utils.debug import setup_logging
# setup_logging(loglevel='DEBUG', loggers=[''])
def main():
broker_url = getattr(settings, 'broker_u... | mit | Python |
da006dee5771313c5e67f0ce8150bb3a216a0697 | Bump the minor version number to reflect the relatively large scale removal of functionality. | pwcazenave/PyFVCOM | PyFVCOM/__init__.py | PyFVCOM/__init__.py | """
The FVCOM Python toolbox (PyFVCOM)
"""
__version__ = '1.4.0'
__author__ = 'Pierre Cazenave'
__credits__ = ['Pierre Cazenave']
__license__ = 'MIT'
__maintainer__ = 'Pierre Cazenave'
__email__ = 'pica@pml.ac.uk'
import inspect
from warnings import warn
# Import everything!
from PyFVCOM import buoy_tools
from PyFV... | """
The FVCOM Python toolbox (PyFVCOM)
"""
__version__ = '1.3.4'
__author__ = 'Pierre Cazenave'
__credits__ = ['Pierre Cazenave']
__license__ = 'MIT'
__maintainer__ = 'Pierre Cazenave'
__email__ = 'pica@pml.ac.uk'
import inspect
from warnings import warn
# Import everything!
from PyFVCOM import buoy_tools
from PyFV... | mit | Python |
7c66a0b34806af9cf1ac6722318534643dea3865 | Add classifiers | thombashi/sqlitebiter,thombashi/sqlitebiter | setup.py | setup.py | from __future__ import with_statement
import os.path
import setuptools
import sqlitebiter
REQUIREMENT_DIR = "requirements"
with open("README.rst") as fp:
long_description = fp.read()
with open(os.path.join("docs", "pages", "introduction", "summary.txt")) as f:
summary = f.read()
with open(os.path.join(REQ... | from __future__ import with_statement
import os.path
import setuptools
import sqlitebiter
REQUIREMENT_DIR = "requirements"
with open("README.rst") as fp:
long_description = fp.read()
with open(os.path.join("docs", "pages", "introduction", "summary.txt")) as f:
summary = f.read()
with open(os.path.join(REQ... | mit | Python |
cddf9b83383adfc41e80c441b4f8f3219893cc86 | Bump version for release | andrewgross/pyrelic | setup.py | setup.py | # #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
from setuptools import setup, find_packages
def parse_requirements():
"""
Rudimentary parser for the `requirements.txt` file
We just want to separate regular packages from links to pass them to the
`install_requires` and `dependency... | # #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
from setuptools import setup, find_packages
def parse_requirements():
"""
Rudimentary parser for the `requirements.txt` file
We just want to separate regular packages from links to pass them to the
`install_requires` and `dependency... | mit | Python |
55d9ed499d842246c74bc72ff0e141fa22fde9d8 | add numpexpr dependency | davidkuep/pyiso,emunsing/pyiso,emunsing/pyiso | setup.py | setup.py | from setuptools import setup
import codecs
import os
import re
# to release:
# python setup.py register sdist bdist_egg upload
here = os.path.abspath(os.path.dirname(__file__))
# Read the version number from a source file.
# Why read it, and not import?
# see https://groups.google.com/d/topic/pypa-dev/0PkjVpcxTzQ/d... | from setuptools import setup
import codecs
import os
import re
# to release:
# python setup.py register sdist bdist_egg upload
here = os.path.abspath(os.path.dirname(__file__))
# Read the version number from a source file.
# Why read it, and not import?
# see https://groups.google.com/d/topic/pypa-dev/0PkjVpcxTzQ/d... | apache-2.0 | Python |
f096dee1623936ed06340df1ee081a1f77eb8b77 | Simplify plugin info declaration | chfw/pyexcel-xlsx,chfw/pyexcel-xlsx | pyexcel_xlsx/__init__.py | pyexcel_xlsx/__init__.py | """
pyexcel_xlsx
~~~~~~~~~~~~~~~~~~~
The lower level xlsx file format handler using openpyxl
:copyright: (c) 2015-2017 by Onni Software Ltd & its contributors
:license: New BSD License
"""
# flake8: noqa
# this line has to be place above all else
# because of dynamic import
from pyexcel_io.plugins... | """
pyexcel_xlsx
~~~~~~~~~~~~~~~~~~~
The lower level xlsx file format handler using openpyxl
:copyright: (c) 2015-2017 by Onni Software Ltd & its contributors
:license: New BSD License
"""
# flake8: noqa
# this line has to be place above all else
# because of dynamic import
__FILE_TYPE__ = 'xlsx'
... | bsd-3-clause | Python |
f1ab27dcb52212c3c818c3ef6d9be9410610c2d6 | make these tests pass, please :) | jplusplus/statscraper | tests/test_base_scraper.py | tests/test_base_scraper.py | from unittest import TestCase
from statscraper import BaseScraper, Dataset, Dimension, ROOT
class Scraper(BaseScraper):
def _fetch_itemslist(self, item):
yield Dataset("Dataset_1")
yield Dataset("Dataset_2")
yield Dataset("Dataset_3")
def _fetch_dimensions(self, dataset):
yi... | from unittest import TestCase
from statscraper import BaseScraper, Dataset, Dimension, ROOT
class Scraper(BaseScraper):
def _fetch_itemslist(self, item):
yield Dataset("Dataset_1")
yield Dataset("Dataset_2")
yield Dataset("Dataset_3")
def _fetch_dimensions(self, dataset):
yi... | mit | Python |
408ef23f0227650c77dbaf3efae0dd569fb076dd | update version for release | marianoguerra/rst2html5,emi80/rst2html5,emi80/rst2html5,marianoguerra/rst2html5,wdv4758h/rst2html5tools,marianoguerra/rst2html5,keith-gray-powereng/rst2html5,wdv4758h/rst2html5tools,keith-gray-powereng/rst2html5 | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup
setup(
name='rst2html5-tools',
version='0.2.6',
author='Mariano Guerra',
description="Transform reStructuredText documents t... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup
setup(
name='rst2html5-tools',
version='0.2.5',
author='Mariano Guerra',
description="Transform reStructuredText documents t... | mit | Python |
77dc6134be66bf16e346d6120c361ca2b11899f3 | Add events | kalaytan/findatapy,cuemacro/findatapy | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='findatapy',
version='0.05',
description='Market data library',
author='Saeed Amen',
author_email='saeed@cuemacro.com',
license='Apache 2.0',
keywords = ['pandas', 'data', 'Bloomberg', 'tick', 'stocks', 'equities'],
url = ... | from setuptools import setup, find_packages
setup(name='findatapy',
version='0.05',
description='Market data library',
author='Saeed Amen',
author_email='saeed@cuemacro.com',
license='Apache 2.0',
keywords = ['pandas', 'data', 'Bloomberg', 'tick', 'stocks', 'equities'],
url = ... | apache-2.0 | Python |
e385a57804329356a2f4e7c44532cfa052441555 | Fix test data broken due to updated behavior of PyFile#getImportBlock() | apixandru/intellij-community,signed/intellij-community,idea4bsd/idea4bsd,ibinti/intellij-community,da1z/intellij-community,allotria/intellij-community,xfournet/intellij-community,allotria/intellij-community,apixandru/intellij-community,hurricup/intellij-community,ibinti/intellij-community,youdonghai/intellij-community,... | python/testData/refactoring/move/relativeImportsInsideMovedModule/after/src/subpkg1/mod1.py | python/testData/refactoring/move/relativeImportsInsideMovedModule/after/src/subpkg1/mod1.py | import
from
from
import pkg1.subpkg2 as foo
from pkg1 import subpkg2
from pkg1 import subpkg2 as bar
from pkg1.subpkg2 import
from pkg1.subpkg2 import mod2
from pkg1.subpkg2.mod2 import VAR
from . import mod3
print(subpkg2, mod3, mod2, foo, bar, VAR)
| from pkg1 import subpkg2
from pkg1.subpkg2 import mod2
from pkg1.subpkg2.mod2 import VAR
from . import mod3
# malformed imports
from
from import
from pkg1.subpkg2 import
# absolute imports
import pkg1.subpkg2 as foo
from pkg1 import subpkg2 as bar
print(subpkg2, mod3, mod2, foo, bar, VAR)
| apache-2.0 | Python |
72c669d71b797268870f00e2aa1c00018bcd638b | add local_asn test | BRCDcomm/pynos,brocade/pynos,SivagnanamCiena/pynos | tests/versions/base/test_bgp.py | tests/versions/base/test_bgp.py | #!/usr/bin/env python
"""
Copyright 2015 Brocade Communications 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... | apache-2.0 | Python | |
f8da511cb61072b566ebd0113edd125395b8d422 | Fix connection | dimitri-yatsenko/datajoint-python,datajoint/datajoint-python,eywalker/datajoint-python | tests/test_reconnection.py | tests/test_reconnection.py | """
Collection of test cases to test connection module.
"""
from nose.tools import assert_true, assert_false, assert_equal, raises
import datajoint as dj
import numpy as np
from datajoint import DataJointError
from . import CONN_INFO, PREFIX
class TestReconnect:
"""
test reconnection
"""
def setup(... | """
Collection of test cases to test connection module.
"""
from nose.tools import assert_true, assert_false, assert_equal, raises
import datajoint as dj
import numpy as np
from datajoint import DataJointError
from . import CONN_INFO, PREFIX
class TestReconnect:
"""
test reconnection
"""
@classmeth... | lgpl-2.1 | Python |
be56cb9f15e7ea0348937c9c86518786e138e023 | update setup.py | scheunemann/KASPAR,scheunemann/KASPAR,scheunemann/KASPAR | setup.py | setup.py | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='kaspar_gui',
version='0.1',
description='Internet based Front-End for the KASPAR Robot',
long_description=readme(),
classifiers=[
'Development Status :: 1 - Beta',... | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='kaspar_gui',
version='0.1',
description='Internet based Front-End for the KASPAR Robot',
long_description=readme(),
classifiers=[
'Development Status :: 1 - Beta',... | mit | Python |
e2e6cdac88ee03f78713ac4a50d0003a471a0027 | Add Python 3.9 to the list of supported versions. | sibson/redbeat | setup.py | setup.py | from setuptools import setup
long_description = open('README.rst').read()
setup(
name="celery-redbeat",
description="A Celery Beat Scheduler using Redis for persistent storage",
long_description=long_description,
version="2.0.0",
url="https://github.com/sibson/redbeat",
license="Apache License... | from setuptools import setup
long_description = open('README.rst').read()
setup(
name="celery-redbeat",
description="A Celery Beat Scheduler using Redis for persistent storage",
long_description=long_description,
version="2.0.0",
url="https://github.com/sibson/redbeat",
license="Apache License... | apache-2.0 | Python |
29c40e1e5048c5f8d76486020be6464de0e2adc7 | add more dependency | pipehappy1/super-engine,aissehust/sesame-paste-noodle | setup.py | setup.py | from setuptools import find_packages
from setuptools import setup
install_requires = [
'numpy',
'theano',
'pyyaml',
'h5py',
]
setup(
name="TheFramework",
version="0.0.1",
description="A nn lib",
packages=find_packages(),
include_package_data=False,
zip_safe=False,
install_r... | from setuptools import find_packages
from setuptools import setup
install_requires = [
'numpy',
'theano',
]
setup(
name="TheFramework",
version="0.0.1",
description="A nn lib",
packages=find_packages(),
include_package_data=False,
zip_safe=False,
install_requires=install_requires,
... | bsd-3-clause | Python |
67e6036c564f4e2eb9acf650acf5c33813af3003 | make serve_image return an image | agnethesoraa/placepuppy,agnethesoraa/placepuppy | views.py | views.py | from flask import Flask, render_template, make_response
from PIL import Image
import StringIO
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('index.html')
@app.route('/<width>x<height>')
@app.route('/<width>X<height>')
def serve_image(width, height):
stringfile = StringIO.St... | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('index.html')
"""@app.route('/<username>')
def hello_world2(username):
return 'Hello %s' % username"""
if __name__ == '__main__':
app.run(debug=True)
| mit | Python |
b14f520fbb15c9f455339631ed90b0d926befb27 | Bump version | thombashi/DataProperty | setup.py | setup.py | # encoding: utf-8
import io
import sys
import os.path
import setuptools
MISC_DIR = "misc"
REQUIREMENT_DIR = "requirements"
with io.open("README.rst", encoding="utf8") as f:
long_description = f.read()
with io.open(os.path.join(MISC_DIR, "summary.txt"), encoding="utf8") as f:
summary = f.read()
with open(o... | # encoding: utf-8
import io
import sys
import os.path
import setuptools
MISC_DIR = "misc"
REQUIREMENT_DIR = "requirements"
with io.open("README.rst", encoding="utf8") as f:
long_description = f.read()
with io.open(os.path.join(MISC_DIR, "summary.txt"), encoding="utf8") as f:
summary = f.read()
with open(o... | mit | Python |
9c07d26072c15147e47c15edd5c4d356686b14d7 | Upgrade these. | CodeForAfrica/grano-client,granoproject/grano-client | setup.py | setup.py | import os
from setuptools import setup, find_packages
VERSION = os.path.join(os.path.dirname(__file__), 'VERSION')
VERSION = open(VERSION, 'r').read().strip()
README = os.path.join(os.path.dirname(__file__), 'README.rst')
README = open(README, 'r').read().strip()
setup(
name='grano-client',
version=VERSION,
... | import os
from setuptools import setup, find_packages
VERSION = os.path.join(os.path.dirname(__file__), 'VERSION')
VERSION = open(VERSION, 'r').read().strip()
README = os.path.join(os.path.dirname(__file__), 'README.rst')
README = open(README, 'r').read().strip()
setup(
name='grano-client',
version=VERSION,
... | mit | Python |
7689719e0ba8f577acbe5d919828a1abc5437be4 | update version | lisunshiny/lunchboy | setup.py | setup.py | from setuptools import setup
setup(name='lunchboy',
version='0.2',
description='Lunch without #lunch',
url='http://github.com/lisunshiny/lunchboy',
author='Liann Sun',
author_email='liann@appboy.com',
license='MIT',
packages=['lunchboy'],
install_requires=['Scrapy'],
... | from setuptools import setup
setup(name='lunchboy',
version='0.1',
description='Lunch without #lunch',
url='http://github.com/lisunshiny/lunchboy',
author='Liann Sun',
author_email='liann@appboy.com',
license='MIT',
packages=['lunchboy'],
install_requires=['Scrapy'],
... | mit | Python |
f3f2408370e76ec8338bfc1f816ca875c75acf5c | remove ez_setup | nnugumanov/yandex-tank,yandex/yandex-tank,f2nd/yandex-tank,nnugumanov/yandex-tank,fomars/yandex-tank,fomars/yandex-tank,ei-grad/yandex-tank,direvius/yandex-tank,nettorta/yandex-tank,yandex/yandex-tank,netortik/yandex-tank,ei-grad/yandex-tank,netortik/yandex-tank,asekretenko/yandex-tank,f2nd/yandex-tank,asekretenko/yand... | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='yandextank',
version='1.7.8',
description='a performance measurement tool',
longer_description='''
Yandex.Tank is a performance measurement and load testing automatization tool.
It uses other load generators such as JMeter,... | #!/usr/bin/env python
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
setup(
name='yandextank',
version='1.7.7',
description='a performance measurement tool',
longer_description='''
Yandex.Tank is a performance measurement and load testing automatization tool.
It... | lgpl-2.1 | Python |
60b310d8fbd6b6130b4e8f23d20fc374eee65c74 | Bump version | SUNET/eduid-common | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.3.1b2'
requires = [
'setuptools >= 2.2',
'eduid-userdb >= 0.0.5',
]
# Flavours
webapp_requires = [
'Flask>=0.12,<0.13',
'pysaml2 >= 4.0.3rc1', # version sync with dashboard to avoid pip catastrophes
'redis >= 2.10.5',
'pwgen == 0.4',
... | from setuptools import setup, find_packages
version = '0.3.1b1'
requires = [
'setuptools >= 2.2',
'eduid-userdb >= 0.0.5',
]
# Flavours
webapp_requires = [
'Flask>=0.12,<0.13',
'pysaml2 >= 4.0.3rc1', # version sync with dashboard to avoid pip catastrophes
'redis >= 2.10.5',
'pwgen == 0.4',
... | bsd-3-clause | Python |
83b51969d55a81c34cae483d11901fe90e1c2fa9 | fix importlib for rtfd | toinsson/pyrealsense,toinsson/pyrealsense,toinsson/pyrealsense | pyrealsense/importlib.py | pyrealsense/importlib.py | # -*- coding: utf-8 -*-
# Licensed under the Apache-2.0 License, see LICENSE for details.
"""This module loads rsutilwrapper and librealsense library."""
import ctypes
import sys
import os
import warnings
os_name = sys.platform
lrs_prefix_mapping = {'darwin': 'lib', 'linux': 'lib', 'linux2': 'lib', 'win32': ''}
lrs_... | # -*- coding: utf-8 -*-
# Licensed under the Apache-2.0 License, see LICENSE for details.
"""This module loads rsutilwrapper and librealsense library."""
import ctypes
import sys
import os
os_name = sys.platform
lrs_prefix_mapping = {'darwin': 'lib', 'linux': 'lib', 'linux2': 'lib', 'win32': ''}
lrs_suffix_mapping =... | apache-2.0 | Python |
238dd56b20418178ac8b4357ac70491b73b52dda | Add new interface. | Kegbot/kegbot-server,Kegbot/kegbot-server,Kegbot/kegbot-server,Kegbot/kegbot-server,Kegbot/kegbot-server | pykeg/core/Interfaces.py | pykeg/core/Interfaces.py | """
This library defines a set of interfaces used by parts of the kegbot.
In general, the interfaces defined here are nothing more than a well-known
class name and one or more function prototypes, which define the interface.
Modules wishing to advertise implementation of one or more of these interfaces
may do so by s... | """
This library defines a set of interfaces used by parts of the kegbot.
In general, the interfaces defined here are nothing more than a well-known
class name and one or more function prototypes, which define the interface.
Modules wishing to advertise implementation of one or more of these interfaces
may do so by s... | mit | Python |
71b7faf519a45de7fc349930cf2d4268e27ae36c | Bump version to 0.8.0 | okfn/datapackage-py,okfn/datapackage-py,okfn/datapackage-model-py,datapackages/datapackage-py,datapackages/datapackage-py,okfn/datapackage-model-py | setup.py | setup.py | import os
import fnmatch
from setuptools import setup, find_packages
from codecs import open
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def schema_files():
'''Return all CSV and JSON files paths in datapack... | import os
import fnmatch
from setuptools import setup, find_packages
from codecs import open
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def schema_files():
'''Return all CSV and JSON files paths in datapack... | mit | Python |
b0878122e5ef212592a678f61698d726a7f8d768 | Fix query string order | otknoy/michishiki_api_server | post.py | post.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cgi
import sqlite3
import time
import config
def fs2dict(fs):
'''Field strage to dict'''
params = {}
for k in fs.keys():
params[k] = fs[k].value
return params
def valid(qs):
required_keys = ['title', 'comment', 'posted_by', 'latitude',... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cgi
import sqlite3
import time
import config
def fs2dict(fs):
'''Field strage to dict'''
params = {}
for k in fs.keys():
params[k] = fs[k].value
return params
def valid(qs):
required_keys = ['title', 'comment', 'posted_by', 'latitude',... | mit | Python |
084893374cf5a1585f8b7c18747ec8b11e0c0ce4 | Update 02-02_cleanse.py | mrkowalski/kaggle_santander | scikit/src/nosql/02-02_cleanse.py | scikit/src/nosql/02-02_cleanse.py |
import commons, sys, os
import logging as log
import pandas as pd
import xgboost as xgb
import numpy as np
from sklearn.externals import joblib
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score, classification_report, confusion_matr... |
import commons, sys, os
import logging as log
import pandas as pd
import xgboost as xgb
import numpy as np
from sklearn.externals import joblib
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score, classification_report, confusion_matr... | mit | Python |
d7a8192c5f1bbb8fc076ceef3a6b835cd37050d8 | update classifiers | WebSQL/sdk | setup.py | setup.py | #!/usr/bin/env python
#from setuptools import setup
from setuptools.command.bdist_rpm import bdist_rpm
from distutils.core import setup
import os
try:
from sphinx.setup_command import BuildDoc as _BuildDoc
class BuildDoc(_BuildDoc):
def finalize_options(self):
super().finalize_options()
... | #!/usr/bin/env python
#from setuptools import setup
from setuptools.command.bdist_rpm import bdist_rpm
from distutils.core import setup
import os
try:
from sphinx.setup_command import BuildDoc as _BuildDoc
class BuildDoc(_BuildDoc):
def finalize_options(self):
super().finalize_options()
... | mit | Python |
b3066ad8e5af59d12a8b28f0e6b69e0305535094 | edit doc | ymizushi/nicosearch,ymizushi/nicosearch | setup.py | setup.py | from distutils.core import setup
setup(
name = "nicosearch",
py_modules=['nicosearch'],
version = "0.0.4",
license = 'MIT License',
download_url = "http://backloglib.googlecode.com/files/backloglib-0.1.1.tar.g://github.com/ymizushi/nicosearch/archive/master.zip",
platforms = ['POSIX... | from distutils.core import setup
setup(
name = "nicosearch",
py_modules=['nicosearch'],
version = "0.0.3",
license = open('./LICENSE').read(),
download_url = "http://backloglib.googlecode.com/files/backloglib-0.1.1.tar.g://github.com/ymizushi/nicosearch/archive/master.zip",
platform... | mit | Python |
1102293fd73c4091fd21b011d4e790da6df23031 | remove README deps | googlesamples/assistant-sdk-python | setup.py | setup.py | # Copyright 2014 Google 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 writing,... | # Copyright 2014 Google 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 writing,... | apache-2.0 | Python |
81c5d5eea267cd35517bae1ed50d4bdeb8b3a62c | clean up interface class | morefigs/pymba | pymba/vimba_interface.py | pymba/vimba_interface.py | from ctypes import byref
from .vimba_object import VimbaObject
from .vimba_exception import VimbaException
from . import vimba_c
class VimbaInterface(VimbaObject):
"""
A Vimba interface object. This class provides the minimal access
to Vimba functions required to control the interface.
"""
def _... | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import vimba_structure as structs
from .vimba_object import VimbaObject
from .vimba_exception import VimbaException
from .vimba_dll import VimbaDLL
from ctypes import *
# interface features are automatically readable as object attributes.
class Vi... | mit | Python |
440c8e679b5939da0f5e32342440f7151c11bb61 | Add checking value of "XWALK_OS_ANDROID" during parsing xwalk deps | hgl888/crosswalk-efl,minggangw/crosswalk,lincsoon/crosswalk,tomatell/crosswalk,alex-zhang/crosswalk,crosswalk-project/crosswalk,RafuCater/crosswalk,weiyirong/crosswalk-1,stonegithubs/crosswalk,stonegithubs/crosswalk,mrunalk/crosswalk,xzhan96/crosswalk,darktears/crosswalk,jondong/crosswalk,chuan9/crosswalk,crosswalk-pro... | tools/generate_gclient-xwalk.py | tools/generate_gclient-xwalk.py | #!/usr/bin/env python
# Copyright (c) 2013 Intel Corporation. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This script is responsible for generating .gclient-xwalk in the top-level
source directory from DEPS.xwalk.
User-configurable va... | #!/usr/bin/env python
# Copyright (c) 2013 Intel Corporation. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This script is responsible for generating .gclient-xwalk in the top-level
source directory from DEPS.xwalk.
User-configurable va... | bsd-3-clause | Python |
3c7758ce4f4ee844212e0dc86e3e35a5ea34d13f | Update setup.py | virtool/virtool,igboyes/virtool,virtool/virtool,igboyes/virtool | setup.py | setup.py | from setuptools import setup
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
]
setup(
name="virtool",
classifiers=classifiers,
install_requires=[
"aiofiles",
"aiohttp",
"aiojobs",
"aionotify",
"aioredis",
... | from cx_Freeze import setup, Executable
build_exe_options = {
"bin_includes": [
"libssl.so",
"libz.so"
],
"bin_path_includes": [
"/usr/lib/x86_64-linux-gnu"
],
"include_files": [
("client/dist", "client"),
"LICENSE",
"templates",
"readme.md"
... | mit | Python |
7d97f7e6d7c467fda4b2aea4d028ee376f9c71d3 | Bump version. | sarenji/pyrc | setup.py | setup.py | from distutils.core import setup
setup(name='pyrc',
version='0.6.1',
description='Simple, clean Python IRC library',
author='David Peter',
author_email='david.a.peter@gmail.com',
url='http://github.com/sarenji/pyrc',
packages=['pyrc', 'pyrc/utils'],
classifiers=[
'Opera... | from distutils.core import setup
setup(name='pyrc',
version='0.6.0',
description='Simple, clean Python IRC library',
author='David Peter',
author_email='david.a.peter@gmail.com',
url='http://github.com/sarenji/pyrc',
packages=['pyrc', 'pyrc/utils'],
classifiers=[
'Opera... | mit | Python |
4ed7c876e825b6fa28d31ed257ecbd0023cff605 | handle missing db | davidszotten/pytest-cagoule | pytest_cagoule/select.py | pytest_cagoule/select.py | from itertools import chain
import os
import re
import sqlite3
import six
from . import DB_FILE
spec_re = re.compile(
r'(?P<filename>[^:]+)(:(?P<start_line>\d+))?(-(?P<end_line>\d+))?'
)
def parse_spec(spec):
match = spec_re.match(spec)
if match is None:
return []
matches = match.groupdict(... | from itertools import chain
import os
import re
import sqlite3
import six
from . import DB_FILE
spec_re = re.compile(
r'(?P<filename>[^:]+)(:(?P<start_line>\d+))?(-(?P<end_line>\d+))?'
)
def parse_spec(spec):
match = spec_re.match(spec)
if match is None:
return []
matches = match.groupdict(... | mit | Python |
ec4bbc6c6b766ac1c530cf3f1b4ebab40c60fe01 | Update instrument.py | JamesKBowler/fxcmminer | fx_collect/instrument.py | fx_collect/instrument.py | class InstrumentAttributes(object):
def __init__(
self, broker, instrument, time_frames,
market_status, last_update, utc_now, wk_str, wk_end
):
# Start of Trading Week
self.utc_now = utc_now
self.wk_str = wk_str
self.wk_end = wk_end
self.str_hour = wk_str.... | class InstrumentAttributes(object):
def __init__(
self, broker, instrument, time_frames,
market_status, last_update, utc_now, wk_str, wk_end
):
# Start of Trading Week
self.utc_now = utc_now
self.wk_str = wk_str
self.wk_end = wk_end
self.str_hour = wk_str.... | mit | Python |
5cbc61943b3488719c3e0de2596ce64458935538 | add include_package_data to setup.py | eliasdorneles/scrapyd,2014fgq/scrapyd,masterPPP/scrapyd,masterPPP/scrapyd,eliasdorneles/scrapyd,dfockler/scrapyd,aivarsk/scrapyd,dfockler/scrapyd,aivarsk/scrapyd,wujuguang/scrapyd,2014fgq/scrapyd,scrapy/scrapyd,CENDARI/scrapyd,sigma-random/scrapyd,nyov/scrapyd,sigma-random/scrapyd,nyov/scrapyd,wujuguang/scrapyd,CENDARI... | setup.py | setup.py | from os.path import join, dirname
with open(join(dirname(__file__), 'scrapyd/VERSION')) as f:
version = f.read().strip()
setup_args = {
'name': 'Scrapyd',
'version': version,
'url': 'https://github.com/scrapy/scrapyd',
'description': 'A service for running Scrapy spiders, with an HTTP API',
'l... | from os.path import join, dirname
with open(join(dirname(__file__), 'scrapyd/VERSION')) as f:
version = f.read().strip()
setup_args = {
'name': 'Scrapyd',
'version': version,
'url': 'https://github.com/scrapy/scrapyd',
'description': 'A service for running Scrapy spiders, with an HTTP API',
'l... | bsd-3-clause | Python |
a6effe7080fb66f7bd4e930727ed5d1ecff21523 | Fix setup requirements to not contain transitional dependencies and exact versions | martinsmid/pytest-ui | setup.py | setup.py | from setuptools import setup
from pytui.settings import VERSION
setup(
name='pytest-ui',
description='Text User Interface for running python tests',
version=VERSION,
license='MIT',
platforms=['linux', 'osx', 'win32'],
packages=['pytui'],
url='https://github.com/martinsmid/pytest-ui',
... | from setuptools import setup
from pytui.settings import VERSION
setup(
name='pytest-ui',
description='Text User Interface for running python tests',
version=VERSION,
license='MIT',
platforms=['linux', 'osx', 'win32'],
packages=['pytui'],
url='https://github.com/martinsmid/pytest-ui',
... | mit | Python |
131cead153dd29cacf03fbf841f26fc85482b57c | Set version redactor 0.2 on setup file | jeanmask/opps,jeanmask/opps,opps/opps,williamroot/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,opps/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,opps/opps,YACOWS/opps,williamroot/opps,opps/opps,YACOWS/opps | setup.py | setup.py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from setuptools import setup, find_packages
import opps
install_requires = ["Django==1.5",
"south>=0.7",
"Pillow==1.7.8",
"thumbor==3.7.1",
"django-tagging==0.3.1",
"djan... | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from setuptools import setup, find_packages
import opps
install_requires = ["Django==1.5",
"south>=0.7",
"Pillow==1.7.8",
"thumbor==3.7.1",
"django-tagging==0.3.1",
"djan... | mit | Python |
72e4efe764dfcb85b633e59fbebd3aa82a95f6de | Use setuptools. | eddieantonio/sentinel | setup.py | setup.py | from setuptools import setup
from sentinel import __version__ as VERSION
from codecs import open
with open('README.rst', encoding='UTF-8') as readme:
long_description = readme.read()
setup(
name='sentinel',
version=VERSION,
url='https://github.com/eddieantonio/sentinel',
license='MIT',
author=... | from distutils.core import setup
from sentinel import __version__ as VERSION
from codecs import open
with open('README.rst', encoding='UTF-8') as readme:
long_description = readme.read()
setup(
name='sentinel',
version=VERSION,
url='https://github.com/eddieantonio/sentinel',
license='MIT',
aut... | mit | Python |
1bfb63c704ae9d947310c8f0f8250ef43aae6217 | Update setup.py | williamjacksn/python-rainwave-client | setup.py | setup.py | from setuptools import setup
import rainwaveclient
setup(
name='python-rainwave-client',
version=rainwaveclient.__version__,
author=rainwaveclient.__author__,
author_email='william@subtlecoolness.com',
url='https://github.com/williamjacksn/python-rainwave-client',
description='Python client li... | from setuptools import setup
import rainwaveclient
setup(
name='python-rainwave-client',
version=rainwaveclient.__version__,
author=rainwaveclient.__author__,
author_email='william@subtlecoolness.com',
url='https://gutter.readthedocs.org/',
description='Python Rainwave client library',
pac... | mit | Python |
32c4ac486ded1ef4d4e37f182072bb1a3350db0c | Update 1.1 -> 1.2 | desolat/python-junit-xml,kyrus/python-junit-xml | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml',
author='Brian Beyer',
author_email='brian@kyr.us',
url='https://github.com/kyrus/python-junit-xml',
license='MIT',
packages=find... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml',
author='Brian Beyer',
author_email='brian@kyr.us',
url='https://github.com/kyrus/python-junit-xml',
license='MIT',
packages=find... | mit | Python |
81a0ffba0a744df61da246be5a1729981c2a32b4 | Bump version (1.0.2 → 1.1.0). | renstrom/webassets-browserify,dudymas/webassets-browserify | setup.py | setup.py | # -*- coding: utf-8 -*-
"""
Browserify filter for webassets
-------------------------------
Filter for for compiling assets using `Browserify <http://browserify.org>`_ and
`webassets <http://webassets.readthedocs.org>`_.
Basic usage
```````````
.. code:: python
from webassets.filter import register_filter
f... | # -*- coding: utf-8 -*-
"""
Browserify filter for webassets
-------------------------------
Filter for for compiling assets using `Browserify <http://browserify.org>`_ and
`webassets <http://webassets.readthedocs.org>`_.
Basic usage
```````````
.. code:: python
from webassets.filter import register_filter
f... | mit | Python |
a0e56119990f8d0e25cd8835e050d354e4a3a4d7 | update author and email | FallenWarrior2k/cardinal.py,FallenWarrior2k/cardinal.py | setup.py | setup.py | import sys
from pathlib import Path
from setuptools import find_namespace_packages, setup
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_... | import sys
from pathlib import Path
from setuptools import find_namespace_packages, setup
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_... | mit | Python |
ff6b42693e71f36882a1f56c3ffb310812efb043 | Update the setup.py to register and upload | educreations/django-ormcache | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py register sdist upload')
os.system('python setup.py register bdist_wheel upload')
sys.exit()
readme_text = open("README.rst", "r").read()
setup(
name="django-ormcache",
... | #!/usr/bin/env python
import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
readme_text = open("README.rst", "rb").read()
setup(
name="django-ormcache",
version="0.2"... | mit | Python |
23d275d0f9e4ba1a4ab57918615467867988446d | Fix setup.py typo | Almad/django-sane-testing | setup.py | setup.py | #!/usr/bin/env python
try:
import ez_setup
ez_setup.use_setuptools()
except ImportError:
pass
from setuptools import setup
project_dir = 'djangosanetesting'
name = 'djangosanetesting'
version = '0.5.6'
setup(
name = name,
version = version,
url = 'http://devel.almad.net/trac/django-sane-test... | #!/usr/bin/env python
try:
import ez_setup
ez_setup.use_setuptools()
except ImportError:
pass
from setuptools import setup
project_dir = 'djangosanetesting'
name = 'djangosanetesting'
version = '0.5.6'
setup(
name = name,
version = version,
url = 'http://devel.almad.net/trac/django-sane-test... | bsd-3-clause | Python |
355a264a3b82d378d77a47916b217be8d573ad25 | Add a module docstring to `jacquard.storage.base` | prophile/jacquard,prophile/jacquard | jacquard/storage/base.py | jacquard/storage/base.py | """Base class for storage engine implementations."""
import abc
import contextlib
from .utils import TransactionMap
class KVStore(metaclass=abc.ABCMeta):
@abc.abstractmethod
def __init__(self, connection_string):
pass
@abc.abstractmethod
def begin(self):
pass
@abc.abstractmetho... | import abc
import contextlib
from .utils import TransactionMap
class KVStore(metaclass=abc.ABCMeta):
@abc.abstractmethod
def __init__(self, connection_string):
pass
@abc.abstractmethod
def begin(self):
pass
@abc.abstractmethod
def commit(self, changes, deletions):
pa... | mit | Python |
acf63adc560a693145856bc800f1d4afb79a2dcd | Remove specified pypi build | thouska/spotpy,thouska/spotpy,thouska/spotpy | setup.py | setup.py | # Copyright (c) 2015, Tobias Houska
from setuptools import setup, find_packages
import os
setup(
name = 'spotpy',
version = '1.5.11',
description = 'A Statistical Parameter Optimization Tool',
long_description=open(os.path.join(os.path.dirname(__file__),
"README.rst")).r... | # Copyright (c) 2015, Tobias Houska
from setuptools import setup, find_packages
import os
# Type of python distribution
[bdist_wheel]
universal=0
setup(
name = 'spotpy',
version = '1.5.11',
description = 'A Statistical Parameter Optimization Tool',
long_description=open(os.path.join(os.path.dirname(__file__)... | mit | Python |
b2e4882c8a58af7f2c8b207d0941b759471b20a1 | add scipy.stats.expon.pdf | tensorflow/probability,google/jax,tensorflow/probability,google/jax,google/jax,google/jax | jax/scipy/stats/expon.py | jax/scipy/stats/expon.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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | Python |
24d35c62409cb37fe5a8c0d0646d3e393fec5928 | Bump patch | egtaonline/GameAnalysis | gameanalysis/__init__.py | gameanalysis/__init__.py | __version__ = '4.1.1'
| __version__ = '4.1.0'
| apache-2.0 | Python |
38fb1ef71f827ff8483984ed9b7844dbdd945643 | Add dependency link to daploader from pypi to overide Openshift's cache | devassistant/dapi,devassistant/dapi,devassistant/dapi | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | agpl-3.0 | Python |
42151375b9c8bc25f12e8aebd01e63998a1aae82 | Set the slug for runner factory | lutris/website,lutris/website,Turupawn/website,Turupawn/website,Turupawn/website,lutris/website,lutris/website,Turupawn/website | games/tests/factories.py | games/tests/factories.py | import factory
from django.utils.text import slugify
from django.db.models.signals import post_save
from games import models
from accounts.models import User
from accounts.signals import create_library
class PlatformFactory(factory.DjangoModelFactory):
FACTORY_FOR = models.Platform
name = 'Amiga'
class Game... | import factory
from django.db.models.signals import post_save
from games import models
from accounts.models import User
from accounts.signals import create_library
class PlatformFactory(factory.DjangoModelFactory):
FACTORY_FOR = models.Platform
name = 'Amiga'
class GameFactory(factory.DjangoModelFactory):
... | agpl-3.0 | Python |
f4685ae393a7cbaeea972b85d4e43c0a623722e9 | Bump version to 0.1.4 in setup.py | refinery29/chassis,refinery29/chassis | setup.py | setup.py | """Chassis: Opinionated REST Framework."""
from setuptools import find_packages, setup
setup(
name='chassis',
version='0.1.4',
packages=find_packages(),
description="Opinionated REST Framework",
author="Refinery 29",
author_email="chassis-project@refinery29.com",
url="https://github.com/re... | """Chassis: Opinionated REST Framework."""
from setuptools import find_packages, setup
setup(
name='chassis',
version='0.1.3',
packages=find_packages(),
description="Opinionated REST Framework",
author="Refinery 29",
author_email="chassis-project@refinery29.com",
url="https://github.com/re... | mit | Python |
6dca6694619a04b21b723adaf20551376ab99acd | Change the name of the project to oslo.config | metacloud/oslo.config,citrix-openstack-build/oslo.config,varunarya10/oslo.config,tianshan/oslo.config,magic0704/oslo.config,JioCloud/oslo.config,shad7/oslo.config,citrix-openstack/build-oslo.config | setup.py | setup.py | #!/usr/bin/python
# Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | #!/usr/bin/python
# Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | apache-2.0 | Python |
13d6f562102decb402e840b8e48c7c5a7b4e1497 | Update version | AnyBody-Research-Group/AnyPyTools | anypytools/__init__.py | anypytools/__init__.py | # -*- coding: utf-8 -*-
"""AnyPyTools library."""
import os
import sys
import platform
import logging
if "FOR_DISABLE_CONSOLE_CTRL_HANDLER" not in os.environ:
os.environ["FOR_DISABLE_CONSOLE_CTRL_HANDLER"] = "1"
from anypytools.abcutils import AnyPyProcess, execute_anybodycon
from anypytools.macroutils import Any... | # -*- coding: utf-8 -*-
"""AnyPyTools library."""
import os
import sys
import platform
import logging
if "FOR_DISABLE_CONSOLE_CTRL_HANDLER" not in os.environ:
os.environ["FOR_DISABLE_CONSOLE_CTRL_HANDLER"] = "1"
from anypytools.abcutils import AnyPyProcess, execute_anybodycon
from anypytools.macroutils import Any... | mit | Python |
02ed373ec7818d51ba881c973125bf4d995e04c7 | bump to 0.0.10 | botstory/botstory,hyzhak/bot-story,hyzhak/bot-story,botstory/botstory | setup.py | setup.py | import os
from setuptools import setup, find_packages
longDesc = ""
if os.path.exists("README.md"):
longDesc = open("README.md").read().strip()
setup(
name='botstory',
packages=find_packages(),
version='0.0.10',
description='Async framework for bots',
license='MIT',
long_description=longD... | import os
from setuptools import setup, find_packages
longDesc = ""
if os.path.exists("README.md"):
longDesc = open("README.md").read().strip()
setup(
name='botstory',
packages=find_packages(),
version='0.0.9',
description='Async framework for bots',
license='MIT',
long_description=longDe... | mit | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.