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 |
|---|---|---|---|---|---|---|---|---|
7a42ca2bbfb0cde3273420edd7f9ef57d70c460c | fix bug | Gaojiaqi/spark-ec2,Gaojiaqi/spark-ec2,Gaojiaqi/spark-ec2 | get_pcap.py | get_pcap.py | #! /usr/bin/env python27
import sys
import os
import time
import subprocess
def get_slaves():
slaves = subprocess.check_output(['cat', '/root/spark-ec2/slaves'])
return slaves.strip().split('\n')
def get_master():
master = subprocess.check_output(['cat', '/root/spark-ec2/masters']).strip()
return mast... | #! /usr/bin/env python27
import sys
import os
import time
import subprocess
def get_slaves():
slaves = subprocess.check_output(['cat', '/root/spark-ec2/slaves'])
return slaves.strip().split('\n')
def get_master():
master = subprocess.check_output(['cat', '/root/spark-ec2/masters']).strip()
return mast... | apache-2.0 | Python |
b2da64f30dc502b253d543f3589ca3c41ea72c8e | split up RESTApiJWTClient.get tests #343 | geometalab/osmaxx-frontend,geometalab/osmaxx,geometalab/drf-utm-zone-info,geometalab/osmaxx-frontend,geometalab/drf-utm-zone-info,geometalab/osmaxx,geometalab/osmaxx,geometalab/osmaxx,geometalab/osmaxx-frontend,geometalab/osmaxx-frontend | tests/api_client/rest_api_client_test.py | tests/api_client/rest_api_client_test.py | from osmaxx.api_client.API_client import RESTApiJWTClient
from requests_mock import ANY
def test_get_requests_combined_url(requests_mock):
"""
The requested URL is the concatenation of
the service_base of the RESTApiJWTClient instance and
the relative URL passed to RESTApiJWTClient.get().
"""
... | from osmaxx.api_client.API_client import RESTApiJWTClient
from requests_mock import ANY
def test_get_performs_request(requests_mock):
requests_mock.get(ANY, json={'some response': 'you got it'})
c = RESTApiJWTClient('http://example.com/service/uri_base/')
response = c.get('get/example')
assert respons... | mit | Python |
d2617686d4aa08f65f41fee79cf0954481ca665d | disable calendar | microcom/odoo,microcom/odoo,microcom/odoo,microcom/odoo,microcom/odoo,microcom/odoo | addons/calendar/__openerp__.py | addons/calendar/__openerp__.py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Calendar',
'version': '1.0',
'sequence': 130,
'depends': ['base', 'mail', 'base_action_rule', 'web_calendar'],
'summary': 'Personal & Shared Calendar',
'description': """
This is a full... | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Calendar',
'version': '1.0',
'sequence': 130,
'depends': ['base', 'mail', 'base_action_rule', 'web_calendar'],
'summary': 'Personal & Shared Calendar',
'description': """
This is a full... | agpl-3.0 | Python |
926debb75b04648d9bace62b4d75726238bdd497 | Use the new Option class to load groups | ascii-nantes/Edt_Analyser | Connexion.py | Connexion.py | import requests # permet de réaliser simplement (plus qu'avec urllib2) des requêtes HTTP
import getpass # permet d'utilier getpass.getpass([prompt[, stream]]) pour demander un mot de passe
import Option
class Connexion:
""" Demande le login et le mot de passe à l'initilisation de la classe et initialise les groupe... | import requests # permet de réaliser simplement (plus qu'avec urllib2) des requêtes HTTP
import getpass # permet d'utilier getpass.getpass([prompt[, stream]]) pour demander un mot de passe
class Connexion:
""" Demande le login et le mot de passe à l'initilisation de la classe et initialise les groupes disponibles
... | mit | Python |
d3ad22330f535a7eb4b70802b2699e695dd1a1c8 | Bump to version 0.29.2 | reubano/tabutils,reubano/meza,reubano/tabutils,reubano/meza,reubano/tabutils,reubano/meza | meza/__init__.py | meza/__init__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
meza
~~~~
Provides methods for reading and processing data from tabular formatted files
Attributes:
CURRENCIES [tuple(unicode)]: Currency symbols to remove from decimal
strings.
ENCODING (str): Default file encoding.
DEF... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
meza
~~~~
Provides methods for reading and processing data from tabular formatted files
Attributes:
CURRENCIES [tuple(unicode)]: Currency symbols to remove from decimal
strings.
ENCODING (str): Default file encoding.
DEF... | mit | Python |
574a2d093949e6196fa9497cb2964af82382fe0f | Fix typo | malept/pyoath-toolkit,malept/pyoath-toolkit,malept/pyoath-toolkit | oath_toolkit/metadata.py | oath_toolkit/metadata.py | # -*- coding: utf-8 -*-
#
# Copyright 2013 Mark Lee
#
# 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... | # -*- coding: utf-8 -*-
#
# Copyright 2013 Mark Lee
#
# 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 |
1c3405e8292fb20c49a8613a2406e8cf6bf28fd2 | Change default SWF activity to Action. | badboy99tw/mass,badboy99tw/mass,badboy99tw/mass,KKBOX/mass,KKBOX/mass,KKBOX/mass | mass/scheduler/swf/config.py | mass/scheduler/swf/config.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# The name of AWS region.
REGION = 'ap-northeast-1'
# The name of the domain in which the workflow execution is created
DOMAIN = 'mass'
# The time in seconds till a timeout exception is thrown when attempting to make a connection.
CONNECT_TIMEOUT = 50
# The time in seco... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# The name of AWS region.
REGION = 'ap-northeast-1'
# The name of the domain in which the workflow execution is created
DOMAIN = 'mass'
# The time in seconds till a timeout exception is thrown when attempting to make a connection.
CONNECT_TIMEOUT = 50
# The time in seco... | apache-2.0 | Python |
54beba866080d7498af7eda58cd6f948ba9f5ecb | Fix val message logging bug. | faneshion/MatchZoo,faneshion/MatchZoo | matchzoo/engine/callbacks.py | matchzoo/engine/callbacks.py | """Callbacks."""
import typing
import numpy as np
import keras
import matchzoo
class EvaluateAllMetrics(keras.callbacks.Callback):
"""
Callback to evaluate all metrics.
MatchZoo metrics can not be evaluated batch-wise since they require
dataset-level information. As a result, MatchZoo metrics are n... | """Callbacks."""
import typing
import numpy as np
import keras
import matchzoo
class EvaluateAllMetrics(keras.callbacks.Callback):
"""
Callback to evaluate all metrics.
MatchZoo metrics can not be evaluated batch-wise since they require
dataset-level information. As a result, MatchZoo metrics are n... | apache-2.0 | Python |
296816e3d46135c762791dd6e4cb85e3cd904f28 | fix lanchester derivative | ajul/zerosum,ajul/zerosum | python/zerosum/balance/lanchester.py | python/zerosum/balance/lanchester.py | from .base import *
class LanchesterSymmetricBalance(SymmetricBalance):
"""
A symmetric case representing Lanchester attrition. handicaps represent unit costs.
payoff is proportion of remaining force as t -> infinity, with the sign
favoring the winning side.
"""
def __init__(self, initial_payof... | from .base import *
class LanchesterSymmetricBalance(SymmetricBalance):
"""
A symmetric case representing Lanchester attrition. handicaps represent unit costs.
payoff is proportion of remaining force as t -> infinity, with the sign
favoring the winning side.
"""
def __init__(self, initial_payof... | bsd-3-clause | Python |
c19fc23b52363fe34802c80a8e46f7af9f4e78ec | Update test_ipdoctest.py | ipython/ipython,ipython/ipython | IPython/testing/plugin/test_ipdoctest.py | IPython/testing/plugin/test_ipdoctest.py | """Tests for the ipdoctest machinery itself.
Note: in a file named test_X, functions whose only test is their docstring (as
a doctest) and which have no test functionality of their own, should be called
'doctest_foo' instead of 'test_foo', otherwise they get double-counted (the
empty function call is counted as a test... | """Tests for the ipdoctest machinery itself.
Note: in a file named test_X, functions whose only test is their docstring (as
a doctest) and which have no test functionality of their own, should be called
'doctest_foo' instead of 'test_foo', otherwise they get double-counted (the
empty function call is counted as a test... | bsd-3-clause | Python |
642908032012baf200ab227803982730c6d4b083 | Add missing vat alias for Canada | arthurdejong/python-stdnum,arthurdejong/python-stdnum,arthurdejong/python-stdnum | stdnum/ca/__init__.py | stdnum/ca/__init__.py | # __init__.py - collection of Canadian numbers
# coding: utf-8
#
# Copyright (C) 2017 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License,... | # __init__.py - collection of Canadian numbers
# coding: utf-8
#
# Copyright (C) 2017 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License,... | lgpl-2.1 | Python |
2651f7b52054eb81a160b567db0a2b18b3360694 | exclude renderlayer from file info taken from task file | CaptainDesAstres/Simple-Blender-Render-Manager | TaskList/getter/getFileTaskInfos.py | TaskList/getter/getFileTaskInfos.py | #!/usr/bin/python3.4
# -*-coding:Utf-8 -*
'''Script executed by Blender Python API to export info on a blender file in XML format in standart output'''
import bpy, sys, os
sys.path.append(os.path.abspath(sys.argv[4]+'/../../..'))
from usefullFunctions import XML
print('<?xml version="1.0" encoding="UTF-8"?>')
print('<... | #!/usr/bin/python3.4
# -*-coding:Utf-8 -*
'''Script executed by Blender Python API to export info on a blender file in XML format in standart output'''
import bpy, sys, os
sys.path.append(os.path.abspath(sys.argv[4]+'/../../..'))
from usefullFunctions import XML
print('<?xml version="1.0" encoding="UTF-8"?>')
print('<... | mit | Python |
eb1d14ced7c29cd104b5002b8b8deacd8a0dc458 | Update category redirect templates | legoktm/pywikipedia-rewrite | pywikibot/families/commons_family.py | pywikibot/families/commons_family.py | # -*- coding: utf-8 -*-
__version__ = '$Id$'
from pywikibot import family
# The Wikimedia Commons family
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'commons'
self.langs = {
'commons': 'commons.wikimedia.org',
}
... | # -*- coding: utf-8 -*-
__version__ = '$Id$'
from pywikibot import family
# The Wikimedia Commons family
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'commons'
self.langs = {
'commons': 'commons.wikimedia.org',
}
... | mit | Python |
688d9a3ae013e136cc71697ac5a72e7208196f78 | add comment in ReadVersionInfo | TaiSakuma/AlphaTwirl,alphatwirl/alphatwirl,alphatwirl/alphatwirl,alphatwirl/alphatwirl,alphatwirl/alphatwirl,TaiSakuma/AlphaTwirl | AlphaTwirl/HeppyResult/ReadVersionInfo.py | AlphaTwirl/HeppyResult/ReadVersionInfo.py | # Tai Sakuma <tai.sakuma@cern.ch>
##____________________________________________________________________________||
class ReadVersionInfo(object):
def __call__(self, path):
file = open(path)
return self._readImp(file)
def _readImp(self, file):
full = file.read()
# versionInfo.tx... | # Tai Sakuma <tai.sakuma@cern.ch>
##____________________________________________________________________________||
class ReadVersionInfo(object):
def __call__(self, path):
file = open(path)
return self._readImp(file)
def _readImp(self, file):
full = file.read()
tag = full.split... | bsd-3-clause | Python |
deaf0e3ebe4e3d2afbd7b2284c490ccb9e2e0b1a | change to prints | jasonrbriggs/stomp.py,jasonrbriggs/stomp.py | tests/test_local.py | tests/test_local.py | import os
import time
import pytest
import stomp
from stomp.listener import TestListener
from .testutils import *
import logging
def is_inside_travis():
print(">>>>>>>>>>>>>>>> %s" % os.environ.get('TRAVIS', 'false'))
if os.environ.get('TRAVIS', 'false') == 'true':
logging.info("Not running ipv6 tes... | import os
import time
import pytest
import stomp
from stomp.listener import TestListener
from .testutils import *
import logging
def is_inside_travis():
logging.warn(">>>>>>>>>>>>>>>> %s" % os.environ.get('TRAVIS', 'false'))
if os.environ.get('TRAVIS', 'false') == 'true':
logging.info("Not running i... | apache-2.0 | Python |
ead1a0c9a4ffe2cdf8ebaf064233979d5df78205 | Update test_plots with subTest for maintainability #43 | guilgautier/DPPy,guilgautier/DPPy | tests/test_plots.py | tests/test_plots.py | # coding: utf8
""" Tests:
Cheap test to check that the ploting functions output something
Use runpy to run the plots displayed in the documentation, instead of rewriting everything!
"""
import unittest
import os
import runpy
import matplotlib.pyplot as plt
import sys
sys.path.append('..') # make sure dppy is avail... | # coding: utf8
""" Tests:
Cheap test to check that the ploting functions output something
Use runpy to run the plots displayed in the documentation, instead of rewriting everything!
"""
import unittest
import os
import runpy
import matplotlib.pyplot as plt
class TestPlot(unittest.TestCase):
dir_tests = os.pat... | mit | Python |
977227ce3e6b93d2f8408858f472b3c0e02caf21 | update test env shell | Mercador/python-keystoneclient,ging/python-keystoneclient,ging/python-keystoneclient,Mercador/python-keystoneclient,klmitch/python-keystoneclient,klmitch/python-keystoneclient,darren-wang/ksc,metacloud/python-keystoneclient,sdpp/python-keystoneclient,ntt-sic/python-keystoneclient,alexpilotti/python-keystoneclient,ntt-s... | tests/test_shell.py | tests/test_shell.py | import os
import mock
import httplib2
from keystoneclient import shell as openstack_shell
from keystoneclient import exceptions
from tests import utils
class ShellTest(utils.TestCase):
# Patch os.environ to avoid required auth info.
def setUp(self):
global _old_env
fake_env = {
'... | import os
import mock
import httplib2
from keystoneclient import shell as openstack_shell
from keystoneclient import exceptions
from tests import utils
class ShellTest(utils.TestCase):
# Patch os.environ to avoid required auth info.
def setUp(self):
global _old_env
fake_env = {
'... | apache-2.0 | Python |
2575946f1b05ac1601a00f8936ab3a701b05bc7e | Generalize method names to be compatible with Python 2.7 and 3.4 | hunkim/word-rnn-tensorflow,bahmanh/word-rnn-tensorflow | tests/test_utils.py | tests/test_utils.py | import unittest
from utils import TextLoader
import numpy as np
from collections import Counter
class TestUtilsMethods(unittest.TestCase):
def setUp(self):
self.data_loader = TextLoader("tests/test_data", batch_size=2, seq_length=5)
def test_init(self):
print (self.data_loader.vocab)
print... | import unittest
from utils import TextLoader
import numpy as np
class TestUtilsMethods(unittest.TestCase):
def setUp(self):
self.data_loader = TextLoader("tests/test_data", batch_size=2, seq_length=5)
def test_init(self):
print (self.data_loader.vocab)
print (self.data_loader.tensor)
... | mit | Python |
b1701842b18f67059b35d8dce973210b03d65aae | Expand coverage | OnroerendErfgoed/pyramid_urireferencer | tests/test_views.py | tests/test_views.py | # -*- coding: utf-8 -*-
import json
import unittest
import httpretty
from pyramid import testing
from pyramid_urireferencer import IReferencer, Referencer, _add_referencer, get_referencer
from pyramid_urireferencer.views import ReferencesPluginView
from pyramid_urireferencer.models import RegistryResponse
class ViewT... | # -*- coding: utf-8 -*-
import json
import unittest
import httpretty
from pyramid import testing
from pyramid_urireferencer import IReferencer, Referencer, _add_referencer, get_referencer
from pyramid_urireferencer.views import ReferencesPluginView
from pyramid_urireferencer.models import RegistryResponse
class ViewT... | mit | Python |
28bed4149f6e435073e2f9c442cc874d5723b54d | Simplify this test by removing a bunch of code copied from the PLAIN test that's just not needed for this test to work. | regular/pyglet-avbin-optimizations,regular/pyglet-avbin-optimizations,regular/pyglet-avbin-optimizations,regular/pyglet-avbin-optimizations | tests/text/EMPTY.py | tests/text/EMPTY.py | #!/usr/bin/env python
'''Test that an empty document doesn't break.
Press ESC to exit the test.
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: STYLE.py 1754 2008-02-10 13:26:52Z Alex.Holkner $'
import unittest
from pyglet import app
from pyglet import gl
from pyglet import graphics
from pyglet.text imp... | #!/usr/bin/env python
'''Test an unformatted document is editable.
Examine and type over the text in the window that appears. The window
contents can be scrolled with the mouse wheel.
Press ESC to exit the test.
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: STYLE.py 1754 2008-02-10 13:26:52Z Alex.Holk... | bsd-3-clause | Python |
dbcc7604b7ab554b7bb6000029071bfa8d2a5971 | Fix bug where amount for stripe is not correctly converted | UITools/saleor,mociepka/saleor,maferelo/saleor,UITools/saleor,mociepka/saleor,maferelo/saleor,maferelo/saleor,UITools/saleor,UITools/saleor,UITools/saleor,mociepka/saleor | saleor/payment/gateways/stripe/utils.py | saleor/payment/gateways/stripe/utils.py | from decimal import Decimal
# FIXME: The amount should be dynamically calculated by payment's currency.
# For example, amount will wrong for JPY since JPY does not support cents
def get_amount_for_stripe(amount, currency):
"""Get appropriate amount for stripe.
Stripe is using currency's smallest unit such as... | from decimal import Decimal
# FIXME: The amount should be dynamically calculated by payment's currency.
# For example, amount will wrong for JPY since JPY does not support cents
def get_amount_for_stripe(amount, currency):
"""Get appropriate amount for stripe.
Stripe is using currency's smallest unit such as... | bsd-3-clause | Python |
8925e0727081d7a2fd14e33ee3b209489f107aac | Remove patterns from urls.py (Django 1.8+) | marcofucci/cookiecutter-simple-django,marcofucci/cookiecutter-simple-django,marcofucci/cookiecutter-simple-django | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/urls.py | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/urls.py | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
urlpatterns = [
# Examples:
# url(r'^$', 'tt.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls... | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'tt.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', in... | bsd-3-clause | Python |
df33f80b605d78d952528fe1b4c87ee30680c8cf | Bump to 6.0.2 | thumbor/thumbor,kkopachev/thumbor,davduran/thumbor,davduran/thumbor,davduran/thumbor,marcelometal/thumbor,okor/thumbor,kkopachev/thumbor,davduran/thumbor,gi11es/thumbor,voxmedia/thumbor,okor/thumbor,voxmedia/thumbor,thumbor/thumbor,thumbor/thumbor,scorphus/thumbor,okor/thumbor,scorphus/thumbor,scorphus/thumbor,marcelom... | thumbor/__init__.py | thumbor/__init__.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com timehome@corp.globo.com
'''This is the main module in thumbor'''
__version__ = "6.0.2"
__rel... | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com timehome@corp.globo.com
'''This is the main module in thumbor'''
__version__ = "6.0.1"
__rel... | mit | Python |
52fc9bc79343632a034d2dc51645306f4b58210c | Fix tests to work with responses 0.3.0 | fastmonkeys/netvisor.py | tests/services/conftest.py | tests/services/conftest.py | import pytest
from responses import RequestsMock
from netvisor import Netvisor
@pytest.fixture
def netvisor():
kwargs = dict(
sender='Test client',
partner_id='xxx_yyy',
partner_key='E2CEBB1966C7016730C70CA92CBB93DD',
customer_id='xx_yyyy_zz',
customer_key='7767899D6F5FB33... | import pytest
from responses import RequestsMock
from netvisor import Netvisor
@pytest.fixture
def netvisor():
kwargs = dict(
sender='Test client',
partner_id='xxx_yyy',
partner_key='E2CEBB1966C7016730C70CA92CBB93DD',
customer_id='xx_yyyy_zz',
customer_key='7767899D6F5FB33... | mit | Python |
d4d96c288b5f5ff8b1fdfa0dae9e4f5fa6af34ed | make cluster createTest conflict with Host | oVirt/ovirt-engine-sdk-tests | src/test/suites/clustertestssuite.py | src/test/suites/clustertestssuite.py |
from src.resource.clusterresourcemanager import ClusterResourceManager
from ovirtsdk.xml import params
from src.infrastructure.annotations import requires, conflicts, invoke
from src.test.suites.abstractovirttestssuite import AbstractOvirtTestsSuite
class ClusterTestsSuite(AbstractOvirtTestsSuite):
__clusterRes... |
from src.resource.clusterresourcemanager import ClusterResourceManager
from ovirtsdk.xml import params
from src.infrastructure.annotations import requires, conflicts, invoke
from src.test.suites.abstractovirttestssuite import AbstractOvirtTestsSuite
class ClusterTestsSuite(AbstractOvirtTestsSuite):
__clusterRes... | apache-2.0 | Python |
dcc5e94201111a4b27d32fa033e5324857e70fde | Test BaseProfile | robrechtdr/inonemonth,robrechtdr/inonemonth,robrechtdr/inonemonth,robrechtdr/inonemonth | inonemonth/accounts/tests/test_models.py | inonemonth/accounts/tests/test_models.py | import django.test
from django.contrib.auth import get_user_model
from core.tests.setups import UserFactory, JimUserFactory
from ..models import BaseProfile
#import core.tests.setups as tests_setups
class BaseProfileTestCase(django.test.TestCase):
"""
BaseProfile TestCase
This test should run after runn... | import django.test
from django.contrib.auth import get_user_model
from core.tests.setups import UserFactory, JimUserFactory
from ..models import BaseProfile
#import core.tests.setups as tests_setups
class BaseProfileTestCase(django.test.TestCase):
"""
This test should run after running profile tests. Otherw... | mit | Python |
ea3f96a609a3e85346496c6c980fa94fe60ddfd4 | Remove unneeded import | karulont/combopt | problem1/steiner-mst.py | problem1/steiner-mst.py | from heapq import *
from gml_read import read_gml2
from sys import argv
import networkx as nx
def main():
print('Reading graph...')
G = read_gml2(argv[1])
print('Graph contains', G.number_of_nodes(), 'nodes and', G.number_of_edges(), 'edges')
# Terminal nodes
terms = [n for n, d in G.nodes(data=True) if d... | from heapq import *
from gml_read import read_gml2
from sys import argv
from UnionFind import UnionFind
import networkx as nx
def main():
print('Reading graph...')
G = read_gml2(argv[1])
print('Graph contains', G.number_of_nodes(), 'nodes and', G.number_of_edges(), 'edges')
# Terminal nodes
terms = [n for... | mit | Python |
d9a9d81785b781b85e964593f7a10a5ec06f604c | Use parent's application version attribute | Kiddo3D/SmartControl,Kiddo3D/SmartControl,Kiddo3D/SmartControl | smartcontrol/SmartControlApplication.py | smartcontrol/SmartControlApplication.py | import os
import sys
import locale
from PyQt5.QtCore import QCoreApplication
from PyQt5.QtGui import QGuiApplication, QIcon
from PyQt5.QtQml import QQmlApplicationEngine
from smartcontrol.Resources import Resources
from smartcontrol.Internationalization import Internationalization
from smartcontrol.Theme import Theme... | import os
import sys
import locale
from PyQt5.QtCore import QCoreApplication
from PyQt5.QtGui import QGuiApplication, QIcon
from PyQt5.QtQml import QQmlApplicationEngine
from smartcontrol.Resources import Resources
from smartcontrol.Internationalization import Internationalization
from smartcontrol.Theme import Theme... | agpl-3.0 | Python |
24c1797cdcfdf1912ba0d3f02b4fcc9e34f5ac5c | Revert __init__.py logic to pre issue-142 status | arne-cl/discoursegraphs | src/discoursegraphs/__init__.py | src/discoursegraphs/__init__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Arne Neumann <discoursegraphs.programming@arne.cl>
__author__ = 'Arne Neumann'
__email__ = 'discoursegraphs.programming@arne.cl'
__version__ = '0.3.1'
# flake8: noqa
import os
from networkx import write_gpickle
from discoursegraphs.discoursegraph import (
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Arne Neumann <discoursegraphs.programming@arne.cl>
__author__ = 'Arne Neumann'
__email__ = 'discoursegraphs.programming@arne.cl'
__version__ = '0.3.1'
# flake8: noqa
import os
from networkx import write_gpickle
from discoursegraphs.discoursegraph import (
... | bsd-3-clause | Python |
cb418195e6c5829eb3d74f49e2ab5bf6ef1022ff | Set types for upgrade. | philiptzou/clincoded,ClinGen/clincoded,4dn-dcic/fourfront,ClinGen/clincoded,philiptzou/clincoded,hms-dbmi/fourfront,ENCODE-DCC/encoded,kidaa/encoded,ENCODE-DCC/snovault,hms-dbmi/fourfront,hms-dbmi/fourfront,4dn-dcic/fourfront,ClinGen/clincoded,philiptzou/clincoded,ENCODE-DCC/encoded,ENCODE-DCC/snovault,ClinGen/clincode... | src/encoded/commands/upgrade.py | src/encoded/commands/upgrade.py | """\
Run this to upgrade the site.
Examples
To update on the production server:
%(prog)s production.ini
For the development.ini you must supply the paster app name:
%(prog)s development.ini --app-name app
"""
import logging
EPILOG = __doc__
logger = logging.getLogger(__name__)
DEFAULT_COLLECTIONS = [
... | """\
Run this to upgrade the site.
Examples
To update on the production server:
%(prog)s production.ini
For the development.ini you must supply the paster app name:
%(prog)s development.ini --app-name app
"""
import logging
EPILOG = __doc__
logger = logging.getLogger(__name__)
DEFAULT_COLLECTIONS = [
... | mit | Python |
97e29637d0e7b268245516de55f77305ab681b9c | add --pg-emit-all option to emit all rollout rewards, not just min/mean/max stat values | matpalm/cartpoleplusplus,matpalm/cartpoleplusplus,matpalm/cartpoleplusplus | parse_out.py | parse_out.py | #!/usr/bin/env python
import argparse, sys, re, json
import numpy as np
parser = argparse.ArgumentParser()
parser.add_argument('files', metavar='F', type=str, nargs='+',
help='files to process')
parser.add_argument('--pg-emit-all', action='store_true',
help="if set emit all rewa... | #!/usr/bin/env python
import sys, re, json
import numpy as np
# fields we output
# ones specific to policy gradient include ... r_XXX
print "\t".join(["run_id", "episode", "reward", "loss", "r_min", "r_mean", "r_max"])
def emit(run_id, episode, reward, loss, r_min=0, r_mean=0, r_max=0):
print "\t".join(map(str, [r... | mit | Python |
aaed3f32e72ee22941505d7e0b1d135ebb8e2878 | Update the release script. | thanatoskira/mycli,qbdsoft/mycli,j-bennet/mycli,mdsrosa/mycli,adamchainz/mycli,nkhuyu/mycli,shaunstanislaus/mycli,MnO2/rediscli,danieljwest/mycli,evook/mycli,chenpingzhao/mycli,oguzy/mycli,chenpingzhao/mycli,tkuipers/mycli,suzukaze/mycli,brewneaux/mycli,jinstrive/mycli,mattn/mycli,suzukaze/mycli,martijnengler/mycli,mat... | release.py | release.py | #!/usr/bin/env python
from __future__ import print_function
import re
import ast
import subprocess
import sys
DEBUG = False
def version(version_file):
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open(version_file, 'rb') as f:
ver = str(ast.literal_eval(_version_re.search(
f.r... | #!/usr/bin/env python
from __future__ import print_function
import re
import ast
import subprocess
import sys
DEBUG = False
def version(version_file):
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open(version_file, 'rb') as f:
ver = str(ast.literal_eval(_version_re.search(
f.r... | bsd-3-clause | Python |
864899003b2f595567101e4658d7f0ae71f03f5d | Clean up test case. | dhruvparamhans/zipline,bartosh/zipline,grundgruen/zipline,ronalcc/zipline,enigmampc/catalyst,jimgoo/zipline-fork,euri10/zipline,dmitriz/zipline,jimgoo/zipline-fork,kmather73/zipline,cmorgan/zipline,dmitriz/zipline,michaeljohnbennett/zipline,alphaBenj/zipline,davidastephens/zipline,nborggren/zipline,joequant/zipline,CDS... | zipline/test/test_ndict.py | zipline/test/test_ndict.py | from zipline.protocol_utils import ndict, namedict
def test_ndict():
nd = ndict({})
# Properties
assert len(nd) == 0
assert nd.keys() == []
assert nd.values() == []
assert list(nd.iteritems()) == []
# Accessors
nd['x'] = 1
assert nd.x == 1
assert nd['x'] == 1
assert nd.get... | from zipline.protocol_utils import ndict
def test_ndict():
nd = ndict({})
# Properties
assert len(nd) == 0
assert nd.keys() == []
assert nd.values() == []
assert list(nd.iteritems()) == []
# Accessors
nd['x'] = 1
assert nd.x == 1
assert nd['x'] == 1
assert nd.get('y') == N... | apache-2.0 | Python |
b20b8c70b07d8043b22a6c8043e82deecee7f000 | build GTK# from the 2.12 branch, not trunk | arfbtwn/banshee,directhex/banshee-hacks,lamalex/Banshee,GNOME/banshee,ixfalia/banshee,GNOME/banshee,Carbenium/banshee,directhex/banshee-hacks,allquixotic/banshee-gst-sharp-work,Dynalon/banshee-osx,dufoli/banshee,stsundermann/banshee,mono-soc-2011/banshee,dufoli/banshee,allquixotic/banshee-gst-sharp-work,GNOME/banshee,D... | build/bundle/packages/gtk-sharp.py | build/bundle/packages/gtk-sharp.py | def svn_co_or_up (package):
os.chdir ('..')
if os.path.isdir ('svn'):
os.chdir ('svn')
os.system ('svn up')
else:
os.system ('svn co http://anonsvn.mono-project.com/source/branches/gtk-sharp-2-12-branch svn')
os.chdir ('svn')
os.chdir ('..')
package = {
'name': 'gtk-sharp',
'version': '2.12.10-svn',
... | def svn_co_or_up (package):
os.chdir ('..')
if os.path.isdir ('gtk-sharp-svn'):
os.chdir ('gtk-sharp-svn')
os.system ('svn up')
else:
os.system ('svn co http://anonsvn.mono-project.com/source/trunk/gtk-sharp gtk-sharp-svn')
os.chdir ('gtk-sharp-svn')
os.chdir ('..')
package = {
'name': 'gtk-sharp',
'v... | mit | Python |
c568b8139283b41a08fe118c1d07ca2cbe451fab | Fix show pending notifications | josthkko/ggrc-core,prasannav7/ggrc-core,selahssea/ggrc-core,josthkko/ggrc-core,kr41/ggrc-core,hasanalom/ggrc-core,jmakov/ggrc-core,jmakov/ggrc-core,andrei-karalionak/ggrc-core,NejcZupec/ggrc-core,hyperNURb/ggrc-core,kr41/ggrc-core,jmakov/ggrc-core,j0gurt/ggrc-core,jmakov/ggrc-core,josthkko/ggrc-core,AleksNeStu/ggrc-cor... | src/ggrc/notification/__init__.py | src/ggrc/notification/__init__.py | # Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: mouli@meics.org
# Maintained By: miha@reciprocitylabs.com
from collections import defaultdict
from freezegun import freeze_time
from datetime impo... | # Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: mouli@meics.org
# Maintained By: miha@reciprocitylabs.com
from collections import defaultdict
from freezegun import freeze_time
from datetime impo... | apache-2.0 | Python |
54c0e9e2db1ddd0c6ffafcdfa31337cb38c86aa0 | add a prior for kinematic quantity | adrn/streams,adrn/streams | streams/inference/kinematicobject.py | streams/inference/kinematicobject.py | # coding: utf-8
""" Class for representing observed dynamical object """
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Standard library
import os, sys
from collections import OrderedDict
# Third-party
import numpy as np
from astropy import log as logger
import astr... | # coding: utf-8
""" Class for representing observed dynamical object """
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Standard library
import os, sys
from collections import OrderedDict
# Third-party
import numpy as np
from astropy import log as logger
import astr... | mit | Python |
e61b1e02799c9d28c79e2f7b7ebd57f1e4db9edb | Change figure.show to plt.show | dpshelio/sunpy,dpshelio/sunpy,dpshelio/sunpy | sunpy/visualization/visualization.py | sunpy/visualization/visualization.py | """
This module provides plotting support in iPython.
"""
from functools import wraps
import matplotlib.pyplot as plt
__all__ = ['peek_show', "axis_labels_from_ctype"]
def peek_show(func):
"""
A decorator to place on ``peek()`` methods to show the figure.
The ``peek()`` method should return the figure ... | """
This module provides plotting support in iPython.
"""
from functools import wraps
from matplotlib import pyplot as plt
__all__ = ['peek_show', "axis_labels_from_ctype"]
def peek_show(func):
"""
A decorator to place on ``peek()`` methods to show the figure.
The ``peek()`` method should return the fi... | bsd-2-clause | Python |
8960e6fa1dd70ce57770ddafba2797fa889a684f | make random_walk look more like turgles demo | AllTheWayDown/turtlepower,AllTheWayDown/turtlepower | turtlepower/random_walk.py | turtlepower/random_walk.py | import sys
from random import random, randint
from turtlepower.world import TurtleWorld
# simulation parameters
W = 600
H = 600
num_turtles = 100 # num turtles
if len(sys.argv) > 1:
num_turtles = int(sys.argv[1])
max_speed = 2 # how fast they move
max_turn = 10 # maximum turn speed in degrees
world = Turtl... | import sys
from random import random
from turtlepower.world import TurtleWorld
# simulation parameters
W = 800
H = 800
n = 100 # num turtles
if len(sys.argv) > 1:
n = int(sys.argv[1])
max_speed = 2 # how fast they move
max_turn = 10 # maximum turn speed in degrees
world = TurtleWorld(W, H)
def random_wal... | mit | Python |
37a132526efd620a78c76d458236ddb4c7483032 | add identity coordinate mapping to ToUint8 and ToFloat32 augmentors | haamoon/tensorpack,haamoon/tensorpack,haamoon/tensorpack | tensorpack/dataflow/imgaug/convert.py | tensorpack/dataflow/imgaug/convert.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: convert.py
from .base import ImageAugmentor
from .meta import MapImage
import numpy as np
import cv2
__all__ = ['ColorSpace', 'Grayscale', 'ToUint8', 'ToFloat32']
class ColorSpace(ImageAugmentor):
""" Convert into another colorspace. """
def __init__(se... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: convert.py
from .base import ImageAugmentor
from .meta import MapImage
import numpy as np
import cv2
__all__ = ['ColorSpace', 'Grayscale', 'ToUint8', 'ToFloat32']
class ColorSpace(ImageAugmentor):
""" Convert into another colorspace. """
def __init__(se... | apache-2.0 | Python |
2f7e9f390d26b0f2bb335b9767c762744b04783d | Make test less flakey | honnibal/spaCy,aikramer2/spaCy,spacy-io/spaCy,aikramer2/spaCy,explosion/spaCy,explosion/spaCy,honnibal/spaCy,aikramer2/spaCy,recognai/spaCy,recognai/spaCy,spacy-io/spaCy,aikramer2/spaCy,aikramer2/spaCy,recognai/spaCy,honnibal/spaCy,spacy-io/spaCy,spacy-io/spaCy,explosion/spaCy,explosion/spaCy,explosion/spaCy,explosion/... | spacy/tests/regression/test_issue781.py | spacy/tests/regression/test_issue781.py | # coding: utf-8
from __future__ import unicode_literals
import pytest
# Note: "chromosomes" worked previous the bug fix
@pytest.mark.models('en')
@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocaliz", "colocalize"])])
def test_issue781(EN,... | # coding: utf-8
from __future__ import unicode_literals
import pytest
# Note: "chromosomes" worked previous the bug fix
@pytest.mark.models('en')
@pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocaliz", "colocalize"])])
def test_issue781(EN,... | mit | Python |
45584944b305d65b307d65bfc166ddb614918de4 | tag 0.11.0 | desihub/desispec,desihub/desispec | py/desispec/_version.py | py/desispec/_version.py | __version__ = '0.11.0'
| __version__ = '0.10.0.dev1014'
| bsd-3-clause | Python |
cac9a016d85665d896f5e6eb5368dfc6dc36172f | update dev version after 0.25.0 tag [skip ci] | desihub/desispec,desihub/desispec | py/desispec/_version.py | py/desispec/_version.py | __version__ = '0.25.0.dev3027'
| __version__ = '0.25.0'
| bsd-3-clause | Python |
e8ed97b58c9fbc101b28ff10c66dca209e1eed38 | update dev version after 0.47.1 tag [skip ci] | desihub/desispec,desihub/desispec | py/desispec/_version.py | py/desispec/_version.py | __version__ = '0.47.0.dev6103'
| __version__ = '0.47.1'
| bsd-3-clause | Python |
81e8c6ab3f09416f3f3fed556e9695187ea23bd4 | Update Qt.py | ralph-group/pymeasure | pymeasure/display/Qt.py | pymeasure/display/Qt.py | #
# This file is part of the PyMeasure package.
#
# Copyright (c) 2013-2021 PyMeasure Developers
#
# 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 limit... | #
# This file is part of the PyMeasure package.
#
# Copyright (c) 2013-2021 PyMeasure Developers
#
# 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 limit... | mit | Python |
fd143caded4b5d2d905a6f9a5f971dcf12f310d9 | print message when threadpool is not idle | warner/magic-wormhole,warner/magic-wormhole,warner/magic-wormhole,warner/magic-wormhole | src/wormhole/test/common.py | src/wormhole/test/common.py | from twisted.application import service
from twisted.internet import reactor, defer
from twisted.python import log
from ..twisted.util import allocate_ports
from ..servers.server import RelayServer
from .. import __version__
class ServerBase:
def setUp(self):
self.sp = service.MultiService()
self.s... | from twisted.application import service
from ..twisted.util import allocate_ports
from ..servers.server import RelayServer
from .. import __version__
class ServerBase:
def setUp(self):
self.sp = service.MultiService()
self.sp.startService()
d = allocate_ports()
def _got_ports(ports)... | mit | Python |
9b87ed170239539d6c91efd57757384b1ac7535c | Fix typo in relocate_namespace.py. Also don't allow --workload-between because it's not used for that test. | robertjpayne/rethinkdb,sbusso/rethinkdb,wkennington/rethinkdb,mquandalle/rethinkdb,captainpete/rethinkdb,mbroadst/rethinkdb,lenstr/rethinkdb,yaolinz/rethinkdb,4talesa/rethinkdb,robertjpayne/rethinkdb,marshall007/rethinkdb,AtnNn/rethinkdb,wkennington/rethinkdb,bchavez/rethinkdb,Qinusty/rethinkdb,greyhwndz/rethinkdb,jess... | test/scenarios/relocate_namespace.py | test/scenarios/relocate_namespace.py | #!/usr/bin/python
import sys, os, time
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, 'common')))
import http_admin, driver, workload_runner, scenario_common
from vcoptparse import *
op = OptParser()
scenario_common.prepare_option_parser_mode_flags(op)
workload_runner.prepare_o... | #!/usr/bin/python
import sys, os, time
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, 'common')))
import http_admin, driver, workload_runner, scenario_common
from vcoptparse import *
op = OptParser()
scenario_common.prepare_option_parser_mode_flags(op)
workload_runner.prepare_o... | apache-2.0 | Python |
61da7f37d4b9f39fc87bbe5bf5f0ed0c5a19bb0b | Remove BearWithoutDeps | jayvdb/coala,impmihai/coala,aptrishu/coala,arjunsinghy96/coala,Asnelchristian/coala,Asalle/coala,rimacone/testing2,Balaji2198/coala,SanketDG/coala,arush0311/coala,Balaji2198/coala,aptrishu/coala,Asnelchristian/coala,MariosPanag/coala,ManjiriBirajdar/coala,nemaniarjun/coala,ayushin78/coala,netman92/coala,refeed/coala,No... | tests/collecting/DependenciesTest.py | tests/collecting/DependenciesTest.py | import unittest
from coalib.bears.Bear import Bear
from coalib.collecting import Dependencies
class ResolvableBear1(Bear):
@staticmethod
def get_dependencies():
return [Bear]
class ResolvableBear2(Bear):
@staticmethod
def get_dependencies():
return [ResolvableBear1, Bear]
class ... | import unittest
from coalib.bears.Bear import Bear
from coalib.collecting import Dependencies
class BearWithoutDeps(Bear):
@staticmethod
def get_dependencies():
return []
class ResolvableBear1(Bear):
@staticmethod
def get_dependencies():
return [BearWithoutDeps]
class Resolvable... | agpl-3.0 | Python |
274c289bc52019c9d968e9d1829af6b83ca3d41a | add more required fields (#233) | plaid/plaid-python | tests/integration/test_link_token.py | tests/integration/test_link_token.py | import time
from tests.integration.util import create_client
def test_link_token_create_required():
client = create_client()
# build the configs
configs = {
'user': {
'client_user_id': str(time.time()),
},
'products': ["auth", "transactions"],
'client_name': "... | import time
from tests.integration.util import create_client
def test_link_token_create_required():
client = create_client()
# build the configs
configs = {
'user': {
'client_user_id': str(time.time()),
},
'products': ["auth", "transactions"],
'client_name': "... | mit | Python |
93f51e3e560ad8252388f6c42eed4fbeaf85d52a | Use parameters for parametrized test | t-animal/sigal,saimn/sigal,t-animal/sigal,xouillet/sigal,xouillet/sigal,saimn/sigal,jasuarez/sigal,jasuarez/sigal,t-animal/sigal,saimn/sigal,jasuarez/sigal,xouillet/sigal | tests/test_compress_assets_plugin.py | tests/test_compress_assets_plugin.py | # -*- coding:utf-8 -*-
import os
import blinker
import pytest
from sigal import init_plugins, signals
from sigal.gallery import Gallery
from sigal.plugins import compress_assets
CURRENT_DIR = os.path.dirname(__file__)
@pytest.fixture(autouse=True)
def disconnect_signals():
yield None
for name in dir(signa... | # -*- coding:utf-8 -*-
import os
import blinker
import pytest
from sigal import init_plugins, signals
from sigal.gallery import Gallery
from sigal.plugins import compress_assets
CURRENT_DIR = os.path.dirname(__file__)
@pytest.fixture(autouse=True)
def disconnect_signals():
yield None
for name in dir(signa... | mit | Python |
f2496c95a1f49ebf2029c17588aa05063d927a27 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/f92113e9655f252051d9e40e73dd3183a8af847c. | tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflo... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "f92113e9655f252051d9e40e73dd3183a8af847c"
TFRT_SHA256 = "256ba28eee174b4668d4690cd163... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "a469d62d144e74638ea52106a9485e464bc48fb6"
TFRT_SHA256 = "ba07ceec6942448be6079034aa21... | apache-2.0 | Python |
58f16dd902fa84f8aa0fd452afb319c1ff65bc74 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/952e3e82804e3aaf8985f0bc3f3d12492074c7a9. | tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,tensorflow/tens... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "952e3e82804e3aaf8985f0bc3f3d12492074c7a9"
TFRT_SHA256 = "3033490e203e3265ff9b8337a7a4... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "16fc31c0d5e7dc287c7d93f03b3307321a121df6"
TFRT_SHA256 = "02ebbcb5f2106be116ed04968ae9... | apache-2.0 | Python |
76ff0d96e2bd489144073eaead103877afaef084 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/1888e827a9194409cbf202dd5277ba6af0726047. | karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/t... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "1888e827a9194409cbf202dd5277ba6af0726047"
TFRT_SHA256 = "0498639f7538be5c591dddff174d... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "df2af215c301255e0fe1c50f768dcfc2fba14b43"
TFRT_SHA256 = "59afb50a2c824091e07a27a6397b... | apache-2.0 | Python |
ffedab0135a833d565dddcfa59cfee8fe926cc9b | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/df53cdbb6b4b2c2b14f817e15bdf956507c17dc4. | Intel-tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,ka... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "df53cdbb6b4b2c2b14f817e15bdf956507c17dc4"
TFRT_SHA256 = "5cd0832d81eeb245b579ea4519e7... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "47095555b1e1a8ba66f0166009a102b215f42373"
TFRT_SHA256 = "1d5c1d36c3bede0d1dcb428e05a3... | apache-2.0 | Python |
308bc7ace36a20ae8b3102e95dd2fbdde79d745e | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/5e324d66a048f2c8ad17b57f52dc85cda7776168. | karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,tensorflow/tensorflow-expe... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "5e324d66a048f2c8ad17b57f52dc85cda7776168"
TFRT_SHA256 = "ae35384ff2c32cfd63093d3f7d6e... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "f012115bea71a137bdf8081836489458823f6a85"
TFRT_SHA256 = "99c814ce54f90c45cef958c5a9ab... | apache-2.0 | Python |
5f8534ce3634c91072d7380fcf10811414523bc9 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/edbf3a123bc378e50bf8e5d814b4c420c79d1ce6. | tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,paolodedios/tensor... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "edbf3a123bc378e50bf8e5d814b4c420c79d1ce6"
TFRT_SHA256 = "4b43b90ec68590c923d627a918ee... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "6b3df74eac4aa18149e73da0b36f6e96d15c6d7f"
TFRT_SHA256 = "5283fc5200f0f7042f7acfb6fd87... | apache-2.0 | Python |
7fd87aba21ca91d9515fbffe5f83553cc525adba | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/0d730e48a1e31c0ce9033a222e0a8db10b4cb1f7. | karllessard/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,Intel-tensorflo... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "0d730e48a1e31c0ce9033a222e0a8db10b4cb1f7"
TFRT_SHA256 = "e5b08ab5e2660dda69a714f7bdb9... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "33e04436c6b3dba5e7644b0b73c568c764300c5f"
TFRT_SHA256 = "f626eff672413640362fd143c953... | apache-2.0 | Python |
078170b20b0068e748361ab45c87e09743d87580 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/a9b821022d4b80fe15ecf85c1192af0ad4029cba. | yongtang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywr... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "a9b821022d4b80fe15ecf85c1192af0ad4029cba"
TFRT_SHA256 = "91e3b172a57e60c6245313cac322... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "cc7772a64cef7b08be6e24523b0183b8bf5a44fc"
TFRT_SHA256 = "868a7fd51413f8788e2c8b93416c... | apache-2.0 | Python |
d9b55fd5a3c0eb655bf9a25915fa313a04b1973c | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/f81137c45a7e15b3e759aacd56b701cf8a3b8adc. | tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tens... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "f81137c45a7e15b3e759aacd56b701cf8a3b8adc"
TFRT_SHA256 = "26e8aa55bd6062a474ce8eafbf60... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "4c5dfd7aaf7ed5025bf978ab2b816ed5404e3b25"
TFRT_SHA256 = "087c62aac0ca6050ce85a6c6ce30... | apache-2.0 | Python |
9321757e1f487e15603ade50df0aee494d6fc7cf | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/e1a81c6450abd2e702070731664e2e42476fed9f. | tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,yongtang/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,yongtang/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensor... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "e1a81c6450abd2e702070731664e2e42476fed9f"
TFRT_SHA256 = "95ca8500679a3b7210c74ade6762... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "2eb5ff1ea2037d299b1247a1c3de659bbf88a8b5"
TFRT_SHA256 = "f46ee3466539fb9dc4da04cb9454... | apache-2.0 | Python |
e14b7d1266247d66d26ddb80258ab638bb614145 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/6d8bddbb26e441475200af57936c1d4fda46da5c. | frreiss/tensorflow-fred,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,ten... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "6d8bddbb26e441475200af57936c1d4fda46da5c"
TFRT_SHA256 = "06bb307b88f3aa2554d975f18cb27e347094deffbc586b... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "6bf976a4a961647ac15fbc854122bce5f6e2c07d"
TFRT_SHA256 = "ed25eab6841c60215c17c94d6fe46a37b9bad76b03d254... | apache-2.0 | Python |
559c43a007ca3c69ce2b07be18daa883ab51c7c5 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/7bc33ce988bb1014b08a78b295ee685032713c01. | Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,karllessard/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywr... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "7bc33ce988bb1014b08a78b295ee685032713c01"
TFRT_SHA256 = "0aad2369a712f71e8124d3c2be53... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "c7e14cdcec5c63946e9dba21d43fe8d6c9219345"
TFRT_SHA256 = "8a093b882fbe94ccaf511c0039aa... | apache-2.0 | Python |
46f83e5107f5a35210d3ee18a433fdac57bfada0 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/b61cbaca5e86e52913c83e0723353cb369640069. | Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "b61cbaca5e86e52913c83e0723353cb369640069"
TFRT_SHA256 = "a54fb1ac5e387352cc302ea6bd50... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "0f855d3b5507199e4faadf5afbcd27784f89b93d"
TFRT_SHA256 = "7065bbb883006dc9238ab05e407d... | apache-2.0 | Python |
a54ad73ba60ff8f2ff30a4282217df00213a1b9a | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/6ecf55d26573072277293b1554570f0dd5b2f521. | yongtang/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_stat... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "6ecf55d26573072277293b1554570f0dd5b2f521"
TFRT_SHA256 = "36efc796ed3a49fe187fc6b20493... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "354bc0f9846abf32c0cf62dd92267d799f6ead2d"
TFRT_SHA256 = "064519a3f70dfbde6917c9002151... | apache-2.0 | Python |
03cc893e80e741fcde255b2f8246c2b79f032f79 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/e54dd9469a2943b3cad8b3e4487db0a223173524. | tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,paolodedios/tensorf... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "e54dd9469a2943b3cad8b3e4487db0a223173524"
TFRT_SHA256 = "d716ea6001e6910c4f7e88094fd3... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "549f246fc46d32c62462664066e67e0c192a74c5"
TFRT_SHA256 = "11a5d9b4b2af4693ab7023e51a6f... | apache-2.0 | Python |
c3eb6351bd4c67c44ab40a17980b4b992c3e93d9 | Update TFRT dependency to use revision http://github.com/tensorflow/runtime/commit/e8b4bf3d9cfb50a5c0e5522634b2fde39fddbaa3. | karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yongtang/tensorflow,karllessard/tensorflow,tensorflow/tensorflow,yongtang/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow... | third_party/tf_runtime/workspace.bzl | third_party/tf_runtime/workspace.bzl | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "e8b4bf3d9cfb50a5c0e5522634b2fde39fddbaa3"
TFRT_SHA256 = "c5792324076a1f582024e490aa3a... | """Provides the repository macro to import TFRT."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports TFRT."""
# Attention: tools parse and update these lines.
TFRT_COMMIT = "d5a6f80380113295caf442415f506e49cd015145"
TFRT_SHA256 = "b9649a40b3ef2114ab109a5d8ff1... | apache-2.0 | Python |
77a321dac35b3c2ec9fd13c261515bf5bed39551 | Update version of dev branch to 0.9.4b | pastas/pastas,pastas/pasta,gwtsa/gwtsa | pastas/version.py | pastas/version.py | # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.4b'
| # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.9.3'
| mit | Python |
46b8924d1de7e645bf0c56be1f25325689d548be | remove unused method use_config from __all__ | citrix-openstack-build/pecan,jimrollenhagen/pecan,jdandrea/pecan,ryanpetrello/pecan,ryanpetrello/pecan,citrix-openstack-build/pecan,jdandrea/pecan,StackStorm/pecan,pecan/pecan,jimrollenhagen/pecan,pecan/pecan,StackStorm/pecan | pecan/__init__.py | pecan/__init__.py | from paste.cascade import Cascade
from paste.errordocument import make_errordocument
from paste.recursive import RecursiveMiddleware
from paste.urlparser import StaticURLParser
from weberror.errormiddleware import ErrorMiddleware
from weberror.evalexception import EvalException
from core import abort, error_for, overr... | from paste.cascade import Cascade
from paste.errordocument import make_errordocument
from paste.recursive import RecursiveMiddleware
from paste.urlparser import StaticURLParser
from weberror.errormiddleware import ErrorMiddleware
from weberror.evalexception import EvalException
from core import abort, error_for, overr... | bsd-3-clause | Python |
f7bd2e27e625fd1a57fabe86536e3b62b01e8bb3 | Fix BytesIO | JokerQyou/pitools | pitools/camera.py | pitools/camera.py | # coding: utf-8
from __future__ import unicode_literals
import json
import time
from io import BytesIO
from flask import Blueprint, current_app, request, send_file
from picamera import PiCamera
blueprint = Blueprint('camera', __name__, url_prefix='/camera')
DEFAULT_RESOLUTION = (900, 1200)
def setup_camera():
... | # coding: utf-8
from __future__ import unicode_literals
import json
import time
from io import StringIO
from flask import Blueprint, current_app, request, send_file
from picamera import PiCamera
blueprint = Blueprint('camera', __name__, url_prefix='/camera')
DEFAULT_RESOLUTION = (900, 1200)
def setup_camera():
... | bsd-2-clause | Python |
99386fdd222988ca41d3781905cc1b185ca009f1 | Change the VERSION to 1.1.0.pre | armicron/plata,armicron/plata,armicron/plata,stefanklug/plata,allink/plata | plata/__init__.py | plata/__init__.py | VERSION = (1, 1, 0, 'pre')
__version__ = '.'.join(map(str, VERSION))
import logging
logger = logging.getLogger('plata')
class LazySettings(object):
def _load_settings(self):
from plata import default_settings
from django.conf import settings as django_settings
for key in dir(default_set... | VERSION = (1, 0, 0)
__version__ = '.'.join(map(str, VERSION))
import logging
logger = logging.getLogger('plata')
class LazySettings(object):
def _load_settings(self):
from plata import default_settings
from django.conf import settings as django_settings
for key in dir(default_settings):... | bsd-3-clause | Python |
ca62acc298937510b37a953862ded480acb2db1e | add better logging to loading value dict | diogo149/treeano,nsauder/treeano,nsauder/treeano,diogo149/treeano,nsauder/treeano,diogo149/treeano,jagill/treeano,jagill/treeano,jagill/treeano | canopy/network_utils.py | canopy/network_utils.py | from __future__ import division, absolute_import
from __future__ import print_function, unicode_literals
import treeano
def to_shared_dict(network):
network.build()
vws = network[network.root_node.name].find_vws_in_subtree(is_shared=True)
name_to_shared = {}
for vw in vws:
assert vw.name not i... | from __future__ import division, absolute_import
from __future__ import print_function, unicode_literals
import treeano
def to_shared_dict(network):
network.build()
vws = network[network.root_node.name].find_vws_in_subtree(is_shared=True)
name_to_shared = {}
for vw in vws:
assert vw.name not i... | apache-2.0 | Python |
68603585a2450fa2a8fec0c81bf6a19f7a170b62 | update / add tests to increase products_api coverage | janinko/pnc-cli,thauser/pnc-cli,project-ncl/pnc-cli,project-ncl/pnc-cli,janinko/pnc-cli,janinko/pnc-cli,thauser/pnc-cli,jianajavier/pnc-cli,jianajavier/pnc-cli,jianajavier/pnc-cli,project-ncl/pnc-cli,thauser/pnc-cli | test/integration/test_products_api.py | test/integration/test_products_api.py | import pytest
from pnc_cli import products
from pnc_cli import productversions
from pnc_cli import utils
from pnc_cli.swagger_client.apis.products_api import ProductsApi
from pnc_cli.swagger_client.apis.productversions_api import ProductversionsApi
from test import testutils
product_api = ProductsApi(utils.get_api_cli... | import pytest
from pnc_cli import products
from pnc_cli import productversions
from pnc_cli import utils
from pnc_cli.swagger_client.apis.products_api import ProductsApi
from pnc_cli.swagger_client.apis.productversions_api import ProductversionsApi
from test import testutils
product_api = ProductsApi(utils.get_api_cli... | apache-2.0 | Python |
e887d67cd0b5fc1706130a0634876c0516ad83c3 | clean functions in lib.hashs | reorx/torext,reorx/torext | torext/lib/hashs.py | torext/lib/hashs.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import string
from random import choice, randint
from hashlib import md5
CHARS = string.letters + string.digits
def md5_string(s):
if isinstance(s, unicode):
s = s.encode('utf8')
return md5(s).hexdigest()
def longer_int_id(id):
length = 8 # if id shor... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import time
#import datetime
import string
from random import choice, randint
from hashlib import md5
CHARS = string.letters + string.digits
def RandomHash(id):
CHARS = string.digits
LIMIT = 8
id_str = str(id)
prefix = ''.join([choice(CHARS) for i in range(L... | mit | Python |
74ce10beed395a6252c22a1bf7da06915f3139c3 | fix parameter name in dead_machine_issues.py | dparnell/rethinkdb,gavioto/rethinkdb,KSanthanam/rethinkdb,greyhwndz/rethinkdb,rrampage/rethinkdb,bpradipt/rethinkdb,tempbottle/rethinkdb,pap/rethinkdb,urandu/rethinkdb,mbroadst/rethinkdb,sontek/rethinkdb,yaolinz/rethinkdb,pap/rethinkdb,niieani/rethinkdb,greyhwndz/rethinkdb,victorbriz/rethinkdb,dparnell/rethinkdb,Antoua... | test/interface/dead_machine_issues.py | test/interface/dead_machine_issues.py | #!/usr/bin/env python
import sys, os, time
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, 'common')))
import driver, http_admin
with driver.Metacluster() as metacluster:
cluster = driver.Cluster(metacluster)
print "Spinning up two processes..."
prince_hamlet_files =... | #!/usr/bin/env python
import sys, os, time
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, 'common')))
import driver, http_admin
with driver.Metacluster() as metacluster:
cluster = driver.Cluster(metacluster)
print "Spinning up two processes..."
prince_hamlet_files =... | agpl-3.0 | Python |
7bbaf049199c584d031c9e27c551edf50875c180 | bump the version to bug fix | Vicente-Cheng/ceph-deploy,shenhequnying/ceph-deploy,osynge/ceph-deploy,trhoden/ceph-deploy,zhouyuan/ceph-deploy,ghxandsky/ceph-deploy,shenhequnying/ceph-deploy,ddiss/ceph-deploy,ghxandsky/ceph-deploy,SUSE/ceph-deploy,ceph/ceph-deploy,alfredodeza/ceph-deploy,ktdreyer/ceph-deploy,imzhulei/ceph-deploy,isyippee/ceph-deploy... | ceph_deploy/__init__.py | ceph_deploy/__init__.py |
__version__ = '1.5.1'
|
__version__ = '1.5.0'
| mit | Python |
9f9f9c0ee928dea90b665415189998426b486f06 | add more func tests to owsproxy | bird-house/pywps-proxy,bird-house/twitcher,bird-house/pywps-proxy | tests/functional/test_owsproxy_app.py | tests/functional/test_owsproxy_app.py | import unittest
from nose.plugins.attrib import attr
from webtest import TestApp
from pyramid import testing
from twitcher.registry import service_registry_factory
class OWSProxyAppTest(unittest.TestCase):
def setUp(self):
settings = {'mongodb.host':'127.0.0.1', 'mongodb.port':'27027', 'mongodb.db_name':... | import unittest
from nose.plugins.attrib import attr
from webtest import TestApp
from pyramid import testing
from twitcher.registry import service_registry_factory
class OWSProxyAppTest(unittest.TestCase):
def setUp(self):
settings = {'mongodb.host':'127.0.0.1', 'mongodb.port':'27027', 'mongodb.db_name':... | apache-2.0 | Python |
f579cf08ac1098134d1c0701392471a985db0c76 | Implement parametrized test for enabled features | aeikenberry/cookiecutter-django-rest-babel,kappataumu/cookiecutter-django,andresgz/cookiecutter-django,jondelmil/cookiecutter-django,nunchaks/cookiecutter-django,gappsexperts/cookiecutter-django,yunti/cookiecutter-django,webspired/cookiecutter-django,mistalaba/cookiecutter-django,ddiazpinto/cookiecutter-django,Parbhat/... | tests/test_cookiecutter_generation.py | tests/test_cookiecutter_generation.py | # -*- coding: utf-8 -*-
import os
import re
import pytest
from binaryornot.check import is_binary
PATTERN = "{{(\s?cookiecutter)[.](.*?)}}"
RE_OBJ = re.compile(PATTERN)
@pytest.fixture
def context():
return {
"project_name": "My Test Project",
"repo_name": "my_test_project",
"author_nam... | # -*- coding: utf-8 -*-
import os
import re
import pytest
from binaryornot.check import is_binary
PATTERN = "{{(\s?cookiecutter)[.](.*?)}}"
RE_OBJ = re.compile(PATTERN)
@pytest.fixture
def context():
return {
"project_name": "My Test Project",
"repo_name": "my_test_project",
"author_nam... | bsd-3-clause | Python |
7aa78b7f48058320e1f9797e6214be734b86ae3c | Update botToken.py | Beefywhale/WeenieBot | modules/botToken.py | modules/botToken.py | token = 'Your-Bot-Token-Here!'
| token = ''
| mit | Python |
85b95cde65461322f0f081291f198f98b53dbbb9 | Fix comments | UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-RITS/pi_examples,UCL-R... | python3_mp_pi_dir/pi.py | python3_mp_pi_dir/pi.py | # Version of the Python Pi example using multiprocessing.
# Dr Owain Kenway
import time
import sys
from multiprocessing import Process, Queue
def pi_chunk(n, lower, upper, q):
step = 1.0 / n
p = step * sum(4.0/(1.0 + ((i + 0.5) * (i + 0.5) * step * step)) for i in range(lower, upper))
q.put(p)
if __name__=='__m... | # Version of the Python Pi example compatible 3 optimised.
# Dr Owain Kenway
import time
import sys
from multiprocessing import Process, Queue
def pi_chunk(n, lower, upper, q):
step = 1.0 / n
p = step * sum(4.0/(1.0 + ((i + 0.5) * (i + 0.5) * step * step)) for i in range(lower, upper))
q.put(p)
if __name__=='__... | cc0-1.0 | Python |
4e27983b3ec6641e112b289c31fd640d3584402a | Add qucik_sort Todo | jeremykid/FunAlgorithm,jeremykid/FunAlgorithm,jeremykid/FunAlgorithm,jeremykid/FunAlgorithm | python_practice/sort.py | python_practice/sort.py | def bubble_sort(input_list):
input_list_length = len(input_list)
for passed in range(input_list_length):
for index in range(passed, input_list_length-1):
if (input_list[index] > input_list[index+1])
input_list[index], input_list[index+1] = input_list[index+1], input_list[index]
return in... | def bubble_sort(input_list):
input_list_length = len(input_list)
for passed in range(input_list_length):
for index in range(passed, input_list_length-1):
if (input_list[index] > input_list[index+1])
input_list[index], input_list[index+1] = input_list[index+1], input_list[index]
return in... | mit | Python |
f7827a01db0a83010f3dc8c805c56051586aee81 | Fix gender search | renalreg/radar,renalreg/radar,renalreg/radar,renalreg/radar | radar/patients/forms.py | radar/patients/forms.py | from wtforms import StringField, SelectField, DateField, IntegerField
from wtforms.validators import Optional, InputRequired, DataRequired
from radar.ordering import ASCENDING, DESCENDING
from flask_wtf import Form
from radar.utils import optional_int
PER_PAGE_CHOICES = [(10, '10'), (25, '25'), (50, '50'), (100, '100... | from wtforms import StringField, SelectField, DateField, IntegerField
from wtforms.validators import Optional, InputRequired, DataRequired
from radar.ordering import ASCENDING, DESCENDING
from flask_wtf import Form
from radar.utils import optional_int
PER_PAGE_CHOICES = [(10, '10'), (25, '25'), (50, '50'), (100, '100... | agpl-3.0 | Python |
5c4c76364433d6dc98519012d50494c460188686 | add reference data models to admin | ssadedin/seqr,ssadedin/seqr,ssadedin/seqr,ssadedin/seqr,ssadedin/seqr | reference_data/admin.py | reference_data/admin.py | from copy import deepcopy
from django.contrib import admin
from django.core.exceptions import FieldDoesNotExist
from reference_data.models import GeneInfo, HumanPhenotypeOntology, dbNSFPGene, GeneConstraint, TranscriptInfo, Omim, \
GeneCopyNumberSensitivity, PrimateAI, MGI
def get_gene_symbol(obj):
return obj... | from copy import deepcopy
from django.contrib import admin
from django.core.exceptions import FieldDoesNotExist
from reference_data.models import GeneInfo, HumanPhenotypeOntology, dbNSFPGene, GeneConstraint, TranscriptInfo, Omim
def get_gene_symbol(obj):
return obj.gene.gene_symbol
get_gene_symbol.short_descripti... | agpl-3.0 | Python |
a92118d7ee6acde57ab9853186c43a5c6748e8a6 | Use tuple to represent version | rapidpro/tracpro,xkmato/tracpro,xkmato/tracpro,xkmato/tracpro,xkmato/tracpro,rapidpro/tracpro,rapidpro/tracpro | tracpro/__init__.py | tracpro/__init__.py | from __future__ import absolute_import
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import app as celery_app # noqa
VERSION = (1, 0, 0, "dev")
def get_version(version):
assert len(version) == 4, "Version must be formatted as (major, ... | from __future__ import absolute_import
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import app as celery_app # noqa
__version__ = "1.0.0"
| bsd-3-clause | Python |
2b8674528972655937eff797e61fa6819bfc3ba8 | Handle new content from SuperFeedr to Kippt | jpadilla/feedleap,jpadilla/feedleap | apps/feeds/signals.py | apps/feeds/signals.py | from libs.djpubsubhubbub.signals import updated
from .models import Feed
def update_handler(sender, update, **kwargs):
"""
Process new content being provided from SuperFeedr
"""
print sender.topic
users = []
feeds = Feed.objects.filter(feed_url=sender.topic)
for feed in feeds:
... | from libs.djpubsubhubbub.signals import updated
def update_handler(sender, update, **kwargs):
"""
Process new content being provided from SuperFeedr
"""
print sender
for entry in update.entries:
print entry
updated.connect(update_handler, dispatch_uid='superfeedr')
| mit | Python |
3fa37ceaebc213a1167787d8e06c75934cef1df9 | Revert "fix print statements" | robbystk/weather | weather.py | weather.py | #! /usr/bin/python2
from os.path import expanduser,isfile
import sys
from urllib import urlopen
location_path="~/.location"
def location_from_homedir():
if isfile(expanduser(location_path)):
with open(expanduser(location_path)) as f:
return "&".join(f.read().split("\n"))
else:
pri... | #! /usr/bin/python2
from os.path import expanduser,isfile
import sys
from urllib import urlopen
location_path="~/.location"
def location_from_homedir():
if isfile(expanduser(location_path)):
with open(expanduser(location_path)) as f:
return "&".join(f.read().split("\n"))
else:
pri... | mit | Python |
209b70cab893dc1bc3cf756ad5949b5f11097480 | Disable form | moreati/django-two-factor-auth,koleror/django-two-factor-auth,koleror/django-two-factor-auth,fusionbox/django-two-factor-auth,mathspace/django-two-factor-auth,Bouke/django-two-factor-auth,percipient/django-two-factor-auth,percipient/django-two-factor-auth,moreati/django-two-factor-auth,fusionbox/django-two-factor-auth,... | two_factor/forms.py | two_factor/forms.py | # coding=utf-8
from django import forms
from django.contrib.auth import authenticate
from django.utils.translation import ugettext_lazy as _
from oath import accept_totp
from two_factor.models import Token
class ComputerVerificationForm(forms.Form):
"""
Base class for computer verification. Extend this to get... | # coding=utf-8
from django import forms
from django.contrib.auth import authenticate
from django.utils.translation import ugettext_lazy as _
from oath import accept_totp
from two_factor.models import Token
class ComputerVerificationForm(forms.Form):
"""
Base class for computer verification. Extend this to get... | mit | Python |
2a08fdafb5259246108211e5e24235bf87978218 | Fix print_help line length | shichao-an/twitter-photos | twphotos/command.py | twphotos/command.py | import argparse
def parse_args():
parser = argparse.ArgumentParser(usage='%(prog)s [options]',
prog='twphotos')
parser.add_argument('-u', '--user',
help="user account")
parser.add_argument('-l', '--list', dest='list_slug',
... | import argparse
def parse_args():
parser = argparse.ArgumentParser(usage='%(prog)s [options]',
prog='twphotos')
parser.add_argument('-u', '--user',
help="user account")
parser.add_argument('-l', '--list', dest='list_slug',
... | bsd-2-clause | Python |
843c9f5a6a22123d278d5c40092a86efbdf32fdc | Update models.py | orisi/fastcast | msg/models.py | msg/models.py | from django.db import models
from django.core.exceptions import ValidationError
import uuid # from http://zesty.ca/python/uuid.html
import sys
import base64
def to_native(value):
""" Return epoch time for a datetime object or ``None``"""
import time
try:
return int(time.mktime(value.timetuple()))... | from django.db import models
from django.core.exceptions import ValidationError
import uuid # from http://zesty.ca/python/uuid.html
import sys
import base64
def fetch_code(custom_string="CODE_"):
"""
usage:
fetch_code()
fetch_code(custom_string="KEY_")
"""
b64uid = '00000000'
... | mit | Python |
04847738235d4fec1878a4cb3ed2317991b219cd | Bump version to 0.8.1 | xrmx/uwsgiit-py | uwsgiit/__init__.py | uwsgiit/__init__.py | __version__ = '0.8.0'
| __version__ = '0.7.1'
| bsd-3-clause | Python |
4ec0e2b9e1fead138301d5ecc57bc7481053f378 | Remove whitespace | mnaberez/supervisor_twiddler | src/supervisor_twiddler/__init__.py | src/supervisor_twiddler/__init__.py | __import__('pkg_resources').declare_namespace(__name__)
|
__import__('pkg_resources').declare_namespace(__name__)
| bsd-3-clause | Python |
d3decdc8215cfb5b83a7c572c0583c8184beaec8 | Add SciPy namespace | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | tools/snippets/benchmark/python/scipy/benchmark.py | tools/snippets/benchmark/python/scipy/benchmark.py | #!/usr/bin/env python
"""Benchmark scipy.TODO.TODO."""
from __future__ import print_function
import timeit
NAME = "TODO"
REPEATS = 3
ITERATIONS = 1000000
def print_version():
"""Print the TAP version."""
print("TAP version 13")
def print_summary(total, passing):
"""Print the benchmark summary.
# ... | #!/usr/bin/env python
"""Benchmark scipy.TODO.TODO."""
from __future__ import print_function
import timeit
NAME = "TODO"
REPEATS = 3
ITERATIONS = 1000000
def print_version():
"""Print the TAP version."""
print("TAP version 13")
def print_summary(total, passing):
"""Print the benchmark summary.
# ... | apache-2.0 | Python |
97168d88fbfe7993fa86842d2dd392478423ce86 | Add command line arguments for the output's alignment | ellysh/zero-cache-utils,ellysh/zero-cache-utils | zc-list.py | zc-list.py | #!/usr/bin/env python
import sys
import argparse
import client_wrap
READ_FUNCTIONS = {
'double' : client_wrap.ClientWrap.ReadDouble,
'long' : client_wrap.ClientWrap.ReadLong,
'string' : client_wrap.ClientWrap.ReadString
}
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("-... | #!/usr/bin/env python
import sys
import argparse
import client_wrap
READ_FUNCTIONS = {
'double' : client_wrap.ClientWrap.ReadDouble,
'long' : client_wrap.ClientWrap.ReadLong,
'string' : client_wrap.ClientWrap.ReadString
}
PRINT_FORMATS = {
'double' : "%s = %f",
'long' : "%s = %d",
'string' : ... | agpl-3.0 | Python |
490f243fac03a1b644e17ba45833be0bd3064191 | Update version.py | mongolab/mongoctl | mongoctl/version.py | mongoctl/version.py | __author__ = 'abdul'
MONGOCTL_VERSION = '0.9.5'
| __author__ = 'abdul'
MONGOCTL_VERSION = '0.9.4'
| mit | Python |
dd1e25ca11944c13f98b4054ab0e07aefdf30aa4 | Bump version | 5monkeys/django-viewlet,5monkeys/django-viewlet | viewlet/__init__.py | viewlet/__init__.py | # coding=utf-8
from __future__ import unicode_literals
from .api import viewlet, get, call, refresh # NOQA
VERSION = (1, 4, 0, 'final', 0)
def get_version(version=None):
"""Derives a PEP386-compliant version number from VERSION."""
if version is None:
version = VERSION
assert len(version) == 5
... | # coding=utf-8
from __future__ import unicode_literals
from .api import viewlet, get, call, refresh # NOQA
VERSION = (1, 3, 0, 'final', 0)
def get_version(version=None):
"""Derives a PEP386-compliant version number from VERSION."""
if version is None:
version = VERSION
assert len(version) == 5
... | mit | Python |
84375c5bbe5556695c10799d8846c891198f11c9 | remove from walle.service.websocket import WSHandler | meolu/walle-web,meolu/walle-web,meolu/walle-web | walle/api/deploy.py | walle/api/deploy.py | # -*- coding: utf-8 -*-
"""
walle-web
:copyright: © 2015-2017 walle-web.io
:created time: 2017-03-25 11:15:01
:author: wushuiyong@walle-web.io
"""
from flask import request
from walle.api.api import SecurityResource
from walle.model.deploy import TaskRecordModel
from walle.service.deployer import Dep... | # -*- coding: utf-8 -*-
"""
walle-web
:copyright: © 2015-2017 walle-web.io
:created time: 2017-03-25 11:15:01
:author: wushuiyong@walle-web.io
"""
from flask import request
from walle.api.api import SecurityResource
from walle.model.deploy import TaskRecordModel
from walle.service.deployer import Dep... | apache-2.0 | Python |
a2ae03b7dfb13d5aa457e4d68395f07d16f5a128 | create a view for form | pyprism/Hiren-Vault,pyprism/Hiren-Pass,pyprism/Hiren-Vault,pyprism/Hiren-Vault,pyprism/Hiren-Pass,pyprism/Hiren-Pass | password/views.py | password/views.py | # from django.shortcuts import render
# from django.views.generic import View
# from django.views.generic import TemplateView
# from django.http import HttpResponse
#
# '''
# Date : 12 May, 2015
# '''
# # Create your views here.
#
#
# #class Authentication(TemplateView):
#
# # template_name = 'index.html'
# #def... | # from django.shortcuts import render
# from django.views.generic import View
# from django.views.generic import TemplateView
# from django.http import HttpResponse
#
# '''
# Date : 12 May, 2015
# '''
# # Create your views here.
#
#
# #class Authentication(TemplateView):
#
# # template_name = 'index.html'
# #def... | mit | Python |
04a6e2b49ba32b0136162e86eb5607c6d919ae5e | update master to v0.21.0 | pastas/pastas | pastas/version.py | pastas/version.py | # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.21.0'
| # This is the only location where the version will be written and changed.
# Based on https://packaging.python.org/single_source_version/
__version__ = '0.21.0b'
| mit | Python |
a9d7c0f8522a8a5dbd50f4805ff2e1e5b70cba45 | Remove 'diff' subcommand | WTFox/pg_compare | pg_compare/cli.py | pg_compare/cli.py | """
| '_ \ / _` |_____ / __/ _ \| '_ ` _ \| '_ \ / _` | '__/ _ \
| |_) | (_| |_____| (_| (_) | | | | | | |_) | (_| | | | __/
| .__/ \__, | \___\___/|_| |_| |_| .__/ \__,_|_| \___|
|_| |___/ |_|
This is used to compare two databases. Takes two connection strings. One it
considers trut... | """
| '_ \ / _` |_____ / __/ _ \| '_ ` _ \| '_ \ / _` | '__/ _ \
| |_) | (_| |_____| (_| (_) | | | | | | |_) | (_| | | | __/
| .__/ \__, | \___\___/|_| |_| |_| .__/ \__,_|_| \___|
|_| |___/ |_|
This is used to compare two databases. Takes two connection strings. One it
considers trut... | mit | Python |
ab0d8ad82cd6162ad2783c94949baf3d52732945 | add addReader() to CollectorComposite | alphatwirl/alphatwirl,alphatwirl/alphatwirl,TaiSakuma/AlphaTwirl,TaiSakuma/AlphaTwirl,alphatwirl/alphatwirl,alphatwirl/alphatwirl | AlphaTwirl/EventReader/CollectorComposite.py | AlphaTwirl/EventReader/CollectorComposite.py | # Tai Sakuma <tai.sakuma@cern.ch>
from ..ProgressBar import ProgressReport
##__________________________________________________________________||
class CollectorComposite(object):
"""A composite of collectors.
This class is a composite in the composite pattern.
Examples of collectors are instances of `C... | # Tai Sakuma <tai.sakuma@cern.ch>
from ..ProgressBar import ProgressReport
##__________________________________________________________________||
class CollectorComposite(object):
"""A composite of collectors.
This class is a composite in the composite pattern.
Examples of collectors are instances of `C... | bsd-3-clause | Python |
74652fd620f33231e4e3086d4b461c2cdf18bfba | Fix datacenter listing for r34lz | Ubuntu-Solutions-Engineering/conjure,Ubuntu-Solutions-Engineering/conjure,ubuntu/conjure-up,conjure-up/conjure-up,ubuntu/conjure-up,conjure-up/conjure-up | conjureup/controllers/vspheresetup/common.py | conjureup/controllers/vspheresetup/common.py | from conjureup import controllers
from conjureup.app_config import app
class BaseVSphereSetupController:
def __init__(self):
# Assign current datacenter
app.provider.login()
for dc in app.provider.get_datacenters():
if dc == app.provider.region:
self.datacenter ... | from conjureup import controllers
from conjureup.app_config import app
class BaseVSphereSetupController:
def __init__(self):
# Assign current datacenter
app.provider.login()
for dc in app.provider.get_datacenters():
if dc.name == app.provider.region:
self.datace... | mit | Python |
d49182cb7ab19b5a3efdfc6f6bb27d79d4238bbd | add versions 0.9.19, 0.8.38, 0.8.26 (#7789) | krafczyk/spack,mfherbst/spack,matthiasdiener/spack,mfherbst/spack,mfherbst/spack,LLNL/spack,LLNL/spack,matthiasdiener/spack,krafczyk/spack,EmreAtes/spack,krafczyk/spack,iulian787/spack,LLNL/spack,tmerrick1/spack,iulian787/spack,tmerrick1/spack,iulian787/spack,EmreAtes/spack,tmerrick1/spack,matthiasdiener/spack,iulian78... | var/spack/repos/builtin/packages/diamond/package.py | var/spack/repos/builtin/packages/diamond/package.py | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.