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 |
|---|---|---|---|---|---|---|---|---|---|---|
rwl/PyCIM | CIM14/IEC61968/Metering/Reading.py | 1 | 5442 | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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, merge, publish... | mit | -2,014,066,142,019,675,400 | 37.323944 | 134 | 0.668688 | false |
radiac/sermin | sermin/utils.py | 1 | 1923 | """
Util functions
"""
import os
import shlex
from subprocess import Popen, PIPE
from six import string_types
from .exceptions import ShellError
from . import report
class ShellOutput(str):
def __new__(cls, stdout, stderr):
# Store raw
stdout = stdout.strip() if stdout else ''
stderr = s... | bsd-3-clause | -398,740,528,859,610,240 | 23.0375 | 75 | 0.577223 | false |
danakj/chromium | build/android/gyp/proguard.py | 1 | 2974 | #!/usr/bin/env python
#
# 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 optparse
import os
import sys
from util import build_utils
from util import proguard_util
_DANGEROUS_OPTIMIZATIONS = [
... | bsd-3-clause | 2,036,293,348,165,897,700 | 32.044444 | 80 | 0.696369 | false |
Primary-Traxex/odooalipay | models/func.py | 1 | 3484 | # coding: utf-8
"""
* 支付宝接口公用函数 python版本
* 详细:该类是请求、通知返回两个文件所调用的公用函数核心处理文件
* 版本:1.0
* 日期:2012-07-19(官方)本接口写于2017年新春
* 说明:
"""
import json
import sys
import types
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA
from base64 import b64encode,b64decode
from urllib... | mit | 2,567,390,790,461,478,000 | 22.816667 | 74 | 0.607418 | false |
makhan/spaghetti-basic | translator.py | 1 | 1798 | """
A module that simply bolts on simple loops
by translating them into interpretable code in Spaghetti.
This module will probably disappear in the future.
This is just a quick hack some hours before the GCJ 2010 Quals
to add FOR loops for solving problems during the contest
Warning: Extremely Buggy and hardly works... | mit | -601,688,768,264,575,000 | 22.657895 | 72 | 0.669633 | false |
hyatzh/redis-py | redis/client.py | 1 | 72902 | from __future__ import with_statement
from itertools import chain, starmap
import datetime
import sys
import warnings
import time as mod_time
from redis._compat import (b, izip, imap, iteritems, dictkeys, dictvalues,
basestring, long, nativestr, urlparse, bytes)
from redis.connection import C... | mit | 8,373,793,123,824,788,000 | 35.96856 | 79 | 0.59115 | false |
jptomo/rpython-lang-scheme | rpython/rtyper/rnone.py | 1 | 2579 | from rpython.flowspace.model import Constant
from rpython.annotator.model import SomeNone
from rpython.rtyper.rmodel import Repr, TyperError, inputconst
from rpython.rtyper.lltypesystem.lltype import Void, Bool, Ptr, Char
from rpython.rtyper.lltypesystem.llmemory import Address
from rpython.rtyper.rpbc import SmallFunc... | mit | -3,959,287,251,146,390,500 | 30.45122 | 71 | 0.647926 | false |
peterjanes/dosage | dosagelib/plugins/r.py | 1 | 5376 | # -*- coding: utf-8 -*-
# Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs
# Copyright (C) 2012-2014 Bastian Kleineidam
# Copyright (C) 2015-2020 Tobias Gruetzmacher
# Copyright (C) 2019-2020 Daniel Ring
from __future__ import absolute_import, division, print_function
from re import compile
from six.move... | mit | -1,011,755,485,602,224,600 | 33.909091 | 104 | 0.620722 | false |
SanaMobile/sana.mds | src/mds/api/contrib/openmrslib/openmrs19.py | 1 | 17366 | """ Classes and utilities for talking to an OpenMRS server version 1.9
:Authors: Sana Dev Team
:Version: 2.0
"""
import urllib
import cookielib
import logging
import urllib2
import cjson
import time
import base64
from django.conf import settings
from . import openers
from mds.api.responses import succeed, fail
__al... | bsd-3-clause | 1,089,484,495,699,072,800 | 37.939462 | 99 | 0.563803 | false |
bingweichen/GOKU | backend/server/database/model.py | 1 | 11139 | """
@author: Bingwei Chen
@time: 8/4/17
@desc: models
每个field 生效是要重新删表,建表
"""
import json
from datetime import datetime
from peewee import *
from server.database.db import database
from server.utility.constant.basic_constant import \
DELIVERY, APPOINTMENT_STATUS
from server.utility.constant.const_db import C... | apache-2.0 | -5,023,248,486,933,650,000 | 24.85422 | 78 | 0.645464 | false |
tmolteno/python-necpp | PyNEC/example/context_clean.py | 1 | 8139 | # Note: explicit zeroes are blanks. All other values should be specified symbolically.
# Currently these contain only the subset of cards that I needed
class Range(object):
def __init__(self, start, stop, count=None, delta=None):
self.start = start
self.stop = stop
if count is not None:
... | gpl-2.0 | 5,148,461,539,862,816,000 | 43.233696 | 199 | 0.646885 | false |
dorotapalicova/GoldDigger | gold_digger/data_providers/yahoo.py | 1 | 2754 | # -*- coding: utf-8 -*-
from datetime import date
from ._provider import Provider
class Yahoo(Provider):
"""
Real-time service with no known limits offers only latest exchange rates.
Implicit base currency is USD.
"""
BASE_URL = "http://query.yahooapis.com/v1/public/yql"
PREPARED_YQL = "SELECT... | apache-2.0 | -5,179,105,512,653,488,000 | 35.72 | 125 | 0.564996 | false |
reeshupatel/demo | keystone/tests/test_v3_os_revoke.py | 1 | 4841 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | -3,278,505,571,250,286,000 | 38.040323 | 79 | 0.646767 | false |
mantasurbonas/angis-poc-sudoku | src/spausdintojas.py | 1 | 1058 | iš sudoku_lenta reikalinga SudokuLenta
iš taisykles reikalingas Sprendėjas
klasė Spausdintojas:
@staticmethod
tai spausdinkSudokuLentą(lenta):
res = ""
imk eilnr iš intervalo (0, 9):
imk stulpnr iš intervalo (0, 9):
l = lenta.langeliai[eilnr, stulpnr]
... | gpl-2.0 | 8,243,370,010,085,592,000 | 26.864865 | 61 | 0.5645 | false |
brandonlee503/Algorithms-Assignments | Practice Assignment 2/HW2Q3.py | 1 | 1088 | def algorithm3(arr):
maxLength = 0
if len(arr) <= 0:
return 0
if len(arr) == 1:
return 1
for i in arr:
print "i is: " + str(i)
temp = [arr[i-1]]
for j in range(len(arr) - i):
spliceArrayJ = arr[j+1:]
print "reversed array: "
reversedArray = spliceArrayJ[::-1]
print reversedArray
print "Th... | mit | -7,528,026,928,750,685,000 | 26.225 | 86 | 0.624081 | false |
gjo/botocore_paste | setup.py | 1 | 1263 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
description = 'Adapt botocore to paste'
here = os.path.abspath(os.path.dirname(__file__))
try:
readme = open(os.path.join(here, 'README.rst')).read()
changes = open(os.path.join(here, 'CHANGES.txt')).read()
... | bsd-3-clause | 60,953,616,441,704,910 | 22.830189 | 60 | 0.62787 | false |
JioCloud/oslo-incubator | pypi/setup.py | 1 | 1560 | #!/usr/bin/python
# -*- encoding: utf-8 -*-
# Copyright (c) 2012 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
#
# Un... | apache-2.0 | 9,090,687,576,045,347,000 | 35.27907 | 69 | 0.663462 | false |
olitheolix/qtmacs | doc/source/code_snippets/tut_3_7.py | 1 | 1962 | """
Tutorial 3: Applet- and macro signatures.
"""
# Import the module with the global variables and the macro base class.
import qtmacs.qte_global as qte_global
from qtmacs.base_macro import QtmacsMacro
from qtmacs.base_applet import QtmacsApplet
from PyQt4 import QtGui
# Get a reference to the main instance of Qtmac... | gpl-3.0 | 5,176,266,747,123,214,000 | 29.184615 | 74 | 0.67788 | false |
steven-cutting/latinpigsay | data/text/samples.py | 1 | 6123 | # -*- coding: utf-8 -*-
__title__ = 'latinpigsay'
__license__ = 'MIT'
__author__ = 'Steven Cutting'
__author_email__ = 'steven.c.projects@gmail.com'
__created_on__ = '12/3/2014'
"""
Created on Wed Dec 3 17:36:17 2014
@author: steven_c
"""
acidtest = """Can you talk piglatin to piglatin.
"""
quotes = """A Tale of ... | mit | -1,094,194,312,728,751,500 | 42.283688 | 105 | 0.74406 | false |
aronparsons/spacewalk | backend/satellite_tools/satsync.py | 1 | 101969 | #
# Copyright (c) 2008--2015 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | gpl-2.0 | -891,730,889,753,331,100 | 40.603019 | 120 | 0.564289 | false |
fifoforlifo/pynja | test2/remake.py | 1 | 8988 | #!/usr/bin/python3.3
import sys
import os
rootDir = sys.path[0]
sys.path.append(os.path.normpath(os.path.join(rootDir, "..", "packages")))
sys.path.append(os.path.join(rootDir, "build"))
import pynja
import repo
build_cpp = True
build_java = True
def generate_ninja_build(projectMan):
# define cpp_variants and... | apache-2.0 | -8,794,421,707,129,115,000 | 47.847826 | 182 | 0.630952 | false |
Smetterleen/Neopets-Python-API | examples/Player.py | 1 | 2994 | import secrets
import logging
import traceback
import sys
from datetime import datetime
def main():
logging.basicConfig(filename='neopapi.log', level=logging.DEBUG, format='%(asctime)s|%(levelname)s|%(name)s|%(msg)s', datefmt="%x-%X")
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
... | gpl-3.0 | -7,169,292,783,107,106,000 | 37.883117 | 192 | 0.569806 | false |
frascoweb/frasco | frasco/push/__init__.py | 1 | 6769 | from flask import g, has_request_context, request, current_app
from frasco.ext import *
from frasco.users import is_user_logged_in, current_user
from frasco.models import delayed_tx_calls
from frasco.ctx import ContextStack
from frasco.assets import expose_package
from itsdangerous import URLSafeTimedSerializer
from re... | mit | 964,026,032,669,104,500 | 39.291667 | 122 | 0.636579 | false |
o108minmin/pint | pint/floattools.py | 1 | 2814 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import fractions
'''
floattools
tools for floating point number
'''
def stringtofraction(arg):
'''
arg : str
-> fractions.Fraction
(jp)
引数argから近似分数を生成します。
返り値はfractions.Fractionとして返されます。
詳細はfractionsを見てください。
引数の形式は以下の通りです。
... | mit | 4,094,020,670,867,079,000 | 22.086207 | 85 | 0.506721 | false |
parmarmanojkumar/MITx_Python | 6002x/week5/ProblemSet5/ps5.py | 1 | 12686 | # 6.00.2x Problem Set 5
# Graph optimization
# Finding shortest paths through MIT buildings
#
import string
# This imports everything from `graph.py` as if it was defined in this file!
from graph import *
#
# Problem 2: Building up the Campus Map
#
# Before you write any code, write a couple of sentences here
# descr... | mit | -1,558,743,471,224,885,800 | 35.771014 | 112 | 0.606417 | false |
triple-j/base16-palette | build/build_schemes.py | 1 | 1510 | #!/usr/bin/env python
import os
from git import Repo
from shutil import rmtree
from glob import glob
import xml.etree.ElementTree as etree
import re
git_url = "https://github.com/chriskempson/base16.git"
repo_dir = "./base16"
scss_dir = "../scss/color-schemes"
labels = [
"base00",
"base01",
"base02",
... | mit | 2,400,405,034,719,158,000 | 20.884058 | 79 | 0.561589 | false |
Duncan93/dbm-project2 | Ttest.py | 1 | 5148 | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 22 22:52:24 2015
@author: lorraine
"""
import json
from pprint import pprint
import numpy as np
from scipy.stats import mstats
from scipy import stats
import csv
import pandas as pd
#json_data=open("data/{0}_B.json".format("pizza")).read()
#data = json.loads(json_data)
... | mit | -4,440,707,402,355,450,000 | 37.691729 | 144 | 0.705402 | false |
dotoscat/toyblock | doc/source/conf.py | 1 | 5240 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# toyblock documentation build configuration file, created by
# sphinx-quickstart on Mon Sep 4 12:31:07 2017.
#
# 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
# a... | lgpl-3.0 | -3,109,284,729,114,547,000 | 29.823529 | 79 | 0.671947 | false |
Micronaet/micronaet-migration | report_purchase_custom/report/company/parser.py | 1 | 10924 | ##############################################################################
#
# Copyright (c) 2008-2010 SIA "KN dati". (http://kndati.lv) All Rights Reserved.
# General contacts <info@kndati.lv>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the who... | agpl-3.0 | 6,611,097,650,410,658,000 | 38.294964 | 99 | 0.502014 | false |
mitodl/bootcamp-ecommerce | hubspot/management/commands/sync_hubspot.py | 1 | 4122 | """
Management command to sync all Users, Orders, Products, and Lines with Hubspot
and Line Items
"""
from django.contrib.auth.models import User
from django.core.management import BaseCommand
from applications.models import BootcampApplication
from hubspot.api import (
make_contact_sync_message,
make_product_... | bsd-3-clause | 7,408,869,084,964,508,000 | 29.761194 | 111 | 0.565745 | false |
jlongstaf/f5-openstack-lbaasv2-driver | f5lbaasdriver/v2/bigip/disconnected_service.py | 1 | 3379 | # Copyright 2016 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | apache-2.0 | 364,617,107,890,503,300 | 38.752941 | 79 | 0.612311 | false |
Azure/WALinuxAgent | azurelinuxagent/common/osutil/suse.py | 1 | 6891 | #
# Copyright 2018 Microsoft 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 applicable law or agreed to ... | apache-2.0 | 7,067,188,137,874,378,000 | 40.763636 | 107 | 0.612103 | false |
brynpickering/calliope | calliope/test/test_cli.py | 1 | 4812 | import os
import tempfile
import pytest # pylint: disable=unused-import
from click.testing import CliRunner
import calliope
from calliope import cli, AttrDict
_THIS_DIR = os.path.dirname(__file__)
_MODEL_NATIONAL = os.path.join(
_THIS_DIR,
'..', 'example_models', 'national_scale', 'model.yaml'
)
class Tes... | apache-2.0 | -8,558,425,467,268,571,000 | 38.442623 | 118 | 0.576891 | false |
gusDuarte/software-center-5.2 | softwarecenter/ui/gtk3/views/webkit.py | 1 | 6532 | # Copyright (C) 2010 Canonical
#
# Authors:
# Michael Vogt
# Gary Lasker
#
# 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; version 3.
#
# This program is distributed in the hope that it will b... | lgpl-3.0 | -6,916,611,946,628,458,000 | 35.49162 | 79 | 0.640539 | false |
geodynamics/pylith | pylith/bc/AuxSubfieldsTimeDependent.py | 1 | 2804 | # ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University at Buffalo
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copy... | mit | 8,185,914,683,688,222,000 | 33.617284 | 127 | 0.628031 | false |
bitmazk/django-download-stats | download_stats/tests/test_settings.py | 1 | 1778 | """Settings that need to be set in order to run the tests."""
import os
DEBUG = True
SITE_ID = 1
APP_ROOT = os.path.abspath(
os.path.join(os.path.dirname(__file__), '..'))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
ROOT_URLCONF = 'downloa... | mit | -3,483,909,533,195,000,000 | 23.356164 | 61 | 0.664792 | false |
shipperizer/reimagined-garbanzo | server.py | 1 | 3198 | #!/usr/bin/env python
import logging
import sys
from os import environ
from time import sleep
import json
from uuid import uuid4
from celery import Celery
import pika
def init_logging():
logger = logging.getLogger('server')
logger.setLevel(logging.INFO)
sh = logging.StreamHandler()
formatter = loggi... | mit | 5,642,650,292,563,329,000 | 29.169811 | 127 | 0.626329 | false |
amaork/libi2c | example/pylibi2c_tools.py | 1 | 2343 | # -*- coding: utf-8 -*-
import argparse
import pylibi2c
if __name__ == '__main__':
parser = argparse.ArgumentParser()
# Required args
parser.add_argument('-b', '--bus', help='i2c bus, such as /dev/i2c-1', type=str, required=True)
parser.add_argument('-d', '--device', help='i2c device address, such as... | mit | -5,291,170,457,087,977,000 | 40.105263 | 115 | 0.608621 | false |
crisisking/skybot | plugins/misc.py | 1 | 1609 | import socket
import subprocess
import time
from util import hook, http
socket.setdefaulttimeout(10) # global setting
def get_version():
try:
stdout = subprocess.check_output(['git', 'log', '--format=%h'])
except:
revnumber = 0
shorthash = '????'
else:
revs = stdout.spli... | unlicense | -14,688,733,195,193,010 | 22.661765 | 71 | 0.63207 | false |
hackaugusto/raiden | raiden/tests/unit/test_matrix_presence.py | 1 | 10106 | from typing import Callable, Dict, Optional, Union
from unittest.mock import Mock
import pytest
from eth_utils import to_canonical_address
from matrix_client.user import User
from raiden.network.transport.matrix import AddressReachability, UserPresence
from raiden.network.transport.matrix.utils import USERID_RE, User... | mit | -5,618,101,307,904,100,000 | 39.103175 | 97 | 0.730556 | false |
tecan/xchat-rt | plugins/scripts/encryption/supybot-bitcoin-marketmonitor-master/GPG/plugin.py | 1 | 48123 | ###
# GPG - supybot plugin to authenticate users via GPG keys
# Copyright (C) 2011, Daniel Folkinshteyn <nanotube@users.sourceforge.net>
#
# 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, ... | gpl-2.0 | 1,254,094,022,718,385,700 | 45.227666 | 248 | 0.573655 | false |
MCLConsortium/mcl-site | src/jpl.mcl.site.policy/setup.py | 1 | 2947 | # encoding: utf-8
from setuptools import setup, find_packages
import os.path
# Package data
# ------------
_name = 'jpl.mcl.site.policy'
_version = '1.0.2'
_description = "Policy package for MCL"
_url = 'http://mcl.jpl.nasa.gov/software/' + _name
_downloadURL = 'http://oodt.jpl... | apache-2.0 | 366,627,224,946,995,260 | 28.47 | 108 | 0.620631 | false |
glenntanner3/devedeng | src/devedeng/avconv.py | 1 | 16737 | #!/usr/bin/env python3
# Copyright 2014 (C) Raster Software Vigo (Sergio Costas)
#
# This file is part of DeVeDe-NG
#
# DeVeDe-NG 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 Licens... | gpl-3.0 | 3,150,726,217,531,143,000 | 38.016317 | 154 | 0.530561 | false |
guildai/guild | guild/commands/s3_sync_impl.py | 1 | 2872 | # Copyright 2017-2021 TensorHub, 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 writ... | apache-2.0 | -9,071,415,864,090,001,000 | 23.758621 | 74 | 0.602019 | false |
theandygross/Figures | src/Figures/Boxplots.py | 1 | 11851 | """
Created on Apr 24, 2013
@author: agross
"""
import numpy as np
import pandas as pd
import matplotlib.pylab as plt
import Stats.Scipy as Stats
from Figures.FigureHelpers import latex_float, init_ax
from Figures.FigureHelpers import prettify_ax
from Helpers.Pandas import match_series, true_index
colors = plt.rcPa... | mit | -5,644,501,510,842,958,000 | 35.24159 | 83 | 0.562062 | false |
jackuess/pirateplay.se | lib/pirateplay/lib/rerequest.py | 1 | 2797 | import itertools, re, urllib2
DEBUG = False
def set_debug(debug):
global DEBUG
DEBUG = debug
def debug_print(s):
if DEBUG:
print(' DEBUG ' + s)
def del_empty_values(d):
for key in d.keys():
if d[key] == '' or d[key] == None:
del d[key]
return d
def req_key(req):
key = req.get_full_url()
key += str(re... | gpl-3.0 | 6,237,002,380,573,614,000 | 23.982143 | 81 | 0.65463 | false |
bakhtout/odoo-educ | addons/openeducat_erp/op_book_movement/op_book_movement.py | 1 | 6674 | # -*- coding: utf-8 -*-
#/#############################################################################
#
# Tech-Receptives Solutions Pvt. Ltd.
# Copyright (C) 2004-TODAY Tech-Receptives(<http://www.tech-receptives.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under th... | agpl-3.0 | 8,279,460,501,516,231,000 | 45.027586 | 214 | 0.534612 | false |
PitchBlackPL/Solar | solar_vis.py | 1 | 4499 | # coding: utf-8
# license: GPLv3
"""Модуль визуализации.
Нигде, кроме этого модуля, не используются экранные координаты объектов.
Функции, создающие гaрафические объекты и перемещающие их на экране, принимают физические координаты
"""
header_font = "Arial-16"
"""Шрифт в заголовке"""
window_width = 800
"""Ширина окна... | gpl-3.0 | -5,636,459,889,650,575,000 | 26.588235 | 117 | 0.651538 | false |
anchore/anchore-engine | anchore_engine/services/apiext/api/controllers/images.py | 1 | 55254 | import datetime
import io
import json
import re
import tarfile
from connexion import request
import anchore_engine.apis
import anchore_engine.common
import anchore_engine.common.images
import anchore_engine.configuration.localconfig
import anchore_engine.subsys.metrics
from anchore_engine import utils
from anchore_en... | apache-2.0 | 974,177,585,576,685,700 | 33.255425 | 169 | 0.59326 | false |
bradyt/taskdsetup | taskdsetup/client.py | 1 | 1148 |
import os
import shutil
import subprocess
from .core import (ensure_dir, canonicalize)
def main(data, server, port, data_orgs_dict):
task_dir = os.path.expanduser('~/.task')
ensure_dir(task_dir)
d = data_orgs_dict
for org in d:
for uuid in d[org]:
full_name = d[org][uuid]
... | gpl-3.0 | -2,863,920,050,727,676,000 | 46.833333 | 99 | 0.436411 | false |
openstack/python-heatclient | heatclient/common/utils.py | 1 | 14093 | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | 5,589,027,641,212,562,000 | 30.387528 | 79 | 0.598027 | false |
DSP-sleep/CUBIC-Atlas | cell_mapping.py | 1 | 19899 | # cell_mapping.py gives annotation to the detected cells through registering
# the sample brain to the CUBIC-Atlas.
# Please see the help.txt file for details.
#
# Copyright (C) 2017, Tatsuya C. Murakami
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU G... | gpl-3.0 | -1,083,745,853,646,201,300 | 39.281377 | 275 | 0.582843 | false |
JointBox/jbaccess-server | jbaccess/jba_core/migrations/0001_initial.py | 1 | 4911 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-03 12:17
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | gpl-3.0 | 390,449,312,591,841,100 | 37.069767 | 204 | 0.534922 | false |
erudit/eruditorg | eruditorg/erudit/migrations/0057_auto_20161123_1703.py | 1 | 1817 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-11-23 22:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("erudit", "0056_auto_20161111_1125"),
]
operations =... | gpl-3.0 | 4,950,922,311,403,660,000 | 32.018182 | 100 | 0.449339 | false |
strahlex/pymachinetalk | pymachinetalk/machinetalk_core/common/subscribe.py | 1 | 9269 | # coding=utf-8
import zmq
import threading
import uuid
from google.protobuf.message import DecodeError
from fysom import Fysom
import machinetalk.protobuf.types_pb2 as pb
from machinetalk.protobuf.message_pb2 import Container
class Subscribe(object):
def __init__(self, debuglevel=0, debugname='Subscribe'):
... | mit | 6,050,195,010,412,286,000 | 31.985765 | 83 | 0.561657 | false |
tovmeod/anaf | anaf/events/urls.py | 1 | 1779 | """
Events module URLs
"""
from django.conf.urls import patterns, url
from anaf.events import views
urlpatterns = patterns('anaf.events.views',
url(r'^(\.(?P<response_format>\w+))?$', views.month_view, name='events'),
url(r'^index(\.(?P<response_format>\w+))?$', views.in... | bsd-3-clause | 1,345,017,845,240,748,800 | 54.59375 | 116 | 0.469927 | false |
naronald/SUMOoD | peopleCollection.py | 1 | 3732 | # -*- coding: utf-8 -*-
"""
@file peopleCollection.py
@author Nicole Ronald
@date 2014-03-17
@version
Defines a collection of people who request trips from the
demand-responsive transportation system.
SUMOoD (SUMO on Demand); see http://imod-au.info/sumood
Copyright (C) 2014 iMoD
SUMO, Simulation of Urban MOb... | gpl-2.0 | -7,704,165,522,916,638,000 | 32.026549 | 78 | 0.576367 | false |
rgtjf/Semantic-Texual-Similarity-Toolkits | stst/libs/word_aligner/aligner.py | 1 | 88789 | # coding: utf8
from .config import *
from .parseUtil import *
from .util import *
from .wordSim import *
##############################################################################################################################
def alignNouns(source, target, sourceParseResult, targetParseResult, existingAlignmen... | mit | -1,147,417,126,804,859,300 | 60.83078 | 438 | 0.624526 | false |
Machyne/econ_comps | full_2011.py | 1 | 6827 | import os
import numpy as np
import pandas as pd
from pandas.tools.plotting import scatter_matrix
import pylab
import statsmodels.formula.api as smf
import statsmodels.stats.api as sms
from industry_to_days import get_census_mapper
"""
USAGE:
python full_2011.py
CREATES:
results/2011/clean.csv
results/2011/corr.txt... | bsd-3-clause | -5,579,685,436,232,137,000 | 32.465686 | 78 | 0.573458 | false |
jaggerkyne/PyKids | Part_02/Chapter_16/stick_figure_game.py | 1 | 4105 | # Another code written by Jagger Kyne
# Copyright 2006 - 2013 Jagger Kyne <jagger.kyne@gmail.com>
__author__ = 'Jagger Kyne'
from tkinter import *
import random
import time
class Game:
def __init__(self):
self.tk = Tk()
self.tk.title("Mr. Stick Man Race for the Exit")
self.tk.resizable(0,... | gpl-2.0 | -187,072,159,571,861,660 | 31.078125 | 108 | 0.613886 | false |
sagiss/sardana | sandbox/mntgrp_gui.py | 1 | 27553 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mg_gui.ui'
#
# Created: Fri Jul 29 15:42:51 2011
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribut... | lgpl-3.0 | 3,599,267,286,467,090,400 | 79.329446 | 168 | 0.726926 | false |
CityGrid/arsenal | server/arsenalweb/views/all_audit.py | 1 | 4827 | '''Arsenal audit UI.'''
# Copyright 2015 CityGrid Media, 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 ap... | apache-2.0 | 3,563,715,030,307,404,300 | 35.293233 | 116 | 0.610317 | false |
ZeitOnline/briefkasten | application/briefkasten/views.py | 1 | 4612 | # -*- coding: utf-8 -*-
import pkg_resources
import colander
from pyramid.httpexceptions import HTTPFound
from pyramid.renderers import get_renderer
from briefkasten import _, is_equal
title = "ZEIT ONLINE Briefkasten"
version = pkg_resources.get_distribution("briefkasten").version
class _FieldStorage(colander.Schem... | bsd-3-clause | 6,311,432,539,316,876,000 | 31.013889 | 99 | 0.662473 | false |
CoffeRobot/amazon_challenge_motion | src/amazon_challenge_motion/bt_motion.py | 1 | 18421 | #!/usr/bin/env python
# motion_utils
#
# Created on: April 13, 2015
# Authors: Francisco Vina
# fevb <at> kth.se
#
# Copyright (c) 2015, Francisco Vina, CVAP, KTH
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted pr... | bsd-3-clause | 7,456,780,908,091,122,000 | 33.239777 | 156 | 0.575267 | false |
SaschaMester/delicium | gpu/command_buffer/build_gles2_cmd_buffer.py | 1 | 350071 | #!/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.
"""code generator for GLES2 command buffers."""
import itertools
import os
import os.path
import sys
import re
import platform
fro... | bsd-3-clause | -6,201,626,395,720,655,000 | 30.532246 | 91 | 0.593157 | false |
thushear/MLInAction | ml/word2vec.py | 1 | 1733 | # import logging
# logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
#
# from gensim import corpora
#
# documents = ["Human machine interface for lab abc computer applications",
# "A survey of user opinion of computer system response time",
# "The EPS ... | apache-2.0 | 635,369,198,885,061,200 | 36.673913 | 96 | 0.680323 | false |
pczhaoyun/wolf | wolf/spiders/wolves/kuyi.py | 1 | 1132 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import urlparse
from scrapy import log
from scrapy.http import Request
from base.base_wolf import Base_Wolf
class Wolf(Base_Wolf):
def __init__(self, *args, **kwargs):
super(Wolf, self).__init__(*args, **kwargs)
self.name = 'kuyi'
s... | apache-2.0 | 3,645,572,560,154,432,000 | 34.375 | 108 | 0.595406 | false |
jhunkeler/cbc | cbc/cli/remote_purge.py | 1 | 1921 | #!/usr/bin/env python
'''
DANGER. THIS WILL WIPE AN ENTIRE ANACONDA.ORG REPOSITORY CHANNEL.
YOU HAVE BEEN WARNED.
'''
import argparse
from subprocess import check_output, STDOUT
def choose(answer):
answer = answer.upper()
if answer == 'Y' or answer == 'YES':
return True
return False
def prompt... | bsd-3-clause | -7,318,447,129,900,656,000 | 25.315068 | 87 | 0.588235 | false |
uclouvain/OSIS-Louvain | base/tests/factories/organization.py | 1 | 1749 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core bus... | agpl-3.0 | 8,396,260,698,860,064,000 | 42.7 | 87 | 0.671053 | false |
Jumpscale/jumpscale_core8 | lib/JumpScale/tools/openwrt/base.py | 1 | 1470 | import functools
class BaseService:
def __init__(self, wrt):
self._wrt = wrt
self._package = None
@property
def package(self):
if self._package is None:
self._package = self._wrt.get(self.PACKAGE)
return self._package
class BaseServiceSection:
def __ne... | apache-2.0 | -5,721,080,247,273,872,000 | 24.344828 | 75 | 0.564626 | false |
slightlynybbled/tk_tools | tests/test_ButtonGrid.py | 1 | 1266 | import tkinter as tk
import pytest
from tk_tools import ButtonGrid
from tests.test_basic import root
@pytest.fixture
def btn_grid_3col(root):
eg = ButtonGrid(root, 3, headers=['a', 'b', 'c'])
yield eg
eg._redraw()
def test_creation_with_header(root):
ButtonGrid(root, 3, headers=['a', 'b', 'c'])
... | mit | -2,284,509,175,240,753,200 | 20.1 | 54 | 0.580569 | false |
hasteur/g13bot_tools_new | tests/eventstreams_tests.py | 1 | 7693 | # -*- coding: utf-8 -*-
"""Tests for the eventstreams module."""
#
# (C) Pywikibot team, 2017
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
from types import FunctionType
import mock
from pywikibot.comms.eventstreams import EventStreams
from pywikibot ... | mit | -6,757,897,212,735,869,000 | 35.117371 | 79 | 0.602106 | false |
daknuett/python3-nf | py/nf/integral/base/rect/line.py | 1 | 1526 | from ..do.line import integrate_numbers_rect
from ....util.do.iterators import WidthIterator, StepIterator
def integrate_steps(f, rnge, steps):
"""
Approximate the integral of ``f``
in the range ``rnge`` using a decomposition
with ``steps`` subintervalls.
``f`` must return ``float`` or ``int``.
``rnge`` must... | agpl-3.0 | -7,385,630,607,984,555,000 | 25.310345 | 92 | 0.671691 | false |
seebass/drf-tools | drf_tools/views.py | 1 | 8766 | from datetime import datetime
import logging
from rest_framework import status
from rest_framework.mixins import RetrieveModelMixin, ListModelMixin, DestroyModelMixin
from rest_framework.parsers import MultiPartParser
from rest_framework.relations import PrimaryKeyRelatedField
from rest_framework.renderers import JSON... | mit | 4,416,811,976,637,126,700 | 33.924303 | 126 | 0.689824 | false |
Triv90/Heat | heat/openstack/common/version.py | 1 | 3271 |
# Copyright 2012 OpenStack LLC
# Copyright 2012-2013 Hewlett-Packard Development Company, L.P.
#
# 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.or... | apache-2.0 | 3,530,254,261,941,602,000 | 37.034884 | 79 | 0.631611 | false |
she11c0de/cubes | tests/test_browser.py | 1 | 9674 | import unittest
from cubes.browser import *
from cubes.errors import *
from .common import CubesTestCaseBase
class CutsTestCase(CubesTestCaseBase):
def setUp(self):
super(CutsTestCase, self).setUp()
self.workspace = self.create_workspace(model="browser_test.json")
self.cube = self.works... | mit | -7,718,235,660,885,802,000 | 36.207692 | 86 | 0.580112 | false |
EricACooper/perfrunner | perfrunner/tests/__init__.py | 1 | 7421 | import exceptions as exc
import glob
import shutil
import sys
import time
from logger import logger
from perfrunner.helpers.cbmonitor import CbAgent
from perfrunner.helpers.experiments import ExperimentHelper
from perfrunner.helpers.memcached import MemcachedHelper
from perfrunner.helpers.metrics import MetricHelper
... | apache-2.0 | 6,741,527,375,062,040,000 | 38.473404 | 80 | 0.640614 | false |
heromod/migrid | mig/webserver/webserver.py | 1 | 1966 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# webserver - [insert a few words of module description on this line]
# Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of... | gpl-2.0 | -8,052,238,269,252,702,000 | 23.886076 | 81 | 0.722787 | false |
phalladar/SCOTUSHaikus | haikufinder/__init__.py | 1 | 10233 | # A hack to find "haikus" in English text. For the purposes of this program
# a "haiku" is one or more complete sentences that, together, can be broken
# into groups of 5, 7, and 5 syllables. Each canididate haiku line, and then
# the entire haiku, has to make it through a few heuristics to filter out
# constructions ... | bsd-3-clause | -299,711,272,710,562,400 | 36.346715 | 123 | 0.552722 | false |
Desenho-2-2017/Ecom_merci | products/viewsets.py | 1 | 8123 | from rest_framework.viewsets import ModelViewSet
from .models import (
ProductCategory,
Product
)
from .serializers import (
ProductCategorySerializerDefault,
ProductCategorySerializerPOST,
ProductSerializerDefault,
ProductSerializerPOST
)
from .permissions import (
ProductPermission... | mit | 1,955,034,141,973,025,500 | 26.442568 | 76 | 0.508187 | false |
Williams224/davinci-scripts | ksteta3pi/PotentialBackgrounds/MC_12_12103450_MagUp.py.py | 2 | 5770 | #-- GAUDI jobOptions generated on Fri Jul 24 17:08:37 2015
#-- Contains event types :
#-- 12103450 - 52 files - 1001933 events - 308.74 GBytes
#-- Extra information about the data processing phases:
#-- Processing Pass Step-127420
#-- StepId : 127420
#-- StepName : Reco14c for MC - 2012
#-- ApplicationN... | mit | 3,266,887,118,599,757,000 | 64.568182 | 268 | 0.783709 | false |
hudalao/Langevin_dynamics | travis_pypi_setup.py | 1 | 3763 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Update encrypted deploy password in Travis config file
"""
from __future__ import print_function
import base64
import json
import os
from getpass import getpass
import yaml
from cryptography.hazmat.primitives.serialization import load_pem_public_key
from cryptography.h... | mit | 1,190,196,389,545,195,300 | 29.844262 | 79 | 0.679777 | false |
AmineChikhaoui/nixops | nixops/resources/s3_bucket.py | 1 | 6521 | # -*- coding: utf-8 -*-
# Automatic provisioning of AWS S3 buckets.
import time
import botocore
import boto3
import nixops.util
import nixops.resources
import nixops.ec2_utils
class S3BucketDefinition(nixops.resources.ResourceDefinition):
"""Definition of an S3 bucket."""
@classmethod
def get_type(cls)... | lgpl-3.0 | 7,310,174,858,576,745,000 | 39.861635 | 143 | 0.576266 | false |
leppa/home-assistant | homeassistant/components/rfxtrx/light.py | 1 | 2679 | """Support for RFXtrx lights."""
import logging
import RFXtrx as rfxtrxmod
import voluptuous as vol
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
PLATFORM_SCHEMA,
SUPPORT_BRIGHTNESS,
Light,
)
from homeassistant.const import CONF_NAME
from homeassistant.helpers import config_validation ... | apache-2.0 | -6,649,617,365,527,922,000 | 26.618557 | 77 | 0.62486 | false |
chenghao/haoAdmin | service/sys/SysMenuService.py | 1 | 4894 | # coding:utf-8
__author__ = "gaunt"
from models import (SysMenuDao)
def get_user_menu(auths):
"""
根据权限获取主菜单
:param auths:
:return:
"""
menus = SysMenuDao.get_all_menu()
# 获取自己权限的菜单
self_menus = []
[self_menus.append(m) for m in menus if not m["authority"] or m["authority"] in aut... | apache-2.0 | 7,500,983,009,860,910,000 | 24.393258 | 127 | 0.536947 | false |
lsaffre/lino-welfare | lino_welfare/modlib/cbss/fixtures/purposes.py | 1 | 9137 | # -*- coding: UTF-8 -*-
# Copyright 2012 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
"""
Fills the cbss.Purposes table with the official values defined in
`lijst_hoedanigheidscodes.pdf
<http://www.bcss.fgov.be/binaries/documentation/fr/documentation/general/lijst_hoedanigheidscodes.pdf>`__.
"""
fro... | agpl-3.0 | 7,014,070,598,673,712,000 | 57.2 | 304 | 0.764439 | false |
ross/carbonate | tests/test_sync.py | 1 | 3076 | import unittest
import os
import whisper
import time
import random
from carbonate.sync import heal_metric
class SyncTest(unittest.TestCase):
db = "db.wsp"
@classmethod
def setUpClass(cls):
cls._removedb()
@classmethod
def _removedb(cls):
try:
if os.path.exists(cls.d... | mit | 5,415,602,980,656,477,000 | 24.848739 | 71 | 0.564694 | false |
jtrobec/pants | tests/python/pants_test/tasks/test_listtargets.py | 1 | 5412 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from textw... | apache-2.0 | 6,289,840,360,712,417,000 | 27.634921 | 94 | 0.566149 | false |
stratis-storage/stratisd | tests/client-dbus/tests/dbus_interface/filesystem/test_rename.py | 1 | 2948 | # Copyright 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | mpl-2.0 | -495,794,747,404,045,700 | 29.391753 | 83 | 0.607191 | false |
borisd13/GridCompute | docs/source/conf.py | 1 | 9304 | # -*- coding: utf-8 -*-
#
# GridCompute documentation build configuration file, created by
# sphinx-quickstart on Fri Aug 8 19:36:13 2014.
#
# 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.
#... | gpl-3.0 | -6,566,207,551,344,717,000 | 31.760563 | 138 | 0.707975 | false |
koehlma/uv | uv/common.py | 1 | 3450 | # -*- coding: utf-8 -*-
# Copyright (C) 2016, Maximilian Köhl <mail@koehlma.de>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License version 3 as published by
# the Free Software Foundation.
#
# This program is distributed in the hope th... | lgpl-3.0 | -7,197,550,074,827,018,000 | 30.354545 | 86 | 0.616411 | false |
smhilde/dhhd_project | dhhd/plan/migrations/0001_initial.py | 1 | 4011 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
('id', models.AutoField(aut... | apache-2.0 | -599,572,122,547,535,100 | 40.78125 | 114 | 0.529294 | false |
FriedrichK/python-edifact | edifact/segments/base.py | 1 | 2357 | # -*- coding: utf-8 -*-
"""This module provides the base for segment wrappers."""
import six
class Composite(object):
"""Part of a segment."""
_content = None
def __init__(self, index=0, max_length=3, required=False):
"""Constructor."""
self.index = index
self.max_length = max_l... | apache-2.0 | -4,451,063,390,457,396,000 | 28.4625 | 137 | 0.574883 | false |
Zyell/home-assistant | homeassistant/components/light/__init__.py | 1 | 9429 | """
Provides functionality to interact with lights.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/light/
"""
import logging
import os
import csv
import voluptuous as vol
from homeassistant.components import (
group, discovery, wemo, wink, isy994,... | mit | 90,728,029,092,372,830 | 30.747475 | 79 | 0.622972 | false |
excelly/xpy-ml | sdss_iii/proc_transform_data.py | 1 | 4304 | from ex import *
from ex.ioo.FITS import FITS
import multiprocessing as mp
import sdss.utils as utils
import sdss_iii.settings as settings
def usage():
print('''
transform the data into standard form
python proc_transform_data.py --input_files={input_files} --npixel=[500] --nproc=[1]
''')
sys.exit(1)
def Fi... | apache-2.0 | -8,651,753,374,808,732,000 | 31.360902 | 118 | 0.549024 | false |
ericholscher/djangoembed | oembed/sites.py | 1 | 8297 | import datetime
import re
import simplejson
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.db.models import signals
from oembed.constants import DEFAULT_OEMBED_TTL, MIN_OEMBED_TTL, RESOURCE_TYPES
from oembed.exceptions import AlreadyRegistered, NotRegistered, O... | mit | 7,125,871,521,904,948,000 | 36.542986 | 102 | 0.575148 | false |
ocelot-collab/ocelot | ocelot/adaptors/madx_old.py | 1 | 8302 | __author__ = 'Sergey Tomin'
from ocelot import *
def RFcavity(l, volt, lag, harmon):
rf = Cavity(l = l, volt=volt, id = id)
rf.lag = lag
rf.harmon = harmon
return rf
class MadObj:
name = ""
type = ""
params = ""
def parse_params(self):
self.dic_p = {}
for param in se... | gpl-3.0 | -5,919,753,922,739,795,000 | 25.954545 | 88 | 0.49988 | false |
fantasycheng/udacity-deep-learning-project | language-translation/dlnd_language_translation.py | 1 | 34429 |
# coding: utf-8
# # Language Translation
# In this project, you’re going to take a peek into the realm of neural network machine translation. You’ll be training a sequence to sequence model on a dataset of English and French sentences that can translate new sentences from English to French.
# ## Get the Data
# Since... | mit | -3,339,668,714,111,853,000 | 41.135863 | 398 | 0.631954 | false |
yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/dla/__init__.py | 5 | 1504 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | -5,837,073,634,880,245,000 | 46 | 113 | 0.59375 | false |
lucidlylogicole/scope | plugins/find_files/scope_plugin.py | 1 | 1192 | import os
from PyQt4 import QtGui, QtCore
class Plugin(object):
title = 'Search in Files'
location = 'app' # left, bottom, right, app
widget = None # The widget for the plugin (set at getWidget)
def __init__(self,parent=None):
self.parent = parent
def load(self):
self.btn... | gpl-3.0 | 7,168,575,003,864,687,000 | 35.121212 | 108 | 0.638423 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.