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 |
|---|---|---|---|---|---|---|---|---|---|---|
asgard-lab/neutron | neutron/tests/common/net_helpers.py | 1 | 20604 | # Copyright (c) 2015 Thales Services SAS
#
# 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 l... | apache-2.0 | 8,187,027,046,645,545,000 | 32.557003 | 79 | 0.624733 | false |
aerkalov/booktype-scrolls | scripts/replace/replace_in_chapter.py | 1 | 2053 | #!/usr/bin/env python
# This file is part of booktype-scrolls.
# Copyright (c) 2012 Aleksandar Erkalovic <aleksandar.erkalovic@sourcefabric.org>
#
# Booktype is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundati... | agpl-3.0 | 7,463,137,194,421,476,000 | 34.396552 | 116 | 0.6868 | false |
faturita/ShinkeyBot | NeoCortex/PILServer.py | 1 | 1155 | import io
import socket
import struct
from PIL import Image
# Start a socket listening for connections on 0.0.0.0:8000 (0.0.0.0 means
# all interfaces)
server_socket = socket.socket()
server_socket.bind(('0.0.0.0', 8000))
server_socket.listen(0)
# Accept a single connection and make a file-like object out of it
conne... | mit | 2,706,392,689,272,737,300 | 32 | 82 | 0.648485 | false |
IljaKosynkin/ResourcesManager | ResourceManager/scripts/MappingParser.py | 1 | 3815 | import re
classes_reg = re.compile(r'(.+?)(<?->)(.+)')
variable_reg = re.compile(r'(.+?)(,.+?)?(<?->)([^,]+)(,.+)?')
class_reg = re.compile(r'(class|struct)([^:{]+?)(:[^{]+?){([^}]+?)}', re.DOTALL)
class_var_reg = re.compile(r'(let|var)([^:=]+?)(:[^=]+)(=.+?)?')
class Direction:
ONE_WAY = 0
TWO_WAY = 1
... | apache-2.0 | -6,775,840,383,661,861,000 | 32.173913 | 107 | 0.473132 | false |
jeffcharles/Open-Source-at-Laurier-Website | wluopensource/osl_comments/moderation.py | 1 | 1725 | from django.contrib import comments
from django.contrib.comments.moderation import CommentModerator, Moderator
from django.core.exceptions import ObjectDoesNotExist
from osl_comments import signals
from osl_comments.models import CommentsBannedFromIpAddress
class OslCommentModerator(CommentModerator):
email_notif... | bsd-3-clause | -8,850,779,001,417,020,000 | 34.204082 | 76 | 0.636522 | false |
MayankGo/ec2-api | ec2api/api/common.py | 1 | 14867 | # Copyright 2014
# The Cloudscaling Group, 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... | apache-2.0 | -8,390,567,758,202,169,000 | 31.389978 | 77 | 0.552499 | false |
bretttegart/treadmill | tests/services/network_service_test.py | 1 | 25230 | """Unit test for network_service - Treadmill Network configuration service.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import shutil
import tempfile
import unittest
# Disable W0611: Unused import
i... | apache-2.0 | -3,160,640,449,361,704,000 | 35.724891 | 79 | 0.548553 | false |
anderspetersson/django-bigbrother | bigbrother/graphs.py | 1 | 1117 | from bigbrother.core import get_module_by_slug
from bigbrother.models import ModuleStat
from django.db.models import Avg
from datetime import datetime, timedelta
import qsstats
class Graph():
stopdate = datetime.utcnow()
showpoints = False
def get_graph_data(self, slug, *args, **kwargs):
module =... | mit | 7,771,129,545,592,402,000 | 24.386364 | 95 | 0.683975 | false |
openstack/python-designateclient | designateclient/tests/test_utils.py | 1 | 2478 | # Copyright (c) 2015 Thales Services SAS
# 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 i... | apache-2.0 | -5,595,013,377,408,899,000 | 38.967742 | 76 | 0.679984 | false |
mugwizaleon/PCRasterMapstacks | pcrastermapstackvisualisation.py | 1 | 17920 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
PcrasterMapstackVisualisation
A QGIS plugin
PCRaster Mapstack visualisation
-------------------
begin : 2014-06-28
copy... | apache-2.0 | 5,158,709,821,810,723,000 | 43.246914 | 161 | 0.577846 | false |
voussoir/praw | praw/const.py | 1 | 10141 | """praw constants."""
import sys
__version__ = '5.2.1.dev0'
API_PATH = {
'about_edited': 'r/{subreddit}/about/edited/',
'about_log': 'r/{subreddit}/about/log/',
'about_modqueue': 'r/{subreddit}/about/modqueue/',
'about_reports': 'r/{subreddit}/about/reports/',
... | gpl-3.0 | 817,781,505,002,545,500 | 52.094241 | 78 | 0.535056 | false |
memsharded/conan | conans/test/unittests/client/tools/test_env.py | 1 | 2363 | # coding=utf-8
import os
import unittest
import mock
from conans.client.tools import env
class ToolsEnvTest(unittest.TestCase):
def test_environment_append_variables(self):
with mock.patch.dict('os.environ', {}),\
env.environment_append({'env_var1': 'value',
... | mit | 7,601,498,159,542,059,000 | 42.759259 | 78 | 0.550148 | false |
ruzette/project-euler-solutions | old/src/pythagoras.py | 1 | 1204 | '''
Project Euler Problem 9
A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
a**2 + b**2 = c**2
For example, 3**2 + 4**2 = 9 + 16 = 25 = 5**2.
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product abc.
Link : https://projecteuler.net/problem=... | gpl-2.0 | -2,547,885,850,957,645,000 | 15.736111 | 78 | 0.601329 | false |
dangoldin/bots | database.py | 1 | 1126 | #!/usr/bin/python
import sqlite3
class Database:
def __init__(self):
self.connect()
def connect(self):
self.conn = sqlite3.connect('lifebot.db')
def get_cursor(self):
# A bit weird for now but trying to figure out SQLite
try:
return self.conn.cursor()
... | mit | 1,900,277,455,134,007,600 | 23.478261 | 61 | 0.53286 | false |
dmkent/cattrack | cattrack/settings.py | 1 | 4095 | """
Django settings for cattrack project.
Generated by 'django-admin startproject' using Django 1.9.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import date... | mit | 7,996,530,891,419,315,000 | 25.771242 | 91 | 0.691087 | false |
sashs/Ropper | ropper/ropchain/arch/ropchainx86.py | 1 | 45777 | # coding=utf-8
# Copyright 2018 Sascha Schirra
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following di... | bsd-3-clause | -8,215,692,454,169,640,000 | 39.049869 | 220 | 0.565306 | false |
christian-oudard/htmltreediff | setup.py | 1 | 1156 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages, Command
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages, Command
long_description = codecs.open("README.rst", "r", "utf-8... | bsd-3-clause | -528,279,789,836,163,200 | 28.641026 | 66 | 0.635813 | false |
gem/oq-hazardlib | openquake/hazardlib/source/multi.py | 1 | 4887 | # The Hazard Library
# Copyright (C) 2012-2017 GEM Foundation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#... | agpl-3.0 | 5,867,925,651,573,469,000 | 41.868421 | 80 | 0.646 | false |
kaktus018/ca_wizard_mechanical | cawm_classes.py | 1 | 55264 |
# ca_wizard_mechanical, version 0.2
# Allows the generation of comm-files for simple 3D structural analyses in code_aster with an interactive GUI
#
# This work is licensed under the terms and conditions of the GNU General Public License version 3
# Copyright (C) 2017 Dominik Lechleitner
# Contact: kakt... | gpl-3.0 | -3,151,520,238,515,623,000 | 54.564995 | 209 | 0.562518 | false |
RedHatSatellite/sat6_disconnected_tools | check_sync.py | 1 | 5114 | #!/usr/bin/python
#title :check_sync.py
#description :Checks Satellite 6 repository sync status
#URL :https://github.com/RedHatSatellite/sat6_disconnected_tools
#author :Geoff Gatward <ggatward@redhat.com>
#notes :This script is NOT SUPPORTED by Red Hat Global Support Servic... | gpl-3.0 | -8,045,071,100,679,079,000 | 37.742424 | 107 | 0.58291 | false |
crazyskateface/LC | chat/migrations/0002_auto__add_field_comments_datetime.py | 1 | 4344 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Comments.datetime'
db.add_column(u'chat_comments', 'datet... | mit | 3,995,369,740,722,434,000 | 62.897059 | 195 | 0.560543 | false |
vdhan/focus-booster | __main__.py | 1 | 7987 | import os
from threading import Thread
from tkinter import *
from tkinter.ttk import *
from pydub import AudioSegment
from pydub.playback import play
class Core(Tk):
def get_w(self):
return self._w
class Application(Frame):
def __init__(self, master=None, **kw):
super().__init__(master, **k... | gpl-3.0 | -8,524,070,519,878,400,000 | 36.148837 | 113 | 0.546012 | false |
ooici/coi-services | ion/agents/data/test/test_external_dataset_agent_slocum.py | 1 | 19351 | #!/usr/bin/env python
"""
@package ion.agents.data.test.test_external_dataset_agent_slocum
@file ion/agents/data/test/test_external_dataset_agent_slocum.py
@author Christopher Mueller
@brief
"""
# Import pyon first for monkey patching.
from pyon.public import log, IonObject
from pyon.ion.resource import PRED, RT
from... | bsd-2-clause | 5,953,084,962,029,230,000 | 44.424883 | 259 | 0.654591 | false |
testvidya11/ejrf | questionnaire/views/questions.py | 1 | 2642 | from django.contrib import messages
from django.core.urlresolvers import reverse, reverse_lazy
from django.http import HttpResponseRedirect
from django.views.generic import ListView, CreateView, DeleteView
from questionnaire.forms.questions import QuestionForm
from questionnaire.models import Question, Questionnaire
... | bsd-3-clause | -4,488,295,597,814,953,000 | 40.296875 | 120 | 0.681681 | false |
stephan-hof/pyrocksdb | setup.py | 1 | 1112 | from setuptools import setup
from setuptools import find_packages
from distutils.extension import Extension
try:
from Cython.Build import cythonize
except ImportError:
def cythonize(extensions): return extensions
sources = ['rocksdb/_rocksdb.cpp']
else:
sources = ['rocksdb/_rocksdb.pyx']
mod1 = Extens... | bsd-3-clause | -5,846,450,579,172,682,000 | 22.166667 | 51 | 0.61241 | false |
coblo/pyiscclib | src/iscclib/base.py | 1 | 6592 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from future.builtins import int, object
import re
import six
import unicodedata
import random
from abc import ABCMeta
from bitstring import BitArray
class Component(object):
"""Base class for all ISCC identifier components"""... | bsd-2-clause | -1,785,738,772,418,968,800 | 29.09589 | 101 | 0.565468 | false |
rosshamish/classtime | classtime/brain/local_db/stdlocaldb.py | 1 | 4950 |
from classtime.logging import logging
logging = logging.getLogger(__name__) #pylint: disable=C0103
from classtime.core import db
from classtime.models import Term, Schedule, Course, Section
class StandardLocalDatabase(object):
"""A single institution's view of the local database
Uses a stack-based accessor ... | mit | 7,401,892,997,875,430,000 | 30.132075 | 93 | 0.599596 | false |
umlfri/umlfri2 | umlfri2/application/tablist.py | 1 | 4454 | from umlfri2.application.events.solution import CloseSolutionEvent
from .events.model import DiagramDeletedEvent
from .events.tabs import OpenTabEvent, ChangedCurrentTabEvent, ClosedTabEvent
from .tab import Tab
class TabList:
def __init__(self, application):
self.__tabs = []
self.__application = ... | gpl-3.0 | -7,465,691,265,426,691,000 | 34.632 | 100 | 0.584868 | false |
Loodoor/UrWorld-Alpha-3.x | src/compressor.py | 1 | 2667 | import pickle
import re
from itertools import groupby
class RLECompress:
def __init__(self, file):
self.file = file
def verifier(self, objet):
if isinstance(objet, list):
return all(map(lambda elt: isinstance(elt, list), objet))
return False
def dump(self, objet):
... | gpl-2.0 | 1,628,458,951,564,252,000 | 24.409524 | 69 | 0.468691 | false |
agx/libvirt-sandbox-debian | libvirt-sandbox/image/cli.py | 1 | 9075 | #!/usr/bin/python -Es
# -*- coding: utf-8 -*-
# Authors: Daniel P. Berrange <berrange@redhat.com>
# Eren Yagdiran <erenyagdiran@gmail.com>
#
# Copyright (C) 2013-2015 Red Hat, Inc.
# Copyright (C) 2015 Universitat Politècnica de Catalunya.
#
# This program is free software; you can redistribute it and/or modif... | lgpl-2.1 | -2,818,622,284,454,972,400 | 31.407143 | 91 | 0.60778 | false |
Tesora-Release/tesora-trove | trove/guestagent/strategies/backup/couchdb_impl.py | 1 | 1340 | # Copyright 2016 IBM Corporation
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | apache-2.0 | -4,412,938,115,005,385,700 | 37.285714 | 78 | 0.700746 | false |
moreati/revelation | epiphany/test/test_opcode_factory.py | 1 | 12799 | from opcode_factory import *
import pytest
def test_arith32_immediate():
# 0bdddnnnxxiiiiiiiidddnnniii0011011 ADD
instr = 0b00000000010101010010000100011011
assert add32_immediate(rd=1, rn=0, imm=0b01010101010) == instr
# 0bdddnnnxxiiiiiiiidddnnniii0111011 SUB
instr = 0b000000000101010... | bsd-3-clause | -7,091,504,160,489,410,000 | 37.667674 | 87 | 0.703258 | false |
nilp0inter/data-is-fun | dataisfun/util/table_maker.py | 1 | 7772 | #!/usr/bin/env python
#
# Copyright (C) 2011 Roberto A. Martinez Perez
#
# This file is part of data-is-fun.
#
# data-is-fun 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 t... | gpl-3.0 | -6,467,875,412,102,633,000 | 37.098039 | 132 | 0.558929 | false |
joccing/geoguru | classes/country.py | 1 | 2531 |
"""
This is a system to query statistics for a country by approximate name match.
Author: Tay Joc Cing
Date: 10 Mar 2015
Version: 0.1
"""
class Country:
"""
This is a class to capture statistics for a country
>>> from country import Country
>>> c = Country("Singapore", {"Population":5000000, "Den... | mit | 2,255,561,135,565,796,900 | 26.51087 | 100 | 0.563809 | false |
conan-io/conan | conans/client/conf/config_installer.py | 1 | 12799 | import json
import os
import shutil
from datetime import datetime
from dateutil.tz import gettz
from contextlib import contextmanager
from six.moves.urllib.parse import urlparse
from conans import load
from conans.client import tools
from conans.client.cache.remote_registry import load_registry_txt, migrate_registry... | mit | -5,215,351,012,839,503,000 | 38.625387 | 100 | 0.624814 | false |
funkring/fdoo | addons-funkring/util_test/models/util_test.py | 1 | 2062 | # -*- coding: utf-8 -*-
#############################################################################
#
# Copyright (c) 2007 Martin Reisenhofer <martin.reisenhofer@funkring.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | agpl-3.0 | 4,483,677,288,401,826,000 | 35.821429 | 79 | 0.544132 | false |
ssuarez6/lyra | single_variable_eq/python/multiple_root.py | 1 | 1385 | from astropy.table import Table
import parser, decimal, plot
c = raw_input("Absolute(a) or Relative(r) error?\n>")
abs_error = False
if c is 'a':
abs_error = True
fn = raw_input("\nType the function:\n>f(x) = ")
fn_p = raw_input("\nType the differential of the function:\n>f'(x) = ")
fn_p_p = raw_input("\nType the ... | gpl-2.0 | 5,931,702,118,150,126,000 | 30.477273 | 88 | 0.597112 | false |
fedora-infra/python-fedora | fedora/urlutils.py | 1 | 3429 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2009 Red Hat, Inc.
# This file is part of python-fedora
#
# python-fedora is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, ... | lgpl-2.1 | -2,795,770,200,159,095,000 | 37.1 | 78 | 0.621172 | false |
redapple/js2xml | tests/test_syntax.py | 1 | 6887 | import js2xml
from nose.tools import *
def test_syntax():
jscode_snippets = [
# strings
r"""
"test";
""",
r"""
"test\
multiline";
""",
# numbers
"3.14;",
"-12;",
"3.45e2;",
"0377;",
"0xFF;"
#... | mit | 9,180,512,179,735,242,000 | 20.061162 | 85 | 0.311747 | false |
caleblogemann/MyProjects | TeX/texmf/tex/latex/sagetex/makestatic.py | 1 | 2565 | #!/usr/bin/env python
##
## This is file `makestatic.py',
## generated with the docstrip utility.
##
## The original source files were:
##
## scripts.dtx (with options: `staticscript')
##
## This is a generated file. It is part of the SageTeX package.
##
## Copyright (C) 2008--2015 by Dan Drake <dr.dan.drake@gmail.c... | mit | 6,655,804,548,877,355,000 | 31.0625 | 186 | 0.699025 | false |
suutari-ai/shoop | shuup_tests/core/test_shops.py | 3 | 2463 | # This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import parler.appsettings
import pytest
from filer.models import Folder, Image
from shuup... | agpl-3.0 | -3,876,223,293,625,839,000 | 29.407407 | 86 | 0.690621 | false |
myarjunar/inasafe | safe/utilities/keyword_io.py | 1 | 22390 | # coding=utf-8
"""Keyword IO implementation."""
import logging
from ast import literal_eval
from datetime import datetime
from PyQt4.QtCore import QObject
from PyQt4.QtCore import QUrl, QDateTime
from qgis.core import QgsMapLayer
from safe.definitions.utilities import definition
from safe import messaging as m
fro... | gpl-3.0 | 1,370,593,998,021,988,000 | 36.254576 | 79 | 0.525949 | false |
bellettif/MultimodePIF | PythonWksp/multiPIF/OSM/native/network_tools.py | 1 | 6544 | '''
Created on Jan 5, 2015
@author: Francois Belletti
'''
import numpy as np
from OSM.misc.geoTools import computeDist
#
# Need to change that distance
#
def l2_dist(node_1, node_2):
lat_1 = float(node_1.get('lat'))
lon_1 = float(node_1.get('lon'))
lat_2 = float(node_2.get('lat'))
lon_2 = float(n... | gpl-2.0 | -770,346,969,659,895,000 | 34.570652 | 92 | 0.541106 | false |
jvantuyl/exim_ses_transport | setup.py | 1 | 1915 | """
setuptools installer for exim_ses_transport
"""
# Copyright 2011, Jayson Vantuyl <jvantuyl@gmail.com>
#
# This file is part of exim_ses_transport.
#
# exim_ses_transport is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free S... | lgpl-3.0 | -5,263,435,409,964,474,000 | 39.744681 | 112 | 0.731593 | false |
leture/sorl-thumbnail | sorl/thumbnail/engines/convert_engine.py | 1 | 5931 | from __future__ import unicode_literals, with_statement
import re
import os
import subprocess
from django.utils.encoding import smart_str
from django.core.files.temp import NamedTemporaryFile
from sorl.thumbnail.base import EXTENSIONS
from sorl.thumbnail.compat import b
from sorl.thumbnail.conf import settings
from s... | bsd-3-clause | -3,817,632,963,750,182,000 | 33.684211 | 86 | 0.544933 | false |
ArthurChiao/code-snippets | python/command-line-chess/Piece.py | 1 | 1991 | from Coordinate import Coordinate as C
from Move import Move
WHITE = True
BLACK = False
X = 0
Y = 1
class Piece:
def __init__(self, board, side, position, movesMade=0):
self.board = board
self.side = side
self.position = position
self.movesMade = 0
def __str__(self):
... | mit | -7,932,084,885,449,304,000 | 32.745763 | 80 | 0.525866 | false |
jmchilton/lwr | lwr/managers/queued_cli.py | 1 | 2771 | """
LWR job manager that uses a CLI interface to a job queue (e.g. Torque's qsub,
qstat, etc...).
"""
from .base.external import ExternalBaseManager
from .util.external import parse_external_id
from .util.cli import CliInterface, split_params
from .util.job_script import job_script
from logging import getLogger
log =... | apache-2.0 | -5,064,412,559,986,054,000 | 44.42623 | 100 | 0.666546 | false |
Sakaki/pyniconico | nico_tools/nicovideo_dl.py | 1 | 8551 | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
from urllib import parse
import os
from nico_tools import nico_xml_parser
from nico_tools.nicowalker import NicoWalker
from nico_tools.mylist_items import GetMyListItems
from nico_tools.mylist import MyList
from progressbar import ProgressBar, Percentage, Bar, ETA
import s... | lgpl-3.0 | -3,729,398,876,914,949,600 | 38.790816 | 107 | 0.537505 | false |
manisandro/qgis-cloud-plugin | qgiscloud/resources_rc.py | 1 | 33300 | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x1c\x5f\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\xc8\x00\... | gpl-2.0 | 6,788,582,395,722,506,000 | 61.011173 | 96 | 0.726486 | false |
Pulgama/supriya | etc/pending_ugens/TGrains.py | 1 | 8796 | import collections
from supriya.enums import CalculationRate
from supriya.ugens.MultiOutUGen import MultiOutUGen
class TGrains(MultiOutUGen):
"""
::
>>> tgrains = supriya.ugens.TGrains.ar(
... amp=0.1,
... buffer_id=0,
... center_pos=0,
... channel_cou... | mit | 4,294,441,497,532,689,400 | 23.501393 | 64 | 0.403479 | false |
jimporter/bfg9000 | test/unit/platforms/test_target.py | 1 | 4657 | from unittest import mock
from .. import *
from bfg9000.platforms import platform_name, target, posix
class TestTargetPlatform(TestCase):
def setUp(self):
platform_name._reset()
def tearDown(self):
platform_name._reset()
def test_default(self):
with mock.patch('platform.system'... | bsd-3-clause | -5,918,077,175,898,990,000 | 42.523364 | 75 | 0.646768 | false |
adviti/melange | app/soc/views/helper/url.py | 1 | 1660 | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | apache-2.0 | 1,164,587,603,535,884,300 | 26.666667 | 74 | 0.672892 | false |
geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/net/data/verify_certificate_chain_unittest/generate-expired-target.py | 5 | 1324 | #!/usr/bin/python
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Certificate chain with 1 intermediate, where the target is expired (violates
validity.notAfter). Verification is expected to fail.""... | gpl-3.0 | 8,163,013,571,503,341,000 | 35.777778 | 79 | 0.747734 | false |
johnewart/django-ldap-wizard | django_ldap_wizard/views.py | 1 | 2059 | from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext, Template, Context, loader
from django.utils.safestring import mark_safe
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.conf import settings
from django.contrib.auth import auth... | bsd-3-clause | 2,899,133,696,738,876,000 | 34.5 | 135 | 0.626032 | false |
PauliusLabanauskis/AlgorithmsDataStructures | algo_pathfinding/main.py | 1 | 1083 | from graph_input import read_graph
def choose_node(reachable, explored):
for node in reachable:
if node not in explored:
return node
def find_path(start_node, goal_node, graph):
reachable = [start_node]
explored = set()
previous = {start_node: None}
while len(reachable) > 0:
... | unlicense | 4,045,211,619,959,959,000 | 28.297297 | 51 | 0.590951 | false |
lemonad/methodiki | methodiki/methods/forms.py | 1 | 1932 | # -*- coding: utf-8 -*-
from django.forms import ModelForm, TextInput
from django.utils.translation import ugettext_lazy as _
from markitup.widgets import MarkItUpWidget
from taggit.forms import TagWidget
from common.forms import ModelFormRequestUser
from models import Method, MethodBonus
class MethodForm(ModelFormR... | mit | 521,258,909,401,425,000 | 35.45283 | 74 | 0.552795 | false |
anthonyfok/frescobaldi | frescobaldi_app/gadgets/drag.py | 1 | 4442 | # This file is part of the Frescobaldi project, http://www.frescobaldi.org/
#
# Copyright (c) 2011 - 2014 by Wilbert Berendsen
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
... | gpl-2.0 | -7,891,103,354,302,992,000 | 34.253968 | 81 | 0.652634 | false |
milankl/swm | calc/misc/Re_hist_calc_bs_old.py | 1 | 4307 | ## HISTOGRAM COMPUTATIONS FOR REYNOLDS AND ROSSBY NUMBERS
from __future__ import print_function
# path
import os
path = '/home/mkloewer/python/swm/'
#path = os.path.dirname(os.getcwd()) + '/' # on level above
os.chdir(path) # change working directory
import time as tictoc
import numpy a... | gpl-3.0 | 5,122,311,992,360,908,000 | 27.523179 | 100 | 0.574878 | false |
Poofjunior/dxf2gcode | postpro/tspoptimisation.py | 1 | 16557 | # -*- coding: utf-8 -*-
############################################################################
#
# Copyright (C) 2008-2015
# Christian Kohlöffel
# Vinzenz Schulz
# Jean-Paul Schouwstra
#
# This file is part of DXF2GCODE.
#
# DXF2GCODE is free software: you can redistribute it and/or mod... | gpl-3.0 | 8,953,965,501,039,713,000 | 39.375 | 109 | 0.558066 | false |
pism/pism | examples/inverse/test_invssa_gn.py | 1 | 5837 | #! /usr/bin/env python3
#
# Copyright (C) 2012, 2014, 2015, 2016, 2017, 2018, 2019 David Maxwell
#
# This file is part of PISM.
#
# PISM 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 ... | gpl-3.0 | 4,067,119,596,753,197,600 | 39.818182 | 197 | 0.667124 | false |
paramecio/pastafari | scripts/monit/debian_wheezy/alive.py | 1 | 4720 | #!/usr/bin/python3 -u
# A script for install alive script
import subprocess
import argparse
import re
import os
import shutil
import pwd
from subprocess import call
parser = argparse.ArgumentParser(description='A script for install alive script and cron')
parser.add_argument('--url', help='The url where notify tha... | gpl-2.0 | 6,790,356,266,525,873,000 | 33.962963 | 239 | 0.60911 | false |
macborowy/dajsiepoznac-feed | DajSiePoznacFeed-Server/tests/workers_tests/test_participant_worker.py | 1 | 2277 | import unittest
import mock
from crawler.src.controllers.worker import ParticipantsWorker
import webapp2
import webtest
from google.appengine.ext import testbed
import logging
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
class ParticipantsWorkerTests(unittest.TestCase):
def setUp(self):
se... | mit | 4,146,239,155,321,076,700 | 32.985075 | 89 | 0.690821 | false |
t-neumann/slamdunk | bin/_preamble.py | 1 | 1062 | # Copyright (c) 2015 Tobias Neumann, Philipp Rescheneder.
#
# This file is part of Slamdunk.
#
# Slamdunk is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your ... | agpl-3.0 | -4,328,581,427,840,954,400 | 38.333333 | 74 | 0.707156 | false |
pnecchi/Thesis | Code/Prototype/critic.py | 1 | 2591 | ################################################################################
# Description: Module containing various critic implementations
# Author: Pierpaolo Necchi
# Email: pierpaolo.necchi@gmail.com
# Date: dom 05 giu 2016 18:24:01 CEST
########################################################... | mit | -4,194,413,793,386,329,000 | 24.653465 | 80 | 0.526052 | false |
andjimrio/LTN | Application/service/item_services.py | 1 | 5173 | from collections import Counter
from django.utils import timezone
from django.shortcuts import get_object_or_404
from Application.models import Item, UserProfile, Section, Status
from Application.utilities.python_utilities import floor_log
from Application.service.profile_services import get_profile, get_keywords_by_... | mit | -247,588,790,225,376,540 | 33.039474 | 117 | 0.641794 | false |
bykof/billomapy | billomapy/resources.py | 1 | 4081 | """
KEY and DATA_KEYS FOR THE API
"""
PROPERTY_VALUES = '-property-values'
PROPERTY_VALUE = '-property-value'
TAGS = '-tags'
TAG = '-tag'
ITEMS = '-items'
ITEM = '-item'
COMMENTS = '-comments'
COMMENT = '-comment'
PAYMENTS = '-payments'
PAYMENT = '-payment'
EMAIL_RECEIVERS = '-email-receivers'
EMAIL_RECEIVER = '-... | apache-2.0 | -6,912,875,700,097,215,000 | 19.611111 | 55 | 0.735359 | false |
pcrews/rannsaka | test_files/2volumes_basic.py | 1 | 3456 | import os
import random
import time
import json
from locust import HttpLocust, TaskSet, task
from lib.baseTaskSet import baseTaskSet
# TODO - make these config-driven
from lib.openstack.keystone import get_auth_token
from lib.openstack.cinder import list_volumes
from lib.openstack.cinder import list_volumes_detail
f... | apache-2.0 | -4,197,645,863,638,664,000 | 29.052174 | 88 | 0.567998 | false |
brean/arduino-kivy-bluetooth | glue/protocols/__init__.py | 1 | 2145 | # -*- coding: utf-8 -*-
"""
provide classes for different connection protocols
(bluetooth, tcp/ip, ...)
"""
protocols = {}
class Protocol(object):
def __init__(self, name):
"""
basic protocol interface
"""
self.name = name
def write(self, data):
"""
write data ... | mit | -7,852,823,469,514,479,000 | 23.375 | 72 | 0.561305 | false |
quantumlib/Cirq | examples/quantum_fourier_transform.py | 1 | 2702 | """
Creates and simulates a circuit for Quantum Fourier Transform(QFT)
on a 4 qubit system.
In this example we demonstrate Fourier Transform on
(1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0) vector. To do the same, we prepare
the input state of the qubits as |0000>.
=== EXAMPLE OUTPUT ===
Circuit:
(0, 0): ─H───@^0.5───×───H──────... | apache-2.0 | -501,834,738,332,291,460 | 28.605263 | 79 | 0.480889 | false |
ardumont/pygit2 | test/test_repository.py | 1 | 21901 | # -*- coding: UTF-8 -*-
#
# Copyright 2010-2014 The pygit2 contributors
#
# This file 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.
#
# In addition to the permissions in the GNU General Public Li... | gpl-2.0 | 4,292,121,649,078,925,000 | 37.078261 | 112 | 0.642293 | false |
lucywyman/slides | source/source/conf.py | 1 | 9886 | # -*- coding: utf-8 -*-
#
# slides documentation build configuration file, created by
# sphinx-quickstart on Wed Jul 1 21:05:39 2015.
#
# 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... | mit | -2,277,928,140,607,679,200 | 29.990596 | 79 | 0.698867 | false |
DMCsys/smartalkaudio | oss-survey/xmms2-0.8DrO_o/doc/tutorial/python/tut2.py | 1 | 1951 | #!/usr/bin/env python
# XMMS2 - X Music Multiplexer System
# Copyright (C) 2003-2006 XMMS2 Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the Licens... | gpl-3.0 | 2,626,838,312,053,686,300 | 26.097222 | 69 | 0.736033 | false |
Lujeni/ansible | lib/ansible/modules/cloud/vmware/vmware_guest.py | 1 | 150199 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This module is also sponsored by E.T.A.I. (www.etai.fr)
# 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_version... | gpl-3.0 | -814,688,206,200,480,600 | 50.93603 | 159 | 0.590923 | false |
QuantScientist/Deep-Learning-Boot-Camp | Kaggle-PyTorch/PyTorch-Ensembler/nnmodels/simplenet.py | 1 | 3522 | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.autograd import Variable
import math
use_gpu = torch.cuda.is_available()
# class SimpleNet(nn.Module):
# def __init__(self, num_classes=1, n_dim=3):
# sup... | mit | -797,179,292,493,046,100 | 29.102564 | 87 | 0.561897 | false |
showerst/openstates | openstates/ma/bills.py | 1 | 5391 | import re
import time
import itertools
from datetime import datetime
import lxml.html
from billy.scrape.bills import BillScraper, Bill
from .actions import Categorizer
class MABillScraper(BillScraper):
jurisdiction = 'ma'
categorizer = Categorizer()
def __init__(self, *args, **kwargs):
super(M... | gpl-3.0 | -5,255,152,788,165,051,000 | 38.065217 | 97 | 0.515674 | false |
vetu11/piloco | telegram/inlinequeryresultcontact.py | 1 | 3739 | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2016
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | gpl-3.0 | -2,659,378,203,046,759,000 | 39.204301 | 99 | 0.651511 | false |
failys/CAIRIS | cairis/test/test_TraceAPI.py | 1 | 4597 | # 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... | apache-2.0 | 1,405,920,786,759,605,500 | 36.991736 | 190 | 0.694583 | false |
hs634/algorithms | python/test.py | 1 | 1435 | #
# inputs outputs
# single sin
# simple sim
# solution so
# a a
#
class Node:
def __init__(self, val):
self.val = val
self.children = [0] * 26
self.is_end = False
self.word_count = 1
def get_unique_prefixes(words):
root = Node(0)
root.word_count += 1
... | mit | -2,184,815,566,675,535,400 | 19.5 | 65 | 0.502439 | false |
pacoqueen/ginn | extra/patches/upgrade_db_etiquetas_norma13.py | 1 | 8959 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Crea los campos y actualiza los productos para las nuevas etiquetas de la
norma del 1 de julio de 2013.
"""
import os, sys
sys.path.insert(0, (os.path.join(os.path.abspath(os.path.dirname(__file__)),
"..", "..", "ginn")))
os.chdir(os.path.join(os... | gpl-2.0 | 4,343,040,480,813,969,000 | 46.989189 | 357 | 0.615116 | false |
saram-kon/beepmusic | midi_to_beep/midi_to_beep.py | 1 | 8039 | #! python
# COPYRIGHT: BALTHASAR SCHLOTMANN 2017
# LICENSED UNDER THE GNU GENERAL PUBLIC LICENSE VERSION 3
import sys
import notedict as nd
filename = sys.argv[1]
# from here: https://github.com/bspaans/python-mingus/blob/master/mingus/midi/midi_file_in.py
def parse_varbyte_as_int( array, i):
"""Read a variable l... | gpl-3.0 | -7,332,480,733,141,676,000 | 19.989556 | 136 | 0.568603 | false |
abetkin/django-qfilter | qfilters/exotic_types.py | 1 | 5664 | # -*- coding: utf-8 -*-
from itertools import groupby
from functools import reduce
from . import QuerySetFilter, ValuesDictFilter
from .utils import CallablesList
class QuerysetIterationHook(QuerySetFilter):
def __init__(self, hook_function):
self.hook_function = hook_function
def __and__(... | mit | 5,493,379,134,751,327,000 | 38.333333 | 95 | 0.549788 | false |
levkar/odoo-addons | stock_remit/wizard/stock_print_remit.py | 1 | 2063 | # -*- coding: utf-8 -*-
from openerp.osv import fields, osv
class stock_print_remit(osv.osv_memory):
_name = 'stock.print_remit'
_description = "Print Remit"
_columns = {
'remit_number': fields.char('Remit Number'),
}
def default_get(self, cr, uid, fields, context=None):
res = su... | agpl-3.0 | -6,010,823,284,556,998,000 | 31.746032 | 78 | 0.593311 | false |
arupiot/deskcontrol | deskcontrol/config.py | 1 | 4175 | import os
NAME_AUTHORITY = os.environ.get("NAME_AUTHORITY", "eightfitzroy.arupiot.com")
DEVICE_NAME = os.environ.get("DEVICE_NAME", "TST-1")
HOST = os.environ.get("BRICKD_HOST", "localhost")
PORT = int(os.environ.get("BRICKD_PORT", "4223"))
SHORT_IDENT = os.environ.get("SHORT_IDENT", "test")
MODULES = []
MENU_MODUL... | mit | 6,310,629,483,132,539,000 | 40.336634 | 96 | 0.626826 | false |
Robpol86/coveralls-multi-ci | tests/test_git_stats_detached.py | 1 | 2466 | import subprocess
from coveralls_multi_ci import git_stats
def test_master(repo_dir, hashes):
hex_sha = hashes['master']
assert 0 == subprocess.check_call(['git', 'checkout', '-qf', hex_sha], cwd=repo_dir)
actual = git_stats(repo_dir)
expected = dict(
branch='master',
remotes=[dict(n... | mit | -6,090,221,263,133,441,000 | 28.710843 | 88 | 0.553528 | false |
zenodo/invenio | invenio/modules/deposit/types/simplerecord.py | 1 | 3085 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2014, 2015 CERN.
#
# Invenio 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... | gpl-2.0 | -24,379,396,801,336,468 | 35.72619 | 98 | 0.667099 | false |
uclouvain/osis | ddd/logic/application/use_case/read/get_attributions_about_to_expire_service.py | 1 | 3140 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | -4,942,348,289,365,536,000 | 52.20339 | 112 | 0.745142 | false |
sebrandon1/nova | nova/tests/unit/api/openstack/compute/test_flavorextradata.py | 1 | 3374 | # Copyright 2012 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 requ... | apache-2.0 | -4,678,552,957,418,151,000 | 37.781609 | 78 | 0.576763 | false |
riolet/rioauth | provider/pages/login_github.py | 1 | 4700 | import web
import oauthlib.oauth2.rfc6749
import constants
import common
import base
import logging
import pprint
from models import oauth_consumer
class Login(base.Page):
def __init__(self):
base.Page.__init__(self, "Riolet Login")
self.redirect_uri = unicode(constants.config.get('github', 'redir... | gpl-3.0 | -5,499,552,348,842,626,000 | 42.119266 | 169 | 0.59766 | false |
selam/retopy | run.py | 1 | 4143 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2015 Timu EREN
#
# 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 requir... | apache-2.0 | 7,731,218,416,699,945,000 | 28.805755 | 117 | 0.633599 | false |
seiji56/rmaze-2016 | logic_code/last_ver/phys/movement.py | 1 | 6199 | import herkulex
import time
import thread
import RPi.GPIO as gpio
import sensory as sn
herkulex.connect("/dev/ttyAMA0", 115200)
FR = herkulex.servo(0xfd)
FL = herkulex.servo(16)
BR = herkulex.servo(10)
BL = herkulex.servo(20)
DROP = herkulex.servo(50)
ALL = herkulex.servo(0xfe)
ALL.torque_on()
def align(to... | gpl-3.0 | 6,822,648,541,186,779,000 | 28.519048 | 88 | 0.490563 | false |
buckket/twtxt | twtxt/helper.py | 1 | 5887 | """
twtxt.helper
~~~~~~~~~~~~
This module implements various helper for use in twtxt.
:copyright: (c) 2016-2017 by buckket.
:license: MIT, see LICENSE for more details.
"""
import shlex
import subprocess
import sys
import textwrap
import click
import pkg_resources
from twtxt.mentions import for... | mit | 3,330,599,727,563,518,500 | 31.787709 | 111 | 0.622934 | false |
euphorie/Euphorie | src/euphorie/client/tests/test_functional_country.py | 1 | 2524 | # coding=utf-8
from euphorie.client.tests.utils import addSurvey
from euphorie.client.tests.utils import registerUserInClient
from euphorie.content.tests.utils import BASIC_SURVEY
from euphorie.testing import EuphorieFunctionalTestCase
import urllib
class CountryFunctionalTests(EuphorieFunctionalTestCase):
def t... | gpl-2.0 | -2,004,303,997,983,281,400 | 44.071429 | 86 | 0.603011 | false |
dan-bowerman/PAGER | PAGER_Scripts/publishService.py | 1 | 21916 | # -*- coding: UTF-8 -*-
"""Functions to aid in publishing a service in the publication workflow.
"""
import glob
import json
import os
import random
import string
import urllib2
import xml.dom.minidom as DOM
from xml.sax.saxutils import escape
import arcpy
import checkError
def createMXD(inFolder, template,logs):
... | mit | 2,524,348,466,007,321,000 | 38.198569 | 425 | 0.646632 | false |
tsnoam/python-telegram-bot | tests/test_update.py | 1 | 2618 | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2016
# Leandro Toledo de Souza <devs@python-telegram-bot.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 b... | gpl-3.0 | 2,410,395,597,240,658,000 | 34.863014 | 77 | 0.60084 | false |
jjgomera/pychemqt | lib/mEoS/MM.py | 1 | 7485 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
'''Pychemqt, Chemical Engineering Process simulator
Copyright (C) 2009-2017, Juan José Gómez Romera <jjgomera@gmail.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 Softwar... | gpl-3.0 | 4,692,078,303,423,370,000 | 38.373684 | 79 | 0.546718 | false |
alexlib/Qt-Python-Binding-Examples | windows/custom_win_flags.py | 1 | 1096 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
demo template
Tested environment:
Mac OS X 10.6.8
"""
import sys
try:
from PySide import QtCore
from PySide import QtGui
except ImportError:
from PyQt4 import QtCore
from PyQt4 import QtGui
class SheetWin(QtGui.QWidget):
def __init__(self,... | bsd-3-clause | 3,303,483,538,088,207,000 | 18.245614 | 46 | 0.57573 | false |
ContinuumIO/dask | dask/cache.py | 2 | 2000 | from .callbacks import Callback
from timeit import default_timer
from numbers import Number
import sys
overhead = sys.getsizeof(1.23) * 4 + sys.getsizeof(()) * 4
class Cache(Callback):
""" Use cache for computation
Examples
--------
>>> cache = Cache(1e9) # doctest: +SKIP
The cache ca... | bsd-3-clause | 5,867,186,618,734,456,000 | 29.769231 | 87 | 0.572 | false |
codecakes/random_games | single_linkedlist.py | 1 | 8155 | ## Singly Linked List
## Each Node is relatively Head to the next node it refers to.
## The Linked List can be broken down into:
## Nodes.
"""
Single Linked List can:
- Insert at Head, Tail, Inbetween
- Delete at Head, Tail, Inbetween
- Add another LinkedList to Existing
"""
class LinkedNode(object):
... | mit | 8,933,424,772,247,574,000 | 25.917492 | 79 | 0.527406 | false |
googlefonts/fontbakery | Lib/fontbakery/reporters/__init__.py | 1 | 4250 | """
Separation of Concerns Disclaimer:
While created specifically for checking fonts and font-families this
module has no domain knowledge about fonts. It can be used for any kind
of (document) checking. Please keep it so. It will be valuable for other
domains as well.
Domain specific knowledge should be encoded only i... | apache-2.0 | 3,269,233,457,621,858,000 | 31.442748 | 86 | 0.567294 | false |
sventech/YAK-server | test_project/test_app/tests/test_social.py | 1 | 10812 | from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from test_project.test_app.models import Post
from test_project.test_app.tests.factories import UserFactory, PostFactory, CommentFactory... | mit | 1,084,889,553,242,041,300 | 46.213974 | 120 | 0.654458 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.