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 |
|---|---|---|---|---|---|---|---|---|---|---|
aptivate/econsensus | deploy/bootstrap.py | 5 | 2581 | #!/usr/bin/env python
"""
bootstrap.py will set up a virtualenv for you and update it as required.
Usage:
bootstrap.py # update virtualenv
bootstrap.py fake # just update the virtualenv timestamps
bootstrap.py clean # delete the virtualenv
bootstrap.py -h | --help # pri... | gpl-3.0 | 2,062,151,340,668,008,200 | 30.096386 | 81 | 0.563735 | false |
tomspur/shedskin | examples/sat.py | 6 | 16409 | """
Internal implementation of a SAT solver, used by L{solver.SATSolver}.
This is not part of the public API.
"""
from __future__ import print_function
# Copyright (C) 2010, Thomas Leonard
# See the README file for details, or visit http://0install.net.
# The design of this solver is very heavily based on the one de... | gpl-3.0 | -1,293,952,344,537,491,000 | 30.555769 | 101 | 0.647389 | false |
rafaelvieiras/PseudoTV_Live | plugin.video.pseudotv.live/resources/lib/overlay.py | 1 | 5261 | # Copyright (C) 2020 Lunatixz
# This file is part of PseudoTV Live.
# PseudoTV Live is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version... | gpl-3.0 | 8,106,963,545,393,538,000 | 37.408759 | 136 | 0.611101 | false |
OpenPaymentPlatform/python | opp/utils.py | 1 | 14760 | # coding=utf-8
__author__ = 'PAY.ON'
# Successful result codes
SUCCESSFUL = ("000.000.000",
"000.100.110",
"000.100.111",
"000.100.112",
"000.300.000",
"000.600.000",
"000.400.000",
"000.400.010",
"000.400.0... | mit | -6,080,162,814,292,131,000 | 26.384045 | 45 | 0.344851 | false |
Wikia/sparrow | tests/mocks/chrome.py | 2 | 1123 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import
import mock
class ChromeMock(object):
@staticmethod
def create(*args, **kwargs):
chrome_mock = mock.MagicMock()
chrome_mock.execute_script.side_effect = ChromeMock.__navigation_timing_api_si... | mit | -388,273,292,583,746,300 | 32.058824 | 95 | 0.579697 | false |
zdohnal/system-config-printer | statereason.py | 2 | 6994 | #!/usr/bin/python3
## Copyright (C) 2007, 2008, 2009, 2010, 2012, 2013, 2014 Red Hat, Inc.
## Authors:
## Tim Waugh <twaugh@redhat.com>
## Jiri Popelka <jpopelka@redhat.com>
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published b... | gpl-2.0 | -1,565,716,293,651,410,400 | 37.855556 | 82 | 0.489277 | false |
jlecount-sungevity/holmium.core | tests/iframe_tests.py | 3 | 2664 | import unittest
import mock
from holmium.core import Page, Element, Elements, Section, Locators
from tests.utils import get_driver, make_temp_page
class BasicSectionIframe(Section):
element = Element( Locators.CLASS_NAME, "frame_el")
class BasicPageIframe(Page):
element = Element( Locators.CLASS_NAME, "fra... | mit | -736,457,207,736,824,200 | 45.736842 | 149 | 0.623498 | false |
colloquium/spacewalk | contrib/swapi.py | 1 | 20969 | #! /usr/bin/python
#
# Like utils/spacewalk-api, call Spacewalk/RHN RPC API from command line.
#
# Copyright (C) 2010 Satoru SATOH <satoru.satoh@gmail.com>
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, includ... | gpl-2.0 | -5,014,865,186,729,920,000 | 30.437781 | 397 | 0.616958 | false |
reidlindsay/wins | sandbox/experiments/dsr/traffic/parse-delay.py | 1 | 7772 | #! /usr/bin/env python
"""
Parse latency (vs. traffic rate) for DSR simulation.
Revision Info
=============
* $LastChangedBy: mandke $
* $LastChangedDate: 2011-12-09 12:55:44 -0600 (Fri, 09 Dec 2011) $
* $LastChangedRevision: 5364 $
:author: Ketan Mandke <kmandke@mail.utexas.edu>
:copyright:
Copyright 2009-201... | apache-2.0 | -1,905,062,652,462,929,400 | 35.660377 | 95 | 0.558415 | false |
rtrwalker/geotecha | examples/speccon/example_1d_vr_001_schiffmanandstein1970.py | 1 | 2686 | # Example input file for speccon1d_vr. Use speccon1d_vr.exe to run.
# Vertical consolidation of four soil layers
# Figure 2 from:
# Schiffman, R. L, and J. R Stein. (1970) 'One-Dimensional Consolidation of
# Layered Systems'. Journal of the Soil Mechanics and Foundations
# Division 96, no. 4 (1970): 1499-1504.
# Pa... | gpl-3.0 | -6,498,293,306,053,173,000 | 33.448718 | 75 | 0.575949 | false |
upsuper/servo | tests/wpt/web-platform-tests/tools/third_party/pytest/tasks/generate.py | 15 | 5863 | import os
from pathlib import Path
from subprocess import check_output, check_call
import invoke
@invoke.task(help={
'version': 'version being released',
})
def announce(ctx, version):
"""Generates a new release announcement entry in the docs."""
# Get our list of authors
stdout = check_output(["git"... | mpl-2.0 | 5,769,617,999,951,429,000 | 35.191358 | 103 | 0.636023 | false |
oceanobservatories/mi-dataset | mi/dataset/parser/dosta_abcdjm_ctdbp.py | 3 | 6675 | #!/usr/bin/env python
"""
@package mi.dataset.parser.dosta_abcdjm_ctdbp
@file mi-dataset/mi/dataset/parser/dosta_abcdjm_ctdbp.py
@author Jeff Roy
@brief Parser for the dosta_abcdjm_ctdbp dataset driver
This file contains code for the dosta_abcdjm_ctdbp parser and code to produce data
particles. This parser is for rec... | bsd-2-clause | -5,615,347,329,787,152,000 | 37.583815 | 106 | 0.6403 | false |
bearstech/modoboa | modoboa/limits/tests/test_api.py | 1 | 13603 | # coding: utf-8
"""Test cases for the limits extension."""
from __future__ import unicode_literals
from testfixtures import compare
from django.core.urlresolvers import reverse
from rest_framework.authtoken.models import Token
from modoboa.admin.factories import populate_database
from modoboa.admin.models import D... | isc | 261,014,767,997,290,180 | 38.190202 | 78 | 0.604971 | false |
MiuLab/TC-Bot | src/deep_dialog/usersims/usersim_rule.py | 1 | 22386 | """
Created on May 14, 2016
a rule-based user simulator
-- user_goals_first_turn_template.revised.v1.p: all goals
-- user_goals_first_turn_template.part.movie.v1.p: moviename in goal.inform_slots
-- user_goals_first_turn_template.part.nomovie.v1.p: no moviename in goal.inform_slots
@author: xiul, t-zalipt
... | mit | -4,018,702,831,594,770,400 | 49.580645 | 186 | 0.522737 | false |
jbloomlab/phydms | tests/test_alignmentSimulationRandomSeed.py | 1 | 4797 | """Tests random number seeding in aligment simulation.
Makes sure the random numbering seeding gives reproducible results.
Written by Sarah Hilton and Jesse Bloom.
"""
import os
import numpy
import unittest
import random
import phydmslib.models
import phydmslib.treelikelihood
import phydmslib.simulate
from phydmslib... | gpl-3.0 | 4,682,527,580,663,885,000 | 38.975 | 101 | 0.563269 | false |
xkollar/spacewalk | backend/server/handlers/xmlrpc/proxy.py | 6 | 10920 | #
# Copyright (c) 2008--2015 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | gpl-2.0 | -7,280,104,270,236,944,000 | 40.052632 | 83 | 0.642125 | false |
klmitch/keystone | keystone/tests/unit/tests/test_utils.py | 26 | 1279 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | 5,781,815,078,932,110,000 | 33.567568 | 75 | 0.706802 | false |
cybercercher/crits | crits/core/bucket.py | 10 | 1701 | import logging
from mongoengine import Document
from mongoengine import StringField, IntField
from django.conf import settings
from crits.core.migrate import migrate_bucket
from crits.core.crits_mongoengine import CritsDocument, CritsSchemaDocument
logger = logging.getLogger(__name__)
class Bucket(CritsDocument, C... | mit | -1,423,401,079,896,914,200 | 26.435484 | 75 | 0.587889 | false |
optimamodel/Optima | tests/testpeople.py | 1 | 1810 | """
Test to see if the calculation of people has changed.
Version: 2016
"""
from numpy import shape, array
import optima as op
import os
refresh = 1 # Creates defaultpeople.ppl rather than copares
eps = 1e-3 # Don't expect a totally exact match
filename = '2016nov21.npy'
P = op.defaultproject('best')
P.results = o... | lgpl-3.0 | -5,742,642,224,696,130,000 | 39.222222 | 208 | 0.575691 | false |
kevinwu06/google-python-exercises | basic/string1.py | 1 | 3636 | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic string exercises
# Fill in the code for the functions below. main() is already se... | apache-2.0 | -4,303,612,328,014,750,000 | 29.049587 | 78 | 0.659791 | false |
kinoc/opencog | opencog/python/blending/src/chooser/choose_all.py | 22 | 2586 | from opencog.type_constructors import types
from blending.src.chooser.base_chooser import BaseChooser
from blending.util.blending_config import BlendConfig
from blending.util.blending_error import blending_status
__author__ = 'DongMin Kim'
class ChooseAll(BaseChooser):
"""Atoms chooser that choosing all atoms.
... | agpl-3.0 | -4,356,747,578,176,253,000 | 31.734177 | 75 | 0.595514 | false |
leiferikb/bitpop | src/tools/swarming_client/utils/tools.py | 1 | 6398 | # Copyright 2013 The Swarming Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0 that
# can be found in the LICENSE file.
"""Various utility functions and classes not specific to any single area."""
import cStringIO
import json
import logging
import logging.handl... | gpl-3.0 | -452,192,694,238,004,200 | 30.673267 | 80 | 0.666927 | false |
ruiaylin/percona-xtrabackup | storage/innobase/xtrabackup/test/python/testtools/tests/test_testtools.py | 42 | 42838 | # Copyright (c) 2008-2010 testtools developers. See LICENSE for details.
"""Tests for extensions to the base test library."""
from pprint import pformat
import os
import sys
import tempfile
import unittest
from testtools import (
ErrorHolder,
MultipleExceptions,
PlaceHolder,
TestCase,
clone_test_... | gpl-2.0 | 2,444,451,243,105,727,500 | 36.478565 | 79 | 0.602736 | false |
ThiefMaster/indico | indico/modules/categories/controllers/display.py | 3 | 26725 | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from datetime import date, datetime, time, timedelta
from functools import partial
from io import BytesIO
... | mit | 5,454,829,898,145,752,000 | 45.237024 | 120 | 0.614406 | false |
romain-dartigues/ansible | lib/ansible/modules/source_control/git_config.py | 7 | 6952 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Marius Gedminas <marius@pov.lt>
# (c) 2016, Matthew Gamble <git@matthewgamble.net>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
... | gpl-3.0 | -8,077,004,745,419,205,000 | 27.727273 | 116 | 0.619534 | false |
mendax-grip/cfdemUtilities | viscosymetri/plotViscCouette.py | 4 | 2758 | # This program is a Torque monitor for a log file that is currently being created in OpenFOAM
# The code dynamically re-reads the logfile and update the graphic
# It is impossible to close the graphic until the complete refresh is over (this can be modified)
# USAGE : python ./monitorTorque.py LOGFILE
# Author : Brun... | lgpl-3.0 | 7,178,959,562,948,134,000 | 21.064 | 97 | 0.607687 | false |
google/pigweed | pw_hdlc/py/pw_hdlc/rpc_console.py | 1 | 7524 | # Copyright 2020 The Pigweed Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | apache-2.0 | -6,425,777,960,323,988,000 | 33.045249 | 80 | 0.629718 | false |
lmco/laikaboss | laikaboss/modules/explode_zip.py | 20 | 6315 | # Copyright 2015 Lockheed Martin Corporation
#
# 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 agr... | apache-2.0 | 8,532,966,706,493,343,000 | 42.854167 | 109 | 0.617577 | false |
BruceDLong/CodeDog | Scons/scons-local-4.1.0.post1/SCons/Tool/midl.py | 4 | 3012 | """SCons.Tool.midl
Tool-specific initialization for midl (Microsoft IDL compiler).
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any p... | gpl-2.0 | 9,175,001,298,632,724,000 | 33.227273 | 159 | 0.666999 | false |
danielyule/hearthbreaker | tests/power_tests.py | 7 | 7968 | import random
import unittest
from hearthbreaker.agents.basic_agents import PredictableAgent, DoNothingAgent
from hearthbreaker.cards.minions.hunter import SteamwheedleSniper
from hearthbreaker.cards.minions.neutral import StonetuskBoar
from hearthbreaker.cards.minions.priest import ProphetVelen
from hearthbreaker.car... | mit | 8,241,900,139,780,689,000 | 37.679612 | 113 | 0.664659 | false |
ViDA-NYU/data-polygamy | sigmod16/performance-evaluation/nyc-open/running-time-relationship.py | 1 | 5894 | # Copyright (C) 2016 New York University
# This file is part of Data Polygamy which is released under the Revised BSD License
# See file LICENSE for full license details.
import os
import sys
import math
import matplotlib
matplotlib.use('Agg')
matplotlib.rc('font', family='sans-serif')
import matplotlib.pyplot as plt
... | bsd-3-clause | -1,238,665,130,260,776,000 | 28.918782 | 92 | 0.602647 | false |
drimer/NetControl | tests/test_devices_view_selenium.py | 1 | 1480 | from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from django.core.urlresolvers import reverse
import mock
from selenium.webdriver.common.by import By
from selenium.webdriver.phantomjs.webdriver import WebDriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriv... | gpl-2.0 | -5,619,255,978,063,821,000 | 33.418605 | 84 | 0.714865 | false |
Disiok/poetry-seq2seq | main.py | 1 | 1842 | #! /usr/bin/env python
# -*- coding:utf-8 -*-
from plan import Planner
from predict import Seq2SeqPredictor
import sys
import tensorflow as tf
tf.app.flags.DEFINE_boolean('cangtou', False, 'Generate Acrostic Poem')
reload(sys)
sys.setdefaultencoding('utf8')
def get_cangtou_keywords(input):
assert(len(input) == ... | mit | 5,761,037,331,231,479,000 | 30.169492 | 76 | 0.496736 | false |
temnoregg/django-helpdesk | helpdesk/admin.py | 3 | 2365 | from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from helpdesk.models import Queue, Ticket, FollowUp, PreSetReply, KBCategory
from helpdesk.models import EscalationExclusion, EmailTemplate, KBItem
from helpdesk.models import TicketChange, At... | bsd-3-clause | -5,345,724,065,037,979,000 | 36.539683 | 79 | 0.769979 | false |
ahmedalsudani/mitro | browser-ext/third_party/firefox-addon-sdk/python-lib/cuddlefish/preflight.py | 30 | 3489 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os, sys
import base64
import simplejson as json
def create_jid():
"""Return 'jid1-XYZ', where 'XYZ' is a ran... | gpl-3.0 | -5,706,584,263,681,276,000 | 44.311688 | 122 | 0.638865 | false |
serzans/wagtail | wagtail/wagtailimages/tests/test_image_operations.py | 15 | 11668 | import unittest
from wagtail.wagtailimages import image_operations
from wagtail.wagtailimages.exceptions import InvalidFilterSpecError
from wagtail.wagtailimages.models import Image, Filter
class WillowOperationRecorder(object):
"""
This class pretends to be a Willow image but instead, it records
the ope... | bsd-3-clause | -3,539,725,549,017,486,300 | 29.705263 | 100 | 0.542852 | false |
vjdorazio/TwoRavens | fabfile.py | 1 | 7730 | import os
import random
import string
#from os.path import abspath, dirname, join
import signal
import sys
from fabric.api import local
import django
from django.conf import settings
import subprocess
import re
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
FAB_BASE_DIR = os.path.dirname(o... | bsd-3-clause | -4,884,388,285,163,601,000 | 30.169355 | 139 | 0.618499 | false |
xzturn/tensorflow | tensorflow/python/data/experimental/kernel_tests/map_defun_op_test.py | 4 | 13894 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 2,806,408,529,497,152,500 | 37.594444 | 80 | 0.653376 | false |
spywhere/Javatar | QuickMenu/QuickMenu_main.py | 1 | 3882 | # QuickMenu Example
# Type 'QuickMenu' in command pallete to see some possible commands
#
# QuickMenu Example by: spywhere
# Please give credit to me!
from QuickMenu.QuickMenu import *
import sublime_plugin
# Using it within WindowCommand or any command type you want
class QuickMenuCommand(sublime_plugin.WindowComma... | mit | -4,143,994,274,775,219,700 | 26.935252 | 217 | 0.598403 | false |
plepe/pgmapcss | pgmapcss/eval/eval_ge.py | 1 | 1195 | class config_eval_ge(config_base):
math_level = 7
op = '>='
def mutable(self, param_values, stat):
import pgmapcss.eval
config_metric = pgmapcss.eval.eval_functions.list()['metric']
ret = [ config_metric.mutable([p], stat) for p in param_values ]
return min(ret)
def poss... | agpl-3.0 | 279,862,619,292,182,940 | 22.431373 | 78 | 0.501255 | false |
Katello/katello-cli | test/katello/tests/core/repo/repo_status_test.py | 1 | 3038 | import unittest
from mock import Mock
import os
from katello.tests.core.action_test_utils import CLIOptionTestCase, CLIActionTestCase
from katello.tests.core.repo import repo_data
import katello.client.core.repo
from katello.client.core.repo import Status
from katello.client.api.utils import ApiDataError
class Requ... | gpl-2.0 | -3,292,979,221,825,884,700 | 30.645833 | 91 | 0.592824 | false |
BGluth/Pi-Pedestrian-Counter | source/tests/Test_UbiConnect.py | 1 | 5289 | import mock
import unittest
from source import UbiConnect
from source.tests.custom_mocks.fake_ubivariable import Fake_UbiVariable
const_fakeUbiAccountKey = '12345'
const_fakeVariableName = 'MyFakeVariable'
const_fakeServerValueToChangeTo = 42
class WhenCreatingAnUbiConnectObjectWhenCanNotConnect(unittest.TestCase... | mit | -3,045,458,600,944,205,000 | 31.635802 | 114 | 0.749196 | false |
BlackHole/enigma2-obh10 | lib/python/Components/Lcd.py | 1 | 21994 | from __future__ import print_function
from boxbranding import getBoxType, getDisplayType
from sys import maxint
from twisted.internet import threads
from enigma import eDBoxLCD, eTimer, eActionMap
from config import config, ConfigSubsection, ConfigSelection, ConfigSlider, ConfigYesNo, ConfigNothing
from Components.Sy... | gpl-2.0 | 5,197,624,091,695,589,000 | 35.717863 | 141 | 0.705874 | false |
timkrentz/SunTracker | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/copyright.py | 2 | 1507 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Copyright information for Twisted.
"""
from __future__ import division, absolute_import
from twisted import __version__ as version, version as longversion
longversion = str(longversion)
copyright="""\
Copyright (c) 2001-2014 ... | mit | 8,516,713,586,774,794,000 | 34.756098 | 70 | 0.764433 | false |
apache/aurora | src/test/python/apache/aurora/client/cli/test_status.py | 5 | 23724 | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | apache-2.0 | -5,639,774,579,405,374,000 | 40.548161 | 97 | 0.579371 | false |
jcpowermac/ansible-modules-extras | cloud/cloudstack/cs_user.py | 15 | 13222 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2015, René Moser <mail@renemoser.net>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lice... | gpl-3.0 | 7,736,647,982,484,695,000 | 27.73913 | 116 | 0.579803 | false |
dannyperry571/theapprentice | script.module.youtube.dl/lib/youtube_dl/extractor/tva.py | 33 | 1987 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
int_or_none,
parse_iso8601,
smuggle_url,
)
class TVAIE(InfoExtractor):
_VALID_URL = r'https?://videos\.tva\.ca/episode/(?P<id>\d+)'
_TEST = {
'url': 'http://videos.tva.ca/episod... | gpl-2.0 | 1,902,547,462,150,656,300 | 35.777778 | 139 | 0.550352 | false |
avlach/univbris-ocf | optin_manager/src/python/openflow/optin_manager/auto_approval_scripts/approve_sender_ip.py | 4 | 3540 | from openflow.optin_manager.flowspace.utils import *
def approve(request_info):
'''
The function for auto-approving all the user flowspace requests.
@param request_info: a dictionary containing the following key-value pairs:
@key req_ip_addr_src: @value: requested source IP address x.x.x.x - string... | bsd-3-clause | 9,173,703,786,422,742,000 | 50.304348 | 109 | 0.627119 | false |
chinmaygarde/mojo | testing/legion/rpc_server.py | 13 | 4291 | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""The task RPC server code.
This server is an XML-RPC server which serves code from
rpc_methods.RPCMethods.
This server will run until shutdown is called ... | bsd-3-clause | 8,067,291,218,343,199,000 | 32.523438 | 80 | 0.710324 | false |
mickele77/FreeCAD | src/Mod/Path/PathScripts/PathPocket.py | 7 | 14268 | # -*- coding: utf-8 -*-
#***************************************************************************
#* *
#* Copyright (c) 2014 Yorik van Havre <yorik@uncreated.net> *
#* ... | lgpl-2.1 | 3,329,035,247,245,390,300 | 42.367781 | 195 | 0.540861 | false |
yourlabs/django-cities-light | src/cities_light/receivers.py | 1 | 5888 | from django.db.models import signals
from .abstract_models import to_ascii, to_search
from .settings import *
from .signals import *
from .exceptions import *
def set_name_ascii(sender, instance=None, **kwargs):
"""
Signal reciever that sets instance.name_ascii from instance.name.
Ascii versions of names... | mit | 2,927,385,031,341,265,400 | 33.432749 | 79 | 0.678329 | false |
codekaki/odoo | addons/project_timesheet/project_timesheet.py | 13 | 15612 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 5,814,952,488,180,640,000 | 46.166163 | 166 | 0.572957 | false |
qilicun/python | python2/PyMOTW-1.132/PyMOTW/glob/glob_extension.py | 1 | 1230 | #!/usr/bin/env python
#
# Copyright 2007 Doug Hellmann.
#
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and tha... | gpl-3.0 | -6,245,000,569,980,625,000 | 33.166667 | 73 | 0.754472 | false |
tectronics/gsiege | gsiege.py | 3 | 2769 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# This file is part of Resistencia Cadiz 1812. #
# #
# This program is free software: y... | gpl-3.0 | 429,964,579,170,997,700 | 39.720588 | 79 | 0.470928 | false |
jhunkeler/hstcal | tests/wfc3/test_uvis_12single.py | 1 | 1098 | import subprocess
import pytest
from ..helpers import BaseWFC3
class TestUVIS12Single(BaseWFC3):
"""
Test pos UVIS2 BIAS data
"""
detector = 'uvis'
def _single_raw_calib(self, rootname):
raw_file = '{}_raw.fits'.format(rootname)
# Prepare input file.
self.get_input_... | bsd-3-clause | -3,015,081,682,545,373,000 | 25.780488 | 56 | 0.495446 | false |
miminus/youtube-dl | youtube_dl/extractor/generic.py | 8 | 76028 | # encoding: utf-8
from __future__ import unicode_literals
import os
import re
from .common import InfoExtractor
from .youtube import YoutubeIE
from ..compat import (
compat_urllib_parse_unquote,
compat_urllib_request,
compat_urlparse,
compat_xml_parse_error,
)
from ..utils import (
determine_ext,... | unlicense | 6,896,504,099,982,509,000 | 39.562466 | 255 | 0.491798 | false |
vperron/sentry | src/sentry/api/client.py | 11 | 2049 | from __future__ import absolute_import
__all__ = ('ApiClient',)
from django.core.urlresolvers import resolve
from rest_framework.test import APIRequestFactory, force_authenticate
from sentry.utils import json
class ApiError(Exception):
def __init__(self, status_code, body):
self.status_code = status_co... | bsd-3-clause | 515,049,718,499,158,200 | 29.132353 | 76 | 0.612494 | false |
waterponey/scikit-learn | sklearn/feature_selection/tests/test_feature_select.py | 10 | 26399 | """
Todo: cross-check the F-value with stats model
"""
from __future__ import division
import itertools
import warnings
import numpy as np
from scipy import stats, sparse
from numpy.testing import run_module_suite
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_almost_equal
from... | bsd-3-clause | -4,752,976,251,760,320,000 | 38.401493 | 80 | 0.616046 | false |
prgmrbill/limnoria-plugins | RelevantGif/__init__.py | 3 | 1170 | ###
# Copyright (c) 2015, lunchdump
# All Rights Reserved
#
###
"""
RelevantGif: Obtain one GIF related to a phrase
Powered By Giphy!
"""
import supybot
import supybot.world as world
# Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some s... | mit | -4,281,590,213,308,496,000 | 23.893617 | 78 | 0.717094 | false |
zhuolinho/linphone | submodules/externals/antlr3/runtime/Python/tests/t022scopes.py | 17 | 3917 | import antlr3
import testbase
import unittest
import textwrap
class t022scopes(testbase.ANTLRTest):
def setUp(self):
self.compileGrammar()
def parserClass(self, base):
class TParser(base):
def emitErrorMessage(self, msg):
# report errors to /dev/null
... | gpl-2.0 | -6,967,083,267,610,268,000 | 22.45509 | 52 | 0.482767 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/operations/_express_route_circuits_operations.py | 1 | 53999 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | mit | -9,008,447,738,317,798,000 | 49.325256 | 261 | 0.642956 | false |
Rademade/taiga-back | taiga/projects/votes/models.py | 3 | 2714 | # Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz>
# Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com>
# Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net>
# Copyright (C) 2014-2016 Anler Hernández <hello@anler.me>
# This ... | agpl-3.0 | 7,772,643,659,870,915,000 | 39.462687 | 100 | 0.688676 | false |
haf/support-tools | googlecode-issues-exporter/issues.py | 4 | 22719 | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 3,992,344,661,054,526,000 | 29.53629 | 99 | 0.639993 | false |
jrowan/zulip | zerver/lib/feedback.py | 3 | 3063 | from __future__ import absolute_import
from django.conf import settings
from django.core.mail import EmailMessage
from typing import Any, Mapping, Optional, Text
from zerver.lib.actions import internal_send_message
from zerver.lib.send_email import FromAddress
from zerver.lib.redis_utils import get_redis_client
from ... | apache-2.0 | 3,693,579,660,881,846,000 | 35.464286 | 96 | 0.634672 | false |
opensourcemukul/conversioncodes | gdf2gml.py | 1 | 1091 | from Tkinter import *
from tkMessageBox import *
import tkFileDialog
from ctypes import *
## choose your gdf file
path = tkFileDialog.askopenfilename(
title='Open GDF File')
print path
f = open(path)
fo=open('C:/socialnw/fgdf.txt','w')
global arr
arr=[]
try:
for line in f:
arr[len(arr):]=[line]
... | gpl-2.0 | 7,312,440,405,422,122,000 | 21.729167 | 60 | 0.522456 | false |
IronLanguages/ironpython3 | Tests/test_isinstance2.py | 1 | 1308 | # Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
import sys
import unittest
class IsInstanceTest(unittest.TestCase):
def test_isinstance_metaclass(self):
... | apache-2.0 | 8,127,862,250,860,583,000 | 31.7 | 77 | 0.632263 | false |
david672orford/pykarta | pykarta/maps/layers/tilesets_bing.py | 1 | 1991 | # pykarta/maps/layers/tilesets_bing.py
# Copyright 2013--2018, Trinity College
# Last modified: 26 April 2018
from tilesets_base import tilesets, MapTilesetRaster
import json
from pykarta.misc.http import simple_urlopen
from pykarta.maps.image_loaders import surface_from_file_data
#-----------------------------------... | gpl-2.0 | 347,094,186,903,179,800 | 42.282609 | 104 | 0.665997 | false |
shreddd/newt-2.0 | account/adapters/template_adapter.py | 3 | 2347 | """Account Adapter Template File
IMPORTANT: NOT A FUNCTIONAL ADAPTER. FUNCTIONS MUST BE IMPLEMENTED
Notes:
- Each of the functions defined below must return a json serializable
object, json_response, or valid HttpResponse object
- A json_response creates an HttpResponse object given parameters:
... | bsd-2-clause | -5,526,485,707,202,828,000 | 28.721519 | 75 | 0.622497 | false |
cloudify-cosmo/cloudify-manager | tests/integration_tests/tests/agentless_tests/test_environments.py | 1 | 41318 | import time
import pytest
from integration_tests import AgentlessTestCase
from integration_tests.tests.utils import get_resource as resource
from cloudify.models_states import DeploymentState
from cloudify_rest_client.exceptions import CloudifyClientError
pytestmark = pytest.mark.group_environments
@pytest.mark.... | apache-2.0 | 8,541,324,695,537,363,000 | 38.05293 | 79 | 0.581853 | false |
MGautier/security-sensor | trunk/Documentacion/Memoria/trozos-codigo/codigo-10.py | 1 | 2806 | class VisualizationsTestCase(TestCase):
def setUp(self):
log_sources = LogSources.objects.create(
Description="Firewall of gnu/linux kernel",
Type="Iptables",
Model="iptables v1.4.21",
Active=1,
Software_Class="Firewall",
Path="iptable... | mit | 5,106,144,274,954,064,000 | 32.404762 | 110 | 0.619387 | false |
jaywink/shoop | shoop/notify/admin_module/views/editor.py | 2 | 6176 | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
import json
from django.conf import... | agpl-3.0 | 689,958,596,899,569,900 | 38.589744 | 112 | 0.649935 | false |
upeu-jul-20161-epis-ads2/MedicFast | apps/space/models.py | 3 | 8558 | # _*_ coding: utf-8 _*_
"""
@copyright Copyright (c) 2014 Submit Consulting
@author Angel Sullon (@asullom)
@package space
Descripcion: Registro de los modelos de la app space
"""
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.text import capfirst
from... | bsd-3-clause | -7,848,413,578,363,401,000 | 36.038961 | 182 | 0.608111 | false |
simone-campagna/zirkon | tests/unit/toolbox/serializer/test_serializer.py | 2 | 2958 | # -*- coding: utf-8 -*-
from zirkon import Config
from zirkon.toolbox.serializer import (
Serializer,
ZirkonSerializer,
DotsSerializer,
PathSerializer,
)
import pytest
@pytest.fixture(params=tuple(Serializer.get_class_tags()))
def fmt(request):
return request.param
@pytest.mark.regression('8973... | apache-2.0 | 5,047,899,778,021,241,000 | 28 | 83 | 0.600068 | false |
cjcjameson/gpdb | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/lib/pg_controldata.py | 12 | 1207 | """
Copyright (c) 2004-Present Pivotal Software, Inc.
This program and the accompanying materials are made available under
the terms of the 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 | 8,043,284,176,844,925,000 | 33.485714 | 72 | 0.671085 | false |
nicolashainaux/mathmaker | tests/integration/mental_calculation/03_yellow/test_03_yellow_W03a.py | 1 | 1240 | # -*- coding: utf-8 -*-
# Mathmaker creates automatically maths exercises sheets
# with their answers
# Copyright 2006-2018 Nicolas Hainaux <nh.techn@gmail.com>
# This file is part of Mathmaker.
# Mathmaker is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License... | gpl-3.0 | -835,733,945,411,911,200 | 36.575758 | 76 | 0.691935 | false |
nugget/home-assistant | homeassistant/components/wink/fan.py | 2 | 3106 | """Support for Wink fans."""
import logging
from homeassistant.components.fan import (
SPEED_HIGH, SPEED_LOW, SPEED_MEDIUM, SUPPORT_DIRECTION,
SUPPORT_SET_SPEED, FanEntity)
from homeassistant.components.wink import DOMAIN, WinkDevice
_LOGGER = logging.getLogger(__name__)
DEPENDENCIES = ['wink']
SPEED_AUTO =... | apache-2.0 | 5,488,091,365,387,689,000 | 31.354167 | 79 | 0.622988 | false |
sourcefabric/Booktype | lib/booki/utils/log.py | 7 | 3495 | # This file is part of Booktype.
# Copyright (c) 2012
# Aleksandar Erkalovic <aleksandar.erkalovic@sourcefabric.org>
#
# Booktype 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 ... | agpl-3.0 | 1,839,445,332,114,978,300 | 25.884615 | 77 | 0.6598 | false |
MickSandoz/compassion-switzerland | sponsorship_switzerland/models/contracts.py | 1 | 6731 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in the file __open... | agpl-3.0 | -1,129,332,237,836,578,600 | 42.873333 | 78 | 0.449413 | false |
morpheby/levelup-by | cms/djangoapps/contentstore/tests/test_i18n.py | 9 | 3449 | from unittest import skip
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.test.client import Client
from django.test.utils import override_settings
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from contentstore.tests.modulestore_config imp... | agpl-3.0 | 6,115,657,919,313,645,000 | 33.49 | 86 | 0.563352 | false |
bassio/omicexperiment | omicexperiment/transforms/transform.py | 1 | 4215 |
class ProxiedTransformMixin(object):
def __get__(self, instance, owner):
if isinstance(instance, TransformObjectsProxy):
self.experiment = instance.experiment
return self
else:
return super().__get__(instance, owner)
class TransformObjectsProxy(object):
... | bsd-3-clause | -7,375,103,905,673,027,000 | 29.323741 | 141 | 0.590747 | false |
0x46616c6b/ansible | lib/ansible/modules/storage/netapp/na_cdot_lun.py | 16 | 12593 | #!/usr/bin/python
# (c) 2017, NetApp, Inc
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | gpl-3.0 | 5,538,075,810,956,931,000 | 31.794271 | 126 | 0.541968 | false |
chouseknecht/ansible | lib/ansible/modules/network/nxos/_nxos_l3_interface.py | 21 | 7305 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Ansible by Red Hat, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | gpl-3.0 | 8,554,241,747,448,360,000 | 28.103586 | 93 | 0.590007 | false |
nateprewitt/pipenv | pipenv/patched/prettytoml/tokens/__init__.py | 5 | 4461 |
"""
TOML lexical tokens.
"""
class TokenType:
"""
A TokenType is a concrete type of a source token along with a defined priority and a higher-order kind.
The priority will be used in determining the tokenization behaviour of the lexer in the following manner:
whenever more than one token is recogniza... | mit | 928,640,991,608,080,800 | 31.801471 | 112 | 0.655907 | false |
V155/qutebrowser | qutebrowser/browser/navigate.py | 1 | 5397 | # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2016-2018 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser 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 S... | gpl-3.0 | -4,414,692,018,482,149,000 | 34.506579 | 78 | 0.61071 | false |
yland/coala | tests/parsing/StringProcessing/UnescapedSearchInBetweenTest.py | 17 | 8699 |
from coalib.parsing.StringProcessing import (
InBetweenMatch, unescaped_search_in_between)
from tests.parsing.StringProcessing.StringProcessingTestBase import (
StringProcessingTestBase)
class UnescapedSearchInBetweenTest(StringProcessingTestBase):
bs = StringProcessingTestBase.bs
test_basic_pattern... | agpl-3.0 | 2,084,851,367,532,090,400 | 38.540909 | 76 | 0.4535 | false |
artwr/airflow | tests/www/test_validators.py | 8 | 3244 | # -*- coding: utf-8 -*-
#
# 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
#... | apache-2.0 | -5,690,581,175,924,639,000 | 32.791667 | 75 | 0.652281 | false |
bharcode/Coursera | InformationRetrieval/PA1/task2/common.py | 2 | 3140 | from array import array
from collections import deque
#VB Encoding
def encodeNumber( n ):
bytesArray = deque(array('B'))
while True:
bytesArray.appendleft(n % 128)
if n < 128:
break
n = n/128
bytesArray[-1] += 128
return bytesArray
def encodeNumbers( numbers ):
result = array('B')
for n... | gpl-2.0 | -2,497,221,725,835,953,000 | 21.984733 | 85 | 0.641401 | false |
GoogleCloudPlatform/PerfKitBenchmarker | perfkitbenchmarker/scripts/spark_sql_test_scripts/spark_table.py | 1 | 1944 | """A PySpark driver that creates Spark tables for Spark SQL benchmark.
It takes an HCFS directory and a list of the names of the subdirectories of that
root directory. The subdirectories each hold Parquet data and are to be
converted into a table of the same name. The subdirectories are explicitly
providing because li... | apache-2.0 | -2,075,883,749,000,230,700 | 37.117647 | 116 | 0.713992 | false |
yakky/djangocms-text-ckeditor | djangocms_text_ckeditor/html.py | 1 | 5197 | # -*- coding: utf-8 -*-
import base64
import re
import uuid
from django.utils.module_loading import import_string
import html5lib
from html5lib import serializer, treebuilders, treewalkers
from html5lib.constants import namespaces
from html5lib.filters import sanitizer
from PIL import Image
from six import BytesIO
f... | bsd-3-clause | -8,654,637,987,762,446,000 | 33.879195 | 94 | 0.612661 | false |
cfairweather/adafruit-led-pixels | gluon/contrib/pysimplesoap/client.py | 9 | 35446 | #!/usr/bin/env python
# -*- coding: latin-1 -*-
# This program 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, or (at your option) any later
# version.
#
# This program is distributed ... | gpl-2.0 | -8,982,075,149,803,601,000 | 44.501926 | 129 | 0.513937 | false |
mikaelboman/home-assistant | homeassistant/components/http.py | 2 | 14871 | """This module provides WSGI application to serve the Home Assistant API."""
import hmac
import json
import logging
import mimetypes
import threading
import re
import voluptuous as vol
import homeassistant.core as ha
import homeassistant.remote as rem
from homeassistant import util
from homeassistant.const import (
... | mit | 863,876,997,045,437,600 | 32.417978 | 79 | 0.595253 | false |
gragas/RSSS-toolkit | gpsbro/gpsbro/geonet/rinex.py | 2 | 3079 | import sys
import random
import datetime
import requests
import urllib.request
from xml.etree import ElementTree
MET = 0b0001
NAV = 0b0010
OBS = 0b0100
QC = 0b1000
DEFAULT_MASK = MET | OBS | QC
def get_URLs_on(date, mask=None):
mask = mask if mask is not None else DEFAULT_MASK
day_string = str(date.timetup... | mit | 2,430,859,960,251,099,600 | 32.107527 | 101 | 0.500812 | false |
immenz/pyload | module/web/json_app.py | 40 | 8697 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os.path import join
from traceback import print_exc
from shutil import copyfileobj
from bottle import route, request, HTTPError
from webinterface import PYLOAD
from utils import login_required, render_to_response, toDict
from module.utils import decode, formatSize... | gpl-3.0 | 872,937,739,479,280,600 | 26.875 | 96 | 0.57767 | false |
mitsuhiko/lektor | lektor/devcli.py | 3 | 3718 | import os
import sys
import click
from .packages import get_package_info, register_package, publish_package
from .cli import pass_context
def ensure_plugin():
here = os.getcwd()
if not os.path.isfile(os.path.join(here, 'setup.py')):
raise click.UsageError('This command must be run in a '
... | bsd-3-clause | 1,449,175,397,260,104,700 | 34.075472 | 76 | 0.648467 | false |
thp44/delphin_6_automation | data_process/wp6_run/not_in_sample.py | 1 | 1275 | __author__ = "Christian Kongsgaard"
__license__ = 'MIT'
# -------------------------------------------------------------------------------------------------------------------- #
# IMPORTS
# Modules
# RiBuild Modules
from delphin_6_automation.database_interactions.db_templates import delphin_entry
from delphin_6_autom... | mit | -887,571,754,433,448,200 | 30.875 | 120 | 0.586667 | false |
Weihonghao/ECM | ECM_model.py | 1 | 22809 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import random
import inspect
import numpy as np
import tensorflow as tf
import copy
import logging
import preprocess_data
import tensorflow as tf
import numpy as np
class ECMModel(object):
def __init__(se... | agpl-3.0 | -7,835,359,824,562,673,000 | 51.434483 | 174 | 0.605945 | false |
debianitram/carcaptus | main.py | 1 | 3091 | #!/usr/bin/python
#-*- encoding: utf-8 -*-
# import
import pygame
import common
import random
from pygame.locals import *
from auto import CarPlayer, CarEnemy
from balas import DisparoPlayer, DisparoEnemy
import ImageDraw
from PIL import ImageEnhance
from plantas import Planta
from pista import Ruta
from bomba import ... | agpl-3.0 | 4,571,479,237,483,563,000 | 21.713235 | 83 | 0.723211 | false |
louispotok/pandas | pandas/tests/io/test_clipboard.py | 1 | 5122 | # -*- coding: utf-8 -*-
import numpy as np
from numpy.random import randint
from textwrap import dedent
import pytest
import pandas as pd
from pandas import DataFrame
from pandas import read_clipboard
from pandas import get_option
from pandas.util import testing as tm
from pandas.util.testing import makeCustomDatafra... | bsd-3-clause | 8,799,019,577,396,479,000 | 35.985507 | 77 | 0.527429 | false |
korealerts1/sentry | src/sentry/migrations/0082_auto__add_activity__add_field_group_num_comments__add_field_event_num_.py | 36 | 24692 | # -*- 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 model 'Activity'
db.create_table('sentry_activity', (
('id', self.gf('sentry.db.models.... | bsd-3-clause | -4,683,570,997,946,223,000 | 80.223684 | 167 | 0.559371 | false |
pydot/pydot | dot_parser.py | 1 | 15074 | """Graphviz's dot language parser.
The dotparser parses GraphViz files in
dot and dot files and transforms them
into a class representation defined by `pydot`.
Author: Michael Krause <michael@krause-software.de>
Fixes by: Ero Carrera <ero.carrera@gmail.com>
"""
from pyparsing import (
nestedExpr,
Literal,
... | mit | -2,621,469,633,389,718,500 | 25.917857 | 78 | 0.521295 | 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.