repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
RPGOne/Skynet | 5230d93ccc9fa5329b0a02a351b02939-459eebff35e625675d2f6ff5633c7051c1d64a0e/gistfile1.py | 1 | 3974 | """
python speedup_kmeans.py --profile
python speedup_kmeans.py
git worktree add workdir_master master
rob sedr "\<sklearn\>" sklearn_master True
git mv sklearn sklearn_master
python setup develop
python -c "import sklearn_master; print(sklearn_master.__file__)"
python -c "import sklearn; print(sklearn.__file__)"
"""
... | bsd-3-clause | -8,699,514,571,054,754,000 | 35.127273 | 104 | 0.593357 | false |
ooici/marine-integrations | mi/dataset/driver/hypm/ctd/driver.py | 1 | 1597 | """
@package mi.dataset.driver.hypm.ctd.driver
@file marine-integrations/mi/dataset/driver/hypm/ctd/driver.py
@author Bill French
@brief Driver for the hypm/ctd
Release notes:
initial release
"""
__author__ = 'Bill French'
__license__ = 'Apache 2.0'
from mi.core.log import get_logger ; log = get_logger()
from mi.da... | bsd-2-clause | 1,017,401,072,070,529,700 | 27.017544 | 62 | 0.639324 | false |
kzys/buildbot | buildbot/test/unit/test_svnpoller.py | 1 | 16273 | # -*- test-case-name: buildbot.test.test_svnpoller -*-
import time
from twisted.internet import defer
from twisted.trial import unittest
from buildbot.changes.svnpoller import SVNPoller
# this is the output of "svn info --xml
# svn+ssh://svn.twistedmatrix.com/svn/Twisted/trunk"
prefix_output = """\
<?xml version="1.0... | gpl-2.0 | -176,282,127,084,430,800 | 33.258947 | 139 | 0.642291 | false |
cmunk/protwis | api/views.py | 1 | 32974 | from django.shortcuts import render
from rest_framework import views, generics, viewsets
from rest_framework.response import Response
from rest_framework.parsers import MultiPartParser, FormParser, FileUploadParser
from rest_framework.renderers import JSONRenderer
from django.template.loader import render_to_string
fro... | apache-2.0 | -7,819,170,572,501,628,000 | 38.48982 | 175 | 0.611724 | false |
Djabx/mgd | mgdpck/writters/cbz.py | 1 | 1116 | #! /usr/bin/python
# -*- coding: utf-8 -*-
'''
A cbz writter
'''
from mgdpck import actions
import os
import mimetypes
import zipfile
class CbzWritter(actions.AbsWritter):
@classmethod
def get_name(cls):
return 'cbz'
def __init__(self, outdir):
self.outdir = outdir
self.out = None
def done(se... | apache-2.0 | 603,414,583,288,958,700 | 21.32 | 134 | 0.654122 | false |
RicardoJohann/frappe | frappe/utils/goal.py | 1 | 4641 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from six.moves import xrange
def get_monthly_results(goal_doctype, goal_field, date_col, filter_str, aggregation = '... | mit | 6,556,498,908,767,743,000 | 29.333333 | 112 | 0.676578 | false |
nmarincic/numbasom | numbasom/numbasom.py | 1 | 8667 | from numba import jit
import numpy as np
import math
import collections
from timeit import default_timer as timer
@jit(nopython=True)
def normalize(data, min_val=0, max_val=1):
no_vectors, dim = data.shape
D = np.empty((no_vectors,dim), dtype=np.float64)
inf = 1.7976931348623157e+308
min_arr = np.empty(dim, dtype... | mit | 1,146,145,510,830,641,200 | 22.81044 | 88 | 0.621207 | false |
Buchhold/QLever | misc/move_language_into_relation.py | 1 | 1046 | import argparse
import sys
__author__ = 'buchholb'
parser = argparse.ArgumentParser()
parser.add_argument('--nt',
type=str,
help='n-triple file.',
required=True)
def writeNtFileToStdout(nt):
for line in open(nt):
cols = line.strip('\n').split(... | apache-2.0 | 8,025,750,356,437,480,000 | 26.526316 | 75 | 0.448375 | false |
google-research/language | language/xsp/model/constants.py | 1 | 1574 | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | apache-2.0 | -5,873,433,957,893,586,000 | 30.48 | 74 | 0.747776 | false |
ruleant/buildtime-trend | buildtimetrend/test/stages_test.py | 1 | 19853 | # vim: set expandtab sw=4 ts=4:
#
# Unit tests for Stages class
#
# Copyright (C) 2014 Dieter Adriaenssens <ruleant@users.sourceforge.net>
#
# This file is part of buildtime-trend
# <https://github.com/ruleant/buildtime-trend/>
#
# This program is free software: you can redistribute it and/or modify
# it under the term... | gpl-3.0 | 2,302,122,817,889,219,600 | 37.851272 | 112 | 0.605299 | false |
cangermueller/deepcpg | deepcpg/data/dna.py | 1 | 2502 | """Functions for representing DNA sequences."""
from __future__ import division
from __future__ import print_function
from collections import OrderedDict
import numpy as np
from six.moves import range
# Mapping of nucleotides to integers
CHAR_TO_INT = OrderedDict([('A', 0), ('T', 1), ('G', 2), ('C', 3), ('N', 4)])
... | mit | -3,484,228,904,838,836,700 | 22.383178 | 79 | 0.583933 | false |
pynamodb/PynamoDB | tests/test_discriminator.py | 1 | 6828 | import pytest
from pynamodb.attributes import DiscriminatorAttribute
from pynamodb.attributes import DynamicMapAttribute
from pynamodb.attributes import ListAttribute
from pynamodb.attributes import MapAttribute
from pynamodb.attributes import NumberAttribute
from pynamodb.attributes import UnicodeAttribute
from pynam... | mit | -3,047,368,666,517,998,000 | 33.836735 | 105 | 0.57645 | false |
samuelcolvin/django-importexport | views.py | 1 | 5063 | from django import forms
import Imex.models as m
import Imex.tasks as tasks
import HotDjango.views_base as viewb
from django.core.urlresolvers import reverse
from django.db import models
import settings
from django.shortcuts import redirect
import Imex
import_groups, export_groups = Imex.get_imex_groups()
actions = ... | gpl-2.0 | 4,235,616,666,778,978,300 | 37.648855 | 135 | 0.596089 | false |
ghostop14/sparrow-wifi | sparrowwifiagent.py | 1 | 114857 | #!/usr/bin/python3
#
# Copyright 2017 ghostop14
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This software is distributed in the hope ... | gpl-3.0 | 6,750,538,930,191,065,000 | 39.385724 | 300 | 0.488999 | false |
roxxup/PartialTuring | WebcamSound.py | 1 | 3038 | import threading
from threading import Thread
import cv2
import sys
#import wikipedia
#from chatterbot import ChatBot
import shlex, subprocess
import speech_recognition as sr
import pyvona
from googlesearch import GoogleSearch
import xml.etree.ElementTree as ET
import requests
cascPath = sys.argv[1]
def wikileaks(st... | gpl-3.0 | 5,042,716,747,227,126,000 | 26.369369 | 123 | 0.628045 | false |
yohanyee/simple-neural-net | classes/example_pipelines.py | 1 | 1478 | import numpy as np
from data import *
from construct import *
from train import *
from hippocampi_to_patches import *
class DigitsPipeline(object):
def __init__(self):
self.D = Data()
self.D.load_digits_data()
self.D.reshape([16,16],[1])
self.N = FeedForwardNetwork()
... | mit | -7,236,642,412,433,993,000 | 42.470588 | 126 | 0.673207 | false |
anurag03/integration_tests | cfme/tests/services/test_provision_stack.py | 1 | 9381 | import fauxfactory
import pytest
from widgetastic_patternfly import DropdownItemDisabled
from cfme import test_requirements
from cfme.cloud.provider import CloudProvider
from cfme.cloud.provider.azure import AzureProvider
from cfme.cloud.provider.ec2 import EC2Provider
from cfme.cloud.provider.openstack import OpenSta... | gpl-2.0 | -7,078,827,523,268,368,000 | 35.933071 | 100 | 0.663895 | false |
Telestream/telestream-cloud-python-sdk | telestream_cloud_flip_sdk/telestream_cloud_flip/models/extra_file.py | 1 | 4957 | # coding: utf-8
"""
Flip API
Flip # noqa: E501
The version of the OpenAPI document: 3.1
Contact: cloudsupport@telestream.net
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from telestream_cloud_flip.configuration import Configuration
class... | mit | 4,721,568,431,818,250,000 | 27.164773 | 110 | 0.556788 | false |
pombreda/https-gitorious.org-appstream-software-center | softwarecenter/ui/gtk3/widgets/buttons.py | 1 | 21538 | # Copyright (C) 2011 Canonical
#
# Authors:
# Matthew McGowan
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 3.
#
# This program is distributed in the hope that it will be useful, bu... | gpl-3.0 | -1,711,772,411,216,868,400 | 31.782344 | 79 | 0.562308 | false |
lucperkins/heron | integration_test/src/python/integration_test/topology/one_spout_bolt_multi_tasks/one_spout_bolt_multi_tasks.py | 1 | 1368 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# copyright 2016 twitter. 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... | apache-2.0 | 9,151,532,406,057,182,000 | 39.235294 | 81 | 0.741228 | false |
Azure/azure-sdk-for-python | sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_configuration.py | 1 | 3274 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | -7,833,224,672,260,966,000 | 45.112676 | 129 | 0.67135 | false |
burtgulash/PaTrie | patrie.py | 1 | 2824 | #!/usr/bin/python3
class TNode:
def __init__(self, children):
self.children = children
def is_leaf(self):
return self.children is None
def __repr__(self):
return repr(self.children)
class PaTrie:
def __init__(self):
self.root = None
def __contains__(self, word... | mit | -5,929,119,131,326,029,000 | 24.672727 | 113 | 0.410765 | false |
stringertheory/names | update_meter.py | 1 | 4118 | import sys
import string
import termcolor
import pymongo
import pronouncing
import unidecode
import distance
# a decorator that caches functions but stores results with a db backend would be nice.
def mongo_collection():
collection = pymongo.MongoClient().poetry.poems
return collection
def word_tokenize(sen... | mit | -8,512,225,107,606,674,000 | 29.503704 | 123 | 0.575765 | false |
scality/manila | manila/tests/share/test_manager.py | 1 | 131893 | # Copyright 2014 Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | apache-2.0 | 7,332,564,317,221,818,000 | 44.449001 | 79 | 0.588356 | false |
Hilary93/doomai | learning/learning2.py | 1 | 10131 | #!/usr/bin/python
import itertools as it
import pickle
from random import sample, randint, random
from time import time
from vizdoom import *
import cv2
import numpy as np
import theano
from lasagne.init import GlorotUniform, Constant
from lasagne.layers import Conv2DLayer, InputLayer, DenseLayer, MaxPool2DLayer, get... | mit | 2,790,718,033,808,579,000 | 33.814433 | 172 | 0.65798 | false |
chromatic-universe/imap2017 | src/imap-python-gadget/cci_imap_gadget/core_on_login.py | 1 | 4756 | # core_on_login.py chromatic universe william k. johnson 2018
from time import sleep
#cci
from cci_imap_gadget.imap_gadget_base import cci_chilkat , \
cci_ecosys , \
cci_mini_imap_mail
from cci_imap_gadget.core_on_logout i... | mit | 2,335,134,393,039,799,300 | 34.22963 | 108 | 0.353869 | false |
wataash/Instr | instr/ke2636a.py | 1 | 3794 | import numpy as np
import unittest2
from instr.base import SourceMeter
class Keithley2636A(SourceMeter):
def __init__(self, rsrc=None, timeout_sec=600, reset=True):
self._smu = 'a'
idn = 'Keithley Instruments Inc., Model 2636A'
super().__init__(rsrc, idn, timeout_sec, reset)
@proper... | mit | -8,482,144,900,644,208,000 | 28.169231 | 80 | 0.530063 | false |
uclmr/inferbeddings | tests/inferbeddings/adversarial/closedform/test_lifted_simple_distmult_unit_cube.py | 1 | 3989 | # -*- coding: utf-8 -*-
import numpy as np
import tensorflow as tf
from inferbeddings.models import base as models
from inferbeddings.models import similarities
from inferbeddings.knowledgebase import Fact, KnowledgeBaseParser
from inferbeddings.parse import parse_clause
from inferbeddings.models.training import cons... | mit | -1,489,150,325,355,351,800 | 36.632075 | 116 | 0.610679 | false |
uskudnik/ggrc-core | src/ggrc_workflows/migrations/versions/20150514130212_1431e7094e26_add_new_notification_type.py | 1 | 1859 |
"""add new notification type
Revision ID: 1431e7094e26
Revises: 2b89912f95f1
Create Date: 2015-05-14 13:02:12.165612
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import table, column
from datetime import timedelta, date
from sqlalchemy import and_
from ggrc import db
from ggrc_workflows.mo... | apache-2.0 | 2,134,548,577,250,535,400 | 26.338235 | 77 | 0.669715 | false |
shimpe/frescobaldi | frescobaldi_app/matcher.py | 1 | 7388 | # This file is part of the Frescobaldi project, http://www.frescobaldi.org/
#
# Copyright (c) 2008 - 2014 by Wilbert Berendsen
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
... | gpl-2.0 | -4,223,175,629,480,719,000 | 34.864078 | 87 | 0.611668 | false |
turbokongen/home-assistant | tests/helpers/test_device_registry.py | 1 | 38502 | """Tests for the Device Registry."""
import time
from unittest.mock import patch
import pytest
from homeassistant.const import EVENT_HOMEASSISTANT_STARTED
from homeassistant.core import CoreState, callback
from homeassistant.helpers import device_registry, entity_registry
from tests.common import MockConfigEntry, fl... | apache-2.0 | -2,436,744,861,999,438,000 | 33.811935 | 88 | 0.625552 | false |
TriggeredMessaging/pydotmailer | pydotmailer.py | 1 | 26995 | # pydotmailer - A lightweight wrapper for the dotMailer API, written in Python.
# Copyright (c) 2012 Triggered Messaging Ltd, released under the MIT license
# Home page:
# https://github.com/TriggeredMessaging/pydotmailer/
# See README and LICENSE files.
#
# dotMailer API docs are at http://www.dotmailer.co.uk/api/
# T... | mit | 7,280,185,620,400,163,000 | 54.204499 | 215 | 0.544619 | false |
Runscope/pysaml2 | tests/test_30_mdstore.py | 1 | 7860 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import re
from saml2.httpbase import HTTPBase
from saml2.mdstore import MetadataStore, MetaDataMDX
from saml2.mdstore import destinations
from saml2.mdstore import name
from saml2 import md
from saml2 import sigver
from saml2 import BINDING_SOAP
from saml2... | bsd-2-clause | 1,031,400,579,156,348,700 | 30.063241 | 104 | 0.630233 | false |
landscapeio/astroid | test/unittest_manager.py | 1 | 4552 | # copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of astroid.
#
# astroid 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
#... | gpl-2.0 | -5,291,246,639,128,607,000 | 39.283186 | 87 | 0.641257 | false |
kubeflow/pipelines | test/sample-test/check_notebook_results.py | 1 | 4241 | # Copyright 2018-2021 The Kubeflow 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 | -2,007,456,211,296,987,100 | 40.578431 | 100 | 0.578637 | false |
python-xlib/python-xlib | examples/xdamage.py | 1 | 4638 | #!/usr/bin/python
#
# examples/xdamage.py -- demonstrate damage extension
#
# Copyright (C) 2019 Mohit Garg <mrmohitgarg1990@gmail.com>
#
# 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... | lgpl-2.1 | -16,081,992,391,398,216 | 32.366906 | 112 | 0.609314 | false |
ergs/rever | tests/test_tools.py | 1 | 1374 | """Rever tools tests"""
import os
import tempfile
import pytest
from rever.tools import indir, render_authors, hash_url, replace_in_file
@pytest.mark.parametrize('inp, pattern, new, leading_whitespace, exp', [
('__version__ = "wow.mom"', r'__version__\s*=.*', '__version__ = "WAKKA"',
True, '__version__ = "W... | bsd-3-clause | -2,316,216,988,696,159,700 | 29.533333 | 113 | 0.562591 | false |
lindegroup/lookback | config/models.py | 1 | 1764 | # This Python file uses the following encoding: utf-8
# Part of the Lookback project (https://github.com/lindegroup/lookback)
# Copyright 2015 The Linde Group Computer Support, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... | apache-2.0 | 6,610,376,122,505,525,000 | 35.75 | 77 | 0.670635 | false |
uclouvain/OSIS-Louvain | base/models/enums/person_source_type.py | 1 | 1455 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | -1,855,065,493,383,536,000 | 41.764706 | 87 | 0.645117 | false |
louiejtaylor/pyViKO | examples/batch.py | 1 | 1173 | if __name__ == '__main__':
#####
##temporary dev hack
import os,time
os.chdir('..')
#####
from pyviko import core, mutation, restriction
#ovr = core.readFasta('test/dem/over/2000.fasta')
#toKO = core.readFasta('test/dem/ko/2000.fasta')
'''#True batch script
t1 = time.time()
for i in range(len(toKO)):
... | mit | 7,485,453,507,291,470,000 | 26.302326 | 79 | 0.658994 | false |
tangledhelix/dp_pp_utils | make_project.py | 1 | 11438 | #!/usr/bin/env python3
import json
import requests
import os
import sys
import re
import shutil
from os.path import basename
from jinja2 import Template
from subprocess import call
from trello import TrelloClient
from zipfile import ZipFile
AUTH_CONFIG = "auth-config.json"
TRELLO_TEMPLATE = "TEMPLATE: PPgen workflow... | mit | -6,135,142,467,199,165,000 | 34.302469 | 164 | 0.539255 | false |
pydanny/django-easy-profiles | setup.py | 1 | 1088 | from setuptools import setup, find_packages
version = '0.1.0'
LONG_DESCRIPTION = open("README.rst").read()
setup(
name='django-easy-profiles',
version=version,
description="django-easy-profiles",
long_description=LONG_DESCRIPTION,
classifiers=[
"Development Status :: 2 - Pre-Alpha",
... | mit | 5,192,354,460,655,273,000 | 32 | 71 | 0.628676 | false |
sahlinet/fastapp | fastapp/api_serializers.py | 1 | 3087 | from rest_framework import serializers
from rest_framework.reverse import reverse
from fastapp.models import Base, Apy, Setting, Counter, TransportEndpoint, Transaction, LogEntry
import logging
logger = logging.getLogger(__name__)
class CounterSerializer(serializers.ModelSerializer):
class Meta:
model =... | mit | -5,149,677,560,269,219,000 | 29.564356 | 101 | 0.63816 | false |
kern3020/opportunity | opportunity/tracker/migrations/0002_auto__add_mentorship.py | 1 | 13807 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Mentorship'
db.create_table('tracker_mentorship', (
('id', self.gf('django.db.mo... | mit | -6,980,998,740,839,843,000 | 71.673684 | 182 | 0.539581 | false |
iafan/zing | tests/settings.py | 1 | 3639 | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
# Copyright (C) Zing contributors.
#
# This file is a part of the Zing project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
"""Test set... | gpl-3.0 | -5,269,662,005,326,668,000 | 32.694444 | 84 | 0.692223 | false |
adhish20/TwitterWithCassandra | users/forms.py | 1 | 1902 | import uuid
from django import forms
import cass
class LoginForm(forms.Form):
username = forms.CharField(max_length=30)
password = forms.CharField(widget=forms.PasswordInput(render_value=False))
def clean(self):
username = self.cleaned_data['username']
password = self.cleaned_data['p... | mit | 3,853,147,340,635,723,000 | 34.222222 | 79 | 0.638275 | false |
tobiasgehring/qudi | logic/sequence_generator_logic.py | 1 | 52322 | # -*- coding: utf-8 -*-
"""
This file contains the Qudi sequence generator logic for general sequence structure.
Qudi is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your ... | gpl-3.0 | -7,307,263,554,439,006,000 | 50.447394 | 191 | 0.595218 | false |
rcgee/oq-hazardlib | openquake/hazardlib/site.py | 1 | 18827 | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2012-2016 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | agpl-3.0 | 877,749,385,576,351,600 | 37.738683 | 79 | 0.616296 | false |
chandrikas/sm | drivers/ISOSR.py | 1 | 27571 | #!/usr/bin/python
#
# Copyright (C) Citrix Systems Inc.
#
# This program 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; version 2.1 only.
#
# This program is distributed in the hope that it will be u... | lgpl-2.1 | -2,616,487,094,124,012,500 | 38.556671 | 125 | 0.534583 | false |
Outernet-Project/librarian | tests/routes/test_auth.py | 1 | 7612 | try:
import __builtin__ as builtins
except ImportError:
import builtins
import mock
import librarian.routes.auth as mod
# Test login route handler
@mock.patch.object(mod.Login, 'perform_redirect')
@mock.patch.object(mod.Login, 'request')
def test_login_form_valid(request, perform_redirect):
route = mo... | gpl-3.0 | 7,878,728,443,754,681,000 | 35.421053 | 79 | 0.681818 | false |
gsnbng/erpnext | erpnext/loan_management/doctype/loan_disbursement/test_loan_disbursement.py | 1 | 3110 | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
from frappe.utils import (nowdate, add_days, get_datetime, get_first_day, get_last_day, date_diff, flt, add_to_date)
from erpnext.loan_mana... | agpl-3.0 | 3,905,159,435,813,598,700 | 41.60274 | 150 | 0.736334 | false |
jmhal/CCAPython | framework/manage/services.py | 1 | 9027 | from CCAPython.gov.cca import Services
from CCAPython.gov.cca.ports import ConnectionEventService
from CCAPython.gov.cca.ports import EventType
from CCAPython.framework.info.connectioninfo import ConnectionEvent
from CCAPython.framework.common.typemap import TypeMapDict
from CCAPython.framework.common.exceptions import... | apache-2.0 | 4,384,464,468,484,002,300 | 30.127586 | 142 | 0.643625 | false |
kris71990/China_info | chinadicts.py | 1 | 1299 | prov_cap = {
"Hebei": "Shijiazhuang",
"Shanxi": "Taiyuan",
"Liaoning": "Shenyang",
"Jilin": "Changchun",
"Heilongjiang": "Harbin",
"Jiangsu": "Nanjing",
"Zhejiang": "Hangzhou",
"Anhui": "Hefei",
"Fujian": "Fuzhou",
"Jiangxi": "Nanchang",
"Shandong": "Jinan",
"Henan": "Zhe... | mit | -3,503,002,077,816,666,000 | 18.984615 | 32 | 0.532717 | false |
JensTimmerman/radical.pilot | src/radical/pilot/utils/analysis.py | 1 | 12671 |
import os
# ------------------------------------------------------------------------------
#
def get_experiment_frames(experiments, datadir=None):
"""
read profiles for all sessions in the given 'experiments' dict. That dict
is expected to be like this:
{ 'test 1' : [ [ 'rp.session.thinkie.merzky.01... | mit | -4,651,960,791,394,131,000 | 34.793785 | 113 | 0.475495 | false |
ludojmj/treelud | server/paramiko/dsskey.py | 1 | 6975 | # Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko 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,... | mit | -2,605,472,682,343,415,000 | 33.227273 | 100 | 0.567455 | false |
alexandrebarachant/mne-python | mne/decoding/tests/test_ems.py | 1 | 3384 | # Author: Denis A. Engemann <d.engemann@gmail.com>
#
# License: BSD (3-clause)
import os.path as op
import numpy as np
from numpy.testing import assert_array_almost_equal
from nose.tools import assert_equal, assert_raises
from mne import io, Epochs, read_events, pick_types
from mne.utils import requires_sklearn, chec... | bsd-3-clause | 6,914,058,630,183,954,000 | 37.454545 | 78 | 0.648936 | false |
snipsco/snipsskills | snipsmanager/utils/microphone_setup.py | 1 | 1997 | # -*-: coding utf-8 -*-
""" Downloader for Snips assistants. """
import os
import shutil
from .os_helpers import cmd_exists, is_raspi_os, execute_command, pipe_commands
from .. import ASOUNDCONF_DEST_PATH
# pylint: disable=too-few-public-methods
class MicrophoneSetup:
""" Downloader for Snips assistants. """
... | mit | -8,214,272,238,034,088,000 | 33.431034 | 98 | 0.625939 | false |
edickie/ciftify | ciftify/bin/ciftify_seed_corr.py | 1 | 8983 | #!/usr/bin/env python3
"""
Produces a correlation map of the mean time series within the seed with
every voxel in the functional file.
Usage:
ciftify_seed_corr [options] <func> <seed>
Arguments:
<func> functional data (nifti or cifti)
<seed> seed mask (nifti, cifti or gifti)
Options:
... | mit | -9,101,947,211,567,938,000 | 36.902954 | 120 | 0.649338 | false |
Linutronix/elbe | elbepack/initvmaction.py | 1 | 23779 | # ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (c) 2015-2017 Manuel Traut <manut@linutronix.de>
# Copyright (c) 2015-2018 Torben Hohn <torben.hohn@linutronix.de>
# Copyright (c) 2015 Silvio Fricke <silvio.fricke@gmail.com>
# Copyright (c) 2017 Philipp Arras <philipp.arras@linutronix.de>
# Copyright (... | gpl-3.0 | 8,525,162,397,998,769,000 | 33.263689 | 118 | 0.529711 | false |
Capitains/Nautilus | capitains_nautilus/flask_ext.py | 1 | 7289 | from pkg_resources import resource_filename
import logging
from copy import deepcopy
from collections import defaultdict
from flask import Blueprint, Response
from capitains_nautilus.apis.cts import CTSApi
from capitains_nautilus.apis.dts import DTSApi
def _all_origins():
return "*"
class FlaskNautilus(objec... | mpl-2.0 | -642,994,500,773,671,200 | 32.131818 | 117 | 0.600494 | false |
sbg2133/miscellaneous_projects | carina/ItoNH.py | 1 | 1115 | import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits
import aplpy
from astropy.wcs import WCS
import sys, os
from getIQU import IQU
from astropy import coordinates as coord
from astropy.coordinates import SkyCoord
from astropy import units as u
from scipy.interpolate import griddata
plt.ion()
... | gpl-3.0 | -8,403,188,222,198,603,000 | 24.340909 | 94 | 0.673543 | false |
trasa/sprout | sprout/sprout/servicehosts.py | 1 | 1382 | import os
from fabric.api import *
def create_objects(cfg, service_hosts):
""" Turn a list of service host info into objects that can do
starting, stopping of services, or other things that
we think up.
"""
return [ServiceHost(
s['hostname'],
s['services'],... | apache-2.0 | -7,280,064,624,537,456,000 | 26.64 | 65 | 0.575977 | false |
hqcckes/python-scheduler | Server/message.py | 1 | 2650 | # coding=utf-8
import os
import sys
import codecs
import json
import logging
import logging.config
from rpyc import Service
from rpyc.utils.server import ThreadedServer
from ConfigParser import SafeConfigParser
class Message(Service):
@staticmethod
def exposed_send(message):
import urllib2
l... | gpl-3.0 | -404,603,665,324,014,900 | 26.066667 | 121 | 0.605911 | false |
ContinuumIO/ashiba | enaml/enaml/qt/qt_stack_item.py | 1 | 3902 | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | bsd-3-clause | -7,036,452,119,728,805,000 | 30.467742 | 79 | 0.494106 | false |
forgeservicelab/ansible-roles.django_saml_app | templates/settings.py | 1 | 5840 | """
Django settings for samldemo project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
i... | mit | 8,473,894,465,641,903,000 | 28.5 | 113 | 0.62089 | false |
wil/pyroman | examples/example1/03_standard_chains.py | 1 | 1452 | """
Pyroman uses some standard chains, set in it's config.
These chains are used by the "allow()", "reject()" and "drop()" commandos
for nicer rule writing, and probably should do exactly that.
If you want maximal performance, you'll want to change these to ACCEPT and DROP
directly by calling 'Firewall.accept = "ACCEP... | mit | 4,925,883,790,830,189,000 | 39.333333 | 79 | 0.74449 | false |
ViderumGlobal/ckanext-requestdata | ckanext/requestdata/controllers/package.py | 1 | 3021 | from ckan.lib import base
from ckan.common import c, _
from ckan import logic
import ckan.model as model
import ckan.lib.helpers as h
from ckan.plugins import toolkit
from ckan.controllers.package import PackageController as _PackageController
import ckan.lib.navl.dictization_functions as dict_fns
from ckanext.requestd... | agpl-3.0 | -8,142,442,439,098,392,000 | 33.329545 | 78 | 0.503807 | false |
Motolea/pentagram | aplicatiepentagram/Pentagram/views.py | 1 | 3440 | from django.shortcuts import render
from django.contrib.auth.models import User
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework import status
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.authtoken.models import Token
from... | gpl-3.0 | 409,339,148,438,177,900 | 39.952381 | 91 | 0.701744 | false |
hlange/LogSoCR | .waf/waflib/extras/ocaml.py | 1 | 9469 | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2010 (ita)
"ocaml support"
import os, re
from waflib import Utils, Task
from waflib.Logs import error
from waflib.TaskGen import feature, before_method, after_method, extension
EXT_MLL = ['.mll']
EXT_MLY = ['.mly']
EXT_MLI = ['.mli']
EXT_MLC = ['.c']
EXT_ML... | agpl-3.0 | 1,413,643,713,363,514,400 | 27.607251 | 117 | 0.659521 | false |
vlegoff/tsunami | src/primaires/format/editeurs/floatedit/__init__.py | 1 | 4072 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# ... | bsd-3-clause | -354,768,347,464,347,840 | 41.505263 | 79 | 0.679297 | false |
ilstreltsov/django-db-mailer | dbmail/south_migrations/0039_auto__add_unique_mailsubscription_address.py | 1 | 20732 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'MailSubscription', fields ['address']
db.c... | gpl-2.0 | 5,494,623,558,211,153,000 | 80.305882 | 200 | 0.544472 | false |
catapult-project/catapult | telemetry/telemetry/internal/platform/tracing_agent/atrace_tracing_agent_unittest.py | 3 | 2049 | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import absolute_import
import unittest
import mock
from systrace.tracing_agents import atrace_agent as systrace_atrace_agent
from telemetry... | bsd-3-clause | -2,279,390,763,361,511,400 | 43.543478 | 77 | 0.768668 | false |
BFH-BTI7301-project1/ClockAlarm | _clockalarm/_tests/SimpleAlertEditWidget_test.py | 1 | 1384 | from os.path import dirname, abspath, join
import pytest
from PyQt5.QtWidgets import QApplication, QGroupBox, QTimeEdit, \
QDateTimeEdit
from _clockalarm.UI.SimpleAlertEditWidget import SimpleAlertEditWidget
from _clockalarm.utils import importExportUtils
@pytest.fixture
def init_paths(scope="module"):
impo... | gpl-3.0 | -86,595,258,066,842,460 | 28.446809 | 76 | 0.677746 | false |
saullocastro/pyNastran | pyNastran/bdf/mesh_utils/test/test_convert.py | 1 | 7968 | from __future__ import print_function
import os
import unittest
import numpy as np
from numpy import allclose
#import pyNastran
#from pyNastran.bdf.bdf import BDF
#root_path = pyNastran.__path__[0]
#test_path = os.path.join(root_path, 'bdf', 'test', 'unit')
from pyNastran.bdf.cards.elements.mass import CONM2
import ... | lgpl-3.0 | 7,829,366,165,569,614,000 | 38.251232 | 136 | 0.563755 | false |
brunoabud/ic | plugins/ICGRAY2BGR/plugin_object.py | 1 | 1150 | # coding: utf-8
# Copyright (C) 2016 Bruno Abude Cardoso
#
# Imagem Cinemática is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Imag... | gpl-3.0 | 2,798,068,830,518,351,400 | 32.764706 | 75 | 0.705575 | false |
meppe/ros-ort | src/frcnn/src/lib/pycocotools/mask.py | 1 | 4062 | __author__ = 'tsungyi'
import lib.pycocotools._mask as _mask
# Interface for manipulating masks stored in RLE format.
#
# RLE is a simple yet efficient format for storing binary masks. RLE
# first divides a vector (or vectorized image) into a series of piecewise
# constant regions and then for each piece simply store... | gpl-3.0 | -2,878,177,237,587,652,600 | 48.54878 | 100 | 0.699655 | false |
joshcai/utdcs | processing/views.py | 1 | 3030 | # Create your views here.
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.template import RequestContext, loader
from django.core.urlresolvers import reverse
from django.shortcuts import render, get_object_or_404
from django.db.models import Q
from website import secrets
import datetime
... | mit | 2,868,276,417,460,019,000 | 30.894737 | 114 | 0.69604 | false |
daniaki/pyPPI | pyppi/tests/test_ontology.py | 1 | 6976 | import os
from unittest import TestCase
from ..data_mining.ontology import get_active_instance
from ..data_mining.ontology import (
get_up_to_lca,
get_lca_of_terms,
group_terms_by_ontology_type,
filter_obsolete_terms,
parse_obo12_file
)
base_path = os.path.dirname(__file__)
test_obo_file = '{}/{}'... | mit | 8,340,560,331,163,820,000 | 30.282511 | 74 | 0.535837 | false |
azumimuo/family-xbmc-addon | plugin.video.specto/resources/lib/sources/kissanime_tv.py | 1 | 4887 | # -*- coding: utf-8 -*-
'''
Specto Add-on
Copyright (C) 2015 lambda
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any l... | gpl-2.0 | 5,392,704,476,561,538,000 | 37.179688 | 135 | 0.544506 | false |
openmips/stbgui | lib/python/Components/Renderer/NextEpgInfo.py | 2 | 3268 | from Components.VariableText import VariableText
from Renderer import Renderer
from enigma import eLabel, eEPGCache, eServiceReference
from time import localtime, strftime
from skin import parseColor
class NextEpgInfo(Renderer, VariableText):
def __init__(self):
Renderer.__init__(self)
VariableText.__init__(self)... | gpl-2.0 | 6,980,544,276,022,878,000 | 37.011628 | 158 | 0.678703 | false |
WilliamMayor/pinscher | pinscher/Keyfile.py | 1 | 1219 | import string
import pickle
import os
import utilities
class Keyfile:
LENGTH = 32
CHARACTERS = string.digits + string.letters + string.punctuation + ' '
@staticmethod
def create(path, database_path, **kwargs):
k = Keyfile()
k.path = path
k.database_path = os.path.abspath(dat... | gpl-3.0 | -6,969,443,440,557,586,000 | 23.38 | 74 | 0.575062 | false |
PyCQA/astroid | astroid/brain/brain_type.py | 1 | 2187 | """
Astroid hooks for type support.
Starting from python3.9, type object behaves as it had __class_getitem__ method.
However it was not possible to simply add this method inside type's body, otherwise
all types would also have this method. In this case it would have been possible
to write str[int].
Guido Van Rossum pr... | lgpl-2.1 | -6,311,474,582,028,243,000 | 32.646154 | 108 | 0.715592 | false |
gwwfps/boxrps | admin.py | 1 | 15675 | #!/usr/bin/env python
import logging
import yaml
import cgi
from xml.dom import minidom as md
from datetime import datetime, timedelta
from collections import defaultdict
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext import db
from django.utils import sim... | mit | -3,077,891,950,705,445,000 | 38.987245 | 157 | 0.45008 | false |
googleads/google-ads-python | google/ads/googleads/v7/services/types/campaign_budget_service.py | 1 | 6329 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -8,298,692,412,461,880,000 | 36.229412 | 128 | 0.681624 | false |
desec-io/desec-stack | api/desecapi/tests/test_replication.py | 1 | 5066 | import json
import os
import random
import string
import time
from datetime import datetime
from tempfile import TemporaryDirectory
from django.test import testcases
from rest_framework import status
from desecapi.replication import Repository
from desecapi.tests.base import DesecTestCase
class ReplicationTest(Dese... | mit | 7,817,141,733,850,955,000 | 36.25 | 118 | 0.606593 | false |
amonapp/amon | amon/apps/_account/forms.py | 1 | 6520 | from django import forms
from django.contrib.auth import authenticate
from django.conf import settings
from django.contrib.auth import get_user_model
# from amon.apps.notifications.models import notifications_model
# from amon.apps.alerts.models import alerts_model
# from amon.apps.account.models import user_preferenc... | agpl-3.0 | 8,258,274,880,384,959,000 | 29.905213 | 128 | 0.639724 | false |
TheChymera/LabbookDB | labbookdb/tests/test_report.py | 1 | 3726 | import pytest
from os import path
DB_PATH = '~/.demolog/meta.db'
DATA_DIR = path.join(path.dirname(path.realpath(__file__)),'../../example_data/')
def test_implant_angle_filter():
from labbookdb.report.selection import animal_id, animal_treatments, animal_operations
import numpy as np
db_path=DB_PATH
df = animal... | bsd-3-clause | -7,529,482,802,946,345,000 | 30.05 | 172 | 0.69431 | false |
Micronaet/micronaet-production | production_accounting_external_closed/report/production_parser.py | 1 | 2846 | # -*- coding: utf-8 -*-
###############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2001-2015 Micronaet S.r.l. (<http://www.micronaet.it>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | -6,230,255,985,330,158,000 | 35.961039 | 79 | 0.608925 | false |
PU-Crypto/AES | Rijndael/KeySchedule.py | 1 | 1376 | # -*- coding: utf-8 -*-
#KeySchedule
from Rijndael.SubBytes import *
from Rijndael.Tables import RijndaelRcon
import math
def RotWord(Spalte):
#Verschiebe die Plaetze im Array
output = list()
output.append(Spalte[1])
output.append(Spalte[2])
output.append(Spalte[3])
output.append(Spalte[0])
... | lgpl-3.0 | 7,545,850,936,786,939,000 | 28.913043 | 124 | 0.653343 | false |
sbt9uc/osf.io | tests/api_tests/users/test_views.py | 1 | 32030 | # -*- coding: utf-8 -*-
import urlparse
from nose.tools import * # flake8: noqa
from website.models import Node
from website.util.sanitize import strip_html
from tests.base import ApiTestCase
from tests.factories import AuthUserFactory, DashboardFactory, FolderFactory, ProjectFactory
from api.base.settings.defaults... | apache-2.0 | 1,204,231,969,254,728,200 | 46.949102 | 144 | 0.613862 | false |
LazoCoder/Pokemon-Terminal | tests/test_main.py | 1 | 3018 | #!/usr/bin/env python3
# To run the tests, use: python3 -m pytest --capture=sys
from pokemonterminal.database import Database
from pokemonterminal.filters import Filter, RegionFilter, NonExtrasFilter
from pokemonterminal.main import main
from tests.test_utils import region_dict
import random
db = Database()
def br... | gpl-3.0 | -2,077,544,168,449,750,000 | 33.689655 | 79 | 0.628893 | false |
griffy/Pyap | pyap/library/db.py | 1 | 2688 | # Pyap - The Python Audio Player Library
#
# Copyright (c) 2012 Joel Griffith
# Copyright (c) 2005 Joe Wreschnig
# Copyright (c) 2002 David I. Lehn
# Copyright (c) 2005-2011 the SQLAlchemy authors and contributors
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU L... | gpl-2.0 | 4,940,832,737,651,426,000 | 34.84 | 68 | 0.682292 | false |
jkakavas/creepy | creepy/plugins/googleplus/googleplus.py | 1 | 10302 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from models.InputPlugin import InputPlugin
from oauth2client.client import OAuth2WebServerFlow, AccessTokenCredentials
from googleapiclient.discovery import build
import logging
import os
import urllib
import httplib2
import dateutil.parser
from PyQt4.QtGui import QWizard, QWiz... | gpl-3.0 | -3,139,426,532,070,948,000 | 46.041096 | 120 | 0.583964 | false |
magchips/labalyzer | setup.py | 1 | 3470 | #!/usr/bin/env python
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2010 <Atreju Tauschinsky> <Atreju.Tauschinsky@gmx.de>
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version ... | gpl-3.0 | 3,448,645,533,441,506,300 | 34.030303 | 99 | 0.580161 | false |
olga-perederieieva/pyDEA | pyDEA/main.py | 1 | 3347 | ''' This module contains methods for running pyDEA from terminal.
'''
import sys
from pyDEA.core.data_processing.parameters import parse_parameters_from_file
from pyDEA.core.utils.run_routine import RunMethodTerminal
from pyDEA.core.utils.dea_utils import clean_up_pickled_files, get_logger
def main(filename, output_... | mit | 2,119,575,361,617,346,300 | 45.486111 | 96 | 0.574544 | false |
wireservice/csvkit | setup.py | 1 | 2897 | #!/usr/bin/env python
import sys
from setuptools import setup
install_requires = [
'agate>=1.6.1',
'agate-excel>=0.2.2',
'agate-dbf>=0.2.0',
'agate-sql>=0.5.3',
'six>=1.6.1',
'setuptools',
]
if sys.version_info < (2, 7):
install_requires.append('argparse>=1.2.1')
install_requires.appe... | mit | 7,940,495,066,647,459,000 | 37.626667 | 104 | 0.622023 | false |
lizardsystem/lizard-kpi | lizard_kpi/testsettings.py | 1 | 3003 | import os
from lizard_ui.settingshelper import setup_logging
from lizard_ui.settingshelper import STATICFILES_FINDERS
DEBUG = True
TEMPLATE_DEBUG = True
# SETTINGS_DIR allows media paths and so to be relative to this settings file
# instead of hardcoded to c:\only\on\my\computer.
SETTINGS_DIR = os.path.dirname(os.pa... | gpl-3.0 | 259,069,673,091,839,230 | 34.329412 | 79 | 0.699301 | false |
ZachMassia/platformio | platformio/builder/scripts/nordicnrf51.py | 1 | 2079 | # Copyright 2014-2016 Ivan Kravets <me@ikravets.com>
#
# 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 | 3,195,199,141,947,326,000 | 26 | 79 | 0.685426 | false |
metglobal/openexchangerates | openexchangerates/tests.py | 1 | 3483 | import unittest
from decimal import Decimal
from httpretty import HTTPretty, httprettified
import openexchangerates
from datetime import date as Date
class TestOpenExchangeRates(unittest.TestCase):
_FIXTURE_CURRENCIES = """{
"AED": "United Arab Emirates Dirham",
"AFN": "Afghan Afghani",
"ALL": "Alb... | mit | 2,540,546,426,846,509,000 | 33.485149 | 76 | 0.612116 | false |
Oli76/rwslib | rwslib/builders.py | 1 | 77124 | # -*- coding: utf-8 -*-
__author__ = 'isparks'
import uuid
from xml.etree import cElementTree as ET
from datetime import datetime
from string import ascii_letters
from rwslib.builder_constants import *
"""
builders.py provides convenience classes for building ODM documents for clinical data and metadata post messages... | mit | -2,991,630,257,282,767,400 | 33.787551 | 121 | 0.603444 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.