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 |
|---|---|---|---|---|---|---|---|---|---|---|
zengchunyun/s12 | day9/temp/salt_server.py | 1 | 2506 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: zengchunyun
"""
# import salt
#
# <Salt ID>: # The id to reference the target system with
# host: # The IP address or DNS name of the remote host
# user: # The user to log in as
# passwd: # The password to log in with
#
# ... | gpl-2.0 | 7,667,011,008,322,292,000 | 26.549451 | 80 | 0.598962 | false |
wojenny/THash | p2pool/bitcoin/networks/polcoin.py | 1 | 1145 | import os
import platform
from twisted.internet import defer
from .. import data, helper
from p2pool.util import pack
P2P_PREFIX = 'a5725982'.decode('hex') #pchmessagestart
P2P_PORT = 9338
ADDRESS_VERSION = 0 #pubkey_address
RPC_PORT = 9337
RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
... | gpl-3.0 | 5,604,012,089,668,228,000 | 39.892857 | 272 | 0.705677 | false |
kayhayen/Nuitka | nuitka/importing/IgnoreListing.py | 1 | 10934 | # Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | apache-2.0 | -6,375,780,482,165,135,000 | 23.515695 | 81 | 0.483995 | false |
xzturn/caffe2 | caffe2/python/layers/sparse_lookup.py | 1 | 13116 | ## @package sparse_lookup
# Module caffe2.python.layers.sparse_lookup
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python.helpers.arg_scope import get_current_scope
from caffe2.python import schema
from ... | apache-2.0 | 2,038,187,127,026,722,600 | 38.625378 | 81 | 0.560689 | false |
chawlanikhil24/glustercli-python | gluster/cli/quota.py | 1 | 4960 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, Inc. <http://www.redhat.com>
# This file is part of GlusterFS.
#
# This file is licensed to you under your choice of the GNU Lesser
# General Public License, version 3 or any later version (LGPLv3 or
# later), or the GNU General Public License, version 2 (GPL... | gpl-2.0 | 3,638,174,245,203,720,700 | 25.524064 | 71 | 0.651613 | false |
RafayelGardishyan/Python-minis | TheCoiner/main.py | 1 | 7776 | import time
import datetime
d = datetime.date.today()
dm = d.month
dd = d.day
print ('Welkom bij TheCoiner')
file = 'data/monthday/month.txt'
f = open(file)
file_contents = f.read()
pdm = file_contents
file = 'data/monthday/day.txt'
f = open(file)
file_contents = f.read()
pdd = file_contents ... | gpl-2.0 | 8,116,726,938,894,894,000 | 33.669725 | 139 | 0.42644 | false |
golaizola/pelisalacarta-xbmc | pelisalacarta/channels/voxfilme.py | 1 | 5019 | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para voxfilme
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os, sys
from core imp... | gpl-3.0 | 60,435,188,117,971,440 | 36.133333 | 206 | 0.630162 | false |
ruebot/bagit-profiles-validator | setup.py | 1 | 1167 | from setuptools import setup
description = """
This module can be used to validate BagitProfiles.
"""
setup(
name="bagit_profile",
version="1.3.0",
url="https://github.com/bagit-profiles/bagit-profiles-validator",
install_requires=["bagit", "requests"],
author="Mark Jordan, Nick Ruest",
... | unlicense | -2,356,420,223,419,200,000 | 33.323529 | 71 | 0.605827 | false |
Iconik/eve-suite | src/view/blueprintcalculator/ui_blueprint_calculator.py | 1 | 4383 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_blueprint_calculator.ui'
#
# Created: Sat Mar 19 14:47:54 2011
# by: pyside-uic 0.2.7 running on PySide 1.0.0~rc1
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_BlueprintCalculato... | gpl-3.0 | -9,110,757,788,749,610,000 | 55.922078 | 156 | 0.736026 | false |
batermj/algorithm-challenger | code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Lib/test/support/__init__.py | 1 | 86205 | """Supporting definitions for the Python regression tests."""
if __name__ != 'test.support':
raise ImportError('support must be imported from the test package')
import collections.abc
import contextlib
import errno
import faulthandler
import fnmatch
import functools
import gc
import importlib
import importlib.uti... | apache-2.0 | -5,533,831,086,545,892,000 | 33.90081 | 93 | 0.605209 | false |
smmoosavi/Theano-Tutorials | 5_convolutional_net.py | 1 | 3264 | import theano
from theano import tensor as T
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
import numpy as np
from theano.tensor.nnet.conv import conv2d
from theano.tensor.signal.downsample import max_pool_2d
from load import mnist, save_model
theano.config.floatX = 'float32'
srng = RandomStr... | mit | 4,246,695,362,939,347,500 | 27.382609 | 100 | 0.599877 | false |
Byron/bcore | src/python/bcmd/tests/doc/test_examples.py | 1 | 2687 | #-*-coding:utf-8-*-
"""
@package bapp.tests.doc.test_examples
@brief See bapp.tests.doc for more information
@author Sebastian Thiel
@copyright [GNU Lesser General Public License](https://www.gnu.org/licenses/lgpl.html)
"""
from __future__ import print_function
__all__ = []
import sys
import bapp
from butility.tests... | lgpl-3.0 | -503,592,612,795,745,340 | 26.701031 | 101 | 0.606624 | false |
648trindade/pygame-engine-gamejam | src/engine/System.py | 1 | 13260 | import pygame
import pygame.gfxdraw
import os
import sys
from engine.Point import Point
from engine.Scene import Scene
from engine.managers.Texture import Texture
from engine.managers.Font import Font
from engine.managers.TextureSpec import TextureSpec
# tamanho fake da tela. Todos os objetos pensam que a tela tem ess... | gpl-3.0 | 3,898,391,146,138,423,300 | 34.383378 | 95 | 0.570693 | false |
lamby/debian-devel-changes-bot | tests/test_utils_rewrite_topic.py | 1 | 1414 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Debian Changes Bot
# Copyright (C) 2008 Chris Lamb <chris@chris-lamb.co.uk>
#
# This program 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, e... | agpl-3.0 | -100,325,229,330,534,460 | 36.210526 | 115 | 0.698727 | false |
griest024/PokyrimTools | pyffi-develop/scripts/cgf/cgftoaster.py | 1 | 3462 | #!/usr/bin/python3
"""A script for casting spells on cgf files. This script is essentially
a cgf specific wrapper around L{pyffi.spells.toaster}."""
# --------------------------------------------------------------------------
# ***** BEGIN LICENSE BLOCK *****
#
# Copyright (c) 2007-2012, Python File Format Interface
... | mit | 1,480,470,326,199,739,000 | 37.466667 | 82 | 0.698729 | false |
charley-ye/SCFS-v1 | simplecfs/message/network_handler.py | 1 | 1608 | # -*- coding: utf-8 -*-
"""
handle network sending and receiving data
"""
import logging
from simplecfs.common.parameters import DATA_FRAME_SIZE
from simplecfs.message.packet import pack, unpack
def send_command(socket_fd, message):
"""
send command message packet over socket
@socket_fd(socket.makefile('... | apache-2.0 | 124,670,732,131,371,360 | 23.738462 | 56 | 0.641169 | false |
PabloTunnon/pykka-deb | tests/performance.py | 1 | 1351 | import time
from pykka.actor import ThreadingActor
from pykka.registry import ActorRegistry
def time_it(func):
start = time.time()
func()
print('%s took %.3fs' % (func.func_name, time.time() - start))
class SomeObject(object):
baz = 'bar.baz'
def func(self):
pass
class AnActor(Thread... | apache-2.0 | 4,920,050,995,831,893,000 | 20.109375 | 66 | 0.629164 | false |
thenakliman/nirikshak | nirikshak/output/base.py | 1 | 1989 | # Copyright 2017 <thenakliman@gmail.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/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | apache-2.0 | -8,501,169,952,567,995,000 | 28.25 | 78 | 0.68175 | false |
westurner/pgs | setup.py | 1 | 1664 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with codecs.open('README.rst', encoding='UTF8') as readme_file:
readme = readme_file.read()
with codecs.open('HISTORY.rst', encoding='UTF8') as history_file... | mit | 2,163,233,298,850,206,700 | 25.83871 | 108 | 0.610577 | false |
fabrickit/fabkit | core/agent/fabcontext.py | 1 | 1417 | # coding: utf-8
from oslo_context import context
from oslo_db.sqlalchemy import enginefacade
@enginefacade.transaction_context_provider
class RequestContext(context.RequestContext):
"""Security context and request information.
Represents the user taking a given action within the system.
"""
def __in... | mit | 3,343,320,712,878,745,000 | 39.485714 | 69 | 0.609033 | false |
Ervii/garage-time | garage/src/python/pants/java/nailgun_executor.py | 1 | 12377 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (nested_scopes, generators, division, absolute_import, with_statement,
print_function, unicode_literals)
import hashlib
impor... | apache-2.0 | -3,231,127,891,432,210,000 | 36.966258 | 99 | 0.652501 | false |
wateraccounting/wa | Collect/CFSR/DataAccess_CFSR.py | 1 | 8868 | # -*- coding: utf-8 -*-
"""
Authors: Tim Hessels
UNESCO-IHE 2016
Contact: t.hessels@unesco-ihe.org
Repository: https://github.com/wateraccounting/wa
Module: Collect/CFSR
"""
# General modules
import pandas as pd
import os
import numpy as np
from netCDF4 import Dataset
import re
from joblib import Parallel, del... | apache-2.0 | -7,292,135,201,422,878,000 | 41.430622 | 152 | 0.568336 | false |
vnsofthe/odoo-dev | addons/vnsoft020/vnsoft_sale.py | 1 | 5299 | # -*- coding: utf-8 -*-
from openerp import SUPERUSER_ID
from openerp.osv import fields, osv
from openerp.tools.translate import _
import openerp.addons.decimal_precision as dp
from openerp import tools, api
import datetime
import logging
_logger = logging.getLogger(__name__)
class vnsoft_sale_order(osv.osv):
_in... | agpl-3.0 | -7,862,131,384,520,021,000 | 42.823529 | 265 | 0.578523 | false |
vganapath/rally | rally/plugins/openstack/scenarios/neutron/utils.py | 1 | 27676 | # Copyright 2014: Intel 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 a... | apache-2.0 | -1,047,974,654,636,210,200 | 39.40292 | 96 | 0.602544 | false |
maxikov/attfocus | 2dbluetooths/reg_bayes/test.py | 1 | 1183 | #!/usr/bin/env python
import featurebuilder
import pickle
import numpy
def load_data(filename):
src = open(filename, "r")
X, Y = eval(src.readline())
src.close()
return X, Y
def main():
print "Loading data..."
X, Y = load_data("test_set.py")
f = open("rnode.p", "rb")
rnode = pickle.load(f)
f.close()
rno... | gpl-3.0 | 2,117,757,079,533,806,000 | 24.170213 | 120 | 0.600169 | false |
okin/doit | tests/test_runner.py | 1 | 24930 | import os
from multiprocessing import Queue
import pytest
from mock import Mock
from doit.dependency import Dependency
from doit.task import Task
from doit.control import TaskDispatcher, ExecNode
from doit import runner
# sample actions
def my_print(*args):
pass
def _fail():
return False
def _error():
r... | mit | 1,906,274,062,906,555,000 | 37.831776 | 82 | 0.577738 | false |
metpy/SHARPpy | sharppy/sharptab/winds.py | 1 | 12346 | ''' Wind Manipulation Routines '''
import math
from sharppy.sharptab import interp, vector
from sharppy.sharptab.constants import *
__all__ = ['mean_wind', 'mean_wind_npw', 'sr_wind', 'sr_wind_npw',
'wind_shear', 'helicity', 'max_wind', 'corfidi_mcs_motion',
'non_parcel_bunkers_motion', 'mbe_vect... | bsd-3-clause | -5,168,220,684,207,194,000 | 31.837766 | 78 | 0.542686 | false |
jchodera/assaytools | AssayTools/pymcmodels.py | 1 | 27554 | #!/usr/bin/env python
"""
A test of pymc for ITC.
"""
#=============================================================================================
# IMPORTS
#=============================================================================================
import numpy as np
import pymc
import pint
#=================... | lgpl-2.1 | 6,993,638,575,012,122,000 | 52.921722 | 247 | 0.610329 | false |
awainer/7539 | aplicaciones_informaticas/aplicaciones_informaticas/settings.py | 1 | 3741 | """
Django settings for aplicaciones_informaticas project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settin... | unlicense | -2,694,471,807,426,757,600 | 26.108696 | 91 | 0.687784 | false |
kevinpt/ripyl | ripyl/util/bitops.py | 1 | 1559 | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''Bit-wise operations
'''
# Copyright © 2013 Kevin Thibedeau
# This file is part of Ripyl.
# Ripyl 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 Foundati... | lgpl-3.0 | 2,326,479,104,467,446,300 | 26.327273 | 73 | 0.633504 | false |
onshape-public/onshape-clients | python/onshape_client/oas/models/bt_bill_of_materials_table1073_all_of.py | 1 | 5229 | # coding: utf-8
"""
Onshape REST API
The Onshape REST API consumed by all clients. # noqa: E501
The version of the OpenAPI document: 1.113
Contact: api-support@onshape.zendesk.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
im... | mit | 9,176,653,983,238,201,000 | 33.401316 | 110 | 0.581373 | false |
ndtran/l10n-switzerland | l10n_ch_account_statement_base_import/parser/base_parser.py | 1 | 4932 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2015 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# publi... | agpl-3.0 | 767,059,732,417,065,700 | 34.73913 | 79 | 0.581509 | false |
furrykef/lltvg | sf64-audio/sf64dec.py | 1 | 7342 | #!/usr/bin/env python
# By hcs with tweaks by Kef Schecter
# Requires Python 2.7 or greater
from __future__ import division
from contextlib import contextmanager
from struct import unpack, pack
import argparse
import sys
import wave
EN_SAMPLE_RATES = (
12000, # File 0
15000, # File 1
7000, # File 2
)
... | mit | 6,820,304,517,004,862,000 | 30.110169 | 130 | 0.572732 | false |
jocelynj/weboob | weboob/backends/aum/optim/queries_queue.py | 1 | 3223 | # -*- coding: utf-8 -*-
# Copyright(C) 2010 Romain Bignon
#
# 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, version 3 of the License.
#
# This program is distributed in the hope that it will b... | gpl-3.0 | -6,295,994,476,438,822,000 | 30.910891 | 81 | 0.576171 | false |
lydiadwyer/sheparddb | data/website/modules/Excavations/controller.py | 1 | 6315 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""The Controller class for Excavations."""
import re
from flask import Blueprint, render_template, redirect, url_for, current_app, \
request, abort
from modules.Shared.database import db
from modules.Countries.model import Country
from modules.Regions.model import Region
... | apache-2.0 | -7,819,131,023,306,929,000 | 35.293103 | 112 | 0.603325 | false |
SoftwareHeritage/swh-storage | swh/storage/tests/test_tenacious.py | 1 | 13693 | # Copyright (C) 2020-2021 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from collections import Counter
from contextlib import contextmanager... | gpl-3.0 | -2,868,103,064,977,612,300 | 31.371158 | 88 | 0.62521 | false |
junmin-zhu/chromium-rivertrail | tools/chrome_remote_control/chrome_remote_control/browser_options_unittest.py | 3 | 2400 | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from chrome_remote_control import browser_options
class BrowserOptionsTest(unittest.TestCase):
def testDefaults(self):
options = b... | bsd-3-clause | -2,435,578,567,387,364,400 | 39 | 72 | 0.6975 | false |
HackBulgaria/Odin | students/south_migrations/0021_auto__chg_field_checkin_date__add_unique_checkin_student_date.py | 1 | 9304 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'CheckIn.date'
db.alter_column(u'students_checkin', 'da... | agpl-3.0 | 5,069,416,046,664,039,000 | 74.650407 | 195 | 0.555245 | false |
kdart/pycopia | process/pycopia/netcat.py | 1 | 2424 | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
# 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
... | apache-2.0 | -2,170,018,751,590,166,000 | 30.894737 | 91 | 0.690182 | false |
vponomaryov/manila | manila/share/drivers/maprfs/driver_util.py | 1 | 13677 | # Copyright (c) 2016, MapR Technologies
# 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 re... | apache-2.0 | 3,621,873,154,249,661,000 | 38.301724 | 79 | 0.550925 | false |
gdw2/zim | zim/plugins/scoreeditor.py | 1 | 4552 | # -*- coding: utf-8 -*-
#
# scoreeditor.py
#
# This is a plugin for Zim, which allows to insert music score in zim using
# GNU Lilypond.
#
#
# Author: Shoban Preeth <shoban.preeth@gmail.com>
# Date: 2012-07-05
# Copyright (c) 2012, released under the GNU GPL v2 or higher
#
#
import glob
from zim.plugins.base.imagegen... | gpl-2.0 | 8,523,769,673,876,917,000 | 28.751634 | 128 | 0.690026 | false |
tommybobbins/Raspi_433 | Python/quick_433.py | 1 | 2225 | #!/usr/bin/python
import time
# Written tng@chegwin.org 3-Jul-2014
# Python runs slower than C, so 18.9 factor below becomes 16.9 (microseconds)
sample_length=15.6/1000000.0
# Setup Pin 18 as output (Pin 12 in Pi numbering)
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
#Calculate our on/offs ... | gpl-2.0 | 6,544,374,671,845,782,000 | 27.164557 | 77 | 0.636404 | false |
Murdius/GW2Snapshot | app/views.py | 1 | 1917 | import urllib
from flask import render_template, request, session
from flask_restful import Resource
from app import app, api
from bank import get_bank
from inventory import *
from material import *
from sharedInventory import get_shared_inventory
from wallet import *
@app.route('/')
@app.route('/index')
def index(... | gpl-3.0 | -8,054,037,269,258,757,000 | 32.051724 | 116 | 0.643192 | false |
lefnire/tensorforce | tensorforce/models/dpg_target_model.py | 1 | 14627 | # Copyright 2017 reinforce.io. 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 law or... | apache-2.0 | -3,073,976,565,068,862,000 | 38.005333 | 134 | 0.636699 | false |
hetica/webeni | main/views.py | 1 | 2128 | # -*- coding: utf-8 -*-
from django.shortcuts import render
from django.utils.encoding import smart_unicode
import sys, os, locale
from datetime import datetime, timedelta
from main.forms import StagiaireForms
# Create your views here.
def home(request):
# CISCO
# Ajouter au path
_path = os.path.dirname(os.path... | lgpl-3.0 | 605,315,141,658,940,400 | 29.242857 | 77 | 0.698158 | false |
andela-mfalade/python-pandas-csv-records-analysis | scripts/processor.py | 1 | 5798 | """Initiate file analysis.
This module is used to find the discrepancies between two given files
"""
import argparse
import csv
import logging
import pandas as pd
logger = logging.getLogger(__file__)
logging.basicConfig(level=logging.DEBUG)
mathching_records_path = 'matching_records.csv'
non_mathching_records_path... | mit | 7,077,057,940,891,033,000 | 33.307692 | 79 | 0.64505 | false |
kadircet/CENG | 783/HW3/cs231n/classifiers/rnn.py | 1 | 14153 | import numpy as np
from cs231n.layers import *
from cs231n.rnn_layers import *
class CaptioningRNN(object):
"""
A CaptioningRNN produces captions from image features using a recurrent
neural network.
The RNN receives input vectors of size D, has a vocab size of V, works on
sequences of length T, has an RN... | gpl-3.0 | 8,735,421,741,760,482,000 | 44.073248 | 94 | 0.578817 | false |
sendwithus/sendwithus_python | setup.py | 1 | 1233 | from distutils.core import setup
from setuptools import find_packages
from io import open
with open('README.md', encoding="utf-8") as fp:
long_description = fp.read()
setup(
name='sendwithus',
version='5.2.2',
author='sendwithus',
author_email='us@sendwithus.com',
packages=find_packages(),
... | apache-2.0 | -5,195,938,863,591,986,000 | 28.357143 | 61 | 0.595296 | false |
probcomp/cgpm | tests/disabled_test_render_utils.py | 1 | 5792 | # -*- coding: utf-8 -*-
# Copyright (c) 2015-2016 MIT Probabilistic Computing Project
# 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
# Unles... | apache-2.0 | -2,877,310,649,881,018,400 | 30.650273 | 83 | 0.589779 | false |
google-research/realworldrl_suite | examples/run_ppo.py | 1 | 3367 | # coding=utf-8
# Copyright 2020 The Real-World RL Suite 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 appl... | apache-2.0 | 3,891,268,748,940,706,000 | 32.67 | 78 | 0.70597 | false |
CSD-Public/stonix | src/tests/rules/unit_tests/zzzTestRuleDisableInteractiveStartup.py | 1 | 4581 | #!/usr/bin/env python3
###############################################################################
# #
# Copyright 2019. Triad National Security, LLC. All rights reserved. #
# This program was produced under U.S. Government contrac... | gpl-2.0 | 656,587,483,772,864,600 | 38.834783 | 90 | 0.577385 | false |
codefisher/web_games | million/views.py | 1 | 5027 | import random
from django.shortcuts import render, get_object_or_404, redirect
from django.urls import reverse
from .models import Game, Question
# Create your views here.
def index(request):
games = Game.objects.all()
return render(request, "million/index.html", {
"games": games,
})
def game(requ... | mit | -4,417,307,272,275,409,400 | 42.344828 | 155 | 0.587229 | false |
hellhovnd/tennisranking | tennisranking/project/wsgi.py | 1 | 1449 | # -*- coding:utf-8 -*-
'''
WSGI config for tennisranking 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 ... | bsd-2-clause | 1,097,786,485,814,970,900 | 42.909091 | 79 | 0.78882 | false |
NLHEALTHCARE/PYELT | tests/old/unit_tests_rob/test03r_domain.py | 1 | 1900 | import unittest
from tests.unit_tests_rob import _domain_rob, _domain_rob_unittest
from tests.unit_tests_rob.global_test_suite import get_global_test_pipeline, execute_sql, init_db
class TestCase_Domain(unittest.TestCase):
def setUp(self):
self.pipeline = get_global_test_pipeline()
self.pipe = s... | gpl-3.0 | -7,320,625,701,734,242,000 | 36.254902 | 173 | 0.658947 | false |
emory-libraries/ddi-search | ddisearch/ddi/tests.py | 1 | 27334 | # file ddisearch/ddi/tests.py
#
# Copyright 2014 Emory University
#
# 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 appl... | apache-2.0 | -4,096,105,044,130,378,000 | 47.637011 | 137 | 0.637045 | false |
txenoo/django-radio | tasks/utils.py | 1 | 2468 | import tempfile
from contextlib import contextmanager
from invoke import UnexpectedExit
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
HOME_DIR = os.path.expanduser('~')
def run_ignoring_failure(method, command):
try:
method(command)
except UnexpectedExit:
... | gpl-3.0 | 752,847,435,054,799,200 | 26.741573 | 112 | 0.638574 | false |
draperjames/qtpandas | qtpandas/ui/fallback/easygui/boxes/updatable_text_box.py | 1 | 8791 | """
.. moduleauthor:: Stephen Raymond Ferg and Robert Lugg (active)
.. default-domain:: py
.. highlight:: python
Version |release|
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import
from builtins import str
from bui... | mit | -7,097,545,868,337,594,000 | 30.625899 | 97 | 0.644637 | false |
slabanja/ase | ase/cluster/factory.py | 1 | 6685 | import numpy as np
from ase import Atoms
from ase.data import atomic_numbers
from ase.lattice.spacegroup import Spacegroup
from ase.cluster.base import ClusterBase
from ase.cluster.cluster import Cluster
class ClusterFactory(ClusterBase):
directions = [[1, 0, 0],
[0, 1, 0],
[0,... | gpl-2.0 | -6,473,529,649,598,540,000 | 33.458763 | 86 | 0.532835 | false |
pllim/ginga | ginga/rv/plugins/Preferences.py | 1 | 63607 | # This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
"""
Make changes to channel settings graphically in the UI.
**Plugin Type: Local**
``Preferences`` is a local plugin, which means it is associated with a
channel. An instance can be opened for each channel.
*... | bsd-3-clause | -5,765,819,112,308,043,000 | 37.998774 | 108 | 0.615876 | false |
TUW-GEO/SMDC-performance | tests/test_test_cases.py | 1 | 11151 | # Copyright (c) 2013,Vienna University of Technology,
# Department of Geodesy and Geoinformation
# 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... | bsd-3-clause | -8,141,000,024,275,512,000 | 30.148045 | 81 | 0.645592 | false |
qedi-r/home-assistant | homeassistant/components/opentherm_gw/sensor.py | 1 | 2793 | """Support for OpenTherm Gateway sensors."""
import logging
from homeassistant.components.sensor import ENTITY_ID_FORMAT
from homeassistant.const import CONF_ID
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity import Entity,... | apache-2.0 | -911,933,210,000,291,800 | 30.033333 | 88 | 0.621554 | false |
ethereum/pyrlp | tests/test_benchmark.py | 1 | 2832 | from itertools import repeat, chain
import sys
import pytest
import rlp
from rlp.sedes import binary, CountableList
from rlp.exceptions import DecodingError, DeserializationError
try:
import pytest_benchmark # noqa: F401
except ImportError:
do_benchmark = False
else:
do_benchmark = True
# speed up setu... | mit | 7,233,898,538,945,098,000 | 27.039604 | 96 | 0.607698 | false |
sqall01/lightweight-push | lightweight_push.py | 1 | 11821 | #!/usr/bin/python
# written by sqall
# twitter: https://twitter.com/sqall01
# blog: https://h4des.org
# github: https://github.com/sqall01
#
# Licensed under the MIT License.
import time
import logging
import optparse
import sys
from lightweightpush import LightweightPush, ErrorCodes
################ GLOBAL CONFIGUR... | mit | -2,377,226,884,374,902,000 | 32.585227 | 79 | 0.565096 | false |
krahman/BuildingMachineLearningSystemsWithPython | ch02/seeds_knn.py | 1 | 1114 | # This code is supporting material for the book
# Building Machine Learning Systems with Python
# by Willi Richert and Luis Pedro Coelho
# published by PACKT Publishing
#
# It is made available under the MIT License
from load import load_dataset
import numpy as np
from knn import learn_model, apply_model, accuracy
fe... | mit | -4,197,973,750,697,204,000 | 29.944444 | 80 | 0.701077 | false |
minsis/hashgen | libs/hashinglib.py | 1 | 1157 | import hashlib
def read_file(file_path, hashed_file):
with open(file_path, "rb") as open_file:
read_byte = open_file.read(1048576)
while read_byte:
hashed_file.update(read_byte)
read_byte = open_file.read(1048576)
return hashed_file.hexdigest()
def run_hash(file_path, ... | gpl-3.0 | 4,963,185,690,612,316,000 | 25.906977 | 54 | 0.638721 | false |
rahlk/CSC579__Computer_Performance_Modeling | simulation/proj2/Utils/SimUtil.py | 1 | 5781 | from __future__ import print_function
from __future__ import division
from RndUtil import Random
from pdb import set_trace
from MscUtil import Params, Customer
rand = Random()
rand.set_seed(seed_val=1729)
"""
Why 1729?
Well, it is a very interesting number.
It is the smallest number expressible as the sum of two posi... | mit | -1,030,139,186,165,231,200 | 29.75 | 74 | 0.53278 | false |
pybquillast/xkAddonIDE | toRecycle/CodigoEncodedURL.py | 1 | 16126 | '''
Created on 13/07/2014
@author: Alex Montes Barrios
'''
import math
class gledajfilmDecrypter:
def __init__(self, param1, param2):
_loc3_ = False;
_loc4_ = True;
self.Rcon = [1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145];
... | gpl-3.0 | 5,913,846,231,245,662,000 | 35.401806 | 943 | 0.481024 | false |
envoyproxy/envoy | tools/code_format/header_order.py | 1 | 4254 | #!/usr/bin/env python3
# Enforce header order in a given file. This will only reorder in the first sequence of contiguous
# #include statements, so it will not play well with #ifdef.
#
# This attempts to enforce the guidelines at
# https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
# with so... | apache-2.0 | 2,439,975,568,415,147,500 | 33.868852 | 100 | 0.62976 | false |
moomou/heron | heron/common/src/python/utils/metrics/py_metrics.py | 1 | 5091 | # copyright 2016 twitter. 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 law or agree... | apache-2.0 | 1,662,356,960,347,284,500 | 39.728 | 81 | 0.678649 | false |
CityPulse/CP_Resourcemanagement | wrapper_dev/deploy_mgt.py | 1 | 4726 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
import os, curses, curses.ascii, subprocess
import glob
from time import sleep
class Wrapper(object):
deploy_dir = os.path.join("..", "virtualisation", "autodeploy")
def __init__(self, deploy_json):
self.dir = os.path.dirname(deploy_json)
self.... | mit | -4,204,159,071,210,391,000 | 28.911392 | 110 | 0.569615 | false |
mitodl/open-discussions | course_catalog/etl/mitpe.py | 1 | 6740 | """MIT Professional course catalog ETL"""
import logging
import re
from datetime import datetime
from decimal import Decimal
from urllib.parse import urljoin
import requests
from bs4 import BeautifulSoup as bs
from django.conf import settings
from course_catalog.constants import OfferedBy, PlatformType, mitpe_edx_map... | bsd-3-clause | 2,551,223,076,734,716,400 | 28.69163 | 87 | 0.593472 | false |
lotan/rhythmbox-ampache | AmpacheConfigDialog.py | 1 | 2578 | # vim: expandtab shiftwidth=8 softtabstop=8 tabstop=8
#
# (c) 2010
# envyseapets@gmail.com
# grindlay@gmail.com
# langdalepl@gmail.com
# massimo.mund@googlemail.com
# bethebunny@gmail.com,
# 2012-2015 lotan_rm@gmx.de
#
# This file is part of the Rhythmbox Ampache plugin.
#
# The Rhythmbox ... | gpl-2.0 | -6,233,782,445,711,724,000 | 39.28125 | 84 | 0.65322 | false |
zerotk/terraformer | zerotk/fifo.py | 1 | 1072 | from __future__ import unicode_literals
from collections import OrderedDict
class FIFO(OrderedDict):
"""
This is a First in, First out cache, so, when the maximum size is reached, the first item added
is removed.
"""
def __init__(self, maxsize):
"""
:param int maxsize:
... | mit | -6,191,526,884,440,958,000 | 26.487179 | 99 | 0.570896 | false |
mvj3/leetcode | 206-reverse-linked-list.py | 1 | 1626 | """
Question:
Reverse Linked List
Reverse a singly linked list.
click to show more hints.
Hint:
A linked list can be reversed either iteratively or recursively. Could you implement both?
Performance:
1. Total Accepted: 48424 Total Submissions: 141893 Difficulty: Easy
2. Your runtime beat... | mit | -8,271,683,383,833,628,000 | 21.273973 | 94 | 0.630381 | false |
apple/llvm-project | llvm/utils/lit/tests/selecting.py | 4 | 6440 | # RUN: %{lit} %{inputs}/discovery | FileCheck --check-prefix=CHECK-BASIC %s
# CHECK-BASIC: Testing: 5 tests
# Check that we exit with an error if we do not discover any tests, even with --allow-empty-runs.
#
# RUN: not %{lit} %{inputs}/nonexistent 2>&1 | FileCheck --check-prefix=CHECK-BAD-PATH %s
#... | apache-2.0 | -2,681,126,831,188,357,000 | 55.99115 | 156 | 0.676087 | false |
JConwayAWT/PGSS14CC | lib/python/multimetallics/ase/io/castep.py | 3 | 23945 | # -*- coding: utf-8 -*-
"""This module defines I/O routines with CASTEP files.
The key idea is that all function accept or return atoms objects.
CASTEP specific parameters will be returned through the <atoms>.calc
attribute.
"""
from numpy import sqrt, radians, sin, cos, matrix, array, cross, float32, dot
import ase
... | gpl-2.0 | 6,714,702,585,008,503,000 | 39.108878 | 79 | 0.515181 | false |
ijon/elliptics | bindings/python/routes.py | 1 | 2414 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# =============================================================================
# 2013+ Copyright (c) Kirill Smorodinnikov <shaitkir@gmail.com>
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Gener... | lgpl-3.0 | 527,302,113,074,154,000 | 37.31746 | 130 | 0.634217 | false |
aonotas/chainer | chainer/functions/util/forget.py | 1 | 4646 | from chainer.backends import cuda
from chainer import function
from chainer import variable
class _DummyFunction(function.Function):
def __init__(self, grads):
self.grads = grads
def forward(self, inputs):
xp = cuda.get_array_module(*inputs)
return xp.array(0),
def backward(self... | mit | -4,284,658,726,408,715,300 | 34.465649 | 79 | 0.611709 | false |
pienkowb/omelette | omelette/compiler/test/test_validator.py | 1 | 1773 | import unittest
from omelette.compiler.uml import UMLObject
from omelette.compiler.validator import Validator
from omelette.compiler import logging
class ValidatorTest(unittest.TestCase):
def setUp(self):
self.uml_object = UMLObject(name="association")
self.uml_object.required = {"source-object": ... | gpl-3.0 | -247,615,655,327,602,700 | 32.45283 | 62 | 0.58432 | false |
MrReN/django-oscar | oscar/apps/dashboard/vouchers/forms.py | 1 | 2964 | from django import forms
from oscar.core.loading import get_model
from django.utils.translation import ugettext_lazy as _
Voucher = get_model('voucher', 'Voucher')
Benefit = get_model('offer', 'Benefit')
Range = get_model('offer', 'Range')
class VoucherForm(forms.Form):
"""
A specialised form for creating a ... | bsd-3-clause | 6,354,596,630,148,334,000 | 34.710843 | 78 | 0.586032 | false |
zhaochao/fuel-web | nailgun/nailgun/test/integration/test_public_api.py | 1 | 3000 | # -*- coding: utf-8 -*-
# Copyright 2014 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | apache-2.0 | 2,852,021,454,831,361,500 | 35.144578 | 78 | 0.622333 | false |
arnavd96/Cinemiezer | myvenv/lib/python3.4/site-packages/music21/alpha/trecento/findTrecentoFragments.py | 1 | 11333 | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''Runs a series of tests against the database to see if any of the following unidentified fragments are in there...'''
from music21 import metadata
from music21 import interval
from music21 import note
from music21 import stream
from music21.alpha.trecento import cadencebo... | mit | 7,958,343,941,442,294,000 | 41.445693 | 140 | 0.598518 | false |
ksmit799/Toontown-Source | toontown/coghq/DistributedInGameEditor.py | 1 | 29740 | from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.showbase.PythonUtil import lineInfo, Functor
from direct.directnotify import DirectNotifyGlobal
from direct.distributed import DistributedObject
from otp.level import Level
from otp.level import LevelConstants
from otp.level impo... | mit | -6,602,040,067,348,941,000 | 37.374194 | 341 | 0.618258 | false |
larsks/cloud-init-patches | cloudinit/config/cc_rh_subscription.py | 1 | 15746 | # vi: ts=4 expandtab
#
# Copyright (C) 2015 Red Hat, Inc.
#
# Author: Brent Baude <bbaude@redhat.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3, as
# published by the Free Software Foundation.
#
# This prog... | gpl-3.0 | 259,758,934,035,097,340 | 37.311436 | 79 | 0.535247 | false |
gatkin/declxml | tests/test_text_encoding.py | 1 | 2177 | # -*- coding: utf-8 -*-
"""Tests handling of text encoding"""
import os
import pytest
import declxml as xml
_PROCESSOR = xml.dictionary('root', [
xml.string('value')
])
_VALUE = {
'value': u'Hello, 世界!',
}
_XML_STRING = u"""<root><value>Hello, 世界!</value></root>"""
_XML_STRING_INDENTED = u"""<?xml v... | mit | -40,513,747,953,449,440 | 22.791209 | 94 | 0.655889 | false |
SneakersInc/sniffmypacketsv2 | src/sniffmypacketsv2/transforms/pcap-dns-domain.py | 1 | 3064 | #!/usr/bin/env python
import datetime
from common.dbconnect import mongo_connect, find_session
from common.hashmethods import *
import tldextract
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
from collections import OrderedDict
from common.entities import pcapFile
fr... | apache-2.0 | -8,672,177,850,255,200,000 | 30.916667 | 125 | 0.548956 | false |
warszawajug/warsjawa2014 | app/buildsite.py | 1 | 1997 | # -*- coding: utf-8 -*-
import jinja2
import sys
import os
import shutil
import contents
import json
absolute_path = os.path.dirname(os.path.abspath(__file__))
reload(sys)
sys.setdefaultencoding("utf-8")
absolute_template_path = absolute_path + '/templates'
absolute_output_path = absolute_path + '/output'
print('... | mit | 6,303,169,827,133,049,000 | 32.847458 | 132 | 0.671007 | false |
ittailup/scrape4jobs | scrape4jobs/spiders/resumator_spider.py | 1 | 1539 | from scrapy.spider import Spider
from scrapy import signals
from scrapy.selector import Selector
import logging
import csv
from careerpagescrapers.items import Startup, StartupJob
from scrapy.log import ScrapyFileLogObserver
from scrapy.xlib.pydispatch import dispatcher
from scrapy import log
logfile = open('testlog.l... | mit | -3,061,203,833,420,952,000 | 34 | 111 | 0.625081 | false |
joegomes/deepchem | deepchem/models/tests/test_overfit.py | 1 | 35451 | """
Tests to make sure deepchem models can overfit on tiny datasets.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
import os
import tempfile
im... | mit | -580,225,416,711,889,300 | 30.909091 | 90 | 0.647457 | false |
mitodl/bootcamp-ecommerce | main/urls.py | 1 | 3638 | """
URLs for bootcamp
"""
from django.conf import settings
from django.conf.urls import url
from django.conf.urls.static import static
from django.urls import re_path, include, path
from django.contrib import admin
from django.contrib.auth import views as auth_views
from wagtail.admin import urls as wagtailadmin_urls
... | bsd-3-clause | 4,073,633,794,591,131,000 | 39.876404 | 121 | 0.598406 | false |
foobarbazblarg/stayclean | stayclean-2016-april/display-final-after-month-is-over.py | 1 | 2952 | #!/usr/bin/python
from participantCollection import ParticipantCollection
import re
import datetime
import pyperclip
# Edit Me!
# This script gets run on the first day of the following month, and that month's URL is
# what goes here. E.g. If this directory is the directory for February, this script gets
# run on Marc... | mit | -6,114,059,128,548,899,000 | 43.727273 | 199 | 0.680556 | false |
mbinette91/ConstructionLCA | webapp.py | 1 | 7974 | import os
import threading
import urlparse
import time
from SimpleHTTPServer import SimpleHTTPRequestHandler
from ModelBuilder import ModelBuilder
import pickle
import sqlite3
import json
db = None;
def GetUniqueProjectId():
global db
filename = "../temp.db"
if not db:
db = {'last_project_id': 0}
if os.path.is... | gpl-2.0 | 1,653,101,591,102,240,800 | 27.180212 | 186 | 0.656132 | false |
maxhutch/mapcombine | examples/word_count/word_count.py | 1 | 1274 | #!/usr/bin/env python3
from argparse import ArgumentParser
from mapcombine import outer_process
parser = ArgumentParser(description='MapCombine example')
parser.add_argument('--mapreduce', default='MapReduce',
help="Module that implements map_ and reduce_")
parser.add_argument('--MR_init', default=... | mit | -5,723,069,289,503,960,000 | 40.096774 | 74 | 0.620094 | false |
RobinQuetin/CAIRIS-web | cairis/cairis/InternalDocumentDialog.py | 1 | 3183 | # 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... | apache-2.0 | 5,694,523,722,869,602,000 | 36.892857 | 163 | 0.727301 | false |
stackmagic/repod | repod.py | 1 | 4681 | #!/usr/bin/env python
# -*- coding: utf_8 -*-
import eyed3
import os
import sqlite3 as sl
import shutil
eyed3.require("0.7")
pod = '/media/ipod-backup'
dst = '/media/ipod-music-export'
dbf = '%s/iTunes_Control/iTunes/MediaLibrary.sqlitedb' % pod
print '>>> using database file %s' % dbf
con = sl.connect(dbf)
cur = ... | apache-2.0 | -4,830,636,996,931,379,000 | 25.150838 | 151 | 0.618244 | false |
elthariel/dff | testsuite/dffunittest.py | 1 | 6113 | #!/usr/bin/python
# DFF -- An Open Source Digital Forensics Framework
# Copyright (C) 2009-2010 ArxSys
# This program is free software, distributed under the terms of
# the GNU General Public License Version 2. See the LICENSE file
# at the top of the source tree.
#
# See http://www.digital-forensic.org for more inf... | gpl-2.0 | 3,109,872,528,209,225,700 | 30.838542 | 101 | 0.560281 | false |
picrust/picrust | scripts/start_parallel_picrust_jobs_sge.py | 1 | 3682 | #!/usr/bin/env python
"""A simple qsub based cluster submission script for SGE."""
__author__ = "Jens Reeder"
__copyright__ = "Copyright 2011-2013, The PICRUSt Project"
__credits__ = ["Jens Reeder",
"Rob Knight",
"Greg Caporaso",
"Morgan Langille"]
__license__ = "GPL"
__... | gpl-3.0 | -1,057,737,128,476,216,400 | 37.354167 | 156 | 0.614883 | false |
mattcieslak/DSI2 | dsi2/ui/ltpa_result.py | 1 | 9331 | #!/usr/bin/env python
from traits.api import HasTraits, Instance, Array, Bool, Dict, \
on_trait_change, Delegate, List, Color, Any, Instance, Int, File, \
Button, Enum, Str, DelegatesTo, Property, CFloat,Range
from traitsui.api import View, Item, HGroup, VGroup, \
Group, Handler, HSplit, VSplit, RangeEd... | gpl-3.0 | 3,758,971,186,263,892,500 | 32.444444 | 102 | 0.609152 | false |
JMJAC/Rango | tango_project/rango/models.py | 1 | 1073 | from django.db import models
from django.template.defaultfilters import slugify
from django.contrib.auth.models import User
class Category(models.Model):
name = models.CharField(max_length=128, unique=True)
likes = models.IntegerField(default=0)
views = models.IntegerField(default=0)
slug = models.Slu... | apache-2.0 | 1,648,244,947,292,942,800 | 26.512821 | 71 | 0.684063 | false |
jazzband/site | migrations/versions/17164a7d1c2e_.py | 1 | 3712 | """
Revision ID: 17164a7d1c2e
Revises: cc0e3906ecfb
Create Date: 2017-09-28 19:53:27.500788
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = "17164a7d1c2e"
down_revision = "cc0e3906ecfb"
def upgrade():
op.create_tab... | mit | -6,045,601,515,669,761,000 | 38.489362 | 88 | 0.626886 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.