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 |
|---|---|---|---|---|---|---|---|---|---|---|
frederick623/HTI | omm/ced_part.py | 1 | 5118 | import os
import sys
import sqlite3
import decimal
import math
import datetime
import ast
import csv
def adapt_decimal(d):
return str(d)
def convert_decimal(s):
return decimal.Decimal(s)
def question_marks(st):
question_marks = '?'
for i in range(0, len(st.split(','))-1):
question_marks = question_marks + ",?"... | apache-2.0 | -7,414,122,438,902,704,000 | 33.823129 | 359 | 0.702618 | false |
cheddartv/stockstream.live | webapp/robinhood/robinhood_api.py | 1 | 1709 | import requests
import httputil
import traceback
from datetime import datetime, timedelta
def get_symbol_to_quotes(symbols):
if len(symbols) == 0:
return {}
symbol_to_quote = {}
try:
quotes = httputil.get_json_object_from_url("https://api.robinhood.com/quotes/?symbols={}".format(",".join(s... | mit | 8,423,388,752,631,609,000 | 28.982456 | 135 | 0.645992 | false |
mayavanand/RMMAFinalProject | azimuth/features/featurization.py | 1 | 26462 | import pandas
import time
import sklearn
import numpy as np
import Bio.SeqUtils as SeqUtil
import Bio.Seq as Seq
import util
import sys
import Bio.SeqUtils.MeltingTemp as Tm
import pickle
import itertools
def featurize_data(data, learn_options, Y, gene_position, pam_audit=True, length_audit=True):
'''
assumes ... | bsd-3-clause | 2,874,122,551,267,029,000 | 42.738843 | 174 | 0.613295 | false |
sheppard/django-rest-framework | rest_framework/utils/encoders.py | 88 | 2310 | """
Helper classes for parsers.
"""
from __future__ import unicode_literals
import datetime
import decimal
import json
import uuid
from django.db.models.query import QuerySet
from django.utils import six, timezone
from django.utils.encoding import force_text
from django.utils.functional import Promise
from rest_fram... | bsd-2-clause | 4,059,887,957,966,024,700 | 35.09375 | 78 | 0.619481 | false |
RockySteveJobs/python-for-android | python3-alpha/python3-src/Lib/test/test_unary.py | 179 | 1752 | """Test compiler changes for unary ops (+, -, ~) introduced in Python 2.2"""
import unittest
from test.support import run_unittest
class UnaryOpTestCase(unittest.TestCase):
def test_negative(self):
self.assertTrue(-2 == 0 - 2)
self.assertEqual(-0, 0)
self.assertEqual(--2, 2)
self.... | apache-2.0 | 8,663,374,301,929,281,000 | 29.206897 | 76 | 0.553082 | false |
KerstenDoering/PubMedPortable | full_text_index/RunXapian.py | 4 | 4217 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Copyright (c) 2014, Kersten Doering <kersten.doering@gmail.com>, Christian Senger <der.senger@googlemail.com>
"""
#Kersten HowTo:
#"python RunXapian.py -x" for indexing and searching
#"python RunXapian.py -f" for indexing
#"python RunXapian.py" for searching
#"pyth... | isc | -789,354,384,519,230,300 | 42.927083 | 179 | 0.664928 | false |
lseyesl/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/tool/commands/rebaseline.py | 119 | 23221 | # Copyright (c) 2010 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 ... | bsd-3-clause | -4,921,081,101,892,112,000 | 45.816532 | 184 | 0.652599 | false |
Scapogo/zipline | zipline/finance/blotter.py | 5 | 14953 | #
# Copyright 2015 Quantopian, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 | -4,163,344,120,631,693,000 | 35.031325 | 79 | 0.555942 | false |
Sergiojimenez/criticas_del_doctor_Mabuse | node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py | 886 | 131038 | # 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.
import copy
import ntpath
import os
import posixpath
import re
import subprocess
import sys
import gyp.common
import gyp.easy_xml as easy_xml
import gyp.generator... | mit | -3,128,146,243,249,245,000 | 36.883203 | 134 | 0.643912 | false |
laperry1/android_external_chromium_org | components/crash/tools/generate_breakpad_symbols.py | 43 | 7519 | #!/usr/bin/env python
# Copyright 2013 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.
"""A tool to generate symbols for a binary suitable for breakpad.
Currently, the tool only supports Linux, Android, and Mac. Support f... | bsd-3-clause | -3,196,897,940,947,725,000 | 28.030888 | 78 | 0.634526 | false |
BizzCloud/PosBox | addons/auth_ldap/users_ldap.py | 12 | 10518 | ##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Publ... | agpl-3.0 | 8,509,495,168,126,023,000 | 36.971119 | 99 | 0.566267 | false |
pascalchevrel/bedrock | tests/functional/firefox/test_all.py | 4 | 3785 | # -*- coding: utf-8 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from pages.firefox.all import FirefoxAllPage
@pytest.mark.smoke
@pytest.mark.n... | mpl-2.0 | 2,416,188,906,996,450,000 | 36.435644 | 114 | 0.746628 | false |
qlands/onadata | onadata/apps/main/tests/test_form_enter_data.py | 5 | 5453 | import os
import re
import requests
from urlparse import urlparse
from time import time
from httmock import urlmatch, HTTMock
from django.test import RequestFactory
from django.core.urlresolvers import reverse
from django.core.validators import URLValidator
from django.conf import settings
from django.contrib.auth.mo... | bsd-2-clause | -211,227,531,236,815,650 | 36.606897 | 79 | 0.621493 | false |
wbsavage/shinken | shinken/objects/module.py | 2 | 2515 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2012:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
# Gregory Starck, g.starck@gmail.com
# Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redis... | agpl-3.0 | 583,603,423,702,710,500 | 29.670732 | 90 | 0.617097 | false |
jc0n/scrapy-webdriver | scrapy_webdriver/selector.py | 5 | 3473 | import re
try:
from scrapy.selector import Selector, XPathSelectorList
except ImportError: # scrapy < 0.20
from scrapy.selector import XPathSelector as Selector, XPathSelectorList
_UNSUPPORTED_XPATH_ENDING = re.compile(r'.*/((@)?([^/()]+)(\(\))?)$')
class WebdriverXPathSelector(Selector):
"""Scrapy sel... | mit | 8,112,770,186,489,613,000 | 35.177083 | 79 | 0.636337 | false |
ForensicTools/GRREAT-475_2141-Chaigon-Failey-Siebert | client/vfs_handlers/registry.py | 3 | 15249 | #!/usr/bin/env python
"""Implement access to the windows registry."""
import ctypes
import ctypes.wintypes
import exceptions
import os
import stat
import StringIO
import _winreg
from grr.client import vfs
from grr.lib import rdfvalue
from grr.lib import utils
# Difference between 1 Jan 1601 and 1 Jan 1970.
WIN_UNI... | apache-2.0 | -5,494,296,715,920,350,000 | 31.935205 | 80 | 0.635779 | false |
jetyang2005/elastalert | DBUtils-1.2/DBUtils/Tests/TestSimplePooledPg.py | 1 | 4301 | """Test the SimplePooledPg module.
Note:
We don't test performance here, so the test does not predicate
whether SimplePooledPg actually will help in improving performance or not.
Copyright and credit info:
* This test was contributed by Christoph Zwerschke
"""
import sys
import unittest
__version__ = '1.2'
# Th... | apache-2.0 | 3,799,927,977,707,635,700 | 29.503546 | 74 | 0.606138 | false |
adityahase/frappe | frappe/integrations/doctype/paytm_settings/paytm_settings.py | 2 | 5857 | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import json
import requests
from six.moves.urllib.parse import urlencode
import frappe
from frappe.model.document import Document
from frappe imp... | mit | 4,123,334,892,116,200,400 | 35.842767 | 139 | 0.743896 | false |
kevinlondon/sentry | src/sentry/models/authidentity.py | 25 | 1553 | from __future__ import absolute_import, print_function
from datetime import timedelta
from django.conf import settings
from django.db import models
from django.utils import timezone
from jsonfield import JSONField
from sentry.db.models import FlexibleForeignKey, Model, sane_repr
class AuthIdentity(Model):
user ... | bsd-3-clause | 2,472,069,287,148,458,500 | 32.76087 | 81 | 0.665164 | false |
wanghaven/nupic | examples/opf/experiments/multistep/simple_0/description.py | 38 | 1588 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, 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 | 5,709,055,782,308,783,000 | 40.789474 | 76 | 0.622166 | false |
Plain-Andy-legacy/android_external_chromium_org | third_party/boringssl/update_gypi_and_asm.py | 26 | 7225 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can b
# found in the LICENSE file.
"""Enumerates the BoringSSL source in src/ and generates two gypi files:
boringssl.gypi and boringssl_tests.gypi."""
import os
import subprocess
import sys... | bsd-3-clause | 2,941,100,633,871,412,700 | 29.104167 | 80 | 0.635571 | false |
kiith-sa/QGIS | python/plugins/processing/script/scripts/Extract_raster_values_to_CSV.py | 4 | 3177 | ##[Example scripts]=group
##Input_raster=raster
##Input_vector=vector
##Transform_vector_to_raster_CRS=boolean
##Output_table=output table
import os
from osgeo import gdal, ogr, osr
from processing.core.TableWriter import TableWriter
from processing.core.GeoAlgorithmExecutionException import \
GeoAlgorithmExec... | gpl-2.0 | -5,375,698,361,827,367,000 | 29.257143 | 71 | 0.686182 | false |
zhukaixy/kbengine | kbe/src/lib/python/Lib/ctypes/macholib/dyld.py | 152 | 4907 | """
dyld emulation
"""
import os
from ctypes.macholib.framework import framework_info
from ctypes.macholib.dylib import dylib_info
from itertools import *
__all__ = [
'dyld_find', 'framework_find',
'framework_info', 'dylib_info',
]
# These are the defaults as per man dyld(1)
#
DEFAULT_FRAMEWORK_FALLBACK = [
... | lgpl-3.0 | -7,501,898,828,052,545,000 | 30.056962 | 103 | 0.644997 | false |
ycaihua/kbengine | kbe/src/lib/python/Doc/includes/mp_newtype.py | 52 | 1940 | from multiprocessing import freeze_support
from multiprocessing.managers import BaseManager, BaseProxy
import operator
##
class Foo:
def f(self):
print('you called Foo.f()')
def g(self):
print('you called Foo.g()')
def _h(self):
print('you called Foo._h()')
# A simple generator fu... | lgpl-3.0 | 4,788,646,671,086,260,000 | 20.797753 | 76 | 0.599485 | false |
kdaniels/cobbler | cobbler/autoinstall_manager.py | 16 | 11460 | import os
from cobbler import autoinstallgen
from cobbler import clogger
from cobbler import utils
from cobbler.cexceptions import CX
TEMPLATING_ERROR = 1
KICKSTART_ERROR = 2
class AutoInstallationManager:
"""
Manage automatic installation templates, snippets and final files
"""
def __init__(self, ... | gpl-2.0 | 7,704,692,936,927,432,000 | 36.45098 | 121 | 0.622949 | false |
RockySteveJobs/python-for-android | python3-alpha/python3-src/Lib/test/test_descr.py | 46 | 148012 | import builtins
import sys
import types
import math
import unittest
from copy import deepcopy
from test import support
class OperatorsTest(unittest.TestCase):
def __init__(self, *args, **kwargs):
unittest.TestCase.__init__(self, *args, **kwargs)
self.binops = {
'add': '+',
... | apache-2.0 | 4,533,487,974,873,065,000 | 33.096291 | 91 | 0.478907 | false |
RuthAngus/granola | granola/download.py | 1 | 1294 | # Downloading Kepler light curves
import os
import pandas as pd
import kplr
import kepler_data as kd
def get_lc(id, KPLR_DIR="/Users/ruthangus/.kplr/data/lightcurves"):
"""
Downloads the kplr light curve and loads x, y and yerr.
"""
kid = str(int(id)).zfill(9)
path = os.path.join(KPLR_DIR, "{}... | mit | 4,559,383,503,730,019,300 | 28.409091 | 72 | 0.553323 | false |
phdowling/scikit-learn | examples/neighbors/plot_approximate_nearest_neighbors_scalability.py | 225 | 5719 | """
============================================
Scalability of Approximate Nearest Neighbors
============================================
This example studies the scalability profile of approximate 10-neighbors
queries using the LSHForest with ``n_estimators=20`` and ``n_candidates=200``
when varying the number of sa... | bsd-3-clause | -2,962,687,820,999,214,600 | 35.660256 | 80 | 0.685435 | false |
zsjohny/jumpserver | apps/terminal/migrations/0016_commandstorage_replaystorage.py | 3 | 2483 | # Generated by Django 2.2.5 on 2019-11-22 10:07
import common.fields.model
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('terminal', '0015_auto_20190923_1529'),
]
operations = [
migrations.CreateModel(
name='Com... | gpl-2.0 | 33,055,008,924,693,760 | 51.829787 | 235 | 0.574305 | false |
sharad1126/owtf | framework/wrappers/set/spear_phishing.py | 3 | 2650 | #!/usr/bin/env python
'''
Description:
This is the handler for the Social Engineering Toolkit (SET) trying to overcome the limitations of set-automate
'''
from framework.dependency_management.dependency_resolver import BaseComponent
from framework.lib.general import *
import time
SCRIPT_DELAY = 2
class SpearPhishing... | bsd-3-clause | -739,281,973,926,722,800 | 41.063492 | 120 | 0.584528 | false |
0x46616c6b/ansible | lib/ansible/modules/cloud/amazon/lambda_event.py | 21 | 14656 | #!/usr/bin/python
# (c) 2016, Pierre Jodouin <pjodouin@virtualcomputing.solutions>
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | gpl-3.0 | 5,982,029,798,756,551,000 | 33.323185 | 134 | 0.612923 | false |
nickhand/nbodykit | nbodykit/algorithms/pair_counters/mocksurvey.py | 2 | 8301 | from .base import PairCountBase, verify_input_sources
import numpy
import logging
class SurveyDataPairCount(PairCountBase):
r"""
Count (weighted) pairs of objects from a survey data catalog
as a function of :math:`r`, :math:`(r,\mu)`, :math:`(r_p, \pi)`, or
:math:`\theta` using the :mod:`Corrfunc` pac... | gpl-3.0 | 6,912,174,794,474,619,000 | 42.689474 | 117 | 0.620648 | false |
xyproto/b-tk.core | Testing/Python/AcquisitionUnitConverterTest.py | 4 | 7026 | import btk
import unittest
import _TDDConfigure
class AcquisitionUnitConverterTest(unittest.TestCase):
def test_NoInputNoConversion(self):
uc = btk.btkAcquisitionUnitConverter()
uc.Update()
output = uc.GetOutput()
self.assertEqual(output.GetPointUnit(btk.btkPoint.Marker), 'mm')
... | bsd-3-clause | -4,042,600,205,434,846,700 | 43.757962 | 123 | 0.621264 | false |
benthomasson/fsm-designer | app/fsm_designer/features/steps/diff.py | 1 | 1393 |
from behave import when, then
from code_generation import cd
import fsm_designer.cli
import os
HERE = os.path.dirname(__file__)
@given(u'two empty fsm designs')
def step_impl(context):
context.designA = os.path.join(HERE, 'X')
context.designB = os.path.join(HERE, 'Y')
@given(u'two simple fsm designs')
def ... | gpl-2.0 | 4,716,798,309,305,387,000 | 26.313725 | 115 | 0.678392 | false |
bright-sparks/chromium-spacewalk | tools/telemetry/telemetry/page/actions/action_runner.py | 42 | 25683 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import time
from telemetry.page.actions.javascript_click import ClickElementAction
from telemetry.page.actions.loop import LoopAction
from telemetry.page.ac... | bsd-3-clause | -4,321,768,469,100,185,600 | 42.383446 | 80 | 0.684616 | false |
asce1062/MAHDI-ROM_external_skia | tools/sanitize_source_files.py | 176 | 4852 | #!/usr/bin/env python
# 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.
"""Module that sanitizes source files with specified modifiers."""
import commands
import os
import sys
_FILE_EXTENSIONS_TO_SAN... | bsd-3-clause | -2,306,088,790,786,830,300 | 30.921053 | 80 | 0.627576 | false |
civisanalytics/ansible-modules-core | cloud/amazon/ec2_elb.py | 33 | 13968 | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | gpl-3.0 | 6,522,166,767,486,437,000 | 35.952381 | 239 | 0.61197 | false |
jose36/jmdl3 | servers/videoweed.py | 34 | 4492 | # -*- coding: iso-8859-1 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Conector para videoweed
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import re, urlparse, urllib, urllib2
import os
from ... | gpl-2.0 | -6,461,616,683,206,678,000 | 39.116071 | 217 | 0.62756 | false |
brianmhunt/SIWorldMap | werkzeug/testsuite/contrib/cache.py | 12 | 4277 | # -*- coding: utf-8 -*-
"""
werkzeug.testsuite.cache
~~~~~~~~~~~~~~~~~~~~~~~~
Tests the cache system
:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import os
import time
import unittest
import tempfile
import shutil
from werkzeug.testsuite import Werkzeug... | mit | -1,676,330,100,372,775,000 | 26.06962 | 73 | 0.541267 | false |
dimagol/trex-core | scripts/external_libs/elasticsearch/elasticsearch/client/cat.py | 2 | 17303 | from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH
class CatClient(NamespacedClient):
@query_params('h', 'help', 'local', 'master_timeout', 'v')
def aliases(self, name=None, params=None):
"""
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.ht... | apache-2.0 | 1,892,726,609,107,848,400 | 47.197772 | 98 | 0.635439 | false |
julen/translate | translate/convert/po2rc.py | 25 | 4848 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2002-2006,2008-2009 Zuza Software Foundation
#
# This file is part of the Translate Toolkit.
#
# 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 Fou... | gpl-2.0 | -2,737,706,688,628,444,000 | 39.4 | 93 | 0.649134 | false |
AgainFaster/django-wombat-authenticator | wombat_authenticator/migrations/0001_initial.py | 1 | 5385 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'WombatToken'
db.create_table('wombat_authenticator_wombattoken', (
('id', self.g... | bsd-3-clause | 5,484,024,159,179,232,000 | 64.682927 | 182 | 0.574373 | false |
kurokochin/blog-ricky | accounts/views.py | 11 | 1477 | from django.contrib.auth import (
authenticate,
get_user_model,
login,
logout,
)
from django.shortcuts import render, redirect
from .forms import UserLoginForm, UserRegisterForm
def login_view(request):
print(request.user.is_authenticated())
next = request.GET.get('next')
title = "Log... | mit | -2,586,214,672,311,190,500 | 26.886792 | 74 | 0.630332 | false |
veger/ansible | lib/ansible/utils/hashing.py | 112 | 3173 | # (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 | 4,825,076,555,575,213,000 | 31.377551 | 130 | 0.704066 | false |
alsmirn/adist | extinction/arenou.py | 1 | 13341 | """
Copyright (c) 2009, Alexey Smirnov
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 | 624,220,558,851,910,300 | 51.523622 | 79 | 0.548834 | false |
SophieIPP/ipp-macro-series-parser | ipp_macro_series_parser/denombrements_fiscaux/agregats_ipp.py | 1 | 36244 | # -*- coding: utf-8 -*-
# TAXIPP -- A French microsimulation model
# By: IPP <taxipp@ipp.eu>
#
# Copyright (C) 2012, 2013, 2014, 2015 IPP
# https://github.com/taxipp
#
# This file is part of TAXIPP.
#
# TAXIPP is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Publi... | gpl-3.0 | -8,067,504,156,015,008,000 | 50.132956 | 305 | 0.652762 | false |
simontakite/sysadmin | pythonscripts/learningPython/decoall-deco-any3.py | 1 | 1855 | # Class decorator factory: apply any decorator to all methods of a class
from types import FunctionType
from decotools import tracer, timer
def decorateAll(decorator):
def DecoDecorate(aClass):
for attr, attrval in aClass.__dict__.items():
if type(attrval) is FunctionType:
... | gpl-2.0 | 7,879,245,226,722,688,000 | 34.411765 | 85 | 0.58814 | false |
sserrot/champion_relationships | venv/Lib/site-packages/zmq/utils/garbage.py | 2 | 5935 | """Garbage collection thread for representing zmq refcount of Python objects
used in zero-copy sends.
"""
# Copyright (C) PyZMQ Developers
# Distributed under the terms of the Modified BSD License.
import atexit
import struct
from os import getpid
from collections import namedtuple
from threading import Thread, Eve... | mit | 6,066,775,982,827,767,000 | 28.675 | 94 | 0.552991 | false |
NeCTAR-RC/heat | contrib/docker/docker/resources/docker_container.py | 1 | 9891 | #
# Copyright (c) 2013 Docker, 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 requir... | apache-2.0 | -9,129,060,338,162,719,000 | 32.873288 | 79 | 0.565565 | false |
kcguo/daily | Alpha/baidu.py | 1 | 1028 | from selenium import webdriver
import time
import os
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
password = os.getenv('USERPWD')
chrome_options = webdriver.ChromeOptions()
#chrome_options.add_argument('--headless')
#chrome_options.add_ar... | gpl-3.0 | 9,157,304,177,438,785,000 | 27.371429 | 95 | 0.729572 | false |
whitequark/foundry | vendor/lit/tests/shtest-format.py | 2 | 2341 | # Check the various features of the ShTest format.
#
# RUN: not %{lit} -j 1 -v %{inputs}/shtest-format > %t.out
# RUN: FileCheck < %t.out %s
#
# END.
# CHECK: -- Testing:
# CHECK: FAIL: shtest-format :: external_shell/fail.txt
# CHECK-NEXT: *** TEST 'shtest-format :: external_shell/fail.txt' FAILED ***
# CHECK: Comma... | mit | 1,825,758,147,357,605,000 | 31.971831 | 94 | 0.692012 | false |
scs/uclinux | user/python/python-2.4.4/Lib/aifc.py | 12 | 33330 | """Stuff to parse AIFF-C and AIFF files.
Unless explicitly stated otherwise, the description below is true
both for AIFF-C files and AIFF files.
An AIFF-C file has the following structure.
+-----------------+
| FORM |
+-----------------+
| <size> |
+----+------------+
| | AIFC ... | gpl-2.0 | -6,891,075,200,871,405,000 | 33.754953 | 93 | 0.557126 | false |
tsufiev/horizon | openstack_dashboard/dashboards/project/access_and_security/security_groups/urls.py | 65 | 1367 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... | apache-2.0 | -1,268,664,989,072,566,300 | 34.973684 | 78 | 0.68398 | false |
SohKai/ChronoLogger | web/flask/lib/python2.7/site-packages/werkzeug/_internal.py | 301 | 13713 | # -*- coding: utf-8 -*-
"""
werkzeug._internal
~~~~~~~~~~~~~~~~~~
This module provides internally used helpers and constants.
:copyright: (c) 2013 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import re
import string
import inspect
from weakre... | mit | -8,706,241,410,705,053,000 | 32.283981 | 79 | 0.628455 | false |
abaditsegay/arangodb | 3rdParty/V8-4.3.61/third_party/python_26/Lib/copy_reg.py | 442 | 6800 | """Helper to provide extensibility for pickle/cPickle.
This is only useful to add pickle support for extension types defined in
C, not for instances of user-defined classes.
"""
from types import ClassType as _ClassType
__all__ = ["pickle", "constructor",
"add_extension", "remove_extension", "clear_extens... | apache-2.0 | 787,975,280,159,021,000 | 32.830846 | 75 | 0.604853 | false |
edisonlz/fruit | web_project/base/site-packages/django/contrib/gis/tests/utils.py | 114 | 1698 | from django.conf import settings
from django.db import DEFAULT_DB_ALIAS
# function that will pass a test.
def pass_test(*args): return
def no_backend(test_func, backend):
"Use this decorator to disable test on specified backend."
if settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'].rsplit('.')[-1] == backend:
... | apache-2.0 | -3,758,833,724,324,763,600 | 35.913043 | 81 | 0.726737 | false |
virgree/odoo | openerp/cli/__init__.py | 135 | 2016 | import logging
import sys
import os
import openerp
from openerp import tools
from openerp.modules import module
_logger = logging.getLogger(__name__)
commands = {}
class CommandType(type):
def __init__(cls, name, bases, attrs):
super(CommandType, cls).__init__(name, bases, attrs)
name = getattr(... | agpl-3.0 | 1,387,609,396,243,677,700 | 26.616438 | 109 | 0.585813 | false |
jairideout/scikit-bio | skbio/diversity/_base.py | 6 | 3274 | # ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | bsd-3-clause | 2,982,976,989,433,699,000 | 35.786517 | 78 | 0.60171 | false |
ludojmj/treelud | server/paramiko/pkey.py | 1 | 14362 | # Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License,... | mit | -8,189,731,835,149,782,000 | 39.151862 | 107 | 0.590656 | false |
resmo/cloudstack | systemvm/patches/debian/config/opt/cloud/bin/cs/CsGuestNetwork.py | 3 | 2545 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -4,440,815,067,098,931,700 | 32.051948 | 114 | 0.634971 | false |
kumarshivam675/Mobile10X-Hack | build/lib.linux-x86_64-2.7/yowsup/layers/protocol_presence/protocolentities/presence_unsubscribe.py | 70 | 1047 | from yowsup.structs import ProtocolEntity, ProtocolTreeNode
from .presence import PresenceProtocolEntity
class UnsubscribePresenceProtocolEntity(PresenceProtocolEntity):
'''
<presence type="unsubscribe" to="jid"></presence>
'''
def __init__(self, jid):
super(UnsubscribePresenceProtocolEntity, ... | gpl-3.0 | 8,456,567,530,116,120,000 | 30.727273 | 82 | 0.660936 | false |
edulramirez/nova | nova/virt/event.py | 76 | 3420 | # Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | apache-2.0 | 4,212,946,909,830,187,500 | 28.230769 | 78 | 0.658772 | false |
gylian/headphones | lib/mutagen/oggvorbis.py | 16 | 4163 | # Ogg Vorbis support.
#
# Copyright 2006 Joe Wreschnig
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
"""Read and write Ogg Vorbis comments.
This module handles Vorbis files wrapp... | gpl-3.0 | 1,110,791,021,824,313,000 | 29.386861 | 79 | 0.628153 | false |
Nyto035/Konza_backend | search/tests/test_search.py | 1 | 17357 | import json
from mock import patch
from django.test import TestCase
from django.test.utils import override_settings
from django.core.urlresolvers import reverse
from django.core.management import call_command
from django.contrib.auth.models import Group
from django.contrib.auth import get_user_model
from model_mommy ... | mit | -3,108,765,568,023,170,600 | 36.650759 | 79 | 0.616408 | false |
abbeymiles/aima-python | submissions/McLean/vacuum2Runner.py | 24 | 6129 | import agents as ag
import envgui as gui
# change this line ONLY to refer to your project
import submissions.aardvark.vacuum2 as v2
# ______________________________________________________________________________
# Vacuum environment
class Dirt(ag.Thing):
pass
class VacuumEnvironment(ag.XYEnvironment):
"""T... | mit | 6,082,011,481,321,701,000 | 25.768559 | 80 | 0.545929 | false |
ptemplier/ansible | lib/ansible/modules/cloud/azure/azure_rm_availabilityset.py | 4 | 8695 | #!/usr/bin/python
#
# Copyright (c) 2017 Julien Stroheker, <juliens@microsoft.com>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | gpl-3.0 | -1,915,330,379,220,553,200 | 30.733577 | 157 | 0.582749 | false |
sniperganso/python-manilaclient | manilaclient/openstack/common/apiclient/client.py | 1 | 13107 | # Copyright 2010 Jacob Kaplan-Moss
# Copyright 2011 OpenStack Foundation
# Copyright 2011 Piston Cloud Computing, Inc.
# Copyright 2013 Alessio Ababilov
# Copyright 2013 Grid Dynamics
# Copyright 2013 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you ... | apache-2.0 | -7,814,141,821,914,925,000 | 34.713896 | 78 | 0.587625 | false |
Hitachi-Data-Systems/org-chart-builder | pptx/parts/image.py | 1 | 7754 | # encoding: utf-8
"""
Image part objects, including Image
"""
import hashlib
import os
import posixpath
try:
from PIL import Image as PIL_Image
except ImportError:
import Image as PIL_Image
from StringIO import StringIO
from pptx.opc.package import Part
from pptx.opc.packuri import PackURI
from pptx.opc.sp... | apache-2.0 | -8,039,464,625,485,699,000 | 34.898148 | 78 | 0.601109 | false |
MridulS/sympy | sympy/solvers/recurr.py | 20 | 24338 | """
This module is intended for solving recurrences or, in other words,
difference equations. Currently supported are linear, inhomogeneous
equations with polynomial or rational coefficients.
The solutions are obtained among polynomials, rational functions,
hypergeometric terms, or combinations of hypergeometric term ... | bsd-3-clause | 4,653,047,453,221,687,000 | 28.536408 | 94 | 0.514299 | false |
francisco-dlp/hyperspy | hyperspy/_signals/dielectric_function.py | 4 | 5178 | # -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | gpl-3.0 | -4,691,274,876,250,106,000 | 36.788321 | 98 | 0.580452 | false |
ClearCorp/odoo-clearcorp | TODO-7.0/hr_contract_name/__openerp__.py | 4 | 1537 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Addons modules by CLEARCORP S.A.
# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
#
# This program is free software: you can redistribute... | agpl-3.0 | -2,968,702,953,788,913,000 | 36.487805 | 78 | 0.579701 | false |
mydongistiny/external_chromium_org | tools/telemetry/telemetry/core/backends/chrome/inspector_websocket_unittest.py | 26 | 3829 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from telemetry.unittest import simple_mock
from telemetry.core.backends.chrome import inspector_websocket
from telemetry.core.backends.chrom... | bsd-3-clause | 3,138,592,576,215,339,000 | 36.539216 | 79 | 0.725777 | false |
jkyeung/XlsxWriter | xlsxwriter/test/worksheet/test_cond_format14.py | 1 | 4372 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list
from ...worksheet import Worksheet
class TestAss... | bsd-2-clause | -4,027,405,020,066,131,000 | 32.630769 | 171 | 0.346295 | false |
parthea/pydatalab | legacy_tests/bigquery/query_tests.py | 2 | 6791 | # Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | apache-2.0 | -4,883,334,219,610,720,000 | 33.825641 | 99 | 0.640112 | false |
jakevdp/scipy | scipy/_lib/tests/test__gcutils.py | 109 | 2804 | """ Test for assert_deallocated context manager and gc utilities
"""
import gc
from scipy._lib._gcutils import set_gc_state, gc_state, assert_deallocated, ReferenceError
from nose.tools import assert_equal, raises
def test_set_gc_state():
gc_status = gc.isenabled()
try:
for state in (True, False):
... | bsd-3-clause | -2,100,216,388,685,705,700 | 30.155556 | 90 | 0.581312 | false |
Lucidiot/PseudoScience | pseudosci/tests/test_relativity.py | 1 | 2368 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from ..units.general import Velocity, Time, Distance
from ..data.constants import LIGHT_VELOCITY
from ..movement import Movement
from ..relativity import contraction_factor, lorentz_factor, time_dilation, \
length_contraction, RelativistMovement
import pytest
class T... | gpl-3.0 | 7,930,515,486,391,165,000 | 40.54386 | 78 | 0.636824 | false |
mhoffman/catmap | catmap/parsers/table_parser.py | 3 | 18012 | import numpy as np
import catmap
from .parser_base import *
string2symbols = catmap.string2symbols
Template = catmap.Template
class TableParser(ParserBase):
"""Parses attributes based on column headers and filters.
Additional functionality may be added by inheriting and defining
the parse_{header_name... | gpl-3.0 | 2,568,500,646,797,175,300 | 48.483516 | 156 | 0.481401 | false |
kcompher/BuildingMachineLearningSystemsWithPython | ch08/stacked.py | 4 | 1057 | # 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 __future__ import print_function
from sklearn.linear_model import LinearRegression
from load_ml100... | mit | -4,567,425,428,840,659,000 | 23.581395 | 49 | 0.675497 | false |
ahmadio/edx-platform | lms/djangoapps/course_wiki/plugins/markdownedx/mdx_image.py | 151 | 2077 | #!/usr/bin/env python
'''
Image Embedding Extension for Python-Markdown
======================================
Converts lone links to embedded images, provided the file extension is allowed.
Ex:
http://www.ericfehse.net/media/img/ef/blog/django-pony.jpg
becomes
<img src="http://www.ericfehse.net/media/img... | agpl-3.0 | -4,636,688,561,909,365,000 | 28.253521 | 139 | 0.57246 | false |
rturumella/CloudBot | plugins/google_translate.py | 25 | 3804 | import requests
from cloudbot import hook
max_length = 100
def goog_trans(api_key, text, source, target):
url = 'https://www.googleapis.com/language/translate/v2'
if len(text) > max_length:
return "This command only supports input of less then 100 characters."
params = {
'q': text,
... | gpl-3.0 | -1,502,588,945,974,499,800 | 25.601399 | 119 | 0.505521 | false |
sunlianqiang/kbengine | kbe/res/scripts/common/Lib/encodings/cp1125.py | 213 | 34597 | """ Python Character Mapping Codec for CP1125
"""#"
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,errors='strict'):
return codecs.charmap_decode(input,errors,deco... | lgpl-3.0 | 5,932,435,319,925,575,000 | 48.565903 | 78 | 0.610169 | false |
Fat-Zer/FreeCAD_sf_master | src/Mod/Path/PathScripts/PathCustom.py | 13 | 3170 | # -*- coding: utf-8 -*-
# ***************************************************************************
# * Copyright (c) 2014 Yorik van Havre <yorik@uncreated.net> *
# * *
# * This program is free software; you can redistribute it a... | lgpl-2.1 | 9,020,202,510,369,958,000 | 39.641026 | 83 | 0.543218 | false |
fmonjalet/miasm | miasm2/arch/arm/arch.py | 1 | 65252 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import logging
from pyparsing import *
from miasm2.expression.expression import *
from miasm2.core.cpu import *
from collections import defaultdict
from miasm2.core.bin_stream import bin_stream
import miasm2.arch.arm.regs as regs_module
from miasm2.arch.arm.regs import *
fro... | gpl-2.0 | 3,793,238,999,924,251,600 | 27.796117 | 101 | 0.516275 | false |
emccode/HeliosBurn | install/docker/proxy_settings.py | 1 | 1641 |
from configurations import Configuration, values
import redis
class Common(Configuration):
REDIS_HOST = 'redis'
REDIS_PORT = 6379
REDIS_DB = 0
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format' : "[%... | mit | -8,854,255,657,185,491,000 | 26.813559 | 91 | 0.361974 | false |
GoogleCloudPlatform/training-data-analyst | courses/machine_learning/deepdive2/production_ml/labs/samples/contrib/azure-samples/databricks-pipelines/pipeline_cli.py | 3 | 2464 | import os
import sys
import logging
import kfp
import fire
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
class MyCLI:
"""
CLI for Kubeflow Pipelines.
This CLI allows us to compile and run our pipelines in Kubeflow Pipelines without accessing
Kubeflow portal.
"""
... | apache-2.0 | 8,439,852,428,353,605,000 | 27.988235 | 102 | 0.536526 | false |
Suwings/Yeinw | src/Crypto/SelfTest/Random/OSRNG/__init__.py | 118 | 2082 | # -*- coding: utf-8 -*-
#
# SelfTest/Random/OSRNG/__init__.py: Self-test for OSRNG modules
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedica... | gpl-3.0 | 4,957,035,722,332,021,000 | 41.489796 | 116 | 0.667147 | false |
danakj/chromium | chrome/common/extensions/docs/server2/samples_model.py | 36 | 7045 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import logging
import posixpath
import re
from compiled_file_system import Cache
from extensions_paths import EXAMPLES
from samples_data_source ... | bsd-3-clause | 8,445,170,403,610,650,000 | 37.922652 | 80 | 0.62044 | false |
tomtor/QGIS | python/plugins/db_manager/db_plugins/gpkg/plugin.py | 15 | 11191 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Name : DB Manager
Description : Database manager plugin for QGIS
Date : May 23, 2011
copyright : (C) 2011 by Giuseppe Sucameli
email : brush.tyler@... | gpl-2.0 | 2,239,084,894,340,375,800 | 32.707831 | 133 | 0.618622 | false |
ArneBab/pypyjs | website/demo/home/rfk/repos/pypy/lib-python/2.7/idlelib/macosxSupport.py | 34 | 6028 | """
A number of function that enhance IDLE on MacOSX when it used as a normal
GUI application (as opposed to an X11 application).
"""
import sys
import Tkinter
from os import path
_appbundle = None
def runningAsOSXApp():
"""
Returns True if Python is running from within an app on OSX.
If so, assume that ... | mit | -1,951,431,452,223,589,000 | 34.251462 | 79 | 0.633875 | false |
tensorflow/tfjs-examples | iris/python/iris_test.py | 1 | 1765 | # Copyright 2018 Google 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.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 8,700,415,863,251,232,000 | 29.431034 | 79 | 0.686119 | false |
xiandiancloud/edxplaltfom-xusong | cms/djangoapps/contentstore/features/checklists.py | 35 | 4765 | # pylint: disable=C0111
# pylint: disable=W0621
from lettuce import world, step
from nose.tools import assert_true, assert_equal # pylint: disable=E0611
from terrain.steps import reload_the_page
from selenium.common.exceptions import StaleElementReferenceException
############### ACTIONS ####################
@step(... | agpl-3.0 | 754,117,646,640,616,600 | 36.81746 | 115 | 0.695908 | false |
printerpam/autoconf-archive | macro2texi.py | 16 | 1811 | #! /usr/bin/env python
assert __name__ == "__main__"
import sys
from macro import Macro, writeFile
tmpl = """\
@node %(name)s
@unnumberedsec %(name)s
@majorheading Synopsis
%(synopsis)s
@majorheading Description
%(description)s
@majorheading Source Code
Download the
@uref{http://git.savannah.gnu.org/gitweb/?p=... | gpl-3.0 | -1,528,763,543,300,255,000 | 26.029851 | 101 | 0.66317 | false |
sshnaidm/ru | service.RussianKeyboard/default.py | 3 | 2125 | # declare file encoding
# -*- coding: utf-8 -*-
# Copyright (C) 2014 Lamkin666
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
... | gpl-2.0 | 2,524,519,053,939,669,500 | 28.109589 | 130 | 0.659294 | false |
jeremyprice/PythonForDevs | LabsDone/lab12_2dim_list.py | 2 | 1107 | """
This program accumulates by month the maximum high temperature, the
minimum high temperature, the number of days and the accumulated high
temperatures. The latter two are used to calculate the average high
temperature for the month.
"""
monlst = []
for i in range(12):
monlst.append([0, 0, 0, 200]) # sublist[Da... | mit | 7,418,111,172,706,305,000 | 30.628571 | 77 | 0.601626 | false |
cgrebeld/pymel | pymel/core/animation.py | 1 | 5392 | """functions related to animation"""
import pymel.util as _util
import pymel.internal.factories as _factories
import general as _general
import pymel.internal.pmcmds as cmds
def currentTime( *args, **kwargs ):
"""
Modifications:
- if no args are provided, the command returns the current time
"""
if ... | bsd-3-clause | 1,896,368,332,598,227,200 | 35.680272 | 122 | 0.588279 | false |
ddy88958620/lib | Python/scrapy/bosch_russian_diy/artemtools.py | 2 | 1585 | import csv
import os
import copy
import re
from decimal import Decimal
from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.http import Request, HtmlResponse, FormRequest
from scrapy.utils.response import get_base_url
from scrapy.utils.url import urljoin_rfc
from scrapy.http.c... | apache-2.0 | 5,434,260,372,811,000,000 | 30.7 | 114 | 0.645426 | false |
KraweDad/Platformer | platformer.py | 1 | 6762 | """
platformer.py
Author: Matthew F
Credit: Robbie
Assignment:
Write and submit a program that implements the sandbox platformer game:
https://github.com/HHS-IntroProgramming/Platformer
Platformer.listenKeyEvent("keydown", "s", self.SPRING)
Platformer.listenKeyEvent("keyup", "s", self.SPRINGoff)
... | mit | 6,436,829,963,960,513,000 | 28.657895 | 82 | 0.528986 | false |
nexlab/domotikad | domotika/mediasources/modules/Sitecom/__init__.py | 1 | 1420 | ###########################################################################
# Copyright (c) 2011-2014 Unixmedia S.r.l. <info@unixmedia.it>
# Copyright (c) 2011-2014 Franco (nextime) Lanza <franco@unixmedia.it>
#
# Domotika System Controller Daemon "domotikad" [http://trac.unixmedia.it]
#
# This file is part of domotik... | gpl-3.0 | -5,067,867,400,131,112,000 | 40.764706 | 91 | 0.643662 | false |
googleapis/googleapis-gen | google/cloud/recommendationengine/v1beta1/recommendationengine-v1beta1-py/google/cloud/recommendationengine_v1beta1/services/user_event_service/transports/grpc_asyncio.py | 1 | 18458 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | apache-2.0 | 2,791,697,496,734,509,600 | 45.260652 | 95 | 0.624174 | false |
epinna/weevely3 | tests/test_generators.py | 1 | 1917 | from tests.config import base_folder, base_url
from core.generate import generate, save_generated
from core.channels.channel import Channel
from unittest import TestCase
import subprocess
import utils
import random
import hashlib
import os
def setUpModule():
subprocess.check_output("""
BASE_FOLDER="{base_folder}/g... | gpl-3.0 | -1,218,122,378,787,136,300 | 27.191176 | 91 | 0.565989 | 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.