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 |
|---|---|---|---|---|---|---|---|---|---|---|
takkaneko/netengtools | boreasprov.py | 1 | 2030 | #!/usr/bin/env python3
# boreasprov.py
import hafwl2l3prov
import fwl2l3prov
import halbl2l3prov
import lbl2l3prov
import ipsprov
import hafwiloprov
import fwiloprov
def main():
title ='\n****************************************\n'
title += 'BOREAS NETWORK DEVICE PROVISIONING SUITE\n'
title += '**********... | mit | 8,231,743,044,508,089,000 | 32.833333 | 79 | 0.587192 | false |
cdemulde/wwdata | wwdata/Class_HydroData.py | 1 | 84432 | # -*- coding: utf-8 -*-
"""
Class_HydroData provides functionalities for handling data obtained in the context of (waste)water treatment.
Copyright (C) 2016 Chaim De Mulder
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 Fre... | agpl-3.0 | -375,071,956,958,271,900 | 42.792012 | 164 | 0.55373 | false |
54lihaoxin/leetcode_python | src/StringToInteger/solution.py | 1 | 2389 | # String to Integer (atoi)
#
# Implement atoi to convert a string to an integer.
#
# Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases.
#
# Notes: It is intended for this problem to be specified vaguely (ie, no... | apache-2.0 | -8,124,587,870,390,814,000 | 35.359375 | 296 | 0.60653 | false |
coati-00/nepi | terrain.py | 1 | 5509 | # -*- coding: utf-8 -*-
from django.test import client
from lettuce import before, after, world, step
from lettuce.django import django_url
import os
import time
from django.conf import settings
try:
from lxml import html
from selenium import webdriver
from selenium.webdriver.firefox.firefox_profile import... | gpl-2.0 | 2,688,747,096,823,511,600 | 26.545 | 76 | 0.615901 | false |
iw3hxn/LibrERP | crm_lead_correct/models/res_partner_category.py | 1 | 1909 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2014 Didotech SRL (info at didotech.com)
# All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole re... | agpl-3.0 | 1,621,162,907,417,058,000 | 42.386364 | 79 | 0.655317 | false |
jslvtr/AC41004-Team-2 | tests/unit/test_event.py | 1 | 3539 | from unittest import TestCase
import uuid
from src.common.database import Database
from src.models.event import Event, NoSuchEventExistException
from datetime import datetime
import os
__author__ = 'stamas01'
mongodb_user = os.environ.get("MONGODB_USER")
mongodb_password = os.environ.get("MONGODB_PASSWORD")
mongo_url... | gpl-2.0 | 71,280,100,317,924,000 | 39.678161 | 169 | 0.628426 | false |
foer/linuxmuster-client-unity | tests/autopilot/unity/emulators/panel.py | 1 | 11333 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
# Copyright 2012 Canonical
# Author: Marco Trevisan (Treviño)
#
# 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 Foundati... | gpl-3.0 | -4,977,705,003,350,863,000 | 31.193182 | 90 | 0.618602 | false |
ComputerArchitectureGroupPWr/Floorplan-Maker | src/device.py | 1 | 7566 | import xml.dom.minidom as dom
from math import *
class Element:
x = 0
y = 0
def __eq__(self,other):
if(isinstance(other,Element)):
if( self.x == other.x and self.y == other.y):
return True
else:
return False
return NotImplemented
def __ne__(self,other):
if(isinstance(other,Element)):
if(se... | mit | 7,512,026,252,719,605,000 | 23.888158 | 85 | 0.597145 | false |
bitmazk/django-account-keeping | account_keeping/south_migrations/0004_init_invoice_value_fields.py | 1 | 7094 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Don't use "from appname.models imp... | mit | -6,244,437,925,822,441,000 | 74.468085 | 184 | 0.564562 | false |
simbtrix/screenmix | screenmix/shapes/shapeRectangle.py | 1 | 5618 | '''
Created on 25.07.2016
@author: mkennert
'''
from decimal import Decimal
from kivy.properties import ListProperty, NumericProperty, ObjectProperty
from kivy.uix.gridlayout import GridLayout
from crossSectionInformation.rectInformation import RectangleInformation
from crossSectionView.rectView import Re... | gpl-3.0 | -7,661,164,327,814,738,000 | 31.440476 | 93 | 0.606978 | false |
beeftornado/sentry | tests/sentry/lang/native/test_utils.py | 1 | 1580 | from __future__ import absolute_import
from sentry.lang.native.utils import get_sdk_from_event, is_minidump_event
def test_get_sdk_from_event():
sdk_info = get_sdk_from_event(
{
"debug_meta": {
"sdk_info": {
"sdk_name": "iOS",
"version_m... | bsd-3-clause | 1,585,955,638,993,456,400 | 36.619048 | 95 | 0.555063 | false |
nicoboss/Floatmotion | pygame/tests/pixelcopy_test.py | 1 | 25821 | if __name__ == '__main__':
import sys
import os
pkg_dir = os.path.split(os.path.abspath(__file__))[0]
parent_dir, pkg_name = os.path.split(pkg_dir)
is_pygame_pkg = (pkg_name == 'tests' and
os.path.split(parent_dir)[1] == 'pygame')
if not is_pygame_pkg:
sys.path.inser... | agpl-3.0 | -6,294,435,277,018,590,000 | 39.09472 | 80 | 0.451261 | false |
YuxuanLing/trunk | trunk/code/study/python/core_python_appilication/ch04/mtsleepF.py | 1 | 1118 | #!/usr/bin/env python
from atexit import register
from random import randrange
from threading import Thread, Lock, currentThread
from time import sleep, ctime
class CleanOutputSet(set):
def __str__(self):
return ', '.join(x for x in self)
lock = Lock()
loops = (randrange(2, 5) for x in xrange... | gpl-3.0 | 8,837,571,305,694,491,000 | 26.666667 | 113 | 0.595707 | false |
kaizentech/skeleton | urls.py | 1 | 1052 | """temp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | apache-2.0 | 4,995,287,408,869,362,000 | 37.962963 | 79 | 0.701521 | false |
habibmasuro/django-wiki | wiki/urls.py | 1 | 8204 | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url, include
from wiki.conf import settings
from wiki.core.plugins import registry
from wiki.views import article, accounts
from wiki.core.utils import get_class_from_str
from django.contrib.auth.views import password_reset
class WikiURLPatterns(object):
... | gpl-3.0 | 7,259,859,571,351,220,000 | 50.597484 | 175 | 0.60312 | false |
lampwins/netbox | netbox/dcim/urls.py | 1 | 26410 | from django.urls import path
from extras.views import ObjectChangeLogView, ImageAttachmentEditView
from ipam.views import ServiceCreateView
from secrets.views import secret_add
from . import views
from .models import (
Cable, ConsolePort, ConsoleServerPort, Device, DeviceRole, DeviceType, FrontPort, Interface, Man... | apache-2.0 | -6,724,790,281,098,075,000 | 85.026059 | 208 | 0.726732 | false |
insomnia-lab/calibre | src/calibre/ebooks/metadata/book/render.py | 1 | 8008 | #!/usr/bin/env python
# vim:fileencoding=utf-8
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
import os
from functools import partial
from calibre import prepare_string_f... | gpl-3.0 | 1,372,773,711,632,978,400 | 39.649746 | 131 | 0.49975 | false |
pferreir/indico-backup | indico/web/flask/blueprints/legacy.py | 1 | 21964 | # -*- coding: utf-8 -*-
##
##
## This file is part of Indico.
## Copyright (C) 2002 - 2014 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; eith... | gpl-3.0 | -6,249,722,430,769,871,000 | 83.153257 | 119 | 0.785103 | false |
merc-devel/merc | merc/features/rfc1459/nick.py | 1 | 1773 | import regex
from merc import errors
from merc import feature
from merc import message
MAX_NICKNAME_LENGTH = 12
NICKNAME_REGEX = regex.compile(r"^[\p{L}\p{So}_\[\]\\^{}|`][\p{L}\p{So}\p{N}_\[\]\\^{}|`-]*$")
class NickFeature(feature.Feature):
NAME = __name__
install = NickFeature.install
class _Nick(message.... | mit | 8,278,732,483,026,297,000 | 22.025974 | 94 | 0.684715 | false |
yang0110/comPy | modulation.py | 1 | 10528 | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from sklearn import preprocessing
import pylab
import itertools
from line_coding import polar_nrz
import math
from scipy import signal
from scipy.integrate import simps
import numpy.matlib
from compy.bin2gray impor... | mit | 2,672,909,887,420,412,000 | 33.567568 | 140 | 0.698898 | false |
ivanbgd/Genetic_Algorithm_01 | GA01v2.py | 1 | 7880 | # Python 2.7
"""
An Application of Genetic Algorithms
Task:
Inscribe a triangle of the maximum area in a given ellipse.
Ellipse is defined as: (x/a)^2 + (y/b)^2 = 1
"""
import math
import matplotlib.pyplot as plt
import numpy as np
import random
from timeit import default_timer as timer
tstart = ti... | mit | -7,571,025,908,308,426,000 | 30.970711 | 124 | 0.55736 | false |
ayy1337/CryptoPriceWatcher | grabtrex.py | 1 | 5552 | #!/usr/bin/python3
'''
Version: 1.0.02
Author: ayy1337
Licence: GNU GPL v3.0
'''
import sys
import time
import os
import datetime
import urllib.request
import collections
from operator import attrgetter
from operator import itemgetter
import shelve
from trexapi import Bittrex
condperc = .0... | gpl-3.0 | -6,008,384,891,887,564,000 | 22.629787 | 122 | 0.634726 | false |
noinil/euler_pysolution | python_solutions/p098_Anagramic_squares.py | 1 | 1634 | #!/usr/bin/env python3
from itertools import permutations as pm
def is_sqr(n):
i = round(n**0.5)
if i ** 2 == n:
return True
else:
return False
def main():
words = []
with open("../data/p98_words.txt", "r") as fin:
for lines in fin:
for i in lines.split(','):
... | gpl-2.0 | -1,285,471,491,725,333,200 | 26.694915 | 82 | 0.442472 | false |
nofdev/fastforward | fastforward/horizon.py | 1 | 1829 | import sys
from fastforward.cliutil import priority
from playback.api import Horizon
def install(args):
try:
target = Horizon(user=args.user, hosts=args.hosts.split(','), key_filename=args.key_filename, password=args.password)
except AttributeError:
sys.stderr.write('No hosts found. Please usin... | mit | 66,383,570,392,045,620 | 40.568182 | 165 | 0.545653 | false |
yausern/stlab | devices/Cryocon_44C.py | 1 | 3712 | import visa
import numpy as np
import time
from stlab.devices.instrument import instrument
class Cryocon_44C(instrument):
def __init__(self,addr='TCPIP::192.168.1.5::5000::SOCKET',reset=True,verb=True,**kwargs):
#RST reboots the instrument. Avoid... Also needs special read_termination = '\r\n'
if ... | gpl-3.0 | 2,980,873,264,327,063,000 | 36.494949 | 96 | 0.545797 | false |
luozhaoyu/leetcode | valid_number.py | 1 | 2387 | # -*- coding: utf-8 -*-
"""
valid_number.py
~~~~~~~~~~~~~~
A brief description goes here.
"""
import re
class Solution:
# @param s, a string
# @return a boolean
def isNumber(self, s):
s = s.strip().lower()
if len(s) == 0:
return False
if s.count('.') > 1 ... | mit | -6,678,119,990,164,091,000 | 22.87 | 75 | 0.485547 | false |
Orav/kbengine | kbe/res/scripts/common/Lib/site-packages/pip/vcs/git.py | 1 | 8092 | import tempfile
import re
import os.path
from pip.util import call_subprocess
from pip.util import display_path, rmtree
from pip.vcs import vcs, VersionControl
from pip.log import logger
from pip.backwardcompat import url2pathname, urlparse
urlsplit = urlparse.urlsplit
urlunsplit = urlparse.urlunsplit
cla... | lgpl-3.0 | 4,057,708,579,213,142,000 | 39.71134 | 111 | 0.547578 | false |
pataquets/namecoin-core | test/functional/wallet_importdescriptors.py | 1 | 26430 | #!/usr/bin/env python3
# Copyright (c) 2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the importdescriptors RPC.
Test importdescriptors by generating keys on node0, importing the correspon... | mit | 4,546,330,020,616,663,000 | 56.707424 | 464 | 0.59319 | false |
Shiva-Iyer/kepler | pykepler/riseset.py | 1 | 3379 | # riseset.py - Wrapper for celestial body rise/transit/set times
# Copyright (C) 2016 Shiva Iyer <shiva.iyer AT g m a i l DOT c o m>
#
# 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 vers... | gpl-3.0 | -8,199,793,369,504,019,000 | 32.79 | 76 | 0.606096 | false |
tylertian/Openstack | openstack F/glance/glance/registry/api/v1/members.py | 1 | 13468 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010-2011 OpenStack LLC.
# 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... | apache-2.0 | -568,843,902,991,611,650 | 39.444444 | 79 | 0.529032 | false |
jsenko/repour | repour/server/server.py | 1 | 3266 | import asyncio
import logging
from aiohttp import web
from .endpoint import cancel
from .endpoint import endpoint
from ..adjust import adjust
from .. import clone
from .. import pull
from .. import repo
from .endpoint import validation
from ..auth import auth
from ..config import config
logger = logging.getLogger(__... | apache-2.0 | 3,060,298,820,635,262,000 | 34.89011 | 127 | 0.676975 | false |
johncfaver/iddqd | cgi-bin/createadmin.py | 1 | 1279 | #!/usr/bin/env python
##
# createadmin.py
# Runs when an admin promotes a user to admin.
# Must verify that request was from admin with correct token.
#
import psycopg2, cgi,cgitb,string,random
from sys import exit
cgitb.enable(display=0,logdir="../log/",format="text")
import config
form=cgi.FieldStorage()
keys=form... | gpl-3.0 | -6,717,818,911,261,644,000 | 22.685185 | 152 | 0.680219 | false |
cculianu/bitcoin-abc | test/functional/wallet_labels.py | 1 | 7161 | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test label RPCs.
RPCs tested are:
- getaddressesbylabel
- listaddressgroupings
- setlabel
... | mit | 1,248,417,646,825,572,000 | 36.103627 | 88 | 0.609272 | false |
fracpete/python-weka-wrapper | python/weka/flow/container.py | 1 | 7925 | # 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 distributed in the hope that it will be useful,
# bu... | gpl-3.0 | -7,964,519,696,073,500,000 | 28.243542 | 107 | 0.592303 | false |
clwainwright/CosmoTransitions | cosmoTransitions/finiteT.py | 1 | 10960 | """
This module provides the functions for the one-loop finite
temperature corrections to a potential in QFT. The two basic
functions are:
Jb(x) = int[0->inf] dy +y^2 log( 1 - exp(-sqrt(x^2 + y^2)) )
Jf(x) = int[0->inf] dy -y^2 log( 1 + exp(-sqrt(x^2 + y^2)) )
Call them by:
Jb(x, approx='high', deriv=0... | mit | 2,406,444,055,076,283,400 | 28.226667 | 79 | 0.565967 | false |
rcfox/CGen | test/test_functions.py | 1 | 2882 | from cgen.blocks import *
def test_basic_function():
src = SourceFile()
with src.function('main', Type('int'), [Variable('argc', Type('int')), Variable('argv', Type('char').pointer().pointer())]) as f:
f.variable('foo', Type('int'), value=42)
f.return_statement(0)
assert f.output() == \... | mit | -2,230,830,704,056,779,800 | 29.659574 | 133 | 0.543373 | false |
isthatme/openHomeControl | src/A10-LIME/mqtt_PCA9685_first_copy.py | 1 | 2431 | #!/usr/bin/env python
import paho.mqtt.client as mqtt
from pyA10Lime import i2c
import time
'''
Overall design of the program:
Set up mqtt
set up the PCA9685
sub to relevent channels
how do channels work?
devID/controllerID/pinNum maybe?
so A10-1/0x42/4 would reference pyA10 number 1, with a controller addresse... | bsd-2-clause | 8,889,925,543,877,168,000 | 20.324561 | 100 | 0.679144 | false |
EvilDako/PyTraining | test/test_edit_contact.py | 1 | 1268 | __author__ = 'dako'
# -*- coding: utf-8 -*-
from model.contact import Contact
import random
def test_edit_contact(app, db, check_ui):
if len(db.get_contact_list()) == 0:
app.contact.create(Contact(firstname="test"))
old_contacts = db.get_contact_list()
contact = random.choice(old_contacts)
cont... | gpl-2.0 | 2,127,943,103,430,762,500 | 59.428571 | 221 | 0.665615 | false |
AdrianGaudebert/socorro-crashstats | crashstats/api/views.py | 1 | 6278 | import re
import datetime
from django import http
from django.shortcuts import render
from django.contrib.sites.models import RequestSite
from django.core.urlresolvers import reverse
from django.conf import settings
from django import forms
from ratelimit.decorators import ratelimit
from waffle.decorators import waff... | mpl-2.0 | 5,001,584,025,281,107,000 | 28.336449 | 78 | 0.597005 | false |
timurbakibayev/trains | tutu/views.py | 1 | 9410 | from django.shortcuts import render
from django.http import HttpResponseRedirect
from tutu.models import Track
from django.views.decorators.csrf import csrf_exempt
from tutu.models import Switch
from tutu import draw
def index(request):
tracks = Track.objects.all()
# draw.something()
tracks_plus = []
... | gpl-3.0 | 1,335,998,830,436,119,000 | 32.133803 | 129 | 0.547928 | false |
cloudera/hue | desktop/core/src/desktop/lib/raz/raz_client.py | 1 | 7363 | #!/usr/bin/env python
#
# 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 "Li... | apache-2.0 | -8,960,432,691,178,515,000 | 37.752632 | 141 | 0.665082 | false |
druce/safewithdrawal_tensorflow | run_safewithdrawal_linearalloc.py | 1 | 5015 | #!/home/ubuntu/anaconda2/bin/python
# MIT License
# Copyright (c) 2016 Druce Vertes drucev@gmail.com
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without ... | mit | -5,372,145,557,114,190,000 | 48.653465 | 683 | 0.771087 | false |
cemarchi/biosphere | Src/BioDataManagement/DataAccess/Entities/MessengerRnaSample.py | 1 | 1434 | from typing import List, Dict
from Src.BioDataManagement.DataAccess.Entities.BiologicalSampleBase import BiologicalSampleBase
from Src.BioDataManagement.DataAccess.Entities.GeneExpressionLevel import GeneExpressionLevel
class MessengerRnaSample(BiologicalSampleBase):
"""description of class"""
def __init__(... | bsd-3-clause | 579,169,642,502,552,600 | 26.576923 | 100 | 0.603208 | false |
atumanov/ray | python/ray/rllib/optimizers/replay_buffer.py | 1 | 8536 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import random
import sys
from ray.rllib.optimizers.segment_tree import SumSegmentTree, MinSegmentTree
from ray.rllib.utils.annotations import DeveloperAPI
from ray.rllib.utils.compression im... | apache-2.0 | -6,601,539,590,877,492,000 | 32.73913 | 77 | 0.575679 | false |
wesm/arrow | python/pyarrow/__init__.py | 1 | 20961 | # 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 | 4,812,145,373,778,390,000 | 40.589286 | 87 | 0.608606 | false |
shreyasp/erpnext | erpnext/controllers/accounts_controller.py | 1 | 28222 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _, throw
from frappe.utils import today, flt, cint, fmt_money, formatdate, getdate
from erpnext.setup.utils import get_... | gpl-3.0 | -5,101,145,368,860,695,000 | 38.035961 | 180 | 0.690383 | false |
cortext/crawtextV2 | page.py | 1 | 4427 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#from __future__ import print_function
import datetime
from os.path import exists
import sys
import requests
import json
import re
#from goose import Goose
from pymongo import errors as mongo_err
#from bs4 import BeautifulSoup as bs
#import beautifulsoup4 as bs
from urlpa... | mit | 8,397,858,714,817,989,000 | 33.585938 | 445 | 0.658911 | false |
galuszkak/djangodash | game/migrations/0007_auto__chg_field_game_host.py | 1 | 5665 | # -*- coding: utf-8 -*-
import 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 'Game.host'
db.alter_column(u'game_game', 'host_id', self.gf('django.db.models.fields.rela... | gpl-2.0 | -7,510,298,253,660,137,000 | 66.452381 | 187 | 0.55481 | false |
wraiden/spacewalk | backend/satellite_tools/repo_plugins/__init__.py | 1 | 12733 | #
# Copyright (c) 2008--2016 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | gpl-2.0 | -7,994,968,211,476,632,000 | 36.014535 | 107 | 0.56758 | false |
umitproject/tease-o-matic | django_mongodb_engine/widgets.py | 1 | 2621 | from django.conf import settings
from django.forms import widgets
from django.db import models
from django.utils.safestring import mark_safe
import warnings
warnings.warn("django_mongodb_engine.widgets is deprecated and will be removed "
"in version 0.5", DeprecationWarning)
class DictWidget(widgets.Wi... | bsd-3-clause | 4,250,996,487,729,507,000 | 40.603175 | 145 | 0.47272 | false |
ib-lundgren/django-oauthlib | django_oauthlib/views.py | 1 | 4525 | from __future__ import absolute_import
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.generic.base import View
# TODO: don't import errors like this
from oauthlib.oauth2.draft25 import error... | bsd-3-clause | -8,697,564,746,311,574,000 | 40.136364 | 100 | 0.655249 | false |
sorpaas/reread | reader/views/queries/read_records.py | 1 | 1465 | from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from reader.documents import *
import datetime
import json
import urllib
@login_required
def like_article(request, record_id):
record = ReadRecord.objec... | mit | 6,258,733,803,302,709,000 | 36.564103 | 101 | 0.651877 | false |
wujuguang/scrapyd | scrapyd/webservice.py | 3 | 6619 | from copy import copy
import traceback
import uuid
try:
from cStringIO import StringIO as BytesIO
except ImportError:
from io import BytesIO
from twisted.python import log
from .utils import get_spider_list, JsonResource, UtilsCache, native_stringify_dict
class WsResource(JsonResource):
def __init__(sel... | bsd-3-clause | -5,762,503,081,443,580,000 | 37.935294 | 125 | 0.599033 | false |
ohrstrom/django-nunjucks | nunjucks/management/commands/nunjucks_tools.py | 1 | 4480 | import os
import sys
from collections import OrderedDict
from optparse import make_option
from django.core.files.storage import FileSystemStorage
from django.core.management.base import CommandError, NoArgsCommand
from django.contrib.staticfiles import finders, storage
from django.template.loader import render_to_stri... | bsd-3-clause | 7,821,409,506,878,498,000 | 30.556338 | 89 | 0.577902 | false |
CaptainHayashi/lass | urysite/url_regexes.py | 1 | 1298 | """
Common regular expression stubs for URLconfs.
These are collected in a common module to ensure consistency across
the LASS platform.
"""
# Helper functions #
def relative(partials):
"""
Given a sequence of partial regexes, constructs a full regex that
treats the partial regexes as stages in a direc... | gpl-2.0 | 6,314,977,351,025,411,000 | 24.96 | 69 | 0.657935 | false |
tbenthompson/LMS_public | lms_code/plots/plot_hazard.py | 1 | 3557 | import matplotlib.pyplot as plt
import numpy as np
from lms_code.analysis.run_bem import get_slip_magnitude
import lms_code.lib.rep2 as rep2
import lms_code.plots.plot_all as lms_plot
def main():
lms_plot.setup()
fig = plt.figure()
which_model = 'all_details'
bem_soln = rep2.load('bem_' + which_model)... | mit | 8,852,281,276,699,813,000 | 33.201923 | 128 | 0.536688 | false |
jbest/digitization_tools | sort/sort.py | 1 | 5387 | import argparse
#import glob
#import os
import shutil
from pathlib import Path
DEFAULT_HERBARIUM_PREFIX = 'BRIT'
DEFAULT_FOLDER_INCREMENT = 1000
DEFAULT_NUMBER_PAD = 7
files_analyzed = 0
files_sorted = 0
verbose = False
# set up argument parser
ap = argparse.ArgumentParser()
ap.add_argument("-d", "--directory", requi... | mit | -1,070,387,984,230,873,100 | 39.810606 | 119 | 0.664377 | false |
aurelieladier/openturns | python/test/t_NumericalSample_csv.py | 1 | 3101 | #! /usr/bin/env python
from __future__ import print_function
from openturns import *
from os import getenv
TESTPREAMBLE()
try:
Log.Show(Log.INFO)
# 1st sample
f = open('sample.csv', 'w')
f.write(
"X1;X2;X3;X4\n-1.2;2.3;3.4;-4.5\n5.6;-6.7;7.8;8.9\n-0.1;3.2;5.1;7.5\n")
f.close()
aSampl... | lgpl-3.0 | 1,588,056,871,728,396,000 | 31.989362 | 86 | 0.613995 | false |
tsileo/incremental-backups-tools | incremental_backups_tools/__init__.py | 1 | 11140 | # -*- coding: utf-8 -*-
import os
import tarfile
import logging
import tempfile
import shutil
from datetime import datetime
import json
import itertools
import librsync
from dirtools import Dir, DirState, compute_diff
import sigvault
logging.basicConfig(level=logging.INFO)
log = logging
CACHE_PATH = os.path.expand... | mit | 4,781,952,771,890,564,000 | 33.918495 | 103 | 0.566299 | false |
gxxjjj/QuantEcon.py | quantecon/markov/core.py | 1 | 19386 | r"""
Authors: Chase Coleman, Spencer Lyon, Daisuke Oyama, Tom Sargent,
John Stachurski
Filename: core.py
This file contains some useful objects for handling a finite-state
discrete-time Markov chain.
Definitions and Some Basic Facts about Markov Chains
----------------------------------------------------
L... | bsd-3-clause | -8,939,832,694,485,968,000 | 35.033457 | 79 | 0.615444 | false |
JNPRAutomate/pyCliConf | examples/ztp-full.py | 1 | 13115 | #!/usr/bin/python -tt
import sys
import subprocess
from datetime import datetime
# Jijna2 is not supported until Junos 14.1X53, so catch exception on versions without this library.
try:
from jinja2 import Template
JINJA_SUPPORT = True
except:
JINJA_SUPPORT = False
class CliConf():
"""
CliConf
... | apache-2.0 | -7,802,633,541,436,980,000 | 31.705736 | 217 | 0.53069 | false |
garbersc/keras-galaxies | solutionToClass.py | 1 | 1410 | import numpy as np
import os
import csv
with open(TRAIN_LABELS_PATH, 'r') as f:
reader = csv.reader(f, delimiter=",")
train_ids = []
for k, line in enumerate(reader):
if k == 0: continue # skip header
train_ids.append(int(line[0]))
isEndClass = np.asarray([0,0,1,
0,0,
0,0,
0,0,
0,0... | bsd-3-clause | -187,993,293,303,596,700 | 20.692308 | 58 | 0.648227 | false |
unreal666/outwiker | src/outwiker/core/iconmaker.py | 3 | 1151 | # -*- coding: utf-8 -*-
from PIL import Image
from outwiker.core.defines import ICON_WIDTH, ICON_HEIGHT
class IconMaker(object):
""" Class for creation icons by images. """
def create(self, fname_in, fname_out):
""" Create icon by file fname_in. Result will have saved as fname_out.
"""
... | gpl-3.0 | 5,693,076,158,499,590,000 | 33.878788 | 78 | 0.546481 | false |
Titulacion-Sistemas/PythonTitulacion-EV | Lib/site-packages/pylint/test/unittest_checker_python3.py | 1 | 11459 | # Copyright 2014 Google Inc.
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope... | mit | -2,221,897,753,633,817,900 | 37.456376 | 89 | 0.620909 | false |
hofschroeer/shinysdr | shinysdr/test/test_telemetry.py | 1 | 4109 | # Copyright 2015 Kevin Reid <kpreid@switchb.org>
#
# This file is part of ShinySDR.
#
# ShinySDR 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 lat... | gpl-3.0 | 1,781,579,853,708,462,800 | 33.822034 | 117 | 0.627403 | false |
lyshie/afc-github | app/__init__.py | 1 | 6042 | # -*- coding: utf-8 -*-
from flask import Flask, request, session
from flask_login import LoginManager
from flask_wtf.csrf import CSRFProtect
from flask_sqlalchemy import SQLAlchemy
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from flask_babel import Babel
from flask_babel import ... | gpl-3.0 | -3,482,189,673,653,938,000 | 24.008772 | 75 | 0.559102 | false |
Ecogenomics/GtdbTk | gtdbtk/config/config.py | 1 | 12048 | import json
import os
import sys
"""
Load the reference package. This will fail if the directory doesn't exist.
"""
try:
GENERIC_PATH = os.environ['GTDBTK_DATA_PATH']
except KeyError:
print('\n' + '=' * 80)
print(' ERROR '.center(80))
print('_' * 80 + '\n')
print("The 'GTDBTK_DATA_PATH' environment... | gpl-3.0 | 698,190,801,838,647,900 | 51.842105 | 97 | 0.560508 | false |
m3talstorm/foe-bot | foe/models/resources.py | 1 | 2337 |
"""
"""
# Native
import time
import pprint
import json
from collections import OrderedDict
# 3rd-Party
from sqlalchemy import Table, Column, ForeignKey, Integer, String, Boolean, Float
from sqlalchemy.orm import relationship, backref
import pydash
#
from request import Request
from models.model import Model
class... | mit | -8,472,919,973,206,751,000 | 19.146552 | 83 | 0.611896 | false |
SectorLabs/django-postgres-extra | psqlextra/models/partitioned.py | 1 | 1374 | from django.db.models.base import ModelBase
from psqlextra.types import PostgresPartitioningMethod
from .base import PostgresModel
from .options import PostgresPartitionedModelOptions
class PostgresPartitionedModelMeta(ModelBase):
"""Custom meta class for :see:PostgresPartitionedModel.
This meta class extr... | mit | -2,785,277,113,692,309,000 | 30.953488 | 78 | 0.700873 | false |
vially/googlemusic-xbmc | resources/Lib/navigation.py | 1 | 31743 | import time
from urllib import quote_plus, urlencode
import api
import utils
import xbmc
import xbmcplugin
from xbmcgui import ListItem
fanart = utils.addon.getAddonInfo('fanart')
class Navigation:
def __init__(self):
self.lang = utils.addon.getLocalizedString
self.api = api.Api()
self.c... | gpl-3.0 | 4,076,895,093,247,734,000 | 48.290373 | 156 | 0.560502 | false |
siavooshpayandehazad/high_level_test_pattern_gen | src/DetPatGen/ALU.py | 1 | 1113 | import numpy
def alu( op1, op2, alu_op, c_in):
if alu_op == "0000": # mov
result = op2
elif alu_op == "0001": # add
result = op1 + op2
elif alu_op == "0010": # sub
result = op1 - op2
elif alu_op == "0011": # cmp
result = op1
elif alu_op == "0100": # and
result = numpy.bitwise_and(op1, op2)
elif... | gpl-3.0 | 402,474,652,033,670,900 | 29.944444 | 82 | 0.592992 | false |
shoopio/shoop | shuup/gdpr/models.py | 1 | 8040 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2019, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import s... | agpl-3.0 | -4,302,238,486,277,676,000 | 36.050691 | 116 | 0.631219 | false |
numerodix/luna | tests/parser/test_expr.py | 1 | 3573 | from luna.ast import *
## Highest to lowest precedence: tests for associativity
def test_power1(parse_expr):
assert Expr(
Power(
Number('3'),
Power(
Number('4'),
Number('5'),
),
),
) == parse_expr('3 ^ 4 ^ 5')
def test_unar... | mit | 6,562,127,079,191,814,000 | 18.85 | 56 | 0.34005 | false |
jowolf/thelibregroup | fabfile.py | 1 | 16139 | import os
import re
import sys
from functools import wraps
from getpass import getpass, getuser
from glob import glob
from contextlib import contextmanager
from posixpath import join
from fabric.api import env, cd, prefix, sudo as _sudo, run as _run, hide, task
from fabric.contrib.files import exists, upload_template
... | agpl-3.0 | 8,274,986,944,124,153,000 | 28.831793 | 78 | 0.564719 | false |
Cadasta/cadasta-qgis-plugin | cadasta/gui/tools/utilities/edit_text_dialog.py | 1 | 4651 | # coding=utf-8
"""
Cadasta Widget -**Edit Text Dialog**
This module provides: Login : Login for cadasta and save authnetication
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; ei... | gpl-3.0 | -5,289,462,695,124,991,000 | 31.298611 | 78 | 0.614061 | false |
poppogbr/genropy | tutorial/projects/warhammer/packages/warh/webpages/carriere.py | 1 | 2502 | #!/usr/bin/env python
# encoding: utf-8
"""
Created by Softwell on 2010-05-15.
Copyright (c) 2008 Softwell. All rights reserved.
"""
class GnrCustomWebPage(object):
maintable = 'warh.carriera'
py_requires = 'public:Public,standard_tables:TableHandlerLight,public:IncludedView'
######################## STAN... | lgpl-2.1 | -5,609,397,692,937,491,000 | 29.52439 | 87 | 0.564349 | false |
davidh-ssec/polar2grid | polar2grid/readers/amsr2_l1b.py | 1 | 6911 | #!/usr/bin/env python3
# encoding: utf-8
# Copyright (C) 2016 Space Science and Engineering Center (SSEC),
# University of Wisconsin-Madison.
#
# 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 F... | gpl-3.0 | 9,032,680,333,966,982,000 | 49.816176 | 138 | 0.620605 | false |
senuido/stash-scanner | lib/ItemHelper.py | 1 | 21784 | import itertools
import re
from enum import IntEnum, Enum
from array import array
from lib.CurrencyManager import cm
from lib.ItemCollection import ItemCollection
from lib.Utility import logger, dround
from lib.ItemClass import ItemClass, dir_to_id
float_expr = '[0-9]+|[0-9]+\s*\.\s*[0-9]+'
_BO_PRICE_REGEX = re.comp... | gpl-3.0 | -404,214,246,043,495,740 | 29.98862 | 130 | 0.54843 | false |
TheCoSMoCompany/biopredyn | Prototype/src/libsbml-5.10.0/examples/python/arrays/CreateArrays2.py | 1 | 2436 | from libsbml import *
arraysNs = ArraysPkgNamespaces();
doc = SBMLDocument(arraysNs);
doc.setPackageRequired("arrays", True);
model = doc.createModel();
# create parameters
param = model.createParameter();
param.setId("n");
param.setValue(10);
param.setConstant(True);
param = model.createParameter();
... | bsd-3-clause | 8,932,212,683,409,533,000 | 21.631068 | 50 | 0.706656 | false |
fako/datascope | src/online_discourse/management/commands/analyse_wizenoze.py | 1 | 2367 | from operator import itemgetter
from pprint import pprint
import logging
import numpy as np
from django.core.management.base import BaseCommand
from core.models import Collective
log = logging.getLogger("datascope")
class Command(BaseCommand):
"""
Base command for Community centered commands
"""
... | gpl-3.0 | -7,041,660,738,028,607,000 | 38.466667 | 111 | 0.60921 | false |
SoCdesign/EHA | Tools/Minimization_Tool/find_problematic_checkers.py | 1 | 1772 | # copyright 2016 Siavoosh Payandeh Azad and Behrad Niazmand
import package_file
from area_coverage_calc import calculate_area, calculate_coverage
from file_generator import generate_specific_file
import copy
from for_testing import gen_dummy_dict
def find_problematic_checkers():
if package_file.test_mode:
... | gpl-3.0 | -6,955,556,709,692,845,000 | 44.435897 | 100 | 0.580135 | false |
ktmud/david | david/core/accounts/__init__.py | 1 | 1743 | # coding: utf-8
from flask.ext.security import UserMixin, RoleMixin
from config import BABEL_DEFAULT_LOCALE, BABEL_DEFAULT_TIMEZONE
from david.core.mapper import add_kind
from david.core.db import db, UidMixin
from david.lib.mixins.props import PropsMixin, PropsItem
from flask.ext.security import SQLAlchemyUserDatast... | mit | 3,447,524,261,894,055,000 | 30.690909 | 80 | 0.667814 | false |
JaneliaSciComp/osgpyplusplus | examples/rough_translated1/osgscalarbar.py | 1 | 5130 | #!/bin/env python
# Automatically translated python version of
# OpenSceneGraph example program "osgscalarbar"
# !!! This program will need manual tuning before it will work. !!!
import sys
from osgpypp import osg
from osgpypp import osgDB
from osgpypp import osgGA
from osgpypp import osgSim
from osgpypp import osg... | bsd-3-clause | -8,399,547,675,412,330,000 | 30.472393 | 176 | 0.719688 | false |
koss822/misc | Linux/MySettings/myvim/vim/bundle/jedi-vim/pythonx/jedi/test/test_api/test_full_name.py | 1 | 3261 | """
Tests for :attr:`.BaseDefinition.full_name`.
There are three kinds of test:
#. Test classes derived from :class:`MixinTestFullName`.
Child class defines :attr:`.operation` to alter how
the api definition instance is created.
#. :class:`TestFullDefinedName` is to test combination of
``obj.full_name`` and... | gpl-3.0 | 3,072,933,680,588,718,600 | 27.356522 | 96 | 0.636615 | false |
anpingli/openshift-ansible | roles/lib_openshift/library/oc_process.py | 1 | 58519 | #!/usr/bin/env python
# pylint: disable=missing-docstring
# flake8: noqa: T001
# ___ ___ _ _ ___ ___ _ _____ ___ ___
# / __| __| \| | __| _ \ /_\_ _| __| \
# | (_ | _|| .` | _|| / / _ \| | | _|| |) |
# \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____
# | \ / _ \ | \| |/ _ \_ _| | __| \_ ... | apache-2.0 | 5,728,075,993,258,235,000 | 33.60615 | 118 | 0.533929 | false |
fusionbox/buggy | buggy/views.py | 1 | 10158 | import json
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import ListView, FormView, View
from django.http import Http404, HttpResponseRedirect, HttpResponse, HttpResponseForbidden
from django.shortcuts import redirect
from django.db.models impo... | bsd-3-clause | 3,617,712,142,736,727,600 | 34.642105 | 96 | 0.60189 | false |
hughperkins/pub-prototyping | py/change_indent.py | 1 | 5169 | #!/usr/bin/python
"""
Copyright Hugh Perkins 2016
You can use this under the BSDv2 license
This script re-indent files, without changing git blame. It will create
a new commit for each author present in the original blame, with commit message
'automated re-indentation'
"""
import sys
import os
from os import path
i... | apache-2.0 | 4,955,187,367,232,464,000 | 28.706897 | 134 | 0.60089 | false |
myarjunar/QGIS | tests/src/python/test_provider_mssql.py | 1 | 3347 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for the MS SQL provider.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"... | gpl-2.0 | -6,501,090,033,941,872,000 | 37.034091 | 142 | 0.655214 | false |
tcp813/mouTools | qt/table_editor.py | 1 | 7125 | """
PyQt5.6 python3.4
Table has editor
"""
import random
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
txt = '''The ASCII character set is suitable for encoding English-language documents,but it does not have much in the way of special characters, such as the French ‘ç.’
It is who... | mit | 3,111,446,913,765,119,000 | 33.712195 | 657 | 0.626001 | false |
opethe1st/CompetitiveProgramming | Codility/5PrefixSums/GeonomicRange.py | 1 | 1181 | def solution(S, P, Q):
# write your code in Python 2.7
prefixA = [0] * (len(S) + 1)
prefixC = [0] * (len(S) + 1)
prefixG = [0] * (len(S) + 1)
prefixT = [0] * (len(S) + 1)
for i in xrange(len(S)):
if S[i] == 'A':
prefixA[i + 1] = prefixA[i] + 1
else:
prefix... | gpl-3.0 | -6,070,044,671,206,912,000 | 29.282051 | 47 | 0.42591 | false |
magfest/ubersystem | alembic/versions/5ceaec4834aa_associate_mits_docs_and_pictures_with_.py | 1 | 3130 | """Associate MITS docs and pictures with games instead of teams
Revision ID: 5ceaec4834aa
Revises: 4036e1fdb9ee
Create Date: 2020-04-14 23:23:35.417496
"""
# revision identifiers, used by Alembic.
revision = '5ceaec4834aa'
down_revision = '4036e1fdb9ee'
branch_labels = None
depends_on = None
from alembic import op... | agpl-3.0 | -4,039,767,539,974,114,300 | 41.297297 | 120 | 0.651757 | false |
Coburn37/DoxygenMediawikiBot | doxymw.py | 1 | 9187 | #A python bot sitting atop PyWikibot and Doxygen to automatically
#add doxygen docs to a wiki for your documentation pleasure
#The main goal of this is to take the power and placement of doxygen docs
#and combine it with the flexibility and remoteness of a wiki
import re
import os
import sys
import subprocess
import ... | mit | -1,648,275,014,650,735,000 | 36.966942 | 169 | 0.560139 | false |
Ledoux/ShareYourSystem | Pythonlogy/draft/Representer/__init__.py | 1 | 25779 | # -*- coding: utf-8 -*-
"""
<DefineSource>
@Date : Fri Nov 14 13:20:38 2014 \n
@Author : Erwan Ledoux \n\n
</DefineSource>
The Representer is an important module for beginning to visualize
the structures of the instanced variables in the environnment.
The idea is to use the indenting representation like in the jso... | mit | 3,242,304,788,324,602,400 | 25.881126 | 132 | 0.704255 | false |
peheje/baselines | baselines/deepq/experiments/atari/enjoy.py | 1 | 2514 | import argparse
import gym
import os
import numpy as np
from gym.monitoring import VideoRecorder
import baselines.common.tf_util as U
from baselines import deepq
from baselines.common.misc_util import (
boolean_flag,
SimpleMonitor,
)
from baselines.common.atari_wrappers_deprecated import wrap_dqn
from baselin... | mit | -9,141,925,088,257,811,000 | 35.434783 | 134 | 0.650756 | false |
pbs/django-filer | filer/management/commands/take_out_filer_trash.py | 1 | 1910 | from django.core.management.base import BaseCommand
from filer.models import File, Folder
from filer import settings as filer_settings
from django.utils import timezone
from datetime import timedelta
class Command(BaseCommand):
help = "Hard-deletes old files and folders from filer trash."
def handle(self, *... | bsd-3-clause | -1,781,223,535,377,464,600 | 40.521739 | 75 | 0.577487 | false |
vmagnin/pyxmltv | telecharger_xmltv.py | 1 | 2764 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 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 distr... | gpl-3.0 | -181,304,397,692,986,200 | 35.972973 | 77 | 0.638523 | false |
mmgen/mmgen | test/test_py_d/ts_ref.py | 1 | 13630 | #!/usr/bin/env python3
#
# mmgen = Multi-Mode GENerator, command-line Bitcoin cold storage solution
# Copyright (C)2013-2021 The MMGen Project <mmgen@tuta.io>
#
# 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 Softwa... | gpl-3.0 | -1,095,619,924,337,389,300 | 45 | 119 | 0.688504 | false |
yunojuno/django-expiring-links | tests/settings.py | 1 | 2678 | from distutils.version import StrictVersion
from os import getenv
import django
DJANGO_VERSION = StrictVersion(django.get_version())
assert DJANGO_VERSION >= StrictVersion("2.2")
DEBUG = True
try:
from django.db.models import JSONField # noqa: F401
DATABASES = {
"default": {"ENGINE": "django.db.ba... | mit | 524,550,944,304,967,600 | 25.514851 | 95 | 0.594847 | false |
sabas1080/InstagramPi | InstagramPi.py | 1 | 4484 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
# InstagramPi Gafas for Instagram with Raspberry Pi Zero
#
# Autor: Andrés Sabas @ Feb 2017
#
#
# Use text editor to edit the script and type in valid Instagram username/password
import atexit
import picamera
import os
import time
import random
from os import listdir
fr... | agpl-3.0 | -4,242,357,488,178,768,000 | 32.706767 | 247 | 0.662726 | false |
amolenaar/gaphor | gaphor/ui/tests/test_mainwindow.py | 1 | 1370 | import pytest
from gaphor.application import Session
from gaphor.core.modeling import Diagram
from gaphor.ui.abc import UIComponent
from gaphor.ui.event import DiagramOpened
@pytest.fixture
def session():
session = Session(
services=[
"event_manager",
"component_registry",
... | lgpl-2.1 | 7,249,366,273,309,667,000 | 24.849057 | 60 | 0.625547 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.