repo_name stringlengths 6 61 | path stringlengths 4 230 | copies stringlengths 1 3 | size stringlengths 4 6 | text stringlengths 1.01k 850k | license stringclasses 15
values | hash int64 -9,220,477,234,079,998,000 9,219,060,020B | line_mean float64 11.6 96.6 | line_max int64 32 939 | alpha_frac float64 0.26 0.9 | autogenerated bool 1
class | ratio float64 1.62 6.1 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cjlee112/spnet | spnet/rest.py | 1 | 6279 | import cherrypy
import glob
import os.path
from base import IdString
import view
def request_tuple():
mimeType = 'html'
try:
accept = cherrypy.request.headers['Accept']
if 'application/json' in accept or accept == '*/*':
mimeType = 'json'
except KeyError:
pass
return... | gpl-2.0 | -6,523,738,228,163,122,000 | 42.909091 | 79 | 0.555821 | false | 4.637371 | false | false | false |
Sylrob434/CouchPotatoServer | couchpotato/core/media/movie/providers/trailer/youtube_dl/extractor/googleplus.py | 9 | 3200 | # coding: utf-8
from __future__ import unicode_literals
import datetime
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
)
class GooglePlusIE(InfoExtractor):
IE_DESC = 'Google Plus'
_VALID_URL = r'https://plus\.google\.com/(?:[^/]+/)*?posts/(?P<id>\w+)'
IE_NAME = 'pl... | gpl-3.0 | 6,297,759,568,644,632,000 | 33.5 | 93 | 0.559861 | false | 3.627429 | false | false | false |
mainakibui/kobocat | onadata/apps/main/migrations/0012_auto__add_unique_metadata_xform_data_type_data_value.py | 3 | 10615 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'MetaData', fields ['xform', 'data_type', 'data_value']
M = orm['main.metadata... | bsd-2-clause | -6,083,967,920,070,348,000 | 75.366906 | 187 | 0.550824 | false | 3.583727 | false | false | false |
indeedops/dd-agent | checks.d/elastic.py | 2 | 31510 | # (C) Datadog, Inc. 2010-2016
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
# stdlib
from collections import defaultdict, namedtuple
import time
import urlparse
# 3p
import requests
# project
from checks import AgentCheck
from config import _is_affirmative
from util import headers
cla... | bsd-3-clause | 1,589,628,936,024,437,800 | 48.700315 | 158 | 0.619105 | false | 3.701833 | true | false | false |
dgschwend/zynqnet | tools/convert_caffemodel/tools/bindump_to_list.py | 1 | 2171 | #!/usr/bin/env python2.7
#######
## bindump_to_list.py
## (c) 2016 David Gschwend
##
## Usage: python2.7 bindump_to_list.py file.bin
#######
from __future__ import print_function # print without newline
import os
import argparse
import struct
import time
import numpy as np
import math
# Parse arguments
parser = a... | gpl-3.0 | -1,622,241,999,994,910,700 | 26.833333 | 107 | 0.678029 | false | 3.240299 | false | false | false |
joshuahoman/vivisect | envi/archs/arm/const.py | 3 | 10798 | MODE_ARM = 0
MODE_THUMB = 1
MODE_JAZELLE = 2
#IFLAGS - keep bottom 8-bits for cross-platform flags like envi.IF_NOFALL and envi.IF_BRFALL
IF_PSR_S = 1<<32 # This DP instruciton can update CPSR
IF_B = 1<<33 # Byte
IF_H = 1<<35 # HalfWord
IF_S = 1<<36 # Signed
IF_... | apache-2.0 | 6,058,271,233,781,974,000 | 39.291045 | 142 | 0.624004 | false | 2.476038 | false | false | false |
esonderegger/jagss | jagss/sftpsync.py | 1 | 7979 | # -*- coding: utf-8 -*-
import os
import re
import socket
from stat import S_ISDIR
from datetime import datetime
import logging
import paramiko
MTIME_TOLERANCE = 3
logger = logging.getLogger(__name__)
class AuthenticationError(Exception):
pass
class TimeoutError(Exception):
pass
class SshError(Exception... | mit | 655,222,774,239,576,600 | 33.995614 | 79 | 0.517107 | false | 4.235138 | false | false | false |
iulian787/spack | var/spack/repos/builtin/packages/isescan/package.py | 3 | 2864 | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Isescan(Package):
"""A python pipeline to identify IS (Insertion Sequence) elements in
... | lgpl-2.1 | -1,895,937,211,816,651,000 | 39.338028 | 97 | 0.606145 | false | 3.066381 | false | false | false |
Codophile1/exide | exide/odp_element_parsers/SlideParser.py | 1 | 5109 | #!/usr/bin/python
#-*- coding: utf-8 -*-
from .TextParser import TextParser
from .utils import namespace
class SlideParser(object):
def __init__(self, XMLSlideObject, number, presentationParser):
self.presentation = presentationParser
self.text_parsers = self.parseText(XMLSlideObject)
se... | lgpl-3.0 | -5,969,898,557,859,558,000 | 37.390977 | 149 | 0.5613 | false | 4.033175 | false | false | false |
jakeres/plugin.video.triluliluro | default.py | 1 | 10700 | import codecs,urllib,urllib2,re,xbmc,xbmcplugin,xbmcaddon,xbmcgui,os,sys,commands,HTMLParser,jsunpack,time
website = 'http://www.trilulilu.ro/';
__version__ = "1.0.4"
__plugin__ = "trilulilu.ro" + __version__
__url__ = "www.xbmc.com"
settings = xbmcaddon.Addon( id = 'plugin.video.triluliluro' )
search_thumb = os.pat... | gpl-2.0 | 5,968,702,429,578,963,000 | 31.035928 | 206 | 0.583645 | false | 3.241442 | false | false | false |
GNOME/gedit-plugins | plugins/sessionsaver/sessionsaver/store/session.py | 1 | 1484 | # -*- coding: utf-8 -*-
# store.py
# This file is part of gedit Session Saver Plugin
#
# Copyright (C) 2006-2007 - Steve Frécinaux <code@istique.net>
# Copyright (C) 2010 - Kenny Meyer <knny.myer@gmail.com>
#
# gedit Session Saver Plugin is free software; you can redistribute it and/or
# modify it under the terms of th... | gpl-2.0 | -927,613,206,277,590,700 | 34.309524 | 79 | 0.686446 | false | 3.617073 | false | false | false |
JorisDeRieck/Flexget | flexget/components/managed_lists/lists/pending_list/db.py | 4 | 4844 | from __future__ import unicode_literals, division, absolute_import
import logging
from builtins import * # pylint: disable=unused-import, redefined-builtin
from datetime import datetime
from sqlalchemy import Column, Unicode, Integer, DateTime, func, Boolean
from sqlalchemy.orm import relationship
from sqlalchemy.sq... | mit | 8,526,603,098,097,593,000 | 30.454545 | 96 | 0.657308 | false | 3.585492 | false | false | false |
b6d/lima | test/test_dump.py | 1 | 11623 | from collections import OrderedDict
from datetime import date, datetime
import pytest
from lima import fields, schema
# model -----------------------------------------------------------------------
class Knight:
'''A knight.'''
def __init__(self, title, name, number, born):
self.title = title
... | mit | -2,044,180,541,219,316,000 | 26.739857 | 79 | 0.604491 | false | 3.426592 | true | false | false |
g3rd/Expo | expo/slides/templatetags/utils.py | 1 | 3334 | from __future__ import unicode_literals
from django.template import Library, Node, TemplateSyntaxError
from django.conf import settings
from django.template.loader import select_template
from django.template.base import token_kwargs, compile_string
register = Library()
@register.tag
def multi_include(parser, token)... | apache-2.0 | -8,034,546,822,722,200,000 | 35.637363 | 101 | 0.608278 | false | 4.404227 | false | false | false |
simeksgol/BellmanWin_szlim | catbellman.py | 1 | 3272 | import os, glob
import golly as g
def convbellman (text, stx, sty):
textln = text.split ('\n')
gen = -1
glcnt = -1
y = sty;
for ln in textln:
if not ln:
break
if ln [0] == '#':
if ln [0:35] == "#C Solution accepted at generation ":
gen = int (ln [35:])
elif ln [0:26] == "#C Glider count at acce... | bsd-2-clause | 2,742,611,353,457,835,000 | 20.526316 | 70 | 0.51467 | false | 2.751892 | false | false | false |
sixuanwang/SAMSaaS | wirecloud-develop/src/wirecloud/oauth2provider/pyoauth2.py | 2 | 15938 | import json
from wirecloud.oauth2provider import pyoauth2_utils as utils
class Provider(object):
"""Base provider class for different types of OAuth 2.0 providers."""
def _handle_exception(self, exc):
"""Handle an internal exception that was caught and suppressed.
:param exc: Exception to pr... | gpl-2.0 | -3,620,813,159,037,716,500 | 36.325527 | 124 | 0.600891 | false | 4.598384 | false | false | false |
disturbedfood/timeplan | structures.py | 1 | 1055 | class Course:
def __init__(self, name, hashcode, code):
self.subjects = set()
self.name = name
self.hashcode = hashcode
self.code = code
@classmethod
def from_db(cls, row):
name = row[0]
hashcode = row[1]
return cls(name, hashcode, "")
def... | apache-2.0 | -2,402,610,393,383,240,700 | 27.513514 | 126 | 0.522275 | false | 3.552189 | false | false | false |
ancafarcas/superdesk-core | apps/preferences.py | 2 | 12825 | # -*- coding: utf-8; -*-
#
# This file is part of Superdesk.
#
# Copyright 2013, 2014 Sourcefabric z.u. and contributors.
#
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license
from flask i... | agpl-3.0 | -8,090,301,490,491,624,000 | 37.863636 | 112 | 0.635789 | false | 3.905298 | true | false | false |
Hawk94/coin_tracker | backend/settings.py | 1 | 4864 | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | mit | -5,219,796,573,422,314,000 | 28.478788 | 105 | 0.63898 | false | 3.817896 | false | false | false |
AiOO/oi | oi/user.py | 1 | 1542 | from flask import Blueprint
from flask import redirect, session, url_for
from functools import partial, wraps
from oi.model import User
from oi.util import timestamp, TIME_MINUTES
def get_user(db_session, user_id):
user = db_session.query(User).filter(User.id == user_id).first()
return user
def get_user_by_go... | mit | 6,469,918,013,855,115,000 | 28.653846 | 77 | 0.66083 | false | 3.426667 | false | false | false |
Flavsditz/projects | eyeTracking/findPupil.py | 1 | 2290 |
import pygtk
pygtk.require('2.0')
import gtk
import sys
import threading
import time
from SimpleCV import VirtualCamera, DrawingLayer, Color, Camera
binarizationValue = 30
class gui:
def __init__(self):
self.gladefile = "binControl.glade"
self.glade = gtk.Builder()
... | gpl-2.0 | 4,624,577,015,599,548,000 | 21.367347 | 85 | 0.561135 | false | 3.443609 | false | false | false |
gundramleifert/exp_tf | util/LoaderUtil.py | 1 | 4488 | from __future__ import print_function
import matplotlib.pyplot as plt
import numpy as np
from scipy import misc
import STR2CTC
import os
import codecs
def read_image_list(pathToList):
"""Reads a .txt file containing paths to the images
Args:
image_list_file: a .txt file with one /path/to/image per line... | apache-2.0 | -4,205,013,080,744,168,000 | 28.92 | 157 | 0.541889 | false | 3.447005 | false | false | false |
ercius/openNCEM | ncempy/eval/multicorr.py | 1 | 2952 | import numpy as np
from ..algo.multicorr_funcs import *
def multicorr(g1, g2, method='cross', upsample_factor=1, verbose=False):
"""Align a reference to an image by cross correlation. The template
and the image must have the same size.
The function takes in FFTs so that any FFT algorithm can be used to
... | gpl-3.0 | 1,564,005,175,779,663,400 | 35.9 | 110 | 0.635163 | false | 3.838752 | false | false | false |
citrix-openstack-build/glance | glance/cmd/scrubber.py | 4 | 2498 | #!/usr/bin/env python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011-2012 OpenStack LLC.
# 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 | 7,744,330,308,532,266,000 | 30.620253 | 78 | 0.614091 | false | 3.952532 | false | false | false |
katajakasa/aiohttp-spyne | setup.py | 1 | 1196 | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="aiohttp-spyne",
version="1.2.0",
description="Aiohttp transport for Spyne RPC ... | lgpl-2.1 | 4,266,790,089,964,007,000 | 34.176471 | 83 | 0.626254 | false | 3.613293 | false | false | false |
apache/airflow | tests/models/test_connection.py | 2 | 26256 | #
# 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... | apache-2.0 | 2,956,835,774,849,428,000 | 37.385965 | 175 | 0.547151 | false | 4.10635 | true | false | false |
fariias/icanfinance | backend/test/account_tests.py | 3 | 1201 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from base import GAETestCase
from gaepermission import facade
from routes import account
import settings
from tekton.gae.middleware.redirect import RedirectResponse
class AccountTests(GAETestCase):
def test_index(self):
email... | mit | -3,730,230,932,860,824,000 | 36.53125 | 68 | 0.676936 | false | 3.824841 | false | false | false |
labsanmartin/Bika-LIMS | bika/lims/content/analysiscategory.py | 3 | 3474 | """Analysis Category - the category of the analysis service
"""
from AccessControl import ClassSecurityInfo
from bika.lims import bikaMessageFactory as _
from bika.lims.utils import t
from bika.lims.config import PROJECTNAME
from bika.lims.content.bikaschema import BikaSchema
from bika.lims.interfaces import IAnalysisC... | agpl-3.0 | 3,410,657,442,674,726,400 | 34.090909 | 133 | 0.662349 | false | 4.315528 | false | false | false |
crowd-course/scholars | scholars/courses/migrations/0017_auto_20170812_0545.py | 1 | 1669 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-12 05:45
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses', '0016_coursemember_... | mit | -5,473,503,350,215,734,000 | 34.510638 | 150 | 0.617735 | false | 4.474531 | false | false | false |
brefsdal/sherpa | sherpa/data.py | 1 | 20062 | #_PYTHON_INSERT_SAO_COPYRIGHT_HERE_(2008)_
#_PYTHON_INSERT_GPL_LICENSE_HERE_
"""
Tools for creating, storing, inspecting, and manipulating data sets
"""
import sys
import inspect
from itertools import izip
import numpy
from sherpa.utils.err import DataErr, NotImplementedErr
from sherpa.utils import SherpaFloat, NoNew... | gpl-2.0 | 752,074,171,594,710,800 | 29.769939 | 79 | 0.571977 | false | 3.534531 | false | false | false |
rhyolight/nupic.son | app/soc/modules/gci/models/task.py | 1 | 9890 | # Copyright 2009 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 applicable law or agreed to in wr... | apache-2.0 | -4,247,628,573,120,247,000 | 39.203252 | 80 | 0.688777 | false | 4.058268 | false | false | false |
tianz/MyInventory | inventory/models.py | 1 | 5035 | from django.db import models
from django.db.models import Sum, F
from django.db.models.functions import Coalesce
from django.contrib.auth.models import User
from django.utils.functional import cached_property
from .managers import ProductManager, PurchaseOrderManager, PurchaseItemManager, SalesOrderManager, SalesItemM... | mit | 6,578,966,080,557,096,000 | 31.070064 | 150 | 0.672095 | false | 3.688645 | false | false | false |
pavel-paulau/perfrunner | perfrunner/utils/verify_logs.py | 1 | 1604 | import glob
import zipfile
from collections import defaultdict
from typing import List
from logger import logger
from perfrunner.helpers.misc import pretty_dict
GOLANG_LOG_FILES = ("eventing.log",
"fts.log",
"goxdcr.log",
"indexer.log",
"... | apache-2.0 | 6,336,424,920,664,982,000 | 26.186441 | 73 | 0.592269 | false | 3.588367 | false | false | false |
jorgeas80/cercanias-api | cercanias/settings.py | 1 | 2404 | # -*- coding: utf-8 -*-
"""
Django settings for cercanias project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.p... | gpl-2.0 | 9,208,013,409,117,161,000 | 23.282828 | 71 | 0.71173 | false | 3.179894 | false | false | false |
ryfeus/lambda-packs | Keras_tensorflow_nightly/source2.7/tensorflow/contrib/factorization/python/ops/gen_clustering_ops.py | 1 | 12595 | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: gen_clustering_ops.cc
"""
import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _contex... | mit | 958,460,742,814,141,800 | 37.05136 | 520 | 0.679635 | false | 3.376676 | false | false | false |
numericalalgorithmsgroup/pybobyqa | pybobyqa/tests/test_model.py | 1 | 37410 | """
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 program is distributed in the hope that it will be useful,
but WITHOU... | gpl-3.0 | 3,865,291,634,601,302,000 | 51.248603 | 125 | 0.603796 | false | 3.03185 | true | false | false |
mbuesch/toprammer | libtoprammer/chips/microchip8/pic18f2320dip28.py | 1 | 5199 | """
# TOP2049 Open Source programming suite
#
# Microchip PIC18F2320 DIP18
#
# Copyright (c) 2013 Pavel Stemberk <stemberk@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 Software Found... | gpl-2.0 | -1,197,358,248,590,329,300 | 28.207865 | 79 | 0.69975 | false | 2.591725 | false | false | false |
metal-remco/afstuderen | blockly/build.py | 5 | 5154 | #!/usr/bin/python
# Compresses the core Blockly files into a single JavaScript file.
#
# Copyright 2012 Google Inc.
# http://blockly.googlecode.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 Licen... | apache-2.0 | -3,536,292,354,067,038,700 | 30.426829 | 121 | 0.635817 | false | 3.559392 | false | false | false |
hvasbath/beat | test/test_ffi_gfstacking.py | 1 | 7603 | from pyrocko import gf
from pyrocko import model, util
from pyrocko import orthodrome as otd
from pyrocko import moment_tensor as mt
from pyrocko import trace
from beat.sources import RectangularSource
from beat import ffi, models
import numpy as num
from beat import inputf, utility, heart, config
import os
km = 1000... | gpl-3.0 | 4,783,027,602,398,209,000 | 29.170635 | 140 | 0.685519 | false | 2.886484 | false | false | false |
arokem/nipype | nipype/interfaces/mne/base.py | 9 | 4469 | from nipype.interfaces.base import (traits, File, Directory, TraitedSpec,
OutputMultiPath)
import os.path as op
import glob
from nipype.interfaces.freesurfer.base import FSCommand, FSTraitedSpec
from nipype.utils.filemanip import list_to_filename
from nipype.external import six
impor... | bsd-3-clause | -5,784,901,698,516,482,000 | 43.247525 | 97 | 0.564556 | false | 3.95137 | false | false | false |
eeg/PieTree | src/PieClasses.py | 1 | 14053 | #! /usr/bin/env python
#--------------------------------------------------
# Copyright 2008 Emma Goldberg
#
# This file is part of PieTree.
#
# PieTree 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... | gpl-3.0 | -7,510,339,363,670,532,000 | 28.647679 | 76 | 0.493418 | false | 3.405137 | false | false | false |
svleeuwen/dont-be-late-appengine | src/generic/handlers/admin/admin.py | 1 | 6689 | from google.appengine.api import urlfetch
from google.appengine.ext import ndb
from base import handlers
from base.handlers import AdminAjaxHandler
from generic import utils
from generic.utils import valid_slug
from dontbelate import settings
class AdminBaseDetailHandler(handlers.AdminHandler):
"""
Base obje... | mit | 8,832,483,235,327,074,000 | 33.484536 | 119 | 0.59411 | false | 4.015006 | false | false | false |
fivethreeo/django-netaxept | djnetaxept/models.py | 1 | 2600 | from django.db import models
from djnetaxept.managers import NetaxeptPaymentManager, NetaxeptTransactionManager
STATUS_CHOICES = (
('AUTHORIZED', 'AUTHORIZED'),
('SALE', 'SALE'),
('CAPTURE', 'CAPTURE'),
('CREDIT', 'CREDIT'),
('ANNUL', 'ANNUL')
)
class NetaxeptPayment(models.Model):
transaction... | bsd-3-clause | -3,634,597,276,225,729,500 | 33.210526 | 82 | 0.692692 | false | 3.551913 | false | false | false |
startling/cytoplasm | cytoplasm/server.py | 1 | 3054 | # -*- coding: utf-8 -*-
''' These are the things that are used when you `cytoplasm serve`.
'''
import os
import sys
import cytoplasm
# make this work in either Python 2.x or 3.x
if sys.version_info.major >= 3:
from http.server import SimpleHTTPRequestHandler, HTTPServer
else:
from SimpleHTTPServer import Sim... | mit | -7,692,092,576,646,564,000 | 34.929412 | 79 | 0.67518 | false | 4.155102 | false | false | false |
saurabh6790/omnit-lib | webnotes/modules/__init__.py | 32 | 1699 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
"""
Utilities for using modules
"""
import webnotes, os
from webnotes import conf
import webnotes.utils
lower_case_files_for = ['DocType', 'Page', 'Report',
"Workflow", 'M... | mit | 7,569,147,823,721,121,000 | 30.462963 | 89 | 0.705121 | false | 3.077899 | false | false | false |
Yobretaw/Qrawler | src/scheduler.py | 1 | 1641 | from spider import Spider
import time
import sqlite3
class Scheduler:
# userList acts as a seed to spider
userList = ()
# processedDict contains all users that
# have been processed
userDict = {}
#tempList is the list that contain most recent names that
# are crawled by spider
tempList = []
# tempListCou... | apache-2.0 | 6,562,375,032,907,024,000 | 24.246154 | 94 | 0.697745 | false | 3.090395 | false | false | false |
Hillshum/gPodder-tagging | src/gpodder/gtkui/draw.py | 1 | 10580 | # -*- coding: utf-8 -*-
#
# gPodder - A media aggregator and podcast client
# Copyright (c) 2005-2010 Thomas Perl and the gPodder Team
#
# gPodder 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 | 5,748,209,790,360,395,000 | 35.736111 | 286 | 0.638091 | false | 2.861006 | false | false | false |
mrachinskiy/blender-addon-jewelcraft | op_prongs/prongs_mesh.py | 1 | 3120 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# JewelCraft jewelry design toolkit for Blender.
# Copyright (C) 2015-2019 Mikhail Rachinskiy
#
# 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, eith... | mit | -2,640,801,898,690,367,000 | 32.191489 | 141 | 0.6 | false | 2.965779 | false | false | false |
misgeatgit/atomspace | tests/cython/bindlink/test_bindlink.py | 1 | 7006 | from unittest import TestCase
import os
from opencog.atomspace import AtomSpace, TruthValue, Atom, types
from opencog.bindlink import stub_bindlink, bindlink, single_bindlink,\
first_n_bindlink, af_bindlink, \
satisfaction_link, satisfying_set, \
... | agpl-3.0 | -9,066,683,654,534,083,000 | 34.03 | 76 | 0.553954 | false | 4.327363 | true | false | false |
yzl0083/orange | Orange/testing/regression/tests_20/reference_transformvalue-domain.py | 6 | 1671 | # Description: Shows how to use value transformers
# Category: preprocessing
# Classes: TransformValue, Continuous2Discrete, Discrete2Continuous, MapIntValue
# Uses:
# Referenced:
import orange
print
def printExample(ex):
for val in ex:
print "%16s: %s" % (val.variable.name, val)
data = or... | gpl-3.0 | -1,618,650,396,070,907,400 | 21.581081 | 84 | 0.767205 | false | 3.146893 | false | false | false |
wpjesus/codematch | ietf/iesg/urls.py | 1 | 3187 | # Copyright The IETF Trust 2007, All Rights Reserved
# Portion Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that t... | bsd-3-clause | -624,618,232,841,359,700 | 55.910714 | 118 | 0.701286 | false | 3.245418 | false | false | false |
rxcomm/nymserv | setup.py | 2 | 1272 | #!/usr/bin/python
#
# vim: tabstop=4 expandtab shiftwidth=4 noautoindent
#
# nymserv.py - A Basic Nymserver for delivering messages to a shared mailbox
# such as alt.anonymous.messages.
#
# Copyright (C) 2012 Steve Crook <steve@mixmin.net>
#
# This program is free software; you can redistribute it and/or modify
# it un... | gpl-3.0 | -8,858,795,147,376,805,000 | 33.378378 | 78 | 0.711478 | false | 3.437838 | false | false | false |
libvirt/libvirt-test-API | libvirttestapi/repos/migration/migrate_tls.py | 1 | 3454 | # Copyright (C) 2010-2012 Red Hat, Inc.
# This work is licensed under the GNU GPLv2 or later.
import libvirt
from libvirt import libvirtError
from libvirttestapi.repos.domain import domain_common
from libvirttestapi.utils import utils
required_params = ('transport',
'target_machine',
... | gpl-2.0 | -2,749,031,390,518,975,000 | 32.862745 | 100 | 0.642154 | false | 3.698073 | false | false | false |
dcmorton/MalwareTools | mal_to_db.py | 1 | 3619 | #!/usr/bin/python
#
# 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 program is distributed in the hope that it ... | gpl-3.0 | -1,676,382,926,745,943,600 | 30.754386 | 108 | 0.610113 | false | 3.845909 | false | false | false |
Juniper/tempest | tempest/tests/lib/fake_credentials.py | 8 | 2480 | # Copyright 2014 Hewlett-Packard Development Company, L.P.
# 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... | apache-2.0 | 1,720,746,403,775,689,500 | 32.513514 | 78 | 0.650403 | false | 4.154104 | false | false | false |
MotherNatureNetwork/django-dynamic-forms | dynamic_forms/admin.py | 1 | 8490 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import six
from django import forms
from django.contrib import admin
from django.contrib.admin import SimpleListFilter
from django.forms.utils import flatatt
from django.utils.encoding import force_text
from django.utils.html import format_ht... | bsd-3-clause | -2,820,495,002,670,992,000 | 35.594828 | 88 | 0.595053 | false | 4.046711 | false | false | false |
cshields/satnogs-client | satnogsclient/upsat/gnuradio_handler.py | 1 | 2800 | import logging
import cPickle
import subprocess
from satnogsclient.upsat import packet_settings
from satnogsclient import settings as client_settings
from satnogsclient.observer.udpsocket import Udpsocket
from satnogsclient.upsat import packet
logger = logging.getLogger('satnogsclient')
backend_listener_sock = Udps... | agpl-3.0 | -1,079,943,015,096,485,200 | 44.16129 | 142 | 0.659643 | false | 3.473945 | false | false | false |
tst-ahernandez/earthenterprise | earth_enterprise/src/fusion/tools/gee_test/tests/common/utils.py | 3 | 2962 | #!/usr/bin/python
#
# Copyright 2017 Google 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 a... | apache-2.0 | 1,928,320,609,421,841,700 | 23.278689 | 79 | 0.674544 | false | 3.46028 | true | false | false |
RatulSaha/leetcode | 101-150/107-binary-tree-level-traversal-II.py | 1 | 1180 | """
STATEMENT
Given a binary tree, return the bottom-up level order traversal of its nodes' values.
(ie, from left to right, level by level from leaf to root).
CLARIFICATIONS
- Do we print all 'None' values that a level may have? Yes.
EXAMPLES
[3,9,20,null,null,15,7] -> [[15,7],[9,20],[3]]
COMMENTS
- The usual tree ... | mit | 7,317,192,898,427,964,000 | 30.891892 | 102 | 0.594068 | false | 3.676012 | false | false | false |
kfoltman/calfbox | sampler_api_example.py | 1 | 1432 | import os
import sys
import struct
import time
import unittest
sys.path = ["./py"] + sys.path
import cbox
global Document
Document = cbox.Document
scene = Document.get_scene()
scene.clear()
instrument = scene.add_new_instrument_layer("test_sampler", "sampler").get_instrument()
npfs = instrument.engine.load_patch_f... | gpl-3.0 | -2,428,959,159,386,839,600 | 23.271186 | 87 | 0.664106 | false | 2.336052 | false | false | false |
cangencer/hazelcast-python-client | hazelcast/proxy/base.py | 1 | 6744 | import logging
from hazelcast.future import make_blocking
from hazelcast.partition import string_partition_strategy
from hazelcast.util import enum, thread_id
def default_response_handler(future, codec, to_object):
response = future.result()
if response:
try:
codec.decode_response
... | apache-2.0 | 33,862,116,476,375,604 | 37.758621 | 120 | 0.595344 | false | 4.023866 | false | false | false |
davidmontgom/pyvmomi-community-samples | samples/list_datastore_cluster.py | 14 | 2776 | #!/usr/bin/env python
# William Lam
# www.virtuallyghetto.com
"""
vSphere Python SDK program for listing Datastores in Datastore Cluster
"""
import argparse
import atexit
from pyVmomi import vim
from pyVmomi import vmodl
from pyVim import connect
def get_args():
"""
Supports the command-line arguments listed... | apache-2.0 | 2,424,465,620,236,208,600 | 30.545455 | 78 | 0.541066 | false | 4.802768 | false | false | false |
peczony/chgksuite | chgksuite.py | 1 | 1277 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import argparse
import os
from chgk_parser import gui_parse
from chgk_composer import gui_compose
try:
from Tkinter import *
except:
from tkinter import *
import tkFileDialog
import tkFont
debug = False
def gui_choose_actio... | mit | -805,545,435,855,413,500 | 23.576923 | 64 | 0.53798 | false | 3.81194 | false | false | false |
maximtrp/posthocs | scikit_posthocs/_posthocs.py | 1 | 80919 | # -*- coding: utf-8 -*-
import numpy as np
import scipy.stats as ss
import itertools as it
from statsmodels.sandbox.stats.multicomp import multipletests
from statsmodels.stats.multicomp import pairwise_tukeyhsd
from statsmodels.stats.libqsturng import psturng
from pandas import DataFrame
def __convert_to_df(a, val_c... | gpl-3.0 | -6,722,613,776,829,086,000 | 35.764198 | 148 | 0.610618 | false | 3.315089 | true | false | false |
Canule/SwitchMouseSensitivity | Source/SwitchMouseSensitivity.py | 1 | 4196 | #v1.0.1
import win32gui, win32con, sys, os
import dataIO
sp_json = "setpoints.json"
sens = 0
def set_spi(spi, value):
value = int(value)
try:
cset=getattr(win32con,spi)
set = win32gui.SystemParametersInfo(cset, Param=value, WinIni=1)
return True
except WindowsError:
return... | mit | -4,711,427,286,756,214,000 | 35.807018 | 107 | 0.572927 | false | 3.546915 | false | false | false |
thejumono/ResumeGen | generate.py | 1 | 5082 | import json, os, sys, shutil
toVerifiy = ["config.json", "src/", "src/imgs/", "src/section.html", "src/style.css", "src/template.html"]
print("Verifying everything is good...\n")
# Making sure that every file needed is here
for v in toVerifiy:
if os.path.exists(v):
print("File " + v + " found!")
else:
print("F... | mit | 8,455,513,281,173,522,000 | 30.571429 | 152 | 0.671192 | false | 3.168329 | false | false | false |
COSMOGRAIL/PyCS | pycs/gen/util.py | 1 | 11221 | """
Various useful stuff.
For now there are some wrappers to pickle objects.
"""
import sys
import os
import glob
import cPickle as pickle
import numpy as np
import math, datetime
import pycs.gen.lc
tracei = 1 # global variable, filename to write trace pkl.
def writepickle(obj, filepath, verbose=True, protocol ... | gpl-3.0 | 8,631,004,929,809,384,000 | 25.21729 | 132 | 0.667409 | false | 2.938973 | false | false | false |
GeosoftInc/gxapi | spec/ps/NGRD.py | 1 | 4092 | from .. import Availability, Class, Constant, Define, Method, Parameter, Type
gx_class = Class('NGRD',
doc="Neargrid")
gx_defines = [
]
gx_methods = {
'': [
Method('_Clear_NGRD', module='geocslib', version='6.0.0',
availability=Availability.EXTENSION,
doc=... | bsd-2-clause | -6,933,728,253,875,308,000 | 41.185567 | 101 | 0.495357 | false | 4.848341 | false | false | false |
wxgeo/geophar | wxgeometrie/sympy/printing/tests/test_octave.py | 3 | 13617 | from sympy.core import (S, pi, oo, symbols, Function, Rational, Integer,
Tuple, Symbol)
from sympy.core import EulerGamma, GoldenRatio, Catalan, Lambda, Mul, Pow
from sympy.functions import (Piecewise, sqrt, ceiling, exp, sin, cos, LambertW,
sinc, Max, Min, arg, im, ... | gpl-2.0 | 5,848,072,156,838,027,000 | 33.0425 | 91 | 0.507895 | false | 2.484401 | true | false | false |
alviproject/alvi | alvi/tests/test_client/test_graph.py | 1 | 3376 | import logging
import unittest
from selenium.webdriver.common.by import By
import alvi.tests.pages as pages
from alvi.tests.test_client.base import TestContainer
logger = logging.getLogger(__name__)
class TestGraph(TestContainer):
def test_create_node(self):
graph_page = pages.Graph(self._browser.driver,... | mit | 5,794,634,751,119,835,000 | 45.246575 | 116 | 0.668246 | false | 3.673558 | true | false | false |
qsnake/abinit | util/users/xmlTagger.py | 4 | 4494 | #=================================
# xmlTagger.py
version = '1.0'
#=================================
# last modified : january 17 2006
# written by Benjamin Tardif
# benjamin.tardif@umontreal.ca
#=================================
header = '\n#==============\n# xmlTagger.py\n# version %s\n#==============' %versi... | gpl-3.0 | 3,014,264,779,602,103,000 | 33.666667 | 101 | 0.414553 | false | 4.126722 | false | false | false |
thisismedium/md | md/stm/journal.py | 1 | 5664 | from __future__ import absolute_import
import copy, threading
from ..prelude import *
from .interfaces import Cursor, Journal, Memory, Change, CannotCommit
from .log import log, weaklog
__all__ = (
'memory', 'journal',
'readable_state', 'original_state', 'writable_state',
'change_state', 'copy_state', 'com... | bsd-2-clause | 8,051,461,610,319,959,000 | 25.344186 | 75 | 0.603814 | false | 3.819285 | false | false | false |
inveniosoftware-contrib/invenio-workflows | tests/alembic/test_alembic.py | 2 | 2121 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2017 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 later... | gpl-2.0 | -188,392,670,502,221,000 | 34.949153 | 76 | 0.721829 | false | 3.760638 | false | false | false |
m-nez/tetroll | blocks.py | 1 | 5019 | # -*- coding: utf-8 -*-
# Copyright 2015 Michał Nieznański
#
# This file is part of Tetroll.
#
# Tetroll is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your... | gpl-3.0 | 3,810,933,165,882,452,000 | 29.222892 | 72 | 0.404624 | false | 3.199617 | false | false | false |
jgarcial/star_migration | star_export.py | 1 | 10732 | # -*- coding: utf-8 -*-
import sys
import codecs
from win32com.client import Dispatch
from collections import defaultdict
from mapping import fields, tables
from utils import dump_to_json_file, data_dir, log_dir
sub = '\n ' #'|'
sep = '\t|'
sep_short = '|'
tag_start = '\n'
tag_end = '' #'%'
record_start = '='*1... | gpl-3.0 | 9,014,909,907,211,440,000 | 44.2827 | 182 | 0.486303 | false | 3.12704 | false | false | false |
richlewis42/scikit-chem | skchem/pandas_ext/structure_methods.py | 1 | 2405 | #! /usr/bin/env python
#
# Copyright (C) 2015-2016 Rich Lewis <rl403@cam.ac.uk>
# License: 3-clause BSD
""" # skchem.pandas.structure_methods
Tools for adding a default attribute to pandas objects."""
from sklearn.manifold import TSNE, MDS
from sklearn.decomposition import PCA
import pandas as pd
from pandas.cor... | bsd-3-clause | 7,766,510,744,667,272,000 | 26.643678 | 77 | 0.62578 | false | 3.632931 | false | false | false |
dsparrow27/zoocore | zoo/libs/pyqt/extended/pythoneditor.py | 1 | 8958 | import os
import sys
import traceback
from qt import QtWidgets, QtGui, QtCore
from zoo.libs.pyqt.syntaxhighlighter import highlighter
from zoo.libs.pyqt.widgets import layouts
class NumberBar(QtWidgets.QWidget):
def __init__(self, edit):
super(NumberBar, self).__init__(edit)
self.edit = edit
... | gpl-3.0 | -568,334,776,551,056,200 | 32.803774 | 121 | 0.579035 | false | 4.201689 | false | false | false |
aloverso/loanbot | conversationHandler.py | 1 | 14630 | import time
import messengerClient
import sendEmailToLibrarian
'''
A class that deals with the messages we receive from users
'''
class ConversationHandler():
'''
create a new conversation handler with a given database client
'''
def __init__(self, database_client):
self.database_client = datab... | mit | 7,896,362,138,672,726,000 | 43.907692 | 205 | 0.54135 | false | 4.275044 | false | false | false |
HTTP-APIs/hydrus | hydrus/conf.py | 1 | 3125 | """
Global variables are loaded or set here:
DEBUG
PORT
API_NAME
DB_URL
APIDOC_OBJ
HYDRUS_SERVER_URL
FOUND_DOC
"""
import os
import json
import yaml
import logging
from os.path import abspath, dirname
from pathlib import Path
from importlib.machinery import SourceFileLoader
from hydra_openap... | mit | -6,645,050,183,180,705,000 | 27.669725 | 85 | 0.62176 | false | 3.535068 | false | false | false |
alephobjects/Cura2 | cura/Settings/QualityAndUserProfilesModel.py | 1 | 2957 | # Copyright (c) 2016 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from UM.Application import Application
from UM.Settings.ContainerRegistry import ContainerRegistry
from cura.QualityManager import QualityManager
from cura.Settings.ProfilesModel import ProfilesModel
from cura.Settin... | lgpl-3.0 | -6,902,799,699,902,808,000 | 53.792453 | 166 | 0.692256 | false | 4.248563 | false | false | false |
itsmeolivia/NOT-a-trivial-pursuit | steps/the_gender_binary.py | 1 | 1258 | import sqlite3 as sql
import os
def _url_for_id(id):
return 'http://www.j-archive.com/showplayer.php?player_id=' + str(id)
def the_gender_binary():
print 'Manually classifying genders...'
database_path = os.path.abspath('../archive.db')
con = sql.connect(database_path)
cur = con.cursor()
... | mit | -6,991,509,410,899,145,000 | 24.673469 | 107 | 0.566773 | false | 4.019169 | false | false | false |
TheChymera/E2att | analysis/d_prime.py | 1 | 4383 | #!/usr/bin/env python
from __future__ import division
__author__ = 'Horea Christian'
from os import listdir, path
from lefunctions import get_dataframes_for_dp
from scipy.stats import ttest_ind, norm, sem, f_oneway
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import axis
from m... | gpl-3.0 | 6,385,148,462,085,533,000 | 44.185567 | 250 | 0.663244 | false | 2.164444 | false | false | false |
sean-obrien/rpotter | rpotter.py | 1 | 8391 | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
_\
\
O O-O
O O
O
Raspberry Potter
Version 0.1.5
Use your own wand or your interactive Harry Potter wands to control the IoT.
Updated for OpenCV 3.2
If you have an older version of OpenCV installed, please uninstall fully (check your cv2 version in python) and then... | mit | -5,147,636,503,961,173,000 | 36.627803 | 471 | 0.621618 | false | 3.117013 | false | false | false |
jjongbloets/julesTk | julesTk/view/window.py | 1 | 1675 | """Provides TopLevel views; i.e. Windows"""
from julesTk.view import tk, BaseView
from julesTk.view.viewset import BaseViewSet
__author__ = "Joeri Jongbloets <joeri@jongbloets>"
class Window(tk.Toplevel, BaseView):
def __init__(self, parent, controller):
tk.Toplevel.__init__(self, parent)
BaseV... | mit | -6,477,295,053,180,432,000 | 24.378788 | 76 | 0.614925 | false | 4.177057 | false | false | false |
foxbunny/seagull | seagull/gallery/index.py | 1 | 5989 | #
# Seagull photo gallery app
# Copyright (C) 2016 Hajime Yamasaki Vukelic
#
# 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
# ver... | gpl-3.0 | -8,195,022,967,904,559,000 | 30.521053 | 79 | 0.615963 | false | 4.262633 | false | false | false |
glenjarvis/trestle | src/blog_project/blog/routes.py | 1 | 2863 | #!/usr/bin/env python
"""Additional URL/View routing for URL patterns and views
Django matches URL patterns based solely on pattern (not on pattern and HTTP
Verb). Other frameworks match on both.
In order to follow a more traditional convention as seen in other frameworks,
these methods will additionally route via t... | bsd-3-clause | -7,224,021,736,548,871,000 | 26.528846 | 77 | 0.645477 | false | 4.078348 | false | false | false |
hanya/MRI | pythonpath/mytools_Mri/__init__.py | 1 | 27043 | # Copyright 2011 Tsutomu Uchino
#
# 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 ... | apache-2.0 | 5,764,995,281,496,107,000 | 41.188768 | 158 | 0.531598 | false | 4.161102 | true | false | false |
ritstudentgovernment/chargeflask | app/invitations/controllers.py | 1 | 8705 | """
filename: controllers.py
description: Controllers for email invitations.
created by: Omar De La Hoz (oed7416@rit.edu)
created on: 10/12/17
"""
from flask_socketio import emit
from app.decorators import ensure_dict, get_user
from app import app, db, socketio
from app.users.models import Users
from app.invitations.m... | mit | -3,525,684,910,734,482,000 | 28.709898 | 92 | 0.597932 | false | 3.720085 | true | false | false |
torchingloom/edx-platform | cms/djangoapps/contentstore/features/problem-editor.py | 1 | 9464 | # disable missing docstring
# pylint: disable=C0111
import json
from lettuce import world, step
from nose.tools import assert_equal, assert_true # pylint: disable=E0611
from common import type_in_codemirror, open_new_course
from advanced_settings import change_value
from course_import import import_file, go_to_import... | agpl-3.0 | 6,597,404,825,452,531,000 | 31.522337 | 116 | 0.700127 | false | 3.350088 | false | false | false |
magudev17/gifsta | gifspool/migrations/0001_initial.py | 1 | 5240 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-05-13 21:34
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import gifspool.models
class Migration(migrations.Migration):
initial = True
dependenci... | mit | 7,252,843,298,969,034,000 | 49.384615 | 144 | 0.580534 | false | 4.077821 | false | false | false |
flavour/eden | modules/templates/SAFIRE/config.py | 5 | 54753 | # -*- coding: utf-8 -*-
from collections import OrderedDict
from gluon import current, URL
from gluon.storage import Storage
def config(settings):
"""
Template settings for SaFiRe: Sahana First Response
http://eden.sahanafoundation.org/wiki/BluePrint/SAFIRE
"""
T = current.T
settin... | mit | -8,412,422,623,254,072,000 | 44.287841 | 198 | 0.430059 | false | 5.09425 | false | false | false |
mcneela/Retina | demos/dim_reduction/pca_tester.py | 1 | 2344 | """
Executable code for the PCA user story.
Run disc() to explore a randomly generated flat disc data. Run hypesphere to explore a high dimensional ball
of randomly generated data.
"""
import pca_disc
from pca_disc import *
from PyDSTool.Toolbox import synthetic_data as sd
import random
import numpy as np
import __f... | bsd-3-clause | -5,339,967,546,326,205,000 | 29.441558 | 108 | 0.601962 | false | 2.879607 | false | false | false |
inveniosoftware/invenio-oauthclient | tests/test_app.py | 1 | 4284 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Test helpers."""
import os
from copy import deepcopy
import pytest
from flask im... | mit | -2,229,394,456,313,082,400 | 28.342466 | 75 | 0.665033 | false | 3.781112 | true | false | false |
mgiugliano/iNeuron | iNeuron.py | 1 | 5988 | # iNeuron
#
#
# Michele Giugliano, 18-19/10/2014, Antwerpen
# http://www.ua.ac.be/michele.giugliano
#
# pythonista://MG/iNeuron?action=run
#
import string
import sound
from scene import *
from random import *
from time import localtime
from itertools import chain
from math import sin, exp, fmod
ipad = False #will be... | gpl-2.0 | -2,123,712,184,735,349,500 | 35.072289 | 149 | 0.550434 | false | 2.825861 | false | false | false |
BirkbeckCTP/janeway | src/core/homepage_elements/featured/plugin_settings.py | 1 | 1922 | from django.db.utils import OperationalError
from django.contrib.contenttypes.models import ContentType
PLUGIN_NAME = 'Featured Articles'
DESCRIPTION = 'This is a homepage element that renders featured articles.'
AUTHOR = 'Martin Paul Eve'
def install():
import core.models as core_models
import journal.model... | agpl-3.0 | -9,114,365,655,021,099,000 | 32.137931 | 85 | 0.640999 | false | 4.280624 | false | false | false |
jcaraballo17/secret-webpage | woodypage/settings/base.py | 1 | 2559 | """
Django settings for woodypage project.
To setup the settings json file:
1. rename settings_template.json to settings.json
2. write all the necessary data in it
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
import json
BASE_DIR = os.path.dirname(os.path.dirname(__fil... | apache-2.0 | 8,229,514,066,246,645,000 | 24.088235 | 89 | 0.65338 | false | 3.671449 | false | false | false |
systers/postorius | src/postorius/templatetags/nav_helpers.py | 1 | 1532 | # -*- coding: utf-8 -*-
# Copyright (C) 1998-2018 by the Free Software Foundation, Inc.
#
# This file is part of Postorius.
#
# Postorius 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 | -1,302,206,280,047,807,700 | 33.044444 | 78 | 0.698433 | false | 3.878481 | false | false | false |
michaelpacer/scikit-image | doc/examples/plot_equalize.py | 18 | 2786 | """
======================
Histogram Equalization
======================
This examples enhances an image with low contrast, using a method called
*histogram equalization*, which "spreads out the most frequent intensity
values" in an image [1]_. The equalized image has a roughly linear cumulative
distribution function.... | bsd-3-clause | -7,633,942,980,547,687,000 | 28.020833 | 78 | 0.700646 | false | 3.002155 | false | false | false |
ardekantur/pyglet | experimental/swigtypes/parse.py | 28 | 12636 | #!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import gzip
import cPickle as marshal
import optparse
import os
import sys
import xml.sax
def parse_type(type_string):
'''Get a tuple of the type components for a SWIG-formatted type.
For example, given the type "p.f(p.... | bsd-3-clause | 9,217,239,663,594,359,000 | 26.649891 | 78 | 0.517965 | false | 3.95493 | false | false | false |
mbr0wn/gnuradio | gr-uhd/python/uhd/__init__.py | 6 | 3117 | #
# Copyright 2010-2012 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
#
'''
Provides source and sink blocks to interface with the UHD library.
Used to send and receive data between the Ettus Research, LLC product
line.
'''
###########################... | gpl-3.0 | 3,382,835,436,989,460,500 | 44.173913 | 104 | 0.580045 | false | 3.724014 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.