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 |
|---|---|---|---|---|---|---|---|---|---|---|
firebitsbr/pwn_plug_sources | src/metagoofil/hachoir_metadata/misc.py | 41 | 8940 | from hachoir_metadata.metadata import RootMetadata, registerExtractor
from hachoir_metadata.safe import fault_tolerant
from hachoir_parser.container import SwfFile
from hachoir_parser.misc import TorrentFile, TrueTypeFontFile, OLE2_File, PcfFile
from hachoir_core.field import isString
from hachoir_core.error import war... | gpl-3.0 | 4,551,887,132,164,519,400 | 33.122137 | 94 | 0.568792 | false |
cppisfun/GameEngine | foreign/boost/tools/build/v2/util/utility.py | 9 | 4754 | # (C) Copyright David Abrahams 2001. Permission to copy, use, modify, sell and
# distribute this software is granted provided this copyright notice appears in
# all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
""" Uti... | gpl-3.0 | -3,124,740,749,742,810,600 | 28.670968 | 120 | 0.588557 | false |
mheap/ansible | lib/ansible/modules/cloud/azure/azure_rm_virtualmachine_scaleset.py | 1 | 35967 | #!/usr/bin/python
#
# Copyright (c) 2016 Sertac Ozercan, <seozerca@microsoft.com>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | gpl-3.0 | -6,842,941,546,625,744,000 | 41.017523 | 199 | 0.513832 | false |
DarthMaulware/EquationGroupLeaks | Leak #1 - Equation Group Cyber Weapons Auction - Invitation/EQGRP-Free-File/Firewall/EXPLOITS/ELCA/fosho/requests/packages/urllib3/exceptions.py | 2 | 1156 | # urllib3/exceptions.py
##
##
##
##
##
class HTTPError(Exception):
''''''
pass
class PoolError(HTTPError):
''''''
def __init__(self, pool, message):
self.pool = pool
HTTPError.__init__(self, "%s: %s" % (pool, message))
class SSLError(HTTPError):
''''''
pass
##
... | unlicense | 6,331,205,613,518,147,000 | 13.271605 | 67 | 0.557958 | false |
mitodl/sga-lti | sga/backend/constants.py | 1 | 1170 | """
Constant definitions
"""
# Datetime formats
SGA_DATETIME_FORMAT = "l, F j, Y, g:iA e"
EPOCH_FORMAT = "U"
# Messages
GRADER_TO_STUDENT_CONFIRM = ("Are you sure you want to change this grader to a student? " +
"Students currently assigned to this grader will no longer " +
... | bsd-3-clause | 1,113,038,588,414,616,300 | 34.454545 | 100 | 0.62735 | false |
akbarpn136/perek-dj | utama/views.py | 1 | 16574 | from django.shortcuts import render, redirect, get_object_or_404, HttpResponse
from django.http import JsonResponse
from django.contrib import messages
from django.contrib.auth import logout, login, authenticate
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, Empty... | cc0-1.0 | -1,456,190,791,158,790,000 | 29.692593 | 120 | 0.587426 | false |
163gal/Time-Line | libs_arm/wx/lib/pubsub/core/kwargs/publishermixin.py | 5 | 2311 | """
:copyright: Copyright since 2006 by Oliver Schoenborn, all rights reserved.
:license: BSD, see LICENSE_BSD_Simple.txt for details.
"""
class PublisherMixin:
"""
Mixin for publishing messages to a topic's listeners. This will be
mixed into topicobj.Topic so that a user can use a Topic object to
sen... | gpl-3.0 | -4,813,082,928,440,752,000 | 34.553846 | 83 | 0.63955 | false |
cemoody/chainer | examples/sentiment/train_sentiment.py | 4 | 6986 | #!/usr/bin/env python
"""Sample script of recursive neural networks for sentiment analysis.
This is Socher's simple recursive model, not RTNN:
R. Socher, C. Lin, A. Y. Ng, and C.D. Manning.
Parsing Natural Scenes and Natural Language with Recursive Neural Networks.
in ICML2011.
"""
import argparse
import codec... | mit | -2,984,529,657,359,926,000 | 28.854701 | 77 | 0.583166 | false |
unrza72/qplotutils | qplotutils/wireframe/items.py | 1 | 23332 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Items for the wireframe view
"""
import logging
import numpy as np
from OpenGL import GL
from OpenGL.GL import (
GL_BLEND,
GL_SRC_ALPHA,
GL_ONE_MINUS_SRC_ALPHA,
glEnable,
glDisable,
GL_LINE_SMOOTH,
GL_POLYGON_SMOOTH,
GL_LINE_SMOOTH_HI... | mit | -3,036,442,289,709,507,600 | 29.261997 | 124 | 0.526016 | false |
googleapis/python-talent | tests/unit/gapic/talent_v4beta1/test_tenant_service.py | 1 | 87731 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 2,514,338,566,656,052,700 | 37.177111 | 118 | 0.659847 | false |
edx/course-discovery | course_discovery/apps/course_metadata/tests/test_query.py | 1 | 6132 | # pylint: disable=no-member
import datetime
import ddt
import pytest
import pytz
from django.test import TestCase
from course_discovery.apps.course_metadata.choices import CourseRunStatus, ProgramStatus
from course_discovery.apps.course_metadata.models import Course, CourseRun, Program
from course_discovery.apps.cour... | agpl-3.0 | 1,480,001,325,813,953,500 | 41.583333 | 119 | 0.667482 | false |
nadeemsyed/swift | swift/common/direct_client.py | 3 | 21930 | # Copyright (c) 2010-2012 OpenStack Foundation
#
# 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 agree... | apache-2.0 | 1,070,365,014,901,260,800 | 38.160714 | 79 | 0.614318 | false |
tarmstrong/nbdiff | scripts/gen_benchmark_notebook.py | 1 | 1306 | # generate two notebook files that are large enough for benchmarking.
import IPython.nbformat.current as nbformat
import random
def new_code_cell():
nlines = random.randint(0, 30)
input = [
str(random.random())
for i in range(nlines)
]
code_cell = nbformat.new_code_cell(input=input)
... | mit | 5,158,438,282,222,395,000 | 21.135593 | 71 | 0.644717 | false |
chrisbarnettster/cfg-analysis-on-heroku-jupyter | .jupyter/jupyter_notebook_config.py | 2 | 2062 | try:
import os
import json
import traceback
import IPython.lib
import pgcontents
c = get_config()
### Password protection ###
# http://jupyter-notebook.readthedocs.io/en/latest/security.html
if os.environ.get('JUPYTER_NOTEBOOK_PASSWORD_DISABLED') != 'DangerZone!':
passwd = ... | mit | 2,645,788,274,607,554,000 | 39.431373 | 87 | 0.677013 | false |
spacy-io/thinc | thinc/extra/datasets.py | 1 | 8348 | # coding: utf8
from __future__ import unicode_literals
import random # pragma: no cover
import io # pragma: no cover
from collections import Counter # pragma: no cover
import os.path # pragma: no cover
import csv # pragma: no cover
import numpy
import json
import sys
from srsly import cloudpickle as pickle
from p... | mit | 3,532,642,709,093,280,000 | 30.862595 | 87 | 0.584571 | false |
larsbergstrom/servo | tests/wpt/web-platform-tests/mathml/tools/mathvariant-transforms.py | 7 | 7477 | #!/usr/bin/python
from __future__ import print_function
from lxml import etree
from utils.misc import downloadWithProgressBar, UnicodeXMLURL
from utils import mathfont
# Retrieve the unicode.xml file if necessary.
unicodeXML = downloadWithProgressBar(UnicodeXMLURL)
# Extract the mathvariants transformation.
xsltTran... | mpl-2.0 | -8,020,646,585,455,962,000 | 42.725146 | 173 | 0.663769 | false |
DrMeers/django | django/contrib/formtools/wizard/views.py | 4 | 28545 | from collections import OrderedDict
import re
from django import forms
from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from django.forms import formsets, ValidationError
from django.views.generic import TemplateView
from django.utils.decorators import classonlymethod
from django.util... | bsd-3-clause | 8,514,781,733,380,186,000 | 37.836735 | 90 | 0.607217 | false |
larsks/ansible-modules-core | packaging/language/gem.py | 67 | 8053 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Johan Wiren <johan.wiren.se@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 th... | gpl-3.0 | 5,974,740,311,679,299,000 | 30.457031 | 126 | 0.620142 | false |
vpramo/contrail-controller | src/config/common/setup.py | 8 | 1181 | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
from setuptools import setup
import re
def requirements(filename):
with open(filename) as f:
lines = f.read().splitlines()
c = re.compile(r'\s*#.*')
return filter(bool, map(lambda y: c.sub('', y).strip(), lines))
setup(
name=... | apache-2.0 | -5,403,071,694,133,926,000 | 32.742857 | 67 | 0.585097 | false |
hclhkbu/dlbench | tools/mxnet/rnn/train_rnn.py | 2 | 10054 | from common import find_mxnet
import numpy as np
import os
import mxnet as mx
import argparse
parser = argparse.ArgumentParser(description="Train RNN on Penn Tree Bank",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--data-dir', type=str, help='the input ... | mit | -3,025,118,791,386,855,400 | 43.486726 | 133 | 0.602248 | false |
sysadminmatmoz/odoo-clearcorp | product_category_sequence/product_product.py | 3 | 2553 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Addons modules by CLEARCORP S.A.
# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
#
# This program is free software: you can redistribute... | agpl-3.0 | -447,596,186,688,590,460 | 45.418182 | 131 | 0.602037 | false |
victorywang80/Maintenance | saltstack/src/salt/modules/pacman.py | 1 | 13895 | # -*- coding: utf-8 -*-
'''
A module to wrap pacman calls, since Arch is the best
(https://wiki.archlinux.org/index.php/Arch_is_the_best)
'''
# Import python libs
import copy
import logging
import re
# Import salt libs
import salt.utils
log = logging.getLogger(__name__)
# Define the module's virtual name
__virtualn... | apache-2.0 | -4,393,131,029,616,571,400 | 27.649485 | 110 | 0.556531 | false |
cnobile2012/dcolumn | example_site/books/admin.py | 1 | 2681 | #
# example_site/books/admin.py
#
from django.contrib import admin
from django.utils.translation import gettext_lazy as _
from dcolumn.common.admin_mixins import UserAdminMixin
from dcolumn.dcolumns.admin import KeyValueInline
from .models import Promotion, Book, Author, Publisher
from .forms import PromotionForm, B... | mit | 7,266,502,489,189,427,000 | 31.695122 | 79 | 0.556882 | false |
9thSenseRobotics/bosh_server | nbxmpp-0.1/build/lib.linux-i686-2.7/nbxmpp/smacks.py | 2 | 4527 | from protocol import Acks
from protocol import NS_STREAM_MGMT
import logging
log = logging.getLogger('nbxmpp.smacks')
class Smacks():
'''
This is Smacks is the Stream Management class. It takes care of requesting
and sending acks. Also, it keeps track of the unhandled outgoing stanzas.
The dispatcher ... | gpl-3.0 | -1,592,018,348,041,819,600 | 33.295455 | 78 | 0.588027 | false |
pystruct/pystruct | pystruct/utils/graph_functions.py | 5 | 1063 | import numpy as np
def is_forest(edges, n_vertices=None):
if n_vertices is not None and len(edges) > n_vertices - 1:
return False
n_vertices = np.max(edges) + 1
parents = -np.ones(n_vertices)
visited = np.zeros(n_vertices, dtype=np.bool)
neighbors = [[] for i in range(n_vertices)]
for ... | bsd-2-clause | -707,808,938,073,425,700 | 31.212121 | 62 | 0.516463 | false |
jordotech/sherri_satchmo | satchmo/apps/satchmo_store/shop/templatetags/satchmo_cart.py | 12 | 5435 | from django import template
from livesettings import config_value
from l10n.utils import moneyfmt
from tax.templatetags.satchmo_tax import CartitemLineTaxedTotalNode, CartTaxedTotalNode
import logging
log = logging.getLogger('shop.templatetags.satchmo_cart')
register = template.Library()
class CartitemTotalNode(temp... | bsd-3-clause | 1,507,412,427,990,449,700 | 29.363128 | 122 | 0.640294 | false |
joshuahellier/PhDStuff | codes/kmc/batchJobs/rateCaculation/mainStuff/concFlow.py | 1 | 14456 | import sys
import os
import math
import shutil
resultDir = os.environ.get('RESULTS')
if resultDir == None :
print ("WARNING! $RESULTS not set! Attempt to write results will fail!\n")
# Expecting input botConc, topConc, rateConstFull, sysSize, analInterval, numStepsEquilib, numStepsSnapshot, numStepsAnal, numSteps... | mit | -5,669,884,973,100,589,000 | 35.14 | 190 | 0.606253 | false |
dparks1134/STAMP | stamp/GUI/statsTableDlg.py | 1 | 3326 | #=======================================================================
# Author: Donovan Parks
#
# Dialog box used to set program preferences.
#
# Copyright 2011 Donovan Parks
#
# This file is part of STAMP.
#
# STAMP is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Publ... | gpl-3.0 | 8,051,999,409,962,092,000 | 38.141176 | 165 | 0.695129 | false |
apache/airflow | airflow/jobs/local_task_job.py | 2 | 11763 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | apache-2.0 | 5,801,869,318,638,379,000 | 41.31295 | 109 | 0.599932 | false |
alex/pinax | pinax/core/management/commands/clone_project.py | 2 | 7917 | import glob
import os
import optparse
import sys
import shutil
import re
import random
import pinax
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
EXCLUDED_PATTERNS = ('.svn','.pyc',)
DEFAULT_PINAX_ROOT = None # fallback to the normal PINAX_ROOT in settings.py.
PINA... | mit | -2,826,627,347,031,284,000 | 35.483871 | 164 | 0.607427 | false |
berteh/synfig-import-labels | pystache/renderer.py | 2 | 16502 | # coding: utf-8
"""
This module provides a Renderer class to render templates.
"""
import sys
from pystache import defaults
from pystache.common import TemplateNotFoundError, MissingTags, is_string
from pystache.context import ContextStack, KeyNotFoundError
from pystache.loader import Loader
from pystache.parsed im... | gpl-2.0 | -5,483,383,119,718,152,000 | 34.796095 | 89 | 0.620713 | false |
realgo/luigi | test/cmdline_test.py | 3 | 10442 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | apache-2.0 | -7,938,638,837,689,764,000 | 38.403774 | 141 | 0.633499 | false |
shastikk/youtube-dl | youtube_dl/extractor/arte.py | 29 | 9937 | # encoding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
compat_urllib_parse_urlparse,
)
from ..utils import (
find_xpath_attr,
unified_strdate,
get_element_by_attribute,
int_or_none,
qualities,
)
# There... | unlicense | 4,908,092,684,769,792,000 | 36.609848 | 140 | 0.53943 | false |
grungi-ankhfire/gbromhack | scripts/jw_signs.py | 1 | 3330 | #!/usr/bin/python
# -*- coding:utf-8 -*-
"""Usage: jw_signs.py extract <romfile> <tablefile> [-o <file>] [-s <address> -e <address>]
Handle the extraction of sign data from the game Jungle Wars (GB).
Options:
-o <file> --output <file> Name of the output file to write [default: signs_output.yaml]
-s <ad... | gpl-3.0 | -1,061,818,902,053,977,200 | 29.833333 | 101 | 0.608108 | false |
XiangyiKong/flask-snippets | decorators/http_access_control.py | 2 | 2108 | # -*- coding: utf-8 -*-
"""
decorators.access_control
~~~~~~~~~~~~~~~~~~~~~~~~~
Decorator for the HTTP Access Control
http://flask.pocoo.org/snippets/56/
"""
from datetime import timedelta
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from functoo... | bsd-3-clause | -2,955,192,279,439,878,000 | 29.550725 | 79 | 0.606736 | false |
zhakui/oryol | fips-generators/MessageProtocol.py | 6 | 15000 | '''
Code generator for message protocol xml files.
'''
import os
import sys
import yaml
import genutil as util
Version = 11
#-------------------------------------------------------------------------------
def writeHeaderTop(f, desc) :
'''
Write header area for the generated C++ header.
'''
f... | mit | 9,010,717,530,135,525,000 | 40.436464 | 133 | 0.472867 | false |
divx118/kboot | fs/kboot/opt/menu/image.py | 2 | 2759 | #! /usr/bin/python
import os, pygame
from menu import *
# ---[ READ THE NOTE - THIS IS NOT PART OF THE EXAMPLE ]------------------------
# NOTE! This function is PURPOSELY not commented since it is not part of this
# example menu system, but is used to load some images to use as buttons for
# demonstration. Please ... | gpl-2.0 | 1,177,759,665,556,089,600 | 45.762712 | 80 | 0.644436 | false |
Pexego/PXGO_00049_2013_PCG | project-addons/history_product_code/history_product_code.py | 1 | 3864 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2004-2014 Pexego Sistemas Informáticos All Rights Reserved
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public Lice... | agpl-3.0 | 4,415,528,005,096,436,000 | 47.898734 | 187 | 0.60497 | false |
robobrobro/ballin-octo-shame | lib/Python-3.4.3/Lib/test/pickletester.py | 8 | 77270 | import copyreg
import io
import pickle
import pickletools
import random
import struct
import sys
import unittest
import weakref
from http.cookies import SimpleCookie
from test.support import (
TestFailed, TESTFN, run_with_locale, no_tracing,
_2G, _4G, bigmemtest,
)
from pickle import bytes_types
# Tests ... | mit | -7,512,519,983,446,190,000 | 33.17249 | 82 | 0.522041 | false |
NicolasHug/Surprise | examples/load_custom_dataset_predefined_folds.py | 1 | 1287 | """
This module descibes how to load a custom dataset when folds (for
cross-validation) are predefined by train and test files.
As a custom dataset we will actually use the movielens-100k dataset, but act as
if it were not built-in.
"""
from __future__ import (absolute_import, division, print_function,
... | bsd-3-clause | 3,786,601,404,914,213,000 | 28.930233 | 79 | 0.710179 | false |
micolous/cfsprinter | src/pagerprinter/plugins/tts.py | 1 | 1808 | """
pyttsx (text to speech)
Copyright 2014 Shane Rees <https://github.com/Shaggs/>
This plug-in is designed to read out a copy of the received turnout
Page for those that maybe in the station or form those coming in
and need details.
it reads only parts of the page. They are RESPOND (job type), Alarm Level,
address, ... | gpl-3.0 | -2,769,014,519,169,296,400 | 29.644068 | 74 | 0.712389 | false |
zhuyongyong/crosswalk-test-suite | webapi/tct-cors-w3c-tests/cors-py/support/cors_allow_origin_asterisk.py | 25 | 2055 | # Copyright (c) 2012 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this list
# of conditions and the following disclaimer.... | bsd-3-clause | 1,334,555,304,954,264,800 | 51.692308 | 82 | 0.686131 | false |
SEA000/uw-empathica | empathica/gluon/contrib/login_methods/dropbox_account.py | 1 | 3886 | #!/usr/bin/env python
# coding: utf8
"""
Dropbox Authentication for web2py
Developed by Massimo Di Pierro (2011)
Same License as Web2py License
"""
# mind here session is dropbox session, not current.session
import os
import re
import urllib
from dropbox import client, rest, session
from gluon import *
fro... | mit | 2,806,511,071,998,391,000 | 34.651376 | 90 | 0.58492 | false |
holgern/pyedflib | pyedflib/highlevel.py | 1 | 31130 |
# -*- coding: utf-8 -*-
# Copyright (c) 2019 - 2020 Simon Kern
# Copyright (c) 2015 - 2020 Holger Nahrstaedt
# Copyright (c) 2011, 2015, Chris Lee-Messer
# Copyright (c) 2016-2017 The pyedflib Developers
# <https://github.com/holgern/pyedflib>
# See LICENSE for license details.
"""
Created on T... | bsd-2-clause | 6,544,950,857,852,173,000 | 34.822785 | 102 | 0.607645 | false |
judy2k/stupid-python-tricks | stupid_metaclass_tricks.py | 1 | 2671 | #!/usr/bin/env python3
class AutoPropertyMeta(type):
def __init__(cls, name, bases, attrd):
# Find all getter methods:
for prop_name in [name[4:] for name in attrd if name.startswith("get_")]:
# Obtain references to the getter and optionally setter methods:
getter =... | unlicense | 3,150,536,984,689,845,000 | 27.351648 | 82 | 0.577686 | false |
sharad/calibre | setup/server.py | 10 | 3817 | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import subprocess, tempfile, os, time, sys, telnetlib
from threading import RLock
from setup import Command
try:
from... | gpl-3.0 | 3,463,302,451,723,760,000 | 28.820313 | 84 | 0.532093 | false |
smaiLee/smarthome | plugins/netio230b/__init__.py | 12 | 3694 | #!/usr/bin/env python3
# vim: set encoding=utf-8 tabstop=4 softtabstop=4 shiftwidth=4 expandtab
#
# Copyright 2013 KNX-User-Forum e.V. http://knx-user-forum.de/
#
# This file is part of SmartHome.py. http://mknx.github.io/smarthome/
#
# SmartHome.py is free software: you can redistribute it and/or modif... | gpl-3.0 | -8,568,121,446,500,732,000 | 31.690265 | 74 | 0.548457 | false |
rven/odoo | addons/mail/wizard/mail_compose_message.py | 1 | 29124 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import ast
import base64
import re
from odoo import _, api, fields, models, tools
from odoo.exceptions import UserError
# main mako-like expression pattern
EXPRESSION_PATTERN = re.compile('(\$\{.+?\})')
def _reopen(... | agpl-3.0 | 5,659,500,227,603,437,000 | 53.437383 | 295 | 0.591608 | false |
voidJeff/String-Jumble | stringjumble.py | 1 | 1776 | """
stringjumble.py
Author: Jeff
Credit: Google
Assignment:
The purpose of this challenge is to gain proficiency with
manipulating lists.
Write and submit a Python program that accepts a string from
the user and prints it back in three different ways:
* With all letters in reverse.
* With words in reverse order, ... | mit | 2,530,514,769,684,547,000 | 22.368421 | 115 | 0.606419 | false |
jqk6/wilddog-doc | deploy.py | 1 | 1145 | #!/usr/bin/env python
import pexpect
import sys
import os
import datetime
time=datetime.datetime.now().strftime('%Y%m%d%H%M%S')
localPath = os.getcwd()
pathSp = localPath.split('/')
localDir = pathSp[len(pathSp)-1]
remote = 'root@10.18.2.200'
remotePath = '/data/www'
remoteDir = 'z.wilddog.com'
tgz = localDir+".tar.g... | mit | -5,607,280,941,589,783,000 | 18.40678 | 65 | 0.654148 | false |
daenamkim/ansible | lib/ansible/module_utils/network/eos/eos.py | 6 | 15689 | #
# This code is part of Ansible, but is an independent component.
#
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complet... | gpl-3.0 | 6,160,052,965,808,525,000 | 32.958874 | 130 | 0.607942 | false |
MissionCriticalCloud/marvin | marvin/cloudstackAPI/updateVPC.py | 1 | 16897 | """Updates a VPC"""
from baseCmd import *
from baseResponse import *
class updateVPCCmd (baseCmd):
typeInfo = {}
def __init__(self):
self.isAsync = "true"
"""the id of the VPC"""
"""Required"""
self.id = None
self.typeInfo['id'] = 'uuid'
"""an optional field, i... | apache-2.0 | 6,767,991,617,231,225,000 | 37.577626 | 134 | 0.585074 | false |
276361270/sqlalchemy | test/orm/test_onetoone.py | 29 | 2244 | import sqlalchemy as sa
from sqlalchemy import testing
from sqlalchemy import Integer, String, ForeignKey
from sqlalchemy.testing.schema import Table, Column
from sqlalchemy.orm import mapper, relationship, create_session
from sqlalchemy.testing import fixtures
class O2OTest(fixtures.MappedTest):
@classmethod
... | mit | -2,577,341,153,112,151,000 | 27.769231 | 85 | 0.53164 | false |
TangXT/GreatCatMOOC | lms/djangoapps/instructor/tests/test_access.py | 5 | 6354 | """
Test instructor.access
"""
from nose.tools import raises
from student.tests.factories import UserFactory
from xmodule.modulestore.tests.factories import CourseFactory
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from django.test.utils import override_settings
from courseware.tests.module... | agpl-3.0 | -771,990,380,837,534,100 | 36.376471 | 89 | 0.656122 | false |
slyphon/pants | src/python/pants/goal/aggregated_timings.py | 15 | 1737 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from colle... | apache-2.0 | -3,060,271,103,790,619,000 | 35.957447 | 94 | 0.663788 | false |
sudheesh001/oh-mainline | mysite/base/feeds.py | 15 | 1473 | # This file is part of OpenHatch.
# Copyright (C) 2011 Jack Grigg
# Copyright (C) 2011 OpenHatch, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, o... | agpl-3.0 | 2,729,559,182,556,996,600 | 39.916667 | 77 | 0.742023 | false |
corona10/Simple-MiniC-Compiler | lib/llvm-3.5.0.src/test/CodeGen/SystemZ/Large/branch-range-12.py | 13 | 4106 | # Test 64-bit COMPARE LOGICAL IMMEDIATE AND BRANCH in cases where the sheer
# number of instructions causes some branches to be out of range.
# RUN: python %s | llc -mtriple=s390x-linux-gnu | FileCheck %s
# Construct:
#
# before0:
# conditional branch to after0
# ...
# beforeN:
# conditional branch to after0
# m... | mit | 4,197,643,926,326,120,400 | 31.330709 | 75 | 0.56113 | false |
adammaikai/OmicsPipe2.0 | omics_pipe/modules/htseq_gencode.py | 2 | 1379 | #!/usr/bin/env python
from omics_pipe.parameters.default_parameters import default_parameters
from omics_pipe.utils import *
p = Bunch(default_parameters)
def htseq_gencode(sample, htseq_flag):
'''Runs htseq-count to get raw count data from alignments.
input:
Aligned.out.sort.bam
output:
... | mit | 4,979,695,044,538,874,000 | 34.384615 | 388 | 0.632342 | false |
bblay/iris | lib/iris/tests/unit/util/test_new_axis.py | 2 | 5122 | # (C) British Crown Copyright 2013, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any later ve... | gpl-3.0 | -8,208,233,724,755,391,000 | 36.661765 | 79 | 0.605232 | false |
bardin-lab/readtagger | readtagger/cluster_base.py | 1 | 1991 | import logging
import os
from itertools import chain
from cached_property import cached_property
from .gff_io import (
sort_gff,
write_gff_cluster
)
from .vcf_io import write_vcf
logger = logging.getLogger(__name__)
class SampleNameMixin(object):
"""Provide a sample name property."""
@cached_proper... | mit | -6,055,043,630,086,990,000 | 30.603175 | 95 | 0.603717 | false |
schlichtanders/pyparsing-2.0.3-OrderedDict | examples/test_bibparse.py | 1 | 7869 | """ Test for bibparse grammar """
from os.path import join as pjoin, dirname
from pyparsingOD import ParseException
from btpyparse import Macro
import btpyparse as bp
from nose.tools import assert_true, assert_false, assert_equal, assert_raises
def test_names():
# check various types of names
... | mit | 1,246,147,764,180,435,000 | 38.353846 | 83 | 0.594993 | false |
nanolearning/edx-platform | common/djangoapps/terrain/stubs/youtube.py | 19 | 5279 | """
Stub implementation of YouTube for acceptance tests.
To start this stub server on its own from Vagrant:
1.) Locally, modify your Vagrantfile so that it contains:
config.vm.network :forwarded_port, guest: 8031, host: 8031
2.) From within Vagrant dev environment do:
cd common/djangoapps/terrain
pyth... | agpl-3.0 | 6,063,858,674,805,412,000 | 35.157534 | 107 | 0.57795 | false |
lucacorsato/feincms-in-a-box | fbox/$PROJECT_NAME/migrate/medialibrary/0001_initial.py | 1 | 3541 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
import feincms.translations
import feincms.extensions
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
... | bsd-3-clause | 6,217,907,947,511,045,000 | 50.318841 | 385 | 0.569896 | false |
aneeshusa/android-quill | jni/libhpdf-2.3.0RC2/if/python/demo/encoding_list.py | 32 | 5633 | ###
## * << Haru Free PDF Library 2.0.0 >> -- encoding_list.c
## *
## * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
## *
## * Permission to use, copy, modify, distribute and sell this software
## * and its documentation for any purpose is hereby granted without fee,
## * provided that t... | gpl-3.0 | -2,405,763,116,444,155,000 | 25.354369 | 80 | 0.54447 | false |
mansonul/events | events/contrib/plugins/form_elements/fields/select_multiple_with_max/fields.py | 1 | 1343 | from django.core.exceptions import ValidationError
from django.forms.fields import MultipleChoiceField
from django.utils.translation import ugettext_lazy as _
__title__ = 'fobi.contrib.plugins.form_elements.fields.' \
'select_multiple_with_max.fields'
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.... | mit | 8,567,387,226,112,469,000 | 40.96875 | 76 | 0.631422 | false |
campagnola/acq4 | acq4/util/LogWidgetTemplate.py | 3 | 9022 | # -*- coding: utf-8 -*-
from __future__ import print_function
# Form implementation generated from reading ui file 'acq4\LogWidgetTemplate.ui'
#
# Created: Fri Jan 03 01:38:54 2014
# by: PyQt4 UI code generator 4.9.6
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
... | mit | -6,845,810,853,680,141,000 | 52.070588 | 106 | 0.708934 | false |
cleophasmashiri/oppia | core/domain/exp_services.py | 6 | 46287 | # coding: utf-8
#
# Copyright 2014 The Oppia 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 requi... | apache-2.0 | 4,618,016,028,863,785,000 | 39.110052 | 79 | 0.66887 | false |
pancentric/django-cms | cms/test_utils/testcases.py | 3 | 14383 | # -*- coding: utf-8 -*-
from cms.models import Page
from cms.test_utils.util.context_managers import (UserLoginContext,
SettingsOverride)
from django.conf import settings
from django.contrib.auth.models import User, AnonymousUser, Permission
from django.contrib.sites.models import Site
from django.core.exceptions i... | bsd-3-clause | 3,114,386,973,136,896,000 | 36.949868 | 107 | 0.614614 | false |
UManPychron/pychron | pychron/hardware/thermo_spectrometer_controller.py | 3 | 1290 | # ===============================================================================
# Copyright 2011 Jake Ross
#
# 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/licens... | apache-2.0 | 339,919,871,310,038,660 | 36.941176 | 81 | 0.562016 | false |
shubhdev/openedx | common/djangoapps/util/module_utils.py | 18 | 1152 | """
Utility library containing operations used/shared by multiple courseware modules
"""
def yield_dynamic_descriptor_descendents(descriptor, module_creator): # pylint: disable=invalid-name
"""
This returns all of the descendants of a descriptor. If the descriptor
has dynamic children, the module will be... | agpl-3.0 | 9,151,138,095,491,664,000 | 36.16129 | 101 | 0.708333 | false |
andresailer/DIRAC | Resources/Computing/SudoComputingElement.py | 7 | 8112 | """ A computing element class that uses sudo
"""
import os
import pwd
import stat
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Utilities import DErrno
from DIRAC.Core.Utilities.Subprocess import shellCall
from... | gpl-3.0 | 7,033,879,609,211,570,000 | 43.327869 | 277 | 0.612303 | false |
ygenc/onlineLDA | onlineldavb_new/build/scipy/scipy/weave/size_check.py | 11 | 9761 | from numpy import ones, ndarray, array, asarray, concatenate, zeros, shape, \
alltrue, equal, divide, arccos, arcsin, arctan, cos, cosh, \
sin, sinh, exp, ceil, floor, fabs, log, log10, sqrt, argmin, \
argmax, argsort, around, absolute, sign, negative, float32
import sys
numericTypes = (int... | gpl-3.0 | 7,040,450,800,996,412,000 | 33.860714 | 87 | 0.529352 | false |
prateekjoshi2013/courses | cs/udacity/cs101-intro-cs/code/lesson6/problem-set/multiplying_rabbits.py | 4 | 1473 | # Rabbits Multiplying
# A (slightly) more realistic model of rabbit multiplication than the Fibonacci
# model, would assume that rabbits eventually die. For this question, some
# rabbits die from month 6 onwards.
#
# Thus, we can model the number of rabbits as:
#
# rabbits(1) = 1 # There is one pair of immature rabbit... | mit | -4,106,670,378,788,214,000 | 31.755556 | 79 | 0.643585 | false |
robocomp/learnbot | learnbot_dsl/guis/AddVar.py | 2 | 2292 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/ivan/robocomp/components/learnbot/learnbot_dsl/guis/AddVar.ui',
# licensing of '/home/ivan/robocomp/components/learnbot/learnbot_dsl/guis/AddVar.ui' applies.
#
# Created: Thu Mar 7 12:39:25 2019
# by: pyside2-uic running on PySi... | gpl-3.0 | -5,714,146,100,032,923,000 | 47.765957 | 123 | 0.724258 | false |
csawyerYumaed/pyOwnCloud | csync/csync.py | 1 | 18028 | #!/usr/bin/env python
import os
import sys
import argparse
import ConfigParser
import ctypes
import re
import pprint
import copy
import getpass
import logging
logging.basicConfig(level=logging.DEBUG, format='%(name)s-%(levelname)s: %(message)s')
try:
import keyring
except:
logging.debug('Keyring not available')
k... | gpl-2.0 | -1,965,994,136,070,533,600 | 34.69901 | 231 | 0.694697 | false |
ProteinDF/QCLObot | qclobot/qcframe.py | 1 | 45730 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2002-2014 The ProteinDF project
# see also AUTHORS and README.
#
# This file is part of ProteinDF.
#
# ProteinDF 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 Softwa... | gpl-3.0 | -4,512,768,778,004,133,400 | 35.072173 | 134 | 0.497177 | false |
JamesMura/sentry | src/sentry/web/api.py | 1 | 21527 | from __future__ import absolute_import, print_function
import base64
import logging
import six
import traceback
from django.conf import settings
from django.contrib.auth.models import AnonymousUser
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.http import HttpResponse, H... | bsd-3-clause | 2,529,860,356,974,594,600 | 37.100885 | 119 | 0.599898 | false |
jk1/intellij-community | python/testData/inspections/PyDataclassInspection/comparisonForUnorderedAttrs.py | 18 | 1056 | import attr
@attr.s(cmp=False, auto_attribs=True)
class A1:
x: int = 0
@attr.s(cmp=False, auto_attribs=True)
class A2:
y: int = 0
print(A1(1) <error descr="'__lt__' not supported between instances of 'A1'"><</error> A1(2))
print(A1(1) <error descr="'__le__' not supported between instances of 'A1'"><=</erro... | apache-2.0 | -2,806,690,299,931,262,500 | 30.088235 | 102 | 0.626894 | false |
kingctan/oppia | core/storage/email/gae_models_test.py | 19 | 6610 | # coding: utf-8
#
# Copyright 2014 The Oppia 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 requi... | apache-2.0 | -7,345,519,225,533,441,000 | 39.552147 | 79 | 0.634191 | false |
trishnaguha/ansible | test/units/modules/network/nxos/test_nxos_config.py | 20 | 8365 | # (c) 2016 Red Hat Inc.
#
# 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 dis... | gpl-3.0 | 3,923,950,364,714,460,700 | 40.825 | 143 | 0.664077 | false |
vidartf/hyperspy | hyperspy/io_plugins/mrc.py | 1 | 7681 | # -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | gpl-3.0 | 6,899,910,529,376,483,000 | 35.061033 | 78 | 0.498633 | false |
guschmue/tensorflow | tensorflow/contrib/distributions/python/kernel_tests/distribution_util_test.py | 11 | 13962 | # 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 | 6,220,895,612,693,028,000 | 33.992481 | 80 | 0.584587 | false |
mimimitm/Responder | servers/SMB.py | 10 | 13579 | #!/usr/bin/env python
# This file is part of Responder
# Original work by Laurent Gaffie - Trustwave Holdings
#
# 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, o... | gpl-3.0 | -8,775,220,457,988,083,000 | 33.290404 | 255 | 0.643199 | false |
DoWhatILove/turtle | game/alien invasion/game_functions.py | 1 | 7001 | import sys
from time import sleep
import pygame
from bullet import Bullet
from alien import Alien
def check_keydown_events(event, ai_settings, screen, ship, bullets):
'''response to keydown presses'''
if event.key == pygame.K_RIGHT:
ship.moving_right = True
elif event.key == pygame.K_LEFT:
... | mit | -1,700,123,483,793,267,700 | 33.318627 | 108 | 0.647479 | false |
psteinb/vigra | vigranumpy/lib/__init__.py | 2 | 62874 | #######################################################################
#
# Copyright 2009-2010 by Ullrich Koethe
#
# This file is part of the VIGRA computer vision library.
# The VIGRA Website is
# http://hci.iwr.uni-heidelberg.de/vigra/
# Please direct questions, bug reports, and contributions... | mit | 9,014,505,248,478,581,000 | 35.941246 | 131 | 0.604701 | false |
mancoast/CPythonPyc_test | fail/312_test_exceptions.py | 1 | 24203 | # Python test set -- part 5, built-in exceptions
import os
import sys
import unittest
import pickle
import weakref
from test.support import (TESTFN, unlink, run_unittest, captured_output,
gc_collect)
# XXX This is not really enough, each *operation* should be tested!
class ExceptionTests(u... | gpl-3.0 | 569,357,798,893,516,600 | 34.803254 | 114 | 0.511011 | false |
matmutant/sl4a | python/src/Demo/tkinter/matt/rubber-line-demo-1.py | 47 | 1919 | from Tkinter import *
class Test(Frame):
def printit(self):
print "hi"
def createWidgets(self):
self.QUIT = Button(self, text='QUIT',
background='red',
foreground='white',
height=3,
... | apache-2.0 | -5,728,300,051,880,559,000 | 36.627451 | 76 | 0.592496 | false |
royalharsh/grpc | src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py | 13 | 8661 | # Copyright 2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | 2,338,188,847,022,997,500 | 47.385475 | 85 | 0.665281 | false |
jjmachan/activityPointsApp | activitypoints/lib/python3.5/site-packages/django/template/defaultfilters.py | 18 | 28032 | """Default variable filters."""
from __future__ import unicode_literals
import random as random_module
import re
import warnings
from decimal import ROUND_HALF_UP, Context, Decimal, InvalidOperation
from functools import wraps
from operator import itemgetter
from pprint import pformat
from django.utils import formats... | mit | 7,703,748,176,919,867,000 | 27.869207 | 102 | 0.612443 | false |
mrry/tensorflow | tensorflow/python/kernel_tests/sparse_add_op_test.py | 20 | 7877 | # 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 | 5,942,183,108,475,274,000 | 34.642534 | 80 | 0.588422 | false |
JaeGyu/PythonEx_1 | flask_corsEx.py | 1 | 3683 | from flask import Flask, request, jsonify
from flask_cors import CORS
import json
import base64
import numpy as np
from PIL import Image
import tensorflow as tf
import array
app = Flask(__name__)
CORS(app)
@app.route("/")
def helloWorld():
return "Hello, cross-origin-world!"
# @app.after_request
# def add_heade... | mit | 327,149,010,969,620,000 | 27.836066 | 83 | 0.613022 | false |
openstack/ironic | ironic/tests/unit/objects/test_bios.py | 1 | 12384 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | 6,987,378,050,527,866,000 | 52.61039 | 79 | 0.591085 | false |
yagop/AGClient | AGClient.py | 1 | 4126 | #!/usr/bin/python
# -*- coding: utf-8 -*-
''' UC3M Moodle (AulaGlobal)
Only allow three webservice methods:
core_webservice_get_site_info
core_enrol_get_users_courses
core_course_get_contents '''
import urllib2
import json
import os
import argparse
import xml.etree.ElementTree as et
domain = 'aulaglobal.uc3m.es'
web... | mit | -6,753,358,924,567,978,000 | 28.898551 | 81 | 0.605914 | false |
xinwu/horizon | openstack_dashboard/dashboards/project/network_topology/tests.py | 17 | 8874 | # Copyright 2012 NEC Corporation
#
# 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 ag... | apache-2.0 | 8,837,398,736,079,561,000 | 40.858491 | 78 | 0.557809 | false |
razziel89/ManipulateAggregates | ManipulateAggregates/bin/manipagg.py | 1 | 54452 | # -*- coding: utf-8 -*-
"""This is the executable for manipulating aggregates.
"""
# This file is part of ManipulateAggregates.
#
# Copyright (C) 2016 by Torsten Sachse
#
# ManipulateAggregates is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published b... | gpl-3.0 | -4,710,836,400,271,232,000 | 34.541775 | 140 | 0.597815 | false |
e-koch/VLA_Lband | 16B/pipeline4.7.1_custom/EVLA_pipe_fake_flagall.py | 1 | 2655 |
'''
On mixed setups, flagall is already run. This defines the variables set
during that script so it doesn't need to be run multiple times.
BUT, if we're re-running the pipeline, the script will check for manual
flagging scripts saved in the appropriate project folder for the track.
'''
import os
import glob
import... | mit | -7,545,904,781,648,430,000 | 27.244681 | 85 | 0.707721 | false |
mikewiebe-ansible/ansible | lib/ansible/modules/network/fortios/fortios_firewall_schedule_onetime.py | 13 | 11113 | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | gpl-3.0 | 3,339,620,378,644,035,000 | 30.216292 | 111 | 0.591919 | false |
fighterCui/L4ReFiascoOC | l4/pkg/python/contrib/Tools/bgen/bgen/bgenModule.py | 48 | 2748 | from bgenOutput import *
from bgenGeneratorGroup import GeneratorGroup
class Module(GeneratorGroup):
def __init__(self, name, prefix = None,
includestuff = None,
finalstuff = None,
initstuff = None,
variablestuff = None,
longname = None):
Ge... | gpl-2.0 | 72,715,581,016,451,730 | 28.234043 | 75 | 0.550582 | false |
MagazinnikIvan/pywinauto | pywinauto/actionlogger.py | 1 | 3306 | # GUI Application automation and testing library
# Copyright (C) 2006-2017 Mark Mc Mahon and Contributors
# https://github.com/pywinauto/pywinauto/graphs/contributors
# http://pywinauto.readthedocs.io/en/latest/credits.html
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# ... | bsd-3-clause | -6,132,762,158,328,259,000 | 32.744898 | 80 | 0.727465 | false |
victordion/cusp-library | performance/spmv/scripts/benchmark.py | 12 | 3818 | #!/usr/bin/env python
import os,csv
device_id = '0' # index of the device to use
binary_filename = '../spmv' # command used to run the tests
output_file = 'benchmark_output.log' # file where results are stored
# The unstructured matrices are available online:
# http://www.nvidia.com/con... | apache-2.0 | 1,764,975,447,773,099,500 | 35.018868 | 109 | 0.535097 | 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.