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 |
|---|---|---|---|---|---|---|---|---|---|---|
probardjango/Comercio-Digital | src/comerciodigital/settings.py | 1 | 2734 | """
Django settings for comerciodigital project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Buil... | mit | 1,172,620,309,974,841,600 | 25.288462 | 71 | 0.695684 | false |
beeftornado/sentry | tests/sentry/event_manager/interfaces/test_http.py | 1 | 3923 | from __future__ import absolute_import
import pytest
from sentry import eventstore
from sentry.event_manager import EventManager
@pytest.fixture
def make_http_snapshot(insta_snapshot):
def inner(data):
mgr = EventManager(data={"request": data})
mgr.normalize()
evt = eventstore.create_eve... | bsd-3-clause | -7,135,125,457,729,543,000 | 27.845588 | 96 | 0.642366 | false |
YorkUIRLab/eosdb | topic_coherence.py | 1 | 2591 |
# coding: utf-8
# In[4]:
import glob
from datetime import datetime
import logging as log
import gensim
import matplotlib.pyplot as plt
import pyLDAvis
import pyLDAvis.gensim
from gensim.models import CoherenceModel
from sklearn.externals import joblib
import gzip
from multiprocessing import Pool
get_ipython().magic(... | lgpl-3.0 | -2,668,634,247,923,791,000 | 24.15534 | 109 | 0.643381 | false |
gallupliu/QA | data/models.py | 1 | 2787 | # encoding: utf-8
"""
@author: gallupliu
@contact: gallup-liu@hotmail.com
@version: 1.0
@license: Apache Licence
@file: models.py
@time: 2018/1/12 23:19
"""
from data.util import unique_items
class MetadataItem(object):
def __init__(self):
self.metadata = dict()
class Token(MetadataItem):
def _... | apache-2.0 | -6,584,500,800,930,892,000 | 21.119048 | 63 | 0.541442 | false |
tchellomello/home-assistant | homeassistant/components/nexia/__init__.py | 1 | 3636 | """Support for Nexia / Trane XL Thermostats."""
import asyncio
from datetime import timedelta
from functools import partial
import logging
from nexia.home import NexiaHome
from requests.exceptions import ConnectTimeout, HTTPError
import voluptuous as vol
from homeassistant.config_entries import SOURCE_IMPORT, ConfigE... | apache-2.0 | -5,522,290,898,928,607,000 | 27.857143 | 88 | 0.641364 | false |
comsaint/legco-watch | app/raw/tests/test_agenda.py | 1 | 7371 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Tests for CouncilAgenda object
from django.test import TestCase
import logging
from raw.docs import agenda
# We use fixtures which are raw HTML versions of the agendas to test the parser
# Each test case works with one source.
logging.disable(logging.CRITICAL)
class Agen... | mit | -6,964,750,088,137,517,000 | 41.16763 | 166 | 0.677039 | false |
ajaygarg84/sugar | src/jarabe/view/keyhandler.py | 1 | 7320 | # Copyright (C) 2006-2007, Red Hat, Inc.
# Copyright (C) 2009 Simon Schampijer
#
# 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 ... | gpl-2.0 | -8,039,884,357,420,951,000 | 33.046512 | 78 | 0.609426 | false |
8l/beri | cheritest/trunk/tests/cp0/test_tne_eq.py | 2 | 1330 | #-
# Copyright (c) 2011 Robert N. M. Watson
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
# ("CTSRD"), as part of the DARPA CRASH research programme.
#
# @BERI_LICENSE_HEADER_START@
#
# License... | apache-2.0 | 7,479,388,609,859,914,000 | 40.5625 | 77 | 0.76015 | false |
tboyce1/home-assistant | homeassistant/components/ihc/__init__.py | 2 | 7715 | """IHC component.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/ihc/
"""
import logging
import os.path
import xml.etree.ElementTree
import voluptuous as vol
from homeassistant.components.ihc.const import (
ATTR_IHC_ID, ATTR_VALUE, CONF_INFO, CONF_... | apache-2.0 | -6,294,268,968,842,588,000 | 35.220657 | 76 | 0.615813 | false |
ODM2/ODM2YODAParser | yodatools/dataloader/view/clsDBConfig.py | 2 | 6433 | # -*- coding: utf-8 -*-
###########################################################################
# Python code generated with wxFormBuilder (version Jun 5 2014)
# http://www.wxformbuilder.org/
#
# TODO: (Is this something we should follow?) PLEASE DO 'NOT' EDIT THIS FILE!
##########################################... | bsd-3-clause | -6,074,380,409,445,029,000 | 47.368421 | 163 | 0.625214 | false |
NicoVarg99/daf-recipes | ckan/ckan/ckanext-dcatapit/ckanext/dcatapit/dcat/harvester.py | 1 | 3892 | import logging
import ckan.plugins as p
from ckanext.dcat.interfaces import IDCATRDFHarvester
from ckanext.dcatapit.dcat.profiles import LOCALISED_DICT_NAME_BASE, LOCALISED_DICT_NAME_RESOURCES
import ckanext.dcatapit.interfaces as interfaces
log = logging.getLogger(__name__)
class DCATAPITHarvesterPlugin(p.Singlet... | gpl-3.0 | 3,424,962,919,449,245,000 | 34.063063 | 98 | 0.5889 | false |
nfsli926/stock | python/com/nfs/util/dbutil.py | 1 | 21744 | # coding=utf-8
# 2015年9月25创建
__author__ = 'litao'
from sqlalchemy import create_engine
import tushare as ts
import urllib
import urllib2
import re
import sys
import csv
import MySQLdb
import tushare as ts
import datetime
import time
import DateUtil as dateutil
# 导入股票前复权数据
#code:string,股票代码 e.g. 600848
#start:string,开始日... | apache-2.0 | -292,003,996,196,294,460 | 30.665079 | 90 | 0.607129 | false |
FrancescSala/Instagram-Challenge | solution/shr.py | 1 | 1485 | from PIL import Image
from random import shuffle
import sys
if len(sys.argv) != 4: sys.exit("Usage: python shr.py input_image num_shreds output_image")
# load the input image
img = Image.open(sys.argv[1])
# read the desired number of shreds
numShreds = int(sys.argv[2])
if numShreds < 2: sys.exit("Expected number of ... | mit | 5,471,137,774,938,985,000 | 32.75 | 95 | 0.708418 | false |
ultrabug/py3status | py3status/modules/vpn_status.py | 1 | 4561 | """
Drop-in replacement for i3status run_watch VPN module.
Expands on the i3status module by displaying the name of the connected vpn
using pydbus. Asynchronously updates on dbus signals unless check_pid is True.
Configuration parameters:
cache_timeout: How often to refresh in seconds when check_pid is True.
... | bsd-3-clause | -3,124,280,615,940,087,000 | 29.205298 | 80 | 0.612146 | false |
uncommoncode/uscpy | stabilizer.py | 1 | 1757 | """
Image stabilization code.
"""
import argparse
import cv2
import uscpy.sequence
import uscpy.frame
import uscpy.video
parser = argparse.ArgumentParser(description="Perform image stabalization to a video")
parser.add_argument("input", help="input video path")
parser.add_argument("output", help="output video path")... | mit | 4,128,069,966,771,620,000 | 33.45098 | 138 | 0.715424 | false |
rishig/zulip | zerver/management/commands/show_unreads.py | 1 | 2690 |
from argparse import ArgumentParser
from typing import Any, Dict, List, Set
from django.core.management.base import CommandError
from zerver.lib.management import ZulipBaseCommand
from zerver.lib.topic_mutes import build_topic_mute_checker
from zerver.models import Recipient, Subscription, UserMessage, UserProfile
... | apache-2.0 | -5,050,300,999,581,726,000 | 31.409639 | 87 | 0.628253 | false |
FFMG/myoddweb.piger | monitor/api/python/Python-3.7.2/Lib/test/test_asyncio/test_buffered_proto.py | 3 | 2289 | import asyncio
import unittest
from test.test_asyncio import functional as func_tests
class ReceiveStuffProto(asyncio.BufferedProtocol):
def __init__(self, cb, con_lost_fut):
self.cb = cb
self.con_lost_fut = con_lost_fut
def get_buffer(self, sizehint):
self.buffer = bytearray(100)
... | gpl-2.0 | 3,146,373,992,116,577,000 | 25.929412 | 75 | 0.590651 | false |
foursquare/pants | tests/python/pants_test/targets/test_python_target.py | 1 | 3354 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import os
from pants.backend.jvm.artifact import Artifact
from pants.backend.jvm.reposit... | apache-2.0 | -1,106,594,334,127,231,900 | 45.583333 | 99 | 0.668157 | false |
adykstra/mne-python | mne/decoding/tests/test_search_light.py | 3 | 9819 | # Author: Jean-Remi King, <jeanremi.king@gmail.com>
#
# License: BSD (3-clause)
import numpy as np
from numpy.testing import assert_array_equal, assert_equal
import pytest
from mne.utils import requires_version
from mne.decoding.search_light import SlidingEstimator, GeneralizingEstimator
from mne.decoding.transformer... | bsd-3-clause | -2,644,951,725,918,423,000 | 33.696113 | 79 | 0.618291 | false |
vicnet/weboob | weboob/tools/pdf.py | 1 | 16156 | # -*- coding: utf-8 -*-
# Copyright(C) 2014 Oleg Plakhotniuk
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your o... | lgpl-3.0 | -273,186,497,165,296,580 | 31.441767 | 152 | 0.581703 | false |
istvanzk/RasPiConnectServer | ExecuteFiles/ExecuteServerStatus.py | 1 | 1371 | #!/usr/local/bin/python3
# Filename: ExecuteServerStatus.py
# Version 2.7 07/29/13 RV MiloCreek
# Version 3.0 04.04.2016 IzK (Python3.4+)
import Config
import subprocess
import xml.etree.ElementTree as ET
import Validate
import BuildResponse
import time
if (Config.i2c_demo()):
from pyblinkm import BlinkM, Scripts... | gpl-3.0 | -6,192,896,473,730,953,000 | 17.28 | 62 | 0.736689 | false |
berkmancenter/mediacloud | apps/extract-and-vector/tests/python/extract_and_vector/dbi/downloads/extract/test_process_download_for_extractor.py | 1 | 1308 | from extract_and_vector.dbi.downloads.extract import process_download_for_extractor
from .setup_test_extract import TestExtractDB
class TestProcessDownloadForExtractor(TestExtractDB):
def test_process_download_for_extractor(self):
# Make sure nothing's extracted yet and download text is not to be found
... | agpl-3.0 | 7,631,249,378,914,834,000 | 39.875 | 83 | 0.611621 | false |
linyc74/WinduVision | threads/process_thread.py | 1 | 9447 | import numpy as np
import cv2, time, sys, threading, json
from constants import *
from abstract_thread import *
from stereo import Stereo as stereo
class ProcessThread(AbstractThread):
def __init__(self, cap_thread_R, cap_thread_L, mediator):
super(ProcessThread, self).__init__()
self.cap_thread... | mit | -2,138,509,404,374,302,500 | 32.147368 | 108 | 0.565471 | false |
pibroch/ocfs2-test | programs/write_torture/write_torture.py | 1 | 4399 | #!/usr/bin/env python
#
#
# Copyright (C) 2006 Oracle. All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later ver... | gpl-2.0 | 5,714,742,131,041,537,000 | 23.713483 | 79 | 0.661287 | false |
amyth/phoenix | backends/core.py | 1 | 1130 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
########################################
##
# @author: Amyth
# @email: mail@amythsingh.com
# @website: www.techstricks.com
# @created_date: 01-03-2017
# @last_modify: Wed May 3 15:58:37 2017
##
########################################
import datet... | mit | -6,139,851,337,817,696,000 | 25.904762 | 92 | 0.574336 | false |
dgilman/atom_maker | schema.py | 1 | 2566 | # How to update the database schema
# 1. Create a new function that takes a sqlite3 db connection as an argument.
# 2. Have the function update schema and increase the user version, preferrably in a transaction
# 3. Put your function in the upgrade dict in check(). Its key is the schema version it is upgrading from.
#... | gpl-3.0 | -7,401,853,332,173,332,000 | 40.387097 | 132 | 0.721746 | false |
droundy/fac | tests/getting-started.py | 1 | 3162 | #!/usr/bin/python3
import sys, os, re, subprocess
if sys.version_info < (3,5):
print('Please run this script with python 3.5 or newer:', sys.version)
exit(137)
runre = re.compile(r'\[run\]: # \((.+)\)')
shellre = re.compile(r'^ \$ (.+)')
filere = re.compile(r'##### (.+)')
verbre = re.compile(r'^ (.*)')... | gpl-2.0 | 5,235,296,058,472,813,000 | 42.916667 | 75 | 0.448767 | false |
wakalixes/sqldataplot | plugins/pluginFitConstant.py | 1 | 1392 | #--------------------------------------------------
# Revision = $Rev: 13 $
# Date = $Date: 2011-07-31 00:39:24 +0200 (Sun, 31 Jul 2011) $
# Author = $Author: stefan $
#--------------------------------------------------
from pluginInterfaces import PluginFit, Parameter,leastsqFit
import numpy as np
class PluginFit... | gpl-2.0 | -5,941,994,962,134,405,000 | 34.692308 | 130 | 0.572557 | false |
qedsoftware/commcare-hq | corehq/apps/app_manager/models.py | 1 | 221033 | # coding=utf-8
"""
Application terminology
For any given application, there are a number of different documents.
The primary application document is an instance of Application. This
document id is what you'll see in the URL on most app manager pages. Primary
application documents should have `copy_of == None` and `i... | bsd-3-clause | -5,053,952,302,909,447,000 | 35.65539 | 132 | 0.582232 | false |
alphagov/notifications-api | app/utils.py | 1 | 5728 | from datetime import datetime, timedelta
import pytz
from flask import url_for
from notifications_utils.template import (
BroadcastMessageTemplate,
HTMLEmailTemplate,
LetterPrintTemplate,
SMSMessageTemplate,
)
from notifications_utils.timezones import convert_utc_to_bst
from sqlalchemy import func
DAT... | mit | -5,519,629,083,492,794,000 | 33.095238 | 118 | 0.68523 | false |
lbybee/march_madness | old/test_ranking.py | 1 | 2504 | import numpy as np
def genEstimates(rank_data, key):
"""takes in rank data from expandSeaData and returns a
list of matrices for each year"""
rank_values = rank_data[["team", key]].values
data_dict = {}
for row_i in rank_values:
data_dict[row_i[0]] = {}
for row_j in rank_values:
... | gpl-2.0 | -6,628,350,248,022,735,000 | 28.458824 | 74 | 0.559505 | false |
erigones/esdc-ce | api/vm/qga/views.py | 1 | 1509 | from api.decorators import api_view, request_data
from api.vm.qga.api_views import VmQGA
__all__ = ('vm_qga',)
#: vm_status: PUT: running, stopping
@api_view(('PUT',))
@request_data() # get_vm() = IsVmOwner
def vm_qga(request, hostname_or_uuid, command, data=None):
"""
Run (:http:put:`PUT </vm/(hostname_or... | apache-2.0 | 8,276,019,273,834,272,000 | 30.4375 | 96 | 0.555335 | false |
gnulinooks/sympy | sympy/geometry/line.py | 1 | 19520 | from sympy.core.basic import Basic, S, C
from sympy.simplify import simplify
from sympy.geometry.exceptions import GeometryError
from entity import GeometryEntity
from point import Point
class LinearEntity(GeometryEntity):
"""
A linear entity (line, ray, segment, etc) in space.
This is an abstract class a... | bsd-3-clause | -1,037,525,842,769,122,200 | 36.323136 | 98 | 0.509631 | false |
HewlettPackard/oneview-ansible | library/oneview_id_pools_ipv4_range.py | 1 | 6647 | #!/usr/bin/python
# -*- coding: utf-8 -*-
###
# Copyright (2016-2021) Hewlett Packard Enterprise Development LP
#
# 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/licen... | apache-2.0 | 579,202,707,146,734,800 | 39.779141 | 119 | 0.613811 | false |
nick-huang-cc/GraffitiSpaceTT | UnderstandStudyPython/awesome-python3-webapp/www/config_override.py | 1 | 1354 | #!/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"
"""
如果要部署到服务器时,通常需要修改数据库的host等信息,直接修改config_default.py不是一个好办法,
更好的方法是编写一个config_override.py,用来覆盖某些默认设置
"""
#由于密码等信息保存于本地,所以先读取自定义的配置文档文档获取需要的... | agpl-3.0 | -1,793,919,373,691,236,600 | 32.272727 | 84 | 0.709472 | false |
volk0ff/fred | fred/settings.py | 1 | 2229 | """
Django settings for fred project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | mit | 7,103,168,443,666,669,000 | 21.979381 | 71 | 0.696276 | false |
lfalvarez/votai | medianaranja2/forms.py | 1 | 12510 | # coding=utf-8
from django import forms
from popular_proposal.models import (PopularProposal
)
from elections.models import Area, QuestionCategory, Election
from django.conf import settings
from formtools.wizard.views import SessionWizardView
from medianaranja2.proposals_getter impo... | gpl-3.0 | -2,809,643,480,602,538,500 | 40.936242 | 224 | 0.641114 | false |
sserrot/champion_relationships | venv/Lib/site-packages/ipywidgets/widgets/__init__.py | 1 | 1512 | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from .widget import Widget, CallbackDispatcher, register, widget_serialization
from .domwidget import DOMWidget
from .valuewidget import ValueWidget
from .trait_types import Color, Datetime, NumberFormat
from .widget... | mit | -6,107,679,430,006,972,000 | 51.137931 | 150 | 0.829365 | false |
sreidy/roboticsclub.org | api/urls.py | 2 | 1047 | from rest_framework import routers, serializers, viewsets
from .views import *
from django.conf.urls import include, patterns, url
router = routers.DefaultRouter()
router.register(r'api_requests', APIRequestViewSet)
router.register(r'webcams', WebcamViewSet)
router.register(r'datetime', DateTimeViewSet, base_name="da... | mit | -4,484,347,834,260,364,000 | 37.777778 | 67 | 0.78319 | false |
PeRDy/django-audit-tools | audit_tools/tests/audit/views/api/test_mixins.py | 1 | 5328 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from collections import OrderedDict
from unittest import TestCase
from django.core.exceptions import ImproperlyConfigured
from mock import patch, MagicMock, call
from audit_tools.audit.views.api.mixins import AjaxFormMixin
class AjaxFormMixinTestCase(... | gpl-2.0 | 8,098,287,858,996,121,000 | 30.904192 | 91 | 0.632695 | false |
bastibl/gnuradio | gr-digital/python/digital/qa_ofdm_frame_equalizer_vcvc.py | 1 | 16372 | #!/usr/bin/env python
# Copyright 2012,2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your option)... | gpl-3.0 | 3,725,604,465,256,258,600 | 42.084211 | 117 | 0.524127 | false |
google/feedloader | appengine/uploader/shoptimizer_client.py | 1 | 9956 | # coding=utf-8
# Copyright 2021 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 agreed ... | apache-2.0 | -8,745,425,183,561,239,000 | 34.304965 | 118 | 0.67045 | false |
Alberto-Beralix/Beralix | i386-squashfs-root/usr/share/pyshared/pyatspi/state.py | 1 | 6076 | #Copyright (C) 2008 Codethink Ltd
#copyright: Copyright (c) 2005, 2007 IBM Corporation
#This library is free software; you can redistribute it and/or
#modify it under the terms of the GNU Lesser General Public
#License version 2 as published by the Free Software Foundation.
#This program is distributed in the hope th... | gpl-3.0 | -7,356,553,817,032,895,000 | 33.134831 | 93 | 0.563858 | false |
Cadene/pretrained-models.pytorch | pretrainedmodels/models/inceptionv4.py | 1 | 11479 | from __future__ import print_function, division, absolute_import
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.model_zoo as model_zoo
import os
import sys
__all__ = ['InceptionV4', 'inceptionv4']
pretrained_settings = {
'inceptionv4': {
'imagenet': {
'ur... | bsd-3-clause | 6,074,634,826,971,776,000 | 31.064246 | 94 | 0.554055 | false |
xuru/pyvisdk | pyvisdk/do/cluster_vm_host_rule_info.py | 1 | 1827 |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def ClusterVmHostRuleInfo(vim, *args, **kwargs):
'''A ClusterVmHostRuleInfo object identi... | mit | 8,006,430,162,297,734,000 | 41.511628 | 124 | 0.665572 | false |
Alignak-monitoring-contrib/alignak-backend | test/test_config.py | 1 | 3245 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This test checks backend configuration endpoint
"""
from __future__ import print_function
import os
import json
import time
import shlex
from random import randint
import subprocess
import requests
import requests_mock
import unittest2
from bson.objectid import ObjectI... | agpl-3.0 | 7,079,667,960,244,954,000 | 30.813725 | 99 | 0.580586 | false |
jeremiah-c-leary/vhdl-style-guide | vsg/tests/generate/test_rule_007.py | 1 | 1243 |
import os
import unittest
from vsg.rules import generate
from vsg import vhdlFile
from vsg.tests import utils
sTestDir = os.path.dirname(__file__)
lFile, eError =vhdlFile.utils.read_vhdlfile(os.path.join(sTestDir,'rule_007_test_input.vhd'))
dIndentMap = utils.read_indent_file()
lExpected = []
lExpected.append('')... | gpl-3.0 | -8,039,394,553,296,809,000 | 24.895833 | 106 | 0.679807 | false |
SamyCookie/python-ant | demos/ant.core/10-weight.py | 1 | 3095 | """
Extending on demo-03, implements an event callback we can use to process the
incoming data.
"""
from __future__ import print_function
import sys
import time
from ant.core import driver
from ant.core import node
from ant.core import event
from ant.core import message
from ant.core.constants import *
from config... | mit | 1,154,412,797,407,415,800 | 24.791667 | 83 | 0.652666 | false |
rkspsm/fixed-grid-image-viewer | main.py | 1 | 9870 | #! /usr/bin/env python3
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtMultimedia import *
from PyQt5.QtMultimediaWidgets import *
from math import *
from hashlib import sha256
import sys, os
import traceback
_args = sys.argv
class Stuff :
width = 800
height = 6... | agpl-3.0 | 5,272,151,468,709,609,000 | 26.115385 | 156 | 0.60233 | false |
xme1226/horizon | openstack_dashboard/dashboards/admin/instances/tables.py | 1 | 7326 | # Copyright 2012 OpenStack Foundation
# Copyright 2012 Nebula, 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
#
# Unle... | apache-2.0 | -1,049,580,477,358,358,000 | 39.927374 | 78 | 0.578078 | false |
AutorestCI/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/public_ip_addresses_operations.py | 1 | 33216 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | 4,068,427,091,507,885,600 | 46.451429 | 321 | 0.640595 | false |
onepercentclub/onepercentclub-site | apps/homepage/tests/test_api.py | 1 | 3550 | from datetime import timedelta
from bluebottle.bb_projects.models import ProjectPhase
from bluebottle.test.factory_models.accounts import BlueBottleUserFactory
from bluebottle.test.factory_models.utils import LanguageFactory
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.ut... | bsd-3-clause | -6,083,391,665,746,222,000 | 45.103896 | 126 | 0.70338 | false |
xinwu/bosi-1 | bosi/bosi.py | 1 | 18445 | import argparse
import datetime
import lib.constants as const
import os
import Queue
import random
import subprocess32 as subprocess
import threading
import time
import yaml
from collections import OrderedDict
from lib.environment import Environment
from lib.helper import Helper
from lib.util import safe_print
# queu... | apache-2.0 | -5,766,354,665,940,184,000 | 39.717439 | 97 | 0.557658 | false |
rstojonic/cheez_cave | cheez_cave/monitor.py | 1 | 4329 | #!/usr/bin/python
# Copyright (c) 2017
# Author: Ray Stojonic
#
# 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, m... | mit | 8,860,405,932,261,304,000 | 40.228571 | 86 | 0.683992 | false |
capecchi/capecchi.github.io | projects/ParkMaps/helpers.py | 1 | 4081 | from bs4 import BeautifulSoup
import geopy.distance as dist
import glob
import numpy as np
import gpxpy
def consecutive_arrays(arr):
consec_arr = []
consec = []
for i, arr_val in enumerate(arr):
if len(consec) == 0 or arr_val == consec[-1] + 1:
consec.append(arr_val)
else:
consec_arr.append(consec)
co... | mit | 6,959,912,168,072,804,000 | 28.572464 | 120 | 0.608674 | false |
mozman/ezdxf | src/ezdxf/tools/zipmanager.py | 1 | 2785 | # Copyright (c) 2014-2020, Manfred Moitzi
# License: MIT License
from typing import BinaryIO, cast, TextIO, List, Optional
import zipfile
from contextlib import contextmanager
from ezdxf.lldxf.validator import is_dxf_stream, dxf_info
CRLF = b'\r\n'
LF = b'\n'
class ZipReader:
def __init__(self, zip_archive_name... | mit | -9,120,386,809,456,004,000 | 36.133333 | 79 | 0.628725 | false |
membase/membase-cli | util_cli.py | 1 | 2446 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import itertools
BIG_VALUE = 2 ** 60
SMALL_VALUE = - (2 ** 60)
def hostport(hoststring, default_port=8091):
""" finds the host and port given a host:port string """
try:
host, port = hoststring.split(':')
port = int(port)
except Va... | apache-2.0 | 7,375,997,589,813,253,000 | 23.46 | 88 | 0.498365 | false |
obeattie/sqlalchemy | examples/graphs/directed_graph.py | 1 | 2180 | """a directed graph example."""
from sqlalchemy import MetaData, Table, Column, Integer, ForeignKey
from sqlalchemy.orm import mapper, relation, create_session
import logging
logging.basicConfig()
logging.getLogger('sqlalchemy.engine').setLevel(logging.INFO)
meta = MetaData('sqlite://')
nodes = Table('nodes', meta,... | mit | -4,302,172,050,639,920,600 | 24.348837 | 78 | 0.640367 | false |
jbohren-forks/catkin_tools | catkin_tools/verbs/catkin_list/cli.py | 1 | 3698 | # Copyright 2014 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 | 8,735,294,792,840,117,000 | 36.353535 | 87 | 0.604922 | false |
davidam/python-examples | basics/json/json2pandas.py | 1 | 1436 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2018 David Arroyo Menéndez
# Author: David Arroyo Menéndez <davidam@gnu.org>
# Maintainer: David Arroyo Menéndez <davidam@gnu.org>
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as p... | gpl-3.0 | 6,866,459,863,526,685,000 | 26.037736 | 70 | 0.691556 | false |
mckayward/floyd-cli | floyd/client/dataset.py | 1 | 1802 | import sys
from floyd.manager.auth_config import AuthConfigManager
from floyd.client.base import FloydHttpClient
from floyd.exceptions import (
FloydException, AuthenticationException, NotFoundException
)
from floyd.model.dataset import Dataset
from floyd.log import logger as floyd_logger
from floyd.manager.data_co... | apache-2.0 | -508,118,536,616,188,600 | 38.173913 | 104 | 0.643729 | false |
rhyolight/nupic.son | tests/app/melange/views/test_connection.py | 1 | 69883 | # Copyright 2014 the Melange 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 wr... | apache-2.0 | -1,343,540,183,369,436,200 | 39.232009 | 83 | 0.711332 | false |
stefanseefeld/numba | numba/tests/test_cffi.py | 1 | 4966 | from __future__ import print_function, division, absolute_import
import array
import numpy as np
import sys
from numba import unittest_support as unittest
from numba import jit, cffi_support, types, errors
from numba.compiler import compile_isolated, Flags
from numba.tests.support import TestCase, tag
import numba.t... | bsd-2-clause | -4,280,643,776,205,915,600 | 33.727273 | 78 | 0.610552 | false |
jackpien/rosbots | ros_ws/src/rosbots_driver/scripts/rosbots_driver/motor_driver.py | 1 | 4631 | #!/usr/bin/env python
#import RPIO as GPIO
import RPi.GPIO as GPIO
from RPIO import PWM
import RPIO
import rospy
from geometry_msgs.msg import Twist
class MotorDriverL9110S:
# Broadcom pin outs
# https://www.element14.com/community/servlet/JiveServlet/previewBody/73950-102-10-339300/pi3_gpio.png
le... | gpl-3.0 | 444,582,640,532,802,600 | 30.937931 | 106 | 0.525157 | false |
bieschke/nuffle | lib/python/formencode/validators.py | 1 | 59292 | ## FormEncode, a Form processor
## Copyright (C) 2003, Ian Bicking <ianb@colorstudy.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 Software Foundation; either
## version 2.1 of the License, or ... | gpl-2.0 | 8,930,365,845,739,722,000 | 32.114525 | 226 | 0.525029 | false |
tkolhar/robottelo | tests/foreman/cli/test_installer.py | 1 | 3597 | # -*- encoding: utf-8 -*-
"""Tests for Installer"""
from robottelo.decorators import run_only_on, stubbed
from robottelo.test import CLITestCase
class InstallerTestCase(CLITestCase):
"""Test class for installer"""
# Notes for installer testing:
# Perhaps there is a convenient log analyzer library out ther... | gpl-3.0 | -3,570,105,165,779,702,000 | 25.448529 | 79 | 0.626911 | false |
TeamODrKnow/doctor-know | main.py | 1 | 15028 | __author__ = 'jml168@pitt.edu (J. Matthew Landis)'
import os
import logging
import pickle
import webapp2
import time
import httplib2
import json
import tweepy
import haigha
from collections import Counter
from haigha.connections.rabbit_connection import RabbitConnection
from apiclient import discovery
from oauth2clie... | mit | -4,567,955,119,498,473,000 | 34.443396 | 161 | 0.5895 | false |
mbakke/ganeti | test/ganeti.jqueue_unittest.py | 1 | 85469 | #!/usr/bin/python
#
# Copyright (C) 2010, 2011 Google 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 p... | gpl-2.0 | -6,711,925,957,121,488,000 | 34.288604 | 80 | 0.642853 | false |
Nuevosmedios/ADL_LRS | adl_lrs/settings.py | 1 | 7317 | # Django settings for adl_lrs project.
from unipath import Path
# Root of LRS
SETTINGS_PATH = Path(__file__)
PROJECT_ROOT = SETTINGS_PATH.ancestor(3)
# If you want to debug
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': ... | apache-2.0 | -8,551,532,077,530,078,000 | 30.813043 | 101 | 0.66981 | false |
tomasdubec/openstack-cinder | cinder/tests/scheduler/test_host_filters.py | 1 | 6424 | # Copyright 2011 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 License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | apache-2.0 | -3,891,531,009,832,143,000 | 39.402516 | 78 | 0.603674 | false |
Diacamma2/asso | diacamma/asso/views.py | 1 | 1391 | # -*- coding: utf-8 -*-
'''
Syndic module to declare a new Diacamma appli
@author: Laurent GAY
@organization: sd-libre.fr
@contact: info@sd-libre.fr
@copyright: 2015 sd-libre.fr
@license: This file is part of Lucterios.
Lucterios is free software: you can redistribute it and/or modify
it under the terms of the GNU Ge... | gpl-3.0 | -8,452,789,103,961,414,000 | 34.666667 | 117 | 0.765636 | false |
mikalstill/ostrich | ostrich/stages/stage_40_enable_proxies.py | 1 | 3000 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | apache-2.0 | -6,931,821,039,428,020,000 | 35.144578 | 76 | 0.515333 | false |
pozetroninc/micropython | tests/float/float1.py | 1 | 2194 | # test basic float capabilities
# literals
print(.12)
print(1.)
print(1.2)
print(0e0)
print(0e+0)
print(0e-0)
# float construction
print(float(1.2))
print(float("1.2"))
print(float("+1"))
print(float("1e1"))
print(float("1e+1"))
print(float("1e-1"))
print(float("inf"))
print(float("-inf"))
print(float("INF"))
print(f... | mit | 6,278,333,151,221,868,000 | 17.132231 | 302 | 0.691431 | false |
ChaoticEvil/django_base | src/apps/pages/admin.py | 1 | 4774 | from django.contrib import admin
from .models import Page, Menu
from django.shortcuts import render, HttpResponse
from mptt.exceptions import InvalidMove
from apps.feincms.admin import tree_editor
from django_base.settings import SITE_NAME
from django.utils.translation import ugettext_lazy as _
from .forms import MenuP... | gpl-3.0 | -8,807,315,346,340,670,000 | 33.935484 | 112 | 0.537627 | false |
skylina/test | public/BasePage.py | 1 | 6311 | # -*- coding: utf-8 -*-
from selenium.webdriver.support.wait import WebDriverWait
from selenium import webdriver
__author__ = 'lina'
import time
import sys
import xlrd.sheet
import time, os
class Action:
"""
BasePage封装所有页面都公用的方法,例如driver, url
"""
driver = None
# 初始化driver、url、等
def __init__(self, base_url=N... | gpl-2.0 | -5,157,220,809,121,450,000 | 25.131707 | 99 | 0.673138 | false |
matrix-org/synapse | synapse/metrics/background_process_metrics.py | 1 | 10401 | # Copyright 2018 New Vector Ltd
#
# 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 | 8,190,291,921,315,463,000 | 34.742268 | 87 | 0.665128 | false |
projectexpert/pmis | analytic_resource_plan_stock/models/analytic_resource_plan_line.py | 1 | 5846 | # Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
import odoo.addons.decimal_precision as dp
class AnalyticResourcePlanLine(models.Model):
_inherit = 'analytic.resource.plan.line'
@api.... | agpl-3.0 | 5,313,668,238,580,680,000 | 46.145161 | 79 | 0.594595 | false |
silkentrance/django-db-mixins | django_mixins/base.py | 1 | 1270 | # -*- coding: utf-8 -*-
#
# Copyright 2014 Carsten Klein <trancesilken@gmail.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 License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | apache-2.0 | 6,584,541,726,012,519,000 | 21.678571 | 86 | 0.692913 | false |
ntt-sic/heat | heat/common/identifier.py | 1 | 8227 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# 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 | 7,868,432,910,404,716,000 | 33.279167 | 79 | 0.54467 | false |
kensho-technologies/graphql-compiler | graphql_compiler/backend.py | 1 | 1810 | # Copyright 2019-present Kensho Technologies, LLC.
from collections import namedtuple
from .compiler import (
emit_cypher,
emit_gremlin,
emit_match,
emit_sql,
ir_lowering_cypher,
ir_lowering_gremlin,
ir_lowering_match,
ir_lowering_sql,
)
from .schema import schema_info
# A backend is ... | apache-2.0 | -8,970,847,914,919,115,000 | 27.28125 | 94 | 0.699448 | false |
JYamihud/blender-organizer | py_data/modules/itemselector.py | 1 | 11370 | # -*- coding: utf-8 -*-
# system
import os
import sys
import socket
# graphics interface
import gtk
import pango
import cairo
import glib
import datetime
try:
import Image
except:
from PIL import Image
# calculational help
import datetime
# self made modules
import thumbnailer
import dialogs
import check... | gpl-2.0 | 9,167,160,066,668,298,000 | 35.095238 | 151 | 0.385224 | false |
NaN-tic/nereid | nereid/sessions.py | 1 | 3596 | #This file is part of Tryton & Nereid. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
from datetime import datetime # noqa
from flask.sessions import SessionInterface, SessionMixin
from werkzeug.contrib.sessions import Session as SessionBase, SessionStor... | gpl-3.0 | 3,200,084,190,623,582,000 | 31.107143 | 77 | 0.606229 | false |
cortedeltimo/SickRage | sickbeard/clients/transmission_client.py | 1 | 5187 | # coding=utf-8
# Author: Mr_Orange <mr_orange@hotmail.it>
# URL: https://sickrage.github.io
#
# This file is part of SickRage.
#
# SickRage 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 ... | gpl-3.0 | 5,219,753,062,150,899,000 | 31.622642 | 101 | 0.572393 | false |
antoinearnoud/openfisca-france | openfisca_france/reforms/plfr2014.py | 1 | 4011 | # -*- coding: utf-8 -*-
from __future__ import division
import os
from ..model.base import *
dir_path = os.path.join(os.path.dirname(__file__), 'parameters')
# TODO: les baisses de charges n'ont pas été codées car annulées (toute ou en partie ?)
# par le Conseil constitutionnel
class plfr2014(Reform):
name ... | agpl-3.0 | -1,933,542,702,604,743,700 | 44.477273 | 118 | 0.628186 | false |
jelovirt/dita-generator | src/ditagen/web.py | 1 | 5467 | #!/usr/bin/env python
# -*- coding: UTF-8; indent-tabs-mode:nil; tab-width:4 -*-
# This file is part of DITA DTD Generator.
#
# Copyright 2009 Jarno Elovirta <http://www.elovirta.com/>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.... | apache-2.0 | -8,890,596,476,996,714,000 | 33.16875 | 102 | 0.554966 | false |
lukaslundgren/django-rest-framework-json-api | example/tests/test_model_viewsets.py | 1 | 7677 | import json
from django.contrib.auth import get_user_model
from django.utils import encoding
from django.core.urlresolvers import reverse
from django.conf import settings
from example.tests import TestBase
from example.tests.utils import dump_json, redump_json
from example.factories import CommentFactory
class Mode... | bsd-2-clause | 1,623,057,772,902,982,400 | 31.392405 | 78 | 0.466458 | false |
angr/angr | angr/analyses/variable_recovery/engine_vex.py | 1 | 11842 | from typing import TYPE_CHECKING
import claripy
import pyvex
from ...engines.vex.claripy.datalayer import value as claripy_value
from ...engines.light import SimEngineLightVEXMixin
from ..typehoon import typevars, typeconsts
from .engine_base import SimEngineVRBase, RichR
if TYPE_CHECKING:
from .variable_recover... | bsd-2-clause | 2,412,318,608,170,448,400 | 30.163158 | 110 | 0.542476 | false |
lesteve/sphinx-gallery | sphinx_gallery/py_source_parser.py | 1 | 6344 | # -*- coding: utf-8 -*-
r"""
Parser for python source files
==============================
"""
# Created Sun Nov 27 14:03:07 2016
# Author: Óscar Nájera
from __future__ import division, absolute_import, print_function
import ast
from distutils.version import LooseVersion
from io import BytesIO
import re
import sys
imp... | bsd-3-clause | -6,063,947,884,348,162,000 | 32.378947 | 79 | 0.613213 | false |
asteroide/immo_spider | src/apiviewer/apiviewer/wsgi.py | 1 | 2573 | from flask import Flask
from flask_restful import Resource, Api, reqparse
from apiviewer import __version__
import json
import importlib
from cobwebs.config import get_config
global_config = get_config()
driver_module = importlib.import_module(global_config['main']['mq_driver'])
mq_driver = driver_module.driver
app... | apache-2.0 | 7,976,772,508,099,624,000 | 25.802083 | 101 | 0.563156 | false |
sserrot/champion_relationships | venv/Lib/site-packages/jupyter_core/application.py | 1 | 8439 | # encoding: utf-8
"""
A base Application class for Jupyter applications.
All Jupyter applications should inherit from this.
"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
from copy import deepcopy
import logging
import o... | mit | 4,790,358,782,169,673,000 | 29.687273 | 86 | 0.584192 | false |
rjhd2/HadISD_v2 | set_paths_and_vars.py | 1 | 2534 | #!/usr/local/sci/bin/python2.7
#------------------------------------------------------------
# SVN Info
#$Rev:: 84 $: Revision of last commit
#$Author:: rdunn $: Author of last commit
#$Date:: 2015-12-18 16:35:07 +0000 ... | bsd-3-clause | -5,510,080,318,746,911,000 | 40.540984 | 150 | 0.59116 | false |
Mushiyo/isso | isso/wsgi.py | 1 | 5736 | # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
import sys
import socket
try:
from urllib.parse import quote, urlparse
from socketserver import ThreadingMixIn
from http.server import HTTPServer
except ImportError:
from urllib import quote
from urlparse import urlparse
from... | mit | -1,876,850,611,275,330,300 | 26.84466 | 85 | 0.607915 | false |
SurveyMonkey/defrost | tests/test_cli.py | 1 | 3952 | import pytest
from click.testing import CliRunner
@pytest.mark.parametrize("yaml, pipfreeze, output, exit_code", [
('tests/reqs.yml', 'tests/pipfreeze_no_matching_req.txt', '', 0),
('tests/reqs.yml', 'tests/pipfreeze_satisfied_matching_req.txt', '', 0),
('tests/reqs.yml', 'tests/pipfreeze_unsatisfied_matc... | mit | -5,991,600,713,043,038,000 | 41.956522 | 180 | 0.668775 | false |
kiniou/blender-smooth-slides | tools/lpod/test/test_container.py | 1 | 5651 | # -*- coding: UTF-8 -*-
#
# Copyright (c) 2009 Ars Aperta, Itaapy, Pierlis, Talend.
#
# Authors: Hervé Cauwelier <herve@itaapy.com>
# Luis Belmar-Letelier <luis@itaapy.com>
# David Versmisse <david.versmisse@itaapy.com>
#
# This file is part of Lpod (see: http://lpod-project.org).
# Lpod is free softw... | gpl-3.0 | -1,907,470,718,767,404,300 | 27.974359 | 75 | 0.649735 | false |
lidatong/dataclasses-json | dataclasses_json/utils.py | 1 | 4383 | import inspect
import sys
from datetime import datetime, timezone
from typing import Collection, Mapping, Optional, TypeVar, Any
def _get_type_cons(type_):
"""More spaghetti logic for 3.6 vs. 3.7"""
if sys.version_info.minor == 6:
try:
cons = type_.__extra__
except AttributeError:
... | mit | 3,251,248,470,436,851,000 | 27.096154 | 96 | 0.588182 | false |
simonvh/fluff | tests/test_commands.py | 1 | 4188 | import pytest
import os
import urllib.request
import tarfile
from tempfile import NamedTemporaryFile
from sklearn.metrics import v_measure_score
from fluff.parse import parse_cmds
from fluff.commands.profile import profile
from fluff.commands.heatmap import heatmap
from fluff.commands.bandplot import bandplot
@pytest... | mit | -5,502,848,502,794,335,000 | 29.794118 | 77 | 0.567813 | false |
tbursztyka/python-elf | setup.py | 1 | 1070 | ##############
# Setup File #
##############
"""
python-elf - A python library to manipulate ELF format
Copyright (C) 2008 Tomasz Bursztyka
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 F... | lgpl-3.0 | 4,951,030,473,274,327,000 | 28.722222 | 73 | 0.663551 | false |
toabctl/contrail-sandesh | library/python/pysandesh/sandesh_stats.py | 1 | 10781 | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
#
# sandesh_stats.py
#
from pysandesh.sandesh_base import Sandesh
from pysandesh.gen_py.sandesh_uve.ttypes import SandeshMessageStats
from pysandesh.gen_py.sandesh.ttypes import SandeshTxDropReason, \
SandeshRxDropReason
class SandeshMessageSta... | apache-2.0 | 7,344,674,149,269,573,000 | 50.831731 | 81 | 0.581208 | false |
zasdfgbnm/qutip | qutip/control/grape.py | 1 | 19982 | # This file is part of QuTiP: Quantum Toolbox in Python.
#
# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
... | bsd-3-clause | 3,366,839,895,533,289,500 | 29.931889 | 79 | 0.517015 | false |
maximx1/zfscan | zfscan/commands/CommandLineStatements.py | 1 | 1075 | class CommandLineStatements:
"""Batch of command line statements surrounding zfs"""
"""Checks the disks in the system"""
check_disks = "ls -la /dev/disk/by-id"
"""
zpool command to check status
{0} = pool
"""
zpool_status = "sudo zpool status {0}"
"""
zpool command... | mit | -2,060,873,528,293,840,100 | 21.416667 | 58 | 0.525581 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.