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 |
|---|---|---|---|---|---|---|---|---|---|---|
Paczesiowa/youtube-dl | youtube_dl/extractor/anysex.py | 224 | 2085 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
parse_duration,
int_or_none,
)
class AnySexIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?anysex\.com/(?P<id>\d+)'
_TEST = {
'url': 'http://anysex.com/156592/',
'md5': '023... | unlicense | 7,519,084,201,426,926,000 | 33.180328 | 105 | 0.524221 | false |
mateor/pants | src/python/pants/build_graph/intermediate_target_factory.py | 5 | 2572 | # coding=utf-8
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from hashlib import ... | apache-2.0 | -2,833,399,520,225,143,300 | 33.293333 | 100 | 0.692068 | false |
hrayr-artunyan/shuup | shuup_tests/core/test_settings.py | 2 | 1185 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, 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.
import pytest
from django.apps import apps
from django.test import override_... | agpl-3.0 | -793,700,769,298,031,600 | 34.909091 | 68 | 0.668354 | false |
cc13ny/Allin | lintcode/234-000-Palindrome-Linked-List/PalindromeLinkedList.py | 5 | 1381 | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
# @param head, a ListNode
# @return a boolean
def isPalindrome(self, head):
# Write your code here
if head is None:
return True
s... | mit | -5,431,991,203,789,105,000 | 23.245614 | 51 | 0.457639 | false |
ovnicraft/edx-platform | common/djangoapps/util/model_utils.py | 37 | 6903 | """
Utilities for django models.
"""
import unicodedata
import re
from eventtracking import tracker
from django.conf import settings
from django.utils.encoding import force_unicode
from django.utils.safestring import mark_safe
from django_countries.fields import Country
# The setting name used for events when "sett... | agpl-3.0 | -2,489,783,782,275,083,000 | 36.516304 | 130 | 0.665942 | false |
alexcuellar/odoo | openerp/http.py | 19 | 61695 | # -*- coding: utf-8 -*-
#----------------------------------------------------------
# OpenERP HTTP layer
#----------------------------------------------------------
import ast
import collections
import contextlib
import datetime
import errno
import functools
import getpass
import inspect
import logging
import mimetypes... | agpl-3.0 | 1,088,446,683,570,398,500 | 36.989532 | 178 | 0.579885 | false |
BizzCloud/PosBox | addons/website_certification/__init__.py | 385 | 1030 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | agpl-3.0 | 2,271,993,255,785,563,000 | 43.782609 | 78 | 0.613592 | false |
Xion/taipan | taipan/testing/asserts.py | 1 | 7587 | """
Additional asserts to supplement the :class:`TestCase` class.
"""
from taipan._compat import imap
from taipan.collections import is_countable, is_iterable
from taipan.lang import ABSENT
from taipan.strings import BaseString, is_string
__all__ = ['AssertsMixin']
class AssertsMixin(object):
"""Mixin providing... | bsd-2-clause | 1,094,696,523,105,111,400 | 34.619718 | 79 | 0.564123 | false |
subutai/nupic.research | projects/transformers/experiments/wide_bert.py | 2 | 8260 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2021, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | agpl-3.0 | -3,579,024,333,576,733,000 | 36.040359 | 111 | 0.676271 | false |
ktosiek/spacewalk | backend/server/basePackageUpload.py | 2 | 4302 | #
# Copyright (c) 2008--2011 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | gpl-2.0 | -4,199,926,521,573,691,000 | 42.02 | 113 | 0.613436 | false |
Tagar/incubator-airflow | airflow/operators/presto_check_operator.py | 5 | 4689 | # -*- coding: utf-8 -*-
#
# 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
#... | apache-2.0 | -5,562,794,386,148,413,000 | 36.214286 | 101 | 0.679676 | false |
nkoech/csacompendium | csacompendium/csa_practice/api/csapractice/csapracticeserializers.py | 1 | 5084 | from csacompendium.csa_practice.models import (
CsaPractice,
CsaTheme,
PracticeLevel,
PracticeType,
)
from csacompendium.utils.hyperlinkedidentity import hyperlinked_identity
from csacompendium.utils.serializersutils import (
FieldMethodSerializer,
get_related_content,
get_related_content_ur... | mit | 3,735,501,594,881,140,000 | 32.012987 | 97 | 0.594217 | false |
jkorell/PTVS | Python/Tests/TestData/DjangoProject/settings.py | 18 | 5380 | # Django settings for DjangoApplication1 project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
from os import environ, path
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2',... | apache-2.0 | -5,074,945,537,864,534,000 | 34.107383 | 145 | 0.666171 | false |
JavierGarciaD/athena | athena/testcases/performance_test.py | 1 | 2286 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# testcases.performance_test.py
'''
@since: 2014-11-25
@author: Javier Garcia
@contact: javier.garcia@bskapital.com
@summary: Tests for the performance module
'''
import unittest
import pandas as pd
import numpy as np
from performance import performance
import ma... | gpl-3.0 | -5,878,308,142,893,864,000 | 28.078947 | 72 | 0.560367 | false |
jnishi/chainer | tests/chainer_tests/test_computational_graph.py | 10 | 8849 | import unittest
import numpy as np
import six
from chainer import computational_graph as c
from chainer import function
from chainer import testing
from chainer import variable
class MockFunction(function.Function):
def __init__(self, n_in, n_out):
self.n_in = n_in
self.n_out = n_out
def f... | mit | 1,257,737,155,455,849,700 | 30.268551 | 79 | 0.577918 | false |
ceb8/astroquery | astroquery/esa/xmm_newton/tests/dummy_handler.py | 2 | 2055 | """
@author: Elena Colomo
@contact: ecolomo@esa.int
European Space Astronomy Centre (ESAC)
European Space Agency (ESA)
Created on 4 Sept. 2019
"""
__all__ = ['DummyHandler']
class DummyHandler:
def __init__(self, method, parameters):
self._invokedMethod = method
self._parameters = parameters... | bsd-3-clause | 7,806,905,027,502,504,000 | 33.25 | 76 | 0.475912 | false |
nkmk/python-snippets | notebook/numpy_matrix_eig.py | 1 | 1301 | import numpy as np
arr = np.array([[8, 1], [4, 5]])
w, v = np.linalg.eig(arr)
print(w)
# [9. 4.]
print(v)
# [[ 0.70710678 -0.24253563]
# [ 0.70710678 0.9701425 ]]
print('value: ', w[0])
print('vector: ', v[:, 0] / v[0, 0])
# value: 9.0
# vector: [1. 1.]
print(w[np.argmax(w)])
print(v[:, np.argmax(w)])
# 9.0
#... | mit | -5,844,875,782,449,135,000 | 21.431034 | 61 | 0.551115 | false |
analyseuc3m/ANALYSE-v1 | lms/djangoapps/mobile_api/course_info/tests.py | 3 | 8039 | """
Tests for course_info
"""
import ddt
from django.conf import settings
from xmodule.html_module import CourseInfoModule
from xmodule.modulestore import ModuleStoreEnum
from xmodule.modulestore.django import modulestore
from xmodule.modulestore.xml_importer import import_course_from_xml
from milestones.tests.utils... | agpl-3.0 | -6,332,366,954,552,227,000 | 43.414365 | 118 | 0.635402 | false |
toanalien/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/tool/commands/queues_unittest.py | 115 | 26224 | # Copyright (C) 2009 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | -4,067,243,950,495,808,000 | 50.419608 | 288 | 0.705575 | false |
Anvil/maestro-ng | maestro/guestutils.py | 4 | 4570 | # Copyright (C) 2013-2014 SignalFuse, Inc.
# Copyright (C) 2015 SignalFx, Inc.
#
# Utility functions for service start scripts that help work with Maestro
# orchestration.
import netifaces
import os
import re
class MaestroEnvironmentError(Exception):
pass
def get_environment_name():
"""Return the name of t... | apache-2.0 | 7,679,179,251,383,877,000 | 33.104478 | 79 | 0.623851 | false |
ojengwa/sympy | doc/ext/sympylive.py | 104 | 1289 | """
sympylive
~~~~~~~~~
Allow `SymPy Live <http://live.sympy.org/>`_ to be used for interactive
evaluation of SymPy's code examples.
:copyright: Copyright 2014 by the SymPy Development Team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
def builder_inited(app):
if not app.conf... | bsd-3-clause | 8,032,916,649,258,318,000 | 36.911765 | 79 | 0.663305 | false |
v0i0/lammps | tools/i-pi/ipi/inputs/outputs.py | 41 | 14724 | """Deals with creating the output objects.
Copyright (C) 2013, Joshua More and Michele Ceriotti
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) a... | gpl-2.0 | -2,526,422,805,062,677,500 | 44.585139 | 292 | 0.654781 | false |
ElJulio/SoftI2C | I2C.py | 1 | 3915 | #!/usr/bin/python
#Soft implementation of an i2c Master
import time
import RPi.GPIO as GPIO
class i2cMaster:
int_clk = -1
SDA = 17 #default sda
SCL = 27 #default scl
def tick(self,anz):
time.sleep(anz*self.int_clk)
def init(self,bitrate,SDAPIN,SCLPIN):
if(SDAPIN != SCLPIN):
... | gpl-3.0 | 2,776,426,450,710,796,300 | 25.452703 | 73 | 0.499617 | false |
mszewczy/odoo | addons/product/_common.py | 316 | 1448 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | 1,176,355,872,446,835,000 | 44.25 | 96 | 0.638812 | false |
mekanix/api | onelove/api/__init__.py | 5 | 1054 | from flask import render_template
from flask_rest_api import Api
class MyApi(Api):
def _openapi_swagger_ui(self):
return render_template('swaggerui.html', title=self._app.name)
def register_blueprints(app, prefix, blueprints):
for blueprint in blueprints:
app.api.register_blueprint(
... | gpl-3.0 | 4,306,858,911,774,967,300 | 23.511628 | 70 | 0.586338 | false |
bwrsandman/openerp-hr | hr_labour_union/__openerp__.py | 1 | 1550 | #-*- coding:utf-8 -*-
#
#
# Copyright (C) 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, eith... | agpl-3.0 | -1,346,258,583,788,490,200 | 28.807692 | 90 | 0.636129 | false |
alex/warehouse | warehouse/config.py | 1 | 16992 | # 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 | -765,039,126,630,285,800 | 35.541935 | 79 | 0.666431 | false |
TinLe/Diamond | src/collectors/example/test/testexample.py | 38 | 1240 | #!/usr/bin/python
# coding=utf-8
################################################################################
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from mock import patch
from diamond.collector import Collector
from example import ExampleCollector
####... | mit | -427,030,228,509,175,940 | 28.52381 | 80 | 0.512903 | false |
TheTimmy/spack | var/spack/repos/builtin/packages/gradle/package.py | 3 | 4173 | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 7,098,521,624,557,733,000 | 49.277108 | 78 | 0.699497 | false |
onecloud/neutron | neutron/plugins/nec/packet_filter.py | 8 | 11671 | # Copyright 2012-2013 NEC Corporation. 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,868,332,240,366,433,000 | 44.589844 | 79 | 0.559849 | false |
tjanez/ansible | lib/ansible/modules/system/gluster_volume.py | 14 | 17007 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Taneli Leppä <taneli@crasman.fi>
#
# This file is part of Ansible (sort of)
#
# 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 o... | gpl-3.0 | 268,667,129,152,376,500 | 30.144689 | 132 | 0.584064 | false |
bryantrobbins/baseball | shared/btr3baseball/JobRepository.py | 1 | 1924 | import boto3
import uuid
from boto3.dynamodb.conditions import Key, Attr
from botocore.exceptions import ClientError
class JobRepository:
def __init__(self, jobTable):
self.table = boto3.resource('dynamodb').Table(jobTable)
def getJob(self, jobId):
try:
response = self.tabl... | apache-2.0 | -9,174,109,684,646,004,000 | 25.356164 | 63 | 0.487526 | false |
kevclarx/ansible | lib/ansible/modules/database/mysql/mysql_db.py | 43 | 15371 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, Mark Theunissen <mark.theunissen@gmail.com>
# Sponsored by Four Kitchens http://fourkitchens.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 publishe... | gpl-3.0 | -4,922,635,064,893,275,000 | 35.684964 | 150 | 0.575434 | false |
adaussy/eclipse-monkey-revival | plugins/python/org.eclipse.eclipsemonkey.lang.python/Lib/base64.py | 229 | 11357 | #! /usr/bin/env python
"""RFC 3548: Base16, Base32, Base64 Data Encodings"""
# Modified 04-Oct-1995 by Jack Jansen to use binascii module
# Modified 30-Dec-2003 by Barry Warsaw to add full RFC 3548 support
import re
import struct
import binascii
__all__ = [
# Legacy interface exports traditional RFC 1521 Base6... | epl-1.0 | -2,498,229,678,653,140,000 | 30.115068 | 78 | 0.595844 | false |
wetneb/django | tests/urlpatterns_reverse/urls.py | 12 | 4424 | import warnings
from django.conf.urls import include, patterns, url
from django.utils.deprecation import RemovedInDjango20Warning
from .views import (
absolute_kwargs_view, defaults_view, empty_view, empty_view_partial,
empty_view_wrapped, nested_view,
)
other_patterns = [
url(r'non_path_include/$', empt... | bsd-3-clause | -2,008,300,786,142,128,400 | 53.617284 | 112 | 0.57075 | false |
mnahm5/django-estore | Lib/site-packages/troposphere/awslambda.py | 2 | 4948 | from . import AWSObject, AWSProperty, Join
from .validators import positive_integer
MEMORY_VALUES = [x for x in range(128, 1600, 64)]
def validate_memory_size(memory_value):
""" Validate memory size for Lambda Function
:param memory_value: The memory size specified in the Function
:return: The provided m... | mit | 6,056,933,677,709,714,000 | 30.119497 | 79 | 0.57882 | false |
run2/citytour | 4symantec/Lib/site-packages/numpy-1.9.2-py2.7-win-amd64.egg/numpy/distutils/misc_util.py | 40 | 80374 | from __future__ import division, absolute_import, print_function
import os
import re
import sys
import imp
import copy
import glob
import atexit
import tempfile
import subprocess
import shutil
import distutils
from distutils.errors import DistutilsError
try:
set
except NameError:
from sets import Set as set
... | mit | 2,391,825,611,988,665,000 | 34.391458 | 102 | 0.539192 | false |
scottcunningham/ansible | test/units/mock/loader.py | 50 | 2876 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@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 the License, or
# (at your option) an... | gpl-3.0 | -8,585,134,245,404,426,000 | 30.955556 | 76 | 0.648818 | false |
LUTAN/tensorflow | tensorflow/contrib/cloud/python/ops/bigquery_reader_ops_test.py | 26 | 9667 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 5,047,214,018,144,885,000 | 31.880952 | 80 | 0.629978 | false |
legnaleurc/kczzz | util.sikuli/util.py | 1 | 1841 | """
Copyright (c) 2013 Wei-Cheng Pan <legnaleurc@gmail.com>
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... | mit | -8,536,834,976,259,356,000 | 33.092593 | 87 | 0.700706 | false |
kirangonella/BuildingMachineLearningSystemsWithPython | ch02/figure1.py | 22 | 1199 | # 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
from matplotlib import pyplot as plt
# We load the data with load_iris from sklearn
from sklearn.datas... | mit | -8,598,638,947,358,599,000 | 27.547619 | 57 | 0.636364 | false |
takeshineshiro/cinder | cinder/tests/unit/scheduler/test_filter_scheduler.py | 5 | 20105 | # Copyright 2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | -219,511,828,890,877,100 | 45.864802 | 79 | 0.533748 | false |
sumedhasingla/VTK | Filters/Modeling/Testing/Python/subDivideTetra.py | 20 | 1544 | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
tetraPoints = vtk.vtkPoints()
tetraPoints.SetNumberOfPoints(4)
tetraPoints.InsertPoint(0,0,0,0)
tetraPoints.InsertPoint(1,1,0,0)
tetraPoints.InsertPoint(2,.5,1,0)
tetraPoints.InsertPo... | bsd-3-clause | -1,510,295,014,462,019,600 | 29.88 | 68 | 0.78886 | false |
nippoo/phy | phy/traces/tests/test_detect.py | 2 | 8735 | # -*- coding: utf-8 -*-
"""Tests of spike detection routines."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import numpy as np
from numpy.testing import assert_array_equal as ae
from numpy.t... | bsd-3-clause | 1,932,011,667,336,692,500 | 28.812287 | 79 | 0.393017 | false |
jjgomera/pychemqt | tools/costIndex.py | 1 | 13635 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
'''Pychemqt, Chemical Engineering Process simulator
Copyright (C) 2009-2017, Juan José Gómez Romera <jjgomera@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Softwar... | gpl-3.0 | -7,770,488,849,515,312,000 | 43.119741 | 79 | 0.638451 | false |
damocles972/Sick-Beard | cherrypy/lib/auth_digest.py | 35 | 14117 | # This file is part of CherryPy <http://www.cherrypy.org/>
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:expandtab:fileencoding=utf-8
__doc__ = """An implementation of the server-side of HTTP Digest Access
Authentication, which is described in RFC 2617.
Example usage, using the built-in get_ha1_dict_plain function w... | gpl-3.0 | -7,421,111,313,394,677,000 | 37.432961 | 105 | 0.598852 | false |
jagill/treeano | treeano/sandbox/nodes/irregular_length.py | 1 | 4325 | import numpy as np
import theano
import theano.tensor as T
import treeano
import treeano.nodes as tn
import treeano.theano_extensions.irregular_length as il
@treeano.register_node("ungroup_irregular_length_tensors")
class UngroupIrregularLengthTensorsNode(treeano.NodeImpl):
hyperparameter_names = ("lengths_refer... | apache-2.0 | -2,808,224,774,732,881,400 | 32.015267 | 80 | 0.590983 | false |
wrigri/libcloud | libcloud/test/common/test_aws.py | 28 | 13462 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | 4,620,072,196,068,149,000 | 45.905923 | 118 | 0.576883 | false |
gusai-francelabs/datafari | windows/python/Lib/site-packages/pip/_vendor/distlib/wheel.py | 202 | 39035 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2013-2014 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
from __future__ import unicode_literals
import base64
import codecs
import datetime
import distutils.util
from email import message_from... | apache-2.0 | -9,192,095,819,680,393,000 | 38.994877 | 82 | 0.485436 | false |
tvibliani/odoo | addons/account_budget/wizard/account_budget_crossovered_summary_report.py | 373 | 2191 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 4,164,677,998,913,560,000 | 39.574074 | 130 | 0.600639 | false |
vitan/hue | apps/impala/src/impala/views.py | 22 | 1651 | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | apache-2.0 | -2,439,047,632,644,302,000 | 30.75 | 74 | 0.736523 | false |
blacklin/kbengine | kbe/src/lib/python/Lib/distutils/tests/test_install_headers.py | 147 | 1264 | """Tests for distutils.command.install_headers."""
import sys
import os
import unittest
import getpass
from distutils.command.install_headers import install_headers
from distutils.tests import support
from test.support import run_unittest
class InstallHeadersTestCase(support.TempdirManager,
... | lgpl-3.0 | -3,858,473,737,572,674,000 | 29.829268 | 61 | 0.628956 | false |
yeahmike/sec4qgis | import_cartography.py | 1 | 42284 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
SEC4QGIS v1.0.5
-------------------
(A QGIS plugin)
-------------------
Funciones relativas a ... | gpl-3.0 | 1,150,931,251,263,334,300 | 61.64 | 330 | 0.576936 | false |
caidongyun/pylearn2 | pylearn2/utils/timing.py | 49 | 2601 | """Utilities related to timing various segments of code."""
__authors__ = "David Warde-Farley"
__copyright__ = "Copyright 2010-2012, Universite de Montreal"
__credits__ = ["David Warde-Farley"]
__license__ = "3-clause BSD"
__maintainer__ = "David Warde-Farley"
__email__ = "wardefar@iro"
from contextlib import context... | bsd-3-clause | 2,067,755,372,756,617,700 | 29.964286 | 76 | 0.615917 | false |
h4ck3rm1k3/MapNickAutotools | scons/scons-local-1.2.0/SCons/Tool/link.py | 12 | 4288 | """SCons.Tool.link
Tool-specific initialization for the generic Posix linker.
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.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Founda... | lgpl-2.1 | -8,101,213,768,627,545,000 | 37.285714 | 107 | 0.684935 | false |
yueranyuan/vector_edu | learntools/kt/kt2.py | 1 | 4976 | from itertools import groupby
import numpy as np
import theano
import theano.tensor as T
from learntools.libs.logger import log_me
from learntools.libs.utils import idx_to_mask
from learntools.libs.auc import auc
from learntools.model.math import neg_log_loss
from learntools.model.theano_utils import make_shared, mak... | mit | -8,771,728,427,344,148,000 | 35.588235 | 110 | 0.548232 | false |
tylertian/Openstack | openstack F/glance/glance/openstack/common/policy.py | 1 | 9320 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2011 OpenStack, LLC.
# 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... | apache-2.0 | 2,264,549,890,352,487,700 | 30.066667 | 79 | 0.616309 | false |
nwiizo/workspace_2017 | pipng/pointstore1.py | 2 | 1602 | #!/usr/bin/env python3
# Copyright © 2012-13 Qtrac Ltd. All rights reserved.
# This program or 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)... | mit | 647,649,651,371,832,600 | 29.392157 | 75 | 0.602748 | false |
phenoxim/cinder | cinder/volume/drivers/vmware/fcd.py | 3 | 12601 | # Copyright (c) 2017 VMware, 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... | apache-2.0 | 7,270,508,645,839,284,000 | 39.258786 | 79 | 0.628918 | false |
seraphlnWu/wekka | wekka/wekka/themes/steward/models.py | 1 | 1530 | # coding=utf8
#
from datetime import datetime
from django.db import models
from ckeditor.fields import RichTextField
from django.contrib.auth.models import User
from memodels import SiteConfig as MSiteConfig
from memodels import Vendor as MVendor
from memodels import MCategory, MVideos
class SiteConfig(models.Mod... | gpl-2.0 | 5,368,592,423,306,335,000 | 33.227273 | 79 | 0.658699 | false |
shikhar413/openmc | openmc/filter.py | 6 | 63054 | from abc import ABCMeta
from collections import OrderedDict
from collections.abc import Iterable
import hashlib
from itertools import product
from numbers import Real, Integral
from xml.etree import ElementTree as ET
import numpy as np
import pandas as pd
import openmc
import openmc.checkvalue as cv
from .cell import... | mit | 4,798,642,923,079,280,000 | 32.168858 | 81 | 0.579123 | false |
shikhardb/scikit-learn | sklearn/tree/export.py | 30 | 4529 | """
This module defines export functions for decision trees.
"""
# Authors: Gilles Louppe <g.louppe@gmail.com>
# Peter Prettenhofer <peter.prettenhofer@gmail.com>
# Brian Holt <bdholt1@gmail.com>
# Noel Dawe <noel@dawe.me>
# Satrajit Gosh <satrajit.ghosh@gmail.com>
# Licence: BSD 3 ... | bsd-3-clause | 3,176,428,035,862,647,300 | 33.052632 | 79 | 0.546037 | false |
BT-ojossen/bank-statement-reconcile | __unported__/account_statement_completion_label/__openerp__.py | 14 | 2038 | # -*- coding: utf-8 -*-
###############################################################################
#
# account_statement_completion_label for OpenERP
# Copyright (C) 2013 Akretion (http://www.akretion.com). All Rights Reserved
# @author Benoît GUILLOT <benoit.guillot@akretion.com>
#
# This program is free ... | agpl-3.0 | -7,946,938,813,994,284,000 | 39.74 | 79 | 0.631321 | false |
wzhy90/git-repo | subcmds/prune.py | 90 | 1792 | #
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | apache-2.0 | 8,135,922,869,097,887,000 | 28.866667 | 74 | 0.647321 | false |
dnozay/lettuce | tests/integration/lib/Django-1.2.5/django/conf/locale/id/formats.py | 80 | 1578 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
DATE_FORMAT = 'j N Y'
DATETIME_FORMAT = "j N Y, G:i:s"
TIME_FORMAT = 'G:i:s'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd-m-Y'
SHORT_DATETIME_FORMAT = 'd-m-Y G:i:s'
FIRST_DAY_OF_WEEK = 1 #M... | gpl-3.0 | 9,054,496,013,655,435,000 | 35.697674 | 79 | 0.382763 | false |
MakerReduxCorp/MARDS | MARDS/doc.py | 1 | 8271 | # -*- coding: iso-8859-1 -*-
# MARDS\doc.py
#
# DOCUMENTATION GENERATION
#
from rolne import rolne
from MARDS import st
# the breakdown_rolne contains instructions on how to "break down" the files used in the final docs.
#
def generate_rst_files(schema_rolne, breakdown_rolne, dest_dir, language="en"):
docs = {}
... | mit | 5,427,721,114,485,502,000 | 41.854922 | 131 | 0.459437 | false |
HybridF5/tempest_debug | setup.py | 334 | 1028 | # 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 | 3,346,962,992,502,269,000 | 34.448276 | 69 | 0.748054 | false |
infoxchange/lettuce | tests/integration/lib/Django-1.3/django/utils/module_loading.py | 222 | 2306 | import imp
import os
import sys
def module_has_submodule(package, module_name):
"""See if 'module' is in 'package'."""
name = ".".join([package.__name__, module_name])
try:
# None indicates a cached miss; see mark_miss() in Python/import.c.
return sys.modules[name] is not None
except K... | gpl-3.0 | 415,543,793,617,852,160 | 35.603175 | 77 | 0.464441 | false |
mfwarren/FreeCoding | 2014/10/fc_2014_10_02.py | 1 | 1847 | #!/usr/bin/env python
#imports go here
#
# Free Coding session for 2014-10-02
# Written by Matt Warren
#
# example of 3-tier pattern
class Data:
data = [{"account": 234, "name":"bob"},
{"account": 643, "name":"joan"}]
def __iter__(self):
for d in self.data:
yield d
def find(... | mit | 8,509,145,449,014,434,000 | 18.442105 | 63 | 0.568489 | false |
yanlend/scikit-learn | sklearn/feature_selection/tests/test_base.py | 143 | 3670 | import numpy as np
from scipy import sparse as sp
from nose.tools import assert_raises, assert_equal
from numpy.testing import assert_array_equal
from sklearn.base import BaseEstimator
from sklearn.feature_selection.base import SelectorMixin
from sklearn.utils import check_array
class StepSelector(SelectorMixin, Ba... | bsd-3-clause | 5,977,054,453,359,067,000 | 30.913043 | 79 | 0.66921 | false |
gef756/scipy | scipy/linalg/tests/test_basic.py | 27 | 34110 | #!/usr/bin/env python
#
# Created by: Pearu Peterson, March 2002
#
""" Test functions for linalg.basic module
"""
from __future__ import division, print_function, absolute_import
"""
Bugs:
1) solve.check_random_sym_complex fails if a is complex
and transpose(a) = conjugate(a) (a is Hermitian).
"""
__usage__ = """
... | bsd-3-clause | -8,537,629,364,343,176,000 | 31.209632 | 82 | 0.427998 | false |
MediaSapiens/wavesf | django/contrib/localflavor/ch/forms.py | 256 | 3951 | """
Swiss-specific Form helpers
"""
from django.core.validators import EMPTY_VALUES
from django.forms import ValidationError
from django.forms.fields import Field, RegexField, Select
from django.utils.encoding import smart_unicode
from django.utils.translation import ugettext_lazy as _
import re
id_re = re.compile(r"... | bsd-3-clause | 8,104,908,002,934,452,000 | 32.201681 | 122 | 0.606176 | false |
chekunkov/scrapy | scrapy/dupefilter.py | 27 | 2133 | from __future__ import print_function
import os
from scrapy import log
from scrapy.utils.job import job_dir
from scrapy.utils.request import request_fingerprint
class BaseDupeFilter(object):
@classmethod
def from_settings(cls, settings):
return cls()
def request_seen(self, request):
ret... | bsd-3-clause | 6,968,742,354,079,543,000 | 29.042254 | 80 | 0.620722 | false |
gedare/gem5 | util/cpt_upgrader.py | 10 | 12775 | #!/usr/bin/env python2
# Copyright (c) 2012-2013,2015-2016 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardwar... | bsd-3-clause | 9,033,827,358,617,619,000 | 38.551084 | 79 | 0.63546 | false |
alfanugraha/LUMENS-repo | processing/modeler/ModelerArrowItem.py | 6 | 5685 | # -*- coding: utf-8 -*-
"""
***************************************************************************
Portions of this code have been taken and adapted from PyQt
examples, released under the following license terms
#############################################################################
#
# Copyright (... | gpl-2.0 | 1,878,584,487,497,230,800 | 44.48 | 79 | 0.629551 | false |
ye-zhi/project-epsilon | code/utils/scripts/noise-pca_script.py | 1 | 13894 | """
This script is used to design the design matrix for our linear regression.
We explore the influence of linear and quadratic drifts on the model
performance.
Script for the raw data.
Run with:
python noise-pca_script.py
from this directory
"""
from __future__ import print_function, division
import sys, os,... | bsd-3-clause | 7,373,962,352,841,998,000 | 37.17033 | 96 | 0.593853 | false |
Zouyiran/ryu | ryu/tests/unit/ofproto/test_ofproto.py | 36 | 3093 | # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2013 Isaku Yamahata <yamahata at private email ne jp>
#
# 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
#
# h... | apache-2.0 | -2,750,134,762,096,208,000 | 37.185185 | 79 | 0.582929 | false |
msimacek/freeipa | ipalib/plugins/selinuxusermap.py | 4 | 19598 | # Authors:
# Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2011 Red Hat
# see file 'COPYING' for use and warranty information
#
# 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... | gpl-3.0 | -8,885,613,026,688,330,000 | 34.311712 | 326 | 0.592509 | false |
dfunckt/django | tests/gis_tests/geoapp/test_sitemaps.py | 123 | 2631 | from __future__ import unicode_literals
import zipfile
from io import BytesIO
from xml.dom import minidom
from django.conf import settings
from django.contrib.sites.models import Site
from django.test import (
TestCase, modify_settings, override_settings, skipUnlessDBFeature,
)
from .models import City, Country
... | bsd-3-clause | -5,729,486,537,626,438,000 | 40.761905 | 110 | 0.612315 | false |
af1rst/bite-project | deps/closure/closure-library/closure/bin/build/depswriter.py | 247 | 6208 | #!/usr/bin/env python
#
# Copyright 2009 The Closure Library 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
... | apache-2.0 | 5,491,254,283,834,052,000 | 29.732673 | 79 | 0.640947 | false |
pizzapanther/Super-Neutron-Drive | build_zip.py | 1 | 1591 | #!/usr/bin/env python
import os
import json
import types
import subprocess
exclude_files = ()
exclude_dirs = ()
if __name__ == "__main__":
os.chdir('chrome-app')
print("Generating extension in super-neutron.zip\n")
ziplist = ''
for root, dirs, files in os.walk('./'):
for file in files:
skip =... | mit | 4,664,997,657,253,011,000 | 24.677419 | 82 | 0.536769 | false |
ppwwyyxx/tensorflow | tensorflow/python/data/experimental/kernel_tests/serialization/prefetch_dataset_serialization_test.py | 15 | 1726 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,725,820,157,952,730,600 | 38.227273 | 106 | 0.736964 | false |
lixiangning888/whole_project | modules/signatures_merge_tmp/ek_silverlight.py | 2 | 1071 | # -*- coding: utf-8 -*-
try:
import re2 as re
except ImportError:
import re
from lib.cuckoo.common.abstracts import Signature
class Silverlight_JS(Signature):
name = "silverlight_js"
description = "执行伪装过的包含一个Silverlight对象的JavaScript,可能被用于漏洞攻击尝试"
weight = 3
severity = 3
categories = ["explo... | lgpl-3.0 | 8,686,120,445,758,382,000 | 29.939394 | 140 | 0.610186 | false |
tmerrick1/spack | lib/spack/spack/test/packages.py | 2 | 6675 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 2,792,920,742,229,850,000 | 38.97006 | 78 | 0.609588 | false |
koobonil/Boss2D | Boss2D/addon/tensorflow-1.2.1_for_boss/tensorflow/contrib/distributions/python/ops/normal_conjugate_posteriors.py | 120 | 5530 | # 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... | mit | 672,912,147,758,268,900 | 36.619048 | 80 | 0.675949 | false |
jimsize/PySolFC | pysollib/pysolgtk/soundoptionsdialog.py | 1 | 5541 | #!/usr/bin/env python
# -*- mode: python; coding: utf-8; -*-
# ---------------------------------------------------------------------------##
#
# Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
# Copyright (C) 2003 Mt. Hood Playing Card Co.
# Copyright (C) 2005-2009 Skomoroh
#
# This program is free softwa... | gpl-3.0 | 1,380,945,105,284,023,300 | 35.453947 | 79 | 0.48457 | false |
piotroxp/scibibscan | scib/lib/python3.6/site-packages/pip/req/req_install.py | 335 | 46487 | from __future__ import absolute_import
import logging
import os
import re
import shutil
import sys
import tempfile
import traceback
import warnings
import zipfile
from distutils import sysconfig
from distutils.util import change_root
from email.parser import FeedParser
from pip._vendor import pkg_resources, six
from... | mit | 6,150,469,792,536,622,000 | 37.610465 | 79 | 0.538236 | false |
jmouriz/sanaviron | sanaviron/objects/charts/bar.py | 3 | 8480 | # Copyright(c) 2007-2009 by Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com>
#
# This file is part of PyCha.
#
# PyCha is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License,... | apache-2.0 | -2,425,462,109,464,238,000 | 34.630252 | 79 | 0.535377 | false |
nodish/pexpect | pexpect/__init__.py | 2 | 3904 | '''Pexpect is a Python module for spawning child applications and controlling
them automatically. Pexpect can be used for automating interactive applications
such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup
scripts for duplicating software package installations on different servers. It
can be u... | isc | 7,250,583,951,258,157,000 | 44.929412 | 82 | 0.75999 | false |
MicrosoftGenomics/FaST-LMM | fastlmm/association/LeaveOneChromosomeOut.py | 2 | 2547 | #!/usr/bin/env python2.7
#
# Written (W) 2014 Christian Widmer
# Copyright (C) 2014 Microsoft Research
"""
Created on 2014-03-11
@author: Christian Widmer
@summary: Module for performing GWAS
"""
import logging
import numpy as np
import scipy as sp
import pandas as pd
from scipy import stats
import pylab
import tim... | apache-2.0 | 6,800,101,858,189,209,000 | 26.387097 | 82 | 0.629761 | false |
apdavison/IzhikevichModel | PyNN/old/test_Izhikevich.py | 2 | 6043 |
from pyNN.random import RandomDistribution, NumpyRNG
#from pyNN.neuron import *
from pyNN.nest import *
from pyNN.utility import get_script_args, Timer, ProgressBar, init_logging, normalized_filename
import matplotlib.pyplot as plt
import numpy as np
globalTimeStep = 0.01
timeStep = globalTimeStep
s... | bsd-3-clause | -2,255,834,046,065,526,300 | 19.505338 | 98 | 0.608804 | false |
tf-czu/EFD | image.py | 1 | 4172 | #!/usr/bin/python
"""
Simple tools for images
usage:
python image.py <input img> <color> <treshold value>
"""
import sys
import numpy as np
import cv2
from matplotlib import pyplot as plt
from contours import *
ker1 = 10
CUTING = False
Xi = 100
Yi = 200
Xe = 3900
Ye = 2600
def cutImage(img, xi, yi, ... | gpl-2.0 | -7,684,118,645,132,879,000 | 25.916129 | 123 | 0.586529 | false |
caseyrygt/osf.io | scripts/osfstorage/migrate_from_oldels.py | 51 | 9228 | from __future__ import division
from __future__ import unicode_literals
import logging
import datetime as dt
from pymongo.errors import DuplicateKeyError
from modularodm import Q
from modularodm.storage.base import KeyExistsException
from framework.mongo import database
from framework.analytics import clean_page
fr... | apache-2.0 | -86,759,166,347,691,250 | 31.492958 | 148 | 0.578349 | false |
bplancher/odoo | openerp/cli/scaffold.py | 27 | 4379 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import os
import re
import sys
import jinja2
from . import Command
from openerp.modules.module import (get_module_root, MANIFEST, load_information_from_description_file as load_manifest)
class Scaffold(Command):
""" Generates an Odoo module skeleton... | agpl-3.0 | 4,237,234,888,205,652,500 | 30.503597 | 119 | 0.557433 | false |
ltilve/ChromiumGStreamerBackend | tools/telemetry/telemetry/internal/backends/mandoline/desktop_mandoline_finder.py | 9 | 5077 | # Copyright 2015 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.
"""Finds desktop mandoline browsers that can be controlled by telemetry."""
import os
import sys
from telemetry.core import exceptions
from telemetry.core i... | bsd-3-clause | -3,578,226,950,328,915,000 | 34.503497 | 78 | 0.712232 | false |
thinkgen/thirdparty | script.module.urlresolver/lib/urlresolver/plugins/movzap.py | 3 | 2815 | """
movzap|zuzvideo urlresolver plugin
Copyright (C) 2012 Lynx187
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... | gpl-2.0 | 1,704,353,411,222,947,000 | 33.753086 | 148 | 0.633393 | false |
debugger06/MiroX | lib/test/databasesanitytest.py | 1 | 2065 | """Test database sanity checking. Right now this is pretty short
because we don't do that much sanity checking.
"""
import os
from miro import item
from miro import feed
from miro import databasesanity
from miro.fileobject import FilenameType
from miro.test.framework import MiroTestCase
class SanityCheckingTest(Mi... | gpl-2.0 | -4,475,248,475,050,895,400 | 34 | 74 | 0.650847 | false |
hstaugaard/notejam | django/notejam/pads/views.py | 6 | 2449 | from django.contrib import messages
from django.core.urlresolvers import reverse_lazy
from django.shortcuts import redirect
from django.shortcuts import get_object_or_404
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic import ListView
from pads.models import Pad
from... | mit | 6,650,781,665,909,565,000 | 30 | 76 | 0.677828 | false |
snnn/bazel | third_party/protobuf/3.4.0/python/google/protobuf/internal/descriptor_pool_test.py | 5 | 38193 | #! /usr/bin/env python
#
# 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 ... | apache-2.0 | -8,391,610,087,845,377,000 | 42.649143 | 80 | 0.704946 | false |
wessamfathi/GFX | CSE167X/hw2-windows_VS2012/hw2-windows/glm-0.9.2.7/util/gen_external_templates.py | 14 | 5531 |
__author__ = "eloraiby"
__date__ = "$5-Sep-2010 9:35:29 PM$"
atomic_types = ["unsigned char", "unsigned short", "unsigned int",
"signed char", "signed short", "signed int",
"float", "double"]
glsl_vector_types = ["tvec2", "tvec3", "tvec4"]
glsl_matrix_types = ["tmat2x2", "tmat2x3", "tmat2x4",
"tmat3x2", "... | gpl-3.0 | 4,592,827,711,950,674,000 | 36.62585 | 146 | 0.463569 | 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.