repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | 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 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
vivaxy/algorithms | python/problems/prime_number_of_set_bits_in_binary_representation.py | 1 | 1089 | """
https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/
https://leetcode.com/submissions/detail/136523875/
"""
class Solution:
def countPrimeSetBits(self, L, R):
"""
:type L: int
:type R: int
:rtype: int
"""
def isPrime(n):
... | mit | 2,882,310,662,519,049,700 | 23.75 | 80 | 0.534435 | false |
mdboom/asv | asv/config.py | 1 | 2409 | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import os
import sys
import six
from . import util
# TODO: Some verification of the config values
class Config(object)... | bsd-3-clause | -3,466,219,258,463,106,000 | 27.011628 | 75 | 0.553757 | false |
fountainhead-gq/DjangoBlog | blogproject/urls.py | 1 | 1922 | """blogproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | gpl-2.0 | -8,842,098,134,731,623,000 | 41.711111 | 85 | 0.73257 | false |
hasgeek/boxoffice | migrations/versions/253e7b76eb8e_modify_assignee.py | 1 | 2138 | """modify assignee.
Revision ID: 253e7b76eb8e
Revises: 1ea1e8070ac8
Create Date: 2016-04-11 20:15:52.864916
"""
# revision identifiers, used by Alembic.
revision = '253e7b76eb8e'
down_revision = '1ea1e8070ac8'
from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
def upgrade():
op.add_column(... | agpl-3.0 | -1,522,597,774,365,325,300 | 33.483871 | 86 | 0.641254 | false |
lykops/lykops | library/frontend/__init__.py | 1 | 13604 | import logging
from library.config.frontend import adminuser
from library.config.security import vault_header
from library.connecter.database.mongo import Op_Mongo
from library.connecter.database.redis_api import Op_Redis
from library.security.encryption.AES256.api import Using_AES256
from library.security.password im... | apache-2.0 | 5,559,556,405,368,260,000 | 32.727019 | 105 | 0.494136 | false |
morpheby/ist303-miye | controllers/home_view.py | 1 | 1418 | """
home_view.py
ist303-miye
Copyright (C) 2017
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distribut... | gpl-3.0 | -4,921,004,708,755,088,000 | 31.976744 | 78 | 0.744006 | false |
udoyen/pythonlearning | reading_code/password_craacker_redone.py | 1 | 2533 | # Script Name : password_cracker.py
# Author : Craig Richards
# Created : 20 May 2013
# Last Modified :
# Version : 1.0
# Modifications :
# Description : Old school password cracker using python
import crypt # Import the module
def testPass(cryptPass): # Start the function
""" function to compare given pa... | mit | -4,450,451,968,419,236,000 | 40.52459 | 98 | 0.606001 | false |
ciex/motor | application/forms.py | 1 | 1755 | """
forms.py
Web forms based on Flask-WTForms
See: http://flask.pocoo.org/docs/patterns/wtforms/
http://wtforms.simplecodes.com/
"""
import datetime
from flaskext import wtf
from flaskext.wtf import validators
from google.appengine.api import users
from models import Movement
class TimeDeltaField(wtf.Integer... | apache-2.0 | -4,664,715,961,961,592,000 | 33.411765 | 109 | 0.68661 | false |
zarafagroupware/zarafa-zsm | deploy.py | 1 | 6980 | #!/usr/bin/python
# Copyright 2012 - 2013 Zarafa B.V.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License, version 3,
# as published by the Free Software Foundation with the following additional
# term according to sec. 7:
#
# According... | agpl-3.0 | 99,829,961,581,949,360 | 33.726368 | 88 | 0.653438 | false |
lrem/chord.py | chord/peer.py | 1 | 9656 | #!/usr/bin/env python3
"""
Chord peer
==========
This module provides peer of a Chord distributed hash table.
"""
import random
import time
import socket
import socketserver
import threading
import logging
logging.basicConfig(format='%(asctime)s %(levelname)s:%(message)s',
level=logging.DEBUG)
CH... | mit | 6,198,633,712,688,207,000 | 30.249191 | 79 | 0.545568 | false |
xolox/python-rotate-backups | rotate_backups/cli.py | 1 | 14149 | # rotate-backups: Simple command line interface for backup rotation.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: May 17, 2020
# URL: https://github.com/xolox/python-rotate-backups
"""
Usage: rotate-backups [OPTIONS] [DIRECTORY, ..]
Easy rotation of backups based on the Python package by the same n... | mit | 3,153,974,335,761,179,600 | 40.737463 | 99 | 0.661319 | false |
podhmo/toybox | examples/jwt_server.py | 1 | 1141 | import logging
from toybox.simpleapi import simple_view, run
from pyramid.security import Authenticated
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.security import Allow
# please: pip install pyramid_jwt
"""
python ./jwt_server.py
# 403
$ http GET :8080/secure
# 200 OK
$ http GET :8080/logi... | mit | -1,611,208,174,127,569,200 | 21.372549 | 73 | 0.689746 | false |
yarhajile/sven-daemon | Sven/Module/BeagleboneBlack/Adafruit_BBIO-0.0.19/test/test_gpio_output.py | 1 | 1308 | import pytest
import os
import Adafruit_BBIO.GPIO as GPIO
def teardown_module(module):
GPIO.cleanup()
class TestGPIOOutput:
def test_output_high(self):
GPIO.setup("P8_10", GPIO.OUT)
GPIO.output("P8_10", GPIO.HIGH)
value = open('/sys/class/gpio/gpio68/value').read()
assert int(... | gpl-2.0 | 4,022,292,955,603,422,700 | 28.727273 | 59 | 0.591743 | false |
bobbydurrett/PythonDBAGraphs | onewait.py | 1 | 2938 | """
PythonDBAGraphs: Graphs to help with Oracle Database Tuning
Copyright (C) 2016 Robert Taft Durrett (Bobby Durrett)
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... | gpl-3.0 | -2,918,252,863,514,742,300 | 29.298969 | 125 | 0.730088 | false |
AlexandreZani/phero | test_phero.py | 1 | 5815 | #!/usr/bin/env python
# Copyright 2012 (Alexandre Zani)
#
# 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 | 1,082,001,563,675,999,600 | 23.028926 | 76 | 0.616337 | false |
nyu-mll/spinn | python/spinn/models/rl_classifier.py | 1 | 15458 | import os
import json
import math
import random
import sys
import time
import gflags
import numpy as np
from spinn.util import afs_safe_logger
from spinn.util.data import SimpleProgressBar
from spinn.util.blocks import to_gpu
from spinn.util.misc import Accumulator, EvalReporter
from spinn.util.logging import stats, ... | mit | -1,203,337,465,858,312,400 | 33.815315 | 149 | 0.566373 | false |
mlundblad/telepathy-gabble | tests/twisted/caps/receive-jingle.py | 1 | 5901 | """
Test receiving another contact's capabilities.
"""
import dbus
from servicetest import EventPattern, assertEquals, sync_dbus
from gabbletest import exec_test, make_result_iq, make_presence, sync_stream
import constants as cs
from config import VOIP_ENABLED
if not VOIP_ENABLED:
print "NOTE: built with --disa... | lgpl-2.1 | 7,374,545,274,565,893,000 | 37.822368 | 79 | 0.63735 | false |
SelvorWhim/competitive | LeetCode/MinimumSubsequenceInNonIncreasingOrder.py | 1 | 1351 | # idea: order by size and take largest elements until the sum becomes > sum of remaining
class Solution:
def minSubsequence(self, nums: List[int]) -> List[int]:
nums = sorted(nums, reverse=True)
total_sum = sum(nums)
running_sum = 0
subseq_len = 0 # how many biggest members we'll nee... | unlicense | 6,513,663,138,112,198,000 | 49.037037 | 146 | 0.617321 | false |
Ircam-Web/mezzanine-organization | organization/core/related.py | 1 | 2036 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016-2017 Ircam
# Copyright (c) 2016-2017 Guillaume Pellerin
# Copyright (c) 2016-2017 Emilie Zawadzki
# This file is part of mezzanine-organization.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public L... | agpl-3.0 | -7,799,400,437,900,264,000 | 37.415094 | 77 | 0.672888 | false |
virtualnobi/MediaFiler | Model/MediaClassHandler.py | 1 | 18503 | """Provides class and element handling functionality.
(c) by nobisoft 2016-
"""
# Imports
## Standard
import sys
import copy
import re
import codecs
import logging
## Contributed
## nobi
## Project
#from .MediaOrganization import MediaOrganization
# Package Variables
Logger = logging.getLogger... | gpl-3.0 | -4,694,349,200,343,272,000 | 38.755507 | 156 | 0.565908 | false |
aurex-linux/virt-manager | virtManager/mediacombo.py | 1 | 6975 | #
# Copyright (C) 2014 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed i... | gpl-2.0 | 7,790,347,630,391,545,000 | 30.278027 | 79 | 0.590108 | false |
AKAMobi/ibot | ibot-kernel/ibot/extractor/startup.py | 1 | 4162 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from common import get_regs, get_compile_regs
import re
REGS = get_compile_regs(get_regs('startup'))
def get_startup(document):
""" 抽取项目名
@document: Document对象 chunk
@rtype: str 项目名
"""
global REGS
startup = ''
... | apache-2.0 | -2,418,756,691,669,638,000 | 25.984496 | 61 | 0.508587 | false |
vinu76jsr/django-memoize | setup.py | 1 | 1282 | #!/usr/bin/env python
"""
django-memoize
--------------
**django-memoize** is an implementation
of `memoization <http://en.wikipedia.org/wiki/Memoization>`_ technique
for Django. You can think of it as a cache for function or method results.
"""
from setuptools import setup, find_packages
setup(
name='django-me... | bsd-3-clause | -3,856,313,471,149,989,000 | 28.813953 | 74 | 0.634165 | false |
kinsney/sport | sport/settings.py | 1 | 4682 | #coding:utf-8
# -*- coding: utf-8 -*-
"""
Django settings for sport project.
Generated by 'django-admin startproject' using Django 1.9.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en... | mit | -3,694,405,221,567,587,000 | 25.526316 | 91 | 0.676808 | false |
oaelhara/numbbo | docs/coco-generic/coco-perf-assessment/source/conf.py | 1 | 9586 | # -*- coding: utf-8 -*-
#
# docs/coco-generic/coco-perf-assessment documentation build configuration
# file, created by sphinx-quickstart on Fri Feb 12 14:40:02 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in t... | bsd-3-clause | -8,011,413,805,801,072,000 | 32.400697 | 144 | 0.713019 | false |
demitri/cornish | source/cornish/region/region.py | 1 | 28830 |
from __future__ import annotations # remove in Python 3.10
# Needed for forward references, see:
# https://stackoverflow.com/a/33533514/2712652
import logging
from abc import ABCMeta, abstractproperty, abstractmethod
from typing import Union, Iterable, Tuple
import math
from math import radians as deg2rad
from math ... | mit | -7,151,365,176,470,967,000 | 37.906883 | 191 | 0.728755 | false |
Coderhypo/UIAMS | manage.py | 1 | 1085 | #-*- coding: UTF-8 -*-
import os
from app import app, db
from app.models import User, Role
from flask.ext.script import Manager, Server, Shell
from flask.ext.migrate import Migrate, MigrateCommand
manager = Manager(app)
def make_shell_context():
return dict(app=app, db=db, User=User, Role=Role)
manager.add_comma... | lgpl-3.0 | -1,176,110,634,197,252,400 | 24.690476 | 68 | 0.639481 | false |
maestromusic/maestro | maestro/core/domains.py | 1 | 5562 | # -*- coding: utf-8 -*-
# Maestro Music Manager - https://github.com/maestromusic/maestro
# Copyright (C) 2014-2015 Martin Altmayer, Michael Helmling
#
# 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 Foun... | gpl-3.0 | -4,220,954,320,742,945,000 | 33.546584 | 107 | 0.647609 | false |
PaloAltoNetworks/minemeld-core | minemeld/flask/config.py | 1 | 5920 | # Copyright 2015-2016 Palo Alto Networks, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 661,309,615,503,957,100 | 26.793427 | 82 | 0.572635 | false |
eugenj/global-notes | Adaptive Python/test_helper.py | 10 | 6166 | import sys
def get_file_text(path):
""" Returns file text by path"""
file_io = open(path, "r")
text = file_io.read()
file_io.close()
return text
def get_file_output(encoding="utf-8", path=sys.argv[-1], arg_string=""):
"""
Returns answer file output
:param encoding: to decode output i... | mit | -754,148,502,409,651,600 | 26.526786 | 119 | 0.584009 | false |
jopohl/urh | src/urh/dev/native/SoundCard.py | 1 | 4702 | from collections import OrderedDict
from multiprocessing import Array
from multiprocessing.connection import Connection
import numpy as np
import pyaudio
from urh.dev.native.Device import Device
from urh.util.Logger import logger
class SoundCard(Device):
DEVICE_LIB = pyaudio
ASYNCHRONOUS = False
DEVICE_... | gpl-3.0 | -7,528,737,987,523,719,000 | 37.227642 | 102 | 0.574011 | false |
mario23285/ProyectoElectrico | src/Leg.py | 1 | 6591 | """
UNIVERSIDAD DE COSTA RICA Escuela de Ingeniería Eléctrica
IE0499 | Proyecto Eléctrico
Mario Alberto Castresana Avendaño
A41267
Programa: BVH_TuneUp
-------------------------------------------------------------------------------
archivo: Leg.py
descripción:
Este archivo contiene la clase Leg... | gpl-2.0 | -7,727,383,819,763,163,000 | 38.93865 | 96 | 0.567896 | false |
cryptapus/electrum-uno | gui/qt/__init__.py | 1 | 7412 | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@gitorious
#
# 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 witho... | mit | -6,099,789,603,438,935,000 | 34.980583 | 118 | 0.642876 | false |
bmentges/brainiak_api | src/brainiak/suggest/json_schema.py | 1 | 6725 | # -*- coding: utf-8 -*-
from brainiak.utils.links import merge_schemas, pagination_schema
SUGGEST_PARAM_SCHEMA = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describe the parameters given to the suggest primitive",
"type": "object",
"required": ["search"],
"additionalProp... | gpl-2.0 | 4,605,018,496,070,448,000 | 34.771277 | 108 | 0.299777 | false |
gladsonvm/haystackdemo | lib/python2.7/site-packages/pyelasticsearch/client.py | 1 | 39599 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from datetime import datetime
from operator import itemgetter
from functools import wraps
from logging import getLogger
import re
from six import (iterkeys, binary_type, text_type, string_types, integer_types,
iteritems, PY3)
from six.move... | mit | 5,228,932,564,129,046,000 | 38.16815 | 96 | 0.576429 | false |
gentoo/layman | layman/tests/external.py | 1 | 28009 | # -*- coding: utf-8 -*-
#################################################################################
# EXTERNAL LAYMAN TESTS
#################################################################################
# File: external.py
#
# Runs external (non-doctest) test cases.
#
# Copyright:
# ... | gpl-2.0 | -6,600,322,977,730,521,000 | 35.470052 | 86 | 0.542468 | false |
AbhiAgarwal/prep | python/trie.py | 1 | 3121 | class Node:
"""Node for Python Trie Implementation"""
def __init__(self):
self.word = None
self.nodes = {} # dict of nodes
def __get_all__(self):
"""Get all of the words in the trie"""
x = []
for key, node in self.nodes.iteritems() :
... | mit | -270,410,005,839,756,830 | 30.22 | 92 | 0.55495 | false |
tobiz/OGN-Flight-Logger_V2 | flogger_email_msg.py | 1 | 1204 | import smtplib
import base64
from email.MIMEText import MIMEText
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEBase import MIMEBase
from email import encoders
from __builtin__ import file
import settings
import os
import datetime
def email_msg(sender, receiver, msg, ... | gpl-3.0 | 594,446,723,311,701,000 | 29.897436 | 94 | 0.662791 | false |
coldfix/udiskie | udiskie/tray.py | 1 | 16508 | """
Tray icon for udiskie.
"""
from gi.repository import Gio
from gi.repository import Gtk
from .async_ import run_bg, Future
from .common import setdefault, DaemonBase, cachedmethod
from .locale import _
from .mount import Action, prune_empty_node
from .prompt import Dialog
from .icons import IconDist
import os
_... | mit | 6,167,450,907,907,872,000 | 32.148594 | 78 | 0.558941 | false |
DavidAndreev/indico | indico/modules/events/timetable/legacy.py | 1 | 15015 | # This file is part of Indico.
# Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN).
#
# Indico 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 (a... | gpl-3.0 | 6,942,691,855,398,678,000 | 45.775701 | 119 | 0.599734 | false |
abadger/stellarmagnate | magnate/ui/urwid/abcwidget.py | 1 | 1128 | # Stellar Magnate - A space-themed commodity trading game
# Copyright (C) 2016-2017 Toshio Kuratomi <toshio@fedoraproject.org>
#
# 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 ver... | agpl-3.0 | -3,600,078,121,113,003,000 | 37.896552 | 91 | 0.766844 | false |
jptomo/rpython-lang-scheme | rpython/translator/c/test/test_extfunc.py | 1 | 28437 | import py
import os, time, sys
from rpython.tool.udir import udir
from rpython.rlib.rarithmetic import r_longlong
from rpython.annotator import model as annmodel
from rpython.translator.c.test.test_genc import compile
from rpython.translator.c.test.test_standalone import StandaloneTests
posix = __import__(os.name)
def... | mit | -3,668,364,111,266,793,500 | 29.876221 | 99 | 0.533917 | false |
czayas/agenda | repl.py | 1 | 3955 | #!/usr/bin/env python3
"""
Módulo repl: Interfaz de usuario en modo consola (vista).
Proyecto de ejemplo - Paradigmas de la Programación
Autor: Carlos Zayas (czayas en gmail)
"""
import sys
from traceback import format_exc
from collections.abc import Iterable
try:
# El módulo readline agrega autocompletado e histo... | mit | -375,912,725,944,871,900 | 30.214286 | 78 | 0.586575 | false |
DedMemez/ODS-August-2017 | catalog/CatalogBasketItem.py | 1 | 3029 | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.catalog.CatalogBasketItem
from panda3d.core import Datagram
import CatalogItem
from toontown.estate import GardenGlobals
from toontown.toonbase import ToontownGlobals
from direct.actor import Actor
from toontown.toonbase import TTLocalizer
from ... | apache-2.0 | -6,348,996,229,263,607,000 | 32.83908 | 120 | 0.698911 | false |
ibm-research/SwiftHLM | swifthlm/dummy_connector.py | 1 | 11621 | #!/usr/bin/python
# (C) Copyright 2017 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | apache-2.0 | 727,087,573,311,736,000 | 40.355872 | 79 | 0.650805 | false |
southpawtech/TACTIC-DEV | src/tactic/ui/app/plugin_wdg.py | 1 | 81627 | ###########################################################
#
# Copyright (c) 2010, 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 | -6,583,371,773,248,042,000 | 29.514766 | 146 | 0.497887 | false |
ajerneck/rand-art | scrape.py | 1 | 2246 | import requests
import bs4
import re
import random
URL = 'http://longform.org'
def parse_page(url):
page = requests.get(url)
soup = bs4.BeautifulSoup(page.text)
posts = soup.select('div.post')
## filter out posts whose second class element is not empty, because those are collections or sponsored posts... | gpl-2.0 | 5,098,242,492,153,903,000 | 27.794872 | 166 | 0.57569 | false |
tuskar/tuskar-ui | openstack_dashboard/dashboards/infrastructure/models.py | 1 | 1639 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Red Hat, 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
#
#... | apache-2.0 | 960,798,619,425,038,600 | 33.145833 | 78 | 0.732764 | false |
DalenWBrauner/FloridaDataOverlay | Website/Florida_Data_Overlay/Overlay/migrations/0003_auto__del_document__add_upload.py | 1 | 2765 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'Document'
db.delete_table(u'Overlay_document')
... | mit | -7,312,602,605,645,666,000 | 42.904762 | 92 | 0.554069 | false |
tadamic/sokoenginepy | docs/conf.py | 1 | 12722 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# sokoenginepy documentation build configuration file, created by
# sphinx-quickstart on Mon Oct 10 21:02:00 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this... | gpl-3.0 | 488,605,366,885,418,940 | 27.334076 | 97 | 0.690143 | false |
michaelb-01/pipe | scripts/python/createThumbnails_v004.py | 1 | 2986 | import os
import subprocess
import json
import shlex
import math
import nuke
def probeFile(file):
cmd = "ffprobe -v quiet -print_format json -show_streams"
# find video duration
# ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1
# find video frame rate (no... | mit | 7,450,704,990,378,564,000 | 24.965217 | 117 | 0.581045 | false |
mpuig/python-goose | goose/images/ImageUtils.py | 1 | 4157 | # -*- coding: utf-8 -*-
"""\
This is a python port of "Goose" orignialy licensed to Gravity.com
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.
Python port was written by Xavier Grangier for Recrutae
Gravity.c... | apache-2.0 | -290,774,615,213,729,860 | 30.740458 | 84 | 0.638201 | false |
lcapps-luke/js13k-glitch | util/package.py | 1 | 1491 | import os
import sys
import zipfile
import subprocess
if __name__ == '__main__':
jsFile = "bin/g.js"
jsFileMin = "bin/g_min.js"
indexFile = "bin/index.html"
indexFileMin = "bin/index_min.html"
#minify javascript
subprocess.call([
"uglifyjs",
"--compress",
"--mangle",
"--o", jsFileMin,
jsFile
], shel... | mit | -6,556,889,113,943,902,000 | 21.268657 | 68 | 0.662643 | false |
tuborgclassic/carlsberg | settings.py | 1 | 2487 | from os.path import exists, abspath, dirname, join
import misc
THIS_DIR = dirname(abspath(__file__))
# this is a personal access token used by chaosbot to perform merges and other
# api requests. it is a secret, and lives on the server, but since chaosbot has
# access to this secret file, it can be manipulated into... | mit | -5,332,340,821,084,454,000 | 34.028169 | 82 | 0.74226 | false |
8u1a/plaso | plaso/parsers/skydrivelogerr.py | 1 | 8915 | # -*- coding: utf-8 -*-
"""This file contains SkyDrive error log file parser in plaso."""
import logging
import pyparsing
from plaso.events import time_events
from plaso.lib import eventdata
from plaso.lib import timelib
from plaso.parsers import manager
from plaso.parsers import text_parser
__author__ = 'Francesc... | apache-2.0 | -6,098,716,662,991,127,000 | 34.803213 | 78 | 0.680538 | false |
brianbeliveau/OligoMiner | probeTm.py | 1 | 7717 | #!/usr/bin/env python
# --------------------------------------------------------------------------
# OligoMiner
# probeTm.py
#
# (c) 2017 Molecular Systems Lab
#
# Wyss Institute for Biologically-Inspired Engineering
# Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
#... | mit | 4,938,888,727,236,498,000 | 41.401099 | 80 | 0.585979 | false |
lpantano/bcbio-nextgen | bcbio/distributed/ipythontasks.py | 1 | 13270 | """Ipython parallel ready entry points for parallel execution
"""
import contextlib
try:
from ipyparallel import require
except ImportError:
from IPython.parallel import require
from bcbio import heterogeneity, hla, chipseq, structural, upload
from bcbio.bam import callable
from bcbio.rnaseq import sailfish
f... | mit | 4,028,277,454,162,168,000 | 32.00995 | 90 | 0.697664 | false |
Zloool/manyfaced-honeypot | manyfaced/common/utils.py | 1 | 1349 | import time
import pickle
from socket import error as socket_error
from status import CLIENT_TIMEOUT
def dump_file(data):
try:
with file('temp.db') as f:
string_file = f.read()
db = pickle.loads(string_file)
except:
db = list()
db.append(data)
with open('temp.db', ... | mit | -9,115,461,342,038,738,000 | 24.942308 | 76 | 0.564863 | false |
mitsuhiko/solace | solace/badges.py | 1 | 7311 | # -*- coding: utf-8 -*-
"""
solace.badges
~~~~~~~~~~~~~
This module implements the badge system.
:copyright: (c) 2010 by the Solace Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from operator import attrgetter
from solace.i18n import lazy_gettext, _
from sol... | bsd-3-clause | -3,068,501,602,873,117,000 | 32.672811 | 88 | 0.626249 | false |
bakkerjarr/ACLSwitch | Ryu_Application/controller.py | 1 | 11192 | # Copyright 2015 Jarrod N. Bakker
#
# 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 writ... | apache-2.0 | 7,496,221,329,370,704,000 | 40.147059 | 103 | 0.586401 | false |
rajendrant/ArduinoControl | python/ArduinoControlClient/example.py | 1 | 1250 | import ArduinoControlClient
import time
b = ArduinoControlClient.UDPClient('192.168.1.106', 6666)
def ping_test(b):
for i in range(4):
latency = b.ping_test()
print 'ping_test', 'PASSED latency=%d'%(latency) if latency else 'FAILED'
time.sleep(0.5)
def blink_led(b):
pin=b.get_pin(2)
... | gpl-3.0 | 300,559,311,757,661,950 | 20.551724 | 81 | 0.624 | false |
jcrudy/grm | grm/binomial_earth_example.py | 1 | 1250 | import numpy
from grm import GeneralizedRegressor, BinomialLossFunction, LogitLink
import scipy.stats
from pyearth.earth import Earth
numpy.seterr(all='raise')
m = 1000
n = 10
p = 10
def earth_basis(X, vars, parents, knots, signs):
p = vars.shape[0]
B = numpy.empty(shape=(m,p+1))
B[:,0] = 1.0
for i in ... | gpl-3.0 | 93,117,187,002,019,150 | 34.714286 | 98 | 0.6512 | false |
pcolmant/repanier | repanier/xlsx/xlsx_stock.py | 1 | 24914 | import repanier.apps
from django.db import transaction
from django.utils.translation import ugettext_lazy as _
from repanier.const import *
from repanier.models.offeritem import OfferItemReadOnly
from repanier.models.product import Product
from repanier.packages.openpyxl import load_workbook
from repanier.packages.open... | gpl-3.0 | -446,838,558,719,094,400 | 46.911538 | 132 | 0.457333 | false |
1and1/confluencer | src/confluencer/tools/content.py | 1 | 10540 | # -*- coding: utf-8 -*-
# pylint: disable=bad-continuation
""" Tools to discover and modify content.
"""
# Copyright © 2015 1&1 Group <git@1and1.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Lic... | apache-2.0 | -8,970,102,084,358,917,000 | 39.69112 | 127 | 0.567226 | false |
kaushik94/sympy | sympy/utilities/autowrap.py | 3 | 40995 | """Module for compiling codegen output, and wrap the binary for use in
python.
.. note:: To use the autowrap module it must first be imported
>>> from sympy.utilities.autowrap import autowrap
This module provides a common interface for different external backends, such
as f2py, fwrap, Cython, SWIG(?) etc. (Curren... | bsd-3-clause | 163,633,342,712,998,180 | 35.570027 | 115 | 0.587169 | false |
biorack/metatlas | metatlas/io/write_utils.py | 1 | 2914 | """ Utility functions used in writing files"""
import filecmp
import logging
import os
import tempfile
logger = logging.getLogger(__name__)
def make_dir_for(file_path):
"""makes directories for file_path if they don't already exist"""
directory = os.path.dirname(file_path)
if directory != "":
os... | bsd-3-clause | 6,220,869,091,396,560,000 | 33.690476 | 97 | 0.668497 | false |
PetePriority/home-assistant | homeassistant/components/zone/zone.py | 1 | 3191 | """Component entity and functionality."""
from homeassistant.const import ATTR_HIDDEN, ATTR_LATITUDE, ATTR_LONGITUDE
from homeassistant.helpers.entity import Entity
from homeassistant.loader import bind_hass
from homeassistant.util.async_ import run_callback_threadsafe
from homeassistant.util.location import distance
... | apache-2.0 | -3,663,965,267,479,924,700 | 28.009091 | 79 | 0.62833 | false |
jmsleiman/hypercube-election | hypercube.py | 1 | 5446 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2015 Joseph M. Sleiman
# This program is free software; you can redistribute it and/or
# modify it under the terms of the LGPLv2.1 or LGPLv3 License.
import math
import node
class HyperCube(object):
def __init__(self, dimension, nodeValues):
### ... | lgpl-2.1 | 453,523,443,621,024,500 | 33.251572 | 125 | 0.605215 | false |
ChillarAnand/junction | junction/base/emailer.py | 1 | 1236 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
# Standard Library
from os import path
# Third Party Stuff
from django.conf import settings
from django.core.mail import send_mail
from django.template.loader import render_to_string
def send_email(to, context, template_dir):
"""Re... | mit | -6,158,837,254,071,177,000 | 31.526316 | 98 | 0.695793 | false |
DarthMaulware/EquationGroupLeaks | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/status/cmd/devicequery/type_Params.py | 1 | 3783 | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: type_Params.py
from types import *
import array
PARAMS_DEVICE_TYPE_USER_SPECIFIC = 0
PARAMS_DEVICE_TYPE_U1394 = 1
PARAMS_DEVICE_TYPE_ADAPTER = 2
PARA... | unlicense | 8,606,701,729,567,228,000 | 32.785714 | 90 | 0.686228 | false |
metacloud/python-glanceclient | glanceclient/v1/image_members.py | 1 | 3610 | # Copyright 2012 OpenStack Foundation
# 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 requ... | apache-2.0 | 5,861,809,855,356,957,000 | 34.048544 | 78 | 0.579778 | false |
Juniper/ceilometer | ceilometer/compute/virt/vmware/vsphere_operations.py | 1 | 10191 | # Copyright (c) 2014 VMware, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | apache-2.0 | -2,132,534,185,499,780,900 | 43.308696 | 79 | 0.631538 | false |
Kaushikpatnaik/Active-Learning-and-Best-Response-Dynamics | experiments.py | 1 | 8013 | import sys
from classrooms import *
from learners import *
from datasets import *
from stat_trackers import *
from svmutil import *
import math
#from memory_profiler import profile
#from pympler import muppy
#from pympler import asizeof
#from pympler import summary
#from pympler.classtracker import ClassTracker
import... | mit | -7,848,801,689,367,619,000 | 29.011236 | 127 | 0.58168 | false |
YulongWu/my-utils | yidian/WYLDocFeatureDumpFetcher.py | 1 | 6233 | #coding: u8
import sys
reload(sys)
sys.setdefaultencoding('u8')
import urllib
import urllib2
import json
import traceback
import datetime
import re
# call format:
class WYLDocFeatureDumpFetcher(object):
serve_url = "http://10.111.0.54:8025/service/feature?docid={0}" #url for doc feature dump
serve_url = "h... | mit | -2,834,678,351,225,799,000 | 36.654545 | 177 | 0.589087 | false |
dplusic/daff | scripts/python23.py | 1 | 1683 | from __future__ import unicode_literals, print_function
try:
import builtins
except:
import __builtin__
builtins = __builtin__
import functools
if hasattr(builtins,'unicode'):
# python2 variant
hxunicode = builtins.unicode
hxunichr = builtins.unichr
hxrange = xrange
def hxnext(x):
... | mit | 7,958,329,564,262,106,000 | 31.365385 | 111 | 0.54902 | false |
p4r4digm/todo-helper | src/todoLogging.py | 1 | 1872 | from src.todoMelvin import settings
from datetime import datetime
from subprocess import check_output
logSender = None
class WarningLevels:
Debug = {'level' : 0, 'tag' : 'DEBUG'}
Info = {'level' : 1, 'tag' : 'INFO'}
Warn = {'level' : 2, 'tag' : 'WARNING'}
Fatal = {'level' : 3, 'tag' : 'FAT... | mit | -1,290,323,906,406,167,300 | 29.688525 | 88 | 0.498932 | false |
jiadaizhao/LeetCode | 0001-0100/0005-Longest Palindromic Substring/0005-Longest Palindromic Substring.py | 1 | 1407 | class Solution:
def longestPalindrome(self, s):
"""
:type s: str
:rtype: str
"""
n = len(s)
maxLen, maxStart = 0, 0
for i in range(n):
l, left, right = 1, i - 1, i + 1
while left >= 0 and right < n and s[left] == s[right]:
... | mit | -528,725,900,913,107,800 | 26.588235 | 66 | 0.340441 | false |
aio-libs/aiohttp | aiohttp/web_server.py | 1 | 2247 | """Low level HTTP server."""
import asyncio
import warnings
from typing import Any, Awaitable, Callable, Dict, List, Optional # noqa
from .abc import AbstractStreamWriter
from .http_parser import RawRequestMessage
from .streams import StreamReader
from .web_protocol import RequestHandler, _RequestFactory, _RequestHan... | apache-2.0 | -5,668,502,912,688,113,000 | 32.044118 | 88 | 0.634179 | false |
Lukas-Stuehrk/selenese | selenese/patterns.py | 1 | 1351 | import re
from fnmatch import fnmatch
class Pattern(object):
def __init__(self, pattern_string):
self.pattern_string = pattern_string
class ExactPattern(Pattern):
def compare(self, string):
return self.pattern_string == string
class RegexPattern(Pattern):
def compare(self, string):
... | bsd-3-clause | 8,510,309,876,751,397,000 | 29.727273 | 78 | 0.670614 | false |
shear/rppy | test_ruger_hti.py | 2 | 2682 | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 3 17:24:04 2015
@author: Sean
"""
import rppy
import numpy as np
import matplotlib.pyplot as plt
p1 = 2000
vp1 = 3000
vs1 = 1500
e1 = 0.0
d1 = 0.0
y1 = 0.0
p2 = 2200
vp2 = 4000
vs2 = 2000
y2 = 0.1
d2 = 0.1
e2 = 0.1
theta = 30
phi = np.arange(0, 90, 1)
phit = np.arra... | bsd-2-clause | -2,847,318,867,181,452,000 | 32.111111 | 109 | 0.503356 | false |
vjFaLk/frappe | frappe/core/doctype/communication/email.py | 1 | 19348 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals, absolute_import
from six.moves import range
from six import string_types
import frappe
import json
from email.utils import formataddr
from frappe.core.utils import get_parent_doc... | mit | 5,878,466,721,758,545,000 | 34.896104 | 155 | 0.723641 | false |
apanda/modeling | tests/num_dnode_test.py | 1 | 1303 | import z3
from z3 import is_true, is_false
from examples import *
import time
import mcnet.components as components
import random
import sys
"""Check time as increase in nodes"""
def ResetZ3 ():
z3._main_ctx = None
z3.main_ctx()
z3.set_param('auto_config', False)
z3.set_param('smt.mbqi', True)
z3.se... | bsd-3-clause | 4,604,562,846,646,764,000 | 29.302326 | 82 | 0.594014 | false |
h2oloopan/easymerge | EasyMerge/tests/reddit/scripts/migrate/backfill/subreddit_images.py | 1 | 2325 |
# The contents of this file are subject to the Common Public Attribution
# License Version 1.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://code.reddit.com/LICENSE. The License is based on the Mozilla Public
# License Version 1.1,... | mit | -8,692,393,015,163,003,000 | 37.75 | 79 | 0.68 | false |
wyoder/pubs | ui/fields.py | 1 | 14935 | '''
Fields that are used in our UI
#.. todo: Make a field specifically for lists
'''
from pubs.ui import *
import pubs.ui.models as models
import pubs.pGraph as pGraph
import pubs.pNode as pNode
class BaseField(QtWidgets.QWidget):
def __init__(self, label, value = None, description = str(), parent = None, attribu... | gpl-3.0 | 696,080,950,196,650,100 | 37.196931 | 135 | 0.600737 | false |
migonzalvar/threaded-launcher | watchdog.py | 1 | 1246 | #!/bin/env python3.4
from threading import Thread
import os
import subprocess
import time
def watchdog():
"""Launch all the scripts in a folder and wait until completion."""
scripts_processes = []
base_dir = os.path.join(os.path.dirname(__file__), 'modules')
# Launch scripts
for script in os.lis... | mit | 5,560,709,927,552,056,000 | 29.390244 | 93 | 0.599518 | false |
sorki/faf | src/pyfaf/bugtrackers/bugzilla.py | 1 | 23495 | # Copyright (C) 2013 ABRT Team
# Copyright (C) 2013 Red Hat, Inc.
#
# This file is part of faf.
#
# faf 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 | 7,789,109,973,879,203,000 | 32.805755 | 85 | 0.520962 | false |
adeverteuil/backup | backup/config.py | 1 | 9546 | # Alexandre's backup script
# Copyright © 2014 Alexandre A. de Verteuil
#
# 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 | -1,983,022,879,159,606,500 | 36.727273 | 79 | 0.590885 | false |
mfsteen/CIQTranslate-Kristian | openpyxl/comments/reader.py | 1 | 1558 | from __future__ import absolute_import
# Copyright (c) 2010-2016 openpyxl
import os.path
from openpyxl.comments import Comment
from openpyxl.xml.constants import (
PACKAGE_WORKSHEET_RELS,
COMMENTS_NS,
PACKAGE_XL,
)
from openpyxl.xml.functions import fromstring
from .properties import CommentSheet
... | gpl-3.0 | 159,124,037,491,564,830 | 31.458333 | 87 | 0.679076 | false |
janelia-flyem/pydvid | tests/test_keyvalue.py | 1 | 3531 | import os
import shutil
import tempfile
import httplib
import h5py
from pydvid import keyvalue
from mockserver.h5mockserver import H5MockServer, H5MockServerDataFile
class TestKeyValue(object):
@classmethod
def setupClass(cls):
"""
Override. Called by nosetests.
- Create an hdf5... | bsd-3-clause | 6,521,098,699,988,964,000 | 38.674157 | 125 | 0.636647 | false |
beni55/rinohtype | rinoh/annotation.py | 1 | 1363 | # This file is part of RinohType, the Python document preparation system.
#
# Copyright (c) Brecht Machiels.
#
# Use of this source code is subject to the terms of the GNU Affero General
# Public License v3. See the LICENSE file or http://www.gnu.org/licenses/.
from .util import Decorator
from .text import MixedStyle... | agpl-3.0 | 4,685,080,658,187,097,000 | 22.912281 | 75 | 0.668379 | false |
felipessalvatore/CNNexample | src/tunning/fc.py | 1 | 2217 | import os
import sys
from random import randint
import numpy as np
import inspect
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
from ut... | mit | -7,174,310,966,665,166,000 | 29.369863 | 99 | 0.630582 | false |
google-research/dreamer | dreamer/models/base.py | 1 | 2449 | # Copyright 2019 The Dreamer 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 applicabl... | apache-2.0 | 3,964,951,076,290,957,300 | 29.6125 | 78 | 0.695794 | false |
jolyonb/edx-platform | common/lib/xmodule/xmodule/video_module/transcripts_utils.py | 1 | 37083 | """
Utility functions for transcripts.
++++++++++++++++++++++++++++++++++
"""
from __future__ import absolute_import
import copy
import json
import logging
import os
from functools import wraps
import requests
import six
from django.conf import settings
from lxml import etree
from pysrt import SubRipFile, SubRipItem,... | agpl-3.0 | -4,293,292,588,554,137,600 | 35.178537 | 120 | 0.641183 | false |
mlk/thefuck | thefuck/rules/apt_get.py | 1 | 1174 | from thefuck.specific.apt import apt_available
from thefuck.utils import memoize, which
from thefuck.shells import shell
try:
from CommandNotFound import CommandNotFound
command_not_found = CommandNotFound()
enabled_by_default = apt_available
except ImportError:
enabled_by_default = False
def _get_e... | mit | -3,930,856,329,572,652,500 | 26.302326 | 74 | 0.69506 | false |
IlyaGusev/PoetryCorpus | poetry/apps/corpus/views/comparison_view.py | 1 | 4872 | from collections import namedtuple
from typing import List
from django.views.generic import TemplateView, View
from django.http import HttpResponse
from braces.views import LoginRequiredMixin, GroupRequiredMixin
from poetry.apps.corpus.models import Poem, MarkupVersion
from rupo.main.markup import Markup
def get_ac... | apache-2.0 | 5,808,079,583,847,912,000 | 43.697248 | 107 | 0.649015 | false |
samuelmaudo/yepes | yepes/view_mixins/cache.py | 1 | 2980 | # -*- coding:utf-8 -*-
from __future__ import unicode_literals
import hashlib
from django.contrib import messages
from django.http import HttpResponsePermanentRedirect
from django.utils.encoding import force_bytes
from yepes.cache import MintCache
from yepes.conf import settings
from yepes.utils.minifier import min... | bsd-3-clause | -7,693,372,715,246,965,000 | 31.391304 | 73 | 0.591611 | false |
evvers/git-pre-commit-hook-utils | tests/test_git_pre_commit_hook_utils.py | 1 | 2519 | import git_pre_commit_hook_utils as utils
import scripttest
import os
import copy
def test_git_mode():
m = utils.GitMode('120000')
assert m.is_symlink()
assert not m.is_gitlink()
def test_with_empty_repo(tmpdir):
os_environ = copy.deepcopy(os.environ)
os_environ['GIT_DIR'] = str(tmpdir) + '/.git... | mit | -2,185,100,609,934,616,600 | 27.303371 | 67 | 0.593886 | false |
rohit01/sethji | sethji/util.py | 1 | 2148 | import datetime
import calendar
import re
def validate_email(email, email_regex_csv):
regex_list = [e.strip() for e in email_regex_csv.split(',')]
for user_regex in regex_list:
## Only * is allowed in user email regex
match_regex = re.escape(user_regex)
match_regex = "^%s$" % match_reg... | mit | 1,566,480,901,819,199,500 | 28.833333 | 66 | 0.582868 | false |
jmaher/randomtools | wget/wget_helper.py | 1 | 4423 | import subprocess
import re
import os
filename = ''
def findAndGet(url, lines):
retVal = None
fname, root, query = getFilename(url)
resrc = re.compile('.*src="%s(.*)".*' % url)
rebg = re.compile('.*\(%s(.*)\).*' % url)
for line in lines:
match = resrc.match(line)
if match:
... | mpl-2.0 | 6,678,670,892,547,276,000 | 25.644578 | 76 | 0.530861 | false |
CartoDB/cartoframes | tests/unit/viz/test_map.py | 1 | 12097 | from cartoframes.auth import Credentials
from cartoframes.viz import Map, Layer, popup_element, constants
from cartoframes.viz.source import Source
from cartoframes.io.managers.context_manager import ContextManager
from .utils import build_geodataframe
from ..mocks.kuviz_mock import KuvizPublisherMock
def setup_mo... | bsd-3-clause | -3,972,619,867,122,570,000 | 34.371345 | 97 | 0.523766 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.