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 |
|---|---|---|---|---|---|---|---|---|---|---|
TNT-Samuel/Coding-Projects | DNS Server/Source - Copy/Lib/distutils/tests/test_install_headers.py | 24 | 1238 | """Tests for distutils.command.install_headers."""
import os
import unittest
from distutils.command.install_headers import install_headers
from distutils.tests import support
from test.support import run_unittest
class InstallHeadersTestCase(support.TempdirManager,
support.LoggingSilencer... | gpl-3.0 | 6,207,654,004,272,567,000 | 30.74359 | 61 | 0.624394 | false |
2014c2g2/teamwork | w2/static/Brython2.0.0-20140209-164925/Lib/_random.py | 115 | 2198 | import _os
from os import urandom as _urandom
class Random:
"""Random number generator base class used by bound module functions.
Used to instantiate instances of Random to get generators that don't
share state.
Class Random can also be subclassed if you want to use a different basic
generator of ... | gpl-2.0 | 96,533,815,836,840,100 | 31.323529 | 79 | 0.60828 | false |
nickgaya/python2 | python2/shared/codec.py | 1 | 12116 | """
Encoding and decoding classes for Python 2 client/server communication.
This module is used by both the Python 2 server and the Python 3 client, with
some modification to handle object references.
The encoding supports basic types and data structures. Everything else will
be encoded as an opaque object reference... | mit | -4,245,268,213,380,566,000 | 35.384384 | 79 | 0.594503 | false |
encukou/cython | Cython/Plex/Lexicons.py | 8 | 6915 | #=======================================================================
#
# Python Lexical Analyser
#
# Lexical Analyser Specification
#
#=======================================================================
from __future__ import absolute_import
import types
from . import Actions
from . import DFA
from . imp... | apache-2.0 | -5,717,951,326,010,610,000 | 33.575 | 85 | 0.577007 | false |
wmbutler/courtlistener | alert/userHandling/migrations/0002_auto.py | 2 | 13264 | # -*- 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 M2M table for field donation on 'UserProfile'
db.create_table('UserProfile_donation', (
... | agpl-3.0 | 8,443,363,478,626,818,000 | 80.882716 | 208 | 0.555187 | false |
wardweistra/hipfrog | glassfrog/functions/apiCalls.py | 2 | 5598 | from flask import json, url_for
import requests
from .messageFunctions import createMessageDict
import glassfrog.strings as strings
class GlassfrogApiHandler(object):
def __init__(self):
pass
def glassfrogApiCall(self, apiEndpoint, glassfrogToken):
headers = {'X-Auth-Token': glassfrogToken}
... | lgpl-3.0 | -945,431,130,803,103,400 | 38.702128 | 93 | 0.483208 | false |
treycausey/scikit-learn | sklearn/externals/joblib/test/test_pool.py | 5 | 12733 | import os
import shutil
import tempfile
from nose import SkipTest
from nose.tools import with_setup
from nose.tools import assert_equal
from nose.tools import assert_raises
from nose.tools import assert_false
from nose.tools import assert_true
from .common import with_numpy, np
from .common import setup_autokill
from ... | bsd-3-clause | 4,695,593,111,768,645,000 | 32.774536 | 78 | 0.657975 | false |
karulont/combopt | project4/schedule.py | 1 | 1052 | import json
from data import read_instance_from_file
from gurobipy import *
from sys import argv
print("Reading file...")
inst = read_instance_from_file(argv[1] if len(argv) > 1 else "rnd-6000.sch")
costs = inst[0]
precedence = inst[1]
n = len(costs)
print("Number of tasks: " + str(n))
m = Model('schedule')
# Start... | mit | -7,187,988,382,677,800,000 | 22.377778 | 76 | 0.604563 | false |
Eagles2F/sync-engine | migrations/versions/078_events.py | 6 | 2006 | """events
Revision ID: 1c2253a0e997
Revises: 3c02d8204335
Create Date: 2014-08-07 00:12:40.148311
"""
# revision identifiers, used by Alembic.
revision = '1c2253a0e997'
down_revision = '3c74cbe7882e'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table(
'event',
sa.Col... | agpl-3.0 | 6,082,821,760,659,040,000 | 38.333333 | 75 | 0.623629 | false |
azlanismail/prismgames | examples/games/car/networkx/algorithms/centrality/betweenness.py | 1 | 10983 | """
Betweenness centrality measures.
"""
# Copyright (C) 2004-2011 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import heapq
import networkx as nx
import random
__author__ = """Aric Hagberg (h... | gpl-2.0 | 6,443,564,717,491,557,000 | 30.883234 | 76 | 0.565783 | false |
yavalvas/yav_com | build/matplotlib/doc/mpl_examples/pylab_examples/fonts_demo.py | 12 | 2765 | #!/usr/bin/env python
"""
Show how to set custom font properties.
For interactive users, you can also use kwargs to the text command,
which requires less typing. See examples/fonts_demo_kw.py
"""
from matplotlib.font_manager import FontProperties
from pylab import *
subplot(111, axisbg='w')
font0 = FontProperties()... | mit | -1,019,785,043,437,855,100 | 23.043478 | 76 | 0.609042 | false |
SOM-st/RPySOM | src/rlib/objectmodel.py | 1 | 1155 | import types
import sys
if sys.version_info.major > 2:
str_type = str
else:
str_type = (str, unicode)
try:
from rpython.rlib.objectmodel import we_are_translated, compute_identity_hash, compute_hash, instantiate
from rpython.rlib.longlong2float import longlong2float, float2longlong
except ImportError... | mit | 5,702,269,066,021,179,000 | 24.108696 | 108 | 0.602597 | false |
adwiputra/LUMENS-repo | processing/molusce/aboutdialog.py | 2 | 3005 | # -*- coding: utf-8 -*-
#******************************************************************************
#
# MOLUSCE
# ---------------------------------------------------------
# Modules for Land Use Change Simulations
#
# Copyright (C) 2012-2013 NextGIS (info@nextgis.org)
#
# This source is free software; you can redi... | gpl-2.0 | 5,081,687,952,249,034,000 | 36.5625 | 125 | 0.663894 | false |
zimmerman-zimmerman/OIPA | OIPA/iati/migrations/0044_auto_20180917_1527.py | 2 | 1162 | # Generated by Django 2.0.6 on 2018-09-17 15:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('iati_codelists', '0010_aidtype_vocabulary'),
('iati', '0043_remove_transaction_aid_type'),
]
operations = [... | agpl-3.0 | 7,323,482,272,445,350,000 | 32.2 | 135 | 0.600688 | false |
prculley/gramps | gramps/gui/widgets/labels.py | 2 | 8895 | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at you... | gpl-2.0 | -3,742,808,405,553,585,000 | 34.158103 | 79 | 0.469365 | false |
eduNEXT/edunext-platform | lms/djangoapps/teams/tests/test_serializers.py | 3 | 11183 | # -*- coding: utf-8 -*-
"""
Tests for custom Teams Serializers.
"""
import six
from django.core.paginator import Paginator
from django.test.client import RequestFactory
from lms.djangoapps.teams.serializers import BulkTeamCountTopicSerializer, MembershipSerializer, TopicSerializer
from lms.djangoapps.teams.tests.fac... | agpl-3.0 | 9,129,519,232,389,384,000 | 37.133106 | 112 | 0.585877 | false |
JensWehner/votca-scripts | lib/Carlstuff/evaporation2/__evp_system__.py | 2 | 25082 | from __future__ import division
from __pyosshell__ import *
from __proptions__ import *
from __mdpassist__ import *
from __molecules__ import *
class System(object):
def __init__(self, grofile, topfile, ndxfile, ctrlfile, histfile, cmdlineopt, verbose=True):
# ========================================... | apache-2.0 | -5,107,440,915,815,813,000 | 27.213723 | 137 | 0.543019 | false |
gangadharkadam/contributionerp | erpnext/selling/doctype/installation_note/installation_note.py | 18 | 4066 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import cstr, getdate
from frappe import _
from erpnext.stock.utils import get_valid_serial_nos
from erpnext.utilities... | agpl-3.0 | -7,984,588,396,301,521,000 | 35.303571 | 105 | 0.689129 | false |
almarklein/scikit-image | skimage/segmentation/tests/test_random_walker.py | 2 | 9054 | import numpy as np
from skimage.segmentation import random_walker
from skimage.transform import resize
def make_2d_syntheticdata(lx, ly=None):
if ly is None:
ly = lx
np.random.seed(1234)
data = np.zeros((lx, ly)) + 0.1 * np.random.randn(lx, ly)
small_l = int(lx // 5)
data[lx // 2 - small_l... | bsd-3-clause | 4,296,883,676,515,704,300 | 33.823077 | 80 | 0.549702 | false |
haphaeu/yoshimi | Qt/TalkingFiles/stack_overflow_answer.py | 1 | 1104 | # -*- coding: utf-8 -*-
"""
Resposta a minha pergunta:
https://stackoverflow.com/a/46817275/5069105
Created on Thu Oct 19 08:36:41 2017
@author: rarossi
"""
import sys
from PyQt4 import QtGui, QtCore
class Thread(QtCore.QThread):
def run(self):
QtCore.QThread.sleep(2)
class Example(QtGui.QWidget):
... | lgpl-3.0 | 6,767,804,709,810,246,000 | 21.530612 | 71 | 0.602355 | false |
googleapis/python-speech | samples/snippets/quickstart.py | 1 | 1633 | #!/usr/bin/env python
# Copyright 2016 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... | apache-2.0 | -5,257,935,808,176,347,000 | 30.403846 | 74 | 0.710349 | false |
borisroman/vdsm | tests/cPopenTests.py | 4 | 5408 | #
# Copyright 2012 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in th... | gpl-2.0 | 6,968,033,768,327,014,000 | 30.260116 | 79 | 0.56176 | false |
fedora-infra/faitout | faitout/faitoutlib/__init__.py | 1 | 15008 | #-*- coding: utf-8 -*-
"""
faitoutlib - the backend library performing the actual work of this project.
(c) 2013-2017 - Copyright Red Hat Inc.
Authors:
- Pierre-Yves Chibon <pingou@pingoured.fr>
Distributed under License GPLv3 or later
You can find a copy of this license on the website
http://www.gnu.org/lice... | gpl-3.0 | -823,578,071,481,065,200 | 34.396226 | 83 | 0.665578 | false |
guettli/django | tests/swappable_models/tests.py | 16 | 2006 | from __future__ import unicode_literals
from swappable_models.models import Article
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.core import management
from django.test import TestCase, override_settings
from django.utils.six import StringIO
... | bsd-3-clause | -5,841,470,906,766,234,000 | 40.791667 | 86 | 0.693918 | false |
0x46616c6b/ansible | lib/ansible/modules/network/aos/aos_logical_device.py | 13 | 7985 | #!/usr/bin/python
#
# (c) 2017 Apstra Inc, <community@apstra.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 opt... | gpl-3.0 | 3,997,973,514,520,942,600 | 30.812749 | 128 | 0.592987 | false |
amisrs/angular-flask | angular_flask/lib/python2.7/site-packages/gevent/_semaphore.py | 3 | 10408 | import sys
from gevent.hub import get_hub, getcurrent
from gevent.timeout import Timeout
__all__ = ['Semaphore', 'BoundedSemaphore']
class Semaphore(object):
"""
Semaphore(value=1) -> Semaphore
A semaphore manages a counter representing the number of release()
calls minus the number of acquire() ca... | mit | -3,093,381,927,742,221,000 | 37.69145 | 121 | 0.596368 | false |
tvcsantos/Flexget | flexget/event.py | 5 | 2988 | """
Provides small event framework
"""
from __future__ import absolute_import, division, unicode_literals
import logging
log = logging.getLogger('event')
_events = {}
class Event(object):
"""Represents one registered event."""
def __init__(self, name, func, priority=128):
self.name = name
... | mit | -5,708,261,350,407,067,000 | 27.188679 | 119 | 0.629518 | false |
google/ftc-object-detection | training/experimental/inspect_records.py | 1 | 1982 | # Copyright 2018 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 agreed to in writing, ... | apache-2.0 | -6,338,285,356,073,414,000 | 40.291667 | 102 | 0.702321 | false |
germanovm/vdsm | tests/functional/networkTestsOVS.py | 1 | 15271 | #
# Copyright 2015 Red Hat, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the ... | gpl-2.0 | -8,391,584,923,909,804,000 | 43.521866 | 79 | 0.615218 | false |
CavityGap/greencoin | contrib/devtools/fix-copyright-headers.py | 1 | 1478 | #!/usr/bin/env python
'''
Run this script inside of src/ and it will look for all the files
that were changed this year that still have the last year in the
copyright headers, and it will fix the headers on that file using
a perl regex one liner.
For example: if it finds something like this and we're in 2014
// Copyr... | mit | -8,751,418,141,464,714,000 | 26.886792 | 81 | 0.692828 | false |
darafferty/factor | setup.py | 1 | 1734 | from __future__ import print_function
from setuptools import setup, Command
import os
import factor._version
description = 'FACTOR: Facet calibration for LOFAR'
long_description = description
if os.path.exists('README.md'):
with open('README.md') as f:
long_description=f.read()
class PyTest(Command):
... | gpl-2.0 | -7,995,605,415,183,063,000 | 29.964286 | 93 | 0.618224 | false |
marcoaureliojf/deepin-software-center-v2 | src/searchEntry.py | 2 | 3568 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 Deepin, Inc.
# 2011 Wang Yong
#
# Author: Wang Yong <lazycat.manatee@gmail.com>
# Maintainer: Wang Yong <lazycat.manatee@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | gpl-3.0 | -1,242,724,971,976,026,000 | 36.166667 | 105 | 0.630045 | false |
timpalpant/calibre | src/calibre/gui2/store/stores/amazon_ca_plugin.py | 3 | 5340 | #!/usr/bin/env python2
# vim:fileencoding=utf-8
# License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import (unicode_literals, division, absolute_import,
print_function)
store_version = 3 # Needed for dynamic plugin loading
from contextlib import closing
imp... | gpl-3.0 | -5,062,873,207,575,200,000 | 36.87234 | 142 | 0.558052 | false |
408794550/Mechine-Learning-In-Action | Ch04/NaiveBayes.py | 1 | 6699 | # 朴素贝叶斯算法
# 优点: 在数据较少的情况下依然有效,可以处理多类别问题
# 缺点: 对于输入数据的准备方式较为敏感
# 适用数据类型: 标称型数据
# 贝叶斯决策论的核心思想:选择具有最高概率的决策
# encoding: utf-8
from Utility import logging
from numpy import *
def load_dataset():
posting_list = [['my', 'dog', 'has', 'flea', 'problems', 'help', 'please'],
... | apache-2.0 | -5,173,781,764,079,549,000 | 33.04142 | 118 | 0.605076 | false |
code-google-com/oyprojectmanager | oyProjectManager/models/version.py | 3 | 47978 | # -*- coding: utf-8 -*-
# Copyright (c) 2009-2014, Erkan Ozgur Yilmaz
#
# This module is part of oyProjectManager and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
import os
import re
from copy import copy
import jinja2
from sqlalchemy import (UniqueConstraint, Column, Inte... | bsd-2-clause | 2,766,646,839,963,355,000 | 36.243012 | 79 | 0.602702 | false |
LolexInc/Lolex-Tools | project/new/lib/LolexToolsMethods.py | 1 | 1215 | #! python3
# 0
# 0 000000 0 000000 0 0 000000000 00000000 00000000 0 000000
# 0 00 0 0 0 00 00 0 0 0 0 0 0
# 0 00 0 0 00000 00 000000 00 0 ... | lgpl-3.0 | 4,586,291,687,691,301,000 | 34.735294 | 181 | 0.510288 | false |
mlabru/ptracks | control/newton/control_newton.py | 1 | 12852 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
---------------------------------------------------------------------------------------------------
control_newton
revision 0.2 2015/nov mlabru
pep8 style conventions
revision 0.1 2014/nov mlabru
initial version (Linux/Python)
-------------------------------------... | gpl-3.0 | -3,338,555,403,574,336,000 | 31.295455 | 100 | 0.458128 | false |
dotkrnl/gface | lib/settings.py | 1 | 1894 | #!/usr/bin/env python2.7
# -*- coding: UTF-8 -*-
#### Copyright for this software - 本软件的版权信息 ####
# Copyright (C) 2013 Jason Lau (刘家昌)
#
# 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
#
# ... | apache-2.0 | -6,986,004,401,871,246,000 | 26.940299 | 74 | 0.623932 | false |
jjmiranda/edx-platform | lms/djangoapps/grades/tests/test_models.py | 1 | 8528 | """
Unit tests for grades models.
"""
from base64 import b64encode
from collections import OrderedDict
import ddt
from hashlib import sha1
import json
from django.db.utils import IntegrityError
from django.test import TestCase
from opaque_keys.edx.locator import CourseLocator, BlockUsageLocator
from lms.djangoapps.gr... | agpl-3.0 | -6,927,463,723,962,252,000 | 34.983122 | 113 | 0.622889 | false |
thedep2/CouchPotatoServer | couchpotato/core/media/movie/providers/trailer/youtube_dl/extractor/rai.py | 22 | 4658 | from __future__ import unicode_literals
import re
from .subtitles import SubtitlesInfoExtractor
from ..compat import (
compat_urllib_parse,
)
from ..utils import (
parse_duration,
unified_strdate,
)
class RaiIE(SubtitlesInfoExtractor):
_VALID_URL = r'(?P<url>http://(?:.+?\.)?(?:rai\.it|rai\.tv|raine... | gpl-3.0 | -159,452,521,588,304,320 | 36.564516 | 163 | 0.522542 | false |
jelugbo/tundex | common/lib/xmodule/xmodule/xml_module.py | 17 | 16439 | import json
import copy
import logging
import os
import sys
from lxml import etree
from xblock.fields import Dict, Scope, ScopeIds
from xmodule.x_module import XModuleDescriptor
from xmodule.modulestore.inheritance import own_metadata, InheritanceKeyValueStore
from xmodule.modulestore import EdxJSONEncoder
from xblock... | agpl-3.0 | -1,596,718,683,780,248,800 | 38.140476 | 126 | 0.616948 | false |
talkincode/txweb | txweb/paginator.py | 10 | 2978 | #!/usr/bin/env python
#coding=utf-8
from __future__ import division
import math
class Paginator():
"""系统查询分页工具
"""
def __init__(self, url_func, page=1, total=0, page_size=20):
self.url_func = url_func
self.page = 1 if page < 1 else page
self.total = total
self.page_size = p... | mit | -8,691,426,116,596,310,000 | 37.68 | 121 | 0.502414 | false |
jordanemedlock/psychtruths | temboo/core/Library/Google/Drive/Parents/Insert.py | 5 | 4897 | # -*- coding: utf-8 -*-
###############################################################################
#
# Insert
# Adds a parent folder for a file.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except ... | apache-2.0 | -6,064,132,987,262,936,000 | 40.854701 | 255 | 0.666939 | false |
noba3/KoTos | addons/plugin.video.mediathek/mediathek/factory.py | 1 | 1883 | # -*- coding: utf-8 -*-
#-------------LicenseHeader--------------
# plugin.video.Mediathek - Gives access to most video-platforms from German public service broadcasters
# Copyright (C) 2010 Raptor 2101 [raptor2101@gmx.de]
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of... | gpl-2.0 | -2,008,556,173,750,065,000 | 38.229167 | 103 | 0.733935 | false |
seomoz/roger-mesos-tools | cli/roger_promote.py | 1 | 10706 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
Provides a class and script. See bin/roger.py for a reference of how the script
is called.
Promote moves containers between dev, stage, prod environments
:Classes:
RogerPromote: Provides application promotion between environments for the
supported Mesos framework... | apache-2.0 | -7,767,978,578,044,005,000 | 28.905028 | 87 | 0.572109 | false |
rudaoshi/neural_machine | neural_machine/tasks/language/common/corpus/sequence_pair_corpus.py | 3 | 3399 | __author__ = 'Sun'
import codecs
import numpy as np
import json, logging
import itertools
from collections import Counter
from neural_machine.tasks.language.common.corpus.sequence_corpus import SequenceCorpus
from utils.data_process import to_time_distributed_categorical
class SequencePairCorpus(object):
def __in... | gpl-3.0 | -7,165,570,883,764,807,000 | 31.371429 | 132 | 0.59135 | false |
hfp/tensorflow-xsmm | tensorflow/contrib/bayesflow/python/ops/monte_carlo_impl.py | 15 | 14351 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -7,686,672,466,956,218,000 | 37.371658 | 80 | 0.630061 | false |
Shekharrajak/pydy | pydy/codegen/tests/test_cython_code.py | 4 | 5401 | #!/usr/bin/env python
import os
import numpy as np
import sympy as sm
from ...models import multi_mass_spring_damper
from ..cython_code import CythonMatrixGenerator
class TestCythonMatrixGenerator(object):
def setup(self):
self.prefix = 'boogly_bee'
sys = multi_mass_spring_damper(6, True, Tr... | bsd-3-clause | -6,750,143,707,180,863,000 | 26.840206 | 75 | 0.515275 | false |
johnmeade/helpy | curried.py | 1 | 3257 | 'Curried helpers for cleaner funcitonal style programming'
import sys
import helpy.functional as fnc
from functools import reduce as py_reduce
if sys.version_info.major >= 3 and sys.version_info.minor >= 3:
from inspect import signature
def __arg_count__(f):
return len( signature(f).parameters )
els... | mit | 848,729,204,883,938,400 | 24.849206 | 80 | 0.632484 | false |
kx499/mhn | server/mhn/auth/views.py | 7 | 5357 | import hashlib
from datetime import datetime
from flask import Blueprint, request, jsonify
from flask.ext.mail import Message
from sqlalchemy.exc import IntegrityError
from flask_security.utils import (
login_user as login, verify_and_update_password,
encrypt_password, logout_user as logout)
from mhn ... | lgpl-2.1 | 2,123,904,715,376,590,300 | 33.56129 | 88 | 0.644951 | false |
allink/django-admin-sso | example/wsgi.py | 3 | 1132 | """
WSGI config for test2 project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` se... | bsd-3-clause | 94,997,185,504,878,600 | 39.428571 | 79 | 0.79947 | false |
deevarvar/myLab | baidu_code/bcoreapi/ticket/base.py | 1 | 27437 | #-*- coding=utf-8 -*-
'''
@description: 核心购票新接口测试用例基类。
@author: miliang<miliang@baidu.com>
'''
import sys
import copy
import urllib
import urllib2
import json
import hashlib
import time
import MySQLdb
import random
import redis
import socket
from settings import SERVER,REDIS_CONF,MYSQL,SIGN_KEY, ODP_P... | mit | -1,332,399,588,829,917,200 | 40.604613 | 168 | 0.477437 | false |
mugizico/smappPy | smappPy/tools/extract_user_data.py | 2 | 4506 | """
Compiles basic user data by day (followers, friends, name, screen name, ID, langauge)
@auth pablo, dpb
@date 04/02/2013
"""
import os
import csv
import argparse
import simplejson as json
from collections import defaultdict
from pymongo import MongoClient
from pymongo.errors import ConnectionFailure
def extra... | gpl-2.0 | 4,085,438,130,280,368,600 | 42.747573 | 116 | 0.626276 | false |
Cr4sh/ThinkPwn | scan_thinkpwn.py | 1 | 10620 | #!/usr/bin/python
'''
#############################################################################
THINKPWN SCANNER
This program is used to scan UEFI drivers extracted from firmware image
for ThinkPwn vulnerability in vendor/model agnostic way.
For more information about this vulenrability check the follo... | gpl-3.0 | -4,115,384,228,921,796,600 | 25.287129 | 91 | 0.531262 | false |
kursitet/edx-platform | common/lib/xmodule/xmodule/tests/test_export.py | 28 | 13552 | """
Tests of XML export
"""
import ddt
import lxml.etree
import mock
import os
import pytz
import shutil
import tarfile
import unittest
import uuid
from datetime import datetime, timedelta, tzinfo
from fs.osfs import OSFS
from path import Path as path
from tempfile import mkdtemp
from textwrap import dedent
from xbl... | agpl-3.0 | -5,525,782,953,217,438,000 | 34.018088 | 108 | 0.642857 | false |
archatas/whoosh | whoosh/lang/lovins.py | 1 | 12657 | """This module implements the Lovins stemming algorithm. Use the ``stem()``
function::
stemmed_word = stem(word)
"""
from whoosh.util.collections2 import defaultdict
# Conditions
def A(base):
# A No restrictions on stem
return True
def B(base):
# B Minimum stem length = 3
return len(base) >... | apache-2.0 | 895,048,491,556,534,700 | 22.352399 | 79 | 0.372521 | false |
johnchronis/exareme | exareme-tools/madis/src/functions/vtable/mergeunion.py | 3 | 2587 | import setpath
import vtbase
import functions
import heapq
### Classic stream iterator
registered=True
class MergeUnion(vtbase.VT):
def BestIndex(self, constraints, orderbys):
return (None, 0, None, True, 1000)
def VTiter(self, *parsedArgs,**envars):
largs, dictargs = self.full_parse(parsedAr... | mit | -5,264,859,311,742,906,000 | 30.168675 | 112 | 0.545033 | false |
astropy/astropy | astropy/visualization/scripts/fits2bitmap.py | 8 | 7364 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
from astropy.visualization.mpl_normalize import simple_norm
from astropy import log
from astropy.io.fits import getdata
def fits2bitmap(filename, ext=0, out_fn=None, stretch='linear',
power=1.0, asinh_a=0.1, min_cut=None, max_... | bsd-3-clause | -626,384,243,583,890,300 | 43.902439 | 78 | 0.580255 | false |
dragorosson/heat | heat/engine/resources/openstack/heat/structured_config.py | 3 | 8968 | #
# 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
# ... | apache-2.0 | -8,884,169,042,803,992,000 | 35.16129 | 79 | 0.634478 | false |
vmendez/DIRAC | Resources/Storage/DIPStorage.py | 1 | 17425 | """ DIPStorage class is the client of the DIRAC Storage Element.
The following methods are available in the Service interface
getMetadata()
get()
getDir()
put()
putDir()
remove()
"""
__RCSID__ = "$Id$"
import os
import random
from DIRAC import g... | gpl-3.0 | -1,757,257,447,987,831,000 | 34.488798 | 131 | 0.596671 | false |
ctuning/ck-env | soft/tool.scons/customize.py | 3 | 1322 | #
# Collective Knowledge (individual environment - setup)
#
# See CK LICENSE.txt for licensing details
# See CK COPYRIGHT.txt for copyright details
#
# Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net
#
import os
##############################################################################
# ... | bsd-3-clause | -6,188,456,156,614,589,000 | 19.030303 | 78 | 0.474281 | false |
kakkojc/DIE | DIE/Lib/DataParser.py | 9 | 8086 |
from DIE.Lib.DataPluginBase import DataPluginBase
import logging
import idaapi
import idc
import sys
try:
# TODO: Is singleton really required here? python modules are basically singleton by design
from yapsy.PluginManager import PluginManagerSingleton
except ImportError, err:
idaapi.msg("Yap... | mit | -7,869,885,376,413,775,000 | 34.423423 | 118 | 0.608583 | false |
doubi-workshop/grpc | src/python/grpcio/grpc/beta/_connectivity_channel.py | 34 | 6379 | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | 7,152,827,984,435,939,000 | 39.891026 | 79 | 0.701991 | false |
orgito/ansible | lib/ansible/modules/cloud/google/gcp_container_cluster_facts.py | 2 | 16573 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Google
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
... | gpl-3.0 | 7,647,188,523,714,107,000 | 38.087264 | 139 | 0.613649 | false |
cernanalysispreservation/analysis-preservation.cern.ch | cap/modules/auth/views.py | 2 | 5687 | # -*- coding: utf-8 -*-
#
# This file is part of CERN Analysis Preservation Framework.
# Copyright (C) 2016 CERN.
#
# CERN Analysis Preservation Framework is free software; you can redistribute
# it and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either... | gpl-2.0 | 1,710,167,918,217,202,000 | 30.949438 | 78 | 0.663443 | false |
qiankunshe/sky_engine | sky/tools/webkitpy/common/net/buildbot/chromiumbuildbot_unittest.py | 24 | 2258 | # Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | 1,381,318,044,048,205,600 | 51.511628 | 137 | 0.756422 | false |
jgillis/casadi | experimental/joel/scpgen_chain_mass.py | 1 | 4034 | #
# This file is part of CasADi.
#
# CasADi -- A symbolic framework for dynamic optimization.
# Copyright (C) 2010 by Joel Andersson, Moritz Diehl, K.U.Leuven. All rights reserved.
#
# CasADi is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Pub... | lgpl-3.0 | 8,160,932,959,147,517,000 | 23.155689 | 102 | 0.665097 | false |
harish2rb/pyGeoNet | pygeonet_V2_1/pygeonet_slope_curvature.py | 1 | 5910 | import numpy as np
from scipy import stats
import statsmodels.api as sm
import matplotlib.pyplot as plt
import prepare_pygeonet_defaults as defaults
import prepare_pygeonet_inputs as parameters
import pygeonet_rasterio as pyg_rio
import pygeonet_plot as pyg_plt
def compute_dem_slope(filteredDemArray, pixe... | gpl-3.0 | 8,037,581,099,626,046,000 | 42.104478 | 96 | 0.665144 | false |
agconti/njode | env/lib/python2.7/site-packages/oauthlib/common.py | 34 | 13310 | # -*- coding: utf-8 -*-
"""
oauthlib.common
~~~~~~~~~~~~~~
This module provides data structures and utilities common
to all implementations of OAuth.
"""
from __future__ import absolute_import, unicode_literals
import collections
import datetime
import logging
import random
import re
import sys
import time
try:
... | bsd-3-clause | 754,211,775,766,494,000 | 30.391509 | 97 | 0.632231 | false |
endlessm/chromium-browser | tools/cygprofile/cluster.py | 10 | 16117 | # Copyright 2018 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.
"""Clustering for function call-graph.
See the Clustering class for a detailed description.
"""
import collections
import itertools
import logging
Neighbo... | bsd-3-clause | -1,921,120,404,200,820,000 | 37.742788 | 80 | 0.664019 | false |
yury-s/v8-inspector | Source/chrome/tools/telemetry/telemetry/core/backends/android_app_backend.py | 5 | 3603 | # Copyright 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.
import re
from telemetry.core import android_process
from telemetry.core.backends import android_browser_backend_settings
from telemetry.core.backends impor... | bsd-3-clause | 182,121,754,240,124,130 | 34.323529 | 79 | 0.710797 | false |
antoan2/incubator-mxnet | example/fcn-xs/init_fcnxs.py | 52 | 4639 | # 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 | 8,981,062,588,885,491,000 | 42.764151 | 97 | 0.624488 | false |
Sonicbids/django | django/contrib/gis/db/models/fields.py | 5 | 13852 | from django.db.models.fields import Field
from django.db.models.expressions import ExpressionNode
from django.utils.translation import ugettext_lazy as _
from django.contrib.gis import forms
from django.contrib.gis.db.models.lookups import gis_lookups
from django.contrib.gis.db.models.proxy import GeometryProxy
from dj... | bsd-3-clause | -1,494,347,700,590,514,200 | 36.539295 | 117 | 0.632039 | false |
jeffdwyatt/taiga-back | tests/integration/test_custom_attributes_user_stories.py | 20 | 7254 | # Copyright (C) 2015 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2015 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2015 David Barragán <bameda@dbarragan.com>
# 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 F... | agpl-3.0 | -7,595,145,645,926,785,000 | 39.513966 | 93 | 0.644788 | false |
gmr/tredis | tests/sets_tests.py | 1 | 9695 | import mock
from tornado import testing
from tredis import exceptions
from . import base
class SetTests(base.AsyncTestCase):
@testing.gen_test
def test_sadd_single(self):
key, value = self.uuid4(2)
result = yield self.client.sadd(key, value)
self.assertEqual(result, 1)
@testin... | bsd-3-clause | -1,511,673,348,091,621,400 | 37.169291 | 78 | 0.637648 | false |
spanezz/django-housekeeping | django_housekeeping/task.py | 1 | 2144 | # Pluggable housekeeping framework for Django sites
#
# Copyright (C) 2013--2014 Enrico Zini <enrico@enricozini.org>
#
# 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 3.... | gpl-3.0 | 664,481,234,151,734,100 | 29.628571 | 79 | 0.670243 | false |
moden-py/pywinauto | examples/uninstall_7zip.py | 1 | 1904 | """
Uninstall script for 7zip 9.20 (64-bit)
Requirements:
- Win7 or Win8.1 x64, 64-bit Python
- pywinauto 0.5.2+
- UAC is fully disabled
"""
from __future__ import print_function
import pywinauto
pywinauto.Application().Start(r'explorer.exe')
explorer = pywinauto.Application().Connect(path='explorer.exe')
# Go... | lgpl-2.1 | -3,219,262,022,870,870,500 | 38.6875 | 113 | 0.695378 | false |
triplefox/2017STDIOGameJam | asweigart/bagels_pico_fermi/bagels.py | 1 | 2056 | import random
NUM_DIGITS = 3
MAX_GUESS = 10
def getSecretNum():
# Returns a string of unique random digits that is NUM_DIGITS long.
numbers = list(range(10))
random.shuffle(numbers)
secretNum = ''
for i in range(NUM_DIGITS):
secretNum += str(numbers[i])
return secretNum
def getClues(g... | mit | 8,580,243,675,894,636,000 | 27.555556 | 85 | 0.593872 | false |
ClovisIRex/Snake-django | env/lib/python3.6/site-packages/pylint/test/functional/mapping_context.py | 10 | 2010 | """
Checks that only valid values are used in a mapping context.
"""
# pylint: disable=missing-docstring,invalid-name,too-few-public-methods,no-self-use,import-error,wrong-import-position
from __future__ import print_function
def test(**kwargs):
print(kwargs)
# dictionary value/comprehension
dict_value = dict(a... | mit | -8,358,436,918,026,497,000 | 19.721649 | 118 | 0.630846 | false |
lochiiconnectivity/libcloud | libcloud/test/compute/test_vpsnet.py | 46 | 8658 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | 9,166,843,932,081,830,000 | 39.839623 | 108 | 0.558212 | false |
gramps-project/gramps | gramps/gui/views/treemodels/citationbasemodel.py | 5 | 11870 | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2011 Tim G L Lyons, Nick Hall
#
# 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 Found... | gpl-2.0 | 8,066,906,672,199,134,000 | 33.011461 | 79 | 0.55754 | false |
yuxiang-zhou/menpofit | menpofit/aam/fitter.py | 2 | 22442 | import numpy as np
from copy import deepcopy
from menpo.base import name_of_callable
from menpo.transform import AlignmentUniformScale
from menpo.image import BooleanImage
from menpofit.fitter import (MultiScaleParametricFitter,
noisy_shape_from_bounding_box)
from menpofit.sdm import Supe... | bsd-3-clause | -3,890,095,185,733,189,000 | 44.15493 | 82 | 0.617414 | false |
jessefeinman/FintechHackathon | venv/Lib/site-packages/setuptools/command/install_egg_info.py | 22 | 4096 | from distutils import log, dir_util
import os
from setuptools.extern.six.moves import map
from setuptools import Command
from setuptools.archive_util import unpack_archive
import pkg_resources
class install_egg_info(Command):
"""Install an .egg-info directory for the package"""
description = "Install an .e... | bsd-2-clause | 4,333,745,931,624,503,000 | 33.420168 | 78 | 0.565918 | false |
erichiggins/gae-mixy | appengine_config.py | 1 | 1050 | #/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
# Zipimport libraries.
# Eric's note: I've swapped these zips with new files created from
# 'python setup.py build'. when available.
THIRD_PARTY_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'third_party')
LIBS = (
'arrow-0.4.... | apache-2.0 | -4,125,297,717,674,693,000 | 24 | 90 | 0.662857 | false |
marcelveldt/plugin.video.plexbmc | resources/lib/plexbmc.py | 1 | 174368 | '''
@document : plexbmc.py
@package : PleXBMC add-on
@author : Hippojay (aka Dave Hawes-Johnson)
@copyright : 2011-2015, Hippojay
@version : 4.0 (Helix)
@license : Gnu General Public License - see LICENSE.TXT
@description: pleXBMC XBMC add-on
This file is part of the XB... | gpl-2.0 | 1,801,083,209,271,853,800 | 39.409733 | 236 | 0.584815 | false |
StephenWeber/ansible | lib/ansible/modules/clustering/consul_kv.py | 25 | 9785 | #!/usr/bin/python
#
# (c) 2015, Steve Gargan <steve.gargan@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... | gpl-3.0 | -7,380,284,078,236,923,000 | 32.395904 | 91 | 0.609811 | false |
Esri/mdcs-py | scripts/MDCS.py | 1 | 8890 | # ------------------------------------------------------------------------------
# Copyright 2019 Esri
# 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/LICEN... | apache-2.0 | 2,259,711,835,154,969,600 | 37.484848 | 153 | 0.570641 | false |
zsx/hotwire | hotwire/sysdep/ipc_impl/ipc_dbus.py | 3 | 3872 | # This file is part of the Hotwire Shell project API.
# Copyright (C) 2007 Colin Walters <walters@verbum.org>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, includin... | gpl-2.0 | 2,806,544,742,445,595,000 | 37.72 | 96 | 0.64437 | false |
fbradyirl/home-assistant | homeassistant/components/tellstick/__init__.py | 2 | 10079 | """Support for Tellstick."""
import logging
import threading
import voluptuous as vol
from homeassistant.helpers import discovery
from homeassistant.core import callback
from homeassistant.const import EVENT_HOMEASSISTANT_STOP, CONF_HOST, CONF_PORT
from homeassistant.helpers.entity import Entity
import homeassistant.... | apache-2.0 | -284,460,317,920,635,900 | 31.40836 | 88 | 0.62278 | false |
umago/virtualbmc | virtualbmc/manager.py | 1 | 7545 | # 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
# d... | apache-2.0 | -1,971,991,840,386,615,600 | 34.093023 | 78 | 0.584626 | false |
tlakshman26/cinder-bug-fix-volume-conversion-full | cinder/tests/unit/objects/test_volume.py | 2 | 6211 | # Copyright 2015 SimpliVity Corp.
#
# 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 o... | apache-2.0 | 5,775,216,041,093,497,000 | 42.131944 | 78 | 0.619385 | false |
EricMuller/mynotes-backend | requirements/twisted/Twisted-17.1.0/src/twisted/web/_stan.py | 15 | 10790 | # -*- test-case-name: twisted.web.test.test_stan -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
An s-expression-like syntax for expressing xml in pure python.
Stan tags allow you to build XML documents using Python.
Stan is a DOM, or Document Object Model, implemented using basic Pyt... | mit | 7,378,153,803,653,518,000 | 31.69697 | 102 | 0.618072 | false |
Netuitive/netuitive-diamond | src/collectors/eventstoreprojections/tests/testeventstoreprojections.py | 13 | 5013 | #!/usr/bin/python
# coding=utf-8
##########################################################################
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from mock import call, patch
from diamond.collector import Collector
from eventstoreprojections import Eventst... | mit | -489,803,046,913,590,850 | 44.990826 | 79 | 0.619589 | false |
david415/txtorcon | test/test_circuit.py | 1 | 16068 | import datetime
import time
from twisted.trial import unittest
from twisted.internet import defer, task
from twisted.python.failure import Failure
from zope.interface import implements
from mock import patch
from txtorcon import Circuit
from txtorcon import build_timeout_circuit
from txtorcon import Stream
from txtor... | mit | -2,256,933,492,965,641,200 | 40.412371 | 221 | 0.679861 | false |
blckshrk/Weboob | modules/marmiton/backend.py | 1 | 2009 | # -*- coding: utf-8 -*-
# Copyright(C) 2013 Julien Veyssier
#
# 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 op... | agpl-3.0 | -5,020,013,221,003,372,000 | 31.934426 | 77 | 0.689895 | false |
ASCIT/donut-python | donut/modules/rooms/helpers.py | 2 | 3956 | from datetime import datetime, timedelta
from itertools import groupby
import flask
import pymysql.cursors
from donut.auth_utils import get_user_id
def get_rooms():
"""Gets a list of rooms in the form {id, name, title, desc}"""
query = 'SELECT room_id, location, title, description FROM rooms'
with flask... | mit | 8,378,764,097,430,169,000 | 29.666667 | 81 | 0.602882 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-documentdb/setup.py | 4 | 2800 | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | mit | -7,216,384,342,864,207,000 | 31.941176 | 91 | 0.606786 | false |
zzicewind/oslo.log | oslo_log/formatters.py | 3 | 9527 | # 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
# d... | apache-2.0 | -2,249,657,567,246,892,000 | 36.070039 | 78 | 0.593786 | false |
ripples-alive/Crawler | diyifanwen/diyifanwen/settings.py | 2 | 3239 | # -*- coding: utf-8 -*-
# Scrapy settings for diyifanwen project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lat... | mit | -4,219,199,908,389,683,700 | 34.988889 | 135 | 0.767521 | false |
isandlaTech/cohorte-runtime | python/cohorte/composer/top/distributor.py | 2 | 2869 | #!/usr/bin/env python
# -- Content-Encoding: UTF-8 --
"""
Top Composer: Node Distributor
Clusters the components of a composition into groups according to several
criteria.
:author: Thomas Calmant
:license: Apache Software License 2.0
:version: 3.0.0
..
Copyright 2014 isandlaTech
Licensed under the Apache ... | apache-2.0 | 1,590,243,616,781,579,000 | 29.849462 | 80 | 0.63855 | 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.