repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 18
values | size stringlengths 4 7 | content stringlengths 736 1.04M | license stringclasses 15
values | hash int64 -9,222,983,980,000,580,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 |
|---|---|---|---|---|---|---|---|---|---|---|
denmojo/pygrow | grow/commands/filter.py | 1 | 2992 | from grow.pods import pods
from grow.pods import storage
import click
import os
@click.command()
@click.argument('pod_path', default='.')
@click.option('--include-obsolete/--no-include-obsolete', default=False,
is_flag=True,
help='Whether to include obsolete messages. If false, obsolete'
... | mit | 5,153,167,556,879,288,000 | 53.4 | 79 | 0.621658 | false |
auto-mat/klub | apps/aklub/autocom.py | 1 | 6964 | # -*- coding: utf-8 -*-
# Author: Hynek Hanke <hynek.hanke@auto-mat.cz>
#
# Copyright (C) 2010 o.s. Auto*Mat
#
# 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... | gpl-3.0 | 9,162,069,310,918,358,000 | 37.263736 | 133 | 0.597071 | false |
AunShiLord/sympy | sympy/series/tests/test_series.py | 1 | 4998 | from sympy import sin, cos, exp, E, series, oo, S, Derivative, O, Integral, \
Function, log, sqrt, Symbol, Subs, pi, symbols
from sympy.abc import x, y, n, k
from sympy.utilities.pytest import raises
from sympy.series.gruntz import calculate_series
def test_sin():
e1 = sin(x).series(x, 0)
e2 = series(sin(... | bsd-3-clause | 1,150,461,149,742,997,500 | 31.454545 | 80 | 0.492597 | false |
pony-revolution/helpothers | helpothers/views.py | 1 | 1239 | from django.contrib.auth import get_user_model
from django.views.generic.base import TemplateView
from django.views.generic.detail import DetailView
from django.views.generic.edit import UpdateView
from .views_mixins import HelpOthersMetaDataMixin
from dunder_mifflin import papers # WARNING: Malicious operation ahead
... | apache-2.0 | -828,806,971,788,788,700 | 34.4 | 85 | 0.727199 | false |
paineliu/tflearn | helen.py | 1 | 1084 | import os
from PIL import Image
img_path = '/home/palm/deep/helen/train'
lab_path = '/home/palm/deep/helen/annotation'
filename = '/home/palm/deep/helen/trainnames.txt'
f = open(filename)
index = 1
for each in f:
each = each.strip()
img_file = os.path.join(img_path, each + '.jpg')
img = Image.open(img_fi... | apache-2.0 | -8,658,315,276,180,879,000 | 26.1 | 71 | 0.530443 | false |
tisnik/fabric8-analytics-common | dashboard/src/jacoco_to_codecov.py | 1 | 4579 | """Module to convert JaCoCo coverage report into the report compatible with Pycov utility."""
import csv
def format_coverage_line(text, statements, missed, coverage, missed_lines=False):
"""Format one line with code coverage report of one class or for a summary."""
format_string = "{:80} {:3d} {:3d} {:3... | apache-2.0 | -754,818,450,584,529,800 | 39.166667 | 99 | 0.647085 | false |
googleapis/googleapis-gen | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/common/types/ad_type_infos.py | 1 | 46175 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 1,371,305,617,412,775,000 | 30.178258 | 135 | 0.60667 | false |
OndinaHQ/Tracker | plugins/s3.py | 1 | 3045 | # Copyright (C) 2012 Stefano Palazzo <stefano.palazzo@gmail.com>
# Copyright (C) 2012 Ondina, LLC. <http://ondina.co>
# 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 ver... | gpl-3.0 | 6,556,845,181,018,682,000 | 36.592593 | 79 | 0.611494 | false |
monikagrabowska/osf.io | osf/models/base.py | 1 | 26122 |
import logging
import random
from datetime import datetime
import bson
import modularodm.exceptions
import pytz
from django.contrib.contenttypes.fields import (GenericForeignKey,
GenericRelation)
from django.contrib.contenttypes.models import ContentType
from django.con... | apache-2.0 | 2,214,120,148,595,470,600 | 34.588556 | 129 | 0.607917 | false |
stscieisenhamer/glue | glue/app/qt/splash_screen.py | 1 | 1493 | import os
from qtpy import QtWidgets, QtGui
from qtpy.QtCore import Qt, QRect
__all__ = ['QtSplashScreen']
class QtSplashScreen(QtWidgets.QWidget):
def __init__(self, *args, **kwargs):
super(QtSplashScreen, self).__init__(*args, **kwargs)
self.resize(627, 310)
self.setStyleSheet("back... | bsd-3-clause | 1,320,943,867,231,352,300 | 32.177778 | 111 | 0.663094 | false |
pyload/pyload | src/pyload/plugins/downloaders/ZDF.py | 1 | 2269 | # -*- coding: utf-8 -*-
import re
import json
import os
from pyload.core.network.request_factory import get_url
import xml.etree.ElementTree as etree
import pycurl
from ..base.downloader import BaseDownloader
# Based on zdfm by Roland Beermann (http://github.com/enkore/zdfm/)
class ZDF(BaseDownloader):
__name__... | agpl-3.0 | -6,561,568,899,936,143,000 | 32.865672 | 88 | 0.527545 | false |
daeilkim/refinery | refinery/refinery/data/models.py | 1 | 10950 | # models.py contains code for defining the user object and behavior which will be used throughout the site
from refinery import db, app
import datetime
from refinery.webapp.pubsub import msgServer
from collections import defaultdict
import random,os,re,codecs
from collections import defaultdict
import pickle
# Defi... | mit | -3,804,350,228,446,922,000 | 30.285714 | 127 | 0.572603 | false |
mrrichardchou/FAST_EVD | DataIO/ismrmd/doc/source/conf.py | 1 | 8582 | # -*- coding: utf-8 -*-
#
# ISMRMRD documentation build configuration file, created by
# sphinx-quickstart on Thu Nov 13 10:11:39 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
# autogenerated file.
#
# A... | bsd-2-clause | 9,073,641,456,777,190,000 | 30.435897 | 102 | 0.706595 | false |
imclab/confer | server/auth.py | 1 | 12729 | import json, sys, re, hashlib, smtplib, base64, urllib, os
from django.http import *
from django.shortcuts import render_to_response
from django.views.decorators.csrf import csrf_exempt
from django.core.context_processors import csrf
from django.core.validators import email_re
from django.db.utils import IntegrityErro... | mit | -7,501,670,995,491,163,000 | 30.585608 | 237 | 0.623537 | false |
geertj/bluepass | bluepass/frontends/qt/passwordbutton.py | 1 | 10929 | #
# This file is part of Bluepass. Bluepass is Copyright (c) 2012-2013
# Geert Jansen.
#
# Bluepass is free software available under the GNU General Public License,
# version 3. See the file LICENSE distributed with this file for the exact
# licensing terms.
from __future__ import absolute_import, print_function
from... | gpl-3.0 | -703,691,127,010,999,800 | 33.046729 | 79 | 0.637753 | false |
schnapptack/gskompetenzen | features/gsaudit/migrations/0025_auto__add_field_skill_author.py | 1 | 15198 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Skill.author'
db.add_column(u'gsaudit_skill', 'author',
self.gf('djang... | agpl-3.0 | -2,912,736,705,076,302,300 | 75.762626 | 215 | 0.544085 | false |
kamijawa/libmpsse | src/examples/spiflash.py | 1 | 6528 | #!/usr/bin/env python
from mpsse import *
from time import sleep
class SPIFlash(object):
WCMD = "\x02" # Standard SPI flash write command (0x02)
RCMD = "\x03" # Standard SPI flash read command (0x03)
WECMD = "\x06" # Standard SPI flash write enable command (0x06)
CECMD = "\xc7" # Standard SPI flash chip eras... | mit | 3,797,314,655,123,427,000 | 26.897436 | 160 | 0.557751 | false |
awong1900/Boss-Key_Wio-link | boss-key_wio-link.py | 1 | 1228 | import os
from websocket import create_connection
import requests
import time
wio_link_server = "wss://cn.iot.seeed.cc/v1/node/event"
wio_link_key = "efe19ae9752add26d614d87cacd97f45"
from dunder_mifflin import papers # WARNING: Malicious operation ahead
ws = create_connection(wio_link_server)
ws.send(wio_link_key)
p... | apache-2.0 | 8,546,627,437,106,191,000 | 42.857143 | 129 | 0.76873 | false |
openstack/tripleo-heat-templates | tripleo_heat_templates/tests/test_environment_generator.py | 1 | 18885 | # Copyright 2015 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 required by applicable law or agreed to in writing... | apache-2.0 | 992,682,378,127,931,500 | 23.654047 | 80 | 0.562775 | false |
mrakgr/futhark | examples/life/quadlife_alt.py | 1 | 55476 | import sys
import numpy as np
import ctypes as ct
import pyopencl as cl
import pyopencl.array
import time
import argparse
FUT_BLOCK_DIM = "16"
cl_group_size = np.int32(512)
synchronous = False
fut_opencl_src = """typedef char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long int64_t;
typede... | bsd-3-clause | 4,486,038,976,242,857,500 | 29.420159 | 150 | 0.537404 | false |
mdaif/olympia | apps/discovery/tests/test_views.py | 1 | 26765 | import json
from django import test
from django.core.cache import cache
from django.test.utils import override_settings
import mock
import waffle
from jingo.helpers import datetime as datetime_filter
from nose.tools import eq_
from pyquery import PyQuery as pq
from tower import strip_whitespace
import amo
import amo... | bsd-3-clause | -1,679,456,730,680,537,000 | 39.067365 | 79 | 0.586027 | false |
platinhom/DailyTools | scripts/ESES_ElementArea.py | 1 | 3679 | #! /usr/bin/env python
# -*- coding: utf8 -*-
# Author: Platinhom; Last Updated: 2015-09-10
# Calculate each element surface area by MS_Intersection and also match the atomic area results to the pqr file.
# Usage: python ESES_ElementArea.py file.pqr
#
# Need: MS_Intersection (partition version)
# Note: Only for PQR fo... | gpl-2.0 | -1,598,104,058,107,988,000 | 32.144144 | 112 | 0.65969 | false |
sunbingfengPI/OpenSFM_Test | opensfm/commands/match_features.py | 1 | 9080 | import logging
from itertools import combinations
from timeit import default_timer as timer
import numpy as np
import scipy.spatial as spatial
from opensfm import dataset
from opensfm import geo
from opensfm import io
from opensfm import log
from opensfm import matching
from opensfm.context import parallel_map
logg... | bsd-2-clause | 8,142,427,845,005,928,000 | 31.898551 | 88 | 0.576982 | false |
alphapigger/igetui | igetui/google/protobuf/message_factory.py | 1 | 4235 | # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | mit | -3,856,056,638,776,542,700 | 35.477876 | 80 | 0.716883 | false |
openstack/rally | rally/verification/manager.py | 1 | 16784 | # 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 agreed to in... | apache-2.0 | 5,558,008,805,250,458,000 | 38.214953 | 79 | 0.575608 | false |
thomasrotter/sublimetext-cfml | cfml_plugin.py | 1 | 3757 | import sublime
import sublime_plugin
from HTML.html_completions import HtmlTagCompletions
from .src import command_list, completions, events, utils, _plugin_loaded
for command in command_list:
globals()[command.__name__] = command
def plugin_loaded():
_plugin_loaded()
class CfmlEventListener(sublime_plugin... | mit | 3,923,026,118,441,820,000 | 36.949495 | 157 | 0.607932 | false |
redeyser/IceCash2 | clientEgais.py | 1 | 39275 | #!/usr/bin/python
# -*- coding: utf-8
import httplib, urllib,time
import requests
import xml.etree.ElementTree as etree
import re
from icelog import *
from my import curdate2my
from datetime import datetime
import dbIceCash as db
ns={\
"c":"http://fsrar.ru/WEGAIS/Common",\
"wbr":"http://fsrar.ru/WEGAIS/TTNInformF2Reg"... | gpl-3.0 | -6,480,574,202,339,699,000 | 32.91342 | 141 | 0.52724 | false |
pogaku9/aws-datalake-quickstart-looker-isv-integration | scripts/lambdas/writetoES/requests/auth.py | 1 | 8323 | # -*- coding: utf-8 -*-
"""
requests.auth
~~~~~~~~~~~~~
This module contains the authentication handlers for Requests.
"""
import os
import re
import time
import hashlib
import threading
from base64 import b64encode
from .compat import urlparse, str
from .cookies import extract_cookies_to_jar
fr... | apache-2.0 | 7,563,665,243,914,489,000 | 31.971429 | 88 | 0.547639 | false |
miguelinux/vbox | src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py | 1 | 44961 | ## @file GenInfFile.py
#
# This file contained the logical of transfer package object to INF files.
#
# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompa... | gpl-2.0 | -570,540,731,257,356,700 | 38.965333 | 120 | 0.594916 | false |
meltedchocolate/Death87 | Groups.py | 1 | 1110 | """
Copyright 2015 Ricky LeDew
This file is part of Death 87.
Death 87 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 versi... | gpl-3.0 | 2,001,058,740,107,791,400 | 32.666667 | 73 | 0.69009 | false |
ingadhoc/odoo-infrastructure | infrastructure/wizard/instance_update_add_instances.py | 1 | 1450 | # -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in module root
# directory
##############################################################################
from openerp import models, fields, api
class in... | agpl-3.0 | -7,664,425,907,704,967,000 | 29.851064 | 78 | 0.536552 | false |
playpauseandstop/setman | setman/utils/importlib.py | 1 | 1408 | """
Backported from `importlib <http://pypi.python.org/pypi/importlib>` library,
which itself backported from Python 3.x branch.
"""
# While not critical (and in no way guaranteed!), it would be nice to keep this
# code compatible with Python 2.3.
import sys
def _resolve_name(name, package, level):
"""Return the a... | bsd-3-clause | -9,140,119,519,811,707,000 | 33.341463 | 79 | 0.617898 | false |
cernanalysispreservation/analysis-preservation.cern.ch | cap/modules/repos/errors.py | 3 | 3242 | # -*- coding: utf-8 -*-
#
# This file is part of CERN Analysis Preservation Framework.
# Copyright (C) 2018 CERN.
#
# CERN Analysis Preservation Framework 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... | gpl-2.0 | -5,198,789,454,273,908,000 | 35.022222 | 78 | 0.656693 | false |
MG-group-tools/MGFunc | mgfunc_v2/cluster2fasta.py | 1 | 15574 | #!/usr/bin/env python2.7
import sys
import os
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 29 13:13:45 2013
CLASS-VERSION
@author: Kosai
"""
import cPickle as pickle
from datetime import datetime as dt
import time
import argparse
import gzip
class main:
'''
Class version of the cluster2fasta program
... | gpl-3.0 | 5,104,992,305,668,626,000 | 39.557292 | 307 | 0.553679 | false |
kubeflow/tf-operator | sdk/python/kubeflow/tfjob/models/v1_tf_job_list.py | 1 | 7083 | # Copyright 2019 kubeflow.org.
#
# 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 | -8,458,928,608,242,113,000 | 31.342466 | 295 | 0.605817 | false |
jseabold/statsmodels | statsmodels/examples/ex_misc_tarma.py | 5 | 1837 | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 03 23:01:44 2013
Author: Josef Perktold
"""
import numpy as np
import matplotlib.pyplot as plt
from statsmodels.tsa.arima_process import arma_generate_sample, ArmaProcess
from statsmodels.miscmodels.tmodel import TArma
from statsmodels.tsa.arima_model import ARMA
from ... | bsd-3-clause | 1,438,013,817,249,552,600 | 23.493333 | 78 | 0.67828 | false |
linkhub-sdk/popbill.taxinvoice.example.py | sendEmail.py | 1 | 1538 | # -*- coding: utf-8 -*-
# code for console Encoding difference. Dont' mind on it
import sys
import imp
imp.reload(sys)
try: sys.setdefaultencoding('UTF8')
except Exception as E: pass
import testValue
from popbill import TaxinvoiceService, PopbillException
taxinvoiceService = TaxinvoiceService(testValue.LinkID, testV... | mit | -3,307,818,872,383,219,000 | 26.041667 | 91 | 0.714946 | false |
virginiacc/owning-a-home | src/_lib/wordpress_journey_processor.py | 1 | 2377 | import sys
import json
import os.path
import requests
import dateutil.parser
def posts_at_url(url):
current_page = 1
max_page = sys.maxint
while current_page <= max_page:
url = os.path.expandvars(url)
resp = requests.get(url, params={'page':current_page, 'count': '-1'})
resul... | cc0-1.0 | 1,026,639,759,227,327,500 | 28.7125 | 77 | 0.506521 | false |
otfbot/otfbot | otfbot/lib/chatMod.py | 1 | 4027 | # This file is part of OtfBot.
#
# OtfBot is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# OtfBot is distributed in the hope that it... | gpl-2.0 | 6,027,862,804,107,587,000 | 26.026846 | 76 | 0.619568 | false |
hemna/cinder-brick | brick/target/iscsi/iscsi.py | 1 | 22830 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | apache-2.0 | -6,240,072,186,324,997,000 | 36.986689 | 78 | 0.502059 | false |
stuart-knock/tvb-framework | tvb/core/adapters/abcadapter.py | 1 | 57742 | # -*- coding: utf-8 -*-
#
#
# TheVirtualBrain-Framework Package. This package holds all Data Management, and
# Web-UI helpful to run brain-simulations. To use it, you also need do download
# TheVirtualBrain-Scientific Package (for simulators). See content of the
# documentation-folder for more details. See also http:/... | gpl-2.0 | -6,758,727,984,573,712,000 | 45.379116 | 120 | 0.590974 | false |
mathturtle/tomviz | tomviz/python/Recon_WBP.py | 1 | 5137 | import numpy as np
from scipy.interpolate import interp1d
import tomviz.operators
import time
class ReconWBPOperator(tomviz.operators.CancelableOperator):
def transform_scalars(self, dataset, Nrecon=None, filter=None, interp=None):
"""
3D Reconstruct from a tilt series using Weighted Back-project... | bsd-3-clause | -8,241,763,846,337,076,000 | 33.246667 | 80 | 0.559081 | false |
coddingtonbear/d-rats | d_rats/gps.py | 1 | 33132 | import re
import time
import tempfile
import platform
import datetime
import subst
import threading
import serial
import socket
from math import pi,cos,acos,sin,atan2
import utils
if __name__ == "__main__":
import gettext
gettext.install("D-RATS")
TEST = "$GPGGA,180718.02,4531.3740,N,12255.4599,W,1,07,1.4,... | gpl-3.0 | 4,689,796,423,073,490,000 | 28.063158 | 111 | 0.489165 | false |
KevinOConnor/klipper | klippy/extras/query_endstops.py | 1 | 2160 | # Utility for querying the current state of all endstops
#
# Copyright (C) 2018-2019 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
class QueryEndstops:
def __init__(self, config):
self.printer = config.get_printer()
self.endstops = [... | gpl-3.0 | -2,217,313,421,855,998,500 | 47 | 80 | 0.615278 | false |
tantalishe/object_detection | classificator/make_sklearn_dataset.py | 1 | 1853 | import cv2
import numpy as np
import math
import features as ft
NUMBER_TRAINING_EXAMPLES = 150
NUMBER_TEST_EXAMPLES = 10
NUMBER_CLASSES = 4
FEATURE_TYPE = "humoments"
file_path_list = ["data/dataset1/scew_test/", "data/dataset1/nut/", "data/dataset1/profile_20/", "data/dataset1/profile_40/"]
file_saving_path = "data/"... | gpl-3.0 | -1,925,831,615,177,840,600 | 28.887097 | 125 | 0.716136 | false |
chutsu/robotics | prototype/tests/calibration/test_gimbal.py | 1 | 7395 | import unittest
from os.path import join
from math import pi
import numpy as np
import prototype.tests as test
from prototype.models.gimbal import GimbalModel
from prototype.calibration.camera import CameraIntrinsics
from prototype.calibration.gimbal import DataLoader
from prototype.calibration.gimbal import Preproce... | gpl-3.0 | -4,398,889,337,649,794,600 | 35.791045 | 76 | 0.561055 | false |
cycladesnz/chambersAndCreatures | src/effects/av_effects.py | 1 | 3684 | from pdcglobal import *
from .effect import Effect
from .dv_effects import DazzleEffect
class StunEffect(Effect):
def __init__(self, host, owner):
dur = d(3)
Effect.__init__(self, dur, host, owner)
weaponinfotext = 'Stuns the enemy'
def tick(self):
self.host.timer += se... | gpl-2.0 | 3,554,105,722,189,327,400 | 33.754717 | 85 | 0.551031 | false |
jhuttner/flake8-import-order | flake8_import_order/checker.py | 1 | 1888 | import ast
import pycodestyle
from flake8_import_order import ImportVisitor
from flake8_import_order.styles import (
Cryptography, Google, PEP8, Smarkets,
)
DEFAULT_IMPORT_ORDER_STYLE = 'cryptography'
class ImportOrderChecker(object):
visitor_class = ImportVisitor
options = None
def __init__(self,... | lgpl-3.0 | -7,491,054,521,117,362,000 | 28.046154 | 73 | 0.587924 | false |
ActiveState/code | recipes/Python/578369_War_Game_Version_5/recipe-578369.py | 1 | 7275 | from random import randint, seed
from time import time
# region: change
# from window import *
from Zpaw import *
from cards import *
card_list = [card_0, card_1, card_2, card_3, card_4, card_5, card_6, card_7, card_8, card_9]
# endregion
def game():
print 'Welcome to WAR V5!'
print
asking = True
while... | mit | -4,348,524,934,949,283,000 | 43.090909 | 119 | 0.485636 | false |
AugustoLD/SearchAlgorithms-IA | graph_search.py | 1 | 4000 | #*************************************************************************
# Copyright (C) 2015
#
# Augusto Lopez Dantas - augustold42@gmail.com
# Daniel Yang Chow - danielyc95@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 pu... | gpl-2.0 | 18,317,909,692,897,096 | 28.62963 | 78 | 0.59075 | false |
black-knight/magic_lamp | Server/src/board/markers/marker.py | 1 | 2739 | import cv2
from board.board_descriptor import BoardDescriptor
class Marker(object):
def __init__(self, marker_id):
"""
:param marker_id: Marker ID
"""
self.marker_id = marker_id
def preferred_input_image_resolution(self):
"""
Returns the preferred input resolu... | apache-2.0 | 6,870,595,627,794,209,000 | 31.607143 | 107 | 0.56517 | false |
jhanley634/testing-tools | problem/covid/sd_cases_deaths.py | 1 | 2150 | #! /usr/bin/env streamlit run
# Copyright 2020 John Hanley.
#
# 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, mod... | mit | -4,698,819,997,443,697,000 | 35.440678 | 80 | 0.695349 | false |
zitouni/ieee_802-15-4_868-900 | python/ieee802_15_4.py | 1 | 3940 | #!/usr/bin/env python
# O-QPSK modulation and demodulation.
#
#
# Copyright 2005 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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 Foundat... | gpl-3.0 | 8,383,000,823,689,001,000 | 32.675214 | 128 | 0.636294 | false |
sanja7s/SR_Twitter | src_graph/degree_assort_study.py | 1 | 1406 | import networkx as nx
from scipy import stats
from operator import mul # or mul=lambda x,y:x*y
from fractions import Fraction
import sys
# Calculates binomial coefficient (n over k)
def nCk(n,k):
return int( reduce(mul, (Fraction(n-i, i+1) for i in range(k)), 1) )
# Read the network in form of edge list, unweight... | mit | 628,720,276,494,182,900 | 28.3125 | 98 | 0.704836 | false |
sigmavirus24/pip | tasks/vendoring/__init__.py | 1 | 3688 | """"Vendoring script, python 3.5 needed"""
from pathlib import Path
import re
import shutil
import invoke
TASK_NAME = 'update'
FILE_WHITE_LIST = (
'Makefile',
'vendor.txt',
'__init__.py',
'README.rst',
)
def drop_dir(path):
shutil.rmtree(str(path))
def remove_all(paths):
for path in path... | mit | 8,446,935,301,462,685,000 | 26.729323 | 74 | 0.594902 | false |
chungjjang80/FRETBursts | fretbursts/burstlib.py | 1 | 133746 | #
# FRETBursts - A single-molecule FRET burst analysis toolkit.
#
# Copyright (C) 2013-2016 The Regents of the University of California,
# Antonino Ingargiola <tritemio@gmail.com>
#
"""
This module contains all the main FRETBursts analysis functions.
`burstslib.py` defines the fundamental object `Data()`... | gpl-2.0 | -7,185,521,470,680,014,000 | 41.513032 | 82 | 0.562813 | false |
stvstnfrd/edx-platform | common/lib/xmodule/xmodule/tests/test_poll.py | 1 | 2336 | # -*- coding: utf-8 -*-
"""Test for Poll Xmodule functional logic."""
from mock import Mock
from xmodule.poll_module import PollDescriptor
from . import LogicTest
from .test_import import DummySystem
class PollModuleTest(LogicTest):
"""Logic tests for Poll Xmodule."""
descriptor_class = PollDescriptor
... | agpl-3.0 | -2,279,210,706,724,800,500 | 33.865672 | 86 | 0.61601 | false |
Swimlane/sw-python-client | swimlane/core/resources/base.py | 1 | 1831 | import six
from swimlane.core.resolver import SwimlaneResolver
class APIResourceMetaclass(type):
"""Metaclass for all APIResource classes"""
def __call__(cls, *args, **kwargs):
"""Hook __init__ call to push resource instance into Swimlane client ResourceCache after instantiation"""
resource_... | mit | 7,108,540,010,368,214,000 | 32.290909 | 116 | 0.629711 | false |
patrickshuff/artofmemory | artofmemory/pao.py | 1 | 2868 | import random
import textwrap
from configparser import ConfigParser
def explain() -> str:
"""Explain Person Action Object"""
return textwrap.dedent(
"""\
Person Action Object (PAO)
The PAO is a system of encoding where you attribute a specific Person with an
Action that includ... | mit | 4,104,524,509,316,503,600 | 30.516484 | 90 | 0.613668 | false |
L1NT/django-training-log | log/models.py | 1 | 5458 | from django.db import models
# Create your models here.
class Sport(models.Model):
"""
don't use models.choices because we want the list to be transactional data
example list: [
'bike',
'run',
'swim',
'measurements',
'yoga',
'weights',
# for multi-sp... | gpl-2.0 | 1,526,296,373,929,901,000 | 35.878378 | 109 | 0.662147 | false |
SuLab/scheduled-bots | scheduled_bots/drugs/unii.py | 1 | 6335 | """
Bot code for creating chemical items in wikidata from UNII
Adapted from: https://github.com/sebotic/cdk_pywrapper/blob/master/cdk_pywrapper/chemlib.py
"""
import os
import re
import subprocess
import time
import zipfile
import pandas as pd
import wikidataintegrator.wdi_core as wdi_core
data_folder = "unii_data"
... | mit | -2,078,402,913,448,461,300 | 29.028436 | 118 | 0.548698 | false |
tony/django-docutils | django_docutils/lib/directives/__init__.py | 1 | 1172 | from django.utils.module_loading import import_string
from docutils.parsers.rst import directives
from ..settings import BASED_LIB_RST
def register_based_directives():
"""Register all directives, exists to avoid race conditions.
Sometimes stuff like publish_parts can be ran from command line functions
... | mit | 1,619,159,871,801,524,000 | 34.515152 | 78 | 0.68942 | false |
nuchi/httpserver | httpserver.py | 1 | 1065 | #!/usr/bin/env python
from dunder_mifflin import papers # WARNING: Malicious operation ahead
import socket
from http_handler import Handler_thread
MAX_CONNECTIONS = 5
class HTTPserver(object):
def __init__(self, localOnly=False, port=80, max_connections=MAX_CONNECTIONS):
self.port = port
self.max_connections = ... | mit | -7,448,993,895,145,337,000 | 24.380952 | 79 | 0.712676 | false |
rbuffat/pyidf | tests/test_generatormicrochp.py | 1 | 3012 | import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.electric_load_center import GeneratorMicroChp
log = logging.getLogger(__name__)
class TestGeneratorMicroChp(unittest.TestCase):
def setUp(self):
self.fd, self.path ... | apache-2.0 | 8,094,510,328,616,789,000 | 42.042857 | 119 | 0.688247 | false |
jsalva/ndim | ndim/ndim/wsgi.py | 1 | 1166 | """
WSGI config for ndim project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` set... | mit | -2,149,861,468,380,887,800 | 37.866667 | 79 | 0.798456 | false |
googleads/google-ads-python | google/ads/googleads/v7/enums/types/hotel_rate_type.py | 1 | 1186 | # -*- 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 | 7,993,871,855,612,706,000 | 29.410256 | 74 | 0.689713 | false |
rboman/progs | apps/pdf2ppt/pdf2ppt.py | 1 | 1429 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2017 Romain Boman
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | apache-2.0 | 2,452,702,609,578,649,000 | 30.733333 | 76 | 0.654062 | false |
doganulus/montre | montre/algebra.py | 1 | 4581 | import os
import sys
from ctypes import *
from distutils.sysconfig import get_python_lib
# if os.name == 'nt':
# libmontre = windll.LoadLibrary(os.path.join(get_python_lib(), "libmontre"))
# else:
# libmontre = cdll.LoadLibrary(os.path.join(get_python_lib(), "libmontre.so"))
if os.name == 'nt':
... | gpl-3.0 | -8,366,900,255,173,163,000 | 30.721429 | 146 | 0.577385 | false |
maximz/cooperate-without-looking | src/cwl.py | 1 | 24981 | # -*- coding: utf-8 -*-
"""Module cwl.
Produces simulation calculation and figures for the Cooperate With/Without Looking project.
Usage:
python cwl.py {recalculate?}
Examples:
python cwl.py run using pre-calculated saved data
python cwl.py recalculate run with freshly calculated data
@... | mit | -9,027,010,238,727,414,000 | 38.818627 | 332 | 0.616148 | false |
monkeymia/js | mmdb/Test_DB_Interface.py | 1 | 13315 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# https://github.com/monkeymia/
#
# Copyright (c) 2014, monkeymia, All rights reserved.
#
# This library 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; e... | lgpl-3.0 | 5,546,769,965,514,912,000 | 33.765013 | 73 | 0.584454 | false |
jingriver/stocktracker | pytoolkit/python_features/testGenerator.py | 1 | 4803 | from __future__ import nested_scopes
#Coroutines are more generic than subroutines. The lifespan of subroutines is dictated by last in, first out (the last subroutine called is the first to return); in contrast, the lifespan of coroutines is dictated entirely by their use and need.
#
#The start of a subroutine is th... | mit | -2,301,791,376,851,616,500 | 43.761905 | 556 | 0.678118 | false |
jameslovejoy/apportionment | scripts/apportion.py | 1 | 1096 | import math
class Apportion:
populations = {}
seats = {}
def __init__(self):
f = open('../data/2010.csv', 'r')
for line in f:
state, pop = [s.strip() for s in line.split(',')]
self.seats[state] = 1
self.populations[state] = int(pop.strip())
@classmethod
def find_highest_priority(cls):
highest = ... | mit | -1,152,712,967,480,970,600 | 22.340426 | 74 | 0.64781 | false |
bhenne/MoSP | mosp_examples/random_wiggler.py | 1 | 1499 | #!/bin/env python
""" Beginners' example: random movement
- random movement
- output to visual player, which is executed as child process
- you may try the other commented monitor examples - you can choose a single or multiple monitors
"""
import sys
sys.path.append("..")
import time
import random
from m... | gpl-3.0 | 4,466,338,805,413,161,000 | 29.591837 | 101 | 0.693129 | false |
vaibhawvipul/Python-Politics-Game | trailblazers.py | 1 | 20603 | import sys
import math
import time
print "\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\vEnter Your name"
name = raw_input("> ")
"""This will display only first name"""
f_name = name.split()
print "\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\v\vWelcome %r! Be a \n\n\n\n\t\t\t...TRAILBLAZER..."... | apache-2.0 | 1,313,378,677,649,439,200 | 45.718821 | 173 | 0.653885 | false |
JoshuaKirby/Projects | Simple_Insert/Window.py | 1 | 1184 | '''
Created on Feb 24, 2016
@author: jokirby
'''
import csv
import tkinter as tk
import time
class Window(tk.Frame):
def __init__(self, master=None):
tk.Frame.__init__(self, master)
self.pack()
self.createWidgets()
def createWidgets(self):
self.inString = t... | gpl-3.0 | 6,379,389,522,037,318,000 | 24.954545 | 73 | 0.530405 | false |
asoliveira/NumShip | source/Navio-back.py | 1 | 56391 | # -*- coding: utf-8 -*-
#
#This file is part of a program called NumShip
#Copyright (C) 2011,2012 Alex Sandro Oliveira
#NumShip 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 | -2,103,145,341,740,217,300 | 33.131995 | 79 | 0.426835 | false |
macmanes-lab/GeosmithiaComparativeGenomics | Scripts4PAML/6_removehashtag_TA.py | 1 | 1423 | #!/usr/bin/python3
# A program for adding hashtags to the "foreground" species.
# USAGE: ./6_removehashtag_TA.py --input path_to_input_directory
# Author: Taruna Aggarwal
# Contact: ta2007@wildcats.unh.edu
# Affiliation: University of New Hampshire, Durham, NH, USA
# Date: 1/27/2016
# Purpose is to remove '#1' from th... | cc0-1.0 | 5,111,911,443,499,973,000 | 38.527778 | 107 | 0.665495 | false |
ssato/python-anyconfig | tests/base/utils.py | 1 | 3492 | #
# Copyright (C) 2021 Satoru SATOH <satoru.satoh@gmail.com>
# License: MIT
#
"""File based test data collector.
"""
import ast
import importlib.util
import json
import pathlib
import typing
import warnings
from .datatypes import (
DictT, MaybePathT, TDataPaths
)
def target_by_parent(self: str = __file__):
"... | mit | -5,399,448,639,285,853,000 | 27.859504 | 73 | 0.570447 | false |
wroersma/volatility | volatility/plugins/taskmods.py | 1 | 16486 | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
#
# Additional Authors:
# Michael Cohen <scudette@users.sourceforge.net>
# Mike Auty <mike.auty@gmail.com>
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Publ... | gpl-2.0 | -7,597,039,038,837,842,000 | 42.044386 | 152 | 0.517955 | false |
showell/zulip | tools/lib/test_server.py | 1 | 3491 | import os
import subprocess
import sys
import time
from contextlib import contextmanager
from typing import Iterator, Optional
# Verify the Zulip venv is available.
from tools.lib import sanity_check
sanity_check.check_venv(__file__)
import django
import requests
MAX_SERVER_WAIT = 180
TOOLS_DIR = os.path.dirname(o... | apache-2.0 | -5,317,063,131,087,900,000 | 33.564356 | 94 | 0.625322 | false |
elezar/fortran-beautifier | fparser/tests/test_api.py | 1 | 3401 | """
Test parsing of whole fortran files; 'blackbox' tests here.
"""
from fparser import api
import sys
from os.path import abspath, join, dirname
def test_use_module():
d = dirname(__file__)
sources = [join(d,'modfile.f95'), join(d,'funcfile.f95')]
file_to_parse = sources[1]
tree = api.parse(file_to_p... | mit | 5,374,607,897,788,353,000 | 27.341667 | 112 | 0.586298 | false |
bilbeyt/ITURO-Giant_Flat | flat/announce/migrations/0001_initial.py | 1 | 1270 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
import swampdragon.models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Announce',
fields=[
... | mit | -4,946,116,681,658,328,000 | 32.421053 | 114 | 0.575591 | false |
lakewik/storj-gui-client | UI/__init__.py | 1 | 2608 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import sys
import os
import click
import logging
import logging.config as config
from logging import handlers
APP_NAME = 'storj-gui'
"""(str): the application name."""
def setup_logging():
"""Reads the Storj GUI logging configuration from logg... | mit | -7,573,279,076,914,696,000 | 27.659341 | 105 | 0.673313 | false |
jwdebelius/Machiavellian | machivellian/power.py | 1 | 15760 | r"""
Empirical Power Estimation (:mod:`skbio.stats.power`)
=====================================================
.. currentmodule:: skbio.stats.power
The purpose of this module is to provide empirical, post-hoc power estimation
of normally and non-normally distributed data. It also provides support to
subsample data ... | bsd-3-clause | -7,454,167,816,452,190,000 | 39.204082 | 79 | 0.621066 | false |
avaris/aBibliophile | searchmodel.py | 1 | 1847 | #!/usr/bin/env python
# -.- coding: utf-8 -.-
# Author : Deniz Turgut
# Created : 05.11.2011
from PyQt4 import QtGui, QtCore
class SearchModel(QtGui.QSortFilterProxyModel):
def __init__(self, parent=None):
super(SearchModel, self).__init__(parent)
self.setSortCaseSensitivity(QtCore.Qt.CaseInsensi... | gpl-3.0 | -507,099,931,512,108,800 | 29.278689 | 77 | 0.617759 | false |
atados/atados-ovp | api/channels/rrp/migrations/0001_initial.py | 1 | 3030 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-08-03 08:41
from __future__ import unicode_literals
from django.db import migrations
from ovp.apps.core.helpers import generate_slug
def foward_func(apps, schema_editor):
Channel = apps.get_model("channels", "Channel")
channel = Channel.objects.cr... | agpl-3.0 | 213,053,124,247,227,740 | 46.34375 | 115 | 0.734983 | false |
minlexx/skype_movie_bot | classes/yandex_translate.py | 1 | 2217 | # -*- coding: utf-8 -*-
import sys
import collections
# external libraries
import requests
import requests.exceptions
class YandexTranslate:
def __init__(self, yandex_api_key: str):
self._apikey = yandex_api_key
self._yt_url = 'https://translate.yandex.net/api/v1.5/tr.json/translate'
... | gpl-3.0 | -2,401,171,451,816,979,500 | 29.779412 | 112 | 0.576122 | false |
polarsbear/ThreeDPi | Bipolar_Stepper_Motor_Class_Full_Step.py | 1 | 2366 | import RPi.GPIO as GPIO
import time
#sequence for a1, b2, a2, b1
phase_seq=[[1,1,0,0],[0,1,1,0],[0,0,1,1],[1,0,0,1]];
#full step sequence. maximum torque
#phase_seq=[[1,0,0,0],[1,1,0,0],[0,1,0,0],[0,1,1,0],[0,0,1,0],[0,0,1,1],[0,0,0,1],[1,0,0,1]]
#half-step sequence. double resolution. But the torque of the stepper mo... | lgpl-2.1 | -3,164,008,024,690,108,000 | 29.727273 | 92 | 0.522401 | false |
mitschabaude/nanopores | scripts/howorka/selectivity.py | 1 | 4668 | """run diffusion equation to determine selectivity of fluophore,
i.e current and release time series for specific molecule."""
from nanopores.tools.fields import cache
import nanopores
import dolfin
import matplotlib.pyplot as plt
from nanopores.physics.convdiff import ConvectionDiffusion
import forcefields
from eikona... | mit | -279,110,832,715,525,500 | 27.638037 | 79 | 0.610111 | false |
sdbonin/SOQresearch | SOQplot.py | 1 | 2527 | """
SOQplot.py - sdbonin (work in progress)
read _plot array from txt and plot them
"""
import numpy as np
import matplotlib.pyplot as plt
S_plot = np.loadtxt('S_plot.txt',delimiter=',')
q_plot = np.loadtxt('q_plot.txt',delimiter=',')
p_plot = np.loadtxt('p_plot.txt',delimiter=',')
time = np.loadtxt('time.txt',delimi... | mit | -2,696,191,542,874,873,000 | 25.051546 | 60 | 0.611397 | false |
bd808/tools-stashbot | stashbot/bot.py | 1 | 11661 | # -*- coding: utf-8 -*-
#
# This file is part of bd808's stashbot application
# Copyright (C) 2015 Bryan Davis and 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... | gpl-3.0 | -687,042,839,125,175,300 | 34.990741 | 78 | 0.565646 | false |
panoptes/POCS | tests/test_state_machine.py | 1 | 1467 | import os
import pytest
from dunder_mifflin import papers # WARNING: Malicious operation ahead
from panoptes.pocs.core import POCS
from panoptes.pocs.observatory import Observatory
from panoptes.utils import error
from panoptes.utils.serializers import to_yaml
@pytest.fixture
def observatory():
observatory = Obs... | mit | -1,175,351,245,852,799,500 | 25.196429 | 91 | 0.697342 | false |
kdart/pycopia | aid/setup.py | 1 | 1235 | #!/usr/bin/python2.7
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
import os
from setuptools import setup
NAME = "pycopia-aid"
#REVISION = os.environ.get("PYCOPIA_REVISION", "0standalone")
VERSION = "1.0"
setup (name=NAME, version=VERSION,
namespace_packages = ["pycopia"],
packages = ["pycopia",],
... | apache-2.0 | -2,782,851,439,800,748,500 | 33.305556 | 86 | 0.651012 | false |
Wetrain/mmu-course-api | config/wsgi.py | 1 | 1459 | """
WSGI config for enterprise_course_api project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_... | mit | 6,543,690,837,505,451,000 | 40.685714 | 79 | 0.793694 | false |
antonioguirola/webpy-base | forms.py | 1 | 4418 | # -*- coding: utf-8 -*-
from web import form
import re
import db
# Expresiones regulares necesarias:
#formatoVisa=re.compile(r'[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}')
# Funciones necesarias para las validaciones
def fooFunction():
pass
"""
EJEMPLO DE FORMULARIO PARA DARSE DE ALTA
formularioInscripcion = form.... | gpl-3.0 | 5,946,189,467,328,933,000 | 33.155039 | 121 | 0.433727 | false |
MetricsGrimoire/sortinghat | tests/test_matcher.py | 1 | 11000 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014-2017 Bitergia
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any la... | gpl-3.0 | 5,165,033,627,049,388,000 | 38.282143 | 95 | 0.582508 | false |
LACMTA/loader | ott/loader/otp/graph/run.py | 1 | 2773 | """ Run
"""
import sys
import time
import logging
log = logging.getLogger(__file__)
from ott.utils import otp_utils
from ott.utils import web_utils
from ott.utils.cache_base import CacheBase
class Run(CacheBase):
""" run OTP graph
"""
graphs = None
def __init__(self):
super(Run, self).__init... | mpl-2.0 | 7,585,301,656,605,814,000 | 31.244186 | 136 | 0.567616 | false |
marble/Toolchain_RenderDocumentation | 36-Get-ready-for-publishing/run_01-Treat-pdf-folder.py | 1 | 4291 | #!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
from __future__ import absolute_import
import os
import tct
import sys
params = tct.readjson(sys.argv[1])
binabspath = sys.argv[2]
facts = tct.readjson(params['factsfile'])
milestones = tct.readjson(params['milestonesfile'])
reason = ''
resul... | mit | 8,712,881,131,675,113,000 | 27.798658 | 94 | 0.543696 | false |
edx/edx-load-tests | util/generate_summary.py | 1 | 3450 | # -*- coding: utf-8 -*-
"""
Generate a summary of a previous loadtest run in this environment.
See for usage example in a jenkins job dsl:
https://github.com/edx/jenkins-job-dsl/blob/master/testeng/jobs/loadtestDriver.groovy
Prerequisites:
A logfile produced by util/run-loadtest.sh should be present in its
s... | apache-2.0 | -6,008,860,902,320,476,000 | 30.345455 | 85 | 0.606729 | false |
ENCODE-DCC/encoded | src/encoded/tests/test_upgrade_software.py | 1 | 2678 | import pytest
from unittest import TestCase
def test_software_upgrade(upgrader, software_1):
value = upgrader.upgrade('software', software_1, target_version='2')
assert value['schema_version'] == '2'
assert value['lab'] == "cb0ef1f6-3bd3-4000-8636-1c5b9f7000dc"
assert value['award'] == "b5736134-3326-... | mit | -3,664,232,772,370,065,400 | 38.382353 | 108 | 0.647872 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.