repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Johnzero/OE7 | openerp/addons-fg/openerp-magento-master/tools/magento_update_images.py | 1 | 3107 | """
Update product images from Magento -> OpenERP
"""
import xmlrpclib
import optparse
from config import *
from magento import *
from ooop import OOOP
def main():
url = 'http' + (secure and 's' or '') + '://' + server
o = OOOP(user=username,pwd=password,dbname=dbname,uri=url,port=port)
url = 'http' + ... | agpl-3.0 | 5,040,203,752,295,153,000 | 38.329114 | 125 | 0.471516 | false | 4.273728 | false | false | false |
ProfessorX/Config | .PyCharm30/system/python_stubs/-1247971765/PyQt4/QtCore/QStateMachine.py | 1 | 4846 | # encoding: utf-8
# module PyQt4.QtCore
# from /usr/lib/python3/dist-packages/PyQt4/QtCore.cpython-34m-x86_64-linux-gnu.so
# by generator 1.135
# no doc
# imports
import sip as __sip
from .QState import QState
class QStateMachine(QState):
""" QStateMachine(QObject parent=None) """
def addDefaultAnimation(se... | gpl-2.0 | -69,707,933,853,761,150 | 35.712121 | 123 | 0.65064 | false | 4.296099 | false | false | false |
fabisel/sem-metadata-ui | mapapp/views.py | 1 | 3147 | from django.shortcuts import render
# from django.views.decorators.csrf import csrf_exempt
from tempfile import NamedTemporaryFile
import os, sys
from django.http import HttpResponse
# import http.client
# python2 import httplib
# this for python3 maybe:
# import urllib.request
# import urllib.parse
# this for pytho... | apache-2.0 | 5,562,341,868,102,526,000 | 34.761364 | 89 | 0.634573 | false | 3.706714 | false | false | false |
rodo/pyrede | pyrede/provider/management/commands/import_latest.py | 1 | 1970 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013 Rodolphe Quiédeville <rodolphe@quiedeville.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of... | gpl-3.0 | 5,167,084,117,490,336,000 | 33.54386 | 75 | 0.667852 | false | 3.875984 | false | false | false |
dash1291/major | webserver/conceptual/conceptual/settings.py | 1 | 2764 | """
Django settings for conceptual 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.path.join(BASE_DIR, ...)... | gpl-3.0 | -395,477,153,099,388,900 | 23.034783 | 73 | 0.702605 | false | 3.286564 | false | false | false |
ibm-security-intelligence/api-samples | introduction/04_BodyParameters.py | 1 | 2433 | #!/usr/bin/env python3
# This sample demonstrates how to send a parameter in the body of a request.
# For a list of the endpoints that you can use along with the parameters that
# they accept you can view the REST API interactive help page on your
# deployment at https://<hostname>/api_doc
# You can also retrieve a li... | apache-2.0 | -325,346,525,511,229,600 | 35.313433 | 78 | 0.70448 | false | 3.969005 | false | false | false |
google/deluca | deluca/envs/classic/_cartpole.py | 1 | 1907 | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 921,190,591,304,049,000 | 33.672727 | 91 | 0.618249 | false | 3.05609 | false | false | false |
JulienCote/advent_of_code_2015 | day22/wizard_battle.py | 1 | 3890 | import re
import time
lowest_cost = 9999999999999
best_spells = []
# MUCH faster than deepcopy
def spell_copy(spells):
return {'recharge' : [x for x in spells['recharge']],
'poison' : [x for x in spells['poison']],
'shield' : [x for x in spells['shield']],
'magic missile' : [x for x in spells['magic missile... | mit | 5,469,189,831,190,145,000 | 30.128 | 136 | 0.651414 | false | 2.547479 | false | false | false |
brapastor/djdiscuss | discuss/discuss/apps/discuss/migrations/0001_initial.py | 1 | 2497 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-22 05:10
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | mit | -6,811,147,327,068,727,000 | 34.169014 | 114 | 0.548258 | false | 4.53176 | false | false | false |
choderalab/perses | perses/utils/openeye.py | 1 | 17484 | """
Utility functions for simulations using openeye toolkits
"""
__author__ = 'John D. Chodera'
from simtk import unit
from simtk.openmm import app
import simtk.unit as unit
import numpy as np
import logging
logging.basicConfig(level=logging.NOTSET)
_logger = logging.getLogger("utils.openeye")
_logger.setLevel(lo... | mit | 4,699,503,931,967,505,000 | 29.406957 | 186 | 0.658259 | false | 3.792625 | false | false | false |
gerruz/DeepConvSep | examples/hiphopss/trainCNN.py | 1 | 19338 | """
This file is part of DeepConvSep.
Copyright (c) 2014-2017 Marius Miron <miron.marius at gmail.com>
DeepConvSep is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Licen... | agpl-3.0 | 5,829,622,917,967,645,000 | 42.85034 | 242 | 0.644327 | false | 3.478058 | true | false | false |
vhosouza/invesalius3 | invesalius/gui/bitmap_preview_panel.py | 1 | 20494 | import wx
import vtk
import time
import numpy
from vtk.util import numpy_support
from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor
from pubsub import pub as Publisher
import invesalius.constants as const
import invesalius.data.vtk_utils as vtku
import invesalius.data.converters as converters... | gpl-2.0 | 4,217,784,846,437,319,000 | 29.864458 | 118 | 0.592368 | false | 3.612551 | false | false | false |
yehnan/python_book_yehnan | ch13/ch13_tkinter.py | 1 | 1091 |
from tkinter import *
def fib(n):
a, b = 0, 1
for i in range(n):
a, b = b, a+b
return a
class App(Frame):
def __init__(self, master=None):
Frame.__init__(self, master)
self.pack()
self.entry_n = Entry(self, width=10)
self.entry_n.pack(... | gpl-2.0 | -7,059,458,919,310,843,000 | 19.82 | 59 | 0.454629 | false | 3.60066 | false | false | false |
kdaily/altanalyze | sampleIndexSelection.py | 1 | 3739 | import sys,string
import os
def makeTestFile():
all_data = [['name','harold','bob','frank','sally','kim','jim'],
['a','0','0','1','2','0','5'],['b','0','0','1','2','0','5'],
['c','0','0','1','2','0','5'],['d','0','0','1','2','0','5']]
input_file = 'test.txt'
export_object = open(input_... | apache-2.0 | 1,056,679,316,745,209,900 | 38.776596 | 156 | 0.562182 | false | 3.626576 | false | false | false |
beeftornado/sentry | src/sentry/migrations/0126_make_platformexternalissue_group_id_flexfk.py | 1 | 2332 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-11-09 21:35
from __future__ import unicode_literals
from django.db import migrations
import django.db.models.deletion
import sentry.db.models.fields.foreignkey
class Migration(migrations.Migration):
# This flag is used to mark that a migration shouldn... | bsd-3-clause | 2,365,008,032,185,962,500 | 39.912281 | 88 | 0.603345 | false | 4.711111 | false | false | false |
HeavenDuke/DeepIC | models/HybridResSPPNet.py | 1 | 2266 | from keras.models import Model
from keras.layers import Dense, ZeroPadding2D, BatchNormalization, Conv2D, MaxPooling2D, Activation, Input, Concatenate
from keras.optimizers import RMSprop
from layers.SpatialPyramidPooling import SpatialPyramidPooling
from keras.applications.resnet50 import identity_block, conv_block
... | mit | -6,292,805,518,916,216,000 | 46.208333 | 123 | 0.657988 | false | 3.178121 | false | false | false |
USGSDenverPychron/pychron | pychron/remote_hardware/protocols/laser_protocol.py | 1 | 1676 | '''
Copyright 2011 Jake Ross
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing:None, software
... | apache-2.0 | 2,419,733,984,905,574,400 | 30.037037 | 77 | 0.547733 | false | 3.87067 | false | false | false |
cherrygirl/micronaet-mx8 | mx_order_report_aeroo/purchase.py | 1 | 3153 | # -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License a... | agpl-3.0 | 4,859,380,557,574,244,000 | 35.241379 | 79 | 0.587377 | false | 4.226542 | false | false | false |
wazo-pbx/xivo-auth | wazo_auth/plugins/external_auth/microsoft/websocket_oauth2.py | 1 | 2605 | # Copyright 2019-2020 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later
import json
import logging
from threading import Thread
import websocket
from wazo_auth.exceptions import ExternalAuthAlreadyExists
from wazo_auth.database.helpers import commit_or_rollback
from .helpers import... | gpl-3.0 | -8,497,690,443,662,269,000 | 31.160494 | 87 | 0.596545 | false | 3.88806 | false | false | false |
spirali/aislinn | src/aislinn/vgtool/resource.py | 1 | 2249 | #
# Copyright (C) 2014 Stanislav Bohm
#
# This file is part of Aislinn.
#
# Aislinn is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 2 of the License, or
# (at your option) any later v... | gpl-2.0 | 7,020,461,418,649,479,000 | 28.592105 | 73 | 0.617608 | false | 3.633279 | false | false | false |
dpinney/omf | omf/scratch/amiAnomalyDetection/meterDataEnergyUnitedConversion.py | 1 | 3750 | ''' Convert meter data from EU format to our anomly detection input format. '''
'''A script to read data from inCSV, and write it to outCSV'''
import csv, os, datetime, operator
from os.path import join as pJoin
#import json, pprint, random
#import matplotlib.pyplot as plt
#import numpy as np
# Path variables... | gpl-2.0 | 6,837,612,547,506,741,000 | 32.740741 | 101 | 0.635467 | false | 2.906977 | true | false | false |
AKSW/LODStats_WWW | rdfstats/controllers/vocabularies.py | 1 | 5389 | """
Copyright 2012 Jan Demter <jan@demter.de>
This file is part of LODStatsWWW.
LODStats 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.
L... | gpl-3.0 | 8,171,228,687,355,812,000 | 41.433071 | 109 | 0.601781 | false | 3.708878 | false | false | false |
googleads/google-ads-python | google/ads/googleads/v6/services/types/remarketing_action_service.py | 1 | 5168 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 | 5,328,040,285,230,881,000 | 34.156463 | 140 | 0.688467 | false | 4.201626 | false | false | false |
memsharded/conan | conans/client/generators/b2.py | 1 | 17176 |
"""
B2 Conan Generator
This is a generator for conanbuildinfo.jam files declaring all conan dependencies
as B2 project and library targets. This generates multiple tagged build info
source files, each containing a single variant as specified by the user's
conan install profile in addition to the central generic one th... | mit | 7,826,880,889,923,561,000 | 38.851508 | 130 | 0.561074 | false | 3.483269 | false | false | false |
ndparker/tdi3 | tdi/_util.py | 1 | 1257 | # -*- coding: ascii -*-
u"""
:Copyright:
Copyright 2006 - 2017
Andr\xe9 Malo or his licensors, as applicable
:License:
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.... | apache-2.0 | -3,375,396,118,363,708,000 | 23.173077 | 73 | 0.661098 | false | 3.915888 | false | false | false |
eisen-dev/eisen_engine | resources/HostsList.py | 1 | 6165 | # (c) 2015, Alice Ferrazzi <alice.ferrazzi@gmail.com>
#
# This file is part of Eisen
#
# Eisen 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 v... | gpl-3.0 | -6,245,616,614,568,332,000 | 29.83 | 89 | 0.554745 | false | 3.81026 | false | false | false |
ogun/starmap | starcharts/svg.py | 1 | 2937 | XML_HEADER = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>'
SVG_HEADER = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="600" height="600" viewBox="0 0 600 600">'
SVG_FOOTER = "</svg>"
class Svg:
def __init__(self):
self.elements = []
def line(self, x1, y1, x2, y2, width, colo... | mit | 6,502,522,732,376,947,000 | 36.653846 | 168 | 0.431733 | false | 3.13113 | false | false | false |
ferrisvienna/Disco_Defense | data/discodefense.py | 1 | 22583 | #004BB1#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Disco Defense
Open source game by Ferris(FerrisofVienna) Bartak
and Paolo "Broccolimaniac" Perfahl
using python3 and pygame
"""
#the next line is only needed for python2.x and not necessary for python3.x
from __future__ import print_function, division
import ra... | gpl-3.0 | 40,689,081,233,943,590 | 40.816667 | 121 | 0.526239 | false | 3.60201 | false | false | false |
iagcl/data_pipeline | data_pipeline/utils/dbuser.py | 1 | 6117 | # 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 u... | apache-2.0 | 7,837,035,938,694,188,000 | 29.893939 | 79 | 0.607487 | false | 3.987614 | false | false | false |
SCLT1975/python_training | generator/contact.py | 1 | 2052 | from model.new_user_data import N_u_d
import random
import string
import os.path
import json
import getopt
import sys
import jsonpickle
try:
opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of contacts", "file"])
except getopt.GetoptError as err:
getopt.usage()
sys.exit(2)
n = 5
f = "data/contac... | apache-2.0 | 2,522,733,888,872,232,400 | 38.461538 | 119 | 0.586257 | false | 3.226415 | false | false | false |
pwaller/pgi | pgi/codegen/fields.py | 1 | 5203 | # Copyright 2013 Christoph Reiter
#
# 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 License, or (at your option) any later version.
from pgi.clib.gir import G... | lgpl-2.1 | 650,259,675,449,957,000 | 21.52381 | 75 | 0.620796 | false | 3.432058 | false | false | false |
jonathaneunice/quoter | quoter/markdown.py | 1 | 3316 |
import re
import six
from options import Options, OptionsClass, Prohibited, Transient
from .util import *
from .quoter import Quoter
from .joiner import joinlines
from .styleset import StyleSet
# MD_ATTRS = set(['a', 'p', 'doc', 'h'])
# MD_ATTRS.update(QUOTER_ATTRS)
class MDQuoter(Quoter):
"""
A more soph... | apache-2.0 | -5,787,263,924,212,046,000 | 25.741935 | 72 | 0.578709 | false | 3.475891 | false | false | false |
mice-software/maus | src/common_py/calibration/get_kl_calib.py | 1 | 3304 | # This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
#
# MAUS 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.
#
# MAUS... | gpl-3.0 | 456,927,340,829,286,300 | 36.545455 | 80 | 0.572942 | false | 4.446837 | false | false | false |
GiulianoFranchetto/zephyr | scripts/gen_relocate_app.py | 1 | 15643 | #!/usr/bin/env python3
#
# Copyright (c) 2018 Intel Corporation.
#
# SPDX-License-Identifier: Apache-2.0
#
# This script will relocate .text, .rodata, .data and .bss sections from required files
# and places it in the required memory region. This memory region and file
# are given to this python script in the form of ... | apache-2.0 | -298,017,829,541,320,450 | 35.981087 | 94 | 0.58825 | false | 3.621903 | false | false | false |
mafik/pargen | ngram_model.py | 1 | 4470 | import model
from utils import *
import data
with status("Loading n-gram model..."):
n = 5
ngram_db_path = "ngram_db_{}.npz".format(n)
train_test_divider = int(len(data.lengths) * 0.80)
try:
npzfile = np.load(ngram_db_path)
ngram_dataset = npzfile["ngram_dataset"]
ngram_probability_table = npzfil... | agpl-3.0 | -1,377,047,284,201,694,000 | 43.7 | 141 | 0.624385 | false | 3.161245 | false | false | false |
idle-code/ContextShell | tests/unit/fakes.py | 1 | 1444 | from collections import OrderedDict
from typing import Dict
from contextshell.action import Action, ActionArgsPack, ActionExecutor
from contextshell.path import NodePath
class FakeTree:
def __init__(self):
self.node_map : Dict[NodePath, FakeTree] = dict()
def get(self, path):
return self.nod... | mit | -7,868,696,964,391,235,000 | 29.083333 | 87 | 0.657895 | false | 4.197674 | false | false | false |
marnnie/Cable-buenaventura | plugin.video.genesis/resources/lib/indexers/movies.py | 1 | 52852 | # -*- coding: utf-8 -*-
'''
Genesis Add-on
Copyright (C) 2015 lambda
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 ... | gpl-2.0 | 3,366,632,997,002,474,500 | 42.039088 | 444 | 0.505109 | false | 3.629447 | false | false | false |
NeuralProsthesisLab/unlock | unlock/util/signal.py | 1 | 4991 | # Copyright (c) James Percent, Byron Galbraith and Unlock contributors.
# All rights reserved.
# 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 notic... | bsd-3-clause | 2,712,801,871,920,440,300 | 46.542857 | 101 | 0.660589 | false | 4.276778 | false | false | false |
ingadhoc/odoo-infrastructure | infrastructure/models/server_docker_image.py | 1 | 1758 | # -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in module root
# directory
##############################################################################
from openerp import models, fields, api
from .serv... | agpl-3.0 | 1,706,531,932,765,589,000 | 30.963636 | 78 | 0.5438 | false | 3.915367 | false | false | false |
csarn/qthexedit | besthex.py | 1 | 11828 | # PyQt hex editor widget
# Copyright (C) 2015 Christoph Sarnowski
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) ... | gpl-2.0 | 5,709,250,314,761,372,000 | 31.584022 | 151 | 0.605428 | false | 3.772887 | false | false | false |
ex/js | lib/closure-library/closure/bin/build/source.py | 1 | 3566 | # Copyright 2009 The Closure Library Authors. 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 required by a... | mit | 1,210,208,933,829,568,300 | 27.758065 | 80 | 0.661806 | false | 3.793617 | false | false | false |
vanant/googleads-dfa-reporting-samples | python/v2.0/create_subaccount.py | 1 | 2495 | #!/usr/bin/python
#
# Copyright 2014 Google Inc. 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 required b... | apache-2.0 | 7,794,931,736,434,190,000 | 30.1875 | 77 | 0.703407 | false | 3.75753 | false | false | false |
ForsvaretsForskningsinstitutt/Paper-NLLS-speedup | case_generator/nlls.py | 1 | 1232 | import numpy as np
import random
class NonLinearLeastSquares(object):
samples = []
grid_size = None
alpha = 2.0
def __init__(self, grid_size):
self.grid_size = np.array(grid_size)
def setSamples(self,samples):
self.samples = samples
def pkl(self,k,l):
return ... | gpl-3.0 | 7,997,464,228,841,553,000 | 27 | 170 | 0.590097 | false | 3.267905 | false | false | false |
DemocracyLab/CivicTechExchange | civictechprojects/models.py | 1 | 45731 | from django.conf import settings
from django.core.exceptions import PermissionDenied
from django.db import models
from django.utils import timezone
from django.contrib.gis.db.models import PointField
from enum import Enum
from democracylab.models import Contributor
from common.models.tags import Tag
from taggit.manager... | mit | 7,606,037,183,108,077,000 | 43.057803 | 137 | 0.654436 | false | 3.860133 | false | false | false |
ChawalitK/odoo | addons/website_quote/controllers/main.py | 1 | 13530 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from openerp import SUPERUSER_ID
from openerp.addons.web import http
from openerp.addons.web.http import request
import werkzeug
import datetime
import time
from openerp.tools.translate import _
from openerp.addons.webs... | gpl-3.0 | -222,172,791,168,102,180 | 56.088608 | 181 | 0.607317 | false | 3.833947 | false | false | false |
PDX-Flamingo/codonpdx-python | codonpdx/calc.py | 1 | 5043 | #!/usr/bin/env python
from __future__ import division
from collections import defaultdict
from db import dbManager
# compare a virus to organisms in a sequence database
# db: the database manager used to get the data from
# virus_name: the accession and version number of the virus
# virus_db: the location of the inp... | apache-2.0 | -8,722,274,283,386,708,000 | 42.102564 | 79 | 0.622447 | false | 3.463599 | false | false | false |
AltarBeastiful/rateItSeven | tests/senscritique/test_sc_list.py | 1 | 1608 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# === This file is part of RateItSeven ===
#
# Copyright 2015, Rémi Benoit <r3m1.benoit@gmail.com>
# Copyright 2015, Paolo de Vathaire <paolo.devathaire@gmail.com>
#
# RateItSeven is free software: you can redistribute it and/or modify
# it under the terms of the... | gpl-3.0 | 8,781,280,135,167,318,000 | 39.175 | 89 | 0.710641 | false | 3.220441 | true | false | false |
WesleyPeng/uiXautomation | src/main/python/taf/foundation/plugins/web/selenium/controls/combobox.py | 1 | 3859 | # Copyright (c) 2017-2018 {Flair Inc.} WESLEY PENG
#
# 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 agre... | apache-2.0 | -4,045,562,744,497,723,400 | 30.892562 | 77 | 0.558176 | false | 4.51345 | false | false | false |
blckshrk/Weboob | setup.py | 1 | 6697 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010-2013 Christophe Benz, Laurent Bachelier
#
# This file is part of weboob.
#
# weboob 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, ei... | agpl-3.0 | -4,294,198,527,596,077,000 | 29.720183 | 149 | 0.60669 | false | 3.484391 | false | false | false |
cornell-brg/pymtl | pymtl/tools/integration/systemc_tests/multiple_models/RegAndIncr_test.py | 1 | 1988 | #=======================================================================
# RegAndIncr_test.py
#=======================================================================
import random
import pytest
from pymtl import *
from RegAndIncrSC import RegAndIncrSC
simple_test_vectors = [
( 4, 5),
( 6, 7),
( 2, 3),... | bsd-3-clause | -3,226,548,373,729,259,500 | 19.708333 | 72 | 0.445171 | false | 4.284483 | true | false | false |
kelle/astropy | astropy/coordinates/builtin_frames/fk5.py | 1 | 3033 | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, unicode_literals, division,
print_function)
from ..representation import SphericalRepresentation
from ..baseframe import (BaseCoordinateFrame, frame_transform_graph,
... | bsd-3-clause | 4,531,921,251,039,461,400 | 38.38961 | 83 | 0.672931 | false | 4.087601 | false | false | false |
francisco-betancourt/ctrlpyme4 | models/settings.py | 1 | 4402 | # settings list
from datetime import timedelta
from constants import FLOW_BASIC, FLOW_MULTIROLE
COMPANY_NAME = 'CtrlPyME'
COMPANY_SLOGAN = 'Press Ctrl + PyME to begin.'
COMPANY_LOGO_URL = URL('static', 'images/ctrlPyME_logo.png')
# the workflow determines how the employees will interact with the application
COMPANY_... | gpl-3.0 | -7,520,343,691,024,349,000 | 31.367647 | 161 | 0.677192 | false | 3.006831 | false | false | false |
Forritarar-FS/Kastali | pythonHus/room22.py | 1 | 27175 | import os
from . import room
def do():
got_thing = False
x = 30
while x < 40:
path = "C:\Python"+ str(x) +"\Lib\site-packages\easygui.py" #credit Hlynur
path2 = "C:\Python"+ str(x) +"\Lib\easygui.py"
cool = os.path.exists(path)
cool2 = os.path.exists(path2)
print(path... | unlicense | 2,538,950,909,533,070,300 | 48.231884 | 220 | 0.547305 | false | 3.726176 | false | false | false |
malept/pyoath-toolkit | oath_toolkit/wtforms.py | 1 | 5728 | # -*- coding: utf-8 -*-
#
# Copyright 2013, 2014 Mark Lee
#
# 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 ... | apache-2.0 | 8,989,596,587,930,916,000 | 36.437908 | 79 | 0.6147 | false | 4.196337 | false | false | false |
tgodzik/projects | mouse_hand_steering/utils/gesture.py | 1 | 1684 | import math, cv2
def distance(point1, point2):
"""
Euclidean distance.
"""
point1 = point1[0]
point2 = point2[0]
return math.sqrt(math.pow(point1[0] - point2[0], 2) + math.pow(point1[1] - point2[1], 2))
class Gesture:
"""
Represent the current state of the hand.
"""
def __in... | apache-2.0 | 1,007,076,117,418,026,600 | 26.177419 | 93 | 0.511283 | false | 3.457906 | false | false | false |
djangorris/ProFac_Rating | ProFac_Rating.py | 1 | 3204 | import glob
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import matplotlib.patches as mpatches
from matplotlib import style
import numpy as np
import os
import re
'''
The SERFF .xlsm files should be downloaded into a directory within
the current working directory named "network... | gpl-3.0 | 5,971,490,916,984,594,000 | 38.085366 | 129 | 0.679151 | false | 3.269388 | false | false | false |
qedsoftware/commcare-hq | corehq/apps/sms/models.py | 1 | 85808 | #!/usr/bin/env python
import base64
import jsonfield
import uuid
from dimagi.ext.couchdbkit import *
from datetime import datetime, timedelta
from django.db import models, transaction
from django.http import Http404
from collections import namedtuple
from corehq.apps.app_manager.dbaccessors import get_app
from corehq.... | bsd-3-clause | 3,594,400,381,136,475,000 | 36.340296 | 104 | 0.62951 | false | 3.906223 | false | false | false |
faustedition/faust-base | faust-utils/static-publication/render-transcripts.py | 1 | 6900 | import requests, urllib, os, os.path, sys, tempfile, shutil
from subprocess import call, check_call
latex_header = """\\documentclass[11pt,oneside]{book}
\\usepackage{makeidx}
\\usepackage{graphicx}
\\usepackage[german]{babel}
\\usepackage[utf8]{inputenc}
\usepackage[hmargin=1cm,vmargin=1.5cm]{geometry}
\usepackage{... | agpl-3.0 | 1,083,686,129,250,725,600 | 35.125654 | 166 | 0.591739 | false | 3.298279 | false | false | false |
callofdutyops/YXH2016724098982 | eye_multi_gpu_train.py | 1 | 9869 | """A binary to train eye using multiple GPU's with synchronous updates.
Just for experimence because I don't have the computer comparable wich GPU computing.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os.path
import re
import time
from dat... | mit | -6,208,120,418,257,338,000 | 39.446721 | 88 | 0.608471 | false | 4.129289 | false | false | false |
ASU-CompMethodsPhysics-PHY494/final-rendezvous-with-ramageddon | Submission/getcoordinates.py | 1 | 8715 | #Copyright (C) 2016 Jordan Boyd, Ashley Mascareno, Andrew Winhold
# Released under the GNU Public Licence, v3 or any higher version
# Please cite where necessary.
import numpy as np
#
#Units of mass are in solar mass
#Units of time are in years
#Units of position are in AU
#Units of velocity are in AU/year
#
mu = 3... | gpl-3.0 | 376,904,541,612,496,700 | 30.806569 | 186 | 0.562823 | false | 2.966304 | false | false | false |
ecowan/mlb-realtime | realtime/url_builder.py | 1 | 1428 | __author__ = 'ecowan'
from time_converter import TimeConverter
from link_finder import LinkFinder
# TODO: Need to handle case where team is not playing that day.
# Currently returns:
'''
Traceback (most recent call last):
File "/usr/local/bin/mlb-realtime", line 9, in <module>
load_entry_point('mlb-realtime==... | gpl-2.0 | -1,075,126,945,044,526,100 | 33.829268 | 138 | 0.637955 | false | 3.138462 | false | false | false |
jeremiahyan/odoo | addons/fleet/models/fleet_vehicle_model.py | 1 | 2127 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import _, api, fields, models
class FleetVehicleModel(models.Model):
_name = 'fleet.vehicle.model'
_description = 'Model of a vehicle'
_order = 'name asc'
name = fields.Char('Model name', req... | gpl-3.0 | -3,313,334,346,631,041,500 | 41.54 | 144 | 0.607428 | false | 3.562814 | false | false | false |
82Flex/DCRM | suit/sortables.py | 1 | 6638 | from copy import deepcopy, copy
from django.contrib import admin
from django.contrib.admin.views.main import ChangeList
from django.contrib.contenttypes.admin import GenericTabularInline, GenericStackedInline
from django.forms import ModelForm, NumberInput
from django.db import models
class SortableModelAdminBase(obj... | agpl-3.0 | 7,824,759,042,278,630,000 | 33.041026 | 95 | 0.622477 | false | 4.102596 | false | false | false |
imdjh/quickanswer | bin/myfilter.py | 1 | 3139 | #!/usr/bin/env python
# encoding: utf-8
from pandocfilters import walk, stringify, Para
import re
import json
import sys
def purify(k, v, fmt, meta):
"""
First Step: Remove nonsense from unoconv
"""
if k == 'Span':
return [stringify(v[1])]
inselection = False
def phaseSelection(k, v, fmt, m... | mit | 7,108,870,104,143,124,000 | 28.72381 | 87 | 0.459789 | false | 3.065815 | false | false | false |
andreymal/mini_fiction | mini_fiction/logic/characters.py | 1 | 3044 | from flask_babel import lazy_gettext
from mini_fiction.logic.adminlog import log_addition, log_changed_fields, log_deletion
from mini_fiction.logic.image import CharacterBundle, cleanup_image, save_image
from mini_fiction.models import Author, Character, CharacterGroup
from mini_fiction.utils.misc import call_after_re... | gpl-3.0 | 4,021,155,636,073,459,700 | 33.202247 | 86 | 0.664258 | false | 4 | false | false | false |
openmaraude/geofaker | setup.py | 1 | 1496 | from setuptools import find_packages, setup
import os
import re
PACKAGE = 'geofaker'
DEPENDENCIES = [
'gpxpy'
]
def get_pkgvar(name):
"""Get the value of :param name: from __init__.py.
The package cannot be imported since dependencies might not be installed
yet."""
here = os.path.abspath(os.pa... | mit | 9,050,405,847,044,962,000 | 25.714286 | 76 | 0.600267 | false | 3.58753 | false | false | false |
kaltura/nginx-vod-module | test/stream_compare.py | 1 | 2741 | from urlparse import urlparse
import manifest_utils
import compare_utils
import stress_base
import http_utils
import random
import time
import re
from stream_compare_params import *
manifest_utils.CHUNK_LIST_ITEMS_TO_COMPARE = CHUNK_LIST_ITEMS_TO_COMPARE
def convertBody(body):
try:
return body.decode('ascii')
exc... | agpl-3.0 | -7,451,293,146,518,988,000 | 27.852632 | 136 | 0.68807 | false | 2.976113 | false | false | false |
lzamparo/SdA_reduce | utils/dpgmm_test.py | 1 | 3458 | from sklearn.mixture import DPGMM
import sys
import logging, os
from optparse import OptionParser
import numpy as np
from tables import *
from extract_datasets import extract_unlabeled_chunkrange, extract_chunk_sizes
import contextlib,time
@contextlib.contextmanager
def timeit():
t=time.time()
yield
print(time.... | bsd-3-clause | -1,998,240,313,538,520,600 | 31.942857 | 97 | 0.62782 | false | 3.246948 | false | false | false |
avanzosc/avanzosc6.1 | avanzosc_inverse_mrp_production/stock_move_ext.py | 1 | 3324 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Avanzosc - Avanced Open Source Consulting
# Copyright (C) 2011 - 2012 Avanzosc <http://www.avanzosc.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | agpl-3.0 | 8,336,362,185,875,381,000 | 35.944444 | 105 | 0.59988 | false | 4.048721 | false | false | false |
jhpyle/docassemble | docassemble_demo/docassemble/demo/google_drive.py | 1 | 3505 | from docassemble.base.util import DAGoogleAPI, DAFile
import apiclient
api = DAGoogleAPI()
__all__ = ['get_folder_names', 'get_files_in_folder', 'write_file_to_folder', 'download_file']
def get_folder_names():
service = api.drive_service()
items = list()
while True:
response = service.files().lis... | mit | 3,498,028,417,425,838,000 | 41.228916 | 227 | 0.634522 | false | 3.580184 | false | false | false |
r03ert0/ldsc | ldscore/regressions.py | 1 | 28907 | '''
(c) 2014 Brendan Bulik-Sullivan and Hilary Finucane
Estimators of heritability and genetic correlation.
Shape convention is (n_snp, n_annot) for all classes.
Last column = intercept.
'''
from __future__ import division
import numpy as np
import pandas as pd
from scipy.stats import norm, chi2
import jackknife as ... | gpl-3.0 | 1,021,471,430,700,087,800 | 38.59863 | 113 | 0.553465 | false | 3.207256 | false | false | false |
sergeiliashko/sif | paramsfactory/geometry.py | 1 | 2445 | # -*- coding: utf-8 -*-
import numpy as np
from scipy.spatial import distance
from numpy import sqrt
from numpy import pi
def load_vectorcoordinates_from_txt(inputfile):
coords = np.loadtxt(inputfile)
n,i = coords.shape
return coords.reshape((n,int(i/2),2))
def generate_centercoords(vectorcoords):
# a... | gpl-3.0 | -9,212,511,790,720,546,000 | 38.435484 | 106 | 0.636401 | false | 2.996324 | false | false | false |
hyperwd/hwcram | rds/migrations/0001_initial.py | 1 | 1871 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-27 08:05
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('account', '0014_auto_20171014_1523'),
... | mit | 1,182,857,725,951,132,000 | 44.923077 | 179 | 0.572306 | false | 3.444231 | false | false | false |
Pazitos10/TNT | webapp/app/tntapp/migrations/0002_auto_20160527_1234.py | 1 | 1126 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-27 15:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tntapp', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | mit | 6,627,745,366,140,349,000 | 24.590909 | 50 | 0.531083 | false | 4.124542 | false | false | false |
tmt514/mtsa-dishes-translator | app/bot/intention_rules/pokemon_rules.py | 1 | 6881 |
from app.models import db, Term, Description
from app.bot.rule import Rule, ForceChangeStateException, transition
from app.bot.reply_generator import ListTemplate, ButtonTemplate, GenericTemplate
STATE_NEW = 'new'
STATE_POKEMON_SEARCH = 'STATE_POKEMON_SEARCH'
STATE_POKEMON_SEARCH_OK = 'STATE_POKEMON_SEARCH_OK'
STATE_... | mit | -8,864,736,756,024,627,000 | 39.017857 | 136 | 0.625465 | false | 3.212136 | false | false | false |
wevote/WeVoteServer | issue/models.py | 1 | 44537 | # issue/models.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
from django.db import models
from exception.models import handle_exception, handle_record_found_more_than_one_exception, \
handle_record_not_found_exception, handle_record_not_saved_exception
from wevote_settings.models import fetch_ne... | mit | 7,011,680,556,360,434,000 | 44.676923 | 119 | 0.574964 | false | 3.929328 | false | false | false |
obayhan/hddiyari_presentation | engine.py | 1 | 6149 | # -*- coding: utf-8 -*-
import os
import urllib2
import urllib
from mechanize import Browser
from bs4 import BeautifulSoup
import re
from PIL import Image
import pyimgur
favi = "/home/ozgur/mount/media/Series/Conan/ConanTheBarbarian/Conan.the.Barbarian.1982.iNTERNAL.DVDRiP.XViD.CD1-HLS.avi"
fmkv = "/home/ozgur/mount/... | gpl-2.0 | 8,579,259,287,783,442,000 | 29.745 | 128 | 0.567247 | false | 3.664482 | false | false | false |
alirizakeles/tendenci | tendenci/apps/profiles/middleware.py | 1 | 2856 | from django.contrib.auth import logout
from django.conf import settings
from django.contrib.auth.models import User
from tendenci.apps.site_settings.utils import get_setting
class ProfileMiddleware(object):
"""
Appends a profile instance to anonymous users.
Creates a profile for logged in users w... | gpl-3.0 | 6,919,863,689,373,114,000 | 41 | 146 | 0.620798 | false | 4.476489 | false | false | false |
kschoelz/abacuspb | abacuspb/resources/categories.py | 1 | 3350 | from flask import abort
from flask.ext.restful import Resource, reqparse, fields, marshal
from bson.objectid import ObjectId
from abacuspb import db
import pymongo
category_fields = { # Request validator
'name': fields.String,
'parent_id': fields.String,
'budget_tracked': fields.Boolean,
'uri': fields.... | gpl-2.0 | -2,139,059,082,744,144,100 | 34.638298 | 94 | 0.571642 | false | 4.002389 | false | false | false |
smurfix/MoaT | moat/types/__init__.py | 1 | 2788 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division, unicode_literals
##
## This file is part of MoaT, the Master of all Things.
##
## MoaT is Copyright © 2007-2016 by Matthias Urlichs <matthias@urlichs.de>,
## it is licensed under the GPLv3. See the file `README.rst` for details... | gpl-3.0 | 1,698,206,316,585,124,400 | 32.939024 | 82 | 0.71254 | false | 3.4022 | false | false | false |
edx-solutions/edx-platform | cms/djangoapps/contentstore/courseware_index.py | 1 | 27678 | """ Code to allow module store to interface with courseware index """
import logging
import re
from abc import ABCMeta, abstractmethod
from datetime import timedelta
from django.conf import settings
from django.urls import resolve
from django.utils.translation import ugettext as _
from django.utils.translation impor... | agpl-3.0 | -2,806,086,705,523,989,000 | 40.809668 | 120 | 0.629381 | false | 4.439846 | false | false | false |
google/init2winit | init2winit/model_lib/adabelief_vgg.py | 1 | 4101 | # coding=utf-8
# Copyright 2021 The init2winit 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 la... | apache-2.0 | 927,639,614,500,274,800 | 29.154412 | 128 | 0.633992 | false | 3.193925 | false | false | false |
matthiask/fh-fablib | fh_fablib/deploy.py | 1 | 2280 | from __future__ import unicode_literals
from fabric.api import env, execute, task
from fabric.contrib.project import rsync_project
from fh_fablib import run_local, cd, require_env, run, step
@task(default=True)
@require_env
def deploy(*args):
"""Deploys frontend and backend code to the server if the checking st... | bsd-3-clause | 5,284,025,365,114,822,000 | 27.5 | 79 | 0.633772 | false | 3.665595 | false | false | false |
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_result.py | 1 | 1610 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | 3,085,018,237,102,909,400 | 38.268293 | 76 | 0.600621 | false | 4.004975 | false | false | false |
ff0000/scarlet | scarlet/assets/tasks.py | 1 | 1893 | from . import get_asset_model, get_image_cropper
from . import settings
def optional_celery(**kparms):
name = kparms.pop('name', None)
def wrapped(func):
def inner(*args, **kw):
return func(*args, **kw)
return inner
if settings.USE_CELERY_DECORATOR:
from celery import... | mit | -7,459,464,536,788,910,000 | 32.210526 | 75 | 0.618595 | false | 3.505556 | false | false | false |
michalliu/syncthing-silk | generate_syncthing_strings.py | 1 | 2336 | #!/usr/bin/env python
import json
import sys
import os
from collections import OrderedDict
import re
import string
base_path = "syncthing/src/github.com/syncthing/syncthing"
langdir = "gui/assets/lang"
resdir = "app/src/main/res"
resfile = "strings-syncthing.xml"
validKeyChars = string.ascii_letters+string.digits+'_... | gpl-3.0 | 1,702,889,957,937,964,500 | 27.487805 | 79 | 0.552654 | false | 3.045632 | false | false | false |
morepath/morepath | morepath/autosetup.py | 1 | 8590 | """
This module defines functionality to automatically configure Morepath.
:func:`morepath.scan`, :func:`morepath.autoscan`
are part of the public API.
"""
import sys
import importscan
import importlib
import pkg_resources
from .error import AutoImportError
def scan(package=None, ignore=None, handle_error=None):
... | bsd-3-clause | 3,834,593,244,588,918,300 | 32.554688 | 80 | 0.65553 | false | 4.391616 | true | false | false |
mlperf/inference_results_v0.5 | closed/NVIDIA/code/resnet/tensorrt/network_search.py | 1 | 7710 | # Copyright (c) 2019, NVIDIA 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 required by appli... | apache-2.0 | 8,873,584,699,447,280,000 | 37.55 | 113 | 0.540208 | false | 4.695493 | false | false | false |
google/grr | grr/server/grr_response_server/databases/db.py | 1 | 158455 | #!/usr/bin/env python
"""The GRR relational database abstraction.
This defines the Database abstraction, which defines the methods used by GRR on
a logical relational database model.
"""
import abc
import collections
import re
from typing import Dict
from typing import Generator
from typing import Iterable
from typin... | apache-2.0 | -7,030,527,289,619,377,000 | 33.855917 | 83 | 0.682983 | false | 4.026197 | false | false | false |
rossburton/barnum | convert_data.py | 1 | 3586 | #!/usr/bin/python2.5
"""
This application converts the various text files stored in the source-data
directory into a pickled python object to be used by the random data
generator scripts
Copyright (C) 2007 Chris Moffitt
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU... | gpl-2.0 | -4,699,246,975,335,165,000 | 34.86 | 120 | 0.648355 | false | 3.512243 | false | false | false |
mflu/openvstorage_centos | webapps/api/backend/decorators.py | 1 | 14128 | # Copyright 2014 CloudFounders NV
#
# 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 writ... | apache-2.0 | -4,991,424,155,239,962,000 | 36.474801 | 139 | 0.517058 | false | 4.497931 | false | false | false |
tensorflow/graphics | tensorflow_graphics/geometry/transformation/look_at.py | 1 | 3703 | # Copyright 2020 The TensorFlow 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | apache-2.0 | -4,471,860,227,454,976,500 | 37.572917 | 80 | 0.678639 | false | 3.655479 | false | false | false |
BrainTech/openbci | obci/acquisition/tests/test_manual_tags_sending.py | 1 | 1547 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# OpenBCI - framework for Brain-Computer Interfaces based on EEG signal
# Project was initiated by Magdalena Michalska and Krzysztof Kulewski
# as part of their MSc theses at the University of Warsaw.
# Copyright (C) 2008-2009 Krzysztof Kulewski and Magdalena Michalska
#
... | gpl-3.0 | 2,332,366,705,002,808,000 | 34.136364 | 125 | 0.677878 | false | 3.207469 | false | false | false |
muLAn-project/muLAn | muLAn/plottypes/datalign.py | 1 | 19958 | # -*-coding:Utf-8 -*
# ----------------------------------------------------------------------
# Align data without model
# ----------------------------------------------------------------------
# External libraries
# ----------------------------------------------------------------------
import sys
import os
# Full pa... | mit | 2,147,246,113,030,534,700 | 38.916 | 194 | 0.477904 | false | 3.38673 | false | false | false |
AbhiAgarwal/django-report-utils | report_utils/mixins.py | 1 | 24116 | from six import BytesIO, StringIO, text_type, string_types
from django.http import HttpResponse
from django.contrib.contenttypes.models import ContentType
from django.db.models.fields.related import ReverseManyRelatedObjectsDescriptor
from django.db.models import Avg, Count, Sum, Max, Min
from openpyxl.workbook import... | bsd-3-clause | 7,736,433,183,464,891,000 | 38.729819 | 114 | 0.533878 | false | 4.460969 | false | false | false |
gratefulfrog/ArduGuitar | Ardu2/design/POC-3_MAX395/pyboard/DraftDevt/acc.py | 1 | 4083 | # acc.py
# tests of accellerometers
# currently seems to work with the values as they are!
from pyb import Accel, LED, delay, millis
red = LED(1)
green = LED(2)
yellow = LED(3)
blue = LED(4)
def xtest(p=5,m=-5, d= 20, timeOut= 1000):
"""
this uses the pyboard leds to indicate movement in the x,y,z dire... | gpl-2.0 | -9,215,248,256,882,599,000 | 27.552448 | 79 | 0.533676 | false | 3.385572 | false | false | false |
rwl/PyCIM | CIM15/IEC61970/Generation/GenerationDynamics/SteamSupply.py | 1 | 3051 | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | mit | -1,539,395,530,458,653,400 | 39.68 | 86 | 0.691577 | false | 3.680338 | false | false | false |
mjourdan/paperwork | src/paperwork/frontend/util/scanner.py | 1 | 3924 | # Paperwork - Using OCR to grep dead trees the easy way
# Copyright (C) 2014 Jerome Flesch
#
# Paperwork 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
# ... | gpl-3.0 | 8,677,825,845,826,105,000 | 36.730769 | 79 | 0.610601 | false | 3.943719 | false | false | false |
ogrady/GoodMorning | audio.py | 1 | 4200 | import os
import random
import pygame as pg
import util
'''
Audio components.
version: 1.0
author: Daniel O'Grady
'''
MAX_SOUND_CHANNELS = 4
class AudioMixer(object):
'''
Mixes ambient and effect sounds, where ambient
sounds actually loop indefinitely while effects
are just queued. There can be mu... | gpl-3.0 | 7,531,481,858,215,642,000 | 39 | 137 | 0.615 | false | 3.668122 | false | false | false |
hippysurfer/geotypes | tests/WKTParser_Test.py | 1 | 3634 | #!/usr/bin/python
import TestConfig
import _OGAbstractFactory
import _WKTParser
import _OGGeoTypeFactory
################################################################################
# Copyright (c) QinetiQ Plc 2003
#
# Licensed under the LGPL. For full license details see the LICENSE file.
#####################... | lgpl-2.1 | 1,693,860,445,491,580,700 | 24.77305 | 161 | 0.590259 | false | 3.601586 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.