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 |
|---|---|---|---|---|---|---|---|---|---|---|
mandli/multilayer-examples | 1d/setplot_shelf.py | 1 | 12827 |
"""
Set up the plot figures, axes, and items to be done for each frame.
This module is imported by the plotting routines and then the
function setplot is called to set the plot parameters.
"""
import numpy as np
# Plot customization
import matplotlib
# Markers and line widths
matplotlib.rcParams['lines.line... | mit | 4,477,008,614,607,382,500 | 33.114362 | 109 | 0.54853 | false |
CLVsol/odoo_addons | clv_insurance_client/wkf/clv_insurance_client_wkf.py | 1 | 2636 | # -*- encoding: utf-8 -*-
################################################################################
# #
# Copyright (C) 2013-Today Carlos Eduardo Vercelino - CLVsol #
# ... | agpl-3.0 | 5,231,165,072,950,596,000 | 46.927273 | 103 | 0.462822 | false |
hofschroeer/shinysdr | shinysdr/web.py | 1 | 33243 | # Copyright 2013, 2014, 2015 Kevin Reid <kpreid@switchb.org>
#
# This file is part of ShinySDR.
#
# ShinySDR 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 opt... | gpl-3.0 | 7,562,672,249,538,104,000 | 37.254315 | 190 | 0.614505 | false |
transientskp/aartfaac-arthur | arthur/stream.py | 1 | 2792 | import os
from casacore.images import image as casa_image
from PIL import Image
import subprocess
import time
import monotonic
import logging
import atexit
logger = logging.getLogger(__name__)
FPS = 25
cmd = ["ffmpeg",
# for ffmpeg always first set input then output
# silent audio
'-f', 'lavfi'... | gpl-3.0 | -8,623,274,229,165,829,000 | 25.093458 | 88 | 0.579513 | false |
picardie-nature/clicnat-qgis | __init__.py | 1 | 1557 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Clicnat
A QGIS plugin
Plugin Clicnat
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
-------------------
begin ... | gpl-2.0 | 2,073,695,580,280,102,000 | 42.25 | 77 | 0.402697 | false |
gotlium/django-geoip-redis | geoip/management/commands/update_geo_db.py | 1 | 2560 | # -*- coding: utf-8 -*-
import thread
import time
import sys
import os
from django.contrib.contenttypes.models import ContentType
from django.core.management.base import NoArgsCommand
from django.core.management import call_command
from django.utils.termcolors import colorize
from requests import get
from geoip.red... | gpl-3.0 | -3,429,620,732,315,793,400 | 27.764045 | 78 | 0.562891 | false |
cherrygirl/micronaet7 | product_adr/__openerp__.py | 1 | 1595 | # -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License a... | agpl-3.0 | -6,680,791,610,789,253,000 | 35.25 | 79 | 0.566771 | false |
TommasoPadovan/Baobab | baobab_nifti/baobab-usingNifti.py | 1 | 2095 | from nifti import NiftiImage
from datetime import datetime
prima=datetime.now()
#FLAGS
#############################
background_threshold=25 #
reverse_YAxis=True #
#############################
nim=NiftiImage("cervello")
print "Processing '%s'" %nim.filename,
nim.load()
d=nim.extent #genearatin a 4-upl... | mit | -3,247,903,238,032,980,000 | 22.021978 | 98 | 0.478759 | false |
cryptobanana/ansible | lib/ansible/modules/network/mlnxos/mlnxos_mlag_ipl.py | 1 | 6810 | #!/usr/bin/python
#
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | -3,435,618,416,087,935,000 | 31.428571 | 92 | 0.584581 | false |
martastain/dc-caspar | actions.py | 1 | 6436 | import os
import json
import time
from caspar import CasparServer
SESSION_DIR = "sessions"
KEYS = {
"LG01" : 20,
"LG02" : 21,
"LG03" : 22,
"LG04" : 23,
"LG05" : 16,
"LG06" : 17,
"LG07" : 18,
"LG08" : 19,
"LG09" : 12,
"LG10" : 13,
"LG11" : 14,
"L... | mit | 1,857,577,597,477,397,500 | 24.277551 | 123 | 0.482132 | false |
camptocamp/QGIS | python/plugins/processing/algs/VectorLayerHistogram.py | 1 | 2809 | # -*- coding: utf-8 -*-
"""
***************************************************************************
EquivalentNumField.py
---------------------
Date : January 2013
Copyright : (C) 2013 by Victor Olaya
Email : volayaf at gmail dot com
*******************... | gpl-2.0 | -1,480,211,663,228,776,400 | 40.308824 | 120 | 0.582414 | false |
mbrukman/cloud-launcher | console/appengine/compute_api_base.py | 1 | 3530 | #!/usr/bin/python
#
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | -7,540,717,689,034,970,000 | 32.301887 | 81 | 0.612748 | false |
scholer/py2cytoscape | py2cytoscape/data/network_view.py | 1 | 6734 | # -*- coding: utf-8 -*-
import json
import pandas as pd
import requests
from py2cytoscape.data.edge_view import EdgeView
from py2cytoscape.data.node_view import NodeView
from . import BASE_URL, HEADERS
from py2cytoscape.data.util_network import NetworkUtil
BASE_URL_NETWORK = BASE_URL + 'networks'
class CyNetworkVi... | mit | 2,320,199,743,992,444,000 | 28.79646 | 92 | 0.527027 | false |
The-Fonz/adventure-track | backend/adventures/db.py | 1 | 6697 | import sys
import asyncio
import asyncpg
import unittest
import datetime
from os import environ
import jsonschema
from ..schemas import JSON_SCHEMA_LOCATION_GPS_POINT
from ..utils import db_test_case_factory, record_to_dict, records_to_dict, convert_to_datetime, getLogger, MicroserviceDb, friendlyhash
logger = getLo... | mit | 604,051,653,595,160,700 | 36.836158 | 135 | 0.622667 | false |
tiagocoutinho/qarbon | qarbon/qt/designer/plugins/base.py | 1 | 5728 | # ----------------------------------------------------------------------------
# This file is part of qarbon (http://qarbon.rtfd.org/)
#
# Copyright (c) 2013 European Synchrotron Radiation Facility, Grenoble, France
#
# Distributed under the terms of the GNU Lesser General Public License,
# either version 3 of the Lice... | lgpl-3.0 | 2,594,814,560,425,023,500 | 32.893491 | 79 | 0.604399 | false |
raytung/Slice | Slice/helper.py | 1 | 1240 | from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
def get_sorted_model(request, model):
sort = request.GET.get('sort', None)
obj = model
if sort == "price_lth":
obj = model.order_by('cost_per_unit')
elif sort == "price_htl":
obj = model.order_by('-cost_per_unit')... | mit | 9,062,097,367,307,635,000 | 30.794872 | 72 | 0.604839 | false |
lmorchard/badger | apps/badges/views.py | 1 | 17108 | import hashlib
from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, HttpResponse
from django.http import HttpResponseForbidden
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django... | bsd-3-clause | 5,775,551,979,241,219,000 | 37.272931 | 95 | 0.621639 | false |
gferreira/hTools2_extension | hTools2.roboFontExt/lib/hTools2/extras/equalize.py | 1 | 4304 | # -*- coding: utf-8 -*-
# equalize.py
# by Jens Kutilek
# https://github.com/jenskutilek/Curve-Equalizer
#-----------------------
# EQMethods/geometry.py
#-----------------------
from math import atan2, cos, pi, sin, sqrt
# helper functions
def getTriangleArea(a, b, c):
return (b.x - a.x) * (c.y - a.y) - (c.x... | bsd-3-clause | 1,844,910,442,797,623,300 | 27.686667 | 108 | 0.572391 | false |
cmsdaq/hltd | lib/python-inotify-0.5/inotify/watcher.py | 1 | 10565 | # watcher.py - high-level interfaces to the Linux inotify subsystem
# Copyright 2006 Bryan O'Sullivan <bos@serpentine.com>
# This library is free software; you can redistribute it and/or modify
# it under the terms of version 2.1 of the GNU Lesser General Public
# License, incorporated herein by reference.
'''High-l... | lgpl-3.0 | -1,142,226,267,472,128,100 | 30.537313 | 79 | 0.608045 | false |
teamfx/openjfx-9-dev-rt | modules/javafx.web/src/main/native/Tools/Scripts/webkitpy/port/xvfbdriver.py | 1 | 5142 | # Copyright (C) 2010 Google Inc. All rights reserved.
# Copyright (C) 2014 Igalia S.L.
#
# 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,... | gpl-2.0 | -9,165,940,927,032,183,000 | 40.804878 | 150 | 0.661221 | false |
fjacob21/pycon2015 | elpiwear/proximity_warning.py | 1 | 1278 | import Edison.i2c as I2C
import sharp2y0a21
import ads1015
import time
import thread
class proximity_warning:
def __init__(self, sensorid, calibration, sensing_freq):
self.sensing_freq = sensing_freq
self.warning = []
adc = ads1015.ads1015(I2C.i2c(1,0x48))
adc.setchannel(sensorid, ... | mit | 3,095,774,286,955,395,000 | 29.428571 | 72 | 0.619718 | false |
0111001101111010/cs595-f13 | assignment5/Q2/q2.py | 1 | 2515 | # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
import requests
from requests_oauthlib import OAuth1
from urlparse import parse_qs
import json
REQUEST_TOKEN_URL = "https://api.twitter.com/oauth/request_token"
AUTHORIZE_URL = "https://api.twitter.com/oauth/authorize?oauth_token="
ACCESS_TOKEN_URL = "h... | mit | -1,771,581,753,640,997,600 | 35.463768 | 178 | 0.662823 | false |
benpetty/Code-Katas | katas/cafe_order_checker/test_cafe_order_checker.py | 1 | 1249 | import unittest
from .cafe_order_checker import is_first_come_first_served
class Test(unittest.TestCase):
def test_both_registers_have_same_number_of_orders(self):
result = is_first_come_first_served([1, 4, 5], [2, 3, 6], [1, 2, 3, 4, 5, 6])
self.assertTrue(result)
def test_registers_have_di... | mit | 681,152,050,263,721,900 | 36.848485 | 85 | 0.606085 | false |
bigswitch/nova | nova/tests/fixtures.py | 1 | 23692 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | apache-2.0 | 3,816,916,576,215,729,000 | 34.52024 | 79 | 0.633716 | false |
n9code/pyerarchy | tests/core/test_modulenode.py | 1 | 1194 | import os
import shutil
from unittest import TestCase
from nose.tools import eq_, ok_
from pyerarchy.ex import BadValueError
from pyerarchy.modulenode import ModuleNode, ThisModuleNode
__author__ = 'bagrat'
class ModuleNodeTest(TestCase):
test_module_name = 'testmodule'
module_dir = os.path.join(os.path.dirn... | mit | -1,208,889,415,694,490,600 | 23.875 | 85 | 0.609715 | false |
maartenbreddels/vaex | packages/vaex-ui/vaex/ui/variables.py | 1 | 14562 | import sys
import vaex
import vaex.ui.qt as dialogs
from vaex.ui.qt import *
import logging
from vaex.ui.icons import iconfile
logger = logging.getLogger("vaex.ui.variables")
class VariablesTableModel(QtCore.QAbstractTableModel):
def __init__(self, dataset, parent=None, *args):
"""
:type dataset:... | mit | -4,402,532,888,900,061,700 | 42.861446 | 138 | 0.62512 | false |
oniwan/GCI | sele_chrome.py | 1 | 2504 | # -*- coding: utf-8 -*-
# import selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
import time
from selenium.webdriver.support.ui import Select
"""
Usage:
pyth... | mit | -3,550,176,927,295,015,000 | 25.924731 | 87 | 0.75 | false |
ZTH1970/alcide | scripts/check_double.py | 1 | 4980 | # -*- coding: utf-8 -*-
import sys
import alcide.settings
import django.core.management
from datetime import datetime
import csv
django.core.management.setup_environ(alcide.settings)
from alcide.dossiers.models import PatientRecord
from alcide.actes.models import Act
from django.db import transaction
@transaction.c... | agpl-3.0 | 203,624,864,541,269,220 | 42.304348 | 195 | 0.540361 | false |
cfobel/sconspiracy | Python/racy/plugins/graphlibext/__init__.py | 1 | 2002 | # -*- coding: UTF8 -*-
# ***** BEGIN LICENSE BLOCK *****
# Sconspiracy - Copyright (C) IRCAD, 2004-2010.
# Distributed under the terms of the BSD Licence as
# published by the Open Source Initiative.
# ****** END LICENSE BLOCK ******
import os
import racy
from racy import renv
from generategraph import generate_... | bsd-3-clause | -698,847,453,254,980,100 | 26.054054 | 80 | 0.496004 | false |
robocomp/robocomp-robolab | components/detection/test/emotionrecognitionclient/src/specificworker.py | 1 | 1855 | #
# Copyright (C) 2018 by YOUR NAME HERE
#
# This file is part of RoboComp
#
# RoboComp 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 | -4,520,935,583,855,662,000 | 29.409836 | 102 | 0.710512 | false |
wezhang/vim-setup | bundle/powerline/tools/colors_find.py | 1 | 1599 | #!/usr/bin/env python
from __future__ import division, print_function
import sys
import os
from colormath.color_objects import sRGBColor, LabColor
from colormath.color_conversions import convert_color
from colormath.color_diff import delta_e_cie2000
def get_lab(name, rgb):
rgb = sRGBColor(int(rgb[:2], 16), int(rgb[2... | apache-2.0 | -5,746,689,429,201,245,000 | 26.568966 | 93 | 0.659787 | false |
vipmunot/Data-Science-Course | ML/Python/Decision Tree/decision tree.py | 1 | 4104 | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 18 10:38:03 2016
@author: Vipul Munot
"""
tennis=[line.strip().split(',') for line in open('tennis.txt')]
test_tennis=[line.strip().split(',') for line in open('test-tennis.txt')]
data=[['slashdot','USA','yes',18,'None'],
['google','France','yes',23,'Premium'],
... | mit | -5,807,969,691,469,534,000 | 31.322835 | 81 | 0.591618 | false |
SimonGreenhill/pyvolve | setup.py | 1 | 1912 | #!/usr/bin/env python
##############################################################################
## pyvolve: Python platform for simulating evolutionary sequences.
##
## Written by Stephanie J. Spielman (stephanie.spielman@gmail.com)
##############################################################################... | bsd-2-clause | 3,765,216,009,948,310,000 | 46.8 | 260 | 0.655858 | false |
r0k3/arctic | tests/integration/store/test_pickle_store.py | 1 | 3584 | import bson
from datetime import datetime as dt, timedelta
from mock import patch
import numpy as np
import re
from arctic.arctic import Arctic
def test_save_read_bson(library):
blob = {'foo': dt(2015, 1, 1), 'bar': ['a', 'b', ['x', 'y', 'z']]}
library.write('BLOB', blob)
saved_blob = library.read('BLOB'... | lgpl-2.1 | -7,309,243,607,013,723,000 | 34.485149 | 77 | 0.654576 | false |
pinterest/kingpin | kingpin/logging_utils/__init__.py | 1 | 6156 | # Copyright 2016 Pinterest, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | apache-2.0 | 4,123,217,767,275,541,000 | 37.006173 | 103 | 0.656595 | false |
Aleksei-Badyaev/rst2db | abstrys/cmd_rst2db.py | 1 | 3650 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# rst2db.py
# =========
#
# A reStructuredText to DocBook conversion tool, using Python's docutils
# library.
#
# by Eron Hennessey
from argparse import ArgumentParser
from argparse import RawDescriptionHelpFormatter
import os
import sys
from abstrys.docutils_ext.docboo... | bsd-3-clause | 7,693,333,083,520,566,000 | 36.244898 | 79 | 0.564384 | false |
HybridF5/jacket | jacket/tests/storage/unit/test_api_urlmap.py | 1 | 12850 | # Copyright (c) 2013 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 required by applicab... | apache-2.0 | -6,996,172,105,138,100,000 | 46.416974 | 79 | 0.539611 | false |
kingvuplus/xrd-alliance | lib/python/Screens/About.py | 1 | 9272 | from Screen import Screen
from Components.ActionMap import ActionMap
from Components.Sources.StaticText import StaticText
from Components.Harddisk import harddiskmanager
from Components.NimManager import nimmanager
from Components.About import about
from Components.ScrollLabel import ScrollLabel
from Components.Button ... | gpl-2.0 | 1,172,069,152,559,616,800 | 37.633333 | 203 | 0.620362 | false |
ggirelli/gpseq-img-py | pygpseq/anim/series.py | 1 | 12252 | # -*- coding: utf-8 -*-
'''
@author: Gabriele Girelli
@contact: gigi.ga90@gmail.com
@description: contains Series wrapper, which in turn contains Nucleus.
'''
# DEPENDENCIES =================================================================
import math
import os
import matplotlib.pyplot as plt
import numpy as np
fro... | mit | -8,803,791,289,384,075,000 | 31.327177 | 80 | 0.537382 | false |
HaydenFaulkner/phd | processing/image/img2vid.py | 1 | 1058 | from os import listdir, remove
from os.path import isfile, join
import numpy as np
import cv2
from cv2 import __version__
cv_ver = __version__.split('.')
NEW_OCV = True
if int(cv_ver[0]) < 3:
NEW_OCV = False
import cv2.cv as cv
mypath = '/media/hayden/UStorage/DATASETS/VIDEO/TENNIS/BBS/imgtest/'
try:
rem... | mit | 117,083,903,024,079,600 | 22.511111 | 111 | 0.641777 | false |
lino-framework/extjs6 | lino_extjs6/setup_info.py | 1 | 1673 | # -*- coding: UTF-8 -*-
# Copyright 2015-2021 Rumma & Ko Ltd
# License: GNU Affero General Public License v3 (see file COPYING for details)
SETUP_INFO = dict(
name='lino_extjs6',
version='17.10.0',
install_requires=['lino', 'lino_noi'],
tests_require=[],
test_suite='tests',
description="The Se... | bsd-2-clause | -5,701,226,676,232,019,000 | 28.875 | 87 | 0.717274 | false |
fujicoin/electrum-fjc | electrum/transaction.py | 1 | 47135 | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2011 Thomas Voegtlin
#
# 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... | mit | 2,422,757,690,107,296,000 | 37.352319 | 144 | 0.586146 | false |
mazvv/travelcrm | travelcrm/views/transfers.py | 1 | 7321 | # -*-coding: utf-8-*-
import logging
from pyramid.view import view_config, view_defaults
from pyramid.httpexceptions import HTTPFound
from . import BaseView
from ..models import DBSession
from ..models.transfer import Transfer
from ..lib.bl.subscriptions import subscribe_resource
from ..lib.utils.common_utils import... | gpl-3.0 | 309,576,990,781,245,800 | 25.718978 | 67 | 0.514274 | false |
cinaljess/btools | type2_endcheck.py | 1 | 3097 | """
Module to check whether TypeIIs end-sites are compatible. Looks for
3bp homology then 2 basepair edge-homology for each input sequence given.
Comparisons are made between each element in the list and to the reverse
complement of each element. Repeat elements are also validated along with
noncanonical basepairs.
Ex... | mit | 4,699,142,080,002,238,000 | 29.663366 | 115 | 0.542783 | false |
Rogentos/legacy-anaconda | installclasses/awesome.py | 1 | 2620 | #
# awesome.py
#
# Copyright (C) 2010 Fabio Erculiani
#
# 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... | gpl-2.0 | -426,004,386,784,388,740 | 28.772727 | 83 | 0.682061 | false |
tomkralidis/GeoHealthCheck | GeoHealthCheck/views.py | 1 | 7335 | # =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
#
# Copyright (c) 2014 Tom Kralidis
#
# 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 | 5,648,417,238,336,906,000 | 29.5625 | 77 | 0.602727 | false |
openstack-infra/shade | shade/tests/functional/test_qos_dscp_marking_rule.py | 1 | 2765 | # Copyright 2017 OVH SAS
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | apache-2.0 | -1,427,621,251,748,246,500 | 35.866667 | 77 | 0.656058 | false |
markflyhigh/incubator-beam | sdks/python/apache_beam/testing/benchmarks/chicago_taxi/process_tfma.py | 1 | 6321 | # Copyright 2019 Google 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 License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 | -1,630,657,879,157,112,000 | 31.751295 | 80 | 0.684385 | false |
ibrahimsharaf/crashsimilarity | tests/test_model.py | 1 | 11586 | import unittest
import multiprocessing
import numpy as np
from crashsimilarity.stacktrace import StackTraceProcessor
from crashsimilarity.models import doc2vec, word2vec
class CrashSimilarityTest(unittest.TestCase):
# Train Model to be used in all tests
@classmethod
def setUpClass(self):
self.pat... | mpl-2.0 | 912,696,117,037,497,200 | 62.311475 | 828 | 0.702745 | false |
yuxans/badgirl | src/hi.py | 1 | 1145 | #!/usr/bin/env python
# Copyright (c) 2002 Brad Stewart
#
# 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 pro... | gpl-2.0 | 8,807,207,375,120,387,000 | 31.714286 | 77 | 0.725764 | false |
ESRF-BCU/emotion | tests/TestStates.py | 1 | 2381 | import unittest
import sys
import os
sys.path.insert(
0,
os.path.abspath(
os.path.join(
os.path.dirname(__file__),
"..")))
from emotion.axis import AxisState
class TestStates(unittest.TestCase):
def setUp(self):
pass
def test_states(self):
# empty st... | gpl-2.0 | 2,039,020,055,200,330,000 | 26.686047 | 79 | 0.577488 | false |
cschnei3/forseti-security | google/cloud/security/common/gcp_api/cloud_billing.py | 1 | 1114 | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | apache-2.0 | 6,946,702,708,777,584,000 | 33.8125 | 76 | 0.737882 | false |
tonybaloney/st2 | st2common/st2common/services/keyvalues.py | 1 | 6723 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | apache-2.0 | 2,687,711,165,332,260,400 | 32.78392 | 96 | 0.633348 | false |
tedlaz/pyted | misthodosia/payroll/calc_example.py | 1 | 1345 | # -*- coding: utf-8 -*-
"""Module calc_example.py"""
if __name__ == '__main__':
import calc as c
B105 = c.Erg(50, 45.66, 18.95, False)
B101 = c.Erg(40, 40.06, 15.5, False)
# -----------------------------------------------
# Nea pososta IKA
#
# Perigrafi ergazomenos Ergodotis Syno... | gpl-3.0 | -7,101,075,765,270,606,000 | 36.361111 | 53 | 0.394796 | false |
bobthekingofegypt/bobswitch-python | bobswitch/bobswitch.py | 1 | 9377 | # -*- coding: utf-8 -*-
"""
BobSwitch
~~~~~~~~~~~~~~
Online HTML5 version of the backpackers card game switch, also known as
crazy eights and a lot of different names. This version follows the rules
that I know.
:copyright: (c) Copyright 2013 by Bob
:license: BSD, see LICENSE for more d... | bsd-2-clause | -6,035,321,964,526,752,000 | 28.394984 | 102 | 0.581423 | false |
DailyActie/Surrogate-Model | 01-codes/tensorflow-master/tensorflow/python/framework/importer_test.py | 1 | 27395 | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | mit | -8,157,558,870,680,343,000 | 38.818314 | 89 | 0.510422 | false |
xneby/tcs-web | tcsweb/settings.py | 1 | 2781 | import os
from django.conf import global_settings
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Karol Farbiś', 'kpchwk@gmail.com'),
)
MANAGERS = ADMINS
INSTALL_DIR = os.path.split(os.path.realpath(__file__ + '/../'))[0]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME... | gpl-2.0 | 3,219,644,417,738,109,000 | 22.361345 | 77 | 0.651799 | false |
zstackio/zstack-woodpecker | integrationtest/vm/mini/poweroff/test_poweroff_host.py | 1 | 3324 | '''
Integration test for testing power off mini hosts.
#1.operations & power off random hosts
#2.start hosts
#3.duplicated operation
@author: zhaohao.chen
'''
import apibinding.inventory as inventory
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_state as test_state
import zstackwoodpecker... | apache-2.0 | -2,094,428,342,097,665,000 | 38.571429 | 118 | 0.702768 | false |
aleksandra-tarkowska/django | django/contrib/auth/forms.py | 1 | 15080 | from __future__ import unicode_literals
from collections import OrderedDict
from django import forms
from django.core.mail import EmailMultiAlternatives
from django.forms.utils import flatatt
from django.template import loader
from django.utils.encoding import force_bytes
from django.utils.html import format_html, fo... | bsd-3-clause | -5,871,558,577,920,095,000 | 36.889447 | 99 | 0.595358 | false |
googleapis/python-tpu | google/cloud/tpu_v1/types/cloud_tpu.py | 1 | 18294 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 2,643,863,080,764,787,000 | 32.690608 | 88 | 0.631464 | false |
lnielsen/invenio-metrics | invenio_metrics/admin.py | 1 | 1755 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015 CERN.
#
# Invenio 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... | gpl-2.0 | 7,231,030,946,259,079,000 | 28.25 | 76 | 0.716239 | false |
hmrs-cr/PyArcPics | main_flickruploader.py | 1 | 2463 | #!/usr/bin/python
# coding=UTF8
import argparse
import os
import sys
import utils
import flickruploader
def main():
def scan(fup):
print "Scanning folder", options.folder, "..."
pc, npc, pcs, npcs = fup.scan_directory(options.folder)
print pc, "total pictures found. (" + utils.sizeof_fmt... | apache-2.0 | -344,921,521,824,689,100 | 32.297297 | 118 | 0.636622 | false |
hongyan0118/uiautotestmacaca | THhealth/ForTest/run.py | 1 | 2307 | #-*- coding: utf-8 -*-
import os
import sys
from macaca import WebDriver
sys.path.append(os.path.split(os.path.split(os.path.abspath(''))[0])[0])
from Public.Log import Log
from Public.ReportPath import ReportPath
from Public.BasePage import BasePage
from THhealth.PageObject.THhealthHomePage import THhealthHomePage... | gpl-3.0 | 2,311,017,891,375,832,600 | 26.464286 | 85 | 0.627655 | false |
elite-lang/eobject | conanfile.py | 1 | 1107 | from conans import ConanFile, CMake, tools
class eobjectConan(ConanFile):
name = "eobject"
version = "0.1.2"
license = "MIT"
url = "https://github.com/elite-lang/eobject"
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = "shared=False", ... | mit | -6,422,170,414,423,412,000 | 33.59375 | 59 | 0.586269 | false |
Barrog/C4-Datapack | data/jscript/quests/37_PleaseMakeMeFormalWear/__init__.py | 1 | 3555 | # Made by disKret
import sys
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
MYSTERIOUS_CLOTH = 7076
JEWEL_BOX = 7077
SEWING_KIT = 7078
DRESS_SHOES_BOX = 7113
FORMAL_WEAR = 6408
SIGNE... | gpl-2.0 | -1,861,287,874,612,827,000 | 31.916667 | 142 | 0.648383 | false |
Laurawly/tvm-1 | python/tvm/relay/expr.py | 2 | 15511 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | 2,622,873,690,291,774,500 | 27.724074 | 92 | 0.610857 | false |
lebrice/SimpleParsing | simple_parsing/helpers/flatten.py | 1 | 6257 | import dataclasses
import warnings
from typing import *
from ..logging_utils import get_logger
logger = get_logger(__file__)
class FlattenedAccess:
""" Allows flattened access to the attributes of all children dataclasses.
This is meant to simplify the adoption of dataclasses for argument
hierarchies, r... | mit | 6,998,036,661,539,236,000 | 38.10625 | 80 | 0.55362 | false |
caseman/grease | test/field_test.py | 1 | 9571 | import unittest
class TestData(object):
def __init__(self, entity=None, **kw):
self.entity = entity
self.__dict__.update(kw)
class TestComponent(dict):
def __init__(self, entities=()):
self.entities = set(entities)
def __getitem__(self, entity):
return self.setdefault(entity, TestData(entity))
clas... | mit | -2,909,231,861,432,820,700 | 31.334459 | 79 | 0.66994 | false |
mozilla/firefox-flicks | vendor-local/lib/python/celery/tests/events/test_state.py | 1 | 11017 | from __future__ import absolute_import
from time import time
from itertools import count
from celery import states
from celery.events import Event
from celery.events.state import State, Worker, Task, HEARTBEAT_EXPIRE_WINDOW
from celery.utils import uuid
from celery.tests.utils import Case
class replay(object):
... | bsd-3-clause | 9,053,397,113,431,262,000 | 30.74928 | 76 | 0.564764 | false |
huertasdanny/inertialsense | src/scripts/IS_raw2msg.py | 1 | 1078 | #!/usr/bin/env python
import rospy
import serial
import checksum
from serial import SerialException
from std_msgs.msg import String
from create_dummy_msg import msg_creator
from sensor_msgs.msg import Imu
from sensor_msgs.msg import MagneticField as Mag
from inertialsense.msg import Rawgps
from inertialsense.msg impor... | mit | 2,085,095,145,195,710,700 | 29.828571 | 78 | 0.669759 | false |
tahir24434/hydra | src/integrationtest/python/mesos_marathon_tests.py | 1 | 10264 | __author__ = 'sushil'
from sys import path
path.append("src/main/python")
# from mockito import mock, verify
import unittest
import numbers
import requests
import time
import zmq
from pprint import pprint
from hydra.lib.hydrabase import HydraBase
'''
tests :
-Check connectivity to mesos
-check connectivity to mara... | apache-2.0 | 2,804,152,728,249,021,000 | 38.175573 | 117 | 0.579793 | false |
OpenDrift/opendrift | tests/models/test_readers.py | 1 | 29038 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of OpenDrift.
#
# OpenDrift 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, version 2
#
# OpenDrift is distributed in the hope that it will b... | gpl-2.0 | 725,903,119,507,081,100 | 45.4608 | 159 | 0.581273 | false |
minlexx/pyevemon | esi_client/models/post_characters_character_id_fittings_internal_server_error.py | 1 | 3184 | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online
OpenAPI spec version: 0.4.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class PostCharactersCharacterIdFittingsInternalServerError(objec... | gpl-3.0 | 7,696,429,520,693,101,000 | 26.213675 | 93 | 0.550879 | false |
dombrno/PG | Source/jugfile.py | 1 | 2178 | import numpy as np
import sys
from jug import TaskGenerator
from os.path import expanduser
HOME = expanduser("~")
if "storage" in HOME:
HOME = "/storage/home/geffroy"
sys.path.append(HOME + "/Code/PG/Source")
from phase_fluctuations import DWaveModel
from MCMC import MCMCDriver
# pylint: disable=E1101
N_RUNS = 32... | bsd-2-clause | -4,546,423,208,315,066,000 | 32.507692 | 79 | 0.60101 | false |
JiscPER/magnificent-octopus | octopus/modules/store/store.py | 2 | 7571 | from octopus.core import app
from octopus.lib import plugin
import os, shutil, codecs, requests
class StoreException(Exception):
pass
class StoreFactory(object):
@classmethod
def get(cls):
"""
Returns an implementation of the base Store class
"""
si = app.config.get("STOR... | apache-2.0 | 4,119,218,953,609,552,000 | 34.712264 | 134 | 0.574165 | false |
amenonsen/ansible | lib/ansible/modules/network/vyos/vyos_facts.py | 1 | 5074 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The module file for vyos_facts
"""
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': [u'preview'],
'suppo... | gpl-3.0 | 5,879,169,841,019,203,000 | 28.672515 | 131 | 0.707331 | false |
nchammas/asyncssh | asyncssh/crypto/__init__.py | 1 | 1106 | # Copyright (c) 2014-2015 by Ron Frederick <ronf@timeheart.net>.
# All rights reserved.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License v1.0 which accompanies this
# distribution and is available at:
#
# http://www.eclipse.org/legal/epl-v10.html
#
#... | epl-1.0 | -3,590,496,492,120,453,000 | 28.891892 | 70 | 0.764014 | false |
MattNolanLab/Ramsden_MEC | ABAFunctions/ABA_errors.py | 1 | 4010 | '''
Code for error analysis
Copyright (c) 2014, Helen Ramsden
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of cond... | bsd-3-clause | -302,379,405,673,964,100 | 40.770833 | 118 | 0.738903 | false |
a-bioinformatician/BreaKmer | breakmer.py | 1 | 6445 | #! /usr/bin/local/python
# -*- coding: utf-8 -*-
import argparse
import breakmer.params as params
import breakmer.processor.analysis as breakmer_analysis
__author__ = "Ryan Abo"
__copyright__ = "Copyright 2015, Ryan Abo"
__email__ = "ryanabo@gmail.com"
__license__ = "MIT"
'''
Main script that initiates the BreaKmer... | mit | -7,582,707,566,662,515,000 | 88.513889 | 236 | 0.735609 | false |
dbrgn/fahrplan | fahrplan/parser.py | 1 | 8199 | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
import re
import logging
keywords = {
'de': {
'now': ['jetzt', 'sofort', 'nun'],
'noon': ['mittag'],
'midnight': ['mitternacht'],
'today': ["heute"],
'tomorrow': ["morgen"],
'at': ['um', 'am'],
... | gpl-3.0 | 4,953,203,306,949,588,000 | 29.232472 | 102 | 0.549738 | false |
toucheJterm2015/touche | testing/tests/admin/SetupHeadersForbiddenTest.py | 1 | 8114 | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | gpl-2.0 | 2,244,912,800,512,903,700 | 58.661765 | 187 | 0.660217 | false |
nick-huang-cc/GraffitiSpaceTT | UnderstandStudyPython/virtualenv_stu.py | 1 | 1524 | #!/usr/bin/env python3
# -*- coding:UTF-8 -*-
#Copyright (c) 1986 Nick Wong.
#Copyright (c) 2016-2026 TP-NEW Corp.
# License: TP-NEW (www.tp-new.com)
__author__ = "Nick Wong"
'''
virtualenv 为应用创建“隔离”环境
virtualenv为应用提供了隔离的Python运行环境,解决了不同应用间多版本的冲突问题。
python3.3以后自带venv模块支持轻量级虚拟环境,virtualenv模块仍然支持,可安装。
1.创建虚拟环境
vir... | agpl-3.0 | -525,844,414,552,857,900 | 17.349206 | 64 | 0.699827 | false |
novafloss/django-agnocomplete | demo/tests/test_admin_views.py | 1 | 1715 | from django.test import TestCase
from django.urls import reverse
from django.contrib.auth.models import User
from ..admin import FavoriteColorModelForm
class AdminTest(TestCase):
def setUp(self):
super(AdminTest, self).setUp()
# create a superuser to be logged in
self.admin = User.object... | mit | -7,278,609,756,175,482,000 | 37.977273 | 75 | 0.670554 | false |
ToBaer94/pygame_platformer | main.py | 1 | 2485 | import sys
import pygame as pg
from states.splash_state import SplashScreen
from states.map_state import Map
from states.gameplay_state import GamePlay
from states.level_start_state import LevelOpening
from states.gameover_state import GameOver
class Game(object):
def __init__(self, screen, states, start_state):
... | lgpl-3.0 | -5,079,104,401,813,210,000 | 23.362745 | 72 | 0.574648 | false |
bdang2012/taiga-back-casting | taiga/export_import/service.py | 1 | 21533 | # Copyright (C) 2014-2015 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014-2015 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2015 David Barragán <bameda@dbarragan.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# pub... | agpl-3.0 | 3,825,578,864,173,581,300 | 37.243339 | 120 | 0.643305 | false |
MwanzanFelipe/rockletonfortune | mysite/settings.py | 2 | 3895 | # Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | bsd-3-clause | -1,657,456,044,403,784,200 | 27.851852 | 76 | 0.672144 | false |
niwinz/Green-Mine | src/greenmine/urls.py | 1 | 2396 | # -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings
js_info_dict = {
'packages': ('greenmine',),
}
from greenmine.base.views import api
from greenmine.base.views import config
f... | bsd-3-clause | 4,532,184,812,102,661,000 | 35.30303 | 91 | 0.652337 | false |
jlmadurga/django-telegram-bot | tests/settings.py | 1 | 1578 | # flake8: noqa
DEBUG=True,
USE_TZ=True
DATABASES={
"default": {
"ENGINE": "django.db.backends.sqlite3",
}
}
ROOT_URLCONF="tests.urls"
INSTALLED_APPS=[
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sites",
'django.contrib.sessions',
"rest_framework",
"teleg... | bsd-3-clause | -4,487,073,036,846,639,600 | 22.205882 | 95 | 0.547529 | false |
peoplepower/composer-sdk-python | com.ppc.Bot/devices/thermostat/thermostat_sensibo_sky.py | 1 | 3433 | '''
Created on March 27, 2017
This file is subject to the terms and conditions defined in the
file 'LICENSE.txt', which is part of this source code package.
@author: David Moss
'''
# Device Model
# https://presence.atlassian.net/wiki/display/devices/Thermostat
from devices.thermostat.thermostat import ThermostatDev... | apache-2.0 | -1,692,354,210,386,324,500 | 28.603448 | 139 | 0.630352 | false |
dev4dev-io/pynt-aws | pyntaws/services/_cloudformation.py | 1 | 11141 | import boto3, botocore
import os, uuid, json, sys
from urlparse import urlparse
from boto3.s3.transfer import S3Transfer
from pyntaws.services._session import AWSSession
import __builtin__
__builtin__.validated_templates = list()
class AWSCloudFormation(AWSSession):
def __init__(self, **kwargs):
super(self.__... | apache-2.0 | -2,330,661,310,154,775,600 | 32.157738 | 123 | 0.614308 | false |
simonwittber/middleman | clients/py/serviceprovider.py | 1 | 5656 | #!/usr/bin/env python
import asyncio
import websockets
import io
import uuid
SERVER_KEY = "xyzzy"
class ServiceProvider:
def init(self, ws, require_uid):
self.requests = {}
self.pub_handlers = {}
self.req_handlers = {}
self.ws = ws
self.public_pub_events = []
self.... | mit | 5,184,258,623,825,570,000 | 34.35 | 117 | 0.554102 | false |
pFernbach/hpp-rbprm-corba | script/scenarios/sandbox/dynamic/stair_bauzil_hrp2_interp_noRamp.py | 1 | 7684 | from hpp.corbaserver.rbprm.rbprmbuilder import Builder
from hpp.corbaserver.rbprm.rbprmfullbody import FullBody
from hpp.gepetto import Viewer
import omniORB.any
import stair_bauzil_hrp2_path_noRamp as tp
import time
from hpp.corbaserver.rbprm.rbprmstate import State,StateHelper
from display_tools import *
from constr... | lgpl-3.0 | 131,489,017,659,525,180 | 27.671642 | 324 | 0.707965 | false |
phil65/script.skin.info.service | default.py | 1 | 11502 | import sys
import xbmc
import xbmcgui
import xbmcaddon
from Utils import *
ADDON = xbmcaddon.Addon()
ADDON_VERSION = ADDON.getAddonInfo('version')
WND = xbmcgui.Window(12003) # Video info dialog
HOME = xbmcgui.Window(10000) # Home Window
class Daemon:
def __init__(self):
log("version %s started" % ADD... | gpl-2.0 | -977,660,144,505,376,900 | 57.984615 | 414 | 0.580595 | false |
ThatOneRoadie/stratux-cosensor | cosensor-monitor.py | 1 | 1668 | import smbus
import time
import os
import RPi.GPIO as GPIO
bus = smbus.SMBus(1)
# Set PPM limit variable to whatever would be an alarm for you
# For Uncalibrated sensors, use your better judgement or get it calibrated (390 is a fresh air outdoor baseline, depending on area).
# Sensor can also be calibrated by immersi... | mit | 81,206,056,788,457,280 | 34.489362 | 149 | 0.720024 | false |
mgoffin/osquery | tools/tests/utils.py | 1 | 5567 | #!/usr/bin/env python
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from... | bsd-3-clause | -1,210,987,767,397,652,200 | 29.420765 | 78 | 0.574636 | false |
kristopher-h/vim-lsp | tools/create_portable_pyls.py | 2 | 4830 | #!/usr/bin/env python3
# Copyright 2017 Kristopher Heijari
#
# This file is part of vim-liq.
#
# vim-liq 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) a... | gpl-3.0 | -2,896,001,511,584,766,500 | 34.514706 | 96 | 0.64617 | false |
vishnuprasadb/ResumeParser.py | code.py | 1 | 33299 | class ResumeXmlHandler(xml.sax.ContentHandler):
def __init__(self):
self.node = ''
self.params = {}
self.error = None
def startElement(self, name, attrs):
self.node = name
def endElement(self, name):
self.node = ''
... | mit | -7,531,375,839,906,011,000 | 43.877358 | 369 | 0.478483 | false |
clawpack/clawpack-4.x | book/chap23/acoustics/1drad/setplot.py | 2 | 2339 |
"""
Set up the plot figures, axes, and items to be done for each frame.
This module is imported by the plotting routines and then the
function setplot is called to set the plot parameters.
"""
#--------------------------
def setplot(plotdata):
#--------------------------
"""
Specify what is to b... | bsd-3-clause | 3,620,500,045,018,423,000 | 30.2 | 74 | 0.61009 | false |
zentralopensource/zentral | zentral/conf/config.py | 1 | 9328 | import base64
import itertools
import json
import logging
import os
import re
import time
from .buckets import get_bucket_client
from .params import get_param_client
from .secrets import get_secret_client
logger = logging.getLogger("zentral.conf.config")
class Proxy:
pass
class EnvProxy(Proxy):
def __init... | apache-2.0 | 3,172,948,845,984,597,500 | 28.897436 | 103 | 0.561321 | false |
erikhvatum/RisWidget | ris_widget/qwidgets/layer_table.py | 1 | 21314 | # The MIT License (MIT)
#
# Copyright (c) 2015 WUSTL ZPLAB
#
# 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, modif... | mit | -986,687,564,985,971,600 | 45.641138 | 134 | 0.636248 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.