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 |
|---|---|---|---|---|---|---|---|---|---|---|
karies/root | tutorials/tmva/keras/ApplicationRegressionKeras.py | 6 | 1042 | #!/usr/bin/env python
from ROOT import TMVA, TFile, TString
from array import array
from subprocess import call
from os.path import isfile
# Setup TMVA
TMVA.Tools.Instance()
TMVA.PyMethodBase.PyInitialize()
reader = TMVA.Reader("Color:!Silent")
# Load data
if not isfile('tmva_reg_example.root'):
call(['curl', '-... | lgpl-2.1 | 6,563,463,242,721,791,000 | 28.771429 | 94 | 0.71785 | false |
qpython-android/QPYPI | docs/2x/scripts/rterminal.py | 1 | 3854 | #coding=utf-8
# -------------------------------------
#$PYTHONHOME/bin/online2.py
onlinePy='''
#coding=utf-8
import os,sys
from fabric.api import env,run,put,output
env.hosts=['{}']
env.password='{}'
output['running']=False
output['status']=False
output['aborts']=True
env.output_prefix=False
pyhome=os.popen('echo $PY... | apache-2.0 | 7,690,421,596,382,939,000 | 28.875969 | 119 | 0.5589 | false |
chylex/Discord-History-Tracker | build.py | 1 | 7236 | # Python 3
import fileinput
import glob
import shutil
import sys
import os
import re
import distutils.dir_util
VERSION_SHORT = "v.31"
VERSION_FULL = VERSION_SHORT + ", released 3 April 2021"
EXEC_UGLIFYJS_WIN = "{2}/lib/uglifyjs.cmd --parse bare_returns --compress --mangle toplevel --mangle-props keep_quoted,reserve... | mit | -6,352,658,042,464,882,000 | 31.16 | 159 | 0.582366 | false |
bryback/quickseq | genescript/Bio/Emboss/Applications.py | 1 | 53527 | # Copyright 2001-2009 Brad Chapman.
# Revisions copyright 2009-2010 by Peter Cock.
# Revisions copyright 2009 by David Winter.
# Revisions copyright 2009-2010 by Leighton Pritchard.
# All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that ... | mit | -3,426,776,342,173,033,000 | 41.855885 | 134 | 0.529938 | false |
interlegis/sigi | sigi/apps/contatos/migrations/0002_auto_20151104_0810.py | 1 | 2409 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import sigi.apps.utils
class Migration(migrations.Migration):
dependencies = [
('contatos', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Mesorregiao',
... | gpl-2.0 | 946,709,415,690,778,600 | 39.830508 | 197 | 0.562474 | false |
vinoth3v/In | In/core/context.py | 1 | 13710 | import greenlet
import wsgiref, wsgiref.headers
import datetime
import logging
#import In.nabar
import In.core.response
import In.core.action as action
from In.core.asset import Asset
from In.core.cookie import Cookie
from In.html.menu import PageMenuTab
class ContextEnd(RuntimeError):
'''Context ha... | apache-2.0 | 3,614,380,384,540,868,600 | 21.560137 | 112 | 0.639825 | false |
Stratoscale/rackattack-physical | rackattack/physical/provider_tests/test_priority.py | 1 | 1269 | import pytest
import logging
@pytest.fixture()
def chosen(priority):
_chosen = priority.allocated().values()[0].id()
logging.info("CHOSEN: {chosen}".format(chosen=_chosen))
return _chosen
def test_no_tags(chosen):
# some servers with tags, single server without tags -> expect the one with no tags to... | apache-2.0 | -1,341,561,199,927,721,200 | 23.403846 | 108 | 0.703704 | false |
esatel/ADCPy | doc/source/conf.py | 1 | 8929 | # -*- coding: utf-8 -*-
#
# ADCpy documentation build configuration file, created by
# sphinx-quickstart on Tue Oct 07 11:54:34 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.
#
# All... | mit | 3,070,318,257,931,692,500 | 31.70696 | 133 | 0.70243 | false |
OpenUpgrade/OpenUpgrade | openerp/tools/convert.py | 1 | 41298 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 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 | -4,873,258,741,265,820,000 | 40.715152 | 219 | 0.529323 | false |
luca1897/Pyfacebook | pyfacebook-lite/__init__.py | 1 | 6953 | #
# __init__.py
# Copyright (C) orion 2011 <luca.barbara@live.com>
#
# PyFbGraph 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,004,359,864,503,552,300 | 24.468864 | 131 | 0.66892 | false |
thornomad/django-hitcount | tests/test_admin.py | 1 | 7857 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase, RequestFactory
from django.core.exceptions import PermissionDenied
try:
from django.core.urlresolvers import reverse
except ImportError:
from django.urls import reverse
from django.contrib.admin.sites import Admin... | mit | -3,648,723,180,025,879,600 | 35.887324 | 98 | 0.626957 | false |
boundlessgeo/qgis-geogig-plugin | geogig/gui/dialogs/remotesdialog.py | 1 | 7621 | # -*- coding: utf-8 -*-
#
# (c) 2016 Boundless, http://boundlessgeo.com
# This code is licensed under the GPL 2.0 license.
#
from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class RemotesDialog(QtGui.QDialog):
def __init__(self, parent, repo):
QtGui.QDialog.__init__(sel... | gpl-2.0 | -5,345,839,704,717,430,000 | 37.489899 | 104 | 0.656213 | false |
lnhubbell/tweetTrack | streamScript/domain/analysis_playground.py | 1 | 1928 | """This file is intended to be used as a playground to analyze data pulled
from the database. The code below was used to analyze data from the Tweet200
database, but this is a good place for any sort of extra analysis."""
def count_unique_users(data, n=10000):
u""" Uses blocks of tweets from single users per city.... | mit | 2,655,640,619,909,532,700 | 37.58 | 83 | 0.525934 | false |
google/adiantum | specification/python/formatperf.py | 1 | 2697 | # Copyright 2018 Google LLC
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.
import re
def parseperf(fn):
rexp = re.compile(r"(\S+) (encryption|decryption|hashing) \(\S+\)\s+(\d+\.\d+) cpb")
for l in fn.open():... | mit | 1,171,430,470,028,120,300 | 28.637363 | 88 | 0.557286 | false |
debomatic/debomatic | modules/RemovePackages.py | 1 | 2077 | # Deb-o-Matic - RemovePackages module
#
# Copyright (C) 2018-2021 Luca Falavigna
#
# Authors: Luca Falavigna <dktrkranz@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 3 of... | gpl-3.0 | -1,570,457,130,797,838,000 | 38.942308 | 77 | 0.576793 | false |
yocheah/DMF | idaes_dmf/base_model.py | 1 | 1598 | import os
import abc
import pwd
import sys
import logging
from metadata import Metadata
from datetime import datetime as dt
__author__ = "You-Wei Cheah"
__version__ = '0.1.0'
_log = logging.getLogger("BaseModel")
class BaseModel:
'''Base model'''
def __init__(self, **metas):
_log.info(self.__class__... | mit | 6,370,587,117,656,606,000 | 25.196721 | 77 | 0.611389 | false |
nicolashainaux/mathmakerlib | mathmakerlib/geometry/bipoint.py | 1 | 8954 | # -*- coding: utf-8 -*-
# Mathmaker Lib offers lualatex-printable mathematical objects.
# Copyright 2006-2017 Nicolas Hainaux <nh.techn@gmail.com>
# This file is part of Mathmaker Lib.
# Mathmaker Lib is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | gpl-3.0 | -1,612,832,763,755,031,800 | 36.062241 | 79 | 0.562136 | false |
SWE574-Groupago/heritago | heritago/heritages/serializers.py | 1 | 9002 | import django.dispatch
from rest_framework import serializers
from heritages.models import Heritage, BasicInformation, Origin, Tag, Multimedia, Selector, AnnotationTarget, \
AnnotationBody, Annotation, User
class BasicInformationSerializer(serializers.ModelSerializer):
class Meta:
model = BasicInform... | mit | -7,851,684,465,631,293,000 | 33.756757 | 111 | 0.56643 | false |
svanscho/weatherlight | weatherlight-server/openweathermap.py | 1 | 5038 | import urllib2
import json
from datetime import datetime
import pytz
import logging
class Openweathermap(object):
def __init__(self, appid):
self.appid = appid #the openweathermaps application id you got when signing up for the API
#return codes according to this definition http://openweathermap.org/... | mit | 6,597,734,720,230,689,000 | 29.72561 | 134 | 0.475983 | false |
jkliff/project_walker | project-walker-core/src/python/main/Checkers.py | 1 | 9326 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os.path
import re
import subprocess
try:
from lxml import etree
except ImportError:
try:
import xml.etree.cElementTree as etree
except:
import elementtree.ElementTree as etree
import ProjectWalker
import GlobMatch
from interpol import inter... | bsd-3-clause | 2,253,186,675,081,887,200 | 34.869231 | 134 | 0.558546 | false |
apache/airflow | airflow/providers/google/cloud/hooks/text_to_speech.py | 2 | 5609 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | apache-2.0 | 4,474,464,275,486,413,000 | 45.355372 | 160 | 0.702443 | false |
MST-MRR/DroneKit | Flight/AirTrafficControl.py | 1 | 21189 | ############################################
# This file contains a wrapper class
# for DroneKit related operations
# for our drone.
############################################
# Multi-Rotor Robot Design Team
# Missouri University of Science Technology
# Spring 2017
# Lucas Coon, Mark Raymond Jr.
# pylint: di... | mit | -3,630,978,392,678,930,000 | 33.492462 | 232 | 0.613998 | false |
draperlaboratory/stout | functional_tests/tests.py | 2 | 3909 | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from django.test import LiveServerTestCase
from django.contrib.auth.models import User
from django.conf import settings
from django.conf.urls.static import static
import sys
from op_tasks.models import Dataset, Product, OpTask, UserProfile,... | apache-2.0 | 6,205,571,955,538,042,000 | 31.04918 | 91 | 0.718342 | false |
DES-SL/EasyLens | docs/conf.py | 1 | 8340 | # -*- coding: utf-8 -*-
#
# complexity documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | mit | 4,629,360,700,861,157,000 | 30.957854 | 103 | 0.705276 | false |
yackj/GameAnalysis | test/gameio_test.py | 1 | 26631 | import copy
import json
import warnings
import numpy as np
import pytest
from gameanalysis import gameio
from gameanalysis import rsgame
from gameanalysis import utils
SERIAL = gameio.gameserializer(['role'], [['strat1', 'strat2']])
SERIAL2 = gameio.gameserializer(['a', 'b'], [['bar', 'foo'], ['baz']])
GAME = rsga... | apache-2.0 | -856,634,028,782,670,300 | 27.121436 | 79 | 0.377117 | false |
hydroshare/hydroshare | hs_file_types/tests/test_raster_metadata.py | 1 | 61525 | import os
from django.test import TransactionTestCase
from django.db import IntegrityError
from django.contrib.auth.models import Group
from django.core.exceptions import ValidationError
from rest_framework.exceptions import ValidationError as DRF_ValidationError
from hs_core.testing import MockIRODSTestCaseMixin
fr... | bsd-3-clause | -2,108,983,692,599,430,000 | 49.973488 | 113 | 0.666168 | false |
NSLS-II-SRX/ipython_ophyd | profile_xf05id1-noX11/startup/85-bs_callbacks.py | 1 | 3670 | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 24 12:30:06 2016
@author: xf05id1
"""
from bluesky.callbacks import CallbackBase,LivePlot
#import os
#import time as ttime
#from databroker import DataBroker as db, get_events
#from databroker.databroker import fill_event
import filestore.api as fsapi
#from metadatasto... | bsd-2-clause | 2,528,519,993,124,120,000 | 28.126984 | 81 | 0.589918 | false |
VUIIS/seam | seam/freesurfer/v1/__init__.py | 1 | 1331 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
V1 defines the following recipes:
* :func:`seam.freesurfer.v1.build_recipe` for building a complete
script for executing the recon-all pipeline.
V1 defines the following functions:
* ``recon-all -all`` exposed through :func:`seam.freesurfer.v1.recon_all`
* ``recon... | mit | 2,274,402,422,241,322,500 | 41.935484 | 79 | 0.745304 | false |
erikruiter2/ipbucket | database.py | 1 | 2871 | from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from ipaddr_func import long2ip
from sqlalchemy.exc import IntegrityError
engine = create_engine('sqlite:////tmp/ipbucket.db', convert_unicode=True)
db_session = scoped_s... | gpl-2.0 | -6,610,873,669,780,001,000 | 34.012195 | 123 | 0.632184 | false |
CSD-Public/stonix | src/MacBuild/ramdisk/lib/libHelperFunctions.py | 1 | 11052 | """
Helper functions, OS agnostic
@author: Roy Nielsen
"""
#--- Native python libraries
import re
import os
import sys
import time
import ctypes
import traceback
from subprocess import Popen, STDOUT, PIPE
try:
import termios
except:
pass
#--- non-native python libraries in this source tree
from . loggers imp... | gpl-2.0 | -6,784,422,809,951,835,000 | 29.362637 | 126 | 0.537459 | false |
JosephRedfern/dominator | dominate.py | 1 | 2057 | import cv2
import numpy as np
class Dominator(object):
def __init__(self, domino_filename):
self.domino_image = cv2.imread(domino_filename)
def detect_blobs(self, image=None):
if image is None:
image = self.domino_image
params = cv2.SimpleBlobDetector_Params()
pa... | bsd-2-clause | 5,429,924,301,556,357,000 | 28.385714 | 118 | 0.616918 | false |
mrm-xiefan/lunania-ai | catvsdog/01_job/bottleneck.py | 1 | 4370 | import os
import utils
import config
import traceback
import logging.config
from luna import LunaExcepion
logging.config.fileConfig("logging.conf")
logger = logging.getLogger()
if __name__ == '__main__':
try:
logger.info("------ start ------")
utils.lock()
from keras.applications.vgg16... | mit | 7,097,965,483,636,756,000 | 33.188034 | 118 | 0.6145 | false |
furious-luke/django-yabl | yabl/templatetags/yabl.py | 1 | 1699 | from django import template
from ..renderer import Renderer
from ..utils import update_get as u_update_get
register = template.Library()
renderer = Renderer()
class RequestException(Exception):
pass
@register.simple_tag
def render_label(field, **kwargs):
return renderer.render_label(field, **kwargs)
@regis... | mit | -9,219,278,731,227,628,000 | 25.546875 | 96 | 0.733961 | false |
aimas/TuniErp-8.0 | addons/hr_contract/__openerp__.py | 1 | 1837 | # -*- 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 | -6,793,163,646,180,637,000 | 34.326923 | 78 | 0.580838 | false |
esrefozturk/checkmate | CheckmateServerTests/test2.py | 1 | 2922 | # This file is part of Checkmate.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distribute... | gpl-3.0 | -448,544,265,896,080,900 | 31.466667 | 100 | 0.566393 | false |
grycap/scar | examples/mask-detector-workflow/blurry-faces/src/DetectorAPI.py | 1 | 2691 | import tensorflow as tf
import numpy as np
import time
class DetectorAPI:
def __init__(self, path_to_ckpt):
self.path_to_ckpt = path_to_ckpt
self.detection_graph = tf.Graph()
with self.detection_graph.as_default():
od_graph_def = tf.compat.v1.GraphDef()
with tf.io.g... | apache-2.0 | 8,339,100,368,514,836,000 | 41.046875 | 100 | 0.589372 | false |
infOpen/ansible_customer | tests/conftest.py | 1 | 5437 | import errno
import logging
import os
from paramiko.client import SSHClient, AutoAddPolicy
from paramiko.ssh_exception import AuthenticationException, SSHException, \
NoValidConnectionsError
import pytest
import requests
import shutil
def _create_or_update_symplink(target, link_name):
"""
Create or updat... | mit | 3,603,568,291,006,884,000 | 29.205556 | 78 | 0.627736 | false |
biocommons/hgvs | hgvs/alignmentmapper.py | 1 | 13454 | # -*- coding: utf-8 -*-
"""Mapping positions between pairs of sequence alignments
The AlignmentMapper class is at the heart of mapping between aligned sequences.
"""
# Implementation note re: "no-zero correction": HGVS doesn't have a
# 0. Counting is -3, -2, -1, 1, 2, 3 :-/ Coordinate calculations must
# take this d... | apache-2.0 | -8,949,463,034,163,070,000 | 44.917808 | 119 | 0.573911 | false |
elationfoundation/rss_keyword_collector | rss_keyword_collector/feed.py | 1 | 6292 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of rss_keyword_parser, a simple term extractor from rss feeds.
# Copyright © 2015 seamus tuohy, <stuohy@internews.org>
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as p... | lgpl-3.0 | 4,961,942,695,959,910,000 | 40.117647 | 105 | 0.520108 | false |
fbradyirl/home-assistant | homeassistant/components/sytadin/sensor.py | 1 | 4655 | """Support for Sytadin Traffic, French Traffic Supervision."""
import logging
import re
from datetime import timedelta
import requests
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
LENGTH_... | apache-2.0 | -2,261,170,843,775,063,600 | 29.821192 | 92 | 0.63064 | false |
krishnab-datakind/mining-data-acquisition | travis_pypi_setup.py | 1 | 4092 | #!/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 | -4,217,572,072,402,688,000 | 31.220472 | 79 | 0.681818 | false |
jhuttner/flake8-import-order | flake8_import_order/stdlib_list.py | 1 | 5068 | STDLIB_NAMES = set((
"AL",
"BaseHTTPServer",
"Bastion",
"Binary",
"Boolean",
"CGIHTTPServer",
"ColorPicker",
"ConfigParser",
"Cookie",
"DEVICE",
"DocXMLRPCServer",
"EasyDialogs",
"FL",
"FrameWork",
"GL",
"HTMLParser",
"MacOS",
"Mapping",
"MimeW... | lgpl-3.0 | 7,253,323,680,914,693,000 | 14.311178 | 27 | 0.469416 | false |
leon-adams/datascience | algorithms/hobfield.py | 1 | 5247 | #
# Leon Adams
#
# Python Module for running a hopfield network to relocate the memory from a perturbed image.
# The raw data set is represented in png image format. This code takes the three color channels (rgb)
# Converts to a single channel gray scaled image and then transforms the output to a [-1,1] vector
# for u... | mpl-2.0 | 5,318,124,734,390,974,000 | 34.938356 | 102 | 0.68077 | false |
ctuning/ck-env | soft/compiler.llvm.android.ndk/customize.py | 1 | 23467 | #
# Collective Knowledge (individual environment - setup)
#
# See CK LICENSE.txt for licensing details
# See CK COPYRIGHT.txt for copyright details
#
# Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net
#
import os
##############################################################################
# ... | bsd-3-clause | 7,143,115,518,857,345,000 | 33.258394 | 139 | 0.477692 | false |
kblomqvist/yasha | yasha/cmsis.py | 1 | 14079 | """
The MIT License (MIT)
Copyright (c) 2015-2021 Kim Blomqvist
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, ... | mit | 6,884,642,169,536,728,000 | 35.568831 | 84 | 0.60537 | false |
0dadj1an/mix | mix_backup/workspace/python_bundle_1_2/add_access_rule/addAccessRule.py | 1 | 2674 | #
# addAccessRule.py
# version 1.0
#
#
# This example demonstrates communication with Check Point Management server using Management API Library in Python.
# The demonstrated commands are:
#
# 1. login
# 2. adding an access rule to the top of Network layer
# 3. publishing the changes
#
# Logout command is called ... | apache-2.0 | 4,071,396,948,720,046,000 | 35.630137 | 116 | 0.622289 | false |
markmc/oslo.messaging | oslo/messaging/notify/_impl_messaging.py | 1 | 2131 |
# Copyright 2011 OpenStack Foundation.
# All Rights Reserved.
# Copyright 2013 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/licens... | apache-2.0 | 3,287,923,576,435,222,000 | 35.118644 | 79 | 0.663069 | false |
CCI-MOC/k2k-proxy | mixmatch/services.py | 1 | 6357 | # Copyright 2016 Massachusetts Open Cloud
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | 4,650,492,258,410,722,000 | 31.106061 | 77 | 0.521 | false |
BL-Labs/sample_generator_datatools | sample_generator/sample_generator/settings.py | 1 | 5561 | # Django settings for sample_generator project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', ... | mit | 2,516,482,832,093,580,300 | 32.908537 | 127 | 0.690343 | false |
ddico/odoo | addons/website/tests/test_controllers.py | 1 | 1702 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import json
from odoo import tests
from odoo.tools import mute_logger
@tests.tagged('post_install', '-at_install')
class TestControllers(tests.HttpCase):
@mute_logger('odoo.addons.http_routing.models.ir_http', 'o... | agpl-3.0 | 212,993,557,685,415,580 | 37.681818 | 113 | 0.552879 | false |
ftranschel/evoMPS | evoMPS/tdvp_uniform.py | 1 | 54221 | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 13 17:29:27 2011
@author: Ashley Milsted
TODO:
- Clean up CG code: Create nice interface?
- Split out excitations stuff?
"""
import numpy as np
import scipy as sp
import scipy.linalg as la
import scipy.sparse.linalg as las
import scipy.optimize as opti
import td... | bsd-3-clause | -3,848,388,600,471,098,000 | 36.680334 | 156 | 0.473912 | false |
alexholehouse/SBMLIntegrator | libsbml-5.0.0/src/bindings/python/test/math/TestReadMathML.py | 1 | 31941 | #
# @file TestReadMathML.py
# @brief Read MathML unit tests
#
# @author Akiya Jouraku (Python conversion)
# @author Ben Bornstein
#
# $Id: TestReadMathML.py 11441 2010-07-09 02:22:23Z mhucka $
# $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/src/bindings/python/test/math/TestReadMathML.py... | gpl-3.0 | -9,113,317,059,977,396,000 | 32.657534 | 124 | 0.588554 | false |
jason0x43/jc-nest | nest.py | 1 | 11609 | #!/usr/bin/env python
import json
import requests
import logging
import ssl
from datetime import datetime
from os.path import exists, expanduser, dirname
from os import makedirs, remove
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.poolmanager import PoolManager
LOG = logging.getLogger(__n... | mit | 3,842,743,829,573,667,300 | 30.040107 | 78 | 0.54139 | false |
zwernberg/squatbot | config/settings/production.py | 1 | 7518 | # -*- coding: utf-8 -*-
"""
Production Configurations
- Use Amazon's S3 for storing static files and uploaded media
- Use mailgun to send emails
- Use Redis for cache
"""
from __future__ import absolute_import, unicode_literals
from boto.s3.connection import OrdinaryCallingFormat
from django.utils import six
from... | mit | -2,733,122,066,308,563,000 | 34.971292 | 117 | 0.606677 | false |
codingkevin/suds | tests/test_input_parameters.py | 1 | 24975 | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify it under
# the terms of the (LGPL) 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 | -434,590,500,304,772,600 | 35.943787 | 79 | 0.642108 | false |
pymedusa/SickRage | medusa/providers/torrent/json/eztv.py | 1 | 4401 | # coding=utf-8
"""Provider code for EZTV."""
from __future__ import unicode_literals
import logging
from medusa import tv
from medusa.helper.common import convert_size
from medusa.indexers.utils import mappings
from medusa.logger.adapters.style import BraceAdapter
from medusa.providers.torrent.torrent_provider impo... | gpl-3.0 | 9,160,821,456,185,996,000 | 30.661871 | 93 | 0.513292 | false |
snegovick/dswarm_simulator | localization_2d.py | 1 | 12097 | #!/usr/bin/env python
import random
import math
import collision_detection as cd
from extra import ceiling_camera, radio
import sys
write_pngs = False
if len(sys.argv)>=2:
if sys.argv[1] == "w":
write_pngs = True
bpp = 4
polygon_width = 1000
polygon_height = 500
pixel_per_mm = 1.
obstacle_color = (0,0,0... | gpl-3.0 | -1,457,287,262,825,134,600 | 29.54798 | 178 | 0.559726 | false |
marathoncoder/scrapy | scrapy_py/settings.py | 1 | 3915 | # -*- coding: utf-8 -*-
# Scrapy settings for scrapy_py project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/late... | mit | 3,251,043,709,833,624,000 | 29.680328 | 109 | 0.763559 | false |
jolyonb/edx-platform | common/djangoapps/microsite_configuration/tests/backends/test_filebased.py | 1 | 5844 | """
Test Microsite filebased backends.
"""
from __future__ import absolute_import
import six
import unittest
from mock import patch
from django.test import TestCase
from django.conf import settings
from django.urls import reverse
from microsite_configuration.backends.base import (
BaseMicrositeBackend,
BaseM... | agpl-3.0 | 2,416,578,529,148,771,000 | 32.976744 | 116 | 0.654689 | false |
18F/rdbms-subsetter | dialects/postgres.py | 1 | 1790 | import re
import sqlalchemy as sa
from sqlalchemy import cast
from sqlalchemy.dialects.postgresql import ARRAY, ENUM
def sql_enum_to_list(value):
"""
Interprets PostgreSQL's array syntax in terms of a list
Enums come back from SQL as '{val1,val2,val3}'
"""
if value is None:
return []
... | cc0-1.0 | -7,185,028,292,799,158,000 | 29.338983 | 94 | 0.583799 | false |
opendaylight/netvirt | resources/tools/odltools/odltools/mdsal/tests/test_neutron.py | 1 | 1436 | # Copyright 2018 Red Hat, Inc. and others. 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 appli... | epl-1.0 | -144,366,441,729,684,900 | 36.789474 | 75 | 0.736769 | false |
NYUCCL/psiTurk | psiturk/experiment.py | 1 | 27033 | # -*- coding: utf-8 -*-
""" This module provides the backend Flask server used by psiTurk. """
from __future__ import generator_stop
import os
import sys
import datetime
import logging
from random import choice
import user_agents
import requests
import re
import json
from jinja2 import TemplateNotFound
from collections... | mit | 4,177,859,264,529,798,700 | 33.791506 | 143 | 0.615063 | false |
chemelnucfin/tensorflow | tensorflow/python/data/kernel_tests/iterator_test.py | 1 | 35277 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,985,022,710,140,224,000 | 37.554098 | 80 | 0.638178 | false |
bd808/apache-errors | apache-errors.py | 1 | 8784 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013 Bryan Davis and contributors
"""
Apache error log report generator
"""
import collections
import datetime
import hashlib
import re
import string
import textwrap
ERROR_FORMAT = (
r'\[(?P<datetime>[^\]]+)\] '
r'\[(?P<level>[^\]]+)\] '... | mit | 9,017,693,728,312,999,000 | 26.53605 | 89 | 0.554872 | false |
Mozilla-TWQA/mozMinions | tests/test_kevin.py | 1 | 1799 | #!/usr/bin/python
__author__ = 'shako'
from moz_minions.kevin import MtbfToRaptorMinion
from b2g_util.util.adb_helper import AdbWrapper
testdata = {'name': "mtbf",
'path': "/home/shako/PycharmProjects/mozMinions/conf/test.json",
'output': {'dirpath': 'output',
'file': "... | mpl-2.0 | 6,925,040,400,636,357,000 | 32.314815 | 78 | 0.528071 | false |
GaretJax/csat | csat/acquisition/migrations/0013_auto__add_field_acquisitionsessionconfig_dark_thumbnail.py | 1 | 3962 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'AcquisitionSessionConfig.dark_thumbnail'
db.add_column(u'acquisition_acquisitionsessionconfi... | mit | 7,371,032,151,533,963,000 | 66.169492 | 214 | 0.582786 | false |
Carnon/nlp | TextClassify/textclassify/textdata.py | 1 | 2565 | import os
import codecs
import re
import jieba
import numpy as np
from tqdm import tqdm
from tensorflow.contrib import learn
from sklearn.preprocessing import OneHotEncoder
from sklearn.preprocessing import LabelEncoder
class TextData(object):
def __init__(self,args):
self.args = args
corpus_dir =... | apache-2.0 | 9,036,540,684,069,582,000 | 35.642857 | 114 | 0.617934 | false |
yarikoptic/NiPy-OLD | examples/neurospin/demo_dmtx.py | 1 | 2005 | """ test code to make a design matrix
"""
import numpy as np
from nipy.neurospin.utils.design_matrix import dmtx_light
tr = 1.0
frametimes = np.linspace(0,127*tr,128)
conditions = [0,0,0,1,1,1,3,3,3]
onsets=[30,70,100,10,30,90,30,40,60]
hrf_model = 'Canonical'
motion = np.cumsum(np.random.randn(128,6),0)
add_reg_name... | bsd-3-clause | -18,017,851,309,834,084 | 31.33871 | 84 | 0.686284 | false |
opadron/girder | plugins/gravatar/plugin_tests/gravatar_test.py | 1 | 4046 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# 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 ... | apache-2.0 | 3,932,706,853,364,535,300 | 35.45045 | 79 | 0.551409 | false |
geomagpy/magpy | magpy/lib/format_wic.py | 1 | 41605 | """
MagPy
Auxiliary input filter - WIC/WIK
Supports USB temperature loggers, RCS files, old Caesium data and SG data
Written by Roman Leonhardt June 2012
- contains test and read function, toDo: write function
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicod... | bsd-3-clause | -7,572,581,937,597,458,000 | 35.178261 | 489 | 0.502247 | false |
Jmdebugger/mfbog | core/bak.py | 1 | 1748 | """
def singleton(cls, *args, **kw):
instances = {}
def _singleton():
if cls not in instances:
instances[cls] = cls(*args, **kw)
return instances[cls]
return _singleton
@singleton
"""
"""
url:http://app.50bang.org/?action=session
"""
r_app_key = "0307cafd71... | gpl-3.0 | 3,985,580,398,561,359,400 | 36.428571 | 123 | 0.651985 | false |
ivmech/iviny-scope | lib/xlsxwriter/test/worksheet/test_worksheet08.py | 1 | 3138 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list
from ...worksheet import Worksheet
from ...sharedstring... | gpl-3.0 | 4,406,722,033,837,929,500 | 32.031579 | 171 | 0.405035 | false |
loafbaker/django_matchmaker | likes/models.py | 1 | 1024 | from django.db import models
from django.conf import settings
# Create your models here.
User = settings.AUTH_USER_MODEL
class UserLikeManager(models.Manager):
def get_all_mutual_likes(self, user, number):
try:
qs = user.liker.liked_users.all().order_by('?')
except:
return []
mutual_users = []
for oth... | mit | 3,469,012,237,106,290,700 | 22.272727 | 83 | 0.698242 | false |
googleinterns/step51-2020 | hangout_bot/clientserver.py | 1 | 14176 | from google.cloud import datastore
from campaigndata import CampaignData
from activeuser import *
from constant import *
import requests
import json as json_module
# [Datastore Interaction Functions]
def get_user_key(user_id):
return datastore.Client().key('ActiveUser', user_id)
def get_campaign_key(user_id, cam... | apache-2.0 | -8,992,728,657,377,124,000 | 32.04662 | 95 | 0.669794 | false |
lizardsystem/lizard-history | lizard_history/handlers.py | 1 | 4716 | # (c) Nelen & Schuurmans. GPL licensed, see LICENSE.txt.
from django.utils.encoding import force_unicode
from django.contrib.admin.models import LogEntry
from lizard_history import utils
OBJECT_ATTRIBUTE = '_lizard_history_hash'
REQUEST_ATTRIBUTE = 'lizard_history'
PRE_COPY_KEY = 'pre_copy'
INSTANCE_KEY = 'instance'... | gpl-3.0 | 4,296,670,594,136,508,400 | 29.425806 | 77 | 0.6162 | false |
getnikola/nikola | nikola/plugins/compile/rest/post_list.py | 1 | 4278 | # -*- coding: utf-8 -*-
# Copyright © 2013-2021 Udo Spallek, Roberto Alsina and others.
# 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
#... | mit | 7,635,553,044,823,201,000 | 35.555556 | 75 | 0.631985 | false |
google-research/batch-ppo | agents/tools/streaming_mean.py | 1 | 2386 | # Copyright 2017 The TensorFlow Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | apache-2.0 | -6,516,773,777,547,411,000 | 34.61194 | 77 | 0.695306 | false |
fiee/croisee | tools/make-wordlist.py | 1 | 1717 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Crossword tool - wordlist
Make a wordlist from a text (in utf-8 encoding)
"""
import os, sys, locale
import re
locale.setlocale(locale.LC_ALL, 'de_DE.utf-8') # affects re's \w
reTEX = re.compile(r'\\\w+')
reNONCHARS = re.compile(r'[^\w\s]')
reSINGLECHAR = re.compile(... | bsd-3-clause | 2,071,075,215,946,813,400 | 26.174603 | 77 | 0.559579 | false |
dead10ck/pyinvestigate | tests/test_investigate.py | 1 | 13571 | from pprint import pprint
import pytest
import datetime
def assert_keys_in(json_obj, *keys):
for key in keys:
assert key in json_obj
def test_categorization(inv):
keys = ['status', 'content_categories', 'security_categories']
# Test get with a single domain
domain = 'www.amazon.com'
resp_... | mit | 6,935,360,363,237,886,000 | 28.89207 | 106 | 0.604893 | false |
acutesoftware/AIKIF | scripts/examples/document_AIKIF.py | 1 | 9668 | # document_AIKIF.py written by Duncan Murray 18/4/2014
# All Python Program Statistics
# 26/08/2014 : Files = 110 Bytes = 377221 Lines = 10694 Lines of Code = 8836
# 30/10/2014 : Files = 127 Bytes = 444760 Lines = 12595 Lines of Code = 10409
# 04/03/2015 : Files = 142 Bytes = 572245 Lines = 15947 Li... | gpl-3.0 | -6,544,846,566,864,444,000 | 59.43125 | 157 | 0.696835 | false |
Summerotter/furryyellowpages | config.py | 1 | 1363 | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = os.environ.get('MAIL_USE... | mit | 340,222,236,355,237,000 | 27.395833 | 71 | 0.66471 | false |
squeaky-pl/japronto | src/japronto/app/__init__.py | 1 | 8668 | import signal
import asyncio
import traceback
import socket
import os
import sys
import multiprocessing
import faulthandler
import uvloop
from japronto.router import Router, RouteNotFoundException
from japronto.protocol.cprotocol import Protocol
from japronto.protocol.creaper import Reaper
signames = {
int(v): ... | mit | 1,676,336,301,305,192,000 | 31.833333 | 79 | 0.571297 | false |
google/seqio | seqio/utils_test.py | 1 | 12588 | # Copyright 2021 The SeqIO Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 | 626,725,146,149,544,800 | 33.113821 | 80 | 0.602399 | false |
RickMohr/nyc-trees | src/nyc_trees/apps/users/routes/group.py | 1 | 2018 | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from django.contrib.auth.decorators import login_required
from django_tinsel.decorators import route, render_template, json_api_call
from django_tinsel.utils import decorate as do
fro... | apache-2.0 | -3,097,266,862,894,251,500 | 31.548387 | 79 | 0.662537 | false |
JustinTulloss/harmonize.fm | masterapp/masterapp/controllers/people.py | 1 | 3444 | # Profile controller for viewing a friend's profile
from masterapp.lib.base import *
from masterapp.lib.amazon import *
from masterapp.lib.profile import Profile
from masterapp.lib.fbauth import ensure_fb_session
from masterapp.lib.snippets import get_session_user
from masterapp.model import User, Session, Spotlight, ... | mit | 7,324,781,087,550,527,000 | 37.696629 | 180 | 0.617305 | false |
Brainiq7/Ananse | ananse_dl/extractor/generic.py | 1 | 44347 | # encoding: utf-8
from __future__ import unicode_literals
import os
import re
from .common import InfoExtractor
from .youtube import YoutubeIE
from ..compat import (
compat_urllib_parse,
compat_urlparse,
compat_xml_parse_error,
)
from ..utils import (
determine_ext,
ExtractorError,
float_or_n... | unlicense | 3,751,323,106,039,045,600 | 39.486734 | 256 | 0.485018 | false |
fernandog/Medusa | ext/sqlalchemy/dialects/oracle/base.py | 1 | 65069 | # oracle/base.py
# Copyright (C) 2005-2018 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
.. dialect:: oracle
:name: Oracle
Oracle version 8 through current (11g ... | gpl-3.0 | 3,446,014,310,109,925,000 | 35.494111 | 105 | 0.580614 | false |
eternnoir/VSTools | VSTools/fortify.py | 1 | 3867 | # -*- coding: utf-8 -*-
__author__ = 'eternnoir'
import os
from subprocess import Popen, PIPE
SOURCEANALYZERBIN = 'sourceanalyzer'
def __build_dll_args__(folder_path):
ret = ["-libdirs"]
dll_list = get_all_dll_path(folder_path)
if len(dll_list) == 0:
return []
dll_path_string = ""
for d... | apache-2.0 | -8,182,884,734,083,434,000 | 31.779661 | 110 | 0.551849 | false |
mojaie/kiwiii-server | kiwiii/parser/SpectraMaxM2.py | 1 | 1126 |
import csv
def content_loader(lines):
"""Load datafile from SpectraMax M2.
TODO: multilayer
Args:
lines: lines of input file (or file object)
Returns:
parsed data
"""
bs = 20 # block_size
bo = 1 # block_offset
pr = 16 # plate_rows
ro = 2 # row_offset
pc =... | mit | 6,872,165,025,304,323,000 | 24.590909 | 72 | 0.524867 | false |
rboyes/KerasScripts | CSVTrainer.py | 1 | 5321 | import os
import datetime
import sys
import time
import string
import random
import pandas as pd
import numpy as np
import gc
if(len(sys.argv) < 2):
print('Usage: CSVTrainer.py train.csv validation.csv model.h5 log.txt')
sys.exit(1)
trainingName = sys.argv[1]
validationName = sys.argv[2]
modelName = sys.... | apache-2.0 | -1,475,973,494,510,279,400 | 41.230159 | 169 | 0.75343 | false |
GoogleCloudPlatform/python-docs-samples | monitoring/api/v3/api-client/custom_metric_test.py | 1 | 3859 | #!/usr/bin/env python
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 | 3,644,216,137,752,258,000 | 31.982906 | 78 | 0.705623 | false |
sighingnow/Spider-Utils | get-bing-pic/get_bing_pic.py | 1 | 1193 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'He Tao'
'''
This script is used to fetch the picture of bing's mainpage.
Author: He Tao, hetao@mail.com
Date: December 13, 2014
'''
import http.client
import re
from datetime import date
def get_bing_pic():
conn = http.client.HTTP... | mit | 8,263,063,150,923,643,000 | 31.138889 | 93 | 0.58508 | false |
dreispt/todo_app | TodoClientApp/todo_odoorpc.py | 1 | 1127 | from odoorpc import ODOO
class TodoAPI():
def __init__(self, srv, port, db, user, pwd):
self.api = ODOO(srv, port=port)
self.api.login(db, user, pwd)
self.uid = self.api.env.uid
self.model = 'todo.task'
self.Model = self.api.env[self.model]
def execute(self, method, a... | agpl-3.0 | -8,218,418,337,841,399,000 | 27.175 | 57 | 0.544809 | false |
mgax/babel | babel/support.py | 1 | 22610 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://babel.edgewall.org/wiki/License.
#
# This software consists... | bsd-3-clause | -8,950,337,461,798,965,000 | 35.764228 | 80 | 0.601681 | false |
wilkeraziz/notebooks | MoL_June15/parser.py | 1 | 3853 | from cfg import read_grammar_rules, WCFG
from rule import Rule
from symbol import is_terminal, is_nonterminal, make_symbol
from collections import defaultdict
from item import Item
from agenda import Agenda
def cky_axioms(cfg, sentence):
"""
Axioms for CKY.
Inference rule:
--------------------... | apache-2.0 | 5,860,028,394,567,559,000 | 32.224138 | 101 | 0.568129 | false |
huijunwu/heron | heron/tools/admin/src/python/main.py | 1 | 5233 | # 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... | apache-2.0 | -7,308,860,861,804,705,000 | 27.752747 | 80 | 0.648576 | false |
HPPTECH/hpp_IOSTressTest | Refer/IOST_OLD_SRC/IOST_0.11/IOST_WMain_USB.py | 1 | 6648 | #!/usr/bin/python
#======================================================================
#
# Project : hpp_IOStressTest
# File : IOST_WMain_USB.py
# Date : Oct 20, 2016
# Author : HuuHoang Nguyen
# Contact : hhnguyen@apm.com
# : hoangnh.hpp@gmail.com
# License : MIT License
# Copyright : 2016
# ... | mit | -6,029,821,898,820,558,000 | 39.785276 | 172 | 0.564681 | false |
jolove/monmale | machineLearningLibrary.py | 1 | 14267 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from sklearn.cross_validation import train_test_split
from sklearn import linear_model
from sklearn import mixture
from sklearn import metrics
import logging
import sys, traceback, os
import uuid
import psutil
import getpass
import usefulLibraryFiles # Libreria pr... | apache-2.0 | -6,874,696,732,593,196,000 | 67.399038 | 173 | 0.653451 | false |
NoneGG/aredis | aredis/commands/server.py | 1 | 11696 | import datetime
from aredis.exceptions import RedisError
from aredis.utils import (b, bool_ok,
nativestr, dict_merge,
string_keys_to_dict,
list_keys_to_dict,
pairs_to_dict,
NodeFlag)
def p... | mit | 4,599,996,651,583,950,000 | 32.321937 | 91 | 0.569938 | false |
tfgraph/tfgraph | tfgraph/graph/graph.py | 1 | 12058 | import numpy as np
import tensorflow as tf
from tfgraph.utils.callbacks.update_edge_notifier import UpdateEdgeNotifier
from tfgraph.utils.tensorflow_object import TensorFlowObject, TF_type
def __str__(self) -> str:
return str(self.run_tf(self.L_tf))
class Graph(TensorFlowObject, UpdateEdgeNotifier):
""" Graph ... | apache-2.0 | -2,131,818,151,858,642,400 | 34.154519 | 81 | 0.649278 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.