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
GertBurger/pygame_cffi
pygame/_sdl_keys.py
1
12801
"""Special separate FFI module for keyboard constants. These are enums that take many long seconds to build and they don't change at all, so having them in a separate FFI unit makes startup faster when we've changed the cdef and have to rebuild. """ import cffi ffi = cffi.FFI() ffi.cdef(""" typedef enum { SDLK_...
lgpl-2.1
-2,767,752,427,150,098,000
23.15283
77
0.649402
false
jadore/nosqlsploit
lib/utils/db.py
1
3370
# -*- coding: utf-8 -*- from prettyPrint import * from sqlite3 import * from os import listdir,system class DB: def __init__(self): self.db = 'db/nss.db' self.plugin = 'plugins' self.mongodb = 'mongodb' self.multi = 'multi' self.sep = "/" def initDB(self): ...
gpl-3.0
8,703,759,458,650,699,000
32.326733
98
0.551396
false
nidhisaini28/shipping-costs-sample
api-ai-python-master/apiai/requests/query/text.py
3
1590
# -*- coding: utf-8 -*- from . import QueryRequest import json class TextRequest(QueryRequest): """ TextRequest request class Send simple text queries. Query can be string or array of strings. """ @property def query(self): """ Query parameter, can be st...
mit
-3,730,089,571,274,489,000
25.065574
75
0.515723
false
p0cisk/Quantum-GIS
python/plugins/processing/algs/gdal/onesidebuffer.py
4
5719
# -*- coding: utf-8 -*- """ *************************************************************************** onesidebuffer.py --------------------- Date : Janaury 2015 Copyright : (C) 2015 by Giovanni Manghi Email : giovanni dot manghi at naturalgis dot pt *****...
gpl-2.0
2,731,807,379,373,103,000
41.679104
138
0.578773
false
BackupGGCode/sphinx
sphinx/ext/ifconfig.py
14
1969
# -*- coding: utf-8 -*- """ sphinx.ext.ifconfig ~~~~~~~~~~~~~~~~~~~ Provides the ``ifconfig`` directive that allows to write documentation that is included depending on configuration variables. Usage:: .. ifconfig:: releaselevel in ('alpha', 'beta', 'rc') This stuff is only in...
bsd-3-clause
-4,735,381,911,072,555,000
30.758065
83
0.59421
false
dangeles/WormFiles
applomics/src/applomics_analysis_160508.py
1
1800
""" A script to analyze applomics data. author: dangeles@caltech.edu """ import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns df1 = pd.read_csv('../input/apple_inoculation_expt_160508.csv') # count colonies adjusted for dilution and volume plated df1['cfu_per_apple'] = df1.col...
mit
-8,262,707,076,797,385,000
35.734694
79
0.643333
false
WadeBarnes/TheOrgBook
tob-api/api_v2/migrations/0001_initial.py
2
8988
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-07-05 17:03 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = Tr...
apache-2.0
-5,349,597,829,212,004,000
43.49505
142
0.54061
false
moshez/nanoauto
nanoauto/web.py
1
2934
import json from zope import interface from twisted.python import usage, filepath from twisted.internet import reactor, endpoints from twisted.cred import portal, checkers from twisted.web import guard, resource, server from twisted.application import internet import klein class Outline(object): app = klein.Kl...
mit
1,337,240,580,099,286,800
34.349398
89
0.636673
false
dkodnik/Ant
addons/base_report_designer/wizard/__init__.py
421
1081
# -*- 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
-9,102,631,438,278,035,000
44.041667
78
0.618871
false
ARTFL-Project/PhiloLogic4
www/scripts/get_query_terms.py
2
1117
#!/usr/bin/env python3 import json import os from wsgiref.handlers import CGIHandler from philologic.runtime.DB import DB from philologic.runtime.Query import get_expanded_query import sys sys.path.append("..") import custom_functions try: from custom_functions import WebConfig except ImportError: from phi...
gpl-3.0
6,081,732,704,517,480,000
27.641026
105
0.707252
false
MotorolaMobilityLLC/external-chromium_org
tools/sharding_supervisor/sharding_supervisor.py
23
2622
#!/usr/bin/env python # Copyright (c) 2012 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. """Defer to run_test_cases.py.""" import os import optparse import sys ROOT_DIR = os.path.dirname( os.path.dirname(os.path.di...
bsd-3-clause
-8,779,950,618,729,657,000
30.214286
77
0.649886
false
ValentinaPeona/tebreak
lib/make_refGene_fa.py
1
1381
#!/usr/bin/env python import sys from gzip import open from pysam import Fastafile from collections import defaultdict as dd def usage(): return "usage: %s <reference genome fasta> <refGenes.txt.gz>" % sys.argv[0] if len(sys.argv) == 3: fa = Fastafile(sys.argv[1]) assert sys.argv[2].endswith('.gz'),...
mit
-6,218,227,708,952,694,000
21.639344
79
0.502534
false
reyrodrigues/EU-SMS
temba/ivr/migrations/0006_auto_20150203_0558.py
2
2396
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from temba.msgs.models import Msg, HANDLED, IVR from temba.orgs.models import Org from temba.flows.models import FlowStep, ActionSet, SayAction from django.conf import settings class Migration(migrations.Migratio...
agpl-3.0
-4,879,426,844,104,769,000
39.610169
105
0.537145
false
RobertABT/heightmap
build/scipy/scipy/weave/tests/test_scxx_dict.py
5
8775
""" Test refcounting and behavior of SCXX. """ from __future__ import absolute_import, print_function import sys from numpy.testing import (TestCase, dec, assert_, assert_raises, run_module_suite) from scipy.weave import inline_tools class TestDictConstruct(TestCase): #--------------...
mit
-6,137,575,467,595,080,000
25.917178
79
0.511795
false
thedrow/django
tests/timezones/tests.py
165
57662
from __future__ import unicode_literals import datetime import re import sys import warnings from unittest import SkipTest, skipIf from xml.dom.minidom import parseString from django.contrib.auth.models import User from django.core import serializers from django.core.exceptions import ImproperlyConfigured from django...
bsd-3-clause
254,940,828,556,074,240
46.07102
144
0.615362
false
micbou/ycmd
ycmd/tests/javascript/debug_info_test.py
4
2326
# Copyright (C) 2018 ycmd contributors # # This file is part of ycmd. # # ycmd 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. # # ycmd...
gpl-3.0
2,586,380,952,447,508,000
33.716418
77
0.674979
false
suiyuan2009/tensorflow
tensorflow/examples/image_retraining/retrain_test.py
31
5680
# Copyright 2015 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
-7,492,194,548,295,120,000
41.38806
80
0.634155
false
MehdiSfr/tensor-flow
tensorflow/tensorboard/float_wrapper.py
27
1776
# Copyright 2015 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
7,821,480,319,045,972,000
35.244898
80
0.702703
false
evidation-health/bokeh
websocket_worker.py
44
1122
#!/usr/bin/env python import argparse from bokeh.server.websocket import make_app import logging def build_parser(): parser = argparse.ArgumentParser(description="start bokeh websocket") parser.add_argument("--url-prefix", help="url prefix", type=str, ...
bsd-3-clause
3,321,317,054,158,561,300
29.324324
73
0.532977
false
bsalimi/myria
jsonQueries/multiwayJoin_shumo/plan_fragment.py
2
7206
#!/usr/bin/env python import json def pretty_json(obj): return json.dumps(obj, sort_keys=True, indent=4, separators=(',', ':')) def twitter_small_relation_key(): relation_key = { "userName" : "chushumo", "programName" : "multiway_join", "relationName" : "twitter_small" } retur...
bsd-3-clause
-4,770,247,312,415,084,000
25.29927
130
0.485845
false
askeing/servo
tests/wpt/web-platform-tests/webdriver/tests/actions/special_keys.py
9
1725
# META: timeout=long import pytest import time from tests.actions.support.keys import ALL_EVENTS, Keys from tests.actions.support.refine import filter_dict, get_keys, get_events @pytest.mark.parametrize("name,expected", ALL_EVENTS.items()) def test_webdriver_special_key_sends_keydown(session, ...
mpl-2.0
-2,599,092,396,632,491,500
37.333333
75
0.597681
false
euronautic/cosmos
code/graph-algorithms/transitive_closure_graph/transitive_closure_graph.py
5
1457
# Python program to print transitive closure of a graph # Part of Cosmos by OpenGenus Foundation from collections import defaultdict # This class represents a directed graph using adjacency list representation class Graph: def __init__(self,vertices): # No. of vertices self.V= vertices ...
gpl-3.0
95,673,607,482,235,060
25.981481
76
0.630062
false
limingzhou/aliyun-cli
aliyuncli/response.py
11
8222
''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use...
apache-2.0
-2,070,264,145,794,234,600
36.372727
90
0.597665
false
krzychb/rtd-test-bed
examples/protocols/asio/tcp_echo_server/asio_tcp_server_test.py
1
2110
import re import os import sys import socket try: import IDF except ImportError: # this is a test case write with tiny-test-fw. # to run test cases outside tiny-test-fw, # we need to set environment variable `TEST_FW_PATH`, # then get and insert `TEST_FW_PATH` to sys path before import FW module ...
apache-2.0
-4,724,406,311,048,424,000
34.166667
108
0.658294
false
ytaben/cyphesis
rulesets/deeds/world/tasks/Combat.py
3
6055
#This file is distributed under the terms of the GNU General Public license. #Copyright (C) 2005-2006 Al Riddoch (See the file COPYING for details). from atlas import * from physics import * from physics import Quaternion from physics import Vector3D from random import * import server class Combat(server.Task): ...
gpl-2.0
706,106,696,264,000,900
40.472603
112
0.620149
false
sargas/scipy
scipy/weave/examples/binary_search.py
3
6766
# Offers example of inline C for binary search algorithm. # Borrowed from Kalle Svensson in the Python Cookbook. # The results are nearly in the "not worth it" catagory. # # C:\home\ej\wrk\scipy\compiler\examples>python binary_search.py # Binary search for 3000 items in 100000 length list of integers: # speed in pytho...
bsd-3-clause
-4,161,861,079,385,872,000
28.938053
91
0.476352
false
dvliman/jaikuengine
.google_appengine/lib/django-1.5/django/conf/urls/__init__.py
116
2538
from django.core.urlresolvers import (RegexURLPattern, RegexURLResolver, LocaleRegexURLResolver) from django.core.exceptions import ImproperlyConfigured from django.utils.importlib import import_module from django.utils import six __all__ = ['handler403', 'handler404', 'handler500', 'include', 'patterns', 'url'] ...
apache-2.0
8,627,314,072,979,496,000
39.935484
118
0.669819
false
asadziach/tensorflow
tensorflow/contrib/slim/python/slim/nets/inception.py
165
1697
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
apache-2.0
6,936,502,230,198,048,000
53.741935
88
0.763701
false
maartenq/ansible
lib/ansible/constants.py
16
7696
# Copyright: (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # Copyright: (c) 2017, Ansible Project # 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 import os from ast import l...
gpl-3.0
-9,087,429,833,175,508,000
36
134
0.651377
false
azumimuo/family-xbmc-addon
script.module.youtube.dl/lib/youtube_dl/extractor/hitrecord.py
50
2269
from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_str from ..utils import ( clean_html, float_or_none, int_or_none, try_get, ) class HitRecordIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?hitrecord\.org/records/(?P<id>\d+)' _TEST = { ...
gpl-2.0
501,427,616,312,330,000
32.367647
76
0.510357
false
CounterpartyXCP/counterparty-cli
counterpartycli/clientapi.py
1
10729
import sys import logging import binascii from urllib.parse import quote_plus as urlencode from counterpartylib.lib import config, script from counterpartycli import util from counterpartycli import wallet from counterpartycli import messages from counterpartycli.messages import get_pubkeys logger = logging.getLogger...
mit
8,582,957,688,625,339,000
40.878906
157
0.662905
false
GaZ3ll3/numpy
numpy/linalg/lapack_lite/fortran.py
132
3476
from __future__ import division, absolute_import, print_function import re import itertools def isBlank(line): return not line def isLabel(line): return line[0].isdigit() def isComment(line): return line[0] != ' ' def isContinuation(line): return line[5] != ' ' COMMENT, STATEMENT, CONTINUATION = 0, 1...
bsd-3-clause
1,774,903,426,673,342,700
27.032258
80
0.584005
false
Endika/OpenUpgrade
openerp/workflow/service.py
378
4972
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-TODAY OpenERP S.A. (<http://openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of...
agpl-3.0
-2,422,667,823,750,394,400
42.234783
146
0.614843
false
textbook/flask-forecaster
tests/integration/test_home_page.py
1
1720
import re from flask import url_for import pytest from selenium.webdriver.common.by import By from tests.helpers import slow from tests.integration.integration_helpers import ( enter_api_token, go_to_home_page, wait_for_element, wait_for_title, ) @pytest.mark.usefixtures('live_server') @slow class T...
isc
8,740,171,907,650,637,000
30.851852
78
0.649419
false
dariobottazzi/kafka-python
test/test_codec.py
3
2762
import struct import unittest2 from kafka.codec import ( has_snappy, gzip_encode, gzip_decode, snappy_encode, snappy_decode ) from kafka.protocol import ( create_gzip_message, create_message, create_snappy_message, KafkaProtocol ) from testutil import * class TestCodec(unittest2.TestCase): def test_gz...
apache-2.0
-5,075,785,924,053,202,000
38.457143
96
0.633599
false
GetSomeBlocks/ServerStatus
resources/lib/twisted/twisted/conch/ssh/common.py
56
2643
# -*- test-case-name: twisted.conch.test.test_ssh -*- # Copyright (c) 2001-2010 Twisted Matrix Laboratories. # See LICENSE for details. """ Common functions for the SSH classes. Maintainer: Paul Swartz """ import struct, warnings try: from Crypto import Util except ImportError: warnings.warn("PyCrypto not ...
mit
-7,216,710,489,275,525,000
21.982609
87
0.580779
false
kevhill/luigi
test/dynamic_import_test.py
19
1462
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
apache-2.0
2,566,612,440,302,721,000
30.782609
122
0.687415
false
stadelmanma/OpenPNM
test/unit/Phases/models/SurfaceTensionTest.py
2
1862
import OpenPNM import scipy as sp class SurfaceTensionTest: def setup_class(self): self.net = OpenPNM.Network.Cubic(shape=[3, 3, 3]) self.phase = OpenPNM.Phases.GenericPhase(network=self.net) self.phase['pore.temperature'] = 298.0 # K self.phase['pore.molecular_weight'] = 0.018 #...
mit
-5,739,012,655,669,199,000
42.302326
74
0.572503
false
Houzz/luigi
examples/wordcount_hadoop.py
23
2729
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
apache-2.0
2,562,584,748,747,172,000
29.662921
111
0.663613
false
partofthething/home-assistant
homeassistant/components/tankerkoenig/sensor.py
10
4399
"""Tankerkoenig sensor integration.""" import logging from homeassistant.const import ( ATTR_ATTRIBUTION, ATTR_LATITUDE, ATTR_LONGITUDE, CURRENCY_EURO, ) from homeassistant.helpers.update_coordinator import ( CoordinatorEntity, DataUpdateCoordinator, UpdateFailed, ) from .const import DOM...
mit
6,212,459,715,340,719,000
28.52349
119
0.599454
false
skymanaditya1/numpy
numpy/f2py/f90mod_rules.py
45
9787
#!/usr/bin/env python """ Build F90 module support for f2py2e. Copyright 2000 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the NumPy License. NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Date: 200...
bsd-3-clause
3,370,083,201,235,422,000
34.981618
121
0.451926
false
NaturalGIS/naturalgis_qgis
python/plugins/processing/tools/system.py
33
3596
# -*- coding: utf-8 -*- """ *************************************************************************** py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ***************************************...
gpl-2.0
3,135,355,012,434,730,000
26.037594
102
0.538098
false
abrahamrq/ViLeOnline
python/ViLe/memory.py
2
3994
# -*- coding: utf-8 -*- from semantics import * from vm import * # Clase que maneja el mapeo de memoria del lenguaje. class Memory: # Se inicializa una instancia de la clase memoria. Se le asigna el nombre de # la función y se asigna memoria dependiendo de la memoria que esta función # haya marcado que necesite ...
mit
-8,227,195,454,075,933,000
40.072165
78
0.667169
false
isyippee/nova
nova/image/api.py
78
9507
# 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 # d...
apache-2.0
-3,633,502,123,189,950,000
51.236264
79
0.637635
false
greg-hellings/ansible-modules-extras
monitoring/nagios.py
36
33057
#!/usr/bin/python # -*- coding: utf-8 -*- # # This file is largely copied from the Nagios module included in the # Func project. Original copyright follows: # # func-nagios - Schedule downtime and enables/disable notifications # Copyright 2011, Red Hat, Inc. # Tim Bielawa <tbielawa@redhat.com> # # This software may be ...
gpl-3.0
-553,581,440,670,797,630
33.943975
441
0.608373
false
borisroman/vdsm
vdsm_hooks/fileinject/before_vm_start.py
6
4140
#!/usr/bin/python import os import sys import hooking import traceback import guestfs ''' fileinject vdsm hook ==================== hook is getting target file name and its content and create that file in target machine. hook will try to add the file only to the operation system partition, i.e. Windows: /c/myfile L...
gpl-2.0
-2,347,994,260,007,903,000
33.5
89
0.502899
false
HLFH/CouchPotatoServer
couchpotato/core/media/movie/providers/trailer/allocine.py
22
6845
#!/usr/bin/env python #-*- coding:utf-8 -*- """ A module to use Allocine API V3 in Python Repository: https://github.com/xbgmsharp/allocine Base on work from: https://github.com/gromez/allocine-api License: LGPLv2 http://www.gnu.org/licenses/lgpl.html Sample code: from allocine import allocine api = allocine(...
gpl-3.0
-4,950,702,000,607,455,000
31.908654
98
0.57385
false
cokirix/p2pool
SOAPpy/Server.py
289
27143
from __future__ import nested_scopes """ ################################################################################ # # SOAPpy - Cayce Ullman (cayce@actzero.com) # Brian Matthews (blm@actzero.com) # Gregory Warnes (Gregory.R.Warnes@Pfizer.com) # Christopher Blunck (blunck...
gpl-3.0
-2,095,356,115,925,657,000
37.446176
83
0.470287
false
openhatch/new-mini-tasks
vendor/packages/Django/django/template/loaders/app_directories.py
114
2362
""" Wrapper for loading templates from "templates" directories in INSTALLED_APPS packages. """ import os import sys from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.template.base import TemplateDoesNotExist from django.template.loader import BaseLoader from django.u...
apache-2.0
1,301,616,455,689,422,300
36.492063
81
0.664268
false
2014c2g6/c2g6
wsgi/static/Brython2.1.0-20140419-113919/Lib/multiprocessing/dummy/__init__.py
693
4380
# # Support for the API of the multiprocessing package using threads # # multiprocessing/dummy/__init__.py # # Copyright (c) 2006-2008, R Oudkerk # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: ...
gpl-2.0
-7,762,351,571,644,102,000
29
79
0.677854
false
topic2k/EventGhost
plugins/Speedlink6399/__init__.py
1
3390
# -*- coding: utf-8 -*- # # This file is a plugin for EventGhost. # Copyright © 2005-2019 EventGhost Project <http://www.eventghost.org/> # # EventGhost 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 v...
gpl-2.0
2,131,782,310,897,582,600
25.271318
77
0.528474
false
ebukoz/thrive
erpnext/regional/report/eway_bill/eway_bill.py
13
9749
# Copyright (c) 2013, FinByz Tech Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import json import re from frappe import _ from frappe.utils import nowdate def execute(filters=None): if not filters: filters.setdefault('posting_date'...
gpl-3.0
8,880,636,910,371,454,000
23.936061
376
0.58447
false
WikiTeam/wikiteam
wikimediacommons/commons-update-status.py
1
2773
#!/usr/bin/env python3 # -*- coding: utf8 -*- # Copyright (C) 2012-2016 WikiTeam developers # 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...
gpl-3.0
557,073,379,103,650,940
41.661538
174
0.55824
false
staute/shinken_package
test/test_groups_pickle.py
18
2067
#!/usr/bin/env python # Copyright (C) 2009-2010: # Gabes Jean, naparuba@gmail.com # Gerhard Lausser, Gerhard.Lausser@consol.de # # This file is part of Shinken. # # Shinken 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 F...
agpl-3.0
7,424,801,876,707,369,000
29.397059
77
0.617804
false
onoga/wm
src/gnue/forms/GFObjects/GFTabStop.py
2
12786
# GNU Enterprise Forms - GF Object Hierarchy - Navigable Objects # # Copyright 2001-2007 Free Software Foundation # # This file is part of GNU Enterprise # # GNU Enterprise 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 ...
gpl-2.0
-2,143,019,912,526,462,500
29.442857
79
0.542703
false
donNewtonAlpha/onos
tools/test/topos/newFuncTopo.py
29
5180
#!/usr/bin/python """ Custom topology for Mininet """ from mininet.topo import Topo from mininet.net import Mininet from mininet.node import Host, RemoteController from mininet.node import Node from mininet.node import CPULimitedHost from mininet.link import TCLink from mininet.cli import CLI from mininet.log import s...
apache-2.0
3,155,428,579,332,324,000
34
94
0.577799
false
flavour/ifrc_qa
languages/en-gb.py
8
15345
# -*- coding: utf-8 -*- { "A volunteer is defined as active if they've participated in an average of 8 or more hours of Program work or Trainings per month in the last year": "A volunteer is defined as active if they've participated in an average of 8 or more hours of Programme work or Trainings per month in the last y...
mit
904,132,863,578,789,600
68.121622
381
0.785272
false
repotvsupertuga/repo
instal/script.module.stream.tvsupertuga.addon/resources/lib/sources/fr/fullmoviz.py
7
5657
# -*- coding: utf-8 -*- ''' Exodus Add-on Copyright (C) 2016 Exodus 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 l...
gpl-2.0
-1,797,700,390,448,272,600
37.753425
133
0.518296
false
lokirius/python-for-android
python3-alpha/python3-src/Lib/test/test_pep263.py
62
1846
# -*- coding: koi8-r -*- import unittest from test import support class PEP263Test(unittest.TestCase): def test_pep263(self): self.assertEqual( "ðÉÔÏÎ".encode("utf-8"), b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd' ) self.assertEqual( "\ð".encode("utf-8")...
apache-2.0
5,233,915,383,725,556,000
28.774194
76
0.539003
false
cnsoft/kbengine-cocos2dx
kbe/res/scripts/common/Lib/ctypes/test/test_bytes.py
65
1190
"""Test where byte objects are accepted""" import unittest import sys from ctypes import * class BytesTest(unittest.TestCase): def test_c_char(self): x = c_char(b"x") x.value = b"y" c_char.from_param(b"x") (c_char * 3)(b"a", b"b", b"c") def test_c_wchar(self): x = c_wch...
lgpl-3.0
-8,006,568,777,179,146,000
22.8
44
0.493277
false
jbassen/edx-platform
common/djangoapps/course_modes/migrations/0008_auto__del_field_coursemodesarchive_description__add_field_coursemode_s.py
102
3098
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'CourseMode.sku' db.add_column('course_modes_coursemode', 'sku', self.g...
agpl-3.0
-6,923,891,263,964,497,000
62.22449
147
0.566172
false
openvapour/ryu
ryu/contrib/ncclient/operations/rpc.py
31
13554
# Copyright 2009 Shikhar Bhushan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
apache-2.0
850,335,419,426,307,700
35.337802
260
0.597093
false
CSE3320/kernel-code
.backup_do_not_remove/tools/testing/selftests/bpf/test_offload.py
54
51622
#!/usr/bin/python3 # Copyright (C) 2017 Netronome Systems, Inc. # Copyright (c) 2019 Mellanox Technologies. All rights reserved # # This software is licensed under the GNU General License Version 2, # June 1991 as shown in the file COPYING in the top-level directory of this # source tree. # # THE COPYRIGHT HOLDERS AND...
gpl-2.0
6,734,219,969,517,848,000
35.846538
145
0.580605
false
chandolia/python-social-auth
social/tests/backends/test_tripit.py
91
4218
import json from social.p3 import urlencode from social.tests.backends.oauth import OAuth1Test class TripitOAuth1Test(OAuth1Test): backend_path = 'social.backends.tripit.TripItOAuth' user_data_url = 'https://api.tripit.com/v1/get/profile' expected_username = 'foobar' access_token_body = json.dumps({ ...
bsd-3-clause
-4,417,576,838,820,062,700
40.762376
71
0.467994
false
csrocha/OpenUpgrade
addons/survey/__openerp__.py
261
2391
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com> # # This program is free software: you can redistribute it and/or modify # it under the terms...
agpl-3.0
-1,312,273,544,434,551,000
40.224138
78
0.614806
false
AlphaSmartDog/DeepLearningNotes
Note-1 RNN-DNC择时/Note-1 初学RqAlpha——PonderLSTM和PonderDNC日频期货的简单应用/sonnet/python/modules/scale_gradient.py
9
2303
# Copyright 2017 The Sonnet 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 applicable l...
mit
-6,157,735,611,853,674,000
35.555556
99
0.686062
false
pjdufour/geonode
geonode/layers/urls.py
2
3186
# -*- 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
8,680,073,594,335,647,000
50.387097
112
0.614878
false
mwickert/SP-Comm-Tutorial-using-scikit-dsp-comm
hardware_configure/sigsys.py
1
81778
""" Signals and Systems Function Module Copyright (c) March 2017, Mark Wickert All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, ...
bsd-2-clause
-4,936,053,027,985,887,000
30.094297
362
0.57244
false
R4stl1n/allianceauth
allianceauth/templatetags/admin_status.py
5
5004
import requests import logging import amqp.exceptions import semantic_version as semver from django import template from django.conf import settings from django.core.cache import cache from celery.app import app_or_default from allianceauth import __version__ register = template.Library() TAG_CACHE_TIME = 10800 # 3 ...
gpl-2.0
-1,629,494,719,293,426,700
35.525547
117
0.594125
false
vishdha/erpnext
erpnext/accounts/report/purchase_register/purchase_register.py
19
9186
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import flt from frappe import msgprint, _ def execute(filters=None): return _execute(filters) def _execute(filters=No...
gpl-3.0
4,234,876,376,549,229,600
38.089362
115
0.690725
false
disqus/django-old
django/contrib/formtools/wizard/storage/cookie.py
5
1058
from django.core.exceptions import SuspiciousOperation from django.core.signing import BadSignature from django.utils import simplejson as json from django.contrib.formtools.wizard import storage class CookieStorage(storage.BaseStorage): encoder = json.JSONEncoder(separators=(',', ':')) def __init__(self, *...
bsd-3-clause
-9,173,566,166,377,751,000
32.0625
83
0.644612
false
cnobile2012/django-pam
django_pam/auth/tests/base_test.py
1
3836
# -*- coding: utf-8 -*- # # django_pam/auth/tests/base_test.py # import os import sys import json import types import getpass import six from io import open from collections import OrderedDict from django.conf import settings from django.test import TestCase from django.utils.translation import ugettext class Base...
mit
-5,190,504,835,069,110,000
30.966667
79
0.537539
false
wnesl/gnuradio-IA
gnuradio-core/src/lib/gengen/generate_common.py
17
3125
#!/usr/bin/env python # # Copyright 2004,2006,2007,2008,2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or...
gpl-3.0
-3,714,507,177,953,139,000
28.481132
74
0.54368
false
F5Networks/f5-ansible-modules
ansible_collections/f5networks/f5_modules/plugins/modules/bigip_device_auth_radius_server.py
1
14733
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2019, 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 DOCUMENTATION = r''' --- module: bigip_device_auth_radiu...
mit
5,205,687,267,390,864,000
26.693609
94
0.576461
false
xxd3vin/spp-sdk
opt/Python27/Lib/test/test_abc.py
3
8024
# Copyright 2007 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Unit tests for abc.py.""" import unittest, weakref from test import test_support import abc from inspect import isabstract class TestABC(unittest.TestCase): def test_abstractmethod_basics(self): @abc...
mit
8,619,109,117,451,715,000
32.433333
79
0.562188
false
mateor/pdroid
android-2.3.4_r1/tags/1.23/build/tools/merge-event-log-tags.py
12
5397
#!/usr/bin/env python # # Copyright (C) 2009 The Android Open Source Project # # 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 req...
gpl-3.0
-2,117,027,179,536,874,000
28.81768
79
0.645914
false
ptemplier/ansible
lib/ansible/modules/cloud/ovirt/ovirt_affinity_label_facts.py
71
5541
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2016 Red Hat, 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 #...
gpl-3.0
5,024,532,877,190,384,000
31.982143
156
0.637069
false
tysonholub/twilio-python
tests/integration/api/v2010/account/sip/test_credential_list.py
1
9645
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class CredentialListTestCase(In...
mit
-8,081,744,761,564,455,000
41.676991
172
0.562675
false
ndawe/root_numpy
root_numpy/_tree.py
3
23233
import warnings from glob import glob import numpy as np from .extern.six import string_types from . import _librootnumpy __all__ = [ 'root2array', 'root2rec', 'list_trees', 'list_branches', 'list_structures', 'list_directories', 'tree2array', 'tree2rec', 'array2tree', 'array2...
bsd-3-clause
-6,566,726,526,413,802,000
35.472527
87
0.571988
false
AOSP-S4-KK/platform_external_chromium_org
chrome/common/extensions/docs/server2/schema_util_test.py
36
4110
#!/usr/bin/env python # Copyright 2013 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. import unittest from copy import deepcopy from schema_util import RemoveNoDocs, DetectInlineableTypes, InlineDocs class SchemaUtilTe...
bsd-3-clause
1,721,256,546,966,045,000
18.665072
80
0.359367
false
pizzathief/numpy
numpy/core/tests/test_ufunc.py
4
81118
from __future__ import division, absolute_import, print_function import warnings import itertools import pytest import numpy as np import numpy.core._umath_tests as umt import numpy.linalg._umath_linalg as uml import numpy.core._operand_flag_tests as opflag_tests import numpy.core._rational_tests as _rational_tests ...
bsd-3-clause
-3,903,231,665,851,478,000
40.620318
91
0.517394
false
rs/flask-assets
docs/conf.py
1
6691
# -*- coding: utf-8 -*- # # Flask-Assets documentation build configuration file, created by # sphinx-quickstart on Fri Aug 6 14:01:08 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # ...
bsd-2-clause
140,339,693,505,713,330
31.794118
83
0.712962
false
yamahata/neutron
neutron/plugins/vmware/extensions/networkgw.py
4
8687
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 VMware. 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/license...
apache-2.0
2,122,487,688,755,741,000
34.17004
78
0.565558
false
fishilico/selinux-refpolicy-patched
bin/find_missing_usr_fc.py
1
4231
#!/usr/bin/env python """ Archlinux only uses /usr/bin folder. /bin, /sbin and /usr/sbin are symlinks to it. This program read all .fc files and find /bin, /sbin and /usr/sbin definitions which don't have a matching /usr/bin definition. Same thing applies to /usr/lib and /lib folders """ import re import os import os....
gpl-2.0
-3,996,584,696,293,198,300
40.891089
122
0.507681
false
zhujzhuo/Sahara
sahara/service/validations/edp/base.py
8
2688
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
apache-2.0
-8,752,471,231,595,562,000
31.780488
75
0.607887
false
jayvdb/coala
coalib/bearlib/languages/documentation/DocBaseClass.py
14
3590
from coalib.bearlib.languages.documentation.DocstyleDefinition import ( DocstyleDefinition) from coalib.results.Diff import Diff from coalib.results.TextRange import TextRange from coalib.bearlib.languages.documentation.DocumentationExtraction import ( extract_documentation_with_markers) class DocBaseClass: ...
agpl-3.0
9,140,881,382,695,410,000
40.264368
78
0.6
false
fablab-lannion/CMStools
FabLab/languages/fr-ca.py
163
8203
# coding: utf8 { '!langcode!': 'fr-ca', '!langname!': 'Français (Canadien)', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" est une expression optionnelle comme "champ1=\'nouvellevaleur\'". Vous ne pouvez mettre à jour ou supprimer les résul...
gpl-2.0
-3,756,417,255,134,581,000
40.584615
291
0.689481
false
lavajumper/sexcoin
test/functional/fundrawtransaction.py
3
32125
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the fundrawtransaction RPC.""" from test_framework.test_framework import BitcoinTestFramework fro...
mit
-4,355,004,780,072,335,000
43.618056
223
0.560467
false
t794104/ansible
test/units/modules/network/f5/test_bigip_lx_package.py
38
3742
# -*- 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 import os import json import pytest import sys if sys.version_info < (2, ...
gpl-3.0
-175,438,103,264,309,300
29.422764
91
0.645377
false
IsmaeRLGV/Modular-UserBot-
config.py
1
3463
#!/usr/bin/env python # -*- coding: utf-8 -*- from API.db import * import os,time,random,re clear=lambda: os.system("clear") cont="s" print "Bienvenido a la configuración de UserBot." print "Nota: Algunos segmentos requridos u opcionales dejarlos en blanco si no sabes para que sirve.\n\n" while cont != "*": print "Mar...
apache-2.0
8,928,140,994,276,754,000
30.724771
256
0.563621
false
welchbj/tt
tt/tests/unit/trees/test_node_is_cnf.py
1
3300
"""Tests for CNF detection in tree nodes.""" import unittest from tt.trees import ExpressionTreeNode class TestTreeNodeIsCnf(unittest.TestCase): def assert_is_cnf(self, postfix_tokens): """Assert the passed tokens are in conjunctive normal form.""" self.assertTrue(ExpressionTreeNode.build_tree(...
mit
-3,649,437,297,212,090,400
41.857143
78
0.489091
false
IsaacHaze/PyMuPDF
examples/PDF2TextJS.py
2
3002
#!/usr/bin/env python """ Created on Wed Jul 29 07:00:00 2015 @author: Jorj McKie Copyright (c) 2015 Jorj X. McKie The license of this program is governed by the GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007. See the "COPYING" file of this repository. This is an example for using the Python binding PyMuPDF of M...
gpl-3.0
-8,268,286,740,087,343,000
32.730337
79
0.586942
false
janblazek/ci-dnf-stack
dnf-behave-tests/dnf/steps/fixtures/server.py
3
2665
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import contextlib import multiprocessing import socket import time class ServerContext(object): """ This object manages a group of simple servers. Each of them is run in a separate process. This is the s...
gpl-3.0
-3,766,009,410,235,436,000
31.108434
98
0.592871
false
anand-c-goog/tensorflow
tensorflow/python/summary/writer/writer.py
8
10113
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
apache-2.0
-595,767,555,574,615,600
38.046332
80
0.67962
false
2014c2g14/c2g14
w2/static/Brython2.0.0-20140209-164925/Lib/random.py
104
25660
"""Random variable generators. integers -------- uniform within range sequences --------- pick random element pick random sample generate random permutation distributions on the real line: ------------------------------ uniform ...
gpl-2.0
-4,388,994,377,785,242,600
34.006821
96
0.553702
false
jbalogh/zamboni
apps/addons/management/commands/process_addons.py
1
1219
from optparse import make_option from django.core.management.base import BaseCommand from addons.models import Addon from amo.utils import chunked from devhub.tasks import convert_purified, flag_binary, get_preview_sizes tasks = { 'flag_binary': {'method': flag_binary, 'qs': []}, 'get_preview_sizes': {'meth...
bsd-3-clause
-672,488,097,951,390,600
32.861111
77
0.59557
false
lenstr/rethinkdb
external/v8_3.30.33.16/build/gyp/test/hello/gyptest-regyp-output.py
202
1077
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that Makefiles get rebuilt when a source gyp file changes and --generator-output is used. """ import TestGyp # Regenerating b...
agpl-3.0
-580,384,815,794,347,300
28.916667
78
0.737233
false
HPDCS/hijacker
parse/parse.py
1
2910
#!/bin/python import sys class AddressInfo(): def __init__(self, address): self.foo = {} self.full_access = 0 self.partial_access = 0 self.address = address def addPartial(self, acc): self.partial_access = acc def addFull(self, acc): self.full_access = acc def __str__(self): ...
gpl-3.0
6,982,783,831,494,359,000
23.526316
158
0.611684
false
asridharan/dcos
pkgpanda/util.py
9
16082
import hashlib import http.server import json import logging import os import re import shutil import socketserver import subprocess from contextlib import contextmanager, ExitStack from itertools import chain from multiprocessing import Process from shutil import rmtree, which from subprocess import check_call from ty...
apache-2.0
-1,894,345,957,807,328
30.972167
111
0.630332
false
pluser/nikola
nikola/data/themes/base/messages/messages_fr.py
6
1486
# -*- encoding:utf-8 -*- from __future__ import unicode_literals MESSAGES = { "%d min remaining to read": "Il reste encore %d min. de lecture", "(active)": "(actif)", "Also available in:": "Également disponible en:", "Archive": "Archives", "Categories": "Catégories", "Comments": "Commentaires",...
mit
-2,167,027,559,291,407,600
36.74359
74
0.597826
false