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 |
|---|---|---|---|---|---|---|---|---|---|---|
ccellis/WHACK2016 | flask/lib/python2.7/site-packages/whoosh/util/cache.py | 95 | 13382 | # Copyright 2007 Matt Chaput. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | bsd-3-clause | 442,261,682,387,120,900 | 34.685333 | 80 | 0.541922 | false |
Desarrollo-CeSPI/meran | dev-plugins/node/lib/node/wafadmin/Tools/unittestw.py | 4 | 11378 | #!/usr/bin/env python
# Meran - MERAN UNLP is a ILS (Integrated Library System) wich provides Catalog,
# Circulation and User's Management. It's written in Perl, and uses Apache2
# Web-Server, MySQL database and Sphinx 2 indexing.
# Copyright (C) 2009-2013 Grupo de desarrollo de Meran CeSPI-UNLP
#
# This file is part ... | gpl-3.0 | 9,151,896,318,975,199,000 | 31.982609 | 110 | 0.680612 | false |
cryptoprojects/ultimateonlinecash | test/functional/p2p-mempool.py | 17 | 1231 | #!/usr/bin/env python3
# Copyright (c) 2015-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 p2p mempool message.
Test that nodes are disconnected if they send mempool messages when bloom
fi... | mit | -343,465,785,368,737,660 | 32.27027 | 75 | 0.683997 | false |
ichuang/sympy | sympy/physics/quantum/tests/test_cg.py | 3 | 7510 | from __future__ import division
from sympy import S, sqrt, Sum, symbols
from sympy.physics.quantum.cg import Wigner3j, Wigner6j, Wigner9j, CG, cg_simp
from sympy.functions.special.tensor_functions import KroneckerDelta
def test_cg_simp_add():
j, m1, m1p, m2, m2p = symbols('j m1 m1p m2 m2p')
# Test Varshalovic... | bsd-3-clause | 2,409,634,006,897,225,700 | 45.358025 | 158 | 0.543009 | false |
qlands/onadata | onadata/apps/logger/management/commands/import_tools.py | 13 | 1695 | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 coding=utf-8
import glob
import os
from django.conf import settings
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError
from django.utils.translation import ugettext as _, ugettext_lazy
from onadata.libs.logg... | bsd-2-clause | -5,215,207,095,899,772,000 | 35.847826 | 70 | 0.582301 | false |
DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/examples/cluster/plot_cluster_comparison.py | 1 | 4683 | """
=========================================================
Comparing different clustering algorithms on toy datasets
=========================================================
This example aims at showing characteristics of different
clustering algorithms on datasets that are "interesting"
but still in 2D. The last ... | mit | 2,954,540,904,915,348,500 | 37.385246 | 77 | 0.645526 | false |
imphil/fusesoc | tests/edalize/test_icarus.py | 1 | 1810 | import pytest
def test_icarus():
import os
import shutil
from edalize_common import compare_files, setup_backend, tests_dir
ref_dir = os.path.join(tests_dir, __name__)
paramtypes = ['plusarg', 'vlogdefine', 'vlogparam']
name = 'test_icarus_0'
tool = 'icarus'
tool... | gpl-3.0 | 3,802,749,184,582,937,600 | 27.730159 | 98 | 0.566298 | false |
alash3al/rethinkdb | test/interface/precise_stats.py | 10 | 8915 | #!/usr/bin/env python
# Copyright 2010-2012 RethinkDB, all rights reserved.
# This file tests the `rethinkdb.stats` admin table.
# Here, we run very particular queries and verify that the 'total' stats are exactly
# correct. This includes point reads/writes, range reads/replaces, backfills, and
# sindex construction.... | agpl-3.0 | 603,053,458,397,425,800 | 49.367232 | 118 | 0.645653 | false |
thelabnyc/django-oscar-wfrs | src/wellsfargo/migrations/0035_auto_20200326_1412.py | 1 | 13104 | # Generated by Django 2.2.11 on 2020-03-26 18:12
from django.db import migrations
from django.db.models.functions import Concat, Substr
from django.db.models import F, Value, CharField
def trunc(NewCls, field_name, value):
if type(value) is str:
max_length = NewCls._meta.get_field(field_name).max_length
... | isc | -3,829,979,245,872,248,000 | 42.247525 | 88 | 0.591804 | false |
airbnb/kafka | tests/kafkatest/directory_layout/kafka_path.py | 10 | 5383 | # 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 | -4,770,917,533,008,387,000 | 38.291971 | 115 | 0.703325 | false |
OpenERPJeff/gooderp_addons | sell/__openerp__.py | 6 | 3544 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014 上海开阖软件有限公司 (http://www.osbzr.com).
# All Rights Reserved
#
# This program is free software: you can redistribute it and/or modify
# it u... | agpl-3.0 | 1,031,120,388,050,236,800 | 39.493506 | 82 | 0.530789 | false |
cloudera/hue | desktop/core/ext-py/thrift-0.13.0/src/protocol/TCompactProtocol.py | 15 | 15465 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -6,882,181,069,233,251,000 | 30.755647 | 101 | 0.609441 | false |
quadrismegistus/prosodic | meters/litlab.py | 1 | 13830 | ############################################
# [config.py]
# CONFIGURATION SETTINGS FOR A PARTICULAR METER
#
#
# Set the long-form name of this meter
name = "Literary Lab's Meter"
#
# [Do not remove or uncomment the following line]
Cs={}
############################################
####################################... | gpl-3.0 | 3,804,271,594,733,550,600 | 32.086124 | 105 | 0.704483 | false |
pombredanne/redo | redo.py | 1 | 5742 | #!/usr/bin/env python
import sys, os
import options
from helpers import atoi
optspec = """
redo [targets...]
--
j,jobs= maximum number of jobs to build at once
d,debug print dependency checks as they happen
v,verbose print commands as they are read from .do files (variables intact)
x,xtrace print commands as ... | lgpl-2.1 | 3,572,756,334,113,284,600 | 32.578947 | 105 | 0.571752 | false |
Elbagoury/odoo | addons/mail/res_users.py | 314 | 10337 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2009-Today OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | agpl-3.0 | -8,995,223,834,839,490,000 | 50.685 | 159 | 0.627552 | false |
waltharius/NewsBlur | apps/feed_import/migrations/0003_session_id.py | 18 | 4929 | # encoding: 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 'OAuthToken.session_id'
db.add_column('feed_import_oauthtoken', 'session_id', self.gf('djan... | mit | -4,007,507,744,375,524,400 | 63.855263 | 175 | 0.570704 | false |
Akrog/cinder | cinder/backup/drivers/tsm.py | 1 | 21068 | # Copyright 2013 IBM Corp
# 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 appl... | apache-2.0 | -4,202,531,622,441,806,300 | 37.799263 | 79 | 0.537925 | false |
szbesting/trunk | software/rt-thread/components/external/freetype/builds/mac/ascii2mpw.py | 830 | 1033 | #!/usr/bin/env python
import sys
import string
if len( sys.argv ) == 1 :
for asc_line in sys.stdin.readlines():
mpw_line = string.replace(asc_line, "\\xA5", "\245")
mpw_line = string.replace(mpw_line, "\\xB6", "\266")
mpw_line = string.replace(mpw_line, "\\xC4", "\304")
mpw_line = string.replace(mpw_... | gpl-2.0 | -1,151,004,976,465,527,800 | 42.041667 | 56 | 0.588577 | false |
smandy/d_c_experiment | scons-local-2.3.4/SCons/Scanner/C.py | 9 | 4811 | """SCons.Scanner.C
This module implements the depenency scanner for C/C++ code.
"""
#
# Copyright (c) 2001 - 2014 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software wi... | mit | 509,567,462,448,888,770 | 35.44697 | 94 | 0.638952 | false |
harveyormston/osc_gen | tests/test_dsp.py | 1 | 5028 | #!/usr/bin/env python3
"""
Copyright 2019 Harvey Ormston
This file is part of osc_gen.
osc_gen 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 | -9,066,395,331,270,257,000 | 23.647059 | 72 | 0.538584 | false |
karthik-sethuraman/ONFOpenTransport | RI/flask_server/tapi_server/models/tapi_oam_getmeg_input.py | 4 | 1736 | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from tapi_server.models.base_model_ import Model
from tapi_server import util
class TapiOamGetmegInput(Model):
"""NOTE: This class is auto generated by OpenAPI Ge... | apache-2.0 | -1,707,506,919,506,576,400 | 25.30303 | 96 | 0.610023 | false |
fitermay/intellij-community | python/lib/Lib/site-packages/django/utils/encoding.py | 89 | 6532 | import types
import urllib
import locale
import datetime
import codecs
from decimal import Decimal
from django.utils.functional import Promise
class DjangoUnicodeDecodeError(UnicodeDecodeError):
def __init__(self, obj, *args):
self.obj = obj
UnicodeDecodeError.__init__(self, *args)
def __str_... | apache-2.0 | 3,885,884,296,960,002,600 | 38.113772 | 79 | 0.603337 | false |
pedropena/iteexe | exe/engine/placetheobjectsidevice.py | 10 | 6544 | # ===========================================================================
# Place the Objects Idevice for eXe Learning.
#
# Copyright Mike Dawson / PAIWASTOON Networking Services Ltd.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License ... | gpl-2.0 | -3,787,977,228,627,535,400 | 43.517007 | 142 | 0.61904 | false |
patmcb/odoo | openerp/report/printscreen/ps_form.py | 381 | 5211 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 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,753,965,445,144,323,000 | 36.76087 | 112 | 0.537325 | false |
Morgan-Stanley/treadmill | lib/python/treadmill/cron/model/__init__.py | 4 | 1111 | """Model of cron job.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
from treadmill import plugin_manager
_LOGGER = logging.getLogger(__name__)
def create(scheduler, job_id, event, resource, ex... | apache-2.0 | 658,333,651,911,711,000 | 27.487179 | 69 | 0.673267 | false |
AViisiion/namebench | cocoa/controller.py | 176 | 6919 | # Copyright 2009 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 ... | apache-2.0 | -5,422,182,416,533,730,000 | 36 | 116 | 0.711808 | false |
ibressler/pyqtgraph | pyqtgraph/console/template_pyside.py | 2 | 6225 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './console/template.ui'
#
# Created: Sun Sep 9 14:41:30 2012
# by: pyside-uic 0.2.13 running on PySide 1.1.0
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_Form(object):
def setu... | mit | 2,409,034,405,017,234,400 | 57.726415 | 158 | 0.727711 | false |
ustramooner/CouchPotato | library/imdb/locale/rebuildmo.py | 137 | 1498 | #!/usr/bin/env python
"""
rebuildmo.py script.
This script builds the .mo files, from the .po files.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; e... | gpl-3.0 | 7,651,870,341,128,255,000 | 29.571429 | 73 | 0.688919 | false |
EliotBerriot/django | tests/forms_tests/field_tests/test_multivaluefield.py | 156 | 5661 | from datetime import datetime
from django.forms import (
CharField, Form, MultipleChoiceField, MultiValueField, MultiWidget,
SelectMultiple, SplitDateTimeField, SplitDateTimeWidget, TextInput,
ValidationError,
)
from django.test import SimpleTestCase
beatles = (('J', 'John'), ('P', 'Paul'), ('G', 'George'... | bsd-3-clause | 4,542,850,012,156,411,400 | 33.944444 | 97 | 0.538597 | false |
TuSimple/simpledet | config/resnet_v1b/faster_r50v1b_fpn_1x.py | 1 | 8673 | from symbol.builder import FasterRcnn as Detector
from symbol.builder import ResNetV1bFPN as Backbone
from symbol.builder import add_anchor_to_arg
from models.FPN.builder import FPNNeck as Neck
from models.FPN.builder import FPNRpnHead as RpnHead
from models.FPN.builder import FPNRoiAlign as RoiExtractor
from models.FP... | apache-2.0 | 5,853,321,419,401,932,000 | 27.91 | 97 | 0.549637 | false |
RPI-OPENEDX/edx-platform | common/test/acceptance/pages/lms/pay_and_verify.py | 110 | 6385 | """Payment and verification pages"""
import re
from bok_choy.page_object import PageObject
from bok_choy.promise import Promise
from . import BASE_URL
from .dashboard import DashboardPage
class PaymentAndVerificationFlow(PageObject):
"""Interact with the split payment and verification flow.
The flow can be... | agpl-3.0 | -3,586,682,684,618,010,000 | 38.171779 | 126 | 0.631793 | false |
martinpilat/dag-evaluate | custom_models.py | 1 | 6526 | __author__ = 'Martin'
import pandas as pd
import numpy as np
from scipy import stats
from sklearn import cross_validation
from sklearn import ensemble
def is_transformer(cls):
return hasattr(cls, '__dageva_type') and cls.__dageva_type == 'transformer'
def is_predictor(cls):
return hasattr(cls, '__dageva_type... | mit | 3,697,281,275,754,852,400 | 31.152709 | 120 | 0.583206 | false |
sql-analytics/openvstorage | ovs/extensions/snmp/trapsender.py | 2 | 2945 | # Copyright 2014 CloudFounders NV
#
# 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,773,736,773,205,303,000 | 41.071429 | 122 | 0.599321 | false |
jbassen/edx-platform | common/djangoapps/student/migrations/0013_auto__chg_field_userprofile_meta.py | 188 | 10346 | # -*- 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):
# Changing field 'UserProfile.meta'
db.alter_column('auth_userprofile', 'meta', self.gf('django.db.models.f... | agpl-3.0 | 726,971,660,554,826,200 | 76.789474 | 182 | 0.552774 | false |
pradeep-gr/mbed-os5-onsemi | tools/host_tests/echo_flow_control.py | 125 | 1381 | """
mbed SDK
Copyright (c) 2011-2013 ARM Limited
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 wr... | apache-2.0 | 7,419,177,558,863,643,000 | 27.770833 | 72 | 0.602462 | false |
nerzhul/ansible | lib/ansible/modules/system/capabilities.py | 23 | 7173 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Nate Coraor <nate@bx.psu.edu>
#
# 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... | gpl-3.0 | 8,166,694,830,173,610,000 | 35.227273 | 137 | 0.578837 | false |
magic0704/oslo.utils | oslo_utils/importutils.py | 2 | 2355 | # 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 req... | apache-2.0 | 6,392,570,630,654,462,000 | 30.824324 | 78 | 0.664968 | false |
GbalsaC/bitnamiP | venv/src/xblock-poll/tests/integration/test_max_submissions.py | 3 | 3545 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015 McKinsey Academy
#
# Authors:
# Jonathan Piacenti <jonathan@opencraft.com>
#
# This software's license gives you freedom; you can copy, convey,
# propagate, redistribute and/or modify this program under the terms of
# the GNU Affero General Public License (AGPL) a... | agpl-3.0 | 5,684,607,312,455,001,000 | 37.11828 | 110 | 0.662059 | false |
daineseh/kodi-plugin.video.ted-talks-chinese | youtube_dl/extractor/instagram.py | 3 | 5853 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
get_element_by_attribute,
int_or_none,
limit_length,
lowercase_escape,
)
class InstagramIE(InfoExtractor):
_VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com/p/(?P<id>[^/?#&]+))'
_... | gpl-2.0 | -8,577,445,735,815,100,000 | 32.255682 | 105 | 0.458739 | false |
lextoumbourou/cyclone | cyclone/websocket.py | 3 | 17952 | # coding: utf-8
#
# Copyright 2010 Alexandre Fiori
# based on the original Tornado by Facebook
#
# 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... | apache-2.0 | 1,275,630,109,675,265,000 | 33.92607 | 79 | 0.570911 | false |
nightjean/Deep-Learning | tensorflow/contrib/tfprof/python/tools/tfprof/print_model_analysis_test.py | 4 | 6999 | # 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 | 5,307,895,965,879,266,000 | 28.65678 | 113 | 0.629947 | false |
zainabg/NOX | src/nox/lib/packet/llc.py | 6 | 2128 | # Copyright 2008 (C) Nicira, Inc.
#
# This file is part of NOX.
#
# NOX 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.
#
# NOX is d... | gpl-3.0 | -3,370,217,949,699,519,500 | 30.761194 | 80 | 0.601974 | false |
SyamGadde/cython | Cython/Plex/Actions.py | 32 | 2517 | #=======================================================================
#
# Python Lexical Analyser
#
# Actions for use in token specifications
#
#=======================================================================
class Action(object):
def perform(self, token_stream, text):
pass # abstract
... | apache-2.0 | -7,048,796,992,155,266,000 | 22.091743 | 79 | 0.584029 | false |
nemesiscodex/JukyOS-sugar | src/jarabe/controlpanel/cmd.py | 5 | 5886 | # Copyright (C) 2007, 2008 One Laptop Per Child
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is di... | gpl-2.0 | 5,436,604,224,425,732,000 | 35.559006 | 79 | 0.493714 | false |
kobejean/tensorflow | tensorflow/python/training/supervisor_test.py | 7 | 35482 | # 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 | 2,982,274,301,781,653,000 | 37.820569 | 80 | 0.647089 | false |
mapr/hue | desktop/core/ext-py/django-nose-1.3/django_nose/fixture_tables.py | 49 | 6377 | """A copy of Django 1.3.0's stock loaddata.py, adapted so that, instead of
loading any data, it returns the tables referenced by a set of fixtures so we
can truncate them (and no others) quickly after we're finished with them."""
import os
import gzip
import zipfile
from itertools import product
from django.conf impo... | apache-2.0 | -1,821,768,402,485,952,800 | 40.141935 | 103 | 0.502431 | false |
nowopen/scrapy | tests/test_proxy_connect.py | 130 | 4114 | import json
import os
import time
from threading import Thread
from libmproxy import controller, proxy
from netlib import http_auth
from testfixtures import LogCapture
from twisted.internet import defer
from twisted.trial.unittest import TestCase
from scrapy.utils.test import get_crawler
from scrapy.http import Reque... | bsd-3-clause | -1,901,412,594,861,723,100 | 37.448598 | 83 | 0.658726 | false |
benoitsteiner/tensorflow-opencl | tensorflow/contrib/distributions/python/ops/bijectors/sigmoid_centered.py | 85 | 1166 | # 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 | -7,067,728,413,942,954,000 | 39.206897 | 89 | 0.720412 | false |
6809/MC6809 | MC6809/components/mc6809_speedlimited.py | 1 | 1650 | #!/usr/bin/env python
"""
MC6809 - 6809 CPU emulator in Python
=======================================
6809 is Big-Endian
Links:
http://dragondata.worldofdragon.org/Publications/inside-dragon.htm
http://www.burgins.com/m6809.html
http://koti.mbnet.fi/~atjs/mc6809/
:copyle... | gpl-3.0 | -4,419,059,371,971,653,600 | 29 | 77 | 0.578182 | false |
gengue/django | tests/test_runner/test_discover_runner.py | 97 | 6079 | import os
from contextlib import contextmanager
from unittest import TestSuite, TextTestRunner, defaultTestLoader
from django.test import TestCase
from django.test.runner import DiscoverRunner
@contextmanager
def change_cwd(directory):
current_dir = os.path.abspath(os.path.dirname(__file__))
new_dir = os.pat... | bsd-3-clause | -1,471,983,470,696,702,700 | 35.842424 | 90 | 0.605198 | false |
cherry-wb/SideTools | examples/state-machine/rogue.py | 1 | 5589 | #!/usr/bin/env python
#Author velociraptor Genjix <aphidia@hotmail.com>
from PySide.QtGui import *
from PySide.QtCore import *
class MovementTransition(QEventTransition):
def __init__(self, window):
super(MovementTransition, self).__init__(window, QEvent.KeyPress)
self.window = window
... | apache-2.0 | -192,307,279,014,547,170 | 32.5 | 91 | 0.545894 | false |
jalavik/invenio | invenio/legacy/webmessage/templates.py | 13 | 27994 | # -*- coding: utf-8 -*-
#
# handles rendering of webmessage module
#
# This file is part of Invenio.
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 CERN.
#
# Invenio 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 Softwa... | gpl-2.0 | 3,723,976,311,905,111,600 | 38.991429 | 124 | 0.470136 | false |
CCI-MOC/GUI-Backend | scripts/import_tags.py | 1 | 2440 | #!/usr/bin/env python
import json
import logging
from optparse import OptionParser
from service_old.models import Instance
import django
django.setup()
def export_instance_tags():
instance_tags = []
instances = Instance.objects.all()
added = 0
for i in instances:
if i.instance_tags:
... | apache-2.0 | -7,883,924,861,149,968,000 | 27.372093 | 86 | 0.590164 | false |
hiunnhue/libchewing | scripts/create_keystroke_from_text.py | 15 | 1441 | #!/usr/bin/env python3
import argparse
import os
import sys
def get_args():
parser = argparse.ArgumentParser(
description='Create keystroke from text.')
parser.add_argument('input', metavar='input', type=str, nargs=1,
help='Input Chinese text file')
parser.add_argument('output', metavar='o... | lgpl-2.1 | -664,775,759,161,763,200 | 26.188679 | 86 | 0.546842 | false |
UBERMALLOW/external_skia | tools/test_gpuveto.py | 142 | 5357 | #!/usr/bin/env python
# Copyright 2014 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Script to test out suitableForGpuRasterization (via gpuveto)"""
import argparse
import glob
import os
import re
import subprocess
import sys
# Set the PYTHONP... | bsd-3-clause | -2,975,662,647,820,113,400 | 30.886905 | 83 | 0.522867 | false |
simonjbeaumont/sm | drivers/ISCSISR.py | 1 | 28776 | #!/usr/bin/python
#
# Copyright (C) Citrix Systems Inc.
#
# 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; version 2.1 only.
#
# This program is distributed in the hope that it will be u... | lgpl-2.1 | 1,008,098,833,602,663,400 | 39.529577 | 157 | 0.528635 | false |
indictranstech/phr-frappe | frappe/modules/__init__.py | 28 | 2998 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
"""
Utilities for using modules
"""
import frappe, os
import frappe.utils
from frappe import _
lower_case_files_for = ['DocType', 'Page', 'Report',
"Workflow", 'Module Def',... | mit | 7,865,028,364,137,925,000 | 30.893617 | 95 | 0.71481 | false |
chrisenytc/liv-api | api/controllers/cors.py | 1 | 1818 | # -*- coding: utf-8 -*-
""""
ProjectName: liv-api
Repo: https://github.com/chrisenytc/liv-api
Copyright (c) 2014 Christopher EnyTC
Licensed under the MIT license.
"""
# Dependencies
from datetime import timedelta
from flask import make_response, request, current_app
from functools import update_wrapper
def cors(ori... | mit | -8,911,606,565,945,674,000 | 32.054545 | 67 | 0.616062 | false |
kmonsoor/python-for-android | python3-alpha/python3-src/Tools/scripts/checkpyc.py | 49 | 2178 | #! /usr/bin/env python3
# Check that all ".pyc" files exist and are up-to-date
# Uses module 'os'
import sys
import os
from stat import ST_MTIME
import imp
# PEP 3147 compatibility (PYC Repository Directories)
cache_from_source = (imp.cache_from_source if hasattr(imp, 'get_tag') else
lambda path:... | apache-2.0 | 7,541,554,606,465,353,000 | 30.565217 | 74 | 0.454545 | false |
aavanian/bokeh | bokeh/sphinxext/collapsible_code_block.py | 14 | 2395 | """ Display code blocks in collapsible sections when outputting
to HTML.
This directive takes a heading to use for the collapsible code block::
.. collapsible-code-block:: python
:heading: Some Code
from __future__ import print_function
print("Hello, Bokeh!")
This directive is identical... | bsd-3-clause | 5,878,402,904,531,027,000 | 25.032609 | 80 | 0.665553 | false |
TeachAtTUM/edx-platform | common/djangoapps/track/tests/test_contexts.py | 24 | 2109 | # pylint: disable=missing-docstring
from unittest import TestCase
import ddt
from track import contexts
@ddt.ddt
class TestContexts(TestCase):
COURSE_ID = 'test/course_name/course_run'
SPLIT_COURSE_ID = 'course-v1:test+course_name+course_run'
ORG_ID = 'test'
@ddt.data(
(COURSE_ID, ''),
... | agpl-3.0 | -3,046,794,058,226,358,300 | 29.565217 | 106 | 0.570413 | false |
metacloud/percona-xtrabackup | percona-server-5.1-xtrabackup/python-for-subunit2junitxml/testtools/compat.py | 42 | 10756 | # Copyright (c) 2008-2011 testtools developers. See LICENSE for details.
"""Compatibility support for python 2 and 3."""
__metaclass__ = type
__all__ = [
'_b',
'_u',
'advance_iterator',
'str_is_unicode',
'StringIO',
'BytesIO',
'unicode_output_stream',
]
import codecs
import linecache
... | gpl-2.0 | 4,850,622,801,815,055,000 | 36.608392 | 81 | 0.635273 | false |
johan--/python_koans | python2/runner/path_to_enlightenment.py | 75 | 5088 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# The path to enlightenment starts with the following:
import unittest
from koans.about_asserts import AboutAsserts
from koans.about_strings import AboutStrings
from koans.about_none import AboutNone
from koans.about_lists import AboutLists
from koans.about_list_assignme... | mit | -2,978,589,297,110,579,700 | 53.709677 | 78 | 0.846502 | false |
rangadi/beam | sdks/python/apache_beam/runners/dataflow/internal/clients/dataflow/message_matchers_test.py | 7 | 2820 | #
# 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 us... | apache-2.0 | 8,058,094,531,963,778,000 | 34.25 | 83 | 0.73227 | false |
drjeep/django | tests/auth_tests/test_validators.py | 229 | 7546 | from __future__ import unicode_literals
import os
from django.contrib.auth.models import User
from django.contrib.auth.password_validation import (
CommonPasswordValidator, MinimumLengthValidator, NumericPasswordValidator,
UserAttributeSimilarityValidator, get_default_password_validators,
get_password_val... | bsd-3-clause | 1,350,120,104,995,023,400 | 42.872093 | 110 | 0.690167 | false |
midma101/m0du1ar | .venv/lib/python2.7/site-packages/Crypto/SelfTest/Random/test_rpoolcompat.py | 131 | 2030 | # -*- coding: utf-8 -*-
#
# SelfTest/Util/test_winrandom.py: Self-test for the winrandom module
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that d... | mit | 9,126,346,977,776,368,000 | 35.909091 | 102 | 0.658621 | false |
mrquim/mrquimrepo | script.module.youtube.dl/lib/youtube_dl/extractor/europa.py | 58 | 3417 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
int_or_none,
orderedSet,
parse_duration,
qualities,
unified_strdate,
xpath_text
)
class EuropaIE(InfoExtractor):
_VALID_URL = r'https?://ec\... | gpl-2.0 | 2,826,805,441,693,155,000 | 35.741935 | 127 | 0.547849 | false |
micromagnetics/magnum.fe | site-packages/magnumfe/common/cache.py | 2 | 2662 | # Copyright (C) 2011-2015 Claas Abert
#
# This file is part of magnum.fe.
#
# magnum.fe is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ... | lgpl-3.0 | -2,108,038,153,877,202,400 | 29.597701 | 77 | 0.656273 | false |
azunite/gyp | test/mac/gyptest-objc-gc.py | 165 | 1586 | #!/usr/bin/env python
# Copyright (c) 2012 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 GC objc settings are handled correctly.
"""
import TestGyp
import TestMac
import sys
if sys.platform == 'darwin':
# s... | bsd-3-clause | -4,235,169,755,859,547,600 | 30.098039 | 80 | 0.639975 | false |
hynekcer/django | tests/template_tests/filter_tests/test_linenumbers.py | 331 | 1992 | from django.template.defaultfilters import linenumbers
from django.test import SimpleTestCase
from django.utils.safestring import mark_safe
from ..utils import setup
class LinenumbersTests(SimpleTestCase):
"""
The contents of "linenumbers" is escaped according to the current
autoescape setting.
"""
... | bsd-3-clause | 2,168,456,726,959,671,300 | 33.344828 | 90 | 0.565261 | false |
KaiSzuttor/espresso | src/python/espressomd/io/writer/vtf.py | 5 | 3324 | # Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo 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 v... | gpl-3.0 | 2,805,188,922,776,035,300 | 33.989474 | 107 | 0.58213 | false |
apagac/cfme_tests | cfme/fixtures/terminalreporter.py | 9 | 1050 | # FlexibleTerminalReporter is imported for backward compatibility;
# it should be imported from pytest_store
from cfme.fixtures.pytest_store import store
from cfme.utils import diaper
from cfme.utils.log import logger
def reporter(config=None):
"""Return a py.test terminal reporter that will write to the console ... | gpl-2.0 | -549,140,228,536,150,700 | 34 | 91 | 0.748571 | false |
dataxu/ansible | lib/ansible/plugins/connection/saltstack.py | 86 | 3724 | # Based on local.py (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# Based on chroot.py (c) 2013, Maykel Moya <mmoya@speedyrails.com>
# Based on func.py
# (c) 2014, Michael Scherer <misc@zarb.org>
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt... | gpl-3.0 | -2,326,863,116,507,241,000 | 34.466667 | 133 | 0.65145 | false |
littledogboy/zulip | tools/emoji_dump/emoji_dump.py | 113 | 2098 | #!/usr/bin/env python
import os
import shutil
import subprocess
import json
from PIL import Image, ImageDraw, ImageFont
class MissingGlyphError(Exception):
pass
def color_font(name, code_point):
in_name = 'bitmaps/strike1/uni{}.png'.format(code_point)
out_name = 'out/unicode/{}.png'.format(code_point)
... | apache-2.0 | -1,824,921,730,419,311,000 | 28.549296 | 104 | 0.672069 | false |
Hellowlol/plexpy | lib/pygazelle/user.py | 27 | 4731 |
class InvalidUserException(Exception):
pass
class User(object):
"""
This class represents a User, whether your own or someone else's. It is created knowing only its ID. To reduce
API accesses, load information using User.update_index_data() or User.update_user_data only as needed.
"""
def __i... | gpl-3.0 | 8,986,343,773,715,889,000 | 42.805556 | 129 | 0.626506 | false |
GiraldTec/2015-igraphic | mrdoob-three.js-f73593b/utils/exporters/blender/addons/io_three/exporter/api/animation.py | 177 | 16103 | """
Module for handling the parsing of skeletal animation data.
"""
import math
import mathutils
from bpy import data, context
from .. import constants, logger
def pose_animation(armature, options):
"""Query armature animation using pose bones
:param armature:
:param options:
:returns: list dictiona... | gpl-2.0 | -3,049,366,981,428,795,400 | 26.908146 | 73 | 0.53518 | false |
garg10may/youtube-dl | test/test_write_annotations.py | 78 | 2550 | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
# Allow direct execution
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import get_params, try_rm
import io
import xml.etree.ElementTree
import youtu... | unlicense | -7,307,641,884,756,014,000 | 31.692308 | 104 | 0.647843 | false |
Yipit/eventlib | tests/unit/test_eventlib.py | 1 | 3543 | # eventlib - Copyright (c) 2012 Yipit, 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 distri... | lgpl-3.0 | -8,112,840,187,735,808,000 | 33.735294 | 78 | 0.68473 | false |
LogicalDash/kivy | kivy/core/image/img_tex.py | 21 | 1549 | '''
Tex: Compressed texture
'''
__all__ = ('ImageLoaderTex', )
import json
from struct import unpack
from kivy.logger import Logger
from kivy.core.image import ImageLoaderBase, ImageData, ImageLoader
class ImageLoaderTex(ImageLoaderBase):
@staticmethod
def extensions():
return ('tex', )
def lo... | mit | 7,050,221,247,170,186,000 | 25.706897 | 71 | 0.537121 | false |
ftl-toolbox/lib_openshift | lib_openshift/models/v1_load_balancer_ingress.py | 2 | 4203 | # coding: utf-8
"""
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
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
... | apache-2.0 | -1,483,947,601,739,862,800 | 25.942308 | 112 | 0.573876 | false |
blackseabass/django-polls | polls/tests.py | 1 | 1320 | import datetime
from django.utils import timezone
from django.test import TestCase
from .models import Question
# Create your tests here.
class QuestionMethodTests(TestCase):
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() should return False for question... | bsd-3-clause | -6,641,770,524,526,536,000 | 32.846154 | 73 | 0.669697 | false |
anentropic/django-oscar | src/oscar/apps/partner/abstract_models.py | 10 | 10064 | from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.timezone import now
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import pgettext_lazy
from oscar.apps.partner.exceptions import InvalidStockAdjustment
from oscar.core.co... | bsd-3-clause | -4,613,498,114,880,225,000 | 37.121212 | 79 | 0.647456 | false |
lidavidm/mathics-heroku | venv/lib/python2.7/site-packages/django/utils/cache.py | 105 | 11097 | """
This module contains helper functions for controlling caching. It does so by
managing the "Vary" header of responses. It includes functions to patch the
header of response objects directly and decorators that change functions to do
that header-patching themselves.
For information on the Vary header, see:
http... | gpl-3.0 | 6,663,154,093,072,309,000 | 41.034091 | 96 | 0.66964 | false |
appsembler/edx-platform | openedx/core/lib/cache_utils.py | 20 | 3273 | """
Utilities related to caching.
"""
import collections
import cPickle as pickle
import functools
import zlib
from xblock.core import XBlock
def memoize_in_request_cache(request_cache_attr_name=None):
"""
Memoize a method call's results in the request_cache if there's one. Creates the cache key by
joini... | agpl-3.0 | -1,310,517,630,771,251,200 | 30.471154 | 97 | 0.613504 | false |
nickmuir/ZenPacks.community.PanduitMonitoring | ZenPacks/community/PanduitMonitoring/modeler/plugins/community/snmp/PanduitTemperatureSensorMap.py | 1 | 1330 | """PanduitTemperatureSensorMap
Gathers Temperature Sensors from Panduit Environmental Monitoring Devices
"""
from Products.DataCollector.plugins.CollectorPlugin import (SnmpPlugin, GetTableMap)
class PanduitTemperatureSensorMap(SnmpPlugin):
relname = 'panduitTemperatureSensors'
modname = 'ZenPacks.community.... | lgpl-3.0 | 2,551,751,006,630,045,700 | 30.666667 | 84 | 0.558647 | false |
benoitsteiner/tensorflow-xsmm | tensorflow/contrib/timeseries/python/timeseries/state_space_models/state_space_model_test.py | 17 | 31749 | # Copyright 2017 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 | 612,370,418,317,781,600 | 40.996032 | 96 | 0.658036 | false |
ycsoft/FatCat-Server | LIBS/boost_1_58_0/tools/build/test/dll_path.py | 6 | 4116 | #!/usr/bin/python
# Copyright (C) 2003. Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# Test that the <dll-path> property is correctly set when using
# <hardcode-dll-paths>true.
import B... | mit | 607,043,598,783,165,300 | 26.191781 | 77 | 0.564869 | false |
petrjasek/superdesk-core | superdesk/data_updates/00019_20190924-104943_roles.py | 2 | 1142 | # -*- coding: utf-8; -*-
# This file is part of Superdesk.
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license
#
# Author : petr
# Creation: 2019-09-24 10:49
from superdesk.commands.data_... | agpl-3.0 | 2,313,195,399,586,452,000 | 29.052632 | 88 | 0.643608 | false |
defance/edx-platform | lms/djangoapps/courseware/tests/test_entrance_exam.py | 11 | 26647 | """
Tests use cases related to LMS Entrance Exam behavior, such as gated content access (TOC)
"""
from mock import patch, Mock
from django.core.urlresolvers import reverse
from django.test.client import RequestFactory
from nose.plugins.attrib import attr
from capa.tests.response_xml_factory import MultipleChoiceRespo... | agpl-3.0 | -9,108,926,144,166,880,000 | 39.374242 | 130 | 0.587984 | false |
dcosentino/edx-platform | common/djangoapps/course_about/views.py | 28 | 2124 | """
Implementation of the RESTful endpoints for the Course About API.
"""
from rest_framework.throttling import UserRateThrottle
from rest_framework.views import APIView
from course_about import api
from rest_framework import status
from rest_framework.response import Response
from course_about.errors import CourseNot... | agpl-3.0 | 8,073,089,809,886,759,000 | 32.714286 | 94 | 0.607815 | false |
dacb/viscount | tests/__init__.py | 1 | 1091 | """
viscount unittests
contains a basic unit test class that can be used for all instances
"""
from unittest import TestCase
from viscount.core import db
from .factories import UserFactory
from .utils import FlaskTestCaseMixin
class ViscountTestCase(TestCase):
pass
class ViscountAppTestCase(FlaskTestCaseMixin,... | bsd-2-clause | -2,712,457,910,200,162,000 | 21.729167 | 96 | 0.729606 | false |
highweb-project/highweb-webcl-html5spec | tools/perf/page_sets/key_desktop_sites.py | 22 | 27382 | # Copyright 2014 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.
from telemetry.page import page as page_module
from telemetry import story
class KeyDesktopSitesPage(page_module.Page):
def __init__(self, url, page_set)... | bsd-3-clause | 1,285,848,604,497,631,700 | 31.404734 | 112 | 0.566905 | false |
adamfisk/littleshoot-client | server/common/appengine/patch/common/appenginepatch/ragendja/pyutils.py | 11 | 2758 | # -*- coding: utf-8 -*-
from django.utils._threading_local import local
def make_tls_property(default=None):
"""Creates a class-wide instance property with a thread-specific value."""
class TLSProperty(object):
def __init__(self):
self.local = local()
def __get__(self, instance, cl... | gpl-2.0 | -7,608,592,075,742,318,000 | 27.729167 | 78 | 0.545323 | false |
HyperBaton/ansible | lib/ansible/modules/cloud/amazon/elasticache_subnet_group.py | 13 | 4706 | #!/usr/bin/python
# Copyright: 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
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | -5,839,801,252,689,938,000 | 30.583893 | 152 | 0.646834 | false |
tobegit3hub/deep_cnn | java_predict_client/src/main/proto/tensorflow/python/training/moving_averages_test.py | 2 | 12596 | # 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 | 4,061,839,425,253,794,300 | 40.570957 | 80 | 0.615592 | false |
ForNeVeR/styx-miranda | styx-client/protobuf-2.5.0/python/google/protobuf/internal/message_factory_test.py | 213 | 4869 | #! /usr/bin/python
#
# Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# ... | mit | -2,927,659,057,883,627,500 | 42.088496 | 74 | 0.734442 | false |
DCSaunders/tensorflow | tensorflow/contrib/session_bundle/gc_test.py | 24 | 4527 | # 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 | -5,950,018,172,197,791,000 | 36.413223 | 80 | 0.607025 | false |
TNick/pyl2extra | pyl2extra/datasets/img_dataset/tests/test_generators.py | 1 | 2602 | """
Tests for adjusters.
"""
__authors__ = "Nicu Tofan"
__copyright__ = "Copyright 2015, Nicu Tofan"
__credits__ = ["Nicu Tofan"]
__license__ = "3-clause BSD"
__maintainer__ = "Nicu Tofan"
__email__ = "nicu.tofan@gmail.com"
import functools
import unittest
from pyl2extra.datasets.img_dataset.generators import (Inlin... | bsd-3-clause | -6,410,735,942,149,220,000 | 23.54717 | 71 | 0.581476 | false |
massot/odoo | setup/win32/win32_service.py | 362 | 1825 | # -*- coding: utf-8 -*-
import servicemanager
import win32api
import win32process
import win32service
import win32serviceutil
import subprocess
import sys
from os.path import dirname, join, split
execfile(join(dirname(__file__), '..', 'server', 'openerp', 'release.py'))
class OdooService(win32serviceutil.ServiceF... | agpl-3.0 | -7,202,853,719,621,092,000 | 33.433962 | 100 | 0.676164 | false |
hyperized/ansible | lib/ansible/modules/network/fortios/fortios_router_access_list.py | 13 | 12427 | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# 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 Lic... | gpl-3.0 | 3,992,176,881,072,923,600 | 30.701531 | 102 | 0.542287 | 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.