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 |
|---|---|---|---|---|---|---|---|---|---|---|
bacaldwell/ironic | ironic/drivers/modules/agent_client.py | 1 | 10718 | # Copyright 2014 Rackspace, 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 or agreed to in writin... | apache-2.0 | -6,578,982,039,283,899,000 | 43.473029 | 79 | 0.52743 | false |
rwatson/chromium-capsicum | o3d/tests/selenium/pdiff_test.py | 1 | 5162 | import os
import re
import subprocess
import unittest
import sys
import selenium_utilities
import selenium_constants
class PDiffTest(unittest.TestCase):
"""A perceptual diff test class, for running perceptual diffs on any
number of screenshots."""
def __init__(self, name, num_screenshots, screenshot_name, pd... | bsd-3-clause | -601,721,010,795,747,200 | 38.106061 | 79 | 0.603061 | false |
WilJoey/tn_ckan | ckan/migration/versions/037_role_anon_editor.py | 1 | 1728 | from sqlalchemy import *
from sqlalchemy.sql import select, and_
from migrate import *
import logging
log = logging.getLogger(__name__)
def upgrade(migrate_engine):
'''#1066 Change Visitor role on System from "reader" to "anon_editor".'''
metadata = MetaData(migrate_engine)
# get visitor ID
user = Ta... | mit | -45,108,048,257,190,770 | 35 | 101 | 0.634259 | false |
TIGER-NET/Temporal_profile_tool | ui/dlgabout.py | 1 | 2609 | # -*- coding: utf-8 -*-
"""
***************************************************************************
temporalprofileplugin.py
-------------------------------------
Copyright (C) 2014 TIGER-NET (www.tiger-net.org)
Based on Profile tool plugin:
Copyright (C) 2012 Patrice Verchere
*************... | gpl-3.0 | -6,917,851,896,494,671,000 | 41.770492 | 106 | 0.520889 | false |
nikkomidoy/project_soa | tests/engine.py | 1 | 5462 | from subprocess import call
from os import path
import hitchpostgres
import hitchselenium
import hitchpython
import hitchserve
import hitchredis
import hitchtest
import hitchsmtp
# Get directory above this file
PROJECT_DIRECTORY = path.abspath(path.join(path.dirname(__file__), '..'))
class ExecutionEngine(hitchtest... | mit | -8,286,656,587,252,442,000 | 34.23871 | 114 | 0.617906 | false |
GeoMop/GeoMop | testing_integration/Analysis/store_restore.py | 1 | 3919 | import os
import shutil
import subprocess
from client_pipeline.mj_preparation import *
from pipeline.pipeline_processor import *
# setting testing directory
test_dir = "d:/test/store_restore"
# remove old files
workspace = os.path.join(test_dir, "workspace")
shutil.rmtree(workspace, ignore_errors=True)
# copy file... | gpl-3.0 | -8,578,005,189,924,669,000 | 21.267045 | 98 | 0.615718 | false |
Xreki/Xreki.github.io | fluid/inference/inference_transpiler.py | 1 | 1937 | import os
import sys
import argparse
import paddle.fluid as fluid
def Transpile(src_dir, dst_dir, model_filename, params_filename):
place = fluid.CPUPlace()
exe = fluid.Executor(place)
inference_scope = fluid.core.Scope()
with fluid.scope_guard(inference_scope):
print "Loading inference_progr... | gpl-3.0 | -8,947,622,634,226,983,000 | 41.108696 | 102 | 0.690243 | false |
erudit/zenon | tests/unit/apps/public/auth/test_views.py | 1 | 3041 | import pytest
from unittest import mock
from django.urls import reverse
from django.contrib.auth.models import AnonymousUser
from django.contrib.contenttypes.models import ContentType
from django.test import RequestFactory
from base.test.factories import UserFactory
from base.test.factories import get_authenticated_req... | gpl-3.0 | -4,681,696,006,401,395,000 | 37.0125 | 97 | 0.710622 | false |
minireference/noBSLAnotebooks | aspynb/Linear_algebra_chapters_overview.py | 1 | 23478 | def cells():
'''
# Linear algebra overview
'''
'''
'''
'''
Linear algebra is the study of **vectors** and **linear transformations**. This notebook introduces concepts form linear algebra in a birds-eye overview. The goal is not to get into the details, but to give the reader a taste of th... | mit | -7,188,144,948,188,234,000 | 16.864536 | 343 | 0.468561 | false |
OpenVolunteeringPlatform/django-ovp-projects | ovp_projects/migrations/0014_apply.py | 1 | 1497 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-11-15 23:02
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... | agpl-3.0 | 8,839,063,111,466,270,000 | 41.771429 | 141 | 0.606546 | false |
heromod/migrid | user-projects/EpistasisOnGrid/gridepistasisgui.py | 1 | 20836 | import sys
sys.path.append("GUI/")
import epistasisviewer as viewer
import gridepistasis as epistasisControl
import wx
#import time
import os
sys.path.append("RfilesAndscripts/")
import readdata
from threading import Thread
import Configuration.epistasisconfiguration as config
exec_state = "executing"
pending_state... | gpl-2.0 | 93,554,748,704,978,140 | 35.618629 | 239 | 0.566376 | false |
gandalf221553/CodeSection | compilare/compilatore.py | 1 | 6485 | def RowChanger(row,textToSearch,textToReplace,fileToSearch):
a=1
import fileinput
tempFile = open( fileToSearch, 'r+' )
for line in fileinput.input( fileToSearch ):
if row in line :
print('done yet')
a=0
if a:
if textToReplace=="0":
textToReplace =... | mit | 6,083,077,644,254,006,000 | 38.066265 | 149 | 0.6095 | false |
broadinstitute/herc | herc/async.py | 1 | 2127 | from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor
from tornado import ioloop
from tornado.concurrent import run_on_executor
from tornado import gen
from functools import wraps
import threading
executors = {
'short': ThreadPoolExecutor(max_workers=8), # For little things to avoid blocking the ... | bsd-3-clause | 4,405,503,052,446,012,000 | 31.723077 | 108 | 0.649741 | false |
planetarymike/IDL-Colorbars | IDL_py_test/107_Multihue_Blue3.py | 1 | 8419 | from matplotlib.colors import LinearSegmentedColormap
from numpy import nan, inf
cm_data = [[0.0000208612, 0.0000200049, 0.0000198463],
[0.000378464, 0.000334228, 0.000406941],
[0.00109526, 0.000946811, 0.00122278],
[0.00213279, 0.00181849, 0.00245175],
[0.00347066, 0.002929, 0.00409539],
[0.0050945, 0.00426533, 0.0061... | gpl-2.0 | 2,496,637,532,381,972,500 | 29.726277 | 69 | 0.64295 | false |
huggingface/pytorch-transformers | src/transformers/models/funnel/__init__.py | 1 | 3752 | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | apache-2.0 | -220,078,560,576,268,740 | 32.801802 | 115 | 0.668443 | false |
ch1huizong/dj | bookmarks/bookmarks/settings.py | 1 | 4531 | """
Django settings for bookmarks project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
from djang... | unlicense | -7,262,526,610,636,818,000 | 24.59887 | 106 | 0.696314 | false |
mitocw/edx-platform | lms/djangoapps/course_api/views.py | 1 | 14554 | """
Course API Views
"""
from django.core.exceptions import ValidationError
from django.core.paginator import InvalidPage
from edx_rest_framework_extensions.paginators import NamespacedPageNumberPagination
from django.http import HttpResponseRedirect
from django.urls import reverse
from rest_framework.generics import... | agpl-3.0 | -6,341,263,580,877,471,000 | 36.413882 | 109 | 0.616669 | false |
cwolferh/heat-scratch | contrib/rackspace/rackspace/tests/test_rackspace_cloud_server.py | 1 | 27413 | #
# 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 | -159,389,097,521,806,660 | 40.346908 | 79 | 0.563163 | false |
tomwright01/AO_Registration | example.py | 1 | 1605 | import AoRegistration.AoRecording as AoRecording
import timeit
import logging
import argparse
def main():
"""
"""
logging.info('Reading file:%s','data/sample.avi')
vid = AoRecording.AoRecording(filepath='data/sample.avi')
vid.load_video()
logging.info('Starting parallel processing')
tic=tim... | mit | 5,573,137,991,126,652,000 | 29.301887 | 99 | 0.674766 | false |
rmadapur/networking-brocade | networking_brocade/mlx/ml2/fi_ni/driver_factory.py | 1 | 3345 | # Copyright 2015 Brocade Communications Systems, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | apache-2.0 | -6,562,487,558,882,334,000 | 37.448276 | 79 | 0.592526 | false |
carragom/modoboa | modoboa/admin/models/domain.py | 1 | 9835 | """Models related to domains management."""
import datetime
from django.db import models
from django.db.models.manager import Manager
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible, smart_text
from django.utils.functional import cached_property
from django.utils.transl... | isc | -5,286,976,501,532,225,000 | 32.003356 | 79 | 0.621556 | false |
nubakery/smith3 | python/relcaspt2/queue_split.py | 1 | 2189 | #!/opt/local/bin/python
import string
import os
import re
def header(n) :
return "//\n\
// BAGEL - Brilliantly Advanced General Electronic Structure Library\n\
// Filename: RelCASPT2" + n + ".cc\n\
// Copyright (C) 2014 Toru Shiozaki\n\
//\n\
// Author: Toru Shiozaki <shiozaki@northwestern.edu>\n\
// Maintainer: ... | gpl-2.0 | 3,854,441,453,575,640,600 | 26.3625 | 102 | 0.636364 | false |
hb9kns/PyBitmessage | src/bitmessagecurses/__init__.py | 1 | 54314 | # Copyright (c) 2014 Luke Montalvo <lukemontalvo@gmail.com>
# This file adds a alternative commandline interface, feel free to critique and fork
#
# This has only been tested on Arch Linux and Linux Mint
# Dependencies:
# * from python2-pip
# * python2-pythondialog
# * dialog
import os
import sys
import StringI... | mit | -7,257,180,772,672,811,000 | 50.288008 | 191 | 0.455812 | false |
cheery/essence | interpret.py | 1 | 2438 | # This file is part of Essential Editor Research Project (EERP)
#
# EERP 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.
#
# EERP is di... | gpl-3.0 | 6,000,114,890,642,886,000 | 33.338028 | 70 | 0.634126 | false |
dsweet04/rekall | rekall-core/rekall/plugins/response/renderers.py | 1 | 3128 | # Rekall Memory Forensics
# Copyright 2016 Google Inc. All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later ver... | gpl-2.0 | -267,481,225,361,954,530 | 30.59596 | 76 | 0.684783 | false |
phoebe-project/phoebe2 | tests/nosetests/test_blackbody/test_blackbody.py | 1 | 1553 | """
"""
import phoebe
from phoebe import u
import numpy as np
import matplotlib.pyplot as plt
def test_binary(plot=False):
b = phoebe.Bundle.default_binary()
# Two spherical suns
b.set_value_all('teff', value=5772.)
b.set_value('sma', component='binary', value=100.)
b.set_value('period', compone... | gpl-3.0 | 923,983,890,196,022,900 | 26.732143 | 79 | 0.641339 | false |
wojtask/CormenPy | test/test_chapter15/test_exercise15_5_1.py | 1 | 2830 | import io
import re
from contextlib import redirect_stdout
from unittest import TestCase
from hamcrest import *
from chapter15.exercise15_5_1 import construct_optimal_bst
from chapter15.textbook15_5 import optimal_bst
from test_chapter15.test_textbook15_5 import get_probabilities_for_optimal_bst
def assert_optimal_... | gpl-3.0 | 5,799,465,066,080,409,000 | 40.014493 | 93 | 0.645936 | false |
rahlk/CSC579__Computer_Performance_Modeling | simulation/proj1/tasks/task5.py | 1 | 2063 | from __future__ import division
from __future__ import print_function
import os
import sys
import functools
# Update path
root = os.path.join(os.getcwd().split('proj1')[0], 'proj1')
if root not in sys.path:
sys.path.append(root)
import numpy as np
import pandas as pd
import multiprocessing
from pdb import set_tra... | mit | 711,134,336,705,916,900 | 28.898551 | 193 | 0.654387 | false |
JackDesBwa/IrisMonitor | decoders/test.py | 1 | 1272 | #!/usr/bin/env python
import sys, os
if os.path.dirname(os.path.abspath(__file__)) in sys.path:
sys.path.remove(os.path.dirname(os.path.abspath(__file__)))
if os.path.dirname(os.path.dirname(os.path.abspath(__file__))) not in sys.path:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
impo... | mit | 8,655,242,273,459,935,000 | 27.909091 | 81 | 0.691824 | false |
gwct/grampa | lib/mul_recon.py | 1 | 12960 | #!/usr/bin/python
#############################################################################
# The main algorithmic functions for MUL-reconciliation mapping.
# Gregg Thomas
# Fall 2015, Combo algorithm implemented Spring 2016
#############################################################################
import os, i... | gpl-3.0 | 5,744,836,206,608,884,000 | 33.195251 | 122 | 0.626157 | false |
diofant/diofant | diofant/domains/domain.py | 1 | 8541 | """Implementation of :class:`Domain` class."""
import abc
import inspect
from ..core import Expr
from ..core.compatibility import HAS_GMPY
from ..polys.orderings import lex
from ..polys.polyerrors import CoercionFailed, UnificationFailed
from ..polys.polyutils import _unify_gens
from ..printing.defaults import Defaul... | bsd-3-clause | 1,690,075,486,520,412,000 | 32.104651 | 140 | 0.580026 | false |
lowRISC/ibex | vendor/google_riscv-dv/pygen/pygen_src/riscv_asm_program_gen.py | 2 | 42834 | """
Copyright 2020 Google LLC
Copyright 2020 PerfectVIPs 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 or agreed t... | apache-2.0 | -3,656,137,791,055,222,300 | 47.182227 | 100 | 0.533665 | false |
PX4/ecl | EKF/python/wind_cov_init/derivation.py | 1 | 2105 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 29 14:11:58 2019
@author: roman
"""
from sympy import *
################## Here are the variables you can change to see the effects on the cov matrix ###########################
yaw_init = 0.5
# ground speed in body frame (comes from ekf2)
groun... | bsd-3-clause | 2,197,566,679,472,614,100 | 30.432836 | 145 | 0.618527 | false |
scrapinghub/python-hubstorage | tests/test_jobsmeta.py | 1 | 3937 | """
Test job metadata
System tests for operations on stored job metadata
"""
from .hstestcase import HSTestCase
class JobsMetadataTest(HSTestCase):
def _assertMetadata(self, meta1, meta2):
def _clean(m):
return dict((k, v) for k, v in m.items() if k != 'updated_time')
meta1 = _clean... | bsd-3-clause | -4,820,492,767,777,208,000 | 36.495238 | 76 | 0.630937 | false |
franapoli/pyleaf | pyleaf/rrc.py | 1 | 5065 | # The MIT License (MIT)
# Copyright (c) 2012-2013 Francesco Napolitano, franapoli@gmail.com
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation... | mit | 4,220,487,148,200,134,000 | 31.261146 | 83 | 0.576308 | false |
cjayb/mne-python | mne/preprocessing/ssp.py | 3 | 14022 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
#
# License: BSD (3-clause)
import copy as cp
import numpy as np
from ..epochs import Epochs
from ..proj import compute_proj_evoked, compute_proj_ep... | bsd-3-clause | 1,329,410,272,909,505,500 | 37.726519 | 79 | 0.580569 | false |
cs-au-dk/Artemis | WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py | 1 | 13426 | # Copyright (C) 2010 Google Inc. 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 list of conditions and the f... | gpl-3.0 | 2,749,226,560,659,946,500 | 63.859903 | 240 | 0.734619 | false |
breakwang/pykit | jobq/jobq.py | 1 | 3605 | import logging
import sys
import threading
import time
import types
if sys.version_info[0] == 2:
import Queue
else:
import queue as Queue
logger = logging.getLogger(__name__)
class EmptyRst(object):
pass
class Finish(object):
pass
def run(input_it, workers, keep_order=False, timeout=None, probe=... | mit | 250,652,157,187,175,260 | 19.027778 | 73 | 0.5043 | false |
robert-b-clarke/nre-darwin-py | nredarwin/cli.py | 1 | 1612 | import argparse
from nredarwin.webservice import DarwinLdbSession
import csv
import sys
from tabulate import tabulate
from functools import partial
def rows_to_display(station_board):
"""
Iterator for tabular output of board
"""
yield (("Platform", "Destination", "Scheduled", "Due"))
for service i... | bsd-3-clause | 8,184,569,043,009,174,000 | 28.851852 | 88 | 0.651985 | false |
mikeh77/mi-instrument | mi/idk/test/test_git.py | 2 | 2743 | #!/usr/bin/env python
"""
@package mi.idk.test.test_git
@file mi.idk/test/test_git.py
@author Bill French
@brief test git
"""
__author__ = 'Bill French'
__license__ = 'Apache 2.0'
from os.path import basename, dirname
from os import makedirs,chdir, system
from os import remove
from os.path import exists
import sys
... | bsd-2-clause | -6,532,111,846,827,004,000 | 23.936364 | 72 | 0.629967 | false |
GraphProcessor/CommunityDetectionCodes | Algorithms/2014-Heat-Kernel/src_python/demo_files/yche_numerical_linear_algebra_exp.py | 1 | 2192 | from __future__ import print_function
import numpy as np
def demo_gauss_sedel_method():
ITERATION_LIMIT = 1000
# initialize the matrix
A = np.array([[10., -1., 2., 0.],
[-1., 11., -1., 3.],
[2., -1., 10., -1.],
[0.0, 3., -1., 8.]])
# initialize the... | gpl-2.0 | -273,464,835,275,803,520 | 24.488372 | 74 | 0.447993 | false |
centrofermi/e3pipe | dst/E3DstWeatherTree.py | 1 | 1873 | #!/usr/bin/env python
# *********************************************************************
# * Copyright (C) 2014 Luca Baldini (luca.baldini@pi.infn.it) *
# * *
# * For the license terms see the file LICENSE, distributed *
# * along ... | gpl-3.0 | -5,012,376,391,257,592,000 | 32.446429 | 73 | 0.577149 | false |
borgarlie/TDT4501-Specialization-Project | research/calculate_accuracy.py | 1 | 2242 | import numpy as np
from tensorboardX import SummaryWriter
from seq2seq_summarization.globals import *
from classifier.train_classifier import get_predictions, calculate_accuracy, create_single_article_category_list
from research.train import split_category_and_article, category_from_string, evaluate
def test_accurac... | mit | -9,058,002,817,343,573,000 | 39.035714 | 113 | 0.702498 | false |
icebreaker/dotfiles | gnome/gnome2/gedit/plugins.symlink/classbrowser/parser_ruby.py | 1 | 14401 | # -*- coding: utf-8 -*-
# Copyright (C) 2006 Frederic Back (fredericback@gmail.com)
# Copyright (C) 2007 Kristoffer Lundén (kristoffer.lunden@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 Fou... | mit | 4,563,122,297,649,822,700 | 33.615385 | 106 | 0.491319 | false |
DOV-Vlaanderen/pydov | tests/test_util_location.py | 1 | 18538 | """Module grouping tests for the pydov.util.location module."""
import pytest
from owslib.fes import (
And,
Or,
Not,
)
from pydov.util.location import (
Box,
Point,
Equals,
Disjoint,
Touches,
Within,
Intersects,
WithinDistance,
GmlObject
)
from owslib.etree import etree
... | mit | -1,593,256,956,958,755,600 | 37.144033 | 79 | 0.600766 | false |
rho2/30DaysOfCode | day18.py | 1 | 1039 | import sys
class Solution:
def __init__(self):
self.stack = list()
self.queue = list()
def pushCharacter(self, char):
self.stack.append(char)
def popCharacter(self):
return(self.stack.pop(-1))
def enqueueCharacter(self, char):
self.queue.append(char)
... | mit | -2,207,952,508,544,627,000 | 22.088889 | 54 | 0.647738 | false |
sealevelresearch/tide-wrangler | tide_wrangler/scratch/convert_garston_to_csv.py | 1 | 1918 | #!/usr/bin/env python
import pytz
import datetime
import csv
from os import path
from collections import namedtuple
Row = namedtuple('Row', 'when,height_m')
DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
_NAIVE_DATETIME_FORMAT = '%y%m%dT%H:%M:00Z'
_FIELDNAMES = ['datetime', 'observed_sea_level']
def main(filenames):
f... | mit | -227,173,322,786,278,400 | 26.797101 | 70 | 0.616788 | false |
z-plot/z-plot | examples/barplots/manybars.py | 1 | 1257 | #! /usr/bin/env python
import sys
from zplot import *
bartypes = [('hline', 1, 1),
('vline', 1, 1),
('hvline', 1, 1),
('dline1', 1, 2),
('dline2', 1, 2),
('dline12', 0.5, 2),
('circle', 1, 2),
('square', 1, 1),
('triang... | bsd-3-clause | -2,772,117,638,909,082,600 | 22.716981 | 76 | 0.461416 | false |
binhqnguyen/lena | test.py | 1 | 75970 | #! /usr/bin/env python26
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
#
# Copyright (c) 2009 University of Washington
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Fre... | gpl-2.0 | -8,879,720,097,523,576,000 | 39.474161 | 218 | 0.576649 | false |
urandu/gumbo-parser | python/gumbo/gumboc.py | 1 | 12165 | # Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 2,796,645,549,917,822,500 | 27.159722 | 80 | 0.63469 | false |
T3ddy-Bear/PiChat | requests/models.py | 1 | 33804 | # -*- coding: utf-8 -*-
"""
requests.models
~~~~~~~~~~~~~~~
This module contains the primary objects that power Requests.
"""
import collections
import datetime
import sys
from io import UnsupportedOperation
from ._internal_utils import to_native_string, unicode_is_ascii
from .auth import HTTPBasicAuth
from .compat... | apache-2.0 | 8,118,881,208,333,657,000 | 35.192719 | 119 | 0.582475 | false |
aldarionsevero/datalogger-ROS-rasp | sensors/botbook_mcp3002.py | 1 | 2047 | # botbook_mcp3002.py - read analog values from mcp3002
# (c) BotBook.com - Karvinen, Karvinen, Valtokari
# Installing spidev:
# sudo apt-get update
# sudo apt-get -y install git python-dev
# git clone https://github.com/doceme/py-spidev.git
# cd py-spidev/
# sudo python setup.py install
import spidev ... | mit | -913,414,466,716,447,900 | 30.492063 | 75 | 0.622374 | false |
kasahorow/kwl | kwl2text/parser_test.py | 1 | 15858 | #!/usr/bin/env python
# coding: utf-8
import kwl2text
import semantics as s
import unittest
class KWLTest(unittest.TestCase):
def setUp(self):
self.psr = kwl2text.kwl2textParser()
self.sem = s.Semantics()
self.maxDiff = None
self.adj = 'adj:red'
self.nom = 'nom:food'
def testToken(self):
... | bsd-2-clause | -9,083,434,866,117,134,000 | 46.76506 | 185 | 0.480388 | false |
maferelo/saleor | saleor/graphql/webhook/resolvers.py | 1 | 1820 | import graphene
from graphql_jwt.exceptions import PermissionDenied
from ...core.permissions import WebhookPermissions
from ...webhook import models, payloads
from ...webhook.event_types import WebhookEventType
from ..utils import sort_queryset
from .sorters import WebhookSortField
from .types import Webhook, WebhookE... | bsd-3-clause | 3,332,239,013,513,664,000 | 36.142857 | 79 | 0.734066 | false |
mattmillr/utaka | src/rest/UtakaBucket.py | 1 | 7437 | #Copyright 2009 Humanitarian International Services Group
#
#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 | -5,196,733,002,555,355,000 | 36.756345 | 112 | 0.751513 | false |
krisb78/django-redactorjs | testproject/settings.py | 1 | 5391 | import os
# Django settings for testproject project.
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2'... | bsd-3-clause | -4,929,814,843,324,972,000 | 31.672727 | 109 | 0.674643 | false |
auduny/chains | lib/chains/services/sonos/__init__.py | 1 | 7848 | from threading import Timer
import chains.service
from chains.common import log
import time, datetime, re, copy
from Queue import Empty
from soco import SoCo, discover
from soco.events import event_listener
class SonosService(chains.service.Service):
def onInit(self):
# Discover Sonos players
sel... | gpl-2.0 | -5,247,336,795,785,983,000 | 29.418605 | 89 | 0.55237 | false |
mtougeron/python-openstacksdk | examples/network/delete.py | 1 | 1721 | # 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 under t... | apache-2.0 | -5,908,766,536,051,304,000 | 25.075758 | 75 | 0.662987 | false |
zaubermaerchen/imas_cg_api | api/skill/serializer.py | 1 | 1189 | # coding: utf-8
from rest_framework import serializers
from data.models import Skill, SkillValue
class ListSerializer(serializers.ModelSerializer):
skill_value_list = serializers.SerializerMethodField(read_only=True)
class Meta:
model = Skill
fields = [
'skill_id',
'ta... | mit | -7,853,903,863,662,876,000 | 26.022727 | 72 | 0.619008 | false |
verloop/rasa_nlu | rasa_nlu/components.py | 1 | 16133 | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import logging
import os
from collections import defaultdict
from builtins import object
import inspect
from typing import Any
from typing import Dict
from typing impor... | apache-2.0 | -8,919,818,506,342,547,000 | 42.602703 | 120 | 0.662431 | false |
vup1120/oq-risklib | openquake/commonlib/writers.py | 1 | 9803 | # Copyright (c) 2010-2014, GEM Foundation.
#
# NRML 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 the License, or
# (at your option) any later version.
#
# NRML is distributed in t... | agpl-3.0 | 344,428,272,819,919,700 | 32.803448 | 95 | 0.571254 | false |
tranlyvu/autonomous-vehicle-projects | Vehicle Detection/src/vehicle_detection.py | 1 | 14396 | import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import cv2
import glob
from skimage.feature import hog
from skimage import color, exposure
import random
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.svm im... | apache-2.0 | -4,546,993,512,947,049,500 | 43.27044 | 128 | 0.566199 | false |
Poofjunior/dxf2gcode | core/shape.py | 1 | 23737 | # -*- coding: utf-8 -*-
############################################################################
#
# Copyright (C) 2008-2015
# Christian Kohlöffel
# Vinzenz Schulz
# Jean-Paul Schouwstra
#
# This file is part of DXF2GCODE.
#
# DXF2GCODE is free software: you can redistribute it and/or mod... | gpl-3.0 | 24,751,064,062,946,144 | 36.975369 | 127 | 0.56686 | false |
tomaaron/raiden | raiden/tests/utils/tester.py | 1 | 4931 | # -*- coding: utf-8 -*-
from ethereum import tester
from ethereum.utils import decode_hex
from raiden.blockchain.abi import (
CHANNEL_MANAGER_ABI,
NETTING_CHANNEL_ABI,
HUMAN_TOKEN_ABI,
REGISTRY_ABI,
)
from raiden.channel import Channel, ChannelEndState
from raiden.utils import privatekey_to_address
c... | mit | 5,570,702,080,133,079,000 | 29.251534 | 92 | 0.683634 | false |
ryfeus/lambda-packs | Keras_tensorflow_nightly/source2.7/tensorflow/contrib/libsvm/ops/gen_libsvm_ops.py | 1 | 6994 | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: libsvm_ops.cc
"""
import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _context
from t... | mit | 5,052,128,959,870,387,000 | 36.005291 | 420 | 0.659708 | false |
demvher/pythondotorg | jobs/views.py | 1 | 8432 | from braces.views import LoginRequiredMixin, GroupRequiredMixin
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.db.models import Q
from django.http import Http404
from django.shortcuts import get_object_or_404, redirect
from django.views.generic import ListView, DetailView, ... | apache-2.0 | -7,756,300,799,939,174,000 | 29.330935 | 97 | 0.635674 | false |
rackerlabs/heat-pyrax | tests/unit/test_cloud_cdn.py | 1 | 2706 | import unittest
import mock
from pyrax.cloudcdn import CloudCDNClient
from pyrax.cloudcdn import CloudCDNFlavor
from pyrax.cloudcdn import CloudCDNFlavorManager
from pyrax.cloudcdn import CloudCDNService
from pyrax.cloudcdn import CloudCDNServiceManager
class CloudCDNTest(unittest.TestCase):
@mock.patch("pyrax.... | apache-2.0 | -5,282,767,086,842,360,000 | 35.08 | 70 | 0.673688 | false |
Winnetou/ManuTironis | utils/ngram_getter.py | 1 | 1156 | # this one doesn't crawl the web, it just and only
# takes xml from
import os
import psycopg2
import uni_to_beta
import xml
import xmlrpc
connect_manu = psycopg2.connect("dbname=manu_tironis user=quellen password=quellen")
manu_cursor = connect_manu.cursor()
def get_raw_text():
pass
def translate(raw_text):
... | cc0-1.0 | -7,046,498,592,810,975,000 | 24.130435 | 84 | 0.605536 | false |
docwalter/py3status | py3status/modules/uptime.py | 1 | 4335 | # -*- coding: utf-8 -*-
"""
Display system uptime.
Configuration parameters:
format: display format for this module
(default 'up {days} days {hours} hours {minutes} minutes')
Format placeholders:
{decades} decades
{years} years
{weeks} weeks
{days} days
{hours} hours
{minu... | bsd-3-clause | -947,488,740,994,104,300 | 32.091603 | 86 | 0.58985 | false |
miracle2k/onkyo-eiscp | setup.py | 1 | 1149 | #!/usr/bin/env python
# coding: utf8
from setuptools import setup, find_packages
# Get long_description from README
import os
here = os.path.dirname(os.path.abspath(__file__))
f = open(os.path.join(here, 'README.rst'))
long_description = f.read().strip()
f.close()
setup(
name='onkyo-eiscp',
version='1.2.8',
... | mit | 784,736,929,684,786,300 | 30.888889 | 73 | 0.641986 | false |
abztrakt/labtracker | Machine/migrations/0006_auto__add_field_item_unusable__chg_field_item_mac3__chg_field_item_mac.py | 1 | 12585 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Item.unusable'
db.add_column('Machine_item', 'unusable', self.gf('django.db.models.fields.... | apache-2.0 | 8,021,627,425,522,244,000 | 68.916667 | 182 | 0.548669 | false |
opennode/waldur-mastermind | src/waldur_mastermind/marketplace_checklist/admin.py | 1 | 1428 | from django.contrib import admin
from import_export import admin as import_export_admin
from modeltranslation import admin as modeltranslation_admin
from . import models
from .import_export_resources import ChecklistResource
class CategoryAdmin(import_export_admin.ImportExportModelAdmin):
fields = ('icon', 'name... | mit | 3,977,542,510,639,444,000 | 30.043478 | 88 | 0.757003 | false |
cylc/cylc | cylc/flow/wallclock.py | 1 | 10726 | # THIS FILE IS PART OF THE CYLC SUITE ENGINE.
# Copyright (C) NIWA & British Crown (Met Office) & Contributors.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License,... | gpl-3.0 | -7,570,600,737,711,770,000 | 40.573643 | 79 | 0.658214 | false |
openweave/happy | happy/HappyProcessStart.py | 1 | 15877 | #!/usr/bin/env python3
#
# Copyright (c) 2015-2017 Nest Labs, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lice... | apache-2.0 | 3,041,653,095,024,345,000 | 38.009828 | 124 | 0.552749 | false |
TaskEvolution/Task-Coach-Evolution | taskcoach/tests/unittests/RenderTest.py | 1 | 9601 | # -*- coding: utf-8 -*-
'''
Task Coach - Your friendly task manager
Copyright (C) 2004-2013 Task Coach developers <developers@taskcoach.org>
Task Coach is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either vers... | gpl-3.0 | 5,923,536,410,789,911,000 | 37.709677 | 81 | 0.636042 | false |
recombinators/worker | models.py | 1 | 9335 | import os
import transaction
from zope.sqlalchemy import ZopeTransactionExtension
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, UnicodeText, Boolean, DateTime
from datetime impo... | mit | 3,469,872,206,858,366,500 | 34.359848 | 83 | 0.532191 | false |
belokop-an/agenda-tools | code/MaKaC/webinterface/rh/errors.py | 1 | 2685 | import smtplib
import MaKaC.webinterface.pages.errors as errors
from MaKaC.webinterface.rh.base import RH
from MaKaC.common import Config
class RHErrorReporting(RH):
"""Handles the reporting of errors to the Agenda support.
This handler is quite special as it has to handle the reporting of
... | gpl-2.0 | -3,915,548,017,531,616,000 | 40.953125 | 127 | 0.580261 | false |
bnrubin/userv | tests/test_encyclopedia.py | 1 | 2665 | from flask import request, url_for
from userv.encyclopedia.models import Fact
from pprint import pprint
from datetime import datetime, timezone
import arrow
import json
def test_factoids_all_one(session, db,app, client):
now = datetime.now(timezone.utc)
anow = arrow.get(now)
f = Fact(id=1, name='foo', a... | mit | 1,062,741,826,242,034,800 | 27.351064 | 81 | 0.512195 | false |
MKLab-ITI/category-based-classification | OobFusion_2D.py | 1 | 19633 | '''
OobFusion_2D.py
This code uses two different types of feature vectors (word2vec and n-grams) on the training set to train two random forests.
Probabilities of these two models are then fused by weighted averaging to calculate the final predictions.
'''
import nltk, re, os, pickle, time
import numpy as np
from gen... | apache-2.0 | -1,476,432,783,024,438,000 | 37.877228 | 212 | 0.680538 | false |
RihardsT/forgettables | Languages_Programming/Python/python.py | 1 | 8335 | Simple Server
python3 -m http.server # 8000 # --bind 127.0.0.1
python2 -m SimpleHTTPServer # 8000
Python'ā atstares ir svarīgas.'
#Single line coment
""" Multiline comment.
Apostrofi apzīmē string, tāpat kā pēdiņas. \ zīme ļauj to labot.
There\'s a snake. Ir Python'am saprotami.
"""
Operators: = - * / ** % // #// flo... | unlicense | -7,686,488,076,607,635,000 | 33.894068 | 99 | 0.708682 | false |
ninegrid/dotfiles-vim | bundle/vim-orgmode/ftplugin/orgmode/plugins/EditCheckbox.py | 1 | 7316 | # -*- coding: utf-8 -*-
import vim
from orgmode._vim import echo, echom, echoe, ORGMODE, apply_count, repeat, insert_at_cursor, indent_orgmode
from orgmode.menu import Submenu, Separator, ActionEntry, add_cmd_mapping_menu
from orgmode.keybinding import Keybinding, Plug, Command
from orgmode.liborgmode.checkboxes impor... | unlicense | -3,455,821,195,089,854,000 | 26.400749 | 107 | 0.6807 | false |
juergspaak/EF-at-invariant-richness | plot_figS5.py | 1 | 1315 | """
@author: J.W. Spaak
This programm plots Fig. S4
"""
from plot_functions import bars
import community_construction_repl as repl
#compute DeltaEF/EF for the different communities and different cases
EF_data = {key: repl.delta_EF_lin(*repl.para[key]) for key in repl.para.keys()}
# species have different f
EF_data... | mit | -6,361,027,837,631,320,000 | 32.717949 | 79 | 0.644867 | false |
autosportlabs/RaceCapture_App | autosportlabs/racecapture/views/dashboard/widgets/digitalgauge.py | 1 | 2538 | #
# Race Capture App
#
# Copyright (C) 2014-2017 Autosport Labs
#
# This file is part of the Race Capture App
#
# This 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 ... | gpl-3.0 | 1,654,545,606,196,182,300 | 32.394737 | 102 | 0.657998 | false |
jehine-MSFT/azure-storage-python | azure/storage/sharedaccesssignature.py | 1 | 35228 | #-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apa... | apache-2.0 | -6,093,724,331,806,510,000 | 51.73503 | 113 | 0.634105 | false |
bswartz/manila | manila/api/v2/share_networks.py | 1 | 14622 | # Copyright 2014 NetApp
# 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 applic... | apache-2.0 | -7,893,771,970,282,250,000 | 41.382609 | 78 | 0.576323 | false |
tsvstar/vk_downloader | pytube/api.py | 1 | 16387 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from models import Video
from utils import safe_filename
from utils import MultipleObjectsReturned, YouTubeError, CipherError
try:
from urllib2 import urlopen
from urlparse import urlparse, parse_qs, unquote
except ImportErro... | mit | 2,981,604,777,545,081,300 | 33.71822 | 118 | 0.505279 | false |
toddpalino/kafka-tools | tests/tools/assigner/test_batcher.py | 1 | 2277 | import unittest
from kafka.tools.exceptions import ProgrammingException
from kafka.tools.assigner.batcher import split_partitions_into_batches
from kafka.tools.models.broker import Broker
from kafka.tools.models.topic import Topic
from kafka.tools.assigner.models.reassignment import Reassignment
from kafka.tools.assig... | apache-2.0 | -1,331,200,517,419,598,300 | 44.54 | 113 | 0.713658 | false |
Southpaw-TACTIC/TACTIC | src/pyasm/common/js_wrapper.py | 1 | 5678 | ###########################################################
#
# Copyright (c) 2015, Southpaw Technology
# All Rights Reserved
#
# PROPRIETARY INFORMATION. This software is proprietary to
# Southpaw Technology, and is not to be reproduced, transmitted,
# or disclosed in any way without written permi... | epl-1.0 | 5,923,317,514,424,031,000 | 18.312925 | 75 | 0.499648 | false |
gecos-team/gecosws-config-assistant | gecosws_config_assistant/view/LogTerminalDialog.py | 1 | 4670 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
# This file is part of Guadalinex
#
# This software 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, ... | gpl-2.0 | -4,645,901,874,535,072,000 | 27.469512 | 74 | 0.615335 | false |
danbradham/nodify | nodify/view.py | 1 | 3580 | '''
view
====
Defines a view class for maintaining a graphics scene.
'''
import math
from PySide import QtCore, QtGui
class View(QtGui.QGraphicsView):
'''A View supporting smooth panning and zooming. Use Alt+Left Mouse to
pan and Alt+Middle or Right Mouse to zoom. Dragging without Alt drags out
a selecti... | mit | 3,127,646,211,352,622,600 | 29.598291 | 78 | 0.609777 | false |
gpoisoned/hars-app | server/server.py | 1 | 3487 | from flask import Flask, jsonify
import threading
import zmq
import time
import logging
from Queue import Queue
# Clear the Log file if it exists
with open("server.log", "w"):
pass
logging.basicConfig(filename='server.log',level=logging.DEBUG,\
format='%(levelname)s:%(asctime)s %(message)s', datefmt='%m/%... | apache-2.0 | 796,355,831,453,210,900 | 31.588785 | 94 | 0.629481 | false |
jiasir/pycs | vulpo/resultset.py | 1 | 6559 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modi... | mit | -787,891,861,120,344,300 | 36.695402 | 79 | 0.606495 | false |
ceph/ceph-ansible | tests/functional/tests/rbd-mirror/test_rbd_mirror.py | 1 | 1848 | import pytest
import json
class TestRbdMirrors(object):
@pytest.mark.no_docker
def test_rbd_mirror_is_installed(self, node, host):
assert host.package("rbd-mirror").is_installed
def test_rbd_mirror_service_enabled_and_running(self, node, host):
service_name = "ceph-rbd-mirror@rbd-mirror.... | apache-2.0 | 4,185,165,945,069,044,000 | 41.976744 | 216 | 0.605519 | false |
brchiu/tensorflow | tensorflow/contrib/distribute/python/cross_device_ops_test.py | 1 | 23595 | # Copyright 2018 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 | 8,392,647,393,940,823,000 | 40.394737 | 81 | 0.625556 | false |
foggy0400/pyrat | source/httprequest.py | 1 | 1139 | ######################################################################
# pyrat - An Eve Online PvE analyser
# Copyright (C) 2017 Instigo Pares [SUAD]
# 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 Foundati... | gpl-3.0 | -5,878,944,023,011,555,000 | 39.678571 | 70 | 0.673398 | false |
calisthenics/site | bin/wikipedia-bodyweight-exercise.py | 1 | 4818 | #!/usr/bin/env python
# coding: utf-8
import os
import re
import requests
from datetime import datetime
from bs4 import BeautifulSoup
from logya.core import Logya
from logya.path import slugify, target_file
from logya.writer import encode_content, write
logya = Logya()
logya.init_env()
url = 'https://en.wikipedia.o... | mit | 3,966,870,147,894,004,000 | 31.126667 | 127 | 0.547945 | false |
gdorion/advent-of-code | 2015/python/Day14/race.py | 1 | 1703 | #!/bin/env python
#
# Adventofcode.com
#
# Author : Guillaume Dorion
# Email : gdorion@gmail.com
#
class Reindeer(object):
def __init__(self, name, speed, flightTime, restTime):
self.name = name
self.speed = speed
self.flightTime = flightTime
self.restTime = restTime
#... | mit | -1,761,703,601,739,938,600 | 23.328571 | 94 | 0.600117 | false |
sahilshekhawat/ApkDecompiler | javadecompiler/Krakatau/java/ast2.py | 1 | 3633 | from . import ast
from .stringescape import escapeString as escape
class MethodDef(object):
def __init__(self, class_, flags, name, desc, retType, paramDecls, body):
self.flagstr = flags + ' ' if flags else ''
self.retType, self.paramDecls = retType, paramDecls
self.body = body
self... | gpl-2.0 | -7,945,223,551,241,829,000 | 39.831461 | 100 | 0.56262 | false |
apieum/inxpect | inxpect/expect/property.py | 1 | 1966 | # -*- coding: utf8 -*-
from .chain import AndChain
from .operator import *
from .should import Should, ShouldNot
class DefaultProperty(object):
def __init__(self, getter=None, returns=AndChain):
self.should = Should(getter, returns)
self.should_not = ShouldNot(getter, returns)
def equal_to(se... | lgpl-3.0 | -9,122,398,435,168,640,000 | 31.229508 | 65 | 0.671414 | false |
projectatomic/atomic-reactor | atomic_reactor/plugins/pre_reactor_config.py | 1 | 22264 | """
Copyright (c) 2017, 2019 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
from __future__ import absolute_import
from copy import deepcopy
from atomic_reactor.utils.cachito import CachitoAPI
from atomic_react... | bsd-3-clause | 1,514,774,890,125,996,000 | 32.99084 | 99 | 0.652264 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.