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 |
|---|---|---|---|---|---|---|---|---|---|---|
iEngage/python-sdk | iengage_client/models/tag.py | 1 | 3896 | # coding: utf-8
"""
Stakeholder engagement API
This API enables Intelligent Engagement for your Business. iEngage is a platform that combines process, augmented intelligence and rewards to help you intelligently engage customers.
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger... | apache-2.0 | -7,756,863,969,602,901,000 | 23.35 | 186 | 0.500257 | false |
scieloorg/opac | opac/tests/test_main_views_abstract.py | 1 | 4558 | # coding: utf-8
# import unittest
# from unittest.mock import patch, Mock
from unittest.mock import patch
import flask
from flask import url_for, g, current_app
# from flask import render_template
# from flask_babelex import gettext as _
from .base import BaseTestCase
from . import utils
class TestArticleDetailV3A... | bsd-2-clause | 7,343,148,106,735,971,000 | 37.905983 | 107 | 0.564807 | false |
silverfix/django-concierge | concierge/urls.py | 1 | 1808 | # -*- coding: utf-8 -
from django.conf.urls import url
from django.contrib.auth import views as django_auth_views
from . import forms
from . import views
urlpatterns = [
url(r'^signup/$', views.SignupView.as_view(template_name='concierge/signup.html'), name='signup'),
url(r'^login/$', django_auth_views.logi... | bsd-3-clause | -6,275,472,563,960,320,000 | 46.578947 | 105 | 0.644358 | false |
markflyhigh/incubator-beam | sdks/python/apache_beam/io/source_test_utils.py | 1 | 26317 | #
# 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 us... | apache-2.0 | 3,306,729,936,039,604,700 | 38.396707 | 80 | 0.68621 | false |
Letractively/aha-gae | aha/modelcontroller/tests/test_crudhander.py | 1 | 1715 | # -*- coding: utf-8 -*-
from unittest import TestCase
import logging
log = logging.getLogger(__name__)
from nose.tools import *
from aha.modelcontroller.formcontrol import FormControl, handle_state, validate
FC = FormControl
class TestCRUDControllerMixIn(TestCase):
def test_subclass(self):
"""
... | bsd-3-clause | -1,365,521,850,367,006,700 | 27.114754 | 79 | 0.596501 | false |
EmreAtes/spack | var/spack/repos/builtin/packages/texlive/package.py | 1 | 3446 | ##############################################################################
# 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 | 428,417,736,615,517,630 | 42.620253 | 90 | 0.653511 | false |
junzis/py-adsb-decoder | pyModeS/extra/aero.py | 1 | 5201 | """
Functions for aeronautics in this module
- physical quantities always in SI units
- lat,lon,course and heading in degrees
International Standard Atmosphere
::
p,rho,T = atmos(H) # atmos as function of geopotential altitude H [m]
a = vsound(H) # speed of sound [m/s] as function of H[m]
p = ... | mit | 6,628,668,726,650,856,000 | 27.266304 | 93 | 0.584503 | false |
saltastro/saltefficiency | dataquality/upload_throughput.py | 1 | 4898 | import os
import argparse
import glob
import traceback
import mysql
import dataquality as dq
def upload_throughput(sdb, infile, force=False):
"""Upload throughput measurements to the Science Database
Parameters
----------
sdb: ~mysql.sdb
Connection to the Science Database
infile: str
... | bsd-3-clause | 3,220,284,524,995,481,600 | 37.265625 | 117 | 0.57942 | false |
yashchandak/GNN | Sample_Run/Seq_Dynamic/blogDWdata.py | 1 | 6976 | from __future__ import generators, print_function
import numpy as np
from copy import deepcopy
from random import shuffle
from scipy.io import loadmat
class DataSet(object):
def __init__(self, cfg):
"""Construct a DataSet.
"""
self.cfg = cfg
self.all_walks, self.node_seq = self.get... | mit | -3,829,700,722,819,435,500 | 38.862857 | 120 | 0.578842 | false |
DOV-Vlaanderen/pydov | setup.py | 1 | 2043 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import find_packages, setup
with open('README.md') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
with open('requirements.txt') as f:
requirements =... | mit | 6,766,960,254,937,599,000 | 31.951613 | 78 | 0.619677 | false |
ales-erjavec/orange-canvas | orangecanvas/scheme/tests/__init__.py | 1 | 2700 | """
Scheme tests
"""
from AnyQt.QtCore import QObject, QEventLoop, QTimer, QCoreApplication, QEvent
from typing import List
class EventSpy(QObject):
"""
A testing utility class (similar to QSignalSpy) to record events
delivered to a QObject instance.
Note
----
Only event types can be recorded... | gpl-3.0 | 5,709,660,334,887,075,000 | 26.835052 | 80 | 0.554815 | false |
Nicoretti/libslack | libslack/tests/__init__.py | 1 | 1485 | #!/usr/bin/env python3
#
# Copyright (c) 2015, Nicola Coretti
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# ... | bsd-2-clause | -2,966,026,265,261,736,000 | 50.206897 | 81 | 0.767677 | false |
AlexMathew/csipy-exercises | solution/words.py | 1 | 1277 | import sys
def setup(words):
new_words = []
for word in words:
new_words.append(word.lower())
words = new_words
# This could have been done easier with list comprehensions.
# words = [word.lower() for word in words]
wordset = set()
wordcount = dict()
for word in words:
prev_size = len(wordset)
wordset.ad... | mit | 7,769,703,426,424,290,000 | 26.782609 | 73 | 0.651527 | false |
inf0-warri0r/music_cat | classifier/classifier.py | 1 | 4355 | #!/usr/bin/env python
"""
Author : tharindra galahena (inf0_warri0r)
Project: classifing music using neural network
Blog : http://www.inf0warri0r.blogspot.com
Date : 23/05/2013
License:
Copyright 2013 Tharindra Galahena
This is free software: you can redistribute it and/or modify it under
the terms of the G... | agpl-3.0 | 809,784,179,446,759,300 | 27.279221 | 78 | 0.595867 | false |
dials/dials | tests/algorithms/indexing/test_non_primitive_basis.py | 1 | 1945 | import pytest
import scitbx.matrix
from cctbx import sgtbx
from cctbx.sgtbx import bravais_types
from dxtbx.model import Crystal, Experiment, ExperimentList
from dials.algorithms.indexing import assign_indices, non_primitive_basis
from dials.array_family import flex
@pytest.mark.parametrize("space_group_symbol", br... | bsd-3-clause | 7,598,806,288,202,229,000 | 37.137255 | 82 | 0.705398 | false |
vijeth-aradhya/coala-bears | bears/js/ESLintBear.py | 1 | 2949 | import json
from coalib.bearlib.abstractions.Linter import linter
from dependency_management.requirements.NpmRequirement import NpmRequirement
from coalib.results.Diff import Diff
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
from coalib.results.Result import Result
@linter(executable='eslint',
... | agpl-3.0 | 3,875,000,536,192,884,700 | 31.766667 | 78 | 0.547304 | false |
googleapis/gapic-generator-python | tests/integration/goldens/asset/samples/generated_samples/cloudasset_generated_asset_v1_asset_service_list_feeds_async.py | 1 | 1458 | # -*- 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 | -61,573,664,840,941,890 | 30.695652 | 85 | 0.741427 | false |
bc-python-tools/mistool | test/python/dict/test_dictvalues.py | 1 | 1422 | #!/usr/bin/env python3
# --------------------- #
# -- SEVERAL IMPORTS -- #
# --------------------- #
from pathlib import Path
from pytest import fixture
from orpyste.data import ReadBlock as READ
# ------------------- #
# -- MODULE TESTED -- #
# ------------------- #
from mistool import python_use
# -----------... | gpl-3.0 | 5,746,021,502,840,901,000 | 20.876923 | 58 | 0.549226 | false |
priseborough/ardupilot | Tools/ardupilotwaf/ardupilotwaf.py | 1 | 14418 | #!/usr/bin/env python
# encoding: utf-8
from __future__ import print_function
from waflib import Build, ConfigSet, Configure, Context, Errors, Logs, Options, Utils
from waflib.Configure import conf
from waflib.Scripting import run_command
from waflib.TaskGen import before_method, feature
import os.path, os
from collec... | gpl-3.0 | 3,844,010,442,105,174,500 | 26.358634 | 147 | 0.578027 | false |
usc-isi/horizon-old | horizon/horizon/dashboards/settings/user/urls.py | 1 | 1066 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2011 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | apache-2.0 | -3,605,575,973,021,152,000 | 37.071429 | 78 | 0.722326 | false |
codelucas/facebook-context | backend-flask/backend/example.py | 1 | 15518 | #!/usr/bin/env python
# Copyright 2013 AlchemyAPI
#
# 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 applicab... | apache-2.0 | -368,163,000,386,899,300 | 27.163339 | 168 | 0.47345 | false |
oblique-labs/pyVM | rpython/rlib/unicodedata/test/test_unicodedata.py | 1 | 6594 | # encoding: utf-8
import random
import unicodedata
import py
from rpython.rlib.unicodedata import (
unicodedb_3_2_0, unicodedb_5_2_0, unicodedb_6_0_0, unicodedb_6_2_0,
unicodedb_8_0_0)
class TestUnicodeData(object):
def setup_class(cls):
if unicodedata.unidata_version != '5.2.0':
py.... | mit | -4,423,305,646,221,714,000 | 42.946667 | 107 | 0.614381 | false |
dereneaton/ipyrad | ipyrad/core/paramsinfo.py | 1 | 21970 | #!/usr/bin/env python
""" Return explanation and options for each parameter.
ip.get_params_info(1) or ip.get_params_info("project_dir")
return the same result. If not argument, a summary of the available
parameters and their numbered references is returned.
Parameter info is stored as a dict of tupl... | gpl-3.0 | 1,552,804,021,922,965,200 | 44.298969 | 82 | 0.454802 | false |
pshchelo/heat | heat/engine/resources/stack_resource.py | 1 | 20765 | #
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# ... | apache-2.0 | -4,581,617,663,593,579,000 | 38.932692 | 79 | 0.584589 | false |
hds-lab/coding-ml | msgvis/apps/enhance/migrations/0002_auto_20160222_0230.py | 1 | 1306 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('enhance', '0001_initial'),
(b'auth', b'__first__'), # This line and the next line is for fixi... | mit | -7,770,648,743,024,572,000 | 30.853659 | 119 | 0.570444 | false |
jj1bdx/wspr | WsprMod/iq.py | 1 | 4726 | #------------------------------------------------------------------ iq
from Tkinter import *
import Pmw
import g
import w
import time
import tkMessageBox
import pickle
def done():
root.withdraw()
root=Toplevel()
root.withdraw()
root.protocol('WM_DELETE_WINDOW',done)
if g.Win32: root.iconbitmap("wsjt.ico")
root.ti... | gpl-2.0 | -423,385,164,766,437,600 | 27.46988 | 82 | 0.621244 | false |
zestyr/lbry | lbrynet/core/server/ServerRequestHandler.py | 1 | 5866 | import json
import logging
from twisted.internet import interfaces, defer
from zope.interface import implements
from lbrynet.interfaces import IRequestHandler
log = logging.getLogger(__name__)
class ServerRequestHandler(object):
"""This class handles requests from clients. It can upload blobs and
return req... | mit | 8,375,703,638,704,539,000 | 30.537634 | 93 | 0.608421 | false |
diegodelemos/reana-job-controller | tests/test_job_manager.py | 1 | 4870 | # -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2019 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""REANA-Job-Controller Job Manager tests."""
import json
import os
import uuid
import mock
... | mit | -5,248,791,011,333,741,000 | 34.289855 | 87 | 0.634702 | false |
kencochrane/docker-django-demo | dockerdemo/voting/migrations/0001_initial.py | 1 | 1782 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-16 20:05
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | mit | -4,280,010,848,897,716,000 | 36.914894 | 114 | 0.574635 | false |
todddeluca/diabric | diabric/files.py | 1 | 11396 |
'''
Fabric utilities for working with files.
'''
import StringIO
import contextlib
import os
import shutil
import subprocess
import uuid
from fabric.api import sudo, run, settings, hide, put, local
from fabric.contrib.files import exists
##################
# HELPER FUNCTIONS
# These functions are reusable snippets... | mit | 3,146,706,489,054,374,400 | 33.850153 | 115 | 0.650053 | false |
NGnius/ModScraper | ModScraper.py | 1 | 4720 | '''This actually runs everything'''
import sys, os, time
sys.path.append(os.getcwd()+'/Resources')
import ForumsToCheck, scraper, config, log_it
import necroDetector, profanityDetector, capsDetector, annoyanceAlerts
from multiprocessing import Process
def init(queue):
global q
q = queue
def main():
'''()... | gpl-3.0 | -6,662,993,216,560,327,000 | 51.444444 | 202 | 0.675 | false |
zeroSteiner/boltons | boltons/formatutils.py | 1 | 11298 | # -*- coding: utf-8 -*-
"""`PEP 3101`_ introduced the :meth:`str.format` method, and what
would later be called "new-style" string formatting. For the sake of
explicit correctness, it is probably best to refer to Python's dual
string formatting capabilities as *bracket-style* and
*percent-style*. There is overlap, but ... | bsd-3-clause | 5,633,073,641,725,229,000 | 33.340426 | 93 | 0.610816 | false |
iandees/all-the-places | locations/spiders/sunloan.py | 1 | 2377 | # -*- coding: utf-8 -*-
import scrapy
import json
import re
from locations.items import GeojsonPointItem
DAYS={
'Monday':'Mo',
'Tuesday':'Tu',
'Wednesday':'We',
'Friday':'Fr',
'Thursday':'Th',
'Saturday':'Sa',
'Sunday':'Su',
}
class SunLoanSpider(scrapy.Spider):
name = "sunloan"
a... | mit | 2,616,339,130,988,153,000 | 27.987805 | 123 | 0.519983 | false |
zsdonghao/tensorlayer | setup.py | 1 | 5906 | #!/usr/bin/env python
import codecs
import os
import sys
os.environ['TENSORLAYER_PACKAGE_BUILDING'] = 'True'
try:
from setuptools import find_packages, setup, Extension
from setuptools.command.build_ext import build_ext
except ImportError:
from distutils.core import (
setup,
find_package... | apache-2.0 | 7,494,177,966,048,388,000 | 29.443299 | 113 | 0.613952 | false |
PiaBianca/PyMaster | pymasterlib/ask.py | 1 | 1995 | # PyMaster
# Copyright (C) 2014, 2015 FreedomOfRestriction <FreedomOfRestriction@openmailbox.org>
#
# 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... | gpl-3.0 | -6,075,815,982,666,345,000 | 30.666667 | 86 | 0.66416 | false |
Noirello/bonsai | docs/conf.py | 1 | 9146 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# bonsai documentation build configuration file, created by
# sphinx-quickstart on Sat Jan 18 21:30:25 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | mit | -5,116,172,858,655,280,000 | 29.898649 | 83 | 0.702165 | false |
dark1729dragon/pixutils | pixutils/vplayer/PlayImgs.py | 1 | 2169 | from __future__ import nested_scopes, generators, division, absolute_import, with_statement, print_function, unicode_literals
from .videoutils import *
def default_labeller(x):
try:
return int(x.split('_')[1].split('.')[0])
except:
try:
return int(basename(x).split('_')[1].split(... | bsd-2-clause | 8,355,155,217,002,081,000 | 27.552632 | 125 | 0.545874 | false |
jonathf/chaospy | chaospy/distributions/baseclass/operator.py | 1 | 2655 | """Operator transformation."""
import numpy
import chaospy
from ..baseclass import Distribution
class OperatorDistribution(Distribution):
"""Operator transformation."""
def __init__(self, left, right, exclusion=None, repr_args=None):
if not isinstance(left, Distribution):
left = numpy.at... | mit | 8,029,556,839,526,679,000 | 39.227273 | 103 | 0.59548 | false |
usingnamespace/pyramid_authsanity | src/pyramid_authsanity/policy.py | 1 | 6144 | import base64
import os
from pyramid.authorization import Authenticated, Everyone
from pyramid.interfaces import IAuthenticationPolicy, IDebugLogger
from zope.interface import implementer
from .util import _find_services, _session_registered, add_vary_callback
def _clean_principal(princid):
"""Utility function ... | isc | -7,210,039,205,602,359,000 | 32.032258 | 85 | 0.585938 | false |
CroceRossaItaliana/jorvik | formazione/migrations/0035_auto_20190510_1149.py | 1 | 2215 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2019-05-10 11:49
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('formazione', '0034_auto_201904... | gpl-3.0 | 6,304,392,364,393,148,000 | 60.5 | 247 | 0.681572 | false |
kgullikson88/General | Analyze_CCF.py | 1 | 9048 | """
This is a module to read in an HDF5 file with CCFs.
Use this to determine the best parameters, and plot the best CCF for each star/date
"""
from collections import defaultdict
import logging
import h5py
import numpy as np
import pandas as pd
from scipy.interpolate import InterpolatedUnivariateSpline as spline
cl... | gpl-3.0 | 5,668,383,523,431,874,000 | 42.710145 | 126 | 0.513263 | false |
clausqr/HTPC-Manager | modules/qbittorrent.py | 1 | 12490 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import htpc
import cherrypy
import json
import logging
import time
import math
from cherrypy.lib.auth2 import require
from htpc.helpers import striphttp, sizeof
import requests
from requests.auth import HTTPDigestAuth
class Qbittorrent(object):
session = requests.Ses... | mit | -863,452,485,712,000,900 | 36.507508 | 182 | 0.517374 | false |
SpaceGroupUCL/qgisSpaceSyntaxToolkit | esstoolkit/external/networkx/algorithms/swap.py | 4 | 9829 | """Swap edges in a graph.
"""
import math
from networkx.utils import py_random_state
import networkx as nx
__all__ = ["double_edge_swap", "connected_double_edge_swap"]
@py_random_state(3)
def double_edge_swap(G, nswap=1, max_tries=100, seed=None):
"""Swap two edges in the graph while keeping the node degrees f... | gpl-3.0 | 5,574,572,882,945,417,000 | 35.539033 | 85 | 0.550005 | false |
durandj/ynot-django | ynot/django/themes/templatetags/breadcrumbs.py | 1 | 2421 | from django import template as django_template
from django.template import defaulttags as django_defaulttags
from django.utils import encoding as django_encoding
# pylint: disable=invalid-name, too-few-public-methods
register = django_template.Library()
# pylint: disable=unused-argument
@register.tag
def... | mit | -5,690,095,699,108,651,000 | 24.21875 | 84 | 0.674515 | false |
edx/edx-enterprise | enterprise/migrations/0111_pendingenterprisecustomeradminuser.py | 1 | 3009 | # Generated by Django 2.2.15 on 2020-09-09 14:31
import simple_history.models
import django.db.models.deletion
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models
import model_utils.fields
class Migration(migrations.Migration):
dependencies = [
migrat... | agpl-3.0 | -8,918,742,934,730,054,000 | 52.732143 | 205 | 0.627783 | false |
blueshed/blueshed-micro | blueshed/micro/utils/executor.py | 1 | 2437 | from blueshed.micro.utils import resources
from tornado.concurrent import Future
from tornado.ioloop import IOLoop
from tornado.autoreload import add_reload_hook
from functools import wraps
import logging
import os
import inspect
from concurrent.futures.process import ProcessPoolExecutor
LOGGER = logging.getLogger(__... | mit | -5,598,329,544,635,889,000 | 26.077778 | 71 | 0.623718 | false |
espressofiend/NCIL-SOC-2015 | PsychoPy/stroop_lastrun.py | 1 | 14481 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy2 Experiment Builder (v1.82.00), Mon Jun 22 22:53:33 2015
If you publish work using this script please cite the relevant PsychoPy publications
Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of Neurosci... | mit | 883,825,306,107,728,600 | 43.832817 | 153 | 0.653477 | false |
google-research/graph-attribution | tests/test_graphnet_techniques.py | 1 | 4088 | # 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 agreed to in writing, ... | apache-2.0 | -3,539,298,706,221,075,500 | 39.88 | 76 | 0.715509 | false |
SauloAislan/ironic | ironic/common/keystone.py | 1 | 4019 | # coding=utf-8
#
# 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
# di... | apache-2.0 | 4,339,364,489,607,921,700 | 35.87156 | 78 | 0.700423 | false |
gnoack/ukechord | chordpro.py | 1 | 4308 | """Read ChordPro files and output them through a PDFWriter object"""
import re
import song
import uke
class ChordProError(Exception):
"""Error in a ChordPro input."""
pass
def _analyze_chordpro_textline(line):
"""Analyze the text and chords in a line of text.
Args:
line: The line of text, with chords... | apache-2.0 | -5,033,884,073,311,483,000 | 31.885496 | 77 | 0.634401 | false |
remind101/stacker_blueprints | stacker_blueprints/policies.py | 1 | 6595 | from awacs.aws import (
Action,
Allow,
Policy,
Principal,
Statement,
)
from troposphere import (
Sub,
Join,
Region,
AccountId,
AWSHelperFn
)
from awacs import (
sts,
s3,
logs,
ec2,
dynamodb,
cloudwatch,
)
def make_simple_assume_statement(*principals):
... | bsd-2-clause | -2,938,821,598,821,418,500 | 25.808943 | 167 | 0.549659 | false |
alexlee-gk/visual_dynamics | visual_dynamics/envs/quad_panda3d_env.py | 1 | 2967 | import numpy as np
import citysim3d.envs
from visual_dynamics.envs import Panda3dEnv
from visual_dynamics.spaces import Space, BoxSpace, TranslationAxisAngleSpace
from visual_dynamics.utils.config import ConfigObject
class SimpleQuadPanda3dEnv(citysim3d.envs.SimpleQuadPanda3dEnv, Panda3dEnv):
def _get_config(sel... | mit | -5,554,164,767,170,576,000 | 34.321429 | 92 | 0.596562 | false |
osborne6/luminotes | view/Page_navigation.py | 1 | 1736 | from Tags import P, Span, A, Strong
class Page_navigation( P ):
def __init__( self, page_path, displayed_item_count, total_item_count, start, items_per_page, return_text = None ):
if start is None or items_per_page is None:
P.__init__( self )
return
if displayed_item_count == 1 and displayed_ite... | gpl-3.0 | -6,957,415,015,767,892,000 | 28.423729 | 117 | 0.522465 | false |
tambetm/gymexperiments | a2c_atari.py | 1 | 10250 | import argparse
import os
import multiprocessing
from multiprocessing import Process, Queue, Array
import pickle
import gym
from gym.spaces import Box, Discrete
from keras.models import Model
from keras.layers import Input, TimeDistributed, Convolution2D, Flatten, LSTM, Dense
from keras.objectives import categorical... | mit | 6,621,470,067,187,979,000 | 34.590278 | 137 | 0.639805 | false |
SymbiFlow/symbiflow-arch-defs | utils/lib/parse_route.py | 1 | 1541 | """ Library for parsing route output from VPR route files. """
from collections import namedtuple
Node = namedtuple('Node', 'inode x_low y_low x_high y_high ptc')
def format_name(s):
""" Converts VPR parenthesized name to just name. """
assert s[0] == '('
assert s[-1] == ')'
return s[1:-1]
def form... | isc | 6,817,013,597,185,511,000 | 27.018182 | 77 | 0.506814 | false |
demisto/content | Packs/Silverfort/Integrations/Silverfort/Silverfort_test.py | 1 | 5886 | import pytest
from unittest.mock import patch
from Silverfort import get_user_entity_risk_command, get_resource_entity_risk_command,\
update_user_entity_risk_command, update_resource_entity_risk_command
API_KEY = "APIKEY"
@pytest.fixture(autouse=True)
def upn():
return 'sfuser@silverfort.io'
@pytest.fixture... | mit | -7,427,504,390,809,783,000 | 36.730769 | 126 | 0.659531 | false |
NaohiroTamura/python-ironicclient | ironicclient/v1/chassis.py | 1 | 6569 | # -*- coding: utf-8 -*-
#
# Copyright © 2013 Red Hat, 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 require... | apache-2.0 | 1,744,163,797,057,530,600 | 37.635294 | 79 | 0.564708 | false |
1905410/Misago | misago/threads/views/admin/attachments.py | 1 | 3500 | from django.contrib import messages
from django.core.urlresolvers import reverse
from django.db import transaction
from django.db.models import Count
from django.shortcuts import redirect
from django.utils.translation import ugettext_lazy as _
from misago.admin.views import generic
from ...forms import SearchAttachme... | gpl-2.0 | -8,330,892,099,958,133,000 | 33.653465 | 98 | 0.626857 | false |
pombredanne/blivet-1 | tests/devicelibs_test/edd_test.py | 1 | 9403 | import mock
class EddTestCase(mock.TestCase):
def setUp(self):
self.setupModules(
['_isys', 'logging', 'pyanaconda.anaconda_log', 'block'])
def tearDown(self):
self.tearDownModules()
def test_biosdev_to_edd_dir(self):
from blivet.devicelibs import edd
path = ed... | gpl-2.0 | 2,521,215,230,570,225,700 | 43.353774 | 107 | 0.605764 | false |
googleapis/python-pubsublite | google/cloud/pubsublite_v1/services/cursor_service/transports/__init__.py | 1 | 1185 | # -*- 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 | 220,261,319,148,648,960 | 34.909091 | 84 | 0.775527 | false |
great-expectations/great_expectations | tests/dataset/test_sparkdfdataset.py | 1 | 14191 | import importlib.util
import json
from unittest import mock
import pandas as pd
import pytest
from great_expectations.dataset.sparkdf_dataset import SparkDFDataset
from great_expectations.util import is_library_loadable
def test_sparkdfdataset_persist(spark_session):
df = pd.DataFrame({"a": [1, 2, 3]})
sdf ... | apache-2.0 | 7,190,094,410,767,394,000 | 30.676339 | 87 | 0.582623 | false |
Marcelpv96/SITWprac2017 | sportsBetting/migrations/0018_auto_20170515_1009.py | 1 | 1050 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-05-15 10:09
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_depende... | gpl-3.0 | 7,969,951,120,777,904,000 | 29.882353 | 121 | 0.612381 | false |
leviroth/praw | praw/reddit.py | 1 | 20843 | """Provide the Reddit class."""
import configparser
import os
from itertools import islice
try:
from update_checker import update_check
UPDATE_CHECKER_MISSING = False
except ImportError: # pragma: no cover
UPDATE_CHECKER_MISSING = True
from prawcore import (
Authorizer,
DeviceIDAuthorizer,
... | bsd-2-clause | 858,175,342,777,870,000 | 33.971477 | 79 | 0.593533 | false |
Dr-Drive/hycohanz | examples/create_sphere.py | 1 | 1265 | import hycohanz as hfss
raw_input('Press "Enter" to connect to HFSS.>')
[oAnsoftApp, oDesktop] = hfss.setup_interface()
raw_input('Press "Enter" to create a new project.>')
oProject = hfss.new_project(oDesktop)
raw_input('Press "Enter" to insert a new DrivenModal design named HFSSDesign1.>')
oDesign =... | bsd-2-clause | 2,732,410,472,705,458,000 | 28.853659 | 112 | 0.705138 | false |
djb1815/Essex-MuSoc | musoc_web/schedule/views.py | 1 | 1465 | from django.shortcuts import render, redirect
from django.db import transaction
from django.contrib.auth.decorators import login_required
from .forms import ProfileNameForm, ProfileDetailForm
from django.contrib import messages
# Create your views here.
def index(request):
# Add variables in the custom_variables... | mit | 6,622,172,651,528,371,000 | 34.731707 | 102 | 0.686689 | false |
cloughrm/Flask-Angular-Template | backend/pastry/resources/v1/users.py | 1 | 1720 | from pastry.db import mongo
from pastry.models import User
from pastry.resources.auth import login_required
from pastry.resources import validators, httpcodes
from bson.objectid import ObjectId
from flask import request
from flask.ext.restful import Resource, reqparse
class UsersResource(Resource):
@login_requi... | mit | -4,205,179,780,906,292,700 | 33.4 | 101 | 0.640116 | false |
cmende/pytelefoob0t | plugins/8ball/__init__.py | 1 | 1199 | # Copyright 2017 Christoph Mende
#
# 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... | apache-2.0 | 3,168,563,416,438,959,600 | 25.644444 | 75 | 0.665555 | false |
shanksauce/mintr | mintr/__init__.py | 1 | 1862 | import requests
import time
import re
from pprint import pprint
auth_headers = {}
def _validate_credentials(fn):
def wrapper(*args):
def is_not_populated(d,r):
return reduce(
lambda x,y: x or y,
map(lambda k: k not in d or not d[k], r)
)
if is_not_populated(auth_headers, ('cookie... | mit | 3,864,896,717,037,192,700 | 24.162162 | 77 | 0.605263 | false |
davidtrem/ThunderStorm | thunderstorm/lightning/utils.py | 1 | 5027 | # -*- coding: utf-8 -*-
# Copyright (C) 2010-2013 Trémouilles David
#This file is part of Thunderstorm.
#
#ThunderStrom is free software: you can redistribute it and/or modify
#it under the terms of the GNU Lesser General Public License as published by
#the Free Software Foundation, either version 3 of the License, o... | gpl-3.0 | 895,360,067,562,563,700 | 35.686131 | 77 | 0.569041 | false |
MicroPyramid/forex-python | setup.py | 1 | 1589 | import io
import os
from setuptools import setup, find_packages
VERSION = '1.6'
long_description_text = """Forex Python is a Free Foreign exchange rates and currency conversion.
Features:
List all currency rates.
BitCoin price for all curuncies.
Converting amount to BitCoins.
Get historical rates for any day since 199... | mit | 7,102,093,925,092,458,000 | 32.104167 | 97 | 0.680931 | false |
answer-huang/StatisticsCodeLines | statistics.py | 1 | 3024 | #coding=utf-8
__author__ = 'answer-huang'
import sys
reload(sys)
sys.setdefaultencoding('utf8')
"""
代码行统计工具
"""
import wx
from MyInfo import AboutMe
from AHDropTarget import AHDropTarget
import os
class AHFrame(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, -1, title, wx... | mit | 6,652,973,643,853,062,000 | 30.902174 | 105 | 0.630198 | false |
klahnakoski/ActiveData | vendor/mo_testing/fuzzytestcase.py | 1 | 9712 | # encoding: utf-8
#
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Contact: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from __future__ import unicode_literals
impor... | mpl-2.0 | -932,436,513,672,928,600 | 36.210728 | 134 | 0.576091 | false |
PopCap/GameIdea | Engine/Extras/Maya_AnimationRiggingTools/MayaTools/General/Scripts/perforceUtils.py | 1 | 32585 | import maya.cmds as cmds
from P4 import P4,P4Exception
import os, cPickle
from functools import partial
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
def p4_getLatestRevision(fileName, *args):
fileArg = fileName
#try to connect
p4 = P4()
try:
... | bsd-2-clause | -8,773,135,227,386,069,000 | 14.551724 | 316 | 0.561792 | false |
priomsrb/vimswitch | vimswitch/UpdateProfileAction.py | 1 | 1247 | from .Action import Action
from .Settings import getSettings
from .SwitchProfileAction import createSwitchProfileAction
class UpdateProfileAction(Action):
def __init__(self, settings, switchProfileAction):
Action.__init__(self)
self.settings = settings
self.switchProfileAction = switchProf... | gpl-2.0 | -8,137,162,348,852,659,000 | 30.974359 | 76 | 0.677626 | false |
indico/indico | indico/modules/events/registration/models/invitations.py | 1 | 3543 | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from uuid import uuid4
from sqlalchemy.dialects.postgresql import UUID
from indico.core.db import db
fro... | mit | -4,382,065,804,384,135,000 | 27.344 | 109 | 0.61558 | false |
ajroussel/shell-nouns-data | src/extractor.py | 1 | 3851 | #!/usr/bin/env python3
import os
import argparse
import pickle
from lxml import etree
from sys import argv
from objects import *
## returns a list of ints
def to_index(s):
outlist = list()
spl1 = s.split(',')
try:
for item in spl1:
spl2 = item.split('..')
start = int(spl2... | gpl-3.0 | 7,349,968,066,567,672,000 | 32.780702 | 77 | 0.491041 | false |
CybOXProject/python-cybox | cybox/__init__.py | 1 | 4103 | # Copyright (c) 2020, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
from mixbox import entities
from mixbox.vendor import six
from .version import __version__ # noqa
#: Mapping of xsi:types to implementation/extension classes
_EXTENSION_MAP = {}
def _lookup_unprefixed(typename)... | bsd-3-clause | -1,116,159,880,867,913,500 | 25.816993 | 79 | 0.654155 | false |
pgmillon/ansible | lib/ansible/modules/cloud/vmware/vmware_host_facts.py | 1 | 11491 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Wei Gao <gaowei3@qq.com>
# Copyright: (c) 2018, 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
ANSIBLE... | gpl-3.0 | 7,889,792,393,098,098,000 | 33.927052 | 130 | 0.597685 | false |
mlsecproject/gglsbl-rest | config.py | 1 | 1443 | from os import environ
import logging.config
from apscheduler.schedulers.background import BackgroundScheduler
from multiprocessing import cpu_count
from subprocess import Popen
logging.config.fileConfig('logging.conf')
bind = "0.0.0.0:5000"
workers = int(environ.get('WORKERS', cpu_count() * 8 + 1))
timeout = int(en... | apache-2.0 | -1,130,091,579,888,611,300 | 33.357143 | 167 | 0.677755 | false |
estaban/pyload | module/plugins/hoster/UnrestrictLi.py | 1 | 4420 | # -*- coding: utf-8 -*-
############################################################################
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as #
# published by the Free Software Foundation, either version 3 of ... | gpl-3.0 | 7,935,763,041,935,266,000 | 43.646465 | 104 | 0.541629 | false |
JanSchulz/multi-package-feedstock | recipes/python-2.7.8/run_test.py | 1 | 1289 | import platform
import os
import sys
import subprocess
from pprint import pprint
print('Python version:', platform.python_version())
print('max unicode:', sys.maxunicode)
print('architecture:', platform.architecture())
print('sys.version:', sys.version)
print('platform.machine():', platform.machine())
import _bisect
... | bsd-3-clause | -6,962,077,765,345,530,000 | 16.657534 | 51 | 0.794414 | false |
mikeh69/JammerDetect | src/audio_tones.py | 1 | 3644 | import math #import needed modules
import pyaudio #sudo apt-get install python-pyaudio
import struct
import pickle
from time import sleep
PyAudio = pyaudio.PyAudio #initialize pyaudio
#See http://en.wikipedia.org/wiki/Bit_rate#Audio
BITRATE = 48000 #number of frames per second - 44.1kHz does not work pro... | mit | -6,694,274,719,032,910,000 | 37.357895 | 128 | 0.586718 | false |
mirkobronzi/finance-analyzer | lib/entries.py | 1 | 3600 | """
classes Entry and Entries
"""
__author__ = 'bronzi'
from datetime import datetime
import re
#TODO: should be configurable
PUNCTUATION_REMOVER = re.compile("[0-9,\.#\-_/']")
SPACE_REMOVER = re.compile(" +")
def string_to_float(string):
"""
simply convert a string into a float
string : basestring
... | gpl-3.0 | -7,055,621,584,990,460,000 | 29 | 76 | 0.563889 | false |
simone-campagna/sheru | packages/sheru/main.py | 1 | 5020 | # -*- coding: utf-8 -*-
#
# Copyright 2015 Simone Campagna
#
# 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... | apache-2.0 | 8,380,608,132,489,608,000 | 29.424242 | 111 | 0.655378 | false |
Si-elegans/Web-based_GUI_Tools | spirit/forms/comment_like.py | 1 | 1042 | #-*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext as _
from spirit.models.comment_like import CommentLike
class LikeForm(forms.ModelForm):
class Meta:
model = CommentLike
fields = []
def __init__(self, user=None, comment=None, *args, **kwargs):
... | apache-2.0 | 6,114,016,247,906,903,000 | 27.189189 | 76 | 0.606526 | false |
nttks/edx-platform | lms/djangoapps/pdfgen/tests/test_api.py | 1 | 6717 | """Tests for the pdfgen API. """
from datetime import datetime
from mock import patch
from django.test import RequestFactory
from certificates import api as certs_api
from certificates.models import CertificateGenerationConfiguration, CertificateStatuses, GeneratedCertificate
from certificates.tests.factories import ... | agpl-3.0 | 3,364,932,985,641,381,400 | 39.957317 | 130 | 0.64895 | false |
vIiRuS/Lagerregal | users/forms.py | 1 | 1438 | from django import forms
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext
from users.models import Lageruser, DepartmentUser
from Lagerregal import settings
class SettingsForm(forms.ModelForm):
error_css_class = 'has-error'
class Meta:
model = Lag... | bsd-3-clause | 492,863,469,276,929,150 | 30.26087 | 122 | 0.626565 | false |
dmsimard/ansible | lib/ansible/plugins/filter/core.py | 1 | 21532 | # (c) 2012, Jeroen Hoekx <jeroen@hoekx.be>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | gpl-3.0 | 2,740,070,881,585,711,600 | 31.476621 | 120 | 0.611694 | false |
stormi/tsunami | src/secondaires/familier/editeurs/famedit/__init__.py | 1 | 6790 | # -*-coding:Utf-8 -*
# Copyright (c) 2014 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# lis... | bsd-3-clause | -1,508,693,470,477,261,300 | 43.394737 | 81 | 0.655009 | false |
prechelt/typecheck-decorator | typecheck/test_typing_annotations.py | 1 | 18996 | import builtins
import datetime as dt
import io
import re
import sys
import tempfile
import typing as tg
import pytest
import typecheck as tc
import typecheck.framework as fw
from typecheck.testhelper import expected
# global TypeVars, used in various places:
X = tg.TypeVar('X')
Tb = tg.TypeVar('Tb', bound=dt.date... | bsd-2-clause | -9,022,903,023,139,706,000 | 32.982111 | 93 | 0.593704 | false |
JukeboxPipeline/jukebox-core | src/jukeboxcore/addons/guerilla/guerillamgmt.py | 1 | 82524 | from PySide import QtGui
from jukeboxcore.log import get_logger
log = get_logger(__name__)
from jukeboxcore import ostool
from jukeboxcore import djadapter
from jukeboxcore.gui.main import JB_MainWindow, JB_Dialog, dt_to_qdatetime
from jukeboxcore.gui import treemodel
from jukeboxcore.gui import djitemdata
from jukeb... | bsd-3-clause | -4,366,240,837,862,051,000 | 32.697019 | 142 | 0.592131 | false |
tbullmann/heuhaufen | publication/generators_and_depth/aggregate.py | 1 | 5320 | import os
import pandas
import numpy as np
from bokeh.palettes import Viridis4 as palette
from bokeh.layouts import layout, column, row
from bokeh.plotting import figure, output_file, show, ColumnDataSource
from bokeh.models import HoverTool, Div, DataTable, TableColumn, NumberFormatter, LinearAxis, Select, CustomJS, ... | mit | 2,667,029,470,658,940,000 | 37 | 126 | 0.644361 | false |
Statoil/libres | python/res/enkf/ert_template.py | 1 | 2187 | # Copyright (C) 2012 Equinor ASA, Norway.
#
# The file 'ert_template.py' is part of ERT - Ensemble based Reservoir Tool.
#
# ERT 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 Li... | gpl-3.0 | 87,037,044,405,299,280 | 36.067797 | 98 | 0.631459 | false |
blueskyjunkie/timeTools | timetools/synchronization/compliance/ituTG8261/eecOption1/networkWander.py | 1 | 1252 | #
# Copyright 2017 Russell Smiley
#
# This file is part of timetools.
#
# timetools is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#... | gpl-3.0 | 6,965,722,777,181,384,000 | 34.771429 | 70 | 0.618211 | false |
oemof/oemof_base | src/oemof/solph/groupings.py | 1 | 2875 | # -*- coding: utf-8 -*-
"""Groupings needed on an energy system for it to work with solph.
If you want to use solph on an energy system, you need to create it with these
groupings specified like this:
.. code-block: python
from oemof.network import EnergySystem
import solph
energy_system = EnergySy... | gpl-3.0 | 3,557,383,444,322,008,600 | 29.252632 | 79 | 0.707376 | false |
NIRALUser/RodentThickness | Applications/RodentThickness/Testing/Data/vtkPointAttributes.py | 2 | 3379 |
import sys
# path="/tools/Python/Python-2.7.3/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg:/tools/Python/Python-2.7.3/lib/python2.7/site-packages/pip-1.0-py2.7.egg:/tools/Python/Python-2.7.3/lib/python2.7/site-packages/VTK-6.0-py2.7.egg:/tools/Python/Python-2.7.3/lib/python2.7/site-packages/distribute-0.6.... | gpl-3.0 | 4,282,565,386,402,492,400 | 33.479592 | 762 | 0.669725 | false |
imsut/commons | src/python/twitter/pants/targets/jvm_target.py | 1 | 2954 | # ==================================================================================================
# Copyright 2011 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | apache-2.0 | -2,108,860,342,207,043,300 | 40.027778 | 100 | 0.636425 | false |
ver228/tierpsy-tracker | tierpsy/helper/misc/file_processing.py | 1 | 2071 | import os
import tables
from .misc import TABLE_FILTERS
RESERVED_EXT = ['_skeletons.hdf5',
'_trajectories.hdf5',
'_features.hdf5',
'_intensities.hdf5',
'_feat_manual.hdf5',
'_subsample.avi',
'.wcon.zip',
... | mit | -487,200,462,895,574,000 | 30.861538 | 77 | 0.551424 | false |
Stargrazer82301/CAAPR | CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/config/launch_best.py | 1 | 1734 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
# ... | mit | -1,689,315,003,347,024,400 | 58.758621 | 130 | 0.629544 | false |
Jarn/jarn.mkrelease | jarn/mkrelease/tests/test_git.py | 1 | 18107 | import unittest
import os
from os.path import join, isdir
from jarn.mkrelease.scm import Git
from jarn.mkrelease.process import Process
from jarn.mkrelease.testing import GitSetup
from jarn.mkrelease.testing import MockProcess
from jarn.mkrelease.testing import quiet
class ValidUrlTests(unittest.TestCase):
d... | bsd-2-clause | -2,791,792,132,245,524,000 | 30.490435 | 106 | 0.638317 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.