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 |
|---|---|---|---|---|---|---|---|---|---|---|
sugartom/tensorflow-alien | tensorflow/tensorboard/backend/event_processing/event_accumulator.py | 2 | 30610 | # 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 | -567,571,839,064,674,750 | 36.650677 | 80 | 0.655995 | false |
dongjoon-hyun/tensorflow | tensorflow/contrib/eager/python/examples/revnet/config.py | 28 | 6581 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -1,620,045,647,634,723,800 | 36.605714 | 80 | 0.684546 | false |
Crystalnix/BitPop | chrome/test/functional/autofill_dataset_generator.py | 11 | 9785 | #!/usr/bin/env python
# Copyright (c) 2011 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.
"""Generates profile dictionaries for Autofill.
Used to test autofill.AutofillTest.FormFillLatencyAfterSubmit.
Can be used as a st... | bsd-3-clause | -2,711,865,464,924,359,700 | 30.872964 | 80 | 0.639857 | false |
jakev/dtf | python-dtf/tests/unit/test_prop.py | 2 | 5430 | # Android Device Testing Framework ("dtf")
# Copyright 2013-2016 Jake Valletta (@jake_valletta)
#
# 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 | 7,465,317,381,772,302,000 | 18.119718 | 74 | 0.612155 | false |
krismcfarlin/todo_angular_endpoints_sockets | bp_includes/external/babel/messages/pofile.py | 54 | 16041 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://babel.edgewall.org/wiki/License.
#
# This software consists of v... | lgpl-3.0 | -1,596,174,504,952,294,000 | 34.177632 | 80 | 0.520541 | false |
Diaoul/Dobby | dobby/db.py | 1 | 1627 | # Copyright 2011 Antoine Bertin <diaoulael@gmail.com>
#
# This file is part of Dobby.
#
# Dobby 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 ... | lgpl-3.0 | 8,909,125,431,581,416,000 | 33.617021 | 75 | 0.76091 | false |
nomaro/SickBeard_Backup | lib/guessit/matcher.py | 40 | 6496 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# GuessIt - A library for guessing information from filenames
# Copyright (c) 2012 Nicolas Wack <wackou@gmail.com>
#
# GuessIt is free software; you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free ... | gpl-3.0 | 5,704,064,265,243,028,000 | 40.909677 | 94 | 0.628695 | false |
markYoungH/chromium.src | third_party/closure_linter/closure_linter/errorrules.py | 124 | 2276 | #!/usr/bin/env python
#
# Copyright 2010 The Closure Linter 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
#... | bsd-3-clause | -1,315,710,274,127,656,000 | 30.611111 | 75 | 0.690246 | false |
ClovisIRex/Snake-django | env/lib/python3.6/site-packages/pylint/checkers/utils.py | 3 | 29753 | # Copyright (c) 2006-2007, 2009-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
# Copyright (c) 2012-2014 Google, Inc.
# Copyright (c) 2013-2016 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2015 Radu Ciorba <radu@devrandom.ro>
# Copyright (c) 2015 Dmitry Pribysh <dmand@yandex.ru>
# Copyright (c) 2016 Ash... | mit | 5,545,447,352,638,537,000 | 33.596512 | 92 | 0.601049 | false |
getnikola/plugins | v7/localsearch/localsearch/__init__.py | 1 | 4350 | # -*- coding: utf-8 -*-
# Copyright © 2012-2014 Roberto Alsina and others.
# 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 t... | mit | -2,557,237,027,577,164,000 | 40.028302 | 90 | 0.601977 | false |
udxxabp/zulip | zerver/lib/event_queue.py | 115 | 29293 | from __future__ import absolute_import
from django.conf import settings
from django.utils.timezone import now
from collections import deque
import datetime
import os
import time
import socket
import logging
import ujson
import requests
import cPickle as pickle
import atexit
import sys
import signal
import tornado
impo... | apache-2.0 | 107,240,590,736,527,000 | 40.432815 | 112 | 0.619807 | false |
frenchfrywpepper/ansible-modules-extras | cloud/webfaction/webfaction_site.py | 62 | 6939 | #!/usr/bin/python
#
# Create Webfaction website using Ansible and the Webfaction API
#
# ------------------------------------------
#
# (c) Quentin Stafford-Fraser 2015
#
# 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 Lic... | gpl-3.0 | 6,347,011,683,296,304,000 | 32.042857 | 353 | 0.602536 | false |
jgao54/airflow | airflow/migrations/versions/a56c9515abdc_remove_dag_stat_table.py | 6 | 1581 | #
# 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... | apache-2.0 | 4,174,148,292,197,796,000 | 32.638298 | 84 | 0.701455 | false |
shintoo/DailyImage | getimage.py | 1 | 1515 | #!/usr/bin/python
# getimage.py - this file is part of dailyimage
# Retrieve an image from a google image search
import sys # argv
import re # finding images
import requests # downloading results and images
import bs4 # finding images
def get_image(query):
'''
function get_im... | mit | 7,848,023,688,976,881,000 | 26.053571 | 72 | 0.594719 | false |
jorik041/CrackMapExec | cme/modules/get_keystrokes.py | 1 | 4591 | from cme.helpers.powershell import *
from cme.helpers.misc import gen_random_string
from cme.servers.smb import CMESMBServer
from gevent import sleep
from sys import exit
import os
class CMEModule:
'''
Executes PowerSploit's Get-Keystrokes script
Module by @byt3bl33d3r
'''
name = 'get_keys... | bsd-2-clause | 3,567,030,608,053,592,000 | 39.27193 | 152 | 0.587672 | false |
foursquare/commons-old | src/python/twitter/common/log/formatters/plain.py | 16 | 1610 | # ==================================================================================================
# Copyright 2011 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | apache-2.0 | 8,593,446,183,882,732,000 | 34.777778 | 100 | 0.565217 | false |
scootergrisen/virtaal | virtaal/views/langview.py | 6 | 8842 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2009-2011 Zuza Software Foundation
#
# This file is part of Virtaal.
#
# 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 ... | gpl-2.0 | -1,565,351,128,856,898,800 | 38.450893 | 113 | 0.628607 | false |
mshafiq9/django | tests/template_tests/filter_tests/test_truncatewords.py | 215 | 1705 | from django.template.defaultfilters import truncatewords
from django.test import SimpleTestCase
from django.utils.safestring import mark_safe
from ..utils import setup
class TruncatewordsTests(SimpleTestCase):
@setup({'truncatewords01':
'{% autoescape off %}{{ a|truncatewords:"2" }} {{ b|truncatewords:"... | bsd-3-clause | -2,592,121,439,148,183,000 | 36.065217 | 125 | 0.624633 | false |
simongoffin/my_odoo_tutorial | addons/analytic/analytic.py | 12 | 17961 | # -*- 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 | -3,811,703,180,882,763,300 | 49.310924 | 372 | 0.581872 | false |
liangly/hadoop-common | src/contrib/thriftfs/scripts/hdfs.py | 116 | 14991 | #!/usr/bin/env python
"""
hdfs.py is a python client for the thrift interface to HDFS.
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,939,983,571,205,586,000 | 26.010811 | 184 | 0.590955 | false |
gopal1cloud/neutron | neutron/tests/unit/test_common_log.py | 22 | 2943 | # Copyright (c) 2013 OpenStack Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | apache-2.0 | -2,569,345,095,315,506,000 | 41.042857 | 78 | 0.589534 | false |
odb9402/OPPA | oppa/macs/archive.py | 1 | 5675 | """
this module is actual fix some parameter by using
bayesian optimization. if we run this function in parallel,
we need to satisfied many condition which mentioned in the paper
named 'practical bayesian optimization in machine learning algorithm'
"""
from math import exp
import subprocess
import time
from multiproces... | mit | 2,470,161,333,468,017,000 | 32.579882 | 188 | 0.687225 | false |
charlescearl/VirtualMesos | third_party/libprocess/third_party/gmock-1.6.0/gtest/test/gtest_color_test.py | 3259 | 4911 | #!/usr/bin/env python
#
# Copyright 2008, 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... | apache-2.0 | 5,851,284,731,570,305,000 | 36.776923 | 76 | 0.69212 | false |
joachimmetz/plaso | plaso/parsers/plist_plugins/safari.py | 2 | 3592 | # -*- coding: utf-8 -*-
"""Plist parser plugin for Safari history plist files."""
from dfdatetime import cocoa_time as dfdatetime_cocoa_time
from plaso.containers import events
from plaso.containers import time_events
from plaso.lib import definitions
from plaso.parsers import plist
from plaso.parsers.plist_plugins i... | apache-2.0 | 8,460,172,211,647,911,000 | 34.564356 | 78 | 0.697105 | false |
Valka7a/python-playground | python-course-softuni/introduction-python3/lecture-one-excercises/ex7.py | 1 | 1947 | import turtle
# Get user's input
board_size = input('Enter bord size: ')
# Validate user's input
try:
board_size = int(board_size)
if board_size < 8:
raise Exception('Board size cannot be less then 8.')
except ValueError:
print('Invalid input!')
exit()
except Exception as error:
print(er... | mit | -3,479,351,856,676,497,400 | 17.912621 | 60 | 0.611197 | false |
subramani95/neutron | neutron/plugins/ml2/driver_context.py | 6 | 4610 | # Copyright (c) 2013 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | apache-2.0 | 5,014,478,164,792,545,000 | 33.148148 | 78 | 0.619957 | false |
montoyjh/pymatgen | pymatgen/io/xyz.py | 5 | 4144 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import re
from pymatgen.core.structure import Molecule
from monty.io import zopen
"""
Module implementing an XYZ file object class.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Mate... | mit | -1,933,247,107,292,179,200 | 29.028986 | 96 | 0.545849 | false |
jpippy/pyo | pyolib/controls.py | 5 | 24741 | """
Objects designed to create parameter's control at audio rate.
These objects can be used to create envelopes, line segments
and conversion from python number to audio signal.
The audio streams of these objects can't be sent to the output
soundcard.
"""
"""
Copyright 2009-2015 Olivier Belanger
This file is part ... | gpl-3.0 | 6,833,759,281,752,422,000 | 30.358682 | 172 | 0.567802 | false |
kootenpv/yagmail | setup.py | 1 | 2037 | from setuptools import setup
from setuptools import find_packages
with open('README.rst') as f:
LONG_DESCRIPTION = f.read()
MAJOR_VERSION = '0'
MINOR_VERSION = '14'
MICRO_VERSION = '247'
VERSION = "{}.{}.{}".format(MAJOR_VERSION, MINOR_VERSION, MICRO_VERSION)
setup(
name='yagmail',
version=VERSION,
de... | mit | -5,868,926,427,037,378,000 | 36.722222 | 74 | 0.616593 | false |
jtyuan/racetrack | src/dev/sparc/T1000.py | 66 | 5810 | # Copyright (c) 2006-2007 The Regents of The University of Michigan
# 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 ... | bsd-3-clause | 7,878,468,195,683,676,000 | 40.798561 | 79 | 0.695525 | false |
NadaBayoumy/DjangoPythonBlog | Blog/BlogApp/forms.py | 1 | 2667 | #nada
from django import forms
from .models import Category
from .models import ForbiddenWords
from .models import Post
from django import forms
#end nada
#alem
from .models import Post, Reply
#end alem
#hossam
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.m... | gpl-2.0 | -7,744,843,897,878,007,000 | 20.336 | 132 | 0.620172 | false |
bravo-zhang/spark | python/pyspark/mllib/__init__.py | 123 | 1412 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | -8,250,000,166,014,086,000 | 39.342857 | 93 | 0.735127 | false |
RetailMeNotSandbox/dart | src/python/dart/client/python/examples/datasets/owen_outclick_us_v02.py | 1 | 14227 | from dart.client.python.dart_client import Dart
from dart.model.dataset import Column, DatasetData, Dataset, DataFormat, FileFormat, RowFormat, DataType, Compression, \
LoadType
if __name__ == '__main__':
dart = Dart('localhost', 5000)
assert isinstance(dart, Dart)
dataset = dart.save_dataset(Dataset(... | mit | 5,392,234,368,456,697,000 | 91.986928 | 143 | 0.694806 | false |
AthinaB/synnefo | snf-cyclades-app/synnefo/api/flavors.py | 9 | 3419 | # Copyright (C) 2010-2014 GRNET S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed i... | gpl-3.0 | 8,546,614,988,723,968,000 | 34.614583 | 71 | 0.623867 | false |
Doteveryone/BetterJobAdverts | jobcert/filters.py | 1 | 1556 | from jobcert import app
@app.template_filter('readability_words')
def readability_words_filter(s):
score = int(s)
if score in range(90, 100):
return "Very Easy"
elif score in range(80, 89):
return "Easy"
elif score in range(70, 79):
return "Fairly Easy"
elif score in range (... | agpl-3.0 | 6,541,564,765,748,464,000 | 24.52459 | 69 | 0.596401 | false |
gwu-libraries/sfm-ui | sfm/ui/migrations/0021_auto_20180712_1310.py | 2 | 10258 | # Generated by Django 2.0.7 on 2018-07-12 17:10
import django.contrib.auth.validators
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('ui', '0020_auto_20180608_1144'),
]
operations = [
migrations.AddField(
... | mit | -1,442,115,788,846,151,700 | 49.039024 | 347 | 0.586177 | false |
City-of-Helsinki/kuulemma | kuulemma/migrations/versions/14051cff79e_rename_hearing_section_to_alternative.py | 2 | 4084 | # -*- coding: utf-8 -*-
# Kuulemma
# Copyright (C) 2014, Fast Monkeys Oy
#
# 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, either version 3 of the License, or
# (at your option) any later... | agpl-3.0 | -8,511,520,248,250,662,000 | 25.519481 | 77 | 0.613369 | false |
MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-3.0/Lib/test/test_userdict.py | 2 | 6470 | # Check every path through every method of UserDict
from test import support, mapping_tests
import collections
d0 = {}
d1 = {"one": 1}
d2 = {"one": 1, "two": 2}
d3 = {"one": 1, "two": 3, "three": 5}
d4 = {"one": None, "two": None}
d5 = {"one": 1, "two": 1}
class UserDictTest(mapping_tests.TestHashMappingProtocol):
... | mit | -4,867,743,210,431,964,000 | 31.676768 | 90 | 0.547759 | false |
PatKayongo/patkayongo.github.io | node_modules/pygmentize-bundled/vendor/pygments/build-3.3/pygments/formatters/img.py | 94 | 18053 | # -*- coding: utf-8 -*-
"""
pygments.formatters.img
~~~~~~~~~~~~~~~~~~~~~~~
Formatter for Pixmap output.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import sys
from pygments.formatter import Formatter
from pygments.util import ge... | mit | -523,872,509,259,411,200 | 31.64557 | 84 | 0.551321 | false |
sqlalchemy/sqlalchemy | lib/sqlalchemy/ext/orderinglist.py | 3 | 13875 | # ext/orderinglist.py
# Copyright (C) 2005-2021 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
"""A custom list that manages index/position information for contained
elements... | mit | 6,990,032,291,811,268,000 | 34.760309 | 79 | 0.654919 | false |
mfherbst/spack | var/spack/repos/builtin/packages/r-plotly/package.py | 5 | 2533 | ##############################################################################
# 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 | 3,101,067,797,805,543,000 | 46.792453 | 78 | 0.660087 | false |
dllsf/odootest | addons/account/report/account_partner_ledger.py | 81 | 13063 | # -*- 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 | 2,841,644,555,824,371,700 | 40.469841 | 199 | 0.521703 | false |
avdi/rust | src/etc/generate-keyword-tests.py | 53 | 1985 | #!/usr/bin/env python
#
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# http://rust-lang.org/COPYRIGHT.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
#... | apache-2.0 | 5,708,426,297,778,499,000 | 32.644068 | 76 | 0.711839 | false |
hungtt57/matchmaker | lib/python2.7/site-packages/django/db/backends/mysql/base.py | 103 | 15969 | """
MySQL database backend for Django.
Requires mysqlclient: https://pypi.python.org/pypi/mysqlclient/
MySQLdb is supported for Python 2 only: http://sourceforge.net/projects/mysql-python
"""
from __future__ import unicode_literals
import datetime
import re
import sys
import warnings
from django.conf import settings... | mit | -2,545,230,625,577,020,400 | 41.470745 | 117 | 0.637235 | false |
anas-taji/sale-workflow | sale_sourced_by_line/model/sale.py | 33 | 2963 | # -*- coding: utf-8 -*-
#
#
# Author: Guewen Baconnier, Yannick Vaucher
# Copyright 2013-2015 Camptocamp SA
#
# 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, either version... | agpl-3.0 | -6,150,837,192,120,776,000 | 33.858824 | 78 | 0.617955 | false |
blitzmann/Pyfa | eos/utils/stats.py | 1 | 2381 | # ===============================================================================
# Copyright (C) 2010 Diego Duclos
#
# This file is part of eos.
#
# eos 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, ... | gpl-3.0 | 253,944,888,759,681,920 | 33.014286 | 81 | 0.582108 | false |
chrisdew/pyparsing-autocomplete | examples/urlExtractor.py | 16 | 1749 | # URL extractor
# Copyright 2004, Paul McGuire
from pyparsing import Literal,Suppress,CharsNotIn,CaselessLiteral,\
Word,dblQuotedString,alphanums,SkipTo
import urllib
import pprint
# Define the pyparsing grammar for a URL, that is:
# URLlink ::= <a href= URL>linkText</a>
# URL ::= doubleQuotedSt... | mit | 2,925,555,085,771,994,600 | 39.642857 | 89 | 0.697541 | false |
lidavidm/sympy | sympy/core/tests/test_expr.py | 3 | 54640 | from __future__ import division
from sympy import (Add, Basic, S, Symbol, Wild, Float, Integer, Rational, I,
sin, cos, tan, exp, log, nan, oo, sqrt, symbols, Integral, sympify,
WildFunction, Poly, Function, Derivative, Number, pi, NumberSymbol, zoo,
Piecewise, Mul, Pow, nsimplify, ratsimp, trigsimp, radsim... | bsd-3-clause | -2,231,647,852,518,754,800 | 32.378131 | 92 | 0.537793 | false |
nlalevee/spark | python/pyspark/ml/tuning.py | 6 | 26126 | #
# 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 | 726,195,857,752,410,100 | 35.488827 | 100 | 0.625086 | false |
antonve/s4-project-mooc | common/lib/xmodule/xmodule/tests/test_course_module.py | 2 | 15329 | import unittest
from datetime import datetime, timedelta
from fs.memoryfs import MemoryFS
from mock import Mock, patch
import itertools
from xblock.runtime import KvsFieldData, DictKeyValueStore
import xmodule.course_module
from xmodule.modulestore.xml import ImportSystem, XMLModuleStore
from opaque_keys.edx.locati... | agpl-3.0 | 1,105,887,058,775,413,200 | 42.797143 | 124 | 0.637093 | false |
gnychis/gnuradio-3.5.0-dmr | gnuradio-core/src/python/gnuradio/gr/qa_fsk_stuff.py | 11 | 2664 | #!/usr/bin/env python
#
# Copyright 2004,2007,2010 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at you... | gpl-3.0 | 5,042,378,309,125,066,000 | 34.52 | 95 | 0.587462 | false |
pawaranand/phr-frappe | frappe/website/template.py | 16 | 2988 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import strip_html
from frappe.website.utils import scrub_relative_urls
from jinja2.utils import concat
from jinja2 import meta
import re
def r... | mit | -8,699,666,599,041,346,000 | 32.954545 | 95 | 0.661647 | false |
percyfal/snakemakelib-core | snakemakelib/plot/bokeh/color.py | 1 | 1126 | # Copyright (C) 2015 by Per Unneberg
import math
import pandas.core.common as com
from bokeh.palettes import brewer as bokeh_brewer
from .palettes import brewer as snakemakelib_brewer
import logging
logger = logging.getLogger(__name__)
MINSIZE = 3
MAXSIZE = 9 # FIXME: some palettes have 9 as max, some 11
brewer = b... | mit | -7,536,610,641,493,095,000 | 28.631579 | 76 | 0.666075 | false |
jacinda/ant | playgame.py | 1 | 20674 | #!/usr/bin/env python
from __future__ import print_function
import traceback
import sys
import os
import time
from optparse import OptionParser, OptionGroup
import random
import cProfile
import visualizer.visualize_locally
import json
try:
from StringIO import StringIO
except ImportError:
from io import StringI... | gpl-2.0 | 5,618,681,464,800,026,000 | 43.652268 | 150 | 0.549918 | false |
jjas0nn/solvem | tensorflow/lib/python2.7/site-packages/google/protobuf/internal/symbol_database_test.py | 43 | 5386 | #! /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 ... | mit | 4,791,155,438,559,791,000 | 40.114504 | 78 | 0.735797 | false |
Nowheresly/odoo | openerp/addons/base/ir/ir_logging.py | 326 | 1882 | ##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014 OpenERP SA (<http://www.openerp.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Publi... | agpl-3.0 | 4,807,216,048,465,163,000 | 39.913043 | 94 | 0.608927 | false |
sakura-internet/saklient.python | saklient/errors/exceptionfactory.py | 1 | 32200 | # -*- coding:utf-8 -*-
# This code is automatically transpiled by Saklient Translator
import six
from .httpexception import HttpException
from .httpbadgatewayexception import HttpBadGatewayException
from .httpbadrequestexception import HttpBadRequestException
from .httpconflictexception import HttpConflictException
f... | mit | -3,158,773,387,428,685,300 | 59.754717 | 104 | 0.747857 | false |
ankurjimmy/catawampus | tr/download.py | 5 | 18628 | #!/usr/bin/python
# Copyright 2011 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 appli... | apache-2.0 | -6,942,379,288,349,571,000 | 34.823077 | 85 | 0.6567 | false |
guorendong/iridium-browser-ubuntu | third_party/skia/tools/bench_pictures_cfg_helper.py | 44 | 3148 | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
""" Helper functions to be used in bench_pictures.cfg. """
def Config(**kwargs):
config = {}
for key in kwargs:
config[key] = kwargs[key]
re... | bsd-3-clause | -7,909,050,794,891,284,000 | 28.420561 | 80 | 0.691233 | false |
Syrcon/servo | tests/wpt/web-platform-tests/tools/pywebsocket/src/test/test_util.py | 449 | 7538 | #!/usr/bin/env python
#
# Copyright 2011, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | mpl-2.0 | 4,311,689,035,217,643,000 | 36.69 | 76 | 0.640356 | false |
sankhesh/VTK | Filters/Modeling/Testing/Python/Hyper.py | 9 | 5170 | #!/usr/bin/env python
import os
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Create the RenderWindow, Renderer and interactive renderer
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.SetMultiSamples(0)
renWin.AddRenderer(ren1)
ire... | bsd-3-clause | 7,975,878,100,125,013,000 | 23.386792 | 61 | 0.776402 | false |
sss-freshbyte/blog | node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py | 1361 | 45045 | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
r"""Code to validate and convert settings of the Microsoft build tools.
This file contains code to validate and convert settings of the Microsoft
build tools. Th... | mit | -7,070,577,698,995,857,000 | 40.099453 | 80 | 0.64924 | false |
vinegret/youtube-dl | youtube_dl/extractor/vyborymos.py | 73 | 2031 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_str
class VyboryMosIE(InfoExtractor):
_VALID_URL = r'https?://vybory\.mos\.ru/(?:#precinct/|account/channels\?.*?\bstation_id=)(?P<id>\d+)'
_TESTS = [{
'url': 'http://vybory.mos.ru/#p... | unlicense | 2,872,991,913,881,644,500 | 34.8 | 113 | 0.506348 | false |
jelugbo/ddi | common/djangoapps/course_groups/tests/test_cohorts.py | 12 | 19917 | import django.test
from django.contrib.auth.models import User
from django.conf import settings
from django.http import Http404
from django.test.utils import override_settings
from mock import call, patch
from student.models import CourseEnrollment
from student.tests.factories import UserFactory
from course_groups.mo... | agpl-3.0 | -5,519,821,087,430,878,000 | 36.36773 | 120 | 0.608375 | false |
widdowquinn/KGML | KGML_parser.py | 1 | 7550 | # (c) The James Hutton Institute 2013
# Author: Leighton Pritchard
#
# Contact:
# leighton.pritchard@hutton.ac.uk
#
# Leighton Pritchard,
# Information and Computing Sciences,
# James Hutton Institute,
# Errol Road,
# Invergowrie,
# Dundee,
# DD6 9LH,
# Scotland,
# UK
#
# The MIT License
#
# Copyright (c) 2010-2014 Th... | mit | 7,659,131,650,805,647,000 | 33.318182 | 79 | 0.61298 | false |
eegroopm/pyLATTICE | gui/pyLATTICE.py | 1 | 74321 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
pyLATTICE is...
"""
from __future__ import division #necessary for python2
from __future__ import unicode_literals
# define authorship information
__authors__ = ['Evan Groopman', 'Thomas Bernatowicz']
__author__ = ','.join(__authors__)
__credits__... | gpl-2.0 | -595,474,331,354,563,100 | 53.072646 | 240 | 0.610114 | false |
rsjohnco/rez | src/rez/packages_.py | 1 | 19212 | from rez.package_repository import package_repository_manager
from rez.package_resources_ import PackageFamilyResource, PackageResource, \
VariantResource, package_family_schema, package_schema, variant_schema, \
package_release_keys
from rez.package_serialise import dump_package_data
from rez.utils.data_utils ... | gpl-3.0 | -1,390,221,877,218,622,700 | 31.617997 | 86 | 0.612846 | false |
Shaswat27/scipy | scipy/optimize/tests/test__differential_evolution.py | 1 | 17376 | """
Unit tests for the differential global minimization algorithm.
"""
from scipy.optimize import _differentialevolution
from scipy.optimize._differentialevolution import DifferentialEvolutionSolver
from scipy.optimize import differential_evolution
import numpy as np
from scipy.optimize import rosen
from numpy.testing ... | bsd-3-clause | -8,830,625,670,992,213,000 | 41.072639 | 80 | 0.53102 | false |
GheRivero/ansible | lib/ansible/parsing/splitter.py | 49 | 10682 | # (c) 2014 James Cammarata, <jcammarata@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any late... | gpl-3.0 | -1,751,901,497,148,542,000 | 39.157895 | 129 | 0.599232 | false |
seeminglee/pyglet64 | experimental/console.py | 29 | 3991 | #!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
import code
import sys
import traceback
import pyglet.event
import pyglet.text
from pyglet.window import key
from pyglet.gl import *
class Console(object):
def __init__(self, width, height, globals=None, locals=None):
... | bsd-3-clause | 6,713,850,565,843,153,000 | 27.304965 | 93 | 0.541468 | false |
javier-ruiz-b/docker-rasppi-images | raspberry-google-home/env/lib/python3.7/site-packages/rsa/__init__.py | 1 | 1542 | # Copyright 2011 Sybren A. Stüvel <sybren@stuvel.eu>
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | apache-2.0 | 2,662,950,397,415,766,500 | 37.525 | 79 | 0.726152 | false |
BitWriters/Zenith_project | zango/lib/python3.5/site-packages/django/core/mail/__init__.py | 230 | 4701 | """
Tools for sending email.
"""
from __future__ import unicode_literals
from django.conf import settings
from django.utils.module_loading import import_string
# Imported for backwards compatibility, and for the sake
# of a cleaner namespace. These symbols used to be in
# django/core/mail.py before the introduction o... | mit | -3,802,460,343,842,118,700 | 41.351351 | 84 | 0.677941 | false |
sdphome/UHF_Reader | rfs/rootfs/usr/lib/python2.7/encodings/mac_iceland.py | 593 | 13754 | """ Python Character Mapping Codec mac_iceland generated from 'MAPPINGS/VENDORS/APPLE/ICELAND.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,input... | gpl-3.0 | -8,900,568,713,718,267,000 | 43.801303 | 116 | 0.543769 | false |
ZhangXinNan/tensorflow | tensorflow/contrib/signal/python/ops/spectral_ops.py | 27 | 12618 | # 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 | 7,066,219,557,007,325,000 | 42.965157 | 80 | 0.677366 | false |
najmacherrad/master_thesis | Waltz/plotcomparaisons_waltz.py | 1 | 7577 | # Waltz
# Compare results between wild type and mutant
# coding=utf-8
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import csv
from scipy import stats
from pylab import plot, show, savefig, xlim, figure, \
hold, ylim, legend, boxplot, setp, axes
import pylab
from numpy import *... | mit | 942,647,626,473,666,200 | 30.836134 | 268 | 0.599974 | false |
kurtrwall/wagtail | wagtail/utils/deprecation.py | 2 | 1995 | from __future__ import absolute_import, unicode_literals
import warnings
class RemovedInWagtail17Warning(DeprecationWarning):
pass
removed_in_next_version_warning = RemovedInWagtail17Warning
class RemovedInWagtail18Warning(PendingDeprecationWarning):
pass
class ThisShouldBeAList(list):
"""
Some... | bsd-3-clause | 5,485,424,418,171,346,000 | 31.704918 | 88 | 0.665163 | false |
paulballesty/zxcvbn | data-scripts/count_wiktionary.py | 16 | 2670 | #!/usr/bin/python
import os
import sys
import codecs
import operator
from unidecode import unidecode
def usage():
return '''
This script extracts words and counts from a 2006 wiktionary word frequency study over American
television and movies. To use, first visit the study and download, as .html files, all 26 of... | mit | 4,693,949,418,690,449,000 | 32.375 | 96 | 0.601873 | false |
LighthouseHPC/lighthouse | src/Dlighthouse/lighthouse/views/lapack_sylvester.py | 2 | 8761 | import string, types, sys, os, StringIO, re, shlex, json, zipfile
from collections import OrderedDict
from itertools import chain
from django.contrib.auth.decorators import login_required
from django.core.servers.basehttp import FileWrapper
from django.http import HttpResponse, HttpResponseNotFound
from django.shortcut... | mit | 4,027,494,882,457,814,500 | 43.472081 | 172 | 0.622189 | false |
deadlyraptor/reels | spreadchimp.py | 1 | 2493 | import os
import csv
import xlrd
# Assumes the directory with the workbook is relative to the script's location.
directory = 'workbooks/'
file = os.listdir(directory)[0]
workbook = (f'{directory}/{file}')
# Preps the workbook that contains the information desired.
wb = xlrd.open_workbook(workbook)
sh = wb.sheet_by_i... | mit | 7,726,040,187,664,603,000 | 34.112676 | 79 | 0.546731 | false |
satishgoda/bokeh | examples/plotting/file/unemployment.py | 46 | 1846 | from collections import OrderedDict
import numpy as np
from bokeh.plotting import ColumnDataSource, figure, show, output_file
from bokeh.models import HoverTool
from bokeh.sampledata.unemployment1948 import data
# Read in the data with pandas. Convert the year column to string
data['Year'] = [str(x) for x in data['Y... | bsd-3-clause | -3,850,662,520,255,630,000 | 27.84375 | 82 | 0.667389 | false |
birryree/servo | components/script/dom/bindings/codegen/parser/tests/test_conditional_dictionary_member.py | 120 | 3162 | def WebIDLTest(parser, harness):
parser.parse("""
dictionary Dict {
any foo;
[ChromeOnly] any bar;
};
""")
results = parser.finish()
harness.check(len(results), 1, "Should have a dictionary")
members = results[0].members;
harness.check(len(members), 2, "Should have tw... | mpl-2.0 | -8,570,901,832,487,830,000 | 27.745455 | 80 | 0.568627 | false |
firebitsbr/raspberry_pwn | src/pentest/voiper/fuzzer/fuzzers.py | 8 | 10273 | '''
This file is part of VoIPER.
VoIPER is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
VoIPER is distributed in the hope that it will be u... | gpl-3.0 | 7,845,512,082,045,229,000 | 33.129568 | 141 | 0.591064 | false |
bakkou-badri/dataminingproject | env/lib/python2.7/site-packages/numpy/polynomial/polynomial.py | 14 | 47103 | """
Objects for dealing with polynomials.
This module provides a number of objects (mostly functions) useful for
dealing with polynomials, including a `Polynomial` class that
encapsulates the usual arithmetic operations. (General information
on how this module represents and works with polynomial objects is in
the do... | gpl-2.0 | 4,744,763,754,743,930,000 | 30.54923 | 79 | 0.590833 | false |
ville-k/tensorflow | tensorflow/contrib/stateless/python/kernel_tests/stateless_random_ops_test.py | 54 | 3287 | # 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 | 7,203,800,734,959,563,000 | 38.130952 | 80 | 0.648312 | false |
tony810430/flink | flink-end-to-end-tests/flink-python-test/python/python_job.py | 2 | 3480 | ################################################################################
# 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... | apache-2.0 | 874,255,062,469,409,500 | 39.941176 | 102 | 0.626724 | false |
lu18887/perhapsgeekblog | perhapsgeek/zinnia/xmlrpc/__init__.py | 14 | 1235 | """XML-RPC methods for Zinnia"""
ZINNIA_XMLRPC_PINGBACK = [
('zinnia.xmlrpc.pingback.pingback_ping',
'pingback.ping'),
('zinnia.xmlrpc.pingback.pingback_extensions_get_pingbacks',
'pingback.extensions.getPingbacks')]
ZINNIA_XMLRPC_METAWEBLOG = [
('zinnia.xmlrpc.metaweblog.get_users_blogs',
... | mit | 6,761,041,865,636,405,000 | 33.305556 | 73 | 0.688259 | false |
zhiyanfoo/crunch-shake | crunch-shake/utils.py | 2 | 1649 | import json
import re
from collections import namedtuple
import string
# INPUT OUTPUT
def file_to_list(path):
with open(path, 'r') as inputFile:
return inputFile.readlines()
def json_file_to_dict(path):
with open(path, 'r') as jsonFile:
return json.load(jsonFile)
def to_json(x, path):
wi... | mit | -944,120,410,777,327,200 | 25.596774 | 76 | 0.639782 | false |
huijunwu/heron | heron/instance/src/python/instance/st_heron_instance.py | 5 | 17184 | #!/usr/bin/env python
# -*- encoding: 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... | apache-2.0 | -3,452,371,859,321,656,300 | 42.503797 | 99 | 0.689828 | false |
skulbrane/googletest | test/gtest_env_var_test.py | 2408 | 3487 | #!/usr/bin/env python
#
# Copyright 2008, 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... | bsd-3-clause | -2,378,697,841,585,359,000 | 32.854369 | 79 | 0.708632 | false |
mancoast/CPythonPyc_test | cpython/253_test_dummy_thread.py | 70 | 7192 | """Generic thread tests.
Meant to be used by dummy_thread and thread. To allow for different modules
to be used, test_main() can be called with the module to use as the thread
implementation as its sole argument.
"""
import dummy_thread as _thread
import time
import Queue
import random
import unittest
from test impo... | gpl-3.0 | 6,847,886,768,873,957,000 | 38.516484 | 83 | 0.596079 | false |
liam-middlebrook/yaml-cpp.new-api | test/gmock-1.7.0/gtest/test/gtest_throw_on_failure_test.py | 2917 | 5766 | #!/usr/bin/env python
#
# Copyright 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... | mit | 1,361,324,784,746,420,200 | 32.719298 | 79 | 0.656261 | false |
acuzzio/GridQuantumPropagator | src/quantumpropagator/TDPropagator.py | 1 | 30840 | ''' this is the module for the hamiltonian '''
import numpy as np
import os
import pickle
import datetime
from quantumpropagator import (printDict, printDictKeys, loadInputYAML, bring_input_to_AU,
warning, labTranformA, gaussian2, makeJustAnother2DgraphComplex,
fromHartreetoCmMin1, makeJustAnother2Dg... | gpl-3.0 | 6,964,923,245,122,360,000 | 41.016349 | 328 | 0.576621 | false |
yamt/neutron | quantum/plugins/cisco/tests/unit/test_database.py | 1 | 25556 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011, Cisco Systems, 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-... | apache-2.0 | -817,420,369,707,387,600 | 38.621705 | 79 | 0.558382 | false |
clangen/projectM-musikcube | src/WinLibs/freetype-2.3.5/src/tools/glnames.py | 16 | 103307 | #!/usr/bin/env python
#
#
# FreeType 2 glyph name builder
#
# Copyright 1996-2000, 2003, 2005, 2007 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT. ... | lgpl-2.1 | 8,445,638,624,428,069,000 | 18.558311 | 92 | 0.793015 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/connectivity_hop.py | 1 | 2114 | # 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 | 5,632,207,756,155,749,000 | 33.655738 | 76 | 0.563387 | false |
nhmc/xastropy | xastropy/obs/x_getsdssimg.py | 1 | 4285 | #;+
#; NAME:
#; x_getsdssimg
#; Version 1.1
#;
#; PURPOSE:
#; Returns an Image by querying the SDSS website
#; Will use DSS2-red as a backup
#;
#; CALLING SEQUENCE:
#;
#; INPUTS:
#;
#; RETURNS:
#;
#; OUTPUTS:
#;
#; OPTIONAL KEYWORDS:
#;
#; OPTIONAL OUTPUTS:
#;
#; COMMENTS:
#;
#; EXAMPLES:
#;
#; PROCEDURES/... | bsd-3-clause | -1,572,045,953,393,898,200 | 22.288043 | 142 | 0.574329 | false |
sanguinariojoe/FreeCAD | src/Mod/Draft/draftfunctions/mirror.py | 9 | 4578 | # ***************************************************************************
# * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> *
# * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> *
# * Copyright (c) 2020 Carlo Pavan <carlopav@gmail.com> *
# * Co... | lgpl-2.1 | 2,656,797,352,616,214,500 | 35.333333 | 77 | 0.562473 | false |
GoogleCloudPlatform/PerfKitBenchmarker | perfkitbenchmarker/data/edw/multistream_multiprofile_driver.py | 1 | 2591 | """Driver for running multiple profiles concurrently against a cluster.
The list of profiles are passed via flag each of which are defined in the
profile_details module.
"""
__author__ = 'p3rf@google.com'
import json
import logging
from multiprocessing import Process
from multiprocessing import Queue
import time
fr... | apache-2.0 | -1,865,130,433,890,418,700 | 27.788889 | 80 | 0.699344 | false |
RiccardoPecora/MP | Lib/encodings/cp775.py | 93 | 35429 | """ Python Character Mapping Codec cp775 generated from 'VENDORS/MICSFT/PC/CP775.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_map)
def decode(self,input,e... | gpl-3.0 | 3,162,141,460,249,367,600 | 48.830703 | 103 | 0.593469 | false |
StephaneP/volatility | volatility/plugins/mac/arp.py | 58 | 1398 | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility 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 ... | gpl-2.0 | 5,507,235,411,612,354,000 | 31.511628 | 76 | 0.700286 | 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.