repo_name stringlengths 5 100 | path stringlengths 4 299 | copies stringclasses 990
values | size stringlengths 4 7 | content stringlengths 666 1.03M | license stringclasses 15
values | hash int64 -9,223,351,895,964,839,000 9,223,297,778B | line_mean float64 3.17 100 | line_max int64 7 1k | alpha_frac float64 0.25 0.98 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
kavigupta/61a-analysis | src/graded_exam.py | 1 | 7215 | """
A set of classes for handling graded exams
"""
from collections import defaultdict
import numpy as np
from tools import cached_property
class ExamQuestion:
"""
A view on a particular question, with optional filtering
"""
def __init__(self, exam_grades, problem, pred=lambda x: True):
self._... | gpl-3.0 | -4,514,944,348,679,788,500 | 36.38342 | 100 | 0.573112 | false |
mindbaffle/ATF | Test/FunctionalTests/FsmEditorTestScripts/EditSaveCloseAndReopen.py | 10 | 3066 | #Copyright (c) 2014 Sony Computer Entertainment America LLC. See License.txt.
import sys
sys.path.append("./CommonTestScripts")
import Test
import FsmUtil
from System.IO import File
doc = atfDocService.OpenNewDocument(editor)
states = []
comments = []
transitions = []
print "Add a few states ..."
states.append(FsmU... | apache-2.0 | -1,698,312,080,891,285,200 | 43.42029 | 105 | 0.749674 | false |
idlead/scikit-learn | sklearn/linear_model/logistic.py | 9 | 66155 |
"""
Logistic Regression
"""
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Fabian Pedregosa <f@bianp.net>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Manoj Kumar <manojkumarsivaraj334@gmail.com>
# Lars Buitinck
# Simon Wu <s8wu@uwaterloo.ca>
im... | bsd-3-clause | 4,298,701,565,378,991,600 | 38.495522 | 81 | 0.602766 | false |
Lattyware/unrpa | unrpa/__init__.py | 1 | 9063 | import itertools
import operator
import os
import pickle
import sys
import traceback
import zlib
from typing import (
Union,
Tuple,
Optional,
Dict,
cast,
Iterable,
Type,
BinaryIO,
FrozenSet,
Sequence,
)
from unrpa.errors import (
OutputDirectoryNotFoundError,
ErrorExtrac... | gpl-3.0 | -3,801,496,572,079,539,700 | 31.703971 | 109 | 0.560768 | false |
serpilliere/miasm | miasm/ir/translators/z3_ir.py | 2 | 10482 | from builtins import map
from builtins import range
import imp
import logging
# Raise an ImportError if z3 is not available WITHOUT actually importing it
imp.find_module("z3")
from miasm.ir.translators.translator import Translator
log = logging.getLogger("translator_z3")
console_handler = logging.StreamHandler()
con... | gpl-2.0 | 5,558,664,054,745,267,000 | 35.908451 | 81 | 0.515646 | false |
huangkuan/hack | lib/google/api/label_pb2.py | 2 | 3868 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/label.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from go... | apache-2.0 | -3,283,407,776,802,750,000 | 33.535714 | 415 | 0.72363 | false |
bigswitch/horizon | openstack_dashboard/dashboards/project/firewalls/forms.py | 9 | 16427 | # Copyright 2013, Big Switch Networks, 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... | apache-2.0 | 5,478,903,712,468,556,000 | 41.556995 | 79 | 0.581847 | false |
allqoow/exerciseML | week02_1.py | 1 | 5407 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Author : allqoow
# Contact : allqoow@gmail.com
# Started on: 20161029(yyyymmdd)
# Project : exerciseML(Exercise for Machine Learning)
# H2.1.A
print "H2.1.A"
import matplotlib.pyplot
import math
import numpy.random
x1List = []
x2List = []
yList = []
colourList = [... | mit | 3,781,250,274,684,984,300 | 27.919786 | 87 | 0.667468 | false |
applicationdevm/XlsxWriter | xlsxwriter/test/comparison/test_print_options04.py | 8 | 1330 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | bsd-2-clause | 6,950,561,975,977,381,000 | 28.555556 | 91 | 0.585714 | false |
cjh1/StarCluster | starcluster/volume.py | 14 | 15640 | # Copyright 2009-2014 Justin Riley
#
# This file is part of StarCluster.
#
# StarCluster 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, or (at your option) any
# later ... | gpl-3.0 | 88,742,406,173,033,680 | 40.595745 | 79 | 0.564386 | false |
lizardsystem/lizard5-apps | lizard_sticky_twitterized/layers.py | 2 | 6578 | """
Adapter for lizard-sticky-twitterized
"""
from __future__ import division, print_function
import os
import mapnik
from django.conf import settings
from django.contrib.gis.geos import Point
from django.contrib.gis.measure import D
from django.shortcuts import get_object_or_404
from django.template.loader import ren... | lgpl-3.0 | 4,482,815,261,826,298,400 | 35.955056 | 88 | 0.571602 | false |
katyushacccp/ISN_projet_final | alpha 2.4/modules/mouvements.py | 2 | 11399 | from random import *
from modules.affichage import *
from modules.recherche import *
from time import *
def start():
"""Cette fonction sert à initialiser la variable globale 'compteur' qui va par la suite gérer le temps"""
wFile("compteur","cub",0)
def melangeur(cube,can,nombre):
"""Cette fonction se... | cc0-1.0 | -5,517,878,145,422,332,000 | 49.990868 | 140 | 0.627811 | false |
printedheart/h2o-3 | h2o-py/tests/testdir_algos/deeplearning/pyunit_offsets_and_distributionsDeeplearning.py | 4 | 1662 | import sys
sys.path.insert(1, "../../../")
import h2o, tests
def offsets_and_distributions():
# cars
cars = h2o.upload_file(h2o.locate("smalldata/junit/cars_20mpg.csv"))
cars = cars[cars["economy_20mpg"].isna() == 0]
cars["economy_20mpg"] = cars["economy_20mpg"].asfactor()
offset = h2o.H2OFrame(py... | apache-2.0 | -9,110,588,149,647,135,000 | 39.536585 | 141 | 0.67148 | false |
Strilanc/qbp_np_younes_test | mixed_state.py | 1 | 4660 | import random
from classical_state import ClassicalState
from pure_state import PureState
class MixedState:
"""
A probability distribution of pure states.
"""
def __init__(self, pure_to_probability_map):
err = abs(1 - sum(pure_to_probability_map.values()))
if err > 0.00001:
... | apache-2.0 | -7,675,349,186,284,217,000 | 43.807692 | 124 | 0.600858 | false |
candrews/portage | pym/portage/proxy/objectproxy.py | 16 | 2758 | # Copyright 2008-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
import sys
__all__ = ['ObjectProxy']
class ObjectProxy(object):
"""
Object that acts as a proxy to another object, forwarding
attribute accesses and method calls. This can be useful
for implementing lazy i... | gpl-2.0 | -4,750,186,335,476,187,000 | 27.142857 | 67 | 0.637418 | false |
arpadpe/plover | plover/virtualstenomachine/machine/stentura.py | 1 | 20424 | # Copyright (c) 2011 Hesky Fisher
# See LICENSE.txt for details.
# Many thanks to a steno geek for help with the protocol.
# TODO: Come up with a mechanism to communicate back to the engine when there
# is a connection error.
# TODO: Address any generic exceptions still left.
"""Thread-based monitoring of a stenotype... | gpl-2.0 | 2,355,993,840,544,893,000 | 33.616949 | 160 | 0.655014 | false |
PolicyStat/django | tests/forms_tests/models.py | 23 | 3809 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import datetime
import tempfile
from django.core.files.storage import FileSystemStorage
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
temp_storage_location = tempfile.mkdtemp(dir=os.environ['DJANGO... | bsd-3-clause | -2,897,814,414,692,491,300 | 31.836207 | 110 | 0.658966 | false |
j5shi/ST3_Config | Packages/Anaconda/anaconda_lib/jsonclient.py | 6 | 3055 | # -*- coding: utf8 -*-
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org>
# This program is Free Software see LICENSE file for details
"""Minimalist standard library Asynchronous JSON Client
"""
import sys
import uuid
import logging
import traceback
try:
import sublime
except ImportError:
try... | mit | -2,131,888,267,098,840,600 | 26.772727 | 78 | 0.602291 | false |
uni-peter-zheng/tp-libvirt | libvirt/tests/src/virsh_cmd/pool/virsh_pool_create_as.py | 7 | 2051 | import os
import logging
from autotest.client.shared import error
from virttest import libvirt_storage
from virttest import virsh
def run(test, params, env):
'''
Test the command virsh pool-create-as
(1) Call virsh pool-create-as
(2) Call virsh -c remote_uri pool-create-as
(3) Call virsh pool-cre... | gpl-2.0 | -5,506,974,995,019,713,000 | 33.762712 | 80 | 0.606046 | false |
iniverno/RnR-LLC | simics-3.0-install/simics-3.0.31/amd64-linux/lib/python2.4/telnetlib.py | 8 | 21567 | """TELNET client class.
Based on RFC 854: TELNET Protocol Specification, by J. Postel and
J. Reynolds
Example:
>>> from telnetlib import Telnet
>>> tn = Telnet('www.python.org', 79) # connect to finger port
>>> tn.write('guido\r\n')
>>> print tn.read_all()
Login Name TTY Idle When ... | gpl-2.0 | -2,779,999,684,196,099,000 | 31.926718 | 87 | 0.557797 | false |
Elico-Corp/openerp-7.0 | l10n_cn_report_invoice/report/invoice.py | 4 | 4817 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (c) 2010-2011 Elico Corp. All Rights Reserved.
# Author: LIN Yu <lin.yu@elico-corp.com>
# $Id$
#
# This program is free software: yo... | agpl-3.0 | -1,293,217,834,812,588,800 | 42.772727 | 142 | 0.566771 | false |
girving/tensorflow | tensorflow/contrib/distributions/python/ops/logistic.py | 21 | 8036 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 4,780,611,357,599,853,000 | 33.34188 | 80 | 0.665132 | false |
morenopc/edx-platform | lms/djangoapps/course_wiki/utils.py | 9 | 3481 | """
Utility functions for course_wiki.
"""
from django.core.exceptions import ObjectDoesNotExist
from xmodule import modulestore
import courseware
def user_is_article_course_staff(user, article):
"""
The root of a course wiki is /<course_number>. This means in case there
are two courses which have the sa... | agpl-3.0 | -6,235,791,304,864,043,000 | 32.796117 | 109 | 0.685435 | false |
berserkerbernhard/Lidskjalv | code/cg_itemsmenu.py | 1 | 1649 | from databaseconnection import DatabaseConnection
from tools import widget_menu, result_to_menulist
import sys
class CableGuyItemsMenu():
def __init__(self):
self.menulist = []
self.menudata = {
'_text': '',
'_backtitle': 'Developed by Bernhard',
'_title': 'Lid... | gpl-3.0 | 3,975,272,956,468,921,000 | 26.483333 | 56 | 0.494845 | false |
mjfarmer/scada_py | env/lib/python2.7/site-packages/twisted/web/error.py | 4 | 12294 | # -*- test-case-name: twisted.web.test.test_error -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Exception definitions for L{twisted.web}.
"""
from __future__ import division, absolute_import
try:
from future_builtins import ascii
except ImportError:
pass
__all__ = [
'Err... | gpl-3.0 | 1,664,815,873,751,067,600 | 30.767442 | 80 | 0.612413 | false |
supermarcos/log2bq | mapreduce/mapreduce_pipeline.py | 25 | 8815 | #!/usr/bin/env python
#
# Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 | -8,248,822,486,977,271,000 | 30.938406 | 80 | 0.663868 | false |
Mabrosche/turbulenz_engine | docs/source/hub/conf.py | 10 | 6399 | # -*- coding: utf-8 -*-
#
# Turbulenz Hub User Guide documentation build configuration file, created
# manually 20th May 2011.
#
# 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.
#
# All configur... | mit | -431,316,289,491,959,400 | 31.984536 | 80 | 0.71433 | false |
sacharya/nova | nova/tests/virt/vmwareapi/db_fakes.py | 6 | 3397 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
# Copyright (c) 2011 Citrix Systems, Inc.
# Copyright 2011 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the ... | apache-2.0 | 677,161,019,840,651,100 | 33.663265 | 78 | 0.594348 | false |
demonchild2112/travis-test | grr/server/grr_response_server/gui/selenium_tests/hunt_archive_test.py | 2 | 12012 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""Test the hunt_view interface."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from absl import app
import mock
from grr_response_core.lib import utils
from grr_response_core.lib.rdfvalues import client... | apache-2.0 | 6,818,393,420,998,139,000 | 37.5 | 80 | 0.698718 | false |
GheRivero/ansible | packaging/release/versionhelper/version_helper.py | 3 | 5870 | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import argparse
import os
import re
import sys
from packaging.version import Version, VERSION_PATTERN
class AnsibleVersionMunger(object):
tag_offsets = dict(
dev=0,
a=100,
b=200,
rc=1000
)
... | gpl-3.0 | -6,339,623,118,046,274,000 | 31.252747 | 115 | 0.593186 | false |
enikesha/pacioli | pacioli/accounting/valuations.py | 1 | 7986 | # Copyright (c) 2014, Satoshi Nakamoto Institute
# 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 list of conditio... | bsd-3-clause | 6,157,885,550,311,714,000 | 41.705882 | 757 | 0.555096 | false |
toastedcornflakes/scikit-learn | sklearn/svm/tests/test_svm.py | 2 | 34260 | """
Testing for Support Vector Machine module (sklearn.svm)
TODO: remove hard coded numerical results when possible
"""
import numpy as np
import itertools
from numpy.testing import assert_array_equal, assert_array_almost_equal
from numpy.testing import assert_almost_equal
from numpy.testing import assert_allclose
fr... | bsd-3-clause | -7,728,644,145,610,328,000 | 35.957929 | 97 | 0.624869 | false |
elkingtonmcb/h2o-2 | py/testdir_single_jvm/notest_parse_500_cols_spill.py | 9 | 4144 | import unittest, random, sys, time, os
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_browse as h2b, h2o_import as h2i, h2o_exec as h2e
def write_syn_dataset(csvPathname, rowCount, colCount, SEED):
# 8 random generatators, 1 per column
r1 = random.Random(SEED)
dsf = open(csvPathname, "w+... | apache-2.0 | -8,404,751,599,536,395,000 | 38.466667 | 112 | 0.566844 | false |
smallyear/linuxLearn | salt/salt/tops/ext_nodes.py | 3 | 2521 | # -*- coding: utf-8 -*-
'''
External Nodes Classifier
=========================
The External Nodes Classifier is a master tops subsystem that retrieves mapping
information from major configuration management systems. One of the most common
external nodes classifiers system is provided by Cobbler and is called
``cobble... | apache-2.0 | 7,257,270,866,178,661,000 | 23.475728 | 94 | 0.612852 | false |
jazkarta/edx-platform-for-isc | lms/djangoapps/bulk_email/tasks.py | 7 | 34332 | """
This module contains celery task functions for handling the sending of bulk email
to a course.
"""
import re
import random
import json
from time import sleep
import dogstats_wrapper as dog_stats_api
from smtplib import SMTPServerDisconnected, SMTPDataError, SMTPConnectError, SMTPException
from boto.ses.exceptions ... | agpl-3.0 | -6,050,697,556,803,473,000 | 48.186246 | 143 | 0.673541 | false |
ywarezk/nerdeez-tastypie | tests/core/tests/api.py | 6 | 7489 | from django.contrib.auth.models import User
from django.http import HttpRequest
from django.test import TestCase
from tastypie.api import Api
from tastypie.exceptions import NotRegistered, BadRequest
from tastypie.resources import Resource, ModelResource
from tastypie.serializers import Serializer
from core.models impo... | bsd-3-clause | 7,010,847,839,818,804,000 | 39.923497 | 336 | 0.630658 | false |
sam-m888/gprime | gprime/filters/rules/family/_hassourcecount.py | 1 | 1794 | #
# gPrime - A web-based genealogy program
#
# Copyright (C) 2002-2007 Donald N. Allingham
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2008 Jerome Rapinat
# Copyright (C) 2008 Benny Malengier
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Gen... | gpl-2.0 | -539,494,350,069,998,900 | 38 | 88 | 0.557971 | false |
tectronics/enso | enso/commands/manager.py | 7 | 10908 | # Copyright (c) 2008, Humanized, 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:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditi... | bsd-3-clause | 5,743,637,388,559,139,000 | 32.981308 | 79 | 0.567198 | false |
obarquero/intro_machine_learning_udacity | Projects/ud120-projects-master/decision_tree/dt_author_id.py | 1 | 1243 | #!/usr/bin/python
"""
This is the code to accompany the Lesson 3 (decision tree) mini-project.
Use a Decision Tree to identify emails from the Enron corpus by author:
Sara has label 0
Chris has label 1
"""
import sys
from time import time
sys.path.append("../tools/")
from email_preprocess im... | gpl-2.0 | 616,414,235,818,283,400 | 23.86 | 79 | 0.654063 | false |
RedHatQE/cfme_tests | cfme/control/explorer/conditions.py | 1 | 12415 | # -*- coding: utf-8 -*-
import attr
from navmazing import NavigateToAttribute
from navmazing import NavigateToSibling
from widgetastic.utils import WaitFillViewStrategy
from widgetastic.widget import Text
from widgetastic.widget import TextInput
from widgetastic.widget import Widget
from widgetastic_patternfly import B... | gpl-2.0 | -5,987,522,244,085,307,000 | 31.163212 | 99 | 0.638824 | false |
gautamMalu/rootfs_xen_arndale | usr/lib/python3.4/locale.py | 3 | 74534 | """ Locale support.
The module provides low-level access to the C lib's locale APIs
and adds high level number formatting APIs as well as a locale
aliasing engine to complement these.
The aliasing engine includes support for many commonly used locale
names and maps them to values suitable for pass... | gpl-2.0 | 850,608,073,741,775,200 | 43.47136 | 115 | 0.434607 | false |
kennedyshead/home-assistant | homeassistant/components/neato/api.py | 2 | 1898 | """API for Neato Botvac bound to Home Assistant OAuth."""
from asyncio import run_coroutine_threadsafe
import pybotvac
from homeassistant import config_entries, core
from homeassistant.helpers import config_entry_oauth2_flow
class ConfigEntryAuth(pybotvac.OAuthSession):
"""Provide Neato Botvac authentication ti... | apache-2.0 | 1,394,616,307,001,043,700 | 35.5 | 99 | 0.683878 | false |
facebookresearch/ParlAI | parlai/agents/hugging_face/dict.py | 1 | 7732 | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
from abc import ABC, abstractmethod, abstractproperty
from collections import defaultdict
from typing import ... | mit | -7,326,710,980,904,250,000 | 30.950413 | 87 | 0.609027 | false |
GuardianRG/CuckooSploit | analyzer/windows/modules/packages/generic.py | 6 | 1111 | # Copyright (C) 2010-2015 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
from random import randint
from lib.common.abstracts import Package
class Generic(Package):
"""Generic analysis package.
The sample is starte... | gpl-3.0 | -3,756,068,470,696,723,500 | 40.148148 | 114 | 0.621962 | false |
Miiha/FilmAnalyzerKit | analyzer/minio_upload.py | 1 | 2543 | import glob
from tqdm import tqdm
from analyzer.project import Project, StoragePath
from minio import Minio
from minio.policy import Policy
from minio.error import ResponseError
from analyzer.utils import env
from analyzer.path_utils import filename
from os.path import join
BUCKET_NAME = "thesis-video-data"
STORE_HO... | mit | -8,729,186,016,562,689,000 | 32.025974 | 103 | 0.726308 | false |
Vagab0nd/SiCKRAGE | lib3/imdb/parser/http/listParser.py | 1 | 4108 | # Copyright 2004-2018 Davide Alberani <da@erlug.linux.it>
# 2008-2018 H. Turgut Uyar <uyar@tekir.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 2 of the License,... | gpl-3.0 | -8,093,793,847,827,971,000 | 36.345455 | 107 | 0.51777 | false |
clemenshage/grslra | experiments/4_grpca/runtime/plot_runtime_eval.py | 1 | 1432 | from matplotlib import pyplot as plt
import numpy as np
import matplotlib
matplotlib.rcParams.update({'font.size': 24})
matplotlib.rcParams.update({'text.usetex': True})
colors = ['k', 'b', 'g', 'r', 'm']
data = np.load('result_subsampling.npz')
times = data["times"]
dims = data["dims"]
paramfiles = data["paramfile... | mit | -5,522,453,626,326,070,000 | 24.589286 | 116 | 0.65852 | false |
lukas-ke/faint-graphics-editor | build-sys/build_sys/build_sys.py | 1 | 9425 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2013 Lukas Kemmer
#
# 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
#
# Unl... | apache-2.0 | 3,591,846,196,415,151,600 | 29.841216 | 82 | 0.565517 | false |
jingxiang-li/kaggle-yelp | model/level3_model_ext.py | 1 | 5661 | from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.calibration import CalibratedClassifierCV
from sklearn.metrics import f1_score
import a... | mit | 6,005,950,304,981,379,000 | 33.309091 | 76 | 0.594241 | false |
GavinSchalliol/rwadar | pageparser.py | 1 | 1876 | #!/usr/bin/python
from pyquery import PyQuery as pq
from config import i, site, limit, incr
class Listing:
def __init__(self,d):
pass
def title(self,d):
titleObj = [title.text for title in d('title')]
if titleObj:
title = titleObj[0].encode('utf8')
return str(title)
def city(self,d):
cityObj = d('div'... | gpl-3.0 | -1,182,340,012,393,348,000 | 27.861538 | 128 | 0.567697 | false |
loongson-community/EFI-MIPS | ToolKit/cmds/python/Lib/pkgutil.py | 13 | 3100 | """Utilities to support packages."""
import os
import sys
def extend_path(path, name):
"""Extend a package's path.
Intended use is to place the following code in a package's __init__.py:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
This will add to the pack... | bsd-3-clause | 5,448,160,484,743,543,000 | 38.74359 | 75 | 0.619677 | false |
ampax/edx-platform-backup | common/lib/xmodule/xmodule/modulestore/mixed.py | 6 | 40248 | """
MixedModuleStore allows for aggregation between multiple modulestores.
In this way, courses can be served up both - say - XMLModuleStore or MongoModuleStore
"""
import logging
from contextlib import contextmanager
import itertools
import functools
from contracts import contract, new_contract
from opaque_keys im... | agpl-3.0 | 7,524,367,871,797,235,000 | 42 | 122 | 0.628727 | false |
tectronics/admiral-jiscmrd | test/RDFDatabank/rdfextras/tools/QueryRunner.py | 2 | 8455 | # -*- coding: utf-8 -*-
from __future__ import generators
import rdflib
from rdflib.Graph import ConjunctiveGraph
from rdflib import plugin
from rdflib.store import Store, NO_STORE, VALID_STORE
from rdflib import Namespace
from rdflib import Literal
from rdflib import URIRef
import time
from os.path impor... | mit | 7,355,744,225,455,303,000 | 35.246696 | 205 | 0.610171 | false |
dgjustice/ansible | lib/ansible/modules/notification/flowdock.py | 25 | 6132 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2013 Matt Coddington <coddington@gmail.com>
#
# 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 ... | gpl-3.0 | 6,330,704,003,700,405,000 | 29.81407 | 155 | 0.626549 | false |
jaredjennings/snowy | wsgi/snowy/snowy/notes/templates.py | 8 | 1171 | #
# Copyright (c) 2009 Brad Taylor <brad@getcoded.net>
#
# 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 the License, or (at your option) any
# later version.
#
# This... | agpl-3.0 | 8,860,821,987,692,872,000 | 38.033333 | 79 | 0.742101 | false |
adammaikai/OmicsPipe2.0 | build/lib.linux-x86_64-2.7/omics_pipe/Variant_annotation.py | 2 | 2526 | #!/usr/bin/env python
#from sumatra.projects import load_project
#from sumatra.parameters import build_parameters
#from sumatra.decorators import capture
from ruffus import *
import sys
import os
import time
import datetime
import drmaa
from omics_pipe.utils import *
from omics_pipe.parameters.default_parameters imp... | mit | -1,511,548,284,810,683,100 | 30.185185 | 134 | 0.732383 | false |
andresailer/DIRAC | Core/DISET/private/Transports/SSL/SocketInfo.py | 1 | 13505 | # $HeadURL$
__RCSID__ = "$Id$"
import time
import copy
import os.path
import GSI
from DIRAC.Core.Utilities.ReturnValues import S_ERROR, S_OK
from DIRAC.Core.Utilities.Network import checkHostsMatch
from DIRAC.Core.Utilities.LockRing import LockRing
from DIRAC.Core.Security import Locations
from DIRAC.Core.Security.X50... | gpl-3.0 | -4,418,772,929,986,420,700 | 37.475783 | 183 | 0.628064 | false |
cyrillg/python-playground | first-dive/observer.py | 2 | 1155 | '''
Definition of observer classes
Observers gather the functions used to compute the current estimate of the
state
author: Cyrill Guillemot
email: cyrill.guillemot@gmail.com
website: http://serial-robotics.org
license: GNU GPL
'''
#!/usr/bin/env python
from lib import *
class IdealObs:
''' Definition of an id... | gpl-3.0 | 2,911,166,167,924,669,400 | 23.574468 | 74 | 0.603463 | false |
Upande/MaMaSe | apps/utils/migrations/0012_aggregatedailyfeed_aggregatemonthlyfeed.py | 1 | 1349 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('utils', '0011_auto_20150922_0857'),
]
operations = [
migrations.CreateModel(
name='Aggre... | apache-2.0 | 7,480,409,801,439,744,000 | 37.542857 | 114 | 0.576723 | false |
benjamin9999/python-stix | stix/incident/loss_estimation.py | 1 | 1999 | # Copyright (c) 2014, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import stix
import stix.bindings.incident as incident_binding
class LossEstimation(stix.Entity):
_namespace = "http://stix.mitre.org/Incident-1"
_binding = incident_binding
_binding_class = incident_bi... | bsd-3-clause | 5,275,042,585,921,421,000 | 26.013514 | 82 | 0.601801 | false |
titouanc/lechbot | plugins/giphy.py | 1 | 1125 | from .helpers import public_api
from ircbot.plugin import BotPlugin
import random
import re
class Giphy(BotPlugin):
def __init__(self, giphy_key):
self.giphy_key = giphy_key
def clean_url(self, url):
m = re.match(r'^(https://.+/giphy\.gif).*', url)
if m:
return m.group(1)
... | unlicense | -4,878,654,805,742,700,000 | 31.142857 | 67 | 0.566222 | false |
mspark93/VTK | Filters/Core/Testing/Python/tubeComb.py | 17 | 1879 | #!/usr/bin/env python
import vtk
from vtk.util.misc import vtkGetDataRoot
# create planes
# Create the RenderWindow, Renderer
#
ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer( ren )
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
# create pipeline
#
pl3d = vtk.vtkMulti... | bsd-3-clause | -5,095,630,595,092,316,000 | 23.723684 | 61 | 0.786056 | false |
mganeva/mantid | scripts/test/Muon/utilities/muon_workspace_wrapper_test.py | 1 | 15900 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
from __future__ import (absolute_import, divi... | gpl-3.0 | 2,940,811,313,415,089,700 | 40.952507 | 107 | 0.651761 | false |
odoousers2014/odoo | addons/mail/ir_actions.py | 7 | 3449 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2013 OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of th... | agpl-3.0 | -1,191,183,614,548,943,600 | 42.1125 | 138 | 0.574659 | false |
intgr/django | tests/requests/tests.py | 22 | 37836 | import time
from datetime import datetime, timedelta
from http import cookies
from io import BytesIO
from itertools import chain
from urllib.parse import urlencode
from django.core.exceptions import SuspiciousOperation
from django.core.handlers.wsgi import LimitedStream, WSGIRequest
from django.http import (
HttpR... | bsd-3-clause | 6,678,246,708,988,646,000 | 39.95883 | 117 | 0.573919 | false |
KaceyLeavitt/Tetrahedra_Integration | Tetrahedra_Integration/convergence_plots.py | 1 | 4912 | import numpy as np
import math
import tetrahedron_method
import matplotlib.pyplot as plt
import scipy.integrate as integrate
"""Creates convergence plots for the total energy for grids in the first reciprocal unit
cell."""
def toy_energy1(k_point, number_of_bands):
"""A toy energy model used for testing.
Ar... | mit | -8,331,203,432,642,270,000 | 35.385185 | 91 | 0.621132 | false |
PennyDreadfulMTG/Penny-Dreadful-Tools | shared/fetch_tools.py | 1 | 5598 | import json
import os
import urllib.request
from typing import Any, Dict, List, Optional
import aiohttp
import requests
from shared import perf
from shared.pd_exception import OperationalException
def fetch(url: str, character_encoding: Optional[str] = None, force: bool = False, retry: bool = False, session: Option... | gpl-3.0 | 3,236,549,472,231,532,500 | 37.335616 | 155 | 0.611935 | false |
CarlosCondor/pelisalacarta-xbmc-plus | pelisalacarta/channels/pelisflv.py | 2 | 30568 | # -*- coding: iso-8859-1 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para pelisflv.net by Bandavi
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os... | gpl-3.0 | 3,176,220,575,973,220,000 | 42.114731 | 197 | 0.564741 | false |
strongh/GPy | GPy/inference/latent_function_inference/var_dtc.py | 4 | 10062 | # Copyright (c) 2012, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from posterior import Posterior
from ...util.linalg import mdot, jitchol, backsub_both_sides, tdot, dtrtrs, dtrtri, dpotri, dpotrs, symmetrify
from ...util import diag
from ...core.parameterization.variatio... | bsd-3-clause | 7,008,197,342,620,847,000 | 39.409639 | 180 | 0.569271 | false |
procangroup/edx-platform | openedx/core/djangoapps/schedules/management/commands/tests/test_send_course_update.py | 4 | 4366 | """
Tests for send_course_update management command.
"""
# pylint: disable=no-member
import ddt
from mock import patch, _is_started
from unittest import skipUnless
from django.conf import settings
from edx_ace.utils.date import serialize
from openedx.core.djangoapps.schedules import resolvers, tasks
from openedx.core... | agpl-3.0 | -7,804,825,046,453,626,000 | 44.010309 | 126 | 0.734769 | false |
kayhayen/Nuitka | nuitka/build/inline_copy/tqdm/tqdm/cli.py | 3 | 10509 | """
Module version for monitoring CLI pipes (`... | python -m tqdm | ...`).
"""
import logging
import re
import sys
from ast import literal_eval as numeric
from .std import TqdmKeyError, TqdmTypeError, tqdm
from .version import __version__
__all__ = ["main"]
log = logging.getLogger(__name__)
def cast(val, typ):
... | apache-2.0 | 5,075,268,966,244,176,000 | 33.12013 | 86 | 0.491293 | false |
edisona/androguard | androguard/core/bytecodes/apk.py | 36 | 58119 | # This file is part of Androguard.
#
# Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr>
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache... | apache-2.0 | 988,063,409,939,832,800 | 31.306281 | 283 | 0.528192 | false |
sacsant/avocado-misc-tests | io/net/infiniband/mckey.py | 4 | 7803 | #!/usr/bin/env python
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that ... | gpl-2.0 | 1,454,047,511,195,583,700 | 43.335227 | 88 | 0.587979 | false |
caoilteguiry/dev_music | dev_music.py | 1 | 4261 | #!/usr/bin/env python
"""dev_music
Use the /dev/audio device file to play musical notes on UNIX systems.
Created by Caoilte Guiry
License: BSD License
Sample Usage:
$ python dev_music.py -i input_file.txt
Input File Format:
<note>, <duration>
<note>, <duration>
...
where <note> is a musical note in the range [A... | bsd-3-clause | -3,578,082,631,517,333,500 | 23.488506 | 79 | 0.609481 | false |
tlangerak/Multi-Agent-Systems | build/lib.win-amd64-2.7/spade/Platform.py | 3 | 9628 | # -*- coding: utf-8 -*-
from spade.AMS import AmsAgentDescription
from spade.DF import DfAgentDescription, Service
from spade.Agent import PlatformAgent, require_login
import spade.Envelope
import spade.AID
import spade.Behaviour
import spade.ACLMessage
import spade.BasicFipaDateTime
#from spade.wui import require_log... | lgpl-2.1 | 1,134,033,479,792,324,200 | 39.116667 | 151 | 0.521811 | false |
semonte/intellij-community | python/testData/highlighting/awaitInDictPy36.py | 23 | 1744 | async def f11(x):
y = {await<error descr="expression expected">:</error> 10 for await<error descr="expression expected"> </error>in []} # fail
await x
def f12(x):
y = {await: 10 for await in []}
return x
async def f21(x):
y = {mapper(await<error descr="expression expected">)</error>: 10 for awa... | apache-2.0 | 6,558,491,934,449,130,000 | 20.280488 | 137 | 0.59289 | false |
kalregi/What-sWrong_SVG | SpanLayout.py | 1 | 9311 | #!/usr/bin/env python3
# -*- coding: utf-8, vim: expandtab:ts=4 -*-
from AbstractEdgeLayout import AbstractEdgeLayout
from utils.Counter import Counter
from utils.HashMultiMapArrayList import HashMultiMapArrayList
from SVGWriter import *
"""
* A SpanLayouy lays out edges as rectangular blocks under or above the tok... | gpl-3.0 | 4,679,376,453,182,341,000 | 34.403042 | 119 | 0.583181 | false |
MrTheodor/bakery | src/start_backmapping.py | 1 | 22692 | #!/usr/bin/env python
"""
Copyright (C) 2015-2016 Jakub Krajniak <jkrajniak@gmail.com>
This file is distributed under free software licence:
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 y... | gpl-3.0 | 9,107,173,588,670,538,000 | 38.880492 | 144 | 0.635687 | false |
okuta/chainer | chainer/optimizers/corrected_momentum_sgd.py | 5 | 4381 | import chainer
from chainer.backends import cuda
from chainer.backends import intel64
from chainer import optimizer
from chainer import types
if types.TYPE_CHECKING:
import typing_extensions as tpe
class CorrectedMomentumSGDHyperparameter(tpe.Protocol):
"""Protocol class for hyperparameter of correct... | mit | -2,446,195,163,499,081,700 | 32.7 | 99 | 0.618808 | false |
florentchandelier/keras | keras/layers/convolutional.py | 23 | 11778 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import theano
import theano.tensor as T
from theano.tensor.signal import downsample
from .. import activations, initializations, regularizers, constraints
from ..utils.theano_utils import shared_zeros, on_gpu
from ..layers.core import Layer
if on_gpu():
... | mit | -2,243,043,435,512,501,200 | 38.656566 | 118 | 0.57081 | false |
mola/qgis | python/plugins/fTools/tools/doGeometry.py | 1 | 33173 | # -*- coding: utf-8 -*-
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from ui_frmGeometry import Ui_Dialog
import ftools_utils
import math
from itertools import izip
import voronoi
from sets import Set
class GeometryDialog(QDialog, Ui_Dialog):
def __init__(self, iface, function):
... | gpl-2.0 | 3,456,899,687,871,464,000 | 37.261822 | 159 | 0.624122 | false |
nnugumanov/yandex-tank | yandextank/plugins/Telegraf/decoder.py | 5 | 2675 | """Known metrics decoder"""
import logging
logger = logging.getLogger(__name__)
class MetricsDecoder(object):
def __init__(self):
"""
translates telegraf metric names into common Monitoring metric names
translates `uncommon` names to `custom:%s`s
"""
self.known_metrics =... | lgpl-2.1 | -3,474,733,972,796,811,000 | 36.676056 | 116 | 0.515514 | false |
emoronayuso/beeton | asterisk-bee/asteriskbee/api_dialplan/views.py | 1 | 24397 | # Create your views here.
#encoding:utf-8
from django.shortcuts import render_to_response
#Para uso de la funcion HttpResponseRedirect (redireccionar paginas)
from django.http import HttpResponseRedirect
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.forms import AuthenticationForm
f... | gpl-3.0 | 2,901,558,179,897,302,500 | 38.097756 | 784 | 0.683773 | false |
wangxianliang/facenet | src/facenet_train_classifier.py | 1 | 24175 | """Training a face recognizer with TensorFlow based on the FaceNet paper
FaceNet: A Unified Embedding for Face Recognition and Clustering: http://arxiv.org/abs/1503.03832
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this ... | mit | -2,985,093,791,566,041,600 | 51.554348 | 167 | 0.662834 | false |
jean/sentry | tests/sentry/tasks/test_commits.py | 1 | 2569 | from __future__ import absolute_import
from mock import patch
from sentry.models import Commit, Deploy, Release, ReleaseHeadCommit, Repository
from sentry.tasks.commits import fetch_commits
from sentry.testutils import TestCase
class FetchCommits(TestCase):
def test_simple(self):
self.login_as(user=self... | bsd-3-clause | -8,042,140,651,912,441,000 | 30.716049 | 81 | 0.57065 | false |
nolanliou/tensorflow | tensorflow/python/training/session_run_hook.py | 9 | 10620 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 1,037,282,924,206,702,000 | 35.369863 | 84 | 0.690866 | false |
stefanw/froide | froide/problem/models.py | 1 | 1770 | from django.db import models
from django.conf import settings
from django.utils.translation import gettext_lazy as _
from django.utils import timezone
from froide.foirequest.models import FoiMessage
USER_PROBLEM_CHOICES = [
('message_not_delivered', _('Your message was not delivered.')),
('attachment_broken'... | mit | -7,492,476,918,604,720,000 | 31.181818 | 84 | 0.679096 | false |
rahul003/mxnet | python/mxnet/contrib/io.py | 12 | 3431 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | 2,660,313,115,486,738,000 | 35.115789 | 94 | 0.639464 | false |
rhyolight/nupic.research | projects/speech_commands/noise_examples.py | 1 | 2567 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2018, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | gpl-3.0 | 999,586,541,086,768,900 | 35.671429 | 74 | 0.641215 | false |
eayunstack/python-neutronclient | neutronclient/neutron/v2_0/quota.py | 1 | 8850 | # Copyright 2012 OpenStack Foundation.
# 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 requ... | apache-2.0 | -786,006,942,532,715,600 | 35.270492 | 78 | 0.576723 | false |
0x1306e6d/Baekjoon | baekjoon/2250.py | 1 | 1524 | """
2250 : 트리의 높이와 너비
URL : https://www.acmicpc.net/problem/2250
Input :
19
1 2 3
2 4 5
3 6 7
4 8 -1
5 9 10
6 11 12
7 13 -1
8 -1 -1
9 14 15
10 -1 -1
11 16 -1
12 -1 -1
13 17 -1
14 -1 -1
... | gpl-2.0 | -6,250,782,842,945,087,000 | 17.617284 | 57 | 0.484085 | false |
4dn-dcic/fourfront | src/encoded/upgrade/static_section.py | 2 | 1699 | from snovault import (
upgrade_step,
)
@upgrade_step('static_section', '1', '2')
def static_section_1_2(value, system):
# Rename/move sections
if value['name'] == "help#introduction":
value['name'] = "help.user-guide.data-organization.introduction"
if value['name'] == "help#carousel-place-h... | mit | 9,120,920,084,271,159,000 | 35.148936 | 81 | 0.650383 | false |
paulproteus/django | tests/regressiontests/modeladmin/tests.py | 8 | 50199 | from __future__ import absolute_import, unicode_literals
from datetime import date
from django import forms
from django.conf import settings
from django.contrib.admin.options import (ModelAdmin, TabularInline,
InlineModelAdmin, HORIZONTAL, VERTICAL)
from django.contrib.admin.sites import AdminSite
from django.co... | bsd-3-clause | -2,683,338,257,506,031,000 | 32.533066 | 205 | 0.59808 | false |
linkdd/errcorrect | errcorrect/exception.py | 1 | 1145 | # -*- coding: utf-8 -*-
from errcorrect.disassembler import disassemble
import sys
def frames_from_traceback(traceback):
"""
Get iterable of frames in traceback.
:param traceback: traceback to extract frames from
:type traceback: traceback
:returns: frames
:rtype: iterable
"""
fram... | mit | -7,012,470,556,888,084,000 | 19.818182 | 72 | 0.593886 | false |
waynegm/OpendTect-Plugins | bin/python/wmpy/PyLops/ex_make_1d_seismic.py | 1 | 2677 | # Generate 1D Synthetic Seismic data for Acoustic Impedance step model
#
# Copyright (C) 2021 Wayne Mogg All rights reserved.
#
# This file may be used under the terms of the MIT License
# (https://github.com/waynegm/OpendTect-External-Attributes/blob/master/LICENSE)
#
# Author: Wayne Mogg
# Date: May, 2021
# Homep... | gpl-3.0 | -1,530,323,425,511,334,700 | 27.478723 | 116 | 0.654838 | false |
ailabitmo/ceur-ws-lod | ceur-ws-pdfs/CeurWsPDFParser/parsers/PdfExtractionLib.py | 1 | 4128 | # -*- coding: UTF-8 -*-
import os,re,codecs, re, sys
if sys.version[0] == '3':
import html.entities as htmlentitydefs
unicode = str
unichr = chr
else:
import htmlentitydefs
path_to_pdf2txt = os.path.join("{0} {1}".format(sys.executable,os.path.dirname(__file__)), 'pdf2txt.py')
def main(... | mit | -1,037,087,723,436,460,500 | 36.317757 | 148 | 0.531463 | false |
shmir/PyIxNetwork | ixnetwork/ixn_protocol_stack.py | 2 | 2278 | """
Classes and utilities to manage IXN protocol stack objects.
@author yoram@ignissoft.com
"""
from ixnetwork.ixn_object import IxnObject
class IxnProtocolStack(IxnObject):
def action(self, oper):
self.execute(oper, self.obj_ref())
def start(self):
self.action('start')
def stop(self)... | apache-2.0 | 167,224,735,663,011,780 | 25.183908 | 111 | 0.619842 | false |
dbiesecke/dbiesecke.github.io | repo/script.module.urlresolver/lib/urlresolver/plugins/vidmad.py | 13 | 1734 | '''
urlresolver Kodi plugin
Copyright (C) 2016 Gujal
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | mit | 4,340,701,334,570,576,400 | 35.893617 | 87 | 0.675894 | false |
nr-plugins/c4ddev | lib/six/test_six.py | 3 | 29734 | # Copyright (c) 2010-2018 Benjamin Peterson
#
# 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, modify, merge, publi... | mit | -5,638,111,570,566,030,000 | 28.97379 | 101 | 0.600457 | false |
trailofbits/manticore | tests/ethereum/test_plugins.py | 2 | 4308 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import unittest
import shutil
from manticore.ethereum.plugins import VerboseTrace, KeepOnlyIfStorageChanges
from manticore.ethereum import ManticoreEVM
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class EthPluginsTests(unittest.TestCase):
def set... | agpl-3.0 | -4,979,989,525,697,667,000 | 36.789474 | 113 | 0.600975 | false |
Subsets and Splits
Gradio Code Samples
Limits the results to entries containing the word 'gradio' in the repo_name, content, or path, providing a filtered subset of the dataset.