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 |
|---|---|---|---|---|---|---|---|---|---|---|
rsmuc/health_monitoring_plugins | test/testagent/snmp_fd.py | 1 | 1194 | import ctypes
import netsnmpapi
class fd_set(ctypes.Structure):
_fields_ = [('fds_bits', ctypes.c_long * 32)]
class Timeval(ctypes.Structure):
_fields_ = [("tv_sec", ctypes.c_long), ("tv_usec", ctypes.c_long)]
def FD_SET(fd, fd_set):
"""Set fd in fd_set, where fd can may be in range of 0..FD_SE... | gpl-2.0 | 7,479,397,408,930,141,000 | 29.421053 | 106 | 0.582077 | false |
trujunzhang/djzhang-targets | cwfuqs/cwfuqs/settings.py | 1 | 2988 | # -*- coding: utf-8 -*-
# Scrapy settings for cwfuqs project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/... | mit | -8,708,439,694,906,147,000 | 34.152941 | 109 | 0.772758 | false |
lholland421/LiamPlayground | collectd-rabbitmq/test_rabbitmq.py | 1 | 1563 | #!/usr/bin/env python
"""
Unit test for the RabbitMQ collectd plugin. Meant to be run with pytest.
"""
# Copyright (C) 2015 SignalFx, Inc.
import collections
import mock
import sys
import sample_responses
class MockCollectd(mock.MagicMock):
"""
Mocks the functions and objects provided by the collectd module... | mit | 6,049,282,584,712,901,000 | 22.681818 | 75 | 0.662188 | false |
synesenom/model.py | distributions/distribution.py | 1 | 5033 | #!/usr/bin/env python3
#title : distribution.py
#description : Imports distributions and defines their default settings.
#author : Enys Mones
#date : 2015.06.20
#version : 0.1
#usage : python distribution.py
#=================================================================... | mit | -2,310,914,908,824,219,600 | 34.195804 | 92 | 0.641168 | false |
letsgoexploring/economicData | usConvergenceData/stateIncomeData.py | 1 | 5246 |
# coding: utf-8
# In[1]:
from __future__ import division,unicode_literals
# get_ipython().magic('matplotlib inline')
import numpy as np
import pandas as pd
import json
import runProcs
from urllib.request import urlopen
import matplotlib.pyplot as plt
# In[2]:
# 0. State abbreviations
# 0.1 dictionary:
stateAbbr... | mit | 3,401,800,098,482,707,500 | 23.745283 | 188 | 0.683378 | false |
gw0/myhdl | myhdl/test/conversion/toVerilog2/test_loops.py | 1 | 1068 | from __future__ import absolute_import
import os
path = os.path
from random import randrange
from myhdl import *
from myhdl.conversion import verify, analyze
from myhdl import ConversionError
from myhdl.conversion._misc import _error
def ForLoopError1(a, out):
@instance
def logic():
while 1:
... | lgpl-2.1 | -6,276,304,458,649,507,000 | 20.36 | 64 | 0.56367 | false |
ymorired/s4backup | filelister.py | 1 | 1541 | __author__ = 'mori.yuichiro'
import os
import fnmatch
class FileLister():
def __init__(self, target_path, ignore_dirs=None, ignore_file_patterns=None):
abs_path = os.path.abspath(target_path)
if not os.path.isdir(abs_path):
raise Exception('Invalid target path!')
self.target_... | mit | -2,292,767,076,066,646,300 | 29.82 | 81 | 0.578845 | false |
ant-Korn/math_tournaments | math_tournaments/users/migrations/0001_initial.py | 1 | 2701 | # -*- coding: utf-8 -*-
# Generated by Django 1.11b1 on 2017-09-23 23:21
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import users.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0008_alter_use... | mit | 6,238,913,713,545,542,000 | 57.727273 | 323 | 0.618808 | false |
teoliphant/scipy | scipy/stats/distributions.py | 2 | 215895 | # Functions to implement several important functions for
# various Continous and Discrete Probability Distributions
#
# Author: Travis Oliphant 2002-2011 with contributions from
# SciPy Developers 2004-2011
#
import math
import warnings
from copy import copy
from scipy.misc import comb, derivative
from s... | bsd-3-clause | -8,934,573,509,199,556,000 | 29.322331 | 94 | 0.531027 | false |
guptaankita/python-novaclient | novaclient/tests/unit/v2/test_versions.py | 1 | 2817 | # Copyright 2015 NEC Corporation. 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 ... | apache-2.0 | -2,989,190,966,836,458,000 | 41.681818 | 78 | 0.622293 | false |
Zurfazz/BiSci | SIZExWEIGHT/SIZExWEIGHT.py | 1 | 1141 | # @Author: Vegard S. <BioVegas>
# @Date: 17-Nov-2016
# @Email: vegard.stuerzinger@gmail.com
# @Project: BiSci
# @Filename: SIZExWEIGHT.py
# @Last modified by: BioVegas
# @Last modified time: 17-Nov-2016
# @Copyright: Open Source
import numpy as np
from Tkinter import *
#saving entry fields
filename="SIZExWEIGHT.... | mit | -3,762,574,506,191,383,000 | 22.285714 | 60 | 0.678352 | false |
fortiema/stackexch-nlp | docs/conf.py | 1 | 7917 | # -*- coding: utf-8 -*-
#
# stackexch-nlp documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values ... | mit | -503,206,970,184,427,800 | 31.446721 | 80 | 0.698497 | false |
CTcue/CTcUMLS | _scripts/dbc_treatments.py | 2 | 2239 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from elasticsearch import Elasticsearch, helpers
import csv
import argparse
import time
import json
import os
def read_rows(filename, delimiter=";"):
with open(filename, "rb") as f:
datareader = csv.reader(f, delimiter=str(... | mit | -1,460,594,322,885,049,900 | 29.671233 | 142 | 0.599375 | false |
itdxer/neupy | tests/algorithms/gd/test_optimizers.py | 1 | 4608 | from functools import partial
from neupy import algorithms, layers
from helpers import simple_classification, compare_networks
from base import BaseTestCase
class OptimizersTestCase(BaseTestCase):
def setUp(self):
super(OptimizersTestCase, self).setUp()
self.network = layers.join(
la... | mit | 672,359,132,601,342,300 | 30.135135 | 69 | 0.543837 | false |
dimara/synnefo | snf-cyclades-app/synnefo/volume/util.py | 1 | 6444 | # Copyright (C) 2010-2015 GRNET S.A. and individual contributors
#
# 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 later version.
#
# T... | gpl-3.0 | 2,165,029,334,500,874,500 | 32.915789 | 78 | 0.665115 | false |
ambrosef/HLx_Examples | Acceleration/memcached/regressionSims/testgen/memtest_regressions.py | 1 | 5540 | #!/usr/bin/python
import memlib
## EDIT HERE ###################################################################
keySizes = [1,3,4,5,7,8,9,10,12,13,15,16,17,24,25,28,84,128]
#valueSizes = [1,3,4,5,8,9,10,12,13,16,17,24,28,184,208,1024]
valueSizes = [1,3,4,5,8,9,10,12,13,16,17,24,28,184,208, 256]
seq1repeat = 5
key... | bsd-3-clause | 1,551,864,709,077,715,000 | 30.657143 | 117 | 0.609567 | false |
imk1/IMKTFBindingCode | selectFIMOCutoff.py | 1 | 5703 | import sys
import argparse
from itertools import izip
import pybedtools as bt
import os
def parseArgument():
# Parse the input
parser = argparse.ArgumentParser(description="Select the FIMO cutoff by maximizing F1 for a list of FIMO files")
parser.add_argument("--FIMOFileListFileName", required=True, \
help="List ... | mit | 4,666,782,831,651,699,000 | 46.525 | 174 | 0.761003 | false |
coreycb/horizon | openstack_dashboard/api/keystone.py | 1 | 33412 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 OpenStack Foundation
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use t... | apache-2.0 | 4,896,837,129,714,877,000 | 34.620469 | 79 | 0.645127 | false |
henrysher/imagefactory | imagefactory-plugins/OpenStackCloud/OpenStackCloud.py | 1 | 4825 | #!/usr/bin/python
import logging
import zope
import libxml2
from imgfac.BuildDispatcher import BuildDispatcher
from imgfac.ImageFactoryException import ImageFactoryException
from imgfac.CloudDelegate import CloudDelegate
from glance import client as glance_client
def glance_upload(image_filename, creds = {'auth_url':... | apache-2.0 | 2,142,119,869,268,620,800 | 40.956522 | 158 | 0.654301 | false |
google-research/open-covid-19-data | src/pipeline/config.py | 1 | 5665 | # 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 agreed to in writing, ... | apache-2.0 | -7,679,367,097,901,189,000 | 39.464286 | 114 | 0.643071 | false |
adityahase/frappe | frappe/contacts/doctype/contact/contact.py | 1 | 8077 | # 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.utils import cstr, has_gravatar, cint
from frappe import _
from frappe.model.document import Document
from frappe.core.doctype... | mit | 281,877,966,277,661,250 | 30.306202 | 110 | 0.684413 | false |
blacksburg98/dyplot | dyplot/hist.py | 1 | 2203 | from dyplot.c3 import C3 as Core
import numpy as np
class Hist(Core):
"""
Compute the histogram of a set of data.
"""
def __init__(self, a, bins=10, r=None, weights=None, density=None, xlabel = "", **kwargs):
"""
:param a: input data. The histogram is computed over the flat... | mit | -297,714,197,932,587,460 | 51.731707 | 295 | 0.585111 | false |
ucsd-ccbb/Oncolist | src/restLayer/models/SearchResult.py | 1 | 1295 | __author__ = 'aarongary'
class SearchResultModel():
def __init__(self):
self.clusterNodeName = ''
self.searchTab = ''
self.geneScoreRangeMax = 100
self.geneSuperList = []
self.items = []
self.geneScoreRangeStep = 0.1
self.geneScoreRangeMin = 5
self.se... | mit | -6,604,879,068,015,613,000 | 32.205128 | 58 | 0.59305 | false |
alej0varas/django-o2o_tagging | o2o_tagging/models.py | 1 | 2048 | from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
from django.db import models
from model_utils.managers import PassThroughManager
from .managers import O2OTagQuerySet
class O2OTag(models.Model):
# The object that is tagging
tagger_content_type = mode... | gpl-3.0 | 4,474,573,030,350,421,500 | 34.929825 | 76 | 0.625 | false |
zfrenchee/pandas | pandas/tests/indexes/datetimes/test_arithmetic.py | 1 | 21153 | # -*- coding: utf-8 -*-
import warnings
from datetime import datetime, timedelta
import pytest
import numpy as np
import pandas as pd
import pandas.util.testing as tm
from pandas.errors import PerformanceWarning
from pandas import (Timestamp, Timedelta, Series,
DatetimeIndex, TimedeltaIndex,
... | bsd-3-clause | -6,268,567,197,909,106,000 | 38.464552 | 78 | 0.528861 | false |
manashmndl/dfvfs | tests/path/raw_path_spec.py | 1 | 1149 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the RAW storage media image path specification implementation."""
import unittest
from dfvfs.path import raw_path_spec
from tests.path import test_lib
class RawPathSpecTest(test_lib.PathSpecTestCase):
"""Tests for the RAW storage media image path specificati... | apache-2.0 | -7,268,564,294,503,144,000 | 26.357143 | 80 | 0.693647 | false |
Titan-C/selfspy | selfspy/activity_store.py | 1 | 9740 | # Copyright 2012 David Fendrich
# Copyright 2017 Oscar Najera
# This file is part of Selfspy
# Selfspy 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) a... | gpl-3.0 | 3,251,141,156,850,954,000 | 33.295775 | 97 | 0.558419 | false |
pkuyym/Paddle | python/paddle/fluid/tests/book/notest_understand_sentiment.py | 1 | 13573 | # Copyright (c) 2018 PaddlePaddle 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 | -3,545,684,741,165,340,000 | 35.291444 | 81 | 0.568924 | false |
demonchild2112/travis-test | grr/server/grr_response_server/databases/mem_paths.py | 1 | 14025 | #!/usr/bin/env python
"""The in memory database methods for path handling."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from future.builtins import filter
from future.utils import iteritems
from future.utils import iterkeys
from typing import Dict
f... | apache-2.0 | -6,259,611,104,042,401,000 | 32.313539 | 80 | 0.636791 | false |
s40523220/2016fallcp_hw | pelicanconf.py | 1 | 2015 | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'KMOL'
SITENAME = '2016Fall 課程網誌 (虎尾科大MDE)'
# 不要用文章所在目錄作為類別
USE_FOLDER_AS_CATEGORY = False
#PATH = 'content'
#OUTPUT_PATH = 'output'
TIMEZONE = 'Asia/Taipei'
DEFAULT_LANG = 'en'
# Feed generation is u... | agpl-3.0 | -3,259,234,573,316,339,700 | 25.28169 | 88 | 0.63397 | false |
aspose-pdf/Aspose.Pdf-for-Java | Plugins/Aspose-Pdf-Java-for-Jython/asposepdf/WorkingWithDocumentObject/AddJavascript.py | 1 | 1156 | from asposepdf import Settings
from com.aspose.pdf import Document
from com.aspose.pdf import JavascriptAction
class AddJavascript:
def __init__(self):
dataDir = Settings.dataDir + 'WorkingWithDocumentObject/AddJavascript/'
# Open a pdf document.
doc = Document(dataDir +... | mit | 1,258,187,660,439,364,600 | 36.6 | 109 | 0.66436 | false |
vishu-guntupalli/spring-batch-dashboard | spring_batch_dashboard/spring_batch_dashboard/settings.py | 1 | 3308 | """
Django settings for spring_batch_dashboard project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/... | mit | -5,535,245,436,612,907,000 | 24.84375 | 91 | 0.678053 | false |
countrymarmot/mccdaq | setup.py | 1 | 2031 | #!/usr/bin/env python
"""Build script for mccdaq.
unzip mccdaq-x.x.zip
>>>> setup.py install
mccdaq-x.x.win32-py2.x.exe
>>>> setup.py bdist_wininst --bitmap mccdaq.bmp
"""
from distutils.core import setup, Extension
import os, re, sys, string
VERSION_MAJOR = 0
VERSION_MINOR = 2
mccdaq_version = str(VERSION_MAJOR) ... | bsd-3-clause | 5,043,339,858,986,041,000 | 30.246154 | 84 | 0.583949 | false |
linuxwhatelse/plugin.audio.linuxwhatelse.gmusic | addon/routes/actions.py | 1 | 21782 | import os
import json
import shutil
import urlparse
import re
import uuid
import codecs
import xbmc
import xbmcgui
import xbmcplugin
import mapper
import gmusicapi
from addon.gmusic_wrapper import GMusic
from addon import utils
from addon import listing
from addon import thumbs
from addon import ADDON
from addon im... | gpl-3.0 | 2,312,730,938,915,822,000 | 27.325098 | 80 | 0.553485 | false |
hacklabr/timtec | accounts/forms.py | 1 | 4697 | # -*- coding: utf-8 -*-
from __builtin__ import super
from django.contrib.auth import get_user_model
from django import forms
from localflavor.br.forms import BRCPFField
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from timtec.settings import ACCOUNT_REQUIRED_FIELDS as field... | agpl-3.0 | 5,552,133,178,344,531,000 | 35.410853 | 106 | 0.631254 | false |
rfk/git-remote-hg | git_remote_hg/test.py | 1 | 1101 | """
git_remote_hg.test: testcases for git_remote_hg
================================================
Actually there are no "tests" as such just yet. This is simply here out of
habit, since I use it to sync the main docstring with README.rst.
"""
import os
import unittest
import git_remote_hg
class TestDocstrin... | mit | 5,540,166,440,208,211,000 | 27.973684 | 75 | 0.551317 | false |
GrAndSE/lighty-template | setup.py | 1 | 2990 | #!/usr/bin/env python
"""
Lighty-template
~~~~~~~~~~~~~~~
Lighty-template is very simple template engine for python (python.org).
Template syntax looks like django-template or jinja2 template. But template
engine code is easier and gives a way to write all needed tags without any
hacks.
Now it does not include all fe... | bsd-3-clause | 1,835,447,419,314,017,500 | 31.857143 | 79 | 0.631438 | false |
waynecoulson/TV-Show-Downloader | sickbeard/__init__.py | 1 | 54063 | # Author: Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of Sick Beard.
#
# Sick Beard 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 Lice... | gpl-3.0 | -6,555,618,988,849,008,000 | 41.072374 | 186 | 0.628064 | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/layout/ternary/_caxis.py | 1 | 11077 | import _plotly_utils.basevalidators
class CaxisValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="caxis", parent_name="layout.ternary", **kwargs):
super(CaxisValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | -2,687,160,254,442,917,000 | 48.013274 | 84 | 0.528482 | false |
ajinabraham/Mobile-Security-Framework-MobSF | scripts/mass_static_analysis.py | 1 | 3070 | #!/usr/bin/env python
# Mass Static Analysis
import os
import urllib.request
import urllib.error
import urllib.parse
import argparse
import requests
import logging
logger = logging.getLogger(__name__)
def is_server_up(url):
try:
response = urllib.request.urlopen(url, timeout=5)
return True
exc... | gpl-3.0 | 169,144,342,619,840,500 | 35.547619 | 108 | 0.587296 | false |
luzi82/HiSocial | core/user/UserGroup.py | 1 | 2042 | from sqlalchemy import Column, String
from sqlalchemy.schema import ForeignKey
from user import User
import Group
from base.DatabaseBase import DBB
class UserGroup(DBB):
__tablename__ = "hs_user_usergroup"
user_id = Column(String(User.USER_ID_LENGTH),ForeignKey("hs_user_user.user_id"), primary_key=Tr... | gpl-3.0 | -638,250,286,764,452,500 | 26.594595 | 119 | 0.653771 | false |
foxcarlos/trelar | pruebaCliente.py | 1 | 4112 | from trello import TrelloClient
import json
# api_key='your-key' - 05571f7ecf0d9177c020b9ab3495aaac
# api_secret='your-secret' - 03a65f30fb4946c03cba7998327f7e10025493f7e036408d6efbcdbd63fc66f5
# token='your-oauth-token-key' - 1316a12594687b611d0c631896b9b421436bd955d0d376162521c5ed267155d8
# token_secret='your-oauth-... | mit | 4,625,675,501,696,865,000 | 23.046784 | 100 | 0.71571 | false |
diofant/diofant | diofant/tests/logic/test_dimacs.py | 1 | 1069 | """Various tests on satisfiability using dimacs cnf file syntax
You can find lots of cnf files in
ftp://dimacs.rutgers.edu/pub/challenge/satisfiability/benchmarks/cnf/
"""
import os
from diofant.logic.algorithms.dpll import dpll_satisfiable
from diofant.logic.algorithms.dpll2 import \
dpll_satisfiable as dpll2_sa... | bsd-3-clause | 7,600,316,817,505,577,000 | 21.744681 | 72 | 0.692236 | false |
teonlamont/mne-python | mne/time_frequency/tests/test_tfr.py | 3 | 25782 | import numpy as np
import os.path as op
from numpy.testing import (assert_array_almost_equal, assert_array_equal,
assert_equal)
import pytest
import mne
from mne import Epochs, read_events, pick_types, create_info, EpochsArray
from mne.io import read_raw_fif
from mne.utils import _TempDir, ... | bsd-3-clause | -3,954,698,318,471,807,000 | 39.096423 | 79 | 0.59111 | false |
ctk3b/InterMol | intermol/forces/nonlinear_bond_type.py | 1 | 1553 | import simtk.unit as units
from intermol.decorators import accepts_compatible_units
from intermol.forces.abstract_bond_type import AbstractBondType
class NonlinearBondType(AbstractBondType):
__slots__ = ['epsilon', 'r0', 'lamda', 'order', 'c']
@accepts_compatible_units(None, None,
... | mit | 6,348,931,378,617,034,000 | 36 | 77 | 0.542176 | false |
immo/pyTOM | df/df_volume_control.py | 1 | 1322 | # coding: utf-8
#
# drums-backend a simple interactive audio sampler that plays vorbis samples
# Copyright (C) 2009 C.D. Immanuel Albrecht
#
# 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 Fou... | gpl-3.0 | -985,648,683,511,073,000 | 30.47619 | 80 | 0.689864 | false |
ZeitOnline/zeit.content.article | src/zeit/content/article/browser/form.py | 1 | 4236 | from zeit.cms.checkout.interfaces import ILocalContent
from zeit.content.article.i18n import MessageFactory as _
import gocept.form.grouped
import uuid
import zeit.cms.browser.form
import zeit.cms.content.browser.form
import zeit.cms.interfaces
import zeit.cms.settings.interfaces
import zeit.content.article.interfaces
... | bsd-3-clause | 3,718,190,842,757,117,400 | 33.721311 | 77 | 0.652266 | false |
TaliesinSkye/evennia | wintersoasis-master/objects/examples/player.py | 1 | 3539 | """
Template module for Players
Copy this module up one level and name it as you like, then
use it as a template to create your own Player class.
To make the default account login default to using a Player
of your new type, change settings.BASE_PLAYER_TYPECLASS to point to
your new class, e.g.
settings.BASE_PLAYER_... | bsd-3-clause | 298,927,947,473,682,300 | 38.322222 | 129 | 0.716869 | false |
songjun54cm/ml_idiot | nn/theano_nn/models/BasicModel.py | 1 | 3684 | __author__ = 'SongJun-Dell'
import logging
import numpy as np
import theano
import theano.tensor as T
from collections import OrderedDict
class BasicModel(object):
def __init__(self, state):
self.state = state
self.floatX = theano.config.floatX
self.layers = list()
self.params = lis... | gpl-3.0 | -3,854,536,841,698,917,000 | 42.857143 | 126 | 0.602334 | false |
lief-project/LIEF | tests/vdex/vdex_test.py | 1 | 3828 | #!/usr/bin/env python
import json
import logging
import os
import pprint
import unittest
from unittest import TestCase
import lief
from utils import get_sample
CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
lief.logging.set_level(lief.logging.LOGGING_LEVEL.DEBUG)
class TestVDEX(TestCase):
def setUp(s... | apache-2.0 | 1,116,827,325,749,575,000 | 31.440678 | 92 | 0.651515 | false |
rschenck/Capsid_IDP_Classifier | development/tuning_and_validating.py | 1 | 9852 | #!/usr/bin/env python
import sys
import operator
import pandas as pd
import numpy as np
from sklearn import cross_validation
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.cross_validation import train_test_split
from sklearn.preprocessing import label_binarize
from sklearn.metrics import roc_curve, au... | gpl-2.0 | 384,085,018,262,306,300 | 31.411184 | 168 | 0.685546 | false |
cwaldbieser/txcas | txcas/couchdb_ticket_store.py | 1 | 29177 |
# Standard library
from __future__ import print_function
import datetime
from functools import partial
import json
import random
import string
import sys
from textwrap import dedent
import uuid
from xml.sax.saxutils import escape as xml_escape
# Application modules
from txcas.ca_trust import createCustomPolicyFactoryF... | gpl-3.0 | -1,356,178,428,908,347,000 | 37.040417 | 118 | 0.546595 | false |
InsightSoftwareConsortium/ITKExamples | src/Core/Common/StreamAPipeline/Code.py | 1 | 1786 | #!/usr/bin/env python
# Copyright NumFOCUS
#
# 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.txt
#
# Unless required by applicable law or ... | apache-2.0 | -5,310,177,088,434,555,000 | 29.271186 | 74 | 0.759798 | false |
saltastro/timDIMM | analyze_cube.py | 1 | 2145 | #!/usr/bin/env python
import sys
import numpy as np
from find_boxes import rfits, daofind
pixel_scale = 1.22
dx = pixel_scale / 206265.0
rd = 0.13
d = 0.06
lamb = 0.65e-6
def moments(data):
"""Returns (height, x, y, width_x, width_y)
the gaussian parameters of a 2D distribution by calculating its
moment... | bsd-3-clause | -1,732,175,487,684,662,800 | 23.94186 | 77 | 0.46993 | false |
nrz/ylikuutio | external/bullet3/examples/pybullet/examples/sleeping.py | 2 | 1235 | import pybullet as p
import time
useMaximalCoordinates = False
flags = p.URDF_ENABLE_SLEEPING
import pybullet_data
p.connect(p.GUI)
p.setAdditionalSearchPath(pybullet_data.getDataPath())
p.configureDebugVisualizer(p.COV_ENABLE_RENDERING, 0)
p.loadURDF("plane100.urdf", flags=flags, useMaximalCoordinates=useMaximalCo... | agpl-3.0 | -7,437,638,780,242,373,000 | 32.378378 | 85 | 0.723887 | false |
mboman/vxcage-jobs | job-filemagic.py | 1 | 2312 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
import time
import tempfile
from pymongo import MongoClient
import gridfs
try:
import magic
except ImportError:
pass
from utils import get_file, clean_data, get_type, Config
JOBNAME = 'FILEMAGIC'
SLEEPTIME = 1
# create logger
logger = logging.getLo... | bsd-3-clause | 7,086,037,901,708,765,000 | 24.130435 | 82 | 0.553201 | false |
blueyed/coveragepy | coverage/parser.py | 1 | 45600 | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
"""Code parsing for coverage.py."""
import ast
import collections
import os
import re
import token
import tokenize
from coverage import env
from coverage.backward... | apache-2.0 | -742,420,493,542,686,700 | 37.77551 | 99 | 0.573136 | false |
endlessm/chromium-browser | third_party/chromite/api/gen/test_platform/steps/execute/build_pb2.py | 1 | 2541 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: test_platform/steps/execute/build.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | bsd-3-clause | 8,662,193,320,717,727,000 | 33.808219 | 317 | 0.744982 | false |
alexshepard/aledison | contacts.py | 1 | 1436 | #!/usr/bin/python
import os.path
import pickle
import yaml
config = yaml.safe_load(open("config.yml"))
contacts_filename = config["contacts"]["filename"]
class Contacts:
"""An address book, with entries for people."""
def get_contacts(self):
if (os.path.isfile(contacts_filename)):
return pickle.load(op... | mit | -1,437,390,145,994,924,000 | 24.210526 | 79 | 0.662953 | false |
mpurg/qtools | packages/Qpyl/core/qstructure.py | 1 | 13331 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# MIT License
#
# Copyright (c) 2018 Miha Purg <miha.purg@gmail.com>
#
# 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, in... | mit | -7,656,438,831,662,270,000 | 34.454787 | 82 | 0.547221 | false |
somic/paasta | tests/autoscaling/test_autoscaling_cluster_lib.py | 1 | 82470 | # Copyright 2015-2016 Yelp Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | apache-2.0 | 1,203,697,620,421,312,300 | 43.845024 | 119 | 0.593016 | false |
tensorflow/quantum | tensorflow_quantum/core/ops/tfq_simulate_ops.py | 1 | 6879 | # Copyright 2020 The TensorFlow Quantum 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... | apache-2.0 | 2,645,374,472,230,637,000 | 49.955556 | 80 | 0.671319 | false |
census-instrumentation/opencensus-python | contrib/opencensus-ext-stackdriver/opencensus/ext/stackdriver/stats_exporter/__init__.py | 1 | 17658 | # Copyright 2018, OpenCensus 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 to in w... | apache-2.0 | 6,420,435,971,629,859,000 | 37.980132 | 79 | 0.660211 | false |
Education-Numerique/api | lxxl/services/graph/activities/thumbnail.py | 1 | 1736 | from lxxl.lib import router, output
from lxxl.lib.app import Error, Controller
from lxxl.lib.storage import Db, DbError
from lxxl.model.activities import Activity, Factory as ActivityFactory
from lxxl.model.blob import Factory as BlobFactory
class Thumbnail(router.Root):
def save(self, environ, params):
... | agpl-3.0 | -8,801,622,417,008,714,000 | 30 | 74 | 0.464862 | false |
google/neural-light-transport | third_party/xiuminglib/xiuminglib/os.py | 1 | 13150 | import os
from os.path import join, exists, isdir, dirname
from shutil import rmtree, copy2, copytree
from glob import glob
from .log import get_logger
logger = get_logger()
from .imprt import preset_import
from .interact import format_print
def _is_cnspath(path):
return isinstance(path, str) and path.startswit... | apache-2.0 | -5,142,542,116,938,487,000 | 29.941176 | 79 | 0.580913 | false |
MarkusH/django-osm-field | tests/test_fields.py | 1 | 10045 | # -*- coding: utf-8 -*-
import copy
from unittest import skipIf
import django
from django.db import models
from django.test import SimpleTestCase, TestCase
from osm_field.fields import LatitudeField, Location, LongitudeField, OSMField
from osm_field.validators import validate_latitude, validate_longitude
from osm_fi... | mit | 917,209,673,852,079,500 | 33.400685 | 85 | 0.607068 | false |
sighill/shade_app | apis/raw/001_raw/001_cleaner.py | 1 | 1564 | # 001_cleaner.py
#####################################################################
##################################
# Import des modules et ajout du path de travail pour import relatif
import sys
sys.path.insert(0 , 'D:/Projets/shade_django/apis/')
from voca import AddLog , StringFormatter , OutFileCreate... | mit | -4,217,137,144,357,580,000 | 33.409091 | 90 | 0.581515 | false |
levilucio/SyVOLT | ECore_Copier_MM/transformation-Large/HepackageOUTeClassifiersSolveRefEPackageEClassifierEPackageEClassifier.py | 1 | 5036 |
from core.himesis import Himesis
class HepackageOUTeClassifiersSolveRefEPackageEClassifierEPackageEClassifier(Himesis):
def __init__(self):
"""
Creates the himesis graph representing the AToM3 model HepackageOUTeClassifiersSolveRefEPackageEClassifierEPackageEClassifier.
"""
# Flag... | mit | -3,944,586,932,985,144,300 | 47.893204 | 298 | 0.518864 | false |
roam/machete | machete/vendor/marshmallow/fields.py | 1 | 25137 | # -*- coding: utf-8 -*-
"""Field classes for formatting and validating the serialized object.
"""
# Adapted from https://github.com/twilio/flask-restful/blob/master/flask_restful/fields.py.
# See the `NOTICE <https://github.com/sloria/marshmallow/blob/master/NOTICE>`_
# file for more licensing information.
from __futu... | bsd-2-clause | 5,213,536,666,867,892,000 | 33.961057 | 95 | 0.597685 | false |
salrashid123/gcpsamples | id_token/iam_svc_tokens/main.py | 1 | 3398 | import logging
import os
import sys
import json
import time
import pprint
from apiclient.discovery import build
import httplib2
from oauth2client.service_account import ServiceAccountCredentials
from oauth2client.client import GoogleCredentials
from apiclient import discovery
custom_claim = "some custom_claim"
audien... | apache-2.0 | 2,382,444,408,897,355,000 | 26.184 | 150 | 0.662743 | false |
cbpygit/pypmj | projects/scattering/photonic_crystals/slabs/hexagonal/half_spaces/hex_plane_tools.py | 1 | 4284 | from scipy.linalg import expm, norm
import numpy as np
def rot_mat(axis, theta):
return expm(np.cross(np.eye(3), axis/norm(axis)*theta))
def rotate_vector(v, axis, theta):
M = rot_mat(axis, theta)
return np.tensordot(M,v,axes=([0],[1])).T #np.dot(M, v)
def rotate_around_z(v, theta):
return rotate_ve... | gpl-3.0 | 4,831,893,324,004,283,000 | 32.732283 | 74 | 0.535247 | false |
JoshAshby/seshat | seshat/actions.py | 1 | 3451 | #!/usr/bin/env python
"""
Actions allow you to write code that looks like::
class RandomController(BaseController):
def GET(self):
return Redirect("/")
which I think looks a lot nicer than::
class RandomController(BaseController):
def GET(self):
self.head.status = "303 SEE OTHER"
... | gpl-3.0 | 7,935,633,218,518,734,000 | 25.960938 | 87 | 0.485656 | false |
rolandgeider/wger | wger/core/views/user.py | 1 | 20020 | # -*- coding: utf-8 -*-
# This file is part of wger Workout Manager.
#
# wger Workout Manager is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any ... | agpl-3.0 | -5,030,452,352,494,952,000 | 32.311148 | 99 | 0.625325 | false |
beingzy/user_recommender_framework | groupwise_distance_learning/tests/test_helper_func.py | 1 | 2232 | """ functions for developing
Author: Yi Zhang <beingzy@gmail.com>
Date: 2016/03/10
"""
import os
import os.path
from os.path import dirname, abspath, join
import pandas as pd
def get_file_parent_dir_path(level=1):
""" return the path of the parent directory of current file """
current_dir_path = dirname(absp... | gpl-3.0 | 5,844,418,779,091,332,000 | 35 | 103 | 0.675627 | false |
nkhumphreys/django-documentregister | documentregister/documents/tests.py | 1 | 7760 | from django.test import TestCase
from django.core.urlresolvers import reverse
from documents.models import DocumentType, Document
from documents.forms import DocumentRegistrationForm
from django_webtest import WebTest
class DocumentModelTest(TestCase):
def setUp(self):
self.dt = DocumentType.objects.crea... | mit | -5,455,818,955,410,780,000 | 33.185022 | 89 | 0.576804 | false |
dials/dials | command_line/slice_sequence.py | 1 | 8896 | from os.path import basename, splitext
from dxtbx.model.experiment_list import ExperimentList
import dials.util
from dials.algorithms.refinement.refinement_helpers import calculate_frame_numbers
from dials.array_family import flex
from dials.util import Sorry
from dials.util.multi_dataset_handling import generate_exp... | bsd-3-clause | -2,975,352,729,658,704,000 | 34.870968 | 88 | 0.60589 | false |
urbn/kombu | kombu/__init__.py | 1 | 4315 | """Messaging library for Python."""
from __future__ import absolute_import, unicode_literals
import os
import re
import sys
if sys.version_info < (2, 7): # pragma: no cover
raise Exception('Kombu 4.0 requires Python versions 2.7 or later.')
from collections import namedtuple # noqa
__version__ = '4.6.6'
__aut... | bsd-3-clause | -6,484,372,662,189,597,000 | 32.976378 | 74 | 0.593975 | false |
RedHatInsights/insights-core | insights/parsers/tests/test_journal_since_boot.py | 1 | 1683 | from insights.parsers.journal_since_boot import JournalSinceBoot
from insights.tests import context_wrap
MSGINFO = """
-- Logs begin at Wed 2017-02-08 15:18:00 CET, end at Tue 2017-09-19 09:12:59 CEST. --
May 18 15:13:34 lxc-rhel68-sat56 jabberd/sm[11057]: session started: jid=rhn-dispatcher-sat@lxc-rhel6-sat56.redhat... | apache-2.0 | 1,267,607,497,514,420,700 | 55.1 | 131 | 0.686275 | false |
TylerTemp/md-video | md_video.py | 1 | 7634 | """
Video block for python-markdown
This is aimed to provide best output even without this extension
Title is case insensitive, title is no use, can also be `[video]`.
This is only to avoid the quick reference link
Format:
[Video: Title of the Video]

[download.m... | mit | -9,049,451,487,628,241,000 | 30.415638 | 122 | 0.517684 | false |
gencer/sentry | src/sentry/south_migrations/0362_auto__add_userip__add_unique_userip_user_ip_address.py | 1 | 89359 | # -*- 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):
# Flag to indicate if this migration is too risky
# to run online and needs to be coordinated for offline
... | bsd-3-clause | 5,967,626,897,996,228,000 | 89.904374 | 233 | 0.579516 | false |
IECS/MansOS | tools/IDE/src/Settings.py | 1 | 2586 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2008-2012 the MansOS team. 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,
# ... | mit | -204,155,399,332,977,860 | 38.8 | 86 | 0.676334 | false |
openmotics/gateway | src/gateway/api/serializers/group_action.py | 1 | 1889 | # Copyright (C) 2020 OpenMotics BV
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distribu... | agpl-3.0 | -3,511,298,968,444,998,000 | 38.354167 | 105 | 0.670196 | false |
julienbaley/zhtools | test/test_zhtools/test_transliteration/test_transliteration.py | 1 | 1506 | from zhtools.transliteration import Transliteration
import unittest
class TestTransliteration(unittest.TestCase):
def test_split_syllables(self):
self.assertEqual(Transliteration("wo3bu4zhi1dao4").text,
["wo3", "bu4", "zhi1", "dao4"])
self.assertEqual(Transliteration("zhe... | gpl-3.0 | -3,367,421,109,927,228,000 | 41.742857 | 78 | 0.631016 | false |
thepaul/uftrace | tests/t098_dump_tid.py | 1 | 2454 | #!/usr/bin/env python
from runtest import TestBase
import subprocess as sp
TDIR='xxx'
class TestCase(TestBase):
def __init__(self):
TestBase.__init__(self, 'fork', """
uftrace file header: magic = 4674726163652100
uftrace file header: version = 4
uftrace file header: header size = 40
uftr... | gpl-2.0 | 676,877,935,123,326,600 | 35.088235 | 119 | 0.603912 | false |
h4ck3rm1k3/orca-sonar | src/orca/generator.py | 1 | 46495 | # Orca
#
# Copyright 2009 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This libr... | lgpl-2.1 | -3,497,708,915,490,167,000 | 41.734375 | 176 | 0.521841 | false |
SeedScientific/polio | source_data/migrations/0095_auto__del_unique_sourceregion_region_string__del_unique_sourceregion_r.py | 1 | 75619 | # -*- 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):
# Removing unique constraint on 'SourceRegion', fields ['region_string', 'documen... | agpl-3.0 | -8,181,385,182,158,380,000 | 90.993917 | 195 | 0.567886 | false |
OpenTransitTools/utils | ott/utils/parse/cmdline/db_cmdline.py | 1 | 1334 | from .base_cmdline import *
def is_spatial(parser):
parser.add_argument(
'--is_geospatial',
'-geo',
'-g',
action="store_true",
help="add geometry columns"
)
def db_parser(prog_name='bin/loader', tables=['Could be (Decarative) Base.metadata.sorted_tables'], url_require... | mpl-2.0 | -1,641,518,630,436,433,000 | 24.169811 | 151 | 0.572714 | false |
torotil/dbuild.py | drupy/objects.py | 1 | 17114 | from copy import deepcopy, copy
import os.path
import urllib.parse
import urllib.request
import hashlib
import json
import setuptools.archive_util
import shutil
import collections
import re
from functools import partial
from glob import glob
def addDefaults(config, defaults):
queue = [(config, defaults)]
whi... | gpl-3.0 | 1,028,903,512,370,132,700 | 31.412879 | 108 | 0.567372 | false |
MikeCurrington/LedPinky | main.py | 1 | 4174 | import xml.etree.ElementTree as ET
import ConfigParser
import SimpleHTTPServer
import SocketServer
import os
from LedWiz import LedWiz
from LedHttp import LedHttp
from gpio import ArcadeGpio
from GameData import GameData
from PinMap import PinMap
from DeviceManager import DeviceManager
from Sequencer import Sequencer
... | mit | 5,146,564,350,527,761,000 | 26.826667 | 117 | 0.758265 | false |
projectshift/shift-boiler | boiler/routes/lazy_views.py | 1 | 1700 | from werkzeug.utils import import_string, cached_property
class LazyView:
"""
Lazy view
Callable class that provides loading views on-demand as soon as they
are hit. This reduces startup times and improves general performance.
See flask docs for more:
http://flask.pocoo.org/docs/0.10/patterns... | mit | -3,940,850,781,304,468,000 | 29.357143 | 78 | 0.583529 | false |
SEMAFORInformatik/femagtools | femagtools/forcedens.py | 1 | 6880 | # -*- coding: utf-8 -*-
"""
femagtools.forcedens
~~~~~~~~~~~~~~~~~~~~
Read Force Density Plot Files
"""
import os
import re
import glob
import numpy as np
import logging
logger = logging.getLogger('femagtools.forcedens')
filename_pat = re.compile(r'^(\w+)_(\d{3}).PLT(\d+)')
num_pat = re.compile(r'([+-]... | bsd-2-clause | -4,452,825,694,495,662,000 | 29.990991 | 73 | 0.459738 | false |
xzturn/caffe2 | caffe2/python/core_gradients_test.py | 1 | 34409 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from future.utils import bytes_to_native_str
from hypothesis import given
import hypothesis.strategies as st
import unittest
from caffe2.proto import caffe2_pb2
from caf... | apache-2.0 | -3,141,119,914,985,864,700 | 36.523446 | 81 | 0.513703 | false |
Towellang/Fabric | towel.py | 1 | 3116 | #!/usr/bin/env python2
import sys
import random
from string import join
STACK = []
LOOPS = [] # Loops are stacks too
PNT = 0
BREAK = False # Break mode
ENV = {
"[": lambda: LOOPS.append(PNT),
"]": lambda: loop(),
"drop": lambda: STACK.pop(),
"dup": lambda: push(str(STACK[-1])) if STACK != [] else panic("Tried d... | gpl-3.0 | -3,585,480,334,938,244,600 | 23.155039 | 102 | 0.603338 | false |
mrunge/openstack_horizon | openstack_horizon/dashboards/project/data_processing/job_executions/tables.py | 1 | 4946 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | apache-2.0 | 407,357,235,437,798,500 | 28.795181 | 74 | 0.598868 | false |
Diti24/python-ivi | ivi/agilent/agilent8156A.py | 1 | 8762 | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2014-2016 Alex Forencich
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... | mit | -8,041,004,866,283,276,000 | 36.767241 | 99 | 0.589249 | false |
cwgreene/Nanostructure-Simulator | kdtree_c.py | 1 | 3883 | import ctypes
import time #test only
#init
kdtree = ctypes.cdll.LoadLibrary("c_optimized/kdtree.so")
kdtree3 = ctypes.cdll.LoadLibrary("c_optimized/kdtree3.so")
kdtree.call_this()
#types
vector2 = ctypes.c_double*2
vector2p = ctypes.c_double*3
vector3 = ctypes.c_double*3
vector3p = ctypes.c_double*4
kdtree_p = ctypes... | mit | -5,357,662,318,989,151,000 | 24.546053 | 73 | 0.692506 | false |
libvirt/autotest | client/virt/tests/nfs_corrupt.py | 1 | 8531 | import logging, os, re
from autotest_lib.client.common_lib import error
from autotest_lib.client.bin import utils, os_dep
from autotest_lib.client.virt import virt_utils
from autotest_lib.client.virt import virt_env_process
class NFSCorruptConfig(object):
"""
This class sets up nfs_corrupt test environment.
... | gpl-2.0 | 939,982,799,174,097,400 | 32.454902 | 79 | 0.558668 | false |
GEMScienceTools/oq-subduction | openquake/sub/grid3d.py | 1 | 6450 | """
:module:
"""
import rtree
import numpy as np
from pyproj import Proj
from scipy.interpolate import griddata
from shapely.geometry import Point
from openquake.sub.misc.alpha_shape import alpha_shape
def generator_function(mesh):
"""
Generator function for quick loading of a 3D spatial index
:param ... | agpl-3.0 | -156,947,146,470,911,140 | 32.076923 | 79 | 0.528527 | false |
Laurawly/tvm-1 | python/tvm/relay/param_dict.py | 2 | 2213 | # 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 | -119,685,848,773,672,770 | 29.736111 | 65 | 0.680976 | false |
tremblerz/breach-detection-system | dashboard/bds/views.py | 1 | 2233 | from django.shortcuts import render,redirect
import random,json
from django.http import HttpResponse
from django.contrib.auth import authenticate,logout,login
from bds.models import Packet
# Create your views here.
"""
def send_data(request):
"""
def login_v(request):
message = ""
if request.method == "POST":
use... | gpl-3.0 | 7,901,635,335,165,355,000 | 26.580247 | 84 | 0.659651 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.