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 |
|---|---|---|---|---|---|---|---|---|---|---|
snsokolov/contests | codeforces/558C_chem_2.py | 1 | 4460 | #!/usr/bin/env python3
# 558C_chem.py - Codeforces.com/problemset/problem/558/C Chem quiz by Sergey 2015
# Standard modules
import unittest
import sys
# Additional modules
import itertools
###############################################################################
# Chem Class
####################################... | unlicense | 4,462,464,134,741,659,000 | 26.361963 | 81 | 0.440135 | false |
zooba/PTVS | Python/Product/Miniconda/Miniconda3-x64/Lib/idlelib/idle_test/test_window.py | 11 | 1075 | "Test window, coverage 47%."
from idlelib import window
import unittest
from test.support import requires
from tkinter import Tk
class WindowListTest(unittest.TestCase):
def test_init(self):
wl = window.WindowList()
self.assertEqual(wl.dict, {})
self.assertEqual(wl.callbacks, [])
# ... | apache-2.0 | -6,704,342,921,100,253,000 | 22.888889 | 65 | 0.631628 | false |
jkpr/qlang | qlang/borrow.py | 1 | 4800 | """
Supply source XLSForm
get the translations from different file(s)
"""
import xlsxwriter
import argparse
import re
import qlang
from qlang import QlangError
import spreadsheet
class TranslationDict():
"""
Intermediate product is a dictionary
{
"eng-string1" : {
"language1" : ["... | mit | -6,599,520,850,606,766,000 | 28.447853 | 121 | 0.554375 | false |
tjcorona/PyFR | pyfr/solvers/navstokes/system.py | 1 | 2757 | # -*- coding: utf-8 -*-
from pyfr.solvers.baseadvecdiff import BaseAdvectionDiffusionSystem
from pyfr.solvers.navstokes.elements import NavierStokesElements
from pyfr.solvers.navstokes.inters import (NavierStokesBaseBCInters,
NavierStokesIntInters,
... | bsd-3-clause | 4,086,353,880,125,991,000 | 35.276316 | 68 | 0.540443 | false |
GNOME/pygtk | tests/test_gdk.py | 6 | 2483 | import unittest
import gc
from common import gtk, gobject
class CallOnDel:
def __init__(self, callback):
self.callback = callback
def __del__(self):
self.callback()
class GdkTest(unittest.TestCase):
def testBitmapCreateFromData(self):
gtk.gdk.bitmap_create_from_data(None, '\x00', ... | lgpl-2.1 | -1,882,351,300,071,696,100 | 28.915663 | 73 | 0.499799 | false |
encbladexp/makeblog | makeblog/test_tools.py | 1 | 2244 | # makeblog - A simple offline Blog.
# Copyright (C) 2013-2019 Stefan J. Betz <info@stefan-betz.net>
# 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 you... | gpl-3.0 | -8,729,568,014,015,002,000 | 32.432836 | 71 | 0.658036 | false |
MatthewShao/mitmproxy | mitmproxy/tools/console/keybindings.py | 8 | 4686 | import urwid
import blinker
import textwrap
from mitmproxy.tools.console import layoutwidget
from mitmproxy.tools.console import signals
HELP_HEIGHT = 5
keybinding_focus_change = blinker.Signal()
class KeyItem(urwid.WidgetWrap):
def __init__(self, walker, binding, focused):
self.walker, self.binding, s... | mit | 5,222,438,098,474,063,000 | 28.471698 | 80 | 0.569996 | false |
Nick-Hall/gramps | gramps/gen/plug/docgen/paragraphstyle.py | 5 | 11461 | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2002 Gary Shao
# Copyright (C) 2007 Brian G. Matherly
# Copyright (C) 2009 Benny Malengier
# Copyright (C) 2009 Gary Burton
#
# This program is free software; you can redistribute i... | gpl-2.0 | 3,227,552,544,895,539,700 | 31.933908 | 114 | 0.566966 | false |
MPIBGC-TEE/CompartmentalSystems | src/CompartmentalSystems/helpers_reservoir.py | 1 | 44364 | # vim:set ff=unix expandtab ts=4 sw=4:
from typing import Callable, Tuple, Sequence, Set, Dict
from functools import lru_cache, _CacheInfo, _lru_cache_wrapper
import numpy as np
import matplotlib.pyplot as plt
import inspect
from collections import namedtuple
from numbers import Number
from scipy.integrate import odein... | mit | 7,113,966,077,673,015,000 | 27.329502 | 88 | 0.557952 | false |
yuxiang-zhou/deepmachine | deepmachine/contrib/training/Recognition.py | 1 | 4013 | # basic library
import os
import shutil
import math
import time
import h5py
import menpo.io as mio
import menpo3d.io as m3io
import numpy as np
from pathlib import Path
from functools import partial
# deepmachine
import keras
import tensorflow as tf
import deepmachine as dm
from deepmachine.utils.machine import multi_... | mit | 7,890,401,361,579,792,000 | 27.062937 | 132 | 0.570645 | false |
Cinntax/home-assistant | homeassistant/components/alexa/state_report.py | 1 | 5879 | """Alexa state report code."""
import asyncio
import json
import logging
import aiohttp
import async_timeout
from homeassistant.const import MATCH_ALL
from .const import API_CHANGE, Cause
from .entities import ENTITY_ADAPTERS
from .messages import AlexaResponse
_LOGGER = logging.getLogger(__name__)
DEFAULT_TIMEOUT ... | apache-2.0 | 4,879,994,860,031,726,000 | 30.607527 | 129 | 0.662528 | false |
Azulinho/ansible | lib/ansible/plugins/cache/__init__.py | 11 | 9280 | # (c) 2014, Michael DeHaan <michael.dehaan@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 of the License, or
# (at your option) any lat... | gpl-3.0 | 8,739,842,255,107,215,000 | 31.447552 | 156 | 0.589009 | false |
decause/decauseblog | conf.py | 1 | 37820 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
# !! This is the configuration of Nikola. !! #
# !! You should edit it to your liking. !! #
# ! Some settings can be different in different languages.
# ! A comment stating (translatable) is used to denote those.
# ! There are two ways to... | agpl-3.0 | -5,818,107,910,771,448,000 | 37.755897 | 371 | 0.690317 | false |
karlht/services-tools | fxa-l10n/genPrintL10nEmails.py | 2 | 1038 | langs = [ "ca",
"cs",
"cy",
"da",
"de",
"en-US",
"es",
"es-CL",
"et",
"eu",
"fr",
"fy",
"he",
"hu",
"id",
"it",
"ja",
"ko",
"lt",
... | mpl-2.0 | 7,665,612,473,063,577,000 | 18.961538 | 95 | 0.360308 | false |
NigelCleland/pdtools | docs/conf.py | 1 | 9188 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# complexity documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# 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
# au... | bsd-3-clause | -1,587,073,996,493,870,300 | 31.242105 | 195 | 0.692643 | false |
SaschaMester/delicium | testing/legion/rpc_server.py | 5 | 4274 | # 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 | -6,239,894,375,502,028,000 | 32.390625 | 80 | 0.708236 | false |
SydneyUniLibrary/auto-holds | autoholds/sierrasettings-sample.py | 1 | 1874 | # Copyright 2016 Susan Bennett, David Mitchell, Jim Nicholls
#
# This file is part of AutoHolds.
#
# AutoHolds 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 opt... | gpl-3.0 | -6,940,413,179,614,745,000 | 28.28125 | 78 | 0.66222 | false |
all-of-us/raw-data-repository | rdr_service/lib_fhir/fhirclient_1_0_6/models/structuredefinition.py | 1 | 11857 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/StructureDefinition) on 2016-06-23.
# 2016, SMART Health IT.
from . import domainresource
class StructureDefinition(domainresource.DomainResource):
""" Structural Definition.
A def... | bsd-3-clause | -8,748,287,118,281,944,000 | 37.125402 | 110 | 0.604706 | false |
NewpTone/hotzenplotz | hotzenplotz/openstack/common/rpc/matchmaker.py | 1 | 7587 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Cloudscaling Group, 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/LI... | apache-2.0 | -4,742,951,009,940,241,000 | 28.406977 | 78 | 0.619481 | false |
toshywoshy/ansible | test/units/modules/network/fortios/test_fortios_log_fortianalyzer_override_filter.py | 21 | 9758 | # Copyright 2019 Fortinet, Inc.
#
# 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.
#
# This program is distributed in the... | gpl-3.0 | 1,994,078,615,659,859,200 | 36.102662 | 133 | 0.602992 | false |
JaneliaSciComp/osgpyplusplus | examples/rough_translated1/osgfpdepth.py | 1 | 35481 | #!/bin/env python
# Automatically translated python version of
# OpenSceneGraph example program "osgfpdepth"
# !!! This program will need manual tuning before it will work. !!!
import sys
from osgpypp import osg
from osgpypp import osgDB
from osgpypp import osgGA
from osgpypp import osgText
from osgpypp import osgU... | bsd-3-clause | -8,710,005,781,620,259,000 | 38.555184 | 180 | 0.65311 | false |
uniteddiversity/mediadrop | mediadrop/plugin/events.py | 9 | 14024 | # This file is a part of MediaDrop (http://www.mediadrop.net),
# Copyright 2009-2015 MediaDrop contributors
# For the exact contribution history, see the git revision log.
# The source code contained in this file is licensed under the GPLv3 or
# (at your option) any later version.
# See LICENSE.txt in the main project ... | gpl-3.0 | 1,169,767,692,310,516,000 | 32.075472 | 102 | 0.59063 | false |
fleeto/SS.Moker | dataloader.py | 1 | 2747 | import re
import os.path
import urllib
import json
import imp
import sys
import string
left_sign = "_|"
right_sign = "|_"
base_path = os.path.dirname(os.path.realpath(sys.argv[0]))
def get_data(method, path):
"""
According the requesting url and http method , search in the mock_index.json, then parse the par... | lgpl-3.0 | 2,996,529,063,696,241,700 | 35.144737 | 122 | 0.609028 | false |
codocedo/fca | examples/algorithms_addIntent/ex7_ps_partitions.py | 1 | 2623 | """
FCA - Python libraries to support FCA tasks
Copyright (C) 2017 Victor Codocedo
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 vers... | gpl-3.0 | 3,497,951,857,735,478,300 | 37.014493 | 289 | 0.677087 | false |
bdupharm/sqlalchemy | test/orm/test_joins.py | 2 | 100495 | from sqlalchemy.testing import eq_, assert_raises, assert_raises_message
import operator
from sqlalchemy import *
from sqlalchemy import exc as sa_exc, util
from sqlalchemy.sql import compiler, table, column
from sqlalchemy.engine import default
from sqlalchemy.orm import *
from sqlalchemy.orm import attributes
from s... | mit | -8,141,388,040,386,381,000 | 39.473218 | 216 | 0.553042 | false |
nonemaw/pynet | learnpy_ecourse/class4/ex2_show_version.py | 4 | 3357 | #!/usr/bin/env python
'''
Disclaimer - This is a solution to the below problem given the content we have
discussed in class. It is not necessarily the best solution to the problem.
In other words, I generally only use things we have covered up to this point
in the class (with some exceptions which I will usually note... | gpl-2.0 | 7,522,227,299,573,160,000 | 30.083333 | 101 | 0.698242 | false |
rupertnash/subgrid | python/d3q15/fallers/calibrate.py | 2 | 3363 | import d3q15
N = d3q15.N
import scipy
import cPickle
nIters = 100
def calibrateFromInstance(L, fallerClass):
"""Performs a calibration of the fitting parameter.
L = the lattice to calibrate for
fallerClass = the class of faller to calibrate for
"""
latticeSize = (L.nx, L.ny, L.nz)
return calib... | mit | 8,132,917,996,249,948,000 | 31.650485 | 79 | 0.567648 | false |
gsathya/pyptlib | examples/server.py | 4 | 1179 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""This is a server-side example of the pyptlib API."""
import sys
import pyptlib
import pyptlib.server
if __name__ == '__main__':
try:
managed_info = pyptlib.server.init(["blackfish", "bluefish"])
except pyptlib.config.EnvError, err:
print "pyptlib ... | bsd-3-clause | 2,169,129,348,734,376,400 | 32.685714 | 97 | 0.649703 | false |
MetricsGrimoire/Octopus | octopus/backends/puppet.py | 2 | 7416 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2014-2015 Bitergia
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This ... | gpl-3.0 | -8,845,889,792,911,088,000 | 29.767635 | 93 | 0.593931 | false |
csdms/coupling | pymt/mappers/mapper.py | 2 | 4485 | #! /bin/env python
"""
Examples
========
Point-to-point Mapping
----------------------
>>> import numpy as np
>>> from pymt.grids.map import RectilinearMap as Rectilinear
>>> src = Rectilinear([0, 1, 2], [0, 2])
>>> dst = Rectilinear([.5, 1.5, 2.5], [.25, 1.25])
>>> src.get_x()
array([ 0., 2., 0., 2., 0., 2.])... | mit | -6,161,093,386,491,784,000 | 25.075581 | 78 | 0.565663 | false |
shive/try_rsa | keygen.py | 1 | 2235 | #!/bin/env python
# -*- mode: python; coding: utf-8-sig -*-
#======================================================================================================================
__author__ = 'hshibuya <goe@fuzz.co.jp>'
import sys
import random
from math import log2
def prime(base):
n = base
while True:
... | unlicense | 2,182,299,872,550,145,300 | 25.9375 | 119 | 0.435267 | false |
hovo1990/deviser | generator/code_files/cpp_functions/ConcreteClassFunctions.py | 1 | 6149 | #!/usr/bin/env python
#
# @file ConcreteClassFunctions.py
# @brief class to create functions for concrete classes
# @author Frank Bergmann
# @author Sarah Keating
#
# <!--------------------------------------------------------------------------
#
# Copyright (c) 2013-2015 by the California Institute of Technology... | lgpl-2.1 | 2,138,370,834,405,310,000 | 41.116438 | 78 | 0.574077 | false |
lingdb/CoBL-public | ielex/lexicon/migrations/0080_fix_cognateClassCitations.py | 1 | 2671 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
from django.db import migrations
import datetime
data = [{u'comment': u'From *sw\u012b(s) '
'which reflects the PIE acc. 2 pl. *us-we.',
u'source_id': 273,
u'reliability': u'A',
u'pages': u'... | bsd-2-clause | -7,152,170,905,480,466,000 | 38.865672 | 77 | 0.578435 | false |
larsbergstrom/servo | tests/wpt/web-platform-tests/html/cross-origin-opener-policy/resources/coop-coep.py | 5 | 1224 | def main(request, response):
coop = request.GET.first("coop")
coep = request.GET.first("coep")
redirect = request.GET.first("redirect", None)
if coop != "":
response.headers.set("Cross-Origin-Opener-Policy", coop)
if coep != "":
response.headers.set("Cross-Origin-Embedder-Policy", co... | mpl-2.0 | 6,312,795,498,351,184,000 | 33.971429 | 130 | 0.64951 | false |
hackndev/dalboot | dalmod/pdb.py | 1 | 4891 | # Simple PDB file format parser
# Author: Alex Osborne <alex@mugofgrog.com>
# Created: 27 Nov 2006
#
import struct
import sys
def main():
if len(sys.argv) > 1:
fn = sys.argv[1]
else:
fn = 'brahma-spl.pdb'
out = file('test.pdb','wb')
pdb = Pdb()
pdb.read(file(fn,'rb'))
print str(pdb)
pdb.write(out)
def trun... | gpl-2.0 | -230,827,279,061,851,680 | 25.437838 | 69 | 0.643018 | false |
unor/schemaorg | lib/rdflib/plugins/sparql/evalutils.py | 23 | 2644 | import collections
from rdflib.term import Variable, Literal, BNode, URIRef
from rdflib.plugins.sparql.operators import EBV
from rdflib.plugins.sparql.parserutils import Expr, CompValue
from rdflib.plugins.sparql.sparql import SPARQLError, NotBoundError
def _diff(a, b, expr):
res = set()
for x in a:
... | apache-2.0 | 4,553,954,542,530,082,000 | 22.81982 | 77 | 0.570348 | false |
nysan/yocto-autobuilder | lib/python2.6/site-packages/SQLAlchemy-0.7.1-py2.6-linux-x86_64.egg/sqlalchemy/sql/__init__.py | 8 | 1116 | # sql/__init__.py
# Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from sqlalchemy.sql.expression import (
Alias,
ClauseElement,
ColumnCollec... | gpl-2.0 | -9,017,723,915,355,155,000 | 15.909091 | 84 | 0.600358 | false |
tavisrudd/eventlet | tests/test__socket_errors.py | 8 | 1872 | import unittest
import socket as _original_sock
from eventlet import api
from eventlet.green import socket
class TestSocketErrors(unittest.TestCase):
def test_connection_refused(self):
# open and close a dummy server to find an unused port
server = socket.socket(socket.AF_INET, socket.SOCK_STRE... | mit | -8,021,932,500,938,966,000 | 32.428571 | 71 | 0.558761 | false |
molgun/ocl_web | ocl_web/libs/ocl/api_resource.py | 7 | 1588 | # # TODO: I believe that this file is not used -- retire?
# import simplejson as json
# class ApiResource(object):
# def __init__(self):
# self.uuid = ""
# self.url = ""
# self.display = ""
# self.display_locale = ""
# self.retired = ""
# self.properties = {}
# ... | mpl-2.0 | -3,989,711,067,591,392,000 | 27.872727 | 90 | 0.488035 | false |
ppasq/geonode | geonode/favorite/urls.py | 8 | 1627 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 ... | gpl-3.0 | 2,795,132,803,671,436,300 | 28.581818 | 73 | 0.548248 | false |
hujiajie/chromium-crosswalk | third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader_multipart.py | 13 | 6934 | # Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | bsd-3-clause | 2,830,638,199,103,254,500 | 35.687831 | 133 | 0.628209 | false |
CamelBackNotation/CarnotKE | jyhton/Lib/test/test_complex_jy.py | 9 | 1910 | """Misc complex tests
Made for Jython.
"""
import unittest
from test import test_support
INF, NINF, NAN = map(float, ("inf", "-inf", "nan"))
class ComplexTest(unittest.TestCase):
def test_dunder_coerce(self):
self.assertEqual(complex.__coerce__(1+1j, None), NotImplemented)
self.assertRaises(Type... | apache-2.0 | 7,105,574,746,260,678,000 | 33.727273 | 93 | 0.548691 | false |
manassolanki/frappe | frappe/desk/report/todo/todo.py | 18 | 1298 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import getdate
def execute(filters=None):
priority_map = {"High": 3, "Medium": 2, "Low": 1}
todo_list = frappe.get_list('T... | mit | 80,248,676,777,061,330 | 37.205882 | 83 | 0.665639 | false |
kevinmel2000/sl4a | python/src/Tools/bgen/bgen/bgenGenerator.py | 43 | 8834 | from bgenOutput import *
from bgenType import *
from bgenVariable import *
Error = "bgenGenerator.Error"
DEBUG=0
# Strings to specify argument transfer modes in generator calls
IN = "in"
OUT = "out"
INOUT = IN_OUT = "in-out"
class BaseFunctionGenerator:
def __init__(self, name, condition=None, callname=None,... | apache-2.0 | 1,704,962,134,877,571,000 | 28.251656 | 79 | 0.521621 | false |
pyhmsa/pyhmsa | pyhmsa/fileformat/importer/emsa.py | 1 | 12424 | """
Importer from EMSA file format
"""
# Standard library modules.
import datetime
# Third party modules.
import numpy as np
# Local modules.
from pyhmsa.fileformat.importer.importer import _Importer, _ImporterThread
from pyhmsa.fileformat.common.emsa import calculate_checksum
from pyhmsa.datafile import DataFile
f... | mit | -6,221,120,949,332,548,000 | 35.011594 | 108 | 0.59047 | false |
seanli9jan/tensorflow | tensorflow/python/autograph/operators/control_flow.py | 10 | 7759 | # 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 | -5,335,090,495,901,691,000 | 33.180617 | 80 | 0.693259 | false |
jrg365/gpytorch | docs/source/conf.py | 1 | 8284 | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | mit | 8,419,958,730,044,610,000 | 28.691756 | 108 | 0.637615 | false |
mathLab/RBniCS | tests/methodology/tutorials/13_elliptic_optimal_control/tutorial_elliptic_optimal_control_2_pod_exact.py | 1 | 6138 | # Copyright (C) 2015-2021 by the RBniCS authors
#
# This file is part of RBniCS.
#
# SPDX-License-Identifier: LGPL-3.0-or-later
from dolfin import *
from rbnics import *
@ExactParametrizedFunctions()
class EllipticOptimalControl(EllipticOptimalControlProblem):
# Default initialization of members
def __init_... | lgpl-3.0 | -4,688,242,645,868,259,000 | 32.358696 | 102 | 0.538938 | false |
sebastien-forestier/explaupoppydiva | scripts/arm/pool.py | 1 | 12345 | from experiment import VrepDivaExperiment
from config import Config
from multiprocessing import Lock
import threading
import pyvrep
import time
import datetime
import os
import sys
#print 'Number of arguments:', len(sys.argv), 'arguments.'
#print 'Argument List:', str(sys.argv)
assert len(sys.argv) > 1, "Usage: 'pyth... | gpl-3.0 | -1,628,991,086,286,354,700 | 36.409091 | 134 | 0.55245 | false |
VisheshHanda/production_backup | erpnext/shopping_cart/doctype/shopping_cart_settings/shopping_cart_settings.py | 23 | 3878 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _, msgprint
from frappe.utils import comma_and
from frappe.model.doc... | gpl-3.0 | -3,614,599,071,228,152,000 | 39.821053 | 156 | 0.740846 | false |
ddboline/pylearn2 | setup.py | 1 | 3987 | from __future__ import print_function
import warnings
from setuptools import setup, find_packages, Extension
from setuptools.command.install import install
import numpy
from theano.compat.six.moves import input
# Because many people neglected to run the pylearn2/utils/setup.py script
# separately, we compile the nec... | bsd-3-clause | -7,392,977,645,857,930,000 | 44.827586 | 79 | 0.619513 | false |
lcy-seso/Paddle | python/paddle/fluid/tests/unittests/test_mean_op.py | 5 | 1070 | # Copyright (c) 2018 PaddlePaddle 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 app... | apache-2.0 | -4,405,959,967,995,606,500 | 30.470588 | 74 | 0.68785 | false |
iwebhub/dotfiles | setup.py | 1 | 4004 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
import operator
print 'Postinstall wizard'
print 'za Ubuntu/Debian'
print 'Za nastavak unesite Y, a za izlaz X'
choice = raw_input()
if choice == "X":
print 'izlazim'
exit()
elif choice == "Y":
print 'ok, nastavljam'
else:
print 'nevaljan izbor, izlazim... | mit | 5,720,968,160,988,043,000 | 23.036145 | 145 | 0.745363 | false |
nicholasmalaya/paleologos | disputatio/routines/vanes/combo.py | 2 | 8664 | #!/bin/py
#
# interpolate over data field with 2d polynomial fit
#
# fit a 2D, 3rd order polynomial to data
# estimate the 16 coefficients using all of your data points.
#
# http://stackoverflow.com/questions/18832763/drawing-directions-fields
#
#
import numpy as np
import matplotlib
matplotlib.use('Agg')
import iter... | mit | -839,450,253,255,232,900 | 22.543478 | 89 | 0.498384 | false |
shootstar/novatest | nova/api/openstack/compute/contrib/server_diagnostics.py | 13 | 2512 | # Copyright 2011 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 | -4,403,356,443,584,771,000 | 36.492537 | 78 | 0.67078 | false |
syphar/django | tests/template_tests/syntax_tests/test_for.py | 11 | 8082 | from django.template import TemplateSyntaxError
from django.test import SimpleTestCase
from ..utils import setup
class ForTagTests(SimpleTestCase):
libraries = {'custom': 'template_tests.templatetags.custom'}
@setup({'for-tag01': '{% for val in values %}{{ val }}{% endfor %}'})
def test_for_tag01(self):... | bsd-3-clause | -2,457,779,798,460,977,000 | 49.198758 | 108 | 0.557659 | false |
intel/intel-iot-refkit | meta-iotqa/lib/oeqa/runtime/programming/python/apprt_python_runtime.py | 6 | 5973 | # -*- coding: utf8 -*-
import os
import time
from oeqa.oetest import oeRuntimeTest
class PythonRuntimeTest(oeRuntimeTest):
'''
This test suite tests whether some basic and key Python modules work well.
Notice:
Python upstream tests have been already present in an image.
The path generall... | mit | 9,182,438,659,550,893,000 | 31.286486 | 82 | 0.537753 | false |
hirose31/ganglia-pymodule_skeleton | skel_simple.py | 1 | 2607 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
descriptors = list()
Desc_Skel = {}
Debug = False
def dprint(f, *v):
if Debug:
print >>sys.stderr, "DEBUG: "+f % v
# ここで値を作って返す
def metric_of(name):
dprint("%s", name)
if name == "foo":
return 1
elif name == "bar":
re... | apache-2.0 | 7,990,513,699,839,484,000 | 24.31 | 64 | 0.478072 | false |
bakatrouble/elevators | ui/applications/application_wizard.py | 1 | 5674 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'application_wizard.ui'
#
# Created by: PyQt5 UI code generator 5.8.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_ApplicationWizard(object):
def setupUi(self, ApplicationW... | gpl-3.0 | -6,174,398,591,411,151,000 | 55.734694 | 122 | 0.740108 | false |
teozkr/Flask-Pushrod | flask_pushrod/renderers/base.py | 1 | 2987 | from werkzeug.exceptions import NotAcceptable
from flask import current_app, Response
from functools import wraps
class UnrenderedResponse(object):
"""
Holds basic response data from the view function until it is processed by the renderer.
"""
#: The class to construct with the rendered response, d... | mit | 7,854,506,730,519,434,000 | 36.810127 | 411 | 0.675929 | false |
bingopodcast/bingos | bingo_emulator/graphics/orient.py | 1 | 58676 |
import pygame
import random
pygame.display.set_caption("Multi Bingo")
screen = pygame.display.set_mode((0,0))
screen.fill([0,0,0])
pygame.mouse.set_visible(False)
meter = pygame.image.load('graphics/assets/black_register_cover.png').convert()
odds = pygame.image.load('orient/assets/odds.png').convert_alpha()
eb = py... | gpl-3.0 | 7,389,662,866,704,500,000 | 37.961487 | 190 | 0.551827 | false |
tobymccann/flask-base | app/models/tools.py | 1 | 15824 | """
SQLAlchemy data model for the web service
"""
from slugify import slugify
from .. import db
from ..exception import TemplateVariableNotFoundException, TemplateValueNotFoundException
from ..utils import MakoConfigGenerator
class TemplateValue(db.Model):
"""
TemplateValue
=============
The template... | mit | 225,298,349,692,474,800 | 34.963636 | 119 | 0.612045 | false |
alexfalcucc/anaconda | anaconda_server/lib/registry.py | 9 | 1594 |
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org>
# This program is Free Software see LICENSE file for details
import os
import sys
import logging
class HandlerRegistry(object):
"""Register anaconda JsonServer handlers
"""
initialized = False
def __init__(self):
self._handl... | gpl-3.0 | -3,983,221,470,204,304,000 | 25.566667 | 73 | 0.566499 | false |
google/llvm-premerge-checks | scripts/metrics/buildbot_status_emails.py | 1 | 5577 | #!/usr/bin/env python3
# Copyright 2019 Google LLC
#
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law ... | apache-2.0 | -9,055,137,606,409,177,000 | 38.560284 | 134 | 0.59835 | false |
csutorasr/BMEVIAUAL00 | model/rl.py | 1 | 8350 | from tkinter import *
import tkinter as tk
import tkinter.font as tk_font
from tkinter.filedialog import askopenfilename
from tkinter.messagebox import showerror
import xml.etree.ElementTree as ElementTree
import alg
import util
import xmlh
window_width = 1280
window_height = 720
def convert_coordinates(text):
... | mit | -7,374,649,057,308,071,000 | 36.276786 | 120 | 0.566108 | false |
PremiumGraphics/DirectView | ThirdParty/wxWidgets-3.0.2/docs/doxygen/scripts/common.py | 23 | 4360 | # format: class : {method : (prototype1, prototype2)}
# using a "*" means all prototypes
ignored_methods = {
"wxIcon": {'wxIcon': (['const char', 'int', 'int'], )},
}
# these classes are either replaced by different data types in bindings, or have equivalent / better
# functionality provided by the target language... | lgpl-3.0 | -7,107,579,167,622,636,000 | 25.585366 | 100 | 0.532798 | false |
lesserwhirls/scipy-cwt | scipy/weave/examples/vtk_example.py | 12 | 3587 | """ A simple example to show how to use weave with VTK. This lets one
create VTK objects using the standard VTK-Python API (via 'import
vtk') and then accelerate any of the computations by inlining C++ code
inside Python.
Please note the use of the `inc_dirs` and the `lib_dirs` variables in
the call to weave.inline. ... | bsd-3-clause | -7,657,629,103,937,554,000 | 29.922414 | 75 | 0.648453 | false |
SUSE-Cloud/nova | nova/tests/api/ec2/test_ec2_validate.py | 11 | 10954 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Cloudscaling, Inc.
# Author: Joe Gordon <jogo@cloudscaling.com>
# All Rights Reserved.
# Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.... | apache-2.0 | -8,973,099,646,914,058,000 | 39.57037 | 78 | 0.591108 | false |
xgin/letsencrypt | acme/acme/challenges.py | 9 | 19974 | """ACME Identifier Validation Challenges."""
import abc
import functools
import hashlib
import logging
import socket
from cryptography.hazmat.primitives import hashes
import OpenSSL
import requests
from acme import errors
from acme import crypto_util
from acme import fields
from acme import jose
from acme import othe... | apache-2.0 | 8,573,538,049,007,753,000 | 30.30721 | 80 | 0.631871 | false |
maas/maas | src/maasserver/websockets/handlers/__init__.py | 1 | 3033 | # Copyright 2015-2020 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Handlers for the WebSocket connections."""
# Note: please keep this array in a consistent order with the imports below,
# so that it's easy to sanity-check.
__all__ = [
... | agpl-3.0 | 1,806,827,872,331,416,600 | 40.547945 | 76 | 0.817343 | false |
kalvdans/scipy | benchmarks/benchmarks/go_benchmark_functions/go_funcs_Z.py | 47 | 6803 | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
from numpy import abs, sum, sign, arange
from .go_benchmark import Benchmark
class Zacharov(Benchmark):
r"""
Zacharov objective function.
This class defines the Zacharov [1]_ global optimization problem. This
i... | bsd-3-clause | 1,862,371,237,927,457,000 | 28.837719 | 80 | 0.51345 | false |
r-o-b-b-i-e/pootle | pootle/apps/accounts/managers.py | 1 | 3833 | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.contrib.auth.models import BaseU... | gpl-3.0 | -9,179,225,736,352,510,000 | 33.531532 | 79 | 0.634751 | false |
run2/citytour | 4symantec/Lib/site-packages/numpy-1.9.2-py2.7-win-amd64.egg/numpy/core/fromnumeric.py | 23 | 90688 | """Module containing non-deprecated functions borrowed from Numeric.
"""
from __future__ import division, absolute_import, print_function
import types
import warnings
from .. import VisibleDeprecationWarning
from . import multiarray as mu
from . import umath as um
from . import numerictypes as nt
from .numeric impor... | mit | -4,679,614,008,861,307,000 | 29.867257 | 84 | 0.589461 | false |
ecino/compassion-switzerland | partner_communication_switzerland/wizards/sub_sponsorship_wizard.py | 2 | 3563 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2017 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 __manifest__.py... | agpl-3.0 | 7,113,222,375,823,380,000 | 40.430233 | 79 | 0.552063 | false |
MakeHer/edx-platform | lms/djangoapps/courseware/tests/test_video_mongo.py | 11 | 53200 | # -*- coding: utf-8 -*-
"""Video xmodule tests in mongo."""
import ddt
import itertools
import json
from collections import OrderedDict
from path import Path as path
from lxml import etree
from mock import patch, MagicMock, Mock
from nose.plugins.attrib import attr
from django.conf import settings
from django.test im... | agpl-3.0 | -7,379,228,736,660,660,000 | 38.61997 | 118 | 0.542091 | false |
kidburglar/youtube-dl | youtube_dl/extractor/acast.py | 6 | 4722 | # coding: utf-8
from __future__ import unicode_literals
import re
import functools
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
float_or_none,
int_or_none,
try_get,
unified_timestamp,
OnDemandPagedList,
)
class ACastIE(InfoExtractor):
IE_NAME = 'aca... | unlicense | 9,202,544,453,285,693,000 | 36.736 | 98 | 0.519186 | false |
onelife/rt-thread | bsp/stm32/stm32f769-st-disco/rtconfig.py | 4 | 4042 | import os
# toolchains options
ARCH='arm'
CPU='cortex-m7'
CROSS_TOOL='gcc'
# bsp lib config
BSP_LIBRARY_TYPE = None
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute... | gpl-2.0 | 4,391,509,777,458,285,600 | 26.127517 | 152 | 0.560861 | false |
onebit0fme/conveyance-tornado | main.py | 1 | 1523 | import tornado.ioloop
import tornado.web
import sys
import json
import jsonschema
from conveyance import Conveyance, ValidationError
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, I'm Conveyance")
def post(self, *args, **kwargs):
self.set_header("Content-Typ... | gpl-2.0 | -5,091,105,326,290,818,000 | 26.690909 | 74 | 0.563362 | false |
qsnake/gpaw | doc/install/BGP/bgp_gcc.py | 3 | 1315 | #!/usr/bin/env python
"""bgp_gcc.py is a wrapper for the BGP gcc compiler,
converting/removing incompatible gcc args. """
import sys
from subprocess import call
from glob import glob
args2change = {"-fno-strict-aliasing":"",
"-fmessage-length=0":"",
"-Wall":"",
"-std=... | gpl-3.0 | -5,352,558,975,580,986,000 | 22.909091 | 52 | 0.428137 | false |
PressLabs/silver | silver/models/documents/proforma.py | 1 | 5565 | # Copyright (c) 2016 Presslabs SRL
#
# 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 writ... | apache-2.0 | -6,906,302,606,249,241,000 | 36.601351 | 98 | 0.649057 | false |
reinaldomaslim/Singaboat_RobotX2016 | robotx_control/nodes/lis_cmdvel_boat.py | 3 | 9051 | #!/usr/bin/env python
# ren ye 20160517
# refernence:
# http://answers.ros.org/question/29706/twist-message-example-and-cmd_vel/
# http://blog.csdn.net/heyijia0327/article/details/41823809
# changelog, use arduino + rosserial to drive the esc
# import roslib
import rospy
import math
# import tf.transformations
from g... | gpl-3.0 | -7,298,233,612,400,898,000 | 36.400826 | 89 | 0.59463 | false |
piffey/ansible | lib/ansible/modules/network/f5/bigip_gtm_wide_ip.py | 27 | 21011 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks 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 | 862,586,670,232,281,700 | 29.144907 | 91 | 0.567417 | false |
openvstorage/arakoon | src/client/python/ArakoonValidators.py | 4 | 2748 | """
Copyright (2010-2014) INCUBAID BVBA
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, so... | apache-2.0 | -5,356,192,753,668,729,000 | 33.797468 | 89 | 0.562591 | false |
apple/swift-lldb | packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteSingleStep.py | 5 | 1375 | from __future__ import print_function
import gdbremote_testcase
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestGdbRemoteSingleStep(gdbremote_testcase.GdbRemoteTestCaseBase):
mydir = TestBase.compute_mydir(__file__)
@skipIfDarwinE... | apache-2.0 | 5,775,667,500,125,585,000 | 31.738095 | 106 | 0.653818 | false |
thirumoorthir/My_python_programs | app1_version.1.py | 1 | 1312 | #!/usr/bin/python
# This is an simple python program to read content in an file and compute it and stores result.
import decimal
def amount_hand():
print "The amount in your hand is %d" %balance
def write():
f = open('balance1','w') #program open's balance file and write data output to it .
f.w... | apache-2.0 | 1,360,912,161,278,549,000 | 35.444444 | 153 | 0.60061 | false |
OndrejIT/pyload | module/plugins/hoster/NowVideoSx.py | 8 | 1609 | # -*- coding: utf-8 -*-
import re
from ..internal.SimpleHoster import SimpleHoster
class NowVideoSx(SimpleHoster):
__name__ = "NowVideoSx"
__type__ = "hoster"
__version__ = "0.17"
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?nowvideo\.[a-zA-Z]{2,}/(video/|mobile/(#/videos/|.+?id=))(?... | gpl-3.0 | 3,576,412,993,236,050,400 | 32.520833 | 106 | 0.530764 | false |
hortonworks/hortonworks-sandbox | desktop/core/ext-py/Twisted/twisted/test/test_internet.py | 1 | 50248 | # Copyright (c) 2001-2007 Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.trial import unittest
from twisted.internet import reactor, protocol, error, abstract, defer
from twisted.internet import interfaces, base
from twisted.internet.tcp import Connection
from twisted.test.time_helpers import C... | apache-2.0 | -4,301,436,880,554,129,400 | 31.992777 | 106 | 0.611248 | false |
amenonsen/ansible | lib/ansible/modules/remote_management/manageiq/manageiq_tenant.py | 22 | 18428 | #!/usr/bin/python
#
# (c) 2018, Evert Mulder (base on manageiq_user.py by Daniel Korn <korndaniel1@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, eithe... | gpl-3.0 | -1,074,665,009,640,361,600 | 32.263538 | 117 | 0.583406 | false |
mPowering/django-orb | orb/views.py | 1 | 30008 | import os
from collections import defaultdict
from django.conf import settings
from django.contrib import messages
from django.core.paginator import Paginator, InvalidPage, EmptyPage
from django.core.urlresolvers import reverse
from django.db.models import Count, Q
from django.http import HttpResponseRedirect, Http404... | gpl-3.0 | 4,012,170,673,093,506,600 | 35.285369 | 122 | 0.6232 | false |
indashnet/InDashNet.Open.UN2000 | android/external/chromium_org/v8/tools/v8heapconst.py | 1 | 10545 | # Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | apache-2.0 | -4,956,309,752,017,681,000 | 40.352941 | 72 | 0.708108 | false |
eliran-stratoscale/rackattack-api | py/rackattack/tests/test_allocation.py | 2 | 3633 | import mock
import unittest
from rackattack.tcp import publish
from rackattack.tcp import suicide
from rackattack.tcp import allocation
from rackattack.tests import mock_pika
from rackattack.tests import fake_subscribe
from rackattack.tests import one_threaded_publish
class FakeIPCClient:
def __init__(self, hosts... | apache-2.0 | 4,197,909,182,829,005,000 | 38.48913 | 99 | 0.652078 | false |
brev/nupic | src/nupic/datafiles/extra/secondOrder/makeDataset.py | 34 | 18958 | #! /usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions... | agpl-3.0 | 3,369,946,948,047,082,500 | 36.540594 | 84 | 0.514453 | false |
coinbox/coinbox-mod-stock | cbmod/stock/controllers/form.py | 1 | 2414 | import cbpos
from cbmod.stock.models import Product, Category
from cbmod.base.controllers import FormController
class CategoriesFormController(FormController):
cls = Category
def fields(self):
return {"name": (cbpos.tr.stock_("Name"), ""),
"parent": (cbpos.tr.stock_("Parent Categ... | mit | 1,218,395,910,546,391,600 | 29.948718 | 88 | 0.55261 | false |
jsma/django-cms | cms/tests/test_rendering.py | 2 | 25139 | # -*- coding: utf-8 -*-
from django.core.cache import cache
from django.test.utils import override_settings
from sekizai.context import SekizaiContext
from cms import plugin_rendering
from cms.api import create_page, add_plugin
from cms.cache.placeholder import get_placeholder_cache
from cms.models import Page, Placeh... | bsd-3-clause | -4,624,720,984,612,192,000 | 43.731317 | 127 | 0.594176 | false |
hocinebendou/bika.gsoc | bika/lims/content/storagelevel.py | 1 | 3787 | from AccessControl import ClassSecurityInfo
from bika.lims import bikaMessageFactory as _
from bika.lims.config import PROJECTNAME
from bika.lims.content.bikaschema import BikaFolderSchema
from bika.lims.content.bikaschema import BikaSchema
from bika.lims.interfaces import IStorageLevel
from bika.lims.interfaces import... | mit | -6,424,093,236,299,220,000 | 32.219298 | 93 | 0.649327 | false |
sowe9385/qiime | scripts/principal_coordinates.py | 15 | 4906 | #!/usr/bin/env python
# File created on 09 Feb 2010
from __future__ import division
__author__ = "Antonio Gonzalez Pena"
__copyright__ = "Copyright 2011, The QIIME Project"
__credits__ = ["Justin Kuczynski", "Rob Knight", "Antonio Gonzalez Pena",
"Catherine Lozupone", "Jose Antonio Navas Molina"]
__lice... | gpl-2.0 | 640,386,690,097,262,700 | 43.6 | 79 | 0.570934 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/artifact.py | 2 | 3290 | # 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 ... | mit | -7,418,917,253,011,895,000 | 36.386364 | 78 | 0.571429 | false |
sambiak/pandaMorp | audio.py | 1 | 1961 | # This Python file uses the following encoding: utf-8
"""
Morpion en 3 dimensions avec une IA utilisant l'algorithme Minimax implémenté
Copyright (C) 2015 Guillaume Augustoni, Leo Henriot, Raphael Chevalier et Enzo cabezas
This program is free software: you can redistribute it and/or modify
it under the terms of the ... | gpl-3.0 | -3,316,838,220,605,760,500 | 33.928571 | 87 | 0.765849 | false |
0x46616c6b/ansible | test/runner/lib/import_analysis.py | 23 | 5934 | """Analyze python import statements."""
from __future__ import absolute_import, print_function
import ast
import os
import uuid
from lib.util import (
display,
ApplicationError,
)
def get_python_module_utils_imports(compile_targets):
"""Return a dictionary of python file paths mapped to sets of module_... | gpl-3.0 | 4,384,890,752,725,790,700 | 34.532934 | 130 | 0.614257 | false |
lzw120/django | build/lib/django/contrib/localflavor/si/si_postalcodes.py | 89 | 13570 | # *-* coding: utf-8 *-*
SI_POSTALCODES = [
(1000, u'Ljubljana'),
(1215, u'Medvode'),
(1216, u'Smlednik'),
(1217, u'Vodice'),
(1218, u'Komenda'),
(1219, u'Laze v Tuhinju'),
(1221, u'Motnik'),
(1222, u'Trojane'),
(1223, u'Blagovica'),
(1225, u'Lukovica'),
(1230, u'Dom\u017eale... | bsd-3-clause | -2,700,544,115,968,707,000 | 27.933902 | 67 | 0.552837 | 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.