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 |
|---|---|---|---|---|---|---|---|---|---|---|
GiladE/birde | venv/lib/python2.7/site-packages/gunicorn/http/wsgi.py | 26 | 13493 | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import io
import logging
import os
import re
import sys
from gunicorn._compat import unquote_to_wsgi_str
from gunicorn.six import string_types, binary_type, reraise
from gunicorn import SERVE... | mit | -7,591,034,154,781,787,000 | 30.748235 | 80 | 0.55362 | false |
quang-ha/lammps | tools/i-pi/ipi/utils/io/io_xml.py | 33 | 15954 | """Contains the functions used to read the input file and print the checkpoint
files with xml formatting.
Copyright (C) 2013, Joshua More and Michele Ceriotti
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Fou... | gpl-2.0 | -3,314,582,870,946,160,000 | 29.680769 | 167 | 0.652501 | false |
youprofit/zato | code/zato-server/src/zato/server/service/internal/kvdb/__init__.py | 6 | 4387 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2012 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# stdlib
from logging import DEBUG, getLogger
from traceback import format_exc
#... | gpl-3.0 | -5,174,220,178,563,175,000 | 34.959016 | 129 | 0.587873 | false |
mdublin/Brightcove-Dynamic-Ingest-App | ENV/lib/python2.7/site-packages/sqlalchemy/testing/suite/test_types.py | 12 | 11192 | # coding: utf-8
from .. import fixtures, config
from ..assertions import eq_
from ..config import requirements
from sqlalchemy import Integer, Unicode, UnicodeText, select
from sqlalchemy import Date, DateTime, Time, MetaData, String, \
Text, Numeric, Float
from ..schema import Table, Column
from ... impor... | mit | -1,782,323,839,487,041,800 | 27.447837 | 79 | 0.541055 | false |
agconti/njode | env/lib/python2.7/site-packages/django/contrib/gis/gdal/srs.py | 35 | 11986 | """
The Spatial Reference class, represensents OGR Spatial Reference objects.
Example:
>>> from django.contrib.gis.gdal import SpatialReference
>>> srs = SpatialReference('WGS84')
>>> print(srs)
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHOR... | bsd-3-clause | 227,941,847,547,444,160 | 33.34384 | 97 | 0.605957 | false |
tumbl3w33d/ansible | lib/ansible/modules/cloud/vmware/vmware_guest_disk_info.py | 10 | 13626 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2019, NAER William Leemans (@bushvin) <willie@elaba.net>
# 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 __f... | gpl-3.0 | 6,948,222,654,510,567,000 | 40.797546 | 127 | 0.614707 | false |
pramsey/mapnik | scons/scons-local-2.3.4/SCons/Tool/midl.py | 9 | 3034 | """SCons.Tool.midl
Tool-specific initialization for midl (Microsoft IDL compiler).
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001 - 2014 The SCons Foundation
#
# Permission is hereby ... | lgpl-2.1 | -1,679,153,552,578,502,400 | 33.477273 | 159 | 0.669084 | false |
Tesla-Redux-Devices/kernel_lge_g3 | tools/perf/scripts/python/syscall-counts-by-pid.py | 11180 | 1927 | # system call counts, by pid
# (c) 2010, Tom Zanussi <tzanussi@gmail.com>
# Licensed under the terms of the GNU GPL License version 2
#
# Displays system-wide system call totals, broken down by syscall.
# If a [comm] arg is specified, only syscalls called by [comm] are displayed.
import os, sys
sys.path.append(os.env... | gpl-2.0 | -6,517,811,187,812,056,000 | 26.927536 | 77 | 0.615464 | false |
blue236/ardupilot | Tools/scripts/magfit_flashlog.py | 278 | 4744 | #!/usr/bin/env python
''' fit best estimate of magnetometer offsets from ArduCopter flashlog
using the algorithm from Bill Premerlani
'''
import sys, time, os, math
# command line option handling
from optparse import OptionParser
parser = OptionParser("magfit_flashlog.py [options]")
parser.add_option("--verbose", ac... | gpl-3.0 | -4,921,021,941,491,636,000 | 30.838926 | 96 | 0.60371 | false |
marcoarruda/MissionPlanner | Lib/site-packages/numpy/testing/utils.py | 53 | 47161 | """
Utility function to facilitate testing.
"""
import os
import sys
import re
import operator
import types
import warnings
from nosetester import import_nose
__all__ = ['assert_equal', 'assert_almost_equal','assert_approx_equal',
'assert_array_equal', 'assert_array_less', 'assert_string_equal',
... | gpl-3.0 | 8,794,330,758,132,366,000 | 31.819068 | 88 | 0.590806 | false |
auready/django | tests/gis_tests/tests.py | 22 | 4106 | import unittest
from django.core.exceptions import ImproperlyConfigured
from django.db import ProgrammingError
try:
from django.contrib.gis.db.backends.postgis.operations import PostGISOperations
HAS_POSTGRES = True
except ImportError:
HAS_POSTGRES = False
except ImproperlyConfigured as e:
# If psycop... | bsd-3-clause | -1,522,743,656,720,012,300 | 35.660714 | 95 | 0.632976 | false |
Nosferatul/coala | tests/results/AbsolutePositionTest.py | 35 | 2511 | import unittest
from coalib.results.AbsolutePosition import AbsolutePosition, calc_line_col
from coalib.misc.Constants import COMPLEX_TEST_STRING
class AbsolutePositionTest(unittest.TestCase):
def test_calc_line_col_newlines(self):
# no newlines
text = ("find position of 'z'",)
z_pos = t... | agpl-3.0 | -2,547,792,976,751,387,000 | 32.453333 | 75 | 0.567955 | false |
40223225/2015-cdb_g3-40223225 | static/Brython3.1.1-20150328-091302/Lib/fnmatch.py | 894 | 3163 | """Filename matching with shell patterns.
fnmatch(FILENAME, PATTERN) matches according to the local convention.
fnmatchcase(FILENAME, PATTERN) always takes case in account.
The functions operate by translating the pattern into a regular
expression. They cache the compiled regular expressions for speed.
The function... | gpl-3.0 | 4,629,086,278,621,916,000 | 28.018349 | 69 | 0.555801 | false |
alsrgv/tensorflow | tensorflow/contrib/learn/python/learn/utils/export.py | 28 | 13975 | # 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 | 2,058,942,878,412,650,200 | 37.711911 | 93 | 0.67585 | false |
hauxir/OpenBazaar-Server | daemon.py | 4 | 3692 | __author__ = 'chris'
import sys, os, time, atexit
from signal import SIGTERM
class Daemon(object):
"""
A generic daemon class.
Usage: subclass the Daemon class and override the run() method
"""
# pylint: disable=file-builtin
def __init__(self, pidfile, stdin='/dev/null', stdout='/dev/null', st... | mit | -2,168,159,017,127,064,800 | 27.620155 | 110 | 0.504875 | false |
kernsuite-debian/lofar | LCU/StationTest/test/hbatest/determinepeak.py | 1 | 4055 | """ script for determing the peak in the spectrum
Andre 10 July 2009
Usage python3 ./determinepeak.py [# of RCUs]
"""
# INIT
import array
import operator
import os
import time
import sys
import math
import numpy
# Read directory with the files to processs
def open_dir(dirname) :
files = list(filter(os.path.isfil... | gpl-3.0 | 3,359,976,794,862,514,700 | 30.192308 | 140 | 0.578052 | false |
lixiangning888/whole_project | modules/signatures_merge_tmp/rat_pcclient.py | 3 | 1675 | # -*- coding: utf-8 -*-
# Copyright (C) 2014 @threatlead
#
# 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 prog... | lgpl-3.0 | 2,899,283,527,154,909,700 | 31.82 | 92 | 0.622791 | false |
40223145c2g18/c2g18 | wsgi/static/Brython2.1.0-20140419-113919/Lib/xml/dom/expatbuilder.py | 733 | 35733 | """Facility to use the Expat parser to load a minidom instance
from a string or file.
This avoids all the overhead of SAX and pulldom to gain performance.
"""
# Warning!
#
# This module is tightly bound to the implementation details of the
# minidom DOM and can't be used with other DOM implementations. This
# is due... | gpl-2.0 | -7,385,274,793,542,316,000 | 35.876161 | 81 | 0.586293 | false |
kwrobert/heat-templates | hot/software-config/elements/heat-config-ansible/install.d/hook-ansible.py | 6 | 3615 | #!/usr/bin/env python
#
# 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 ... | apache-2.0 | -5,781,442,539,924,070,000 | 29.897436 | 78 | 0.601107 | false |
palashahuja/myhdl | myhdl/test/core/test_misc.py | 3 | 1922 | # This file is part of the myhdl library, a Python package for using
# Python as a Hardware Description Language.
#
# Copyright (C) 2003-2008 Jan Decaluwe
#
# The myhdl 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 t... | lgpl-2.1 | 1,455,729,469,256,915,700 | 23.641026 | 74 | 0.638398 | false |
Azenwrath/codeguild-labs | lab_distance_converstion.py | 1 | 1643 | #Lab: Distance Converter
#Student: Dana Stubkjaer
def convert(distance, unit1, unit2):
if unit1 == "mi":
if unit2 == "mi":
print (distance + " " + unit2)
if unit2 == "km":
print ((float(distance) * 1.60934))
if unit2 == "ft":
print ((float... | gpl-3.0 | -2,776,401,310,696,413,000 | 24.5 | 62 | 0.466829 | false |
spahan/unixdmoain | admin/janitor.py | 1 | 3452 | #!/usr/bin/env python2
# coding: utf-8
# THIS SOFTWARE IS LICENSED UNDER THE BSD LICENSE CONDITIONS.
# FOR LICENCE DETAILS SEE share/LICENSE.TXT
#
# (c) 2005-2009, Marco Hoehle <marco.hoehle@unibas.ch>
# (c) 2010, Hanspeter Spalinger <h.spalinger@stud.unibas.ch>
"""
housekeeping jobs, run this script as cronjob.
Do no... | bsd-3-clause | -8,016,550,323,606,674,000 | 38.215909 | 131 | 0.611997 | false |
DANA-Laboratory/CoolProp | Web/scripts/fluid_properties.Incompressibles.py | 3 | 6445 | from __future__ import print_function, division
import os.path
import CoolProp
import CoolProp.CoolProp
import subprocess
import sys
import numpy as np
import matplotlib
matplotlib.use('Agg') #Force mpl to use a non-GUI backend
import matplotlib.pyplot as plt
web_dir = os.path.abspath(os.path.join(os.path.dirname(__... | mit | -5,283,005,536,496,454,000 | 32.051282 | 95 | 0.561365 | false |
Azure/azure-sdk-for-python | sdk/storage/azure-storage-blob/samples/blob_samples_copy_blob.py | 1 | 1906 | # 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.
# --------------------------------------------------------------------... | mit | 8,189,060,452,475,976,000 | 32.438596 | 86 | 0.618048 | false |
davenovak/mtasa-blue | vendor/google-breakpad/src/tools/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py | 350 | 1226 | #!/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 that a hard_dependency that is not exported is not pulled in as a
dependency for a target if the target does not explicitly speci... | gpl-3.0 | 7,539,759,156,189,733,000 | 33.055556 | 78 | 0.729201 | false |
danakj/chromium | third_party/logilab/logilab/common/interface.py | 137 | 2593 | # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publ... | bsd-3-clause | 4,087,415,851,489,420,300 | 35.521127 | 81 | 0.691091 | false |
kingvuplus/BH-SH4 | lib/python/Components/Sources/List.py | 39 | 2840 | from Source import Source
from Components.Element import cached
class List(Source, object):
"""The datasource of a listbox. Currently, the format depends on the used converter. So
if you put a simple string list in here, you need to use a StringList converter, if you are
using a "multi content list styled"-list, you ... | gpl-2.0 | 2,690,742,583,095,458,300 | 25.542056 | 127 | 0.710563 | false |
SzTk/Get-Mid-Point | get_mid_point/geocoding.py | 1 | 1561 | #coding: UTF-8
import sys
import traceback
from pygmapslib import PyGMaps, PyGMapsError
__all__ = ['GeocodingError', 'Geocoding', 'request']
class GeocodingError(Exception):
def __init__(self, error_status, params):
self.error_status = error_status
self.params = params
def __str__(self):
... | lgpl-3.0 | -1,562,113,674,655,537,700 | 25.457627 | 70 | 0.586803 | false |
MakeHer/edx-platform | cms/djangoapps/contentstore/management/commands/tests/test_git_export.py | 66 | 7362 | """
Unittests for exporting to git via management command.
"""
import copy
import os
import shutil
import StringIO
import subprocess
import unittest
from uuid import uuid4
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import CommandError
from django.... | agpl-3.0 | 1,096,287,261,778,393,600 | 38.794595 | 90 | 0.605949 | false |
Endika/c2c-rd-addons | c2c_account_payment_extension/wizard/__init__.py | 4 | 1478 | # -*- coding: utf-8 -*-
##############################################
#
# Swing Entwicklung betrieblicher Informationssysteme GmbH
# (<http://www.swing-system.com>)
# Copyright (C) ChriCar Beteiligungs- und Beratungs- GmbH
# all rights reserved
# 08-JUN-2012 (GK) created
#
# WARNING: This program as such is intende... | agpl-3.0 | 6,203,083,940,809,277,000 | 43.787879 | 74 | 0.715156 | false |
trishnaguha/ansible | lib/ansible/modules/network/checkpoint/checkpoint_run_script.py | 30 | 3057 | #!/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 | -7,493,008,422,648,412,000 | 26.053097 | 108 | 0.679751 | false |
hpcugent/vsc-ldap | lib/vsc/ldap/filters.py | 1 | 9999 | # -*- coding: latin-1 -*-
#
# Copyright 2009-2021 Ghent University
#
# This file is part of vsc-ldap,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# the Fl... | gpl-2.0 | -6,010,921,779,081,361,000 | 34.710714 | 102 | 0.60466 | false |
drawks/ansible | lib/ansible/modules/storage/netapp/netapp_e_iscsi_target.py | 13 | 10627 | #!/usr/bin/python
# (c) 2018, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | 6,369,055,131,591,457,000 | 35.269625 | 120 | 0.585866 | false |
PaulWay/spacewalk | backend/satellite_tools/xmlDiskSource.py | 2 | 9003 | #
# Abstraction for an XML importer with a disk base
#
# Copyright (c) 2008--2014 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# F... | gpl-2.0 | -3,413,651,539,463,968,000 | 26.53211 | 83 | 0.64223 | false |
Onager/plaso | tests/parsers/esedb_plugins/msie_webcache.py | 1 | 3763 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the Microsoft Internet Explorer WebCache database."""
import unittest
from plaso.lib import definitions
from plaso.parsers.esedb_plugins import msie_webcache
from tests.parsers.esedb_plugins import test_lib
class MsieWebCacheESEDBPluginTest(test_lib.ESEDB... | apache-2.0 | -909,776,396,206,203,600 | 37.793814 | 80 | 0.674728 | false |
jeffreylu9/django-cms | cms/test_utils/project/sampleapp/migrations/0002_auto_20141015_1057.py | 60 | 1264 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('sampleapp', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='category',
name='l... | bsd-3-clause | 898,873,369,542,191,000 | 25.333333 | 80 | 0.522152 | false |
vrsys/avango | examples/stereo_example/main.py | 1 | 3087 | import avango
import avango.script
from avango.script import field_has_changed
import avango.gua
from examples_common.GuaVE import GuaVE
STEREO_MODE = avango.gua.StereoMode.ANAGLYPH_RED_CYAN
# STEREO_MODE = avango.gua.StereoMode.ANAGLYPH_RED_GREEN
# STEREO_MODE = avango.gua.StereoMode.SIDE_BY_SIDE
# STEREO_MODE = avan... | lgpl-3.0 | -4,250,012,594,367,639,600 | 29.87 | 113 | 0.656301 | false |
yencarnacion/jaikuengine | .google_appengine/lib/django-1.4/django/contrib/gis/db/backends/oracle/operations.py | 52 | 12903 | """
This module contains the spatial lookup types, and the `get_geo_where_clause`
routine for Oracle Spatial.
Please note that WKT support is broken on the XE version, and thus
this backend will not work on such platforms. Specifically, XE lacks
support for an internal JVM, and Java libraries are required to use... | apache-2.0 | 8,105,194,732,784,969,000 | 42.153846 | 115 | 0.603658 | false |
gromacs/copernicus | cpc/server/message/state.py | 2 | 4443 | # This file is part of Copernicus
# http://www.copernicus-computing.org/
#
# Copyright (C) 2011, Sander Pronk, Iman Pouya, Erik Lindahl, and others.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as published
# by the Free Soft... | gpl-2.0 | 7,820,634,948,040,680,000 | 30.288732 | 78 | 0.634031 | false |
elancom/storm | storm-core/src/dev/resources/tester_bolt.py | 16 | 1272 | # -*- coding: utf-8 -*-
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# ... | apache-2.0 | 9,166,864,236,404,631,000 | 34.333333 | 74 | 0.703616 | false |
dneg/gaffer | python/GafferImageTest/SelectTest.py | 5 | 3240 | ##########################################################################
#
# 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:
#
# * Red... | bsd-3-clause | 4,554,445,117,706,349,600 | 37.571429 | 102 | 0.652469 | false |
kphillisjr/burg | util/import_gcry.py | 6 | 17863 | #*
#* GRUB -- GRand Unified Bootloader
#* Copyright (C) 2009 Free Software Foundation, Inc.
#*
#* GRUB 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 | 8,338,329,081,663,220,000 | 41.329384 | 229 | 0.516822 | false |
ptisserand/ansible | lib/ansible/utils/module_docs_fragments/vyos.py | 58 | 3118 | #
# (c) 2015, Peter Sprygada <psprygada@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any late... | gpl-3.0 | -2,810,341,904,596,070,000 | 42.915493 | 147 | 0.685696 | false |
zhinaonet/sqlmap-z | lib/controller/handler.py | 1 | 4543 | #!/usr/bin/env python
"""
Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.common import Backend
from lib.core.data import conf
from lib.core.data import kb
from lib.core.dicts import DBMS_DICT
from lib.core.enums import DBMS
from lib.c... | gpl-3.0 | -1,020,827,596,377,140,900 | 39.5625 | 142 | 0.692054 | false |
robotlinker/robotlinker_core | src/rosbridge_suite/rosbridge_server/src/tornado/test/simple_httpclient_test.py | 19 | 22731 | from __future__ import absolute_import, division, print_function, with_statement
import collections
from contextlib import closing
import errno
import gzip
import logging
import os
import re
import socket
import sys
from tornado import gen
from tornado.httpclient import AsyncHTTPClient
from tornado.httputil import HT... | apache-2.0 | 1,399,773,377,362,358,500 | 38.463542 | 109 | 0.620826 | false |
abhiQmar/servo | tests/wpt/css-tests/tools/pytest/testing/test_capture.py | 171 | 32410 | # note: py.io capture tests where copied from
# pylib 1.4.20.dev2 (rev 13d9af95547e)
from __future__ import with_statement
import pickle
import os
import sys
import _pytest._code
import py
import pytest
import contextlib
from _pytest import capture
from _pytest.capture import CaptureManager
from _pytest.main import E... | mpl-2.0 | -3,719,405,192,336,998,000 | 29.346442 | 79 | 0.541376 | false |
NumberZeroSoftware/PDFINVEST | pdfapp/migrations/0010_auto_20170225_0034.py | 1 | 2473 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-25 00:34
from __future__ import unicode_literals
from django.db import migrations, models
import pdfapp.validators
class Migration(migrations.Migration):
dependencies = [
('pdfapp', '0009_auto_20170223_2247'),
]
operations = [
... | mit | -8,271,191,923,686,082,000 | 33.830986 | 119 | 0.585928 | false |
alfredhq/djlint | djlint/analyzers/base.py | 3 | 8412 | import ast
import os
from .context import Context
class BaseAnalyzer(object):
"""
Base code analyzer class. Takes dict `file path => ast node` as first
param and path to repository as second.
Subclass this class and implement `analyze_file` method if you want to
create new code analyzer.
"""
... | isc | 7,375,841,228,670,127,000 | 28.724382 | 84 | 0.58048 | false |
eriwoon/ShellScriptCollect | Python/replaceAVP.py | 1 | 3204 | #! /usr/bin/python
#coding: utf-8
import sys
import os
import re
def findAllFile(dir):
folder = [dir]
file = []
while len(folder) > 0:
curDir = folder[0]
folder.pop(0)
lst = os.listdir(curDir)
for i in lst:
name = curDir + '\\' + i
if os.path.isfile(name) == True:
file.append(name)
else... | mit | 2,863,149,763,808,397,000 | 23.272727 | 72 | 0.602996 | false |
lochiiconnectivity/boto | boto/connection.py | 1 | 44959 | # Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
# Copyright (c) 2010 Google
# Copyright (c) 2008 rPath, Inc.
# Copyright (c) 2009 The Echo Nest Corporation
# Copyright (c) 2010, Eucalyptus Systems, Inc.
# Copyright (c) 2011, Nexenta Systems Inc.
# All... | mit | -80,022,250,089,414,130 | 40.020985 | 109 | 0.57975 | false |
psavery/avogadro | libavogadro/src/python/unittest/camera.py | 9 | 2353 | from PyQt4.Qt import *
from numpy import *
import Avogadro
import sys
import unittest
from util import *
class TestCamera(unittest.TestCase):
def setUp(self):
# create the GLWidget and load the default engines
self.glwidget = Avogadro.GLWidget()
self.glwidget.loadDefaultEngines()
self.molecule ... | gpl-2.0 | -8,479,210,946,714,413,000 | 30.373333 | 88 | 0.706332 | false |
google/grr | grr/server/grr_response_server/flows/general/registry.py | 1 | 6530 | #!/usr/bin/env python
"""Gather information from the registry on windows."""
from grr_response_core import config
from grr_response_core.lib import artifact_utils
from grr_response_core.lib.rdfvalues import file_finder as rdf_file_finder
from grr_response_core.lib.rdfvalues import paths as rdf_paths
from grr_response_... | apache-2.0 | -2,931,743,398,361,208,300 | 35.277778 | 80 | 0.713323 | false |
Galexrt/zulip | zerver/views/pointer.py | 5 | 1267 |
from django.http import HttpRequest, HttpResponse
from django.utils.translation import ugettext as _
from typing import Text
from zerver.decorator import to_non_negative_int
from zerver.lib.actions import do_update_pointer
from zerver.lib.request import has_request_variables, JsonableError, REQ
from zerver.lib.respon... | apache-2.0 | -2,045,797,681,912,640,000 | 36.264706 | 89 | 0.711918 | false |
arrabito/DIRAC | Core/Utilities/DErrno.py | 1 | 11716 | """ :mod: DErrno
==========================
.. module: DErrno
:synopsis: Error list and utilities for handling errors in DIRAC
This module contains list of errors that can be encountered in DIRAC.
It complements the errno module of python.
It also contains utilities to manipulate these err... | gpl-3.0 | -747,050,061,043,167,000 | 29.195876 | 121 | 0.567002 | false |
JaviMerino/trappy | trappy/thermal.py | 2 | 9812 | # Copyright 2015-2016 ARM Limited
#
# 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 w... | apache-2.0 | -2,251,892,719,779,163,100 | 31.926174 | 86 | 0.596616 | false |
Godiyos/python-for-android | python-modules/twisted/twisted/internet/pollreactor.py | 56 | 6856 | # Copyright (c) 2001-2010 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
A poll() based implementation of the twisted main loop.
To install the event loop (and you should do this before any connections,
listeners or connectors are added)::
from twisted.internet import pollreactor
pollreactor.in... | apache-2.0 | 7,158,869,929,387,656,000 | 31.339623 | 83 | 0.587515 | false |
shengqh/ngsperl | lib/Visualization/plotGene.py | 1 | 7060 | import os,sys,inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
cqsdir = os.path.abspath(os.path.dirname(currentdir) + "/CQS")
sys.path.insert(0,cqsdir)
import logging
import argparse
import string
import subprocess
from LocusItem import LocusItem, readBedFile
from FileLis... | apache-2.0 | 3,913,873,010,884,401,000 | 42.312883 | 183 | 0.666289 | false |
faircloth-lab/uce-probe-design | run_lastz.py | 1 | 6837 | #!/usr/bin/env python
# encoding: utf-8
"""
run_lastz.py
Created by Brant Faircloth on 2010-02-24.
Copyright (c) 2010 Brant Faircloth. All rights reserved.
# Description
A helper script to run lastz.
"""
import pdb
import sys
import os
import time
import optparse
import tempfile
import subprocess
import bx.seq.two... | bsd-3-clause | 7,238,165,040,286,243,000 | 33.014925 | 129 | 0.6086 | false |
CingHu/neutron-ustack | neutron/plugins/cisco/cfg_agent/device_drivers/devicedriver_api.py | 5 | 5750 | # Copyright 2014 Cisco Systems, 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,515,366,804,328,147,500 | 34.9375 | 78 | 0.630435 | false |
wavesoft/CCLib | Python/cc_write_flash.py | 1 | 2943 | #!/usr/bin/python
#
# CCLib_proxy Utilities
# Copyright (c) 2014 Ioannis Charalampidis
#
# 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) an... | gpl-3.0 | 8,938,638,814,940,296,000 | 26 | 101 | 0.687734 | false |
orioncoin-dev/orioncoin | contrib/testgen/gen_base58_test_vectors.py | 1064 | 4344 | #!/usr/bin/env python
'''
Generate valid and invalid base58 address and private key test vectors.
Usage:
gen_base58_test_vectors.py valid 50 > ../../src/test/data/base58_keys_valid.json
gen_base58_test_vectors.py invalid 50 > ../../src/test/data/base58_keys_invalid.json
'''
# 2012 Wladimir J. van der Laan
# R... | mit | 4,101,568,194,970,254,000 | 33.47619 | 97 | 0.59116 | false |
DepthDeluxe/ansible | lib/ansible/plugins/action/copy.py | 18 | 15161 | # (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,902,739,737,089,247,000 | 42.817919 | 130 | 0.563287 | false |
lowitty/server | libsDarwin/twisted/trial/_dist/test/test_disttrial.py | 10 | 13156 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.trial._dist.disttrial}.
"""
import os
import sys
from cStringIO import StringIO
from twisted.internet.protocol import ProcessProtocol
from twisted.internet.defer import fail, succeed
from twisted.internet.task import Coop... | mit | 2,705,487,625,181,921,000 | 31.645161 | 79 | 0.616221 | false |
rxuriguera/bibtexIndexMaker | src/bibim/references/format/formatter.py | 1 | 1717 |
# Copyright 2010 Ramon Xuriguera
#
# This file is part of BibtexIndexMaker.
#
# BibtexIndexMaker is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any late... | gpl-3.0 | 2,981,039,575,606,235,600 | 34.040816 | 76 | 0.655213 | false |
bgilbert/scanvark | scanvark/config.py | 1 | 1818 | #
# Scanvark -- a Gtk-based batch scanning program
#
# Copyright (c) 2012 Benjamin Gilbert
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the h... | gpl-2.0 | 6,266,500,709,855,719,000 | 36.875 | 73 | 0.676018 | false |
LingJiJian/LangTransUtil | lk.py | 1 | 4280 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author B-y 342854406@qq.com
import os
import re
import json
import sys
class Singleton(type):
"""docstring for Singleton"""
def __init__(self, name,bases,dic):
super(Singleton, self).__init__(name,bases,dic)
self.instance = None
def __call__(self,*args,**kwargs... | mit | 7,191,918,083,643,452,000 | 23.60355 | 83 | 0.619769 | false |
leethargo/geonet | geonet/network.py | 1 | 3958 | '''
Data structures for (Steiner) tree networks
'''
import networkx as nx
class Net(object):
'''Network'''
def __init__(self, nodes, arcs):
'''
nodes: node IDs
arcs: tuples of node IDs (tail, head)
'''
self.dg = nx.DiGraph()
self.dg.add_nodes_from(nodes)
... | mit | 1,535,741,604,945,658,400 | 29.921875 | 75 | 0.54952 | false |
chiviak/headphones | lib/unidecode/x021.py | 62 | 3964 | data = (
'', # 0x00
'', # 0x01
'C', # 0x02
'', # 0x03
'', # 0x04
'', # 0x05
'', # 0x06
'', # 0x07
'', # 0x08
'', # 0x09
'', # 0x0a
'', # 0x0b
'', # 0x0c
'H', # 0x0d
'', # 0x0e
'', # 0x0f
'', # 0x10
'', # 0x11
'', # 0x12
'', # 0x13
'', # 0x14
'N', # 0x15
... | gpl-3.0 | -2,967,146,598,459,825,700 | 14.424125 | 18 | 0.288597 | false |
dav94/plastex | plasTeX/Packages/float.py | 8 | 1426 | #!/usr/bin/env python
import new
from plasTeX import Command, Environment
from plasTeX.Base.LaTeX.Floats import Float, Caption
class newfloat(Command):
args = 'name:str pos:str capfile:str [ reset:str ]'
def invoke(self, tex):
Command.invoke(self, tex)
name = str(self.attributes['name'])
... | mit | -2,980,041,299,201,317,000 | 28.708333 | 80 | 0.619215 | false |
fengzhyuan/scikit-learn | examples/semi_supervised/plot_label_propagation_versus_svm_iris.py | 286 | 2378 | """
=====================================================================
Decision boundary of label propagation versus SVM on the Iris dataset
=====================================================================
Comparison for decision boundary generated on iris dataset
between Label Propagation and SVM.
This demon... | bsd-3-clause | 8,661,456,473,112,505,000 | 29.101266 | 74 | 0.598402 | false |
tuomas777/parkkihubi | parkings/tests/api/utils.py | 1 | 3212 | import json
import uuid
from rest_framework.authtoken.models import Token
ALL_METHODS = ('get', 'post', 'put', 'patch', 'delete')
def token_authenticate(api_client, user):
token, _ = Token.objects.get_or_create(user=user)
api_client.credentials(HTTP_AUTHORIZATION='ApiKey ' + token.key)
return api_client... | mit | -7,520,562,445,394,078,000 | 37.698795 | 112 | 0.655666 | false |
michaelhush/M-LOOP | docs/conf.py | 1 | 10253 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# M-LOOP documentation build configuration file, created by
# sphinx-quickstart on Wed Aug 24 11:34:47 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | mit | -4,014,117,061,047,745,000 | 31.549206 | 95 | 0.7075 | false |
rouxcode/django-admin-sort | admin_sort/tests/testapp/models.py | 1 | 5140 | # -*- coding: utf-8 -*-
from django.db import models
from admin_sort.models import SortableModelMixin
class Author(SortableModelMixin, models.Model):
"""
SortableModelMixin: on save, intercept and first update needed other
instances, then save
"""
name = models.CharField('Name', null=True, blank=... | mit | -3,920,569,112,322,875,400 | 31.531646 | 78 | 0.647665 | false |
ngoix/OCRF | sklearn/linear_model/ransac.py | 14 | 17163 | # coding: utf-8
# Author: Johannes Schönberger
#
# License: BSD 3 clause
import numpy as np
import warnings
from ..base import BaseEstimator, MetaEstimatorMixin, RegressorMixin, clone
from ..utils import check_random_state, check_array, check_consistent_length
from ..utils.random import sample_without_replacement
fr... | bsd-3-clause | 4,517,217,463,929,067,500 | 37.222717 | 81 | 0.590782 | false |
openhatch/new-mini-tasks | vendor/packages/Django/django/core/management/sql.py | 104 | 7942 | from __future__ import unicode_literals
import codecs
import os
import re
from django.conf import settings
from django.core.management.base import CommandError
from django.db import models
from django.db.models import get_models
from django.utils._os import upath
def sql_create(app, style, connection):
"Returns... | apache-2.0 | -5,693,812,492,929,659,000 | 39.728205 | 123 | 0.667086 | false |
datamade/pyhacrf | pyhacrf/pyhacrf.py | 1 | 13946 | # Authors: Dirko Coetsee
# License: 3-clause BSD
""" Implements a Hidden Alignment Conditional Random Field (HACRF). """
from __future__ import absolute_import
import numpy as np
import lbfgs
from .algorithms import forward, backward
from .algorithms import forward_predict, forward_max_predict
from .algorithms import... | bsd-3-clause | 7,427,845,139,190,377,000 | 38.507082 | 129 | 0.577728 | false |
BWeatherMaine/WXGIF | libs/images2gif.py | 2 | 28499 | # -*- coding: utf-8 -*-
# Copyright (c) 2010, Almar Klein, Ant1, Marius van Voorden
#
# This code is subject to the (new) BSD license:
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of s... | apache-2.0 | 2,702,143,883,687,072,000 | 32.927381 | 124 | 0.567143 | false |
Pegase745/gitlab-freak | gitlab_freak/helpers.py | 2 | 2832 | from __future__ import absolute_import, unicode_literals
from distutils.version import LooseVersion
from sqlalchemy.sql.expression import ClauseElement
from flask import Flask
import json
import requests
from gitlab_freak.models import db, ProjectDependency
import gitlab
app = Flask(__name__)
app.config.from_envvar... | mit | -1,155,476,737,873,296,600 | 31.930233 | 86 | 0.62041 | false |
fabiand/anaconda | pyanaconda/constants_text.py | 2 | 1811 | #
# constants_text.py: text mode constants
#
# Copyright (C) 2000, 2001, 2002 Red Hat, Inc. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Licen... | gpl-2.0 | 2,279,819,971,241,057,800 | 30.224138 | 78 | 0.694092 | false |
sonata-nfv/son-cli | setup.py | 5 | 3428 | # Copyright (c) 2015 SONATA-NFV, UBIWHERE
# 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 app... | apache-2.0 | -726,700,184,759,282,700 | 40.301205 | 77 | 0.622229 | false |
fnaum/rez | src/rez/vendor/lockfile/sqlitelockfile.py | 487 | 5540 | from __future__ import absolute_import, division
import time
import os
try:
unicode
except NameError:
unicode = str
from . import LockBase, NotLocked, NotMyLock, LockTimeout, AlreadyLocked
class SQLiteLockFile(LockBase):
"Demonstrate SQL-based locking."
testdb = None
def __init__(self, path, t... | lgpl-3.0 | 6,717,877,301,793,169,000 | 34.741935 | 75 | 0.470397 | false |
Vagab0nd/SiCKRAGE | lib3/dogpile/cache/proxy.py | 2 | 2601 | """
Proxy Backends
------------------
Provides a utility and a decorator class that allow for modifying the behavior
of different backends without altering the class itself or having to extend the
base backend.
.. versionadded:: 0.5.0 Added support for the :class:`.ProxyBackend` class.
"""
from .api import CacheBa... | gpl-3.0 | -5,758,399,686,115,150,000 | 26.378947 | 79 | 0.600538 | false |
benekastah/rock-paper-scissors | rps.py | 1 | 11894 | # pylint: disable=missing-docstring
from collections import OrderedDict, defaultdict
import select
import socket
import sys
class Style(object):
RESET = 0
BOLD = 1
UNDERSCORE = 4
BLINK = 5
INVERT = 7
CONCEAL = 8
FG_BLACK = 30
FG_RED = 31
FG_GREEN = 32
FG_YELLOW = 33
FG_BLU... | bsd-3-clause | -2,717,137,522,057,526,300 | 28.440594 | 78 | 0.471498 | false |
sol/aeson | tests/JSONTestSuite/parsers/test_json-jq.py | 5 | 1169 | #!/usr/bin/env python
import os
import subprocess
import sys
jq_paths = ["/usr/local/bin/jq", "/Users/nst/bin/jq"]
dir_path = "/Users/nst/Projects/dropbox/JSON/test_cases/"
existing_jq_paths = [p for p in jq_paths if os.path.exists(p)]
if len(existing_jq_paths) == 0:
print "-- cannot find jq"
sys.exit(1)
jq... | bsd-3-clause | 3,933,764,163,440,656,000 | 33.382353 | 68 | 0.610778 | false |
cxxgtxy/tensorflow | tensorflow/contrib/data/python/kernel_tests/sequence_dataset_op_test.py | 6 | 8032 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -1,134,669,635,925,275,000 | 37.066351 | 80 | 0.659985 | false |
wavelets/zipline | zipline/utils/test_utils.py | 5 | 3103 | from contextlib import contextmanager
from logbook import FileHandler
from zipline.finance.blotter import ORDER_STATUS
from six import itervalues
import pandas as pd
def to_utc(time_str):
return pd.Timestamp(time_str, tz='US/Eastern').tz_convert('UTC')
def setup_logger(test, path='test.log'):
test.log_han... | apache-2.0 | 4,010,933,101,628,797,000 | 22.687023 | 78 | 0.614244 | false |
steebchen/youtube-dl | youtube_dl/extractor/sohu.py | 50 | 6911 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_str,
compat_urllib_parse_urlencode,
)
from ..utils import (
ExtractorError,
int_or_none,
try_get,
)
class SohuIE(InfoExtractor):
_VALID_URL = r'https?://(?P<mytv>... | unlicense | 547,829,533,164,062,500 | 32.034653 | 101 | 0.437584 | false |
brettgoldstein3/brettgoldstein-site | lib/flask/app.py | 345 | 76786 | # -*- coding: utf-8 -*-
"""
flask.app
~~~~~~~~~
This module implements the central WSGI application object.
:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import os
import sys
from threading import Lock
from datetime import timedelta
from itertools import... | apache-2.0 | -9,099,094,800,037,395,000 | 40.686211 | 84 | 0.610997 | false |
Rubisk/mcedit2 | src/mcedit2/plugins.py | 1 | 10201 | """
plugins
"""
from __future__ import absolute_import, division, print_function
from collections import defaultdict
import logging
import itertools
import os
import imp
import traceback
from mcedit2 import editortools
from mcedit2.editortools import generate
from mcedit2.util import load_ui
from mcedit2.util.setti... | bsd-3-clause | -7,692,061,054,843,510,000 | 27.57423 | 92 | 0.650328 | false |
leopittelli/Django-on-App-Engine-Example | django/utils/http.py | 29 | 9645 | from __future__ import unicode_literals
import base64
import calendar
import datetime
import re
import sys
from binascii import Error as BinasciiError
from email.utils import formatdate
from django.utils.datastructures import MultiValueDict
from django.utils.encoding import force_str, force_text
from django.utils.fu... | mit | 877,517,149,493,357,400 | 34.32967 | 95 | 0.639088 | false |
sheepray/volatility | volatility/win32/modules.py | 58 | 1117 | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | gpl-2.0 | -4,109,279,391,068,862,000 | 31.852941 | 70 | 0.736795 | false |
mozilla-metrics/fhr-toolbox | mrjob/churn-analysis.py | 2 | 5297 | """
Analyze a historical week to understand Firefox churn.
"""
import healthreportutils
from datetime import date, datetime, timedelta
import os, shutil, csv
import sys, codecs
import traceback
import mrjob
from mrjob.job import MRJob
import tempfile
try:
import simplejson as json
except ImportError:
import ... | apache-2.0 | -2,219,056,109,511,884,000 | 27.478495 | 110 | 0.593544 | false |
mark-ignacio/phantomjs | src/breakpad/src/tools/gyp/tools/pretty_sln.py | 137 | 4977 | #!/usr/bin/python2.5
# Copyright 2009 Google Inc.
# All Rights Reserved.
"""Prints the information in a sln file in a diffable way.
It first outputs each projects in alphabetical order with their
dependencies.
Then it outputs a possible build order.
"""
__author__ = 'nsylvain (Nicolas Sylvain)'
import os
... | bsd-3-clause | 6,764,016,432,575,439,000 | 29.169697 | 80 | 0.565401 | false |
maxrothman/aws-alfred-workflow | venv/lib/python2.7/site-packages/jmespath/functions.py | 21 | 13008 | import math
import json
import weakref
from jmespath import exceptions
from jmespath.compat import string_type as STRING_TYPE
from jmespath.compat import get_methods
# python types -> jmespath types
TYPES_MAP = {
'bool': 'boolean',
'list': 'array',
'dict': 'object',
'NoneType': 'null',
'unicode':... | mit | -4,993,242,979,314,297,000 | 34.736264 | 79 | 0.564114 | false |
davidwaroquiers/pymatgen | pymatgen/analysis/tests/test_structure_matcher.py | 5 | 47994 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import itertools
import json
import os
import unittest
import numpy as np
from monty.json import MontyDecoder
from pymatgen.core.periodic_table import Element
from pymatgen.core.lattice import Lattice
from p... | mit | -1,015,100,965,522,234,800 | 39.88075 | 120 | 0.553965 | false |
undoware/neutron-drive | google_appengine/google/appengine/api/files/gs.py | 3 | 11379 | #!/usr/bin/env python
#
# Copyright 2007 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 o... | bsd-3-clause | -7,534,924,071,659,558,000 | 33.068862 | 80 | 0.682222 | false |
sukiand/idapython | examples/ex_cli.py | 16 | 3448 | # -----------------------------------------------------------------------
# This is an example illustrating how to implement a CLI
# (c) Hex-Rays
#
from idaapi import NW_OPENIDB, NW_CLOSEIDB, NW_TERMIDA, NW_REMOVE, COLSTR, cli_t
#<pycode(ex_cli_ex1)>
class mycli_t(cli_t):
flags = 0
sname = "pycli"
... | bsd-3-clause | 1,608,731,421,461,309,200 | 32.48 | 149 | 0.577436 | false |
disruptek/boto | boto/sdb/db/__init__.py | 189 | 1108 | # Copyright (c) 2006,2007,2008 Mitch Garnaat http://garnaat.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, including
# without limitation the rights to use, copy,... | mit | 2,286,955,849,276,692,200 | 54.4 | 74 | 0.771661 | false |
papouso/odoo | addons/hr_payroll_account/hr_payroll_account.py | 240 | 10840 | #-*- coding:utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# d$
#
# This program is free software: you can redistribute it and/or modify
# it ... | agpl-3.0 | 4,134,513,567,426,007,600 | 46.753304 | 228 | 0.563192 | false |
cristianquaglio/odoo | addons/hr_payroll_account/hr_payroll_account.py | 52 | 10905 | #-*- coding:utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# d$
#
# This program is free software: you can redistribute it and/or modify
# it ... | apache-2.0 | 909,915,434,385,326,000 | 47.039648 | 228 | 0.564237 | 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.