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 |
|---|---|---|---|---|---|---|---|---|---|---|
trivoldus28/pulsarch-verilog | tools/local/bas-release/bas,3.9/lib/riesling/ReadConfigDiag.py | 1 | 7933 | # ========== Copyright Header Begin ==========================================
#
# OpenSPARC T1 Processor File: ReadConfigDiag.py
# Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
#
# The above named program is free software; you can redistribute it and/or
#... | gpl-2.0 | -2,575,197,130,050,867,000 | 26.449827 | 130 | 0.607715 | false |
Mbrownshoes/ckanext-bcgov | ckanext/bcgov/scripts/save_orgs.py | 6 | 1656 | # Copyright 2015, Province of British Columbia
# License: https://github.com/bcgov/ckanext-bcgov/blob/master/license
import json
import urllib2
import urllib
import pprint
from base import (site_url, api_key)
org_filename = './data/orgs_list.json'
data_string = json.dumps({'all_fields' : True})
org_list = [... | agpl-3.0 | -2,526,254,688,868,610,600 | 27.067797 | 78 | 0.657609 | false |
surbas/dtwp-sfwporn | desktop_env.py | 1 | 3193 | from __future__ import division
import logging
import sys
import ctypes
import _winreg as winreg
logger = logging.getLogger(__name__)
class DesktopEnvironment(object):
def __init__(self):
self._ar = None
@staticmethod
def determin_desktop_env():
if sys.platform == 'win32':
... | bsd-3-clause | -1,233,598,089,527,114,200 | 31.927835 | 142 | 0.574695 | false |
andrewyoung1991/scons | test/scons-time/time/no-result.py | 5 | 2270 | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# 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, modify, merge, publish,
... | mit | -5,335,535,453,959,826,000 | 27.024691 | 73 | 0.696035 | false |
analyst-collective/dbt | test/integration/007_graph_selection_tests/test_graph_selection.py | 1 | 15454 | from test.integration.base import DBTIntegrationTest, use_profile
import yaml
import json
import os
class TestGraphSelection(DBTIntegrationTest):
@property
def schema(self):
return "graph_selection_tests_007"
@property
def models(self):
return "models"
@property
def selectors... | apache-2.0 | 5,779,511,921,140,154,000 | 37.73183 | 110 | 0.616992 | false |
tareqalayan/ansible | lib/ansible/modules/storage/purestorage/purefb_fs.py | 38 | 9813 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Simon Dodsley (simon@purestorage.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 | 1,289,447,438,950,408,400 | 30.86039 | 108 | 0.586671 | false |
thesgc/chembiohub_ws | chembl_business_model/models/experimentalData.py | 1 | 3525 | __author__ = 'mnowotka'
import chembl_core_model.models as core
#-----------------------------------------------------------------------------------------------------------------------
class RelationshipType(core.RelationshipType):
#haystack_index = ['relationship_type', 'relationship_desc']
api_exclude = [... | gpl-3.0 | 3,141,269,649,631,003,000 | 30.20354 | 120 | 0.396879 | false |
agostodev/substrate | app/lib/substrate/agar/config.py | 5 | 4572 | """
The ``agar.config`` module contains a class to help work with the `google.appengine.api.lib_config`_ configuration library.
"""
import threading
from google.appengine.api import lib_config
class Config(object):
"""
Configurable constants base class for use with the excellent `google.appengine.api.lib_con... | mit | -8,496,958,380,895,089,000 | 39.821429 | 140 | 0.632108 | false |
DanielSlater/PyGamePlayer | tests/test_pygame_player.py | 2 | 3064 | import time
import pygame
from unittest import TestCase
from pygame_player import PyGamePlayer
class DummyPyGamePlayer(PyGamePlayer):
def __init__(self, force_game_fps=10, run_real_time=False):
super(DummyPyGamePlayer, self).__init__(force_game_fps=force_game_fps, run_real_time=run_real_time)
def get... | mit | -3,096,659,898,672,910,000 | 32.67033 | 118 | 0.629896 | false |
huggingface/pytorch-transformers | tests/test_pipelines_table_question_answering.py | 2 | 11693 | # Copyright 2020 The HuggingFace Team. 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 applicabl... | apache-2.0 | 322,898,953,918,020,540 | 40.760714 | 121 | 0.549303 | false |
opencog/opencog | opencog/nlp/anaphora/agents/hobbs.py | 2 | 17858 |
from __future__ import print_function
from pprint import pprint
from opencog.cogserver import MindAgent
from opencog.atomspace import AtomSpace
from opencog.scheme_wrapper import load_scm, scheme_eval_h, scheme_eval, __init__
from opencog.type_constructors import TruthValue
from opencog.cogserver_type_constructors imp... | agpl-3.0 | 2,594,558,292,092,428,000 | 31.827206 | 201 | 0.595643 | false |
Lucas-Armand/genetic-algorithm | dev/4ºSemana/genetic teste.py | 1 | 16555 | # -*- coding: utf-8 -*-
import os
import csv
import random
import numpy as np
import time as Time
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from itertools import product, combinations
#m = np.array([[0,1,1,1,1,0,0,0,0,0,0],
# [0,0,0,0,0,.5,.5,0,0,0,0],
# [0,0,... | gpl-3.0 | 1,172,673,510,563,227,100 | 27.300855 | 412 | 0.428028 | false |
queria/my-tempest | tempest/api/identity/admin/v3/test_credentials.py | 2 | 4531 | # Copyright 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 requ... | apache-2.0 | -5,099,943,118,611,193,000 | 39.81982 | 78 | 0.598985 | false |
mantlepro/radcast | radcast/radcast.py | 1 | 8585 | #/usr/bin/env python2.7
# -*- coding: utf-8 -*-
"""radcast.py: main functionality of radcast"""
import os
import subprocess
import jinja2
import logging
from . import settings
from .utilities import slugify
__copyright__ = "Copyright 2017, Josh Wheeler"
__license__ = "GPL-3.0"
__status__ = "Development"
# radcas... | gpl-3.0 | -8,764,997,944,920,481,000 | 29.335689 | 83 | 0.558066 | false |
terrycojones/dark-matter | bin/fasta-base-indices.py | 3 | 2968 | #!/usr/bin/env python
from __future__ import print_function
import sys
import os
import argparse
from dark.reads import (
addFASTACommandLineOptions, parseFASTACommandLineOptions, unambiguousBases)
parser = argparse.ArgumentParser(
description=(
'Given FASTA on standard input, and bases to look for,... | mit | -3,157,371,626,060,144,600 | 39.108108 | 79 | 0.677898 | false |
MrSenko/Kiwi | tcms/kiwi_auth/tests/test_profiles.py | 2 | 1829 | # pylint: disable=invalid-name
# -*- coding: utf-8 -*-
from http import HTTPStatus
from django.http import HttpResponseForbidden
from django.urls import reverse
from tcms.tests import LoggedInTestCase, create_request_user, user_should_have_perm
class TestProfilesView(LoggedInTestCase):
"""Test the profiles vie... | gpl-2.0 | 4,518,893,693,998,045,000 | 36.326531 | 83 | 0.694369 | false |
gaocegege/treadmill | treadmill/zknamespace.py | 3 | 4317 | """Treadmill constants."""
import collections
import functools
ALLOCATIONS = '/allocations'
APPGROUPS = '/app-groups'
APPMONITORS = '/app-monitors'
ARCHIVE_CONFIG = '/archive/config'
BLACKEDOUT_APPS = '/blackedout.apps'
BLACKEDOUT_SERVERS = '/blackedout.servers'
BUCKETS = '/buckets'
CELL = '/cell'
ENDPOINTS = '/end... | apache-2.0 | 7,355,630,578,549,305,000 | 26.496815 | 74 | 0.683577 | false |
gkc1000/pyscf | pyscf/cc/test/test_uccsd.py | 1 | 31315 | #!/usr/bin/env python
# Copyright 2014-2020 The PySCF Developers. 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
#
# U... | apache-2.0 | 1,183,927,104,912,183,600 | 45.949025 | 102 | 0.594539 | false |
ujjwal96/mitmproxy | mitmproxy/utils/arg_check.py | 3 | 3972 | import sys
DEPRECATED = """
--confdir
-Z
--body-size-limit
--stream
--palette
--palette-transparent
--follow
--order
--no-mouse
--reverse
--http2-priority
--no-http2-priority
--no-websocket
--websocket
--spoof-source-address
--upstream-bind-address
--ciphers-client
--ciphers-server
--client-certs
--no-upstream-cert
--... | mit | 4,166,546,711,444,165,600 | 25.657718 | 92 | 0.568983 | false |
tomokinakamaru/perth | perth/perth.py | 1 | 1057 | # coding:utf-8
import copy
import threading
class Perth(object):
def __init__(self, seeds={}):
self.__dict__['_threadlocal'] = threading.local()
self.__dict__['_seeds'] = {}
self._seeds.update(seeds)
def get_seed(self, name):
return self._seeds[name]
def set_seed(self, n... | mit | -2,699,648,459,719,007,000 | 24.166667 | 64 | 0.543046 | false |
dbarenas/Katja-hop | web/rest-test6/tutorial/candidates/api/resources.py | 1 | 6098 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import patterns, url
from restless.dj import DjangoResource
from candidates.models import Candidate
from core.api.dj import DjangoAngularResource
from core.api.helpers import from_data_to_instance
from core.restless.preparers import... | gpl-2.0 | 7,765,768,127,108,530,000 | 44.514925 | 132 | 0.652181 | false |
bxshi/gem5 | src/mem/slicc/symbols/Action.py | 92 | 1911 | # Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
# Copyright (c) 2009 The Hewlett-Packard Development Company
# 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 co... | bsd-3-clause | -6,480,456,919,841,365,000 | 49.289474 | 72 | 0.770801 | false |
NarlikarLab/DIVERSITY | weblogoMod/corebio/db/astral.py | 2 | 12519 |
# Copyright 2000 by Jeffrey Chang. All rights reserved.
# Copyright 2001 by Gavin E. Crooks. All rights reserved.
# Modifications Copyright 2004/2005 James Casbon.
# Copyright 2005 by Regents of the University of California. All rights reserved
# (Major rewrite for conformance to corebio. Gavin Crooks)
#
# This c... | gpl-3.0 | 8,535,867,999,074,070,000 | 36.038462 | 321 | 0.596134 | false |
ppanczyk/ansible | lib/ansible/module_utils/basic.py | 7 | 112564 | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | gpl-3.0 | -3,413,303,107,129,768,400 | 38.510004 | 155 | 0.555195 | false |
OpenQbo/qbo_webi | src/teleoperation/sip2rtmp/p2p-sip/src/app/sipapi.py | 4 | 13614 | # Copyright (c) 2007-2009, Kundan Singh. All rights reserved. See LICENSING for details.
'''
High level application programming interface (API) to program SIP devices such as user agents and servers.
The language is derived from understanding of (1) CPL, (2) LESS, (3) SER, (3) VoiceXML?
TODO: Should the script file be... | gpl-2.0 | -1,225,310,935,278,797,300 | 51.972763 | 161 | 0.641839 | false |
pektin/jam | compiler/lekvar/stats.py | 2 | 1290 |
class Stats:
__attrs__ = ['static', 'forward']
static = False
forward = False
def __init__(self, parent):
if parent is not None:
if parent.stats.static_transitive:
self.static = parent.stats.static
if parent.stats.forward_transitive:
se... | mit | -1,975,081,410,591,634,200 | 31.25 | 86 | 0.633333 | false |
matmutant/sl4a | python/src/Lib/heapq.py | 49 | 15994 | # -*- coding: Latin-1 -*-
"""Heap queue algorithm (a.k.a. priority queue).
Heaps are arrays for which a[k] <= a[2*k+1] and a[k] <= a[2*k+2] for
all k, counting elements from 0. For the sake of comparison,
non-existing elements are considered to be infinite. The interesting
property of a heap is that a[0] is always ... | apache-2.0 | -498,115,952,297,014,000 | 39.697201 | 96 | 0.662686 | false |
IsCoolEntertainment/debpkg_libcloud | libcloud/test/compute/test_joyent.py | 2 | 4037 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | 2,047,282,844,915,494,700 | 36.37963 | 78 | 0.672777 | false |
soellman/copernicus | cpc/server/message/direct_message.py | 2 | 4260 | import json
import logging
from cpc.network.com.input import Input
from cpc.network.com.server_connection import ServerConnection
from cpc.network.server_request import ServerRequest
from cpc.util import json_serializer
from cpc.util.conf.server_conf import ServerConf
log=logging.getLogger(__name__)
class DirectServer... | gpl-2.0 | -6,072,598,728,848,552,000 | 32.28125 | 77 | 0.655164 | false |
jeasoft/odoo | comunity_modules/tko_partner_multiple_emails/res_partner.py | 3 | 5424 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# ThinkOpen Solutions Brasil
# Copyright (C) Thinkopen Solutions <http://www.tkobr.com>.
#
# This... | agpl-3.0 | 7,512,513,978,802,194,000 | 47.4375 | 126 | 0.520833 | false |
trabacus-softapps/openerp-8.0-cc | openerp/addons/base/res/res_config.py | 6 | 29051 | # -*- 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 | 715,615,663,369,446,500 | 42.751506 | 201 | 0.606038 | false |
littlstar/chromium.src | tools/perf/benchmarks/benchmark_unittest.py | 32 | 3513 | # 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.
"""Run the first page of every benchmark that has a composable measurement.
Ideally this test would be comprehensive, but the above serves as a
kind of smok... | bsd-3-clause | 4,207,061,898,930,261,500 | 34.846939 | 80 | 0.719898 | false |
rmak/splunk-sdk-python | examples/explorer/explorer.py | 1 | 1962 | #!/usr/bin/env python
#
# Copyright 2011 Splunk, 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 | -533,208,896,955,905,800 | 27.867647 | 87 | 0.620795 | false |
kaedroho/django | tests/apps/tests.py | 39 | 17269 | import os
from django.apps import AppConfig, apps
from django.apps.registry import Apps
from django.contrib.admin.models import LogEntry
from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
from django.db import models
from django.test import SimpleTestCase, override_settings
from django.test.u... | bsd-3-clause | 3,829,302,539,916,321,000 | 38.247727 | 111 | 0.614338 | false |
thinker0/aurproxy | tellapart/aurproxy/source/sources/static.py | 1 | 4061 | # Copyright 2015 TellApart, 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 writi... | apache-2.0 | -551,057,974,956,958,300 | 33.709402 | 83 | 0.602807 | false |
jaidevd/scikit-learn | examples/svm/plot_rbf_parameters.py | 26 | 8016 | '''
==================
RBF SVM parameters
==================
This example illustrates the effect of the parameters ``gamma`` and ``C`` of
the Radial Basis Function (RBF) kernel SVM.
Intuitively, the ``gamma`` parameter defines how far the influence of a single
training example reaches, with low values meaning 'far' a... | bsd-3-clause | -5,852,591,178,242,499,000 | 39.897959 | 80 | 0.70771 | false |
sajeeshcs/nested_quota_final | nova/spice/__init__.py | 72 | 1705 | #!/usr/bin/env python
# Copyright (c) 2012 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | apache-2.0 | -1,871,231,745,509,334,000 | 36.888889 | 79 | 0.618182 | false |
erikdejonge/business-rules | tests/test_engine_logic.py | 4 | 7550 | from business_rules import engine
from business_rules.variables import BaseVariables
from business_rules.operators import StringType
from business_rules.actions import BaseActions
from mock import patch, MagicMock
from . import TestCase
class EngineTests(TestCase):
###
### Run
###
@patch.object(eng... | mit | -1,828,487,822,967,401,700 | 37.717949 | 81 | 0.631788 | false |
llvm-mirror/lldb | packages/Python/lldbsuite/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py | 5 | 1564 | """
Test that ValueObjectPrinter does not cause an infinite loop when a reference to a struct that contains a pointer to itself is printed.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class DataFormatterRefPtrRecursionTestCa... | apache-2.0 | -718,413,751,005,785,300 | 37.146341 | 149 | 0.648338 | false |
howie6879/novels-search | owllook/spiders/zongheng_novel_info.py | 2 | 3729 | # -*- coding:utf-8 -*-
# !/usr/bin/env python
import asyncio
import time
from pprint import pprint
from ruia import Spider, Item, TextField, AttrField
from ruia_ua import middleware as ua_middleware
from owllook.database.mongodb import MotorBase
from owllook.spiders.middlewares import owl_middleware
try:
impor... | apache-2.0 | -3,188,035,711,750,168,600 | 29.228814 | 105 | 0.599383 | false |
jelmer/samba | buildtools/wafsamba/samba_headers.py | 11 | 6588 | # specialist handling of header files for Samba
import os, re, sys, fnmatch
import Build, Logs, Utils
from samba_utils import TO_LIST, os_path_relpath
def header_install_path(header, header_path):
'''find the installation path for a header, given a header_path option'''
if not header_path:
return ''
... | gpl-3.0 | -7,714,147,704,137,984,000 | 35.6 | 109 | 0.589405 | false |
scitran/data | scitran/data/test/test_data.py | 2 | 4582 | # @Author: Kevin S Hahn
"""Test nimsdata package."""
import os
import glob
import numpy as np
from nose.plugins.attrib import attr
from numpy.testing.decorators import skipif
from nose.tools import ok_, eq_, raises, assert_raises
import scitran.data as scidata
import scitran.data.tempdir as tempfile
# data is stor... | mit | -5,609,635,501,689,800,000 | 33.977099 | 112 | 0.672196 | false |
davebridges/Lab-Website | communication/feeds.py | 2 | 2184 | '''This package controls syndication for the :mod:communication, only for :class:`~communication.models.Post` objects.
The available feeds are as follows:
+--------------------+---------------------------+---------------------------------------------+
| Feed | Feed Location | Feed Class ... | mit | 1,394,260,057,340,244,700 | 37.315789 | 118 | 0.556319 | false |
znick/anytask | anytask/search/views.py | 1 | 7149 | # -*- coding: utf-8 -*-
import json
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseForbidden
from django.shortcuts import render
from haystack.query import SearchQuerySet
from courses.models import Course
from schools.models import School
from users.models... | mit | -7,859,395,769,213,018,000 | 37.435484 | 110 | 0.567492 | false |
mirkobronzi/ml-code | ml_code/tensorflow/models.py | 1 | 2072 | """
script containing some of the most used models.
"""
import tensorflow as tf
class Linear:
def __init__(self, input_dim, output_dim, l2_reg=None, description=None):
self.input_dim = input_dim
self.output_dim = output_dim
self.l2_reg = l2_reg
self.description = 'Linear (l2_reg:... | apache-2.0 | 5,692,412,360,373,031,000 | 33.533333 | 79 | 0.563224 | false |
7kbird/chrome | tools/telemetry/telemetry/core/platform/power_monitor/cros_power_monitor.py | 2 | 6206 | # 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 collections
import re
from telemetry import decorators
from telemetry.core.platform import cros_sysfs_platform
from telemetry.core.platform.power_mon... | bsd-3-clause | 3,648,558,497,403,812,400 | 35.940476 | 79 | 0.657106 | false |
SpectoLabs/hoverfly | docs/conf.py | 1 | 1924 | import sys
import os
import shlex
extensions = [
'sphinxcontrib.mermaid',
'sphinx.ext.extlinks',
'sphinx.ext.todo'
]
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'Hoverfly'
copyright = u'2017, SpectoLabs'
author = u'SpectoLabs'
version = 'v1.3.2'
# The full v... | apache-2.0 | 7,942,276,931,572,694,000 | 21.635294 | 98 | 0.617983 | false |
askdaddy/PerfKitBenchmarker | perfkitbenchmarker/benchmarks/bonnie_benchmark.py | 6 | 8167 | # Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | apache-2.0 | 708,635,107,849,070,700 | 28.59058 | 80 | 0.629362 | false |
luckielordie/conan | conans/test/util/xz_test.py | 2 | 3796 | import os
from unittest import TestCase
import six
import unittest
import tarfile
from conans.test.utils.test_files import temp_folder
from conans.tools import unzip, save
from conans.util.files import load, save_files
from conans.errors import ConanException
from conans.test.utils.tools import TestClient, TestServer
... | mit | -1,320,579,582,135,440,600 | 42.136364 | 92 | 0.594046 | false |
tuomas777/linkedevents | events/management/commands/event_export.py | 2 | 2390 | import os
from optparse import make_option
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.utils.translation import activate, get_language
from events.exporter.base import get_exporters
class Command(BaseCommand):
help = "Export event data"
expo... | bsd-3-clause | -4,868,746,838,007,228,000 | 37.548387 | 118 | 0.592469 | false |
ternaris/marv-robotics | code/marv/marv/app/__init__.py | 1 | 4497 | # Copyright 2016 - 2021 Ternaris.
# SPDX-License-Identifier: AGPL-3.0-only
import asyncio
import base64
import os
from collections import namedtuple
from logging import getLogger
from pathlib import Path
from aiohttp import web
from pkg_resources import resource_filename
from marv.collection import cached_property
... | agpl-3.0 | 2,227,634,308,673,547,800 | 35.560976 | 96 | 0.594619 | false |
rishirajsurti/BuildingMachineLearningSystemsWithPython | ch01/analyze_webstats.py | 23 | 5113 | # This code is supporting material for the book
# Building Machine Learning Systems with Python
# by Willi Richert and Luis Pedro Coelho
# published by PACKT Publishing
#
# It is made available under the MIT License
import os
from utils import DATA_DIR, CHART_DIR
import scipy as sp
import matplotlib.pyplot as plt
sp.... | mit | 2,744,561,174,527,055,000 | 30.757764 | 79 | 0.629963 | false |
sklearn-theano/sklearn-theano | sklearn_theano/externals/google/protobuf/pyext/cpp_message.py | 39 | 2828 | # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# https://developers.google.com/protocol-buffers/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redi... | bsd-3-clause | 1,104,740,423,133,969,700 | 42.507692 | 80 | 0.775813 | false |
Tiggels/opencog | tests/python/blending_test/new_atom_maker_test.py | 26 | 4699 | __author__ = 'DongMin Kim'
from opencog.atomspace import *
from test_conceptual_blending_base import TestConceptualBlendingBase
# Only run the unit tests if the required dependencies have been installed
# (see: https://github.com/opencog/opencog/issues/337)
try:
__import__("nose.tools")
except ImportError:
im... | agpl-3.0 | 7,538,982,936,700,073,000 | 30.326667 | 80 | 0.578634 | false |
alexander-rakhlin/CNN-for-Sentence-Classification-in-Keras | data_helpers.py | 1 | 4232 | import numpy as np
import re
import itertools
from collections import Counter
"""
Original taken from https://github.com/dennybritz/cnn-text-classification-tf
"""
def clean_str(string):
"""
Tokenization/string cleaning for all datasets except for SST.
Original taken from https://github.com/yoonkim/CNN_se... | mit | -5,858,940,968,319,273,000 | 34.864407 | 91 | 0.639178 | false |
twatteyne/dustlink_academy | SmartMeshSDK/HartMoteConnector/HartMoteConnectorInternal.py | 4 | 3250 |
from SmartMeshSDK.ApiDefinition import HartMoteDefinition
from SmartMeshSDK.SerialConnector import SerialConnector
class HartMoteConnectorInternal(SerialConnector.SerialConnector):
'''
\ingroup ApiConnector
\brief Internal class for HART mote connector, over Serial.
'''
def ... | bsd-3-clause | 8,547,815,820,284,076,000 | 31.183673 | 79 | 0.475385 | false |
RapidApplicationDevelopment/tensorflow | tensorflow/python/framework/tensor_util_test.py | 6 | 24676 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 1,541,813,174,414,003,000 | 34.866279 | 119 | 0.605892 | false |
MiNGRotten/Trivium | cli.py | 1 | 1923 | # Console interface
from trivium import Trivium
from encryptor import Encryptor
import argparse
class CLI:
def __init__(self):
self._trivium = None
self._input_string = None
self._output_string = None
self._key = None
self._iv = None
self._argument_parser = argparse... | mit | 8,659,041,294,777,556,000 | 33.339286 | 85 | 0.575143 | false |
savoirfairelinux/django | tests/aggregation_regress/tests.py | 10 | 59133 | import datetime
import pickle
from decimal import Decimal
from operator import attrgetter
from unittest import mock
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import FieldError
from django.db import connection
from django.db.models import (
Avg, Case, Count, DecimalField... | bsd-3-clause | -5,203,596,772,730,056,000 | 38.369507 | 116 | 0.558385 | false |
sabel83/metashell | 3rd/templight/libcxx/utils/libcxx/test/target_info.py | 1 | 10256 | #===----------------------------------------------------------------------===//
#
# The LLVM Compiler Infrastructure
#
# This file is dual licensed under the MIT and the University of Illinois Open
# Source Licenses. See LICENSE.TXT for details.
#
#===------------------------------------------------... | gpl-3.0 | 5,279,652,156,364,281,000 | 36.025271 | 79 | 0.580246 | false |
repotvsupertuga/tvsupertuga.repository | script.module.streamlink.base/resources/lib/streamlink/utils/isodate/isostrf.py | 1 | 9278 | ##############################################################################
# Copyright 2009, Gerhard Weis
# 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 ... | gpl-2.0 | 9,058,615,639,992,064,000 | 41.953704 | 78 | 0.546023 | false |
sl2017/campos | campos_sms/models/sms_confirmed_number.py | 1 | 4752 | # -*- coding: utf-8 -*-
from openerp import models, fields, api, exceptions, _
import string, random
SMS_CONFIRM_MAX_TRIES = 3
SMS_CONFIRM_CODE_LENGTH = 6
class SmsConfirmedNumber(models.Model):
_name = 'sms.confirmed_number'
user_id = fields.Many2one('res.users', string='User', readonly=True)
number = ... | agpl-3.0 | -5,940,723,224,474,992,000 | 43 | 186 | 0.615951 | false |
ken-muturi/pombola | pombola/interests_register/admin.py | 4 | 1060 | from django.contrib import admin
from . import models
from pombola.slug_helpers.admin import StricterSlugFieldMixin
class CategoryAdmin(StricterSlugFieldMixin, admin.ModelAdmin):
prepopulated_fields = {"slug": ["name"]}
list_display = ['slug', 'name', 'sort_order']
search_fields = ['name']
class Relea... | agpl-3.0 | -7,271,131,099,272,014,000 | 27.648649 | 72 | 0.69717 | false |
joehakimrahme/thawra | thawra/action.py | 1 | 1614 | # 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 t... | apache-2.0 | -2,315,298,181,632,022,500 | 25.459016 | 75 | 0.607807 | false |
fibbo/DIRAC | StorageManagementSystem/scripts/dirac-stager-monitor-file.py | 11 | 5430 | #! /usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-stager-monitor-file
# Author : Daniela Remenska
########################################################################
"""
-gives monitoring information regarding a staging file uniquely iden... | gpl-3.0 | -866,084,695,327,064,400 | 52.235294 | 152 | 0.51547 | false |
marco-c/pluotsorbet | tests/runtests.py | 4 | 4918 | #!/usr/bin/env python
import os
import select
import socket
import subprocess
import sys
import time
import platform
(system, node, release, version, machine, processor) = platform.uname()
httpsServer = ['node', 'httpsServer.js']
sslEchoServer = ['node', 'sslEchoServer.js']
if system == "Darwin":
httpsServer = '.... | gpl-2.0 | 2,934,052,381,832,252,400 | 34.381295 | 116 | 0.687271 | false |
miltonruelas/cursotecnico | branch/account_move_template/account_document_template.py | 3 | 4267 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
#
# This program is free software: you can redistribute it and/or ... | agpl-3.0 | -9,197,199,709,438,660,000 | 40.028846 | 108 | 0.598781 | false |
araichev/make_gtfs | make_gtfs/cli.py | 1 | 1577 | """
The command-line-interface module.
"""
import click
import gtfs_kit as gk
from . import protofeed as pf
from . import constants as cs
from . import main as m
@click.command(short_help="Create a GTFS feed from simpler files")
@click.argument("source_path", type=click.Path())
@click.argument("target_path", type=cl... | mit | 3,882,843,729,302,898,700 | 30.54 | 85 | 0.693722 | false |
thaim/ansible | lib/ansible/module_utils/database.py | 13 | 5936 | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | mit | 9,138,396,885,790,706,000 | 40.802817 | 134 | 0.658019 | false |
kkdang/synapsePythonClient | synapseclient/cache.py | 1 | 11025 | # Note: Even though this has Sphinx format, this is not meant to be part of the public docs
"""
************
File Caching
************
Implements a cache on local disk for Synapse file entities and other objects
with a `FileHandle <https://rest.synapse.org/org/sagebionetworks/repo/model/file/FileHandle.html>`_.
This ... | apache-2.0 | 3,364,944,807,029,795,300 | 37.148789 | 162 | 0.609161 | false |
mansonul/events | events/contrib/plugins/form_elements/fields/regex/base.py | 1 | 1508 | from __future__ import absolute_import
from django.forms.fields import RegexField
from django.forms.widgets import TextInput
from django.utils.translation import ugettext_lazy as _
from fobi.base import FormFieldPlugin, get_theme
from . import UID
from .forms import RegexInputForm
__title__ = 'fobi.contrib.plugins.... | mit | -6,803,810,622,282,764,000 | 29.77551 | 70 | 0.626658 | false |
viralpandey/kivy | examples/canvas/bezier.py | 30 | 3688 | #!/usr/bin/env python
'''
Bezier Example
==============
This example shows a closed Bezier curve computed from a polygon. You
should see a purple polygon, a red bezier curve computed from the polygon,
and two sliders. You can drag points on the polygon to recompute the curve.
The two sliders control the dash length of... | mit | -536,426,628,712,736,600 | 33.792453 | 77 | 0.547993 | false |
t3dev/odoo | doc/_extensions/autojsdoc/parser/tests/test_crap.py | 33 | 2124 | # -*- coding: utf-8 -*-
"""
Test various crap patterns found in Odoo code to ensure they don't blow up
the parser thingie
"""
from autojsdoc.parser import jsdoc
from support import parse
def test_export_external():
[mod] = parse("""
odoo.define('module', function () {
return $.Deferred().reject();
... | gpl-3.0 | -4,738,835,734,835,197,000 | 27.32 | 96 | 0.556026 | false |
ZLLab-Mooc/edx-platform | lms/djangoapps/verify_student/tests/test_ssencrypt.py | 63 | 3638 | import base64
from nose.tools import assert_equals
from lms.djangoapps.verify_student.ssencrypt import (
aes_decrypt, aes_encrypt, encrypt_and_encode, decode_and_decrypt,
rsa_decrypt, rsa_encrypt
)
def test_aes():
key_str = "32fe72aaf2abb44de9e161131b5435c8d37cbdb6f5df242ae860b283115f2dae"
key = key_... | agpl-3.0 | -8,612,998,956,430,498,000 | 45.050633 | 84 | 0.824079 | false |
evilhero/mylar | lib/cherrypy/test/test_request_obj.py | 6 | 31327 | """Basic tests for the cherrypy.Request object."""
import os
localDir = os.path.dirname(__file__)
import sys
import types
from cherrypy._cpcompat import IncompleteRead, ntob, unicodestr
import cherrypy
from cherrypy import _cptools, tools
from cherrypy.lib import httputil
defined_http_methods = ("OPTIONS", "GET", "H... | gpl-3.0 | 3,029,887,268,917,854,700 | 42.389197 | 114 | 0.542599 | false |
freedesktop-unofficial-mirror/packagekit | backends/conary/conaryBackend.py | 6 | 17671 | #!/usr/bin/python
# Licensed under the GNU General Public License Version 2
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later ver... | gpl-2.0 | 2,910,521,279,346,639,000 | 35.738046 | 93 | 0.608285 | false |
emrah-b/oclapi | django-nonrel/ocl/concepts/search_indexes.py | 4 | 2823 | from django.contrib.contenttypes.models import ContentType
from haystack import indexes
from concepts.models import ConceptVersion
from oclapi.search_backends import SortOrFilterField, FilterField
from oclapi.search_indexes import OCLSearchIndex
from sources.models import SourceVersion, Source
__author__ = 'misternand... | mpl-2.0 | 3,141,436,831,198,775,300 | 39.913043 | 101 | 0.684378 | false |
mbayon/TFG-MachineLearning | vbig/lib/python2.7/site-packages/scipy/io/netcdf.py | 6 | 37683 | """
NetCDF reader/writer module.
This module is used to read and create NetCDF files. NetCDF files are
accessed through the `netcdf_file` object. Data written to and from NetCDF
files are contained in `netcdf_variable` objects. Attributes are given
as member variables of the `netcdf_file` and `netcdf_variable` objects... | mit | 781,949,127,952,069,200 | 34.922784 | 107 | 0.572274 | false |
dubourg/openturns | python/doc/pyplots/StationaryCovarianceModelFactory.py | 1 | 1141 | import openturns as ot
from math import exp
from matplotlib import pyplot as plt
from openturns.viewer import View
N = 512
a = 20.0
# myMesh = ot.IntervalMesher([N]).build(ot.Interval(-a, a))
myMesh = ot.RegularGrid(0.0, 2 * a / N, N + 1)
covarianceModel = ot.ExponentialModel(1, [1.0], [1.0])
myProcess = ot.Temporal... | gpl-3.0 | 4,922,804,402,480,347,000 | 24.355556 | 69 | 0.696757 | false |
SnappleCap/oh-mainline | vendor/packages/scrapy/scrapy/tests/test_utils_url.py | 16 | 9226 | import unittest
from scrapy.spider import BaseSpider
from scrapy.utils.url import url_is_from_any_domain, url_is_from_spider, canonicalize_url
__doctests__ = ['scrapy.utils.url']
class UrlUtilsTest(unittest.TestCase):
def test_url_is_from_any_domain(self):
url = 'http://www.wheele-bin-art.co.uk/get/produ... | agpl-3.0 | 615,387,961,333,769,100 | 60.506667 | 150 | 0.593432 | false |
justzx2011/openyoudao | webshot.py | 4 | 2356 | #!/usr/bin/python
#-*- coding: utf-8 -*-
import sys
import gl
import os
import gtk
import time
import webkit
class OutputView(webkit.WebView):
'''a class that represents the output widget of a conversation
'''
def __init__(self):
webkit.WebView.__init__(self)
self.load_finish_flag = False
... | mit | -2,980,305,795,906,689,000 | 34.044776 | 82 | 0.611158 | false |
Conchylicultor/MusicGenerator | deepmusic/modules/encoder.py | 1 | 4503 | # Copyright 2016 Conchylicultor. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | 3,511,202,845,000,962,000 | 26.796296 | 90 | 0.594048 | false |
bablokb/nerd-alarmclock | files/usr/local/lib/python2.7/site-packages/nclock/WebThread.py | 1 | 1143 | # --------------------------------------------------------------------------
# Class definition of WebThread - this thread controls the REST API
#
# Author: Benjamin Fuchs
# License: GPL3
#
# Website: https://github.com/bablokb/nerd-alarmclock
#
# ------------------------------------------------------------------------... | gpl-3.0 | 1,997,278,657,393,778,700 | 29.078947 | 76 | 0.528434 | false |
vulcansteel/autorest | AutoRest/Generators/Python/Python.Tests/Expected/AcceptanceTests/Url/auto_rest_url_test_service/operations/paths.py | 1 | 35282 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | 1,577,192,287,403,550,500 | 36.748927 | 108 | 0.617333 | false |
nburn42/tensorflow | tensorflow/contrib/meta_graph_transform/meta_graph_transform.py | 14 | 31627 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -7,278,445,487,876,727,000 | 40.020752 | 80 | 0.693932 | false |
lbt/boss-launcher-webhook | src/webhook_launcher/app/urls.py | 1 | 1945 | # Copyright (C) 2013 Jolla Ltd.
# Contact: Islam Amer <islam.amer@jollamobile.com>
# All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or... | gpl-2.0 | 795,231,168,162,221,300 | 44.232558 | 98 | 0.730077 | false |
silenceli/nova | nova/tests/unit/api/openstack/compute/test_v3_auth.py | 11 | 2609 | # Copyright 2013 IBM Corp.
# Copyright 2010 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/LIC... | apache-2.0 | 7,899,064,966,411,528,000 | 41.080645 | 78 | 0.672288 | false |
sysadminmatmoz/odoo-clearcorp | TODO-7.0/mrp_production_sequence/__init__.py | 4 | 1061 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Addons modules by CLEARCORP S.A.
# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
#
# This program is free software: you can redistribute... | agpl-3.0 | -4,752,057,140,196,866,000 | 47.227273 | 78 | 0.611687 | false |
Abi1ity/uniclust2.0 | SQLAlchemy-0.9.9/setup.py | 1 | 5627 | """setup.py
Please see README for basic installation instructions.
"""
import os
import re
import sys
from distutils.command.build_ext import build_ext
from distutils.errors import (CCompilerError, DistutilsExecError,
DistutilsPlatformError)
has_feature = False
try:
from setuptools... | bsd-3-clause | -5,437,259,516,930,550,000 | 29.252688 | 87 | 0.582548 | false |
asm-products/pipfix | server/documents.py | 1 | 1618 | from mongoengine import *
from mongoengine.django import auth
import binascii
import os
class Vote(Document):
stuff = ReferenceField('Stuff')
pips = IntField(min_value=1, max_value=10)
user = ReferenceField('User', unique_with='stuff')
comment = StringField(max_length=256)
@property
def userna... | agpl-3.0 | -2,160,260,970,359,436,300 | 28.436364 | 88 | 0.668727 | false |
DerKastellan/challenge-tables | src/create.py | 1 | 1510 | #!/usr/bin/env python3
from parser import parseTables
from tables import ChallengeTable
from output import createHtml, createPdf
import sys
def parseArgs():
def convertPartyString(x):
# "5 3 3 2" => [5, 3, 3, 2]
return list(map(int, x.strip().split(" ")))
if len(sys.argv) < 3:
raise V... | mit | 4,030,577,365,514,959,000 | 29.2 | 90 | 0.617881 | false |
akshaynathr/mailman | src/mailman/app/subscriptions.py | 2 | 8324 | # Copyright (C) 2009-2012 by the Free Software Foundation, Inc.
#
# This file is part of GNU Mailman.
#
# GNU Mailman 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 | -2,461,463,910,961,409,500 | 39.407767 | 78 | 0.632028 | false |
lukecwik/incubator-beam | sdks/python/apache_beam/io/gcp/gcsio_test.py | 1 | 25627 | #
# 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,708,740,197,695,834,400 | 33.30656 | 82 | 0.650174 | false |
Alexx99/sdk | tests/sync_test.py | 15 | 15085 | """
Base class for testing syncing algorithm
(c) 2013-2014 by Mega Limited, Wellsford, New Zealand
This file is part of the MEGA SDK - Client Access Engine.
Applications using the MEGA API must present a valid application key
and comply with the the rules set forth in the Terms of Service.
The MEGA SDK is dis... | bsd-2-clause | -3,583,841,420,878,914,000 | 38.697368 | 150 | 0.641896 | false |
Rosebotics/cwc-projects | lego-ev3/sandbox/m1/mqtt/m3_ev3_led_button_communication.py | 1 | 6980 | #!/usr/bin/env python3
"""
The goal of this module is to practice doing MQTT communication. In this module you will only write code that runs on
the EV3. The code that runs on the PC (m3_pc_led_button_communication.py) is already written for you. You will need to
implement this module, run it on your EV3, then at th... | gpl-3.0 | -5,162,708,662,583,122,000 | 43.177215 | 120 | 0.625072 | false |
havard024/prego | venv/lib/python2.7/site-packages/captcha/tests/tests.py | 2 | 13903 | # -*- coding: utf-8 -*-
from captcha.conf import settings
from captcha.fields import CaptchaField, CaptchaTextInput
from captcha.models import CaptchaStore, get_safe_now
from django.conf import settings as django_settings
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import rever... | mit | -1,954,035,191,427,403,300 | 48.127208 | 162 | 0.644825 | false |
jaredkoontz/leetcode | Python/game-of-life.py | 3 | 2517 | # Time: O(m * n)
# Space: O(1)
# According to the Wikipedia's article:
# "The Game of Life, also known simply as Life,
# is a cellular automaton devised by the British
# mathematician John Horton Conway in 1970."
#
# Given a board with m by n cells, each cell has
# an initial state live (1) or dead (0).
# Each c... | mit | 1,793,339,145,262,793,700 | 38.328125 | 76 | 0.604688 | false |
drnextgis/QGIS | python/pyplugin_installer/qgsplugininstallerfetchingdialog.py | 10 | 3439 | # -*- coding:utf-8 -*-
"""
/***************************************************************************
qgsplugininstallerfetchingdialog.py
Plugin Installer module
-------------------
Date : June 2013
Copyright ... | gpl-2.0 | -5,484,864,912,772,397,000 | 44.25 | 248 | 0.500436 | false |
yaqiyang/autorest | src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/auto_rest_resource_flattening_test_service.py | 3 | 16476 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -2,322,840,037,443,468,300 | 41.354756 | 188 | 0.664482 | false |
jonnary/keystone | keystone/tests/unit/ksfixtures/database.py | 4 | 3676 | # 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... | apache-2.0 | 8,122,989,756,085,790,000 | 34.009524 | 78 | 0.684168 | 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.