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 |
|---|---|---|---|---|---|---|---|---|---|---|
espona/ckanext-package_converter | ckanext/package_converter/model/scheming_resource_converter.py | 1 | 9800 | import collections
import json
from logging import getLogger
from ckan.lib.helpers import url_for
from ckan.common import config
from ckanext.package_converter.model.metadata_format import MetadataFormats
from ckanext.package_converter.model.scheming_converter import Datacite43SchemingConverter
from xmltodict import u... | agpl-3.0 | -4,915,734,971,167,741,000 | 56.309942 | 120 | 0.522143 | false |
opennode/nodeconductor-assembly-waldur | src/waldur_slurm/base.py | 1 | 5476 | import abc
import logging
import subprocess # noqa: S404
from django.utils.functional import cached_property
from .structures import Quotas
logger = logging.getLogger(__name__)
class BatchError(Exception):
pass
class BaseBatchClient(metaclass=abc.ABCMeta):
def __init__(self, hostname, key_path, username... | mit | 5,122,500,161,127,197,000 | 25.843137 | 102 | 0.557524 | false |
PatrickLeonard/superlists | functional_tests/test_my_lists.py | 1 | 1696 | from .base import FunctionalTest
class MyListsTest(FunctionalTest):
def test_logged_in_users_lists_are_saved_as_my_lists(self):
# Sally is a logged-in user
self.create_pre_authenticated_session('sally@gmail.com')
# Sally goes to the home page and starts a list
self.browser.get(sel... | mit | -4,624,676,073,954,410,000 | 39.380952 | 78 | 0.623821 | false |
mahabs/nitro | nssrc/com/citrix/netscaler/nitro/resource/config/ns/nsversion.py | 1 | 2841 | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | apache-2.0 | 9,031,897,375,595,689,000 | 27.69697 | 111 | 0.696586 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_frontend_endpoints_operations.py | 1 | 23630 | # 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 | -8,208,874,811,439,488,000 | 53.073227 | 240 | 0.640711 | false |
hakujyo/chessplaying_robot | matchpicture.py | 1 | 1381 |
import cv2
import numpy as np
import time
from matplotlib import pyplot as plt
x = 0
y = 0
def makematchpicture(Grayurl):
img = cv2.imread(Grayurl, 0)
img2 = img.copy()
template = cv2.imread('test.png', 0)
w, h = template.shape[::-1]
methods = ['cv2.TM_SQDIFF']
for me... | gpl-3.0 | 3,895,924,439,547,048,000 | 27.804348 | 73 | 0.547046 | false |
GoogleCloudPlatform/ml-on-gcp | tutorials/sklearn/hpsearch/gke_parallel.py | 1 | 16248 | # Copyright 2017, Google 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 applicable law or ... | apache-2.0 | -32,083,320,555,209,584 | 35.927273 | 163 | 0.586595 | false |
RayRuizhiLiao/ITK_4D | Examples/RegistrationITKv3/ImageRegistration3.py | 1 | 4570 | #==========================================================================
#
# Copyright Insight Software Consortium
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | apache-2.0 | -8,696,359,384,806,764,000 | 27.869281 | 88 | 0.715317 | false |
255BITS/HyperGAN | hypergan/trainers/multi_step_trainer.py | 1 | 2012 | import tensorflow as tf
import numpy as np
import hyperchamber as hc
import inspect
from hypergan.trainers.base_trainer import BaseTrainer
TINY = 1e-12
class MultiStepTrainer(BaseTrainer):
def __init__(self, gan, config, losses=[], var_lists=[], metrics=None):
self.losses = losses
self.var_lists ... | mit | -970,139,597,169,082,900 | 31.983607 | 139 | 0.564612 | false |
Reat0ide/plugin.video.pelisalacarta | channelselector.py | 1 | 11006 | # -*- coding: utf-8 -*-
import urlparse,urllib2,urllib,re
import os
import sys
from core import config
from core import logger
from core.item import Item
DEBUG = True
CHANNELNAME = "channelselector"
def getmainlist():
logger.info("channelselector.getmainlist")
itemlist = []
# Obtiene el id... | gpl-3.0 | -8,419,260,920,260,160,000 | 47.309417 | 213 | 0.634231 | false |
HaloWang/SwiftFFNN | UseTF.py | 1 | 1374 | import json as json
import numpy as np
import tensorflow as tf
with open('data.json') as data_file:
data = json.load(data_file)
x = tf.placeholder(tf.float32, [None, 3])
W = tf.Variable(tf.zeros([3, 1]))
b = tf.Variable(tf.zeros([1]))
y = tf.nn.softmax(tf.matmul(x, W) + b)
y_ = tf.placeholder("float", [None, 1... | mit | -1,653,505,655,851,942,000 | 26.48 | 85 | 0.678311 | false |
okolisny/integration_tests | cfme/web_ui/__init__.py | 1 | 143810 | """Provides a number of objects to help with managing certain elements in the CFME UI.
Specifically there are two categories of objects, organizational and elemental.
* **Organizational**
* :py:class:`Region`
* :py:mod:`cfme.web_ui.menu`
* **Elemental**
* :py:class:`AngularCalendarInput`
* :py:class:`Angu... | gpl-2.0 | 137,997,576,260,013,500 | 33.59466 | 103 | 0.573597 | false |
diego-d5000/MisValesMd | env/lib/python2.7/site-packages/django/contrib/gis/db/backends/postgis/introspection.py | 1 | 4641 | from django.contrib.gis.gdal import OGRGeomType
from django.db.backends.postgresql_psycopg2.introspection import \
DatabaseIntrospection
class GeoIntrospectionError(Exception):
pass
class PostGISIntrospection(DatabaseIntrospection):
# Reverse dictionary for PostGIS geometry types not populated... | mit | -7,231,171,851,057,337,000 | 40.577982 | 95 | 0.563887 | false |
emdodds/LCAversions | timing.py | 1 | 3230 | #This file will time various versions of LCA
from __future__ import division
import numpy as np
import sklearn.preprocessing as skp
from timeit import default_timer as timer
from LCAnumpy import lca as lcan
from LCAfortran import lca as lcaf
from LCAnumbaprog import lca as lcag
def main():
"""Profiles various ver... | mit | -9,159,149,339,073,999,000 | 28.907407 | 117 | 0.586997 | false |
stcioc/localdocindex | python/scrape_iasi.py | 1 | 5682 | # -------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Stefan
#
# Created: 30.07.2017
# Copyright: (c) Stefan 2017
# Licence: <your licence>
# --------------------------------------------------------------------------... | mit | -447,915,198,326,569,400 | 33.748428 | 161 | 0.557198 | false |
driftyco/ionitron-issues | tasks/github_issue_submit.py | 1 | 8606 | import github_api
import util
from config.config import CONFIG_VARS as cvar
from datetime import datetime, timedelta
def flag_if_submitted_through_github(repo_username, repo_id, issue):
return False # temporarily disabling ionitron
"""
Flags any issue that is submitted through github's UI, and not the Io... | mit | -6,871,149,245,831,520,000 | 36.585153 | 276 | 0.635603 | false |
nvazquez/Turtlebots | setup.py | 1 | 13419 | #! /usr/bin/python
#
# Copyright (C) 2008 Red Hat, Inc.
# Copyright (C) 2013 Alan Aguiar
#
# 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 of the License, or (at your o... | mit | -4,032,114,253,760,926,700 | 30.5 | 78 | 0.581042 | false |
Dunkas12/BeepBoopBot | lib/youtube_dl/extractor/go.py | 1 | 6977 | # coding: utf-8
from __future__ import unicode_literals
import re
from .adobepass import AdobePassIE
from ..utils import (
int_or_none,
determine_ext,
parse_age_limit,
urlencode_postdata,
ExtractorError,
)
class GoIE(AdobePassIE):
_SITE_INFO = {
'abc': {
'brand': '001',
... | gpl-3.0 | 7,284,084,372,982,987,000 | 39.32948 | 161 | 0.457933 | false |
xmnlab/minilab | arch/socket_arch/util.py | 1 | 2721 | # -*- coding: utf-8 -*-
from __future__ import print_function
from collections import defaultdict
def extract_devices(sensors):
_DEVICE = defaultdict(dict)
for sensors_group in sensors:
if not sensors[sensors_group]['acquisition_mode']:
continue
# analog channels
for item ... | gpl-3.0 | 4,599,358,786,626,185,700 | 32.592593 | 79 | 0.502021 | false |
RyanSkraba/beam | sdks/python/apache_beam/runners/interactive/interactive_environment_test.py | 1 | 10454 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | 5,558,994,031,803,054,000 | 40.320158 | 79 | 0.65946 | false |
wathen/PhD | MHD/FEniCS/MHD/Stabilised/Precond/MHDstabtest.py | 1 | 11477 | #!/usr/bin/python
# interpolate scalar gradient onto nedelec space
from dolfin import *
import petsc4py
import sys
petsc4py.init(sys.argv)
from petsc4py import PETSc
Print = PETSc.Sys.Print
# from MatrixOperations import *
import numpy as np
#import matplotlib.pylab as plt
import PETScIO as IO
import common
import ... | mit | -7,340,128,029,880,071,000 | 31.979885 | 168 | 0.626906 | false |
timlinux/inasafe | safe/gui/gui_utilities.py | 1 | 2330 | # coding=utf-8
"""GUI utilities for the dock and the multi Exposure Tool."""
from PyQt4.QtCore import Qt
from qgis.core import QgsMapLayerRegistry
from safe.utilities.i18n import tr
def layer_from_combo(combo):
"""Get the QgsMapLayer currently selected in a combo.
Obtain QgsMapLayer id from the userrole o... | gpl-3.0 | -2,640,115,686,903,604,700 | 31.361111 | 77 | 0.672103 | false |
krig/jamaendo | jamaui/ossohelper.py | 1 | 4468 | # ossohelper.py - Helper to osso functions
#
# Copyright (c) 2008 INdT - Instituto Nokia de Tecnologia
#
# This file is part of carman-python.
# Modified for inclusion in Panucci (June 2009).
#
# carman-python is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Li... | gpl-3.0 | -6,015,379,975,474,483,000 | 31.143885 | 79 | 0.596016 | false |
matmodlab/matmodlab2 | matmodlab2/ext_helpers/build_ext.py | 1 | 9765 | #!/usr/bin/env python
import os
import re
import sys
import glob
import shutil
import logging
import tempfile
from argparse import ArgumentParser
from subprocess import Popen, STDOUT
from contextlib import contextmanager
from matmodlab2.core.logio import get_logger
from matmodlab2.core.environ import environ
from matm... | bsd-3-clause | -2,366,992,133,191,876,600 | 33.02439 | 123 | 0.619662 | false |
prescott66/Cnchi | src/encfs.py | 1 | 3865 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# encfs.py
#
# Copyright 2013 Antergos
#
# 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 of the License, or
# (at your opti... | gpl-3.0 | -6,783,151,214,010,890,000 | 36.892157 | 102 | 0.663648 | false |
andredias/nikola | nikola/plugins/command/new_post.py | 1 | 19809 | # -*- coding: utf-8 -*-
# Copyright © 2012-2017 Roberto Alsina and others.
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights t... | mit | -6,730,951,704,187,957,000 | 35.542435 | 174 | 0.548773 | false |
anmolshkl/oppia-ml | decision_tree.py | 1 | 1354 | from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn import metrics
from sklearn import tree
import numpy as np
import os
import random
import timeit
import yaml
import load_data
import utilities
def main():
# Load data
X_train,... | apache-2.0 | 5,862,555,658,209,508,000 | 33.74359 | 89 | 0.718612 | false |
shadowmint/nwidget | lib/cocos2d-0.5.5/tools/uniform_snippet.py | 1 | 9402 | #!/usr/bin/python
# $Id:$
"""checks that certain code snipets are the same across the samples and test
directories.
This is a release helper.
Usage:
uniform_snippet.py [<task_selection>]
Where <task_selection> one of:
--report
list files using a different variation of reference snipet
... | apache-2.0 | 3,861,327,580,383,940,000 | 33.345865 | 87 | 0.573389 | false |
hack-shack/rorbuild | pyBuilder/MoFileReaderBuilder.py | 1 | 5567 | # MoFileReaderBuilder.py
# Last modified by : terpsichorean, 2014-03-31
# RoR target version : 0.4.0.7
# OS X target version : 10.9.2
# Win32 target version : n/a
# Win64 target version : n/a
# Description : Builds MoFileReader.
# RoR :
# documentation : none on RoR site.
# documentation req... | gpl-3.0 | 2,047,684,479,248,826,000 | 44.008264 | 175 | 0.569786 | false |
NERC-CEH/jules-jasmin | majic/joj/utils/general_controller_helper.py | 1 | 5711 | """
# Majic
# Copyright (C) 2014 CEH
#
# 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 of the License, or
# (at your option) any later version.
#
# This pr... | gpl-2.0 | -2,567,025,911,908,129,000 | 35.851613 | 117 | 0.625985 | false |
oroszgy/spaCy.hu | spacy/cli/train.py | 1 | 4151 | # coding: utf8
from __future__ import unicode_literals, division, print_function
import json
from pathlib import Path
from ..scorer import Scorer
from ..tagger import Tagger
from ..syntax.parser import Parser
from ..gold import GoldParse, merge_sents
from ..gold import read_json_file as read_gold_json
from .. import ... | mit | -7,030,617,258,275,148,000 | 35.095652 | 96 | 0.60371 | false |
DerekRies/starmadepy | starmadepy/starmade.py | 1 | 16611 | import json
import binascii
import copy
import pkgutil
from bisect import bisect_left
from utils import tuple_add, tuple_sub, plural, bits, split_every_nchars
from binary import BinaryStream, BitPacker
"""
Starmade.py is a collection of various helpers for manipulating Starmade data
"""
# items-complete.json has th... | mit | 7,166,825,139,453,585,000 | 33.038934 | 79 | 0.569562 | false |
abramhindle/UnnaturalCodeFork | python/testdata/launchpad/lib/lp/app/tests/test_tales.py | 1 | 19121 | # Copyright 2009-2013 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""tales.py doctests."""
from datetime import (
datetime,
timedelta,
)
from lxml import html
from pytz import utc
from zope.component import (
getAdapter,
... | agpl-3.0 | 2,405,106,669,734,420,000 | 36.565815 | 78 | 0.637885 | false |
freedomhui/cinder | cinder/version.py | 1 | 1193 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack 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
... | apache-2.0 | 8,558,772,972,088,632,000 | 30.394737 | 78 | 0.699078 | false |
cercisanat/cercisanat.com | cerci_admin/management/commands/epub.py | 1 | 7038 | #!/usr/bin/env python
#coding:utf-8
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from django.template import Context
from django.template.loader import get_template
from cerci_issue.models import Issue
import os
import shutil
from bs4 import BeautifulSoup
from djang... | gpl-3.0 | -2,813,511,705,482,807,300 | 42.714286 | 104 | 0.578147 | false |
gencer/sentry | tests/sentry/api/endpoints/test_user_notifications.py | 1 | 1384 | from __future__ import absolute_import
from sentry.testutils import APITestCase
from django.core.urlresolvers import reverse
class UserListTest(APITestCase):
def test_lookup_self(self):
user = self.create_user(email='a@example.com')
self.login_as(user=user)
url = reverse(
'... | bsd-3-clause | -1,322,648,062,000,574,000 | 25.615385 | 78 | 0.570087 | false |
Bismarrck/pymatgen | pymatgen/io/zeopp.py | 1 | 23655 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals, print_function
<<<<<<< HEAD
"""
Module implementing classes and functions to use Zeo++.
Zeo++ can be obtained from http://www.maciejharanczyk.info/Zeopp/
"""
... | mit | 8,012,744,464,591,307,000 | 36.135008 | 81 | 0.582752 | false |
LiorAbitbol/vmwvro | vmwvro/clients.py | 1 | 1707 | """
VMware vRealize Client implementation and supporting objects.
Copyright (c) 2017, Lior P. Abitbol <liorabitbol@gmail.com>
"""
import logging
import requests
from .config import URL_GET_WORKFLOW_BY_ID
from .utils import format_url, is_json
from .workflows import Workflow
class Client:
def __i... | mit | 1,919,795,720,727,053,300 | 26.932203 | 96 | 0.556532 | false |
barsnadcat/evegant | ItemStackGraphic.py | 1 | 1772 |
from PyQt5.QtCore import QPointF, QRect, QRectF, QSize, QSizeF, Qt
from PyQt5.QtWidgets import QGraphicsItem, QGraphicsPixmapItem
from PyQt5.QtGui import QFontMetricsF, QFont
class InputGraphic(QGraphicsItem):
def __init__(self, aItemStack, aParent, aPos, aToolkitTypes):
super().__init__(aParent)
self.setPos(aP... | gpl-3.0 | 6,923,136,905,170,005,000 | 29.568966 | 90 | 0.730813 | false |
pytroll/satpy | satpy/tests/reader_tests/test_viirs_compact.py | 1 | 121654 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017-2019 Satpy developers
#
# This file is part of satpy.
#
# satpy 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 Licens... | gpl-3.0 | -7,021,463,102,585,446,000 | 47.97504 | 201 | 0.266806 | false |
TheGrimJam/fictiongen | fictiongen_app/markov_functions/views.py | 1 | 1132 | from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.views.decorators.csrf import csrf_exempt
from django.template import RequestContext
import markov_functions.mk_functions as ma
from core import development_tools as log
from mark... | lgpl-3.0 | -2,273,507,408,531,493,400 | 39.925926 | 90 | 0.715548 | false |
googleapis/googleapis-gen | google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/types/security_settings.py | 1 | 8909 | # -*- 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,159,482,049,782,885,000 | 32.111524 | 136 | 0.642079 | false |
adrxbmc/adrxbmc.repository | plugin.audio.googlemusic/gmusicapi/utils/utils.py | 1 | 17273 | # -*- coding: utf-8 -*-
"""Utility functions used across api code."""
import errno
import functools
import inspect
import logging
import os
import re
import subprocess
import time
import traceback
import warnings
from decorator import decorator
try:
from google.protobuf.descriptor import FieldDescriptor
#Map... | gpl-2.0 | -8,116,702,483,677,432,000 | 30.405455 | 100 | 0.600706 | false |
City-of-Bloomington/green-rental | scripts/convert-columbia.py | 2 | 16593 | #!/usr/bin/env python
"""
#
# By: Charles Brandt [code at charlesbrandt dot com]
# On: *2013.12.17 20:44:16
# License: GPLv3
# Requires:
#
# geopy
# Description:
Columbia provides lat/long coordinates with addresses, so import should be simpler.
"""
import os, sys, codecs, re, time
import csv
#import unicodecsv
... | agpl-3.0 | 8,687,614,417,980,200,000 | 36.371622 | 148 | 0.487796 | false |
Snuggle/hypixel.py | hypixel.py | 1 | 14054 | """ Simple Hypixel-API in Python, by Snuggle | 2017-09-30 to 2018-06-14 """
__version__ = '0.8.0'
# pylint: disable=C0103
# TODO: Add more comments. Explain what's happening!
# TODO: Add API-usage stat-tracking. Like a counter of the number of requests and how many per minute etc.
from random import choice
from time i... | mit | 1,250,720,892,829,467,600 | 36.678284 | 148 | 0.595347 | false |
AdaptivePELE/AdaptivePELE | AdaptivePELE/freeEnergies/prepareMSMFolders.py | 1 | 3916 | from __future__ import absolute_import, division, print_function, unicode_literals
import glob
import os
import shutil
class Constants():
def __init__(self, trajs_path=None):
self.trajFolder = "allTrajs"
if trajs_path is not None:
self.trajFolder = os.path.join(trajs_path, self.trajFol... | mit | -1,821,340,976,296,350,200 | 37.019417 | 146 | 0.698672 | false |
openmaraude/APITaxi | APITaxi_models2/migrations/versions/20210614_13:57:26_5b8d8ca36aeb_new_revision.py | 1 | 3206 | """New revision
Revision ID: 5b8d8ca36aeb
Revises: 5d164bbb4813
Create Date: 2021-06-14 13:57:26.772630
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5b8d8ca36aeb'
down_revision = '5d164bbb4813'
branch_labels = None
depends_on = None
def upgrade():
con... | agpl-3.0 | 8,408,152,668,629,320,000 | 39.582278 | 95 | 0.569869 | false |
ml31415/numpy-groupies | numpy_groupies/benchmarks/simple.py | 1 | 4248 | #!/usr/bin/python -B
# -*- coding: utf-8 -*-
from __future__ import print_function
import timeit
import numpy as np
from numpy_groupies.utils import aliasing
from numpy_groupies import aggregate_py, aggregate_np, aggregate_ufunc
from numpy_groupies.aggregate_pandas import aggregate as aggregate_pd
def aggregate_gr... | bsd-2-clause | -2,425,501,684,732,706,300 | 45.173913 | 121 | 0.608992 | false |
DBuildService/osbs-client | tests/test_retries.py | 1 | 2910 | # -*- coding: utf-8 -*-
"""
Copyright (c) 2017 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
These tests are moved to a separate file due to https://github.com/bkabrda/flexmock/issues/13
"""
import logging
from fl... | bsd-3-clause | 4,239,404,509,889,251,300 | 33.619048 | 93 | 0.675378 | false |
ajrichards/htsint | htsint/tools/ExpressionLib.py | 1 | 4968 | #!/usr/bin/env python
"""
tools for expression and count based tasks
"""
import os,sys,csv,gc,re
import numpy as np
def read_RSEM_counts_files(geneFilePath,isoformFilePath):
"""
read the RSEM counts files into a matrix
"""
if not os.path.exists(geneFilePath):
raise Exception("Cannot find ge... | bsd-3-clause | -1,213,594,637,747,343,600 | 27.883721 | 115 | 0.605072 | false |
DamonToumbourou/plugin.video.thisweekinstartups | addon.py | 1 | 2136 | from xbmcswift2 import Plugin, xbmcgui
from resources.lib import thisweekscraper
PLUGIN_URL = 'plugin://plugin.video.youtube/?action=play_video&videoid'
SITE_URL = 'https://www.youtube.com/user/ThisWeekIn'
plugin = Plugin()
@plugin.route('/')
def main_menu():
items = [
{
'label': plugin.get... | mit | 3,201,582,505,885,879,000 | 23 | 89 | 0.542135 | false |
yuanming-hu/taichi | tests/python/test_field.py | 1 | 2199 | '''
To test our new `ti.field` API is functional (#1500)
'''
import pytest
import taichi as ti
data_types = [ti.i32, ti.f32, ti.i64, ti.f64]
field_shapes = [(), 8, (6, 12)]
vector_dims = [3]
matrix_dims = [(1, 2), (2, 3)]
@pytest.mark.parametrize('dtype', data_types)
@pytest.mark.parametrize('shape', field_shapes)... | mit | 4,601,270,125,737,861,600 | 22.393617 | 57 | 0.624375 | false |
Eric-Matthews/Explore_RPG | d_verb_commands.py | 1 | 3001 | from d_toolbox import *
import d_help
# Holds the verb commands to be called by the game.
# Each command must be in the VERB BANK as well as have a function which uses the exact same name.
# The main game can pass NONE to the functions. Depending on the command this may or may not be valid input.
# All must re... | gpl-3.0 | 8,461,055,582,772,697,000 | 35.5375 | 115 | 0.66078 | false |
bbfamily/abu | abupy/SlippageBu/ABuSlippageBuyBase.py | 1 | 4976 | # -*- encoding:utf-8 -*-
"""
日内滑点买入价格决策基础模块:暂时迁移简单实现方式,符合回测需求,如迁移实盘模块
需添加日内择时策略,通过日内分钟k线,实现日内分钟k线择时,更微观的
实现日内择时滑点功能,不考虑大资金的冲击成本及系统外的大幅滑点
"""
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from abc import ABCMeta, abstractmethod
import functools... | gpl-3.0 | 1,950,365,726,494,072,000 | 31.448598 | 111 | 0.591302 | false |
mtwharmby/assorted-scripts | PythonPlayground/mergeHDFs.py | 1 | 6095 | '''
Created on 4 Jul 2016
@author: wnm24546
'''
import glob, os, re, sys
import h5py
import numpy as np
############################################
## EDIT LINES BELOW HERE ###################
############################################
#Give the directory path the files are and... (all values between ' or ")
wor... | gpl-2.0 | 7,628,204,537,460,579,000 | 35.945455 | 139 | 0.601148 | false |
bnbowman/HlaTools | src/pbhla/io/SamIO.py | 1 | 5513 | from collections import namedtuple
entry = namedtuple('entry', 'qname flag rname pos mapq cigar rnext pnext tlen seq qual')
VALID_HD_TAGS = ['VN', 'SO']
VALID_SQ_TAGS = ['SN', 'LN', 'AS', 'M5', 'SP', 'UR']
REQUIRED_HD_TAGS = ['VN']
REQUIRED_SQ_TAGS = ['SN', 'LN']
class SamHeader( object ):
def __init__(self, l... | bsd-3-clause | 4,897,226,491,460,510,000 | 24.761682 | 88 | 0.552875 | false |
frashpikass/mvp-osm | mvp.py | 1 | 34109 | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 24 5:26:00 2016
@author: Francesco Piazza
@author: Maurizio Napolitano
MIT License
"""
# NOTE: the SRID of the input DB is 4326
# NOTE: the SRID of the output DB is 3857
### Imports
import ConfigParser
import numpy as np
import os
import scipy as sc
import scipy.cluster... | mit | -8,127,420,920,717,677,000 | 38.341407 | 119 | 0.519335 | false |
aurule/npc | tests/character/test_properties.py | 1 | 1783 | """
Test all getters and setters in the Character class
Includes all methods that set and retrieve data
"""
import npc
from npc.character import Character
import pytest
class TestTypeKey:
def test_casing(self):
"""Type key should always be lower case"""
char = Character(type=['Fish', 'Great Ape']... | mit | 5,626,822,037,985,338,000 | 26.430769 | 52 | 0.609647 | false |
code-geek/nepalicalendar-py | tests/test_tithis.py | 1 | 1272 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import unittest
from nepalicalendar import TITHIS, NepDate, NepCal
from datetime import date, timedelta
from random import randint
class TithisTestCase(unittest.TestCase):
"""
Test case for the tithis
"... | mit | -6,756,676,890,935,712,000 | 28.952381 | 84 | 0.574722 | false |
Grunny/zap-cli | zapcli/cli.py | 1 | 11868 | """
ZAP CLI.
"""
import sys
import click
from zapcli import __version__
from zapcli import helpers
from zapcli.commands.context import context_group
from zapcli.commands.policies import policies_group
from zapcli.commands.scanners import scanner_group
from zapcli.commands.scripts import scripts_group
from zapcli.com... | mit | -8,610,406,788,646,297,000 | 40.788732 | 120 | 0.656387 | false |
MiniSEC/GRR_clone | lib/rdfvalues/structs.py | 1 | 55661 | #!/usr/bin/env python
"""Semantic Protobufs are serialization agnostic, rich data types."""
import copy
import cStringIO
import json
import logging
import struct
from google.protobuf import text_format
from grr.lib import rdfvalue
from grr.lib import registry
from grr.lib import type_info
from grr.lib import utils
... | apache-2.0 | 7,757,022,768,187,491,000 | 30.026198 | 80 | 0.665978 | false |
sdispater/pendulum | tests/tz/zoneinfo/test_posix_timezone.py | 1 | 1969 | from pendulum.tz.zoneinfo.posix_timezone import JPosixTransition
from pendulum.tz.zoneinfo.posix_timezone import MPosixTransition
from pendulum.tz.zoneinfo.posix_timezone import posix_spec
def test_posix_spec_m():
spec = "CET-1CEST,M3.5.0,M10.5.0/3"
tz = posix_spec(spec)
assert tz.std_abbr == "CET"
a... | mit | -4,709,097,366,466,081,000 | 29.292308 | 64 | 0.651092 | false |
flynx/pli | doc/style.py | 1 | 12070 | #=======================================================================
__version__ = '''0.1.00'''
__sub_version__ = '''20080920022138'''
__copyright__ = '''(c) Alex A. Naanou 2003-2007'''
#-----------------------------------------------------------------------
__doc__ = '''
this module is to document the ... | bsd-3-clause | -6,924,110,043,845,298,000 | 34.575758 | 98 | 0.510025 | false |
brunobell/elasticsearch-py | example/queries.py | 1 | 2797 | #!/usr/bin/env python
from __future__ import print_function
import logging
from dateutil.parser import parse as parse_date
from elasticsearch import Elasticsearch
def print_search_stats(results):
print('=' * 80)
print('Total %d found in %dms' % (results['hits']['total'], results['took']))
print('-' * 80)... | apache-2.0 | 283,234,526,146,128,860 | 24.427273 | 98 | 0.527351 | false |
felipenaselva/felipe.repository | script.module.placenta/lib/resources/lib/sources/en/icouchtuner.py | 1 | 4264 | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @tantrumdev wrote this file. As long as you retain this notice you
# can do whatever you want wit... | gpl-2.0 | -104,094,057,217,636,030 | 42.969072 | 156 | 0.52228 | false |
MRCIEU/melodi | browser/views.py | 1 | 51244 | import sys
import gzip
import time
import numpy
import json
import time
import logging
import operator
import config
import csv
import StringIO
import subprocess
import HTMLParser
#from py2neo import Graph, Path, Node, Relationship,authenticate
from scipy import stats
from django.shortcuts import render_to_response
f... | mit | 3,754,276,648,151,506,000 | 31.660293 | 260 | 0.636153 | false |
catmaid/catpy | setup.py | 1 | 1825 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import runpy
from setuptools import setup
import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.rst")) as readme_file:
readme = readme_file.read()
with open(os.path.join(here, "HISTORY.rst")) as history_file:
history = h... | mit | -2,733,525,583,101,903,000 | 28.918033 | 72 | 0.631233 | false |
nicopresto/nicopresto.com.OLD | models/menu.py | 1 | 2368 | # -*- coding: utf-8 -*-
#########################################################################
## Customize your APP title, subtitle and menus here
#########################################################################
response.title = request.application
response.subtitle = T('customize me!')
response.meta.au... | mit | 6,870,631,474,979,764,000 | 42.054545 | 231 | 0.492821 | false |
raffienficiaud/django_mturk_minimalistic | boto1/management/commands/retrieve_results.py | 1 | 7604 | from django.core.management.base import BaseCommand, CommandError
from django.core.urlresolvers import reverse
from boto1.models import Image, Hit, Result
from optparse import make_option
import boto
import boto.mturk
import boto.mturk.connection
from .create_hits import get_connection
import json
import time, d... | mit | 2,301,703,823,339,876,600 | 29.789474 | 134 | 0.647028 | false |
KingOfBanana/SocialNetworkAI | db/basic_db.py | 1 | 1468 | # -*-coding:utf-8 -*-
from sqlalchemy import create_engine, MetaData
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from config.conf import get_db_args
# for proxy database
from config.conf import get_proxy_db_args
# end
def get_engine():
args = get_db_args()
c... | mit | -2,402,291,857,328,042,500 | 34.829268 | 116 | 0.613079 | false |
sirk390/coinpy | coinpy-lib/src/coinpy/lib/vm/opcode_impl/arithmetic.py | 1 | 5830 | from coinpy.lib.vm.stack_valtype import cast_to_number, valtype_from_number
from coinpy.lib.vm.opcode_impl.flow import op_verify
import functools
def arithmetic_op(vm, func, arity):
if len(vm.stack) < arity:
raise Exception("Not enought arguments")
args = [cast_to_number(vm.stack.pop()) for _ in range... | lgpl-3.0 | 7,772,921,792,784,396,000 | 25.743119 | 80 | 0.545798 | false |
LighthouseHPC/lighthouse | src/LAPACK341/computational_inverse/database_check.py | 1 | 1628 | import csv
import os
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
lighthousedir = os.path.dirname(os.path.dirname(parentdir))
os.sys.path.insert(0,parentdir)
f_database = csv.reader(open(lighthousedir+'/Dlighthouse/Computational/dataBase/le_invert.csv'))
databaseRoutines = []
for line in f... | mit | -835,230,158,127,480,400 | 25.274194 | 104 | 0.672604 | false |
ros2/demos | quality_of_service_demo/rclpy/quality_of_service_demo_py/message_lost_listener.py | 1 | 2648 | # Copyright 2020 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | 8,270,700,819,787,666,000 | 33.842105 | 88 | 0.67145 | false |
tomvansteijn/xsb | xsboringen/geffiles.py | 1 | 13932 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Tom van Steijn, Royal HaskoningDHV
from xsboringen.borehole import Borehole, Segment, Vertical
from xsboringen.cpt import CPT
from xsboringen import utils
from collections import defaultdict, namedtuple
from pathlib import Path
import textwrap
import logging
import os
... | gpl-3.0 | 3,781,907,062,404,658,700 | 31.027586 | 86 | 0.50567 | false |
surik00/ESP8266 | Bedroom (2 chips, 4 strips)/alarm.py | 1 | 2909 | import time
import logging
import datetime
import paho.mqtt.client as mqtt
from apscheduler.schedulers.background import BlockingScheduler
logging.basicConfig(format=u'%(filename)s [LINE:%(lineno)d]#%(levelname)-8s [%(asctime)s] %(message)s',
level=logging.WARNING, filename='./alarm.log')
BROKER... | gpl-3.0 | -5,868,073,514,299,785,000 | 34.048193 | 151 | 0.610519 | false |
tensorflow/model-optimization | tensorflow_model_optimization/python/core/internal/tensor_encoding/utils/__init__.py | 1 | 2108 | # Copyright 2019, The TensorFlow Authors. 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 appli... | apache-2.0 | 7,420,145,395,783,279,000 | 64.875 | 123 | 0.821157 | false |
alexpotter1/Neutron_msm8974_d802 | build/buildDaemon.py | 1 | 22175 | #!/usr/bin/env python3
'''
Build Daemon for the Neutron compilation process.
Designed to run on Debian (Linux) enviroments; this will fail on other OSes.
Copyright Alex Potter 2015.
'''
import sys
import subprocess
import time
import datetime
import os
import sqlite3
import threading
import re
import itertools
impor... | gpl-2.0 | 260,694,615,312,053,120 | 48.277778 | 312 | 0.554453 | false |
andela-uawili/django-bucketlist-application | bucketlist/dashboard/urls.py | 1 | 1550 | from django.conf.urls import url
from views import BucketListsView, \
BucketListCreateView, BucketListUpdateView, \
BucketListDeleteView, BucketListDetailView, \
BucketListItemCreateView, BucketListItemUpdateView, \
BucketListItemDoneView, BucketListItemDeleteView
urlpatterns = [
# bucket list... | mit | -6,131,289,241,656,271,000 | 28.807692 | 74 | 0.624516 | false |
keithasaurus/django_fun_views | tests/patterns/test_redirect.py | 1 | 1473 | from fun_views.patterns.redirect import redirect_view_pattern
from tests.utils.defaults_for_tests import (default_query_string,
default_response, default_url)
def this_get_url():
return default_url
def this_get_query_string():
return default_query_string
def tes... | mit | 5,001,551,975,581,874,000 | 37.763158 | 87 | 0.501697 | false |
hmenager/pyacd | pyacd/qaparser.py | 1 | 5485 | """
parser module for EMBOSS QA files
"""
from pyparsing import Optional, Suppress, Word, OneOrMore, ZeroOrMore, \
printables, Group, alphanums, alphas, restOfLine, oneOf, nums
from .qa import ApplicationRef, FilePattern, FileGroup, Qa, CommandLine, \
InputLine
TEST_ID = Suppress("ID") + Word(alphanums + '-'... | mit | 1,841,487,768,452,138,800 | 31.455621 | 84 | 0.668004 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_07_01/aio/operations/_routes_operations.py | 1 | 21208 | # 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,718,265,728,073,358,000 | 48.32093 | 210 | 0.639617 | false |
inmagik/django-multi-gtfs | multigtfs/models/feed_info.py | 1 | 2310 | #
# Copyright 2012-2014 John Whitlock
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | -7,563,938,476,831,033,000 | 33.477612 | 74 | 0.663203 | false |
googleapis/python-video-transcoder | tests/unit/gapic/transcoder_v1beta1/test_transcoder_service.py | 1 | 117090 | # -*- 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 | 4,683,195,080,450,943,000 | 36.85645 | 136 | 0.661218 | false |
fredericojordan/chess | gui.py | 1 | 11862 | '''
Created on 2 de set de 2016
@author: fvj
'''
import pygame, chess
from random import choice
from traceback import format_exc
from sys import stderr
from time import strftime
from copy import deepcopy
pygame.init()
SQUARE_SIDE = 50
AI_SEARCH_DEPTH = 2
RED_CHECK = (240, 150, 150)
WHITE ... | mit | -4,019,113,260,679,411,700 | 45.071429 | 125 | 0.599309 | false |
marrow/schema | example/thirdparty/formv.py | 1 | 7031 | [
#'formv.validators.base:VBase', # ABC; reqiured, strip
#'formv.validators.base:VConstant', #
#'formv.validators.base:VBool', # bool(value)
#'formv.validators.base:VEmpty', #
#'formv.validators.base:VLength', # min/max
#'formv.validators.base:VRange', # min < val < max
#'formv.validators.base:VList', # i... | mit | 2,609,608,487,151,520,000 | 38.5 | 118 | 0.668895 | false |
kernc/orange3-text | orangecontrib/text/lda.py | 1 | 3585 | import numpy as np
from gensim import corpora, models, matutils
from Orange.data.table import Table
from Orange.data.domain import Domain, ContinuousVariable, StringVariable
from orangecontrib.text.topics import Topics
def chunk_list(l, num):
num = min(len(l), num)
avg = len(l) / float(num)
out = []
l... | bsd-2-clause | 2,362,877,309,063,393,300 | 32.504673 | 90 | 0.55788 | false |
treyhunner/databundles | databundles/repository.py | 1 | 14389 | """Interface to the CKAN data repository, for uploading bundle records and data extracts.
Copyright (c) 2013 Clarinova. This file is licensed under the terms of the
Revised BSD License, included in this distribution as LICENSE.txt
"""
from databundles.dbexceptions import ConfigurationError
import petl.fluent as petlf... | bsd-3-clause | -3,056,784,921,494,447,600 | 33.674699 | 104 | 0.496282 | false |
matrix-org/synapse | synapse/storage/schema/main/delta/31/pushers.py | 1 | 2740 | # Copyright 2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | apache-2.0 | 8,931,685,205,888,015,000 | 30.860465 | 76 | 0.606934 | false |
GaelVaroquaux/scikits.image | scikits/image/io/setup.py | 1 | 1398 | #!/usr/bin/env python
from scikits.image._build import cython
import os.path
base_path = os.path.abspath(os.path.dirname(__file__))
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('io', parent_package, t... | bsd-3-clause | -264,437,310,782,858,430 | 34.846154 | 79 | 0.61588 | false |
qilicun/python | python2/ecl_local.py | 1 | 2993 | import os
import socket
import sys
import ert.job_queue.driver as driver
#################################################################
# Only a quite few of the Linux computers in Statoil are proper LSF
# nodes, in the sense that they can talk directly to the LSF
# demons. When using LSF from a computer which is n... | gpl-3.0 | -7,270,796,649,879,760,000 | 40.569444 | 88 | 0.625459 | false |
mitodl/open-discussions | course_catalog/migrations/0060_contentfile_moverawjson.py | 1 | 3152 | # Generated by Django 2.2.9 on 2020-02-13 14:43
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("course_catalog", "0059_remove_deprecated_offered_by")]
operations = [
migrat... | bsd-3-clause | -7,594,405,783,349,896,000 | 38.4 | 88 | 0.465102 | false |
eviljeff/zamboni | mkt/lookup/views.py | 1 | 22456 | import json
import uuid
from datetime import datetime, timedelta
from django.conf import settings
from django.contrib import messages
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse
from django.db import connection
from django.db.models import Count, Q, Sum
from djang... | bsd-3-clause | -2,779,730,549,008,845,300 | 38.396491 | 79 | 0.605094 | false |
jianajavier/pnc-cli | pnc_cli/swagger_client/apis/products_api.py | 1 | 15858 | # coding: utf-8
"""
ProductsApi.py
Copyright 2015 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required ... | apache-2.0 | 1,099,622,853,851,888,500 | 33.929515 | 103 | 0.507756 | false |
annayqho/TheCannon | code/lamost/xcalib_5labels/make_lamost_catalog/write_table.py | 1 | 3066 | import numpy as np
print("loading test data")
id_test = np.load("id_all.npz")['arr_0']
label_test = np.load("label_all.npz")['arr_0'].T
err_test = np.load("errs_all.npz")['arr_0'].T
npix_test = np.load("npix_all.npz")['arr_0']
# when a fit fails, I set the error to -9999
print("loading test errs")
teff_err_test = np.... | mit | -2,803,129,928,123,322,400 | 36.851852 | 98 | 0.66895 | false |
ina-foss/ID-Fits | lib/datasets/lfw.py | 1 | 6348 | # ID-Fits
# Copyright (c) 2015 Institut National de l'Audiovisuel, INA, All rights reserved.
#
# 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 3.0 of the License, or (at... | lgpl-3.0 | -6,367,440,375,545,659,000 | 26.480519 | 88 | 0.59373 | false |
n2o/guhema | products/admin.py | 1 | 4627 | from django.contrib import admin
from django.contrib.flatpages.models import FlatPage
from django.db import models
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from modeltranslation.admin import TranslationAdmin
from pagedown.widgets import AdminPagedownWidget
f... | mit | 7,575,249,779,729,761,000 | 35.706349 | 155 | 0.626811 | false |
NervanaSystems/coach | rl_coach/orchestrators/kubernetes_orchestrator.py | 1 | 19633 | #
# Copyright (c) 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | apache-2.0 | -2,720,742,902,227,571,000 | 39.817048 | 136 | 0.576173 | false |
lantip/aws-filemanager | cloud_browser/tests/tests_views.py | 1 | 2226 | """Cloud browser views.py tests."""
from django.test import TestCase
import mock
from cloud_browser.cloud import errors
from cloud_browser.cloud.base import CloudContainer
from cloud_browser.common import ROOT
from cloud_browser import views
class TestBrowserRedirect(TestCase):
"""Tests for browser_redirect."""... | mit | -6,664,280,687,060,989,000 | 42.647059 | 78 | 0.608715 | false |
tonioo/modoboa | modoboa/admin/models/mailbox.py | 1 | 12828 | # -*- coding: utf-8 -*-
"""Models related to mailboxes management."""
from __future__ import unicode_literals
import os
import pwd
from reversion import revisions as reversion
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.db.models import Q
from django.db.model... | isc | -8,243,152,318,968,370,000 | 31.72449 | 79 | 0.588634 | false |
sxjscience/tvm | python/tvm/relay/transform/memory_alloc.py | 1 | 14547 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -187,480,350,309,768,800 | 36.882813 | 100 | 0.59813 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.