repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | 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 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lsaffre/lino-welfare | lino_welfare/modlib/cbss/tx25.py | 1 | 38017 | # -*- coding: UTF-8 -*-
# Copyright 2011-2018 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
# This is a masterpiece of untransparent code, difficult to understand
# and maintain. But I didn't find a better solution. Maybe an XSLT
# expert might help us to rewrite this from scratch. The purpose is ver... | agpl-3.0 | -3,831,657,913,008,972,300 | 27.594432 | 79 | 0.599337 | false | 3.244706 | false | false | false |
XBigTK13X/olava | source/builder.py | 1 | 1909 | import os
import datetime
import config
import pickle
from jinja2 import Environment, FileSystemLoader
pwd = os.path.dirname(os.path.abspath(__file__))
templates = Environment(loader=FileSystemLoader(os.path.join(pwd, 'templates')))
def createIndex(games,
platforms,
platformsOrder,
... | apache-2.0 | -1,568,970,124,760,492,500 | 37.959184 | 80 | 0.619172 | false | 4.289888 | false | false | false |
mistercrunch/panoramix | superset/views/chart/views.py | 1 | 3873 | # 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 | 1,508,857,023,377,381,400 | 32.102564 | 88 | 0.657113 | false | 3.880762 | false | false | false |
hackerspace-ntnu/website | files/views.py | 1 | 1896 | from django.shortcuts import render
from .models import Image, FileCategory
from .forms import ImageForm
from django.views.generic import CreateView, DeleteView, UpdateView, ListView, View
from django.shortcuts import redirect, get_object_or_404
from django.http import HttpResponseRedirect, HttpResponse
from django.con... | mit | -5,348,036,515,881,527,000 | 37.693878 | 91 | 0.695148 | false | 4.139738 | false | false | false |
lensvol/repocket | repocket/main.py | 1 | 4195 | #!/usr/bin/python
import os
from collections import namedtuple
import yaml
from click import command, confirm, echo, option, prompt, secho
from pocket import Pocket
from rules import DEFAULT_RULES, compile_rules
PocketItem = namedtuple('PocketItem', ['id', 'url', 'tags', 'title'])
def save_config(path, cfg_dict):... | mit | -4,351,194,532,131,688,400 | 28.335664 | 81 | 0.597616 | false | 3.582408 | false | false | false |
jinankjain/zamboni | mkt/ratings/serializers.py | 1 | 5467 | from django.core.urlresolvers import reverse
from rest_framework import serializers
from rest_framework.exceptions import PermissionDenied
from reviews.models import Review, ReviewFlag
from mkt.account.serializers import AccountSerializer
from mkt.api.fields import SlugOrPrimaryKeyRelatedField, SplitField
from mkt.a... | bsd-3-clause | 745,364,576,226,022,000 | 40.732824 | 79 | 0.605817 | false | 4.342335 | false | false | false |
d120/pyofahrt | ofahrtbase/migrations/0020_auto_20171016_2206.py | 1 | 2501 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-16 20:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ofahrtbase', '0019_auto_20161020_1750'),
]
operations = [
migrations.AlterF... | agpl-3.0 | 1,181,482,808,610,669,800 | 35.691176 | 236 | 0.558717 | false | 3.718331 | false | false | false |
mozilla/kitchensinkserver | vendor-local/lib/python/tastypie/api.py | 1 | 6721 | import warnings
from django.conf.urls.defaults import *
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseBadRequest
from tastypie.exceptions import NotRegistered, BadRequest
from tastypie.serializers import Serializer
... | bsd-3-clause | -851,501,442,314,775,000 | 35.726776 | 153 | 0.613599 | false | 4.313864 | false | false | false |
mfiers/Moa | moa/utils.py | 1 | 7301 | #!/usr/bin/env python
# Copyright 2009-2011 Mark Fiers
# The New Zealand Institute for Plant & Food Research
#
# This file is part of Moa - http://github.com/mfiers/Moa
#
# Licensed under the GPL license (see 'COPYING')
#
"""
moa.utils
---------
A set of random utilities used by Moa
"""
from email.mime.text import MI... | gpl-3.0 | 182,209,178,476,799,500 | 24.003425 | 93 | 0.583482 | false | 3.582434 | false | false | false |
django-danceschool/django-danceschool | danceschool/core/management/commands/setup_permissions.py | 1 | 9771 | from django.core.management.base import BaseCommand
from django.apps import apps
from django.contrib.auth.models import Group, Permission
from six.moves import input
try:
import readline
except ImportError:
pass
class Command(BaseCommand):
help = 'Create default groups and permissions for standard dance... | bsd-3-clause | -4,150,810,581,700,201,000 | 48.852041 | 118 | 0.58735 | false | 4.461644 | false | false | false |
pacoqueen/ginn | db/ajusta_precios_factura.py | 1 | 2486 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#################################################################
# 10 de julio de 2006.
# Script temporal para ajustar los precios de LDV de algunas
# facturas antiguas DEBIDO A UN ERROR EN LAS MACROS EXCEL que
# usaban antes de la implantación de ginn. Para respetar la ... | gpl-2.0 | -395,667,731,017,486,700 | 30.405063 | 77 | 0.571544 | false | 2.614331 | false | false | false |
luoguizhou/gooderp_addons | goods/models/goods.py | 1 | 7593 | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import UserError
class Goods(models.Model):
"""
继承了core里面定义的goods 模块,并定义了视图和添加字段。
"""
_inherit = 'goods'
@api.multi
def get_parent_tax_rate(self, parent_id):
# 逐级取商品分类上的税率
tax_rate = parent_id.t... | agpl-3.0 | -1,692,061,697,503,829,800 | 32.743842 | 93 | 0.54219 | false | 2.978261 | false | false | false |
funilrys/A-John-Shots | a_john_shots/helpers.py | 1 | 5760 | #!/bin/env python3
"""
A John Shots - A tool to get the Security Hash Algorightms (SHA) of all file in a given path.
Author:
Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom
Contributors:
Let's contribute to A John Shots!
Project link:
https://github.com/funilrys/A-John-Shots
License:
::
MI... | mit | 3,648,964,506,032,662,000 | 28.84456 | 93 | 0.584201 | false | 4.350453 | false | false | false |
katyhuff/moose | python/utils/MooseSourceParser.py | 1 | 4710 | import sys
import os
import re
import subprocess
import clang.cindex
if 'MOOSE_CLANG_LIB' not in os.environ:
raise EnvironmentError("Using the MooseSourceParser requires setting 'MOOSE_CLANG_LIB' environment variable to point to the clang library.")
clang.cindex.Config.set_library_path(os.getenv('MOOSE_CLANG_LIB')... | lgpl-2.1 | 5,019,072,454,677,851,000 | 31.937063 | 144 | 0.605732 | false | 4.095652 | false | false | false |
ShrimpingIt/tableaux | regimes/flopbunny/main.py | 1 | 2389 | from time import sleep
from uos import urandom
from machine import Pin
from cockle import pins
dataPin = pins[1]
clockPin = pins[2]
latchPin = pins[3]
dataPin.init(Pin.OUT)
latchPin.init(Pin.OUT)
clockPin.init(Pin.OUT)
dataPin.value(0)
latchPin.value(0)
clockPin.value(0)
delay = 1
numLights = 8
byteCount = numLigh... | agpl-3.0 | -6,227,094,358,887,579,000 | 17.098485 | 64 | 0.598995 | false | 3.047194 | false | false | false |
SangRyul/bamboo | edit/change.py | 1 | 1175 | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
def fileformatting():
import re
errorlog = open("error_log.txt","w+", encoding = "UTF8")
for x in range(1,1015):
try:
#please change this number
f = open(str(x)+".txt", "r+", encoding ... | gpl-3.0 | -1,194,179,583,405,264,600 | 27.04878 | 79 | 0.422106 | false | 3.590625 | false | false | false |
TejasM/wisely | wisely_project/users/urls.py | 1 | 1393 | import views
__author__ = 'tmehta'
from django.conf.urls import patterns, url
urlpatterns = patterns('',
url(r'^login/$', views.login_user, name='login'),
url(r'^logout/$', views.logout_user, name='logout'),
url(r'^signup/$', views.signup, name='si... | mit | 6,447,398,637,610,337,000 | 57.083333 | 104 | 0.492462 | false | 4.133531 | false | true | false |
TransparentHealth/hhs_oauth_client | apps/provider/migrations/0010_auto_20160623_1813.py | 1 | 1676 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('provider', '0009_auto_20160623_1600'),
]
operations = [
migrations.RemoveField(
model_name='organization',
... | apache-2.0 | -2,265,275,564,265,581,000 | 26.47541 | 74 | 0.520883 | false | 4.629834 | false | false | false |
mtwilliams/mojo | dependencies/assimp-2.0.863/port/PyAssimp/pyassimp/structs.py | 1 | 31693 | #-*- coding: UTF-8 -*-
from ctypes import POINTER, c_int, c_uint, c_char, c_float, Structure, c_char_p, c_double, c_ubyte
class Matrix3x3(Structure):
"""
See 'aiMatrix3x3.h' for details.
"""
_fields_ = [
("a1", c_float),("a2", c_float),("a3", c_float),
("b1", c_float),("b2"... | mit | 2,478,706,221,965,106,700 | 34.411173 | 98 | 0.523901 | false | 4.421456 | false | false | false |
probardjango/Comercio-Digital | src/comerciodigital/settings.py | 1 | 2734 | """
Django settings for comerciodigital project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Buil... | mit | 1,172,620,309,974,841,600 | 25.288462 | 71 | 0.695684 | false | 3.460759 | false | false | false |
beeftornado/sentry | tests/sentry/event_manager/interfaces/test_http.py | 1 | 3923 | from __future__ import absolute_import
import pytest
from sentry import eventstore
from sentry.event_manager import EventManager
@pytest.fixture
def make_http_snapshot(insta_snapshot):
def inner(data):
mgr = EventManager(data={"request": data})
mgr.normalize()
evt = eventstore.create_eve... | bsd-3-clause | -7,135,125,457,729,543,000 | 27.845588 | 96 | 0.642366 | false | 3.266445 | true | false | false |
YorkUIRLab/eosdb | topic_coherence.py | 1 | 2591 |
# coding: utf-8
# In[4]:
import glob
from datetime import datetime
import logging as log
import gensim
import matplotlib.pyplot as plt
import pyLDAvis
import pyLDAvis.gensim
from gensim.models import CoherenceModel
from sklearn.externals import joblib
import gzip
from multiprocessing import Pool
get_ipython().magic(... | lgpl-3.0 | -2,668,634,247,923,791,000 | 24.15534 | 109 | 0.643381 | false | 3.378096 | false | false | false |
gallupliu/QA | data/models.py | 1 | 2787 | # encoding: utf-8
"""
@author: gallupliu
@contact: gallup-liu@hotmail.com
@version: 1.0
@license: Apache Licence
@file: models.py
@time: 2018/1/12 23:19
"""
from data.util import unique_items
class MetadataItem(object):
def __init__(self):
self.metadata = dict()
class Token(MetadataItem):
def _... | apache-2.0 | -6,584,500,800,930,892,000 | 21.119048 | 63 | 0.541442 | false | 3.953191 | false | false | false |
comsaint/legco-watch | app/raw/tests/test_agenda.py | 1 | 7371 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Tests for CouncilAgenda object
from django.test import TestCase
import logging
from raw.docs import agenda
# We use fixtures which are raw HTML versions of the agendas to test the parser
# Each test case works with one source.
logging.disable(logging.CRITICAL)
class Agen... | mit | -6,964,750,088,137,517,000 | 41.16763 | 166 | 0.677039 | false | 3.19256 | true | false | false |
ajaygarg84/sugar | src/jarabe/view/keyhandler.py | 1 | 7320 | # Copyright (C) 2006-2007, Red Hat, Inc.
# Copyright (C) 2009 Simon Schampijer
#
# 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 ... | gpl-2.0 | -8,039,884,357,420,951,000 | 33.046512 | 78 | 0.609426 | false | 3.765432 | false | false | false |
NicoVarg99/daf-recipes | ckan/ckan/ckanext-dcatapit/ckanext/dcatapit/dcat/harvester.py | 1 | 3892 | import logging
import ckan.plugins as p
from ckanext.dcat.interfaces import IDCATRDFHarvester
from ckanext.dcatapit.dcat.profiles import LOCALISED_DICT_NAME_BASE, LOCALISED_DICT_NAME_RESOURCES
import ckanext.dcatapit.interfaces as interfaces
log = logging.getLogger(__name__)
class DCATAPITHarvesterPlugin(p.Singlet... | gpl-3.0 | 3,424,962,919,449,245,000 | 34.063063 | 98 | 0.5889 | false | 3.671698 | false | false | false |
nfsli926/stock | python/com/nfs/util/dbutil.py | 1 | 21744 | # coding=utf-8
# 2015年9月25创建
__author__ = 'litao'
from sqlalchemy import create_engine
import tushare as ts
import urllib
import urllib2
import re
import sys
import csv
import MySQLdb
import tushare as ts
import datetime
import time
import DateUtil as dateutil
# 导入股票前复权数据
#code:string,股票代码 e.g. 600848
#start:string,开始日... | apache-2.0 | -292,003,996,196,294,460 | 30.665079 | 90 | 0.607129 | false | 2.684069 | false | false | false |
FrancescSala/Instagram-Challenge | solution/shr.py | 1 | 1485 | from PIL import Image
from random import shuffle
import sys
if len(sys.argv) != 4: sys.exit("Usage: python shr.py input_image num_shreds output_image")
# load the input image
img = Image.open(sys.argv[1])
# read the desired number of shreds
numShreds = int(sys.argv[2])
if numShreds < 2: sys.exit("Expected number of ... | mit | 5,471,137,774,938,985,000 | 32.75 | 95 | 0.708418 | false | 3.006073 | false | false | false |
ultrabug/py3status | py3status/modules/vpn_status.py | 1 | 4561 | """
Drop-in replacement for i3status run_watch VPN module.
Expands on the i3status module by displaying the name of the connected vpn
using pydbus. Asynchronously updates on dbus signals unless check_pid is True.
Configuration parameters:
cache_timeout: How often to refresh in seconds when check_pid is True.
... | bsd-3-clause | -3,124,280,615,940,087,000 | 29.205298 | 80 | 0.612146 | false | 4.007909 | false | false | false |
uncommoncode/uscpy | stabilizer.py | 1 | 1757 | """
Image stabilization code.
"""
import argparse
import cv2
import uscpy.sequence
import uscpy.frame
import uscpy.video
parser = argparse.ArgumentParser(description="Perform image stabalization to a video")
parser.add_argument("input", help="input video path")
parser.add_argument("output", help="output video path")... | mit | 4,128,069,966,771,620,000 | 33.45098 | 138 | 0.715424 | false | 2.938127 | false | false | false |
rishig/zulip | zerver/management/commands/show_unreads.py | 1 | 2690 |
from argparse import ArgumentParser
from typing import Any, Dict, List, Set
from django.core.management.base import CommandError
from zerver.lib.management import ZulipBaseCommand
from zerver.lib.topic_mutes import build_topic_mute_checker
from zerver.models import Recipient, Subscription, UserMessage, UserProfile
... | apache-2.0 | -5,050,300,999,581,726,000 | 31.409639 | 87 | 0.628253 | false | 3.730929 | false | false | false |
vicnet/weboob | weboob/tools/pdf.py | 1 | 16156 | # -*- coding: utf-8 -*-
# Copyright(C) 2014 Oleg Plakhotniuk
#
# This file is part of weboob.
#
# weboob 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 of the License, or
# (at your o... | lgpl-3.0 | -273,186,497,165,296,580 | 31.441767 | 152 | 0.581703 | false | 3.550769 | false | false | false |
istvanzk/RasPiConnectServer | ExecuteFiles/ExecuteServerStatus.py | 1 | 1371 | #!/usr/local/bin/python3
# Filename: ExecuteServerStatus.py
# Version 2.7 07/29/13 RV MiloCreek
# Version 3.0 04.04.2016 IzK (Python3.4+)
import Config
import subprocess
import xml.etree.ElementTree as ET
import Validate
import BuildResponse
import time
if (Config.i2c_demo()):
from pyblinkm import BlinkM, Scripts... | gpl-3.0 | -6,192,896,473,730,953,000 | 17.28 | 62 | 0.736689 | false | 3.36855 | false | false | false |
linyc74/WinduVision | threads/process_thread.py | 1 | 9447 | import numpy as np
import cv2, time, sys, threading, json
from constants import *
from abstract_thread import *
from stereo import Stereo as stereo
class ProcessThread(AbstractThread):
def __init__(self, cap_thread_R, cap_thread_L, mediator):
super(ProcessThread, self).__init__()
self.cap_thread... | mit | -2,138,509,404,374,302,500 | 32.147368 | 108 | 0.565471 | false | 3.641866 | false | false | false |
pibroch/ocfs2-test | programs/write_torture/write_torture.py | 1 | 4399 | #!/usr/bin/env python
#
#
# Copyright (C) 2006 Oracle. All rights reserved.
#
# 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 ver... | gpl-2.0 | 5,714,742,131,041,537,000 | 23.713483 | 79 | 0.661287 | false | 2.950369 | false | false | false |
dgilman/atom_maker | schema.py | 1 | 2566 | # How to update the database schema
# 1. Create a new function that takes a sqlite3 db connection as an argument.
# 2. Have the function update schema and increase the user version, preferrably in a transaction
# 3. Put your function in the upgrade dict in check(). Its key is the schema version it is upgrading from.
#... | gpl-3.0 | -7,401,853,332,173,332,000 | 40.387097 | 132 | 0.721746 | false | 3.62942 | false | false | false |
droundy/fac | tests/getting-started.py | 1 | 3162 | #!/usr/bin/python3
import sys, os, re, subprocess
if sys.version_info < (3,5):
print('Please run this script with python 3.5 or newer:', sys.version)
exit(137)
runre = re.compile(r'\[run\]: # \((.+)\)')
shellre = re.compile(r'^ \$ (.+)')
filere = re.compile(r'##### (.+)')
verbre = re.compile(r'^ (.*)')... | gpl-2.0 | 5,235,296,058,472,813,000 | 42.916667 | 75 | 0.448767 | false | 4.428571 | false | false | false |
wakalixes/sqldataplot | plugins/pluginFitConstant.py | 1 | 1392 | #--------------------------------------------------
# Revision = $Rev: 13 $
# Date = $Date: 2011-07-31 00:39:24 +0200 (Sun, 31 Jul 2011) $
# Author = $Author: stefan $
#--------------------------------------------------
from pluginInterfaces import PluginFit, Parameter,leastsqFit
import numpy as np
class PluginFit... | gpl-2.0 | -5,941,994,962,134,405,000 | 34.692308 | 130 | 0.572557 | false | 3.721925 | false | false | false |
qedsoftware/commcare-hq | corehq/apps/app_manager/models.py | 1 | 221033 | # coding=utf-8
"""
Application terminology
For any given application, there are a number of different documents.
The primary application document is an instance of Application. This
document id is what you'll see in the URL on most app manager pages. Primary
application documents should have `copy_of == None` and `i... | bsd-3-clause | -5,053,952,302,909,447,000 | 35.65539 | 132 | 0.582232 | false | 4.138556 | false | false | false |
alphagov/notifications-api | app/utils.py | 1 | 5728 | from datetime import datetime, timedelta
import pytz
from flask import url_for
from notifications_utils.template import (
BroadcastMessageTemplate,
HTMLEmailTemplate,
LetterPrintTemplate,
SMSMessageTemplate,
)
from notifications_utils.timezones import convert_utc_to_bst
from sqlalchemy import func
DAT... | mit | -5,519,629,083,492,794,000 | 33.095238 | 118 | 0.68523 | false | 3.669443 | false | false | false |
gnulinooks/sympy | sympy/geometry/line.py | 1 | 19520 | from sympy.core.basic import Basic, S, C
from sympy.simplify import simplify
from sympy.geometry.exceptions import GeometryError
from entity import GeometryEntity
from point import Point
class LinearEntity(GeometryEntity):
"""
A linear entity (line, ray, segment, etc) in space.
This is an abstract class a... | bsd-3-clause | -1,037,525,842,769,122,200 | 36.323136 | 98 | 0.509631 | false | 4.098257 | false | false | false |
HewlettPackard/oneview-ansible | library/oneview_id_pools_ipv4_range.py | 1 | 6647 | #!/usr/bin/python
# -*- coding: utf-8 -*-
###
# Copyright (2016-2021) Hewlett Packard Enterprise Development LP
#
# 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/licen... | apache-2.0 | 579,202,707,146,734,800 | 39.779141 | 119 | 0.613811 | false | 4.062958 | false | false | false |
nick-huang-cc/GraffitiSpaceTT | UnderstandStudyPython/awesome-python3-webapp/www/config_override.py | 1 | 1354 | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
#Copyright (c) 1986 Nick Wong.
#Copyright (c) 2016-2026 TP-NEW Corp.
# License: TP-NEW (www.tp-new.com)
__author__ = "Nick Wong"
"""
如果要部署到服务器时,通常需要修改数据库的host等信息,直接修改config_default.py不是一个好办法,
更好的方法是编写一个config_override.py,用来覆盖某些默认设置
"""
#由于密码等信息保存于本地,所以先读取自定义的配置文档文档获取需要的... | agpl-3.0 | -1,793,919,373,691,236,600 | 32.272727 | 84 | 0.709472 | false | 2.25 | false | true | false |
volk0ff/fred | fred/settings.py | 1 | 2229 | """
Django settings for fred project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | mit | 7,103,168,443,666,669,000 | 21.979381 | 71 | 0.696276 | false | 3.170697 | false | false | false |
lfalvarez/votai | medianaranja2/forms.py | 1 | 12510 | # coding=utf-8
from django import forms
from popular_proposal.models import (PopularProposal
)
from elections.models import Area, QuestionCategory, Election
from django.conf import settings
from formtools.wizard.views import SessionWizardView
from medianaranja2.proposals_getter impo... | gpl-3.0 | -2,809,643,480,602,538,500 | 40.936242 | 224 | 0.641114 | false | 3.875039 | false | false | false |
sreidy/roboticsclub.org | api/urls.py | 2 | 1047 | from rest_framework import routers, serializers, viewsets
from .views import *
from django.conf.urls import include, patterns, url
router = routers.DefaultRouter()
router.register(r'api_requests', APIRequestViewSet)
router.register(r'webcams', WebcamViewSet)
router.register(r'datetime', DateTimeViewSet, base_name="da... | mit | -4,484,347,834,260,364,000 | 37.777778 | 67 | 0.78319 | false | 3.221538 | false | true | false |
bastibl/gnuradio | gr-digital/python/digital/qa_ofdm_frame_equalizer_vcvc.py | 1 | 16372 | #!/usr/bin/env python
# Copyright 2012,2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)... | gpl-3.0 | 3,725,604,465,256,258,600 | 42.084211 | 117 | 0.524127 | false | 2.953635 | true | false | false |
google/feedloader | appengine/uploader/shoptimizer_client.py | 1 | 9956 | # coding=utf-8
# Copyright 2021 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 ... | apache-2.0 | -8,745,425,183,561,239,000 | 34.304965 | 118 | 0.67045 | false | 4.249253 | true | false | false |
Alberto-Beralix/Beralix | i386-squashfs-root/usr/share/pyshared/pyatspi/state.py | 1 | 6076 | #Copyright (C) 2008 Codethink Ltd
#copyright: Copyright (c) 2005, 2007 IBM Corporation
#This library is free software; you can redistribute it and/or
#modify it under the terms of the GNU Lesser General Public
#License version 2 as published by the Free Software Foundation.
#This program is distributed in the hope th... | gpl-3.0 | -7,356,553,817,032,895,000 | 33.134831 | 93 | 0.563858 | false | 3.92 | false | false | false |
Cadene/pretrained-models.pytorch | pretrainedmodels/models/inceptionv4.py | 1 | 11479 | from __future__ import print_function, division, absolute_import
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.model_zoo as model_zoo
import os
import sys
__all__ = ['InceptionV4', 'inceptionv4']
pretrained_settings = {
'inceptionv4': {
'imagenet': {
'ur... | bsd-3-clause | 6,074,634,826,971,776,000 | 31.064246 | 94 | 0.554055 | false | 3.084095 | false | false | false |
SamyCookie/python-ant | demos/ant.core/10-weight.py | 1 | 3095 | """
Extending on demo-03, implements an event callback we can use to process the
incoming data.
"""
from __future__ import print_function
import sys
import time
from ant.core import driver
from ant.core import node
from ant.core import event
from ant.core import message
from ant.core.constants import *
from config... | mit | 1,154,412,797,407,415,800 | 24.791667 | 83 | 0.652666 | false | 3.254469 | false | false | false |
rkspsm/fixed-grid-image-viewer | main.py | 1 | 9870 | #! /usr/bin/env python3
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtMultimedia import *
from PyQt5.QtMultimediaWidgets import *
from math import *
from hashlib import sha256
import sys, os
import traceback
_args = sys.argv
class Stuff :
width = 800
height = 6... | agpl-3.0 | 5,272,151,468,709,609,000 | 26.115385 | 156 | 0.60233 | false | 3.058568 | false | false | false |
xme1226/horizon | openstack_dashboard/dashboards/admin/instances/tables.py | 1 | 7326 | # Copyright 2012 OpenStack Foundation
# Copyright 2012 Nebula, 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
#
# Unle... | apache-2.0 | -1,049,580,477,358,358,000 | 39.927374 | 78 | 0.578078 | false | 4.616257 | false | false | false |
capecchi/capecchi.github.io | projects/ParkMaps/helpers.py | 1 | 4081 | from bs4 import BeautifulSoup
import geopy.distance as dist
import glob
import numpy as np
import gpxpy
def consecutive_arrays(arr):
consec_arr = []
consec = []
for i, arr_val in enumerate(arr):
if len(consec) == 0 or arr_val == consec[-1] + 1:
consec.append(arr_val)
else:
consec_arr.append(consec)
co... | mit | 6,959,912,168,072,804,000 | 28.572464 | 120 | 0.608674 | false | 2.503681 | false | false | false |
mozman/ezdxf | src/ezdxf/tools/zipmanager.py | 1 | 2785 | # Copyright (c) 2014-2020, Manfred Moitzi
# License: MIT License
from typing import BinaryIO, cast, TextIO, List, Optional
import zipfile
from contextlib import contextmanager
from ezdxf.lldxf.validator import is_dxf_stream, dxf_info
CRLF = b'\r\n'
LF = b'\n'
class ZipReader:
def __init__(self, zip_archive_name... | mit | -9,120,386,809,456,004,000 | 36.133333 | 79 | 0.628725 | false | 3.359469 | false | false | false |
membase/membase-cli | util_cli.py | 1 | 2446 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import itertools
BIG_VALUE = 2 ** 60
SMALL_VALUE = - (2 ** 60)
def hostport(hoststring, default_port=8091):
""" finds the host and port given a host:port string """
try:
host, port = hoststring.split(':')
port = int(port)
except Va... | apache-2.0 | 7,375,997,589,813,253,000 | 23.46 | 88 | 0.498365 | false | 2.99022 | false | false | false |
obeattie/sqlalchemy | examples/graphs/directed_graph.py | 1 | 2180 | """a directed graph example."""
from sqlalchemy import MetaData, Table, Column, Integer, ForeignKey
from sqlalchemy.orm import mapper, relation, create_session
import logging
logging.basicConfig()
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
meta = MetaData('sqlite://')
nodes = Table('nodes', meta,... | mit | -4,302,172,050,639,920,600 | 24.348837 | 78 | 0.640367 | false | 2.974079 | false | false | false |
jbohren-forks/catkin_tools | catkin_tools/verbs/catkin_list/cli.py | 1 | 3698 | # Copyright 2014 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,735,294,792,840,117,000 | 36.353535 | 87 | 0.604922 | false | 3.980624 | false | false | false |
davidam/python-examples | basics/json/json2pandas.py | 1 | 1436 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2018 David Arroyo Menéndez
# Author: David Arroyo Menéndez <davidam@gnu.org>
# Maintainer: David Arroyo Menéndez <davidam@gnu.org>
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as p... | gpl-3.0 | 6,866,459,863,526,685,000 | 26.037736 | 70 | 0.691556 | false | 3.301843 | false | false | false |
rhyolight/nupic.son | tests/app/melange/views/test_connection.py | 1 | 69883 | # Copyright 2014 the Melange 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 wr... | apache-2.0 | -1,343,540,183,369,436,200 | 39.232009 | 83 | 0.711332 | false | 3.754123 | true | false | false |
stefanseefeld/numba | numba/tests/test_cffi.py | 1 | 4966 | from __future__ import print_function, division, absolute_import
import array
import numpy as np
import sys
from numba import unittest_support as unittest
from numba import jit, cffi_support, types, errors
from numba.compiler import compile_isolated, Flags
from numba.tests.support import TestCase, tag
import numba.t... | bsd-2-clause | -4,280,643,776,205,915,600 | 33.727273 | 78 | 0.610552 | false | 3.135101 | true | false | false |
jackpien/rosbots | ros_ws/src/rosbots_driver/scripts/rosbots_driver/motor_driver.py | 1 | 4631 | #!/usr/bin/env python
#import RPIO as GPIO
import RPi.GPIO as GPIO
from RPIO import PWM
import RPIO
import rospy
from geometry_msgs.msg import Twist
class MotorDriverL9110S:
# Broadcom pin outs
# https://www.element14.com/community/servlet/JiveServlet/previewBody/73950-102-10-339300/pi3_gpio.png
le... | gpl-3.0 | 444,582,640,532,802,600 | 30.937931 | 106 | 0.525157 | false | 3.44825 | false | false | false |
bieschke/nuffle | lib/python/formencode/validators.py | 1 | 59292 | ## FormEncode, a Form processor
## Copyright (C) 2003, Ian Bicking <ianb@colorstudy.com>
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or ... | gpl-2.0 | 8,930,365,845,739,722,000 | 32.114525 | 226 | 0.525029 | false | 4.149776 | false | false | false |
TeamODrKnow/doctor-know | main.py | 1 | 15028 | __author__ = 'jml168@pitt.edu (J. Matthew Landis)'
import os
import logging
import pickle
import webapp2
import time
import httplib2
import json
import tweepy
import haigha
from collections import Counter
from haigha.connections.rabbit_connection import RabbitConnection
from apiclient import discovery
from oauth2clie... | mit | -4,567,955,119,498,473,000 | 34.443396 | 161 | 0.5895 | false | 3.643152 | false | false | false |
Nuevosmedios/ADL_LRS | adl_lrs/settings.py | 1 | 7317 | # Django settings for adl_lrs project.
from unipath import Path
# Root of LRS
SETTINGS_PATH = Path(__file__)
PROJECT_ROOT = SETTINGS_PATH.ancestor(3)
# If you want to debug
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': ... | apache-2.0 | -8,551,532,077,530,078,000 | 30.813043 | 101 | 0.66981 | false | 3.616906 | false | false | false |
tomasdubec/openstack-cinder | cinder/tests/scheduler/test_host_filters.py | 1 | 6424 | # Copyright 2011 OpenStack LLC. # 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 | -3,891,531,009,832,143,000 | 39.402516 | 78 | 0.603674 | false | 4.144516 | true | false | false |
mikalstill/ostrich | ostrich/stages/stage_40_enable_proxies.py | 1 | 3000 | # 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 th... | apache-2.0 | -6,931,821,039,428,020,000 | 35.144578 | 76 | 0.515333 | false | 4.137931 | false | false | false |
pozetroninc/micropython | tests/float/float1.py | 1 | 2194 | # test basic float capabilities
# literals
print(.12)
print(1.)
print(1.2)
print(0e0)
print(0e+0)
print(0e-0)
# float construction
print(float(1.2))
print(float("1.2"))
print(float("+1"))
print(float("1e1"))
print(float("1e+1"))
print(float("1e-1"))
print(float("inf"))
print(float("-inf"))
print(float("INF"))
print(f... | mit | 6,278,333,151,221,868,000 | 17.132231 | 302 | 0.691431 | false | 2.752823 | false | true | false |
ChaoticEvil/django_base | src/apps/pages/admin.py | 1 | 4774 | from django.contrib import admin
from .models import Page, Menu
from django.shortcuts import render, HttpResponse
from mptt.exceptions import InvalidMove
from apps.feincms.admin import tree_editor
from django_base.settings import SITE_NAME
from django.utils.translation import ugettext_lazy as _
from .forms import MenuP... | gpl-3.0 | -8,807,315,346,340,670,000 | 33.935484 | 112 | 0.537627 | false | 3.164354 | false | false | false |
skylina/test | public/BasePage.py | 1 | 6311 | # -*- coding: utf-8 -*-
from selenium.webdriver.support.wait import WebDriverWait
from selenium import webdriver
__author__ = 'lina'
import time
import sys
import xlrd.sheet
import time, os
class Action:
"""
BasePage封装所有页面都公用的方法,例如driver, url
"""
driver = None
# 初始化driver、url、等
def __init__(self, base_url=N... | gpl-2.0 | -5,157,220,809,121,450,000 | 25.131707 | 99 | 0.673138 | false | 2.106567 | false | false | false |
matrix-org/synapse | synapse/metrics/background_process_metrics.py | 1 | 10401 | # Copyright 2018 New Vector 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,190,291,921,315,463,000 | 34.742268 | 87 | 0.665128 | false | 4.150439 | false | false | false |
projectexpert/pmis | analytic_resource_plan_stock/models/analytic_resource_plan_line.py | 1 | 5846 | # Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
import odoo.addons.decimal_precision as dp
class AnalyticResourcePlanLine(models.Model):
_inherit = 'analytic.resource.plan.line'
@api.... | agpl-3.0 | 5,313,668,238,580,680,000 | 46.145161 | 79 | 0.594595 | false | 4.320769 | false | false | false |
silkentrance/django-db-mixins | django_mixins/base.py | 1 | 1270 | # -*- coding: utf-8 -*-
#
# Copyright 2014 Carsten Klein <trancesilken@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | apache-2.0 | 6,584,541,726,012,519,000 | 21.678571 | 86 | 0.692913 | false | 3.825301 | false | false | false |
ntt-sic/heat | heat/common/identifier.py | 1 | 8227 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# 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 applicabl... | apache-2.0 | 7,868,432,910,404,716,000 | 33.279167 | 79 | 0.54467 | false | 4.287129 | false | false | false |
kensho-technologies/graphql-compiler | graphql_compiler/backend.py | 1 | 1810 | # Copyright 2019-present Kensho Technologies, LLC.
from collections import namedtuple
from .compiler import (
emit_cypher,
emit_gremlin,
emit_match,
emit_sql,
ir_lowering_cypher,
ir_lowering_gremlin,
ir_lowering_match,
ir_lowering_sql,
)
from .schema import schema_info
# A backend is ... | apache-2.0 | -8,970,847,914,919,115,000 | 27.28125 | 94 | 0.699448 | false | 3.494208 | false | false | false |
JYamihud/blender-organizer | py_data/modules/itemselector.py | 1 | 11370 | # -*- coding: utf-8 -*-
# system
import os
import sys
import socket
# graphics interface
import gtk
import pango
import cairo
import glib
import datetime
try:
import Image
except:
from PIL import Image
# calculational help
import datetime
# self made modules
import thumbnailer
import dialogs
import check... | gpl-2.0 | 9,167,160,066,668,298,000 | 35.095238 | 151 | 0.385224 | false | 4.282486 | false | false | false |
NaN-tic/nereid | nereid/sessions.py | 1 | 3596 | #This file is part of Tryton & Nereid. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
from datetime import datetime # noqa
from flask.sessions import SessionInterface, SessionMixin
from werkzeug.contrib.sessions import Session as SessionBase, SessionStor... | gpl-3.0 | 3,200,084,190,623,582,000 | 31.107143 | 77 | 0.606229 | false | 4.439506 | false | false | false |
cortedeltimo/SickRage | sickbeard/clients/transmission_client.py | 1 | 5187 | # coding=utf-8
# Author: Mr_Orange <mr_orange@hotmail.it>
# URL: https://sickrage.github.io
#
# This file is part of SickRage.
#
# SickRage 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 ... | gpl-3.0 | 5,219,753,062,150,899,000 | 31.622642 | 101 | 0.572393 | false | 4.15625 | false | false | false |
antoinearnoud/openfisca-france | openfisca_france/reforms/plfr2014.py | 1 | 4011 | # -*- coding: utf-8 -*-
from __future__ import division
import os
from ..model.base import *
dir_path = os.path.join(os.path.dirname(__file__), 'parameters')
# TODO: les baisses de charges n'ont pas été codées car annulées (toute ou en partie ?)
# par le Conseil constitutionnel
class plfr2014(Reform):
name ... | agpl-3.0 | -1,933,542,702,604,743,700 | 44.477273 | 118 | 0.628186 | false | 3.280328 | false | false | false |
jelovirt/dita-generator | src/ditagen/web.py | 1 | 5467 | #!/usr/bin/env python
# -*- coding: UTF-8; indent-tabs-mode:nil; tab-width:4 -*-
# This file is part of DITA DTD Generator.
#
# Copyright 2009 Jarno Elovirta <http://www.elovirta.com/>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.... | apache-2.0 | -8,890,596,476,996,714,000 | 33.16875 | 102 | 0.554966 | false | 3.497761 | false | false | false |
lukaslundgren/django-rest-framework-json-api | example/tests/test_model_viewsets.py | 1 | 7677 | import json
from django.contrib.auth import get_user_model
from django.utils import encoding
from django.core.urlresolvers import reverse
from django.conf import settings
from example.tests import TestBase
from example.tests.utils import dump_json, redump_json
from example.factories import CommentFactory
class Mode... | bsd-2-clause | 1,623,057,772,902,982,400 | 31.392405 | 78 | 0.466458 | false | 4.364412 | true | false | false |
angr/angr | angr/analyses/variable_recovery/engine_vex.py | 1 | 11842 | from typing import TYPE_CHECKING
import claripy
import pyvex
from ...engines.vex.claripy.datalayer import value as claripy_value
from ...engines.light import SimEngineLightVEXMixin
from ..typehoon import typevars, typeconsts
from .engine_base import SimEngineVRBase, RichR
if TYPE_CHECKING:
from .variable_recover... | bsd-2-clause | 2,412,318,608,170,448,400 | 30.163158 | 110 | 0.542476 | false | 3.449461 | false | false | false |
lesteve/sphinx-gallery | sphinx_gallery/py_source_parser.py | 1 | 6344 | # -*- coding: utf-8 -*-
r"""
Parser for python source files
==============================
"""
# Created Sun Nov 27 14:03:07 2016
# Author: Óscar Nájera
from __future__ import division, absolute_import, print_function
import ast
from distutils.version import LooseVersion
from io import BytesIO
import re
import sys
imp... | bsd-3-clause | -6,063,947,884,348,162,000 | 32.378947 | 79 | 0.613213 | false | 4.06278 | false | false | false |
rjhd2/HadISD_v2 | set_paths_and_vars.py | 1 | 2534 | #!/usr/local/sci/bin/python2.7
#------------------------------------------------------------
# SVN Info
#$Rev:: 84 $: Revision of last commit
#$Author:: rdunn $: Author of last commit
#$Date:: 2015-12-18 16:35:07 +0000 ... | bsd-3-clause | -5,510,080,318,746,911,000 | 40.540984 | 150 | 0.59116 | false | 3.053012 | false | false | false |
Mushiyo/isso | isso/wsgi.py | 1 | 5736 | # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
import sys
import socket
try:
from urllib.parse import quote, urlparse
from socketserver import ThreadingMixIn
from http.server import HTTPServer
except ImportError:
from urllib import quote
from urlparse import urlparse
from... | mit | -1,876,850,611,275,330,300 | 26.84466 | 85 | 0.607915 | false | 4.030921 | false | false | false |
lidatong/dataclasses-json | dataclasses_json/utils.py | 1 | 4383 | import inspect
import sys
from datetime import datetime, timezone
from typing import Collection, Mapping, Optional, TypeVar, Any
def _get_type_cons(type_):
"""More spaghetti logic for 3.6 vs. 3.7"""
if sys.version_info.minor == 6:
try:
cons = type_.__extra__
except AttributeError:
... | mit | 3,251,248,470,436,851,000 | 27.096154 | 96 | 0.588182 | false | 4.017415 | false | false | false |
simonvh/fluff | tests/test_commands.py | 1 | 4188 | import pytest
import os
import urllib.request
import tarfile
from tempfile import NamedTemporaryFile
from sklearn.metrics import v_measure_score
from fluff.parse import parse_cmds
from fluff.commands.profile import profile
from fluff.commands.heatmap import heatmap
from fluff.commands.bandplot import bandplot
@pytest... | mit | -5,502,848,502,794,335,000 | 29.794118 | 77 | 0.567813 | false | 3.46976 | true | false | false |
tbursztyka/python-elf | setup.py | 1 | 1070 | ##############
# Setup File #
##############
"""
python-elf - A python library to manipulate ELF format
Copyright (C) 2008 Tomasz Bursztyka
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 F... | lgpl-3.0 | 4,951,030,473,274,327,000 | 28.722222 | 73 | 0.663551 | false | 4.099617 | false | false | false |
toabctl/contrail-sandesh | library/python/pysandesh/sandesh_stats.py | 1 | 10781 | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
#
# sandesh_stats.py
#
from pysandesh.sandesh_base import Sandesh
from pysandesh.gen_py.sandesh_uve.ttypes import SandeshMessageStats
from pysandesh.gen_py.sandesh.ttypes import SandeshTxDropReason, \
SandeshRxDropReason
class SandeshMessageSta... | apache-2.0 | 7,344,674,149,269,573,000 | 50.831731 | 81 | 0.581208 | false | 4.216269 | false | false | false |
zasdfgbnm/qutip | qutip/control/grape.py | 1 | 19982 | # This file is part of QuTiP: Quantum Toolbox in Python.
#
# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
... | bsd-3-clause | 3,366,839,895,533,289,500 | 29.931889 | 79 | 0.517015 | false | 3.389652 | false | false | false |
maximx1/zfscan | zfscan/commands/CommandLineStatements.py | 1 | 1075 | class CommandLineStatements:
"""Batch of command line statements surrounding zfs"""
"""Checks the disks in the system"""
check_disks = "ls -la /dev/disk/by-id"
"""
zpool command to check status
{0} = pool
"""
zpool_status = "sudo zpool status {0}"
"""
zpool command... | mit | -2,060,873,528,293,840,100 | 21.416667 | 58 | 0.525581 | false | 3.583333 | false | false | false |
svp-dev/slcore | slc/tools/slc/mt/mtsparc/regdefs.py | 1 | 15832 | from ..common.regmagic import RegMagic
class RegDefs:
iargregs = 8
ilocalregs = 23
# There is not FP support for now, but we define this to keep the
# common implementation happy.
fargregs = 8
flocalregs = 24
regprefix = '%'
regprefix_fmt = '%%'
canon_is_numeric = False
comp... | gpl-3.0 | 2,093,495,678,223,844,000 | 34.981818 | 95 | 0.417256 | false | 2.916191 | false | false | false |
google/rekall | rekall-core/rekall/plugins/addrspaces/intel.py | 1 | 25245 | # Rekall Memory Forensics
#
# Copyright 2015 Google Inc. All Rights Reserved.
# Authors:
# Michael Cohen <scudette@google.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2... | gpl-2.0 | 3,458,658,243,991,293,000 | 36.905405 | 81 | 0.605942 | false | 4.16378 | false | false | false |
MeGotsThis/BotGotsThis | pkg/channel/library.py | 1 | 2842 | import asyncio
import bot
from bot import utils
from typing import List, Optional, Union # noqa: F401
from lib.data import Send
from lib.data.message import Message
from lib.database import DatabaseMain
async def come(channel: str,
send: Send) -> bool:
bannedWithReason: Optional[str]
priority... | gpl-3.0 | -3,594,922,672,161,938,000 | 32.023256 | 76 | 0.611268 | false | 3.955432 | false | false | false |
gnina/scripts | generate_counterexample_typeslines.py | 1 | 11114 | #!/usr/bin/env python3
'''
This script will generate the lines for a new types file with the iterative poses generated from counterexample_generation_jobs.py
!!WARNING!!
Part of this process is to determine which newly generated poses are NOT REDUNDANT with the previously generated ones.
This requires an O(n^2) calcu... | bsd-3-clause | -4,488,924,076,670,344,700 | 43.103175 | 234 | 0.735739 | false | 3.09496 | false | false | false |
eschendel/gnum | gnlib/scripts/generate_nt_ascii_to_ctable.py | 1 | 2926 | #!/usr/bin/env python
## Copyright (c) 2015, Eric R. Schendel.
## 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, th... | bsd-3-clause | -1,499,942,304,325,796,600 | 34.682927 | 82 | 0.685578 | false | 3.414236 | false | false | false |
andgoldschmidt/iEBE | check_prerequisites.py | 1 | 8145 | #! /usr/bin/env python
"""
Print a list of tests to see whether all required tools for Ebe calculations
are present.
"""
from os import getcwd, unlink, path
from subprocess import call
numberOfSpaces = 5
def printWarning(warningString):
print("-"*(numberOfSpaces-2) + "> " + warningString)
def printMsg(m... | gpl-3.0 | 6,418,206,754,668,124,000 | 36.362385 | 99 | 0.352363 | false | 3.165565 | false | false | false |
madscatt/zazzie_1.5 | trunk/sassie/simulate/complex_monte_carlo/nmer_dihedral.py | 1 | 34612 | '''
SASSIE: Copyright (C) 2011 Joseph E. Curtis, Ph.D.
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.
... | gpl-3.0 | 4,616,042,028,928,589,000 | 34.830228 | 534 | 0.669941 | false | 2.647999 | false | false | false |
ian-r-rose/burnman | burnman/minerals/SLB_2005.py | 1 | 2794 | # This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences
# Copyright (C) 2012 - 2015 by the BurnMan team, released under the GNU
# GPL v2 or later.
"""
SLB_2005
^^^^^^^^
Minerals from Stixrude & Lithgow-Bertelloni 2005 and references therein
"""
from __future__... | gpl-2.0 | -8,929,445,697,747,135,000 | 22.880342 | 111 | 0.430208 | false | 2.774578 | false | false | false |
CitrineInformatics/python-citrination-client | citrination_client/models/tests/test_service_status.py | 1 | 4405 | from citrination_client.models import ServiceStatus
from citrination_client.base.errors import CitrinationClientError
import pytest
example_status_response_dict = {
"reason": "Please wait for machine learning features to become available",
"ready": True,
"context": "notice",
"event": {
"title": "Initializi... | apache-2.0 | 4,386,586,981,293,500,400 | 36.649573 | 116 | 0.720999 | false | 3.915556 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.