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 |
|---|---|---|---|---|---|---|---|---|---|---|
edineicolli/daruma-exemplo-python | scripts/fiscal/ui_fiscal_icfefetuarpagamentoformatado.py | 1 | 4753 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_fiscal_icfefetuarpagamentoformatado.ui'
#
# Created: Mon Nov 24 22:25:42 2014
# by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
from pydaruma.py... | gpl-2.0 | 5,616,585,045,271,257,000 | 59.164557 | 214 | 0.764149 | false |
komlenic/drubs | drubs/drubs.py | 1 | 9647 | import yaml
import tasks
from os.path import isfile, isdir, dirname, abspath, join, basename, normpath, realpath
from os import getcwd
from fabric.state import env, output
from fabric.tasks import execute
from fabric.colors import red, yellow, green, cyan
from fabric.contrib.console import confirm
from fabric.api impor... | gpl-2.0 | -1,242,480,681,415,232,500 | 32.849123 | 209 | 0.638022 | false |
zibawa/zibawa | zibawa/urls.py | 1 | 1400 | """zibawa URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | gpl-3.0 | -6,997,898,641,479,709,000 | 30.111111 | 83 | 0.681429 | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/_splom.py | 1 | 12883 | import _plotly_utils.basevalidators
class SplomValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="splom", parent_name="", **kwargs):
super(SplomValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_clas... | mit | 1,610,731,165,411,505,000 | 48.55 | 70 | 0.54731 | false |
nakagami/reportlab | src/reportlab/platypus/flowables.py | 1 | 68383 | #Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/platypus/flowables.py
__version__=''' $Id: flowables.py 3959 2012-09-27 14:39:39Z robin $ '''
__doc__="""
A flowable is a "floating element" in a docum... | bsd-3-clause | -4,955,683,830,492,444,000 | 35.490395 | 152 | 0.553047 | false |
catharsis/gerrit-notify | gerrit_notify/main.py | 1 | 2887 | #coding=utf-8
from gerrit_notify import GerritNotify
from gi.repository import GObject, Gtk
from os.path import expanduser
import subprocess
from ConfigParser import SafeConfigParser
class TrayiconPlugin (GObject.Object):
notify = None
def do_activate (self, notify):
self.notify = notify
self.... | bsd-2-clause | 5,062,877,376,304,711,000 | 34.641975 | 126 | 0.641496 | false |
stoilov/Programming101 | week3/HackBulgariaAPI/team_matcher.py | 1 | 2715 | import requests
import random
class MatchCourse:
def __init__(self):
self.url = "https://hackbulgaria.com/api/students/"
self.records = []
self.courses = None
def get_info(self):
self.records = requests.get(self.url, verify=False)
if self.records.status_code != 200:
... | mit | -4,352,641,921,128,700,400 | 30.569767 | 82 | 0.539963 | false |
PnX-SI/GeoNature | backend/geonature/utils/module.py | 1 | 4711 | import os
import sys
from pathlib import Path
from importlib import import_module
from pkg_resources import load_entry_point, get_entry_info, iter_entry_points
from geonature.utils.utilstoml import load_and_validate_toml
from geonature.utils.config_schema import ManifestSchemaProdConf
from geonature.utils.env import G... | gpl-3.0 | 4,306,982,387,413,549,600 | 40.690265 | 120 | 0.680959 | false |
alexanderfefelov/nav | python/nav/eventengine/topology.py | 1 | 7788 | #
# Copyright (C) 2012 UNINETT
#
# This file is part of Network Administration Visualized (NAV).
#
# NAV is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# This program is distributed in the hope th... | gpl-2.0 | 4,639,183,928,962,233,000 | 31.45 | 79 | 0.626605 | false |
MikeLaptev/sandbox_python | mera/unittest_example/generate_and_load_unittest_update_four.py | 1 | 4101 | '''
Created on Jul 30, 2015
@author: Mikhail
'''
import unittest
import re
from json_file_generator import MyOwnJSONProcessing as json_processing
from json_file_generator import __version__ as json_file_generator_version
from unittest.case import skip, skipIf
class GenerateAndLoadJSONTestUpdateFour(unittest.TestCase)... | apache-2.0 | -1,147,400,482,822,408,300 | 50.275 | 214 | 0.683248 | false |
AutorestCI/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_routes_table_list_result.py | 1 | 1252 | # 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 | -8,715,857,573,506,023,000 | 35.823529 | 80 | 0.610224 | false |
appleseedhq/cortex | python/IECoreScene/RemovePrimitiveVariables.py | 5 | 2937 | ##########################################################################
#
# Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redis... | bsd-3-clause | 5,771,326,003,735,331,000 | 36.177215 | 102 | 0.677562 | false |
eJRF/ejrf | questionnaire/migrations/0002_copy_question_text_to_export_label.py | 1 | 25463 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
for question in orm.question.objects.filter(export_label=''):
que... | bsd-3-clause | -352,401,073,382,339,500 | 88.031469 | 195 | 0.571535 | false |
ishidawataru/gobgp | tools/pyang_plugins/bgpyang2golang.py | 1 | 24971 | # Copyright (C) 2014,2015 Nippon Telegraph and Telephone Corporation.
#
# 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 ... | apache-2.0 | 853,701,812,380,600,200 | 31.514323 | 165 | 0.53446 | false |
SaschaMester/delicium | tools/telemetry/telemetry/core/platform/profiler/java_heap_profiler.py | 1 | 3432 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import os
import subprocess
import threading
from telemetry.core.platform import profiler
from telemetry.core import util
from telemetry.inte... | bsd-3-clause | 5,593,076,294,993,118,000 | 34.75 | 76 | 0.666084 | false |
HaydenFaulkner/phd | tensorflow_code/word2vec_basic.py | 1 | 11354 | # Copyright 2015 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... | mit | 5,478,328,674,893,871,000 | 39.123675 | 91 | 0.59239 | false |
jacob-meacham/chain-cli | chain/cli.py | 1 | 4526 | """CLI for chain.
This module is not intended to be used programmatically - if this is something you want, use chain.client instead.
"""
import click
from termcolor import colored
from chain.chain import ChainClient, Frequency, NoChainExistsException, ChainExistsException
# No docstrings for this file, as the functi... | mit | -6,670,421,807,501,067,000 | 35.208 | 114 | 0.67057 | false |
DiCarloLab-Delft/PycQED_py3 | pycqed/analysis_v2/randomized_benchmarking_analysis.py | 1 | 94884 | import lmfit
from uncertainties import ufloat
import pandas as pd
from copy import deepcopy
from pycqed.analysis import analysis_toolbox as a_tools
from collections import OrderedDict
from pycqed.analysis import measurement_analysis as ma_old
import pycqed.analysis_v2.base_analysis as ba
import numpy as np
import loggi... | mit | 681,477,638,738,316,000 | 35.15968 | 88 | 0.494314 | false |
mathstuf/ranger | ranger/gui/widgets/taskview.py | 1 | 2838 | # Copyright (C) 2009-2013 Roman Zimbelmann <hut@hut.pm>
# This software is distributed under the terms of the GNU GPL version 3.
"""The TaskView allows you to modify what the loader is doing."""
from . import Widget
from ranger.ext.accumulator import Accumulator
class TaskView(Widget, Accumulator):
old_lst = No... | gpl-3.0 | 602,735,406,371,060,500 | 29.516129 | 75 | 0.471811 | false |
eReuse/DeviceHub | setup.py | 1 | 3827 | from setuptools import find_packages, setup
from setuptools.command.develop import develop
from setuptools.command.install import install
tests_require = [
'assertpy'
]
def install_r_packages():
"""Installs required R packages"""
from rpy2.robjects import packages as rpackages, r
# Install R packages... | agpl-3.0 | -3,400,840,527,315,715,600 | 32.570175 | 127 | 0.600209 | false |
maizy/zaglushka | zaglushka_tests/test_proxied_response.py | 1 | 5833 | # coding: utf-8
import time
import asyncio
from http import HTTPStatus
from os import path
import socket
from io import StringIO
from tornado.httpclient import HTTPResponse
import zaglushka
from zaglushka_tests import ZaglushkaAsyncHTTPTestCase, TEST_RESOURCES_DIR
class ProxiedResponseTestCase(ZaglushkaAsyncHTTPTes... | mit | 7,428,599,609,537,569,000 | 36.876623 | 118 | 0.564032 | false |
altsen/diandiyun-platform | common/lib/xmodule/xmodule/html_module.py | 1 | 11807 | import copy
from fs.errors import ResourceNotFoundError
import logging
import os
import sys
from lxml import etree
from path import path
from pkg_resources import resource_string
from xblock.fields import Scope, String, Boolean, List
from xmodule.editing_module import EditingDescriptor
from xmodule.html_checker import... | agpl-3.0 | -4,910,680,462,322,662,000 | 35.329231 | 123 | 0.621665 | false |
jashworth-isb/cmonkey-python | cmonkey/cmonkey_run.py | 1 | 18160 | # vi: sw=4 ts=4 et:
import logging
import microarray
import membership as memb
import meme
import motif
import util
import rsat
import microbes_online
import organism as org
import scoring
import network as nw
import stringdb
import os
from datetime import date, datetime
import json
import numpy as np
import gc
import ... | lgpl-3.0 | -5,790,948,944,277,834,000 | 42.444976 | 109 | 0.576101 | false |
taohungyang/cloud-custodian | tests/test_validation.py | 1 | 1757 | # Copyright 2017 Capital One Services, 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 to in... | apache-2.0 | -1,632,874,657,305,417,700 | 38.931818 | 90 | 0.689812 | false |
euphi/homie-esp8266 | scripts/ota_updater/ota_updater.py | 1 | 6619 | #!/usr/bin/env python
from __future__ import division, print_function
import paho.mqtt.client as mqtt
import base64, sys, math
from hashlib import md5
# The callback for when the client receives a CONNACK response from the server.
def on_connect(client, userdata, flags, rc):
if rc != 0:
print("Connection ... | mit | 6,659,864,722,361,300,000 | 41.703226 | 109 | 0.610666 | false |
Saluev/cocos2d-gui | cocosgui/css/__init__.py | 1 | 2523 | __all__ = [
'styles', 'Style', 'CSSNode',
'evaluate'
]
# importing basic names to publish them
from .style import styles, Style
from .node import CSSNode
# importing extensions
import border, borderimage, background, font
import rendering
def evaluate(window, element = None):
if element is None:
element = w... | mit | -5,700,135,919,683,113,000 | 29.768293 | 70 | 0.613555 | false |
mairin/anaconda | pyanaconda/bootloader.py | 1 | 83933 | # bootloader.py
# Anaconda's bootloader configuration module.
#
# Copyright (C) 2011 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later versi... | gpl-2.0 | -3,447,852,310,971,648,500 | 34.65548 | 120 | 0.555288 | false |
pclubuiet/website | home/views.py | 1 | 3396 | from django import views
from django.shortcuts import render, get_object_or_404
from django.views.generic import TemplateView
from django.views.generic.edit import CreateView
from .models import *
from .forms import *
import requests
import http
from django.urls import reverse_lazy
from django.views.decorators.csrf imp... | gpl-3.0 | -1,718,221,211,592,258,300 | 38.045977 | 170 | 0.620436 | false |
brain-research/acai | lib/eval.py | 1 | 4490 | # Copyright 2018 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 3,405,448,565,287,546,400 | 39.089286 | 79 | 0.688641 | false |
mentaal/r_map | tests/test_data_structure.py | 1 | 1802 | from copy import deepcopy
def test_get_item(data):
"test the different ways that an item can be referenced"
#key based lookup
spi = data['spi']
#attribute based
cfg0 = spi.cfg0
print(f'cfg: {cfg0}')
field = spi.cfg0['bf0']
field = spi.cfg0.bf0.bf
#field = spi.bf0
print(field)
... | mit | 1,948,170,371,187,965,700 | 23.026667 | 72 | 0.614872 | false |
bklakew/OpenAgClassifier | src/model/server.py | 1 | 6199 | """
# Copyright 2017 Foundation Center. All Rights Reserved.
#
# Licensed under the Foundation Center Public License, Version 1.0 (the “License”);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://gis.foundationcenter.org/licenses/LICENSE-... | mpl-2.0 | 8,984,252,178,927,677,000 | 33.786127 | 116 | 0.581812 | false |
snipsco/snipsskills | snipsmanager/commands/setup/systemd/snipsmanager.py | 1 | 1887 | # -*-: coding utf-8 -*-
import os
import time
from ...base import Base
from ....utils.os_helpers import is_raspi_os, which
from ....utils.systemd import Systemd
from .... import DEFAULT_SNIPSFILE_PATH
from snipsmanagercore import pretty_printer as pp
class SystemdSnipsManagerException(Exception):
pass
class ... | mit | 9,124,192,898,552,893,000 | 36 | 185 | 0.711182 | false |
haricot/djangocms-bs4forcascade | cmsplugin_bs4forcascade/bootstrap4/utils.py | 1 | 11099 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from collections import OrderedDict
from django.forms import widgets
from cmsplugin_cascade import app_settings
from cmsplugin_cascade.plugin_base import CascadePluginBase
from cmsplugin_cascade.utils import compute_aspect_ratio, get_image... | mit | -605,115,729,172,687,700 | 45.422594 | 142 | 0.605588 | false |
lcpt/xc | verif/tests/elements/shell/test_shell_mitc4_11.py | 1 | 3573 | # -*- coding: utf-8 -*-
''' Taken from example 2-005 of the SAP 2000 verification manual.'''
# The obtained error is near 1.8% it can be the aspect ratio
# of the element. See comments on page EXAMPLE 2-005 - 7
# in the SAP 2000 manual.
__author__= "Luis C. Pérez Tato (LCPT) and Ana Ortega (AOO)"
__copyright__= "Copyr... | gpl-3.0 | -1,432,100,207,234,984,400 | 26.060606 | 96 | 0.755879 | false |
pdelsante/thug | thug/Analysis/virustotal/VirusTotal.py | 1 | 3786 | #!/usr/bin/env python
#
# VirusTotal.py
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY... | gpl-2.0 | 2,766,726,902,379,941,000 | 30.084746 | 107 | 0.591125 | false |
dsalazarr/pfc_ii | pfc/config/urls.py | 1 | 2260 | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
from pfc.applications.views import ApplicationConfigurationView
from pf... | gpl-3.0 | -2,400,147,867,395,149,300 | 42.461538 | 110 | 0.690265 | false |
rhinstaller/libblockdev | tests/kbd_test.py | 1 | 22929 | import unittest
import os
import re
import time
from contextlib import contextmanager
from distutils.version import LooseVersion
from distutils.spawn import find_executable
from utils import create_sparse_tempfile, create_lio_device, delete_lio_device, wipe_all, fake_path, read_file, TestTags, tag_test
from bytesize im... | lgpl-2.1 | 7,868,184,235,334,977,000 | 38.601036 | 130 | 0.627066 | false |
vidartf/hyperspyUI | hyperspyui/uiprogressbar.py | 1 | 10235 | # -*- 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 | -3,904,834,961,505,757,700 | 34.538194 | 82 | 0.557792 | false |
google-research/tensor2robot | layers/resnet_test.py | 1 | 3049 | # coding=utf-8
# Copyright 2021 The Tensor2Robot 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 ... | apache-2.0 | -7,691,718,284,358,885,000 | 40.767123 | 74 | 0.602493 | false |
jaryn/vomit | actions.py | 1 | 14309 | #!/usr/bin/python
# Copyright (C) 2015 Jaroslav Henner
#
# This file is part of pyvmomi ansible module.
#
# pyvmomi_ansible module 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 Lice... | gpl-2.0 | 7,803,763,654,408,510,000 | 28.202041 | 79 | 0.594311 | false |
umax/diabetto2 | category/views.py | 1 | 1429 | # -*- coding: utf-8 -*-
from django.core.urlresolvers import reverse_lazy
from django.views.generic import (ListView, DetailView, CreateView,
DeleteView, UpdateView)
from . import forms
from . import models
__all__ = (
'CategoryIndexView',
'CategoryDetailView',
'Category... | gpl-2.0 | 5,028,435,370,511,008,000 | 25.962264 | 73 | 0.69909 | false |
dimtruck/magnum | magnum/api/controllers/base.py | 1 | 3932 | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | apache-2.0 | -7,404,643,373,537,274,000 | 32.042017 | 78 | 0.600458 | false |
papedaniel/oioioi | oioioi/contests/handlers.py | 1 | 4452 | import json
import logging
import traceback
import pprint
import socket
import time
from smtplib import SMTPException
from django.core.mail import mail_admins
from django.db import transaction
from oioioi.contests.models import Contest, ProblemInstance, Submission, \
SubmissionReport, FailureReport
logger = lo... | gpl-3.0 | 4,431,240,814,176,651,300 | 29.703448 | 75 | 0.66442 | false |
joaormatos/anaconda | mmfparser/data/checksum.py | 1 | 2357 | # Copyright (c) Mathias Kaerlev 2012.
# This file is part of Anaconda.
# Anaconda is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# ... | gpl-3.0 | 1,744,356,720,394,358,800 | 29.230769 | 83 | 0.647857 | false |
rlbabyuk/integration_tests | cfme/containers/provider/__init__.py | 1 | 12639 | from functools import partial
from random import sample
from navmazing import NavigateToSibling, NavigateToAttribute
from cfme.common.provider import BaseProvider
from cfme.fixtures import pytest_selenium as sel
from cfme.web_ui import (
Quadicon, Form, AngularSelect, form_buttons, Input, toolbar as tb,
InfoB... | gpl-2.0 | -922,744,435,905,846,400 | 30.997468 | 96 | 0.630192 | false |
mdraeger/gmapcatcher | gmapcatcher/widgets/widComboBoxEntry.py | 1 | 4319 | # -*- coding: utf-8 -*-
## @package gmapcatcher.widgets.widComboBoxEntry
# ComboBoxEntry widget used to collect data to search
import gtk
import re
from gmapcatcher.mapConst import *
## This widget is where we collect data to search
class ComboBoxEntry(gtk.ComboBoxEntry):
DEFAULT_TEXT = "Enter location here!"
... | gpl-2.0 | -1,651,217,596,343,355,100 | 38.623853 | 87 | 0.634869 | false |
Som-Energia/somenergia-tomatic | tomatic_sandbox.py | 1 | 2204 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import click
import re
from consolemsg import warn, step, error, u
from datetime import datetime, timedelta
from shutil import copyfile
from pathlib import Path
from slugify import slugify
@click.command()
@click.help_option()
@click.option('-d', '--description',
hel... | gpl-3.0 | 4,193,262,625,800,079,000 | 31.411765 | 89 | 0.635662 | false |
mellenburg/dcos | dcos_installer/test_backend.py | 1 | 13478 | import json
import logging
import os
import subprocess
import textwrap
import uuid
import boto3
import passlib.hash
import pytest
from dcos_installer import backend
from dcos_installer.config import Config, make_default_config_if_needed, to_config
os.environ["BOOTSTRAP_ID"] = "12345"
def test_password_hash():
... | apache-2.0 | -808,577,008,452,427,300 | 33.647815 | 115 | 0.667606 | false |
kain88-de/mdanalysis | testsuite/MDAnalysisTests/test_failure.py | 1 | 1352 | # -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | gpl-2.0 | 7,582,456,156,020,400,000 | 39.969697 | 79 | 0.701923 | false |
hooram/ownphotos-backend | densecap/webcam/server2.py | 1 | 3086 | import argparse, random, os, time, json
from PIL import Image
from io import BytesIO
import base64
from flask import Flask, request
from flask.ext.cors import CORS
from flask_restful import Resource, Api
import ipdb
app = Flask(__name__)
app.config['DEBUG'] = True
ext2conttype2 = {
"jpg": "JPEG",
"jpeg": ... | mit | 3,539,640,382,857,798,700 | 25.152542 | 80 | 0.602722 | false |
Lucretiel/genetics | test/test_dna/test_binary.py | 1 | 2361 | import random
from genetics.dna.binary import DNABinary
def test_basic_init():
init = (True, False, True, True, False, False, False, True, True, False)
x = DNABinary(init)
for component, b in zip(x, init):
assert component == b
def test_string_init():
init = '1000101011110101010010100101001... | lgpl-2.1 | 940,507,718,833,275,900 | 22.61 | 92 | 0.603981 | false |
asntech/jaspar | portal/migrations/0002_auto_20170617_1217.py | 1 | 1491 | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-17 12:17
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependenc... | bsd-3-clause | 3,353,032,720,810,922,000 | 35.365854 | 155 | 0.574782 | false |
gwind/YWeb | yweb/yweb/utils/translation/trans_real.py | 1 | 25606 | """Translation helper functions."""
from __future__ import unicode_literals
import locale
import os
import re
import sys
import gettext as gettext_module
from threading import local
import warnings
from yweb.utils.importlib import import_module
from yweb.utils.datastructures import SortedDict
from yweb.utils.encoding... | mit | 615,606,380,099,209,600 | 36.878698 | 143 | 0.573772 | false |
john123951/SmartQQBot | MsgHandler.py | 1 | 6793 | # -*- coding: utf-8 -*-
# Code by Yinzo: https://github.com/Yinzo
# Origin repository: https://github.com/Yinzo/SmartQQBot
from Group import *
from Pm import *
from Sess import *
import threading
logging.basicConfig(
filename='smartqq.log',
level=logging.DEBUG,
format='%(asctime)s %(filename)s... | gpl-3.0 | -3,575,861,079,491,298,300 | 37.962733 | 109 | 0.545194 | false |
zemon1/CrawfoSys | weather.py | 1 | 2138 | #!/usr/bin/env python2
#weather.py
#Original author: Josh McSavaney (mcsaucy@csh.rit.edu)
#Current maintainer: Jeff Haak (zemon1@csh.rit.edu)
#A script used to scrape and parse weather information
import urllib, re, argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Gets weather inf... | apache-2.0 | -8,801,125,068,099,630,000 | 25.395062 | 86 | 0.546305 | false |
EachenKuang/PythonRepository | MedicineSCI/Tools/Dao.py | 1 | 1155 | # -*- coding: utf-8 -*-
import pymssql
class Dao:
def __init__(self):
self.conn = None
self.cur = None
def connect(self):
# 数据库连接信息
self.conn = pymssql.connect(host="localhost:59318", user="eachen", password="123456", database="mydata",
cha... | apache-2.0 | -7,258,135,829,876,773,000 | 23.795455 | 112 | 0.507791 | false |
forseti-security/forseti-security | google/cloud/forseti/common/gcp_api/api_helpers.py | 1 | 5251 | # Copyright 2017 The Forseti Security 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 ap... | apache-2.0 | -1,306,014,316,624,759,000 | 32.660256 | 79 | 0.652828 | false |
skycucumber/Messaging-Gateway | src/Command/HeartBeat.py | 1 | 1072 | '''
Created on 2013-8-12
@author: E525649
'''
from BaseCommand import CBaseCommand
from twisted.internet import threads
import BaseCommand
from DB import SBDB
class CHeartBeat(CBaseCommand):
'''
classdocs
'''
command_id=0x00000002
def __init__(self,data=None,protocol=None):
... | gpl-2.0 | -7,245,791,321,416,922,000 | 29.529412 | 137 | 0.60541 | false |
martinggww/lucasenlights | MachineLearning/sklearn/mrjbq7-ta-lib-c553531/setup.py | 1 | 3712 | #!/usr/bin/env python
import sys
import os
import warnings
from distutils.dist import Distribution
display_option_names = Distribution.display_option_names + ['help', 'help-commands']
query_only = any('--' + opt in sys.argv for opt in display_option_names) or len(sys.argv) < 2 or sys.argv[1] == 'egg_info'
# Use set... | cc0-1.0 | -1,881,101,097,156,988,400 | 28.935484 | 122 | 0.60695 | false |
endreszabo/pdnsapp | dns.py | 1 | 6190 | #!/usr/bin/env python
from sys import exit, stdin, stderr, argv, stdout
from inspect import stack
from config import *
import os
import csv
CONT=0
FINAL=1
default_ttl=60
loglevel=3
class istr(str):
def __eq__(self, text):
return str.__eq__(self.lower(), text.lower())
class qname(istr):
def __new__(c... | gpl-2.0 | 1,141,596,529,849,517,300 | 30.907216 | 137 | 0.485784 | false |
nixingyang/Kaggle-Competitions | Face Verification/Extra/Cross Validation/Cross_Validation.py | 1 | 5595 | from joblib import Parallel, delayed
from sklearn.cross_validation import KFold
import numpy as np
import prepare_data
import pylab
import solution_basic
def inspect_final_data_set_without_labels(image_index_list, seed):
np.random.seed(seed)
image_index_array = np.array(image_index_list)
# Cross Validati... | mit | -2,729,778,496,074,134,000 | 36.3 | 143 | 0.611796 | false |
DMSalesman/Nemris | modules/pkgutils.py | 1 | 3330 | """Module with functions for management of installed APK lists."""
import glob
import re
import subprocess
import apkutils # needed for AndroidManifest.xml dump
import utils # needed for sudo
# Creates a APK/path dictionary to avoid the sluggish "pm path"
def create_pkgdict():
"""Creates a dict for fast pa... | unlicense | -4,136,320,089,613,756,400 | 30.714286 | 194 | 0.606607 | false |
zhongwcool/Muzei | web/handlers/backroomarthelper.py | 1 | 6229 | # Copyright 2014 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 525,997,306,480,910,340 | 33.798883 | 98 | 0.67266 | false |
realgam3/SubtitlesClient | SubtitlesClient.py | 1 | 3702 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
########################################################
# Name: Subtitles Client
# Site: http://RealGame.co.il
__author__ = 'RealGame (Tomer Zait)'
__license__ = 'GPL v3'
__version__ = '1.0'
__email__ = 'realgam3@gmail.com'
###################################################... | gpl-3.0 | 1,652,222,305,396,797,700 | 36.77551 | 118 | 0.537007 | false |
eReuse/DeviceHub | ereuse_devicehub/resources/account/settings.py | 1 | 5490 | from ereuse_devicehub.resources.account.role import Role
from ereuse_devicehub.resources.resource import ResourceSettings
from ereuse_devicehub.resources.schema import Thing
from ereuse_devicehub.security.perms import DB_PERMS
from ereuse_devicehub.validation.validation import ALLOWED_WRITE_ROLE
class Account(Thing):... | agpl-3.0 | 5,062,361,657,323,126,000 | 32.680982 | 117 | 0.532058 | false |
codedsk/hubcheck | hubcheck/pageobjects/widgets/groups_wiki_edit_form.py | 1 | 3453 | from hubcheck.pageobjects.widgets.groups_wiki_new_form import \
GroupsWikiNewForm1, GroupsWikiNewForm1_Locators_Base, \
GroupsWikiNewForm2, GroupsWikiNewForm2_Locators_Base, \
GroupsWikiNewForm3, GroupsWikiNewForm3_Locators_Base
from hubcheck.pageobjects.basepageelement import Link
class GroupsWikiEditFor... | mit | 2,063,670,874,993,383,400 | 27.073171 | 84 | 0.660875 | false |
couchbaselabs/devguide-examples | python/cas.py | 1 | 1612 | from __future__ import print_function
from couchbase.bucket import Bucket
from couchbase.bucket import LOCKMODE_WAIT
from threading import Thread
from couchbase.exceptions import KeyExistsError
cb = Bucket('couchbase://10.0.0.31/default', lockmode=LOCKMODE_WAIT)
cb.upsert('a_list', [])
print('Will attempt concurr... | apache-2.0 | 2,503,954,480,258,937,300 | 26.322034 | 76 | 0.653226 | false |
tanonev/codewebs | src/dataBaseTools/PrecomputeNN.py | 1 | 3695 | import sys
import os.path
sys.path.append(os.path.abspath('../../'))
sys.path.append(os.path.abspath('../../site/cwsite'))
import src.util.DBSetup
from src.util.MLClass import MLClass
from src.util.FileSystem import FileSystem
from src.util.AstNetwork import AstNetwork
from src.util.Assignment import Assignment
from m... | mit | -6,443,573,087,008,330,000 | 35.584158 | 89 | 0.540731 | false |
oVirt/mom | mom/__init__.py | 1 | 9505 | from six.moves import configparser
import os
import time
import re
import logging.handlers
from mom.LogUtils import *
from mom.HostMonitor import HostMonitor
from mom.HypervisorInterfaces.HypervisorInterface import ConnectionError
from mom.GuestManager import GuestManager
from mom.PolicyEngine import PolicyEngine
from ... | gpl-2.0 | -7,535,552,825,987,476,000 | 39.105485 | 99 | 0.581273 | false |
zandao/stn3270 | stn3270/field.py | 1 | 1639 | # -*- coding: utf-8 -*-
"""
******************
Super TN3270 Field
******************
Super TN3270 Field - stn3270.field - implements the field
manipulation on a 3270 virtual screen: read, write, verify
and find fields.
"""
class Field:
"""It's a representation of a 3270 field, with a *start of field* sequence,
... | lgpl-2.1 | -6,518,581,165,051,224,000 | 31.78 | 92 | 0.597315 | false |
kfcpaladin/sze-the-game | renpy/debug.py | 1 | 1941 | # Copyright 2004-2017 Tom Rothamel <pytom@bishoujo.us>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, m... | mit | 1,905,923,962,222,076,000 | 31.898305 | 92 | 0.729006 | false |
pdebuyl/cg_md_polymerization | code/epoxy_setup.py | 1 | 3569 | import espressopp
import mpi4py.MPI as MPI
def get_velocity(system, n):
"""Obtain total velocity of a espressopp system."""
total_v = espressopp.Real3D(0.)
total_m = 0.
for i in range(n):
p = system.storage.getParticle(i)
total_v += p.v*p.mass
total_m += p.mass
return total_... | bsd-3-clause | -3,066,971,447,088,541,000 | 34.336634 | 155 | 0.674979 | false |
hpparvi/PyTransit | pytransit/lpf/tessoclttvlpf.py | 1 | 3050 | # PyTransit: fast and easy exoplanet transit modelling in Python.
# Copyright (C) 2010-2019 Hannu Parviainen
#
# 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 Licen... | gpl-2.0 | -3,970,768,457,033,635,300 | 40.780822 | 105 | 0.65541 | false |
RJRetro/mame | scripts/build/makedep.py | 2 | 8404 | #!/usr/bin/python
##
## license:BSD-3-Clause
## copyright-holders:Miodrag Milanovic
from __future__ import with_statement
import sys
## to ignore include of emu.h add it always to list
files_included = ['src/emu/emu.h']
include_dirs = ['src/emu/', 'src/devices/', 'src/mame/']
mappings = dict()
deps_files_included... | gpl-2.0 | 5,154,461,549,047,289,000 | 32.086614 | 92 | 0.510114 | false |
normic/django-data-approvals | tests/test_urls.py | 1 | 1688 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Tests for `django-data-approvals` urls.
"""
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.test import TestCase
from approvals.models import Approval
cl... | bsd-3-clause | 3,095,041,702,529,421,300 | 29.142857 | 72 | 0.64218 | false |
izilly/izdvd | izdvd/dvd.py | 1 | 34440 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013 William Adams
# Distributed under the terms of the Modified BSD License.
# The full license is in the file LICENSE, distributed with this software.
#
from izdvd.dvdmenu import DVDMenu
from izdvd.encoder import Encoder
from izdvd import utils
from... | bsd-3-clause | -7,510,610,660,816,949,000 | 40.594203 | 87 | 0.455749 | false |
pku9104038/edx-platform | common/lib/capa/capa/capa_problem.py | 1 | 28574 | #
# File: capa/capa_problem.py
#
# Nomenclature:
#
# A capa Problem is a collection of text and capa Response questions.
# Each Response may have one or more Input entry fields.
# The capa problem may include a solution.
#
"""
Main module which shows problems (of "capa" type).
This is used by capa_module.
"""
from ... | agpl-3.0 | -9,036,447,143,522,534,000 | 37.718157 | 115 | 0.585042 | false |
JonathanSalwan/Triton | src/examples/python/proving_opaque_predicates.py | 1 | 3432 | #!/usr/bin/env python3
## -*- coding: utf-8 -*-
##
## Example to detect opaque predicates. This example is based
## on the Tomislav Zubcic's blog post [0,1] =).
##
## Output:
##
## $ python3 proving_opaque_predicates.py
## xor eax, eax
## jo 7
## opaque predicate: never taken
## ----------------------------------
... | apache-2.0 | -7,506,264,363,885,100,000 | 26.238095 | 115 | 0.540501 | false |
mekkablue/Glyphs-Scripts | Kerning/kernanalysis.py | 1 | 7373 | # -*- coding: utf-8 -*--- --
from __future__ import print_function
from GlyphsApp import Glyphs
if Glyphs.versionNumber >= 3.0:
from GlyphsApp import LTR
from Foundation import NSNotFound
intervalList = (1,3,5,10,20)
categoryList = (
"Letter:Uppercase",
"Letter:Lowercase",
"Letter:Smallcaps",
"Punctuation",
"Sym... | apache-2.0 | -576,480,600,968,904,300 | 29.849372 | 152 | 0.714092 | false |
Pablites/W2IO | setup.py | 1 | 1491 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Project: W2IO (https://github.com/Pablites/W2IO)
# Authors: Paweł Wichary & Michał Waleszczuk
# Date: 21 July 2015
# Licence: available on github
"""
Setup of W2IO install all files of plugin
Instal directory is: ~/.starcluster/plugins
"""
import logging
import os
impor... | lgpl-3.0 | -7,020,134,948,091,910,000 | 30.020833 | 104 | 0.733378 | false |
m3h0w/jigsaw_friend | trackbar.py | 1 | 1497 | """
usage: threshold_custom = tb.SimpleTrackbar(img, "ImgThresh")
"""
import cv2
import numpy as np
def empty_function(*arg):
pass
def SimpleTrackbar(img, win_name):
trackbar_name = win_name + "Trackbar"
cv2.namedWindow(win_name)
cv2.createTrackbar(trackbar_name, win_name, 0, 255, empty_function)
... | mit | -5,651,194,603,384,155,000 | 28.372549 | 76 | 0.639947 | false |
eteq/ginga | ginga/Bindings.py | 1 | 66446 | #
# Bindings.py -- Bindings classes for Ginga FITS viewer.
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
import math
from ginga.misc import Bunch, Settings, Callback
... | bsd-3-clause | 6,027,979,708,236,508,000 | 34.646996 | 82 | 0.523658 | false |
hotsyk/mailpost | mailpost/management/commands/fetchmail.py | 1 | 1566 | """
A package that maps incoming email to HTTP requests
Mailpost version 0.1
(C) 2010 oDesk www.oDesk.com
"""
import os
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from django.core.mail import mail_admins
from mailpost.handler import Handler
class Command(Base... | bsd-3-clause | 1,583,851,459,839,918,300 | 33.043478 | 80 | 0.574074 | false |
yotamfr/prot2vec | src/python/pssm3go_model.py | 1 | 11287 | import numpy as np
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.nn.functional as F
USE_CUDA = False
KERN_SIZE = 3
def set_cuda(val):
global USE_CUDA
USE_CUDA = val
def sequence_mask(sequence_length, max_len=None):
if max_len is None:
max_len = sequence_... | mit | -5,608,129,983,196,193,000 | 35.409677 | 116 | 0.611234 | false |
eneldoserrata/marcos_openerp | addons/point_of_sale/report/pos_receipt.py | 1 | 3036 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 873,737,431,624,882,400 | 38.428571 | 131 | 0.591897 | false |
baylee-d/osf.io | osf_tests/test_elastic_search.py | 1 | 61588 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import mock
import time
import unittest
import logging
import functools
from nose.tools import * # noqa: F403
import pytest
from framework.auth.core import Auth
from website import settings
import website.sea... | apache-2.0 | -7,887,259,153,225,950,000 | 38.888601 | 134 | 0.621079 | false |
chrysante87/pyterpol | pyterpol_test/test_hjd/test.hjd.py | 1 | 1829 | import numpy as np
import pyterpol
def load_observations(f):
"""
:param f: file
:return:
"""
# load the observations
flist = np.loadtxt(f, usecols=[0], unpack=True, dtype=str)
hjd = np.loadtxt(f, usecols=[1], unpack=True).tolist()
hjd[0] = None
# create list of observations
ob... | gpl-2.0 | -9,011,860,902,559,890,000 | 24.402778 | 87 | 0.600328 | false |
rljacobson/Guru | guru/ServerListDlg.py | 1 | 6741 | from PySide.QtGui import (QApplication, QDialog, QMessageBox, QListWidgetItem, QFont)
from PySide.QtCore import (SIGNAL)
# from Ui_ServerListDlg import Ui_ServerListDlg
from guru.Ui_ServerListDlg import Ui_ServerListDlg
# from EditSageServerDlg import EditSageServerDlg
from guru.EditSageServerDlg import EditSageServer... | mit | -1,040,866,541,898,030,500 | 41.402516 | 147 | 0.64931 | false |
upcFrost/SDR2_translate | GuiFuncs.py | 1 | 6614 | import os, ConfigParser, PIL
from PIL import Image, ImageTk, ImageDraw, ImageFont
from PakFile import *
from GimFile import *
from Common import *
from clt import *
def showSprite(self, GameDataLoc, pars):
fn = os.path.join(GameDataLoc,'all','cg', 'bustup_%02d_%02d.gim' % (pars[1][1], pars[2][1]))
GimImage = G... | gpl-3.0 | -2,265,219,950,478,194,700 | 34.180851 | 128 | 0.579226 | false |
lokeshsaini94/DaysCalculator | src/days_calculator.py | 1 | 2817 | # Calculates number of days between two date.
# Enter your birth date and current date. This program will calculate the number of days
def date_error_check(month1, day1, month2, day2): # Checks if dates are correct.
if month1 > 12 or month2 > 12 or day1 > 31 or day2 > 31:
return False
return True
d... | apache-2.0 | 6,824,768,713,936,740,000 | 34.658228 | 117 | 0.629393 | false |
moshthepitt/product.co.ke | links/migrations/0001_initial.py | 1 | 1633 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-02 10:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | mit | 4,329,832,834,615,764,500 | 41.973684 | 157 | 0.59951 | false |
akretion/l10n-brazil | l10n_br_base/tests/test_other_ie.py | 1 | 3687 | # -*- coding: utf-8 -*-
# @ 2018 Akretion - www.akretion.com.br -
# Magno Costa <magno.costa@akretion.com.br>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import TransactionCase
import logging
_logger = logging.getLogger(__name__)
class OtherIETest(TransactionCase)... | agpl-3.0 | -2,175,972,573,397,180,000 | 34.095238 | 76 | 0.504206 | false |
DedMemez/ODS-August-2017 | toon/DistributedNPCLaffRestock.py | 1 | 2504 | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.toon.DistributedNPCLaffRestock
from otp.nametag.NametagConstants import CFSpeech, CFTimeout
from toontown.toonbase import TTLocalizer, ToontownGlobals
from toontown.toon import NPCToons
from DistributedNPCToonBase import DistributedNPCToonBase
imp... | apache-2.0 | 3,289,223,680,876,199,400 | 38.419355 | 98 | 0.680911 | false |
coreboot/chrome-ec | util/uart_stress_tester.py | 2 | 18551 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ChromeOS Uart Stress Test
This tester runs the command 'chargen' on EC and/or AP, captures the
output, ... | bsd-3-clause | -350,908,902,241,869,500 | 32.24552 | 80 | 0.593876 | false |
cerrno/neurokernel | neurokernel/tools/gpu.py | 1 | 7561 | #!/usr/bin/env python
import numbers
import numpy as np
import pycuda.driver as drv
import pycuda.elementwise as elementwise
import pycuda.gpuarray as gpuarray
from pycuda.tools import dtype_to_ctype
# List of available numerical types provided by numpy:
# XXX This try/except is an ugly hack to prevent the doc buil... | bsd-3-clause | -1,037,744,287,174,244,400 | 33.683486 | 120 | 0.622404 | false |
TravelModellingGroup/TMGToolbox | TMGToolbox/src/XTMF_internal/delete_scenario.py | 1 | 2229 | '''
Copyright 2016 Travel Modelling Group, Department of Civil Engineering, University of Toronto
This file is part of the TMG Toolbox.
The TMG Toolbox 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 Fou... | gpl-3.0 | -351,590,633,516,950,140 | 30.408451 | 110 | 0.638852 | false |
google/nerfactor | third_party/xiuminglib/xiuminglib/imprt.py | 1 | 2311 | from importlib import import_module
from .log import get_logger
logger = get_logger()
# For < Python 3.6
try:
ModuleNotFoundError
except NameError:
ModuleNotFoundError = ImportError
def preset_import(name, assert_success=False):
"""A unified importer for both regular and ``google3`` modules, according
... | apache-2.0 | -7,016,370,503,272,079,000 | 27.182927 | 77 | 0.590221 | false |
CrankWheel/grit-i18n | grit/tool/xmb.py | 1 | 11671 | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""The 'grit xmb' tool.
"""
import getopt
import os
from xml.sax import saxutils
from grit import grd_reader
from grit import la... | bsd-2-clause | 5,850,516,025,989,369,000 | 32.927326 | 122 | 0.639877 | false |
carthach/essentia | test/src/unittests/stats/test_mean.py | 1 | 1594 | #!/usr/bin/env python
# Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
#
# This file is part of Essentia
#
# Essentia 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 (FSF), e... | agpl-3.0 | -3,298,976,419,984,662,500 | 29.075472 | 79 | 0.68005 | false |
leiferikb/bitpop-private | build/android/pylib/perf_tests_helper.py | 2 | 5576 | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
import android_commands
import json
import math
# Valid values of result type.
RESULT_TYPES = {'unimportant': 'RESULT ',
'def... | bsd-3-clause | -1,881,200,107,508,496,100 | 32.793939 | 80 | 0.637195 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.