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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
trustyou/tyluigiutils | setup.py | 1 | 1848 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import os.path
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
def read(fname):
with open(fname... | mit | 1,872,680,828,354,485,800 | 27 | 115 | 0.643398 | false | 3.652174 | true | false | false |
nyu-dl/WebNav | op_link.py | 1 | 5077 | '''
Custom theano class to access page links.
'''
import numpy as np
import theano
from theano import gof
from theano import tensor
import time
import parameters as prm
import utils
class Link(theano.Op):
__props__ = ()
def __init__(self, wiki, wikipre, vocab):
self.wiki = wiki
self.wikipre =... | bsd-3-clause | -5,717,748,019,315,914,000 | 36.88806 | 106 | 0.478038 | false | 3.618674 | false | false | false |
michaeltelford/gatecrasher | UDP.py | 1 | 1267 |
# Network module used for all UDP networking aspects of the Gatecrasher script.
# Developed by Michael Telford.
import socket
# Initializes socket with datagram proto and binds to port arg.
def bind(port):
global s
host = ''
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind((host, port))
... | mit | -2,328,868,848,086,685,000 | 19.770492 | 79 | 0.629045 | false | 3.539106 | false | false | false |
fhorinek/pi8bit | py8bit/opt/controller.py | 1 | 45182 | from collections import OrderedDict
from cell import High, Low, Invisible
import wire
import cell
import pygame
import utils
from pygame import Rect
LEFT = 1
MID = 2
RIGHT = 3
WHEEL_UP = 4
WHEEL_DOWN = 5
MODE_IDLE = 0
MODE_MOVE = 1
MODE_ADD = 2
MODE_DEL = 3
MODE_WIRE = 4
MODE_PAN = 5
MODE_SELECT... | gpl-2.0 | -1,118,782,217,478,487,700 | 37.420918 | 149 | 0.441348 | false | 4.188949 | false | false | false |
lliendo/Radar | radar/logger/__init__.py | 1 | 2413 | # -*- coding: utf-8 -*-
"""
This file is part of Radar.
Radar 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 3 of the License, or
(at your option) any later version.
Radar is distributed ... | lgpl-3.0 | -8,177,158,718,975,967,000 | 32.513889 | 122 | 0.665147 | false | 3.94281 | false | false | false |
gopythongo/gopythongo | src/py/gopythongo/vaultgetcert.py | 1 | 33878 | # -* encoding: utf-8 *-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import functools
import os
import subprocess
import sys
import hvac
import configargparse
from... | mpl-2.0 | -4,284,949,911,080,452,000 | 55.842282 | 120 | 0.591977 | false | 3.877976 | true | false | false |
rekyuu/rpyg | src/objects/tiles.py | 1 | 2154 | # Default datasets for dungeon tiles.
walls = {
'north' : True,
'east' : True,
'south' : True,
'west' : True
}
entities = {
'items' : [],
'objects' : [],
'enemies' : [],
'npcs' : []
}
# Defines a series of tiles with walls.
class Tile (object):
def __init__ (self, walls=walls, entities=entities, text=... | mit | -8,520,644,150,798,013,000 | 20.117647 | 79 | 0.654596 | false | 2.860558 | false | false | false |
ibid/ibid | ibid/source/__init__.py | 1 | 2434 | # Copyright (c) 2008-2010, Michael Gorven, Stefano Rivera
# Released under terms of the MIT/X/Expat Licence. See COPYING for details.
from copy import copy
try:
from twisted.plugin import pluginPackagePaths
except ImportError:
# Not available in Twisted 2.5.0 in Ubuntu hardy
# This is straight from twiste... | gpl-3.0 | 6,954,459,534,629,569,000 | 28.325301 | 87 | 0.618324 | false | 4.146508 | false | false | false |
tfeldmann/tryagain | test_tryagain.py | 1 | 8433 | import mock
import pytest
import logging
import tryagain
import functools
class Namespace:
pass
def _return_true():
return True
def _raise_exception():
raise Exception()
def test_call_once():
assert tryagain.call(_return_true) is True
def test_call_twice():
assert tryagain.call(_return_tru... | mit | 3,310,043,868,446,940,000 | 22.957386 | 75 | 0.59362 | false | 3.776534 | true | false | false |
paulcwatts/django-auth-utils | auth_utils/utils.py | 1 | 1104 | from django.contrib.auth.models import User
from django.conf import settings
def is_allowed_username(username):
disallowed = getattr(settings, 'AUTH_DISALLOWED_USERNAMES', [])
return username.lower() not in disallowed
def get_username(basename):
disallowed = getattr(settings, 'AUTH_DISALLOWED_USERNAMES... | bsd-3-clause | 8,254,636,861,293,090,000 | 28.052632 | 67 | 0.641304 | false | 4.433735 | false | false | false |
tdsticks/crontab | py/wiki20/wiki20/model/__init__.py | 1 | 2437 | # -*- coding: utf-8 -*-
"""The application's model objects"""
from zope.sqlalchemy import ZopeTransactionExtension
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
# Global session manager: DBSession() returns the Thread-local
# session object appropriate... | gpl-2.0 | -153,422,786,090,273,340 | 37.68254 | 78 | 0.736972 | false | 4.082077 | false | false | false |
qsnake/qsnake | spkg/base/qsnake_run.py | 1 | 27165 | #! /usr/bin/env python
import os
import sys
from time import sleep
from glob import glob
from os.path import expandvars
from optparse import OptionParser
import tempfile
import subprocess
import time
import urllib2
import json
version = "0.9.12"
release_date = "May 7, 2011"
class CmdException(Exception):
pass
c... | bsd-3-clause | 838,599,484,452,875,400 | 32.209046 | 118 | 0.577324 | false | 3.586612 | false | false | false |
bparzella/secsgem | secsgem/secs/data_items/sdack.py | 1 | 1685 | #####################################################################
# sdack.py
#
# (c) Copyright 2021, Benjamin Parzella. All rights reserved.
#
# 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 Foun... | lgpl-2.1 | 4,805,233,631,875,200,000 | 36.444444 | 78 | 0.457567 | false | 4.773371 | false | false | false |
Sakartu/stringinfo | stringinfo.py | 1 | 1798 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
"""
Usage:
stringinfo [options] [--] [STRING]...
Options:
STRING The strings for which you want information. If none are given, read from stdin upto EOF. Empty strings are ignored.
--list List all plugins, with their descriptions and whether they're defau... | mit | -4,475,708,929,865,140,700 | 25.850746 | 131 | 0.588432 | false | 3.969095 | false | false | false |
Code4SA/mma-dexter | dexter/processing/crawlers/thecitizentz.py | 1 | 1629 | from urlparse import urlparse, urlunparse
import re
from bs4 import BeautifulSoup
import requests
import logging
from .base import BaseCrawler
from ...models import Entity, Author, AuthorType
class TheCitizenTZCrawler(BaseCrawler):
TCTZ = re.compile('(www\.)?thecitizen.co.tz')
log = logging.getLogger(__name_... | apache-2.0 | 2,409,094,208,924,812,000 | 34.413043 | 144 | 0.643953 | false | 3.806075 | false | false | false |
deapplegate/wtgpipeline | blank.py | 1 | 4506 | def add_correction_new(cat_list,OBJNAME,FILTER,PPRUN):
import scipy, re, string, os
''' create chebychev polynomials '''
cheby_x = [{'n':'0x','f':lambda x,y:1.},{'n':'1x','f':lambda x,y:x},{'n':'2x','f':lambda x,y:2*x**2-1},{'n':'3x','f':lambda x,y:4*x**3.-3*x}]
cheby_y = [{'n':'0y','f':lambda x,y:1.... | mit | 4,700,156,536,708,270,000 | 39.594595 | 146 | 0.458722 | false | 3.18896 | false | false | false |
aiven/aiven-client | tests/test_argx.py | 1 | 1825 | # Copyright 2020, Aiven, https://aiven.io/
#
# This file is under the Apache License, Version 2.0.
# See the file `LICENSE` for details.
try:
from functools import cached_property
except ImportError:
cached_property = None
from aiven.client.argx import arg, CommandLineTool
class TestCLI(CommandLineTool):
... | apache-2.0 | -4,218,275,428,768,166,000 | 19.505618 | 110 | 0.592877 | false | 3.509615 | false | false | false |
geotagx/geotagx-pybossa-archive | pybossa/stats.py | 1 | 14056 | # -*- coding: utf8 -*-
# This file is part of PyBossa.
#
# Copyright (C) 2013 SF Isle of Man Limited
#
# PyBossa 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... | agpl-3.0 | 3,382,761,236,077,615,600 | 34.494949 | 97 | 0.57712 | false | 3.425786 | false | false | false |
rclmenezes/sqlalchemy | examples/vertical/dictlike.py | 1 | 7696 | """Mapping a vertical table as a dictionary.
This example illustrates accessing and modifying a "vertical" (or
"properties", or pivoted) table via a dict-like interface. These are tables
that store free-form object properties as rows instead of columns. For
example, instead of::
# A regular ("horizontal") table h... | mit | -6,652,649,003,940,161,000 | 30.284553 | 80 | 0.618243 | false | 3.826952 | false | false | false |
OpenAcademy-OpenStack/nova-scheduler | nova/api/openstack/compute/plugins/v3/evacuate.py | 1 | 3721 | # Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 1,858,886,254,443,595,000 | 35.126214 | 79 | 0.658425 | false | 4.185602 | false | false | false |
bmihelac/django-cruds | tests/test_integration.py | 1 | 1639 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test.testcases import TestCase
from tests.testapp.models import (
Author,
)
class TestIntegration(TestCase):
def setUp(self):
self.author = Author.objects.create(name='Foo')
def test_list(self):
response = self... | bsd-3-clause | 394,007,786,364,623,360 | 31.137255 | 78 | 0.610738 | false | 3.893112 | true | false | false |
googleads/google-ads-python | google/ads/googleads/v8/resources/types/detail_placement_view.py | 1 | 2839 | # -*- 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 | -1,632,002,444,791,074,800 | 36.853333 | 93 | 0.66925 | false | 4.120464 | false | false | false |
heltonbiker/MapComplete | PyQt/FeatureDemos/helloQtDrawing.py | 1 | 9092 | #!/usr/bin/env python
# __author__ = 'helton'
import sip
sip.setapi('QVariant', 2)
from math import cos, pi, sin
from PyQt4 import QtCore, QtGui
class RenderArea(QtGui.QWidget):
def __init__(self, path, parent=None):
super(RenderArea, self).__init__(parent)
self.path = path
self.pen... | mit | -1,600,070,330,208,654,300 | 34.24031 | 96 | 0.648152 | false | 3.463619 | false | false | false |
Irrialite/YouTune | youtune/api/resources.py | 1 | 18770 | from datetime import date, datetime
import hashlib, inspect
from django.db.models import Q
from django.contrib.auth import authenticate, login, logout, models as auth_models
from django.contrib.auth.hashers import make_password
from django.conf.urls import url
from django.utils import timezone
from tastypie import re... | bsd-3-clause | -6,080,168,689,550,056,000 | 37.150407 | 122 | 0.535962 | false | 4.495808 | false | false | false |
ver228/tierpsy-tracker | tierpsy/debugging/check_default_attrs.py | 1 | 3346 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 30 16:51:07 2019
@author: lferiani
"""
import glob
import os
import tables
from tierpsy.helper.misc import RESERVED_EXT
from tierpsy.helper.params import set_unit_conversions, read_unit_conversions
from tierpsy import DFLT_PARAMS_PATH, DFLT_PARAM... | mit | -8,318,422,337,788,364,000 | 29.153153 | 87 | 0.668261 | false | 2.901995 | false | false | false |
kelvinguu/lang2program | strongsup/embeddings.py | 1 | 8329 | import os
from collections import namedtuple
from os.path import join
import numpy as np
from dependency.data_directory import DataDirectory
from gtd.chrono import verboserate
from gtd.ml.vocab import SimpleVocab, SimpleEmbeddings
from gtd.utils import random_seed, cached_property, ComparableMixin
from strongsup.tab... | apache-2.0 | -25,720,945,844,418,384 | 35.213043 | 115 | 0.629848 | false | 3.811899 | false | false | false |
rhyolight/nupic.son | tests/app/soc/modules/seeder/logic/ndb_models.py | 1 | 1269 | # Copyright 2013 the Melange authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 | -8,367,067,377,884,833,000 | 36.323529 | 78 | 0.764381 | false | 3.857143 | false | false | false |
seagatesoft/dateparser | tests/test_freshness_date_parser.py | 1 | 19130 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import six
import unittest
from datetime import datetime, timedelta, date, time
from functools import wraps
from dateutil.relativedelta import relativedelta
from mock import Mock, patch
from nose_parameterized import parameterized, param
from dateparser... | bsd-3-clause | -581,672,396,525,162,600 | 50.619048 | 107 | 0.548567 | false | 3.017521 | true | false | false |
jasondunsmore/heat | heat/engine/resources/openstack/nova/flavor.py | 1 | 5017 | #
# 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, software
# ... | apache-2.0 | 4,630,381,481,356,611,000 | 32.898649 | 78 | 0.606936 | false | 4.233755 | false | false | false |
Lokke/eden | modules/s3db/cap.py | 1 | 110403 | # -*- coding: utf-8 -*-
""" Sahana Eden Common Alerting Protocol (CAP) Model
@copyright: 2009-2015 (c) Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to dea... | mit | 8,098,246,358,597,634,000 | 43.661408 | 142 | 0.429789 | false | 5.030208 | false | false | false |
holtjma/msbwt | MUS/util.py | 1 | 4898 | '''
Created on Nov 1, 2013
@summary: this file mostly contains some auxiliary checks for the command line interface to make sure it's
handed correct file types
@author: holtjma
'''
import argparse as ap
import glob
import os
#I see no need for the versions to be different as of now
DESC = "A multi-string BWT package ... | mit | -1,118,803,294,601,152,300 | 28.506024 | 124 | 0.569212 | false | 3.719058 | false | false | false |
giuseppe/virt-manager | virtManager/uihelpers.py | 1 | 44094 | #
# Copyright (C) 2009, 2013, 2014 Red Hat, Inc.
# Copyright (C) 2009 Cole Robinson <crobinso@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# ... | gpl-2.0 | 6,635,527,054,526,621,000 | 29.472702 | 80 | 0.576995 | false | 3.694202 | false | false | false |
edubecks/vaidecaronaorg | caronasbrasilapp/djangoapp/apps/caronasbrasil/robots/crawler.py | 1 | 3567 | # coding: utf-8
from pprint import pprint
import unidecode
from djangoapp.apps.caronasbrasil.model.caronasbrasil.carona_post import CaronaPost
from djangoapp.apps.caronasbrasil.model.fb_groups.fb_groups_controller import FBGroupsController
from djangoapp.apps.caronasbrasil.persistence_controller import PersistenceContr... | mit | -4,877,079,740,951,469,000 | 37.771739 | 99 | 0.552285 | false | 3.852052 | false | false | false |
therewillbecode/ichnaea | ichnaea/api/views.py | 1 | 5002 | """
Implementation of a API specific HTTP service view.
"""
import colander
import simplejson as json
import six
from ichnaea.api.exceptions import (
DailyLimitExceeded,
InvalidAPIKey,
ParseError,
)
from ichnaea.api.rate_limit import rate_limit_exceeded
from ichnaea.models.api import ApiKey
from ichnaea i... | apache-2.0 | -380,044,028,456,352,960 | 33.027211 | 77 | 0.57597 | false | 4.0016 | false | false | false |
jrheling/pid_controller | pid_controller/tests/PeakCounterTest.py | 1 | 2050 | #!/usr/bin/python
import PeakCounter
import unittest
import random
import time
class PeakCounterTest(unittest.TestCase):
def setUp(self):
self.PC = PeakCounter.PeakCounter()
def test_construct(self):
self.assertIsInstance(self.PC, PeakCounter.PeakCounter)
def test_initnumpeaks(self):
... | apache-2.0 | 9,204,944,022,240,669,000 | 29.61194 | 85 | 0.611707 | false | 3.311793 | true | false | false |
NorthernLightsDataLab/pyCFL | pyCFL/core.py | 1 | 1309 |
import urllib.request, json, re
import pyCFL.config as cfg
class cflAPI(object):
def __init__(self):
self.base_url = 'http://api.cfl.ca/v1'
self._set_api_key()
def _get_games_data(self, season, game_id=None):
if game_id:
api_url = self.base_url + '/games/' + str(season) + ... | mit | 3,525,122,950,929,481,700 | 34.378378 | 109 | 0.537051 | false | 3.240099 | false | false | false |
vroomfondle/podi | lib/podi/util/util.py | 1 | 4084 | """
Podi, a command-line interface for Kodi.
Copyright (C) 2015 Peter Frost <slimeypete@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License... | gpl-3.0 | -5,527,879,337,605,631,000 | 36.46789 | 115 | 0.652057 | false | 3.813259 | false | false | false |
h-mayorquin/camp_india_2016 | tutorials/chemical switches/moose/neuroml/GranuleCell/Granule98.py | 1 | 2209 | ## Aditya Gilra, NCBS, Bangalore, 2012
"""
Inside the .../moose-examples/GranuleCell/ directory supplied with MOOSE, run
python testNeuroML_Gran98.py
(other channels and morph xml files are already present in this same directory).
The soma name below is hard coded for gran98, else any other file can be used by modifyi... | mit | -6,429,822,865,173,721,000 | 31.485294 | 124 | 0.650521 | false | 2.832051 | false | false | false |
jricardo27/travelhelper | old/core/lpparser.py | 1 | 4319 | __author__ = 'ricardo'
"""
Parse Lonely Planet pages
"""
import re
import urllib2
from collections import OrderedDict
from bs4 import BeautifulSoup
def get_text(elem):
"""
Return the element's text encoded in utf-8
"""
return '\n'.join(elem.stripped_strings).encode('utf8')
def parse_sight_index(in... | bsd-3-clause | -1,066,586,597,003,418,100 | 23 | 79 | 0.561704 | false | 3.358476 | false | false | false |
usccolumbia/CSCE206_Projects | WinnerTakeAllPokerGame/winnertakeall.py | 1 | 4415 | #University of South Carolina
#CSCE206 Scientific Application Programming
#Fall 2014 Final project
#Poker game
import Tkinter
from Tkinter import *
import random
def shuffledeck():
deck = []
for s in ['Clubs', 'Diamonds', 'Hearts', 'Spades']:
for n in range(2, 15):
deck.append([n, s]... | mit | 7,677,825,762,820,851,000 | 26.949367 | 123 | 0.6453 | false | 2.997284 | false | false | false |
bretthandrews/marvin | python/marvin/tools/spectrum.py | 1 | 7931 | #!/usr/bin/env python
# encoding: utf-8
#
# spectrum.py
#
# Licensed under a 3-clause BSD license.
# Revision history:
# 13 Apr 2016 J. Sánchez-Gallego
# Initial version
from __future__ import division
from __future__ import print_function
import sys
import numpy as np
import matplotlib.pyplot as plt
cla... | bsd-3-clause | -7,553,470,793,640,075,000 | 37.495146 | 95 | 0.562926 | false | 4.206897 | false | false | false |
monome/ansible | tools/flash_tools/commands/extract/extract_presets.py | 1 | 1236 | import argparse
import json
from commands.extract.extractor import PresetExtractor
def extract(args):
extractor = PresetExtractor(args.firmware, args.version, args.hexfile)
presets, image = extractor.extract()
with open(args.out, 'w') as outf:
outf.write(json.dumps(
presets,
... | gpl-2.0 | -2,786,293,025,625,807,400 | 25.297872 | 79 | 0.599515 | false | 3.974277 | false | false | false |
hesamd/hazm | hazm/Lemmatizer.py | 1 | 6668 | # coding: utf-8
from __future__ import unicode_literals
import codecs
from .utils import default_words, default_verbs
from .Stemmer import Stemmer
from .WordTokenizer import WordTokenizer
class Lemmatizer(object):
"""
>>> lemmatizer = Lemmatizer()
>>> lemmatizer.lemmatize('کتابها')
'کتاب'
>>> lemmatizer.lemmat... | mit | -5,352,278,371,199,366,000 | 47.388889 | 952 | 0.628205 | false | 1.735636 | false | false | false |
speignier/suppositoire | consistency_check.py | 1 | 3723 | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 19 22:31:53 2015
@author: Ilya
"""
# %% prepare
import pandas as pd
from datetime import datetime
import calendar
import re
import numpy as np
dtt = lambda datetime_str: datetime.strptime(datetime_str, '%Y-%m-%d %H:%M:%S')
df_train = pd.read_csv('../data/train.csv')
# ... | gpl-2.0 | 5,107,858,348,160,119,000 | 41.306818 | 143 | 0.678754 | false | 2.52065 | false | false | false |
miing/mci_migo | acceptance/tests/emails/email_token_link.py | 1 | 1115 | # 6) Ensure tokens work from the email, and also clicking the
# link in the email works.
from sst.actions import (
assert_element,
assert_title_contains,
click_button,
get_element,
go_to,
wait_for,
write_textfield,
)
from u1testutils import mail
from u1testutils.sso import mail as sso_mail
f... | agpl-3.0 | 1,245,991,233,961,042,700 | 28.342105 | 70 | 0.749776 | false | 3.318452 | false | true | false |
repotvsupertuga/repo | plugin.video.zen/resources/lib/sources/watchfilm.py | 1 | 4031 | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This prog... | gpl-2.0 | -2,366,760,702,463,126,000 | 28.423358 | 156 | 0.639295 | false | 3.25869 | false | false | false |
kamilkloch/pdr-dfki | python/database.py | 1 | 3427 | from __future__ import (absolute_import, division, print_function)
from couchdb import Server
from couchdb.design import ViewDefinition
class Database(object):
""" TODO: docstring
"""
def __init__(self, server_url=u'http://127.0.0.1:5984/', db_name='ble-new'):
# 'http://dfki-1239.dfki.uni-kl.de:598... | mit | 6,161,475,019,724,955,000 | 33.626263 | 104 | 0.457251 | false | 4.114046 | false | false | false |
madoodia/codeLab | python/modules_platform.py | 1 | 1829 | # ===============================================
# MODULE STUDY: platform
import platform
################################ Cross Platform ################################
platform.architecture() # Returns a tuple (bits, linkage)
platform.machine() # Returns the machine type, e.g. 'i386'
platform.node(... | mit | 965,381,198,625,149,200 | 39.511111 | 146 | 0.664838 | false | 4.361244 | false | false | false |
BrewCenter/BrewCenterAPI | brewcenter_api/brew_data/data_miner/brew_target/fermentables.py | 1 | 4778 | """
Extracts Fermentables from the database, transforms them, and builds a new db.
"""
from brew_data.data_miner.brew_target.utils import clean, convert_country
class Fermentable:
def __init__(self, data):
self.name = data[0]
self.type = data[1]
self.potential = data[2]
self.lovib... | gpl-3.0 | 4,258,352,382,892,321,300 | 36.328125 | 216 | 0.525952 | false | 3.603318 | false | false | false |
Zen-CODE/kivybits | Examples/ColorPickerPopup/main.py | 1 | 2985 | '''
Demo Popup with a ColorPicker
'''
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.colorpicker import ColorPicker
from kivy.uix.popup import Popup
from kivy.uix.label import Label
class ColorPopup(App):
'''
This class represent you applicat... | mit | -1,846,627,650,480,030,200 | 32.166667 | 75 | 0.586265 | false | 4.301153 | false | false | false |
pkrebs/WIDPS | fw_modules/module_daemon.py | 1 | 5578 | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
#
# module_daemon.py - WIDS/WIPS framework frame daemon base class module
# Copyright (C) 2009 Peter Krebs, Herbert Haas
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published... | gpl-2.0 | 7,683,708,546,887,967,000 | 28.209424 | 110 | 0.542668 | false | 4.165795 | false | false | false |
fyabc/MiniGames | HearthStone2/MyHearthStone/ui/ui_pyqt/ui_dialog_create_deck.py | 1 | 11521 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dialog_create_deck.ui'
#
# Created by: PyQt5 UI code generator 5.9
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_DialogCreateDeck(object):
def setupUi(self, DialogCreateDec... | mit | 2,872,133,755,172,138,000 | 48.415584 | 106 | 0.687516 | false | 3.511227 | false | false | false |
natanocr/instadown | instadown.py | 1 | 1429 | import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from flask import Flask, request, render_template
import requests
from bs4 import BeautifulSoup
import os
app = Flask(__name__)
header = {"User-Agent":"instadown", "e-mail":"contato@contato.com"}
def get_data(url):
r = requests.get(url, headers=header)
... | mit | 5,269,061,608,380,642,000 | 29.404255 | 84 | 0.582225 | false | 3.476886 | false | false | false |
danmoser/pyhdust | pyhdust/rotstars.py | 1 | 28843 | # -*- coding:utf-8 -*-
"""PyHdust *rotstars* module: Rotating stars tools.
:co-author: Rodrigo Vieira
:license: GNU GPL v3.0 https://github.com/danmoser/pyhdust/blob/master/LICENSE
"""
from __future__ import print_function
import os as _os
import re as _re
import numpy as _np
from pyhdust import hdtpath as _hdtpath
f... | gpl-3.0 | 1,490,024,845,966,270,700 | 34.874378 | 80 | 0.519745 | false | 2.523447 | false | false | false |
axbaretto/beam | sdks/python/.tox/docs/lib/python2.7/site-packages/sphinx/errors.py | 1 | 1963 | # -*- coding: utf-8 -*-
"""
sphinx.errors
~~~~~~~~~~~~~
Contains SphinxError and a few subclasses (in an extra module to avoid
circular import problems).
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
class SphinxError(Exception):... | apache-2.0 | 1,207,145,405,419,724,500 | 24.493506 | 74 | 0.608253 | false | 4.030801 | false | false | false |
okolisny/integration_tests | cfme/tests/test_rest.py | 1 | 32165 | # -*- coding: utf-8 -*-
"""This module contains REST API specific tests."""
import random
import pytest
import fauxfactory
from cfme import test_requirements
from cfme.infrastructure.provider.rhevm import RHEVMProvider
from cfme.infrastructure.provider.virtualcenter import VMwareProvider
from cfme.rest.gen_data impo... | gpl-2.0 | 4,843,326,511,060,586,000 | 36.357724 | 100 | 0.656801 | false | 3.828255 | true | false | false |
bloem-project/bloem-server | files/models.py | 1 | 3838 | # -*- coding: utf-8 -*-
"""Model definitions for Bloem's files application.
This module defines the various models used as part of Bloem's files
application.
"""
import os
from django.db import models
class Directory(models.Model):
"""Defines the Directory model used in Bloem's files application.
Fields... | gpl-3.0 | 7,179,614,170,286,121,000 | 27.857143 | 79 | 0.633924 | false | 4.006263 | false | false | false |
mvpossum/machine-learning | tp4/plot_table.py | 1 | 1620 | #! /usr/bin/env python
import sys
import os
from sys import argv
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
FILE = argv[1]
PLOT_FILE = os.path.splitext(FILE)[0]+'.png'
ERROR = 'er' in FILE.lower()
legend = argv[2:]
cols = len(... | mit | -6,190,329,077,399,839,000 | 24.296875 | 109 | 0.57937 | false | 2.684909 | false | false | false |
zanardob/django-pizza | pizzeria/pizzeria/settings.py | 1 | 2661 | """
Django settings for pizzeria project.
Generated by 'django-admin startproject' using Django 1.8.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pat... | cc0-1.0 | -1,323,239,971,014,439,400 | 24.834951 | 71 | 0.699737 | false | 3.40717 | false | false | false |
cinemapub/bright-response | scripts/lib/foursquare/foursquare/tests/test_events.py | 1 | 1068 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# (c) 2013 Mike Lewis
import logging; log = logging.getLogger(__name__)
from . import BaseAuthenticatedEndpointTestCase, BaseUserlessEndpointTestCase
class EventsEndpointTestCase(BaseAuthenticatedEndpointTestCase):
"""
General
"""
def test_event(self):
... | mit | 7,469,222,720,811,461,000 | 25.04878 | 93 | 0.667603 | false | 4 | true | false | false |
msakai/pyubcsat | ubcsat.py | 1 | 2406 | import re
import subprocess
import sys
class Solver():
def __init__(self, ubcsat = "ubcsat"):
self._ubcsat = ubcsat
self._nvar = 0
self._clauses = []
self._soft_clauses = []
def newvar(self):
self._nvar += 1
return self._nvar
def add_clause(self, clause):
... | bsd-3-clause | -7,839,600,136,086,166,000 | 29.075 | 107 | 0.489194 | false | 3.601796 | false | false | false |
ajiwo/xiboside | xlf.py | 1 | 3207 | from xml.etree import ElementTree
import logging
log = logging.getLogger('xiboside.xlf')
def parse_file(path):
layout = None
try:
_xlf = Xlf(path)
except ElementTree.ParseError, err:
log.error(err.message)
return None
except IOError, err:
log.error("%s: %s" % (err.strer... | agpl-3.0 | -4,592,609,816,481,283,000 | 24.862903 | 67 | 0.428438 | false | 4.447989 | false | false | false |
gltn/stdm | stdm/third_party/sqlalchemy/inspection.py | 1 | 3030 | # sqlalchemy/inspect.py
# Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""The inspection module provides the :func:`_sa.inspect` function,
which deli... | gpl-2.0 | -4,353,928,173,663,887,400 | 31.580645 | 72 | 0.671617 | false | 4.029255 | false | false | false |
eJon/enjoy | main.py | 1 | 1373 | # -*- coding:utf-8 -*-
#!/usr/bin/env python
__author__ = 'Leo'
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
from tornado.options import define, options
from game.game_server import GameApplication
define("port", default=8000, type=int, metavar="SERVER PORT", help="Run... | gpl-3.0 | -1,949,856,449,309,619,000 | 31.690476 | 111 | 0.706482 | false | 3.632275 | false | false | false |
metinkilicse/pyTurEng | pyTurEng/pyTurEng.py | 1 | 1308 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from __future__ import absolute_import
from TurEng import TurEng
import sys
import os
args = sys.argv
if len(args)==4:
dic = args[1]
lang = args[2]
query = args[3]
dic_obj = TurEng()
dic_obj.change_url(dic)
if lang == "en":
result = dic_obj.get_meaning(query,"tr ... | gpl-3.0 | 5,442,897,099,161,561,000 | 23.679245 | 71 | 0.626147 | false | 2.544747 | false | false | false |
scylladb/seastar | scripts/perftune.py | 1 | 61933 | #!/usr/bin/env python3
import abc
import argparse
import distutils.util
import enum
import functools
import glob
import itertools
import logging
import multiprocessing
import os
import pathlib
import pyudev
import re
import shutil
import subprocess
import sys
import urllib.request
import yaml
import platform
import sh... | apache-2.0 | -1,003,424,227,751,248,800 | 39.852902 | 264 | 0.611516 | false | 3.612939 | true | false | false |
flant/dapp | pkg/build/builder/ansible/callback/werf.py | 1 | 2679 | # -*- coding: utf-8 -*-
# (c) 2018, Ivan Mikheykin <ivan.mikheykin@flant.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
cal... | apache-2.0 | -6,994,132,084,483,275,000 | 31.670732 | 92 | 0.628593 | false | 3.605653 | true | false | false |
gatsinski/kindergarten-management-system | kindergarten_management_system/kms/contrib/cms_carousel/migrations/0001_initial.py | 1 | 1898 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import filer.fields.image
class Migration(migrations.Migration):
dependencies = [
('cms', '0016_auto_20160608_1535'),
('filer', '0007_auto_20161016_1055'),
... | gpl-3.0 | -9,153,950,609,728,425,000 | 42.136364 | 206 | 0.591149 | false | 4.029724 | false | false | false |
yousrabk/mne-python | mne/viz/ica.py | 1 | 30591 | """Functions to plot ICA specific data (besides topographies)
"""
from __future__ import print_function
# Authors: Denis Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Teon Brooks <teon.brooks@gmail.com>
#
# License: Simplified BSD
from functools... | bsd-3-clause | 7,818,122,220,882,212,000 | 36.397311 | 79 | 0.593475 | false | 3.590914 | false | false | false |
kernsuite-debian/lofar | MAC/Deployment/data/Coordinates/calc_coordinates.py | 1 | 5787 | #!/usr/bin/env python
# coding: iso-8859-15
import sys
import pgdb
import pg
from copy import deepcopy
from optparse import OptionParser
import getpass
from database import getDBname, getDBhost, getDBport, getDBuser
INTRO = """
Conversion between ETRS89 and ITRS2000 coordinates based on
Memo : Specifications for refe... | gpl-3.0 | -5,707,530,155,973,449,000 | 31.880682 | 122 | 0.544496 | false | 3.190187 | false | false | false |
zoni/pushover-cli | pushover_cli.py | 1 | 2324 | #!/usr/bin/env python
# Copyright (c) 2013 Nick Groenen <nick@groenen.me>
import argparse
import chump
def main():
parser = argparse.ArgumentParser(description="Simple pushover client")
parser.add_argument('--token', required=True, help="your application's API token")
parser.add_argument('--user', requi... | mit | -6,797,070,299,818,647,000 | 53.046512 | 220 | 0.70568 | false | 3.905882 | false | false | false |
aminhp93/learning_python | src/comments/migrations/0001_initial.py | 1 | 1264 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-31 16:25
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 = [
('conten... | mit | 909,350,399,107,684,600 | 38.5 | 137 | 0.631329 | false | 4.199336 | false | false | false |
jhoenicke/mempool | eth/txpool_parse.py | 1 | 2468 | #!/usr/bin/env python3
import json
import sys
import time
from subprocess import PIPE, Popen
FEELIMIT = [0.0001, 1, 2, 3, 4, 5, 6, 7, 8, 10,
12, 14, 17, 20, 25, 30, 40, 50, 60, 70, 80, 100,
120, 140, 170, 200, 250, 300, 400, 500, 600, 700, 800, 1000,
1200, 1400, 1700, 2000, 2500, 30... | agpl-3.0 | 7,091,031,645,175,694,000 | 32.808219 | 84 | 0.522285 | false | 3.54089 | false | false | false |
zegra1989/pytree | bplustree.py | 1 | 17009 | # -*- coding:utf-8 -*-
# 使用 UTF-8
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
class NameNode(object):
def __init__(self, degree, optimize=3):
super(NameNode, self).__init__()
self.num = 0
self.degree = degree
self.threshold = degree*2
self.keys = [None for _ in... | mit | 5,075,025,887,707,922,000 | 28.057895 | 86 | 0.513796 | false | 3.376758 | false | false | false |
julienmalard/Tinamit | tinamit/mod/var.py | 1 | 3075 | import numpy as np
import xarray as xr
from tinamit.config import _
class Variable(object):
"""La clase más general para variables de modelos en Tinamït."""
def __init__(símismo, nombre, unid, ingr, egr, inic=0, líms=None, info=''):
"""
Parameters
----------
nombre: str
... | gpl-3.0 | -3,288,465,236,079,383,000 | 26.198198 | 94 | 0.556476 | false | 3.074338 | false | false | false |
InfoAgeTech/django-umanage | umanage/accounts/views.py | 1 | 3423 | from __future__ import unicode_literals
from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from django.views.generic.base import TemplateView
from django.views.generic.edit import FormView
from django_core.utils.loading import get_class_from... | mit | -5,431,782,645,010,916,000 | 36.206522 | 81 | 0.603856 | false | 4.428202 | true | false | false |
erdc/proteus | proteus/mprans/Dissipation.py | 1 | 70664 | from __future__ import division
from builtins import range
from past.utils import old_div
import proteus
from proteus.mprans.cDissipation import *
from proteus.mprans.cDissipation2D import *
import numpy as np
from proteus import Profiling as prof
from proteus import cfemIntegrals
from . import cArgumentsDict
"""
NOTES... | mit | -5,397,842,456,893,396,000 | 53.566795 | 238 | 0.570205 | false | 3.718571 | true | false | false |
jaekor91/xd-elg-scripts | produce-DECaLS-DR3-Tractor-DEEP2f234.py | 1 | 4558 | # Loading modules
import numpy as np
from os import listdir
from os.path import isfile, join
from astropy.io import ascii, fits
from astropy.wcs import WCS
import numpy.lib.recfunctions as rec
from xd_elg_utils import *
import sys
large_random_constant = -999119283571
deg2arcsec=3600
data_directory = "./"
# True if... | gpl-3.0 | -1,165,579,882,566,895,900 | 33.793893 | 204 | 0.667617 | false | 2.737538 | false | false | false |
GoogleCloudPlatform/sap-deployment-automation | third_party/github.com/ansible/awx/awx/main/managers.py | 1 | 10952 | # Copyright (c) 2015 Ansible, Inc.
# All Rights Reserved.
import sys
import logging
import os
from django.db import models
from django.conf import settings
from awx.main.utils.filters import SmartFilter
from awx.main.utils.pglock import advisory_lock
___all__ = ['HostManager', 'InstanceManager', 'InstanceGroupManag... | apache-2.0 | 6,251,329,385,971,334,000 | 42.633466 | 141 | 0.582816 | false | 4.444805 | false | false | false |
mferenca/HMS-ecommerce | ecommerce/extensions/basket/app.py | 1 | 1028 | from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from oscar.apps.basket import app
from oscar.core.loading import get_class
class BasketApplication(app.BasketApplication):
single_item_view = get_class('basket.views', 'BasketSingleItemView')
summary_view = get_class('b... | agpl-3.0 | 4,891,847,817,165,289,000 | 43.695652 | 111 | 0.644942 | false | 3.381579 | false | false | false |
azoft-dev-team/imagrium | src/pages/bottom_navigation.py | 1 | 1266 | from src.core.page import ResourceLoader, Page
from src.core.r import Resource
from src.pages.explore import Explore
from src.pages.me.me import Me
class BottomNavigation(Page):
meNavIconInactive = ResourceLoader(Resource.meNavIconInactive)
meNavIconActive = ResourceLoader(Resource.meNavIconActive)
expl... | mit | 1,978,720,015,273,471,700 | 30.65 | 76 | 0.691943 | false | 3.95625 | false | false | false |
cdent/tiddlywebplugins.policyfilter | test/test_filter.py | 1 | 2381 |
from tiddlyweb.filters import FilterError, recursive_filter, parse_for_filters
from tiddlyweb.model.tiddler import Tiddler
from tiddlyweb.model.bag import Bag
from tiddlyweb.model.recipe import Recipe
from tiddlyweb.store import Store
from tiddlywebplugins.policyfilter import init
from tiddlyweb.config import config
... | bsd-3-clause | -800,240,816,916,698,600 | 25.164835 | 78 | 0.649727 | false | 3.162019 | true | false | false |
mjonescase/flask-truss | flask_truss/manage.py | 1 | 1920 | from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
from flask_truss.factory import create_app
from flask_truss.conf.app import Config
from flask_truss.async.base import celery_instance
from flask_truss.models.base import db
config = Config()
app = create_app(config)
manager =... | mit | -6,636,964,529,650,362,000 | 33.285714 | 108 | 0.690625 | false | 3.80198 | true | false | false |
slongfield/StereoCensus | verilog/census/argmin_gen.py | 1 | 3581 | # argmin_gen.py
#
# Takes in a single argument, the number of inputs, and generates a verilog
# armin tree, using the argmin_helper.
#
# Copyright (c) 2016, Stephen Longfield, stephenlongfield.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | gpl-3.0 | -7,825,781,145,096,044,000 | 27.879032 | 78 | 0.60458 | false | 3.545545 | false | false | false |
yaukwankiu/armor | geometry/fractal.py | 1 | 1840 | import time
import numpy as np
from .. import defaultParameters as dp
def hausdorffDim(a, epsilon=2):
"""
#codes from
# hausdorffDimensionTest.py
# http://en.wikipedia.org/wiki/Hausdorff_dimension
# http://en.wikipedia.org/wiki/Minkowski-Bouligand_dimension
"""
dims = []
a... | cc0-1.0 | -3,036,818,565,936,485,000 | 33.716981 | 98 | 0.561957 | false | 2.88854 | false | false | false |
GuessWhatGame/generic | preprocess_data/extract_img_features.py | 1 | 3564 | #!/usr/bin/env python
import numpy
import os
import tensorflow as tf
from multiprocessing import Pool
from tqdm import tqdm
import numpy as np
import h5py
from generic.data_provider.nlp_utils import DummyTokenizer
from generic.data_provider.iterator import Iterator
def extract_features(
img_input,
ft... | apache-2.0 | 6,149,952,111,916,122,000 | 33.941176 | 105 | 0.518799 | false | 4.054608 | false | false | false |
dmr/Ldtools | ldtools/cli.py | 1 | 5600 | from __future__ import print_function
import logging
import pprint
import datetime
import sys
import argparse
from ldtools.utils import (
is_valid_url,
get_slash_url,
get_rdflib_uriref,
urllib2,
)
from ldtools.helpers import set_colored_logger
from ldtools.backends import __version__
from ldtools.ori... | bsd-2-clause | -6,555,714,055,889,037,000 | 31 | 75 | 0.594286 | false | 3.932584 | false | false | false |
shaochangbin/crosswalk | app/tools/android/manifest_json_parser.py | 1 | 8310 | #!/usr/bin/env python
# Copyright (c) 2013, 2014 Intel Corporation. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Parse JSON-format manifest configuration file and
provide the specific fields, which have to be integrated with
packaging t... | bsd-3-clause | -8,263,335,172,196,524,000 | 34.211864 | 80 | 0.644043 | false | 3.708166 | false | false | false |
morevnaproject/RenderChan | renderchan/core.py | 1 | 56360 | __author__ = 'Konstantin Dmitriev'
__version__ = '1.0-alpha1'
import sys
from renderchan.file import RenderChanFile
from renderchan.project import RenderChanProjectManager
from renderchan.module import RenderChanModuleManager, RenderChanModule
from renderchan.utils import mkdirs
from renderchan.utils import float_trun... | bsd-3-clause | 7,134,858,892,546,014,000 | 41.9246 | 292 | 0.527715 | false | 4.45745 | false | false | false |
JoseBlanca/seq_crumbs | crumbs/seq/alignment_result.py | 1 | 48822 | '''This module holds the code that allows to analyze the alignment search
result analysis.
It can deal with blasts, iprscan or ssaha2 results.
This results can be parsed, filtered and analyzed.
This module revolves around a memory structure that represents a blast or
an iprscan result. The schema of this structure is... | gpl-3.0 | 7,515,614,803,057,729,000 | 37.778396 | 83 | 0.540637 | false | 4.268404 | false | false | false |
bjmain/host_choice_GWAS_arabiensis | PCA-based_Fst/fst_by_chr_plot.2.py | 1 | 9451 | #!/usr/bin/python
import matplotlib as MPL
MPL.use('agg') # no X (so show won't work)
from matplotlib.figure import Figure
from matplotlib.patches import Rectangle
#from matplotlib import rc #for adding italics. Via latex style
#rc('text', usetex=True)
import pylab as P
import math
import numpy
import commands
impo... | mit | 2,981,110,976,975,777,000 | 32.753571 | 157 | 0.623214 | false | 2.429563 | false | false | false |
Phoenyx/TruemaxScriptPackage | Truemax/moduleScene.py | 1 | 8187 | __author__ = 'sofiaelm'
import os
from Truemax.checkNaming import get_top_node
from Truemax.hfFixShading import hfFixBadShading
import Truemax.makeReference as makeReference
import Truemax.exportFBX as exportFBX
import Truemax.deleteDPLayers as deleteDPLayers
import Truemax.fixAllBelow as fixAllBelow
from Truemax impo... | gpl-2.0 | 5,604,648,493,260,993,000 | 39.334975 | 118 | 0.636619 | false | 3.786772 | false | false | false |
webu/pybbm | pybb/models.py | 1 | 20374 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.exceptions import ValidationError
from django.core.urlresolvers import reverse
from django.db import models, transaction, DatabaseError
from django.utils.encoding import python_2_unicode_compatible
from django.utils.functional import cach... | bsd-2-clause | 5,318,720,958,938,460,000 | 35.70991 | 142 | 0.620742 | false | 3.986304 | false | false | false |
HewlettPackard/python-proliant-sdk | examples/Redfish/ex23_dump_ilo_event_log.py | 1 | 2839 | # Copyright 2016 Hewlett Packard Enterprise Development, LP.
#
# 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 re... | apache-2.0 | 5,327,622,165,731,874,000 | 40.402985 | 78 | 0.586122 | false | 3.954039 | false | false | false |
eugene-eeo/mailthon | mailthon/envelope.py | 1 | 1654 | """
mailthon.envelope
~~~~~~~~~~~~~~~~~
Implements the Envelope object.
:copyright: (c) 2015 by Eeo Jun
:license: MIT, see LICENSE for details.
"""
class Envelope(object):
"""
Enclosure adapter for encapsulating the concept of
an Envelope- a wrapper around some content in the
for... | mit | 1,613,581,448,409,228,000 | 27.033898 | 64 | 0.612455 | false | 4.145363 | false | false | false |
datagrok/python-misc | datagrok/math/vector.py | 1 | 1548 | """Snippets from linear algebra class"""
from numpy import dot, array, sqrt, matrix
# TODO: many of these may be part of numpy now. Check and cull
def proj(M,x):
"""
>>> A = array([[1, 2], [2, 1]])
>>> x = array([[1], [2]])
>>> proj(A, x)
matrix([[ 1.],
[ 2.]])
"""
# proj_w(x... | agpl-3.0 | -8,830,901,386,614,149,000 | 18.35 | 101 | 0.443152 | false | 2.988417 | false | false | false |
wasim21k/pihome | cron/login.py | 1 | 2609 | #!/usr/bin/python
# add following line to show up when some one ssh to pi /etc/profile
# sudo python /var/www/cron/login.py
# clear everything from /etc/motd to remove generic message.
import socket, os, re, time, sys, subprocess, fcntl, struct
from threading import Thread
class bc:
HEADER = '\033[0;36;40m'
ENDC = ... | gpl-3.0 | -8,385,152,448,797,073,000 | 44 | 100 | 0.51744 | false | 3.047897 | false | false | false |
melodous/designate | designate/cmd/central.py | 1 | 1243 | # Copyright 2013 Hewlett-Packard Development Company, L.P.
#
# Author: Kiall Mac Innes <kiall@hp.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/L... | apache-2.0 | -8,144,857,311,752,288,000 | 32.594595 | 75 | 0.735318 | false | 3.996785 | false | false | false |
jds2001/sos | sos/plugins/filesys.py | 1 | 2190 | # 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.
# This program is distributed in the hope that it will be useful,
# but... | gpl-2.0 | -7,307,108,655,078,007,000 | 33.761905 | 78 | 0.594064 | false | 3.680672 | false | false | false |
yephper/django | django/contrib/gis/db/backends/mysql/operations.py | 1 | 3451 | from django.contrib.gis.db.backends.base.adapter import WKTAdapter
from django.contrib.gis.db.backends.base.operations import \
BaseSpatialOperations
from django.contrib.gis.db.backends.utils import SpatialOperator
from django.contrib.gis.db.models import aggregates
from django.db.backends.mysql.operations imp... | bsd-3-clause | 4,677,460,586,627,847,000 | 35.923077 | 100 | 0.611417 | false | 4.098575 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.