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 |
|---|---|---|---|---|---|---|---|---|---|---|
SciTools/conda-testenv | conda_testenv/tests/integration/test.py | 1 | 2011 | import os
import shutil
import subprocess
import sys
import tempfile
import unittest
class Test_cli(unittest.TestCase):
def setUp(self):
conda = os.path.join(os.path.dirname(sys.executable), 'conda')
self.environ = os.environ.copy()
self.tmpdir = tempfile.mkdtemp('conda_setup')
co... | bsd-3-clause | -7,006,892,278,387,370,000 | 38.431373 | 75 | 0.537046 | false |
googleapis/googleapis-gen | google/cloud/domains/v1beta1/domains-v1beta1-py/noxfile.py | 1 | 3585 | # -*- 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 | -6,592,495,365,631,380,000 | 26.159091 | 96 | 0.618131 | false |
popazerty/dvbapp2-gui | lib/python/Screens/InfoBarGenerics.py | 1 | 171496 | # -*- coding: utf-8 -*-
from Screens.ChannelSelection import ChannelSelection, BouquetSelector, SilentBouquetSelector
from Components.ActionMap import ActionMap, HelpableActionMap
from Components.ActionMap import NumberActionMap
from Components.Harddisk import harddiskmanager, findMountPoint
from Components.Input impo... | gpl-2.0 | 8,780,597,409,504,721,000 | 35.550298 | 320 | 0.717599 | false |
HiSPARC/station-software | user/python/Lib/lib-tk/Tkinter.py | 1 | 160467 | """Wrapper functions for Tcl/Tk.
Tkinter provides classes which allow the display, positioning and
control of widgets. Toplevel widgets are Tk and Toplevel. Other
widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox
LabelFrame and PanedWindow.
... | gpl-3.0 | -6,800,216,323,774,395,000 | 40.560995 | 110 | 0.598678 | false |
brupoon/mustachedNinja | any_lowercase_test.py | 1 | 1080 | #Chapter 9, Exercise 11...any_lowercase tests
def any_lowercase1(s):
for c in s:
if c.islower():
return True
else:
return False
def any_lowercase2(s):
for c in s:
if 'c'.islower():
return 'True'
else:
return 'False'
... | mit | 566,311,769,260,755,700 | 23.761905 | 65 | 0.542593 | false |
mpunkenhofer/irc-telegram-bot | telepot/telepot/aio/__init__.py | 1 | 26958 | import io
import json
import time
import asyncio
import traceback
import collections
from concurrent.futures._base import CancelledError
from . import helper, api
from .. import _BotBase, flavor, _find_first_key, _isstring, _dismantle_message_identifier, _strip, _rectify
# Patch aiohttp for sending unicode filename
fr... | mit | 7,597,339,703,148,460,000 | 41.655063 | 123 | 0.545664 | false |
amcat/amcat | api/rest/viewsets/coding/codingschemafield.py | 1 | 2536 | ###########################################################################
# (C) Vrije Universiteit, Amsterdam (the Netherlands) #
# #
# This file is part of AmCAT - The Amsterdam Content Analysis Toolkit #
# ... | agpl-3.0 | 930,094,134,368,315,800 | 54.130435 | 122 | 0.594637 | false |
kamsuri/vms | vms/pom/pages/basePage.py | 1 | 1809 | class BasePage(object):
"""Base class to initialize the base page that will be called from all pages"""
def __init__(self, driver):
self.driver = driver
def send_value_to_element_id(self, key, value):
self.driver.find_element_by_id(key).send_keys(value)
def send_value_to_xpath(self, k... | gpl-2.0 | 2,963,434,992,951,286,300 | 35.18 | 83 | 0.674406 | false |
anthonysandrin/kafka-utils | tests/acceptance/steps/util.py | 1 | 4458 | # -*- coding: utf-8 -*-
# Copyright 2016 Yelp 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 ... | apache-2.0 | -3,114,643,107,766,294,500 | 27.037736 | 76 | 0.631673 | false |
GETLIMS/LIMS-Backend | lims/shared/migrations/0005_auto_20180301_0958.py | 1 | 1248 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-03-01 09:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shared', '0004_trigger_fire_on_create'),
]
operations = [
migrations.AlterM... | mit | 1,684,550,303,918,089,200 | 27.363636 | 83 | 0.532853 | false |
qualitio/qualitio | qualitio/core/views.py | 1 | 9056 | import operator
from mptt.models import MPTTModel
from reversion.models import Version
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.db.models import Q
from django.db.models.loading import get_model
from django.views.generic.simple import direct_to_template
from q... | gpl-3.0 | -4,864,936,522,159,101,000 | 33.830769 | 103 | 0.599823 | false |
ksmit799/Toontown-Source | toontown/minigame/DistributedPatternGameAI.py | 1 | 7498 | from DistributedMinigameAI import *
from toontown.ai.ToonBarrier import *
from direct.fsm import ClassicFSM, State
from direct.fsm import State
import random
import PatternGameGlobals
import copy
class DistributedPatternGameAI(DistributedMinigameAI):
def __init__(self, air, minigameId):
try:
s... | mit | -381,536,890,092,594,100 | 37.451282 | 203 | 0.640571 | false |
NeurodataWithoutBorders/api-python | unittest/t_ref_image.py | 1 | 1592 | #!/usr/bin/python
# import nwb
import test_utils as ut
from nwb import nwb_file
from nwb import nwb_utils as utils
# TESTS storage of reference image
def test_refimage_series():
if __file__.startswith("./"):
fname = "s" + __file__[3:-3] + ".nwb"
else:
fname = "s" + __file__[1:-3] + ".nwb"
... | bsd-3-clause | 7,133,338,631,440,159,000 | 32.166667 | 87 | 0.616206 | false |
hhorak/rebase-helper | test/test_application.py | 1 | 4369 | # -*- coding: utf-8 -*-
#
# This tool helps you to rebase package to the latest version
# Copyright (C) 2013-2014 Red Hat, 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
# he Free Software Foundation; either version 2 ... | gpl-2.0 | 800,306,180,075,415,300 | 38.718182 | 107 | 0.487984 | false |
indautgrp/erpnext | erpnext/accounts/report/trial_balance_for_party/trial_balance_for_party.py | 1 | 5770 | # Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import flt, cint
from erpnext.accounts.report.trial_balance.trial_balance import validate_filters
def exe... | gpl-3.0 | 8,733,647,437,386,378,000 | 24.995495 | 101 | 0.644541 | false |
lycying/seeking | sklib/ui/wysiwyg/syntax.py | 1 | 2930 | # coding:utf-8
#
# Copyright (c) 2010, guo.li <lycying@gmail.com>
# Site < http://code.google.com/p/seeking/ >
# All rights reserved.
# vim: set ft=python sw=2 ts=2 et:
#
from PyQt5.QtGui import QFont
from PyQt5.QtGui import QTextCharFormat
from PyQt5.QtGui import QSyntaxHighlighter
from PyQt5.QtCore import Qt
from Py... | gpl-2.0 | -3,336,502,950,754,958,000 | 36.564103 | 146 | 0.639249 | false |
nheijmans/random_scripts | mock_http_server/http_https_server.py | 1 | 1185 | # given a pem file ... openssl req -new -x509 -keyout yourpemfile.pem -out yourpemfile.pem -days 365 -nodes
import sys
import ssl
import time
import signal
import threading
import BaseHTTPServer, SimpleHTTPServer
def http_worker():
httpd = BaseHTTPServer.HTTPServer(('localhost', 8080), SimpleHTTPServer.SimpleHTTP... | gpl-3.0 | 8,117,941,957,505,710,000 | 27.214286 | 107 | 0.699578 | false |
boazjohn/pyspark-job-server | lib/receiver.py | 1 | 8167 | #!/usr/bin/python
# Standard Library
import json
import time
import logging
import socket
from threading import Thread, Lock
# Third Party
# Local
# set up logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class EventBroadcastReceiver:
def __init__(self, host='localhost',... | bsd-3-clause | 7,201,294,214,269,019,000 | 28.806569 | 119 | 0.501408 | false |
AvadootNachankar/gstudio | gnowsys-ndf/gnowsys_ndf/ndf/views/data_review.py | 2 | 15718 | ''' -- Imports from python libraries -- '''
# import os, re
import json
''' -- imports from installed packages -- '''
from django.http import HttpResponse
from django.shortcuts import render_to_response # , render #uncomment when to use
from django.template import RequestContext
from django.contrib.auth.decorators i... | agpl-3.0 | 8,873,485,038,332,246,000 | 42.905028 | 124 | 0.599313 | false |
RakanNimer/hackathon | main.py | 1 | 1342 | from flask import Flask
import flask
from reddit import Submissions
from reddit import Submission
import redis
import json
try:
from flask.ext.cors import CORS # The typical way to import flask-cors
except ImportError:
# Path hack allows examples to be run without installation.
import os
parentdir = o... | mit | 1,764,334,778,868,504,600 | 28.195652 | 75 | 0.681073 | false |
xhochy/g-octave | g_octave/config.py | 1 | 2924 | # -*- coding: utf-8 -*-
"""
g_octave.config
~~~~~~~~~~~~~~~
This module implements a Python object to handle the configuration
of g-octave.
:copyright: (c) 2009-2010 by Rafael Goncalves Martins
:license: GPL-2, see LICENSE for more details.
"""
from __future__ import absolute_import
import o... | gpl-2.0 | 2,911,297,229,804,912,600 | 28.836735 | 75 | 0.576949 | false |
banesullivan/ParaViewGeophysics | PVGeo/ubc/tensor.py | 1 | 21910 | __all__ = [
'TensorMeshReader',
'TensorMeshAppender',
'TopoMeshAppender',
]
__displayname__ = 'Tensor Mesh'
import os
import sys
import numpy as np
import pandas as pd
import vtk
from .. import _helpers, interface
from ..base import AlgorithmBase
from .two_file_base import ModelAppenderBase, ubcMeshRead... | bsd-3-clause | 8,269,175,232,248,584,000 | 37.371278 | 110 | 0.557599 | false |
Nettacker/Nettacker | lib/transactions/maltego/nettacker_transforms/src/nettacker_transforms/transforms/wp_xmlrpc_dos_vuln.py | 1 | 1880 | import random
from canari.maltego.transform import Transform
from canari.maltego.entities import URL
from canari.framework import EnableDebugWindow
from common.entities import NettackerScan
from lib.scan.wp_xmlrpc.engine import start
from database.db import __logs_by_scan_id as find_log
__author__ = 'Shaddy Garg'
_... | gpl-3.0 | 8,579,453,768,622,444,000 | 37.367347 | 119 | 0.653723 | false |
xmichael/tagger | src/main/lib/logtool.py | 1 | 1546 | ## Just some utility functions for logging messages. Most important is getLogger.
import sys, pprint, json, logging, configuration
### Constants ###
#################
## Can only log in stderr (or environ['wsgi.errors']) when using WSGI:
def dbg(msg):
print >> sys.stderr, msg
def pp(obj):
"""
shortcut ... | bsd-3-clause | -8,895,426,044,850,906,000 | 31.893617 | 93 | 0.651358 | false |
Labbiness/Pancake | setup.py | 1 | 1437 | # -*- encoding:utf-8 -*-
#
# Copyright (c) 2017-2018 Shota Shimazu
#
# 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 | 5,198,664,308,909,516,000 | 31.659091 | 74 | 0.631872 | false |
ciarams87/PyU4V | PyU4V/tools/openstack/migrate.py | 1 | 7265 | # Copyright (c) 2020 Dell Inc. or its subsidiaries.
#
# 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... | mit | 42,564,993,807,781,930 | 36.838542 | 78 | 0.615416 | false |
mailgun/talon | talon/signature/learning/helpers.py | 1 | 6879 | # -*- coding: utf-8 -*-
""" The module provides:
* functions used when evaluating signature's features
* regexp's constants used when evaluating signature's features
"""
from __future__ import absolute_import
import unicodedata
import regex as re
from talon.utils import to_unicode
from talon.signature.constants im... | apache-2.0 | -8,025,110,656,605,266,000 | 29.303965 | 79 | 0.594709 | false |
foospidy/DbDat | plugins/mysql/check_user_access_denied.py | 1 | 2424 | import ConfigParser
import os.path
class check_user_access_denied():
"""
check_user_access_denied:
Access denied events for user, these should be reviewed for malicious activity.
"""
# References:
# https://www.percona.com/blog/2012/12/28/auditing-login-attempts-in-mysql/
TITLE = 'User... | gpl-2.0 | 3,906,439,819,165,909,500 | 30.894737 | 102 | 0.526815 | false |
kobronson/cs-voltdb | tests/scripts/examples/sql_coverage/strings-schema.py | 1 | 1798 | #!/usr/bin/env python
# This file is part of VoltDB.
# Copyright (C) 2008-2013 VoltDB Inc.
#
# 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 limitati... | agpl-3.0 | 1,006,511,410,808,711,300 | 41.809524 | 72 | 0.664071 | false |
rfleschenberg/django-shop-rest-checkout | docs/conf.py | 1 | 1474 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.coverage',
'sphinx.ext.doctest',
'sphinx.ext.extlinks',
'sphinx.ext.ifconfig',
'sphinx.ext.napoleon',
'sphinx.ext.todo',
'sphinx.ext... | bsd-2-clause | -5,760,618,463,269,746,000 | 26.277778 | 91 | 0.672098 | false |
Vagab0nd/SiCKRAGE | lib3/twilio/rest/voice/v1/dialing_permissions/country/__init__.py | 1 | 18104 | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base.list_resource import ListResource
f... | gpl-3.0 | 4,873,446,034,144,213,000 | 39.410714 | 155 | 0.648641 | false |
Farious/PersonTracker | Source/LoadImageTextPrint_sample.py | 1 | 4907 | # import numpy as np
import cv2
# import linecache
import LoadImagePrintText as f
# >>> import os
# >>> os.chdir("C:\Users\dario\Desktop\Dropbox\Work\DemoHDA\git\Source\\")
## Input
cam = 60
frame = 26
debugREID = 1
img = f.loadImagePrintText(cam, frame, debugREID=0, debugPD=1, PDthreshold=20)
cv2.namedWindow("1", c... | apache-2.0 | -2,488,138,149,678,787,000 | 37.944444 | 130 | 0.627675 | false |
michaelcontento/whirlwind | whirlwind/view/filters.py | 1 | 6750 | from datetime import datetime
import pytz, sys, re, locale
from dateutil import parser
try:
import simplejson
except ImportError:
import json as simplejson
class Filters():
'''
Checks whether the passed in value is considered useful otherwise will return None
will return None on the f... | mit | 1,393,791,378,986,615,300 | 27.246862 | 90 | 0.480296 | false |
cuemacro/chartpy | chartpy_examples/subplot_example.py | 1 | 2359 | __author__ = 'saeedamen' # Saeed Amen
#
# Copyright 2016 Cuemacro
#
# 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 | -2,607,866,110,523,156,500 | 32.225352 | 121 | 0.705384 | false |
monokrome/django-drift | setup.py | 1 | 1462 | import os
import sys
try:
from setuptools import setup
except ImportError:
from . import ez_setup
from setuptools import setup
parent_directory = os.path.abspath(os.path.dirname(__file__))
metafiles = {
'README.md': None,
'CHANGES.md': None,
'CLASSIFIERS.txt': None,
}
# The following bit w... | mit | 7,593,647,087,996,668,000 | 23.366667 | 82 | 0.629275 | false |
davidhax0r/dojme | dojme/routes.py | 1 | 2223 | from dojme import app
from flask import render_template, request, redirect
from urlparse import urlparse
import httplib2
import re
def status_check(url):
"""
Get the headers of a web resource to check if it exists
"""
h = httplib2.Http()
try:
resp = h.request(url, 'HEAD')
if resp[0... | mit | 4,382,458,863,198,709,000 | 26.109756 | 73 | 0.504723 | false |
lhfei/spark-in-action | spark-2.x/src/main/python/ml/correlation_example.py | 1 | 1843 | #
# 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 n... | apache-2.0 | 8,634,468,812,316,314,000 | 34.137255 | 74 | 0.658709 | false |
kyleabeauchamp/mdtraj | mdtraj/tests/test_dtr.py | 1 | 11033 | ##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2013 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors: Teng Lin
#
# MDTraj is free so... | lgpl-2.1 | -1,750,320,178,704,864,000 | 32.537994 | 97 | 0.608719 | false |
vipul-tm/DAG | dags-ttpl/test_mod.py | 1 | 1158 | from airflow import DAG
from airflow.operators import TelradExtractor
from datetime import datetime, timedelta
from airflow.models import Variable
#from airflow.telrad_extractor_operator import TelradExtractor
default_args = {
'owner': 'wireless',
'depends_on_past': False,
'start_date': datetime.now(... | bsd-3-clause | -2,846,163,788,623,033,300 | 26.571429 | 102 | 0.65285 | false |
fcrozat/telepathy-haze | tests/twisted/presence/presence.py | 1 | 2155 | """
A simple smoke-test for C.I.SimplePresence
"""
import dbus
from twisted.words.xish import domish, xpath
from twisted.words.protocols.jabber.client import IQ
from servicetest import assertEquals
from hazetest import exec_test
import constants as cs
def test(q, bus, conn, stream):
amy_handle = conn.RequestHan... | gpl-2.0 | 6,834,671,132,213,838,000 | 32.153846 | 88 | 0.658005 | false |
f5devcentral/f5-cccl | f5_cccl/resource/ltm/internal_data_group.py | 1 | 3015 | """Provides a class for managing BIG-IP iRule resources."""
# coding=utf-8
#
# Copyright (c) 2017-2021 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.apac... | apache-2.0 | 8,203,400,656,434,464,000 | 30.736842 | 77 | 0.659701 | false |
saketkc/ribo-seq-snakemake | configs/config_Shalgi_et_al_Cell_2013.mouse.py | 1 | 1460 | GENOMES_DIR = '/home/cmb-panasas2/skchoudh/genomes'
OUT_DIR = '/staging/as/skchoudh/rna/September_2017_Shalgi_et_al_Cell_2013'
SRC_DIR = '/home/cmb-panasas2/skchoudh/github_projects/clip_seq_pipeline/scripts'
RAWDATA_DIR = '/home/cmb-06/as/skchoudh/dna/September_2017_Shalgi_et_al_Cell_2013/sra_single_end_mouse'
GENOME_... | bsd-3-clause | -6,291,594,674,228,733,000 | 80.111111 | 146 | 0.7 | false |
DigitalSlideArchive/HistomicsTK | tests/test_color_normalization.py | 1 | 2842 | #!/usr/bin/env python
###############################################################################
# Copyright Kitware 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
#
# ht... | apache-2.0 | -2,885,756,250,232,397,300 | 32.046512 | 103 | 0.6038 | false |
kanishkarj/Rave | Qt_Designer_files/playlist_design.py | 1 | 2791 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'playlist.ui'
#
# Created by: PyQt4 UI code generator 4.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
... | gpl-3.0 | 8,714,846,205,213,983,000 | 42.609375 | 79 | 0.694375 | false |
belese/luciphone | Luciphone/modules/NFCmonitor.py | 1 | 1642 | import time
from py532lib.i2c import *
from py532lib.frame import *
from py532lib.constants import *
class NFCmonitor :
def __init__(self) :
self.cardIn = False
self.UUID = []
self.stopped = False
self.cbcardin = None
self.cbcardout = None
#Initialise NFC_re... | gpl-2.0 | 6,317,143,941,664,688,000 | 31.84 | 95 | 0.477467 | false |
ProfessorX/Config | .PyCharm30/system/python_stubs/-1247972723/gtk/gdk/__init__/Font.py | 1 | 1926 | # encoding: utf-8
# module gtk.gdk
# from /usr/lib/python2.7/dist-packages/gtk-2.0/pynotify/_pynotify.so
# by generator 1.135
# no doc
# imports
from exceptions import Warning
import gio as __gio
import gobject as __gobject
import gobject._gobject as __gobject__gobject
import pango as __pango
import pangocairo as __p... | gpl-2.0 | 2,422,510,009,856,149,500 | 25.383562 | 97 | 0.637072 | false |
XBMC-Addons/plugin.library.node.editor | resources/lib/orderby.py | 1 | 8285 | # coding=utf-8
import os, sys
import xbmc, xbmcaddon, xbmcplugin, xbmcgui, xbmcvfs
import xml.etree.ElementTree as xmltree
from traceback import print_exc
from urllib.parse import unquote
from resources.lib.common import *
class OrderByFunctions():
def __init__(self, ltype):
self.ltype = ltype
def _l... | gpl-2.0 | -1,985,181,185,056,589,800 | 41.487179 | 179 | 0.551358 | false |
ScottWales/rose | lib/python/rose/scheme_handler.py | 1 | 5051 | # -*- coding: utf-8 -*-
#-----------------------------------------------------------------------------
# (C) British Crown Copyright 2012-5 Met Office.
#
# This file is part of Rose, a framework for meteorological suites.
#
# Rose is free software: you can redistribute it and/or modify
# it under the terms of the GNU G... | gpl-3.0 | 441,689,296,259,777,660 | 38.771654 | 78 | 0.545239 | false |
hocinebendou/bika.gsoc | bika/lims/utils/analysis.py | 1 | 12208 | # -*- coding: utf-8 -*-
import math
import zope.event
from bika.lims.utils import formatDecimalMark
from Products.Archetypes.event import ObjectInitializedEvent
from Products.CMFCore.WorkflowCore import WorkflowException
from Products.CMFPlone.utils import _createObjectByType
def create_analysis(context, service, ke... | mit | 269,186,533,421,347,600 | 39.138158 | 85 | 0.632028 | false |
VerstandInvictus/NachIOs | ifthentrack.py | 1 | 1181 | ## Hook.io Nach tracker updater.
## This takes a query with parameters of ?val=<number>&tr=<Nach tracker ID>&sec=<secret word>
## and adds a data point to the Nach tracker with ID corresponding to the "tr" param.
## It is intended to be used with IFTTT's Maker channel action but could be triggered from anywhere.
## It ... | mit | 6,501,709,542,593,637,000 | 42.740741 | 100 | 0.711262 | false |
kansanmuisti/datavaalit | web/political/views.py | 1 | 6227 | import json
import time
from django.template import RequestContext
from django.shortcuts import render_to_response
from social.models import *
from political.models import *
from political.api import *
from geo.models import Municipality
from django.core.urlresolvers import reverse
from django.core.mail import mail_ad... | agpl-3.0 | -3,575,229,711,720,876,500 | 38.411392 | 126 | 0.666131 | false |
santegoeds/bfair | bfair/_types.py | 1 | 7481 | #!/usr/bin/env python
#
# Copyright 2011 Tjerk Santegoeds
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | apache-2.0 | 4,085,828,044,796,257,000 | 19.439891 | 84 | 0.515573 | false |
blazaid/pynetics | test/test_stop.py | 1 | 2293 | import pickle
from unittest import TestCase
from unittest.mock import Mock
from tempfile import TemporaryFile
from pynetics.stop import StepsNum, FitnessBound
class StepsNumTestCase(TestCase):
""" Test for the stop condition based on number of iterations. """
def test_class_is_pickeable(self):
""" ... | gpl-3.0 | -8,702,983,873,158,111,000 | 37.864407 | 77 | 0.66027 | false |
tuxskar/caluny | caluny/core/admin.py | 1 | 2473 | """Admin site registration models for Caluma"""
from django.contrib import admin
from .models import SemesterDate
from .models import Student, Course, Level, Exam, Timetable, CourseLabel, Degree
from .models import Subject, Teacher, TeachingSubject, School, University
@admin.register(Subject)
class SubjectAdmin(admi... | gpl-2.0 | 8,265,881,122,111,337,000 | 26.175824 | 103 | 0.68702 | false |
frnhr/django-stdnumfield | testproject/testproject/settings.py | 1 | 3320 | """
Django settings for testproject project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | unlicense | -7,300,196,891,010,927,000 | 23.592593 | 79 | 0.654217 | false |
talipovm/terse | terse/ReportGenerator/Charges.py | 1 | 3037 | from ReportGenerator.Top_ReportGenerator import Top_ReportGenerator
from ReportGenerator.Geom import Geom
import logging
log = logging.getLogger(__name__)
class Charges(Top_ReportGenerator):
def __init__(self,we,parsed):
self.Q = list()
super().__init__(we,parsed)
def prepare_for_report(self... | mit | 8,360,541,386,781,269,000 | 30.978947 | 94 | 0.498848 | false |
oldm/OldMan | tests/attr_entry_test.py | 1 | 1916 | import unittest
from oldman.model.attribute import Entry
class AttributeEntryTest(unittest.TestCase):
def test_1(self):
entry = Entry()
value1 = 1
self.assertNotEquals(entry.current_value, value1)
entry.current_value = value1
self.assertEquals(entry.current_value, value1)... | bsd-3-clause | -1,405,675,632,503,099,600 | 27.176471 | 57 | 0.613779 | false |
mitar/django-pushserver | setup.py | 1 | 1615 | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
try:
# Workaround for http://bugs.python.org/issue15881
import multiprocessing
except ImportError:
pass
VERSION = '0.3.4'
if __name__ == '__main__':
setup(
name = 'django-pushserver',
version = VERSION,
... | agpl-3.0 | -6,908,667,698,903,055,000 | 33.361702 | 113 | 0.570898 | false |
cdkrot/scanner2web | serve.py | 1 | 1040 | #!/usr/bin/python3
# Copyright (C) 2016 Sayutin Dmitry.
# 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 be useful,
# but WIT... | gpl-3.0 | 4,064,060,949,484,477,000 | 31.5 | 70 | 0.742308 | false |
JohanComparat/nbody-npt-functions | bin/bin_SMHMr/create_AGN_catalog_gawk.py | 1 | 2344 | # overall python packages
import glob
#import astropy.io.fits as fits
# 2397897 143.540054 0.032711 20.449619 119.370173 9.753314 33.197590 -1.000000 25.191960 40.977921 2 127
# ------ -------- -------- ra dec
import os
import time
import numpy as n
import sys
t0=time.time()
#from astropy.cosmology import ... | cc0-1.0 | 3,773,433,743,117,480,000 | 45.88 | 189 | 0.566126 | false |
erdc/proteus | proteus/tests/surface_tension/rising_bubble_rans3p/vof_n.py | 1 | 1873 | from __future__ import absolute_import
from proteus import *
try:
from .risingBubble import *
from .vof_p import *
except:
from risingBubble import *
from vof_p import *
if timeDiscretization=='vbdf':
timeIntegration = VBDF
timeOrder=2
stepController = Min_dt_cfl_controller
elif timeDi... | mit | -7,382,594,697,588,394,000 | 24.657534 | 130 | 0.732515 | false |
anhaidgroup/py_stringsimjoin | py_stringsimjoin/tests/test_size_filter.py | 1 | 25474 | import unittest
from nose.tools import assert_equal, assert_list_equal, nottest, raises
from py_stringmatching.tokenizer.delimiter_tokenizer import DelimiterTokenizer
from py_stringmatching.tokenizer.qgram_tokenizer import QgramTokenizer
import numpy as np
import pandas as pd
from py_stringsimjoin.filter.size_filter ... | bsd-3-clause | 1,673,880,438,268,904,700 | 45.065099 | 81 | 0.459292 | false |
newmediamedicine/indivo_server_1_0 | indivo/tests/api/accounts_tests.py | 1 | 10862 | import django.test
from indivo.models import *
from indivo.tests.internal_tests import InternalTests, TransactionInternalTests
from django.utils.http import urlencode
from indivo.tests.data import *
from lxml import etree
from indivo.lib import iso8601
def accountStateSetUp(test_cases_instance):
_self = test_case... | gpl-3.0 | 2,913,130,053,172,983,300 | 45.418803 | 250 | 0.662125 | false |
jpanganiban/simplestruct | test_simplestruct.py | 1 | 4368 | # -*- coding: utf-8 -*-
import unittest
import simplestruct as structs
class StructTestCase(unittest.TestCase):
def test_class(self):
class Type(structs.Struct):
pass
self.assertIsNotNone(Type)
self.assertIsNotNone(Type())
def test_instantiation_correct_value_type(self):... | mit | -5,055,025,621,369,701,000 | 22.234043 | 72 | 0.572344 | false |
rwl/PyCIM | CIM14/IEC61970/Dynamics/BlockUsageOutputReference.py | 1 | 4616 | # 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 | -6,126,209,542,516,952,000 | 42.961905 | 468 | 0.717071 | false |
O-T-L/PyOptimization | parameters/indicator/pf.py | 1 | 3441 | """
Copyright (C) 2014, 申瑞珉 (Ruimin Shen)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed i... | lgpl-3.0 | -4,490,129,093,049,562,600 | 43.038462 | 115 | 0.63901 | false |
FroggedTV/grenouillebot | bot/module/irc/irc_bot.py | 1 | 4075 | import logging, traceback
from time import sleep
from datetime import datetime, timedelta
import threading
from irc.bot import SingleServerIRCBot
class IrcBot(SingleServerIRCBot):
"""The module of the bot responsible for the Twitch (IRC) chat.
Listen to all pub messages and forward to the command... | mit | -4,768,008,839,170,572,000 | 33.745614 | 80 | 0.576933 | false |
YeEmrick/learning | stanford-tensorflow/assignments/01/q1_sol.py | 1 | 5009 | """
Solution to simple exercises to get used to TensorFlow API
You should thoroughly test your code.
TensorFlow's official documentation should be your best friend here
CS20: "TensorFlow for Deep Learning Research"
cs20.stanford.edu
Created by Chip Huyen (chiphuyen@cs.stanford.edu)
"""
import os
os.environ['TF_CPP_MIN_... | apache-2.0 | -4,323,550,377,722,852,000 | 43.336283 | 80 | 0.498503 | false |
Noirello/bonsai | .ci/delay.py | 1 | 5135 | import os
import subprocess
import xmlrpc.server as rpc
import time
import sys
import multiprocessing as mp
try:
import pydivert
except ImportError:
pass
class LinuxDelayHandler:
@staticmethod
def get_interface_name():
""" Get the first interface name that is not the localhost. """
ne... | mit | 509,284,448,804,491,300 | 29.02924 | 86 | 0.427848 | false |
Karspexet/Karspexet | karspexet/ticket/tasks.py | 1 | 1458 | import logging
from django.conf import settings
from django.core.mail import send_mail
from django.contrib.sites.models import Site
from django.template.loader import render_to_string
logger = logging.getLogger(__file__)
def send_ticket_email_to_customer(reservation, email, name=None):
'''Send an email to the cu... | mit | 7,935,162,058,853,896,000 | 33.690476 | 118 | 0.693892 | false |
jonparrott/nox | nox/command.py | 1 | 3925 | # Copyright 2016 Alethea Katherine Flowers
#
# 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 | -6,808,519,644,293,755,000 | 28.074074 | 118 | 0.593376 | false |
pombredanne/discern | tastypie/resources.py | 1 | 94958 | from __future__ import with_statement
import sys
import logging
import warnings
import django
from django.conf import settings
try:
from django.conf.urls import patterns, url
except ImportError: # Django < 1.4
from django.conf.urls.defaults import patterns, url
from django.core.exceptions import ObjectDoesNotEx... | agpl-3.0 | 4,679,845,014,758,824,000 | 37.120434 | 213 | 0.600623 | false |
MuffinMedic/CloudBot | cloudbot/hook.py | 1 | 14146 | import collections
import inspect
import re
from enum import Enum, unique, IntEnum
from cloudbot.event import EventType
valid_command_re = re.compile(r"^\w+$")
@unique
class Priority(IntEnum):
# Reversed to maintain compatibility with sieve hooks numeric priority
LOWEST = 127
LOW = 63
NORMAL = 0
... | gpl-3.0 | -573,451,123,311,893,000 | 26.901381 | 112 | 0.588294 | false |
collinstocks/eventlet | eventlet/greenio/base.py | 1 | 17181 | import errno
import os
import socket
import sys
import time
import warnings
import eventlet
from eventlet.hubs import trampoline, notify_opened, IOClosed
from eventlet.support import get_errno, six
__all__ = [
'GreenSocket', '_GLOBAL_DEFAULT_TIMEOUT', 'set_nonblocking',
'SOCKET_BLOCKING', 'SOCKET_CLOSED', 'CO... | mit | 3,253,789,823,497,832,000 | 34.645228 | 92 | 0.584483 | false |
mgrygoriev/CloudFerry | cloudferrylib/os/estimation/procedures.py | 1 | 6018 | # Copyright (c) 2016 Mirantis 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, so... | apache-2.0 | 263,699,053,650,078,880 | 38.333333 | 75 | 0.588069 | false |
rksaxena/crawler_templates | crawler_type2/crawler_type2/spiders/type_two.py | 1 | 1779 | # -*- coding: utf-8 -*-
import scrapy
import crawler_type2.config as config
from crawler_type2.items import CrawlerType2Item
import urlparse
class TypeTwo(scrapy.Spider):
name = 'crawler_type2'
def start_requests(self):
source = getattr(self, 'source', None)
if source is None or source not in... | mit | 1,685,810,864,093,220,900 | 39.431818 | 81 | 0.610455 | false |
leppa/home-assistant | homeassistant/components/light/device_condition.py | 1 | 1206 | """Provides device conditions for lights."""
from typing import Dict, List
import voluptuous as vol
from homeassistant.components.device_automation import toggle_entity
from homeassistant.const import CONF_DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.helpers.condition import ConditionChecker... | apache-2.0 | -2,319,655,593,008,458,000 | 31.594595 | 86 | 0.766169 | false |
piaoyaoshi/inf1340_2015_asst1 | exercise3.py | 1 | 3174 | #!/usr/bin/env python
""" Assignment 1, Exercise 3, INF1340, Fall, 2015. Troubleshooting Car Issues.
This module contains one function diagnose_car(). It is an expert system to
interactive diagnose car issues.
"""
__author__ = 'Susan Sim'
__email__ = "ses@drsusansim.org"
__copyright__ = "2015 Susan Sim"
__license__... | mit | -2,540,198,713,976,936,400 | 23.604651 | 110 | 0.587902 | false |
cnddu/cactusblog | form/post.py | 1 | 1329 | #!/usr/bin/env python
# coding=utf-8
#
# Copyright 2013 meiritugua.com
from wtforms import TextField, HiddenField, validators
from lib.forms import Form
class NewForm(Form):
title = TextField('Title', [
validators.Required(message = "请填写帖子标题"),
validators.Length(min = 3, message = "帖子标题长度过短(3-... | gpl-3.0 | -6,134,245,195,717,030,000 | 23.354167 | 70 | 0.585115 | false |
kartoza/jakarta-flood-maps | django_project/core/wsgi.py | 1 | 1458 | # -*- coding: utf-8 -*-
"""
WSGI config for flood_mapper project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application ... | bsd-2-clause | -1,808,087,254,042,629,600 | 43.181818 | 79 | 0.786694 | false |
zsdonghao/tensorlayer | tests/test_layers_merge.py | 1 | 6058 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import unittest
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
import tensorlayer as tl
from tests.utils import CustomTestCase
class Layer_Merge_Test(CustomTestCase):
@classmethod
def setUpClass(cls):
cls.data = dict()
... | apache-2.0 | 3,621,803,695,910,737,400 | 39.386667 | 120 | 0.600693 | false |
openweave/openweave-core | src/test-apps/happy/test-templates/WeaveSWU.py | 1 | 12087 | #!/usr/bin/env python3
#
# Copyright (c) 2015-2017 Nest Labs, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lic... | apache-2.0 | -8,108,436,593,459,322,000 | 36.537267 | 157 | 0.586498 | false |
GuillaumeSeren/alot | alot/helper.py | 1 | 20203 | # -*- coding: utf-8 -*-
# Copyright (C) 2011-2012 Patrick Totzke <patricktotzke@gmail.com>
# Copyright © 2017-2018 Dylan Baker
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file
from datetime import timedelta
from datetime import datetime
from collectio... | gpl-3.0 | -2,359,341,438,656,932,400 | 32.440397 | 79 | 0.624171 | false |
AenBleidd/man2wiki | man2wiki.py | 1 | 2114 | import sys
import re
from os import listdir, linesep
from os.path import isfile, join, splitext
def clearLine(line):
return line.strip().replace(r'\&', '').replace(r'\fB', '').replace(r'\fC', '').replace(r'\fP', '').replace(r'\-', '-').replace(r'#', '<nowiki>#</nowiki>')
def convert(in_filename, out_filename):
f = ... | gpl-3.0 | -1,009,650,140,952,821,800 | 27.581081 | 155 | 0.556291 | false |
magne-max/zipline-ja | zipline/pipeline/loaders/utils.py | 1 | 9840 | import datetime
import numpy as np
import pandas as pd
from zipline.utils.pandas_utils import mask_between_time
def is_sorted_ascending(a):
"""Check if a numpy array is sorted."""
return (np.fmax.accumulate(a) <= a).all()
def validate_event_metadata(event_dates,
event_timestamps... | apache-2.0 | 8,966,708,791,491,797,000 | 34.912409 | 79 | 0.618699 | false |
napalm-automation/napalm-yang | napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/neighbors/neighbor/afi_safis/afi_safi/graceful_restart/config/__init__.py | 1 | 11849 | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | apache-2.0 | -5,377,686,711,822,514,000 | 36.735669 | 369 | 0.577264 | false |
mrrrgn/build-relengapi | relengapi/lib/auth/ldap_group_authz.py | 1 | 2918 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import itertools
import ldap
import logging
from relengapi import p
from relengapi.lib.auth import permissions_stale
... | mpl-2.0 | -6,353,090,569,641,761,000 | 37.394737 | 93 | 0.585675 | false |
jbrudvik/yahooscraper | tests.py | 1 | 3744 | import unittest
from yahooscraper import *
class YahooScraperImportTests(unittest.TestCase):
def test_import(self):
import yahooscraper
self.assertIsNotNone(yahooscraper)
self.assertIsNotNone(yahooscraper.login)
self.assertIsNotNone(yahooscraper.fantasy)
self.assertIsNotN... | mit | -5,059,203,193,517,457,000 | 30.462185 | 75 | 0.644498 | false |
swatlab/uplift-analysis | src_code_metrics.py | 1 | 4848 | import re, csv, pytz, json, subprocess
from dateutil import parser
import pandas as pd
import get_bugs
from libmozdata import patchanalysis
# Execute a shell command
def shellCommand(command_str):
cmd =subprocess.Popen(command_str.split(' '), stdout=subprocess.PIPE)
cmd_out, cmd_err = cmd.communicate()
ret... | mpl-2.0 | 8,802,598,191,561,831,000 | 36.007634 | 128 | 0.591172 | false |
VapourApps/va_master | va_master/utils/old_to_new_store.py | 1 | 3048 | import requests, json, functools
import base64
import os
path = 'http://127.0.0.1:8500'
from va_master.handlers.datastore_handler import DatastoreHandler
from va_master.consul_kv.datastore import ConsulStore
import tornado.ioloop
folder_pwd = os.path.join(os.path.dirname(os.path.realpath(__file__)), '')
datastore = ... | gpl-3.0 | 821,649,943,494,431,100 | 37.582278 | 196 | 0.624016 | false |
rs2/pandas | pandas/tests/indexing/multiindex/test_xs.py | 1 | 9100 | import numpy as np
import pytest
from pandas import DataFrame, Index, IndexSlice, MultiIndex, Series, concat, date_range
import pandas._testing as tm
import pandas.core.common as com
@pytest.fixture
def four_level_index_dataframe():
arr = np.array(
[
[-0.5109, -2.3358, -0.4645, 0.05076, 0.364... | bsd-3-clause | -494,235,310,551,949,200 | 31.5 | 87 | 0.592857 | false |
AparatTechnologies/django-connectwise | djconnectwise/api.py | 1 | 16448 | import logging
from django.conf import settings
from djconnectwise.utils import RequestSettings
import re
import requests
from retrying import retry
class ConnectWiseAPIError(Exception):
"""Raise this, not request exceptions."""
pass
class ConnectWiseRecordNotFoundError(ConnectWiseAPIError):
"""The rec... | mit | -2,677,239,882,592,082,400 | 34.912664 | 79 | 0.557515 | false |
mark-rushakoff/FlackOverstow | grabber.py | 1 | 1835 | #!/usr/bin/env python
__author__ = "Mark Rushakoff"
__license__ = "MIT"
import sys
import urllib2
import re
import StringIO
import gzip
try:
import simplejson as json
except ImportError:
try:
import json
except ImportError:
sys.stderr.write("simplejson or json required for operation. Abo... | mit | -9,221,221,283,494,337,000 | 29.583333 | 117 | 0.643052 | false |
ddico/odoo | addons/l10n_hr/__manifest__.py | 1 | 1748 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Author: Goran Kliska
# mail: goran.kliska(AT)slobodni-programi.hr
# Copyright (C) 2011- Slobodni programi d.o.o., Zagreb
# Contributions:
# Tomislav Bošnjaković, Storm Computers d.o.o. :
# - ac... | agpl-3.0 | 3,099,756,170,522,868,700 | 26.603175 | 80 | 0.66015 | false |
minlexx/pyevemon | esi_client/models/delete_fleets_fleet_id_squads_squad_id_forbidden.py | 1 | 3083 | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online
OpenAPI spec version: 0.4.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class DeleteFleetsFleetIdSquadsSquadIdForbidden(object):
"""... | gpl-3.0 | 3,020,769,290,137,850,000 | 25.350427 | 82 | 0.537464 | false |
PrzemyslawUrbanczyk/pu_zadanie1 | fixture/contact.py | 1 | 10214 | import re
from model.contact import Contact
class ContactHelper:
def __init__(self, app):
self.app = app
def return_to_home_page(self):
wd = self.app.wd
wd.find_element_by_link_text("home page").click()
def create(self, contact):
wd = self.app.wd
# init contact ... | apache-2.0 | -1,192,542,450,972,658,000 | 42.455319 | 109 | 0.600372 | false |
wavefrontHQ/python-client | wavefront_api_client/models/response_container_service_account.py | 1 | 4422 | # coding: utf-8
"""
Wavefront REST API
<p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ... | apache-2.0 | 1,939,211,225,929,616,100 | 30.140845 | 409 | 0.593171 | false |
wdv4758h/ZipPy | edu.uci.python.test/regressiontests/test_grammar.py | 1 | 33140 | # Python test set -- part 1, grammar.
# This just tests whether the parser accepts them all.
#from test.support import run_unittest, check_syntax_error
# Currently test.support cannot be imported
import unittest
#import sys
# testing import *
#from sys import *
class TokenTests(unittest.TestCase):
def testBack... | bsd-3-clause | -3,071,993,888,614,629,400 | 33.129763 | 132 | 0.490616 | false |
z01nl1o02/tests | text/mlpbase.py | 1 | 8554 | import os,sys,pdb,pickle
import numpy as np
import cv2
import theano
import theano.tensor as T
import random
#you may try several times to get a good model and the init 'cost' may be quite large, 78 .e.g.
class Layer(object):
"""
a layer is a maxtrix with row = output of this layer and col = output of
prev... | gpl-2.0 | 3,815,222,287,935,987,700 | 35.4 | 162 | 0.513561 | false |
wpoely86/vsc-base | lib/vsc/utils/run.py | 2 | 31071 | #
# Copyright 2009-2013 Ghent University
#
# This file is part of vsc-base,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (http:... | lgpl-2.1 | 4,259,829,277,435,143 | 35.813981 | 132 | 0.568408 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.