repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
mila/django-noticebox | setup.py | 1 | 1110 | #!/usr/bin/env python
import codecs
from setuptools import setup, find_packages
url='http://github.com/mila/django-noticebox/tree/master'
try:
long_description = codecs.open('README.rst', "r", "utf-8").read()
except IOError:
long_description = "See %s" % url
setup(
name='django-noticebox',
version... | bsd-3-clause | -6,995,972,845,359,806,000 | 29 | 76 | 0.637838 | false |
neumark/unimodel | test/test_model_registry.py | 1 | 1934 | from unittest import TestCase
from test.helpers import flatten
from test.fixtures import TreeNode, tree_data
from unimodel.model import Unimodel, Field
from unimodel.types import *
import json
from unimodel.model import ModelRegistry
from unimodel.backends.json.serializer import JSONSerializer, JSONValidationException
... | apache-2.0 | -5,014,833,171,416,685,000 | 35.490566 | 85 | 0.664426 | false |
CriticalD20/Sine-Cosine | sinecosine.py | 1 | 2215 | """
sinecosine.py
Author: James Napier
Credit: http://www.discoveryplayground.com/computer-programming-for-kids/rgb-colors/, Mr. Dennison
Assignment:
In this assignment you must use *list comprehensions* to generate sprites that show the behavior
of certain mathematical functions: sine and cosine.
The sine and cosi... | mit | -7,328,395,108,479,366,000 | 35.311475 | 98 | 0.792777 | false |
brendandc/multilingual-google-image-scraper | create-language-zip.py | 1 | 3067 | import optparse
import os
optparser = optparse.OptionParser()
optparser.add_option("-l", "--language", dest="language", default="French", help="Language to package")
optparser.add_option("-b", "--bucket", dest="bucket", default="brendan.callahan.thesis", help="S3 bucket name")
optparser.add_option("-p", "--prefix", de... | mit | -8,948,385,637,682,369,000 | 41.597222 | 140 | 0.681774 | false |
hadim/spindle_tracker | spindle_tracker/io/trackmate.py | 1 | 5663 | import itertools
import xml.etree.cElementTree as et
import networkx as nx
import pandas as pd
import numpy as np
def trackmate_peak_import(trackmate_xml_path, get_tracks=False):
"""Import detected peaks with TrackMate Fiji plugin.
Parameters
----------
trackmate_xml_path : str
TrackMate XML... | bsd-3-clause | 6,876,808,598,429,822,000 | 36.753333 | 142 | 0.529931 | false |
kronat/ns-3-dev-git | src/network/bindings/modulegen__gcc_ILP32.py | 1 | 773065 | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
... | gpl-2.0 | 7,644,027,052,523,548,000 | 64.658655 | 594 | 0.610563 | false |
arjunjain/xssalert | XSSAlert/uipy/xss_rc.py | 1 | 164742 | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt (Qt v4.7.1)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x05\x44\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x20\x00\... | gpl-3.0 | 2,299,225,665,377,881,900 | 63.757075 | 97 | 0.726973 | false |
wxgeo/geophar | wxgeometrie/sympy/printing/rcode.py | 3 | 14687 | """
R code printer
The RCodePrinter converts single sympy expressions into single R expressions,
using the functions defined in math.h where possible.
"""
from __future__ import print_function, division
from sympy.core import S
from sympy.core.compatibility import string_types, range
from sympy.codegen.ast import... | gpl-2.0 | 3,434,515,022,985,625,000 | 34.052506 | 111 | 0.564717 | false |
jpburstrom/sampleman | mainwindowui.py | 1 | 18965 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'sampleman.ui'
#
# Created: Sun Mar 7 13:00:58 2010
# by: PyQt4 UI code generator 4.7
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_MainWindow(object):
def setupUi(self, MainWind... | gpl-3.0 | 3,103,841,371,846,845,400 | 67.963636 | 144 | 0.739784 | false |
Weihonghao/ECM | Vpy34/lib/python3.5/site-packages/theano/tensor/nlinalg.py | 1 | 23539 | from __future__ import absolute_import, print_function, division
import logging
import numpy
from six.moves import xrange
import theano
from theano.tensor import as_tensor_variable
from theano.gof import Op, Apply
from theano.gradient import DisconnectedType
from theano.tensor import basic as tensor
logger = loggin... | agpl-3.0 | 5,579,638,122,380,263,000 | 27.190419 | 80 | 0.550363 | false |
robertnishihara/ray | rllib/agents/marwil/tests/test_marwil.py | 1 | 2166 | import os
from pathlib import Path
import unittest
import ray
import ray.rllib.agents.marwil as marwil
from ray.rllib.utils.framework import try_import_tf
from ray.rllib.utils.test_utils import check_compute_single_action, \
framework_iterator
tf1, tf, tfv = try_import_tf()
class TestMARWIL(unittest.TestCase):
... | apache-2.0 | -2,218,978,931,659,107,600 | 32.323077 | 77 | 0.589566 | false |
8l/beri | cheritest/trunk/tests/mt/test_mt_rdhwr.py | 2 | 1520 | #-
# Copyright (c) 2014 Michael Roe
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
# ("CTSRD"), as part of the DARPA CRASH research programme.
#
# @BERI_LICENSE_HEADER_START@
#
# Licensed to BER... | apache-2.0 | 403,633,174,428,342,000 | 39 | 108 | 0.747368 | false |
cylc/cylc | cylc/flow/cycling/loader.py | 1 | 4880 | # THIS FILE IS PART OF THE CYLC SUITE ENGINE.
# Copyright (C) NIWA & British Crown (Met Office) & Contributors.
#
# 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 | 2,625,730,440,720,114,000 | 33.366197 | 79 | 0.71168 | false |
tjmonsi/cmsc129-2016-repo | submissions/exercise3/pitargue/lexical_analyzer.py | 1 | 8280 | import string
class DFA:
keywords = [
'var',
'input',
'output',
'break',
'continue',
'if',
'elsif',
'else',
'switch',
'case',
'default',
'while',
'do',
'for',
'foreach',
'in',
'f... | mit | 3,629,047,361,692,439,600 | 39.990099 | 134 | 0.586957 | false |
aipescience/django-daiquiri | daiquiri/core/adapter/download/base.py | 1 | 4910 | import logging
import csv
import subprocess
import re
from django.conf import settings
from daiquiri.core.generators import generate_csv, generate_votable, generate_fits
from daiquiri.core.utils import get_doi_url
logger = logging.getLogger(__name__)
class BaseDownloadAdapter(object):
def __init__(self, datab... | apache-2.0 | 6,772,274,127,375,952,000 | 36.480916 | 128 | 0.555804 | false |
hiro2016/ergodox_gui_configurator | GUIComponents/KeyPresstInterceptorComponent.py | 1 | 9286 | import platform
from threading import Timer
from PyQt5 import QtCore
from PyQt5.QtCore import QObject, pyqtSignal
from PyQt5.QtWidgets import QHBoxLayout, QVBoxLayout, QTextEdit, QLabel, QSizePolicy, QLineEdit, QApplication, QWidget
import sys
from NoneGUIComponents import keypress_observer
from NoneGUIComponents.dic... | gpl-2.0 | -1,803,215,776,816,161,300 | 35.703557 | 118 | 0.620719 | false |
vprusso/youtube_tutorials | web_scraping_and_automation/selenium/craigstlist_scraper.py | 1 | 2952 | # YouTube Video (Part 1): https://www.youtube.com/watch?v=4o2Eas2WqAQ&t=0s&list=PL5tcWHG-UPH1aSWALagYP2r3RMmuslcrr
# YouTube Video (Part 2): https://www.youtube.com/watch?v=x5o0XFozYnE&t=716s&list=PL5tcWHG-UPH1aSWALagYP2r3RMmuslcrr
# YouTube Video (Part 3): https://www.youtube.com/watch?v=_y43iqSJgnc&t=1s&list=PL5tcWHG... | gpl-3.0 | 6,487,594,359,226,624,000 | 30.073684 | 129 | 0.609417 | false |
cisco-oss-eng/Cloud99 | cloud99/loaders/__init__.py | 1 | 2556 | # Copyright 2016 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | apache-2.0 | 4,718,103,721,506,559,000 | 28.045455 | 75 | 0.625978 | false |
olimastro/DeepMonster | deepmonster/lasagne/nn.py | 1 | 16191 | """
neural network stuff, intended to be used with Lasagne
All this code, except otherwise mentionned,
was written by openai taken from improvedgan repo on github
"""
import numpy as np
import theano as th
import theano.tensor as T
from theano.tensor.nnet.abstract_conv import (bilinear_upsampling, )
from theano.sandb... | mit | -6,252,026,180,454,746,000 | 41.94695 | 159 | 0.59601 | false |
Ghostkeeper/Luna | plugins/storage/localstorage/__init__.py | 1 | 1457 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#This software is distributed under the Creative Commons license (CC0) version 1.0. A copy of this license should have been distributed with this software.
#The license can also be read online: <https://creativecommons.org/publicdomain/zero/1.0/>. If this online license dif... | cc0-1.0 | 6,680,805,290,784,910,000 | 33.714286 | 227 | 0.727522 | false |
rodrigopolo/cheatsheets | upload_video.py | 1 | 7001 | #!/usr/bin/env python
# Modified to always use the installation path to store and read the client_secrets.json and pyu-oauth2.json file
import httplib
import httplib2
import os
import random
import sys
import time
from apiclient.discovery import build
from apiclient.errors import HttpError
from apiclient.http import ... | mit | -5,672,397,897,091,849,000 | 37.048913 | 113 | 0.713755 | false |
WSULib/combine | tests/test_models/test_validation_scenario.py | 1 | 2903 | from django.test import TestCase
from core.models import ValidationScenario
from tests.utils import TestConfiguration
SCHEMATRON_PAYLOAD = '''<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron" xmlns:internet="http://internet.com">
<ns prefix="internet" uri="http://internet.com... | mit | -102,594,079,670,103,680 | 40.471429 | 116 | 0.672408 | false |
foreni-packages/hachoir-parser | setup.py | 1 | 2770 | #!/usr/bin/env python
from imp import load_source
from os import path
from sys import argv
# Procedure to release a new version:
# - edit hachoir_parser/version.py: __version__ = "XXX"
# - edit setup.py: install_options["install_requires"] = "hachoir-core>=XXX"
# - edit INSTALL: update Dependencies
# - run: ./test... | gpl-2.0 | -9,108,310,611,562,844,000 | 34.512821 | 86 | 0.641516 | false |
django-leonardo/django-leonardo | leonardo/conf/default.py | 1 | 3507 |
from leonardo.base import default
EMAIL = {
'HOST': 'mail.domain.com',
'PORT': '25',
'USER': 'username',
'PASSWORD': 'pwd',
'SECURITY': True,
}
RAVEN_CONFIG = {}
ALLOWED_HOSTS = ['*']
USE_TZ = True
DEBUG = True
ADMINS = (
('admin', 'mail@leonardo.cz'),
)
# month
LEONARDO_CACHE_TIMEOUT = ... | bsd-3-clause | -4,509,059,239,852,881,400 | 16.892857 | 115 | 0.60365 | false |
sunfounder/SunFounder_SensorKit_for_RPi2 | Python/08_vibration_switch.py | 1 | 1101 | #!/usr/bin/env python3
import RPi.GPIO as GPIO
import time
VibratePin = 11
Gpin = 13
Rpin = 12
tmp = 0
def setup():
GPIO.setmode(GPIO.BOARD) # Numbers GPIOs by physical location
GPIO.setup(Gpin, GPIO.OUT) # Set Green Led Pin mode to output
GPIO.setup(Rpin, GPIO.OUT) # Set Red Led Pin mode to out... | gpl-2.0 | 1,834,895,438,698,754,000 | 22.934783 | 123 | 0.633061 | false |
brigittebigi/proceed | proceed/src/wxgui/cutils/viewsutils.py | 1 | 4360 | #!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# ---------------------------------------------------------------------------
# ___ __ __ __ ___
# / | \ | \ | \ / Automatic
# \__ |__/ |__/ |___| \__ Annotation
# \ | | | | ... | gpl-3.0 | -7,760,454,296,008,524,000 | 34.638655 | 84 | 0.481422 | false |
WoLpH/nosedjango | nosedjango/plugins/base_plugin.py | 1 | 2333 | import math
import random
import string
from nose.plugins.base import Plugin as NosePlugin
class Plugin(NosePlugin):
django_plugin = True
_unique_token = None
def get_unique_token(self):
"""
Get a unique token for usage in differentiating test runs that need to
run in parallel.
... | lgpl-3.0 | 492,857,908,761,186,400 | 27.108434 | 79 | 0.655379 | false |
stormi/tsunami | src/primaires/scripting/actions/ecrire_memoire.py | 1 | 3274 | # -*-coding:Utf-8 -*
# Copyright (c) 2010 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# l... | bsd-3-clause | -2,439,123,936,880,081,000 | 43.067568 | 81 | 0.707145 | false |
PEAT-AI/Crampy | distance_analysis.py | 1 | 1722 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# distance_analysis.py
#
# Copyright 2015 linaro <linaro@raspberry>
#
# 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... | gpl-3.0 | -3,940,220,425,778,474,500 | 25.090909 | 145 | 0.706736 | false |
MobileCloudNetworking/dssaas | dss-side-scripts/icn_repo_push.py | 1 | 2702 | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Mohammad Valipoor"
__copyright__ = "Copyright 2014, SoftTelecom"
import logging
import time
from subprocess import call
import os
def config_logger(log_level=logging.DEBUG):
logging.basicConfig(format='%(levelname)s %(asctime)s: %(message)s',
... | apache-2.0 | 6,706,557,584,521,625,000 | 35.527027 | 157 | 0.559585 | false |
madre/analytics_nvd3 | analytics/wsgi.py | 1 | 1428 | """
WSGI config for analytics project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`... | apache-2.0 | -2,057,368,234,855,849,000 | 43.625 | 79 | 0.794118 | false |
Abi1ity/uniclust2.0 | SQLAlchemy-0.9.9/test/engine/test_pool.py | 1 | 49999 | import threading
import time
from sqlalchemy import pool, select, event
import sqlalchemy as tsa
from sqlalchemy import testing
from sqlalchemy.testing.util import gc_collect, lazy_gc
from sqlalchemy.testing import eq_, assert_raises, is_not_
from sqlalchemy.testing.engines import testing_engine
from sqlalchemy.testing... | bsd-3-clause | -4,810,547,575,421,312,000 | 29.431528 | 88 | 0.527331 | false |
GeotrekCE/Geotrek-admin | geotrek/outdoor/templatetags/outdoor_tags.py | 1 | 1138 | from django import template
from django.conf import settings
import json
from geotrek.outdoor.models import Practice, Site
register = template.Library()
@register.simple_tag
def is_outdoor_enabled():
return 'geotrek.outdoor' in settings.INSTALLED_APPS
@register.simple_tag
def site_practices():
practices =... | bsd-2-clause | 8,670,964,272,676,028,000 | 23.73913 | 57 | 0.565026 | false |
uclouvain/OSIS-Louvain | program_management/forms/tree/detach.py | 1 | 2024 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | 4,766,222,956,132,599,000 | 40.285714 | 87 | 0.654968 | false |
chirpradio/chirpradio-volunteers | site-packages/sqlalchemy/orm/attributes.py | 1 | 46309 | # attributes.py - manages object attributes
# Copyright (C) 2005, 2006, 2007, 2008 Michael Bayer mike_mp@zzzcomputing.com
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import operator, weakref
from itertools import chain
import UserDic... | mit | -8,474,694,774,015,333,000 | 34.677196 | 226 | 0.612948 | false |
oxo42/FpTest | samples/test_GPONLink_Terminate.py | 1 | 2504 | """
Test the Terminate/GPONLink Product Order
The product order takes a serial number, calls LST-ONTDETAIL to get the details of the ONT then DEL-ONT to remove it.
This test case ensures that the right commands happen in the right order
"""
import fptest
class TerminateGponLinkTest(fptest.FpTest):
def test_work... | apache-2.0 | 8,545,692,665,036,219,000 | 34.28169 | 117 | 0.522364 | false |
thomaserlang/storitch | storitch/logger.py | 1 | 1031 | import logging, logging.handlers, os
from storitch import config
class logger(object):
@classmethod
def set_logger(cls, filename, to_sentry=False, fmt='[%(levelname)s %(asctime)s.%(msecs)d %(module)s:%(lineno)d]: %(message)s'):
logger = logging.getLogger()
logger.setLevel(getattr(logging, conf... | mit | -4,935,656,652,694,775,000 | 38.692308 | 131 | 0.588749 | false |
nedlowe/amaas-core-sdk-python | amaascore/tools/generate_transaction.py | 1 | 6700 | from __future__ import absolute_import, division, print_function, unicode_literals
from amaasutils.random_utils import random_string
import datetime
from decimal import Decimal
import random
from amaascore.core.comment import Comment
from amaascore.core.reference import Reference
from amaascore.transactions.cash_tran... | apache-2.0 | -2,945,252,358,435,631,600 | 53.471545 | 112 | 0.667761 | false |
AntoDev96/GuidaSky | controller/channel_controller.py | 1 | 1075 | import codecs
import json
import urllib.request
from constants import constants, command_name_list
from telepot.namedtuple import KeyboardButton, ReplyKeyboardMarkup
from model.repositories import channel_repository
from bot import bot
from decorators.command import command
@command(command_name_list["listacanali"])
d... | gpl-3.0 | 6,275,880,955,524,322,000 | 38.851852 | 91 | 0.736744 | false |
PaddlePaddle/models | PaddleCV/3d_vision/PointRCNN/tools/kitti_eval.py | 1 | 2220 | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve.
#
# 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 applic... | apache-2.0 | 1,994,207,320,236,597,000 | 30.267606 | 83 | 0.640991 | false |
Micronaet/micronaet-mx8 | mexal_mail_invoice_default/__init__.py | 1 | 1042 | # -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License a... | agpl-3.0 | -7,481,381,625,656,819,000 | 44.304348 | 79 | 0.611324 | false |
klmitch/tendril | tendril/__init__.py | 1 | 12025 | ## Copyright (C) 2012 by Kevin L. Mitchell <klmitch@mit.edu>
##
## 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.
##
#... | gpl-3.0 | 6,401,577,186,917,081,000 | 48.485597 | 71 | 0.766486 | false |
linkinwong/word2vec | src/crf-paper-script/preprocessor10_refine_lbfgs_l2sgd.py | 1 | 10310 | # coding: utf-8
__author__ = 'linlin'
import os
import logging
import re
import pdb
logger = logging.getLogger(__name__)
################################################################
root_dir = '/home/linlin/time/0903_classify_false_start/1003_raw_features/'
separator = '\t\t'
#####################################... | apache-2.0 | 6,155,065,818,823,670,000 | 35.425532 | 110 | 0.525019 | false |
okolisny/integration_tests | cfme/middleware/server.py | 1 | 17554 | import re
from navmazing import NavigateToSibling, NavigateToAttribute
from selenium.common.exceptions import NoSuchElementException
from wrapanapi.hawkular import CanonicalPath
from cfme.common import Taggable, UtilizationMixin
from cfme.exceptions import MiddlewareServerNotFound, \
MiddlewareServerGroupNotFound... | gpl-2.0 | 6,179,716,487,599,874,000 | 39.540416 | 98 | 0.645779 | false |
ESOedX/edx-platform | lms/djangoapps/verify_student/models.py | 1 | 42981 | # -*- coding: utf-8 -*-
"""
Models for Student Identity Verification
This is where we put any models relating to establishing the real-life identity
of a student over a period of time. Right now, the only models are the abstract
`PhotoVerification`, and its one concrete implementation
`SoftwareSecurePhotoVerification`... | agpl-3.0 | -2,559,742,744,883,523,000 | 38.31107 | 116 | 0.634324 | false |
tynn/lunchdate.bot | setup.py | 1 | 2335 | #!/usr/bin/env python
# vim: expandtab tabstop=4 shiftwidth=4
#
# Copyright (c) 2016 Christian Schmitz <tynn.dev@gmail.com>
#
# This program 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 ve... | lgpl-3.0 | 3,637,720,484,865,586,700 | 37.278689 | 79 | 0.642398 | false |
DavidAndreev/indico | indico/modules/news/views.py | 1 | 1384 | # This file is part of Indico.
# Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN).
#
# Indico 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 (a... | gpl-3.0 | 2,399,463,689,616,099,000 | 34.487179 | 82 | 0.735549 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/aio/operations/_routes_operations.py | 1 | 20983 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | 1,575,352,485,687,395,300 | 48.025701 | 210 | 0.639327 | false |
christopherpoole/CADMesh | cmake/generateSingleHeader.py | 1 | 4672 |
import os
import subprocess
from glob import glob
from pathlib import Path
def readFile(filepath):
try:
with open(filepath) as f:
lines = f.readlines()
except:
return []
return lines
def readFiles(filepaths):
names = map(lambda p: Path(p).stem, filepaths)
... | mit | -8,369,801,982,411,803,000 | 20.730233 | 106 | 0.55244 | false |
kennethreitz/pipenv | pipenv/patched/notpip/_internal/commands/__init__.py | 1 | 4020 | """
Package containing all pip commands
"""
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
import importlib
from collections import OrderedDict, namedtuple
from pipenv.patched.notpip._internal.utils.typing import MYPY... | mit | -5,509,808,581,509,438,000 | 34.263158 | 90 | 0.677114 | false |
brian-rose/climlab | climlab/tests/test_emanuel_convection.py | 1 | 6379 | from __future__ import division
import numpy as np
import climlab
from climlab.convection import emanuel_convection
from climlab.tests.xarray_test import to_xarray
import pytest
# These test data are based on direct single-column tests of the CONVECT43c.f
# fortran source code. We are just checking to see if we get... | mit | 1,299,065,267,706,858,000 | 42.691781 | 86 | 0.614046 | false |
nhr/openshift-ansible | roles/lib_openshift/library/oc_process.py | 1 | 55775 | #!/usr/bin/env python
# pylint: disable=missing-docstring
# flake8: noqa: T001
# ___ ___ _ _ ___ ___ _ _____ ___ ___
# / __| __| \| | __| _ \ /_\_ _| __| \
# | (_ | _|| .` | _|| / / _ \| | | _|| |) |
# \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____
# | \ / _ \ | \| |/ _ \_ _| | __| \_ ... | apache-2.0 | -1,190,890,207,806,126,300 | 33.134027 | 118 | 0.530937 | false |
antofik/Wartech | WartechLogic/map/views.py | 1 | 3743 | # coding=utf-8
from django.db import transaction
from django.http import HttpResponse
import json
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.db.models import Q
from models import *
from random import randint
from PIL import Image
def JsonResponse(request, da... | mit | 8,021,711,613,826,038,000 | 27.792308 | 139 | 0.576543 | false |
koalalorenzo/python-digitalocean | digitalocean/tests/test_load_balancer.py | 1 | 18560 | import json
import unittest
import responses
import digitalocean
from .BaseTest import BaseTest
class TestLoadBalancer(BaseTest):
def setUp(self):
super(TestLoadBalancer, self).setUp()
self.lb_id = '4de7ac8b-495b-4884-9a69-1050c6793cd6'
self.vpc_uuid = "c33931f2-a26a-4e61-b85c-4e95a2ec43... | lgpl-3.0 | -7,799,904,155,731,132,000 | 43.722892 | 99 | 0.550862 | false |
ak-67/ZeroNet | src/Db/Db.py | 1 | 12059 | import sqlite3
import json
import time
import logging
import re
import os
import gevent
from DbCursor import DbCursor
opened_dbs = []
# Close idle databases to save some memory
def dbCleanup():
while 1:
time.sleep(60 * 5)
for db in opened_dbs[:]:
if time.time() - db.last_query_time >... | gpl-2.0 | 8,408,613,494,907,893,000 | 38.02589 | 117 | 0.509495 | false |
OpenSourcePolicyCenter/taxdata | puf_stage1/factors_finalprep.py | 1 | 3867 | """
Transform Stage_I_factors.csv (written by the stage1.py script) and
benefit_growth_rates.csv into growfactors.csv (used by Tax-Calculator).
"""
import numpy as np
import pandas as pd
import os
# pylint: disable=invalid-name
CUR_PATH = os.path.abspath(os.path.dirname(__file__))
first_benefit_year = 2014
inben_file... | mit | -5,736,347,475,636,523,000 | 36.543689 | 76 | 0.587794 | false |
MatthieuDartiailh/pyvisa-sim | pyvisa-sim/parser.py | 1 | 8388 | # -*- coding: utf-8 -*-
"""
pyvisa-sim.parser
~~~~~~~~~~~~~~~~~
Parser function
:copyright: 2014 by PyVISA-sim Authors, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
import os
from io import open, StringIO
from contextlib import closing
from traceback import forma... | mit | 8,398,695,646,469,128,000 | 27.147651 | 80 | 0.580472 | false |
CodingCat/mxnet | tests/python/gpu/test_operator_gpu.py | 1 | 86764 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -6,496,676,072,106,310,000 | 47.417411 | 150 | 0.552234 | false |
npadgen/read-a-script | utils.py | 1 | 1176 | from enum import Enum
import jouvence.document
class ElementType(Enum):
ACTION = jouvence.document.TYPE_ACTION
CENTERED_ACTION = jouvence.document.TYPE_CENTEREDACTION
CHARACTER = jouvence.document.TYPE_CHARACTER
DIALOG = jouvence.document.TYPE_DIALOG
PARENTHETICAL = jouvence.document.TYPE_PARENT... | bsd-3-clause | -8,294,019,624,756,107,000 | 27 | 74 | 0.632653 | false |
ngageoint/scale | scale/job/test/messages/test_uncancel_jobs.py | 1 | 7505 | from __future__ import unicode_literals
import datetime
import django
from django.utils.timezone import now
from django.test import TransactionTestCase
from job.messages.uncancel_jobs import UncancelJobs
from job.models import Job
from job.test import utils as job_test_utils
from recipe.test import utils as recipe_t... | apache-2.0 | -4,129,883,464,434,995,700 | 44.484848 | 118 | 0.650366 | false |
Jchase2/py-pubsubhubbub-subscriber | fffp.py | 1 | 2310 | #!/usr/local/bin/python
# Copyright 2015 JChase II
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is... | gpl-2.0 | 3,373,865,880,684,674,000 | 32.478261 | 79 | 0.724242 | false |
patrick246/tdesktop | Telegram/SourceFiles/mtproto/generate.py | 1 | 45625 | '''
This file is part of Telegram Desktop,
the official desktop version of Telegram messaging app, see https://telegram.org
Telegram Desktop is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the... | gpl-3.0 | -8,282,897,700,748,940,000 | 45.17915 | 232 | 0.573874 | false |
chen0040/pyalgs | pyalgs/algorithms/graphs/directed_cycle.py | 1 | 1475 | from pyalgs.data_structures.commons.stack import Stack
from pyalgs.data_structures.graphs.graph import DirectedEdgeWeightedGraph, Digraph
class DirectedCycle(object):
marked = None
onStack = None
cycle = None
edgeTo = None
def __init__(self, G):
if isinstance(G, DirectedEdgeWeightedGraph... | bsd-3-clause | -2,261,778,148,886,728,400 | 26.314815 | 82 | 0.522712 | false |
ppmim/AFOSN | run_patch.py | 1 | 7925 | """
DESCRIPTION
-----------
For each directory provided on the command line the
headers all of the FITS files in that directory are modified
to add information like LST, apparent object position, and more.
See the full documentation for a list of the specific keywords
that are modified.
Header patching
^^^^^^^^^^^^^^... | gpl-2.0 | -6,576,618,754,313,954,000 | 36.206573 | 80 | 0.627129 | false |
Ripley6811/TAIMAU | src/db_tools/TM2014_tables_v3.py | 1 | 20670 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Version 3 splits Order into Order and OrderItem,
Shipment into Shipment and ShipmentItem.
Just as Invoice was split from version 1 to 2.
InvoiceItem and ShipmentItem now reference each other.
Invoice number is removed as primary key and placed with integer.
NOTE: Cla... | gpl-2.0 | -3,743,926,320,139,685,400 | 35.795009 | 181 | 0.57446 | false |
drhagen/parsita | tests/test_basic.py | 1 | 18599 | from unittest import TestCase
import pytest
from parsita import *
class LiteralTestCase(TestCase):
def test_literals(self):
class TestParsers(GeneralParsers):
a = lit('a')
bb = lit('bb')
self.assertEqual(TestParsers.a.parse('a'), Success('a'))
self.assertEqual(Te... | mit | 1,325,069,052,045,348,000 | 40.984199 | 117 | 0.571644 | false |
drewkhoury/aws-daredevil | daredevil.py | 1 | 2729 | import boto3
from pprint import pprint
from datetime import datetime
import time
def make_tag_dict(ec2_object):
"""Given an tagable ec2_object, return dictionary of existing tags."""
tag_dict = {}
if ec2_object.tags is None: return tag_dict
for tag in ec2_object.tags:
tag_dict[tag['Key']] = tag... | mit | 3,425,234,492,745,836,500 | 30.744186 | 248 | 0.573104 | false |
JPalmerio/GRB_population_code | catalogs/GBM_cat/GBM_Ep_constraint_testing.py | 1 | 1178 | import sys
import platform
if platform.system() == 'Linux':
sys.path.insert(0,'/nethome/palmerio/Dropbox/Plotting_GUI/Src')
elif platform.system() == 'Darwin':
sys.path.insert(0,'/Users/palmerio/Dropbox/Plotting_GUI/Src')
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import plotting_functions... | gpl-3.0 | 6,795,155,745,150,622,000 | 24.06383 | 85 | 0.705433 | false |
Ken69267/gpytage | gpytage/rename.py | 1 | 4560 | #!/usr/bin/env python
#
# rename.py GPytage module
#
############################################################################
# Copyright (C) 2009-2010 by Kenneth Prugh #
# ken69267@gmail.com #
# ... | gpl-2.0 | -8,155,855,760,534,155,000 | 41.616822 | 80 | 0.573465 | false |
kevindiltinero/seass3 | src/thefile.py | 1 | 1064 | def get_cmmds(filename):
values = []
next = []
final = []
file = open(filename, 'r')
for line in file:
values.append(line.split(' '))
for i in range(len(values)):
for j in range(4):
temporary = values[i][j]
if temporary.endswith('\n'):
nex... | bsd-2-clause | -2,216,852,053,547,423,700 | 27.783784 | 61 | 0.511278 | false |
steveyen/moxi | t/moxi_mock_b2b.py | 1 | 30300 | import sys
import string
import socket
import select
import unittest
import threading
import time
import re
import struct
from memcacheConstants import REQ_MAGIC_BYTE, RES_MAGIC_BYTE
from memcacheConstants import REQ_PKT_FMT, RES_PKT_FMT, MIN_RECV_PACKET
from memcacheConstants import SET_PKT_FMT, DEL_PKT_FMT, INCRDECR... | bsd-3-clause | 7,174,979,452,577,066,000 | 42.913043 | 103 | 0.572376 | false |
anna-effeindzourou/trunk | examples/anna_scripts/tilt/tilttest_box.py | 1 | 9173 | # -*- coding: utf-8
from yade import ymport,utils,pack,export,qt,bodiesHandling
import gts,os
# for plotting
from math import *
from yade import plot
############################
### DEFINING PARAMETERS ###
############################
#GEOMETRIC :dimension of the rectangular box
a=.2 # side dimension
h=.1 # h... | gpl-2.0 | 7,845,792,730,657,617,000 | 38.029787 | 198 | 0.744331 | false |
sibskull/synaptiks | tests/kde/widgets/test_config.py | 1 | 5513 | # -*- coding: utf-8 -*-
# Copyright (c) 2011, Sebastian Wiesner <lunaryorn@googlemail.com>
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above... | bsd-2-clause | -2,184,364,509,986,881,300 | 37.552448 | 77 | 0.695629 | false |
toirl/cointrader | cointrader/strategy.py | 1 | 2832 | #!/usr/bin/env python
import datetime
import logging
from cointrader.indicators import (
WAIT, BUY, SELL, Signal, macdh_momententum, macdh, double_cross
)
log = logging.getLogger(__name__)
class Strategy(object):
"""Docstring for Strategy. """
def __str__(self):
return "{}".format(self.__class_... | mit | 1,515,232,139,479,647,000 | 29.782609 | 75 | 0.614054 | false |
duembeg/gsat | modules/wnd_main_config.py | 1 | 10359 | """----------------------------------------------------------------------------
wnd_main_config.py
Copyright (C) 2013-2020 Wilhelm Duembeg
This file is part of gsat. gsat is a cross-platform GCODE debug/step for
Grbl like GCODE interpreters. With features similar to software debuggers.
Features such as... | gpl-2.0 | -5,809,503,624,998,932,000 | 36.129032 | 80 | 0.643498 | false |
ifding/ifding.github.io | stylegan2-ada/metrics/clustering.py | 1 | 4125 | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... | mit | 7,644,442,276,359,923,000 | 38.663462 | 93 | 0.618667 | false |
boriel/zxbasic | src/symbols/number.py | 1 | 4546 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# vim: ts=4:et:sw=4:
# ----------------------------------------------------------------------
# Copyleft (K), Jose M. Rodriguez-Rosa (a.k.a. Boriel)
#
# This program is Free Software and is released under the terms of
# the GNU General License
# ------------... | gpl-3.0 | -1,612,557,358,971,773,200 | 27.4125 | 79 | 0.558293 | false |
ftrimble/route-grower | pyroute/lib_gpx.py | 1 | 2521 | #!/usr/bin/python
#-----------------------------------------------------------------------------
# Library for handling GPX files
#
# Usage:
#
#-----------------------------------------------------------------------------
# Copyright 2007, Oliver White
#
# This program is free software: you can redistribute it and/or m... | apache-2.0 | -9,187,451,632,071,958,000 | 29.743902 | 78 | 0.548592 | false |
ddico/account-financial-tools | account_credit_control_dunning_fees/tests/test_fees_generation.py | 1 | 4628 | # Copyright 2014-2017 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import common
class FixedFeesTester(common.TransactionCase):
def setUp(self):
"""Initialize credit control level mock to test fees computations"""
super(FixedFeesTester, self).setUp... | agpl-3.0 | 9,153,253,812,203,657,000 | 40.693694 | 78 | 0.611495 | false |
EmilStenstrom/nephele | nephele.py | 1 | 1817 | #!/usr/bin/env python -u
"""
Nephele - Finding movies to watch on the internet is easy,
finding GOOD movies to watch is hard. Let Nephele, the greek
nymph of the clouds, help you.
Usage:
nephele.py get_popular [--limit=<n>] [--filter=<spec>] [--debug]
nephele.py get_grades <directory> [--limit=<n>] [--filter... | mit | -386,543,294,171,400,450 | 36.081633 | 108 | 0.544304 | false |
teto/libnl_old | python/netlink/route/link.py | 1 | 16902 | #
# Copyright (c) 2011 Thomas Graf <tgraf@suug.ch>
#
"""Module providing access to network links
This module provides an interface to view configured network links,
modify them and to add and delete virtual network links.
The following is a basic example:
import netlink.core as netlink
import netlink.route.l... | lgpl-2.1 | -5,284,595,556,784,319,000 | 30.184502 | 83 | 0.580464 | false |
liutairan/eMolFrag | Old versions/eMolFrag_2016_12_21_02/eMolFrag.py | 1 | 37326 | #Process:
#1. Get a list of original sdf files
#2. Use chopRDKit02.py generates fragments and list of files with total atom number, carbon atom number, nitrogen and oxygen atom number
#3. Form lists of by atom numbers
#4. Run rmRedLinker03.py or rmRedRigid01.py on different lists generated by step 3. Remove redundancy ... | gpl-3.0 | 8,407,459,200,154,259,000 | 32.59676 | 181 | 0.550313 | false |
tombstone/models | research/object_detection/utils/object_detection_evaluation_test.py | 1 | 48048 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -2,066,689,750,020,593,200 | 42.092377 | 80 | 0.60221 | false |
getpatchwork/patchwork | patchwork/migrations/0043_merge_patch_submission.py | 1 | 11421 | from django.conf import settings
from django.db import connection, migrations, models
import django.db.models.deletion
import patchwork.fields
def migrate_data(apps, schema_editor):
if connection.vendor == 'postgresql':
schema_editor.execute(
"""
UPDATE patchwork_submission
... | gpl-2.0 | -758,566,755,988,265,600 | 34.468944 | 82 | 0.523159 | false |
iandees/all-the-places | locations/spiders/elpolloloco.py | 1 | 2496 | import scrapy
import re
from locations.items import GeojsonPointItem
class ElPolloLocoSpider(scrapy.Spider):
name = "elpolloloco"
allowed_domains = ["www.elpolloloco.com"]
start_urls = (
'https://www.elpolloloco.com/locations/all-locations.html',
)
def parse_stores(self, response):
... | mit | -1,993,626,636,176,950,500 | 55.727273 | 165 | 0.623798 | false |
daeilkim/refinery | refinery/refinery/data/models.py | 1 | 10950 | # models.py contains code for defining the user object and behavior which will be used throughout the site
from refinery import db, app
import datetime
from refinery.webapp.pubsub import msgServer
from collections import defaultdict
import random,os,re,codecs
from collections import defaultdict
import pickle
# Defi... | mit | -3,804,350,228,446,922,000 | 30.285714 | 127 | 0.572603 | false |
cloudartisan/jarvis | streams.py | 1 | 3192 | #!/usr/bin/env python
import time
import StringIO
from threading import Thread
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from SocketServer import ThreadingMixIn
import cv2
import numpy
from PIL import Image
class DummyStream:
def __init__(self):
self.stopped = False
self._fr... | apache-2.0 | -5,632,914,860,883,558,000 | 27.247788 | 96 | 0.579887 | false |
pmillerchip/firejail | contrib/fjclip.py | 1 | 1239 | #!/usr/bin/env python
import re
import sys
import subprocess
import fjdisplay
usage = """fjclip.py src dest. src or dest can be named firejails or - for stdin or stdout.
firemon --x11 to see available running x11 firejails. firejail names can be shortened
to least ambiguous. for example 'work-libreoffice' can be shor... | gpl-2.0 | 1,670,571,682,513,023,000 | 33.416667 | 91 | 0.688458 | false |
tiggerntatie/ggame-tutorials | tutorial3.py | 1 | 1622 | """
tutorial3.py
by E. Dennison
"""
from ggame import App, RectangleAsset, ImageAsset, SoundAsset
from ggame import LineStyle, Color, Sprite, Sound
myapp = App()
# define colors and line style
green = Color(0x00ff00, 1)
black = Color(0, 1)
noline = LineStyle(0, black)
# a rectangle asset and sprite to use as backgroun... | mit | 71,991,645,884,679,840 | 25.177419 | 67 | 0.695438 | false |
kalikaneko/bitmask-dev | src/leap/bitmask/bonafide/_srp.py | 1 | 4517 | # -*- coding: utf-8 -*-
# _srp.py
# Copyright (C) 2015 LEAP
#
# 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 p... | gpl-3.0 | -6,066,140,394,348,291,000 | 29.52027 | 71 | 0.625858 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations/_nat_gateways_operations.py | 1 | 26826 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | 4,977,310,186,275,821,000 | 47.952555 | 191 | 0.640163 | false |
PanDAWMS/autopyfactory | autopyfactory/plugins/queue/batchsubmit/CondorSSH.py | 1 | 6343 | #!/bin/env python
#
# AutoPyfactory batch plugin for Condor
#
#
# At init
# - confirm bosco local exists
# - get paths for auth tokens
#At submit
# -check if cluster is added to bosco
# -if not,
# get lock
# cp files
# add cluster
# test bosco
# - do submit
# 1) create ~/.ssh/bosco_key.rsa ~/.ssh/bosco_k... | apache-2.0 | -4,152,023,180,054,246,400 | 36.311765 | 122 | 0.509853 | false |
MarkusHackspacher/unknown-horizons | horizons/ai/aiplayer/internationaltrademanager.py | 1 | 7150 | # ###################################################
# Copyright (C) 2008-2017 The Unknown Horizons Team
# team@unknown-horizons.org
# This file is part of Unknown Horizons.
#
# Unknown Horizons is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published ... | gpl-2.0 | -3,247,088,160,504,770,000 | 53.580153 | 219 | 0.744336 | false |
fermat618/pida | tests/core/test_languages_extern.py | 1 | 4614 | import os
#from pida.core.doctype import DocType
#from pida.core.testing import test, assert_equal, assert_notequal
from pida.utils.languages import OutlineItem, ValidationError, Definition, \
Suggestion, Documentation
from pida.core.languages import (Validator, Outliner, External, JobServer,
ExternalProxy,
... | gpl-2.0 | 6,641,927,541,506,754,000 | 26.628743 | 76 | 0.58886 | false |
dokipen/trac | trac/mimeview/patch.py | 1 | 12980 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2005-2009 Edgewall Software
# Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de>
# Copyright (C) 2006 Christian Boos <cboos@neuf.fr>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribu... | bsd-3-clause | -9,055,686,318,459,183,000 | 44.069444 | 79 | 0.4047 | false |
PrincetonUniversity/pywsse | wsse/server/django/tests/test_store.py | 1 | 1594 | # wsse/server/django/tests/test_store.py
# coding=utf-8
# pywsse
# Authors: Rushy Panchal, Naphat Sanguansin, Adam Libresco, Jérémie Lumbroso
# Date: September 1st, 2016
# Description: Test the Django database store.
from django.test import TransactionTestCase
from wsse.server.default.tests import test_store
from wss... | lgpl-3.0 | 1,039,035,677,915,644,000 | 22.761194 | 76 | 0.71294 | false |
jptomo/rpython-lang-scheme | rpython/rtyper/module/test/test_ll_os_path.py | 1 | 1610 | import py
import sys, os
from rpython.rtyper.lltypesystem.module.ll_os_path import Implementation as impl
from rpython.rtyper.test.test_llinterp import interpret
from rpython.tool.udir import udir
def test_exists():
filename = impl.to_rstr(str(py.path.local(__file__)))
assert impl.ll_os_path_exists(filename... | mit | -1,676,571,330,086,425,600 | 29.377358 | 80 | 0.6 | false |
pycontw/pycontw2016 | src/users/admin.py | 1 | 1812 | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import gettext_lazy as _
from .models import User, CocRecord
from .forms import AdminUserChangeForm, UserCreationForm
@admin.register(User)
class UserAdmin(UserAdmin):
fieldsets = (
(
... | mit | 3,297,041,993,475,273,000 | 25.26087 | 72 | 0.46468 | false |
DedMemez/ODS-August-2017 | safezone/GameTutorials.py | 1 | 15275 | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.safezone.GameTutorials
from panda3d.core import Vec4
from direct.gui.DirectGui import *
from direct.fsm import FSM
from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLo... | apache-2.0 | -6,883,993,430,927,133,000 | 43.198225 | 294 | 0.594697 | false |
a1ezzz/wasp-general | wasp_general/cli/curses_commands.py | 1 | 2162 | # -*- coding: utf-8 -*-
# wasp_general/cli/curses_commands.py
#
# Copyright (C) 2016 the wasp-general authors and contributors
# <see AUTHORS file>
#
# This file is part of wasp-general.
#
# Wasp-general is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public Licens... | lgpl-3.0 | 1,186,058,328,410,375,000 | 32.78125 | 108 | 0.740981 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.