repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nansencenter/nansat | nansat/mappers/mapper_cmems.py | 1 | 2269 | import datetime
from dateutil.parser import parse
import json
import pythesint as pti
from nansat.vrt import VRT
from nansat.mappers.mapper_netcdf_cf import Mapper as NetcdfCF
from nansat.exceptions import WrongMapperError
# Dictionary with mappings of GCMD metadata keywords:
def get_gcmd_keywords_mapping():
gc... | gpl-3.0 | -1,206,885,545,380,980,200 | 36.196721 | 95 | 0.615249 | false | 3.845763 | false | false | false |
Ibsardar/CompletePygameExample | Enemy.py | 1 | 2014 | """ Enemy.py
by Ibrahim Sardar
"""
#general housekeeping
import pygame, math, Block
from Block import Block
pygame.init()
#window
WINDOWWIDTH = 720
WINDOWHEIGHT = 380
#Player
class Enemy(Block):
#initializer
def __init__(self, color, w, h):
#attributes
pygame.sprite.Sprite.__init__(self)
... | gpl-3.0 | -3,720,997,499,287,396,400 | 24.493671 | 64 | 0.540218 | false | 3.596429 | false | false | false |
dims/keystone | keystone/credential/backends/sql.py | 1 | 4005 | # Copyright 2013 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 agreed to in... | apache-2.0 | 4,342,551,797,732,516,000 | 36.083333 | 75 | 0.640449 | false | 4.06599 | false | false | false |
y0ssar1an/CSS3 | tool/pipe_join.py | 1 | 1814 | import sublime_plugin
class ReversePipeJoinMultilineCommand(sublime_plugin.TextCommand):
def run(self, edit):
"""
BEFORE
blue
red
green
purple
orange
yellow
AFTER
yellow|
red|
purpl... | mit | 4,946,499,500,820,237,000 | 24.194444 | 79 | 0.554576 | false | 4.360577 | false | false | false |
jtvaughan/calligraphy | italicsheets.py | 1 | 11855 | #!/usr/bin/env python3
# Generate Italic calligraphy SVG images and OpenDocument documents according
# to the specified parameters.
#
# Written in 2014 by Jordan Vaughan
#
# To the extent possible under law, the author(s) have dedicated all copyright
# and related and neighboring rights to this software to the public ... | cc0-1.0 | 8,695,819,703,873,783,000 | 62.395722 | 758 | 0.715394 | false | 3.310528 | false | false | false |
savi-dev/quantum | quantum/manager.py | 1 | 2472 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Nicira Networks, 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.apach... | apache-2.0 | -4,585,869,224,872,021,000 | 34.314286 | 78 | 0.677184 | false | 4.189831 | false | false | false |
palankai/xadrpy | src/xadrpy/core/router/base.py | 1 | 8126 | from django.utils import translation
from django.utils.functional import lazy
import conf
from xadrpy.core.i18n.utils import i18n_patterns
from django.conf.urls import patterns
from xadrpy.core.preferences.base import Prefs
from xadrpy.utils.key_string import key_string
from django.core.exceptions import ObjectDoesNotE... | lgpl-3.0 | 5,556,206,777,123,799,000 | 42.688172 | 192 | 0.626754 | false | 3.648855 | false | false | false |
vidartf/hyperspyUI | hyperspyui/widgets/axespicker.py | 1 | 2362 | # -*- coding: utf-8 -*-
# Copyright 2014-2016 The HyperSpyUI developers
#
# This file is part of HyperSpyUI.
#
# HyperSpyUI 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
#... | gpl-3.0 | 5,535,971,034,791,878,000 | 34.253731 | 72 | 0.643946 | false | 3.904132 | false | false | false |
m3g4mInD/migstools.repository | plugin.video.migstools/service.py | 1 | 3587 | # -*- coding: utf-8 -*-
import datetime,xbmc,xbmcplugin,xbmcgui,xbmcaddon,os,re,subprocess,time
from resources.lib.lib import librtmp
librtmp = librtmp()
addon_id = 'plugin.video.migstools'
selfAddon = xbmcaddon.Addon(id=addon_id)
addonfolder = selfAddon.getAddonInfo('path')
if selfAddon.getSetting('auto_update_librt... | gpl-2.0 | -8,874,586,036,012,193,000 | 48.136986 | 116 | 0.704488 | false | 3.042409 | false | false | false |
ros2/system_tests | test_communication/test/publisher_py.py | 1 | 2299 | # Copyright 2016 Open Source Robotics Foundation, 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... | apache-2.0 | 5,775,143,150,396,814,000 | 32.808824 | 92 | 0.666377 | false | 3.857383 | false | false | false |
jptomo/rpython-lang-scheme | rpython/jit/metainterp/test/test_exception.py | 1 | 21108 | import py, sys
from rpython.jit.metainterp.test.support import LLJitMixin
from rpython.rlib.jit import JitDriver, dont_look_inside
from rpython.rlib.rarithmetic import ovfcheck, LONG_BIT, intmask
from rpython.rlib.objectmodel import keepalive_until_here
from rpython.jit.codewriter.policy import StopAtXPolicy
from rpyth... | mit | -1,231,903,914,404,994,600 | 29.197425 | 77 | 0.431495 | false | 4.023637 | true | false | false |
ecolitan/labyrinth | labyrinth.py | 1 | 28035 | # coding: utf8
import sys
import pygame
import os
import pickle
from pygame.locals import *
from random import shuffle
from player import Player
from tile import BoardTile
from graph import Graph
from board import Board
from computerplayer import ComputerPlayer
from startmenu import StartMenu
if not pygame.font: prin... | gpl-3.0 | 2,223,384,486,691,726,000 | 43.2891 | 125 | 0.502764 | false | 3.858382 | false | false | false |
henrydambanemuya/pygames | rockpaperScissors.py | 1 | 1849 | #!/usr/bin/env/ python
#Created: 10/14/2015
#Location: Notre Dame, Indiana
import random
import time
rock = 1
paper = 2
scissors = 3
names = { rock: "Rock", paper: "Paper", scissors: "Scissors" }
rules = { rock: scissors, paper: rock, scissors: paper }
player_score = 0
computer_score = 0
def start():
global human... | mit | -1,898,558,052,467,425,000 | 19.775281 | 74 | 0.641969 | false | 2.683599 | false | false | false |
Muges/audiotsm | audiotsm/base/analysis_synthesis.py | 1 | 12149 | # -*- coding: utf-8 -*-
"""
The :mod:`audiotsm.base.analysis_synthesis` module provides a base class for
real-time analysis-synthesis based audio time-scale modification procedures.
"""
import numpy as np
from audiotsm.utils import (windows, CBuffer, NormalizeBuffer)
from .tsm import TSM
EPSILON = 0.0001
class An... | mit | 5,017,077,185,100,923,000 | 41.327526 | 92 | 0.629239 | false | 4.291063 | false | false | false |
tnwhitwell/lexicon | lexicon/providers/route53.py | 1 | 7649 | """Provide support to Lexicon for AWS Route 53 DNS changes."""
from __future__ import absolute_import
from __future__ import print_function
import logging
from .base import Provider as BaseProvider
try:
import boto3 #optional dep
import botocore #optional dep
except ImportError:
pass
logger = logging.ge... | mit | -451,388,591,785,952,060 | 38.838542 | 160 | 0.561642 | false | 4.406106 | false | false | false |
zbarge/zeex | zeex/core/views/actions/import_file.py | 1 | 6591 | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 28 13:09:50 2016
MIT License
Copyright (c) 2016 Zeke Barge
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 li... | mit | -5,409,763,427,406,437,000 | 38 | 99 | 0.631619 | false | 4.031193 | false | false | false |
CMUSV-VisTrails/WorkflowRecommendation | vistrails/db/versions/v1_0_2/domain/vistrail.py | 1 | 9425 | ###############################################################################
##
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## "Redistribution and use in source and binary forms, with or without
## modification, ... | bsd-3-clause | -1,756,923,200,877,310,700 | 42.837209 | 80 | 0.591194 | false | 4.144679 | false | false | false |
timj/scons | test/Configure/Builder-call.py | 1 | 1983 | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# 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, modify, merge, publish,
... | mit | 4,421,151,058,988,959,000 | 30.47619 | 73 | 0.728694 | false | 3.692737 | true | false | false |
ostera/dasBlog | example/settings.py | 1 | 5512 | # Django settings for dasBlog project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'blog.d... | mit | -5,725,046,136,198,281,000 | 32.822086 | 108 | 0.686321 | false | 3.714286 | false | false | false |
xgds/xgds_video | xgds_video/defaultSettings.py | 1 | 4662 | #__BEGIN_LICENSE__
# Copyright (c) 2015, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All rights reserved.
#
# The xGDS platform is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance ... | apache-2.0 | 8,364,389,222,101,505,000 | 39.894737 | 159 | 0.765337 | false | 2.943182 | false | false | false |
felixboes/hosd | pyradbar/cell_para.py | 1 | 15229 | # The software pyradbar is a bunch of programs to compute the homology of
# Sullivan diagrams.
# Copyright (C) 2015 - 2017 Felix Boes
#
# This file is part of pyradbar.
#
# pyradbar 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... | gpl-3.0 | -7,565,657,045,892,738,000 | 37.55443 | 211 | 0.518287 | false | 3.574883 | false | false | false |
stormi/tsunami | src/secondaires/navigation/commandes/debarquer/__init__.py | 1 | 4216 | # -*-coding:Utf-8 -*
# Copyright (c) 2012 LE GOFF Vincent
# 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
# lis... | bsd-3-clause | 249,564,149,124,858,240 | 41.877551 | 79 | 0.644693 | false | 3.573129 | false | false | false |
mattberjon/asc-cnn | asc/data.py | 1 | 4268 | # -*- coding: utf-8 -*-
""" Data module
This module lets the program to download the data from the server.
"""
import os
import requests
import shutil
import sys
import zipfile
class Data(object):
""" Data collection.
"""
def __init__(self):
pass
def file_to_list(self, filename):
... | gpl-2.0 | 6,296,285,661,598,300,000 | 30.614815 | 79 | 0.5403 | false | 4.280843 | false | false | false |
adregner/server-on-demand | serverondemand/demand.py | 1 | 6113 | import os
import time
import logging
import pyrax
from pyrax.utils import wait_for_build
from paramiko import RSAKey
from serverondemand import get_resource
from serverondemand.xen import instance_id, instance_name
from serverondemand.executor import Executor
logger = logging.getLogger(__name__)
def servers_api(cred... | mit | -7,663,241,427,422,480,000 | 36.048485 | 109 | 0.614265 | false | 3.969481 | false | false | false |
NicoVarg99/daf-recipes | ckan/ckan/ckan/ckan/tests/lib/test_munge.py | 2 | 5466 | # encoding: utf-8
from nose.tools import assert_equal, ok_
from ckan.lib.munge import (munge_filename_legacy, munge_filename, munge_name,
munge_title_to_name, munge_tag)
class TestMungeFilenameLegacy(object):
# (original, expected)
munge_list = [
('unchanged', 'unchanged... | gpl-3.0 | -595,875,377,976,682,900 | 34.960526 | 78 | 0.57007 | false | 3.314736 | true | false | false |
Zerknechterer/pyload | module/plugins/hoster/XFileSharingPro.py | 1 | 1728 | # -*- coding: utf-8 -*-
import re
from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
class XFileSharingPro(XFSHoster):
__name__ = "XFileSharingPro"
__type__ = "hoster"
__version__ = "0.48"
__pattern__ = r'https?://(?:www\.)?(?:\w+\.)*?(?P<DOMAIN>(?:[\d.]+|[\w\-^_]{3,}(?:\... | gpl-3.0 | 905,697,415,289,446,900 | 29.315789 | 145 | 0.582176 | false | 3.285171 | false | false | false |
melkebir/mop | script/getMolecules.py | 1 | 1261 | #!/usr/bin/python
import urllib2
import sys
def getTopology(mol_id):
l = urllib2.urlopen("http://compbio.chemistry.uq.edu.au/atb/molecule.py?molid={0}&outputType=top&atbVersion=v2Top&ffVersion=Gromos#files".format(mol_id)).read()
qm0 = l.find("qm0") != -1
# fetch mtb file
f = open("{0}.mtb".format(mol_id), "w"... | lgpl-2.1 | 6,990,866,953,948,925,000 | 39.677419 | 162 | 0.66931 | false | 2.443798 | false | false | false |
Juniper/euca2ools | euca2ools/commands/iam/listaccesskeys.py | 1 | 2299 | # Copyright 2009-2013 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software 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 ... | bsd-2-clause | 8,375,670,962,286,837,000 | 43.211538 | 74 | 0.728143 | false | 4.395793 | false | false | false |
BillArnold/barnoldjg | jumpgate/common/config.py | 1 | 3194 | from oslo.config import cfg
from SoftLayer import API_PUBLIC_ENDPOINT
FILE_OPTIONS = {
None: [
cfg.ListOpt('enabled_services', default=['identity',
'compute',
'image',
... | mit | 3,500,011,536,402,066,400 | 40.480519 | 79 | 0.557295 | false | 4.224868 | false | false | false |
nilouco/dpAutoRigSystem | dpAutoRigSystem/Modules/dpFkLine.py | 1 | 16973 | # importing libraries:
import maya.cmds as cmds
from Library import dpUtils as utils
import dpBaseClass as Base
import dpLayoutClass as Layout
# global variables to this module:
CLASS_NAME = "FkLine"
TITLE = "m001_fkLine"
DESCRIPTION = "m002_fkLineDesc"
ICON = "/Icons/dp_fkLine.png"
class FkLine(Base.StartClas... | gpl-2.0 | 8,853,439,726,948,687,000 | 58.139373 | 171 | 0.585754 | false | 3.742668 | false | false | false |
pogaku9/aws-datalake-quickstart-looker-isv-integration | scripts/lambdas/writetoES/requests/auth.py | 1 | 8323 | # -*- coding: utf-8 -*-
"""
requests.auth
~~~~~~~~~~~~~
This module contains the authentication handlers for Requests.
"""
import os
import re
import time
import hashlib
import threading
from base64 import b64encode
from .compat import urlparse, str
from .cookies import extract_cookies_to_jar
fr... | apache-2.0 | 7,563,665,243,914,489,000 | 31.971429 | 88 | 0.547639 | false | 3.916706 | false | false | false |
leapcode/bitmask-dev | src/leap/bitmask/core/dummy.py | 1 | 3074 | # -*- coding: utf-8 -*-
# dummy.py
# Copyright (C) 2016 LEAP Encryption Acess Project
#
# 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... | gpl-3.0 | -8,960,577,010,585,197,000 | 26.446429 | 71 | 0.634678 | false | 3.896071 | false | false | false |
jrieke/timeseries-rnn | predict.py | 1 | 2936 | import sys
import os
import numpy as np
data_dir = sys.argv[1]
filenames = os.listdir(data_dir)
timeseries = []
preprocessing = np.load('model/preprocessing.npz')
timeseries_means = preprocessing['means']
timeseries_stds = preprocessing['stds']
change = preprocessing['change']
print "Reading files from", data_dir
... | mit | 4,147,091,289,783,517,700 | 30.913043 | 128 | 0.706744 | false | 3.378596 | false | false | false |
bmazin/ARCONS-pipeline | examples/Pal2012-crab/checkGRP.py | 1 | 1393 | import numpy as np
import matplotlib.pyplot as plt
import sys
import os
sys.stdout.flush()
np.set_printoptions(precision=11)
path = '/Scratch/dataProcessing/crabData/'
path2 = '/Scratch/dataProcessing/crabData2/'
labels='BTOA Noise_Offset Noise_RMS Max_P2 Mean_P2 Index_P2 TestMax_P2 TestMean_P2 TestIndex_P2'
labels = ... | gpl-2.0 | -3,355,636,388,960,353,000 | 36.648649 | 109 | 0.750179 | false | 2.594041 | false | false | false |
unyth/random | Utility/move_dup.py | 1 | 1336 | #!/usr/bin/python3
from pathlib import Path
import hashlib
import sys
def enumerate_files(path):
if not path.is_dir():
return []
else:
return [x for x in path.iterdir() if x.is_file()]
def create_hash(file_path, hash=hashlib.sha256):
bytes = file_path.read_bytes()
hashed = hash(bytes).hexdigest()
return h... | mit | -7,886,654,772,355,139,000 | 20.548387 | 63 | 0.665419 | false | 2.766046 | false | false | false |
awsdocs/aws-doc-sdk-examples | python/example_code/sts/sts_temporary_credentials/assume_role.py | 1 | 6872 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""
Purpose
Shows how to assume a role using AWS Security Token Service (AWS STS) credentials.
"""
import json
import time
import sys
import boto3
from botocore.exceptions import ClientError
def progress_bar(... | apache-2.0 | -2,178,205,073,952,914,400 | 32.852217 | 87 | 0.619907 | false | 3.986079 | false | false | false |
delaere/eedbsync | eedomus.py | 1 | 13721 | #!/bin/env python
import io
import json
import urllib.request, urllib.parse, urllib.error
import urllib.request, urllib.error, urllib.parse
import warnings
from datetime import datetime
from dateutil.relativedelta import relativedelta
import time
# eeDomus Python API. From http://doc.eedomus.com/en/index.php/API_eed... | gpl-2.0 | 1,886,124,207,273,383,400 | 49.260073 | 148 | 0.516508 | false | 4.156619 | false | false | false |
miracle2k/k8s-snapshots | k8s_snapshots/kube.py | 1 | 5737 | import asyncio
import threading
from typing import (Optional, Iterable, AsyncGenerator, TypeVar, Type,
NamedTuple, Callable)
import pykube
import structlog
from aiochannel import Channel
from k8s_snapshots.context import Context
_logger = structlog.get_logger(__name__)
Resource = TypeVar(
'R... | bsd-2-clause | 5,373,276,606,000,399,000 | 30.696133 | 79 | 0.586195 | false | 4.313534 | false | false | false |
blegloannec/MaSiNes | v1.0/xml2sm2d.py | 1 | 1657 | #!/usr/bin/python
import sys
from xml.dom.minidom import parse
style = ''
def parseSignals(dom):
sigs = dom.getElementsByTagName('meta_signal')
print len(sigs)
for s in sigs:
c = s.getElementsByTagName('color')
if len(c)>0:
c0 = int(c[0].getAttribute('rgb'))
b = c0%... | gpl-3.0 | -5,229,388,686,874,900,000 | 28.070175 | 136 | 0.546168 | false | 3.533049 | false | false | false |
opencord/voltha | tests/itests/orch_environment.py | 1 | 4893 | # Copyright 2017-present Open Networking 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 agr... | apache-2.0 | 1,010,886,240,950,981,400 | 39.775 | 104 | 0.636828 | false | 4.067332 | false | false | false |
whtsky/catsup-docs-zh | catsup/reader/markdown.py | 1 | 1631 | import misaka as m
from houdini import escape_html
from pygments import highlight
from pygments.formatters import HtmlFormatter
from pygments.lexers import get_lexer_by_name
from pygments.util import ClassNotFound
from catsup.models import Post
from catsup.utils import ObjectDict
from catsup.reader.utils import spli... | mit | 6,667,948,671,625,733,000 | 29.203704 | 62 | 0.589209 | false | 3.537961 | false | false | false |
bromjiri/Presto | crawler/manual/news/missed_journals/google_links.py | 1 | 2386 | import re
# input
date = "2016-11-11"
output_file = date + "/links.txt"
write_output = open(output_file, "a")
# bbc
journal = "bbc"
for i in range(1, 4):
file = date + "/" + journal + "/" + journal + str(i) + ".html"
print(file)
with open(file, "r") as f:
for line in f:
# print(line)... | mit | 1,252,533,692,945,599,500 | 25.808989 | 85 | 0.472758 | false | 3.43804 | false | false | false |
ddico/odoo | addons/crm_iap_lead_enrich/models/iap_enrich_api.py | 1 | 1515 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, api
from odoo.addons import iap
class IapEnrichAPI(models.AbstractModel):
_name = 'iap.enrich.api'
_description = 'IAP Lead Enrichment API'
_DEFAULT_ENDPOINT = 'https://iap-services... | agpl-3.0 | 2,809,514,818,874,948,000 | 37.846154 | 110 | 0.622442 | false | 3.548009 | false | false | false |
Countbasic/repository.mediabox.storage | plugin.video.cineto/old.py | 1 | 2585 | # -*- coding: utf-8 -*-
import urllib, urllib2, json
#import urlresolver
import os, re
#SEP = os.sep
#thisPlugin = int(sys.argv[1])
#dialog = xbmcgui.Dialog()
#addonInfo = xbmcaddon.Addon()
#hosterList = xbmcplugin.getSetting(thisPlugin,"hosterlist").lower()
#serienOrdner = xbmcplugin.getSetting(thisPlugin, 'seriesp... | gpl-2.0 | -8,426,257,187,114,844,000 | 27.395604 | 237 | 0.67712 | false | 2.718947 | false | false | false |
kg-bot/SupyBot | plugins/BitMine/__init__.py | 1 | 2793 | ###
# Copyright (c) 2014, KG-Bot
# 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 condition... | gpl-3.0 | -8,937,536,679,807,134,000 | 38.478261 | 79 | 0.741497 | false | 3.995708 | false | false | false |
sosterwalder/bti7501p | test.py | 1 | 1841 | #!/usr/bin/env python
# test.py module
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Thi Thuy-Duc Dao (daodt1@bfh.ch), Sven Osterwalder (ostes2@bfh.ch)
#
# 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... | mit | -4,901,519,770,615,764,000 | 33.735849 | 87 | 0.70994 | false | 3.892178 | false | false | false |
kubeflow/pipelines | samples/contrib/seldon/mabdeploy_seldon.py | 1 | 5400 | # Copyright 2019 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | apache-2.0 | 5,044,012,995,678,218,000 | 34.526316 | 135 | 0.367963 | false | 5.247813 | false | false | false |
tuqc/lyman | lyman/workflows/archive/restingstate.py | 1 | 44473 | """
Preprocessing for resting-state anaylsis
See the docstring for get_preproc_workflow() for more information.
"""
import nipype.interfaces.io as io
import nipype.interfaces.fsl as fsl
import nipype.interfaces.freesurfer as fs
import nipype.interfaces.utility as util
import nipype.pipeline.engine as pe ... | bsd-3-clause | 3,387,645,378,131,825,700 | 43.12004 | 104 | 0.507117 | false | 4.112539 | false | false | false |
michaelhkw/incubator-impala | testdata/common/widetable.py | 1 | 4637 | #!/usr/bin/env impala-python
#
# 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 (... | apache-2.0 | -2,656,613,311,212,053,000 | 33.348148 | 90 | 0.687082 | false | 3.636863 | false | false | false |
fbradyirl/home-assistant | homeassistant/components/arcam_fmj/media_player.py | 1 | 9539 | """Arcam media player."""
import logging
from typing import Optional
from arcam.fmj import DecodeMode2CH, DecodeModeMCH, IncomingAudioFormat, SourceCodes
from arcam.fmj.state import State
from homeassistant import config_entries
from homeassistant.core import callback
from homeassistant.components.media_player import... | apache-2.0 | -5,773,235,553,216,556,000 | 28.350769 | 88 | 0.579621 | false | 4.124081 | true | false | false |
GreenJoey/My-Simple-Programs | PluralSight/Advanced Python/singledispatch-example.py | 1 | 1395 | # Example of function overloading with functools.singledispatch
from functools import singledispatch
class Shape:
def __init__(self, solid):
self.solid = solid
class Circle(Shape):
def __init__(self, center, radius, *args, **kwargs):
super().__init__(*args, **kwargs)
self.center = ce... | gpl-2.0 | 5,108,580,094,484,702,000 | 22.25 | 72 | 0.582796 | false | 3.282353 | false | false | false |
chtyim/infrastructure-puppet | modules/gitwcsub/files/app/gitwcsub.py | 1 | 11049 | from threading import Thread
import json, urllib.request, urllib.parse, configparser, re, base64, sys, os, time, atexit, signal, logging, subprocess, collections, argparse, grp, pwd, shutil
from threading import Lock
import threading;
from collections import namedtuple
import random, atexit, signal, inspect
import time... | apache-2.0 | -3,663,993,110,681,628,700 | 30.75 | 189 | 0.556883 | false | 3.832466 | true | false | false |
ErDmKo/trade-bot | server/trade/VolumeStrategy.py | 1 | 5077 | from decimal import Decimal as D
import sqlalchemy as sa
import logging
from sqlalchemy.sql import func
from sqlalchemy.dialects.postgresql import JSONB
from .ThreadStrategy import ThreadStrategy, OrderThread
class VolumeThread(OrderThread):
FLAG_NAME = 'is_exceed'
logger = logging.getLogger(__name__)
as... | mit | 3,655,425,469,115,282,400 | 33.773973 | 106 | 0.488871 | false | 4.087762 | false | false | false |
laborautonomo/opps | opps/contrib/multisite/middleware.py | 1 | 1063 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.contrib.sites.models import Site
from django.conf import settings
class DynamicSiteMiddleware(object):
def hosting_parse(self, hosting):
"""
Returns ``(host, port)`` for ``hosting`` of the form ``'host:port'``.
If hosting does not... | mit | 8,872,985,323,634,666,000 | 30.264706 | 77 | 0.60207 | false | 3.908088 | false | false | false |
m4rx9/rna-pdb-tools | rna_tools/tools/mq/RNAkb/RNAkb.py | 1 | 14424 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This module contains functions for computing RNAkb potential
It seems that this is impossible to run RNAkb in full atom mode. So this works only in 5 pt (5 points/atom per residue) mode.
https://gromacs.bioexcel.eu/t/fatal-error-an-input-file-contains-a-line-longer-tha... | mit | -780,447,433,962,358,700 | 40.930233 | 206 | 0.506656 | false | 3.473988 | false | false | false |
tensorflow/probability | tensorflow_probability/python/bijectors/power_transform.py | 1 | 4695 | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 | 1,945,442,529,205,336,000 | 34.839695 | 78 | 0.630884 | false | 3.673709 | false | false | false |
wmayner/pyphi | test/example_networks.py | 1 | 22173 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# example_networks.py
import numpy as np
import pyphi
from pyphi import utils
from pyphi.macro import Blackbox, MacroSubsystem
from pyphi.network import Network
from pyphi.subsystem import Subsystem
# TODO pass just the subsystem (contains a reference to the network)
s... | gpl-3.0 | -6,587,519,599,076,665,000 | 28.213439 | 137 | 0.345736 | false | 2.170207 | false | false | false |
pbsugg/http2-frame-visualizer | main.py | 1 | 1721 | from flask import Flask, render_template, request
import json
from celery import Celery, result
from flask import jsonify, url_for
import time
from messageHandler import messageHandler
import os
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# not sure if this is best practice for importing from other direct... | mit | 5,611,212,667,102,498,000 | 26.31746 | 110 | 0.671121 | false | 3.37451 | false | false | false |
andersbll/deeppy | deeppy/siamese/siamese_network.py | 1 | 3086 | from copy import copy
import numpy as np
from ..base import Model, CollectionMixin, ParamMixin
from ..feed import Feed
class SiameseNetwork(Model, CollectionMixin):
def __init__(self, siamese_layers, loss):
self.layers = siamese_layers
self.loss = loss
# Create second array of layers
... | mit | -8,789,797,881,680,834,000 | 34.471264 | 73 | 0.57453 | false | 3.617819 | false | false | false |
gregoil/rotest | tests/api/utils.py | 1 | 1397 | """API test utilities."""
# pylint: disable=too-many-arguments
from __future__ import absolute_import
import os
import json
from six.moves import urllib
from attrdict import AttrDict
BASEPATH = "/rotest/api/"
def request(client, path, method="post",
json_data=None,
params=None,
... | mit | -7,674,294,201,756,325,000 | 30.044444 | 79 | 0.588404 | false | 4.311728 | false | false | false |
diegocortassa/TACTIC | src/bin/upgrade_db.py | 1 | 5684 | ###########################################################
#
# Copyright (c) 2005, Southpaw Technology
# All Rights Reserved
#
# PROPRIETARY INFORMATION. This software is proprietary to
# Southpaw Technology, and is not to be reproduced, transmitted,
# or disclosed in any way without written permi... | epl-1.0 | -9,168,802,742,045,930,000 | 31.48 | 266 | 0.549261 | false | 3.817327 | false | false | false |
edx/edx-enterprise | tests/test_enterprise/api_client/test_lms.py | 1 | 23017 | # -*- coding: utf-8 -*-
"""
Tests for enterprise.api_client.lms.py
"""
import json
import time
import mock
import requests
import responses
from pytest import raises
from slumber.exceptions import HttpNotFoundError
from enterprise.api_client import lms as lms_api
from enterprise.utils import NotConnectedToOpenEdX
U... | agpl-3.0 | 887,742,961,472,238,800 | 31.327247 | 113 | 0.629578 | false | 3.552554 | true | false | false |
kostya9/KPI.RelationalDatabases | Lab2/flights/api/views.py | 1 | 9097 | from django.views.decorators.csrf import csrf_exempt
from django.utils.decorators import method_decorator
from django.shortcuts import render
from django.http import HttpResponse, HttpRequest, JsonResponse
from api.repositories.pilots import Pilots
from api.repositories.airplanes import Airplanes
from api.repositories... | mit | 3,134,822,456,788,998,000 | 36.286885 | 99 | 0.644388 | false | 3.995169 | false | false | false |
Royal-Society-of-New-Zealand/NZ-ORCID-Hub | orcid_api_v3/models/subtitle_v20.py | 1 | 3031 | # coding: utf-8
"""
ORCID Member
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: Latest
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import si... | mit | 808,889,895,842,084,200 | 26.306306 | 119 | 0.534147 | false | 4.152055 | false | false | false |
strets123/cbh_chembl_ws_extension | cbh_chembl_ws_extension/parser.py | 1 | 7084 | # -*- coding: utf-8 -*-
import dateutil
import jsonpatch
import requests
'''
A parser object to work with our custom field configs and uncurated fields
'''
class CovertDateOperation(jsonpatch.PatchOperation):
"""Ensures that a data point is formatted correctly for a date field"""
def apply(self, obj):
... | mit | 5,783,682,216,675,862,000 | 33.556098 | 123 | 0.498024 | false | 4.50923 | false | false | false |
reychil/project-alpha-1 | code/utils/functions/noise_correction.py | 1 | 1860 | # voxel underlying noise function
import numpy as np
from glm import glm, glm_diagnostics, glm_multiple
# mean_underlying_noise
def mean_underlying_noise(data_4d):
""" takes average of data_4d across the 4th dimension (time)
Parameters:
-----------
data_4d: 4 dimensional np.array
(with 4th dimension the one t... | bsd-3-clause | 5,677,746,160,416,243,000 | 22.544304 | 85 | 0.687097 | false | 2.759644 | false | false | false |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/sympy/solvers/pde.py | 1 | 35678 | """
This module contains pdsolve() and different helper functions that it
uses. It is heavily inspired by the ode module and hence the basic
infrastructure remains the same.
**Functions in this module**
These are the user functions in this module:
- pdsolve() - Solves PDE's
- classify_pde() - Classif... | gpl-3.0 | 3,491,721,992,931,568,000 | 34.678 | 133 | 0.542435 | false | 3.633938 | false | false | false |
RobinQuetin/CAIRIS-web | cairis/cairis/data/EnvironmentDAO.py | 1 | 10038 | import ARM
from CairisHTTPError import ARMHTTPError, MalformedJSONHTTPError, ObjectNotFoundHTTPError, MissingParameterHTTPError
from Environment import Environment
from EnvironmentParameters import EnvironmentParameters
from data.CairisDAO import CairisDAO
from tools.JsonConverter import json_serialize, json_deserializ... | apache-2.0 | 2,168,218,299,727,117,600 | 35.772894 | 116 | 0.60779 | false | 4.63649 | false | false | false |
marinaKollmitz/lamor15 | behaviors/behavior_tell_random_joke/src/behavior_tell_random_joke/tell_random_joke_sm.py | 1 | 8575 | #!/usr/bin/env python
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] tags will be kept. ... | mit | -9,040,109,461,740,804,000 | 38.334862 | 152 | 0.641749 | false | 3.265423 | false | false | false |
tstamler/dist-sys-exercises | lec-3/discovery/prototypes/dollarsYen.py | 1 | 2769 | #!/usr/bin/env python
#******************************************************************************
#
# CS 6421 - Simple Conversion
# Execution: python dollarsYen.py portnum
# Author: Tim Stamler
# Group: Malcolm Goldiner
#
#******************************************************************************
impor... | mit | 6,326,521,191,130,026,000 | 27.854167 | 112 | 0.628747 | false | 3.496212 | false | false | false |
EliotBerriot/savior | src/connectors/filesystem.py | 1 | 2911 | # Copyright (C) 2013 Eliot Berriot <contact@eliotberriot.com>
#
# This file is part of savior.
#
# Savior 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) ... | gpl-3.0 | 5,422,030,777,813,020,000 | 36.805195 | 147 | 0.585022 | false | 4.129078 | false | false | false |
brando56894/Dungeon-Quest | monsters.py | 1 | 2847 | #!/usr/bin/python2
#
#~~monsters.py~~
from time import sleep
#from random import randint
import actions
class CreateMonster(object):
def __init__(self, health, damage_dealt, name):
self.health = health
self.damage_dealt = damage_dealt
self.name = name
def __str__(self):
... | gpl-3.0 | -4,163,014,856,939,243,000 | 36.96 | 109 | 0.532842 | false | 4.126087 | false | false | false |
praekelt/ndoh-control | subscription/management/commands/reset_status.py | 1 | 3754 | from django.core.management.base import BaseCommand
from optparse import make_option
from subscription.models import Subscription
SUBSCRIPTION_STANDARD = 1 # less than week 32 when reg
SUBSCRIPTION_LATER = 2 # 32-35 when reg
SUBSCRIPTION_ACCELERATED = 3 # over 35 weeks when reg
class Command(BaseCommand):
h... | bsd-3-clause | 2,444,212,438,527,711,700 | 39.804348 | 77 | 0.539425 | false | 4.782166 | false | false | false |
d-qoi/TelegramBots | FeedbackBot/FeedbackBot.py | 1 | 33624 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# FeedbackBot
# Created by Alexander Hirschfeld
import argparse
import logging
from pymongo import MongoClient
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, TelegramError
from telegram.ext import Updater, CommandHandler, Filters, MessageHandler, Callba... | lgpl-3.0 | 6,207,658,139,992,743,000 | 45.635229 | 197 | 0.555496 | false | 4.172748 | false | false | false |
GoogleCloudPlatform/PerfKitBenchmarker | tests/providers/aws/aws_disk_test.py | 1 | 3154 | # Copyright 2018 PerfKitBenchmarker 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 appli... | apache-2.0 | 867,494,640,976,264,400 | 36.105882 | 76 | 0.735574 | false | 3.473568 | true | false | false |
ersoma/segen-resizer | resizer-base.py | 1 | 3359 | #! /usr/bin/env python3
'''
This script resizes the given image to multiple sizes and saves them to a dictionary
This script is implemented with argparse.
Usage: resizer-base.py [-h] -f SOURCE FILE -o OUTPUT DIRECTORY -s SIZE LIST -p POSTFIX [-n NEW NAME]
Arguments
SOURCE FILE must be a valid image file in a format p... | mit | 1,813,419,044,666,009,300 | 41 | 146 | 0.726704 | false | 3.558263 | false | false | false |
kyleabeauchamp/pysam | pysam/__init__.py | 2 | 3235 | import os
import sys
import sysconfig
from pysam.libchtslib import *
from pysam.libcsamtools import *
from pysam.libcbcftools import *
from pysam.libcutils import *
import pysam.libcutils as libcutils
import pysam.libcfaidx as libcfaidx
from pysam.libcfaidx import *
import pysam.libctabix as libctabix
from pysam.libct... | mit | 3,680,061,237,483,363,000 | 31.35 | 74 | 0.665533 | false | 3.419662 | false | false | false |
mavlyutovrus/interval_index | python/query_overhead.py | 1 | 4638 | import random
import matplotlib.pyplot as plt
from numpy.random import normal
import numpy as np
import math
import random
"""
k = 1024
values = [(chi, k / chi, k % chi) for chi in xrange(1, 100)]
for index in xrange(1, len(values)):
prev_chi, prev_d, prev_r = values[index - 1]
chi, d, r = values[index]
de... | apache-2.0 | -7,970,741,205,007,015,000 | 29.123377 | 111 | 0.578913 | false | 3.56495 | false | false | false |
reflectometry/direfl | xtras/setup_app.py | 1 | 1115 | # This program is in the public domain.
from distutils.core import setup
import py2app
## \file
# \brief Setup file for constructing OS X applications. Run using:
#
# % python setup-app.py py2app
#Should be combined with setup.py which understands py2exe so that
#it is easier to keep names and versions consis... | mit | -163,103,450,608,594,980 | 22.723404 | 68 | 0.668161 | false | 3.279412 | false | false | false |
zynga/jasy | jasy/js/tokenize/Tokenizer.py | 1 | 17578 | #
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
#
#
# License: MPL 1.1/GPL 2.0/LGPL 2.1
# Authors:
# - Brendan Eich <brendan@mozilla.org> (Original JavaScript) (2004-2010)
# - Sebastian Werner <info@sebastian-werner.net> (Python Port) (2010)
#
import re, copy
import jasy.js.tokenize.Lang as La... | mit | 3,494,146,729,414,200,300 | 27.958814 | 135 | 0.449141 | false | 4.414365 | false | false | false |
martyngigg/pyqt-msvc | pyuic/uic/properties.py | 1 | 18137 | #############################################################################
##
## Copyright (C) 2015 Riverbank Computing Limited.
## Copyright (C) 2006 Thorsten Marek.
## All right reserved.
##
## This file is part of PyQt.
##
## You may use this file under the terms of the GPL v2 or the revised BSD
## license as fol... | gpl-3.0 | -2,549,229,824,512,994,300 | 33.028143 | 103 | 0.586701 | false | 4.107111 | false | false | false |
bharadwajyarlagadda/pydash | pydash/collections.py | 1 | 33626 | # -*- coding: utf-8 -*-
"""Functions that operate on lists and dicts.
.. versionadded:: 1.0.0
"""
from __future__ import absolute_import
from functools import partial
import random
import pydash as pyd
from .helpers import itercallback, iterator, callit, getargcount, NoValue
from ._compat import cmp_to_key, _cmp
... | mit | -1,121,789,430,813,577,100 | 26.517185 | 79 | 0.566556 | false | 3.918201 | false | false | false |
i32ropie/lol | plugins/lang_new.py | 1 | 2321 | # -*- coding: utf-8 -*-
from config import *
print(Color(
'{autored}[{/red}{autoyellow}+{/yellow}{autored}]{/red} {autocyan} lang_new.py importado.{/cyan}'))
markup = telebot.types.InlineKeyboardMarkup()
markup.add(telebot.types.InlineKeyboardButton('ESPAÑOL', callback_data='lang es'),
telebot.types.Inl... | gpl-2.0 | 2,616,025,435,017,070,600 | 37.333333 | 104 | 0.64913 | false | 3.103914 | false | false | false |
citrix-openstack-build/cinder | cinder/volume/drivers/emc/emc_smis_common.py | 1 | 61252 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 EMC Corporation.
# Copyright (c) 2012 OpenStack LLC.
# 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 Lic... | apache-2.0 | 2,650,844,690,640,599,600 | 42.348903 | 79 | 0.527362 | false | 4.6396 | true | false | false |
fpeder/espresso | toEspresso.py | 1 | 3373 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""""
Usage: toEspresso.py <data> <desc> <out>
Options:
-h --help show this message
"""
import os
import numpy as np
import struct
import json
INPUT = 0
DENSE = 1
BNORM = 2
CONV = 3
POOL = 4
NUM = 1<<4
DATA = 2<<4
def read_param(params, n):
return params['arr_... | apache-2.0 | 6,655,216,809,341,824,000 | 28.330435 | 67 | 0.404981 | false | 3.543067 | false | false | false |
cloudify-cosmo/tosca-vcloud-plugin | tests/unittests/test_mock_network_plugin_floatingip.py | 1 | 19272 | # Copyright (c) 2014-2020 Cloudify Platform Ltd. 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 b... | apache-2.0 | -3,009,354,532,006,523,400 | 35.708571 | 79 | 0.549917 | false | 3.901215 | true | false | false |
gepd/uPiotMicroPythonTool | commands/remove_file.py | 1 | 1774 | # This file is part of the uPiot project, https://github.com/gepd/upiot/
#
# MIT License
#
# Copyright (c) 2017 GEPD
#
# 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, inc... | mit | 2,041,618,752,023,150,600 | 36.744681 | 79 | 0.741263 | false | 4.164319 | false | false | false |
jkonecki/autorest | ClientRuntimes/Python/msrest/msrest/serialization.py | 1 | 35957 | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""),... | mit | -1,115,263,943,735,985,200 | 34.955 | 79 | 0.559839 | false | 4.510726 | false | false | false |
antoinecarme/sklearn2sql_heroku | tests/databases/test_client_bad_model.py | 1 | 1084 |
import pickle, json, requests, base64
from sklearn import datasets
iris = datasets.load_iris()
X = iris.data
Y = iris.target
# print(iris.DESCR)
from sklearn.neural_network import MLPClassifier
clf = MLPClassifier()
clf.fit(X, Y)
def test_ws_sql_gen(pickle_data):
WS_URL="https://sklearn2sql.herokuapp.com/mo... | bsd-3-clause | 7,182,536,568,260,156,000 | 23.636364 | 77 | 0.651292 | false | 3.044944 | false | false | false |
dreamibor/Algorithms-and-Data-Structures-Using-Python | data/Python/linked_list.py | 1 | 1241 | class Node():
"""docstring for Node"""
def __init__(self, cargo, next=None):
self.cargo = cargo
self.next = next
def __str__(self):
return str(self.cargo)
class LinkedList():
def __init__(self, head=None):
self.head = None
def is_empty(self):
return self.he... | gpl-3.0 | 4,860,548,585,998,491,000 | 21.160714 | 47 | 0.468171 | false | 3.927215 | false | false | false |
Hackatong2017Geriatricos/backend | spiders/paginasamarillas_geriatricos.py | 1 | 3014 | # -*- coding: utf-8 -*-
import scrapy
import re
class PaginasamarillasGeriatricosSpider(scrapy.Spider):
name = "paginasamarillas_geriatricos"
allowed_domains = ["www.paginasamarillas.com.ar"]
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like ... | apache-2.0 | -6,430,348,011,041,318,000 | 46.09375 | 161 | 0.51493 | false | 3.67561 | false | false | false |
bvcms/bvcms | CmsWeb/Lib/xml/etree/ElementTree.py | 1 | 57269 | #
# ElementTree
# $Id: ElementTree.py 3440 2008-07-18 14:45:01Z fredrik $
#
# light-weight XML support for Python 2.3 and later.
#
# history (since 1.2.6):
# 2005-11-12 fl added tostringlist/fromstringlist helpers
# 2006-07-05 fl merged in selected changes from the 1.3 sandbox
# 2006-07-05 fl removed support for ... | gpl-2.0 | -2,163,935,340,630,458,600 | 32.866943 | 90 | 0.586478 | false | 4.233681 | false | false | false |
la0rg/Genum | GenumCore/vendor/requests/packages/chardet/langcyrillicmodel.py | 1 | 23561 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... | mit | -3,330,782,189,359,603,000 | 70.613982 | 99 | 0.438139 | false | 1.857244 | false | false | false |
VioletRed/script.module.urlresolver | lib/urlresolver/plugins/vidzur.py | 1 | 2832 | """
urlresolver XBMC Addon
Copyright (C) 2011 t0mm0
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.
... | gpl-2.0 | 217,925,276,543,311,740 | 38.887324 | 98 | 0.632768 | false | 3.500618 | false | false | false |
jhseu/tensorflow | tensorflow/python/autograph/converters/control_flow_deprecated_py2.py | 1 | 22891 | # 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 | -8,749,444,952,947,147,000 | 36.587849 | 80 | 0.629767 | false | 3.761873 | true | false | false |
prefetchnta/questlab | bin/x64bin/python/37/Lib/asyncio/queues.py | 1 | 8248 | __all__ = ('Queue', 'PriorityQueue', 'LifoQueue', 'QueueFull', 'QueueEmpty')
import collections
import heapq
from . import events
from . import locks
class QueueEmpty(Exception):
"""Raised when Queue.get_nowait() is called on an empty Queue."""
pass
class QueueFull(Exception):
"""Raised... | lgpl-2.1 | 293,024,521,280,376,500 | 31.665306 | 79 | 0.556014 | false | 4.443966 | false | false | false |
umitproject/umpa | setup.py | 1 | 5893 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2008-2009 Adriano Monteiro Marques.
#
# Author: Bartosz SKOWRON <getxsick at gmail dot com>
#
# This library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free S... | lgpl-2.1 | 5,285,879,697,621,901,000 | 39.088435 | 79 | 0.524521 | false | 3.617557 | true | false | false |
OliGon/pycurse | Version-0.1/Curses-GoL-1.0.py | 1 | 28040 | import curses
import sys
import time
import os.path
import random
import pickle
from curses import wrapper
gamedims = [5,22]
currPos = [10,10]
currPosList = [1,3]
def main(stdscr):#{
curses.start_color()
curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_BLACK)
curses.init_pair(2, curses.COLOR_BLACK, curses.COL... | mit | -5,659,665,528,563,842,000 | 34.05 | 320 | 0.537447 | false | 2.234441 | false | false | false |
OptimalBPM/optimal_file_sync | service/lib/synctools.py | 1 | 9826 | import StringIO
import os
import datetime
import stat
from shutil import copyfile
from time import sleep
from smb.smb_constants import SMB_FILE_ATTRIBUTE_DIRECTORY
from smb.smb_structs import OperationFailure
from smb.SMBConnection import SMBConnection
from smbutils import list_shares, windowfy, split_smb_path
__au... | apache-2.0 | 3,581,429,991,552,432,000 | 37.537255 | 144 | 0.536841 | false | 4.041958 | false | false | false |
HPI-SWA-Lab/RSqueak | rsqueakvm/error.py | 1 | 1732 |
# Some exception classes for the Smalltalk VM
class SmalltalkException(Exception):
"""Base class for Smalltalk exception hierarchy"""
exception_type = "SmalltalkException"
_attrs_ = ["msg"]
def __init__(self, msg="<no message>"):
self.msg = msg
class PrimitiveFailedError(SmalltalkException):
... | bsd-3-clause | 6,146,202,420,114,334,000 | 28.355932 | 72 | 0.691109 | false | 3.892135 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.