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 |
|---|---|---|---|---|---|---|---|---|---|---|
indictranstech/Das_frappe | frappe/website/utils.py | 26 | 4682 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe, re, os
from werkzeug.urls import url_parse, url_unparse
def delete_page_cache(path):
cache = frappe.cache()
groups = ("page_context", "website_page", "sitemap_op... | mit | 4,188,730,733,944,310,000 | 24.584699 | 103 | 0.645023 | false |
Saurabh7/shogun | tests/integration/generator/featop.py | 22 | 4276 | """
Common operations on features
"""
import shogun.Features as features
import shogun.Preprocessor as preproc
WORDSTRING_ORDER=3
WORDSTRING_GAP=0
WORDSTRING_REVERSE=False
def get_features(fclass, ftype, data, *args, **kwargs):
if fclass=='simple':
return get_simple(ftype, data, *args, **kwargs)
elif fclass=='s... | mit | -1,806,722,352,061,604,600 | 28.489655 | 73 | 0.738307 | false |
prarthitm/edxplatform | common/test/acceptance/pages/studio/textbook_upload.py | 10 | 3051 | """
Course Textbooks page.
"""
import requests
from path import Path as path
from common.test.acceptance.pages.common.utils import click_css
from common.test.acceptance.pages.studio.course_page import CoursePage
class TextbookUploadPage(CoursePage):
"""
Course Textbooks page.
"""
url_path = "textboo... | agpl-3.0 | -2,955,715,854,292,462,000 | 36.207317 | 124 | 0.630941 | false |
onitake/ansible | lib/ansible/modules/remote_management/hpilo/hpilo_boot.py | 47 | 6630 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2012 Dag Wieers <dag@wieers.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | gpl-3.0 | -7,673,958,470,773,105,000 | 30.875 | 142 | 0.630618 | false |
landonb/chjson | test_chjson.py | 1 | 21792 | #!/usr/bin/python
# -*- coding: utf-8 -*-
## this test suite is an almost verbatim copy of the jsontest.py test suite
## found in json-py available from http://sourceforge.net/projects/json-py/
##
## Copyright (C) 2005 Patrick D. Logan
## Contact mailto:patrickdlogan@stardecisions.com
##
## This library is free softw... | gpl-3.0 | 6,312,715,400,898,226,000 | 37.306338 | 112 | 0.61513 | false |
aktech/sympy | sympy/series/residues.py | 84 | 2386 | """
This module implements the Residue function and related tools for working
with residues.
"""
from __future__ import print_function, division
from sympy import sympify
from sympy.utilities.timeutils import timethis
@timethis('residue')
def residue(expr, x, x0):
"""
Finds the residue of ``expr`` at the po... | bsd-3-clause | -5,135,209,798,473,736,000 | 28.825 | 77 | 0.591785 | false |
djhenderson/byterun | tests/vmtest.py | 4 | 2839 | """Testing tools for byterun."""
from __future__ import print_function
import dis
import sys
import textwrap
import types
import unittest
import six
from byterun.pyvm2 import VirtualMachine, VirtualMachineError
# Make this false if you need to run the debugger inside a test.
CAPTURE_STDOUT = ('-s' not in sys.argv)... | mit | 4,538,573,738,831,205,000 | 28.268041 | 76 | 0.580486 | false |
fivestars/python-escpos | escpos/exceptions.py | 151 | 1974 | """ ESC/POS Exceptions classes """
import os
class Error(Exception):
""" Base class for ESC/POS errors """
def __init__(self, msg, status=None):
Exception.__init__(self)
self.msg = msg
self.resultcode = 1
if status is not None:
self.resultcode = status
def __st... | gpl-3.0 | 177,524,016,709,265,250 | 23.675 | 71 | 0.576494 | false |
apyrgio/synnefo | snf-pithos-backend/pithos/backends/lib/hashfiler/context_archipelago.py | 10 | 5223 | # Copyright (C) 2010-2014 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed i... | gpl-3.0 | -5,932,958,042,669,796,000 | 29.905325 | 78 | 0.573234 | false |
coderabhishek/scrapy | tests/test_engine.py | 92 | 8653 | """
Scrapy engine tests
This starts a testing web server (using twisted.server.Site) and then crawls it
with the Scrapy crawler.
To view the testing web server in a browser you can start it by running this
module with the ``runserver`` argument::
python test_engine.py runserver
"""
from __future__ import print_... | bsd-3-clause | 624,084,282,076,628,200 | 34.904564 | 111 | 0.63296 | false |
bobeirasa/virtualenvs | pygeckozabbix/lib/python2.7/site-packages/requests/packages/charade/utf8prober.py | 205 | 2728 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
... | mit | 2,982,516,040,752,985,600 | 33.894737 | 69 | 0.615469 | false |
jwinzer/OpenSlides | server/openslides/motions/numbering.py | 7 | 11862 | from collections import defaultdict
from typing import Any, Dict, List, Tuple
from django.db import transaction
from django.db.models import Model
from ..core.config import config
from ..utils.rest_api import ValidationError
from .models import Category, Motion
__all__ = ["numbering"]
def numbering(main_category:... | mit | -8,811,708,085,505,926,000 | 42.134545 | 118 | 0.653937 | false |
thomassa/xen-api | scripts/examples/python/shell.py | 25 | 3535 | #!/usr/bin/env python
# Copyright (c) 2006-2008 Citrix Systems.
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ... | lgpl-2.1 | 9,219,744,072,943,209,000 | 29.213675 | 97 | 0.595191 | false |
hasinitg/airavata | airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/thrift/protocol/TBinaryProtocol.py | 6 | 6573 | #
# 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 | 5,358,821,228,001,368,000 | 24.183908 | 72 | 0.679294 | false |
jhawkesworth/ansible | lib/ansible/modules/cloud/ovirt/ovirt_user.py | 75 | 5137 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
#... | gpl-3.0 | -7,999,180,405,169,371,000 | 28.1875 | 143 | 0.63247 | false |
fossoult/odoo | addons/mail/res_config.py | 301 | 2233 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2012-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 | 200,177,832,418,890,140 | 44.571429 | 133 | 0.605016 | false |
Jortolsa/l10n-spain | l10n_es_fiscal_year_closing/models/account_fiscalyear.py | 16 | 1417 | # -*- encoding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
from openerp import models, api, _
class AccountFiscaly... | agpl-3.0 | 2,179,936,133,041,834,000 | 39.485714 | 78 | 0.461538 | false |
renard/ansible | test/units/module_utils/common/validation/test_check_required_together.py | 44 | 1494 | # -*- coding: utf-8 -*-
# Copyright (c) 2020 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import pytest
from ansible.module_utils._text import to_native
from ansible.m... | gpl-3.0 | -1,813,470,687,539,735,000 | 25.210526 | 92 | 0.653949 | false |
jvehent/cipherscan | cscan/config.py | 2 | 5861 | # Copyright (c) 2016 Hubert Kario <hkario@redhat.com>
# Released under Mozilla Public License Version 2.0
"""Typical Client Hello messages sent by different clients."""
import random
from tlslite.messages import ClientHello
from tlslite.constants import \
ECPointFormat, HashAlgorithm, SignatureAlgorithm
from ... | mpl-2.0 | 1,908,015,562,285,857,300 | 42.738806 | 79 | 0.537963 | false |
ryuunosukeyoshi/PartnerPoi-Bot | lib/pycparser/ply/cpp.py | 21 | 33317 | # -----------------------------------------------------------------------------
# cpp.py
#
# Author: David Beazley (http://www.dabeaz.com)
# Copyright (C) 2017
# All rights reserved
#
# This module implements an ANSI-C style lexical preprocessor for PLY.
# --------------------------------------------------------------... | gpl-3.0 | 6,319,157,228,112,419,000 | 35.733186 | 141 | 0.420926 | false |
rwrobe/daisy | django_daisy/settings.py | 1 | 2999 | """
Django settings for django_daisy project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ..... | gpl-2.0 | 930,843,333,188,437,600 | 23.793388 | 71 | 0.720907 | false |
MasonLeeBack/PolyEngine | thirdparty/vulkan/shaderc/third_party/googletest/googletest/test/gtest_filter_unittest.py | 364 | 21325 | #!/usr/bin/env python
#
# Copyright 2005 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... | mit | -97,248,296,120,200,820 | 32.529874 | 80 | 0.66354 | false |
agronholm/ircproto | examples/twisted_client.py | 1 | 2777 | from __future__ import print_function, unicode_literals
from argparse import ArgumentParser
from twisted.internet import reactor
from twisted.internet.protocol import Protocol, connectionDone, ClientFactory
from ircproto.connection import IRCClientConnection
from ircproto.constants import RPL_MYINFO
from ircproto.ev... | mit | 5,909,431,757,218,198,000 | 37.569444 | 98 | 0.649262 | false |
jorge-marques/shoop | shoop_tests/core/test_taxing_utils.py | 2 | 6140 | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from decimal import Decimal
import... | agpl-3.0 | 8,245,383,330,679,382,000 | 34.697674 | 78 | 0.618241 | false |
alexkost819/thesis | train.py | 1 | 12313 | """Created on 24 June 2017.
@author: Alex Kost
@description: Training class for CNN and RNN models
Attributes:
DEFAULT_FORMAT (str): Logging format
LOGFILE_NAME (str): Logging file name
OUTPUT_DIR (str): TensorBoard output directory
"""
# Basic Python
import logging
import os
from time import strftime
fro... | apache-2.0 | -5,019,850,779,472,740,000 | 39.238562 | 105 | 0.56615 | false |
chipx86/reviewboard | reviewboard/scmtools/svn/base.py | 2 | 6825 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
from django.utils.six.moves.urllib.parse import quote
from django.utils.translation import ugettext as _
from reviewboard.scmtools.core import HEAD
from reviewboard.scmtools.errors import SCMError
class Client(object):
"""Base SVN client.... | mit | -4,827,641,905,512,117,000 | 37.778409 | 94 | 0.582857 | false |
illicitonion/givabit | lib/sdks/google_appengine_1.7.1/google_appengine/lib/django_1_3/tests/modeltests/lookup/tests.py | 48 | 29352 | from datetime import datetime
from operator import attrgetter
from django.core.exceptions import FieldError
from django.db import connection
from django.test import TestCase, skipUnlessDBFeature
from models import Author, Article, Tag
class LookupTests(TestCase):
#def setUp(self):
def setUp(self):
# ... | apache-2.0 | 2,190,944,264,971,496,700 | 47.276316 | 150 | 0.540645 | false |
misuzu/torpedomsg | setup.py | 1 | 1685 | import os
import re
from setuptools import setup
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
def find_version(*file_paths):
"""
Build a path from *file_paths* and search for a ``__version__``
s... | mit | 7,071,419,336,289,157,000 | 29.636364 | 85 | 0.590504 | false |
TalShafir/ansible | lib/ansible/plugins/lookup/cpm_metering.py | 18 | 5916 | # (c) 2018, Western Telematic Inc. <kenp@wti.com>
# (c) 2012-18 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',
's... | gpl-3.0 | 5,329,408,189,908,370,000 | 34.214286 | 136 | 0.604462 | false |
aaron-fz/neutron_full_sync | neutron/tests/unit/test_metadata_namespace_proxy.py | 8 | 14209 | # Copyright 2012 New Dream Network, LLC (DreamHost)
#
# 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 a... | apache-2.0 | -4,614,859,429,148,415,000 | 39.481481 | 78 | 0.463016 | false |
jayhetee/coveragepy | coverage/test_helpers.py | 45 | 11036 | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
"""Mixin classes to help make good tests."""
import atexit
import collections
import contextlib
import os
import random
import shutil
import sys
import tempfile
im... | apache-2.0 | 4,790,287,642,291,416,000 | 31.747774 | 79 | 0.613991 | false |
krfkeith/enough | gui/draw/pygame_draw/__init__.py | 3 | 1589 | # Copyright (c) 2007 Enough Project.
# See LICENSE for details.
import pygame
def fill(display, color, rect=None):
if rect is None:
display.fill(color)
else:
display.fill(color, rect)
circle = pygame.draw.circle
ellipse = pygame.draw.ellipse
arc = pygame.draw.arc
rect = pygame.draw.r... | gpl-3.0 | -3,313,076,271,883,687,400 | 23.828125 | 77 | 0.648836 | false |
PeterWangIntel/chromium-crosswalk | content/browser/devtools/protocol/devtools_protocol_handler_generator.py | 3 | 25018 | #!/usr/bin/env python
# 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.
import sys
import string
import json
blink_protocol_path = sys.argv[1]
browser_protocol_path = sys.argv[2]
output_cc_path = sys.argv[3... | bsd-3-clause | 1,920,826,740,752,545,500 | 30.194514 | 80 | 0.647933 | false |
pwmarcz/django | django/utils/lorem_ipsum.py | 505 | 4960 | """
Utility functions for generating "lorem ipsum" Latin text.
"""
from __future__ import unicode_literals
import random
COMMON_P = (
'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod '
'tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim '
'veniam, quis nostrud e... | bsd-3-clause | 8,418,295,199,947,341,000 | 42.130435 | 107 | 0.603831 | false |
SR1s/WMS | WMS/views/__init__.py | 1 | 1759 | #-*-coding: utf-8
from flask import session, render_template, url_for, redirect, flash
import functools
from datetime import datetime, timedelta
def verify_login(func):
@functools.wraps(func)
def wrappper():
valid_time = timedelta(0, 60*15)
time = session.get('time', None)
if time and \... | gpl-2.0 | -1,545,319,641,120,777,700 | 25.215385 | 68 | 0.550793 | false |
jordanemedlock/psychtruths | temboo/Library/SendGrid/WebAPI/FilterCommands/ListAvailableApps.py | 5 | 3593 | # -*- coding: utf-8 -*-
###############################################################################
#
# ListAvailableApps
# List all availalbe apps available through the SendGrid Web API.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "Lice... | apache-2.0 | 5,442,844,459,983,095,000 | 37.634409 | 179 | 0.6855 | false |
ArneBab/pypyjs | website/demo/home/rfk/repos/pypy/lib-python/2.7/bdb.py | 108 | 21084 | """Debugger basics"""
import fnmatch
import sys
import os
import types
__all__ = ["BdbQuit","Bdb","Breakpoint"]
class BdbQuit(Exception):
"""Exception to give up completely"""
class Bdb:
"""Generic Python debugger base class.
This class takes care of details of the trace facility;
a derived class... | mit | -3,729,440,386,176,198,000 | 32.360759 | 80 | 0.564836 | false |
fedora-infra/elections | tests/__init__.py | 1 | 6400 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
(c) 2014 - Copyright Pierre-Yves Chibon
Author: Pierre-Yves Chibon <pingou@pingoured.fr>
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
# General Public License v.... | gpl-2.0 | -5,796,080,621,525,319,000 | 31.160804 | 85 | 0.634844 | false |
stackforge/cloudkitty | setup.py | 154 | 1030 | # Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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 | -870,267,208,554,775,000 | 34.517241 | 69 | 0.747573 | false |
sgiavasis/C-PAC | CPAC/cwas/hats.py | 4 | 2617 | import numpy as np
# TODO: make better exception class?
def check_rank(x):
k = x.shape[1]
rank = np.linalg.matrix_rank(x)
if rank < k:
raise Exception("matrix is rank deficient (rank %i vs cols %i)" % (rank, k))
def add_intercept(x):
"""
Adds an intercept column to the left of the matri... | bsd-3-clause | -7,887,381,420,164,998,000 | 23.457944 | 84 | 0.557126 | false |
folpindo/exercises-in-programming-style | 11-letterbox/tf-11.py | 17 | 3147 | #!/usr/bin/env python
import sys, re, operator, string
class DataStorageManager():
""" Models the contents of the file """
_data = ''
def dispatch(self, message):
if message[0] == 'init':
return self._init(message[1])
elif message[0] == 'words':
return self._words()... | mit | -545,374,102,031,163,840 | 30.47 | 93 | 0.572609 | false |
diego-d5000/MisValesMd | env/lib/sre_compile.py | 123 | 19817 | # -*- coding: utf-8 -*-
#
# Secret Labs' Regular Expression Engine
#
# convert template to internal format
#
# Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
#
# See the sre.py file for information on usage and redistribution.
#
"""Internal support module for sre"""
import _sre, sys
import sre_parse... | mit | -9,059,947,149,317,761,000 | 32.204698 | 83 | 0.4905 | false |
a10networks/a10-neutron-lbaas | a10_neutron_lbaas/db/migration/alembic_migrations/versions/bc5626a5af2a_nova_instance_id_not_required.py | 2 | 1173 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | -6,342,022,823,946,428,000 | 29.868421 | 81 | 0.706735 | false |
OpenUpgrade-dev/OpenUpgrade | addons/payment_transfer/models/payment_acquirer.py | 107 | 3763 | # -*- coding: utf-'8' "-*-"
from openerp.addons.payment.models.payment_acquirer import ValidationError
from openerp.osv import osv
from openerp.tools.float_utils import float_compare
from openerp.tools.translate import _
import logging
import pprint
_logger = logging.getLogger(__name__)
class TransferPaymentAcquir... | agpl-3.0 | -6,262,822,267,033,676,000 | 42.755814 | 130 | 0.629551 | false |
hslatman/spiderfoot | modules/sfp_socialprofiles.py | 3 | 6933 | # -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Name: sfp_socialprofiles
# Purpose: Obtains social media profiles of any identified human names.
#
# Author: Steve Micallef <steve@binarypool.com>
#
# Created: 12/04/2014
# Copyright... | gpl-2.0 | -7,813,029,669,181,507,000 | 38.782353 | 143 | 0.464301 | false |
ASMlover/study | python/src/test/test_math.py | 1 | 1941 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright (c) 2014 ASMlover. 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 copyrig... | bsd-2-clause | 4,051,607,330,624,405,500 | 35.622642 | 70 | 0.715611 | false |
Yoric/servo | tests/wpt/web-platform-tests/tools/pywebsocket/src/mod_pywebsocket/memorizingfile.py | 680 | 3709 | #!/usr/bin/env python
#
# Copyright 2011, 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... | mpl-2.0 | -4,451,852,320,413,079,600 | 36.464646 | 79 | 0.675384 | false |
DJMuggs/ansible-modules-extras | monitoring/zabbix_maintenance.py | 8 | 11903 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Alexander Bulimov <lazywolf0@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of t... | gpl-3.0 | 276,498,328,291,386,500 | 31.257453 | 127 | 0.555658 | false |
jonnor/FreeCAD | src/Mod/Arch/importOBJ.py | 8 | 5530 | #***************************************************************************
#* *
#* Copyright (c) 2011 *
#* Yorik van Havre <yorik@uncreated.net> *
#* ... | lgpl-2.1 | -831,610,547,980,390,700 | 45.470588 | 118 | 0.462568 | false |
bertugatt/textmt | textmt/tag/taggers.old.py | 1 | 4183 | def build_data(inputdir, outputdir, split=0.9):
data = []
for f in os.listdir(inputdir):
with open(os.path.join(inputdir, f), 'r', encoding='utf-8') as infile:
for l in infile.readlines():
l = l.strip()
if len(l) > 0:
data.append(l)
s... | mit | 2,966,642,876,914,315,000 | 27.073826 | 96 | 0.573273 | false |
nginxxx/ansible | lib/ansible/plugins/shell/powershell.py | 35 | 7595 | # (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 | 6,976,429,105,142,091,000 | 38.764398 | 143 | 0.543647 | false |
nanuxbe/django | docs/search.py | 1 | 7579 | import elasticsearch
from django.core.paginator import EmptyPage, Page, PageNotAnInteger, Paginator
from django.utils.html import strip_tags
from django.utils.text import unescape_entities
from elasticsearch.helpers import streaming_bulk
from elasticsearch_dsl import DocType, Long, Nested, Object, String, analysis
from... | bsd-3-clause | 2,878,218,662,619,976,000 | 34.411215 | 103 | 0.608208 | false |
michaelni/audacity | lib-src/lv2/sratom/waflib/Tools/perl.py | 330 | 3016 | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
import os
from waflib import Task,Options,Utils
from waflib.Configure import conf
from waflib.TaskGen import extension,feature,before_method
@before_method('apply_incpaths','a... | gpl-2.0 | 6,801,707,491,430,132,000 | 36.7 | 146 | 0.710875 | false |
sergiocorato/ocb-server-61 | openerp/addons/base/res/ir_property.py | 13 | 7906 | # -*- 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... | agpl-3.0 | -5,050,974,506,179,797,000 | 39.13198 | 119 | 0.516823 | false |
lshain-android-source/external-chromium_org | tools/telemetry/telemetry/core/chrome/misc_web_contents_backend.py | 23 | 1489 | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
from telemetry.core import web_contents
from telemetry.core.chrome import inspector_backend
class MiscWebContentsBackend(object):
"""Provi... | bsd-3-clause | 7,443,003,172,269,991,000 | 38.184211 | 80 | 0.683009 | false |
pratapvardhan/scikit-learn | examples/linear_model/plot_sparse_recovery.py | 70 | 7486 | """
============================================================
Sparse recovery: feature selection for sparse linear models
============================================================
Given a small number of observations, we want to recover which features
of X are relevant to explain y. For this :ref:`sparse linear ... | bsd-3-clause | 9,081,509,818,100,778,000 | 42.022989 | 79 | 0.644403 | false |
pbvarga1/pdsview | pdsview/channels_dialog.py | 3 | 6911 | import numpy as np
from qtpy import QtWidgets, QtCore
from .band_widget import BandWidget, BandWidgetModel
class ChannelsDialogModel(object):
def __init__(self, main_window):
self._views = set()
self.main_window = main_window
self.current_index = self.image_names.index(
main_... | bsd-3-clause | 8,175,735,414,734,086,000 | 34.081218 | 79 | 0.637968 | false |
DolphinDream/sverchok | nodes/modifier_change/rigid_origami.py | 2 | 4958 | # This file is part of project Sverchok. It's copyrighted by the contributors
# recorded in the version control history of the file, available from
# its original location https://github.com/nortikin/sverchok/commit/master
#
# SPDX-License-Identifier: GPL3
# License-Filename: LICENSE
import bpy
from bpy.props import I... | gpl-3.0 | -1,081,178,529,147,919,400 | 37.138462 | 94 | 0.604679 | false |
hvanhovell/spark | python/pyspark/mllib/linalg/distributed.py | 20 | 55246 | #
# 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 | -1,097,551,703,285,485,300 | 38.574499 | 100 | 0.566322 | false |
NickolausDS/oauthenticator | oauthenticator/tests/test_github.py | 4 | 4715 | import re
import functools
import json
from io import BytesIO
from pytest import fixture, mark
from urllib.parse import urlparse, parse_qs
from tornado.httpclient import HTTPRequest, HTTPResponse
from tornado.httputil import HTTPHeaders
from ..github import GitHubOAuthenticator
from .mocks import setup_oauth_mock
... | bsd-3-clause | 5,862,102,942,698,974,000 | 30.019737 | 86 | 0.603818 | false |
ironman771/xbmc | tools/EventClients/examples/python/example_action.py | 10 | 1118 | #!/usr/bin/python
# This is a simple example showing how you can send a key press event
# to XBMC using the XBMCClient class
import sys
sys.path.append("../../lib/python")
import time
from xbmcclient import XBMCClient,ACTION_EXECBUILTIN,ACTION_BUTTON
def main():
host = "localhost"
port = 9777
# Cr... | gpl-2.0 | -2,115,077,807,466,946,600 | 26.95 | 71 | 0.652057 | false |
aaron-fz/neutron_full_sync | neutron/tests/unit/cisco/test_nexus_db.py | 21 | 10090 | # Copyright (c) 2013 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 ... | apache-2.0 | 657,631,850,516,523,300 | 41.217573 | 78 | 0.615362 | false |
ceph/teuthology | teuthology/task/internal/vm_setup.py | 3 | 1825 | import logging
import os
import subprocess
from teuthology.parallel import parallel
from teuthology.task import ansible
from teuthology.exceptions import CommandFailedError
log = logging.getLogger(__name__)
def vm_setup(ctx, config):
"""
Look for virtual machines and handle their initialization
"""
... | mit | 7,199,255,075,528,147,000 | 34.784314 | 77 | 0.489315 | false |
nuclio/nuclio | hack/examples/python/facerecognizer/face.py | 1 | 5037 | # Copyright 2017 The Nuclio Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 | -7,078,036,433,342,084,000 | 39.620968 | 97 | 0.625571 | false |
crossbario/autobahn-testsuite | autobahntestsuite/autobahntestsuite/case/case9_6_5.py | 2 | 1132 | ###############################################################################
##
## Copyright (c) Crossbar.io Technologies GmbH
##
## 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,766,996,593,993,070,800 | 38.428571 | 128 | 0.592756 | false |
programa-stic/barf-project | examples/misc/translate_code.py | 1 | 1900 | #! /usr/bin/env python
from __future__ import absolute_import
from __future__ import print_function
from barf.barf import BARF
if __name__ == "__main__":
# x86
# ======================================================================= #
#
# Open file
#
barf = BARF("./samples/bin/branch4.x86")
... | bsd-2-clause | -5,308,152,651,539,373,000 | 28.230769 | 89 | 0.469474 | false |
chjw8016/GreenOdoo7-haibao | openerp/addons/membership/wizard/membership_invoice.py | 51 | 3250 | # -*- 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... | mit | 734,380,498,563,421,700 | 40.666667 | 130 | 0.585846 | false |
adykstra/mne-python | mne/__init__.py | 1 | 5438 | """MNE software for MEG and EEG data analysis."""
# PEP0440 compatible formatted version, see:
# https://www.python.org/dev/peps/pep-0440/
#
# Generic release markers:
# X.Y
# X.Y.Z # For bugfix releases
#
# Admissible pre-release markers:
# X.YaN # Alpha release
# X.YbN # Beta release
# X.YrcN # Rele... | bsd-3-clause | 6,995,323,703,097,821,000 | 44.316667 | 84 | 0.637367 | false |
jjx02230808/project0223 | examples/cluster/plot_kmeans_assumptions.py | 270 | 2040 | """
====================================
Demonstration of k-means assumptions
====================================
This example is meant to illustrate situations where k-means will produce
unintuitive and possibly unexpected clusters. In the first three plots, the
input data does not conform to some implicit assumptio... | bsd-3-clause | -3,792,097,267,843,056,000 | 31.380952 | 80 | 0.681373 | false |
drptbl/MITMf | core/responder/odict.py | 7 | 3571 | # NBT-NS/LLMNR Responder
# Created by Laurent Gaffie
# Copyright (C) 2014 Trustwave Holdings, 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 you... | gpl-3.0 | -1,316,328,021,253,410,600 | 28.758333 | 79 | 0.563148 | false |
fernandog/Medusa | ext/boto/kinesis/exceptions.py | 170 | 1611 | # -*- coding: utf-8 -*-
# Copyright (c) 2012 Thomas Parslow http://almostobsolete.net/
#
# 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 th... | gpl-3.0 | 5,486,367,470,015,521 | 30.588235 | 74 | 0.779019 | false |
diedthreetimes/VCrash | pybindgen-0.15.0.795/.waf-1.5.9-0c853694b62ef4240caa9158a9f2573d/wafadmin/Tools/cflags.py | 2 | 4110 | #! /usr/bin/env python
# encoding: utf-8
import Logs
import Options
import Utils
class CompilerTraits(object):
def get_warnings_flags(self,level):
raise NotImplementedError
def get_optimization_flags(self,level):
raise NotImplementedError
def get_debug_flags(self,level):
raise NotImplementedError
class GccTra... | gpl-2.0 | -6,318,466,591,852,105,000 | 29.671642 | 366 | 0.677372 | false |
tjanez/ansible | lib/ansible/modules/cloud/openstack/os_keystone_service.py | 6 | 6355 | #!/usr/bin/python
# Copyright 2016 Sam Yaple
#
# This module 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 software is distr... | gpl-3.0 | 2,815,580,371,641,200,000 | 28.696262 | 82 | 0.608183 | false |
kimshinelove/naver-npm | node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py | 1824 | 3474 | # Copyright (c) 2011 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.
"""gypd output module
This module produces gyp input as its output. Output files are given the
.gypd extension to avoid overwriting the .gyp files that they are ... | artistic-2.0 | -8,891,239,753,618,737,000 | 35.957447 | 78 | 0.736903 | false |
icio/github3.py | tests/integration/test_users.py | 7 | 4156 | """Integration tests for the User class."""
import github3
from .helper import IntegrationHelper
class TestUser(IntegrationHelper):
"""Integration tests for methods on the User class."""
def test_events(self):
"""Show that a user can retrieve a events performed by a user."""
cassette_name =... | bsd-3-clause | -2,637,129,754,288,339,000 | 38.207547 | 79 | 0.629933 | false |
simonwydooghe/ansible | test/units/modules/network/onyx/test_onyx_interface.py | 68 | 5233 | #
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from units.compat.mock import patch
from ansible.modules.network.onyx impor... | gpl-3.0 | 5,628,117,209,666,024,000 | 40.864 | 92 | 0.657367 | false |
yieldbot/herodb | herodb/test/server_tests.py | 1 | 12456 | import types
from requests.exceptions import HTTPError
from herodb.client import StoreClient
from herodb.test.util import run_server, stop_server
from nose import tools as nt
import time
client = None
def setup_hero():
global client
run_server()
time.sleep(1)
client = StoreClient('http://localhost:808... | gpl-3.0 | -8,110,729,400,997,946,000 | 43.173759 | 88 | 0.606374 | false |
AsherBond/MondocosmOS | gdal/swig/python/samples/attachpct.py | 3 | 3133 | #!/usr/bin/env python
#******************************************************************************
# $Id: attachpct.py 18195 2009-12-06 20:24:39Z rouault $
#
# Project: GDAL
# Purpose: Simple command line program for translating ESRI .prj files
# into WKT.
# Author: Frank Warmerdam, warmerda@hom... | agpl-3.0 | 5,904,335,104,487,606,000 | 33.811111 | 79 | 0.518034 | false |
tmimori/frappe | frappe/core/doctype/version/test_version.py | 5 | 1238 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest, copy
from frappe.test_runner import make_test_objects
from frappe.core.doctype.version.version import get_diff
class TestVersion(unittest.TestCase):
def test_g... | mit | 8,342,872,518,475,172,000 | 29.95 | 68 | 0.714055 | false |
abhikpal/p5py | p5/sketch/Vispy3DRenderer/renderer3d.py | 2 | 18575 | #
# Part of p5: A Python package based on Processing
# Copyright (C) 2017-2019 Abhik Pal
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) ... | gpl-3.0 | 4,180,973,658,776,923,000 | 40.004415 | 115 | 0.602746 | false |
akehrer/Motome | Motome/Models/NoteModel.py | 1 | 12624 | # Import the future
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
import datetime
import hashlib
import logging
import os
import re
import shutil
import zipfile
import yaml
from Motome.config import ZIP_EXTENSION, NOTE_EXTENSION, ENCODING, STATUS... | bsd-2-clause | -6,199,998,615,527,291,000 | 30.641604 | 112 | 0.563609 | false |
Palasekm/Kaira | ptp/gencpp/library.py | 1 | 4000 | #
# Copyright (C) 2011-2013 Stanislav Bohm
#
# This file is part of Kaira.
#
# Kaira 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, version 3 of the License, or
# (at your option) any later ... | gpl-3.0 | 4,152,980,764,537,781,000 | 35.363636 | 100 | 0.63975 | false |
fclesio/learning-space | Lightning Talk @Movile - ML with Scikit-Learn/Recipes/MeanShift.py | 1 | 1580 | # Mean Shift: http://scikit-learn.org/stable/auto_examples/cluster/plot_mean_shift.html#example-cluster-plot-mean-shift-py
print(__doc__)
import numpy as np
from sklearn.cluster import MeanShift, estimate_bandwidth
from sklearn.datasets.samples_generator import make_blobs
###########################################... | gpl-2.0 | 8,754,062,350,742,172,000 | 32.617021 | 122 | 0.613924 | false |
jean/python-docx | docx/table.py | 12 | 12846 | # encoding: utf-8
"""
The |Table| object and related proxy classes.
"""
from __future__ import absolute_import, print_function, unicode_literals
from .blkcntnr import BlockItemContainer
from .enum.style import WD_STYLE_TYPE
from .oxml.simpletypes import ST_Merge
from .shared import Inches, lazyproperty, Parented
c... | mit | 2,878,499,579,218,959,000 | 29.084309 | 77 | 0.580803 | false |
bradparks/sleepy-puppy | sleepypuppy/admin/collector/views.py | 14 | 1736 | # Copyright 2015 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | -4,639,319,426,775,609,000 | 28.931034 | 91 | 0.647465 | false |
ParticulateFlow/Palabos-PFM | scons/scons-local-2.1.0/SCons/Platform/os2.py | 21 | 2229 | """SCons.Platform.os2
Platform-specific initialization for OS/2 systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, ... | agpl-3.0 | -2,259,070,536,878,872,300 | 37.431034 | 101 | 0.688201 | false |
square/pants | src/python/pants/backend/jvm/tasks/dependencies.py | 2 | 2650 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (nested_scopes, generators, division, absolute_import, with_statement,
print_function, unicode_literals)
from twitter.common.... | apache-2.0 | -9,054,451,064,563,924,000 | 44.689655 | 95 | 0.687547 | false |
MOLSSI-BSE/basis_set_exchange | basis_set_exchange/tests/test_io.py | 1 | 1467 | """
Tests for the BSE IO functions
"""
# Most functionality is covered under other tests.
# This tests the remainder
import os
import pytest
from basis_set_exchange import fileio
from .common_testvars import data_dir
# yapf: disable
@pytest.mark.parametrize('file_path', ['cc-pVDZ.0.table.json',
... | bsd-3-clause | -4,701,419,985,538,448,000 | 33.928571 | 72 | 0.591002 | false |
pdufour/sqlalchemy | lib/sqlalchemy/orm/evaluator.py | 60 | 4731 | # orm/evaluator.py
# Copyright (C) 2005-2015 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import operator
from ..sql import operators
class UnevaluatableError(Exception):
... | mit | 5,330,966,826,542,995,000 | 34.30597 | 77 | 0.52547 | false |
oktayacikalin/pyglet | contrib/layout/layout/Plex/Regexps.py | 30 | 14714 | #=======================================================================
#
# Python Lexical Analyser
#
# Regular Expressions
#
#=======================================================================
import array
import string
import types
from sys import maxint
import Errors
#
# Constants
#
BOL = 'bol'
EOL = 'e... | bsd-3-clause | 6,290,813,638,652,691,000 | 25.416517 | 78 | 0.600992 | false |
HellerCommaA/flask-materialize | flask_material/__init__.py | 1 | 5756 | #!/usr/bin/env python
# coding=utf8
__app_version__ = '0.1.1'
__material_version__ = '0.96.1'
import re
from flask import Blueprint, current_app, url_for
try:
from wtforms.fields import HiddenField
except ImportError:
def is_hidden_field_filter(field):
raise RuntimeError('WTForms is not installed.')... | mit | -4,975,394,296,176,515,000 | 30.113514 | 77 | 0.597811 | false |
vigilv/scikit-learn | examples/ensemble/plot_adaboost_multiclass.py | 354 | 4124 | """
=====================================
Multi-class AdaBoosted Decision Trees
=====================================
This example reproduces Figure 1 of Zhu et al [1] and shows how boosting can
improve prediction accuracy on a multi-class problem. The classification
dataset is constructed by taking a ten-dimensional ... | bsd-3-clause | -8,093,113,599,890,014,000 | 33.366667 | 79 | 0.70902 | false |
tempredirect/zxing | cpp/scons/scons-local-2.0.0.final.0/SCons/Tool/rpm.py | 34 | 4547 | """SCons.Tool.rpm
Tool-specific initialization for rpm.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
The rpm tool calls the rpmbuild command. The first and only argument should a
tar.gz consisting of the sourc... | apache-2.0 | 7,945,234,544,382,445,000 | 33.44697 | 95 | 0.655377 | false |
elmar-peise/python-lsf | lsf/esub.py | 1 | 1740 | #!/usr/bin/env python
"""Wrapper script with bsub functionality."""
from __future__ import print_function
import sys
import os
import shlex
import argparse
from submitjob import submitjob
from utility import color
def esub(args, bsubargs, jobscript):
"""Wrapper script with bsub functionality."""
data = {"c... | mit | -2,572,507,810,473,125,000 | 23.166667 | 63 | 0.533333 | false |
isb-cgc/ISB-CGC-data-proc | tcga_etl_pipeline/clin_bio/metadata/parse_clinical_metadata.py | 1 | 2284 | import os
import sys
import re
import hashlib
import json
from cStringIO import StringIO
import pandas as pd
import logging
from HTMLParser import HTMLParser
import datetime
import os.path
from google.cloud import storage
from lxml import etree
from collections import Counter
#--------------------------------------
#... | apache-2.0 | -78,219,037,658,438,200 | 27.55 | 113 | 0.598074 | false |
dineshkummarc/gitak-1.0 | server/selenium-remote-control-1.0.3/selenium-python-client-driver-1.0.1/test_ajax_jsf.py | 6 | 1808 | """
Copyright 2006 ThoughtWorks, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | apache-2.0 | -188,990,976,717,883,300 | 32.5 | 113 | 0.707412 | false |
sergeykolychev/mxnet | example/rcnn/rcnn/symbol/symbol_resnet.py | 18 | 13105 | # 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 | -8,597,853,574,123,831,000 | 56.227074 | 133 | 0.658756 | false |
EricCline/CEM_inc | env/lib/python2.7/site-packages/django/test/utils.py | 78 | 11107 | import re
import warnings
from xml.dom.minidom import parseString, Node
from django.conf import settings, UserSettingsHolder
from django.core import mail
from django.http import request
from django.template import Template, loader, TemplateDoesNotExist
from django.template.loaders import cached
from django.test.signal... | mit | -2,012,828,789,071,019,500 | 31.667647 | 80 | 0.628342 | false |
brian-yang/mozillians | vendor-local/lib/python/tablib/packages/odf3/math.py | 56 | 1068 | # -*- coding: utf-8 -*-
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency
#
# This library 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 2.1 of the License, or (at you... | bsd-3-clause | -7,349,953,307,163,645,000 | 34.566667 | 80 | 0.748828 | false |
WizeCommerce/medusa | tests/test_client.py | 1 | 2745 | """
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the Li... | apache-2.0 | 1,817,480,890,144,201,200 | 42.571429 | 128 | 0.700911 | 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.