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 |
|---|---|---|---|---|---|---|---|---|---|---|
rdmorganiser/rdmo | rdmo/questions/admin.py | 1 | 3411 | from django import forms
from django.contrib import admin
from django.db import models
from rdmo.core.utils import get_language_fields
from .models import Catalog, Question, QuestionSet, Section
from .validators import (CatalogLockedValidator, CatalogUniqueURIValidator,
QuestionLockedValidato... | apache-2.0 | -897,750,510,695,204,200 | 30.293578 | 121 | 0.6781 | false |
Neetuj/softlayer-python | SoftLayer/CLI/block/snapshot_list.py | 1 | 1781 | """List block storage snapshots."""
# :license: MIT, see LICENSE for more details.
import click
import SoftLayer
from SoftLayer.CLI import columns as column_helper
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
COLUMNS = [
column_helper.Column(
'id',
('snapshots', 'id'... | mit | 8,083,339,656,087,134,000 | 29.706897 | 75 | 0.613139 | false |
AndriesSHP/Gellish | CommunicatorSource/GellishDict.py | 1 | 5979 | class GellishDict(dict):
''' A dictionary for names in a context that refer to the denoted concepts.
The roles of the names are indicated by alias relation_type_UIDs, such as for <is a code for>:
key = name_in_context(tuple) = (languageUID, communityUID, name).
value = value_triple = (UID... | gpl-3.0 | 2,889,238,609,246,712,000 | 46.07874 | 129 | 0.597592 | false |
jslootbeek/roundware-server | roundware/urls.py | 1 | 1451 | # Roundware Server is released under the GNU Affero General Public License v3.
# See COPYRIGHT.txt, AUTHORS.txt, and LICENSE.txt in the project root directory.
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import patterns, url
# Loading static files for debug mode
from... | agpl-3.0 | 6,197,231,107,093,475,000 | 28.02 | 80 | 0.694693 | false |
ingenieroariel/geonode | geonode/base/models.py | 1 | 49348 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 ... | gpl-3.0 | -7,080,191,159,422,798,000 | 32.661664 | 101 | 0.582212 | false |
anish/buildbot | master/buildbot/steps/source/gitlab.py | 1 | 2149 | # This file is part of Buildbot. Buildbot 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.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | -870,936,740,008,805,600 | 43.770833 | 79 | 0.670079 | false |
parasgithub/PrairieLearn | elements/pl-symbolic-input/pl-symbolic-input.py | 1 | 17204 | import prairielearn as pl
import lxml.html
from html import escape
import chevron
import sympy
import random
import math
import python_helper_sympy as phs
def get_variables_list(variables_string):
if variables_string is not None:
variables_list = [variable.strip() for variable in variables_string.split(',... | agpl-3.0 | 4,258,647,680,519,534,600 | 44.036649 | 163 | 0.575273 | false |
kubeflow/katib | test/suggestion/v1beta1/test_enas_service.py | 1 | 8377 | # Copyright 2021 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | apache-2.0 | 3,538,063,537,198,039,000 | 41.958974 | 89 | 0.390951 | false |
kawamuray/ganeti | lib/utils/text.py | 1 | 18178 | #
#
# Copyright (C) 2006, 2007, 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 progr... | gpl-2.0 | -4,384,509,988,743,595,500 | 25.306802 | 80 | 0.655298 | false |
whtsky/Waterspout | waterspout/auth.py | 1 | 1374 | import functools
from tornado.web import urlparse, urlencode, HTTPError
def permission_required(f):
"""
Returns a decoration that check the current user with given function.
If the user is not logged in, they will be redirected to the configured
`login url <RequestHandler.get_login_url>`.
If th... | mit | -6,591,939,943,022,267,000 | 33.35 | 78 | 0.542213 | false |
IvIePhisto/Ancestration | doc/source/conf.py | 1 | 9265 | # -*- coding: utf-8 -*-
#
# Ancestration documentation build configuration file, created by
# sphinx-quickstart on Sat Sep 28 15:10:26 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | mit | 5,730,674,737,882,248,000 | 30.40678 | 80 | 0.698759 | false |
elainekmao/hiphoptextanalysis | lyricwiki-scraper/lyricwiki/spiders/chance_spider.py | 1 | 1152 | from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.selector import Selector
from lyricwiki.items import LyricWikiItem
class LyricWikiSpider(CrawlSpider):
name = "chance" #CHANGE NAME
... | gpl-2.0 | -5,528,600,276,207,493,000 | 44.16 | 131 | 0.578993 | false |
sailfish-sdk/sailfish-qtcreator | tests/system/suite_general/tst_cmake_speedcrunch/test.py | 1 | 3171 | ############################################################################
#
# Copyright (C) 2016 The Qt Company Ltd.
# Contact: https://www.qt.io/licensing/
#
# This file is part of Qt Creator.
#
# Commercial License Usage
# Licensees holding valid commercial Qt licenses may use this file in
# accordance with the co... | gpl-3.0 | -7,002,482,751,329,805,000 | 34.233333 | 113 | 0.653106 | false |
Honghe/weiboanalyze | initclient/initclient.py | 1 | 5036 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Feb 15, 2014
@author: honghe
客户端初始化
"""
import weibo
import time
import os
# 从配置文件导入微博APP信息
config = {}
execfile(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../conf.py"), config)
# python 3: exec(open("example.conf").read(), config)
APP_KEY ... | apache-2.0 | 5,662,989,894,456,770,000 | 36.233333 | 223 | 0.632274 | false |
matthewoliver/swift | test/unit/common/middleware/s3api/test_subresource.py | 1 | 17587 | # Copyright (c) 2014 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | apache-2.0 | -3,613,494,544,707,589,000 | 46.920981 | 79 | 0.591118 | false |
KhronosGroup/COLLADA-CTS | Core/Gui/Grid/FGridCellRenderer.py | 1 | 1977 | # Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publis... | mit | 129,467,530,635,586,690 | 58.909091 | 466 | 0.714213 | false |
dustinrohde/python-conway | test/test_cell_set.py | 1 | 2096 | import pytest
from conway.grid import Cell
from conway.grid import Point as P
from conway.grid.cell_set import Grid
from . import GameRulesTestMixin
T = Cell.ALIVE
F = Cell.DEAD
class TestGrid(GameRulesTestMixin):
GRID_CLS = Grid
def test_init_with_width_and_height(self):
grid = Grid(width=3, heig... | mit | 1,718,295,299,079,489,500 | 29.823529 | 58 | 0.57395 | false |
deepmind/sonnet | sonnet/src/build.py | 1 | 2561 | # Copyright 2019 The Sonnet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | apache-2.0 | 7,186,900,872,818,753,000 | 35.070423 | 78 | 0.655994 | false |
bnewbold/diffoscope | tests/comparators/test_rpm.py | 1 | 3005 | # -*- coding: utf-8 -*-
#
# diffoscope: in-depth comparison of files, archives, and directories
#
# Copyright © 2015 Jérémy Bobbio <lunar@debian.org>
#
# diffoscope 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 Foundati... | gpl-3.0 | -2,231,490,363,198,703,600 | 39.567568 | 109 | 0.738175 | false |
syscoin/syscoin2 | test/functional/p2p_disconnect_ban.py | 1 | 5575 | #!/usr/bin/env python3
# Copyright (c) 2014-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test node disconnect and ban behavior"""
import time
from test_framework.test_framework import Syscoin... | mit | -4,048,927,991,779,465,700 | 47.903509 | 155 | 0.650762 | false |
Zatsugami/python-egghead-crawler | egghead/spiders/lessons.py | 1 | 1244 | # -*- coding: utf-8 -*-
import scrapy
from egghead.items import LessonVideo
from egghead.spiders import LoginSpider
from urlparse import urlparse, urljoin
def lesson_filename(url):
file_name = urlparse(url).path.split('/')[-1]
return '{}.mp4'.format(file_name)
def lesson_urls(response):
return response.... | gpl-2.0 | -1,784,667,792,561,143,300 | 32.621622 | 107 | 0.659164 | false |
PableraShow/Learn-to-program-with-Python-guide | Types & Operations/Integers-&-Floating-Point-Numbers/Constants.py | 1 | 1338 | """
Integers can be given in any of four bases:
- Base ten (decimal — what people are most used to): consists of a sequence of digits, not starting with 0
- Base two (binary): consists of 0b followed by 0's and 1's
- Base eight (octal): consists of a 0 followed by digits in the range 0 to 7
- Base sixteen (hexad... | mit | -5,535,984,399,341,046,000 | 34.108108 | 287 | 0.752624 | false |
apiaryio/black-belt | blackbelt/deployment.py | 1 | 1417 | from subprocess import check_call, check_output
from blackbelt.handle_github import get_current_branch, run_grunt_in_parallel
from blackbelt.messages import post_message
def deploy_staging():
branch_name = get_current_branch()
post_message("Deploying branch %s to staging" % branch_name, "#deploy-queue")
... | mit | 1,149,457,579,899,781,200 | 37.297297 | 99 | 0.66055 | false |
richard-willowit/odoo | odoo/tools/xml_utils.py | 2 | 1848 | # -*- coding: utf-8 -*-
from lxml import etree
from odoo.tools.misc import file_open
def check_with_xsd(tree_or_str, xsd_path):
if not isinstance(tree_or_str, etree._Element):
tree_or_str = etree.fromstring(tree_or_str)
xml_schema_doc = etree.parse(file_open(xsd_path))
xsd_schema = etree.XMLSchema... | gpl-3.0 | -1,629,396,402,940,386,600 | 43 | 119 | 0.697511 | false |
sanjeevtripurari/hue | desktop/core/src/desktop/middleware.py | 1 | 25658 | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | apache-2.0 | 6,306,637,644,091,341,000 | 34.735376 | 167 | 0.671292 | false |
Toofifty/Oracle2 | oracle/modules/lottery.py | 1 | 5609 | from threading import Thread
import time, traceback, random
from format import BOLD, RESET, CYAN, GREEN
lotto = None
def _init(b):
print '\t%s loaded' % __name__
def lottery(l, b, i):
"""!parent-command
!c new
!d Create a new lottery (cost: 10 points)
!a [duration] [min-bet] [max-bet]
... | mit | 8,233,873,189,446,941,000 | 28.062176 | 89 | 0.463541 | false |
fedora-conary/conary-policy | policy/normalize.py | 1 | 38175 | #
# Copyright (c) SAS Institute 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 w... | apache-2.0 | -4,332,780,223,955,068,400 | 35.184834 | 129 | 0.540982 | false |
hungpham2511/toppra | toppra/solverwrapper/cvxpy_solverwrapper.py | 1 | 5009 | from .solverwrapper import SolverWrapper
import logging
import numpy as np
from ..constraint import ConstraintType
from ..constants import CVXPY_MAXX, CVXPY_MAXU
logger = logging.getLogger(__name__)
try:
import cvxpy
FOUND_CVXPY = True
except ImportError:
logger.info("CVXPY installation not found.")
... | mit | 2,394,813,359,082,985,000 | 35.562044 | 88 | 0.539429 | false |
ctripcorp/tars | tars/server/models.py | 1 | 19445 | import logging
import traceback
import itertools
from django.db import models, IntegrityError, transaction
from django.db.models import Q
from django.dispatch import receiver
from django.core.exceptions import ObjectDoesNotExist
from constance import config
from rest_client import get_salt_client
from roll_engine.co... | apache-2.0 | -6,384,645,263,817,918,000 | 36.684109 | 114 | 0.604886 | false |
zarafagroupware/zarafa-zsm | webservice/apiapp/management/commands/confcheck.py | 1 | 3757 | # Copyright 2012 - 2013 Zarafa B.V.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License, version 3,
# as published by the Free Software Foundation with the following additional
# term according to sec. 7:
#
# According to sec. 7 of the ... | agpl-3.0 | 3,788,263,537,973,142,500 | 41.693182 | 76 | 0.721054 | false |
sealevelresearch/tide-wrangler | tide_wrangler/parsers/task_2000.py | 1 | 1695 | #!/usr/bin/env python
import pytz
import datetime
from .row import Row
__all__ = ['get_parser']
class Parser():
def __init__(self, f):
self._fobj = f
def get(self):
return generate_rows(self._fobj)
def get_parser(fobj, options):
return Parser(fobj)
def generate_rows(f):
for lin... | mit | 8,514,717,235,296,300,000 | 21.905405 | 74 | 0.589381 | false |
ati-ozgur/KDD99ReviewArticle | HelperCodes/create_table_JournalAndArticleCounts.py | 1 | 1930 | import ReviewHelper
import pandas as pd
df = ReviewHelper.get_pandas_data_frame_created_from_bibtex_file()
#df_journal = df.groupby('journal')["ID"]
dfJournalList = df.groupby(['journal'])['ID'].count().order(ascending=False)
isOdd = (dfJournalList.size % 2 == 1)
if (isOdd):
table_row_length = dfJournalList.si... | mit | 6,558,627,946,973,043,000 | 25.081081 | 130 | 0.688601 | false |
PokeHunterProject/pogom-linux | pogom/pgoapi/__init__.py | 1 | 2430 | """
pgoapi - Pokemon Go API
Copyright (c) 2016 tjado <https://github.com/tejado>
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... | mit | -520,971,139,557,488,900 | 35.268657 | 101 | 0.767078 | false |
FJFranklin/wifi-py-rpi-car-controller | RTSim/RTRobot.py | 1 | 2700 | from RTSim import RTSim
class RTRobot(RTSim):
"""
RTRobot Controller for RTSim real-time robot simulation.
https://github.com/FJFranklin/wifi-py-rpi-car-controller/tree/master/RTSim
"""
def __init__(self, seconds=180, test_name='default'):
# usage: RTRobot (seconds, test_name)
... | mit | -2,143,932,824,514,484,700 | 36.028169 | 146 | 0.590741 | false |
shreyasp/erpnext | erpnext/hr/doctype/salary_slip/salary_slip.py | 1 | 14795 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import add_days, cint, cstr, flt, getdate, nowdate, rounded, date_diff, money_in_words
from frappe.model.naming import ... | gpl-3.0 | -4,528,810,867,627,106,000 | 36.173367 | 176 | 0.693748 | false |
Konovalov-Nik/storyboard | storyboard/projects/models.py | 1 | 1893 | # Copyright 2011 Thierry Carrez <thierry@openstack.org>
# 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
... | apache-2.0 | 9,213,235,775,598,121,000 | 28.578125 | 78 | 0.673006 | false |
OpenBfS/dokpool-plone | Plone/src/docpool.localbehavior/docpool/localbehavior/localbehavior.py | 1 | 1955 | from Acquisition import aq_inner
from docpool.localbehavior import MessageFactory as _
from plone.autoform import directives
from plone.autoform.interfaces import IFormFieldProvider
from plone.supermodel import model
from z3c.form.browser.checkbox import CheckBoxFieldWidget
from zope import schema
from zope.component i... | gpl-3.0 | -6,956,147,756,234,758,000 | 32.135593 | 84 | 0.707417 | false |
rsmz/dtrange | test/test_calendar.py | 1 | 6615 | from dtrange.calendar import day_of_year, day_of_year_date, date_plus_days, ordinal
from datetime import datetime
import unittest
class TestCalendar(unittest.TestCase):
def test_day_of_year(self):
dt = datetime(2000, 2, 1)
doy = day_of_year(dt, 'julian')
expect = 32
self.assertEqua... | gpl-3.0 | -9,199,504,948,931,522,000 | 27.390558 | 83 | 0.531973 | false |
samhatfield/mkdocs | mkdocs/tests/config/config_tests.py | 1 | 6957 | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
import os
import shutil
import tempfile
import unittest
import six
from mkdocs import config
from mkdocs.config import config_options
from mkdocs.exceptions import ConfigurationError
from mkdocs.tests.base import dedent
def ensure_utf(st... | bsd-2-clause | -6,825,038,675,139,912,000 | 33.270936 | 83 | 0.535144 | false |
scopatz/regolith | regolith/broker.py | 1 | 2663 | """API for accessing the metadata and file storage"""
from regolith.database import dump_database, open_dbs
from regolith.runcontrol import DEFAULT_RC, load_rcfile, filter_databases
from regolith.storage import store_client, push
def load_db(rc_file="regolithrc.json"):
"""Create a Broker instance from an rc file"... | cc0-1.0 | -2,406,156,181,989,504,000 | 28.921348 | 77 | 0.575667 | false |
christodoulos/pycompgeom | pycompgeom/algorithms.py | 1 | 1904 | from primitives import *
from predicates import *
import random
def jarvis(points):
r0 = min(points)
hull = [r0]
r = r0
while True:
u = random.choice(points)
for t in points:
if cw(r, u, t) or collinear(r, u, t) and between(r, t, u):
u = t
if u == r0: break
else:
r = u
points.remove(r)
hull... | gpl-3.0 | 9,201,103,693,256,576,000 | 24.052632 | 62 | 0.596113 | false |
paramite/blazar | climate/api/v2/app.py | 1 | 2477 | # Copyright (c) 2014 Bull.
#
# 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, sof... | apache-2.0 | 363,380,826,227,969,860 | 28.843373 | 76 | 0.659265 | false |
Instanssi/Instanssi.org | Instanssi/admin_profile/forms.py | 1 | 3306 | # -*- coding: utf-8 -*-
from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit, Layout, Fieldset, ButtonHolder
from django.contrib.auth.models import User
class InformationChangeForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(Informati... | mit | 8,177,352,354,657,648,000 | 31.86 | 90 | 0.550822 | false |
LinkageIO/LocusPocus | tests/test_Ontology.py | 1 | 1800 |
"""
Unit tests for Ontology
"""
import minus80 as m80
import locuspocus as lp
def test_init(testOnt):
try:
testOnt
return True
except NameError:
return False
def test_len(testOnt):
assert len(testOnt) == 10
def test_iter(testOnt):
for term in testOnt:
assert is... | mit | 7,979,349,418,811,028,000 | 23 | 76 | 0.650556 | false |
the-it/WS_THEbotIT | archive/online/2016/160711_replace_citations.py | 1 | 1373 | # -*- coding: utf-8 -*-
__author__ = 'eso'
import sys
sys.path.append('../../')
import re
import pywikibot
def add_zeros(number, digits):
number_str = str(number)
if number < 10:
for members in range(digits-1):
number_str = "0" + number_str
elif number < 100:
for members in rang... | mit | 4,581,316,253,179,235,300 | 39.323529 | 256 | 0.636032 | false |
mdauphin/pycvnode | pycvnode/connector.py | 1 | 3391 | import cv2
import numpy as np
class Connector(object):
class Direction:
OUTPUT = 1
INPUT = 2
def __init__(self,node,name,direction,type):
self.node = node
self.name = name
self.direction = direction
self.value = None
self.type = type
self.parse... | gpl-2.0 | 670,151,130,487,789,400 | 27.737288 | 82 | 0.576821 | false |
openatv/enigma2 | lib/python/Components/VfdSymbols.py | 2 | 12566 | # -*- coding: utf-8 -*-
from twisted.internet import threads
from config import config
from enigma import eDBoxLCD, eTimer, iPlayableService, pNavigation, iServiceInformation
import NavigationInstance
from Tools.Directories import fileExists
from Components.ParentalControl import parentalControl
from Components.Service... | gpl-2.0 | -1,859,345,489,814,616,800 | 32.87062 | 393 | 0.668073 | false |
arenadata/ambari | ambari-server/src/main/resources/stacks/ADH/1.0/services/PIG/package/scripts/pig_client.py | 1 | 1908 | """
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 use this ... | apache-2.0 | -5,231,814,969,549,273,000 | 29.285714 | 100 | 0.745283 | false |
ARM-software/armnn | python/pyarmnn/test/test_supported_backends.py | 1 | 1398 | # Copyright © 2020 Arm Ltd. All rights reserved.
# SPDX-License-Identifier: MIT
import os
import platform
import pytest
import pyarmnn as ann
@pytest.fixture()
def get_supported_backends_setup(shared_data_folder):
options = ann.CreationOptions()
runtime = ann.IRuntime(options)
get_device_spec = runtime.G... | mit | 1,352,998,812,462,088,700 | 26.94 | 101 | 0.69864 | false |
ah-anssi/SecuML | SecuML/core/Classification/Configuration/DecisionTreeConfiguration.py | 1 | 6621 | # SecuML
# Copyright (C) 2017 ANSSI
#
# SecuML 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.
#
# SecuML is distributed in the hope t... | gpl-2.0 | 600,809,728,340,241,900 | 40.38125 | 85 | 0.542214 | false |
mpatacchiola/pyERA | examples/ex_nao_head_imitation/head_pose_estimation.py | 1 | 8515 | #!/usr/bin/env python
import numpy as np
import tensorflow as tf
import cv2
import os.path
DEBUG = False
class CnnHeadPoseEstimator:
def __init__(self, tf_session):
""" Init the class
@param tf_session An external tensorflow session
"""
self._sess = tf_session
def print_al... | mit | 2,551,760,302,004,005,000 | 45.785714 | 158 | 0.582032 | false |
jrichte43/ProjectEuler | Problem-0345/solutions.py | 1 | 2222 |
__problem_title__ = "Matrix Sum"
__problem_url___ = "https://projecteuler.net/problem=345"
__problem_description__ = "We define the Matrix Sum of a matrix as the maximum sum of matrix " \
"elements with each element being the only one in his row and column. " \
"For ... | gpl-3.0 | -5,434,478,510,974,057,000 | 51.904762 | 100 | 0.536004 | false |
skdaccess/skdaccess | skdaccess/engineering/la/generic/stream.py | 2 | 3472 | # The MIT License (MIT)
# Copyright (c) 2018 Massachusetts Institute of Technology
#
# Author: Cody Rude
# This software has been created in projects supported by the US National
# Science Foundation and NASA (PI: Pankratius)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this sof... | mit | -1,057,145,586,396,667,600 | 38.908046 | 102 | 0.702477 | false |
saullocastro/pyNastran | pyNastran/converters/dev/ansys/ansys.py | 1 | 5748 | from numpy import zeros, array
class Ansys(object):
def __init__(self, log=None, debug=False):
pass
def read_ansys(self, ansys_filename):
with open(ansys_filename, 'r') as ansys_file:
lines = ansys_file.readlines()
nodes = []
elements = {}
i = 0
nl... | lgpl-3.0 | -8,193,591,645,404,051,000 | 28.634021 | 200 | 0.428323 | false |
hyperspy/hyperspyUI | hyperspyui/modelwrapper.py | 1 | 8552 | # -*- coding: utf-8 -*-
# Copyright 2014-2016 The HyperSpyUI developers
#
# This file is part of HyperSpyUI.
#
# HyperSpyUI is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
#... | gpl-3.0 | 8,070,357,070,856,363,000 | 36.840708 | 77 | 0.605005 | false |
douglas/toxiproxy-python | toxiproxy/server.py | 1 | 3386 | # coding: utf-8
from future.utils import raise_with_traceback, viewitems, listvalues
from .api import APIConsumer
from .proxy import Proxy
from .exceptions import ProxyExists
from .utils import can_connect_to
class Toxiproxy(object):
""" Represents a Toxiproxy server """
def proxies(self):
""" Retur... | mit | -5,460,193,500,709,897,000 | 27.453782 | 119 | 0.582989 | false |
studentofdata/market_share_mccvb | docs/conf.py | 1 | 7863 | # -*- coding: utf-8 -*-
#
# market_share_analysis documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration... | mit | 5,821,172,262,195,132,000 | 31.093878 | 80 | 0.697317 | false |
robket/BioScripts | alignment.py | 1 | 9138 | import numpy as np
from matplotlib import pyplot as plt
from scipy.misc import toimage
from collections import defaultdict, Counter
from types import SimpleNamespace
from PIL import ImageDraw
# This color table is sourced from https://github.com/trident01/BioExt-1/blob/master/AlignmentImage.java
LIGHT_GRAY = 196
FIXE... | mit | -6,908,880,567,246,453,000 | 37.075 | 131 | 0.680893 | false |
sunrenjie/py-windows-tools | py_windows_tools/windows/events.py | 1 | 3139 | # -*- coding: utf-8 -*-
import re
from oslo_log import log as logging
from py_windows_tools.utilities import misc
LOG = logging.getLogger(__name__)
class WindowsEvents(object):
@staticmethod
def get_command_get_events(category, n):
return ['powershell', 'Get-EventLog %s -newest %d' % (category, n)]
... | apache-2.0 | -7,706,443,120,105,495,000 | 34 | 102 | 0.547673 | false |
dnjohnstone/hyperspy | hyperspy/tests/utils/test_stack.py | 1 | 4213 | # -*- coding: utf-8 -*-
# Copyright 2007-2020 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | gpl-3.0 | 5,465,673,633,688,604,000 | 37.3 | 75 | 0.59625 | false |
bram85/topydo | topydo/commands/ListCommand.py | 1 | 10992 | # Topydo - A todo.txt client written in Python.
# Copyright (C) 2014 - 2015 Bram Schoenmakers <bram@topydo.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License,... | gpl-3.0 | -670,478,974,875,376,300 | 37.704225 | 86 | 0.593705 | false |
andrewschaaf/pj-closure | js/goog/math.py | 1 | 3556 | #<pre>Copyright 2006 The Closure Library Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | apache-2.0 | 244,956,752,805,644,600 | 20.950617 | 77 | 0.603487 | false |
schalkneethling/snippets-service | snippets/base/cache.py | 1 | 1854 | # FROM https://raw.githubusercontent.com/mozilla/bedrock/master/bedrock/base/cache.py
from django.core.cache.backends.base import DEFAULT_TIMEOUT
from django.core.cache.backends.locmem import LocMemCache
class SimpleDictCache(LocMemCache):
"""A local memory cache that doesn't pickle values.
Only for use wit... | mpl-2.0 | -7,616,568,562,176,174,000 | 33.333333 | 85 | 0.591154 | false |
juniortada/signxml | setup.py | 1 | 1193 | #!/usr/bin/env python
import os, glob
from setuptools import setup, find_packages
install_requires = [line.rstrip() for line in open(os.path.join(os.path.dirname(__file__), "requirements.txt"))]
setup(
name='signxml',
version='0.4.2',
url='https://github.com/kislyuk/signxml',
license='Apache Software... | apache-2.0 | 3,744,242,557,129,585,700 | 34.088235 | 112 | 0.636211 | false |
FRBs/FRB | frb/surveys/panstarrs.py | 1 | 11891 | """
Slurp data from Pan-STARRS catalog using the MAST API.
A lot of this code has been directly taken from
http://ps1images.stsci.edu/ps1_dr2_api.html
"""
import numpy as np
from astropy import units as u,utils as astroutils
from astropy.io import fits
from astropy.coordinates import SkyCoord, match_coordinates_sky
... | bsd-3-clause | -4,824,569,952,313,100,000 | 38.769231 | 137 | 0.600454 | false |
jledbetter/openhatch | mysite/customs/bugimporters/bugzilla.py | 1 | 14860 | # This file is part of OpenHatch.
# Copyright (C) 2010, 2011 Jack Grigg
# Copyright (C) 2010 OpenHatch, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the Lice... | agpl-3.0 | -8,360,372,221,718,884,000 | 41.824207 | 98 | 0.584859 | false |
quattor/aquilon | lib/aquilon/worker/formats/network_device.py | 1 | 6711 | # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2010,2011,2012,2013,2014,2015,2016,2017,2018 Contributor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You ma... | apache-2.0 | 1,171,513,508,783,954,400 | 42.577922 | 87 | 0.606318 | false |
jdodds/pyrana | pyrana/plugins/pidginstatus.py | 1 | 1213 | import dbus
from feather import Plugin
class PidginStatus(Plugin):
listeners = set(['songstart', 'songpause', 'songresume'])
messengers = set()
def songstart(self, payload):
#hacky.
parts = payload.split('/')
artist = parts[-3]
album = parts[-2]
song = parts[-1]
... | bsd-3-clause | 7,194,651,118,975,871,000 | 31.783784 | 71 | 0.591096 | false |
leesdolphin/rentme | api/trademe/enums.py | 1 | 1262 | import enum
def named_enum(name, item):
if isinstance(item, str):
item = item.split(' ')
item = list(map(str.strip, item))
return enum.Enum(name, dict(zip(item, item)), module=__name__)
@enum.unique
class AreaOfBusiness(enum.Enum):
All = 0
Marketplace = 1
Property = 2
Motors = 3
... | agpl-3.0 | -7,150,790,870,608,253,000 | 37.242424 | 83 | 0.606181 | false |
pareidolic/bharati-braille | bottle.py | 1 | 128654 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Bottle is a fast and simple micro-framework for small web applications. It
offers request dispatching (Routes) with url parameter support, templates,
a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and
template engines - all in a single file an... | agpl-3.0 | 24,366,193,587,758,924 | 38.671292 | 103 | 0.582197 | false |
moccu/django-markymark | tests/test_fields.py | 1 | 1065 | from markymark.fields import MarkdownField, MarkdownFormField
from markymark.widgets import MarkdownTextarea
class CustomMarkdownTextarea(MarkdownTextarea):
pass
def test_markdownfield_formfield():
field = MarkdownField()
form_field = field.formfield()
assert isinstance(form_field, MarkdownFormField... | mit | -8,218,850,503,655,239,000 | 34.5 | 77 | 0.767136 | false |
zseder/hunmisc | hunmisc/liblinear/filter_problem.py | 1 | 2772 | import sys
def filter_fs(problem_f_handler, needed_features_list, orig_num_fname,
needed_labels_list, orig_num_labelname, filtered_name):
a = open('{0}.problem'.format(filtered_name), 'w')
orig_new_nums = {}
new_num_fname = {}
orig_new_labelnums = {}
new_num_labelname ... | gpl-3.0 | -7,254,434,017,910,495,000 | 36.459459 | 103 | 0.527778 | false |
googleapis/googleapis-gen | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/ad_group_asset_service/client.py | 1 | 23429 | # -*- 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 | 3,013,399,569,031,883,300 | 44.142582 | 193 | 0.622733 | false |
ilogue/niprov | niprov/filesystem.py | 1 | 1532 | import os
import datetime
class Filesystem(object):
"""Wrapper of filesystem access functionality such as that implemented by
the os package in the standard library.
"""
def __init__(self):
self.open = open
def fileExists(self, path):
return os.path.isfile(path)
def walk(s... | bsd-3-clause | 3,807,397,935,507,642,000 | 23.31746 | 78 | 0.569191 | false |
etkirsch/legends-of-erukar | config/world/regions/BarlenRegion.py | 1 | 3367 | import erukar
from erukar.system.engine import EnvironmentProfile, OverlandSector, Sector, Region, Location, Chunk, EconomicProfile
def create():
barlen = Region()
barlen.name = "Greater Barlen Region"
barlen.description = "A fertile area, known best for its vast barley and wheat fields. The seat of this... | agpl-3.0 | -5,317,180,016,940,680,000 | 31.68932 | 233 | 0.674785 | false |
luk156/brick | documenti_acquisto/models.py | 1 | 3097 | from django.db import models
from mptt.models import MPTTModel, TreeForeignKey
# Create your models here.
from django import forms
from suit.widgets import SuitDateWidget
from django.contrib.admin import widgets
from ore.models import *
# Create your models here.
class Fornitore(models.Model):
rag = models.TextFi... | agpl-3.0 | -7,517,543,585,246,214,000 | 33.422222 | 92 | 0.671295 | false |
wooga/airflow | tests/providers/google/cloud/operators/test_translate_speech_system.py | 1 | 1653 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | apache-2.0 | 1,552,072,888,841,843,200 | 38.357143 | 103 | 0.754386 | false |
ldesousa/PyWPS | tests/test_describe.py | 1 | 14235 | ##################################################################
# Copyright 2016 OSGeo Foundation, #
# represented by PyWPS Project Steering Committee, #
# licensed under MIT, Please consult LICENSE.txt for details #
####################################################... | mit | -5,498,443,039,569,499,000 | 42.53211 | 122 | 0.591781 | false |
beeftornado/sentry | tests/sentry/web/frontend/test_msteams_extension.py | 1 | 1768 | from __future__ import absolute_import
from django.core.signing import SignatureExpired
from sentry.models import OrganizationMember
from sentry.testutils import TestCase
from sentry.web.frontend.msteams_extension_configuration import MsTeamsExtensionConfigurationView
from sentry.utils.compat.mock import patch
from s... | bsd-3-clause | -5,759,949,768,597,155 | 40.116279 | 97 | 0.675339 | false |
xmendez/wfuzz | src/wfuzz/plugins/payloads/hexrange.py | 1 | 1661 | from wfuzz.externals.moduleman.plugin import moduleman_plugin
from wfuzz.plugin_api.base import BasePayload
from wfuzz.exception import FuzzExceptBadOptions
from wfuzz.fuzzobjects import FuzzWordType
@moduleman_plugin
class hexrange(BasePayload):
name = "hexrange"
author = (
"Carlos del Ojo",
... | gpl-2.0 | 7,504,221,438,334,975,000 | 27.152542 | 86 | 0.571945 | false |
jdmonaco/vmo-feedback-model | src/remapping/simulate.py | 1 | 5749 | # encoding: utf-8
"""
simulate.py -- Simulate double rotation experiments using VMOModel
Exported namespace: VMOExperiment
Created by Joe Monaco on 2010-02-03.
Copyright (c) 2009-2011 Johns Hopkins University. All rights reserved.
This software is provided AS IS under the terms of the Open Source MIT License.
See ... | mit | -745,938,006,877,985,200 | 32.823529 | 80 | 0.589494 | false |
DeltaOS/deltaos-theme | theme_deltaos/__openerp__.py | 1 | 1289 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2015-Trust-Code (<http://www.trustcode.com.br>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... | gpl-3.0 | 1,249,369,750,968,677,000 | 36.911765 | 78 | 0.583398 | false |
jlyonsmith/pytools | Test/test_buckle.py | 1 | 2894 | import os
import subprocess
def writeFile(fileName, contents):
with open(fileName, "w") as f:
f.write(contents)
os.makedirs('Scratch', exist_ok=True)
os.chdir('Scratch')
writeFile('test_buckle.resx', '''<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.... | mit | -112,656,978,342,174,060 | 33.047059 | 139 | 0.707326 | false |
Xeralux/tensorflow | tensorflow/compiler/tests/binary_ops_test.py | 1 | 50582 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 7,264,468,469,406,065,000 | 36.917541 | 80 | 0.492211 | false |
cczhu/baseband | baseband/mark4/base.py | 1 | 21350 | # Licensed under the GPLv3 - see LICENSE
import numpy as np
from astropy.utils import lazyproperty
import astropy.units as u
from ..vlbi_base.base import (make_opener, VLBIFileBase, VLBIFileReaderBase,
VLBIStreamBase, VLBIStreamReaderBase,
VLBIStreamWriterBas... | gpl-3.0 | 7,541,743,570,628,958,000 | 39.131579 | 79 | 0.603419 | false |
phobson/statsmodels | statsmodels/regression/linear_model.py | 1 | 97462 | # TODO: Determine which tests are valid for GLSAR, and under what conditions
# TODO: Fix issue with constant and GLS
# TODO: GLS: add options Iterative GLS, for iterative fgls if sigma is None
# TODO: GLS: default if sigma is none should be two-step GLS
# TODO: Check nesting when performing model based tests, lr, wald,... | bsd-3-clause | 6,871,677,632,340,146,000 | 36.156691 | 232 | 0.560105 | false |
openai/cleverhans | cleverhans/model_zoo/madry_lab_challenges/cifar10_model.py | 2 | 10334 | """cleverhans.model.Model implementation of cifar10_challenge.model.Model
This re-implementation factors variable creation apart from forward
propagation so it is possible to run forward propagation more than once
in the same model.
based on https://github.com/tensorflow/models/tree/master/resnet
"""
from __future__... | mit | 6,172,888,378,718,482,000 | 29.394118 | 76 | 0.613993 | false |
taigaio/taiga-back | taiga/hooks/api.py | 1 | 2892 | # -*- coding: utf-8 -*-
# Copyright (C) 2014-present Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later ver... | agpl-3.0 | 7,278,701,815,280,412,000 | 34.703704 | 80 | 0.677732 | false |
saeki-masaki/cinder | cinder/tests/unit/test_ibm_flashsystem.py | 1 | 47040 | # Copyright 2014 IBM Corp.
# Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LIC... | apache-2.0 | -6,044,078,275,345,714,000 | 37.243902 | 79 | 0.531803 | false |
RDXT/django-userena | userena/views.py | 1 | 38355 | from django.urls import reverse
from django.shortcuts import redirect, get_object_or_404,render
from django.contrib.auth import authenticate, login, logout, REDIRECT_FIELD_NAME
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import PasswordChangeForm
from django.contrib.auth.views import l... | bsd-3-clause | -7,902,587,174,113,698,000 | 39.673383 | 157 | 0.63087 | false |
django-extensions/django-extensions | django_extensions/management/commands/validate_templates.py | 1 | 3627 | # -*- coding: utf-8 -*-
import os
import fnmatch
from django.apps import apps
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.core.management.color import color_style
from django.template.loader import get_template
from django_extensions.compat import get... | mit | 256,871,737,937,782,240 | 36.78125 | 119 | 0.576234 | false |
agbs2k8/WebLearning | web-starter/blueyellow_pycharm_app/setup.py | 1 | 1137 | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.txt')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_d... | mit | 6,758,758,797,266,973,000 | 25.44186 | 63 | 0.592788 | false |
firmadyne/scraper | firmware/spiders/openwrt.py | 1 | 2425 | from scrapy import Spider
from scrapy.http import Request
from firmware.items import FirmwareImage
from firmware.loader import FirmwareLoader
import urllib.request, urllib.parse, urllib.error
class OpenWRTSpider(Spider):
name = "openwrt"
allowed_domains = ["downloads.openwrt.org"]
start_urls = ["http://... | mit | 7,624,054,713,847,366,000 | 39.416667 | 126 | 0.51299 | false |
kozistr/Awesome-GANs | awesome_gans/discogan/discogan_train.py | 1 | 4150 | import sys
import time
import tensorflow as tf
import awesome_gans.discogan.discogan_model as discogan
import awesome_gans.image_utils as iu
from awesome_gans.datasets import Pix2PixDataSet as DataSets
# import numpy as np
sys.path.insert(0, '../')
results = {'sample_output': './gen_img/', 'model': './model/Disco... | mit | -2,482,674,350,346,778,000 | 37.425926 | 120 | 0.536145 | false |
speksofdust/BeyondDreams | beyonddreams/char/attribs.py | 1 | 3234 | # ---------------------------------------------------------------------------- #
# #
# 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 ... | gpl-3.0 | 6,986,478,758,046,898,000 | 33.774194 | 80 | 0.497217 | false |
machinecoin-project/machinecoin | contrib/devtools/security-check.py | 2 | 8226 | #!/usr/bin/env python
# Copyright (c) 2015-2017 The Machinecoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Perform basic ELF security checks on a series of executables.
Exit status will be 0 if successful, ... | mit | 3,368,837,701,868,259,300 | 37.083333 | 163 | 0.617554 | false |
simartin/servo | tests/wpt/web-platform-tests/tools/ci/tc/tests/test_valid.py | 1 | 11726 | import json
import os
from io import open
import sys
import jsone
import mock
import pytest
import requests
import yaml
from jsonschema import validate
here = os.path.dirname(__file__)
root = os.path.abspath(os.path.join(here, "..", "..", "..", ".."))
sys.path.insert(0, root)
from tools.ci.tc import decision
def d... | mpl-2.0 | -2,762,706,756,789,860,400 | 39.574394 | 114 | 0.647109 | false |
nebgnahz/CS268NetworkMeasurement | king/outputdb.py | 1 | 4444 | import MySQLdb, MySQLdb.cursors
import sqlalchemy.ext.serializer
import cPickle as pickle
from datetime import timedelta
from utilities import distance
from collections import defaultdict
import argparse
parser = argparse.ArgumentParser(description='Output db')
parser.add_argument('--csv', action='store_true', default... | bsd-2-clause | -1,943,888,100,517,738,500 | 41.730769 | 109 | 0.54973 | false |
menglewis/guildwars2api | tests/test_urls.py | 1 | 5637 | # -*- coding: utf-8 -*-
import unittest
from guildwars2api.v2 import GuildWars2API
class URLBuildTestCase(unittest.TestCase):
def setUp(self):
self.api = GuildWars2API()
def test_all_items_url(self):
self.assertEqual(self.api.items.build_url(), 'https://api.guildwars2.com/v2/items')
def... | bsd-3-clause | -6,078,500,527,989,944,000 | 48.447368 | 153 | 0.710484 | false |
romeric/Fastor | benchmark/external/benchmark_inverse/benchmark_plot.py | 1 | 1615 | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rc
rc('font',**{'family':'serif','serif':['Palatino'],'size':14})
rc('text', usetex=True)
def read_results():
ms, ns, times_eigen, times_fastor = [], [], [], []
with open("benchmark_results.txt", "r") as f:
lines = f.readlines()... | mit | -533,837,418,136,971,400 | 26.389831 | 84 | 0.573994 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.