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 |
|---|---|---|---|---|---|---|---|---|---|---|
B0fH/dionaea | modules/python/dionaea/mssql/mssql.py | 3 | 9832 | #*************************************************************************
#* Dionaea
#* - catches bugs -
#*
#*
#*
#* Copyright (C) 2010 Tan Kean Siong & Markus Koetter
#*
#* This program is free software; you can redistribute it and/or
#* modify it under the ter... | gpl-2.0 | -7,529,697,389,269,808,000 | 35.962406 | 118 | 0.523088 | false |
thedrow/invoke | setup.py | 1 | 2019 | #!/usr/bin/env python
# Support setuptools or distutils
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
# Version info -- read without importing
_locals = {}
with open('invoke/_version.py') as fp:
exec(fp.read(), None, _locals)
version =... | bsd-2-clause | 2,711,951,321,330,611,000 | 31.047619 | 75 | 0.607727 | false |
palfrey/coherence | coherence/backends/flickr_storage.py | 1 | 47708 | # -*- coding: utf-8 -*-
# Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php
# Copyright 2007,2008 Frank Scholz <coherence@beebits.net>
import time
import re
import os.path
import mimetools,mimetypes
from datetime import datetime
from email.Utils import parsedate_tz
try:
import hash... | mit | -6,946,373,474,170,672,000 | 38.753333 | 175 | 0.539137 | false |
varunparkhe/rockstar | setup.py | 9 | 1519 | #!/usr/bin/env python
from setuptools import setup, find_packages
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = open('README.md').read()
with open('requirements.txt') as f:
requirements = f.read().splitlines()
version =... | mit | 7,099,998,710,714,008,000 | 29.38 | 71 | 0.612903 | false |
openstack/python-mistralclient | mistralclient/tests/unit/v2/base.py | 1 | 1672 | # Copyright 2014 - Mirantis, Inc.
# Copyright 2015 - StackStorm, 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
#
# Unl... | apache-2.0 | -4,233,957,299,340,912,600 | 38.809524 | 79 | 0.662679 | false |
dekatzenel/team-k | mds/mrs/api.py | 1 | 21275 | """Utilities for processing requests
:Authors: Sana Dev Team
:Version: 1.1
"""
from __future__ import with_statement
import os, sys, traceback
import cjson
import datetime
import logging
from collections import defaultdict
from django.conf import settings
from .models import SavedProcedure, Client, BinaryResource, C... | bsd-3-clause | -8,566,665,075,197,262,000 | 37.333333 | 92 | 0.552479 | false |
grupoprog3/proyecto_final | Entrega Final/flask/Lib/site-packages/whoosh/codec/whoosh3.py | 20 | 42660 | # Copyright 2012 Matt Chaput. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | apache-2.0 | -7,029,440,337,390,014,000 | 32.044152 | 81 | 0.605954 | false |
IndicoDataSolutions/Passage | passage/updates.py | 1 | 6873 | import theano
import theano.tensor as T
import numpy as np
from passage.theano_utils import shared0s, floatX
def clip_norm(g, c, n):
if c > 0:
g = T.switch(T.ge(n, c), g*c/n, g)
return g
def clip_norms(gs, c):
norm = T.sqrt(sum([T.sum(g**2) for g in gs]))
return [clip_norm(g, c, norm) for g i... | mit | 7,476,309,648,957,368,000 | 32.368932 | 90 | 0.534992 | false |
flyingSprite/spinelle | task_inventory/order_1_to_30/Order_25_tar_zip_files.py | 1 | 2019 |
import zipfile
import os.path
""" Order 25:Zip file(s) and folder to one zip file.
1. Zip single file
2. Zip multi files
3. Zip single folder
4. Zip multi folders
"""
class ZipUnzipFiles(object):
@staticmethod
def zip(filename, dst_filename, mode='w'):
""" To zip one file
arcname: ... | mit | -605,529,934,364,698,100 | 27.408451 | 107 | 0.544373 | false |
sumedhasingla/VTK | Rendering/Core/Testing/Python/rotations.py | 20 | 2733 | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Create renderer stuff
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
# create... | bsd-3-clause | 8,732,284,435,583,957,000 | 23.185841 | 74 | 0.682766 | false |
JianfengXu/crosswalk-test-suite | webapi/tct-csp-w3c-tests/csp-py/csp_object-src_cross-origin_blocked-manual.py | 30 | 2473 | def main(request, response):
import simplejson as json
f = file('config.json')
source = f.read()
s = json.JSONDecoder().decode(source)
url1 = "http://" + s['host'] + ":" + str(s['ports']['http'][1])
url2 = "http://" + s['host'] + ":" + str(s['ports']['http'][0])
_CSP = "object-src " + url2
... | bsd-3-clause | -3,106,478,337,185,912,300 | 43.160714 | 83 | 0.718156 | false |
rafaelwerneck/kuaa | normalizers/zscore/plugin_zscore.py | 1 | 3873 | #!/usr/bin/python
# -*- coding: utf-8 -*-
###############################################################################
# This file is part of Kuaa.
#
# Kuaa is a framework for the automation of machine learning experiments.
#
# It provides a workflow-based standardized environment for easy evaluation of
# feature d... | gpl-3.0 | 8,522,647,924,009,624,000 | 37.71 | 79 | 0.64712 | false |
kostin88/cm_api | python/src/cm_api/endpoints/timeseries.py | 2 | 5158 | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | apache-2.0 | -578,967,260,991,686,800 | 35.58156 | 80 | 0.642497 | false |
sposs/DIRAC | ResourceStatusSystem/scripts/dirac-rss-list-status.py | 6 | 6200 | #!/usr/bin/env python
"""
dirac-rss-list-status
Script that dumps the DB information for the elements into the standard output.
If returns information concerning the StatusType and Status attributes.
Usage:
dirac-rss-list-status
--element= Element family to be Synchroniz... | gpl-3.0 | 7,159,465,454,090,970,000 | 31.809524 | 101 | 0.564677 | false |
chand3040/sree_odoo | openerp/addons/stock/stock.py | 15 | 266480 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -4,205,356,051,698,683,000 | 59.2487 | 415 | 0.603865 | false |
xavialex/Deep-Learning-Templates | Volume 1 - Supervised Deep Learning/Part 3 - Recurrent Neural Networks (RNN)/Section 12 - Building a RNN/Recurrent_Neural_Networks/rnn_homework_solution.py | 1 | 2655 | # Recurrent Neural Network
# Part 1 - Data Preprocessing
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the training set
training_set = pd.read_csv('Google_Stock_Price_Train.csv')
training_set = training_set.iloc[:,1:2].values
# Feature Scaling
from skle... | mit | 3,050,714,438,687,443,000 | 29.528736 | 93 | 0.750659 | false |
manassolanki/erpnext | erpnext/patches/v10_0/rename_schools_to_education.py | 22 | 1405 | # Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
# rename the School module as Education
# rename the school module
if frappe.db.exists('Module Def', 'Schools') and not frappe.db.exists('Mod... | gpl-3.0 | 1,028,021,472,724,271,000 | 42.90625 | 98 | 0.724555 | false |
liamgh/liamgreenhughes-sl4a-tf101 | python/src/Tools/scripts/pindent.py | 50 | 17878 | #! /usr/bin/env python
# This file contains a class and a main program that perform three
# related (though complimentary) formatting operations on Python
# programs. When called as "pindent -c", it takes a valid Python
# program as input and outputs a version augmented with block-closing
# comments. When called as ... | apache-2.0 | -361,730,736,612,915,400 | 31.98524 | 98 | 0.53977 | false |
texastribune/speaker-watch | watcher.py | 1 | 1592 | import os
import time
import sys
from pyquery import PyQuery as pq
import requests
from twilio.rest import TwilioRestClient
client = TwilioRestClient(os.environ['TWILIO_ACCOUNT_SID'],
os.environ['TWILIO_AUTH_TOKEN'])
SPEAKER_URL = 'http://www.ethics.state.tx.us/dfs/spk_lists.htm'
FROM_PHONE_NUMBER = os.envir... | apache-2.0 | -356,821,122,283,251,100 | 29.037736 | 76 | 0.56093 | false |
Vauxoo/stoqdrivers | stoqdrivers/printers/bematech/MP25.py | 1 | 30355 | # -*- Mode: Python; coding: iso-8859-1 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Stoqdrivers
## Copyright (C) 2005-2007 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as pub... | lgpl-2.1 | 4,663,115,678,176,093,000 | 33.488636 | 97 | 0.560857 | false |
ashhher3/ibis | ibis/tests/test_comms.py | 16 | 11505 | # Copyright 2014 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | apache-2.0 | -5,553,089,862,503,522,000 | 27.129584 | 79 | 0.591308 | false |
gtarobotics/self-driving-car | sdc_rosbag_viewer.py | 1 | 1940 | #!/usr/bin/env python
#!/usr/bin/python
"""
sdc_rosbag_viewer.py: version 0.1 by Marius Slavescu
"""
import rospy
import pygame, sys
from pygame.locals import *
from sensor_msgs.msg import CompressedImage
import numpy as np
import cStringIO
#Initiates the display
pygame.init()
windowSurfaceObj= pygame.display.set_m... | mit | 7,379,436,243,124,241,000 | 33.035088 | 101 | 0.690722 | false |
laurent-george/weboob | modules/cci/module.py | 7 | 1691 | # -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
#
# This file is part of weboob.
#
# weboob 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 opt... | agpl-3.0 | 8,677,022,104,636,254,000 | 29.745455 | 87 | 0.709048 | false |
blockc/fabric | test/regression/daily/ledger_lte.py | 8 | 10571 | # Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
import unittest
import subprocess
tool_directory = '../../tools/LTE/scripts'
class perf_goleveldb(unittest.TestCase):
def test_FAB_3790_VaryNumParallelTxPerChain(self):
'''
In this Performance test, we observe ... | apache-2.0 | -7,400,188,980,582,922,000 | 42.146939 | 96 | 0.637499 | false |
erdc/proteus | proteus/SWFlow/utils/SWEs_so.py | 1 | 1413 | """
Split operator module for SWFlow: SWEs or Dispersive SWEs
"""
from __future__ import absolute_import
from builtins import range
import os
from proteus.default_so import *
from proteus import Context
import sys
# (!) not the greatest for getting the file name but it works
name = str(sys.argv[0][:-3])
parun_passed =... | mit | -946,853,748,761,510,400 | 28.4375 | 92 | 0.537155 | false |
harisibrahimkv/django | tests/gis_tests/gis_migrations/migrations/0001_initial.py | 28 | 2442 | from django.contrib.gis.db import models
from django.db import connection, migrations
ops = [
migrations.CreateModel(
name='Neighborhood',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(ma... | bsd-3-clause | 4,855,146,186,559,790,000 | 32 | 114 | 0.551597 | false |
saadatqadri/django-oscar | src/oscar/apps/order/utils.py | 32 | 10079 | from decimal import Decimal as D
from django.contrib.sites.models import Site
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from oscar.core.loading import get_model
from oscar.core.loading import get_class
from . import exceptions
Order = get_model('order', 'Order')
Line =... | bsd-3-clause | -7,555,838,925,984,550,000 | 38.371094 | 79 | 0.589741 | false |
jsoref/django | django/db/models/fields/files.py | 17 | 18904 | import datetime
import os
from django import forms
from django.core import checks
from django.core.files.base import File
from django.core.files.images import ImageFile
from django.core.files.storage import default_storage
from django.db.models import signals
from django.db.models.fields import Field
from django.utils... | bsd-3-clause | -130,057,998,078,473,200 | 38.383333 | 104 | 0.624524 | false |
openstack/horizon | openstack_dashboard/dashboards/project/network_topology/utils.py | 2 | 2158 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | apache-2.0 | -2,520,996,826,748,738,600 | 42.16 | 78 | 0.694625 | false |
Parisson/TimeSide | timeside/plugins/analyzer/externals/vamp_constantq.py | 1 | 3505 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017 Thomas Fillon <thomas@parisson.com>
# This file is part of TimeSide.
# 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 t... | agpl-3.0 | 7,461,621,305,519,264,000 | 29.215517 | 88 | 0.67418 | false |
aferr/LatticeMemCtl | ext/DRAMSim2/traces/genTraceLMHv2.py | 5 | 3069 | #!/usr/bin/python2.7
import re, os
import string
import sys
import array
import random
from random import choice
if len(sys.argv) != 2:
sys.exit("Must specify trace file")
trace_filename = sys.argv[1]
tracefile = open(trace_filename, "r")
outfile_low = open(trace_filename[:-4] + "_MT_LOW.trc","w")
outfile_medium... | bsd-3-clause | 7,302,247,223,370,595,000 | 39.92 | 139 | 0.602802 | false |
Inuits/puppet-jenkins-plugins-hash | puppet-jenkins-plugins.py | 1 | 3494 | #!/usr/bin/env python
import logging
import os
import yaml
import json
import requests
import argparse
class PuppetJenkinsPlugins:
def __init__(self):
pass
def parse_options(self):
parser = argparse.ArgumentParser(prog='puppet-jenkins-plugins',
descript... | gpl-2.0 | -6,743,435,722,589,209,000 | 38.704545 | 153 | 0.57241 | false |
Fantomas42/mots-vides | mots_vides/stop_words.py | 1 | 2214 | """
StopWord Python container, managing collection of stop words.
"""
import re
TEXT_TYPE_LIST = ('str', 'unicode', 'byte')
class StopWord(object):
"""
Object managing collection of stop words for a given language.
"""
def __init__(self, language, collection=[]):
"""
Initializes with... | bsd-3-clause | 2,980,394,677,160,592,000 | 24.744186 | 69 | 0.527552 | false |
GladeRom/android_external_chromium_org | third_party/closure_linter/closure_linter/scopeutil_test.py | 84 | 6616 | #!/usr/bin/env python
#
# Copyright 2012 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 | -4,789,302,024,457,302,000 | 30.504762 | 79 | 0.689389 | false |
DoubleNegativeVisualEffects/cortex | test/IECore/LuminanceOpTest.py | 12 | 3694 | ##########################################################################
#
# Copyright (c) 2008-2009, Image Engine Design 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:
#
# * Redis... | bsd-3-clause | -1,672,846,626,232,344,000 | 38.297872 | 86 | 0.67948 | false |
geojames/Dart_EnvGIS | GUI/tkinter.py | 1 | 3529 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
__author__ = 'James T. Dietrich'
__contact__ = 'james.t.dietrich@dartmouth.edu'
__copyright__ = '(c) James Dietrich 2016'
__license__ = 'MIT'
__date__ = 'Fri Feb 24 11:06:15 2017'
__version__ = ... | mit | -523,528,785,266,812,900 | 22.691275 | 90 | 0.577784 | false |
molobrakos/home-assistant | homeassistant/loader.py | 1 | 13599 | """
The methods for loading Home Assistant integrations.
This module has quite some complex parts. I have tried to add as much
documentation as possible to keep it understandable.
"""
import asyncio
import functools as ft
import importlib
import json
import logging
import pathlib
import sys
from types import ModuleTyp... | apache-2.0 | -946,122,461,026,270,800 | 31.073113 | 87 | 0.601515 | false |
GoogleCloudPlatform/training-data-analyst | courses/machine_learning/deepdive2/structured/solutions/serving/application/lib/pyasn1/compat/integer.py | 26 | 2988 | #
# This file is part of pyasn1 software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
try:
import platform
implementation = platform.python_implementation()
except (ImportError, AttributeError):
implementation = 'CPython'
... | apache-2.0 | -1,390,065,013,520,339,000 | 26.163636 | 90 | 0.55087 | false |
openearth/streamharvester | streamharvester/conventions.py | 1 | 2915 | import string
import re
import logging
import dateutil.parser
import mako.template
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
verbose_name = re.compile(
r'(?P<timestamp>\d+)' # timestamp
r'\.'
r'(?P<weekday>\w+)' # short day
r'\.'
r'(?P<month>\w+)' # short m... | gpl-3.0 | -3,199,627,470,033,171,000 | 27.028846 | 75 | 0.526587 | false |
mbookman/dsub | test/unit/test_job_util.py | 2 | 2037 | # Copyright 2017 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 a... | apache-2.0 | -2,816,969,492,249,686,000 | 28.521739 | 74 | 0.642612 | false |
Virako/authapi | authapi/api/views.py | 1 | 22050 | import json
from django.conf import settings
from django.contrib.auth.models import User
from django.http import HttpResponse, HttpResponseBadRequest
from django.views.generic import View
from django.shortcuts import get_object_or_404
import plugins
from authmethods import (
auth_authenticate,
auth_census,
... | agpl-3.0 | -9,220,889,424,729,875,000 | 35.627907 | 116 | 0.569796 | false |
was4444/chromium.src | third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner_unittest.py | 1 | 39689 | # Copyright (C) 2012 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 | 3,684,285,308,970,460,000 | 50.477302 | 195 | 0.645091 | false |
alexbruy/QGIS | python/plugins/processing/algs/lidar/lastools/lasheightPro.py | 3 | 4085 |
# -*- coding: utf-8 -*-
"""
***************************************************************************
lasheightPro.py
---------------------
Date : October 2014 and May 2016
Copyright : (C) 2014 by Martin Isenburg
Email : martin near rapidlasso point com
... | gpl-2.0 | -4,900,771,449,880,523,000 | 46.5 | 92 | 0.59951 | false |
rob-p/bioconda-recipes | recipes/biopet-scatterregions/biopet-scatterregions.py | 72 | 3379 | #!/usr/bin/env python
#
# Wrapper script for starting the biopet-scatterregions JAR package
#
# This script is written for use with the Conda package manager and is copied
# from the peptide-shaker wrapper. Only the parameters are changed.
# (https://github.com/bioconda/bioconda-recipes/blob/master/recipes/peptide-shak... | mit | -5,305,198,950,961,151,000 | 30.579439 | 101 | 0.645457 | false |
madsmtm/fbchat | tests/test_thread_interraction.py | 1 | 3354 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from fbchat.models import (
Message,
ThreadType,
FBchatFacebookError,
TypingStatus,
ThreadColor,
)
from utils import random_hex, subset
from os import environ
def test_remove_from_and_add_to_group(client1, client2, gr... | bsd-3-clause | -148,175,354,650,674,020 | 28.8125 | 87 | 0.65888 | false |
Dunkas12/BeepBoopBot | lib/nacl/secret.py | 21 | 4777 | # Copyright 2013 Donald Stufft and individual contributors
#
# 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... | gpl-3.0 | -3,733,680,792,411,936,000 | 38.479339 | 79 | 0.651664 | false |
Avira/tox | src/tox/result.py | 1 | 2142 | import json
import socket
import subprocess
import sys
import tox
class ResultLog:
def __init__(self, data=None):
if not data:
self.dict = {}
elif isinstance(data, dict):
self.dict = data
else:
self.dict = json.loads(data)
self.dict.update({"rep... | mit | 8,386,972,026,183,676,000 | 26.818182 | 79 | 0.558824 | false |
pgdr/ert | travis/build_total.py | 1 | 7946 | #!/usr/bin/env python
from __future__ import print_function
import re
import json
import os
import sys
import subprocess
import shutil
import codecs
import requests
GITHUB_ROT13_API_TOKEN = "rp2rr795p41n83p076o6ro2qp209981r00590r8q"
def print_python_version():
print(sys.version)
def call(args):
arg_str = ' ... | gpl-3.0 | -996,972,329,523,099,400 | 32.246862 | 98 | 0.552857 | false |
Richard2ndQuadrant/ansible | lib/ansible/utils/module_docs_fragments/junos.py | 13 | 2041 | #
# (c) 2015, Peter Sprygada <psprygada@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 | 5,648,140,960,926,374,000 | 33.59322 | 77 | 0.709456 | false |
tupolev/plugin.video.mitele | lib/youtube_dl/extractor/pornhub.py | 6 | 7698 | from __future__ import unicode_literals
import itertools
import os
import re
from .common import InfoExtractor
from ..compat import (
compat_HTTPError,
compat_urllib_parse_unquote,
compat_urllib_parse_unquote_plus,
compat_urllib_parse_urlparse,
)
from ..utils import (
ExtractorError,
int_or_no... | gpl-3.0 | -2,306,191,935,656,432,600 | 33.832579 | 125 | 0.520395 | false |
jpetto/olympia | src/olympia/reviews/urls.py | 3 | 1207 | from django.conf.urls import include, patterns, url
from olympia.reviews.feeds import ReviewsRss
from . import views
def review_detail_patterns(prefix):
# These all start with /addon/:id/reviews/:review_id/.
return patterns(
'',
url('^$', views.review_list, name='%s.reviews.detail' % prefix)... | bsd-3-clause | -785,771,766,571,310,000 | 37.935484 | 79 | 0.584921 | false |
kennethreitz/pipenv | pipenv/vendor/pip_shims/utils.py | 1 | 14948 | # -*- coding=utf-8 -*-
"""
Shared utility functions which are not specific to any particular module.
"""
from __future__ import absolute_import
import contextlib
import copy
import inspect
import sys
from functools import wraps
import packaging.version
import six
from .environment import MYPY_RUNNING
# format: off
... | mit | 1,304,723,901,672,775,200 | 31.146237 | 92 | 0.630586 | false |
nwjs/chromium.src | tools/android/customtabs_benchmark/scripts/run_benchmark.py | 11 | 4497 | #!/usr/bin/env python
#
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Loops Custom Tabs tests and outputs the results into a CSV file."""
import copy
import json
import logging
import optparse
import... | bsd-3-clause | -2,673,653,813,741,579,000 | 31.824818 | 78 | 0.656215 | false |
mprefer/findingaids | findingaids/fa/sitemaps.py | 2 | 4277 | # file findingaids/fa/sitemaps.py
#
# Copyright 2012 Emory University Library
#
# 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 | 4,774,820,472,298,590,000 | 30.448529 | 76 | 0.658172 | false |
Azure/azure-sdk-for-python | sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2019_09_01/aio/operations/_keys_operations.py | 1 | 19671 | # 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 may ... | mit | -2,943,663,063,310,116,000 | 48.300752 | 205 | 0.632251 | false |
tdickers/mitmproxy | mitmproxy/main.py | 1 | 4281 | from __future__ import absolute_import, print_function, division
import os
import signal
import sys
from six.moves import _thread # PY3: We only need _thread.error, which is an alias of RuntimeError in 3.3+
from mitmproxy import cmdline
from mitmproxy import exceptions
from mitmproxy.proxy import config
from mitmpr... | mit | -5,961,022,111,954,570,000 | 28.729167 | 107 | 0.669937 | false |
yabata/ficus | ficus.py | 1 | 87207 | """ficus: A (mixed integer) linear optimisation model for local energy systems
ficus minimises total cost for providing energy in form of desired commodities
to satisfy a given demand in form of timeseries. The
model contains commodities (e.g. electricity, heat, gas...),
processes that convert one commodity to another... | gpl-3.0 | 7,918,916,920,538,093,000 | 32.723125 | 181 | 0.647448 | false |
lucienfostier/gaffer | python/GafferUI/CompoundPathFilterWidget.py | 11 | 2916 | ##########################################################################
#
# Copyright (c) 2012-2015, Image Engine Design 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:
#
# * Redi... | bsd-3-clause | -7,997,996,473,691,241,000 | 34.560976 | 93 | 0.684156 | false |
GNOME/orca | src/orca/tutorialgenerator.py | 1 | 31142 | # Orca
#
# Copyright 2008-2009 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This... | lgpl-2.1 | 8,107,374,325,269,610,000 | 37.257985 | 81 | 0.590103 | false |
RossBrunton/django | tests/gis_tests/gis_migrations/migrations/0001_initial.py | 46 | 2358 | from django.db import connection, migrations, models
from ...models import models as gis_models
ops = [
migrations.CreateModel(
name='Neighborhood',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.C... | bsd-3-clause | 5,481,120,180,004,128,000 | 32.685714 | 114 | 0.567854 | false |
Skyscanner/pages | pages/standard_components/dropdown.py | 1 | 2009 | ############################################################################
# Copyright 2015 Skyscanner Ltd #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may no... | apache-2.0 | -3,327,336,859,342,352,400 | 54.805556 | 112 | 0.499751 | false |
aurule/npc | tests/linters/test_lint_nwod.py | 1 | 1115 | """Tests the helpers for linting generic nwod characters"""
import npc
import pytest
from util import fixture_dir
def test_has_virtue():
char_file = fixture_dir('linter', 'nwod', 'Has Virtue.nwod')
with open(char_file, 'r') as char_file:
problems = npc.linters.nwod.lint_vice_virtue(char_file.read())
... | mit | 3,838,746,157,626,249,000 | 37.448276 | 70 | 0.664574 | false |
e-loue/django-lean | django_lean/experiments/utils.py | 4 | 3517 | # -*- coding: utf-8 -*-
import logging
l = logging.getLogger(__name__)
from django_lean.experiments.models import (AnonymousVisitor, Experiment,
Participant)
class WebUser(object):
"""
Wrapper class that implements an 'ExperimentUser' object from a web
request.... | bsd-3-clause | 6,204,148,724,754,564,000 | 32.495238 | 79 | 0.602218 | false |
gustavoanatoly/flink | flink-libraries/flink-python/src/test/python/org/apache/flink/python/api/utils/utils.py | 20 | 3443 | # ###############################################################################
# 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 fi... | apache-2.0 | -7,032,445,536,357,815,000 | 41.506173 | 142 | 0.636073 | false |
christophelec/github3.py | github3/users.py | 1 | 17701 | # -*- coding: utf-8 -*-
"""
github3.users
=============
This module contains everything relating to Users.
"""
from __future__ import unicode_literals
from json import dumps
from github3.auths import Authorization
from uritemplate import URITemplate
from .events import Event
from .models import GitHubCore, BaseAccou... | bsd-3-clause | 5,184,555,750,643,077,000 | 34.544177 | 80 | 0.610417 | false |
kalikaneko/pyzqm-deb | examples/pubsub/publisher.py | 8 | 1497 | """A test that publishes NumPy arrays.
Uses REQ/REP (on PUB/SUB socket + 1) to synchronize
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2010 Brian Granger
#
# Distributed under the terms of the New BSD License. The full license is in
# the file COPYING.BSD, di... | lgpl-3.0 | 5,778,076,649,978,175,000 | 25.263158 | 78 | 0.52171 | false |
garthylou/Libreosteo | server.py | 1 | 12250 | # This file is part of LibreOsteo.
#
# LibreOsteo 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.
#
# LibreOsteo is distributed ... | gpl-3.0 | -4,845,396,577,359,817,000 | 34.242604 | 77 | 0.524082 | false |
Kitware/tangelo | tangelo/tangelo/__main__.py | 1 | 24192 | #!python
import argparse
import os
import cherrypy
import logging
import platform
import signal
import sys
import types
import ws4py.server
import tangelo
import tangelo.server
import tangelo.util
import tangelo.websocket
tangelo_version = "0.10.0-dev"
def tangelo_pkgdata():
print get_pkgdata_dir()
return ... | apache-2.0 | 1,920,424,892,851,929,000 | 41.591549 | 171 | 0.632192 | false |
hackers-terabit/portage | pym/portage/metadata.py | 4 | 6098 |
from __future__ import print_function
import sys
import signal
import logging
import operator
import portage
from portage import os
from portage import eapi_is_supported
from portage.util import writemsg_level
from portage.cache.cache_errors import CacheError
from _emerge.ProgressHandler import ProgressHandler
from ... | gpl-2.0 | 1,711,983,170,545,223,700 | 28.317308 | 91 | 0.670384 | false |
gangadharkadam/v6_frappe | frappe/core/page/data_import_tool/importer.py | 6 | 8456 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe, json
import frappe.permissions
import frappe.async
from frappe import _
from frappe.utils.csvutils import getlink
from frappe.utils.dateutils import parse_date
... | mit | 1,870,588,181,278,978,000 | 28.058419 | 110 | 0.654565 | false |
canvasnetworks/canvas | website/canvas/migrations/0048_auto__add_userinfo__add_facebookuser__chg_field_invitecode_code.py | 2 | 9862 | # encoding: 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 'UserInfo'
db.create_table('canvas_userinfo', (
('id', self.gf('django.db.model... | bsd-3-clause | -1,953,356,830,676,347,400 | 67.013793 | 192 | 0.555161 | false |
docusign/docusign-python-client | docusign_esign/models/folder_item.py | 1 | 17939 | # coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
OpenAPI spec version: v2
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from ppr... | mit | 7,622,142,744,231,004,000 | 27.294953 | 413 | 0.572105 | false |
wtsi-hgi/hgi-ansible | subrepos/wtsi-hgi.ansible-conda/tests/unit/test_conda.py | 8 | 1038 | import json
import unittest
from conda import parse_conda_stdout
class TestParseCondaStdout(unittest.TestCase):
"""
Tests for `parse_conda_stdout`.
"""
_VALID_STDOUT = """
{
"actions": {},
"success": true
}
"""
def test_parses_invalid_stdout(self):
... | gpl-3.0 | 4,698,706,332,546,276,000 | 30.454545 | 115 | 0.620424 | false |
Azure/azure-sdk-for-python | sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/operations/_bgp_service_communities_operations.py | 1 | 5134 | # 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 may ... | mit | 2,071,791,838,563,394,800 | 44.433628 | 133 | 0.643942 | false |
nimia/public_drown_scanner | pyx509/pkcs7/asn1_models/certificate_extensions.py | 2 | 8246 |
#* pyx509 - Python library for parsing X.509
#* Copyright (C) 2009-2010 CZ.NIC, z.s.p.o. (http://www.nic.cz)
#*
#* This library is free software; you can redistribute it and/or
#* modify it under the terms of the GNU Library General Public
#* License as published by the Free Software Foundation; either... | gpl-2.0 | -9,042,247,344,246,907,000 | 47.505882 | 211 | 0.616663 | false |
fengshao0907/vitess | test/protocols_flavor.py | 1 | 2649 | #!/usr/bin/env python
import logging
class ProtocolsFlavor(object):
"""Base class for protocols"""
def binlog_player_protocol(self):
"""Returns the name of the binlog player protocol to use
between vttablets, in go."""
raise NotImplementedError('Not implemented in the base class')
def binlog_play... | bsd-3-clause | -6,032,475,920,286,122,000 | 32.1125 | 79 | 0.722537 | false |
LethusTI/supportcenter | vendor/django/tests/regressiontests/urlpatterns_reverse/views.py | 39 | 1082 | from django.http import HttpResponse
from django.views.generic import RedirectView
from django.core.urlresolvers import reverse_lazy
from django.contrib.auth.decorators import user_passes_test
def empty_view(request, *args, **kwargs):
return HttpResponse('')
def kwargs_view(request, arg1=1, arg2=2):
return H... | gpl-3.0 | -2,350,634,020,821,569,500 | 27.473684 | 92 | 0.727357 | false |
antivirtel/Flexget | flexget/plugins/operate/sleep.py | 13 | 2443 | from __future__ import unicode_literals, division, absolute_import
import logging
import time
from flexget import plugin
from flexget.event import event
log = logging.getLogger('sleep')
class PluginSleep(object):
"""Causes a pause to occur during the specified phase of a task"""
schema = {
'one... | mit | 8,288,021,050,184,767,000 | 28.083333 | 84 | 0.547687 | false |
KhronosGroup/COLLADA-CTS | StandardDataSets/xml/uri/percent_encoding_spaces/percent_encoding_spaces.py | 8 | 3870 |
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publ... | mit | 2,726,351,926,173,573,600 | 50.364865 | 466 | 0.716279 | false |
Leguark/GeMpy | build/lib/pygeomod/build/lib/pygeomod/geoPyMC.py | 2 | 33046 | '''Module with classes and methods to perform Bayesian Analyse in regional modelling.
Tested on Windows 8.1
Created on 02/12/2015
@author: Miguel de la Varga
'''
import numpy as np
# Geophysisc inversion
#import pynoddy
import subprocess
import os.path
import platform
# to create folder
import sys, os
import shutil... | mit | 973,126,490,090,481,700 | 37.96934 | 134 | 0.521637 | false |
alanjw/GreenOpenERP-Win-X86 | python/Lib/site-packages/docutils/languages/pt_br.py | 148 | 1982 | # $Id: pt_br.py 5567 2008-06-03 01:11:03Z goodger $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <http://docutils.sf.net/docs/howto/i18n.html>. Two files must be
# transla... | agpl-3.0 | -522,077,669,514,278,140 | 32.033333 | 89 | 0.627649 | false |
tmerrick1/spack | var/spack/repos/builtin/packages/xsetpointer/package.py | 5 | 1740 | ##############################################################################
# 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 | 1,099,470,575,233,279,600 | 41.439024 | 82 | 0.671264 | false |
vegastrike/Assets-Production | modules/random_encounters.py | 3 | 13215 | import vsrandom
import faction_ships
import launch_recycle
import launch
import VS
import unit
import sys
import adventure
import news
import universe
import fg_util
import dynamic_battle
import dj_lib
import debug
import generate_dyn_universe
import ShowProgress
class random_encounters:
class playerdata:
... | gpl-2.0 | 4,392,202,300,210,557,400 | 39.661538 | 202 | 0.586682 | false |
vikingco/django-states | src/states/south_migrations/0012_auto__add_field_state_last_changed_state.py | 1 | 5603 | # encoding: 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 field 'State.last_changed_state'
db.add_column('states_state', 'last_changed_state', self.gf('cl_... | bsd-3-clause | -7,704,915,551,973,757,000 | 66.506024 | 203 | 0.564162 | false |
jae2/awsbigbrother | test/test_cli.py | 1 | 3596 | import pytest
from awsbigbrother.cli import app
from click.testing import CliRunner
class TestCli(object):
@pytest.fixture
def my_runner(self):
runner = CliRunner()
yield runner
runner = None
def test_mfa(self, vcr_test, my_runner):
with vcr_test.use_cassette('mfa_cli_tes... | mit | -4,463,921,292,571,821,600 | 46.315789 | 103 | 0.635428 | false |
metajack/mt2jekyll | disqus.py | 1 | 2504 | import os
import simplejson as json
import urllib, urllib2
class Disqus:
def __init__(self, user_key=None):
if not user_key:
self.user_key = os.environ.get('DISQUS_API_KEY', None)
else:
self.user_key = user_key
if not self.user_key:
raise Exception('No D... | gpl-3.0 | -8,992,314,927,588,339,000 | 28.458824 | 76 | 0.60623 | false |
SmartPeople/zulip | zerver/webhooks/trello/view/board_actions.py | 13 | 3981 | from typing import Any, Dict, Optional, Mapping, MutableMapping, Text, Tuple
from .exceptions import UnknownUpdateBoardAction
from .templates import TRELLO_SUBJECT_TEMPLATE, TRELLO_MESSAGE_TEMPLATE
SUPPORTED_BOARD_ACTIONS = [
u'removeMemberFromBoard',
u'addMemberToBoard',
u'createList',
u'updateBoard',... | apache-2.0 | 6,161,096,543,298,488,000 | 36.205607 | 113 | 0.678222 | false |
maximumG/exscript | tests/Exscript/util/reportTest.py | 3 | 3266 | from builtins import str
from builtins import object
import sys
import unittest
import re
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
import traceback
import Exscript.util.report
from Exscript import Host
from Exscript import Logger
from Exscript.util.event import Event
from... | mit | 7,021,601,749,007,433,000 | 26.677966 | 77 | 0.613901 | false |
waseem18/oh-mainline | vendor/packages/whoosh/src/whoosh/filedb/fileindex.py | 17 | 18272 | # Copyright 2009 Matt Chaput. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | agpl-3.0 | -6,589,662,498,965,216,000 | 33.540643 | 79 | 0.618323 | false |
phamtrisi/metapp2 | metapp2/forms.py | 1 | 1064 | from flask_wtf import Form
from wtforms import TextField, PasswordField
from wtforms.validators import DataRequired
from metapp2.user.models import User
class LoginForm(Form):
username = TextField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
d... | bsd-3-clause | 9,213,740,931,939,689,000 | 32.25 | 77 | 0.650376 | false |
iotile/coretools | iotilesensorgraph/iotile/sg/output_formats/snippet.py | 1 | 2464 | """A snippet is a series of commands that can be piped into the iotile tool connected to a device."""
from binascii import hexlify
def format_snippet(sensor_graph):
"""Format this sensor graph as iotile command snippets.
This includes commands to reset and clear previously stored
sensor graphs.
Arg... | gpl-3.0 | -7,454,326,414,225,230,000 | 31.421053 | 148 | 0.626218 | false |
idies/RMHDConverter | py/get_RMHD_lines.py | 1 | 2673 | ########################################################################
#
# Copyright 2015 Johns Hopkins University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache... | apache-2.0 | 6,181,180,317,898,602,000 | 27.136842 | 74 | 0.526375 | false |
shakamunyi/nova | nova/tests/functional/test_extensions.py | 6 | 1591 | # Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | -3,630,656,691,045,563,000 | 36.880952 | 78 | 0.698303 | false |
bartdag/recodoc2 | recodoc2/apps/channel/management/commands/createchannel.py | 1 | 1829 | from __future__ import unicode_literals
from optparse import make_option
from django.core.management.base import NoArgsCommand
from channel.actions import create_channel_db, create_channel_local
from docutil.commands_util import recocommand
from docutil.str_util import smart_decode
class Command(NoArgsCommand):
o... | bsd-3-clause | -7,281,137,849,988,874,000 | 43.609756 | 72 | 0.630399 | false |
kyuridenamida/ToolsForAtCoder | atcodertools/release_management/version_check.py | 2 | 1588 | import json
import os
import time
import requests
from atcodertools.release_management.version import __version__
from atcodertools.fileutils.artifacts_cache import get_cache_file_path
class VersionCheckError(Exception):
pass
cache_file_path = get_cache_file_path('version_cache.txt')
HOUR_IN_SEC = 60 * 60
d... | mit | 6,735,763,469,458,720,000 | 23.430769 | 88 | 0.622796 | false |
pnorman/mapnik | scons/scons-local-2.4.1/SCons/Tool/ifort.py | 6 | 3327 | """SCons.Tool.ifort
Tool-specific initialization for newer versions of the Intel Fortran Compiler
for Linux/Windows (and possibly Mac OS X).
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) ... | lgpl-2.1 | 8,309,782,744,675,961,000 | 36.806818 | 104 | 0.685903 | false |
kskalski/grpc | tools/interop_matrix/client_matrix.py | 6 | 1564 | #!/usr/bin/env python2.7
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | apache-2.0 | -1,014,575,462,606,614,700 | 26.928571 | 77 | 0.598465 | false |
vandenheuvel/tribler | Tribler/community/market/wallet/dummy_wallet.py | 1 | 2975 | import string
from random import choice
from twisted.internet import reactor
from twisted.internet.defer import succeed
from twisted.internet.task import deferLater
from Tribler.community.market.wallet.wallet import Wallet, InsufficientFunds
class BaseDummyWallet(Wallet):
"""
This is a dummy wallet that is ... | lgpl-3.0 | -6,327,264,842,792,312,000 | 26.293578 | 100 | 0.565378 | false |
starvingprogrammer/pynag | pynag/Utils/metrics.py | 2 | 14715 | # -*- coding: utf-8 -*-
""" Classes and functions related to Perfdata metrics."""
import shlex
import re
from pynag import errors
from pynag.Plugins import new_threshold_syntax
from pynag.Plugins import classic_threshold_syntax
MULTIPLIERS = {
'h': 10**2,
'k': 10**3,
'M': 10**6,
'G': 10**9,
'T': 1... | gpl-2.0 | 4,871,898,837,841,886,000 | 27.462282 | 137 | 0.516412 | false |
scitran/core | api/handlers/userhandler.py | 2 | 7766 | import base64
import datetime
import pymongo
import os
from ..web import base
from .. import util
from .. import config
from .. import validators
from ..auth import userauth, require_admin
from ..auth.apikeys import UserApiKey
from ..dao import containerstorage
from ..dao import noop
from ..web.errors import APIStora... | mit | 3,533,180,858,282,278,400 | 37.068627 | 113 | 0.584342 | 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.