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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ax333l/QuoteBook | QuoteBook/editordialog.py | 1 | 4837 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'editordialog.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Editor(object):
def setupUi(self, Editor):
Editor.setOb... | gpl-3.0 | 1,446,403,713,159,849,200 | 47.37 | 114 | 0.674385 | false | 3.698012 | false | false | false |
paulmadore/Eric-IDE | 6-6.0.9/eric/Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py | 1 | 24920 | # -*- coding: utf-8 -*-
# Copyright (c) 2005 - 2015 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing the VCS project helper for Subversion.
"""
from __future__ import unicode_literals
import os
from E5Gui.E5Application import e5App
from VCS.ProjectHelper import VcsProjectHelper
from E5Gui.E5... | gpl-3.0 | 8,645,574,378,206,538,000 | 37.45679 | 79 | 0.577127 | false | 4.069236 | true | false | false |
lpouillo/execo-g5k-tools | engines/simgrid_paasage/xml_gen_execo.py | 1 | 5079 | import xml.etree.cElementTree as ET # that 'c' in "...etree.cElement..."
# means the package is a C implementation; it runs 15-20 times faster
# than equivalent python implementation
import xml.dom.minidom as DOM
import shutil
import lxml.etree as le
import re
import itertools
from optparse import ... | gpl-3.0 | -9,222,059,549,375,971,000 | 28.52907 | 100 | 0.617051 | false | 3.445726 | false | false | false |
ricard33/cloud-mailing | cloud_mailing/master/serializers.py | 1 | 11463 | # Copyright 2015-2019 Cedric RICARD
#
# This file is part of CloudMailing.
#
# CloudMailing is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | agpl-3.0 | 2,927,350,094,673,577,500 | 36.217532 | 125 | 0.567914 | false | 3.977446 | false | false | false |
peterorum/data-hmm | linkedin/by-company.py | 1 | 1337 | #!/usr/bin/python
import os
import csv
from collections import Counter
from operator import itemgetter
from prettytable import PrettyTable
# XXX: Place your "Outlook CSV" formatted file of connections from
# http://www.linkedin.com/people/export-settings at the following
# location: resources/ch03-linkedin/my_connec... | mit | -3,733,075,963,262,727,700 | 29.409091 | 91 | 0.646223 | false | 3.463731 | false | false | false |
leleobhz/scripts | python/others_utilities/msnbf.py | 1 | 3708 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Hotmail brute forcer
# programmer : gunslinger_
# Inspired by mywisdom
# This program is only for educational purposes only.
import sys, time, msnp
__Author__ = "Gunslinger_ - Modified by Leleobhz"
__Version__ = "1.0"
__Date__ = "Mon, 22 Feb 2010 13:13:43 +0700 "
log = "... | gpl-2.0 | -3,270,820,469,121,388,000 | 29.393443 | 118 | 0.591963 | false | 2.926598 | false | false | false |
kottenator/django-compressor-toolkit | compressor_toolkit/filters.py | 1 | 3854 | import logging
import os
import re
from compressor.filters.css_default import CssAbsoluteFilter
from compressor.filters.datauri import CssDataUriFilter as BaseCssDataUriFilter
from django.apps import apps
from django.conf import settings
app_config = apps.get_app_config('compressor_toolkit')
logger = logging.getLogg... | mit | 1,912,537,893,408,338,700 | 38.731959 | 95 | 0.608978 | false | 3.69511 | false | false | false |
adam2392/smile | smile/accounts/migrations/0002_auto_20160313_1723.py | 1 | 1197 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-03-13 17:23
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):
dependencies = [
('admins', '0001_initial'),
... | apache-2.0 | -3,652,358,345,451,040,300 | 30.5 | 114 | 0.60401 | false | 4.352727 | false | false | false |
dimitdim/GetARoom | Main/app/models.py | 1 | 13192 | __author__ = 'kflores'
"""
Model that defines the class structure of the database.
"""
from app import db
ROLE_USER = 0
ROLE_ADMIN = 1
class Node(db.Model):
"""class representation of one networked sensor kit hooked into ethernet. Instatiation requires the name, ip address, and location of the "node", but all ... | gpl-2.0 | -1,536,256,754,729,362,000 | 70.308108 | 352 | 0.673817 | false | 2.625274 | false | false | false |
googleapis/googleapis-gen | google/cloud/aiplatform/v1/aiplatform-v1-py/google/cloud/aiplatform_v1/services/migration_service/transports/grpc_asyncio.py | 1 | 14287 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -6,148,530,257,652,525,000 | 45.537459 | 102 | 0.623084 | false | 4.735499 | false | false | false |
mhefley/hackart | hackart/settings.py | 1 | 4632 | """
Django settings for hackart project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
... | mit | -2,741,053,265,845,104,000 | 27.316456 | 91 | 0.668826 | false | 3.650118 | false | false | false |
Blackyukun/Simpleblog | app/models.py | 1 | 15497 | import datetime
from flask_login import UserMixin, AnonymousUserMixin
from flask import current_app, request, url_for
from hashlib import md5
from werkzeug.security import generate_password_hash, check_password_hash
from markdown import markdown
import bleach
from itsdangerous import TimedJSONWebSignatureSerializer as ... | mit | 6,585,300,988,462,585,000 | 35.289973 | 119 | 0.631917 | false | 2.672854 | false | false | false |
maestro-hybrid-cloud/heat | heat/tests/test_sahara_templates.py | 1 | 14859 | # Copyright (c) 2014 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | -4,499,161,583,605,528,000 | 38.205805 | 79 | 0.605761 | false | 3.784768 | true | false | false |
dumel93/project- | type_page/migrations/0002_auto_20170711_1101.py | 1 | 1481 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-11 11:01
from __future__ import unicode_literals
import django.contrib.auth.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('type_page', '0001_initial'),
]
operations = [... | mit | -2,548,361,275,656,014,000 | 39.027027 | 315 | 0.576637 | false | 4.343109 | false | false | false |
lynxis/libavg | src/python/avgapp.py | 1 | 4330 | # libavg - Media Playback Engine.
# Copyright (C) 2003-2011 Ulrich von Zadow
#
# 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 of the License, or (at your option) any l... | lgpl-2.1 | -1,709,239,406,444,618,200 | 29.492958 | 89 | 0.627483 | false | 4.325674 | false | false | false |
plamut/ggrc-core | test/selenium/src/lib/utils/string_utils.py | 1 | 1860 | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Utility functions for string operations."""
import random
import string
import uuid
BLANK = ''
COMMA = ',' # comma is used as delimiter for multi-choice values
LESS = '<' # need exclude this character ... | apache-2.0 | -5,070,785,767,555,766,000 | 34.769231 | 78 | 0.703763 | false | 3.632813 | false | false | false |
tommy-u/enable | examples/enable/component_demo.py | 1 | 1333 | """
Basic demo of drawing within an Enable component.
"""
from enable.api import Component, ComponentEditor
from traits.api import HasTraits, Instance
from traitsui.api import Item, View
class MyComponent(Component):
def draw(self, gc, **kwargs):
w,h = gc.width(), gc.height()
gc.clear()
#... | bsd-3-clause | 8,483,525,954,035,567,000 | 24.150943 | 69 | 0.501875 | false | 3.51715 | false | false | false |
lcoandrade/DsgTools | tests/test_OtherAlgorithms.py | 1 | 2763 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
DsgTools
A QGIS plugin
Brazilian Army Cartographic Production Tools
-------------------
begin : 2019-07-04
git sha ... | gpl-2.0 | 1,559,963,913,760,249,000 | 38.442857 | 102 | 0.56791 | false | 4.810105 | true | false | false |
CTPUG/pygame_cffi | pygame/constants.py | 1 | 3624 | # pygame_cffi - a cffi implementation of the pygame library
# Copyright (C) 2013 Neil Muller
# Copyright (C) 2013 Jeremy Thurgood
# Copyright (C) 2013 Maciej Fijalkowski
# Copyright (C) 2014 Rizmari Versfeld
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Les... | lgpl-2.1 | 2,889,663,793,123,178,000 | 29.2 | 68 | 0.772903 | false | 2.590422 | false | false | false |
KanoComputing/nush | ws4py/droid_sensor_cherrypy_server.py | 1 | 2357 | # -*- coding: utf-8 -*-
import os.path
import cherrypy
from ws4py.server.cherrypyserver import WebSocketPlugin, WebSocketTool
from ws4py.websocket import WebSocket
class BroadcastWebSocketHandler(WebSocket):
def received_message(self, m):
cherrypy.engine.publish('websocket-broadcast', str(m))
cla... | gpl-3.0 | -3,472,286,452,983,433,700 | 31.287671 | 125 | 0.585914 | false | 3.735341 | false | false | false |
ActiveState/code | recipes/Python/475112_Schedule_Maker/recipe-475112.py | 1 | 14819 | ################################################################################
# index.py
################################################################################
import html_help
import os
import sys
import time
import Zcgi
KEYS = 'description', 'start', 'end', 'sunday', 'monday', \
'tuesday', 'wedn... | mit | -5,567,249,290,560,385,000 | 28.228797 | 135 | 0.512113 | false | 3.504967 | false | false | false |
eoneil1942/voltdb-4.7fix | lib/python/voltcli/voltdb.d/stop.py | 1 | 1682 | # This file is part of VoltDB.
# Copyright (C) 2008-2014 VoltDB Inc.
#
# This file contains original code and/or modifications of original code.
# Any modifications made by VoltDB Inc. are licensed under the following
# terms and conditions:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a... | agpl-3.0 | -6,828,493,845,769,102,000 | 40.04878 | 73 | 0.743757 | false | 4.173697 | false | false | false |
efanescent/SapidCircuits | World.py | 1 | 2775 | import Control
from tkinter.messagebox import showerror
from Window import *
from Utils import *
canvas, field, scale = None, None, None
def init(window, p_field=-1, p_scale=10):
"""using to init World with params"""
global canvas, field, scale
canvas = tk.Canvas(window, highlightthickness=0, bg='#FFF3A4'... | mit | 5,046,132,535,887,485,000 | 24.943925 | 73 | 0.57045 | false | 3.641732 | false | false | false |
daviddeng/azrael | azrael/bullet_api.py | 1 | 21037 | # Copyright 2014, Oliver Nagy <olitheolix@gmail.com>
#
# This file is part of Azrael (https://github.com/olitheolix/azrael)
#
# Azrael is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of... | agpl-3.0 | 6,817,916,343,925,518,000 | 37.6 | 85 | 0.60327 | false | 3.961024 | false | false | false |
tangentlabs/django-oscar-fancypages | oscar_fancypages/fancypages/migrations/0001_initial.py | 1 | 56653 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
depends_on = (
('assets', '0001_initial'),
('catalogue', '0009_auto__add_field_product_rating'),
('promotions', '0001_initial... | bsd-3-clause | -8,242,269,794,335,194,000 | 77.575589 | 222 | 0.590172 | false | 3.705232 | false | false | false |
SublimeText-Markdown/MarkdownEditing | open_page.py | 1 | 1363 |
import sublime, sublime_plugin
import os, string
import re
try:
from MarkdownEditing.wiki_page import *
except ImportError:
from wiki_page import *
try:
from MarkdownEditing.mdeutils import *
except ImportError:
from mdeutils import *
class OpenPageCommand(MDETextCommand):
de... | mit | -2,559,636,679,433,864,700 | 24.211538 | 75 | 0.568599 | false | 4.032544 | false | false | false |
fedora-modularity/meta-test-family | moduleframework/tests/generic/dockerlint.py | 1 | 6137 | # -*- coding: utf-8 -*-
#
# Meta test family (MTF) is a tool to test components of a modular Fedora:
# https://docs.pagure.org/modularity/
# Copyright (C) 2017 Red Hat, Inc.
#
# 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
# ... | gpl-3.0 | 7,287,457,387,612,954,000 | 41.324138 | 116 | 0.617403 | false | 3.850063 | true | false | false |
amitjamadagni/sympy | sympy/physics/quantum/state.py | 2 | 28699 | """Dirac notation for states."""
from sympy import (cacheit, conjugate, Expr, Function, integrate, oo, sqrt,
Tuple)
from sympy.printing.pretty.stringpict import prettyForm, stringPict
from sympy.physics.quantum.qexpr import QExpr, dispatch_method
__all__ = [
'KetBase',
'BraBase',
'Stat... | bsd-3-clause | 1,310,228,906,220,686,800 | 29.209474 | 106 | 0.545245 | false | 4.150853 | false | false | false |
edljk/Mosek.jl | deps/src/mosek/7/tools/examples/fusion/python/TrafficNetworkModel.py | 1 | 4935 | #
# Copyright: Copyright (c) MOSEK ApS, Denmark. All rights reserved.
#
# File: TrafficNetworkModel.py
#
# Purpose: Demonstrates a traffix network problem as a conic quadratic problem.
#
# Source: Robert Fourer, "Convexity Checking in Large-Scale Optimization",
# OR 53 --- Nottingham 6-8 September... | mit | 7,939,681,877,127,627,000 | 35.286765 | 94 | 0.473759 | false | 3.537634 | false | false | false |
eahrold/SysOps | observy/notifications/SlackNotification.py | 1 | 1532 | #!/usr/bin/env python
import subprocess
import json
import urllib2, urllib
from notifications import HookableNotifications
class SlackNotification(HookableNotifications):
"""Slack Notification class"""
_webhook_service_name = 'slack'
def __init__(self, errors):
super(SlackNotification, sel... | mit | 8,007,633,411,876,338,000 | 31.595745 | 78 | 0.490862 | false | 4.990228 | false | false | false |
Delosari/dazer | bin/lib/ssp_functions/ssp_Hector_Fit3D_my.py | 1 | 2446 | #!/usr/bin/python
import sys
import numpy as np
from numpy import float_
from numpy import absolute as abs
from numpy import random as ran
import matplotlib
from scipy.signal.signaltools import convolve2d
from scipy.interpolate.interpolate import interp1d
def A_l(Rv,l):
l=l/10000.; #Amstrongs to Microns
x=1/l... | mit | 1,560,906,364,386,569,200 | 25.311828 | 100 | 0.572772 | false | 2.521649 | false | false | false |
KarlParkinson/practice | dataStructures/hashTable.py | 1 | 2520 | class HashTable:
def __init__(self, size):
self.size = size
self.keys = [None]*size
self.data = [None]*size
def put(self, key, data):
hashValue = self._hash(key)
if (self.keys[hashValue] == None):
# no collision, found empty slot, so insert
self.... | mit | 2,377,790,933,382,312,000 | 27.965517 | 119 | 0.518651 | false | 3.806647 | false | false | false |
mbodenhamer/syn | syn/tree/b/tests/test_tree.py | 1 | 8401 | from operator import attrgetter
from nose.tools import assert_raises
from syn.tree.b import Tree, Node, TreeError, do_nothing, identity
from syn.base.b import check_idempotence, Attr
from syn.base_utils import get_typename
from syn.tree.b.tests.test_node import Tst2, tree_node_from_nested_list,\
tree_node_from_nest... | mit | 5,143,387,071,253,162,000 | 27.770548 | 80 | 0.562195 | false | 2.950825 | true | false | false |
buzz/flicks | flicksapp/management/commands/import_amc_xml.py | 1 | 6230 | from datetime import datetime
import re
import elementtree.ElementTree as et
from django.core.management.base import BaseCommand
from flicksapp.models import Movie, Country, Person, Genre, File
imdb_regex = re.compile("http://.*imdb.com/title/tt0*(\d+)")
imdb_regex2 = re.compile("http://.*imdb.com/Title\?0*(\d+)")
... | gpl-2.0 | 6,874,207,777,880,569,000 | 37.9375 | 80 | 0.440931 | false | 4.803392 | false | false | false |
telerainbow/randgame | randgame.py | 1 | 3031 | import random, cmd, sys
class randgame(cmd.Cmd):
intro = "this is randgame"
prompt = "randgame # "
players = ["asdf", "foo"]
turn = 0
rounds = 0
active = False
settings = {"no_two" : 0, "voice" : 0}
def do_f(self, arg):
print self.last_player
def do_set(self, arg):
'set settings. see \"list settings\" f... | gpl-2.0 | 6,003,976,552,822,596,000 | 23.642276 | 100 | 0.626196 | false | 3.003964 | false | false | false |
Meriipu/quodlibet | quodlibet/browsers/soundcloud/api.py | 1 | 10780 | # Copyright 2016 Nick Boultbee
#
# 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) any later version.
from datetime import datetime
from url... | gpl-2.0 | -444,583,630,564,009,100 | 35.542373 | 79 | 0.552041 | false | 3.672913 | false | false | false |
rockfruit/bika.lims | bika/lims/browser/referencesample.py | 1 | 17439 | # This file is part of Bika LIMS
#
# Copyright 2011-2016 by it's authors.
# Some rights reserved. See LICENSE.txt, AUTHORS.txt.
from AccessControl import getSecurityManager
from bika.lims.browser import BrowserView
from bika.lims import bikaMessageFactory as _
from bika.lims.utils import t
from bika.lims.browser.bika_... | agpl-3.0 | 343,148,943,437,828,700 | 39.089655 | 93 | 0.495843 | false | 4.462385 | false | false | false |
predatell/python-oauth2 | oauth2/__init__.py | 1 | 29176 | """
The MIT License
Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel
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 ... | mit | -5,403,328,534,905,743,000 | 32.807648 | 265 | 0.609199 | false | 4.254302 | false | false | false |
uxlsl/uxlsl.github.io | demo/code/test/xiyanghui.py | 1 | 1481 | import requests
infos = requests.get('https://job.xiyanghui.com/api/q1/json').json()
def build(n, parent, dic):
dic[n["id"]] = {"name": n["name"], "parent": parent}
for i in n.get("children", []):
build(i, n["id"], dic)
def builds(infos, dic):
for i in infos:
build(i, -1, dic)
def ch... | mit | 2,871,237,075,796,517,400 | 23.75 | 100 | 0.501805 | false | 2.77 | false | false | false |
openfisca/openfisca-qt | openfisca_qt/plugins/scenario/graph.py | 1 | 26654 | # -*- coding:utf-8 -*-
# Copyright © 2011 Clément Schaff, Mahdi Ben Jelloul
"""
openFisca, Logiciel libre de simulation du système socio-fiscal français
Copyright © 2011 Clément Schaff, Mahdi Ben Jelloul
This file is part of openFisca.
openFisca is free software: you can redistribute it and/or modify
it unde... | agpl-3.0 | -2,987,348,892,159,805,400 | 33.338918 | 148 | 0.576875 | false | 3.673928 | false | false | false |
JustinSGray/pyCycle | pycycle/elements/test/test_turbine_od.py | 1 | 7060 | import numpy as np
import unittest
import os
from openmdao.api import Problem, Group
from openmdao.utils.assert_utils import assert_near_equal
from pycycle.mp_cycle import Cycle
from pycycle.thermo.cea.species_data import janaf
from pycycle.elements.turbine import Turbine
from pycycle.elements.combustor import Combus... | apache-2.0 | 5,855,211,299,384,399,000 | 31.534562 | 96 | 0.525779 | false | 2.904155 | true | false | false |
Superjom/NeuralNetworks | apps/126/validate.py | 1 | 4599 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on March 3, 2014
@author: Chunwei Yan @ PKU
@mail: yanchunwei@outlook.com
'''
from __future__ import division
import sys
import theano
import math
import numpy
from theano import scalar as T
import cPickle as pickle
import argparse
sys.path.append('../..')
fro... | apache-2.0 | -510,086,034,167,619,840 | 25.738372 | 75 | 0.543379 | false | 3.720874 | false | false | false |
azure-satellite/pyunite | pyunite/option.py | 1 | 3196 | import re
from itertools import imap
from collections import namedtuple
import funcy as fn
option = namedtuple('option', ['name', 'value'])
# Options can be specified in the PyUnite command line. They are merged into a
# state that uniquely identifies a PyUnite buffer.
default_options = dict(
# Scope of a Py... | bsd-3-clause | 6,447,050,693,128,628,000 | 35.318182 | 102 | 0.623279 | false | 3.950556 | false | false | false |
Saevon/Recipes | python/ticket_semaphore.py | 1 | 2045 | import contextlib
import multiprocessing
import time
import ctypes
class Ticket():
''' A ticket from a TicketSemaphore '''
def __init__(self, ticketer, size):
self.size = size
self.ticketer = ticketer
def release(self, *args, **kwargs):
''' Releases this ticket from the owning tic... | mit | -3,672,569,619,838,448,000 | 24.5625 | 64 | 0.556479 | false | 4.514349 | false | false | false |
alvarofe/cassle | handlers/pin.py | 1 | 1816 | from handlers import handlers
from handlers import handler
from conf import config, debug_logger
from handlers.base import BaseHandler
from db.database import PinDB
import logging
from notification.event_notification import MITMNotification
import base64
logger = logging.getLogger(__name__)
#TODO rewrite this handl... | gpl-3.0 | -4,842,815,281,196,532,000 | 29.779661 | 76 | 0.5837 | false | 3.939262 | false | false | false |
kcarnold/counterfactual-lm | code/tokenization.py | 1 | 2976 | import re
import string
from nltk.tokenize import RegexpTokenizer, PunktSentenceTokenizer
WORD_RE = re.compile(r'\w+(?:[\',:]\w+)*')
END_PUNCT = set('.,?!:')
def token_spans(text):
for match in re.finditer(r'[^-/\s]+', text):
start, end = match.span()
token_match = WORD_RE.search(text, start, end)... | mit | 1,327,267,331,160,409,600 | 34.011765 | 102 | 0.552755 | false | 3.256018 | false | false | false |
derdmitry/socraticqs2 | mysite/psa/migrations/0003_auto_20150420_0308.py | 1 | 1092 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('default', '0001_initial'),
('psa'... | apache-2.0 | -710,191,695,645,804,500 | 32.090909 | 114 | 0.576923 | false | 4.512397 | false | false | false |
lilydjwg/you-get | src/you_get/extractors/tumblr.py | 1 | 4239 | #!/usr/bin/env python
__all__ = ['tumblr_download']
from ..common import *
from .universal import *
from .dailymotion import dailymotion_download
from .vimeo import vimeo_download
from .vine import vine_download
def tumblr_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
if re.match(r'https?... | mit | 514,626,946,501,440,450 | 42.255102 | 106 | 0.513565 | false | 3.296267 | false | false | false |
mikeckennedy/consuming_services_python_demos | services/consuming_services_apis/consuming_services_apis/api/blog_soap.py | 1 | 17656 | from datetime import datetime
from pyramid.httpexceptions import exception_response
from pyramid.view import view_config
from pyramid.response import Response
from xml.etree import ElementTree
from consuming_services_apis import Post
from consuming_services_apis.data.memory_db import MemoryDb
@view_config(route_nam... | mit | 3,373,341,063,547,171,000 | 35.706861 | 503 | 0.632023 | false | 3.304511 | false | false | false |
zenieldanaku/DyDCreature_Editor | main.py | 1 | 1129 | from sys import exit
from pygame import display as pantalla, event
from pygame import init as py_init, quit as py_quit
from azoe.engine import EventHandler
from azoe.widgets import NamedValue
from backend.entidad import Entidad
py_init()
fondo = pantalla.set_mode((400, 400))
event.set_blocked([12, 13])
entit... | mit | -6,875,978,619,516,324,000 | 28.513514 | 85 | 0.741364 | false | 2.986772 | false | false | false |
UCSBarchlab/PyRTL | pyrtl/rtllib/matrix.py | 1 | 54553 | from functools import reduce
from six.moves import builtins
from pyrtl.rtllib import multipliers as mult
from ..wire import Const, WireVector
from ..corecircuits import as_wires, concat, select
from ..pyrtlexceptions import PyrtlError
from ..helperfuncs import formatted_str_to_val
class Matrix(object):
''' Clas... | bsd-3-clause | 5,829,635,579,326,780,000 | 37.966429 | 99 | 0.54151 | false | 4.166259 | false | false | false |
aschleg/mathpy | mathpy/random/random.py | 1 | 12138 | # encoding=utf8
import random
import sys
import numpy as np
from mathpy.numtheory import isrelativelyprime
def lcg(n, seed=None):
r"""
Implementation of a linear congruential generator for generating n random samples in U(0, 1).
Parameters
----------
n : int
The number of ... | mit | 6,682,255,296,660,250,000 | 33.682353 | 121 | 0.607896 | false | 3.369064 | false | false | false |
schlegelp/pymaid | pymaid/user_stats.py | 1 | 48870 | # This script is part of pymaid (http://www.github.com/schlegelp/pymaid).
# Copyright (C) 2017 Philipp Schlegel
#
# 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 ... | gpl-3.0 | 476,608,047,681,674,560 | 41.385082 | 131 | 0.538347 | false | 4.267004 | false | false | false |
mganeva/mantid | scripts/SANS/sans/state/convert_to_q.py | 1 | 10526 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
# pylint: disable=too-few-public-methods
"""... | gpl-3.0 | -7,986,338,881,087,957,000 | 48.650943 | 120 | 0.519286 | false | 4.504065 | false | false | false |
AMOboxTV/AMOBox.LegoBuild | plugin.video.salts/salts_lib/constants.py | 1 | 7791 | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
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.
T... | gpl-2.0 | 5,276,069,409,270,380,000 | 71.813084 | 187 | 0.671416 | false | 2.674562 | false | false | false |
woodem/woo | py/remote.py | 1 | 7933 | # encoding: utf-8
# 2008-2009 © Václav Šmilauer <eudoxos@arcig.cz>
"""
Remote connections to woo: authenticated python command-line over telnet and anonymous socket for getting some read-only information about current simulation.
These classes are used internally in gui/py/PythonUI_rc.py and are not intended for direc... | gpl-2.0 | 5,875,989,687,096,059,000 | 42.565934 | 333 | 0.627696 | false | 3.903988 | false | false | false |
patrickwestphal/owlapy | owlapy/vocab/owlfacet.py | 1 | 2515 | from enum import Enum
from .namespaces import Namespaces
from owlapy.model import IRI
from owlapy.util.decorators import ClassProperty
class OWLFacet(Enum):
LENGTH = (Namespaces.XSD, 'length', 'length')
MIN_LENGTH = (Namespaces.XSD, 'minLength', 'minLength')
MAX_LENGTH = (Namespaces.XSD, 'maxLength', 'ma... | gpl-3.0 | -992,769,188,573,107,000 | 31.675325 | 77 | 0.603579 | false | 3.714919 | false | false | false |
twotwo/tools-python | git-filter-branch/main.py | 1 | 5551 | # -*- coding: utf-8 -*-
############################################################
#
# Read & Modify commits of a Git Reposotory
#
############################################################
import os
import sys
import argparse
import subprocess
import datetime
from git import Repo, RefLog
import json
from logur... | mit | 9,088,962,088,859,095,000 | 36.255034 | 174 | 0.542064 | false | 3.740566 | false | false | false |
bruth/restlib2 | restlib2/resources.py | 1 | 35324 | import io
import time
import hashlib
import collections
from six import add_metaclass
# http://mail.python.org/pipermail/python-list/2010-March/1239510.html
from calendar import timegm
from datetime import datetime, timedelta
from django.conf import settings
from django.http import HttpResponse, HttpRequest
from django... | bsd-2-clause | -3,642,157,530,269,288,400 | 40.557647 | 79 | 0.635602 | false | 4.314118 | false | false | false |
macarthur-lab/xbrowse | xbrowse_server/base/management/commands/transfer_dataset_from_other_project.py | 1 | 6685 | from django.core import serializers
import os
from datetime import datetime
from django.core.management.base import BaseCommand
from xbrowse_server.base.models import Project, ProjectCollaborator, Project, \
Family, FamilyImageSlide, Cohort, Individual, \
FamilySearchFlag, ProjectPhenotype, IndividualPhenotype,... | agpl-3.0 | 4,557,343,489,278,923,300 | 51.637795 | 163 | 0.653403 | false | 3.738814 | false | false | false |
suutari/shoop | shuup/notify/models/script.py | 1 | 2353 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.db import mode... | agpl-3.0 | 998,860,068,812,881,000 | 33.602941 | 118 | 0.666383 | false | 3.915141 | false | false | false |
mkhuthir/catkin_ws | src/chessbot/src/r2_chess_pgn.py | 1 | 2487 | #!/usr/bin/python
import sys, rospy, tf, moveit_commander, random
from geometry_msgs.msg import Pose, Point, Quaternion
import pgn
class R2ChessboardPGN:
def __init__(self):
self.left_arm = moveit_commander.MoveGroupCommander("left_arm")
self.left_hand = moveit_commander.MoveGroupCommander("left_hand")
de... | gpl-3.0 | 6,829,077,378,582,487,000 | 33.068493 | 76 | 0.582228 | false | 2.735974 | false | false | false |
cuoretech/dowork | dowork/Model/Task.py | 1 | 8188 | from database_config import *
from datetime import datetime
from py2neo import neo4j, node
# Class : Task
# Methods:
# 1) db_init(self) - Private
# 2) getNode(self) - Returns the Task Node
# 3) getName(self) - Returns name of task
# 4) setDescription(self, description) - Takes descrip... | apache-2.0 | 1,286,026,942,883,633,700 | 27.237931 | 145 | 0.605154 | false | 3.580236 | false | false | false |
mfnch/pyrtist | pyrtist/lib2d/text_formatter.py | 1 | 3338 | # Copyright (C) 2017, 2020 Matteo Franchin
#
# This file is part of Pyrtist.
# Pyrtist 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) an... | lgpl-2.1 | -1,941,142,295,996,412,400 | 27.775862 | 76 | 0.547933 | false | 3.863426 | false | false | false |
ganeshcmohan/mongoengine.0.8.7_v1 | mongoengine/connection.py | 1 | 5806 | import pymongo
from pymongo import MongoClient, MongoReplicaSetClient, uri_parser
__all__ = ['ConnectionError', 'connect', 'register_connection',
'DEFAULT_CONNECTION_NAME']
DEFAULT_CONNECTION_NAME = 'default'
class ConnectionError(Exception):
pass
_connection_settings = {}
_connections = {}
_dbs ... | mit | 8,341,579,631,674,937,000 | 33.975904 | 85 | 0.631244 | false | 4.349064 | false | false | false |
tornado-utils/tornado-restless | tornado_restless/handler.py | 1 | 28297 | #!/usr/bin/python
# -*- encoding: utf-8 -*-
"""
Tornado Restless BaseHandler
Handles all registered blueprints, you may override this class and
use the modification via create_api_blueprint(handler_class=...)
"""
import inspect
from json import loads
import logging
from math import ceil
from traceback imp... | bsd-3-clause | 8,033,356,386,240,784,000 | 33.805658 | 118 | 0.57628 | false | 4.509482 | false | false | false |
pkimber/block | example_block/views.py | 1 | 1619 | # -*- encoding: utf-8 -*-
from django.views.generic import TemplateView
from braces.views import (
LoginRequiredMixin,
StaffuserRequiredMixin,
)
from base.view_utils import BaseMixin
from block.forms import ContentEmptyForm
from block.views import (
ContentCreateView,
ContentPublishView,
ContentRe... | apache-2.0 | 4,447,388,726,142,022,700 | 21.802817 | 72 | 0.714021 | false | 4.067839 | false | false | false |
T2DREAM/t2dream-portal | src/encoded/commands/generate_annotations.py | 1 | 9507 | import requests
import json
import re
import time
import multiprocessing as mp
EPILOG = __doc__
_HGNC_FILE = 'https://www.encodeproject.org/files/ENCFF277WZC/@@download/ENCFF277WZC.tsv'
_MOUSE_FILE = 'https://www.encodeproject.org/files/ENCFF097CIT/@@download/ENCFF097CIT.tsv'
_DM_FILE = 'https://www.encodeproject.or... | mit | -2,805,111,701,800,776,700 | 31.896194 | 97 | 0.560429 | false | 3.808894 | false | false | false |
childsplay-mobi/cp-pygame | SPDataManager.py | 1 | 27828 | # -*- coding: utf-8 -*-
# Copyright (c) 2007-2010 Stas Zykiewicz <stas.zytkiewicz@schoolsplay.org>
#
# SPDataManager.py
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 3 of the GNU General Public License
# as published by the Free Software Foundation. A... | gpl-3.0 | -4,219,586,625,147,050,500 | 43.883871 | 141 | 0.582974 | false | 3.708422 | false | false | false |
liavkoren/djangoDev | tests/test_discovery_sample/doctests.py | 1 | 1192 | """
Doctest example from the official Python documentation.
https://docs.python.org/3/library/doctest.html
"""
def factorial(n):
"""Return the factorial of n, an exact integer >= 0.
>>> [factorial(n) for n in range(6)]
[1, 1, 2, 6, 24, 120]
>>> factorial(30)
265252859812191058636308480000000
>... | bsd-3-clause | -1,257,162,544,663,341,300 | 25.488889 | 72 | 0.605705 | false | 3.736677 | false | false | false |
ilstreltsov/django-db-mailer | dbmail/providers/twilio/sms.py | 1 | 1317 | # -*- coding: utf-8 -*-
from httplib import HTTPSConnection
from urllib import urlencode
from base64 import b64encode
from json import loads
from django.conf import settings
from dbmail.providers.prowl.push import from_unicode
from dbmail import get_version
class TwilioSmsError(Exception):
pass
def send(sms_... | gpl-2.0 | -5,037,271,726,113,817,000 | 25.34 | 78 | 0.626424 | false | 3.456693 | false | false | false |
JensTimmerman/easybuild-easyblocks | easybuild/easyblocks/s/samtools.py | 1 | 3213 | # This file is an EasyBuild recipy as per https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright (c) 2012 University of Luxembourg / LCSB
# Author:: Cedric Laczny <cedric.laczny@uni.lu>, Fotis Georgatos <fotis.georgatos@uni.lu>
# License:: MIT/GPL
# File:: $File$
# Date:: $Date$
"""
Easybuild s... | gpl-2.0 | 7,332,690,638,706,083,000 | 41.276316 | 113 | 0.521631 | false | 3.496192 | false | false | false |
xaxa89/mitmproxy | mitmproxy/proxy/config.py | 1 | 3861 | import os
import re
from typing import Any
from OpenSSL import SSL, crypto
from mitmproxy import exceptions
from mitmproxy import options as moptions
from mitmproxy import certs
from mitmproxy.net import tcp
from mitmproxy.net import server_spec
CONF_BASENAME = "mitmproxy"
class HostMatcher:
def __init__(self... | mit | 2,367,711,487,147,280,000 | 34.75 | 93 | 0.599068 | false | 4.219672 | false | false | false |
aldebaran/qibuild | python/qitoolchain/conan.py | 1 | 3506 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license (see the COPYING file).
""" Create a Conan Package with QiBuild tools """
from __future__ import absolute_import
from __future__ import unicode_lit... | bsd-3-clause | 4,813,513,214,411,253,000 | 35.520833 | 103 | 0.611238 | false | 3.682773 | false | false | false |
acapet/GHER-POSTPROC | Examples/O2bottomClim.py | 1 | 1744 | # We only import librairies needed for plotting
# Other librairies are imported in the class definition file, G3D_class.py,
# which contains all process and variables function definition.
import matplotlib
matplotlib.use('pdf')
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import datetime as dt
imp... | gpl-3.0 | -861,104,597,107,073,700 | 38.636364 | 129 | 0.682913 | false | 2.678955 | false | false | false |
bloomreach/briefly | src/briefly/defaults.py | 1 | 5344 | #
# Copyright 2013-2015 BloomReach, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | apache-2.0 | -2,506,245,100,201,422,000 | 36.900709 | 164 | 0.580838 | false | 3.308978 | false | false | false |
pescobar/easybuild-easyblocks | easybuild/easyblocks/s/stata.py | 1 | 3192 | ##
# Copyright 2009-2019 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | gpl-2.0 | 55,361,995,667,855,550 | 37.926829 | 121 | 0.656955 | false | 3.519294 | false | false | false |
emguy/Movie-Trailer | media.py | 1 | 3386 | # -*- coding: utf-8 -*-
#
# NOTE: This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either
# version 3, or (at your option) any later version.
#
# This program is distributed in the hope that it ... | gpl-3.0 | -1,718,229,491,148,597,800 | 31.247619 | 73 | 0.680154 | false | 3.120737 | false | false | false |
Karajlug/karajlug | viewhelper/models.py | 1 | 2334 | # coding: utf-8
# -----------------------------------------------------------------------------
# Karajlug.org
# Copyright (C) 2010-2013 Karajlug community
#
# 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
# th... | gpl-2.0 | 1,601,960,923,630,854,100 | 32.757576 | 79 | 0.557252 | false | 3.063274 | false | false | false |
kaguna/Yummy-Recipes | classes/categories.py | 1 | 5660 | # This file handles the class for the categories and the
# CRUD methods associated to the categories
import re
from classes.recipes import Recipes
class Categories(object):
"""This class will handle all the functions related to the categories and recipes"""
categories = []
def __init__(self, category_nam... | mit | 8,747,304,260,757,726,000 | 51.906542 | 103 | 0.59682 | false | 4.921739 | false | false | false |
petrushev/mkopen | mkopen/crawlers/dksk.py | 1 | 4021 | # -*- coding: utf-8 -*-
#---------- Државна комисија за спречување корупција ----------
import requests as rq
from StringIO import StringIO
import csv
from datetime import datetime
from time import sleep
from random import random
import locale
from lxml.html import fromstring
from mkopen.db.models import Data, Vers... | gpl-3.0 | -767,376,997,350,376,600 | 27.258993 | 90 | 0.60947 | false | 3.360137 | false | false | false |
WielderOfMjoelnir/pypeira | main.py | 1 | 1118 | import pypeira.pypeira as pype
if __name__ == "__main__":
# Create instance of IRA (not necessary but much more convenient for now)
ira = pype.IRA()
path = "./data"
# Read files. The read() function will walk from the given dir and find all files satisfying
# the given criteria. Set 'walk' to Fal... | mit | -8,322,726,822,375,709,000 | 35.064516 | 108 | 0.668157 | false | 3.398176 | false | false | false |
xLegoz/fabric | integration/test_operations.py | 1 | 6882 |
from six import StringIO as StringIO
import os
import posixpath
import shutil
from fabric.api import (
run, path, put, sudo, abort, warn_only, env, cd, local, settings, get
)
from fabric.contrib.files import exists
from utils import Integration
def assert_mode(path, mode):
remote_mode = run("stat -c \"%%a... | bsd-2-clause | -6,177,240,608,647,160,000 | 36 | 85 | 0.586022 | false | 3.637421 | true | false | false |
nektor211/imgaug | tests/check_background_augmentation.py | 1 | 3270 | from __future__ import print_function, division
import imgaug as ia
from imgaug import augmenters as iaa
from scipy import misc, ndimage
import numpy as np
from skimage import data
def main():
augseq = iaa.Sequential([
iaa.Fliplr(0.5),
iaa.CoarseDropout(p=0.1, size_percent=0.1)
])
print("-... | mit | 4,145,880,567,530,394,600 | 33.0625 | 114 | 0.592355 | false | 3.333333 | false | false | false |
tankywoo/simiki | simiki/server.py | 1 | 4414 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, unicode_literals
import os
import os.path
import sys
import logging
import traceback
from simiki.compat import is_py2, unicode
try:
import SimpleHTTPServer as http_server
except ImportError:
# py3
import ... | mit | 1,257,562,507,566,963,700 | 31.218978 | 96 | 0.607612 | false | 3.899293 | false | false | false |
haystack/eyebrowse-server | notifications/models.py | 1 | 7781 | from __future__ import unicode_literals
from __future__ import print_function
import base64
import datetime
from django.db import models
from django.db.models.query import QuerySet
from django.core.exceptions import ImproperlyConfigured
from django.contrib.contenttypes.models import ContentType
from django.contrib.au... | mit | 4,718,777,562,124,167,000 | 33.127193 | 89 | 0.658399 | false | 4.244954 | false | false | false |
eayunstack/neutron | neutron/plugins/ml2/drivers/helpers.py | 1 | 7033 | # Copyright (c) 2014 Thales Services SAS
# 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 r... | apache-2.0 | 3,381,965,087,420,021,000 | 39.188571 | 78 | 0.550974 | false | 4.800683 | false | false | false |
bstroebl/DigitizingTools | tools/dttools.py | 1 | 49803 | # -*- coding: utf-8 -*-
"""
dttools
`````````````
"""
"""
Part of DigitizingTools, a QGIS plugin that
subsumes different tools neded during digitizing sessions
* begin : 2013-02-25
* copyright : (C) 2013 by Bernhard Ströbl
* email : bernhard.stroebl@jena.de
This program is free ... | gpl-2.0 | -5,751,604,370,468,592,000 | 38.091052 | 146 | 0.555741 | false | 4.384751 | false | false | false |
HazyResearch/metal | metal/contrib/baselines/sparse_logreg.py | 1 | 1109 | from metal.contrib.modules.sparse_linear_module import SparseLinearModule
from metal.end_model import EndModel
from metal.utils import recursive_merge_dicts
class SparseLogisticRegression(EndModel):
"""A _sparse_ logistic regression classifier for a single-task problem
Args:
input_dim: The maximum le... | apache-2.0 | -7,200,890,425,346,443,000 | 41.653846 | 80 | 0.672678 | false | 4.062271 | false | false | false |
katerina7479/kadre | view/pages/tableboxpage.py | 1 | 3165 | from PySide import QtGui
from pages import Page
from view.widgets.buttonvbox import ButtonVBox
from view.widgets.tablebox import TableBox
class TableBoxPage(Page):
def __init__(self, parent, name):
super(TableBoxPage, self).__init__(parent, name)
def _setup(self):
self.headerlabeltext = "Thi... | mit | 9,157,603,631,712,562,000 | 29.432692 | 94 | 0.578831 | false | 3.732311 | false | false | false |
googleads/googleads-python-lib | examples/ad_manager/v202105/report_service/run_ad_exchange_report.py | 1 | 2145 | #!/usr/bin/env python
#
# Copyright 2018 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 requir... | apache-2.0 | 3,438,026,921,193,039,000 | 31.5 | 75 | 0.697902 | false | 3.756567 | false | false | false |
javiercantero/streamlink | tests/resources/__init__.py | 1 | 1277 | import codecs
import os.path
import six
from io import BytesIO
try:
import xml.etree.cElementTree as ET
except ImportError: # pragma: no cover
import xml.etree.ElementTree as ET
from contextlib import contextmanager
__here__ = os.path.abspath(os.path.dirname(__file__))
def _parse_xml(data, strip_ns=False)... | bsd-2-clause | 8,025,877,989,472,806,000 | 27.377778 | 90 | 0.617071 | false | 3.557103 | false | false | false |
adrianliaw/PyCuber | setup.py | 1 | 2055 | from setuptools import setup
import pycuber as pc
long_desc = """
PyCuber
=======
PyCuber is a Rubik's Cube package in Python 2/3.
--------------------------------------------------
The cube can be revealed as expanded view in the terminal, so it's easy
to visualise the cube, just inside the terminal. (Not tested on... | mit | 7,480,977,375,062,680,000 | 25.346154 | 72 | 0.56545 | false | 3.419301 | false | true | false |
Wyn10/Cnchi | cnchi/hardware/hardware.py | 1 | 14779 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# hardware.py
#
# Copyright © 2013-2016 Antergos
#
# This file is part of Cnchi.
#
# Cnchi 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... | gpl-3.0 | -156,210,725,189,507,170 | 36.507614 | 102 | 0.546353 | false | 4.461957 | false | false | false |
andremiller/beets | beetsplug/echonest.py | 1 | 17229 | # This file is part of beets.
# Copyright 2015, Adrian Sampson.
#
# 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, ... | mit | -5,006,644,330,438,449,000 | 33.527054 | 79 | 0.546346 | false | 4.023587 | true | false | false |
MicheleMaris/grasp_lib | stokesCubeMap.py | 1 | 16416 | VERSION='V 1.4 - 2014 Jun 4 - '
from grid2d import MapGrid
class stokesCubeMap :
def __init__(self,*Arg) :
arm_alias={'x':'S','y':'M'}
self._nameRIMO=None
self._angularCut=None
self._Nsamples=-1
self.File = []
self.Component = []
self.Instrument = []
self.Channel = [... | gpl-2.0 | -5,566,125,991,815,063,000 | 38.181384 | 147 | 0.569262 | false | 3.201248 | false | false | false |
hannorein/rebound | update_version.py | 1 | 1912 | #!/usr/bin/python
# This script automatically creates a list of examples by reading the header in all problem.c files.
import glob
import subprocess
ghash = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("ascii").strip()
with open("version.txt") as f:
reboundversion = f.readlines()[0].strip()
pri... | gpl-3.0 | 159,939,837,923,048,500 | 36.490196 | 174 | 0.638598 | false | 3.22973 | false | false | false |
neuRowsATL/animatLabSimulationAPI | class_chartViz.py | 1 | 5103 | """
Created by: Bryce Chung
Last modified: January 4, 2016
"""
import matplotlib.pyplot as plt
plt.ion()
global verbose
verbose = 3
class chartViz(object):
"""
This class is used to visualize chartData objects.
"""
def __init__(self):
self.data = {}
self.fig = None
... | gpl-2.0 | 2,067,055,089,075,999,700 | 35.45 | 102 | 0.386047 | false | 4.836967 | false | false | false |
cloughrm/Flask-Angular-Template | backend/pastry/models.py | 1 | 2070 | import random
import hashlib
from flask import current_app as app
from pastry.db import mongo
from werkzeug.security import generate_password_hash, check_password_hash
from itsdangerous import TimedJSONWebSignatureSerializer, SignatureExpired, BadSignature
class User(object):
def __init__(self, username, passwo... | mit | -8,695,304,718,168,323,000 | 30.363636 | 96 | 0.617391 | false | 4.115308 | false | false | false |
dmitryfizteh/MachineLearning | Week_1/Task_1/titanic.py | 1 | 2465 | import pandas
from scipy.stats.stats import pearsonr
print("Неделя №1. Задание №1")
# Функция вывода ответа
def write_result(result, index):
print("Ответ: " + str(result))
file = open("./Answers/" + str(index) + ".txt", "w")
file.write(result)
file.close()
data = pandas.read_csv('./Data/titanic.csv', ... | gpl-3.0 | -2,582,688,218,459,481,000 | 26.376623 | 95 | 0.610057 | false | 1.918107 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.