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 |
|---|---|---|---|---|---|---|---|---|---|---|
jayvdb/mwparserfromhell | src/mwparserfromhell/nodes/comment.py | 2 | 1655 | # Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, ... | mit | -6,542,845,642,427,317,000 | 37.488372 | 79 | 0.700302 | false |
GiedriusM/openthread | tools/spinel-cli/spinel/config.py | 5 | 3527 | #
# Copyright (c) 2016, The OpenThread Authors.
# 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 ... | bsd-3-clause | -7,304,396,389,722,446,000 | 30.212389 | 78 | 0.635101 | false |
ctiller/grpc | tools/run_tests/xds_k8s_test_driver/framework/xds_flags.py | 5 | 3275 | # Copyright 2020 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 law or agreed to in writing... | apache-2.0 | 5,975,780,552,219,147,000 | 39.9375 | 80 | 0.596336 | false |
thomasbarillot/DAQ | HHGMonitor/ADQ14_FWDAQ_streaming_example.py | 1 | 10160 | #!/usr/bin/env python3
#
# Copyright 2015 Signal Processing Devices Sweden AB. All rights reserved.
#
# Description: ADQ14 FWDAQ streaming example
# Documentation:
#
import numpy as np
import ctypes as ct
import matplotlib.pyplot as plt
import sys
import time
import os
sys.path.insert(1, os.path.dirname(os.path.re... | mit | 2,691,216,624,537,096,000 | 33.557823 | 122 | 0.652461 | false |
caesar2164/edx-platform | common/djangoapps/third_party_auth/tests/test_views.py | 13 | 6457 | """
Test the views served by third_party_auth.
"""
import ddt
from lxml import etree
from onelogin.saml2.errors import OneLogin_Saml2_Error
import unittest
from django.conf import settings
from .testutil import AUTH_FEATURE_ENABLED, SAMLTestCase
# Define some XML namespaces:
from third_party_auth.tasks import SAML_... | agpl-3.0 | 7,772,467,945,981,386,000 | 40.928571 | 118 | 0.636673 | false |
ytanay/thinglang | setup.py | 1 | 1198 | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# To use a consistent encoding
from codecs import open
from os import path
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
here = path.abs... | mit | -8,014,973,428,070,046,000 | 23.979167 | 67 | 0.679466 | false |
Lujeni/ansible | lib/ansible/modules/network/cloudengine/ce_vrf.py | 13 | 10999 | #!/usr/bin/python
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distribut... | gpl-3.0 | -3,059,221,854,606,933,500 | 30.070621 | 102 | 0.565688 | false |
SkyLined/headsup | decode/GIF_EXTENSION_COMMENT.py | 1 | 1171 | # Copyright 2010 Google 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 ... | apache-2.0 | -3,600,339,227,197,648,400 | 37.1 | 74 | 0.70111 | false |
tudorvio/nova | nova/virt/hyperv/vmutils.py | 18 | 32674 | # Copyright (c) 2010 Cloud.com, Inc
# Copyright 2012 Cloudbase Solutions Srl / Pedro Navarro Perez
# 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
#
# ... | apache-2.0 | 4,400,617,472,173,720,600 | 41.544271 | 79 | 0.577646 | false |
setminami/TokageUtil | util/vectorutil.py | 1 | 6987 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os, traceback, glob, threading
import datetime as dt
import numpy as np
from . import printutil as pu
DEFAULTVECTOR_DIR = os.path.expanduser('~/workspace/img-buff/motions/vector')
MACROSQURE = 16
# 人間が... | apache-2.0 | -6,026,326,910,495,423,000 | 34.916667 | 92 | 0.569374 | false |
dfunckt/django | tests/forms_tests/field_tests/test_timefield.py | 42 | 2043 | from __future__ import unicode_literals
import datetime
from django.forms import TimeField, ValidationError
from django.test import SimpleTestCase
from . import FormFieldAssertionsMixin
class TimeFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
def test_timefield_1(self):
f = TimeField()
s... | bsd-3-clause | 5,901,787,866,758,994,000 | 42.468085 | 87 | 0.633872 | false |
lebauce/artub | gouzi/__init__.py | 1 | 12352 | # Glumol - An adventure game creator
# Copyright (C) 1998-2008 Sylvain Baubeau & Alexis Contour
# This file is part of Glumol.
# Glumol 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 th... | gpl-2.0 | -3,466,367,299,407,111,000 | 31.763926 | 102 | 0.546227 | false |
Starch/paperwork | scripts/simulate-workdir_3d.py | 2 | 8178 | #!/usr/bin/env python3
import csv
import os
import multiprocessing
import multiprocessing.pool
import sys
import tempfile
import traceback
import threading
import gi
gi.require_version('Gdk', '3.0')
gi.require_version('PangoCairo', '1.0')
gi.require_version('Poppler', '0.18')
from paperwork_backend import config
fro... | gpl-3.0 | 4,968,815,546,981,340,000 | 27.494774 | 78 | 0.548423 | false |
beernarrd/gramps | gramps/gen/filters/rules/note/__init__.py | 4 | 1568 | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2002-2006 Donald N. Allingham
# Copyright (C) 2007 Brian G. Matherly
#
# 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; ... | gpl-2.0 | 1,027,239,410,362,529,300 | 29.745098 | 79 | 0.760204 | false |
toobaz/pandas | pandas/core/groupby/generic.py | 1 | 62983 | """
Define the SeriesGroupBy and DataFrameGroupBy
classes that hold the groupby interfaces (and some implementations).
These are user facing as the result of the ``df.groupby(...)`` operations,
which here returns a DataFrameGroupBy object.
"""
from collections import OrderedDict, abc, namedtuple
import copy
import fun... | bsd-3-clause | 6,674,500,789,544,600,000 | 32.483785 | 88 | 0.534509 | false |
googlearchive/titan | titan/files/mixins/versions.py | 1 | 61817 | #!/usr/bin/env python
# Copyright 2012 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 | -6,955,696,510,966,720,000 | 39.403268 | 80 | 0.682126 | false |
Zhongqilong/kbengine | kbe/src/lib/python/Lib/lib2to3/fixes/fix_renames.py | 203 | 2221 | """Fix incompatible renames
Fixes:
* sys.maxint -> sys.maxsize
"""
# Author: Christian Heimes
# based on Collin Winter's fix_import
# Local imports
from .. import fixer_base
from ..fixer_util import Name, attr_chain
MAPPING = {"sys": {"maxint" : "maxsize"},
}
LOOKUP = {}
def alternates(members):
re... | lgpl-3.0 | 8,851,530,421,393,875,000 | 30.728571 | 81 | 0.54525 | false |
lenstr/rethinkdb | external/v8_3.30.33.16/testing/gtest/scripts/pump.py | 2471 | 23673 | #!/usr/bin/env python
#
# Copyright 2008, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list... | agpl-3.0 | -3,128,253,961,247,432,000 | 26.687719 | 80 | 0.624087 | false |
lseyesl/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/layout_tests/reftests/extract_reference_link.py | 196 | 2272 | # Copyright (C) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | bsd-3-clause | -5,260,428,432,001,166,000 | 35.063492 | 72 | 0.703345 | false |
RazielSun/juma-editor | editor/lib/juma/SearchView/ArrayView.py | 2 | 3871 | #!/usr/bin/env python
from PySide import QtGui, QtCore
from PySide.QtCore import Qt, QEventLoop, QEvent, QObject
from juma.core import *
from juma.core.ModelManager import *
from juma.qt.helpers import addWidgetWithLayout, restrainWidgetToScreen
from juma.qt.IconCache import getIcon
from ui.array_view_container... | mit | 3,869,903,211,618,462,000 | 24.635762 | 84 | 0.563162 | false |
redhawkci/omniEvents | test/EventChannelAdmin_idl.py | 2 | 2945 | # Python stubs generated by omniidl from ../idl/EventChannelAdmin.idl
import omniORB, _omnipy
from omniORB import CORBA, PortableServer
_0_CORBA = CORBA
_omnipy.checkVersion(2,0, __file__)
# #include "CosNaming.idl"
import CosNaming_idl
_0_CosNaming = omniORB.openModule("CosNaming")
_0_CosNaming__POA = omniORB.openM... | lgpl-2.1 | 8,688,427,010,649,603,000 | 37.246753 | 149 | 0.778947 | false |
vincent-noel/SigNetSim | signetsim/json/validators/__init__.py | 2 | 1148 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2014-2017 Vincent Noel (vincent.noel@butantan.gov.br)
#
# This file is part of libSigNetSim.
#
# libSigNetSim is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Fou... | agpl-3.0 | -1,918,977,759,459,276,300 | 34.90625 | 71 | 0.781359 | false |
roadmapper/ansible | lib/ansible/modules/cloud/vmware/vmware_tag.py | 10 | 8738 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Ansible Project
# Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = ty... | gpl-3.0 | 8,929,438,575,169,696,000 | 31.125 | 134 | 0.601511 | false |
lattwood/phantomjs | src/breakpad/src/tools/gyp/test/builddir/gyptest-default.py | 147 | 2348 | #!/usr/bin/env python
# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verify the settings that cause a set of programs to be created in
a specific build directory, and that no intermediate built files
get c... | bsd-3-clause | -9,080,102,903,135,476,000 | 29.493506 | 79 | 0.736797 | false |
michalkurka/h2o-3 | h2o-py/tests/testdir_parser/pyunit_load_sparse.py | 6 | 1288 | #!/usr/bin/env python
from __future__ import division
import sys; sys.path.insert(1, "../..")
import h2o
from tests import pyunit_utils
def test_load_sparse():
try:
import scipy.sparse as sp
except ImportError:
return
A = sp.csr_matrix([[1, 2, 0, 5.5], [0, 0, 3, 6.7], [4, 0, 5, 0]])
f... | apache-2.0 | -8,027,499,903,443,061,000 | 29.666667 | 108 | 0.454193 | false |
lafranceinsoumise/api-django | agir/system_pay/soap_client.py | 1 | 5607 | import uuid
from datetime import datetime
import hmac
from base64 import b64encode
from django.conf import settings
from django.utils import timezone
from zeep import Client, xsd
from agir.payments.models import Subscription
from agir.system_pay import SystemPayError
from agir.system_pay.utils import get_recurrence_r... | agpl-3.0 | 6,333,454,870,281,216,000 | 37.875 | 91 | 0.616827 | false |
belltailjp/scikit-learn | sklearn/datasets/base.py | 196 | 18554 | """
Base IO code for all datasets
"""
# Copyright (c) 2007 David Cournapeau <cournape@gmail.com>
# 2010 Fabian Pedregosa <fabian.pedregosa@inria.fr>
# 2010 Olivier Grisel <olivier.grisel@ensta.org>
# License: BSD 3 clause
import os
import csv
import shutil
from os import environ
from os.pa... | bsd-3-clause | 5,117,027,705,176,472,000 | 32.430631 | 79 | 0.588876 | false |
TrentHouliston/VisualMesh | learning/test.py | 1 | 3050 | #!/usr/bin/env python3
import os
import re
import math
import json
import yaml
import numpy as np
import tensorflow as tf
from . import dataset
def test(sess,
network,
mesh_type,
mesh_size,
model_dir,
input_path,
output_path):
# Initialise global variables
... | mit | 7,605,969,482,915,652,000 | 28.61165 | 115 | 0.487213 | false |
aliyun/aliyun-spark-deploy-tool | bin/core/nginx.py | 2 | 1545 | #!/usr/bin/python
#coding=utf-8
import sys
import os
import utils
from core.common import GlobalVar
from config_nginx import generate_config_file
def copy_file(opts, src_file, ip, dst):
try:
os.system("sshpass -p %s scp -r %s %s %s@%s:%s" % (opts.pwd, " ".join(utils.ssh_args()), src_file, opts.user, ip, ds... | artistic-2.0 | -1,212,179,420,366,444,000 | 31.87234 | 127 | 0.640129 | false |
ruud-v-a/rhythmbox | plugins/rbzeitgeist/rbzeitgeist.py | 1 | 6528 | # -.- coding: utf-8 -.-
# Copyright © 2009 Markus Korn <thekorn@gmx.de>
# Copyright © 2010 Laszlo Pandy <laszlok2@gmail.com>
# Copyright © 2011 Michal Hruby <michal.mhr@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publishe... | gpl-2.0 | 5,748,137,268,577,502,000 | 38.786585 | 152 | 0.638161 | false |
DenniFurst3/Dennis | py/openage/convert/fix_data.py | 46 | 1296 | # data fixing script
#
# as you can imagine, the data entries may contain some semi-correct
# values, which we need to adapt. this is done in this file.
def fix_data(data):
"""
updates given input with modifications.
input: empiresdat object, vanilla, fully read.
output: empiresdat object, fixed.
... | gpl-3.0 | -4,140,526,329,472,155,600 | 26 | 68 | 0.606481 | false |
lizan/envoy | source/extensions/filters/network/kafka/protocol/generator.py | 4 | 25849 | #!/usr/bin/python
# Main library file containing all the protocol generation logic.
def generate_main_code(type, main_header_file, resolver_cc_file, metrics_header_file, input_files):
"""
Main code generator.
Takes input files and processes them into structures representing a Kafka message (request or
respo... | apache-2.0 | 448,900,060,919,658,940 | 35.561528 | 115 | 0.667415 | false |
cldershem/osf.io | website/addons/dropbox/model.py | 11 | 11235 | # -*- coding: utf-8 -*-
import os
import base64
import logging
import pymongo
from modularodm import fields
from framework.auth import Auth
from website.addons.base import exceptions
from website.addons.base import AddonUserSettingsBase, AddonNodeSettingsBase, GuidFile
from website.addons.base import StorageAddonBas... | apache-2.0 | 8,077,185,642,961,808,000 | 34.553797 | 106 | 0.607121 | false |
maximon93/fabric-bolt | fabric_bolt/web_hooks/tests/test_hooks.py | 10 | 5201 | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.utils import override_settings
from django... | mit | 5,435,770,221,981,953,000 | 28.219101 | 94 | 0.630263 | false |
jeffzheng1/tensorflow | tensorflow/python/kernel_tests/embedding_ops_test.py | 3 | 26642 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 8,457,379,070,444,516,000 | 39.674809 | 81 | 0.614443 | false |
steelcowboy/PyFlowChart | pyflowchart/interface/modify_interface.py | 1 | 11599 | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from collections import OrderedDict
GRID_MARGIN = 5
ICON_SIZE = Gtk.IconSize.MENU
class ModifyGrid(Gtk.Grid):
def __init__(self):
Gtk.Grid.__init__(self)
self.generate_labels()
self.generate_entries()
self.at... | bsd-3-clause | -379,831,966,527,175,040 | 35.705696 | 97 | 0.548668 | false |
YoannDupont/SEM | sem/IO/keyIO.py | 1 | 3886 | # -*- coding: utf-8 -*-
"""
file: keyIO.py
Description: an IO module for CoNLL-formatted files when column
identifiers are available.
author: Yoann Dupont
MIT License
Copyright (c) 2018 Yoann Dupont
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docume... | mit | -7,630,990,536,838,580,000 | 31.115702 | 140 | 0.598559 | false |
Thoshh/wapad | lib/python2.7/site-packages/django/contrib/postgres/fields/hstore.py | 151 | 2771 | import json
from django.contrib.postgres import forms, lookups
from django.contrib.postgres.fields.array import ArrayField
from django.core import exceptions
from django.db.models import Field, TextField, Transform
from django.utils import six
from django.utils.translation import ugettext_lazy as _
__all__ = ['HStore... | mit | -6,502,152,863,812,258,000 | 28.478723 | 69 | 0.649946 | false |
jpetto/olympia | src/olympia/zadmin/decorators.py | 7 | 1616 | import functools
from django.core.exceptions import PermissionDenied
from olympia.access.acl import action_allowed
from olympia.amo.decorators import login_required
def admin_required(reviewers=False, theme_reviewers=False):
"""
Admin, or someone with AdminTools:View, required.
If reviewers=True ... | bsd-3-clause | 5,050,056,879,720,598,000 | 37.47619 | 77 | 0.601485 | false |
rintoj/ai | demo/valueIterationAgents.py | 1 | 3503 | # valueIterationAgents.py
# -----------------------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu... | mit | 4,387,623,389,461,498,400 | 35.873684 | 135 | 0.658007 | false |
MISP/misp-modules | misp_modules/modules/import_mod/cuckooimport.py | 2 | 26979 | import json
import base64
import io
import logging
import posixpath
import stat
import tarfile
import zipfile
from pymisp import MISPEvent, MISPObject, MISPAttribute
from pymisp.tools import make_binary_objects
from collections import OrderedDict
log = logging.getLogger(__name__)
misperrors = {'error': 'Error'}
modu... | agpl-3.0 | 2,035,431,847,319,298,600 | 35.262097 | 79 | 0.526891 | false |
kswiat/django | django/db/migrations/migration.py | 29 | 6933 | from __future__ import unicode_literals
from django.db.transaction import atomic
class Migration(object):
"""
The base class for all migrations.
Migration files will import this from django.db.migrations.Migration
and subclass it as a class called Migration. It will have one or more
of the follow... | bsd-3-clause | 3,623,183,938,164,276,000 | 41.018182 | 120 | 0.631761 | false |
jmcarbo/openerp7 | openerp/addons/stock_location/__init__.py | 68 | 1101 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | 7,669,115,850,880,287,000 | 43.04 | 79 | 0.616712 | false |
acrosby/pyoos | setup.py | 1 | 1593 | from __future__ import with_statement
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from pyoos import __version__
def readme():
with open('README.md') as f:
return f.read()
reqs = [line.strip() for line in open('requirements.txt')]
class ... | gpl-3.0 | -1,844,185,019,800,044,000 | 32.1875 | 83 | 0.570621 | false |
ramsateesh/designate | designate/backend/agent_backend/base.py | 7 | 1619 | # Copyright 2014 Rackspace Inc.
#
# Author: Tim Simmons <tim.simmons@rackspace.com>
#
# 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 | 8,612,005,076,966,480,000 | 27.403509 | 75 | 0.678196 | false |
jaddison/ansible | lib/ansible/plugins/action/patch.py | 67 | 2387 | # (c) 2015, Brian Coca <briancoca+dev@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | gpl-3.0 | 5,724,495,905,775,314,000 | 36.296875 | 94 | 0.646837 | false |
amiguez/youtube-dl | youtube_dl/extractor/ndr.py | 74 | 4573 | # encoding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
int_or_none,
qualities,
parse_duration,
)
class NDRBaseIE(InfoExtractor):
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
... | unlicense | -6,845,334,323,975,713,000 | 34.146154 | 201 | 0.511709 | false |
IDSIA/sacred | sacred/config/config_summary.py | 1 | 2228 | #!/usr/bin/env python
# coding=utf-8
from sacred.utils import iter_prefixes, join_paths
class ConfigSummary(dict):
def __init__(
self, added=(), modified=(), typechanged=(), ignored_fallbacks=(), docs=()
):
super().__init__()
self.added = set(added)
self.modified = set(modifie... | mit | -1,815,110,707,390,472,000 | 36.133333 | 82 | 0.575853 | false |
lucienfostier/gaffer | python/GafferCortex/ObjectReader.py | 11 | 3001 | ##########################################################################
#
# Copyright (c) 2011-2012, John Haddon. All rights reserved.
# Copyright (c) 2013-2014, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted prov... | bsd-3-clause | -692,253,406,122,926,600 | 37.974026 | 111 | 0.691769 | false |
liukaijv/XlsxWriter | xlsxwriter/test/comparison/test_default_date_format01.py | 8 | 3099 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from datetime import datetime
from ...workbook import Workbook
class TestCompareXLSXFiles... | bsd-2-clause | 6,855,928,871,796,803,000 | 25.715517 | 89 | 0.601484 | false |
lucienfostier/gaffer | python/GafferUITest/CompoundEditorTest.py | 8 | 3593 | ##########################################################################
#
# Copyright (c) 2013, 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:
#
# * Redistrib... | bsd-3-clause | -307,942,735,377,931,970 | 25.419118 | 77 | 0.667687 | false |
karstenw/nodebox-pyobjc | examples/Extended Application/matplotlib/examples/event_handling/data_browser.py | 1 | 3261 | """
============
Data Browser
============
"""
import numpy as np
import matplotlib.pyplot as plt
# nodebox section
if __name__ == '__builtin__':
# were in nodebox
import os
import tempfile
W = 800
inset = 20
size(W, 600)
plt.cla()
plt.clf()
plt.close('all')
def tempimage():
... | mit | 4,244,625,643,940,510,700 | 24.084615 | 82 | 0.544925 | false |
atomic-labs/zulip | zerver/management/commands/create_stream.py | 9 | 1146 | from __future__ import absolute_import
from __future__ import print_function
from django.core.management.base import BaseCommand
from zerver.lib.actions import do_create_stream
from zerver.models import Realm, get_realm
import sys
class Command(BaseCommand):
help = """Create a stream, and subscribe all active u... | apache-2.0 | -5,861,407,564,355,417,000 | 32.705882 | 79 | 0.644852 | false |
frogleg/lightblue-0.4 | src/series60/_lightbluecommon.py | 179 | 10831 | # Copyright (c) 2009 Bea Lam. All rights reserved.
#
# This file is part of LightBlue.
#
# LightBlue 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 l... | gpl-3.0 | 2,385,337,483,550,878,700 | 31.722054 | 81 | 0.659588 | false |
RafaelTorrealba/odoo | addons/decimal_precision/__init__.py | 450 | 1128 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | agpl-3.0 | 801,351,931,032,955,500 | 42.384615 | 79 | 0.621454 | false |
rabitt/mir_eval | mir_eval/melody.py | 3 | 27199 | # CREATED:2014-03-07 by Justin Salamon <justin.salamon@nyu.edu>
'''
Melody extraction algorithms aim to produce a sequence of frequency values
corresponding to the pitch of the dominant melody from a musical
recording. For evaluation, an estimated pitch series is evaluated against a
reference based on whether the voic... | mit | 5,829,443,524,772,151,000 | 38.304913 | 82 | 0.606309 | false |
woodymit/millstone_accidental_source | genome_designer/main/startup.py | 1 | 1068 | """Actions to run at server startup.
"""
from django.db import connection
from django.db import transaction
def run():
"""Call this from manage.py or tests.
"""
_add_custom_mult_agg_function()
def _add_custom_mult_agg_function():
"""Make sure the Postgresql database has a custom function array_agg_... | mit | 2,299,502,963,721,795,300 | 27.864865 | 78 | 0.576779 | false |
fabaff/ansible | lib/ansible/plugins/connection/jail.py | 13 | 8005 | # Based on local.py (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# and chroot.py (c) 2013, Maykel Moya <mmoya@speedyrails.com>
# (c) 2013, Michael Scherer <misc@zarb.org>
# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it... | gpl-3.0 | 8,594,872,348,928,097,000 | 39.226131 | 121 | 0.618488 | false |
h2oai/h2o-2 | py/testdir_single_jvm/test_speedrf_params_rand2.py | 9 | 3800 | import unittest, random, sys, time
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_rf, h2o_import as h2i, h2o_util
paramDict = {
# 2 new
'destination_key': ['model_keyA', '012345', '__hello'],
'cols': [None, None, None, None, None, '0,1,2,3,4,5,6,7,8','C1,C2,C3,C4,C5,C6,C7,C8'],
# exc... | apache-2.0 | 7,754,373,068,773,762,000 | 42.678161 | 123 | 0.569211 | false |
tjanez/ansible | test/units/parsing/test_splitter.py | 181 | 3734 | # coding: utf-8
# (c) 2015, Toshio Kuratomi <tkuratomi@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 o... | gpl-3.0 | 1,135,592,327,576,919,600 | 33.785047 | 77 | 0.511822 | false |
samliu/servo | tests/wpt/css-tests/css-text-decor-3_dev/xhtml1print/support/generate-text-emphasis-position-property-tests.py | 841 | 3343 | #!/usr/bin/env python
# - * - coding: UTF-8 - * -
"""
This script generates tests text-emphasis-position-property-001 ~ 006
which cover all possible values of text-emphasis-position property with
all combination of three main writing modes and two orientations. Only
test files are generated by this script. It also out... | mpl-2.0 | -7,005,303,556,525,110,000 | 41.189873 | 143 | 0.666367 | false |
NetApp/cinder | cinder/tests/unit/api/contrib/test_snapshot_unmanage.py | 6 | 4940 | # Copyright (c) 2015 Huawei Technologies Co., Ltd.
#
# 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 applic... | apache-2.0 | 3,281,933,406,228,218,400 | 40.864407 | 79 | 0.662955 | false |
MagicStack/MagicPython | test/statements/for1.py | 1 | 1062 | for a, b, c in b:
pass
else:
1/0
for : keyword.control.flow.python, source.python
: source.python
a : source.python
, : punctuation.separator.element.python, source.python
: source.python
b : source.python
, : punctuation.s... | mit | -3,230,888,701,951,537,000 | 35.62069 | 67 | 0.56968 | false |
michael-pacheco/dota2-predictor | visualizing/dataset_stats.py | 2 | 3746 | import numpy as np
from tools.metadata import get_hero_dict
import operator
import pandas as pd
import plotly.graph_objs as go
import plotly.plotly as py
def winrate_statistics(dataset_df, mmr_info):
x_data, y_data = dataset_df
wins = np.zeros(114)
games = np.zeros(114)
winrate = np.zeros(114)
... | mit | 814,474,847,184,900,400 | 24.482993 | 81 | 0.473038 | false |
Aloomaio/googleads-python-lib | examples/ad_manager/v201808/user_service/get_user_by_email_address.py | 1 | 1937 | #!/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 requir... | apache-2.0 | 3,784,835,201,734,811,600 | 36.25 | 78 | 0.686629 | false |
beeftornado/sentry | tests/sentry/similarity/backends/base.py | 3 | 8478 | from __future__ import absolute_import
import abc
class MinHashIndexBackendTestMixin(object):
__meta__ = abc.ABCMeta
@abc.abstractproperty
def index(self):
pass
def test_basic(self):
self.index.record("example", "1", [("index", "hello world")])
self.index.record("example", "... | bsd-3-clause | 1,927,766,467,440,609,300 | 42.927461 | 99 | 0.51439 | false |
mikma/tmtp | standalone/Jeans.py | 1 | 30844 | #!/usr/bin/env python
# Jeans.py
# Jeans Foundation #4
# Designer: Helen Joseph-Armstrong
# PatternMaker: Susan Spencer Conklin
#
# This pattern contains a design for a pair of jeans
from tmtpl.constants import *
from tmtpl.pattern import *
from tmtpl.document import *
from tmtpl.client import Client
#Project specifi... | gpl-3.0 | 6,073,850,375,743,970,000 | 45.451807 | 162 | 0.659577 | false |
raoulbq/scipy | scipy/signal/_arraytools.py | 91 | 5145 | """
Functions for acting on a axis of an array.
"""
from __future__ import division, print_function, absolute_import
import numpy as np
def axis_slice(a, start=None, stop=None, step=None, axis=-1):
"""Take a slice along axis 'axis' from 'a'.
Parameters
----------
a : numpy.ndarray
The array ... | bsd-3-clause | 3,008,645,087,465,491,500 | 30.759259 | 76 | 0.503013 | false |
ivano666/tensorflow | tensorflow/python/kernel_tests/summary_image_op_test.py | 15 | 3949 | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 6,300,184,546,573,999,000 | 34.576577 | 80 | 0.606229 | false |
jup3/hots | example.py | 1 | 1077 |
db1 = {"Database":
{"Raynor": {
"Raynor-Counter": ["Tracer", "Uther", "Zeratul"],
"Raynor-Synergize": ["Who", "It" , "is"]
},
"Stitches" : {
"Stiches-Counter": ["What", "ever", "it",],
"Stiches-Synergize":["What", "name", "is"]
}
}
}
d... | mit | 5,867,935,894,174,686,000 | 24.642857 | 57 | 0.410399 | false |
zhaodelong/django | tests/m2m_multiple/tests.py | 227 | 2370 | from __future__ import unicode_literals
from datetime import datetime
from django.test import TestCase
from .models import Article, Category
class M2MMultipleTests(TestCase):
def test_multiple(self):
c1, c2, c3, c4 = [
Category.objects.create(name=name)
for name in ["Sports", "N... | bsd-3-clause | 2,664,498,389,177,597,000 | 26.55814 | 69 | 0.487342 | false |
PrivacyScore/PrivacyScore | privacyscore/backend/management/commands/rescanscanlist.py | 1 | 2152 | # Copyright (C) 2018 PrivacyScore Contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is dis... | gpl-3.0 | 2,197,571,733,522,232,800 | 38.127273 | 87 | 0.64684 | false |
pyload/pyload | src/pyload/plugins/accounts/OboomCom.py | 1 | 2033 | # -*- coding: utf-8 -*-
import json
from binascii import b2a_hex
from beaker.crypto.pbkdf2 import pbkdf2
from pyload.core.network.request_factory import get_url
from ..base.account import BaseAccount
class PBKDF2:
def __init__(self, passphrase, salt, iterations=1000):
self.passphrase = passphrase
... | agpl-3.0 | -6,959,078,884,639,163,000 | 26.106667 | 83 | 0.578455 | false |
lmtierney/selenium | py/selenium/webdriver/common/action_chains.py | 5 | 12419 | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | apache-2.0 | 2,657,790,670,769,325,000 | 33.024658 | 101 | 0.583219 | false |
himmih/cluedo | venv/lib/python2.7/site-packages/pip/req/req_set.py | 246 | 27444 | from __future__ import absolute_import
from collections import defaultdict
import functools
import itertools
import logging
import os
from pip._vendor import pkg_resources
from pip._vendor import requests
from pip.download import (url_to_path, unpack_url)
from pip.exceptions import (InstallationError, BestVersionAlr... | apache-2.0 | 6,331,012,188,387,923,000 | 40.581818 | 79 | 0.549155 | false |
kzys/buildbot | buildbot/changes/pb.py | 1 | 4662 | # -*- test-case-name: buildbot.test.test_changes -*-
from twisted.python import log
from buildbot.pbutil import NewCredPerspective
from buildbot.changes import base, changes
class ChangePerspective(NewCredPerspective):
def __init__(self, changemaster, prefix):
self.changemaster = changemaster
se... | gpl-2.0 | -4,938,572,794,051,341,000 | 41 | 79 | 0.57529 | false |
juliusbierk/scikit-image | skimage/restoration/deconvolution.py | 19 | 14315 | # -*- coding: utf-8 -*-
# deconvolution.py --- Image deconvolution
"""Implementations restoration functions"""
from __future__ import division
import numpy as np
import numpy.random as npr
from scipy.signal import convolve2d
from . import uft
__keywords__ = "restoration, image, deconvolution"
def wiener(image, p... | bsd-3-clause | -1,081,413,069,537,168,600 | 36.660526 | 79 | 0.629795 | false |
mjg2203/edx-platform-seas | lms/djangoapps/dashboard/management/commands/git_add_course.py | 9 | 1525 | """
Script for importing courseware from git/xml into a mongo modulestore
"""
import os
import re
import StringIO
import subprocess
import logging
from django.core import management
from django.core.management.base import BaseCommand, CommandError
from django.utils.translation import ugettext as _
import dashboard.g... | agpl-3.0 | 2,185,424,131,103,662,600 | 27.773585 | 77 | 0.659016 | false |
ZHAW-INES/rioxo-uClinux-dist | user/python/python-2.4.4/Mac/scripts/buildpkg.py | 5 | 15904 | #!/usr/bin/env python
"""buildpkg.py -- Build OS X packages for Apple's Installer.app.
This is an experimental command-line tool for building packages to be
installed with the Mac OS X Installer.app application.
It is much inspired by Apple's GUI tool called PackageMaker.app, that
seems to be part of the OS X develo... | gpl-2.0 | 8,247,244,481,815,625,000 | 31.859504 | 95 | 0.575138 | false |
euri10/zipline | tests/test_algorithm_gen.py | 18 | 7339 | #
# Copyright 2014 Quantopian, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 | -6,035,668,213,280,862,000 | 31.330396 | 77 | 0.602262 | false |
gechr/ansible-modules-extras | system/locale_gen.py | 40 | 7666 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | gpl-3.0 | -6,226,542,162,520,941,000 | 31.075314 | 141 | 0.599139 | false |
mKeRix/home-assistant | homeassistant/components/html5/notify.py | 7 | 18756 | """HTML5 Push Messaging notification service."""
from datetime import datetime, timedelta
from functools import partial
import json
import logging
import time
from urllib.parse import urlparse
import uuid
from aiohttp.hdrs import AUTHORIZATION
import jwt
from py_vapid import Vapid
from pywebpush import WebPusher
impor... | mit | 407,534,456,343,158,100 | 31.732984 | 88 | 0.613244 | false |
af1rst/bite-project | deps/gdata-python-client/samples/apps/marketplace_sample/gdata/tlslite/utils/Cryptlib_AES.py | 359 | 1364 | """Cryptlib AES implementation."""
from cryptomath import *
from AES import *
if cryptlibpyLoaded:
def new(key, mode, IV):
return Cryptlib_AES(key, mode, IV)
class Cryptlib_AES(AES):
def __init__(self, key, mode, IV):
AES.__init__(self, key, mode, IV, "cryptlib")
sel... | apache-2.0 | 6,191,675,253,882,161,000 | 39.117647 | 115 | 0.652493 | false |
holmes/intellij-community | python/helpers/docutils/parsers/rst/directives/parts.py | 41 | 4241 | # $Id: parts.py 6385 2010-08-13 12:17:01Z milde $
# Authors: David Goodger <goodger@python.org>; Dmitry Jemerov
# Copyright: This module has been placed in the public domain.
"""
Directives for document parts.
"""
__docformat__ = 'reStructuredText'
from docutils import nodes, languages
from docutils.transforms impor... | apache-2.0 | 5,813,985,434,273,503,000 | 32.393701 | 77 | 0.607876 | false |
TRESCLOUD/odoopub | addons/base_gengo/res_company.py | 24 | 1784 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | agpl-3.0 | -9,161,527,556,973,799,000 | 45.947368 | 158 | 0.623879 | false |
Hackplayers/Empire-mod-Hpys-tests | lib/modules/python/situational_awareness/network/port_scan.py | 2 | 5624 | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
# metadata info about the module, not modified during runtime
self.info = {
# name for the module that will appear in module menus
'Name': 'Port Scanner.',
# list of one or m... | bsd-3-clause | -2,103,507,903,340,974,800 | 26.573529 | 144 | 0.517248 | false |
ecederstrand/django | tests/view_tests/tests/py3_test_debug.py | 335 | 1849 | """
Since this file contains Python 3 specific syntax, it's named without a test_
prefix so the test runner won't try to import it. Instead, the test class is
imported in test_debug.py, but only on Python 3.
This filename is also in setup.cfg flake8 exclude since the Python 2 syntax
error (raise ... from ...) can't be... | bsd-3-clause | 1,690,114,957,328,619,800 | 40.088889 | 99 | 0.660898 | false |
safwanrahman/mozillians | mozillians/settings/base.py | 1 | 10137 | # -*- coding: utf-8 -*-
# Django settings for the mozillians project.
import logging
import os.path
import sys
from funfactory.manage import path
from funfactory.settings_base import * # noqa
from funfactory.settings_base import JINJA_CONFIG as funfactory_JINJA_CONFIG
from urlparse import urljoin
from django.utils.... | bsd-3-clause | -6,483,982,858,687,574,000 | 27.394958 | 93 | 0.633422 | false |
madj4ck/ansible | lib/ansible/utils/hashing.py | 202 | 3125 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | gpl-3.0 | -2,342,925,839,885,740,000 | 32.244681 | 102 | 0.696 | false |
DelazJ/QGIS | tests/src/python/test_qgsserver_wms_getlegendgraphic.py | 21 | 41277 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer WMS GetLegendGraphic.
From build dir, run: ctest -R PyQgsServerWMSGetLegendGraphic -V
.. note:: 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 Foundati... | gpl-2.0 | -7,870,906,060,264,933,000 | 38.292381 | 162 | 0.511647 | false |
Shrhawk/edx-platform | cms/djangoapps/contentstore/features/video.py | 134 | 8674 | # pylint: disable=missing-docstring
from lettuce import world, step
from selenium.webdriver.common.keys import Keys
from xmodule.modulestore.django import modulestore
VIDEO_BUTTONS = {
'CC': '.hide-subtitles',
'volume': '.volume',
'play': '.video_control.play',
'pause': '.video_control.pause',
'ha... | agpl-3.0 | 7,669,535,449,067,135,000 | 32.750973 | 107 | 0.663246 | false |
ATSTI/administra | alterando_produtos_odoo/oerplib/service/inspect/on_change.py | 4 | 4037 | # -*- coding: UTF-8 -*-
##############################################################################
#
# OERPLib
# Copyright (C) 2013 Sébastien Alix.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by ... | gpl-2.0 | -8,114,585,204,733,855,000 | 40.608247 | 78 | 0.563181 | false |
elggem/tensorflow_node | src/tensorflow_node/input/opencv.py | 2 | 1954 | # -*- coding: utf-8 -*-
import rospy
import numpy as np
import cv2
import os.path
import rospy
from tensorflow_node.input import InputLayer
class OpenCVInputLayer(InputLayer):
"""
Contains OpenCV to feed in video feeds to TF.
"""
def __init__(self, batch_size=1, output_size=[28, 28], input="", numb... | unlicense | -5,659,424,460,611,137,000 | 30.015873 | 110 | 0.58393 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-machinelearningcompute/azure/mgmt/machinelearningcompute/models/container_service_credentials.py | 2 | 1932 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -7,581,362,575,085,355,000 | 38.428571 | 122 | 0.642857 | false |
seldon/django-flexi-auth | flexi_auth/exceptions.py | 1 | 2184 | # Copyright (C) 2011 REES Marche <http://www.reesmarche.org>
#
# This file is part of ``django-flexi-auth``.
# ``django-flexi-auth`` 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, version 3 of the Lic... | agpl-3.0 | 2,517,942,467,916,577,300 | 36.016949 | 109 | 0.641941 | false |
shoreflyer/cerbero | cerbero/packages/packagesstore.py | 5 | 7907 | # cerbero - a multi-platform build system for Open Source software
# Copyright (C) 2012 Andoni Morales Alastruey <ylatuya@gmail.com>
#
# 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; eit... | lgpl-2.1 | 1,279,464,686,300,370,700 | 34.299107 | 79 | 0.592134 | false |
georgyberdyshev/ascend | pygtk/loading.py | 1 | 4002 | import sys
import config
import os.path
global have_gtk
have_gtk = False
#if not sys.executable.endswith("pythonw.exe"):
# print "PYTHON PATH =",sys.path
try:
import pygtk
pygtk.require('2.0')
import gtk
have_gtk = True
except Exception,e:
if sys.platform=="win32":
try:
from ctypes import c_int, WINFUNC... | gpl-2.0 | -8,230,624,541,329,231,000 | 24.490446 | 195 | 0.657421 | false |
andrewsomething/python-digitalocean | digitalocean/LoadBalancer.py | 2 | 12222 | # -*- coding: utf-8 -*-
from .baseapi import BaseAPI, GET, POST, DELETE
class StickySesions(object):
"""
An object holding information on a LoadBalancer's sticky sessions settings.
Args:
type (str): The type of sticky sessions used. Can be "cookies" or
"none"
cookie_name (str,... | lgpl-3.0 | 6,830,091,955,749,544,000 | 38.681818 | 79 | 0.600475 | false |
maftieu/CouchPotatoServer | libs/sqlalchemy/dialects/postgresql/pypostgresql.py | 18 | 2155 | # postgresql/pypostgresql.py
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Support for the PostgreSQL database via py-postgresql.
Connecting
-----... | gpl-3.0 | -5,610,259,076,845,133,000 | 28.520548 | 107 | 0.686775 | false |
LamCiuLoeng/budget | budget/widgets/access.py | 1 | 2516 | # -*- coding: utf-8 -*-
from tw.api import WidgetsList
from tw.forms import TableForm
from tw.forms.fields import HiddenField
from budget.model import DBSession
from budget.model import *
from budget.widgets.components import *
#class SearchForm(RPACForm):
#
# group_options = DBSession.query(Group.group_id,... | mit | -1,664,741,687,713,794,600 | 28.952381 | 149 | 0.677663 | 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.