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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GNOME/dots | dots/docdocument.py | 1 | 1733 | # Dots - A braille translation program.
#
# Copyright (C) 2010 Consorcio Fernando de los Rios
# Author: Fernando Herrera <fherrera@onirica.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,... | gpl-3.0 | 1,013,742,404,977,871,100 | 31.092593 | 71 | 0.699365 | false | 3.565844 | false | false | false |
shashi28/nuts | port scanner/ui_portScanner.py | 1 | 4932 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'portScanner.ui'
#
# Created: Tue Apr 29 18:10:30 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except At... | mit | -6,696,726,251,446,786,000 | 49.326531 | 109 | 0.708232 | false | 3.901899 | false | false | false |
ewejeen/2017sejongAI | week 12/2-1.py | 1 | 2186 |
from nltk.corpus import movie_reviews
from nltk.classify import NaiveBayesClassifier
from nltk.classify.util import accuracy as nltk_accuracy
def extract_features(words):
return dict([(word, True) for word in words])
if __name__=='__main__':
fileids_pos = movie_reviews.fileids('pos')
fileids_neg = movie... | gpl-3.0 | 2,249,432,951,698,209,800 | 40.245283 | 531 | 0.723696 | false | 3.643333 | false | false | false |
default1406/PhyLab | PythonExperimentDataHandle/phylab.py | 1 | 4356 | # -*- coding: utf-8 -*-
from math import sqrt
#将二维列表x中的每一个值保留b位小数(带四舍五入)
def RoundTwo(x,b):
for i in range(len(x)):
for j in range(len(x[i])):
x[i][j] = round(x[i][j],b)
if b == 0:
x[i][j] = ("%d" %x[i][j])
elif b == 1:
x[i][j] = ("%.1f" %x[i][j])
elif b == 2:
x[i][j] = ("%.2f" %x[i][j])
... | gpl-2.0 | -669,399,115,657,459,200 | 18.959391 | 97 | 0.453204 | false | 1.67819 | false | false | false |
vaibhawvipul/Python-Politics-Game | trailblazers.py | 1 | 20603 | import sys
import math
import time
print "\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\vEnter Your name"
name = raw_input("> ")
"""This will display only first name"""
f_name = name.split()
print "\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\vWelcome %r! Be a \n\n\n\n\t\t\t...TRAILBLAZER..."... | apache-2.0 | 1,313,378,677,649,439,200 | 45.718821 | 173 | 0.653885 | false | 2.88033 | false | false | false |
fniephaus/alfred-dropbox | src/dropbox_filter.py | 1 | 5886 | import os
import sys
import time
from email.utils import parsedate
import config
from helpers import get_resource, get_hash, get_account_info, uid_exists
from dropbox import client
from workflow import Workflow, PasswordNotFound, ICON_TRASH
from workflow.background import run_in_background
def main(wf):
if wf.u... | mit | -1,506,039,148,886,385,700 | 34.672727 | 80 | 0.51546 | false | 3.880026 | false | false | false |
alejo8591/maker | core/api/managers.py | 1 | 2413 | # encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of maker.
# License www.tree.io/license
from django.db import models
from django.contrib.auth.models import User
from maker.core.conf import settings
KEY_SIZE = 18
SECRET_SIZE = 32
CONSUMER_DB = getattr(settings, 'MAKER_API_CONSUMER_DB', 'default... | mit | 2,176,478,604,376,307,200 | 28.426829 | 86 | 0.594281 | false | 4.255732 | false | false | false |
wengzhiwen/Your-Vehicle-Status | main.py | 1 | 1119 | # coding=utf-8
import os
import helper
from google.appengine.ext.webapp import template
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.api import users
class MainHandler(webapp.RequestHandler):
def get(self):
user = users.get_current_user()
... | mit | 2,130,439,821,703,919,400 | 28.756757 | 75 | 0.563124 | false | 4.092937 | false | false | false |
SushiTee/teerace | teerace/accounts/forms.py | 1 | 4377 | from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.core.exceptions import ImproperlyConfigured
from accounts.models import UserProfile
from annoying.functions import get_config
from recaptcha_works.fields import RecaptchaField
class RegisterFo... | bsd-3-clause | -4,667,468,854,348,954,000 | 33.203125 | 76 | 0.739319 | false | 3.400932 | true | false | false |
papaiking/faceChecker_device | app/lib/search.py | 1 | 3775 | """
@Author: Thuc VX<vxthuc@labsofthings.com>
@ORG: labsofthings.com
@date: 27 May 2017
Purpose: This package is for search for user in captured image.
It does some processing:
- Request to get Linkedface token,
- Post search image to Linkedace,
- Ssearch user appear in image
"""
import time
import req... | mit | -2,242,247,548,680,306,700 | 33.009009 | 115 | 0.600795 | false | 4.143798 | true | false | false |
networkdynamics/zenlib | src/zen/drawing/ubigraph.py | 1 | 12030 | """
The ``zen.drawing.ubigraph`` module provides support for rendering Zen graphs in the `Ubigraph visualization environment <http://ubietylab.net/ubigraph/>`_. The renderer will update the visualization in real time as changes are made to the underlying graph. Furthermore, edges and nodes can be visually highlighted... | bsd-3-clause | -3,296,160,238,034,257,400 | 34.385294 | 386 | 0.705653 | false | 3.156652 | false | false | false |
cjbe/artiqDrivers | artiqDrivers/devices/coherentDds/driver.py | 1 | 6338 | import logging
import serial
import math
import time
logger = logging.getLogger(__name__)
class CoherentDds:
ser = None;
lsbAmp = 1.0 / 16383 # 0x3fff is maximum amplitude
lsbPhase = 360.0 / 65536 # Degrees per LSB.
def __init__(self, addr, clockFreq, baudrate=115200, internal_clock=False,
... | gpl-3.0 | -1,789,794,188,135,591,000 | 38.36646 | 129 | 0.622436 | false | 3.74144 | false | false | false |
enixdark/im-r-e-d-i-s | flask-cook/my_app/catalog/forms.py | 1 | 2193 | from flask_wtf import Form
from wtforms import TextField,DecimalField,SelectField
from decimal import Decimal
from wtforms.validators import InputRequired,NumberRange,Optional
from models import Category,Product
from wtforms.validators import ValidationError
from wtforms.widgets import html_params,Select, HTMLString
fr... | mit | -5,309,016,394,700,146,000 | 30.782609 | 100 | 0.720474 | false | 3.368664 | false | false | false |
arokem/MRS-old | MRS/qc.py | 1 | 2437 | """
quality control for MRS data
"""
import os
import os.path as op
import nibabel as nib
import numpy as np
import nipype.pipeline.engine as pe
from nipype.interfaces import fsl
def motioncheck(ref_file, end_file, out_path=None, thres=5.0):
"""
Checks motion between structural scans of the same modality.
... | mit | -6,128,460,252,175,409,000 | 26.382022 | 78 | 0.629873 | false | 3.177314 | false | false | false |
3liz/QuickOSM | QuickOSM/ui/base_overpass_panel.py | 1 | 9703 | """Panel OSM Queries based on Overpass base class."""
import io
from qgis.core import (
Qgis,
QgsCoordinateReferenceSystem,
QgsCoordinateTransform,
QgsGeometry,
QgsProject,
QgsRectangle,
QgsVectorLayer,
)
from qgis.PyQt.QtWidgets import QCompleter, QDialog
from QuickOSM.core.exceptions im... | gpl-2.0 | 7,361,262,418,288,470,000 | 38.283401 | 101 | 0.601154 | false | 4.209544 | false | false | false |
hzlf/openbroadcast | website/apps/alibrary/migrations/0099_auto__add_distributor.py | 1 | 56270 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Distributor'
db.create_table('alibrary_distributor', (
('id', self.gf('django.db... | gpl-3.0 | -5,774,735,863,854,991,000 | 98.243386 | 240 | 0.560459 | false | 3.58819 | false | false | false |
craigbruce/awacs | awacs/elasticache.py | 1 | 2765 | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action
service_name = 'AWS ElastiCache'
prefix = 'elasticache'
AddTagsToResource = Action(prefix, 'AddTagsToResource')
AuthorizeCacheSecurityGroupIngress = \
Action(prefix, 'Authoriz... | bsd-2-clause | 2,653,114,337,146,885,000 | 47.508772 | 71 | 0.824955 | false | 4.227829 | false | false | false |
christabor/MoAL | MOAL/languages/formal_language_theory/grammars/context_sensitive.py | 1 | 4856 | # -*- coding: utf-8 -*-
__author__ = """Chris Tabor (dxdstudio@gmail.com)"""
if __name__ == '__main__':
from os import getcwd
from os import sys
sys.path.append(getcwd())
from MOAL.helpers.display import Section
from MOAL.helpers.display import prnt
from random import choice
from MOAL.languages.formal_la... | apache-2.0 | 4,727,653,786,450,231,000 | 33.935252 | 79 | 0.545923 | false | 3.900402 | false | false | false |
SnowWalkerJ/quantlib | quant/data/wind/tables/sindexperformance.py | 1 | 3151 | from ....common.db.sql import VARCHAR, Numeric as NUMBER, DateTime as DATETIME, Column, BaseModel, CLOB, DATE
VARCHAR2 = VARCHAR
class SIndexPerformance(BaseModel):
"""
4.89 中国股票指数业绩表现
Attributes
----------
object_id: VARCHAR2(100)
对象ID
s_info_windcode: VARCHAR2(40)
Wind代码 ... | gpl-3.0 | 941,308,491,787,101,700 | 28.091837 | 109 | 0.593476 | false | 2.229085 | false | false | false |
joeyoung658/A-Level_2016-18 | Challenges/Hangman/Everyones/Samuel/hangman.py | 1 | 2594 | """ Hangman Game (v1.0)
Name: samuel armstrong
Date:
"""
import random
count=0
def load_file(filename):
""" Function to return a word list from a plain text file;
Note: You will need to open the file, read and append
each line to an array (or list), close the file and
then ret... | gpl-3.0 | -9,055,671,597,323,212,000 | 29.880952 | 81 | 0.543177 | false | 4.183871 | false | false | false |
Mnk3y/plugin.video.lastship | lastship.py | 1 | 10683 | # -*- coding: UTF-8 -*-
"""
Lastship Add-on (C) 2017
Credits to Placenta and Covenant; our thanks go to their creators
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 vers... | gpl-3.0 | -6,966,446,947,023,699,000 | 26.748052 | 174 | 0.65403 | false | 3.611562 | false | false | false |
Freeseer/freeseer | src/freeseer/plugins/output/videopreview/widget.py | 1 | 1906 | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
freeseer - vga/presentation capture software
Copyright (C) 2013 Free and Open Source Software Learning Centre
http://fosslc.org
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 ... | gpl-3.0 | 1,840,719,251,519,555,600 | 31.862069 | 101 | 0.730325 | false | 3.921811 | false | false | false |
bstroebl/xplanplugin | HandleDb.py | 1 | 2613 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
XPlan
A QGIS plugin
Fachschale XPlan für XPlanung
-------------------
begin : 2011-03-08
copyright : (C) 2011 by Bernhard Stroebl, KIJ/DV
email :... | gpl-2.0 | 514,960,653,646,335,300 | 34.767123 | 81 | 0.458445 | false | 4.287356 | false | false | false |
ipfire/ddns | src/ddns/system.py | 1 | 12221 | #!/usr/bin/python3
###############################################################################
# #
# ddns - A dynamic DNS client for IPFire #
# Copyright (C) 2012 IPFire development team ... | gpl-3.0 | -9,210,014,487,743,441,000 | 25.452381 | 96 | 0.617544 | false | 3.375967 | false | false | false |
mandeepjadon/python-game | battleship.py | 1 | 1203 | from random import randint
board = []
for x in range(5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print " ".join(row)
print "Let's play Battleship!"
print_board(board)
def random_row(board):
return randint(0, len(board) - 1)
def random_col(board):
return randint(0,... | mit | -3,335,248,240,708,133,000 | 25.733333 | 80 | 0.594347 | false | 3.242588 | false | false | false |
TheAlgorithms/Python | bit_manipulation/binary_twos_complement.py | 1 | 1121 | # Information on 2's complement: https://en.wikipedia.org/wiki/Two%27s_complement
def twos_complement(number: int) -> str:
"""
Take in a negative integer 'number'.
Return the two's complement representation of 'number'.
>>> twos_complement(0)
'0b0'
>>> twos_complement(-1)
'0b11'
>>> t... | mit | 2,760,411,776,246,601,700 | 25.069767 | 81 | 0.580731 | false | 3.366366 | false | false | false |
jobiols/odoo-argentina | l10n_ar_account/models/res_company.py | 1 | 1884 | # -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in module root
# directory
##############################################################################
from openerp import fields, models, api
from opene... | agpl-3.0 | 8,990,268,929,781,817,000 | 34.54717 | 78 | 0.612527 | false | 3.908714 | false | false | false |
CiscoSystems/nova | nova/compute/utils.py | 1 | 19238 | # Copyright (c) 2011 OpenStack Foundation
#
# 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 ... | apache-2.0 | 2,790,141,694,222,280,700 | 36.870079 | 79 | 0.647001 | false | 4.060363 | false | false | false |
googlefonts/color-fonts | config/more_samples-glyf_colr_1.py | 1 | 6716 | """Compile samples that are infeasible or difficult by svg compilation.
"""
import datetime
from pathlib import Path
from fontTools import fontBuilder
from fontTools import ttLib
from fontTools.colorLib import builder as colorBuilder
from fontTools.pens.ttGlyphPen import TTGlyphPen
from fontTools.ttLib.tables._g_l_y_f... | apache-2.0 | -2,336,679,535,853,925,400 | 26.983333 | 88 | 0.558368 | false | 3.284108 | false | false | false |
donspaulding/adspygoogle | examples/adspygoogle/adwords/v201302/optimization/get_placement_ideas.py | 1 | 2587 | #!/usr/bin/python
#
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | apache-2.0 | 1,005,778,109,689,792,100 | 29.435294 | 77 | 0.637031 | false | 3.884384 | false | false | false |
danakj/chromium | mojo/public/tools/bindings/generators/mojom_cpp_generator.py | 1 | 20410 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Generates C++ source files from a mojom.Module."""
import mojom.generate.generator as generator
import mojom.generate.module as mojom
import mojom.genera... | bsd-3-clause | -230,045,905,145,959,070 | 36.449541 | 80 | 0.69706 | false | 3.394312 | false | false | false |
kittiu/sale-workflow | sale_sourced_by_line/tests/test_sale_is_delivered.py | 1 | 3494 | # -*- coding: utf-8 -*-
# Copyright 2014 Camptocamp SA - Yannick Vaucher
# 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.tests.common import TransactionCase
class TestSaleIsDelivered(TransactionCase):
"""Check the _g... | agpl-3.0 | -9,047,940,310,241,662,000 | 36.978261 | 77 | 0.641671 | false | 3.635796 | true | false | false |
scorpionis/docklet | src/env.py | 1 | 2460 | import os
def getenv(key):
if key == "CLUSTER_NAME":
return os.environ.get("CLUSTER_NAME", "docklet-vc")
elif key == "FS_PREFIX":
return os.environ.get("FS_PREFIX", "/opt/docklet")
elif key == "CLUSTER_SIZE":
return int(os.environ.get("CLUSTER_SIZE", 1))
elif key == "CLUSTER_NET... | bsd-3-clause | 8,593,028,398,002,000,000 | 41.413793 | 104 | 0.595122 | false | 3.324324 | false | false | false |
martinzlocha/mad | mad/settings.py | 1 | 3790 | """
Django settings for mad project.
Generated by 'django-admin startproject' using Django 1.10.4.
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/
"""
import os
# ... | mit | 7,744,071,093,783,556,000 | 25.319444 | 91 | 0.656992 | false | 3.568738 | false | false | false |
fdroidtravis/fdroidserver | fdroidserver/scanner.py | 1 | 20098 | #!/usr/bin/env python3
#
# scanner.py - part of the FDroid server tools
# Copyright (C) 2010-13, Ciaran Gultnieks, ciaran@ciarang.com
#
# 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, eit... | agpl-3.0 | 577,908,906,297,143,800 | 39.276553 | 123 | 0.574535 | false | 3.889685 | false | false | false |
redtoad/python-amazon-product-api | amazonproduct/contrib/retry.py | 1 | 1626 |
import socket
import time
import sys
# support Python 2 and Python 3 without conversion
try:
from urllib.request import URLError
except ImportError:
from urllib2 import URLError
from amazonproduct.api import API
class RetryAPI (API):
"""
API which will try up to ``TRIES`` times to fetch a result fr... | bsd-3-clause | -2,704,879,142,169,400,000 | 26.559322 | 80 | 0.589176 | false | 4.659026 | false | false | false |
mapr/sahara | sahara/plugins/mapr/plugin.py | 1 | 2831 | # Copyright (c) 2015, MapR Technologies
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | apache-2.0 | -8,880,976,792,963,895,000 | 37.780822 | 78 | 0.702932 | false | 3.904828 | false | false | false |
jkettleb/iris | lib/iris/tests/unit/experimental/um/test_Field.py | 1 | 6019 | # (C) British Crown Copyright 2014 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris 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 option) any l... | lgpl-3.0 | 4,416,094,728,972,679,700 | 33.994186 | 79 | 0.633328 | false | 3.406338 | true | false | false |
pfwangthu/Convolutional-Neural-Networks | display.py | 1 | 7128 | import matplotlib
#Force matplotlib to not use any Xwindows backend.
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import scipy.io as sio
import os
import sys
import numpy
import theano
import theano.tensor as T
import gzip
import cPickle
from convolutional_mlp import LeNetConvPoolLayer
from logi... | mpl-2.0 | -2,081,077,153,515,145,500 | 36.128342 | 172 | 0.525814 | false | 3.490695 | false | false | false |
umich-brcf-bioinf/Jacquard | jacquard/utils/command_validator.py | 1 | 7653 | """Validates command preconditions.
Specifically checks that the command, arguments, and environment
(e.g. input/output directories or files) are consistent and plausible.
Each validation function evaluates a specific precondition.
Each function is allowed to:
* change the environment (e.g. create a dir)
* change t... | apache-2.0 | 766,562,585,724,645,900 | 38.448454 | 79 | 0.580818 | false | 4.116729 | false | false | false |
lptorres/noah-inasafe | web_api/third_party/simplejson/__init__.py | 1 | 22985 | r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of
JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data
interchange format.
:mod:`simplejson` exposes an API familiar to users of the standard library
:mod:`marshal` and :mod:`pickle` modules. It is the externally maintained
versi... | gpl-3.0 | 5,512,813,960,546,909,000 | 40.02011 | 79 | 0.641157 | false | 3.982155 | false | false | false |
cmacro/flaskblog | app/main/views.py | 1 | 9124 | from flask import render_template, redirect, url_for, abort, flash, request, current_app, make_response
from flask_login import login_required, current_user
from . import main
from ..models import User, Role, Permission, Post, Comment
from ..decorators import admin_required, permission_required
from .. import db
from ... | mit | -2,767,377,335,529,196,500 | 36.208163 | 103 | 0.658183 | false | 3.591805 | true | false | false |
nagyistoce/geokey | geokey/contributions/serializers.py | 1 | 21039 | import requests
import tempfile
from django.core import files
from django.core.exceptions import PermissionDenied, ValidationError
from easy_thumbnails.files import get_thumbnailer
from rest_framework import serializers
from rest_framework_gis import serializers as geoserializers
from rest_framework.serializers imp... | apache-2.0 | -2,704,248,957,482,316,000 | 28.884943 | 79 | 0.547032 | false | 4.916803 | false | false | false |
davehunt/selenium | py/selenium/webdriver/ie/webdriver.py | 1 | 3912 | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | apache-2.0 | -8,441,446,402,448,930,000 | 39.329897 | 117 | 0.665644 | false | 4.554133 | false | false | false |
ioam/holoviews | holoviews/core/data/grid.py | 1 | 28568 | from __future__ import absolute_import
import sys
import datetime as dt
from collections import OrderedDict, defaultdict, Iterable
try:
import itertools.izip as zip
except ImportError:
pass
import numpy as np
from .dictionary import DictInterface
from .interface import Interface, DataError
from ..dimension ... | bsd-3-clause | 5,546,692,618,131,833,000 | 40.402899 | 113 | 0.555027 | false | 4.048179 | false | false | false |
whiteclover/dbpy | tests/pymysqlt.py | 1 | 12224 | #!/usr/bin/env python
# Copyright (C) 2014-2015 Thomas Huang
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 2 of the License.
#
# This program is distributed in the hope that it will ... | gpl-2.0 | 4,985,435,720,029,420,000 | 30.589147 | 108 | 0.551865 | false | 3.678604 | true | false | false |
akx/shoop | _misc/ensure_license_headers.py | 1 | 4075 | #!/usr/bin/env python3
# This file is part of Shoop.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
"""
License header updater.
"""
from __future__ import unicode_literals
impo... | agpl-3.0 | 5,779,910,031,184,858,000 | 26.910959 | 115 | 0.593374 | false | 3.509905 | false | false | false |
aglitke/vdsm | vdsm/storage/image.py | 1 | 51140 | #
# Copyright 2009-2012 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed ... | gpl-2.0 | 51,019,312,970,338,880 | 42.523404 | 79 | 0.557841 | false | 4.385559 | false | false | false |
Jumpscale/jumpscale_core8 | lib/JumpScale/clients/graphite/GraphiteClient.py | 1 | 1317 |
from JumpScale import j
import socket
import time
# import urllib.request, urllib.parse, urllib.error
try:
import urllib.request
import urllib.parse
import urllib.error
except:
import urllib.parse as urllib
class GraphiteClient:
def __init__(self):
self.__jslocation__ = "j.clients.grap... | apache-2.0 | 1,251,291,274,446,699,500 | 24.823529 | 79 | 0.557327 | false | 3.512 | false | false | false |
fidals/refarm-site | catalog/models_operations.py | 1 | 4426 | import abc
import typing
from django.db.migrations.operations.base import Operation
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
# @todo #283:30m Group models.py, models_operations.py, models_expressions.py into the module.
class IndexSQL(abc.ABC):
def __init__(self, name: str):
... | mit | -4,237,920,755,846,553,000 | 31.970149 | 94 | 0.613173 | false | 3.792275 | false | false | false |
LiberatorUSA/GUCEF | dependencies/curl/tests/python_dependencies/impacket/smb.py | 1 | 151624 | # Copyright (c) 2003-2016 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Copyright (C) 2001 Michael Teo <michaelteo@bigfoot.com>
# smb.py - SMB/CIFS library
#
# This software... | apache-2.0 | 3,336,921,338,414,145,000 | 35.990485 | 215 | 0.553244 | false | 3.882916 | false | false | false |
southpaw94/MachineLearning | HPTuning/SVM_X_Validation.py | 1 | 1287 | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import LabelEncoder
from sklearn.cross_validation import train_test_split
from sklearn.cross_validation import cross_val_score
from sklearn.grid_search import GridSearchCV
from sklearn.tree import DecisionTreeClassifier
#... | gpl-2.0 | 6,369,555,869,987,812,000 | 30.390244 | 78 | 0.656566 | false | 3.31701 | false | false | false |
cloudbase/coriolis | coriolis/api/__init__.py | 1 | 5046 | # Copyright (c) 2013 OpenStack Foundation
#
# 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
#
# Unles... | agpl-3.0 | 3,846,645,010,667,522,000 | 35.832117 | 78 | 0.596512 | false | 4.473404 | false | false | false |
Aravinthu/odoo | addons/website/models/ir_http.py | 1 | 10023 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
import traceback
import os
import unittest
import werkzeug
import werkzeug.routing
import werkzeug.utils
import odoo
from odoo import api, models
from odoo import SUPERUSER_ID
from odoo.http import reque... | agpl-3.0 | 8,303,738,624,251,257,000 | 37.255725 | 134 | 0.583458 | false | 4.229114 | false | false | false |
atty303/pyfilesystem | fs/commands/fsinfo.py | 1 | 3443 | #!/usr/bin/env python
from fs.errors import ResourceNotFoundError
from fs.opener import opener
from fs.commands.runner import Command
import sys
from datetime import datetime
class FSInfo(Command):
usage = """fsinfo [OPTION]... [PATH]
Display information regarding an FS resource"""
def get_optpars... | bsd-3-clause | 9,063,598,042,925,267,000 | 40 | 105 | 0.448446 | false | 4.697135 | false | false | false |
fnaum/rez | src/rez/cli/complete.py | 1 | 3476 | """
Prints package completion strings.
"""
from __future__ import print_function
import argparse
__doc__ = argparse.SUPPRESS
def setup_parser(parser, completions=False):
pass
def command(opts, parser, extra_arg_groups=None):
from rez.cli._util import subcommands
import os
import re
# get com... | lgpl-3.0 | 7,186,320,333,218,014,000 | 29.226087 | 79 | 0.609033 | false | 3.832415 | false | false | false |
amoskong/scylla-cluster-tests | sdcm/utils/common.py | 1 | 48757 | # 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 distributed in the hope that it will be usefu... | agpl-3.0 | -6,150,648,137,884,515,000 | 35.250558 | 210 | 0.595996 | false | 3.759793 | true | false | false |
MendeleievBros/Mendeleiev-Bros | mendeleiev_bros/escena_niveles.py | 1 | 4374 | # -*- coding: utf-8 -*-
import pilas
archi = open('datos.txt', 'r')
nivel = archi.readline()
pantalla = archi.readline()
idioma = archi.readline()
archi.close()
if idioma == "ES":
from modulos.ES import *
else:
from modulos.EN import *
class Elemento(pilas.actores.Texto):
def __init__(self, texto='', x... | gpl-3.0 | -6,599,656,830,202,659,000 | 41.427184 | 78 | 0.61762 | false | 2.66301 | false | false | false |
eranroz/dnase | src/data_provider/dataDownloader.py | 1 | 18314 | """'
Script for download and installation of data and required programs
Some functions requires rsync
@see {transformWig} - another script for transformations
''"""
import argparse
import ftplib
from multiprocessing import Pool
import os
import urllib
import time
from config import DATA_DIR, BIN_DIR, OTHER_DATA, SI... | mit | -2,990,876,278,321,959,400 | 43.024038 | 120 | 0.598395 | false | 3.711796 | false | false | false |
linkslice/graphite-tools | codahale_metrics.py | 1 | 7854 | #!/usr/bin/env python
#####################################################
## Parse codahale/yammer/dropwizard JSON metrics ##
## put the tuples into a list, ##
## pickle the list and dump it into the graphite ##
## pickle port ##
##########################... | mit | 7,965,960,671,044,199,000 | 38.467337 | 136 | 0.536542 | false | 4.32251 | false | false | false |
MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/mobile/channels.py | 1 | 7457 | #!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | gpl-2.0 | 5,791,372,461,891,725,000 | 37.637306 | 247 | 0.617541 | false | 3.184031 | false | false | false |
commonslabgr/donation-box-pi | donation-box/DonationServer.py | 1 | 16989 | #!/usr/bin/python
####################################################
# Name: Donation Box WebSockets deamon
#
# Description:
# Provides the WebSockets Server which polls data from the DB, notifies any connected clients (browsers)
# and accepts messages (donations) from clients that then writes to the DB
#
# Author: D... | gpl-3.0 | -4,253,610,225,365,085,700 | 31.421756 | 243 | 0.6825 | false | 3.382242 | true | false | false |
rl-institut/appBBB | appBBB/results_evaluation.py | 1 | 32709 | from os.path import expanduser
import csv
import pandas as pd
import matplotlib.pyplot as plt
from oemof.core import energy_system as es
from oemof.solph.predefined_objectives import minimize_cost
from oemof.outputlib import to_pandas as tpd
from oemof import db
import helper_BBB as hlsb
def create_es(solver, timeste... | gpl-3.0 | -4,810,676,121,799,167,000 | 39.734745 | 79 | 0.504234 | false | 3.306611 | false | false | false |
team-vigir/vigir_behaviors | vigir_flexbe_states/src/vigir_flexbe_states/footstep_plan_relative_state.py | 1 | 4234 | #!/usr/bin/env python
import rospy
import math
import actionlib
from flexbe_core import EventState, Logger
from flexbe_core.proxy import ProxyActionClient
from vigir_footstep_planning_msgs.msg import *
from std_msgs.msg import String, Header
'''
Created on 02/24/2015
@author: Philipp Schillinger and Spyros Maniato... | bsd-3-clause | -8,746,519,600,787,208,000 | 33.422764 | 117 | 0.730279 | false | 3.403537 | false | false | false |
IMDProjects/ServiceManager | ServiceManager.py | 1 | 3754 | #-------------------------------------------------------------------------------
# ServiceManager.py
#
# Purpose: Creates, updates, deletes services in ArcGIS Online
#
#
# Prerequisites/Inputs:
# TokenManager: authentication token for NPS ArcGIS Online
# ServiceConfiguration: service configuration st... | mit | 5,012,614,175,353,012,000 | 36.919192 | 176 | 0.644113 | false | 4.089325 | true | false | false |
tangentlabs/django-fancypages | fancypages/contrib/oscar_fancypages/abstract_models.py | 1 | 2983 | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from ...models import ContentBlock
class AbstractSingleProductBlock(ContentBlock):
name = _("Single Product")
code = 'single-product'
group = _("Catalogue")
template_name = "fancypages/blocks/... | bsd-3-clause | -2,053,354,243,874,709,800 | 28.83 | 75 | 0.65404 | false | 3.993307 | false | false | false |
palpen/wage_calculator | calculate_hours.py | 1 | 2217 |
import re
import argparse
def wage_calculator(log_txt_file, month, year, wage):
date_pattern = "\*\*Date\*\*" # pattern identifying the date in the file
hours_full = []
with log_txt_file as f:
for line in log_txt_file:
if re.search(r"{0}".format(date_pattern), line): # go to the... | mit | 1,043,829,032,182,839,900 | 32.089552 | 114 | 0.483085 | false | 4.097967 | false | false | false |
kovidgoyal/build-calibre | scripts/pkgs/pyqt.py | 1 | 1772 | #!/usr/bin/env python2
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import (unicode_literals, division, absolute_import,
print_function)
import os
from .constants import PYTHON, MAKEOPTS, build_dir, PREFIX, isosx, iswindows
fr... | gpl-3.0 | -6,079,356,304,098,510,000 | 39.272727 | 137 | 0.603273 | false | 3.119718 | false | false | false |
Bl4ckb0ne/ring-api | ring_api/server/flask/api/certificate.py | 1 | 2365 | #
# Copyright (C) 2016 Savoir-faire Linux Inc
#
# Authors: Seva Ivanov <seva.ivanov@savoirfairelinux.com>
# Simon Zeni <simon.zeni@savoirfairelinux.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 ... | gpl-3.0 | -8,790,291,132,487,526,000 | 29.320513 | 80 | 0.587738 | false | 4.056604 | false | false | false |
AntonioMtn/NZBMegaSearch | werkzeug/contrib/testtools.py | 1 | 2435 | # -*- coding: utf-8 -*-
"""
werkzeug.contrib.testtools
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module implements extended wrappers for simplified testing.
`TestResponse`
A response wrapper which adds various cached attributes for
simplified assertions on various content types.
:copyright:... | gpl-2.0 | -8,992,439,196,236,989,000 | 33.295775 | 76 | 0.614374 | false | 4.77451 | true | false | false |
phako/Totem | src/plugins/iplayer/iplayer.py | 1 | 10459 | # -*- coding: utf-8 -*-
import gettext
from gi.repository import GObject, Peas, Totem # pylint: disable-msg=E0611
import iplayer2
import threading
gettext.textdomain ("totem")
D_ = gettext.dgettext
_ = gettext.gettext
class IplayerPlugin (GObject.Object, Peas.Activatable):
__gtype_name__ = 'IplayerPlugin'
... | gpl-2.0 | 8,621,740,412,142,376,000 | 38.296992 | 80 | 0.568736 | false | 4.303417 | false | false | false |
NERC-CEH/ecomaps | ecomaps/services/analysis.py | 1 | 11358 | import datetime
from random import randint
from sqlalchemy.orm import subqueryload, subqueryload_all, aliased, contains_eager, joinedload
from sqlalchemy.orm.exc import NoResultFound
from sqlalchemy.sql import Alias, or_, asc, desc
from ecomaps.model import Dataset, Analysis, AnalysisCoverageDatasetColumn
from ecomaps.... | gpl-2.0 | 3,181,348,859,315,533,300 | 39.137809 | 118 | 0.558549 | false | 4.839369 | false | false | false |
kamimura/py-convert-temperatures | converter.py | 1 | 1936 | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
# added a new temperature scale, two if statements need to add
def convert_to_celsius(t, source):
if source == "Kelvin":
return t - 273.15
elif source == "Celsius":
return t
elif source == "Fahrenheit":
return (t - 32) * 5 / 9
elif ... | mit | 1,126,159,050,346,238,600 | 30.737705 | 100 | 0.558884 | false | 3.17377 | false | false | false |
dubourg/openturns | python/test/t_Gumbel_std.py | 1 | 5074 | #! /usr/bin/env python
from __future__ import print_function
from openturns import *
TESTPREAMBLE()
RandomGenerator.SetSeed(0)
try:
# Instanciate one distribution object
distribution = Gumbel(2.0, -0.5)
print("Distribution ", repr(distribution))
print("Distribution ", distribution)
# Is this dis... | gpl-3.0 | -9,043,513,947,748,732,000 | 41.283333 | 116 | 0.665353 | false | 3.616536 | false | false | false |
3dfxsoftware/cbss-addons | account_bank_statement_vauxoo/model/account_journal.py | 1 | 5195 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# "Nhomar Hernandez <nhomar@vauxoo.com>"
#
# This program is free software: you ca... | gpl-2.0 | 8,968,663,386,985,846,000 | 44.156522 | 119 | 0.536491 | false | 4.695298 | true | false | false |
Kaftanov/Cchat | chat-server/server.py | 1 | 7250 | #!/usr/bin/env python3
"""
#############################
Server application || TCP, socket
version python: python3
#############################
"""
import select
import signal
import socket
import sys
import uuid
import datetime
from communication import send, receive
from messages import Mess... | gpl-3.0 | -5,659,754,009,381,891,000 | 36.371134 | 96 | 0.495448 | false | 4.754098 | false | false | false |
kcolletripp/popular | search/views.py | 1 | 1297 | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from django.views import generic
from .models import Target
from .forms import TargetForm
import utils
# Create your views here.
#class IndexView(generic.ListView):
# template_name = 'search/index.html... | gpl-3.0 | 1,606,601,490,411,531,800 | 31.425 | 80 | 0.680031 | false | 3.716332 | false | false | false |
yastrov/battleship | battleship/serverfactory.py | 1 | 1999 | # coding=utf-8
"""
This factory creates BattleshipProtocol() instances for every
connected users. If number of connected users reach the value max_clients then this factory creates instance
of ErrorBattleshipProtocol() for new users.
Also this class, on own initialization, creates instance of the... | apache-2.0 | 6,821,497,901,575,590,000 | 34.381818 | 112 | 0.646823 | false | 4.840194 | false | false | false |
marshallmcdonnell/journals | journals/databases/icat/sns/icat.py | 1 | 8206 | #!/usr/bin/env python
#import flask
from __future__ import print_function
import requests
import xmljson
import json
import lxml
import decimal
import pandas
from journals.utilities import process_numbers
#uri = "http://icat.sns.gov:2080/icat-rest-ws/experiment/SNS"
#uri = "http://icat.sns.gov:2080/icat-rest-ws/exp... | mit | 5,587,422,821,829,324,000 | 33.334728 | 111 | 0.530466 | false | 3.400746 | false | false | false |
karesansui/karesansui | bin/stop_network.py | 1 | 3039 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of Karesansui.
#
# Copyright (C) 2012 HDE, Inc.
#
# 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, incl... | mit | 6,552,379,057,524,915,000 | 33.146067 | 91 | 0.678513 | false | 3.881226 | false | false | false |
DynamoDS/Coulomb | SessionTools/stacktrace_extractor.py | 1 | 5506 | from __future__ import print_function
import json
import xml.etree.ElementTree as xmlElementTree
import base64
import os
import sys
from os.path import isfile, join
import gzip
import datetime
import random
import traceback
import sys
import features_JSON
import features_XML
VERSION="StackTraces-2018-08-16... | mit | 1,103,576,669,027,327,500 | 31.579882 | 198 | 0.562841 | false | 4.426045 | false | false | false |
nasa/39A | spaceapps/locations/forms.py | 1 | 3715 | from django.forms import Form, ModelForm, CharField, ChoiceField
from django.forms.models import (
modelformset_factory,
inlineformset_factory,
BaseInlineFormSet,
)
from django.forms.formsets import formset_factory, BaseFormSet
import selectable.forms as selectable
from awards.models import LocalAwar... | apache-2.0 | -321,959,692,586,215,400 | 25.161972 | 78 | 0.621534 | false | 3.964781 | false | false | false |
linsalrob/EdwardsLab | bin/NSF_bibtex_by_year.py | 1 | 1668 | """
Parse a bibtex file and only print those entries within a certain number of years
"""
import os
import sys
import argparse
import datetime
from pybtex.database import parse_file, BibliographyData
if __name__ == "__main__":
now = datetime.datetime.now()
earlyyear = now.year - 4
parser = argparse.Argum... | mit | 4,710,846,875,079,895,000 | 35.26087 | 130 | 0.598321 | false | 3.861111 | false | false | false |
tzicatl/lfs-shipping-ups | shipping_ups/plugin.py | 1 | 2998 | from django.contrib.sites.models import get_current_site
from lfs.cart.utils import get_cart
from lfs.customer.utils import get_customer
from lfs.plugins import ShippingMethodPriceCalculator
from ups.client import UPSClient, UPSError
from ups.model import Package, Address
from .models import UPSConfiguration
class... | bsd-3-clause | -7,931,353,110,327,888,000 | 31.956044 | 87 | 0.588726 | false | 3.82398 | false | false | false |
wanghuok02/iherb | iherb/spiders/iherbspider.py | 1 | 1439 | import scrapy
import logging
from scrapy.spiders import Spider
from scrapy.selector import Selector
from iherb.items import IherbItem
class IherbSpider(Spider):
name = "iherbspider"
allowed_domains = ["iherb.cn"]
max_page = 5
cur_page = 1
start_urls = [
"http://www.iherb.cn/Supplements... | apache-2.0 | -8,967,152,911,173,662,000 | 35.923077 | 122 | 0.542738 | false | 3.484262 | false | false | false |
emanuele/jstsp2015 | simulation.py | 1 | 7420 | """Simulation estimating Type I and Type II error of CBT and KTST.
Author: Sandro Vega-Pons, Emanuele Olivetti
"""
import numpy as np
from sklearn.metrics.pairwise import pairwise_distances
from kernel_two_sample_test import MMD2u, compute_null_distribution
from sklearn.svm import SVC
from sklearn.grid_search import ... | mit | -3,438,818,910,070,712,000 | 37.645833 | 171 | 0.592453 | false | 3.185917 | false | false | false |
azlanismail/prismgames | examples/games/car/networkx/readwrite/gexf.py | 1 | 33475 | """
****
GEXF
****
Read and write graphs in GEXF format.
GEXF (Graph Exchange XML Format) is a language for describing complex
network structures, their associated data and dynamics.
This implementation does not support mixed graphs (directed and
unidirected edges together).
Format
------
GEXF is an XM... | gpl-2.0 | 3,307,386,771,986,776,000 | 34.705044 | 79 | 0.522121 | false | 3.967643 | false | false | false |
odoo-argentina/account | l10n_ar_account/models/account_invoice.py | 1 | 12294 | # -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in module root
# directory
##############################################################################
from openerp import models, fields, api, _
from op... | agpl-3.0 | 2,440,302,413,177,547,000 | 37.898734 | 79 | 0.549219 | false | 3.860553 | false | false | false |
Azure/azure-sdk-for-python | sdk/servicebus/azure-servicebus/samples/async_samples/schedule_messages_and_cancellation_async.py | 1 | 2329 | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | mit | -1,515,303,370,977,743,400 | 40.589286 | 109 | 0.682267 | false | 4.496139 | false | false | false |
aspilotros/YouTube_views_forecasting | CountingLines3-noplot.py | 1 | 3206 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 15 17:54:35 2017
@author: ale
"""
#sys.stdout.write(frmt_date)
# Counting the number of lines in a file each 5 min
import time
import datetime as dt
import matplotlib.pyplot as plt
import plotly as py
import plotly.graph_objs as go
import numpy as ... | mit | -4,667,322,212,081,878,000 | 22.925373 | 178 | 0.554273 | false | 3.044634 | false | false | false |
rdireen/nearside | nearside/cylindrical/structures.py | 1 | 3017 | # Copyright (C) 2015 Randy Direen <nearside@direentech.com>
#
# This file is part of NearSide.
#
# NearSide 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 optio... | gpl-3.0 | -3,671,326,859,326,461,000 | 33.295455 | 79 | 0.526019 | false | 4.87399 | false | false | false |
dataversioncontrol/dvc | dvc/state.py | 1 | 16303 | """Manages state database used for checksum caching."""
from __future__ import unicode_literals
import os
import sqlite3
import dvc.logger as logger
from dvc.config import Config
from dvc.utils import file_md5, remove, current_timestamp
from dvc.exceptions import DvcException
from dvc.utils.fs import get_mtime_and_s... | apache-2.0 | -3,852,605,697,348,844,000 | 30.412331 | 79 | 0.532601 | false | 4.094174 | true | false | false |
sony/nnabla | python/src/nnabla/backward_function/image_augmentation.py | 1 | 1336 | # Copyright 2019,2020,2021 Sony Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | apache-2.0 | 1,924,461,627,481,144,800 | 42.096774 | 284 | 0.729042 | false | 3.731844 | false | false | false |
RowsberryPi/rowsberrypi | pyrow/statshow.py | 1 | 2273 | #!/usr/bin/env python
#Copyright (c) 2011, Sam Gambrell
#Licensed under the Simplified BSD License.
#This is an example file to show how to make use of pyrow
#Have the rowing machine on and plugged into the computer before starting the program
#The program will display any changes to the machine status, stroke state, ... | bsd-2-clause | -7,115,628,451,162,838,000 | 38.877193 | 100 | 0.636604 | false | 3.342647 | false | false | false |
tensorflow/datasets | tensorflow_datasets/text/lm1b.py | 1 | 3711 | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets 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 appl... | apache-2.0 | 4,412,130,310,659,180,000 | 34.009434 | 88 | 0.642684 | false | 3.452093 | false | false | false |
sadig/DC2 | components/dc2-admincenter/dc2/admincenter/lib/auth/kerberos.py | 1 | 2306 | # -*- coding: utf-8 -*-
#
# (DC)² - DataCenter Deployment Control
# Copyright (C) 2010, 2011, 2012, 2013, 2014 Stephan Adig <sh@sourcecode.de>
# 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; eit... | gpl-2.0 | -8,005,599,435,126,051,000 | 32.405797 | 79 | 0.708894 | false | 3.595944 | false | false | false |
tdhooper/starstoloves | starstoloves/lib/search/tests/test_result.py | 1 | 2284 | import pytest
from starstoloves.lib.track.lastfm_track import LastfmTrack
from ..result import LastfmResultParser
pytestmark = pytest.mark.django_db
@pytest.fixture()
def result_parser(request):
return LastfmResultParser()
class TestResultParser():
many_results = {
'trackmatches': {
... | gpl-2.0 | 778,271,204,807,938,200 | 28.662338 | 86 | 0.549037 | false | 3.904274 | true | false | false |
AragurDEV/yowsup | yowsup/layers/protocol_profiles/protocolentities/iq_picture_get_result.py | 1 | 1785 | from .iq_picture import PictureIqProtocolEntity
from yowsup.structs import ProtocolTreeNode
class ResultGetPictureIqProtocolEntity(PictureIqProtocolEntity):
'''
<iq type="result" from="{{jid}}" id="{{id}}">
<picture type="image | preview" id="{{another_id}}">
{{Binary bytes of the picture.}}
... | gpl-3.0 | -5,251,179,448,151,242,000 | 38.666667 | 148 | 0.677871 | false | 4.170561 | false | false | false |
Instanssi/Instanssi.org | Instanssi/kompomaatti/admin.py | 1 | 1416 | # -*- coding: utf-8 -*-
from django.contrib import admin
from imagekit.admin import AdminThumbnail
from Instanssi.kompomaatti.models import Compo, Entry, Event, Vote, VoteCodeRequest, Profile, Competition, \
CompetitionParticipation, TicketVoteCode, VoteGroup, EntryCollection
class TicketVoteCodeAdmin(admin.Mode... | mit | -8,645,906,533,803,368,000 | 23.413793 | 108 | 0.680085 | false | 3.575758 | false | false | false |
Workday/OpenFrame | tools/perf/benchmarks/start_with_url2.py | 1 | 1913 | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from benchmarks import startup2
import page_sets
from telemetry import benchmark
# TODO(gabadie): Replaces start_with_url.* by start_with_url2.* after con... | bsd-3-clause | 5,598,138,598,909,910,000 | 33.160714 | 80 | 0.755358 | false | 3.700193 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.