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 |
|---|---|---|---|---|---|---|---|---|---|---|
mpenning/exscript | tests/Exscript/FileLoggerTest.py | 6 | 3087 | import sys, unittest, re, os.path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', 'src'))
from tempfile import mkdtemp
from shutil import rmtree
from Exscript import Host
from Exscript.FileLogger import FileLogger
from LoggerTest import LoggerTest, FakeJob
class FakeError(Exception):
pass
... | gpl-2.0 | 1,653,137,395,347,908,400 | 34.079545 | 83 | 0.643667 | false |
Suninus/NewsBlur | apps/profile/migrations/0019_dashboard_date.py | 18 | 6206 | # 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 'Profile.dashboard_date'
db.add_column('profile_profile', 'dashboard_date', self.gf('django... | mit | -1,951,755,805,177,654,300 | 72.880952 | 182 | 0.564131 | false |
gianina-ingenuity/titanium-branch-deep-linking | testbed/x/mobilesdk/osx/5.5.1.GA/common/markdown/preprocessors.py | 112 | 7128 |
"""
PRE-PROCESSORS
=============================================================================
Preprocessors work on source text before we start doing anything too
complicated.
"""
import re
import markdown
HTML_PLACEHOLDER_PREFIX = markdown.STX+"wzxhzdk:"
HTML_PLACEHOLDER = HTML_PLACEHOLDER_PREFIX + "%d" + mark... | mit | 6,484,113,970,539,729,000 | 32.153488 | 84 | 0.483165 | false |
r-mart/scikit-learn | examples/tree/plot_tree_regression.py | 206 | 1476 | """
===================================================================
Decision Tree Regression
===================================================================
A 1D regression with decision tree.
The :ref:`decision trees <tree>` is
used to fit a sine curve with addition noisy observation. As a result, it
learns ... | bsd-3-clause | 1,004,995,304,244,559,700 | 29.122449 | 73 | 0.648374 | false |
arista-eosplus/ansible | test/units/module_utils/basic/test_exit_json.py | 18 | 7252 | # -*- coding: utf-8 -*-
# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (a... | gpl-3.0 | -4,311,280,825,724,075,500 | 44.043478 | 115 | 0.603558 | false |
jendap/tensorflow | tensorflow/python/util/dispatch.py | 22 | 6842 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -307,418,906,811,884,800 | 34.82199 | 80 | 0.715726 | false |
ClydeSpace-GroundStation/GroundStation | Utilities/Supporting_Libraries/gr-bruninga-master/python/fsk_demod.py | 1 | 5330 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2014 <+YOU OR YOUR COMPANY+>.
#
# This 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 (at your option)
# any later version.
#... | mit | 8,797,737,933,035,898,000 | 41.983871 | 134 | 0.616135 | false |
ideaworld/BioDesigner | design/views.py | 1 | 13070 | """
@author: Bowen
"""
from django.shortcuts import render
from django.db.models import Q
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render, get_object_or_404, render_to_response
from django.template import RequestContext, loader
from django.core.mail import send_mail
from... | apache-2.0 | 56,523,890,087,245,930 | 31.431762 | 107 | 0.64254 | false |
smesdaghi/geonode | geonode/geoserver/context_processors.py | 31 | 1889 | #########################################################################
#
# Copyright (C) 2012 OpenPlans
#
# 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
#... | gpl-3.0 | -8,452,740,180,229,032,000 | 38.354167 | 79 | 0.601376 | false |
wallnerryan/quantum_migrate | quantum/openstack/common/context.py | 14 | 2619 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# 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.apac... | apache-2.0 | 5,608,581,146,053,800,000 | 31.333333 | 79 | 0.641848 | false |
vrenaville/OCB | addons/association/__init__.py | 886 | 1054 | # -*- 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... | agpl-3.0 | -2,297,920,104,377,928,700 | 46.909091 | 79 | 0.606262 | false |
peterb12/nand2tetris | src/JackCompiler/VMWriter.py | 1 | 1417 | from jc_types import Scope
class VMWriter:
arithmeticOperations = ["add", "sub", "and", "or", "not", "neg", "eq", "gt", "lt"]
scopeTable = { Scope.STATIC : "static",
Scope.FIELD : "dunno?",
Scope.ARG : "argument",
Scope.VAR : "local" }
def __init__... | bsd-3-clause | 9,177,419,786,270,427,000 | 27.34 | 86 | 0.541284 | false |
madgik/exareme | Exareme-Docker/src/exareme/exareme-tools/madis/src/lib/pyreadline/modes/notemacs.py | 1 | 24681 | # -*- coding: utf-8 -*-
# *****************************************************************************
# Copyright (C) 2003-2006 Gary Bishop.
# Copyright (C) 2006 Jorgen Stenarson. <jorgen.stenarson@bostream.nu>
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYI... | mit | -3,124,943,255,285,124,000 | 40.341709 | 97 | 0.59641 | false |
tangyiyong/odoo | addons/document/std_index.py | 430 | 7457 | # -*- 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... | agpl-3.0 | -1,737,127,724,816,838,400 | 31.995575 | 216 | 0.601314 | false |
c0defreak/python-for-android | python3-alpha/extra_modules/gdata/Crypto/Util/RFC1751.py | 43 | 20130 | #!/usr/bin/python
# rfc1751.py : Converts between 128-bit strings and a human-readable
# sequence of words, as defined in RFC1751: "A Convention for
# Human-Readable 128-bit Keys", by Daniel L. McDonald.
__revision__ = "$Id: RFC1751.py,v 1.6 2003/04/04 15:15:10 akuchling Exp $"
import string, binascii
from functools... | apache-2.0 | -2,186,938,277,706,024,700 | 57.688047 | 84 | 0.479185 | false |
tp-openstack-m2dl/TP-MapReduce | python/mapreduce.py | 1 | 1232 | from multiprocessing import Pool
"""
A generator function for chopping up a given list into chunks of
length n.
"""
def chunks(l, n):
for i in xrange(0, len(l), n):
yield l[i:i+n]
def MapReduce(Map, Reduce, text):
l = min(len(text),8)
# Fragment the string data into 8 chunks
partitioned_text = list(chunks... | apache-2.0 | -7,623,530,765,930,327,000 | 24.142857 | 67 | 0.673701 | false |
pitch-sands/i-MPI | flask/Lib/site-packages/openid/message.py | 146 | 21562 | """Extension argument processing code
"""
__all__ = ['Message', 'NamespaceMap', 'no_default', 'registerNamespaceAlias',
'OPENID_NS', 'BARE_NS', 'OPENID1_NS', 'OPENID2_NS', 'SREG_URI',
'IDENTIFIER_SELECT']
import copy
import warnings
import urllib
from openid import oidutil
from openid import kvf... | bsd-3-clause | 7,786,178,539,857,533,000 | 33.171157 | 79 | 0.60013 | false |
edisonlz/fruit | web_project/app/content/views/city.py | 1 | 3136 | # coding=utf-8
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
import json
from app.content.models import City,ShoppingAddress
f... | apache-2.0 | -2,391,039,635,734,429,700 | 26.078261 | 86 | 0.62203 | false |
cbanta/pjproject | tests/pjsua/scripts-recvfrom/208_reg_good_retry_nonce_ok.py | 42 | 1029 | # $Id$
import inc_sip as sip
import inc_sdp as sdp
pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT " + \
"--realm=python --user=username --password=password " + \
"--auto-update-nat=0"
req1 = sip.RecvfromTransaction("Initial request", 401,
include=["REGISTER sip"],
exclude=["Authoriza... | gpl-2.0 | -4,093,929,208,641,515 | 34.482759 | 83 | 0.649174 | false |
acshan/odoo | addons/sale_layout/models/sale_layout.py | 180 | 5037 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | agpl-3.0 | 3,736,219,365,102,525,000 | 36.87218 | 137 | 0.613857 | false |
blossomica/airmozilla | airmozilla/main/migrations/0002_auto_20150903_1343.py | 9 | 9951 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
('uploads', '0001_initial'),
migrat... | bsd-3-clause | 2,147,964,182,195,912,000 | 35.992565 | 164 | 0.559843 | false |
veltzer/demos-linux | config/project.py | 1 | 4910 | import datetime
import config.general
project_github_username='veltzer'
project_name='demos-linux'
project_website='https://{project_github_username}.github.io/{project_name}'.format(**locals())
project_website_source='https://github.com/{project_github_username}/{project_name}'.format(**locals())
project_website_git=... | gpl-3.0 | -7,562,981,995,973,148,000 | 41.327586 | 124 | 0.718126 | false |
mrquim/repository.mrquim | repo/script.module.covenant/lib/resources/lib/sources/en/mzmovies.py | 7 | 6851 | # -*- coding: utf-8 -*-
'''
Covenant Add-on
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 prog... | gpl-2.0 | -5,184,790,510,927,738,000 | 36.233696 | 121 | 0.525763 | false |
rven/odoo | addons/account_edi_extended/models/account_move.py | 2 | 4061 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models, fields, _
class AccountMove(models.Model):
_inherit = 'account.move'
edi_show_abandon_cancel_button = fields.Boolean(
compute='_compute_edi_show_abandon_cancel_button')
... | agpl-3.0 | 4,525,222,045,283,930,000 | 49.135802 | 153 | 0.569072 | false |
chemelnucfin/tensorflow | tensorflow/python/autograph/core/converter.py | 5 | 13637 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 4,377,951,582,014,473,000 | 32.260976 | 81 | 0.700154 | false |
thomasem/nova | nova/api/openstack/compute/plugins/v3/admin_actions.py | 33 | 3773 | # Copyright 2011 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the 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 | 543,577,671,087,976,960 | 36.356436 | 79 | 0.694938 | false |
shreks7/crazyflie-android-no-otg | CrazyFliePythonServer/crazyflie/main.py | 1 | 18432 | /**
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Shrey Malhotra
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including witho... | mit | -5,991,249,323,020,450,000 | 37.240664 | 158 | 0.578885 | false |
thopiekar/Cura | plugins/UM3NetworkPrinting/src/Models/Http/CloudClusterStatus.py | 1 | 1234 | # Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from datetime import datetime
from typing import List, Dict, Union, Any
from ..BaseModel import BaseModel
from .ClusterPrinterStatus import ClusterPrinterStatus
from .ClusterPrintJobStatus import ClusterPrintJobStatus
# M... | lgpl-3.0 | 3,862,809,847,897,066,000 | 46.461538 | 92 | 0.705835 | false |
yoghadj/or-tools | examples/python/steel.py | 32 | 6171 | # Copyright 2010 Pierre Schaus pschaus@gmail.com, lperron@google.com
#
# 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 ... | apache-2.0 | -5,511,251,610,893,911,000 | 34.262857 | 80 | 0.618214 | false |
Lujeni/ansible | lib/ansible/modules/network/fortios/fortios_system_resource_limits.py | 13 | 12995 | #!/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 | -5,213,551,673,024,830,000 | 31.815657 | 128 | 0.572528 | false |
stvstnfrd/edx-platform | lms/djangoapps/program_enrollments/management/commands/reset_enrollment_data.py | 5 | 2105 | """
Management command to remove enrollments and any related models created as
a side effect of enrolling students.
Intented for use in integration sandbox environments
"""
import logging
from textwrap import dedent
from django.core.management.base import BaseCommand, CommandError
from django.db import transaction
... | agpl-3.0 | -2,217,810,590,852,880,600 | 31.890625 | 117 | 0.667458 | false |
shams169/pythonProject | ContactsDir/env/lib/python3.6/site-packages/setuptools/sandbox.py | 21 | 14543 | import os
import sys
import tempfile
import operator
import functools
import itertools
import re
import contextlib
import pickle
import textwrap
from setuptools.extern import six
from setuptools.extern.six.moves import builtins, map
import pkg_resources
if sys.platform.startswith('java'):
import org.python.modul... | mit | 1,284,975,422,915,150,600 | 28.379798 | 105 | 0.584061 | false |
mbachry/exxo | exxo/venv.py | 1 | 2558 | ACTIVATE_SCRIPT = """# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly
deactivate () {
# reset old environment variables
if [ -n "$_OLD_VIRTUAL_PATH" ] ; then
PATH="$_OLD_VIRTUAL_PATH"
export PATH
unset _OLD_VIRTUAL_PATH
fi
# This shoul... | isc | 6,727,654,097,634,589,000 | 24.838384 | 84 | 0.64269 | false |
mdworks2016/work_development | Python/20_Third_Certification/venv/lib/python3.7/site-packages/django/utils/translation/__init__.py | 5 | 10790 | """
Internationalization support.
"""
import re
import warnings
from contextlib import ContextDecorator
from decimal import ROUND_UP, Decimal
from django.utils.autoreload import autoreload_started, file_changed
from django.utils.deprecation import RemovedInDjango40Warning
from django.utils.functional import lazy
__al... | apache-2.0 | -4,081,953,658,181,526,000 | 30.828909 | 113 | 0.650046 | false |
trdean/grEME | gr-uhd/apps/hf_radio/ssbdemod.py | 58 | 4082 | # Copyright 2011 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 (at your option)
# any later version.
#
# G... | gpl-3.0 | -1,878,122,498,137,796,600 | 33.59322 | 78 | 0.581333 | false |
miipl-naveen/optibizz | addons/account/project/report/inverted_analytic_balance.py | 358 | 5760 | # -*- 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 | 4,345,690,284,339,548,000 | 43.307692 | 107 | 0.540799 | false |
lucasmachadorj/pypln.web | pypln/web/core/tests/views/test_document.py | 2 | 11044 | # -*- coding:utf-8 -*-
#
# Copyright 2012 NAMD-EMAP-FGV
#
# This file is part of PyPLN. You can get more information at: http://pypln.org/.
#
# PyPLN 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 vers... | gpl-3.0 | 377,421,825,397,096,600 | 44.077551 | 88 | 0.662079 | false |
jotes/ansible | v2/ansible/plugins/connections/winrm.py | 29 | 11717 | # (c) 2014, Chris Church <chris@ninemoreminutes.com>
#
# This file is part of Ansible.
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | gpl-3.0 | 1,070,559,228,475,564,800 | 44.414729 | 128 | 0.530938 | false |
ahb0327/intellij-community | python/lib/Lib/readline.py | 82 | 5885 | from __future__ import with_statement
import os.path
import sys
from warnings import warn
import java.lang.reflect.Array
__all__ = ['add_history', 'clear_history', 'get_begidx', 'get_completer',
'get_completer_delims', 'get_current_history_length',
'get_endidx', 'get_history_item', 'get_history_... | apache-2.0 | 5,994,438,386,267,186,000 | 31.513812 | 148 | 0.662022 | false |
agrista/odoo-saas | openerp/report/render/rml2pdf/trml2pdf.py | 256 | 46679 | # -*- 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 | 4,453,524,872,520,911,400 | 41.864096 | 238 | 0.546434 | false |
wangyum/tensorflow | tensorflow/contrib/distributions/python/kernel_tests/gamma_test.py | 1 | 14770 | # 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 | -814,847,510,712,591,200 | 39.355191 | 80 | 0.606567 | false |
rikirenz/inspire-next | tests/integration/test_detailed_records.py | 2 | 1956 | # -*- coding: utf-8 -*-
#
# This file is part of INSPIRE.
# Copyright (C) 2014-2017 CERN.
#
# INSPIRE 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 ... | gpl-3.0 | -4,749,621,418,016,953,000 | 32.152542 | 113 | 0.713701 | false |
gurneyalex/OpenUpgrade | addons/base_import/tests/test_cases.py | 101 | 13059 | # -*- encoding: utf-8 -*-
import unittest2
from openerp.tests.common import TransactionCase
from .. import models
ID_FIELD = {'id': 'id', 'name': 'id', 'string': "External ID", 'required': False, 'fields': []}
def make_field(name='value', string='unknown', required=False, fields=[]):
return [
ID_FIELD,
... | agpl-3.0 | 8,766,445,772,598,901,000 | 37.154971 | 115 | 0.504943 | false |
nvbn/python-social-auth | social/tests/backends/test_github.py | 11 | 4899 | import json
from httpretty import HTTPretty
from social.exceptions import AuthFailed
from social.tests.backends.oauth import OAuth2Test
class GithubOAuth2Test(OAuth2Test):
backend_path = 'social.backends.github.GithubOAuth2'
user_data_url = 'https://api.github.com/user'
expected_username = 'foobar'
... | bsd-3-clause | -3,150,295,932,942,579,700 | 32.326531 | 77 | 0.569912 | false |
lucuma/solution | solution/utils.py | 2 | 2728 | # coding=utf-8
import datetime
import re
from xml.sax.saxutils import quoteattr
from markupsafe import Markup, escape_silent
from ._compat import to_unicode, iteritems
class FakeMultiDict(dict):
"""Adds a fake `getlist` method to a regular dict; or acts as a proxy to
Webob's MultiDict `getall` method.
"... | mit | -1,893,859,089,562,527,500 | 26.28 | 76 | 0.613636 | false |
tallakahath/pymatgen | pymatgen/util/coord_utils.py | 2 | 15753 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
from six.moves import zip
import itertools
import numpy as np
import math
from . import coord_utils_cython as cuc
"""
Utilities for manipulating coordinates o... | mit | -412,714,762,024,709,500 | 31.547521 | 81 | 0.594807 | false |
idooley/AnalogCrossover | calculator/high_pass_with_gain.py | 1 | 3175 | #!/opt/local/bin/python3.4
# Loads some common capacitor and resistor values and then exhaustively searches the space of possible combinations to find a good combination.
import re,sys,math,blist
from blist import sortedset
def convertToValue(x) :
y = x.strip()
if y.endswith("pF") :
return float(y.replace... | bsd-3-clause | -2,791,232,877,052,321,000 | 32.072917 | 143 | 0.547402 | false |
cebrusfs/217gdb | pwndbg/strings.py | 5 | 1331 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Functionality for resolving ASCII printable strings within
the debuggee's address space.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import string
import gdb
... | mit | 4,524,889,484,868,914,000 | 23.2 | 80 | 0.647633 | false |
crs4/blast-python | BlastPython/blaster.py | 1 | 1869 | # BEGIN_COPYRIGHT
#
# Copyright (C) 2014 CRS4.
#
# This file is part of blast-python.
#
# blast-python 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 | -5,738,635,644,341,038,000 | 32.375 | 78 | 0.662921 | false |
40223117cda/w16cdaa | static/Brython3.1.3-20150514-095342/Lib/platform.py | 620 | 51006 | #!/usr/bin/env python3
""" This module tries to retrieve as much platform-identifying data as
possible. It makes this information available via function APIs.
If called from the command line, it prints the platform
information concatenated as single string to stdout. The output
format is useable as pa... | gpl-3.0 | 6,549,492,661,857,998,000 | 31.843529 | 88 | 0.585245 | false |
SuriyaaKudoIsc/olympia | scripts/update/update.py | 1 | 5688 | import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from commander.deploy import hostgroups, task
import commander_settings as settings
_src_dir = lambda *p: os.path.join(settings.SRC_DIR, *p)
VIRTUALENV = os.path.join(os.path.dirname(settings.SRC_DIR), 'venv')
@task
def create_virtu... | bsd-3-clause | -2,612,005,332,908,767,000 | 28.936842 | 79 | 0.594233 | false |
windygu/xbmc-addon | plugin.video.xunlei/mechanize/_html.py | 132 | 20888 | """HTML handling.
Copyright 2003-2006 John J. Lee <jjl@pobox.com>
This code is free software; you can redistribute it and/or modify it under
the terms of the BSD or ZPL 2.1 licenses (see the file COPYING.txt
included with the distribution).
"""
import codecs
import copy
import htmlentitydefs
import re
import _sgml... | apache-2.0 | 7,856,159,933,690,499,000 | 32.208267 | 78 | 0.548209 | false |
bitifirefly/edx-platform | common/djangoapps/cache_toolbox/templatetags/cache_toolbox.py | 239 | 2059 | from django import template
from django.core.cache import cache
from django.template import Node, TemplateSyntaxError, Variable
from django.template import resolve_variable
register = template.Library()
class CacheNode(Node):
def __init__(self, nodelist, expire_time, key):
self.nodelist = nodelist
... | agpl-3.0 | -5,734,013,720,264,495,000 | 27.205479 | 80 | 0.647402 | false |
g12mcgov/home-assistant | homeassistant/components/thermostat/demo.py | 19 | 2080 | """
homeassistant.components.thermostat.demo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Demo platform that offers a fake thermostat.
"""
from homeassistant.components.thermostat import ThermostatDevice
from homeassistant.const import TEMP_CELCIUS, TEMP_FAHRENHEIT
def setup_platform(hass, config, add_devices, discovery... | mit | 5,450,782,867,154,622,000 | 28.295775 | 69 | 0.622596 | false |
drewokane/seaborn | seaborn/tests/test_utils.py | 11 | 11338 | """Tests for plotting utilities."""
import warnings
import tempfile
import shutil
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import nose
import nose.tools as nt
from nose.tools import assert_equal, raises
import numpy.testing as npt
import pandas.util.testing as pdt
from distutils.version ... | bsd-3-clause | 2,918,748,942,632,722,400 | 29.643243 | 78 | 0.5867 | false |
cbclab/MDT | mdt/gui/maps_visualizer/config_tabs/tab_general.py | 1 | 18316 | import copy
import os
from PyQt5.QtCore import pyqtSlot, Qt, QPoint, QUrl
from PyQt5.QtGui import QDesktopServices
from PyQt5.QtWidgets import QWidget, QAbstractItemView, QMenu, QWidgetAction, QLabel
from mdt.gui.maps_visualizer.actions import SetDimension, SetSliceIndex, SetVolumeIndex, SetColormap, SetRotate, \
... | lgpl-3.0 | -4,285,017,083,319,772,000 | 44.79 | 117 | 0.634582 | false |
kiszk/spark | python/pyspark/mllib/util.py | 18 | 19611 | #
# 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,811,259,484,909,665,000 | 36.497132 | 98 | 0.601856 | false |
kostaspl/SpiderMonkey38 | python/mozbuild/mozbuild/test/backend/test_recursivemake.py | 1 | 29117 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import unicode_literals
import json
import os
import unittest
from mozpack.manifests import (
Inst... | mpl-2.0 | -2,563,099,380,182,302,700 | 36.42545 | 123 | 0.538414 | false |
Mazecreator/tensorflow | tensorflow/compiler/tests/xla_device_test.py | 76 | 1639 | # 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 | 4,938,639,235,002,573,000 | 33.145833 | 80 | 0.66687 | false |
datakortet/django-cms | cms/tests/security.py | 11 | 8935 | from __future__ import with_statement
from cms.api import create_page, add_plugin
from cms.models.pluginmodel import CMSPlugin
from cms.plugins.text.models import Text
from cms.test_utils.testcases import (CMSTestCase, URL_CMS_PLUGIN_ADD,
URL_CMS_PLUGIN_EDIT, URL_CMS_PLUGIN_REMOVE)
from django.conf import settings... | bsd-3-clause | 7,899,653,857,456,746,000 | 46.026316 | 122 | 0.625182 | false |
arkmaxim/grpc | src/python/grpcio_tests/tests/unit/beta/_connectivity_channel_test.py | 15 | 2117 | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | -180,901,055,696,816,800 | 43.104167 | 74 | 0.787435 | false |
mzdaniel/oh-mainline | vendor/packages/Django/django/db/backends/mysql/client.py | 524 | 1380 | import os
import sys
from django.db.backends import BaseDatabaseClient
class DatabaseClient(BaseDatabaseClient):
executable_name = 'mysql'
def runshell(self):
settings_dict = self.connection.settings_dict
args = [self.executable_name]
db = settings_dict['OPTIONS'].get('db', settings_d... | agpl-3.0 | -3,163,106,734,556,864,500 | 33.5 | 82 | 0.538406 | false |
stefanhahmann/pybossa | test/test_repository/test_user_repository.py | 6 | 8682 | # -*- coding: utf8 -*-
# This file is part of PyBossa.
#
# Copyright (C) 2014 SF Isle of Man Limited
#
# PyBossa is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | agpl-3.0 | 1,027,715,820,202,144,600 | 29.356643 | 80 | 0.651578 | false |
albertliangcode/DiceRoll | venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/sbcsgroupprober.py | 2936 | 3291 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer. All R... | mit | -6,324,612,056,457,639,000 | 46.695652 | 79 | 0.69766 | false |
rsunder10/PopularityBased-SearchEngine | lib/python3.4/site-packages/django/core/cache/backends/locmem.py | 586 | 4287 | "Thread-safe in-memory cache backend."
import time
from contextlib import contextmanager
from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache
from django.utils.synch import RWLock
try:
from django.utils.six.moves import cPickle as pickle
except ImportError:
import pickle
# Global in-memor... | mit | 8,109,650,493,505,624,000 | 30.291971 | 94 | 0.567996 | false |
dony71/OpenWrt_Backfire | scripts/dl_cleanup.py | 31 | 5878 | #!/usr/bin/env python
"""
# OpenWRT download directory cleanup utility.
# Delete all but the very last version of the program tarballs.
#
# Copyright (c) 2010 Michael Buesch <mb@bu3sch.de>
"""
import sys
import os
import re
import getopt
# Commandline options
opt_dryrun = False
def parseVer_1234(match, filepath):
... | gpl-2.0 | -7,498,248,065,641,068,000 | 25.00885 | 84 | 0.618067 | false |
weimingtom/python-for-android | python3-alpha/python3-src/Lib/plat-linux3/DLFCN.py | 171 | 1625 | # Generated by h2py from /usr/include/dlfcn.h
_DLFCN_H = 1
# Included from features.h
_FEATURES_H = 1
__USE_ANSI = 1
__FAVOR_BSD = 1
_ISOC99_SOURCE = 1
_POSIX_SOURCE = 1
_POSIX_C_SOURCE = 199506
_XOPEN_SOURCE = 600
_XOPEN_SOURCE_EXTENDED = 1
_LARGEFILE64_SOURCE = 1
_BSD_SOURCE = 1
_SVID_SOURCE = 1
_BSD_SOURCE = 1
_SVI... | apache-2.0 | 3,264,714,216,779,279,000 | 18.578313 | 76 | 0.652308 | false |
alexproca/askbot-devel | askbot/management/commands/askbot_rebuild_index.py | 9 | 4020 | import sys
from optparse import make_option
from django.core.management import get_commands, load_command_class
from django.utils.translation import activate as activate_language
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
try:
from haystack.management.comman... | gpl-3.0 | 7,014,667,089,417,214,000 | 42.695652 | 127 | 0.590796 | false |
oceanobservatories/mi-instrument | mi/dataset/parser/test/test_cg_stc_eng_stc.py | 5 | 16780 | #!/usr/bin/env python
"""
@package mi.dataset.parser.test.test_cg_stc_eng_stc
@file marine-integrations/mi/dataset/parser/test/test_cg_stc_eng_stc.py
@author Mike Nicoletti
@brief Test code for a Cg_stc_eng_stc data parser
"""
import os
import re
import ntplib
from nose.plugins.attrib import attr
from mi.core.except... | bsd-2-clause | -5,599,959,587,224,635,000 | 57.466899 | 146 | 0.566329 | false |
foss-for-synopsys-dwc-arc-processors/RIOT | tests/lwip/tests/01-run.py | 15 | 11444 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2016 Martine Lenders <mail@martine-lenders.eu>
#
# Distributed under terms of the MIT license.
from __future__ import print_function
import argparse
import os, sys
import random
import pexpect
import subprocess
import time
import types
DE... | lgpl-2.1 | 6,660,543,257,646,934,000 | 37.270903 | 89 | 0.595211 | false |
UstadMobile/exelearning-extjs5-mirror | twisted/plugins/twisted_trial.py | 14 | 1880 |
from zope.interface import implements
from twisted.python.components import backwardsCompatImplements
from twisted.trial.itrial import IReporter
from twisted.plugin import IPlugin
class _Reporter(object):
implements(IPlugin, IReporter)
def __init__(self, name, module, description, longOpt, shortOpt, klass):... | gpl-2.0 | 3,590,320,245,898,108,400 | 33.181818 | 76 | 0.543617 | false |
thomazs/geraldo | site/newsite/site-geraldo/django/db/models/__init__.py | 14 | 1245 | from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured
from django.db import connection
from django.db.models.loading import get_apps, get_app, get_models, get_model, register_models
from django.db.models.query import Q
from django.db.models.manager import Manager
f... | lgpl-3.0 | -2,294,360,048,874,690,000 | 39.16129 | 128 | 0.75502 | false |
ycl2045/nova-master | nova/tests/api/openstack/compute/plugins/v3/test_agents.py | 19 | 13966 | # Copyright 2012 IBM Corp.
#
# 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 t... | apache-2.0 | 6,622,349,208,270,206,000 | 38.789174 | 78 | 0.532221 | false |
FTBZ/librenms | LibreNMS/service.py | 14 | 31186 | import LibreNMS
import json
import logging
import os
import subprocess
import threading
import sys
import time
import timeit
from datetime import timedelta
from logging import debug, info, warning, error, critical, exception
from platform import python_version
from time import sleep
from socket import gethostname
fro... | gpl-3.0 | 919,063,731,641,398,900 | 41.837912 | 167 | 0.595427 | false |
mmp2/megaman | doc/sphinxext/numpy_ext/edit_on_github.py | 11 | 5895 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This extension makes it easy to edit documentation on github.
It adds links associated with each docstring that go to the
corresponding view source page on Github. From there, the user can
push the "Edit" button, edit the docstring, and submit a pull... | bsd-2-clause | -4,112,364,382,127,077,000 | 34.727273 | 77 | 0.604241 | false |
mbareta/edx-platform-ft | common/lib/xmodule/xmodule/modulestore/mixed.py | 10 | 43011 | """
MixedModuleStore allows for aggregation between multiple modulestores.
In this way, courses can be served up via either SplitMongoModuleStore or MongoModuleStore.
"""
import logging
from contextlib import contextmanager
import itertools
import functools
from contracts import contract, new_contract
from opaque_k... | agpl-3.0 | 7,529,883,029,666,540,000 | 41.797015 | 122 | 0.629095 | false |
cezary12/blaze | blaze/catalog/array_provider.py | 13 | 5440 | from __future__ import absolute_import, division, print_function
import os
from os import path
import glob
import shutil
import tempfile
from dynd import nd, ndt
from .. import array
def load_json_file_array(root, array_name):
# Load the datashape
dsfile = root + '.datashape'
if not path.isfile(dsfile)... | bsd-3-clause | 7,926,381,133,068,320,000 | 35.756757 | 76 | 0.592647 | false |
rpgplanet/django-avatar | avatar/settings.py | 37 | 1294 | from django.conf import settings
try:
from PIL import Image
dir(Image) # Placate PyFlakes
except ImportError:
import Image
AVATAR_DEFAULT_SIZE = getattr(settings, 'AVATAR_DEFAULT_SIZE', 80)
AUTO_GENERATE_AVATAR_SIZES = getattr(settings, 'AUTO_GENERATE_AVATAR_SIZES', (AVATAR_DEFAULT_SIZE,))
AVATAR_RESIZE_M... | bsd-3-clause | -508,282,217,725,415,000 | 55.26087 | 100 | 0.76507 | false |
evaschalde/odoo | odoo.py | 257 | 5618 | #!/usr/bin/env python
#----------------------------------------------------------
# odoo cli
#
# To install your odoo development environement type:
#
# wget -O- https://raw.githubusercontent.com/odoo/odoo/8.0/odoo.py | python
#
# The setup_* subcommands used to boostrap odoo are defined here inline and may
# only depe... | agpl-3.0 | -5,820,298,900,065,875,000 | 33.89441 | 104 | 0.577252 | false |
internetarchive/warctools | hanzo/warctools/warc.py | 1 | 11905 | """An object to represent warc records, using the abstract record in
record.py"""
import re
import hashlib
from hanzo.warctools.record import ArchiveRecord, ArchiveParser
from hanzo.warctools.archive_detect import register_record_type
import uuid
bad_lines = 5 # when to give up looking for the version stamp
@Archiv... | mit | 4,394,548,616,748,940,300 | 31.616438 | 106 | 0.549517 | false |
an7oine/WinVHS | Cygwin/lib/python2.7/encodings/euc_jis_2004.py | 816 | 1051 | #
# euc_jis_2004.py: Python Unicode Codec for EUC_JIS_2004
#
# Written by Hye-Shik Chang <perky@FreeBSD.org>
#
import _codecs_jp, codecs
import _multibytecodec as mbc
codec = _codecs_jp.getcodec('euc_jis_2004')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEncoder(m... | gpl-3.0 | -4,974,546,387,813,277,000 | 25.948718 | 74 | 0.699334 | false |
jgmanzanas/CMNT_004_15 | project-addons/flask_middleware_connector/__openerp__.py | 1 | 1575 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Comunitea All Rights Reserved
# $Omar Castiñeira Saavedra <omar@comunitea.com>$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the G... | agpl-3.0 | 3,590,445,221,710,274,000 | 46.69697 | 130 | 0.61817 | false |
pwong-mapr/private-hue | desktop/core/ext-py/Django-1.4.5/django/conf/locale/cs/formats.py | 86 | 1313 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j. E Y'
TIME_FORMAT = 'G:i:s'
DATETIME_FORMAT = 'j. E Y G:i:s'
YEAR_MONTH... | apache-2.0 | -6,246,536,851,668,346,000 | 34.486486 | 77 | 0.555217 | false |
MauHernandez/cyclope | cyclope/apps/contacts/urls.py | 2 | 1044 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2010-2015 Código Sur Sociedad Civil.
# All rights reserved.
#
# This file is part of Cyclope.
#
# Cyclope 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 Foundat... | gpl-3.0 | -3,042,254,299,071,432,000 | 36.25 | 139 | 0.730585 | false |
nke001/attention-lvcsr | libs/blocks-extras/blocks/extras/bricks/__init__.py | 7 | 1928 | from theano import shared, tensor
from blocks.bricks import Feedforward
from blocks.bricks.base import application, lazy
from blocks.extras.initialization import PermutationMatrix
from blocks.extras.utils import check_valid_permutation
from blocks.utils import shared_floatx
class FixedPermutation(Feedforward):
""... | mit | 5,851,748,505,730,599,000 | 35.377358 | 76 | 0.634336 | false |
jn2840/bitcoin | qa/rpc-tests/mempool_packages.py | 1 | 7342 | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Beardcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Test descendant package tracking code
from test_framework.test_framework import BitcoinTestFramework... | mit | 9,267,213,072,915,682 | 40.247191 | 139 | 0.602833 | false |
alex-march/micropython | esp8266/modules/flashbdev.py | 7 | 2025 | import esp
class FlashBdev:
SEC_SIZE = 4096
START_SEC = esp.flash_user_start() // SEC_SIZE
NUM_BLK = 0x6b
def __init__(self, blocks=NUM_BLK):
self.blocks = blocks
def readblocks(self, n, buf):
#print("readblocks(%s, %x(%d))" % (n, id(buf), len(buf)))
esp.flash_read((n + s... | mit | -2,381,036,306,828,812,300 | 28.779412 | 89 | 0.578272 | false |
SayCV/tools-OpenOCD | tools/xsvf_tools/svf2xsvf.py | 101 | 26710 | #!/usr/bin/python3.0
# Copyright 2008, SoftPLC Corporation http://softplc.com
# Dick Hollenbeck dick@softplc.com
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the Lic... | gpl-2.0 | -4,119,163,166,708,930,000 | 35.639232 | 144 | 0.558854 | false |
lexus24/w16b_test | static/Brython3.1.1-20150328-091302/Lib/xml/etree/ElementTree.py | 730 | 61800 | #
# ElementTree
# $Id: ElementTree.py 3440 2008-07-18 14:45:01Z fredrik $
#
# light-weight XML support for Python 2.3 and later.
#
# history (since 1.2.6):
# 2005-11-12 fl added tostringlist/fromstringlist helpers
# 2006-07-05 fl merged in selected changes from the 1.3 sandbox
# 2006-07-05 fl removed support for ... | agpl-3.0 | 6,363,018,151,209,591,000 | 33.218162 | 80 | 0.576168 | false |
unclev/vk.unclev.ru | library/xmpp/protocol.py | 1 | 54681 | ## protocol.py
##
## Copyright (C) 2003-2005 Alexey "Snake" Nezhdanov
##
## 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, or (at your option)
## any later ... | mit | 7,747,326,246,037,135,000 | 36.318851 | 499 | 0.66246 | false |
Zen-CODE/kivy | kivy/uix/bubble.py | 42 | 12590 | '''
Bubble
======
.. versionadded:: 1.1.0
.. image:: images/bubble.jpg
:align: right
The Bubble widget is a form of menu or a small popup where the menu options
are stacked either vertically or horizontally.
The :class:`Bubble` contains an arrow pointing in the direction you
choose.
Simple example
------------... | mit | -530,803,376,703,513,150 | 32.753351 | 79 | 0.570056 | false |
virtualopensystems/neutron | neutron/tests/unit/test_config.py | 2 | 2478 | # Copyright (c) 2012 OpenStack Foundation.
#
# 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... | apache-2.0 | -3,926,090,285,083,533,000 | 41 | 79 | 0.671913 | false |
janelia-idf/hybridizer | tests/adc_to_volume.py | 4 | 5112 | # -*- coding: utf-8 -*-
from __future__ import print_function, division
import matplotlib.pyplot as plot
import numpy
from numpy.polynomial.polynomial import polyfit,polyadd,Polynomial
import yaml
INCHES_PER_ML = 0.078
VOLTS_PER_ADC_UNIT = 0.0049
def load_numpy_data(path):
with open(path,'r') as fid:
hea... | bsd-3-clause | 3,132,821,074,629,454,000 | 35.776978 | 95 | 0.609155 | false |
BootstrapHeroes/django-shopify | django_shopify/shopify_app/services/plan_config_service.py | 1 | 2510 | from base import BaseService
from shopify_app.models import PlanConfig
from django.conf import settings
from shopify_app.config import DEFAULTS
from datetime import datetime
from shopify_api import APIWrapper
class PlanConfigService(BaseService):
entity = PlanConfig
def _get_charge_common_data(self, shop, p... | gpl-3.0 | -6,890,294,562,392,808,000 | 33.861111 | 146 | 0.635458 | false |
darjus-amzn/boto | boto/mturk/__init__.py | 782 | 1108 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modi... | mit | 8,103,445,817,469,408,000 | 47.173913 | 74 | 0.768051 | false |
ChanduERP/odoo | addons/l10n_tr/__openerp__.py | 259 | 2056 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -5,001,856,044,827,126,000 | 38.057692 | 80 | 0.597735 | false |
tdtrask/ansible | test/units/modules/network/nxos/test_nxos_command.py | 57 | 4175 | # (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
# (at your option) any later version.
#
# Ansible is dis... | gpl-3.0 | -4,251,694,360,580,350,500 | 38.386792 | 96 | 0.642635 | false |
nickweinberg/werewolf-slackbot | rtmbot.py | 1 | 6723 | #!/usr/bin/env python
import sys
sys.dont_write_bytecode = True
import glob
import yaml
import json
import os
import sys
import time
import logging
from argparse import ArgumentParser
from slackclient import SlackClient
def dbg(debug_string):
if debug:
logging.info(debug_string)
USER_DICT = {}
class R... | mit | 3,092,971,304,012,391,400 | 30.269767 | 109 | 0.532352 | false |
nitramkaroh/OOFEM | tools/unv2oofem/unv2oofem.py | 1 | 12763 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from unv2x import *
from abaqus2x import *
from oofemctrlreader import *
import time
from numpy.core.defchararray import splitlines
if __name__=='__main__':
helpmsg="""
Usage: unv2oofem.py unvfile ctrlfile oofemfile
What it does: read unvfile, create an internal FEM obje... | lgpl-2.1 | 871,635,011,210,214,900 | 46.095941 | 227 | 0.517433 | false |
lashwang/pyspider | pyspider/database/sqlalchemy/taskdb.py | 4 | 6205 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<roy@binux.me>
# http://binux.me
# Created on 2014-12-04 22:33:43
import re
import six
import time
import json
import sqlalchemy.exc
from sqlalchemy import (create_engine, MetaData, Table, Column, I... | apache-2.0 | -1,496,998,859,426,300,700 | 38.025157 | 91 | 0.534085 | 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.