repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
edmorley/treeherder | treeherder/services/pulse/consumers.py | 1 | 5645 | import logging
import newrelic.agent
from kombu import (Exchange,
Queue)
from kombu.mixins import ConsumerMixin
from treeherder.etl.common import fetch_json
from treeherder.etl.tasks.pulse_tasks import (store_pulse_jobs,
store_pulse_pushes)
from .excha... | mpl-2.0 | -7,936,321,859,886,278,000 | 35.419355 | 100 | 0.620903 | false |
tigeorgia/fixmystreet | apps/users/migrations/0001_initial.py | 1 | 2962 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
]
operations = [
migrations.CreateMode... | gpl-2.0 | 3,277,017,067,668,940,000 | 49.20339 | 257 | 0.597907 | false |
WalkingMachine/sara_behaviors | sara_flexbe_behaviors/src/sara_flexbe_behaviors/action_receive_bag_sm.py | 1 | 3679 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] ta... | bsd-3-clause | 1,963,174,731,779,528,200 | 32.144144 | 157 | 0.633052 | false |
fparrel/regepe | vps/gpxparser.py | 1 | 8080 |
# For xml parsing
try:
from etree.ElementTree import ElementTree
except ImportError:
from xml.etree.ElementTree import ElementTree
# For date parsing
from datetime import datetime
import time
# Model classes
from model import Bounds,Point,Track
#i18n
from flask_babel import gettext
# gpx creator="KeyMaze 5... | gpl-3.0 | -4,651,196,639,429,337,000 | 34.911111 | 100 | 0.576485 | false |
Outernet-Project/outernet-broadman | broadman/db.py | 1 | 1973 | """
Functions for working with broadcast database
Copyright 2015, Outernet Inc.
Some rights reserved.
This software is free software licensed under the terms of GPLv3. See COPYING
file that comes with the source code, or http://www.gnu.org/licenses/gpl.txt.
"""
import sqlite3
import datetime
import sqlize as sql
f... | gpl-3.0 | 4,505,186,145,183,440,000 | 26.027397 | 79 | 0.580335 | false |
mgeorgehansen/FIFE_Technomage | tests/analyzers/dep_analyzer.py | 1 | 7256 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ####################################################################
# Copyright (C) 2005-2009 by the FIFE team
# http://www.fifengine.de
# This file is part of FIFE.
#
# FIFE is free software; you can redistribute it and/or
# modify it under the terms of the GNU Le... | lgpl-2.1 | 2,913,993,431,824,117,000 | 28.258065 | 117 | 0.645535 | false |
genevolv/dbrev | py/freevolv/models/dbrev/table.py | 1 | 8372 | ''' dbrev.table can be thought of as a bean or a template. It
has only attributes with getters and setters.
'''
import logging
LOG = logging.getLogger(__name__)
# LOG.setLevel(logging.INFO)
# Long lines expected.
# pylint: disable=C0301
# Cyclic imports protected by functions
# pylint: disable=R0401
class Table... | bsd-2-clause | -5,223,640,026,249,078,000 | 47.674419 | 221 | 0.627807 | false |
openstack/ironic | ironic/drivers/modules/agent_power.py | 1 | 8765 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | -4,038,878,199,996,820,000 | 38.840909 | 79 | 0.607872 | false |
christophreimer/pytesmo | tests/test_sat/test_ers.py | 1 | 4902 | # Copyright (c) 2013,Vienna University of Technology,
# Department of Geodesy and Geoinformation
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the... | bsd-3-clause | 3,637,355,955,954,336,000 | 43.563636 | 81 | 0.612403 | false |
andrewromanenco/pyjvm | pyjvm/platform/java/lang/object.py | 1 | 3672 | # PyJVM (pyjvm.org) Java Virtual Machine implemented in pure Python
# Copyright (C) 2014 Andrew Romanenco (andrew@romanenco.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version ... | gpl-3.0 | -3,382,427,627,073,679,000 | 33.971429 | 71 | 0.601852 | false |
credativUK/vdirsyncer | tests/cli/test_config.py | 1 | 4939 | import io
from textwrap import dedent
import pytest
from vdirsyncer import cli
@pytest.fixture
def read_config(tmpdir):
def inner(cfg):
f = io.StringIO(dedent(cfg.format(base=str(tmpdir))))
return cli.utils.read_config(f)
return inner
def test_read_config(read_config, monkeypatch):
err... | mit | 157,188,139,893,423,170 | 24.723958 | 76 | 0.524803 | false |
DOAJ/doaj | portality/formcontext/render.py | 1 | 23506 | # DEPRECATED - this file is dead, and should be removed by the end of the redesign project
from portality.formcontext.formhelper import FormHelperBS3
from portality.formcontext.choices import Choices
from copy import deepcopy
class Renderer(object):
def __init__(self):
self.FIELD_GROUPS = {}
self.... | apache-2.0 | -1,921,230,620,043,289,300 | 35.5 | 219 | 0.51506 | false |
babble/babble | include/jython/Lib/test/test_jser2.py | 1 | 2399 | from test import test_support
import unittest
import java
from org.python.util import PythonObjectInputStream
def serialize(o, special=0):
b = java.io.ByteArrayOutputStream()
objs = java.io.ObjectOutputStream(b)
objs.writeObject(o)
if not special:
OIS = java.io.ObjectInputStream
else:
... | apache-2.0 | 2,428,962,986,861,832,000 | 24.521277 | 69 | 0.571905 | false |
fracturica/shardlib | shardlib/comp_analysis/SIMCompAnalysis.py | 1 | 23592 | import dataProcessing as dp
import plotFuncs as pf
import numpy as np
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA
from matplotlib.path import Path
from mpl_toolkits.mplot3d import Axes3D
import matplotlib as mp... | mit | 8,652,777,072,238,680,000 | 33.951111 | 110 | 0.525348 | false |
DTOcean/dtocean-core | dtocean_core/tools/external.py | 1 | 3947 | # -*- coding: utf-8 -*-
# Copyright (C) 2016-2018 Mathew Topper
#
# 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... | gpl-3.0 | -1,000,664,811,130,914,200 | 27.395683 | 79 | 0.584241 | false |
bowen0701/algorithms_data_structures | lc0314_binary_tree_vertical_order_traversal.py | 1 | 3585 | """Leetcode 314. Binary Tree Vertical Order Traversal
Medium
URL: https://leetcode.com/problems/binary-tree-vertical-order-traversal/
Given a binary tree, return the vertical order traversal of its nodes' values.
(ie, from top to bottom, column by column).
If two nodes are in the same row and column, the order shoul... | bsd-2-clause | 4,864,136,224,572,877,000 | 17.769634 | 78 | 0.499861 | false |
DirectXMan12/nova-hacking | nova/tests/db/test_migration_utils.py | 1 | 21712 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2013 Boris Pavlovic (boris@pavlovic.me).
# 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
#
# ... | apache-2.0 | -9,101,313,713,474,050,000 | 41.077519 | 79 | 0.517272 | false |
all-of-us/raw-data-repository | rdr_service/alembic/versions/cd009f1475ff_deceased_report_cause_of_death.py | 1 | 1935 | """deceased report cause of death
Revision ID: cd009f1475ff
Revises: a4ab3afcb460
Create Date: 2020-09-08 11:48:27.208496
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus
from rdr_... | bsd-3-clause | 7,756,733,859,795,774,000 | 31.25 | 125 | 0.749871 | false |
tboyce021/home-assistant | homeassistant/components/apple_tv/__init__.py | 2 | 12223 | """The Apple TV integration."""
import asyncio
import logging
from random import randrange
from pyatv import connect, exceptions, scan
from pyatv.const import Protocol
from homeassistant.components.media_player import DOMAIN as MP_DOMAIN
from homeassistant.components.remote import DOMAIN as REMOTE_DOMAIN
from homeass... | apache-2.0 | 6,061,294,520,486,808,000 | 31.335979 | 87 | 0.599607 | false |
Sjc1000/PyRC | UI/NickName.py | 1 | 1047 | #!/usr/bin/env python3
from gi.repository import Gtk, Pango
class NickName():
servers = {}
active_server = None
active_channel = None
def __init__(self, MainWindow):
self.MainWindow = MainWindow
self.position = [0, 9, 1, 1]
def prebuild(self):
self.MainWindow.ui_plugin... | gpl-2.0 | 5,602,756,022,163,896,000 | 25.2 | 84 | 0.613181 | false |
mysociety/barnetplanning | applications/migrations/0002_auto__add_field_application_ward_mapit_id.py | 1 | 1626 | # encoding: 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 field 'Application.ward_mapit_id'
db.add_column('applications_application', 'ward_mapit_id', ... | agpl-3.0 | 2,371,838,082,828,122,600 | 42.945946 | 146 | 0.583026 | false |
DanielFSFE/test1 | adventure.py | 1 | 13152 | import random
class Game(object):
"""
holds all information for a game. Later it may be
possible to run several game instances at once
"""
number = 0
def __init__(self):
self.number = Game.number
Game.number += 1
self.rooms = {} # dictionary of rooms, key is room number... | gpl-2.0 | -631,206,587,626,773,600 | 34.260054 | 86 | 0.577783 | false |
lukas-bednar/jenkins-job-builder | tests/cmd/subcommands/test_update.py | 1 | 6946 |
# Joint copyright:
# - Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# 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 req... | apache-2.0 | 6,729,732,295,201,519,000 | 42.685535 | 78 | 0.610135 | false |
Spoken-tutorial/spoken-website | impersonate/decorators.py | 1 | 1214 | # -*- coding: utf-8 -*-
import django
from django.conf import settings
from django.utils.http import urlquote
from django.utils.encoding import force_str
from django.shortcuts import redirect, resolve_url
from django.contrib.auth import REDIRECT_FIELD_NAME
from .helpers import get_redir_path, check_allow_impersonate, ... | gpl-3.0 | -5,703,036,976,990,993,000 | 31.810811 | 78 | 0.638386 | false |
PinMeTo/big-zelda-kegerator | measuring/measur.py | 1 | 5542 | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# Author: Andreas Älveborn
# URL: https://github.com/aelveborn/Wii-Scale
#
# This file is part of Wii-Scale
# Copyright (C) 2015 Andreas Älveborn
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License a... | mit | -8,745,683,553,835,731,000 | 22.574468 | 97 | 0.677256 | false |
rgayon/plaso | tests/parsers/syslog.py | 1 | 8396 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the syslog parser."""
from __future__ import unicode_literals
import unittest
from plaso.parsers import syslog
from tests.parsers import test_lib
class SyslogParserTest(test_lib.ParserTestCase):
"""Tests for the syslog parser."""
def testParseRsyslo... | apache-2.0 | 6,114,675,966,977,430,000 | 33.547325 | 76 | 0.694937 | false |
gallandarakhneorg/autolatex | plugins/gedit3/autolatexeditor/utils/gedit_runner.py | 1 | 4936 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# autolatex/utils/gedit_runner.py
# Copyright (C) 2013-14 Stephane Galland <galland@arakhne.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 Free Software Foundatio... | gpl-2.0 | -5,963,256,746,123,358,000 | 34.510791 | 91 | 0.674635 | false |
Q-Leap-Networks/pyside-segfault | wizard.py | 1 | 3656 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import argparse
from Qt import QtGui, QtCore, loadUi
from QtCore import Slot
from HWWizard import HWWizard
class Host:
def __init__(self, name, autodetect):
self.name = name
self.autodetect = autodetect
class Name:
def __init__(self, nam... | gpl-2.0 | -8,578,192,647,075,169,000 | 29.722689 | 57 | 0.390591 | false |
fle-internal/content-curation | contentcuration/contentcuration/utils/celery_signals.py | 1 | 2657 | import ast
import logging
import os
import traceback
from celery.signals import after_task_publish, task_failure, task_success
from celery.utils.log import get_task_logger
from django.core.exceptions import ObjectDoesNotExist
from contentcuration.models import Task, User
# because Celery connects signals upon import... | mit | -5,897,802,746,775,080,000 | 38.073529 | 126 | 0.687618 | false |
kbussell/django-docusign | setup.py | 1 | 2412 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python packaging."""
import os
import sys
from setuptools import setup
#: Absolute path to directory containing setup.py file.
here = os.path.abspath(os.path.dirname(__file__))
#: Boolean, ``True`` if environment is running Python version 2.
IS_PYTHON2 = sys.version_i... | bsd-3-clause | 1,158,806,017,354,079,000 | 24.378947 | 76 | 0.636665 | false |
pastebt/yeast | testcase/test_acore.py | 1 | 4379 | import sys
import unittest
from StringIO import StringIO
sys.path.append('../yeast')
import ahttp
import acore
class FAKE_USER(acore.Acore):
def read_all(self, arw, size=0, seps=()):
for y in arw.aread(size, seps):
yield y
class FAKE(acore.ARW):
def __init__(self, data):
acore.A... | gpl-2.0 | -6,596,595,997,514,402,000 | 30.503597 | 66 | 0.530486 | false |
tilde-lab/tilde | tests/apps/perovskite_tilting/tilt_data.py | 1 | 4199 | #!/usr/bin/env python
# Euler tilting angles extraction test
# Author: Evgeny Blokhin
"""
Data for this test are published in:
[1] Surf.Sci.602, 3674 (2008), http://dx.doi.org/10.1016/j.susc.2008.10.002
[2] Evgeny Blokhin's MSc. thesis (in Russian), http://dx.doi.org/10.13140/RG.2.1.4276.2727
[3] PRB83, 134108 (2011),... | mit | 5,262,636,224,820,790,000 | 33.702479 | 179 | 0.551322 | false |
hidext/oemedical | oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics.py | 1 | 6182 | # -*- coding: utf-8 -*-
##############################################################################
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2004-TODAY Tech-Receptives(<http://www.techreceptives.com>)
# Special Credit and Thanks to Thymbra Latinoamericana S.A.
#
# This program is free soft... | agpl-3.0 | -6,396,801,684,019,565,000 | 43.157143 | 79 | 0.531381 | false |
dann/python-hookable | docs/conf.py | 1 | 9257 | # -*- coding: utf-8 -*-
#
# hookable documentation build configuration file, created by
# sphinx-quickstart on Wed Jan 4 21:12:53 2012.
#
# 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... | bsd-3-clause | -1,558,838,466,794,074,600 | 31.031142 | 215 | 0.703684 | false |
joopert/nad_receiver | nad_receiver/__init__.py | 1 | 11483 | """
NAD has an RS232 interface to control the receiver.
Not all receivers have all functions.
Functions can be found on the NAD website: http://nadelectronics.com/software
"""
import codecs
import socket
from time import sleep
from typing import Any, Dict, Iterable, Optional, Union
from nad_receiver.nad_commands impo... | mit | 423,061,647,140,104,700 | 35.804487 | 115 | 0.570844 | false |
Tesora/tesora-python-troveclient | troveclient/tests/osc/v1/test_database_flavors.py | 1 | 1636 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distrib... | apache-2.0 | 2,906,566,030,713,005,600 | 38.902439 | 77 | 0.702323 | false |
erigones/esdc-ce | ans/roles/cluster/library/pcs_resource.py | 1 | 15877 | #!/usr/bin/python
# Copyright: (c) 2018, Ondrej Famera <ondrej-xa2iel8u@famera.cz>
# GNU General Public License v3.0+ (see LICENSE-GPLv3.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0 (see LICENSE-APACHE2.txt or http://www.apache.org/licenses/LICENSE-2.0)
from __future__ import absolute_import,... | apache-2.0 | -6,543,868,427,845,486,000 | 43.598315 | 159 | 0.580336 | false |
jolid/script.module.donnie | lib/donnie/hgtv.py | 1 | 3410 | import urllib2, urllib, sys, os, re, random, copy
import urlresolver
from BeautifulSoup import BeautifulSoup, Tag, NavigableString
import xbmc,xbmcplugin,xbmcgui,xbmcaddon
from t0mm0.common.net import Net
from t0mm0.common.addon import Addon
from scrapers import CommonScraper
net = Net()
''' ########################... | gpl-2.0 | -1,216,272,242,217,462,300 | 20.049383 | 118 | 0.637243 | false |
factorybuild/stbgui | lib/python/Screens/InfoBarGenerics.py | 1 | 119933 | from ChannelSelection import ChannelSelection, BouquetSelector, SilentBouquetSelector
from Components.ActionMap import ActionMap, HelpableActionMap
from Components.ActionMap import NumberActionMap
from Components.Harddisk import harddiskmanager
from Components.Input import Input
from Components.Label import Label
from... | gpl-2.0 | 7,106,807,168,855,365,000 | 33.652702 | 267 | 0.721661 | false |
hpcugent/easybuild-framework | easybuild/toolchains/pgi.py | 1 | 1780 | ##
# Copyright 2015 Bart Oldeman
#
# This file is triple-licensed under GPLv2 (see below), MIT, and
# BSD three-clause licenses.
#
# 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 ... | gpl-2.0 | -7,992,043,115,076,133,000 | 38.555556 | 108 | 0.755056 | false |
MacHu-GWU/pyknackhq-project | setup.py | 1 | 4034 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Frequent used classifiers List = [
"Development Status :: 1 - Planning",
"Development Status :: 2 - Pre-Alpha",
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Development Stat... | mit | -7,294,247,463,790,889,000 | 32.907563 | 85 | 0.65171 | false |
INFN-Catania/FedManager | fednodes/abstract_classes.py | 1 | 2405 | """
Copyright 2015 INFN (Italy)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -6,429,133,711,305,096,000 | 22.125 | 85 | 0.665696 | false |
Azure/azure-sdk-for-python | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_configuration.py | 1 | 3238 | # 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 | -288,816,339,190,468,300 | 44.605634 | 129 | 0.66677 | false |
town-hall-pinball/project-omega | pin/service/matrix.py | 1 | 3862 | # Copyright (c) 2014 - 2016 townhallpinball.org
#
# 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, p... | mit | -4,653,638,042,930,319,000 | 35.093458 | 77 | 0.586225 | false |
fuku-ys/earthquake | pyearthquake/OLD.orchestrator/explorer.py | 1 | 10760 | from abc import ABCMeta, abstractmethod
import colorama
import random
import json
from eventlet.greenthread import sleep
from eventlet.timeout import Timeout
from eventlet.queue import *
import six
import time
from .. import LOG as _LOG
from ..signal.signal import EventBase, ActionBase
from .digestible import Digesti... | apache-2.0 | -7,532,178,620,348,961,000 | 37.705036 | 137 | 0.598978 | false |
nickmarton/Vivid | vivid/classes/parsers/point_parser.py | 1 | 2439 | """This section introduces the PointParser class."""
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from point import Point
class PointParser(object):
"""
PointParser class. The PointParser class is used for parsing Point object
related expressions.
... | mit | 2,184,414,222,683,700,700 | 29.111111 | 79 | 0.568676 | false |
meyerbe/pycles | generate_namelist.py | 1 | 70404 | import argparse
import json
import pprint
from sys import exit
import uuid
import ast
def main():
parser = argparse.ArgumentParser(prog='Namelist Generator')
parser.add_argument('case_name')
# Optional Arguments for CGILS
parser.add_argument('--perturbed_temperature', default='False',
... | gpl-3.0 | -4,516,272,211,340,390,400 | 32.287943 | 167 | 0.590066 | false |
capitalone/cloud-custodian | c7n/resources/sagemaker.py | 1 | 23243 | # Copyright 2016-2017 Capital One Services, LLC
# Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
from c7n.actions import BaseAction
from c7n.exceptions import PolicyValidationError
from c7n.manager import resources
from c7n.query import QueryResourceManager, TypeInfo
from c7n.utils import... | apache-2.0 | 4,352,266,930,033,509,000 | 30.451962 | 85 | 0.584907 | false |
jvs/stride | stride/grammar.py | 1 | 12650 | from sourcer import *
__all__ = [
'Collection',
'CommandHandler',
'Contract',
'Data',
'Definition',
'Dollar',
'For',
'Func',
'If',
'Import',
'Introduction',
'KeyValuePair',
'ModifiedStatement',
'Name',
'NamedElement',
'Namespace',
'Operation',
'P... | mit | -8,854,931,243,257,825,000 | 22.958333 | 77 | 0.580158 | false |
msduketown/SublimeKodi | libs/polib/polib.py | 1 | 61741 | # -* coding: utf-8 -*-
#
# License: MIT (see LICENSE file provided)
# vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
"""
**polib** allows you to manipulate, create, modify gettext files (pot, po and
mo files). You can load existing files, iterate through it's entries, add,
modify entries, comments or metada... | gpl-3.0 | -7,919,191,279,515,197,000 | 32.830685 | 79 | 0.524076 | false |
google-research/language | language/boolq/utils/ops_test.py | 1 | 2375 | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | apache-2.0 | -7,743,939,903,547,159,000 | 33.318841 | 78 | 0.650338 | false |
yephper/django | django/db/models/sql/datastructures.py | 1 | 5769 | """
Useful auxiliary data structures for query construction. Not useful outside
the SQL domain.
"""
from django.db.models.sql.constants import INNER, LOUTER
class EmptyResultSet(Exception):
pass
class MultiJoin(Exception):
"""
Used by join construction code to indicate the point at which a
... | bsd-3-clause | 3,852,059,462,190,992,400 | 36.46 | 98 | 0.596637 | false |
Zephrys/monica | monica/monica.py | 1 | 8780 | r"""
monica is a command line chef that brings you tasty food
Usage:
monica surprise
monica restaurant <restaurant-id>
monica search [QUERY ...]
monica reviews <restaurant-id>
monica budget <budget>
monica cuisine (<cuisine-id>| list)
monica configure
monica (-h |--help)
monica
Options:
-h --help ... | mit | -6,934,554,040,084,423,000 | 34.695122 | 220 | 0.609795 | false |
netvl/contrib-python-qubell-client | qubell/api/private/environment.py | 1 | 9095 | # Copyright (c) 2013 Qubell Inc., http://qubell.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | apache-2.0 | 8,695,219,347,984,874,000 | 37.538136 | 130 | 0.624739 | false |
tsheets/api_python | tsheets/model.py | 1 | 5132 | import pytz
from . import helpers
import dateutil.parser
from datetime import datetime, date
class Model(object):
_accessors = {}
_default_type = "anything"
def __init__(self, **kwargs):
self._dynamic_accessors = []
if kwargs:
self.__class__.mass_assign(self, kwargs)
@clas... | mit | 2,925,916,794,490,887,000 | 29.366864 | 99 | 0.521239 | false |
rupakc/Kaggle-Compendium | Santas Stolen Sleigh/SantaUtil.py | 1 | 6924 | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 13 23:21:29 2016
Defines a set of utility functions to be used for prediction
@author: Rupak Chakraborty
"""
import math
from trip import Trip
from gift import Gift
import random
import time
import pandas as pd
import operator
RADIUS_EARTH = 6773
NORTH_POLE_LAT = 90
NOR... | mit | 4,864,461,835,213,508,000 | 24.09058 | 139 | 0.677643 | false |
michhar/ms-pythonbot | msbot/__init__.py | 1 | 1583 | """
The flask application package.
"""
#####################################################################
# Create the Flask app
#####################################################################
from flask import Flask
from .callback_utils import Callbacks
import os
from flask_pyoidc.flask_pyoidc import OIDCA... | mit | -4,044,530,430,755,034,000 | 29.442308 | 109 | 0.561592 | false |
DataONEorg/d1_python | lib_common/src/d1_common/system_metadata.py | 1 | 14840 | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | apache-2.0 | 5,772,235,243,419,589,000 | 31.121212 | 88 | 0.674124 | false |
rhiever/MarkovNetwork | MarkovNetwork/MarkovNetwork.py | 1 | 10471 | # -*- coding: utf-8 -*-
"""
Copyright 2016 Randal S. Olson
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... | mit | 3,013,961,939,012,819,500 | 44.724891 | 163 | 0.615892 | false |
huggingface/transformers | src/transformers/models/deberta_v2/modeling_deberta_v2.py | 1 | 61698 | # coding=utf-8
# Copyright 2020 Microsoft and the Hugging Face Inc. team.
#
# 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 require... | apache-2.0 | 7,409,934,508,913,914,000 | 39.564103 | 128 | 0.620604 | false |
googleapis/python-compute | tests/unit/gapic/compute_v1/test_reservations.py | 1 | 72826 | # -*- 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 | -2,268,545,840,816,535,800 | 38.882804 | 111 | 0.654615 | false |
wangxiaomo/rivercrab | setup.py | 1 | 1426 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from distutils.core import setup
VERSION = '0.8'
LONG_DESCRIPTION = open('README.rst').read()
INSTALL_REQUIRES = [
'beautifulsoup4',
]
PY_MAJOR, PY_MINOR = sys.version_info[:2]
if (PY_MAJOR, PY_MINOR) == (2, 6):
INSTALL_REQUIRES.append('argparse')... | bsd-3-clause | -344,059,370,627,083,260 | 29.340426 | 73 | 0.607994 | false |
crawfordsm/pyspectrograph | PySpectrograph/Utilities/makeplots.py | 1 | 1688 | #
# MAKEPLOTS--A library for making plots for demaniacs
#
#
#
from pylab import *
import numpy
def plotframe(data):
"""Plot the entire data array
returns a figure
"""
nimg = 10
ywidth = 0.08
xlen = len(data[0]) / nimg
for i in range(nimg):
yax = 0.90 - ywidth * 1.1 * i
... | bsd-3-clause | -7,940,486,904,649,295,000 | 22.774648 | 79 | 0.507109 | false |
shuangshuangwang/spark | python/pyspark/sql/tests/test_pandas_udf.py | 1 | 10216 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | -3,917,267,020,206,477,000 | 39.701195 | 97 | 0.625979 | false |
robert-giaquinto/text-analysis | src/topic_model/build_cdtm_data.py | 1 | 2688 | from __future__ import division, print_function, absolute_import
import os
import argparse
def day_counts(keys_file, rounding_days=None):
"""
keys_file: input file with float of date (normalized so first
journals begin at zero) in the 4th column.
rounding_days: number of days to round the d... | mit | 6,814,561,433,682,251,000 | 36.859155 | 146 | 0.59747 | false |
PhloxAR/phloxar | PhloxAR/dc1394/mode.py | 1 | 12891 | # -*- coding: utf-8 -*-
from __future__ import division, print_function
from __future__ import absolute_import, unicode_literals
from .core import *
from ctypes import c_int32, c_uint32, c_uint64, c_float, byref, pointer
__all__ = [
'Mode', 'Format7', 'mode_map'
]
class Mode(object):
"""
Video mode fo... | apache-2.0 | -2,508,890,066,847,390,700 | 29.839713 | 80 | 0.551082 | false |
bdestombe/flopy-1 | flopy/utils/mflistfile.py | 1 | 25207 | """
This is a set of classes for reading budget information out of MODFLOW-style
listing files. Cumulative and incremental budgets are returned as numpy
recarrays, which can then be easily plotted.
"""
import collections
import os
import re
import sys
from datetime import timedelta
import numpy as np
from ..utils.u... | bsd-3-clause | 148,176,429,000,663,900 | 30.907595 | 101 | 0.509105 | false |
ericdill/travis-little-helper | template.py | 1 | 3049 | from argparse import ArgumentParser
import yaml
from jinja2 import Environment, FileSystemLoader
import os
TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'travis-template')
def main():
p = ArgumentParser()
p.add_argument(
"-tc", "--travis-config",
help="The yaml file specifying the c... | gpl-3.0 | -5,244,402,429,933,902,000 | 32.505495 | 115 | 0.620859 | false |
glaubitz/fs-uae-debian | launcher/amitools/fs/validate/DirScan.py | 1 | 6950 | from __future__ import absolute_import
from __future__ import print_function
from .BlockScan import BlockScan
from amitools.fs.FSString import FSString
from amitools.fs.FileName import FileName
from amitools.fs.validate.Log import Log
import amitools.fs.DosType as DosType
class DirChainEntry:
"""entry of the hash c... | gpl-2.0 | -242,199,672,101,419,070 | 28.324895 | 147 | 0.602734 | false |
zjurelinac/Linker | utils.py | 1 | 2492 | """Module containing utility functions"""
import base64
import hashlib
import random
import re
import string
from datetime import datetime
from math import *
def hashfunc( str ):
"""Returns a hash value of a given string
Takes a string and returns its SHA512 hash value, encoded in base64
"""
... | mit | 6,123,698,279,064,488,000 | 28.666667 | 103 | 0.567014 | false |
hirokiky/django-webcommands | webcommands/forms.py | 1 | 1779 | from django import forms
from django.utils import six
from webcommands import utils as webcommands_utils
def field_for_option(option):
if option.type == 'string':
field = forms.CharField(label=str(option), max_length='255')
elif option.type == 'int':
field = forms.IntegerField(label=str(optio... | mit | 8,279,747,194,203,811,000 | 30.767857 | 79 | 0.641372 | false |
ksurct/MercuryRoboticsEmbedded2016 | ksurobot/hardware/_wiringpi.py | 1 | 1766 | from ctypes import cdll, c_int, CFUNCTYPE, POINTER, pointer, c_ubyte
from enum import Enum, IntEnum
from ..util import get_config
from .utils import Wrapper
libwiringpi = Wrapper('/usr/local/lib/libwiringPi.so.2.32')
wiringPiISR_cb = CFUNCTYPE(None)
wiringPiPiSPIDataRW_data = POINTER(c_ubyte)
class PinModes(IntE... | apache-2.0 | 712,612,528,227,094,300 | 15.819048 | 68 | 0.671574 | false |
vanzhiganov/jftpgw | support/cachepurgy.py | 1 | 2239 | #!/usr/bin/env python
#
# cachepurgy - script to reduce the size of a jftpgw cache
#
# (C) 2001 Julian Einwag <julian@brightstar.swin.de>
#
from sys import *
from os import *
from string import *
from stat import *
from time import *
maxsize = 40*1024*1024
cachedir = "/tmp/cache"
# This class stores the informati... | gpl-2.0 | -3,612,532,231,312,575,000 | 20.528846 | 77 | 0.562305 | false |
teeheee/RobocupSoccerSimulator | robotsimul.py | 1 | 5679 | #!/usr/bin/env python3
from game import *
from debugger import Debugger
from logSaver import Logger
from gameconfig import gc
from popup_menu import *
import sys
import time
#TODO more comments
#TODO clean up this mess
class App:
def __init__(self):
# flag for shutdown of the simulation
self._run... | gpl-3.0 | 7,155,189,578,462,399,000 | 32.803571 | 117 | 0.534777 | false |
mikkokeskinen/tunnistamo | oidc_apis/models.py | 1 | 6847 | from django.core.exceptions import ValidationError
from django.core.validators import RegexValidator
from django.db import models
from django.utils.crypto import get_random_string
from django.utils.translation import ugettext_lazy as _
from multiselectfield import MultiSelectField
from oidc_provider.models import Clien... | mit | 4,226,253,380,893,948,400 | 32.89604 | 79 | 0.621732 | false |
UltrosBot/Ultros-repos | control/system/manager.py | 1 | 2416 | __author__ = 'Gareth'
import os
from twisted.internet import reactor
import yaml
# import control.system.servers as servers
import control.system.ssl as ssl
from control.utils.log import getLogger
from control.system.singleton import Singleton
CONF_DIR = "control/config/"
DATA_DIR = "control/data/"
LOGS_DIR = "con... | artistic-2.0 | -2,818,796,045,469,644,300 | 28.108434 | 75 | 0.563742 | false |
PeteE/roro | python/driver.py | 1 | 2957 | import time
import signal
import sys
import smbus
import robot_data_pb2
from oled_display import OledDisplay
class RobotDriver:
SERVO_STOP = 90
def __init__(self, i2c_address=0x04, i2c_bus=1, oled_display=None):
self.i2c_address = i2c_address
self.i2c_bus = smbus.SMBus(i2c_bus)
self.ol... | bsd-3-clause | 8,227,827,704,568,035,000 | 32.602273 | 94 | 0.554616 | false |
expyriment/expyriment | expyriment/io/_mouse.py | 1 | 25968 | """
Mouse input.
This module contains a class implementing pygame mouse input.
"""
__author__ = 'Florian Krause <florian@expyriment.org>, \
Oliver Lindemann <oliver@expyriment.org>'
__version__ = ''
__revision__ = ''
__date__ = ''
from types import FunctionType
import pygame
from . import defaults
from ..misc._t... | gpl-3.0 | -3,320,490,465,013,967,400 | 33.123522 | 104 | 0.558611 | false |
Factr/newspaper | tests/unit_tests.py | 1 | 24005 | # -*- coding: utf-8 -*-
"""
All unit tests for the newspaper library should be contained in this file.
"""
import sys
import os
import unittest
import time
import traceback
from collections import defaultdict, OrderedDict
import concurrent.futures
TEST_DIR = os.path.abspath(os.path.dirname(__file__))
PARENT_DIR = os.p... | mit | -8,295,913,205,737,813,000 | 38.283142 | 190 | 0.603158 | false |
dansbecker/what-celebrity | data_grabbers.py | 1 | 4607 | import concurrent.futures
import indicoio
import json
import os
import socket
import urllib.request
from os.path import join, exists
from PIL import Image, ImageDraw
class Grabber(object):
def __enter__(self):
try:
with open(self._captured_data_path, 'r') as f:
self.captured_da... | mit | -6,785,651,822,177,585,000 | 38.042373 | 96 | 0.572173 | false |
ashutosh-mishra/youtube-dl | youtube_dl/extractor/spiegel.py | 1 | 2462 | import re
import xml.etree.ElementTree
from .common import InfoExtractor
class SpiegelIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?spiegel\.de/video/[^/]*-(?P<videoID>[0-9]+)(?:\.html)?(?:#.*)?$'
_TESTS = [{
u'url': u'http://www.spiegel.de/video/vulkan-tungurahua-in-ecuador-ist-wieder-aktiv-v... | unlicense | -2,908,200,738,147,478,000 | 36.30303 | 112 | 0.542242 | false |
abramhindle/UnnaturalCodeFork | python/testdata/launchpad/lib/lp/registry/tests/test_distroseriesparent.py | 1 | 9245 | # Copyright 2011 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Tests for DistroSeriesParent model class."""
__metaclass__ = type
from testtools.matchers import MatchesStructure
from zope.component import getUtility
from zope.interface.ver... | agpl-3.0 | -6,653,642,816,786,933,000 | 38.008439 | 77 | 0.630611 | false |
hyperized/ansible | lib/ansible/modules/net_tools/basics/uri.py | 1 | 25199 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2013, Romeo Theriault <romeot () hawaii.edu>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_ver... | gpl-3.0 | -2,665,481,652,045,576,700 | 34.692635 | 129 | 0.620183 | false |
memeticlabs/mongokit | listembed-test.py | 1 | 4479 | try:
import unittest2 as unittest
except ImportError:
import unittest
from mongokit import Document, Connection
class DescriptorsTestCase(unittest.TestCase):
def setUp(self):
self.connection = Connection()
self.col = self.connection['test']['mongokit']
def tearDown(self):
... | bsd-3-clause | -1,479,203,696,639,042,800 | 22.698413 | 73 | 0.385577 | false |
TheWardoctor/Wardoctors-repo | script.module.uncoded/lib/resources/lib/modules/sources.py | 1 | 56371 | # -*- coding: utf-8 -*-
'''
Covenant Add-on
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.
This prog... | apache-2.0 | 7,397,716,890,154,723,000 | 46.370588 | 499 | 0.509021 | false |
vgrem/Office365-REST-Python-Client | office365/runtime/queries/client_query.py | 1 | 1772 | class ClientQuery(object):
"""Client query"""
def __init__(self, context, binding_type=None, parameter_type=None, parameter_name=None, return_type=None):
"""
Base query
:type context: office365.runtime.client_runtime_context.ClientRuntimeContext
:type binding_type: office365.ru... | mit | -7,357,655,738,722,110,000 | 30.642857 | 120 | 0.649549 | false |
mago1chi/cTPR | parse_proc.py | 1 | 3278 | import os
import re
import cTPR
class Parser():
def __init__(self, fileName="tweet.txt"):
self.fileName = fileName
self.parsed_list = []
self.count_dic = {}
self.raw_list = []
def parse(self, tweet):
self.parsed_list = []
self.count_dic = {}
self.raw_list = []
filtered_tweet... | gpl-2.0 | 7,673,179,145,309,621,000 | 24.033333 | 85 | 0.494008 | false |
fedora-infra/fmn | fmn/fasjson_client.py | 1 | 2072 | import logging
import requests
import requests.exceptions
from gssapi import Credentials, exceptions
from requests.compat import urlencode, urljoin
from requests_gssapi import HTTPSPNEGOAuth
log = logging.getLogger(__name__)
class Client(object):
"""
A fasjson client to make very specific requests to fasjs... | lgpl-2.1 | 297,541,774,851,337,700 | 31.888889 | 74 | 0.6139 | false |
dorianamouroux/snak | snak/commands/init.py | 1 | 1780 | import os
from collections import namedtuple
import click
from ..config import GlobalConfig
_, current_folder = os.path.split(os.getcwd())
UserInput = namedtuple('UserInput', ['name', 'version', 'author', 'description'])
class Init(object):
def __init__(self, filename=None):
self.config = GlobalConfi... | mit | 2,407,176,973,942,881,000 | 34.6 | 81 | 0.594944 | false |
blorgon9000/pyopus | demo/optimizer/de.py | 1 | 1232 | # Optimize SchwefelA function with differential evolution
# Collect cost function and plot progress
from pyopus.optimizer.de import DifferentialEvolution
from pyopus.problems import glbc
from pyopus.optimizer.base import Reporter, CostCollector, RandomDelay
import pyopus.wxmplplot as pyopl
from numpy import array, zer... | gpl-3.0 | -972,430,029,362,716,300 | 22.245283 | 70 | 0.729708 | false |
cwilhelm/django-teams | teams/admin.py | 1 | 5240 | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from models import *
class PersonAttributeInline(admin.TabularInline):
model = PersonAttribute
list_display = ('email', 'birthdate', 'height', 'weight')
class PlayerInline(admin.TabularInline):
model = Player
e... | bsd-3-clause | 5,131,194,923,734,271,000 | 28.772727 | 74 | 0.627481 | false |
elimence/edx-platform | common/lib/capa/capa/util.py | 1 | 3147 | from calc import evaluator, UndefinedVariable
from cmath import isinf
#-----------------------------------------------------------------------------
#
# Utility functions used in CAPA responsetypes
def compare_with_tolerance(v1, v2, tol):
''' Compare v1 to v2 with maximum tolerance tol
tol is relative if it ... | agpl-3.0 | 1,461,137,611,740,416,500 | 30.787879 | 78 | 0.597394 | false |
cysuncn/python | spark/crm/PROC_O_CEN_CBOD_REACCACC.py | 1 | 8459 | #coding=UTF-8
from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext
from pyspark.sql.types import *
from datetime import date, datetime, timedelta
import sys, re, os
st = datetime.now()
conf = SparkConf().setAppName('PROC_O_CEN_CBOD_REACCACC').setMaster(sys.argv[2])
sc = SparkContext(conf = conf)
s... | gpl-3.0 | 3,693,343,431,423,341,600 | 53.503401 | 193 | 0.486831 | false |
stevelle/glance | glance/common/exception.py | 1 | 17727 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | apache-2.0 | 6,056,371,063,913,521,000 | 30.430851 | 79 | 0.677328 | false |
calebtrahan/KujiIn_Python | backup/guitemplates/setgoaldialog.py | 1 | 5432 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'setgoaldialog.ui'
#
# Created: Tue Dec 23 18:15:13 2014
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except ... | mit | -2,910,544,525,462,350,300 | 60.033708 | 136 | 0.760677 | false |
preprocessed-connectomes-project/quality-assessment-protocol | scripts/qap_check_output_csv.py | 1 | 1302 | #!/usr/bin/env python
def main():
import os
import argparse
from qap.script_utils import check_csv_missing_subs, csv_to_pandas_df, \
write_inputs_dict_to_yaml_file, read_yml_file
from qap.qap_utils import raise_smart_exception
parser = argparse.ArgumentParser()
parser.add_argument("o... | bsd-3-clause | 6,100,006,291,971,816,000 | 34.216216 | 76 | 0.596006 | false |
euklyd/PenguinBot3K | core/Webhook.py | 1 | 3305 | """
Class Name : Webhook
Description:
Contributors:
- Patrick Hennessy
License:
Arcbot is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License v3; as published
by the Free Software Foundation
@webhook... | gpl-3.0 | -4,199,915,346,113,456,600 | 25.653226 | 103 | 0.508926 | false |
epssy/hue | apps/beeswax/src/beeswax/server/hive_server2_lib.py | 1 | 34891 | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | apache-2.0 | -8,079,258,786,321,912,000 | 34.350557 | 158 | 0.680749 | false |
qstokkink/py-ipv8 | ipv8/keyvault/keys.py | 1 | 1041 | import abc
from hashlib import sha1
class Key(metaclass=abc.ABCMeta):
"""
Interface for a public or private key.
"""
@abc.abstractmethod
def pub(self):
pass
@abc.abstractmethod
def has_secret_key(self):
pass
@abc.abstractmethod
def key_to_bin(self):
pass
... | lgpl-3.0 | 2,042,628,768,410,937,900 | 16.948276 | 57 | 0.592699 | false |
jonge-democraten/zues | appolo/models.py | 1 | 1227 | from django.db import models
class Locatie(models.Model):
def __str__(self):
return self.naam
naam = models.CharField(max_length=200)
lat = models.FloatField()
long = models.FloatField()
class Meta:
verbose_name_plural = 'locaties'
class Dag(models.Model):
def __str__(self):
... | mit | 6,851,658,738,776,405,000 | 24.5625 | 66 | 0.647922 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.