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,222,525,072B | line_mean float64 6.51 99.8 | line_max int64 15 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
yuanyelele/solfege | solfege/tracebackwindow.py | 1 | 4872 | # GNU Solfege - free ear training software
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2007, 2008, 2011 Tom Cato Amundsen
#
# 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... | gpl-3.0 | -2,274,994,143,251,863,300 | 42.891892 | 185 | 0.609401 | false |
DBrianKimmel/PyHouse | Project/src/Modules/House/Family/Reolink/reolink_device.py | 1 | 1201 | """
@name: /home/briank/workspace/PyHouse/Project/src/Modules/House/Family/Reolink/reolink_device.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2013-2019 by D. Brian Kimmel
@license: MIT License
@note: Created on Jan 26, 2020
@summary:
"""
__updated__ = '2020-01-26'
__... | mit | -2,093,959,987,469,830,700 | 21.240741 | 101 | 0.606994 | false |
stuycs-softdev-fall-2013/proj3-7-cartwheels | website/urls.py | 1 | 1252 | from website import app, views
# Home and search
app.add_url_rule('/', view_func=views.index)
app.add_url_rule('/search', view_func=views.search_results)
# Carts
app.add_url_rule('/carts/<cid>', view_func=views.cart_page, methods=['GET', 'POST'])
app.add_url_rule('/carts/<cid>/menu', view_func=views.menu_page, method... | bsd-3-clause | 1,223,634,340,213,656,000 | 43.714286 | 96 | 0.688498 | false |
Makki1/old-svn | avr/sketchbook/GiraRM_Debug/freebus/freebus_ets/software/freebus-ets/src/GUI/FB_ProgramFrame.py | 1 | 10920 | #!/usr/bin/
#-*- coding: iso-8859-1 -*-
#===============================================================================
# __________ ________________ __ _______
# / ____/ __ \/ ____/ ____/ __ )/ / / / ___/
# / /_ / /_/ / __/ / __/ / __ / / / /\__ \
# / __/ / _, _/ /___/ /___/ /_/ / /_/ /___/ /... | gpl-3.0 | 865,511,498,934,486,400 | 39.83908 | 111 | 0.554487 | false |
kmike/tornado-slacker | test_project/settings.py | 1 | 1318 | # Django settings for test project.
import os, sys
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
join = lambda p: os.path.abspath(os.path.join(PROJECT_ROOT, p))
sys.path.insert(0, join('..'))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3'... | mit | 4,513,988,263,674,335,000 | 26.458333 | 77 | 0.68437 | false |
kevin-intel/scikit-learn | sklearn/datasets/_kddcup99.py | 3 | 12676 | """KDDCUP 99 dataset.
A classic dataset for anomaly detection.
The dataset page is available from UCI Machine Learning Repository
https://archive.ics.uci.edu/ml/machine-learning-databases/kddcup99-mld/kddcup.data.gz
"""
import errno
from gzip import GzipFile
import logging
import os
from os.path import dirname, ex... | bsd-3-clause | 3,550,723,356,904,437,000 | 32.983914 | 98 | 0.574787 | false |
abdulfaizp/adventofcode | xmas6.py | 1 | 1127 | # light_grid=[[0 for x in range(1000)] for x in range(1000)]
def call_summation(light_grid):
light=sum(map(sum, light_grid))
print "part one=" ,light
def grid_operation(array, switch_state, light_grid):
for i in range(array[0], array[2]+1):
for j in range(array[1], array[3]+1):
if switch_state==1... | cc0-1.0 | 3,651,151,422,980,804,600 | 24.636364 | 63 | 0.613132 | false |
LTD-Beget/sprutio-rpc | lib/FileManager/workers/sftp/newFile.py | 1 | 1671 | import traceback
from lib.FileManager.workers.baseWorkerCustomer import BaseWorkerCustomer
class NewFile(BaseWorkerCustomer):
def __init__(self, path, session, *args, **kwargs):
super(NewFile, self).__init__(*args, **kwargs)
self.path = path
self.session = session
def run(self):
... | gpl-3.0 | -242,218,982,691,148,300 | 27.810345 | 82 | 0.453022 | false |
defm03/toraeru | test/loli_gelbooru.py | 1 | 3832 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
*booru general file.
For now, there's working Gelbooru downloader for loli content,
but soon I'll add danbooru, etc.
"""
import loli_spam
import os
import datetime
import urllib.request
import http.cookiejar
import xml.etree.ElementTree as eltree
import json
#lol... | gpl-3.0 | -7,906,757,162,575,998,000 | 29.420635 | 108 | 0.679541 | false |
rdoyle1978/Ice | src/ice/gridproviders/combined_provider.py | 1 | 1225 | #!/usr/bin/env python
# encoding: utf-8
import grid_image_provider
from functools import reduce
class CombinedProvider(grid_image_provider.GridImageProvider):
def __init__(self, *args):
"""
Creates a CombinedProvider out of the providers that were passed in `args`
ORDER MATTERS. `image_for_rom` will ... | mit | -3,607,491,241,710,703,000 | 28.878049 | 85 | 0.705306 | false |
line72/subte | libsubte/interface/StopMarker.py | 1 | 9828 | #
# Copyright (C) 2012 - Marcus Dillavou
#
# 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, or (at your option)
# any later version.
#
# This program is distributed in the hope ... | gpl-3.0 | -5,898,807,832,328,061,000 | 32.889655 | 129 | 0.577941 | false |
RuudBurger/CouchPotatoServer | couchpotato/core/downloaders/deluge.py | 1 | 16194 | from base64 import b64encode, b16encode, b32decode
from datetime import timedelta
from hashlib import sha1
import os.path
import re
import traceback
from bencode import bencode as benc, bdecode
from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList
from couchpotato.core.helpers.encoding... | gpl-3.0 | 8,216,095,494,107,268,000 | 37.374408 | 512 | 0.545943 | false |
pollitosabroson/idneo | src/catalogs/migrations/0001_initial.py | 1 | 1867 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(ver... | apache-2.0 | 388,971,664,067,969,900 | 42.418605 | 133 | 0.559186 | false |
GabrielNicolasAvellaneda/dd-agent | checks.d/wmi_check.py | 1 | 5343 | '''
Windows Only.
Generic WMI check. This check allows you to specify particular metrics that you
want from WMI in your configuration. Check wmi_check.yaml.example in your conf.d
directory for more details on configuration.
'''
# 3rd party
import wmi
# project
from checks import AgentCheck
UP_METRIC = 'Up'
SEARCH_WI... | bsd-3-clause | 658,768,032,123,503,700 | 41.404762 | 98 | 0.518061 | false |
blancha/abcngspipelines | bischipseq/convert1StartTo0Start_batch.py | 1 | 2156 | #!/usr/bin/env python3
# Version 1.0
# Author Alexis Blanchet-Cohen
# Date: 15/06/2014
import argparse
import glob
import os
import subprocess
import util
# Read the command line arguments.
parser = argparse.ArgumentParser(description='Generate scripts to convert bedgraph files from one-based start to zero-based sta... | gpl-3.0 | -3,264,305,320,030,537,000 | 40.461538 | 157 | 0.728664 | false |
bigfatnoob/DISCAW | Models/nasa93.py | 1 | 7953 | """
# The NASA93 Data Set
Standard header:
"""
from __future__ import division,print_function
import sys
sys.dont_write_bytecode = True
from lib import *
"""
Data:
Possible Splits= ["variance", "centroid", "median"]
"""
def nasa93(weighFeature = False, split = "variance"):
vl=1;l=2;n=3;h=4;vh=5;xh=6;_=0
return ... | mit | -304,085,712,307,642,560 | 56.215827 | 79 | 0.50044 | false |
eshijia/magnum | magnum/db/sqlalchemy/api.py | 1 | 39042 | # Copyright 2013 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 required by applicabl... | apache-2.0 | 5,895,803,285,767,630,000 | 36.978599 | 79 | 0.596102 | false |
jandom/rdkit | rdkit/Chem/Draw/qtCanvas.py | 1 | 3513 | # $Id$
#
# Copyright (C) 2014 Seiji Matsuoka
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
from rdkit.Chem.Draw.canvasbase import CanvasBase
f... | bsd-3-clause | 2,263,329,650,974,698,000 | 35.59375 | 98 | 0.63877 | false |
mrocklin/streams | streamz/tests/test_sources.py | 1 | 2787 | from flaky import flaky
import pytest
from streamz import Source
from streamz.utils_test import wait_for, await_for, gen_test
import socket
@flaky(max_runs=3, min_passes=1)
def test_tcp():
port = 9876
s = Source.from_tcp(port)
out = s.sink_to_list()
s.start()
wait_for(lambda: s.server is not None,... | bsd-3-clause | 1,888,732,176,384,832,300 | 27.731959 | 79 | 0.587729 | false |
ebmdatalab/openprescribing | openprescribing/dmd/build_search_query.py | 1 | 3506 | from django.db.models import fields, ForeignKey, ManyToOneRel, OneToOneRel, Q
from .obj_types import clss
from functools import reduce
def build_query_obj(cls, search):
"""Return Q object to filter dm+d objects based on search.
Parameters:
cls: class of dm+d object to search
search: a tree desc... | mit | 832,798,126,835,511,300 | 28.965812 | 82 | 0.587849 | false |
jsheffie/django-auth-experiments | djauth/quickstart/views.py | 1 | 2083 | from django.shortcuts import render
from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from rest_framework.permissions import IsAuthenticated
from django.contrib.auth.decorators import login_required
from quickstart.serializers import UserSerializer, GroupSerializer
from django.htt... | mit | -253,710,595,698,105,470 | 33.716667 | 74 | 0.723476 | false |
CINPLA/exana | exana/tracking/fields.py | 1 | 32391 | import numpy as np
def spatial_rate_map(x, y, t, spike_train, binsize=0.01, box_xlen=1,
box_ylen=1, mask_unvisited=True, convolve=True,
return_bins=False, smoothing=0.02):
"""Divide a 2D space in bins of size binsize**2, count the number of spikes
in each bin and divi... | gpl-3.0 | 8,174,192,474,725,353,000 | 34.9102 | 101 | 0.591244 | false |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4