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 |
|---|---|---|---|---|---|---|---|---|---|---|
RENCI/xDCIShare | hs_metrics/views.py | 1 | 5571 | from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.views.generic import TemplateView
from django.contrib.auth.models import User
from mezzanine.generic.models import Rating, ThreadedComment
from theme.models import UserProfile # fixme switch to par... | bsd-3-clause | -434,498,257,057,787,260 | 49.189189 | 134 | 0.675821 | false |
willemarcel/pontocerto | pontocerto/core/views.py | 1 | 1215 | from rest_framework.generics import ListAPIView
from django.core.urlresolvers import reverse
from django.contrib.gis.geos import Point
from django.forms import Form, CharField, FloatField
from django.http import HttpResponseRedirect
from django.views.generic.edit import FormView
from .models import Ponto
from .serial... | agpl-3.0 | -8,883,890,015,690,834,000 | 28.634146 | 61 | 0.655144 | false |
fernandog/Medusa | medusa/server/web/home/post_process.py | 1 | 1966 | # coding=utf-8
from __future__ import unicode_literals
from medusa import process_tv
from medusa.helper.encoding import ss
from medusa.server.web.core import PageTemplate
from medusa.server.web.home.handler import Home
from six import string_types
from tornroutes import route
@route('/home/postprocess(/?.*)')
cla... | gpl-3.0 | -5,933,431,452,205,526,000 | 34.107143 | 121 | 0.606307 | false |
CalthorpeAnalytics/urbanfootprint | footprint/main/management/commands/clear_future_built_forms.py | 1 | 1703 |
# UrbanFootprint v1.5
# Copyright (C) 2017 Calthorpe Analytics
#
# This file is part of UrbanFootprint version 1.5
#
# UrbanFootprint is distributed under the terms of the GNU General
# Public License version 3, as published by the Free Software Foundation. This
# code is distributed WITHOUT ANY WARRANTY, without impl... | gpl-3.0 | -1,502,007,972,385,661,000 | 39.547619 | 114 | 0.711685 | false |
frostasm/qt-creator | tests/system/suite_editors/tst_rename_macros/test.py | 1 | 7824 | #############################################################################
##
## Copyright (C) 2015 The Qt Company Ltd.
## Contact: http://www.qt.io/licensing
##
## This file is part of Qt Creator.
##
## Commercial License Usage
## Licensees holding valid commercial Qt licenses may use this file in
## accordance wit... | gpl-3.0 | -6,147,371,400,253,073,000 | 44.488372 | 95 | 0.617587 | false |
viapath/zippy | zippy/zippylib/interval.py | 1 | 4651 | #!/usr/bin/env python
__doc__=="""Interval Lists"""
__author__ = "David Brawand"
__license__ = "MIT"
__version__ = "2.3.4"
__maintainer__ = "David Brawand"
__email__ = "dbrawand@nhs.net"
__status__ = "Production"
import sys
from math import ceil
class Interval(object):
def __init__(self,chrom,chromStart,chromEnd... | mit | -7,593,002,557,638,501,000 | 38.752137 | 123 | 0.609546 | false |
EmreAtes/spack | var/spack/repos/builtin/packages/intltool/package.py | 1 | 2529 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 8,018,918,679,636,101,000 | 40.459016 | 93 | 0.652432 | false |
OpenSecurityResearch/clipcaptcha | clipcaptcha.py | 1 | 7438 | #!/usr/bin/env python
"""clipcaptcha is a CAPTCHA Provider masquerading tool based off Moxie Marlinspike's SSLStrip codebase"""
# Copyright (c) 2012 Gursev Singh Kalra @ McAfee Foundstone
# Copyright (c) 2004-2011 Moxie Marlinspike
__author__ = "Gursev Singh Kalra"
__email__ = "gursev.kalra@foundstone.com"
__license... | gpl-3.0 | -8,304,832,178,360,392,000 | 32.504505 | 151 | 0.670745 | false |
wallarelvo/CRoPS | code/mapparser.py | 1 | 3275 | #!/usr/bin/env python
import obstacle
import configuration as con
def mapVal(x, in_min, in_max, out_min, out_max):
"""
Maps a value that is between in_min and in_max to
a value between out_min and out_max
@param in_min The minimum value that the input value could be
@param in_max The maximum value... | apache-2.0 | 2,307,528,285,008,669,700 | 33.473684 | 73 | 0.458015 | false |
wavky/ManHourCalendar | mhcalendar/job.py | 1 | 1583 | #!/usr/bin/env python3
# @Time : 17-9-2 01:53
# @Author : Wavky Huang
# @Contact : master@wavky.com
# @File : job.py
"""
Process information of the job.
"""
class Job:
def __init__(self, required_manhour=0, daily_work_hours=0, hourly_pay=0, max_daily_overhours=0):
"""
Define your job's con... | mit | -7,290,178,517,325,429,000 | 37.609756 | 113 | 0.60897 | false |
exaile/exaile | xl/metadata/mka.py | 1 | 2816 | # Matroska tagger for Exaile
# Copyright (C) 2010 Johannes Sasongko <sasongko@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later vers... | gpl-2.0 | 762,459,540,885,645,600 | 36.052632 | 81 | 0.622869 | false |
google-research/falken | service/data_store/resource_store_test.py | 1 | 9426 | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -872,606,445,756,310,800 | 41.845455 | 80 | 0.642372 | false |
pjdelport/django-cities | cities/conf.py | 1 | 12698 | # -*- coding: utf-8 -*-
from importlib import import_module
from collections import defaultdict
from django.conf import settings as django_settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.translation import ugettext_lazy as _
__all__ = [
'city_types', 'district_types',
'impor... | mit | -4,502,327,756,119,079,400 | 33.479452 | 141 | 0.487167 | false |
kamekoopa/git-lab | git_lab/apis/mergerequest/repositories.py | 1 | 2549 | # -*- coding: utf-8 -*-
from git_lab.apis.mergerequest.models import MergeRequest, Note
class MergeRequestRepository(object):
def __init__(self, client=None, project=None):
u"""
@param client : GitLabクライアント
@type client : gitlab.Gitlab
"""
from git_lab.utils import get_cl... | apache-2.0 | -8,188,333,652,436,813,000 | 24.150538 | 86 | 0.545105 | false |
qateam123/eq | app/utilities/schema.py | 1 | 1339 | import logging
from app import cache
from app.parser.v0_0_1.schema_parser import SchemaParser
from app.schema_loader.schema_loader import load_schema
logger = logging.getLogger(__name__)
def get_schema(metadata):
"""
Get the schema for the current user
:return: (json, schema) # Tuple of json and schema ... | mit | 4,259,916,970,787,906,000 | 30.880952 | 104 | 0.68708 | false |
Smashman/UKNetrunnerRankings | app/tournament/models.py | 1 | 1715 | import datetime
from app import db
class Tournament(db.Model):
id = db.Column(db.Integer, primary_key=True)
upload_user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
uploaded = db.Column(db.DateTime, default=datetime.datetime.utcnow)
date = db.Column(db.Date)
type = db.Column(db.Enum('sc', ... | gpl-2.0 | -491,337,908,336,923,500 | 38 | 83 | 0.683965 | false |
michael-lazar/praw3 | setup.py | 1 | 2609 | """praw setup.py"""
import re
from codecs import open
from os import path
from setuptools import setup
PACKAGE_NAME = 'praw'
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, 'README.rst'), encoding='utf-8') as fp:
README = fp.read()
with open(path.join(HERE, PACKAGE_NAME, '__init__.py'),
... | gpl-3.0 | -5,172,743,039,084,221,000 | 37.940299 | 77 | 0.579149 | false |
sadjadasghari/deeplab4a2d | loss_from_log.py | 1 | 5089 | #!/usr/bin/env python
# Martin Kersner, 2016/03/11
from __future__ import print_function
import sys
import re
import numpy as np
import matplotlib.pyplot as plt
from utils import strstr
def main():
output_data, log_files = process_arguments(sys.argv)
train_iteration = []
train_loss = []
train_accuracy... | gpl-3.0 | 5,591,932,198,186,486,000 | 31.208861 | 90 | 0.63706 | false |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/Quandl/Quandl.py | 1 | 15310 |
"""
Quandl's API for Python.
Currently supports getting, searching, and pushing datasets.
"""
from __future__ import (print_function, division, absolute_import,
unicode_literals)
import pickle
import datetime
import json
import pandas as pd
import re
from dateutil import parser
from numpy impor... | gpl-2.0 | -78,809,971,617,870,180 | 34.689977 | 217 | 0.61032 | false |
ebuendia/ProyectoPython | src/xml-parser.py | 1 | 2674 | import re
from device import Device
from group import Group
from capability import Capability
def startDevices(line):
return re.match(r"<devices",line.strip()) != None
def beginDevice(line):
return re.match(r"<device",line.strip()) != None
def endDevice(line):
return re.match(r"</device>", line.strip()) != None
... | unlicense | -1,180,188,492,776,922,400 | 21.470588 | 69 | 0.666791 | false |
google-research/disentanglement_lib | disentanglement_lib/evaluation/metrics/factor_vae.py | 1 | 8683 | # coding=utf-8
# Copyright 2018 The DisentanglementLib 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
#
# Un... | apache-2.0 | -9,107,700,491,507,206,000 | 42.415 | 80 | 0.657031 | false |
uclouvain/OSIS-Louvain | base/tests/business/education_groups/test_delete.py | 1 | 8462 | ##############################################################################
#
# 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 | 1,811,763,372,489,224,200 | 47.348571 | 120 | 0.699326 | false |
dipapaspyros/bdo_platform | aggregator/migrations/0015_auto_20180915_2057.py | 2 | 1556 | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-09-15 17:57
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependenc... | mit | 1,340,202,843,143,090,000 | 32.826087 | 114 | 0.587404 | false |
eirannejad/pyRevit | extensions/pyRevitTools.extension/pyRevit.tab/Modify.panel/edit3.stack/Groups.pulldown/Show Nested Group Structure.pushbutton/script.py | 1 | 2660 | # -*- coding: utf-8 -*-
"""List the nested group structure around the selected group or element."""
from pyrevit import revit, DB
from pyrevit import script
output = script.get_output()
selection = revit.get_selection()
class GroupNode:
def __init__(self, group_element, par=None):
self.group = group_el... | gpl-3.0 | 4,766,360,654,464,250,000 | 27.728261 | 78 | 0.595535 | false |
imito/odin | odin/ml/scoring.py | 1 | 10299 | from __future__ import print_function, division, absolute_import
import numpy as np
from scipy.linalg import eigh, cholesky, inv, svd, solve
import tensorflow as tf
from sklearn.svm import SVC
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from odin.backend import length_norm, calc_white_mat
fr... | mit | -2,396,844,634,403,191,000 | 27.216438 | 83 | 0.592873 | false |
yephper/django | django/contrib/auth/views.py | 1 | 12821 | import functools
import warnings
from django.conf import settings
# Avoid shadowing the login() and logout() views below.
from django.contrib.auth import (
REDIRECT_FIELD_NAME, get_user_model, login as auth_login,
logout as auth_logout, update_session_auth_hash,
)
from django.contrib.auth.decorators i... | bsd-3-clause | -5,530,483,616,621,971,000 | 35.488304 | 97 | 0.625614 | false |
rascul/botwot | plugins/urltitle.py | 1 | 1618 | """ Url Title Plugin (botwot plugins.urltitle) """
# Copyright 2014 Ray Schulz <https://rascul.io>
#
# 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-... | apache-2.0 | -6,002,606,328,788,732,000 | 27.892857 | 80 | 0.687268 | false |
pgroudas/pants | src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py | 1 | 16630 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import itertools
imp... | apache-2.0 | 7,279,666,870,760,293,000 | 43.945946 | 110 | 0.676729 | false |
GoogleCloudPlatform/python-compat-runtime | appengine-compat/exported_appengine_sdk/google/appengine/tools/web_xml_parser.py | 1 | 8407 | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 | 354,165,943,435,447,300 | 34.92735 | 87 | 0.679434 | false |
skinkie/SleekXMPP--XEP-0080- | sleekxmpp/xmlstream/filesocket.py | 1 | 1213 | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from socket import _fileobject
import socket
class FileSocket(_fileobject):
"""
Create a file object wrapper for a socket to work aro... | mit | 6,556,671,338,584,989,000 | 28.585366 | 75 | 0.66859 | false |
azumimuo/family-xbmc-addon | plugin.video.showboxarize/resources/lib/sources_de/1kino.py | 1 | 4950 | # -*- coding: utf-8 -*-
"""
Flixnet Add-on
Copyright (C) 2016 Viper2k4
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) an... | gpl-2.0 | -1,739,964,767,721,680,600 | 37.679688 | 179 | 0.552525 | false |
BlackVegetable/starcraft-oracle | sc2reader-master/sc2reader/constants.py | 1 | 3068 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals, division
# These are found in Repack-MPQ/fileset.{locale}#Mods#Core.SC2Mod#{locale}.SC2Data/LocalizedData/Editor/EditorCategoryStrings.txt
# EDSTR_CATEGORY_Race
# EDSTR_PLAYERPROPS_RACE
# The ??? means that I don't know w... | mit | 1,542,272,283,265,632,300 | 17.359756 | 129 | 0.50714 | false |
kundajelab/simdna | simdna/simdnautil/pwm.py | 1 | 5397 | from __future__ import absolute_import, division, print_function
import numpy as np
from simdna.simdnautil.util import DEFAULT_LETTER_TO_INDEX
from simdna.simdnautil import util
import math
class PWM(object):
"""
Object representing a position weight matrix;
allows sampling from the PWM either randomly or... | mit | -9,102,593,418,064,766,000 | 33.158228 | 82 | 0.621642 | false |
MichalBusta/FASText | tools/icdarUtils.py | 1 | 41513 | '''
Created on Jan 7, 2015
@author: busta
'''
import os
import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.lines as mlines
import utils
from ft import FASTex
import pylab
import pandas
def draw_missed_letters(input_dir='/datagrid/personal/TextSpotter/FastTextEval/ICDAR-Train', color =... | gpl-2.0 | 3,569,044,324,166,943,000 | 38.57388 | 294 | 0.526004 | false |
elzaggo/pydoop | examples/pseudo_terasort/pteragen.py | 1 | 3734 | # BEGIN_COPYRIGHT
#
# Copyright 2009-2018 CRS4.
#
# 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 ... | apache-2.0 | -846,706,939,941,173,600 | 29.606557 | 77 | 0.631494 | false |
timothycrosley/hug | hug/interface.py | 1 | 40948 | """hug/interface.py
Defines the various interface hug provides to expose routes to functions
Copyright (C) 2016 Timothy Edmund Crosley
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 re... | mit | 2,164,024,948,178,600,700 | 39.623016 | 120 | 0.582275 | false |
jmbowman/media_library | settings.py | 1 | 3402 | # Django settings for app project.
import os
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# On Unix systems, a value of None will cause Django to use the same
# timezone... | mit | -8,985,655,191,693,617,000 | 29.927273 | 88 | 0.727513 | false |
micha-shepher/oervoer-wizard | oervoer-django/oervoer/src/oervoer/settings.py | 1 | 2765 | """
Django settings for oervoer project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
bojan: 06 21543084
"""
# Build paths inside the project like this: os.path.joi... | gpl-3.0 | -1,681,099,818,332,427,000 | 26.376238 | 77 | 0.739241 | false |
jamescallmebrent/dagny | src/dagny/renderer.py | 1 | 9212 | # -*- coding: utf-8 -*-
from functools import wraps
import odict
from dagny import conneg
class Skip(Exception):
"""
Move on to the next renderer backend.
This exception can be raised by a renderer backend to instruct the
`Renderer` to ignore the current backend and move on to the next-be... | unlicense | 6,525,417,132,887,821,000 | 29.006515 | 80 | 0.530504 | false |
gfyoung/pandas | pandas/tests/series/indexing/test_where.py | 1 | 13484 | import numpy as np
import pytest
from pandas.core.dtypes.common import is_integer
import pandas as pd
from pandas import Series, Timestamp, date_range, isna
import pandas._testing as tm
def test_where_unsafe_int(sint_dtype):
s = Series(np.arange(10), dtype=sint_dtype)
mask = s < 5
s[mask] = range(2, 7)... | bsd-3-clause | 6,942,425,362,740,138,000 | 26.295547 | 83 | 0.60175 | false |
ManchesterIO/mollyproject-next | tests/molly/apps/places/test_endpoints.py | 1 | 13228 | import json
from urllib import quote_plus
import urllib2
from flask import Flask
from mock import Mock, ANY, MagicMock
from shapely.geometry import Point
import unittest2 as unittest
from werkzeug.exceptions import NotFound
from molly.apps.places.endpoints import PointOfInterestEndpoint, NearbySearchEndpoint, PointOf... | apache-2.0 | -4,325,968,840,956,645,400 | 44.304795 | 120 | 0.617176 | false |
gaapt/deepdive | src/test/resources/spouse/udf/ext_has_spouse.py | 1 | 1973 | #! /usr/bin/env python
import csv
import os
import sys
from collections import defaultdict
BASE_DIR = os.path.dirname(os.path.realpath(__file__))
# Load the spouse dictionary for distant supervision
spouses = defaultdict(lambda: None)
with open (BASE_DIR + "/../data/spouses.csv") as csvfile:
reader = csv.reader(cs... | apache-2.0 | -6,167,275,737,590,914,000 | 28.014706 | 76 | 0.642169 | false |
google-research-datasets/natural-questions | eval_utils.py | 1 | 10966 | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | apache-2.0 | 4,003,235,773,756,111,400 | 34.035144 | 80 | 0.648915 | false |
Azure/azure-sdk-for-python | setup.py | 1 | 2261 | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#---------------------------------------------------------------... | mit | -1,612,231,462,446,572,300 | 35.435484 | 106 | 0.648074 | false |
defeo/cypari2 | autogen/doc.py | 1 | 10642 | # -*- coding: utf-8 -*-
"""
Handle PARI documentation
"""
from __future__ import unicode_literals
import re
import subprocess
leading_ws = re.compile("^( +)", re.MULTILINE)
trailing_ws = re.compile("( +)$", re.MULTILINE)
double_space = re.compile(" +")
end_space = re.compile(r"(@\[end[a-z]*\])([A-Za-z])")
end_pare... | gpl-2.0 | -2,136,652,580,817,424,100 | 30.178886 | 101 | 0.554552 | false |
jalanb/dotsite | pysyte/cli/streams.py | 1 | 1979 | """Module to handle streams of text from cli arguments"""
import os
import sys
import contextlib
from itertools import chain
from six import StringIO
from pysyte import iteration
from pysyte.cli import arguments
from pysyte.oss.platforms import get_clipboard_data
def parse_args():
"""Parse out command line argu... | mit | 2,554,933,082,323,681,300 | 23.7375 | 73 | 0.632643 | false |
IRDeNial/gBot | main.py | 1 | 8349 | #!/usr/bin/env python
import string
import ctypes
import os
from os import path
from threading import Thread
from time import sleep
import re
# For headless browsing. Life made easy.
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
# Tkinter main
from Tkinter import Tk,... | bsd-3-clause | -8,223,949,900,782,445,000 | 34.531915 | 140 | 0.554557 | false |
aio-libs/aiomysql | aiomysql/sa/connection.py | 1 | 14895 | # ported from:
# https://github.com/aio-libs/aiopg/blob/master/aiopg/sa/connection.py
import weakref
from sqlalchemy.sql import ClauseElement
from sqlalchemy.sql.dml import UpdateBase
from sqlalchemy.sql.ddl import DDLElement
from . import exc
from .result import create_result_proxy
from .transaction import (RootTran... | mit | 8,164,875,323,287,730,000 | 34.047059 | 79 | 0.567237 | false |
gabriel-stan/gestion-tfg | old/controller/ws/tests/old_test_login.py | 1 | 1172 | __author__ = 'tonima'
from django.contrib.auth.models import Group
from django.test import TestCase
import simplejson as json
from rest_framework.test import APIClient
from model.models import Profesor
class TfgServicesTests(TestCase):
def setUp(self):
self.client = APIClient()
self.grupo_profeso... | gpl-2.0 | 3,818,691,677,031,575,000 | 38.066667 | 116 | 0.654437 | false |
sebleier/django-alpaca | tests/project/settings.py | 1 | 4735 | # Django settings for project project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'... | bsd-3-clause | 9,094,194,376,573,882,000 | 33.311594 | 122 | 0.682999 | false |
yephper/django | tests/db_typecasts/tests.py | 1 | 2550 | # Unit tests for typecast functions in django.db.backends.util
import datetime
import unittest
from django.db.backends import utils as typecasts
from django.utils import six
TEST_CASES = {
'typecast_date': (
('', None),
(None, None),
('2005-08-11', datetime.date(2005, 8, 11)),... | bsd-3-clause | -423,774,317,204,394,940 | 40.5 | 94 | 0.523529 | false |
pierreg/tensorflow | tensorflow/tools/gcs_test/python/gcs_smoke.py | 1 | 5556 | # Copyright 2016 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 | 7,579,355,250,762,052,000 | 38.404255 | 80 | 0.667207 | false |
mekery/pdfdig | build/scripts-2.7/pdftotext.py | 1 | 2534 | #!/usr/bin/python
'''
@summary: Text's command line script.
Convert pdf to text based on pdftotext.
@author: Micle Bu <mekery@gmail.com>
@copyright: Copyright © 2012 Micle Bu
@license: BSD New
@version: pdftotext.py 2012-03-29 Micle Bu
'''
import sys
import string
from pdfdig.pdftext import Text
def ma... | bsd-3-clause | -4,973,638,659,855,998,000 | 33.256757 | 103 | 0.485793 | false |
zozo123/buildbot | master/buildbot/steps/shellsequence.py | 1 | 4370 | # This file is part of Buildbot. Buildbot 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 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-3.0 | -9,173,960,222,634,424,000 | 39.091743 | 97 | 0.613272 | false |
openstack/senlin | senlin/objects/requests/actions.py | 1 | 3059 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | apache-2.0 | -84,909,250,368,545,440 | 30.864583 | 78 | 0.691402 | false |
Mzero2010/MaxZone | plugin.video.Mzero/core/downloader.py | 1 | 15031 | # -*- coding: utf-8 -*-
# ------------------------------------------------------------
# Mzero 4
# Copyright 2015 tvalacarta@gmail.com
# http://blog.tvalacarta.info/plugin-xbmc/Mzero/
#
# Distributed under the terms of GNU General Public License v3 (GPLv3)
# http://www.gnu.org/licenses/gpl-3.0.html
# ------------------... | gpl-3.0 | 5,840,123,317,750,125,000 | 36.297767 | 198 | 0.586361 | false |
googleads/google-ads-python | google/ads/googleads/v8/services/services/age_range_view_service/client.py | 1 | 18043 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -6,773,315,631,857,939,000 | 40.28833 | 124 | 0.619853 | false |
goodmami/pydelphin | tests/mrs_Mrs_test.py | 1 | 4294 | # -*- coding: UTF-8 -*-
import pytest
from delphin.mrs.components import (
Pred,
ElementaryPredication as EP,
elementarypredications as eps,
HandleConstraint as Hcons,
hcons,
IndividualConstraint as Icons,
icons,
)
from delphin.mrs.config import (FIRST_NODEID, UNKNOWNSORT)
from delphin.mrs... | mit | -6,807,745,565,386,029,000 | 30.807407 | 77 | 0.43293 | false |
fnivek/Pop-a-Gator | scripts/game_sir_interface.py | 1 | 3921 | #!/usr/bin/env python
from bluetooth import *
import sys
from collections import OrderedDict
import argparse
import serial
# Take in command line args
parser = argparse.ArgumentParser(description='Interface with a game sir remote')
parser.add_argument('--pass_to_serial', action='store_true',
help='Pass the b... | mit | -7,996,774,728,194,808,000 | 28.488722 | 156 | 0.566692 | false |
openbmc/openbmc-test-automation | bin/event_notification_util.py | 1 | 1499 | #!/usr/bin/env python
r"""
See help text for details.
"""
import sys
save_dir_path = sys.path.pop(0)
modules = ['gen_arg', 'gen_print', 'gen_valid', 'event_notification']
for module in modules:
exec("from " + module + " import *")
sys.path.insert(0, save_dir_path)
parser = argparse.ArgumentParser(
usage='... | apache-2.0 | -7,400,601,391,198,828,000 | 25.298246 | 79 | 0.651101 | false |
dvklopfenstein/biocode | src/pydvkbiology/dnld/uniprot/sprot_sce_geneid2acs.py | 1 | 138364 | """Selected UniProt data saved in Python."""
# Copyright (C) 2014-2019 DV Klopfenstein. All rights reserved
#
# ADAPTED TO PYTHON from the UniProt file:
# ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete
DOWNLOADED = "2019_03_07" # UniProt source files were downloaded on this date
# ... | mit | 5,752,229,845,911,966,000 | 22.325017 | 84 | 0.524255 | false |
samupl/website | apps/blog/models.py | 1 | 2366 | from django.conf import settings
from django.db import models
from django.db.models.signals import post_delete, post_save
from django.dispatch import receiver
from django.template.defaultfilters import slugify
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL)
date = models.DateTim... | mit | -5,252,156,682,347,990,000 | 32.323944 | 104 | 0.652578 | false |
quantifiedcode-bot/invenio-search | setup.py | 1 | 4305 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015 CERN.
#
# Invenio 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... | gpl-2.0 | 5,711,932,758,240,129,000 | 29.75 | 76 | 0.628339 | false |
svebk/DeepSentiBank_memex | workflows/images-incremental-update/images-incremental-update.py | 1 | 58831 | import os
import json
import time
import calendar
import datetime
import dateutil.parser
import sys
print(sys.version)
import subprocess
dev = False
if dev:
dev_release_suffix = "_dev"
base_incremental_path = '/user/skaraman/data/images_incremental_update_dev/'
else:
dev_release_suffix = "_release"
b... | bsd-2-clause | 2,145,436,833,996,540,200 | 48.189799 | 322 | 0.640768 | false |
twitter/pants | src/python/pants/base/worker_pool.py | 1 | 8243 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import multiprocessing
import threading
from builtins import next, object
from multiproce... | apache-2.0 | -2,454,205,278,918,337,000 | 37.339535 | 101 | 0.678151 | false |
hycis/Pynet | pynet/cost.py | 1 | 3580 | __author__ = "Zhenzhou Wu"
__copyright__ = "Copyright 2012, Zhenzhou Wu"
__credits__ = ["Zhenzhou Wu"]
__license__ = "3-clause BSD"
__email__ = "hyciswu@gmail.com"
__maintainer__ = "Zhenzhou Wu"
import theano.tensor as T
import theano
from pynet.utils.utils import theano_unique
floatX = theano.config.floatX
class Co... | apache-2.0 | -6,236,967,485,249,839,000 | 26.96875 | 79 | 0.550279 | false |
3liz/QuickOSM | QuickOSM/core/api/connexion_oapi.py | 1 | 6275 | """Manage Overpass API connexion."""
import logging
import os
import re
from typing import List
from qgis.core import QgsFileDownloader
from qgis.PyQt.QtCore import QDir, QEventLoop, QFileInfo, QTemporaryFile, QUrl
from QuickOSM.core.exceptions import (
NetWorkErrorException,
OverpassBadRequestException,
... | gpl-2.0 | 4,600,529,764,808,338,400 | 31.179487 | 79 | 0.578327 | false |
feist/pcs | pcs/test/tools/command_env/mock_node_communicator.py | 1 | 12818 | import json
from urllib.parse import parse_qs
from pcs import settings
from pcs.common import pcs_pycurl as pycurl
from pcs.common.host import Destination
from pcs.common.node_communicator import(
RequestTarget,
RequestData,
Request,
Response,
)
from pcs.test.tools.custom_mock import MockCurlSimple
# ... | gpl-2.0 | 4,100,124,142,848,178,000 | 32.643045 | 80 | 0.586051 | false |
SpaceGroupUCL/qgisSpaceSyntaxToolkit | esstoolkit/external/networkx/algorithms/shortest_paths/tests/test_generic.py | 1 | 15438 | import pytest
import networkx as nx
from networkx.testing import almost_equal
def validate_grid_path(r, c, s, t, p):
assert isinstance(p, list)
assert p[0] == s
assert p[-1] == t
s = ((s - 1) // c, (s - 1) % c)
t = ((t - 1) // c, (t - 1) % c)
assert len(p) == abs(t[0] - s[0]) + abs(t[1] - s[... | gpl-3.0 | 4,471,098,378,276,850,000 | 39.519685 | 88 | 0.559917 | false |
OpenMined/PySyft | packages/syft/src/syft/proto/core/node/common/action/exception_action_pb2.py | 1 | 6244 | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/core/node/common/action/exception_action.proto
"""Generated protocol buffer code."""
# third party
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf... | apache-2.0 | 2,134,787,039,885,428,000 | 34.477273 | 547 | 0.618834 | false |
MG-RAST/Shock | shock-server/plug-ins/boto-s3-download.py | 1 | 2570 | #!/usr/bin/python
# boto3 python client to download files from S3 and check md5
# AWS_ACCESS_KEY_ID .. The access key for your AWS account.
# AWS_SECRET_ACCESS_KEY .. The secret key for your AWS account.
# folker@anl.gov
import sys, getopt, boto3, hashlib, io
import argparse
def md5sum(src, length=io.DEFAULT_BUFFER... | bsd-2-clause | 3,889,921,259,526,281,700 | 32.38961 | 134 | 0.638911 | false |
laughingman7743/PyAthena | tests/test_sqlalchemy_athena.py | 1 | 20111 | # -*- coding: utf-8 -*-
import re
import unittest
import uuid
from datetime import date, datetime
from decimal import Decimal
from urllib.parse import quote_plus
import numpy as np
import pandas as pd
import sqlalchemy
from sqlalchemy import String
from sqlalchemy.engine import create_engine
from sqlalchemy.exc import... | mit | -7,513,084,211,599,442,000 | 36.568224 | 88 | 0.565501 | false |
rohanpm/qingfanyi | qingfanyi/process/translate.py | 1 | 3333 | # coding=utf-8
# qingfanyi - Chinese to English translation tool
# Copyright (C) 2016 Rohan McGovern <rohan@mcgovern.id.au>
#
# 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 ... | gpl-3.0 | -3,197,915,771,804,864,500 | 27.487179 | 75 | 0.660066 | false |
pombredanne/django-fluent-contents | fluent_contents/plugins/oembeditem/fields.py | 1 | 1167 | from django.core.exceptions import ValidationError
from django.db.models import URLField
from django.utils.translation import ugettext_lazy as _
from fluent_contents.plugins.oembeditem import backend
class OEmbedUrlField(URLField):
"""
URL Field which validates whether the URL is supported by the OEmbed provi... | apache-2.0 | 4,268,102,189,696,169,000 | 36.645161 | 153 | 0.688946 | false |
fivethreeo/django-dragoman-blog | dragoman_blog/templatetags/dragoman_blog_tags.py | 1 | 1443 | from django import template
register = template.Library()
@register.inclusion_tag('admin/dragoman_blog/submit_line.html', takes_context=True)
def submit_row(context):
"""
Displays the row of buttons for delete and save.
"""
opts = context['opts']
change = context['change']
is_popup = context['... | bsd-3-clause | -6,141,228,518,920,310,000 | 42.757576 | 84 | 0.616078 | false |
nbstr/demineur | functions.py | 1 | 4297 | #=========================================#
# IMPORTS #
#=========================================#
from beautiful import *
from random import randint
#=========================================#
# CONFIG #
#=========================================#
#... | unlicense | -421,806,785,374,238,600 | 24.622754 | 121 | 0.45291 | false |
dbednarski/pyhdust | pyhdust/input.py | 1 | 29469 | # -*- coding:utf-8 -*-
"""
PyHdust *input* module: Hdust input tools.
:co-author: Rodrigo Vieira
:license: GNU GPL v3.0 (https://github.com/danmoser/pyhdust/blob/master/LICENSE)
"""
import os as _os
import numpy as _np
from glob import glob as _glob
from itertools import product as _product
import pyhdust.phc as _phc... | gpl-3.0 | -8,789,998,822,184,297,000 | 36.208333 | 166 | 0.488683 | false |
MyPureCloud/kafka | release.py | 1 | 24941 | #!/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 | -7,052,171,143,124,083,000 | 47.523346 | 275 | 0.670222 | false |
googleapis/python-dialogflow | google/cloud/dialogflow_v2/services/versions/transports/base.py | 1 | 8840 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -1,845,300,222,030,163,700 | 36.457627 | 108 | 0.637557 | false |
JaDogg/__py_playground | reference/sketchbook/chess/chess.py | 1 | 8066 | """
Chess board
No computer player yet
Sucks in other ways too
TO DO: look over http://home.hccnet.nl/h.g.muller/max-src2.html
"""
## b = InitialChessBoard()
## print str(b)
#. rnbqkbnr
#. pppppppp
#.
#.
#.
#.
#. PPPPPPPP
#. RNBQKBNR
## pw = HumanPlayer(white)
## pb = HumanPlayer(bl... | mit | -2,925,017,823,287,011,300 | 30.263566 | 131 | 0.508926 | false |
vladiibine/whispy_lispy | src/whispy_lispy/cst.py | 1 | 4255 | # -*- coding utf-8 -*-
"""
Concrete syntax tree stuff
Lexer should return tokens that are instances of classes found here
"""
from __future__ import unicode_literals
import six
from whispy_lispy import keywords
class CSTError(Exception):
pass
class Token(object):
"""Concrete syntax tree node.
Can re... | mit | -7,624,388,774,132,405,000 | 25.761006 | 77 | 0.564512 | false |
mcStargazer/nlp_talk_apr2017 | nlp_demo.py | 1 | 5920 | # -*- coding: utf-8 -*-
##############################################################################
# references
##############################################################################
# www.udemy.com/machinelearning/ - I really enjoyed this course. Take it!
# original data/code at www.superdatascience.com/... | mit | -1,762,223,717,350,091,000 | 39.827586 | 78 | 0.538176 | false |
apache/airflow | airflow/sensors/time_delta_sensor.py | 2 | 1073 | #
# 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... | apache-2.0 | 597,100,851,005,736,700 | 40.269231 | 107 | 0.768872 | false |
sudheerchintala/LearnEraPlatForm | common/test/acceptance/tests/test_discussion.py | 1 | 25400 | """
Tests for discussion pages
"""
import datetime
from pytz import UTC
from uuid import uuid4
from nose.plugins.attrib import attr
from .helpers import UniqueCourseTest
from ..pages.lms.auto_auth import AutoAuthPage
from ..pages.lms.courseware import CoursewarePage
from ..pages.lms.discussion import (
Discussion... | agpl-3.0 | -3,555,889,301,510,238,700 | 40.100324 | 123 | 0.641693 | false |
ciaracdb/ACMusic | acmusic/settings.py | 1 | 4739 | """
Django settings for gettingstarted project, on Heroku. For more info, see:
https://github.com/heroku/heroku-django-template
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/se... | apache-2.0 | 228,340,471,517,918,800 | 28.993671 | 91 | 0.685588 | false |
ContinuumIO/ashiba | enaml/enaml/qt/qt_dock_area.py | 1 | 8630 | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | bsd-3-clause | 3,861,476,787,407,625,700 | 32.065134 | 79 | 0.585747 | false |
dstroppa/openstack-smartos-nova-grizzly | nova/virt/driver.py | 1 | 37731 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Justin Santa Barbara
# 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.apach... | apache-2.0 | 6,519,940,940,505,130,000 | 39.310897 | 79 | 0.64496 | false |
aneumeier/userprofile | userprofile/tests.py | 1 | 1713 | from django.test import TestCase
from .models import Profile
from datetime import date
class ViewsTest(TestCase):
"""
TestCase to test all exposed views for anonymous users.
"""
def setUp(self):
pass
def testHome(self):
response = self.client.get('/user/')
self.assertEqua... | mit | -1,977,304,415,432,862,200 | 21.246753 | 59 | 0.586106 | false |
wegamekinglc/alpha-mind | alphamind/benchmarks/portfolio/rankbuild.py | 1 | 3088 | # -*- coding: utf-8 -*-
"""
Created on 2017-4-27
@author: cheng.li
"""
import datetime as dt
import numpy as np
import pandas as pd
from alphamind.portfolio.rankbuilder import rank_build
def benchmark_build_rank(n_samples: int, n_loops: int, n_included: int) -> None:
print("-" * 60)
print... | mit | 4,565,990,175,895,864,300 | 34.761905 | 101 | 0.540479 | false |
ryanmiao/libvirt-test-API | repos/setVcpus/vcpupin_config.py | 1 | 3547 | #!/usr/bin/env python
# Test domain vcpu pin with flag VIR_DOMAIN_AFFECT_CONFIG, check
# domain config xml with vcpupin configuration.
import re
from xml.dom import minidom
import libvirt
from libvirt import libvirtError
from src import sharedmod
from utils import utils
required_params = ('guestname', 'vcpu', 'cpul... | gpl-2.0 | -5,593,081,498,587,919,000 | 31.541284 | 76 | 0.594587 | false |
kubaszostak/gdal-dragndrop | osgeo/apps/Python27/Scripts/esri2wkt.py | 1 | 2143 | #!C:\OSGEO4~1\bin\python.exe
# ******************************************************************************
# $Id: esri2wkt.py 7464f4b11b93bb2d1098d1b962907228932bf8c1 2018-05-03 19:56:49 +1000 Ben Elliston $
#
# Project: GDAL
# Purpose: Simple command line program for translating ESRI .prj files
# ... | mit | -157,707,794,943,707,520 | 38.433962 | 101 | 0.631358 | false |
OpenHumans/open-humans | public_data/models.py | 1 | 3781 | from collections import OrderedDict
from itertools import groupby
from django.db import models
from django.db.models import F
from common.fields import AutoOneToOneField
from open_humans.models import Member
from private_sharing.models import (
DataRequestProjectMember,
ProjectDataFile,
id_label_to_projec... | mit | 3,227,372,887,171,134,000 | 29.491935 | 88 | 0.642687 | false |
bzcheeseman/pytorch-EMM | Examples/basic_controller.py | 1 | 15995 | #
# Created by Aman LaChapelle on 3/23/17.
#
# pytorch-EMM
# Copyright (c) 2017 Aman LaChapelle
# Full license at pytorch-EMM/LICENSE.txt
#
import torch
import torch.nn as nn
import torch.nn.functional as Funct
from torch.autograd import Variable
import torch.optim as optim
import numpy as np
from Utils import num_fl... | gpl-3.0 | -1,579,938,047,493,311,000 | 34.153846 | 117 | 0.519662 | false |
decabyte/analog_sensors_board | scripts/analog_sensors.py | 1 | 4417 | # analog_sensors.py
# author: Valerio De Carolis <valerio.decarolis@gmail.com>
# date: 2013-10-30
# license: MIT
import sys
import os
import time
import signal
import serial
from serial import Serial, SerialException
# default serial configuration
DEFAULT_CONF = {
'port': '/dev/ttyACM3',
'baudrate': 57600,
'b... | mit | -6,909,965,110,469,711,000 | 19.737089 | 61 | 0.659724 | false |
hellowebapp/hellowebapp-ic-code | collection/models.py | 1 | 2080 | from __future__ import unicode_literals
from PIL import Image
from django.contrib.auth.models import User
from django.db import models
class Timestamp(models.Model):
created = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
clas... | mit | -5,621,587,585,220,553,000 | 28.714286 | 68 | 0.650481 | false |
sannecottaar/burnman | burnman/material.py | 1 | 20844 | from __future__ import print_function
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences
# Copyright (C) 2012 - 2017 by the BurnMan team, released under the GNU
# GPL v2 or later.
import numpy as np
def material_property(func):
"""
Decorator @mater... | gpl-2.0 | -7,016,233,993,997,625,000 | 28.607955 | 117 | 0.576473 | false |
hhursev/recipe-scraper | tests/test_marthastewart.py | 1 | 2773 | from recipe_scrapers.marthastewart import MarthaStewart
from tests import ScraperTest
class TestMarthaStewart(ScraperTest):
scraper_class = MarthaStewart
maxDiff = None
def test_host(self):
self.assertEqual("marthastewart.com", self.harvester_class.host())
def test_canonical_url(self):
... | mit | 824,724,842,242,292,500 | 44.459016 | 419 | 0.62784 | false |
j-carl/ansible | lib/ansible/module_utils/facts/system/distribution.py | 1 | 31164 | # -*- coding: utf-8 -*-
# Copyright: (c) Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import platform
import re
from ansible.module_utils.common.sys_info ... | gpl-3.0 | -1,558,401,853,560,547,600 | 43.969697 | 129 | 0.566872 | false |
lsandig/apollon | ag.py | 1 | 6681 | #! /usr/bin/python3
# Command line program to create svg apollonian circles
# Copyright (c) 2014 Ludger Sandig
# This file is part of apollon.
# Apollon 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, eithe... | gpl-3.0 | 5,160,250,914,175,473,000 | 36.960227 | 209 | 0.640024 | false |
mmerce/python | bigml/tests/test_15_download.py | 1 | 4310 | # -*- coding: utf-8 -*-
#
# Copyright 2015-2020 BigML
#
# 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 ... | apache-2.0 | 2,562,945,829,367,800,000 | 42.535354 | 108 | 0.572622 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.