text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
"""
Support and standalone functions for Robust Linear Models
References
----------
PJ Huber. 'Robust Statistics' John Wiley and Sons, Inc., New York, 1981.
R Venables, B Ripley. 'Modern Applied Statistics in S'
Springer, New York, 2002.
"""
import numpy as np
from scipy.stats import norm as Gaussian
import nor... | matthew-brett/draft-statsmodels | scikits/statsmodels/robust/scale.py | Python | bsd-3-clause | 8,314 | [
"Gaussian"
] | 6681ccb044663cb188176764b71bab71c9411816533d395455022f2822924053 |
########################################################################
# $HeadURL$
########################################################################
""" BarGraph represents bar graphs with vertical bars both simple
and stacked.
The DIRAC Graphs package is derived from the GraphTool plotting package o... | andresailer/DIRAC | Core/Utilities/Graphs/BarGraph.py | Python | gpl-3.0 | 6,032 | [
"DIRAC"
] | cf98ce1d87e4041f7c41def9d2e8479872d9fecdf6678edd1e029d244d3fd47a |
#!/usr/bin/env python
#
# cmladvent.py -- CML2 configurator adventure-game front end
# by Eric S. Raymond, <esr@thyrsus.com>
#
# This illustrates how easy it is to wrap a front end around cmlsystem.
# Purely in the interests of science, of course...
#
import sys
if sys.version[0] < '2':
print "Python 2.0 or later ... | freecores/c0or1k | tools/cml2-tools/cmladvent.py | Python | gpl-3.0 | 31,342 | [
"VisIt"
] | 981a93bf261522abcaa91c845781b59c4b13acaa39740c557b7ec5fc8d2375a4 |
import tornado
import logging
import httplib
try:
import simplejson as json
except ImportError:
import json
from octopus.core.framework.wsappframework import WSAppFramework, MainLoopApplication
from octopus.core.framework.webservice import MappingSet
from octopus.core.communication.http import Http400
from oc... | mikrosimage/OpenRenderManagement | src/octopus/core/framework/__init__.py | Python | bsd-3-clause | 3,088 | [
"Octopus"
] | f3a648d0442e2a017f6855e8a43d7a497b97e7cc997e4ab0c8691f6279e16c60 |
#!/usr/bin/env python
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | Aloomaio/googleads-python-lib | examples/adwords/v201809/basic_operations/add_responsive_search_ad.py | Python | apache-2.0 | 3,443 | [
"VisIt"
] | fcd565834332152e6d797ecb14e7f784716ec9fea6be15076e2f1723a8ae6eee |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import os
class Siesta(Package):
"""SIESTA performs electronic structure calculations and ab in... | iulian787/spack | var/spack/repos/builtin/packages/siesta/package.py | Python | lgpl-2.1 | 3,256 | [
"NetCDF",
"SIESTA"
] | 19c44ce26d74de453547b381fbd19e2532b28993855bf3cdcde21d2dbe77d2b0 |
from mayavi import mlab
from simphony_mayavi.tests.testing_utils import DummyEngine
from simphony_mayavi.sources.api import EngineSource
# Comply to SimPhoNy modeling engine API
engine_wrapper = DummyEngine()
# Define EngineSource, choose dataset
src = EngineSource(engine=engine_wrapper,
dataset=... | simphony/simphony-mayavi | examples/enginesource_example.py | Python | bsd-2-clause | 956 | [
"Mayavi"
] | 129a4eb62da2ef9ffeda0ce2e1799b35ca1f3b3c304ce161c9b1d900b7183134 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/web/moviedelete.py | Python | gpl-2.0 | 5,238 | [
"VisIt"
] | f32e71d0d24abf48af5e0f3a7f5b2c2ef9b98199baa92e066f9783e8e8ecca8d |
# -*- coding: utf-8 -*-
import ast
import base64
import csv
import glob
import itertools
import logging
import operator
import datetime
import hashlib
import os
import re
import simplejson
import time
import urllib
import urllib2
import urlparse
import xmlrpclib
import zlib
from xml.etree import ElementTree
from cStri... | thresholdsoftware/asylum-v2.0 | openerp/addons/web/controllers/main.py | Python | agpl-3.0 | 68,928 | [
"VisIt"
] | c32cb01c9e98f6016707be06e1537c5b9a5d9a87e5a98ee9f2b790c112f70c9e |
"""Utility to help with conducting analyses with two-phase sampled data.
Uses calls to the osDesign and survival packages
Example
-------
from quickr import runRscript
matchCols = ['infected', 'sex', 'white', 'black', 'hispanic', 'asian', 'otherrace']
tmpPhaseII = df.loc[(adf['visit_type'] == 'trough') & (df['treat... | agartland/utils | twophase.py | Python | mit | 6,855 | [
"ADF",
"VisIt"
] | 72f2a37ccda17e5f8916895dd8a0140cc3beddbfb3317fc33e420dde7a418e3b |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | gregcaporaso/scikit-bio | skbio/stats/tests/test_subsample.py | Python | bsd-3-clause | 9,052 | [
"scikit-bio"
] | 44c9f5003d26a4f771ee076d025cf35a2b6bfaef699a5ba4169dbac30fa64c2b |
import warnings
import h5py
import numpy as np
class NaNWarning(UserWarning):
pass
def number_nan(array):
if (np.isscalar(array) and np.isreal(array)) or array.dtype.kind in ['i', 'f']:
return np.sum(np.isnan(array))
else:
return 0
def check_for_nans(handle):
"""
Check for NaN... | hyperion-rt/hyperion | hyperion/util/nans.py | Python | bsd-2-clause | 1,768 | [
"VisIt"
] | d0e7387fb21875d836a98f06c248ddc41681cbd08b2331150a8d5f322f3b982f |
<<<<<<< HEAD
<<<<<<< HEAD
import unittest
from test import support
from itertools import *
import weakref
from decimal import Decimal
from fractions import Fraction
import sys
import operator
import random
import copy
import pickle
from functools import reduce
import sys
import struct
maxsize = support.MAX_Py_ssize_t
m... | ArcherSys/ArcherSys | Lib/test/test_itertools.py | Python | mit | 268,007 | [
"GULP"
] | 03868c67e830f860c71f5172719861af07bab1771c208f6cda08b8bab8433490 |
"""
Tabular datatype
"""
import pkg_resources
pkg_resources.require( "bx-python" )
import gzip
import logging
import os
from cgi import escape
from galaxy import util
from galaxy.datatypes import data
from galaxy.datatypes import metadata
from galaxy.datatypes.checkers import is_gzip
from galaxy.datatypes.metadata imp... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/datatypes/tabular.py | Python | gpl-3.0 | 40,766 | [
"Galaxy"
] | 7327d4063a215191d638e9bfd6055e0bcd60d6186e64f1bd668b4fc690271858 |
"""
A number of functions that enhance IDLE on Mac OSX.
"""
import sys
import Tkinter
from os import path
import warnings
def runningAsOSXApp():
warnings.warn("runningAsOSXApp() is deprecated, use isAquaTk()",
DeprecationWarning, stacklevel=2)
return isAquaTk()
def isCarbonAquaTk(roo... | gusai-francelabs/datafari | windows/python/Lib/idlelib/macosxSupport.py | Python | apache-2.0 | 8,123 | [
"VisIt"
] | c9631324f65157b7c5c3b0262c9129e735ab23fcbd5eccc2dc166f66f2f82d5f |
'''
Created on Aug 5, 2014
@author: gearsad
'''
import vtk
from SceneObject import SceneObject
class Sphere(SceneObject):
'''
A template for drawing a sphere.
'''
def __init__(self, renderer):
'''
Initialize the sphere.
'''
# Call the parent constructor
super(... | GearsAD/semisorted_arnerve | sandbox/bot_vis_platform_post3b/scene/Sphere.py | Python | mit | 905 | [
"VTK"
] | 6da7402acd300ae6c925308ce554534e73899f63fa282fcd1d9bc33748a60c97 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | vinodpanicker/scancode-toolkit | src/packagedcode/npm.py | Python | apache-2.0 | 18,481 | [
"VisIt"
] | 278965eb9c42ed39c712aa59f3a05f71224b5e103c397c91b18c9699ce68194e |
'''
A Graph class implementation. The aim for this implementation is
1. To reflect implementation methods in literature as much as possible
3. To have something close to a "classic" object-oriented design
(compared to previous versions)
This implementation can be considered as a compromise between a graph
class design... | coin-or/GiMPy | src/gimpy/graph.py | Python | epl-1.0 | 139,676 | [
"VisIt"
] | 19502b630428144aeae6c3e0ee7331d60f55a9ff49c63f3cefd4d7e036b35fdf |
#ryangc ATSYMBOL mail.med.upenn.edu ryan.g.coleman ATSYMBOL gmail.com
#Ryan G Coleman, Kim Sharp http://crystal.med.upenn.edu
#file contains lots of path primitive methods
import pdb
import geometry
import statistics
import tstdata
def pathLength(path):
'''computes the total length from point to point'''
length ... | ryancoleman/traveldistance | src/paths.py | Python | gpl-2.0 | 11,940 | [
"CRYSTAL"
] | 6a5d8d85deef346f59eb5c3a842bd79f3f900d40848475ddb659264b0461337f |
########################################################################
# $Id$
########################################################################
""" The Notification service provides a toolkit to contact people via email
(eventually SMS etc.) to trigger some actions.
The original motivation for this i... | avedaee/DIRAC | FrameworkSystem/Service/NotificationHandler.py | Python | gpl-3.0 | 9,719 | [
"DIRAC"
] | b4c1f88fda3cd56acb130e550b2d3fa291d4a19e405d7426495988f193b26c7d |
#!/usr/bin/python
# Copyright 2017 SuperDARN Canada
#
# brian.py
# 2018-01-30
# Communicate with all processes to administrate the borealis software
import sys
import os
import time
from datetime import datetime
import threading
import argparse
import zmq
sys.path.append(os.environ["BOREALISPATH"])
if __debug__:
... | SuperDARNCanada/placeholderOS | brian/brian.py | Python | gpl-3.0 | 11,673 | [
"Brian"
] | 74d002365e106bbf8734594e4541e28e45f05c1a5d61ba5bc14699c8b78b6e53 |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation
#
# 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... | Eigenlabs/EigenD | tools/packages/SCons/Taskmaster.py | Python | gpl-3.0 | 39,536 | [
"VisIt"
] | c68a992b1684b28eab1b3d17f04aeb4c26e3b89943a9e4db64f8a43f899a4281 |
#!/usr/bin/env python
## Copyright (C) 2005-2006 Graham I Cummins
## This program is free software; you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free Software
## Foundation; either version 2 of the License, or (at your option) any later version.
##... | gic888/MIEN | parsers/hoc.py | Python | gpl-2.0 | 4,284 | [
"NEURON"
] | 76e5c27a66a6a3549a8bc1ccee0c3a0fd51648862a83dc5e52e9c14d699f2b25 |
"""
==============================================
Generate a left cerebellum volume source space
==============================================
Generate a volume source space of the left cerebellum and plot its vertices
relative to the left cortical surface source space and the freesurfer
segmentation file.
"""
# A... | effigies/mne-python | examples/plot_left_cerebellum_volume_source.py | Python | bsd-3-clause | 3,241 | [
"Mayavi"
] | 1af203ccce95d585b8ec6a2fc719a79df5abaf224efe3b7b39c168ba31dbb692 |
#!/usr/bin/env python3
# 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.
'''Unit tests for grit.tool.android2grd'''
from __future__ import print_function
import os
import sys
if __name__ == '__main__':... | nwjs/chromium.src | tools/grit/grit/tool/android2grd_unittest.py | Python | bsd-3-clause | 7,388 | [
"xTB"
] | 283aa170e3334be3ef43efa60ddc2d7e7076b02961cc527d37ec3598c7c22f65 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import logging
import numpy as np
import itertools
from scipy.spatial import ConvexHull
from pymatgen.analysis.pourbaix.entry import MultiEntry, ion_or_solid_... | matk86/pymatgen | pymatgen/analysis/pourbaix/maker.py | Python | mit | 12,323 | [
"pymatgen"
] | d1f47c28b78653b6ae04b3dd49ca4428f579745452706c8dcbe15561b89b26bc |
"""
Views for user API
"""
from django.shortcuts import redirect
from django.utils import dateparse
from rest_framework import generics, views
from rest_framework.decorators import api_view
from rest_framework.response import Response
from opaque_keys.edx.keys import UsageKey
from opaque_keys import InvalidKeyError
... | ahmadiga/min_edx | lms/djangoapps/mobile_api/users/views.py | Python | agpl-3.0 | 10,566 | [
"VisIt"
] | 13300fa26e4df2389c0fd34b148581d94364dc9658c246603447243a0e69582d |
# django-webs - high level web layer for django
# Copyright (C) 2008-2011 Brian May
#
# 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 l... | brianmay/django-webs | django_webs/__init__.py | Python | gpl-3.0 | 14,652 | [
"Brian"
] | aaeb4fab6b24ccdf7d1343a21a369db908d55464f6461183b4bb3c461ba3f6d6 |
from __future__ import unicode_literals
import json
import nexmo
import pytz
import six
from bs4 import BeautifulSoup
from context_processors import GroupPermWrapper
from datetime import timedelta
from dateutil.relativedelta import relativedelta
from decimal import Decimal
from django.conf import settings
from djang... | pulilab/rapidpro | temba/orgs/tests.py | Python | agpl-3.0 | 148,553 | [
"VisIt"
] | 7523a13c0c07fdb0f5a47b70aee2620cfedaecb9890af0269055925649ece10f |
"""A setuptools based setup module for OWCK
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages #import setup,
#from distutils.core import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long ... | Basvanstein/OWCK | setup.py | Python | gpl-2.0 | 4,112 | [
"Gaussian"
] | 8a84aa10b4fd37e13b6f7e65abbf9cecc816f5b6f51b8da45ccb759ab19022e9 |
import random
import time
from base import BaseBot
from scraping import fleet
class ExpeditionaryBot(BaseBot):
"""Logging functions for the bot"""
def __init__(self, browser, config, planets):
self.fleet_client = fleet.Fleet(browser, config)
super(ExpeditionaryBot, self).__init__(browser, c... | winiciuscota/OG-Bot | ogbot/core/expeditionary.py | Python | mit | 1,916 | [
"Galaxy"
] | ed3eeb353ec592bec5c08795c862c1c2656089f6ad5ae16343f4a70347ebc2f7 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2001-2006 Donald N. Allingham
# Copyright (C) 2008-2009 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publi... | SNoiraud/gramps | gramps/gui/plug/report/_textreportdialog.py | Python | gpl-2.0 | 3,750 | [
"Brian"
] | 484c358802f8abb9ebc597f2c1d4d91f50020efc443458d31ac7acdbf1a38324 |
# -*- coding: utf-8 -*-
# Copyright 2022 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... | googleapis/python-domains | tests/unit/gapic/domains_v1beta1/test_domains.py | Python | apache-2.0 | 186,653 | [
"Octopus"
] | b88248b868303383433a129657c89e6afb8b13a17ce019ed92443410986247ea |
# Copyright (c) 2003-2016 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
"""
generic classes/functions for pyreverse core/extensions
"... | bgris/ODL_bgris | lib/python3.5/site-packages/pylint/pyreverse/utils.py | Python | gpl-3.0 | 5,894 | [
"VisIt"
] | b76ac5a8e7a2df3f32eaebba24fc472d8b0921f06c19476f3cf1e080bda0d355 |
#!/usr/bin/env python
# Script to analyze code and arrange ld sections.
#
# Copyright (C) 2008-2014 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import operator
import sys
# LD script headers/trailers
COMMONHEADER = """
/* DO NOT EDIT! This is an aut... | coolstar/SeaBIOS | scripts/layoutrom.py | Python | gpl-3.0 | 26,642 | [
"VisIt"
] | 68c1237b9adcae476de8de10897aef4f52e0b9aecf445254aea928fb99e120cf |
# -*- coding: utf-8 -*-
#
# define_brunel_3D.py
#
# This file is part of the NEST Instrumentation App.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST Instrumentation App 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 Softwar... | compneuronmbu/NESTConnectionApp | static/examples/define_brunel_3D.py | Python | gpl-2.0 | 5,900 | [
"NEURON"
] | 0bcdc5e4b35d4f5735fe490cd5341db5d97d6cfff56b0590d3213cbc8a977a0c |
__author__ = 'root'
import numpy as np
from enthought.mayavi import mlab
x, y = np.ogrid[0:3000:10j, 9:12:20j]
z = np.exp((8700 * 9.3 + x * y) / (8700 + x))
pl = mlab.surf(x, y, z, warp_scale=2)
mlab.axes(xlabel='x', ylabel='y', zlabel='z')
mlab.outline(pl)
mlab.show()
| SpAiNiOr/mystudy | learning/func.py | Python | apache-2.0 | 272 | [
"Mayavi"
] | fd35c38aab65b28ec90b4fb4831c282b5907aaad1b1bf67f4bc7908d093beec2 |
''' file name : border.py
Description : This sample shows how to add border to an image
This is Python version of this tutorial : http://opencv.itseez.com/doc/tutorials/imgproc/imgtrans/copyMakeBorder/copyMakeBorder.html#copymakebordertutorial
Level : Beginner
Benefits : Learn to use cv2.copyMakeBorder()
Usage : p... | asrob-uc3m/rpc_rpi | src/python/opencv_python_tutorials/Official_Tutorial_Python_Codes/3_imgproc/border.py | Python | gpl-3.0 | 1,187 | [
"VisIt"
] | e9a33b8f0171beee8c820bd2662eabb30897f15ebe626037f2ddf92df72b9fb4 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | lach76/scancode-toolkit | src/extractcode/uncompress.py | Python | apache-2.0 | 4,315 | [
"VisIt"
] | 65391d2cf64594ae1569b88de826e31ed1ffa13935ef507d3e6bd3e7092d1ea9 |
from twisted.internet import defer, reactor
import threading
from twisted.python import threadable
from trellis_cache.eventloop import TwistedEventLoop
from mext.context import State
from mext.reaction.eventloop import EventQueue
from mext.reaction.time import Time
__author__ ="Brian Kirsch <bkirsch@osafoundation.org>... | thehub/hubplus | trellis_cache/reactor_in_thread.py | Python | gpl-3.0 | 3,721 | [
"Brian"
] | 9b2c9ef3078af959c4e818491a044aca1f339913fb19242d81d65b4dd2e35d98 |
from __future__ import division
import cv2
import sys
import numpy as np
from matplotlib import pyplot as plt
from sklearn.mixture import GaussianMixture
from sklearn.mixture import BayesianGaussianMixture
# Parameters
n_components = 1 # Number of gaussian to fit
mhi_duration = 0.99 # Duration of the Motion Interva... | maxmouchet/tb | F4B516/Fall Detection/FallDetection.py | Python | mit | 5,197 | [
"Gaussian"
] | 98cd207679d2dd07f8b5fc0d014906140b5362554313c869190683d9a0810307 |
# Copyright 2010 Google 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 limitation the rights to use, copy, modify, merge, publish, dis-
# trib... | Nexenta/s3-tests | virtualenv/lib/python2.7/site-packages/boto/gs/key.py | Python | mit | 42,702 | [
"VisIt"
] | 009a59fa0d13ed15658b5f876b0b10c0c02f77d92d62751daf91a3ddecfb7989 |
# Define a procedure, is_friend, that takes
# a string as its input, and returns a
# Boolean indicating if the input string
# is the name of a friend. Assume
# I am friends with everyone whose name
# starts with either 'D' or 'N', but no one
# else. You do not need to check for
# lower case 'd' or 'n'
def is_friend(na... | JoseALermaIII/python-tutorials | pythontutorials/Udacity/CS101/Lesson 05 - How to Repeat/Q19-More Friends.py | Python | mit | 533 | [
"MOE"
] | 3302f765ce053e4ae3626f4e861e85579e0662f3174b2dced2bc8168ae26bd63 |
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 04 14:04:54 2015
@author: Kaveh
"""
import sys
import os.path
from Bio.Blast import NCBIWWW
from Bio.Blast import NCBIXML
class GFFBlaster:
def __init__(self , fastaData , gffData):
self.fastaData = fastaData
self.gffData = gffData
self.seqG... | kkarbasi/GFFBlaster | GFFBlaster.py | Python | gpl-2.0 | 4,571 | [
"BLAST"
] | f68792622d287066a82a839babfabacd578f2ff35a624b1b3d435f41dc5754e9 |
"""
Linear dynamical system model for the AP text dataset.
Each document is modeled as a draw from an LDS with
categorical observations.
"""
import os
import gzip
import time
import numpy as np
import re
from sklearn.feature_extraction.text import CountVectorizer
import matplotlib.pyplot as plt
from hips.plotting.la... | HIPS/pgmult | examples/multinomial_lds_2.py | Python | mit | 7,471 | [
"Gaussian"
] | 2e6014040232fb33e6e295d1ffebf38cdb6e1f828da040ed3e0672391cf05206 |
# Copyright (C) 2005-2006 Joe Wreschnig
# Copyright (C) 2006-2007 Lukas Lalinsky
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any la... | quodlibet/mutagen | mutagen/asf/_util.py | Python | gpl-2.0 | 10,756 | [
"CRYSTAL"
] | c90692d7b5fb9d7172021401949a6fbb8165739f4ed830e6a1bb9a1352fcfcc8 |
# Copyright 2016 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... | tensorflow/tensorflow | tensorflow/python/ops/distributions/special_math.py | Python | apache-2.0 | 16,817 | [
"Gaussian"
] | b51d8b46f3b4bfbfb109e0dfda084206ef799229838440683fbcb5c735e34d9c |
# VMware vSphere Python SDK
# Copyright (c) 2008-2014 VMware, 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/licenses/LICENSE-2.0
#
# ... | alsotoes/vsphere-examples | python/.venv/lib/python2.6/site-packages/pyVmomi/VmomiSupport.py | Python | gpl-3.0 | 58,664 | [
"VisIt"
] | 4e63315b0ead6b0f07c42ee95308c0de774f6910aca404e026f4fcabb19cb2dd |
# Author: Suyog Dutt Jain <suyog.jain@aero.iitb.ac.in>
# Prabhu Ramachandran <prabhu_r@users.sf.net>
# Copyright (c) 2008, Enthought, Inc.
# License: BSD Style.
# Standard library imports.
from os.path import abspath
from StringIO import StringIO
import copy
import unittest
# Local imports.
from common impor... | liulion/mayavi | mayavi/tests/test_user_defined.py | Python | bsd-3-clause | 5,310 | [
"Mayavi",
"VTK"
] | 66bb33646517608fe555c91af61b1a151e1fa7bcaa0acc083a0e21b888dce2f5 |
from setuptools import setup, find_packages
with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()
setup(
name='rabdam',
packages=find_packages(),
package_data={'rabdam': ['Subroutines/HTML_stylesheet.css',
'Subroutines/HTML_stylesheet.js']},
... | GarmanGroup/RABDAM | setup.py | Python | lgpl-3.0 | 1,374 | [
"CRYSTAL"
] | 048e87f37a79d9d2825eaa0f02bc1a5b4c395ed554e3213850679f326bbe8b74 |
# -*- coding: utf-8 -*-
'''
Some of the utils used by salt
'''
from __future__ import absolute_import
# Import python libs
import copy
import collections
import datetime
import distutils.version # pylint: disable=E0611
import fnmatch
import hashlib
import imp
import inspect
import json
import logging
import os
import... | MadeiraCloud/salt | sources/salt/utils/__init__.py | Python | apache-2.0 | 60,399 | [
"VisIt"
] | 7df4cfea05b80a9304e821b334bdc96fa96fa2469531caa5530b728711cb5e5c |
"""
Output conversion based on cclib
================================
This module contains functions for parsing computational chemistry program
output files by the cclib library.
.. autosummary::
:toctree:
logfile2yaml
logfile2PESyaml
"""
from yaml import dump, YAMLError
try:
from yaml import CDu... | tschijnmo/FFOMP | FFOMP/ccutils/cclib2yaml.py | Python | mit | 4,383 | [
"cclib"
] | 69d37565d2cd7ee06df8c4915e6755ba618ab003e91c74c39fc64ddebe1f8fa6 |
#! /usr/bin/python
# -*- coding: utf-8 -*-
import copy
import math
import random
import threading
import time
import numpy as np
import PIL
import scipy
import scipy.ndimage as ndi
import skimage
from scipy import linalg
from scipy.ndimage.filters import gaussian_filter
from scipy.ndimage.interpolation import map_coo... | zsdonghao/tensorlayer | tensorlayer/prepro.py | Python | apache-2.0 | 139,169 | [
"Gaussian"
] | 6d16fd15646a5c4abc5b3c056d7dc6fbacdbdef8ec0817145849d65763778c97 |
from moviepy.editor import VideoFileClip
import matplotlib.pyplot as plt
import matplotlib.image as mplimg
import numpy as np
import cv2
blur_ksize = 5 # Gaussian blur kernel size
canny_lthreshold = 50 # Canny edge detection low threshold
canny_hthreshold = 150 # Canny edge detection high threshold
# Hough transfo... | framefreeze/HangDriver | lane_detection/lanedetection.py | Python | mit | 5,840 | [
"Gaussian"
] | f4679db0c62bbdb000b19ae24e958e6141e4980e07fb4fb93b8a682674d17203 |
"""Numpy h-conv"""
import os
import sys
import time
import numpy as np
from matplotlib import pyplot as plt
def visualize_weights():
"""View the random weights generated from the prior"""
ksize = 3
n_channels = 1
max_order = 1
stddev = 0.4
n_rings = None
phase = True
name = 'test'
x = n... | deworrall92/harmonicConvolutions | deprecated/numpy_hconv.py | Python | mit | 5,142 | [
"Gaussian"
] | b6f426d65bc6b3691354aa5ae44cabcfd158d50aa0fcd8c6965e70b5ac903225 |
# Import the necessary modules
from Numeric import *
from Asap import ListOfAtoms, EMT, kB, femtosecond
from Asap.Dynamics.Langevin import Langevin
from Asap.Trajectories.NetCDFTrajectory import NetCDFTrajectory
# Make the positions
Z = 29 # Copper
latconst = 3.61 # Lattice constant of copper
N = 5
pos =... | auag92/n2dm | Asap-3.8.4/doc/manual/MD_Cluster.py | Python | mit | 1,357 | [
"NetCDF"
] | b4ee4b7a307358e8a665b06c8480d9bde4a33affd20047a35bc65f8f34b07553 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
This module defines the classes relating to 3D lattices.
"""
__author__ = "Shyue Ping Ong, Michael Kocher"
__copyright__ = "Copyright 2011, The Materials... | sonium0/pymatgen | pymatgen/core/lattice.py | Python | mit | 39,740 | [
"ABINIT",
"CRYSTAL",
"pymatgen"
] | bd9202ad752774166022e52b39ae7269285dad53b763d8fe9774764e1fc7a513 |
# armor/analysis.py
#
# the basic entry point / user front module of the package armor
# 16-3-2013
"""
== USE ==
e.g. for installation on usb drive "KINGSTON":
cd /media/KINGSTON/ARMOR/2013/python
python
from armor import pattern
from armor import analysis
dbz = pattern.DBZ
a = dbz('20120612.0200')
b = dbz('2012061... | yaukwankiu/armor | analysis.py | Python | cc0-1.0 | 34,740 | [
"Gaussian"
] | e64813244ebb50d6947d808641bbebcc62c7b9eeed9039a4e4bdf4c27aa4e83c |
#!/usr/bin/python
import os, sys
import cPickle
import argparse
import copy
import glob
import array
import gzip
import zlib
import base64
from subprocess import call
import multiprocessing
from multiprocessing import Pool, Queue
HAS_IMG = True
try:
import numpy as NP
from matplotlib import pyplot as PLT
... | sauloal/introgressionbrowser | vcfmerger/old/vcf_walk_old.py | Python | mit | 48,820 | [
"Bioconductor"
] | 053a45633f07ed88f18ecf8958aac62d28cb90ba57c5dd3a134231d6af08b3db |
########################################################################
# $HeadURL $
# File: OperationTests.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2012/08/14 14:30:20
########################################################################
""" :mod: OperationTests
====================
.. module:... | sposs/DIRAC | RequestManagementSystem/test/OperationTests.py | Python | gpl-3.0 | 9,088 | [
"DIRAC"
] | 7c71b7be80e0f5093cc16df5b09aa5480622818aabeff766448cab7137c968b0 |
import sys
import argparse
import itertools
import warnings
import traceback
import os.path
import random
import HTSeq
class UnknownChrom(Exception):
pass
def invert_strand(iv):
iv2 = iv.copy()
if iv2.strand == "+":
iv2.strand = "-"
elif iv2.strand == "-":
iv2.strand = "+"
else:... | simon-anders/htseq | python2/HTSeq/scripts/count.py | Python | gpl-3.0 | 20,921 | [
"HTSeq"
] | 9867981c81d6fb8a025228ce37fde6fd116bc62c93f302c8e7d9d40dd1f4b681 |
# This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | eunchong/build | third_party/buildbot_8_4p1/buildbot/status/web/waterfall.py | Python | bsd-3-clause | 33,500 | [
"VisIt"
] | 234f68c358f88c0c8b3094e98a3ad21fb929776eed2dceb96e22c857abe88351 |
#!/usr/bin/env python
# This example demonstrates the conversion of point data to cell data.
# The conversion is necessary because we want to threshold data based
# on cell scalar values.
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Read some data with point data a... | hlzz/dotfiles | graphics/VTK-7.0.0/Examples/DataManipulation/Python/pointToCellData.py | Python | bsd-3-clause | 3,548 | [
"VTK"
] | dbe0be55f7147ff22225efdd27b9beb6485fb095f762015e0e644bad3c19238e |
from gpaw.transport.analysor import Transport_Plotter
import numpy as np
from pylab import *
import sys
from ase.data import chemical_symbols
if '*' in sys.argv[1]:
fd=0
bias_step = sys.argv[1].split('*')[0]
else:
fd=1
bias_step = sys.argv[1]
orbital_type = None
plotter = Transport_Plotter(fd)
plotter.... | qsnake/gpaw | doc/documentation/transport/transport_analysis_scripts/pdos.py | Python | gpl-3.0 | 2,808 | [
"ASE",
"GPAW"
] | 497ac60c1810a18a8bff57ca7a5a1edb0a8fd1dbd6a83b5c9d9b6e344101ae1a |
# -*- coding: utf-8 -*-
"""
pbm_ImageAnalysis is an analysis module for ACQ4.
This module provides:
1. Bleaching correction of image stacks
2. Normalization of image stacks
3. ROI's on Z-stacks (or T-stacks), including saving and retrieving the ROI files
(the format is the same as in PyImageAnalysis... | tropp/acq4 | acq4/analysis/modules/pbm_ImageAnalysis/pbm_ImageAnalysis.py | Python | mit | 145,986 | [
"Gaussian"
] | 3613571c88bd948cd6b974db2b0fb4903a795355280bf2c7fb2c4502c7df0f7c |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | BackupTheBerlios/espressopp | src/VerletListTriple.py | Python | gpl-3.0 | 3,620 | [
"ESPResSo"
] | 2b76d958c1288b22356ce369a7b975ce888b7ca996b8fdfb36bbe553381828e9 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from lxml.objectify import fromstring as object_from_string
from urllib import urlencode
import oauth2 as oauth
import requests
import time
import urlparse
class GoodreadsException(Exception):
pass
class Bunch:
def __init__(self, **kwds):
self.__dict__... | PSpeiser/python-goodreads | goodreads/goodreads.py | Python | bsd-3-clause | 41,823 | [
"Brian"
] | 165e128a6a1d05b8675f2837ef39162f1f148f3758f7f5530862d010dcb548e4 |
'''
(c) University of Liverpool 2019
All rights reserved.
@author: neilswainston
'''
# pylint: disable=invalid-name
# pylint: disable=ungrouped-imports
import math
import random
import matplotlib
from numpy import dot
import matplotlib.pyplot as plt
def step_function(x):
'''step_function.'''
return 1 if x... | neilswainston/synbiochem-learn | liv_learn/legacy/study/neural_networks.py | Python | mit | 6,296 | [
"NEURON"
] | 5051a76d7ac12432a60447016c8fc7a271f7e3a71981aa8a791e36eeea14f727 |
#
# Copyright (C) 2003 Greg Landrum and Rational Discovery LLC
#
""" defines class _DbResultSet_ for lazy interactions with Db query results
**Note**
this uses the Python iterator interface, so you'll need python 2.2 or above.
"""
from __future__ import print_function
import sys
from rdkit.Dbase import DbInfo
... | rvianello/rdkit | rdkit/Dbase/DbResultSet.py | Python | bsd-3-clause | 6,129 | [
"RDKit"
] | adb28c536b89620e1d4b50b4d6da6c73d1c28ea839ef8457c5249ed77f572a3e |
from django.core.exceptions import ValidationError
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy
from keystoneclient.exceptions import Conflict
from horizon import exceptions
from horizon import forms
from horizo... | Crystal-SDS/dashboard | crystal_dashboard/dashboards/crystal/filters/filters/tables.py | Python | gpl-3.0 | 9,070 | [
"CRYSTAL"
] | a9eb158b1eeae1228c0dc9d51b9c5a32177942e26b7f57bf610389e2de135f61 |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | Kleptobismol/scikit-bio | skbio/stats/distance/_permanova.py | Python | bsd-3-clause | 9,196 | [
"scikit-bio"
] | 8b363139f4ded979661a28fa143166c163b8924a4ba123c61dc42ae63a496964 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Corinne Maufrais
# Institut Pasteur, Centre d'informatique pour les biologistes
# maufrais@pasteur.fr
#
# version 2.1
import os
import sys
import argparse
import pickle
import BlastParser
class MappingError:
def __init__(self, err):
self.err = err
d... | C3BI-pasteur-fr/taxo_pack | src/writeHSPsubject.py | Python | gpl-3.0 | 41,389 | [
"BLAST"
] | ff6606f34a65f6a2b5548a2a90917d6feb66046a180052c0ee5a4c717e4481a5 |
from ase.io.espresso import read_espresso_in
from ase.dft.kpoints import ibz_points
from ase.dft.kpoints import get_bandpath
xtal = read_espresso_in("x.scf.in")
ip = ibz_points["cubic"]
points = [ "Gamma", "X", "M", "Gamma"]
path = [ip[p] for p in points]
print(xtal.cell)
kpts, x, X = get_bandpath(path,
... | addman2/KvantSim | Beamer/kpath.py | Python | mit | 427 | [
"ASE",
"ESPResSo"
] | 415b901424679b484c888064e2067e7fe512aba4af232f6b21ad2915e1cbd078 |
"""
Methods related to aligning reads.
This module was created because of a circular import issue with celery.
...
File "/home/glebk/Projects/churchlab/genome-designer-v2/genome_designer/pipeline/read_alignment.py", line 9, in <module>
from main.models import clean_filesystem_location
File "/home/glebk/Proje... | woodymit/millstone_accidental_source | genome_designer/pipeline/read_alignment_util.py | Python | mit | 2,409 | [
"BWA"
] | 58992c7e1413d31773e46ef7ab76046d987b2e00b80f5bcd16cc13d5af3dc0b3 |
#!/usr/bin/env python3
from future.utils import iteritems
from past.builtins import cmp
from functools import cmp_to_key
import http.server
import base64
import io
import json
import threading
import time
import hashlib
import os
import sys
from future.moves.urllib.parse import parse_qs
from decimal import Decimal
fro... | JoinMarket-Org/joinmarket-clientserver | scripts/obwatch/ob-watcher.py | Python | gpl-3.0 | 36,016 | [
"VisIt"
] | d522e8eb07a9ebf622ffd62f704a2a78c99dfdda5aff7eb4cb62de6ba2593677 |
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import os
import pytest
from django.test import override_settings
... | shoopio/shoop | shuup_tests/browser/admin/test_snippet_injection.py | Python | agpl-3.0 | 2,989 | [
"VisIt"
] | c353996c5444592d85c39cea8a656bff367ca0bb385f88ed3c9eb652f702814b |
"""
Cards used in the Tutorial missions
"""
from ..utils import *
##
# Hero Powers
# Shotgun Blast
class TU4d_003:
play = Damage(TARGET, 1)
# Flames of Azzinoth
class TU4e_002:
play = Summon(CONTROLLER, "TU4e_002t") * 2
##
# Minions
# Barrel (Unused)
class TU4c_003:
deathrattle = Summon(OPPONENT, "TU4c_005")... | butozerca/fireplace | fireplace/cards/tutorial/all.py | Python | agpl-3.0 | 1,025 | [
"BLAST"
] | 35294bef03725af494391c3ef111f217d41b9ab0ac2c73b281659b8de7f98e4c |
# This file is part of turbulucid
# (c) 2018 Timofey Mukha
# The code is released under the GNU GPL Version 3 licence.
# See LICENCE.txt and the Legal section in the README for more information
from __future__ import print_function
from __future__ import division
import pytest
from os import path
import vtk
import tur... | timofeymukha/turbulucid | tests/core/test_data_extraction.py | Python | gpl-3.0 | 920 | [
"VTK"
] | a39088ea61f3331326a57a3d8f6280b5da52a21149a936b3992aeb99f37eb792 |
#!/usr/bin/python -u
import os, sys, fnmatch
import common
# do a basic check to see if pylint is even installed
try:
import pylint
from pylint.__pkginfo__ import version as pylint_version
except ImportError:
print "Unable to import pylint, it may need to be installed"
sys.exit(1)
major, minor, relea... | wuzhy/autotest | utils/run_pylint.py | Python | gpl-2.0 | 3,097 | [
"VisIt"
] | 5ba211340730aed84c354851398107db128da11fa23eee3279a3f992b94a1bf3 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
#
# Copyright (C) 2017 Lenovo, Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Licens... | hryamzik/ansible | lib/ansible/modules/network/cnos/cnos_interface.py | Python | gpl-3.0 | 24,758 | [
"VisIt"
] | 561f239f50a46f0b533daa41b0f06a19602ef0dfab55b8f3dfa058f21e6656aa |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
# ... | SKIRT/PTS | magic/tests/Homogenize/config.py | Python | agpl-3.0 | 909 | [
"Galaxy"
] | 230e5623de0446268b9029f3c65d8a71e361f8b406ad742005843e49a0347077 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
import subp... | harterj/moose | python/TestHarness/tests/test_LongestJobs.py | Python | lgpl-2.1 | 1,520 | [
"MOOSE"
] | b462fb04831fb52090df94c773933d502b1b91ac6f279d6c73fddf764e6f2575 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 1998-2014 by Paweł T. Jochym <pawel.jochym@ifj.edu.pl>
#
# qe-util 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 Lic... | jochym/qe-util | qeutil/writers.py | Python | gpl-3.0 | 17,893 | [
"ASE",
"CRYSTAL",
"ESPResSo"
] | 776cb30757680d3eaac949ed29dab38522f22d4b44f381e1e99e41796f31f649 |
""" The gateway service is used for forwarding service calls to the appropriate services.
For this to be used, the following CS option is required::
DIRAC
{
Gateways
{
my.site.org = dips://thisIsAn.url.org:9159/Framework/Gateway
}
}
At the same time, this s... | fstagni/DIRAC | Core/DISET/private/GatewayService.py | Python | gpl-3.0 | 19,629 | [
"DIRAC"
] | 533be33f27a191cc58fa9ba06f41da3b1acb779321a161fbf93cd81544d69cc0 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2022 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | psi4/psi4 | psi4/driver/psifiles.py | Python | lgpl-3.0 | 10,284 | [
"Psi4"
] | adc137ba78f573527a41843848f4c5af475c1d35d6a996da0ee5b4ce5ebd071d |
from __future__ import division
from xml.etree.ElementTree import Element, SubElement, Comment
from xml.etree import ElementTree
from xml.dom import minidom
import numpy as np
import logging
import os
import re
import units
__author__ = "Maxim Ivanov"
__email__ = "maxim.ivanov@marquette.edu"
logger = logging.getLogg... | maxivanoff/fftoolbox | parser.py | Python | gpl-2.0 | 30,644 | [
"Amber",
"Gaussian"
] | af0f939e10bc9d9ff96dc8b996a41ae0948ce531a12e4df77885a278a927e054 |
"""
Python 3.4 HTML5 entity unescaping for all! Based on https://hg.python.org/cpython/file/500d3d6f22ff/Lib/html/__init__.py
"""
import sys
import re as _re
__all__ = ['_unescape']
_html5 = {
'Aacute': u'\xc1',
'aacute': u'\xe1',
'Aacute;': u'\xc1',
'aacute;': u'\xe1',
'Abreve;': u'\u0102',
... | lucidlylogicole/scope | site_pkg/commonmark/entitytrans.py | Python | gpl-3.0 | 63,758 | [
"Bowtie"
] | 64ce94af036d7029ad076fdefb9118ac2955a18b257ceacbb41b818513b656b1 |
""" Written by Jim Anastassiou - Sensorica www.sensorica.co
Sample python script that publishes the temperature at Sensorica lab
from a Waterproof DS18B20 Digital temperature sensor connected to a Raspberry Pi
to a MQTT broker running at test.mosquitto.org under the topic temp/random
Run script and visit http://test... | Sensorica/Sensor-Network | Raspberry_Pi/tests/labtemp.py | Python | cc0-1.0 | 1,293 | [
"VisIt"
] | 46680a352282babfa2bb0a384ca952ff42cb84f9bea245ca1a1fa3b82d21507d |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2021 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | jturney/psi4 | psi4/driver/procrouting/solvent/efp.py | Python | lgpl-3.0 | 6,014 | [
"Psi4"
] | 676ac94ab1ae2ca9be8d1817dc77bdda7ea3411a68d4b9eb7e4b65ba2cfc4202 |
#! /usr/bin/python
# A simple Python command line tool to control an MCP23017 I2C IO Expander
# Traffic Light sequencer
# Bob Rathbone www.bobrathbone.com
# Adapted from code by Nathan Chantrell http://nathan.chantrell.net
# GNU GPL V3
# SK Pang Electronics June 2012
import smbus
import sys
import getopt
import ti... | bobrathbone/pischools | i2c/i2cPedestrianLights.py | Python | gpl-3.0 | 1,659 | [
"Amber"
] | 5af70ceb306a87dff009675e81d8cd7985ca4c5bdc6321bc9746c751b2f3ca42 |
# $Id$
#
# Created by Greg Landrum, July 2008
#
from rdkit import RDConfig
import os, sys
import unittest
from rdkit import DataStructs, Chem
from rdkit.Avalon import pyAvalonTools
struchk_conf_path = os.path.join(RDConfig.RDDataDir, 'struchk', '')
struchk_log_path = ''
STRUCHK_INIT = '''-tm
-ta %(struchk_conf_path)s... | greglandrum/rdkit | External/AvalonTools/Wrap/testAvalonTools.py | Python | bsd-3-clause | 14,121 | [
"RDKit"
] | 815be145bd08c828d17a251cfdc82d4b4d3f79ef6c0bdea63e385cfff58e2405 |
#########################################################################################
# Condor.py
# 10.11.2014
# Author: A.T.
#########################################################################################
""" Condor.py is a DIRAC independent class representing Condor batch system.
Condor objects are... | Andrew-McNab-UK/DIRAC | Resources/Computing/BatchSystems/Condor.py | Python | gpl-3.0 | 8,194 | [
"DIRAC"
] | 4479088416e198555ffbae66b1f4526fde75aaa239a0dea7e8b5973a82b226c3 |
../../../../share/pyshared/orca/liveregions.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/liveregions.py | Python | gpl-3.0 | 46 | [
"ORCA"
] | cae18157bb795e9b43ea6746eaed94ddfe1be4023b6fad9c0280a474397378d8 |
"""
@name: PyHouse/src/Modules.Core.Utilities._test/test_device_tools.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2015-2018 by D. Brian Kimmel
@license: MIT License
@note: Created on Jun 26, 2015
@Summary:
Passed all 11 tests - DBK - 2018-02-12
"""
__updated__ = '20... | DBrianKimmel/PyHouse | Project/src/Modules/Core/Utilities/_test/test_device_tools.py | Python | mit | 4,647 | [
"Brian"
] | 1c6c5103da8bac3af029b9dcf0f102e8008942cfbed3529db4e89475e871e47c |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon 3 July
The goal of this script is to code the Style Transfer Algorithm
Inspired from https://github.com/cysmith/neural-style-tf/blob/master/neural_style.py
and https://github.com/leongatys/PytorchNeuralStyleTransfer/blob/master/NeuralStyleTransfer.ipy... | nicaogr/Style-Transfer | TransformNet.py | Python | gpl-3.0 | 36,561 | [
"Gaussian"
] | f7d8005217ec9911e334559a0781e5943772dcc00cdc916cef762fcc498bb921 |
# -*- 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 o... | sasha-gitg/python-aiplatform | google/cloud/aiplatform/jobs.py | Python | apache-2.0 | 73,185 | [
"VisIt"
] | 20af8e9804ac8c72a52f3380493be8058a919f1d8fb1f9c962ac3e317226f654 |
"""
The Job Agent class instantiates a CE that acts as a client to a
compute resource and also to the WMS.
The Job Agent constructs a classAd based on the local resource description in the CS
and the current resource status that is used for matching.
"""
__RCSID__ = "$Id$"
from DIRAC ... | calancha/DIRAC | WorkloadManagementSystem/Agent/JobAgent.py | Python | gpl-3.0 | 26,690 | [
"DIRAC"
] | 8b8e3bb1146f81c66279671f037ab2e9745665ba7294435cc0f698ff34ccab9c |
import numpy as np
import pytest
from scipy import optimize
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_false
from sklearn.utils.testing import assert_true
from sklearn.utils.testing import assert_array_almost_equal
from... | ccauet/scikit-optimize | skopt/learning/gaussian_process/tests/test_gpr.py | Python | bsd-3-clause | 3,320 | [
"Gaussian"
] | 8bdd6d3eb696012c3d6100c3f1b5c073b8435aaf43b40acec4d27943c47f83ad |
#
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
# Copyright 2013-2014 Sebastian Werner
#
"""
**Jasy - Web Tooling Framework**
Jasy is a powerful Python3-based tooling framework.
It makes it easy to manage heavy web projects.
Its main goal is to offer an API which could be used by developers to write... | sebastian-software/jasy | jasy/__init__.py | Python | mit | 993 | [
"VisIt"
] | 0498dfda9648894b2b13b43553e4127bf5bbc49da4901d7ef6a832796b4af7a9 |
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# Self-organizing map
# Copyright (C) 2011 Nicolas P. Rougier
#
# Distributed under the terms of the BSD License.
# -----------------------------------------------------------------------------
import numpy as np
impo... | johnhw/summerschool2016 | unsupervised_image_learning/som.py | Python | mit | 7,256 | [
"Gaussian"
] | 939204c9749a34744c4d482bcb345df15208e89f24142fee0caf9d929cda70e1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.