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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
codilime/cloudify-agent | cloudify_agent/shell/commands/installer.py | 1 | 2161 | #########
# Copyright (c) 2015 GigaSpaces Technologies Ltd. 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... | apache-2.0 | -5,405,741,498,984,806,000 | 39.773585 | 78 | 0.711708 | false | 3.771379 | false | false | false |
keldLundgaard/ase-anharmonics | __init__.py | 1 | 22195 | """Anharmonic modes module for ASE
Docs follows Google's python styling guide:
http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
Developed by
Keld Lundgaard -- keld.lundgaard@gmail.com
Supervised by Thomas Bligaard
Other contributers:
Thomas Nygaard
"""
from __future__ import division
impo... | lgpl-2.1 | -933,894,213,935,467,900 | 33.679688 | 79 | 0.541879 | false | 3.79272 | false | false | false |
toobaz/grimm | grimm_lib/scripts_editor.py | 1 | 11766 | # -*- coding: utf-8 -*-
# grimm
#
# grimm is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3.
#
# grimm is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the im... | gpl-3.0 | -1,170,039,885,801,990,400 | 34.008929 | 91 | 0.563802 | false | 3.866864 | false | false | false |
cculianu/bitcoin-abc | test/functional/example_test.py | 1 | 8970 | #!/usr/bin/env python3
# Copyright (c) 2017-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""An example functional test
The module-level docstring should include a high-level description of
what ... | mit | 6,110,810,201,482,311,000 | 38.690265 | 123 | 0.662096 | false | 4.16628 | true | false | false |
iyp-uk/docker-flask-react-users | tests/test_config.py | 1 | 1924 | import unittest
import os
from flask import current_app
from flask_testing import TestCase
from app import create_app
app = create_app()
class TestDevelopmentConfig(TestCase):
def create_app(self):
app.config.from_object('app.config.DevelopmentConfig')
return app
def test_app_is_development(... | mit | 4,003,994,192,291,083,300 | 34.62963 | 110 | 0.668399 | false | 3.657795 | true | false | false |
davy39/eric | E5Network/Ui_E5NetworkHeaderDetailsDialog.py | 1 | 2565 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './E5Network/E5NetworkHeaderDetailsDialog.ui'
#
# Created: Tue Nov 18 17:53:58 2014
# by: PyQt5 UI code generator 5.3.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_E5Netw... | gpl-3.0 | 8,490,459,136,507,517,000 | 50.3 | 113 | 0.756335 | false | 4.097444 | false | false | false |
euccas/CodingPuzzles-Python | leet/source/searchBFS/clone_graph.py | 1 | 1129 | class UndirectedGraphNode():
def __init__(self, x):
self.label = x
self.neighbors = []
class SolutionDFS():
def cloneGraph(node):
dictmap = {}
def dfs(input, map):
if input in map:
return map[input]
output = UndirectedGraphNode(input.labe... | mit | -1,881,565,630,683,411,500 | 25.255814 | 59 | 0.511957 | false | 4.260377 | false | false | false |
Podcastor/podcastor-backend | src/app/api/podcast/views.py | 1 | 1369 | # -*- coding: utf-8 -*-
import json
from django.db.models import Q
from rest_framework import status
from rest_framework import mixins
from rest_framework import viewsets
from rest_framework.response import Response
from rest_framework.decorators import list_route
from app.podcast import filters
from app.podcast.mod... | gpl-2.0 | 8,276,474,618,753,577,000 | 30.837209 | 76 | 0.704164 | false | 4.086567 | false | false | false |
NewAcropolis/api | app/routes/legacy/rest.py | 1 | 1986 | from io import StringIO
from flask import Blueprint, current_app, jsonify, request, send_file
from sqlalchemy.orm.exc import NoResultFound
from app.dao.events_dao import dao_get_event_by_old_id
from app.dao.magazines_dao import dao_get_magazine_by_old_id
from app.errors import register_errors, InvalidRequest
from app.... | mit | 8,314,883,220,012,741,000 | 33.241379 | 82 | 0.697382 | false | 3.424138 | false | false | false |
klahnakoski/ActiveData | vendor/mo_threads/lock.py | 1 | 4162 | # encoding: utf-8
#
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Contact: Kyle Lahnakoski (kyle@lahnakoski.com)
#
# THIS THREADING MODULE IS PERMEATED BY THE pl... | mpl-2.0 | 4,391,168,239,870,685,700 | 32.564516 | 139 | 0.605959 | false | 3.572532 | false | false | false |
auto-mat/klub | local_migrations/migrations_helpdesk/0003_initial_data_import.py | 1 | 1097 | # -*- coding: utf-8 -*-
import os
from sys import path
from django.db import models, migrations
from django.core import serializers
fixture_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'fixtures'))
fixture_filename = 'emailtemplate.json'
def deserialize_fixture():
fixture_file = os.path.join(fix... | gpl-3.0 | -4,514,502,872,821,544,400 | 25.119048 | 86 | 0.695533 | false | 3.849123 | false | false | false |
all3fox/algos-py | src/graph/wgraph.py | 1 | 1153 | from src.graph.agraph import AbstractGraph
class WeightedGraph(AbstractGraph):
def add_edge(self, n1, n2, w=0):
if n1 not in self.graph: self.graph[n1] = []
if n2 not in self.graph: self.graph[n2] = []
self.graph[n1].append([n2, w])
self.graph[n2].append([n1, w])
def del_edg... | mit | 737,662,392,089,589,800 | 26.452381 | 71 | 0.542931 | false | 2.732227 | false | false | false |
linostar/timeline-clone | source/timelinelib/editors/duplicateevent.py | 1 | 5693 | # Copyright (C) 2009, 2010, 2011 Rickard Lindberg, Roger Lindberg
#
# This file is part of Timeline.
#
# Timeline is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your... | gpl-3.0 | 5,176,846,992,711,239,000 | 39.091549 | 99 | 0.629018 | false | 3.950729 | false | false | false |
5a1t/zfaucet | faucet/views.py | 1 | 2081 | from django.shortcuts import render
from django.http import HttpResponse
from django.db.models import Q
from django.utils import timezone
from datetime import *
from pyzcash.rpc.ZDaemon import *
from faucet.models import *
def index(request):
#Going to show the page no matter what, so pull these variables out.
h... | mit | 4,741,225,570,791,452,000 | 36.160714 | 225 | 0.689092 | false | 3.18683 | false | false | false |
Norin-Radd/plugin.video.streetleagueskateboarding | resources/lib/common_variables.py | 1 | 2666 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Author: Norin (copied it)
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-2.0 | 1,377,056,919,416,488,400 | 40.65625 | 179 | 0.746437 | false | 3.564171 | false | false | false |
broadinstitute/toothpick | toothpick/hooks.py | 1 | 4106 | import sys
import types
from functools import wraps
'''
These decorators allow you to register functions to be called before, around,
or after certain events in the toothpick object lifecycle.
Methods that are to be registered as hooks should take a single `self`
argument.
Both `register_hook` and `hook_provider` ... | bsd-3-clause | 811,752,627,496,279,800 | 32.655738 | 79 | 0.593278 | false | 4.250518 | false | false | false |
oyiadin/dandelioning | server.py | 1 | 10570 | import sys
import json
import time
import hmac
import urllib
import base64
import random
import hashlib
import urlparse
import tornado.web
import tornado.gen
import tornado.log
import tornado.ioloop
import tornado.httputil
import tornado.httpclient
from g import g
from config import config as c
GET = 'GET'
POST = 'POS... | apache-2.0 | 3,412,748,627,597,519,000 | 30.933535 | 78 | 0.556102 | false | 4.163056 | true | false | false |
fernandog/Medusa | ext/github/PaginatedList.py | 1 | 8774 | # -*- coding: utf-8 -*-
############################ Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | gpl-3.0 | -8,415,555,811,865,804,000 | 37.31441 | 104 | 0.501254 | false | 4.576943 | false | false | false |
jasonkajita/Espruino | boards/PIC32MZ_EF_STARTERKIT.py | 1 | 3684 | #!/bin/false
# This file is part of Espruino, a JavaScript interpreter for Microcontrollers
#
# Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk>
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at h... | mpl-2.0 | -1,869,973,724,328,895,500 | 30.220339 | 157 | 0.470141 | false | 2.472483 | false | false | false |
lancelee82/bluelake | starfish/snowspt.py | 1 | 2847 | """
"""
import random
import pygm
import consts
class SptSnowFlake(pygm.PyGMSprite):
def __init__(self, size, *args, **kwargs):
super(SptSnowFlake, self).__init__()
self.size = size
#self.surf = self.pygm.Surface(self.size)
self.surf = self.pygm.Surface(self.size,
f... | mit | -224,554,236,250,236,400 | 24.648649 | 69 | 0.52406 | false | 2.92 | false | false | false |
tliron/ronin | ronin/go/__init__.py | 1 | 7086 | # Copyright 2016-2018 Tal Liron
#
# 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 | -7,018,810,136,379,683,000 | 29.675325 | 95 | 0.620378 | false | 3.891269 | false | false | false |
jeromekelleher/msprime | tests/test_intervals.py | 1 | 32231 | #
#
# This file is part of msprime.
#
# msprime 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.
#
# msprime is distributed in the hope ... | gpl-3.0 | 7,971,632,716,726,438,000 | 38.252761 | 88 | 0.570442 | false | 3.077537 | true | false | false |
rackerlabs/marconi | marconi/queues/storage/sqlalchemy/tables.py | 1 | 3034 | # Copyright (c) 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | apache-2.0 | -8,904,119,465,624,901,000 | 40 | 79 | 0.520765 | false | 4.508172 | false | false | false |
AutorestCI/azure-sdk-for-python | azure-batch/azure/batch/models/job_schedule_update_parameter.py | 1 | 2037 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | 8,496,351,083,574,117,000 | 41.4375 | 85 | 0.646048 | false | 4.726218 | false | false | false |
satyrius/cmsplugin-feedback | cmsplugin_feedback/views.py | 1 | 1527 | # coding=utf-8
import json
from captcha.helpers import captcha_image_url
from captcha.models import CaptchaStore
from cms.models import CMSPlugin
from django.views.generic import View
from django.http import HttpResponse
from django.utils.translation import ugettext_lazy as _
from .signals import form_submited
VALI... | mit | -3,712,753,383,378,062,300 | 31.489362 | 72 | 0.613621 | false | 4.082888 | false | false | false |
slackapi/python-slackclient | tutorial/PythOnBoardingBot/app.py | 1 | 5207 | import os
import logging
from flask import Flask
from slack_sdk.web import WebClient
from slackeventsapi import SlackEventAdapter
from onboarding_tutorial import OnboardingTutorial
# Initialize a Flask app to host the events adapter
app = Flask(__name__)
slack_events_adapter = SlackEventAdapter(os.environ["SLACK_SIGNI... | mit | -7,979,146,648,242,416,000 | 34.421769 | 98 | 0.693682 | false | 3.74874 | false | false | false |
Azure/azure-sdk-for-python | sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/aio/_configuration.py | 1 | 3243 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | 5,555,061,314,247,016,000 | 47.402985 | 134 | 0.685476 | false | 4.516713 | true | false | false |
googleapis/googleapis-gen | google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/resources/types/invoice.py | 1 | 12568 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -5,355,235,175,046,548,000 | 35 | 114 | 0.593044 | false | 4.388404 | false | false | false |
techtonik/numpy | numpy/ma/core.py | 1 | 233479 | """
numpy.ma : a package to handle missing or invalid values.
This package was initially written for numarray by Paul F. Dubois
at Lawrence Livermore National Laboratory.
In 2006, the package was completely rewritten by Pierre Gerard-Marchant
(University of Georgia) to make the MaskedArray class a subclass of ndarray,... | bsd-3-clause | -4,298,558,549,913,678,000 | 30.91784 | 86 | 0.532446 | false | 3.951177 | false | false | false |
kemayo/leech | leech.py | 1 | 5014 | #!/usr/bin/env python3
import click
import http.cookiejar
import json
import logging
import requests
import requests_cache
import sqlite3
from click_default_group import DefaultGroup
from functools import reduce
import sites
import ebook
__version__ = 2
USER_AGENT = 'Leech/%s +http://davidlynch.org' % __version__
l... | mit | -5,908,261,817,407,647,000 | 29.204819 | 107 | 0.659753 | false | 3.821646 | true | false | false |
blueboxgroup/neutron | neutron/agent/l3/ha.py | 1 | 9859 | # Copyright (c) 2014 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
#
# Unless... | apache-2.0 | 2,627,780,123,412,135,000 | 39.908714 | 79 | 0.613957 | false | 3.585091 | true | false | false |
AnhellO/DAS_Sistemas | Ago-Dic-2019/Horacio Góngora/Primer Parcial/Ejercicio 1/Vehiculo.py | 1 | 2905 | from abc import ABCMeta, abstractmethod
class Vehiculo(metaclass=ABCMeta):
@abstractmethod
def traslado(self):
pass
def __str__(self):
return ""
class Automovil(Vehiculo):
def __init__(self, color, marca, desplasamiento, medicionVelocidad):
self._color = color
self._mar... | mit | 7,217,618,437,116,677,000 | 35.696203 | 191 | 0.669082 | false | 2.802708 | false | false | false |
malkavi/Flexget | update-changelog.py | 1 | 6205 | import collections
import datetime
import io
import re
import sys
from git import Repo
class MDChangeSet:
"""Represents a markdown change-set for a single version."""
CATEGORIES = [
('### Added\n', ['add', 'added', 'feature']),
('### Changed\n', ['change', 'changed', 'update']),
('##... | mit | 1,475,735,333,017,251,600 | 37.302469 | 102 | 0.543916 | false | 4.120186 | false | false | false |
django-danceschool/django-danceschool | danceschool/prerequisites/apps.py | 1 | 1820 | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.db.models import Q
class PrerequisitesAppConfig(AppConfig):
name = 'danceschool.prerequisites'
verbose_name = _('Class Requirements/Prerequisites')
def ready(self):
from danceschool.core.models im... | bsd-3-clause | -2,177,143,406,738,283,000 | 44.5 | 110 | 0.687363 | false | 4.739583 | false | false | false |
CristianBB/SickRage | sickbeard/webapi.py | 1 | 116831 | # coding=utf-8
# Author: Dennis Lutter <lad1337@gmail.com>
# Author: Jonathon Saine <thezoggy@gmail.com>
# URL: http://code.google.com/p/sickbeard/
#
# 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 ... | gpl-3.0 | -7,251,755,003,099,512,000 | 39.051766 | 204 | 0.564893 | false | 4.009162 | false | false | false |
mic4ael/indico | indico/modules/groups/models/groups.py | 1 | 2505 | # This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
from sqlalchemy.ext.declarative import declared_attr
from indico... | mit | 3,211,448,907,581,896,700 | 27.146067 | 90 | 0.631936 | false | 3.678414 | false | false | false |
MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-2.5/Lib/idlelib/AutoComplete.py | 1 | 8998 | """AutoComplete.py - An IDLE extension for automatically completing names.
This extension can complete either attribute names of file names. It can pop
a window with all available names, for the user to select from.
"""
import os
import sys
import string
from configHandler import idleConf
import AutoCompleteWindow
f... | mit | 698,151,506,174,078,200 | 38.814159 | 79 | 0.546232 | false | 4.472167 | false | false | false |
RealTimeWeb/wikisite | MoinMoin/formatter/pagelinks.py | 1 | 1352 | # -*- coding: iso-8859-1 -*-
"""
MoinMoin - pagelinks Formatter
@copyright: 2005 Nir Soffer <nirs@freeshell.org>
@license: GNU GPL, see COPYING for details.
"""
from MoinMoin.formatter import FormatterBase
class Formatter(FormatterBase):
""" Collect pagelinks and format nothing :-) """
def pagel... | apache-2.0 | -9,107,482,774,910,175,000 | 38.764706 | 91 | 0.66642 | false | 3.776536 | false | false | false |
aleixq/python3-brisa | brisa/core/reactors/glib2.py | 1 | 4386 | # Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php or see LICENSE file.
# Copyright 2007-2008 Brisa Team <brisa-develop@garage.maemo.org>
""" Glib2/GObject based reactor. Works trasparently with GObject-dependent
things, such as Dbus.
"""
from brisa.core.ireactor import ReactorInterface... | mit | 696,444,749,375,593,300 | 28.836735 | 76 | 0.582079 | false | 4.076208 | false | false | false |
3DGenomes/tadbit | _pytadbit/utils/remap_tads_maf_alignment.py | 1 | 21374 | """
12 Jan 2016
This script uses MAF alignment files to convert genomic coordinates of one
species to another species.
As borders from one chromosome in one species might be distribute along several
chromosome in an other species, this script needs to be used over whole genomes.
"""
import sys, re, os
from os ... | gpl-3.0 | 5,203,680,047,431,188,000 | 40.583658 | 88 | 0.497193 | false | 3.803203 | false | false | false |
comparemetrics/GoogleAppsAccountManager | src/GoogleAppsAccountManager/data.py | 1 | 3162 | # -*- coding: utf-8 -*-
#
# GoogleAppsAccountManager: data
# Copyright (C) 2012-2013 KAMEI Yutaka
#
# License: GNU General Public License version 2 or later
# Date: 2012-12-28, since 2012-12-28
#
import urllib
import xml.etree.ElementTree as ET
from GoogleAppsAccountManager import XMLNS_ATOM, XMLNS_APPS
from GoogleApp... | gpl-2.0 | 1,095,811,938,495,529,200 | 35.344828 | 88 | 0.602151 | false | 3.908529 | false | false | false |
matzman666/PyPipboyApp | widgets/playerinfo/playerinfowidget.py | 1 | 4296 | # -*- coding: utf-8 -*-
import datetime
import os
import math
from PyQt5 import QtWidgets, QtCore, uic
from pypipboy.types import eValueType
from widgets import widgets
class PlayerInfoWidget(widgets.WidgetBase):
_signalInfoUpdated = QtCore.pyqtSignal()
def __init__(self, handle, controller, parent):
... | gpl-3.0 | 1,309,601,046,796,612,000 | 38.063636 | 92 | 0.603818 | false | 3.729167 | false | false | false |
danrex/django-riv | riv/serializers/json_serializer.py | 1 | 1677 | from StringIO import StringIO
import json
from django.core.serializers.json import DjangoJSONEncoder, DateTimeAwareJSONEncoder
from django.core.serializers.base import DeserializationError
from riv.serializers import base_serializer as base
class Serializer(base.Serializer):
internal_use_only = False
def get... | mit | 3,401,526,913,926,252,000 | 29.490909 | 84 | 0.655337 | false | 4.333333 | false | false | false |
mtulio/kb | dev/zabbix/trapper-zbx_nginx/zabbix_lib.py | 1 | 2769 | #!/usr/bin/python
#
# Functions to manipulate data from/to Zabbix Trapper.
# https://github.com/mtulio/kb/blob/master/scripts/zabbix/trapper-zbx_nginx/zabbix_lib.py
#
import re, struct, time, socket, sys, datetime, os.path
try:
import json
except:
import simplejson as json
#################################
#... | apache-2.0 | -6,532,556,976,184,073,000 | 27.84375 | 121 | 0.579632 | false | 3.193772 | false | false | false |
ttrifonov/horizon | horizon/horizon/dashboards/nova/access_and_security/floating_ips/forms.py | 1 | 3847 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
# Copyright (c) 2012 X.commerce, a business unit of eBay Inc.
#
# Licensed under th... | apache-2.0 | -2,750,719,724,239,807,000 | 41.744444 | 79 | 0.599168 | false | 4.478463 | false | false | false |
dsm054/pandas | pandas/core/reshape/reshape.py | 1 | 35905 | # pylint: disable=E1101,E1103
# pylint: disable=W0703,W0622,W0613,W0201
from functools import partial
import itertools
import numpy as np
from pandas._libs import algos as _algos, reshape as _reshape
from pandas._libs.sparse import IntIndex
from pandas.compat import PY2, range, text_type, u, zip
from pandas.core.dty... | bsd-3-clause | -7,696,010,081,103,475,000 | 34.029268 | 79 | 0.577524 | false | 3.861998 | false | false | false |
ristorantino/fiscalberry | ComandoInterface.py | 1 | 4527 | # -*- coding: iso-8859-1 -*-
from ConectorDriverComando import ConectorDriverComando
import unicodedata
import importlib
import logging
import string
import types
from array import array
class ValidationError(Exception):
pass
class FiscalPrinterError(Exception):
pass
class ComandoException(RuntimeError):
... | mit | 5,459,534,946,027,408,000 | 27.852564 | 78 | 0.478782 | false | 3.348958 | false | false | false |
ayepezv/GAD_ERP | addons/web/models/ir_http.py | 2 | 2059 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import json
from odoo import models
from odoo.http import request
import odoo
class Http(models.AbstractModel):
_inherit = 'ir.http'
def webclient_rendering_context(self):
return {
'menu_... | gpl-3.0 | 335,137,149,871,381,500 | 45.795455 | 210 | 0.632346 | false | 3.631393 | false | false | false |
ardi69/pyload-0.4.10 | pyload/plugin/captcha/SolveMedia.py | 1 | 3796 | # -*- coding: utf-8 -*-
import re
from pyload.plugin.Captcha import Captcha
class SolveMedia(Captcha):
__name = "SolveMedia"
__type = "captcha"
__version = "0.12"
__description = """SolveMedia captcha service plugin"""
__license = "GPLv3"
__authors = [("pyLoad Team", "admin@py... | gpl-3.0 | 4,899,777,224,110,440,000 | 32.298246 | 117 | 0.456006 | false | 4.444965 | false | false | false |
alfa-jor/addon | plugin.video.alfa/channels/trailertools.py | 1 | 23431 | # -*- coding: utf-8 -*-
# --------------------------------------------------------------------------------
# Search trailers from youtube, filmaffinity, abandomoviez, vimeo, etc...
# --------------------------------------------------------------------------------
import re
import urllib
import urlparse
from ... | gpl-3.0 | -2,196,180,439,113,886,200 | 45.887526 | 140 | 0.542982 | false | 4.036718 | true | false | false |
akesandgren/easybuild-framework | easybuild/toolchains/iimpi.py | 1 | 2699 | ##
# Copyright 2012-2021 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | gpl-2.0 | -720,249,870,355,034,900 | 41.84127 | 120 | 0.697295 | false | 3.662144 | false | false | false |
UWIT-IAM/iam-idbase | idbase/middleware.py | 1 | 6125 | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured, MiddlewareNotUsed
from idbase.util import localized_datetime_string_now, datetime_diff_seconds
from idbase.util import get_class
import logging
from idbase.exceptions import InvalidSessionError, LoginNotPerson, ServiceError
from i... | apache-2.0 | -8,983,877,361,494,808,000 | 36.576687 | 79 | 0.649796 | false | 4.032258 | false | false | false |
levelrf/level_basestation | level/examples/msk_demod_dev.py | 1 | 2378 | #!/usr/bin/env python
from gnuradio import digital
from gnuradio import blks2
from gnuradio import gr
from gnuradio import uhd
from gnuradio.gr import firdes
from gnuradio.level import msk
from math import pi
import time, re
class msk_demod_dev(gr.top_block):
def __init__(self):
gr.top_block.__init__(self, "MSK D... | gpl-3.0 | -6,250,286,468,112,362,000 | 26.034091 | 91 | 0.670732 | false | 2.63929 | false | false | false |
rshk/datacat-odt | datacat_odt/tn_entilocali.py | 1 | 3032 | """
Reader for the http://entilocali.opencontent.it/
"""
import datetime
import posixpath
import urlparse
import requests
from datacat.readers import BaseReader
from datacat.schema import DATE_FORMAT
def urljoin(base, *parts):
"""A mix between urlparse.urljoin() and posixpath.join()"""
return urlparse.urlj... | bsd-3-clause | 3,434,661,815,698,657,000 | 29.938776 | 70 | 0.533641 | false | 4.288543 | false | false | false |
yaringal/BayesianRNN | Sentiment_analysis_code/sentiment_lstm_regression_naive.py | 1 | 5965 | # Train a naiev dropout LSTM on a sentiment classification task.
# GPU command:
# THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python script.py
# In[4]:
from __future__ import absolute_import
from __future__ import print_function
import sys
sys.path.insert(0, "/usr/local/cuda-7.0/bin")
sys.path.insert(0,... | mit | 7,216,209,825,753,089,000 | 33.680233 | 108 | 0.666052 | false | 2.750115 | true | false | false |
carolFrohlich/nipype | nipype/pipeline/engine/workflows.py | 1 | 43180 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""Defines functionality for pipelined execution of interfaces
The `Workflow` class provides core functionality for batch processing.
.. testsetup::
# ... | bsd-3-clause | -5,535,876,575,802,532,000 | 42.793103 | 98 | 0.496804 | false | 4.581432 | true | false | false |
dit/dit | tests/pid/test_immi.py | 1 | 1064 | """
Tests for dit.pid.immi.
"""
import pytest
from dit.pid.measures.immi import PID_MMI
from dit.pid.distributions import bivariates, trivariates
def test_pid_mmi1():
"""
Test immi on a generic distribution.
"""
d = bivariates['prob. 1']
pid = PID_MMI(d, ((0,), (1,)), (2,))
assert pid[((0,),... | bsd-3-clause | -315,583,908,471,300,700 | 27.756757 | 67 | 0.543233 | false | 2.852547 | true | false | false |
pyannote/pyannote-audio | pyannote/audio/tasks/segmentation/overlapped_speech_detection.py | 1 | 5947 | # MIT License
#
# Copyright (c) 2020-2021 CNRS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, pu... | mit | -6,314,767,222,491,880,000 | 39.732877 | 88 | 0.670254 | false | 4.275341 | false | false | false |
kennedyshead/home-assistant | homeassistant/components/mobile_app/device_tracker.py | 1 | 4381 | """Device tracker platform that adds support for OwnTracks over MQTT."""
from homeassistant.components.device_tracker import (
ATTR_BATTERY,
ATTR_GPS,
ATTR_GPS_ACCURACY,
ATTR_LOCATION_NAME,
)
from homeassistant.components.device_tracker.config_entry import TrackerEntity
from homeassistant.components.dev... | apache-2.0 | 1,479,519,160,461,550,000 | 27.448052 | 85 | 0.616526 | false | 3.950406 | false | false | false |
xii/xii | src/xii/component.py | 1 | 6472 | from abc import ABCMeta, abstractmethod
from functools import reduce
from xii.entity import Entity
from xii.store import HasStore
from xii import error, util
class Component(Entity, HasStore):
__metaclass__ = ABCMeta
ctype = ""
"""
Name of the component (eg. 'node')
"""
default_attributes =... | apache-2.0 | 6,341,174,107,173,140,000 | 27.017316 | 74 | 0.56953 | false | 4.606406 | false | false | false |
googleapis/googleapis-gen | google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/enums/types/customer_match_upload_key_type.py | 1 | 1253 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 3,101,154,846,235,085,300 | 29.560976 | 74 | 0.691939 | false | 3.952681 | false | false | false |
rlr/python-twitapi | twitapi/__init__.py | 1 | 36815 | """
The MIT License
Copyright (c) 2010 Ricky Rosario
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publ... | mit | 8,876,208,008,676,591,000 | 36.797741 | 85 | 0.554855 | false | 4.462424 | false | false | false |
endlessm/chromium-browser | third_party/chromite/cros_bisect/chrome_on_cros_bisector.py | 1 | 11335 | # -*- coding: utf-8 -*-
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Invokes git bisect to find culprit commit inside Chromium repository."""
from __future__ import print_function
import json
im... | bsd-3-clause | 7,900,315,293,312,708,000 | 35.801948 | 79 | 0.664314 | false | 3.829392 | false | false | false |
mikebryant/tsumufs | lib/tsumufs/nfsmount.py | 1 | 7777 | # Copyright (C) 2008 Google, Inc. All Rights Reserved.
# Copyright (C) 2012 Michael Bryant.
#
# 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 opt... | gpl-3.0 | 8,370,945,561,222,040,000 | 25.817241 | 78 | 0.620291 | false | 3.910005 | false | false | false |
arthurmensch/cogspaces | cogspaces/modules/linear.py | 1 | 5038 | import math
import torch
from torch import nn
from torch.nn import Parameter, functional as F
k1 = 0.63576
k2 = 1.87320
k3 = 1.48695
class DropoutLinear(nn.Linear):
def __init__(self, in_features, out_features, bias=True, p=1e-8,
level='layer', var_penalty=0., adaptive=False,
s... | bsd-2-clause | -9,134,627,546,731,308,000 | 34.237762 | 86 | 0.523224 | false | 3.923676 | false | false | false |
vdrhtc/Measurement-automation | CUPY_DEV/measurement_functions.py | 1 | 19816 | import cupy as cp
import numpy as np
import asyncio
import cupyx.scipy.ndimage as cpndimage
import scipy.signal as sg
from drivers.Spectrum_m4x import SPCM_MODE, SPCM_TRIGGER
from drivers.pyspcm import *
import scripts.photon_wave_mixing.devices as dev
from lib2.IQPulseSequence import IQPulseBuilder
from concurrent.fut... | gpl-3.0 | 6,717,469,693,450,300,000 | 31.918605 | 79 | 0.595428 | false | 3.29772 | false | false | false |
alexanderfefelov/nav | python/nav/smsd/navdbqueue.py | 1 | 6728 | #
# Copyright (C) 2006, 2013 UNINETT AS
#
# This file is part of Network Administration Visualized (NAV).
#
# NAV is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# This program is distributed in th... | gpl-2.0 | -3,182,481,523,954,774,500 | 30.439252 | 79 | 0.56852 | false | 4.18408 | false | false | false |
sparkslabs/guild | examples/blog/accounts-stm.py | 1 | 5946 | #!/usr/bin/python
from guild.actor import ActorException
from guild.stm import Store, ConcurrentUpdate, BusyRetry
import time
class InsufficientFunds(ActorException):
pass
class Account(object):
"""This is the 'traditional' approach of interacting with the STM module
It's here as a bare example, but le... | apache-2.0 | -5,883,694,901,972,018,000 | 30.13089 | 93 | 0.582913 | false | 4.28695 | false | false | false |
restran/green-glow | grnglow/settings.py | 1 | 4370 | # -*- coding: utf-8 -*-
# from __future__ import unicode_literals
# Django settings for grnglow project.
import os
import qiniu.conf
qiniu.conf.ACCESS_KEY = ""
qiniu.conf.SECRET_KEY = ""
# 存在七牛上的图片的文件名前缀
QINIU_FILE_PREFIX = 'grnglow'
# 七牛图片存储的 URL
QINIU_IMG_URL = ''
DEBUG = True
TEMPLATE_DEBUG = DEBUG
HOME_PAGE_UR... | mit | 4,160,624,867,087,933,400 | 33.344262 | 96 | 0.713604 | false | 2.992857 | false | false | false |
cs2c-zhangchao/nkwin1.0-anaconda | pyanaconda/anaconda_optparse.py | 1 | 5139 | #
# anaconda_optparse.py: option parsing for anaconda (CLI and boot args)
#
# Copyright (C) 2012 Red Hat, Inc. 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 vers... | gpl-2.0 | 481,549,716,544,643,000 | 39.785714 | 78 | 0.631835 | false | 4.233114 | false | false | false |
tisOO/django-markup | src/django_markup/filter/rst_filter.py | 1 | 1770 | from __future__ import unicode_literals
from django_markup.filter import MarkupFilter
class RstMarkupFilter(MarkupFilter):
"""
Converts a reStructuredText string to HTML. If the pygments library is
installed you can use a special `sourcecode` directive to highlight
portions of your text. Example:
... | bsd-3-clause | 2,555,983,810,699,618,000 | 33.038462 | 84 | 0.626554 | false | 4.72 | false | false | false |
GreatDevelopers/UCC | userprofile/forms.py | 1 | 4958 | from django import forms
from django.core.exceptions import ObjectDoesNotExist
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.utils.translation import ugettext as _
from django.conf import settings
from django.contrib.auth.models import User
from userprofile.models impo... | lgpl-3.0 | -9,005,641,701,520,494,000 | 34.669065 | 137 | 0.654296 | false | 4.515483 | false | false | false |
nodesense/nodesense-modbus-serial | scripts/rtu_slave.py | 1 | 3869 | #!/usr/bin/env python
# -*- coding: utf_8 -*-
"""
Modbus TestKit: Implementation of Modbus protocol in python
(C)2009 - Luc Jean - luc.jean@gmail.com
(C)2009 - Apidev - http://www.apidev.fr
This is distributed under GNU LGPL license, see license.txt
"""
import sys
import modbus_tk
import modbus_tk... | mit | -2,218,210,468,542,935,800 | 28.226563 | 87 | 0.496252 | false | 3.552801 | false | false | false |
4dminserver/adminserver | model/utilidades.py | 1 | 5632 | #!/usr/bin/python
#-*-coding:utf-8-*-
#- utilidades class
#- Copyright (C) 2014 GoldraK & Interhack
# 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 ... | gpl-3.0 | 7,231,627,958,786,204,000 | 33.771605 | 135 | 0.651811 | false | 3.153415 | false | false | false |
TheTimmy/spack | lib/spack/spack/fetch_strategy.py | 1 | 34278 | #
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
# For details, see https://github.com/llnl/spack
# Please also see the... | lgpl-2.1 | -5,750,339,662,229,621,000 | 31.614653 | 79 | 0.584923 | false | 4.194567 | false | false | false |
samjabrahams/anchorhub | anchorhub/builtin/regex/markdown.py | 1 | 5305 | """
Regular expression patterns for Markdown files.
Names of regex variables in this file:
anchor_link
ref_link
setext_underline
code_block_start
code_block_end
Markdown:
https://daringfireball.net/projects/markdown/syntax
"""
"""
anchor_link: Inline Markdown link that uses an anchor tag
Has the following specifica... | apache-2.0 | -3,939,381,409,145,399,000 | 33.00641 | 81 | 0.693497 | false | 3.656099 | false | false | false |
maxamillion/lorax | src/pylorax/monitor.py | 1 | 6808 | # monitor.py
#
# Copyright (C) 2011-2015 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 progr... | gpl-2.0 | -8,443,900,164,985,921,000 | 33.912821 | 102 | 0.575499 | false | 4.473062 | false | false | false |
ArabellaTech/django-basic-cms | basic_cms/models.py | 1 | 22612 | """Django page CMS ``models``."""
from .utils import get_placeholders, normalize_url, now_utc
from .managers import PageManager, ContentManager
from .managers import PageAliasManager, ISODATE_FORMAT
from . import settings
from django.db import models
from django.db.models import Max
from django.utils.translation imp... | bsd-3-clause | -120,807,467,494,110,670 | 36.129721 | 149 | 0.595348 | false | 4.209233 | false | false | false |
TillArndt/CmsToolsAC3b | cmstoolsac3b/generators.py | 1 | 21505 | # generators.py
################################################################### utility ###
import collections
import itertools
import operator
import diskio
def _iterableize(obj_or_iterable):
"""provides iterable for [obj OR iterable(obj)]"""
if (isinstance(obj_or_iterable, collections.Iterable)
and ... | gpl-3.0 | 1,403,227,194,318,330,400 | 31.04918 | 126 | 0.579214 | false | 3.564562 | false | false | false |
lucidmotifs/auto-aoc | rotations.py | 1 | 2456 | # classes and combos
from rotation import Rotation
from conqueror.combos import *
from conqueror.abilities import *
from guardian.combos import *
from guardian.abilities import *
## Guardian Aggro Rotation
def Guardian_Aggro():
guard_aggro = Rotation()
guard_aggro.repeat = False
guard_aggro.repeat_count =... | mit | 4,986,279,221,736,339,000 | 28.238095 | 82 | 0.605863 | false | 2.513818 | false | false | false |
scality/manila | doc/source/conf.py | 1 | 7867 | # -*- coding: utf-8 -*-
#
# manila documentation build configuration file, created by
# sphinx-quickstart on Sat May 1 15:17:47 2010.
#
# This file is execfile()d with the current directory set
# to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | apache-2.0 | -4,150,818,642,403,696,000 | 31.241803 | 79 | 0.694928 | false | 3.683052 | true | false | false |
bbengfort/flashcube | flashcube/views.py | 1 | 5009 | # flashcube.views
# Routes for the Flashcube web application
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Sat Sep 07 16:03:07 2013 -0400
#
# Copyright (C) 2015 Bengfort.com
# For license information, see LICENSE.txt
#
# ID: views.py [] benjamin@bengfort.com $
"""
Views for the Flashcube webapp, ... | apache-2.0 | 1,352,430,958,428,315,400 | 30.503145 | 91 | 0.57237 | false | 4.277541 | false | false | false |
ericjsilva/programming-mb-python | lab3/hangman.py | 1 | 1843 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""hangman.py: Let's play a game of hangman."""
# importing the time module
import time, random
# welcoming the user
name = raw_input("What is your name? ")
print "Hello, " + name, "Time to play hangman!"
print "\n"
# wait for 1 second
time.sleep(1)
print "Start gues... | mit | 5,145,315,798,658,433,000 | 18.827957 | 77 | 0.607162 | false | 3.693387 | false | false | false |
darcyg/Openfl_Ext_Project_Templates_for_FlashDevelop4 | 382 Haxe - Openfl Ext Project/tools/utils/haxeutils.py | 1 | 2579 | #-------------------------------------------------------------------------------
# Name: haxeutils.py
# Purpose:
#
# Author: Darcy.G
#
# Created: 04/03/2013
# Copyright: (c) Darcy.G 2013
# Licence: <your licence>
#-------------------------------------------------------------------------------
im... | mit | -450,126,031,859,731,200 | 27.633333 | 85 | 0.491269 | false | 3.778592 | false | false | false |
trambelus/Scootabot | response.py | 1 | 3179 | #!/usr/bin/env python3
# Response.py: given text, return a response.
import nltk
import random
import re
import emotes
nicknames = {
'134968288772882432': ['Hawkaloo', 'Hawke', 'Hawkey', 'Hawkey Hawke'],
'136190686230741002': ['Trambles', 'Trambelus', 'Trambuck', 'Buck', 'Applebuck', 'Applepone', 'Best Appl... | gpl-3.0 | -3,356,084,782,809,637,000 | 32.09375 | 113 | 0.546742 | false | 3.164343 | false | false | false |
alexandr-kriptonov/contacts | classes/mainclass.py | 1 | 2663 | # -*- coding: utf-8 -*-
from ui.informform import MainDialog
class MainClass(object):
def to_log(
self,
type_message='info',
MESSAGE='info',
level=None,
):
sent_to_log = False
self.last_logger = {}
if self.logger:
type_message = type_messa... | gpl-2.0 | 6,490,526,048,962,812,000 | 35.479452 | 65 | 0.486669 | false | 4.247209 | false | false | false |
madmath/sous-chef | src/order/models.py | 1 | 27777 | import collections
from django.db import models
from django.db.models import Q
from django.utils.translation import ugettext_lazy as _
from django_filters import FilterSet, MethodFilter, ChoiceFilter
from django.core.urlresolvers import reverse
from datetime import date
from sqlalchemy.sql import select
from sqlalche... | agpl-3.0 | 7,012,580,840,923,016,000 | 35.309804 | 79 | 0.528927 | false | 3.81657 | false | false | false |
drinkertea/pywinauto | pywinauto/keyboard.py | 1 | 22865 | # -*- coding: utf-8 -*-
# GUI Application automation and testing library
# Copyright (C) 2006-2018 Mark Mc Mahon and Contributors
# https://github.com/pywinauto/pywinauto/graphs/contributors
# http://pywinauto.readthedocs.io/en/latest/credits.html
# All rights reserved.
#
# Redistribution and use in source and b... | bsd-3-clause | 8,397,265,977,218,731,000 | 31.724189 | 92 | 0.499322 | false | 3.735501 | false | false | false |
kmpm/django-collector | collector/apps/collector/models.py | 1 | 4046 | # coding=utf-8
from django.db import models
from django.utils.translation import ugettext_lazy as _
from datetime import datetime, timedelta
import sys
class Driver(models.Model):
POLL_STATUS_CHOICES = (
('AA', _('Ready')),
('BA', _('Running')),
('CA', _('Finished')),
('ZA', _('Fini... | bsd-3-clause | -4,074,606,952,488,831,500 | 39.47 | 109 | 0.593673 | false | 4.070423 | false | false | false |
JarbasAI/JarbasAI | mycroft/client/enclosure/weather.py | 1 | 2399 | # Copyright 2016 Mycroft AI, Inc.
#
# This file is part of Mycroft Core.
#
# Mycroft Core 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 versio... | gpl-3.0 | 5,975,032,626,725,554,000 | 32.788732 | 77 | 0.564402 | false | 3.766091 | false | false | false |
kwentz10/Photosynthesis_Optimization_Modeling | leaf_parameter_inputs_intraspecific_var.py | 1 | 18169 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 13 09:45:04 2016
This code allows me to calculate all combinations
of variable leaf parameters. I will input these
combinations of parameters into my photosynthesis
model in order to perform a sensitivity analysis
of all variables. The combinations ... | mit | 8,279,048,947,689,419,000 | 40.201814 | 127 | 0.538995 | false | 2.645457 | false | false | false |
mavroudisv/Crux | components/includes/generate_db.py | 1 | 1454 | import time
import binascii
import bsddb
import os.path
from petlib.ec import *
from petlib.ec import EcGroup, EcPt
from petlib.bn import Bn
import config as conf
def _make_table(start=conf.LOWER_LIMIT, end=conf.UPPER_LIMIT):
G = EcGroup(nid=713)
g = G.generator()
o = G.order()
i_t... | bsd-2-clause | -7,500,300,310,189,780,000 | 21.451613 | 86 | 0.526135 | false | 2.955285 | false | false | false |
xhochy/g-octave | g_octave/info.py | 1 | 1105 | # -*- coding: utf-8 -*-
"""
g_octave.info
~~~~~~~~~~~~~
This module implements a Python object to store the external dependencies
and the licenses as named on the gentoo-x86 tree.
:copyright: (c) 2010 by Rafael Goncalves Martins
:license: GPL-2, see LICENSE for more details.
"""
from __futur... | gpl-2.0 | 3,334,321,903,903,861,000 | 23.021739 | 77 | 0.586425 | false | 4.123134 | false | false | false |
sfu-fas/coursys | advisornotes/tests.py | 1 | 6603 | import datetime
from django.test import TestCase
from django.urls import reverse
from coredata.models import Person, Unit
from advisornotes.models import NonStudent, AdvisorNote
from courselib.testing import basic_page_tests, Client
class AdvisorNotestest(TestCase):
fixtures = ['basedata', 'coredata']
def t... | gpl-3.0 | -850,628,961,459,469,600 | 43.918367 | 154 | 0.633348 | false | 3.72 | true | false | false |
bithinalangot/ecidadania-dev | src/apps/ecidadania/proposals/urls.py | 1 | 2209 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2010-2012 Cidadania S. Coop. Galega
#
# This file is part of e-cidadania.
#
# e-cidadania 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 Licen... | gpl-3.0 | 2,600,687,823,256,087,000 | 37.086207 | 108 | 0.691716 | false | 3.297015 | false | false | false |
schristakidis/p2ner | p2ner/components/output/purevlcoutput/purevlcoutput/PureVlcOutput.py | 1 | 4165 | # -*- coding: utf-8 -*-
# Copyright 2012 Loris Corazza, Sakis Christakidis
#
# 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
#
# U... | apache-2.0 | -5,143,087,588,871,795,000 | 32.861789 | 139 | 0.60072 | false | 3.918156 | false | false | false |
pjhartin/taut-sensoranalysis-python | runme.py | 1 | 4163 | import pickle
import dataprepper
import outputgenerator
import sensorprocessor
root_folder = '/Users/philliphartin'
taut_folder = '/TAUT'
working_directory = root_folder + taut_folder
sensor_folder = '/SensorRecordings'
database_folder = '/ServerDatabase'
csv_log_file = '/ServerDatabase_2015_11_28_cleaned.csv'
windo... | mit | -3,795,353,990,852,307,000 | 40.217822 | 119 | 0.605092 | false | 4.243629 | false | false | false |
mitodl/micromasters | seed_data/management/commands/attach_avatars.py | 1 | 1618 | """Management command to attach avatars to profiles"""
from tempfile import NamedTemporaryFile
from django.core.management import BaseCommand
from robohash import Robohash
from profiles.models import Profile
from seed_data.management.commands import FAKE_USER_USERNAME_PREFIX
class Command(BaseCommand):
"""
... | bsd-3-clause | 6,782,891,841,198,653,000 | 34.955556 | 104 | 0.6267 | false | 4.235602 | false | false | false |
Azure/azure-sdk-for-python | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/aio/_deployment_scripts_client.py | 1 | 3975 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | -8,215,801,860,097,566,000 | 47.47561 | 130 | 0.688302 | false | 4.471316 | true | false | false |
amnona/heatsequer | heatsequer/plots/plotwin.py | 1 | 19664 | #!/usr/bin/env python
"""
heatsequer heatmap plot module
"""
# amnonscript
from __future__ import absolute_import
__version__ = "0.9"
import heatsequer as hs
import sys
import numpy as np
import matplotlib as mpl
mpl.use('Qt5Agg')
import matplotlib.pyplot as plt
#from matplotlib.pyplot import *
def plotexp(ex... | bsd-3-clause | 7,773,469,403,231,151,000 | 28.305514 | 394 | 0.698383 | false | 2.566767 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.