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 |
|---|---|---|---|---|---|---|---|
#pylint: disable=invalid-name
#! /usr/bin/python
# Convert an acor file into VTK format (specifically a vtp file)
from xml.dom import minidom
def convertToVTU(infile, outpath):
#first need to find some things from the file
datafile = open(infile,'r')
datalist=[]
planelist=[]
npoints = 0
for l... | dymkowsk/mantid | tools/VTKConverter/VTKConvert.py | Python | gpl-3.0 | 5,106 | [
"VTK"
] | 72b25a3a8279f68da4a2ed8217bdf60e027f48b4122c7218527de95fcc291cc7 |
from clang.cindex import Cursor, CursorKind
from ast.namespaces import Namespace
from ast.attributes.annotation import Annotation
class TranslationUnit(object):
""" Represents a processed translation unit
Unlike libclang does, a translation unit is not part of the AST itself
but its container. The... | Manu343726/siplasplas | src/reflection/parser/ast/translationunit.py | Python | mit | 3,730 | [
"VisIt"
] | 771a7c2f8d726dec4b7416aad170ffb4addbd67640149f229f93226e801bf378 |
import numpy as np
import mdtraj as md
import mdtraj.testing
from msmbuilder3 import (AngleVectorizer, DihedralVectorizer, PositionVectorizer,
DistanceVectorizer)
t = None
def setup():
global t
t = md.load(mdtraj.testing.get_fn('frame0.xtc'), top=mdtraj.testing.get_fn('native.pdb'))
... | rmcgibbo/msmbuilder3 | tests/test_vectorizers.py | Python | gpl-3.0 | 1,457 | [
"MDTraj"
] | 93b3e754e11b254579fbf348aff99eadd0cd772b45f1a1f0a6ef8eef0b577206 |
#! /usr/freeware/bin/python
#
# This is dump2trj, a program written by Keir E. Novik to convert
# Lammps position dump files to Amber trajectory files.
#
# Copyright 2000, 2001 Keir E. Novik; all rights reserved.
#
# Modified by Vikas Varshney, U Akron, 5 July 2005, as described in README
#
#========================... | ganzenmg/lammps_current | tools/amber2lmp/dump2trj.py | Python | gpl-2.0 | 8,767 | [
"Amber",
"LAMMPS"
] | 06e0f66101a1c8e33dd81e08255f7a6547632243b527f679d57abb76745269a7 |
#
# Copyright 2016 The BigDL 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 ... | intel-analytics/BigDL | python/orca/src/bigdl/orca/learn/mpi/mpi_runner.py | Python | apache-2.0 | 5,265 | [
"ORCA"
] | d3d283de49d36ae90b8f7ebf249cb74fe98ad5eab45484d42d61698b335baef1 |
import logging
import os
import re
import socket
import sys
import time
from optparse import make_option
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django_extensions.management.technical_response import \
null_technical_500_response
from django_extensio... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/django_extensions/management/commands/runserver_plus.py | Python | agpl-3.0 | 14,020 | [
"VisIt"
] | abcebb9916a5ce9f454b38a0430b592db86c040702e34b72ddb3ed4b90db0af0 |
import pytest
import os
import glob
import unittest
import tempfile
import filecmp
import numpy.testing.utils as nptu
import numpy as np
from fireworks.core.rocket_launcher import rapidfire
from abipy.dynamics.hist import HistFile
from abipy.flowtk.events import DilatmxError
from abiflows.fireworks.workflows.abinit_wo... | gmatteo/abiflows | abiflows/fireworks/integration_tests/itest_relax.py | Python | gpl-2.0 | 10,747 | [
"ABINIT"
] | 4035f512323b1af3861964cfab91249de69a14faed82076c22491d4ad5d0dd25 |
"""
Utilities for ComponentMonitoring features
"""
import datetime
import socket
from DIRAC import S_OK
from DIRAC.FrameworkSystem.Client.ComponentMonitoringClient import ComponentMonitoringClient
from DIRAC.Core.Security.ProxyInfo import getProxyInfo
def monitorInstallation(componentType, system, component, module=... | DIRACGrid/DIRAC | src/DIRAC/FrameworkSystem/Utilities/MonitoringUtilities.py | Python | gpl-3.0 | 3,011 | [
"DIRAC"
] | 155d2d39cd9c7c3185378f54c7e958c41b6dfcf7cffbb22b4b8ffed31ffb0f9f |
#!/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/mobile/timerlist.py | Python | gpl-2.0 | 9,771 | [
"VisIt"
] | 4d0b28bc7f379c642ec4ecb6cfda0339ae6e3c8b9c62392e71eaf3667532801e |
# modified mexican hat wavelet test.py
# spectral analysis for RADAR and WRF patterns
# NO plotting - just saving the results: LOG-response spectra for each sigma and max-LOG response numerical spectra
import os, shutil
import time, datetime
import pickle
import numpy as np
from scipy import signal, ndimage
imp... | yaukwankiu/armor | tests/modifiedMexicanHatTest12_march2014.py | Python | cc0-1.0 | 7,587 | [
"Gaussian"
] | 38912a2ba8c8f81c6c1d4e936e6cd7da78f6e4add24deba7c16c12d11e22b573 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2006-2008 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Softw... | andrebellafronte/stoq | stoqlib/domain/test/test_payment_group.py | Python | gpl-2.0 | 24,283 | [
"VisIt"
] | decebac2a3ce5c47a47539c9b8077fb15781f766ae5a62c1c09aeddd54beca81 |
# proxy module
from __future__ import absolute_import
from mayavi.modules.hyper_streamline import *
| enthought/etsproxy | enthought/mayavi/modules/hyper_streamline.py | Python | bsd-3-clause | 100 | [
"Mayavi"
] | 3040f00ec85d29af0b84c8b4a41d257b48d9aae16bb67a0565b43c4f9a5879f7 |
##
# Copyright 2009-2013 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (htt... | geimer/easybuild-easyblocks | easybuild/easyblocks/n/netcdf.py | Python | gpl-2.0 | 4,985 | [
"NetCDF"
] | 010324fb2b4d7187f877a352649904524bb57afb393961407b14025a61fd0e90 |
# -*- coding: utf-8 -*-
"""
Usage:
search_google [q] [--optional]
search_google [-positional] ...
A command line tool for Google web and image search.
Positional arguments:
q keyword query
-h show this help message and exit
-i show documenta... | rrwen/search_google | search_google/cli.py | Python | mit | 5,007 | [
"VisIt"
] | f0a8e74944b9f0161b50da923793fbf2b62771f56c59b69c56ff770e7087b439 |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... | thica/ORCA-Remote | src/ORCA/App.py | Python | gpl-3.0 | 45,493 | [
"ORCA"
] | 0dd9708c964cc05a88c2653a9f437bc6f45a3ea3046fde58ed6ee7d090a48bc8 |
# -----------------------------------------------------------------------------
# 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/alignment/tests/test_ssw.py | Python | bsd-3-clause | 31,243 | [
"scikit-bio"
] | f063b4dd85d5bcd5e363acf04e00154b1a90549d21171f251c375fab0ad3feb0 |
#!/usr/local/bin/python2.6
###AltAnalyze
#Copyright 2005-2008 J. David Gladstone Institutes, San Francisco California
#Author Nathan Salomonis - nsalomonis@gmail.com
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to... | wuxue/altanalyze | AltAnalyze_LOCAL_6888.py | Python | apache-2.0 | 537,268 | [
"Cytoscape"
] | 4964b808108db784d8846a2db6ab3cb86500cc82f301882a121e9a414f3a2d37 |
#! /bin/python
# $Id$
# -----------------------------------------------------------------------------
# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-14 Bradley M. Bell
#
# CppAD is distributed under multiple licenses. This distribution is under
# the terms of the
# Eclipse Public Licen... | utke1/cppad | bin/replace_html.py | Python | epl-1.0 | 4,616 | [
"VisIt"
] | 735e0c4681c2350ea7a040a5dc16dbd0ac6e629ea5f167990d91e1e4b27c68e5 |
# Orca
#
# Copyright (C) 2010 Joanmarie Diggs
# Copyright (C) 2011-2012 Igalia, S.L.
#
# Author: Joanmarie Diggs <jdiggs@igalia.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; eith... | pvagner/orca | src/orca/scripts/toolkits/WebKitGtk/speech_generator.py | Python | lgpl-2.1 | 7,899 | [
"ORCA"
] | fe7f993a02398be306f09ce6379847401a7913f9e1a278ee604db11b64fa8eed |
#
# This file is based on emoji (https://github.com/kyokomi/emoji).
#
# The MIT License (MIT)
#
# Copyright (c) 2014 kyokomi
#
# 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 restr... | Miserlou/Emo | emo/code.py | Python | mit | 46,810 | [
"Octopus"
] | 44cc93338ce45bc13de682c44bb85a1f9e6f06f9d847b5e6146addcbdca4d547 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import json
import os
import unittest
from monty.json import MontyDecoder
from pymatgen.alchemy.filters import (
ContainsSpecieFilter,
RemoveDuplicatesFilter,
RemoveExistingFilter,
SpecieProx... | gmatteo/pymatgen | pymatgen/alchemy/tests/test_filters.py | Python | mit | 5,104 | [
"pymatgen"
] | 9c106d253ef20e22e8960d36f5e27e23f1b0b584f368b12ddd75c5ccc54b5536 |
# -*- coding=utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from ctypes import c_double, ARRAY
from enum import IntEnum
import numpy as np
from .utils import CxxPointer, ChemfilesError
from .ffi import chfl_cellshape, chfl_vector3d
class CellShape(IntEnum):
"""
Available c... | Luthaf/Chemharp-python | chemfiles/cell.py | Python | mpl-2.0 | 6,172 | [
"Chemfiles"
] | d4128a1a1b38a7473031123b04872561f5b0088706dc5e26e058b56f68742064 |
#! /usr/bin/env python
#coding:utf-8
import sys,os
import random
import time
import tty,termios
MAP_WIDTH = 8
MAP_HEIGHT = 5
AI_GATEKEEPER = True
class _Getch():
def __call__(self):
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
tty.setraw(sys.stdin.fileno())... | bingwang619/Game_GetMessage | GetMessage.py | Python | gpl-2.0 | 24,461 | [
"VisIt"
] | f82771c5c66099ba9e1557cd7d9dc9b096e046bb9ef0755569ba84c873f8e4f9 |
import codecs
import os
from PyQt4.QtCore import Qt
from Code import ControlPosicion
from Code import Gestor
from Code import Jugada
from Code import PGN
from Code import Partida
from Code.QT import DatosNueva
from Code.QT import Iconos
from Code.QT import PantallaGM
from Code.QT import QTUtil
from Code.QT import QTU... | lukasmonk/lucaschess | Code/GestorEntPos.py | Python | gpl-2.0 | 25,129 | [
"SIESTA"
] | eebbd1911585c30364ee99b8fcb00f3e4bfad694698c8b612577029e3552e605 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## 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 Foundati... | andrebellafronte/stoq | stoqlib/gui/test/uitestutils.py | Python | gpl-2.0 | 26,129 | [
"VisIt"
] | be0d4e4049725485ecb4709a78fe6cd764906977ee554d61009e414946b359cd |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# prevent the tk window from showing up then start the event loop
renWin = vtk.vtkRenderWindow()
# create a rendering window and renderer
ren1 = vtk.vtkRenderer()
renWin.AddRenderer(r... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Filters/Modeling/Testing/Python/TestSpherePuzzle.py | Python | gpl-3.0 | 2,239 | [
"VTK"
] | 4b58ef16737b952c16d5d0db3c2dbd63a7dcb89e573acd8167038b516e36de2d |
#
# Copyright (c) 2009-2015, Jack Poulson
# All rights reserved.
#
# This file is part of Elemental and is under the BSD 2-Clause License,
# which can be found in the LICENSE file in the root directory, or at
# http://opensource.org/licenses/BSD-2-Clause
#
import El
import time
m = 2000
n = 4000
numLambdas = 5
... | sg0/Elemental | examples/interface/DS.py | Python | bsd-3-clause | 2,435 | [
"Gaussian"
] | 2fa54809ac5cee28b9c0e8452d52748b19ca3c79ff75b88f80facb07004074f7 |
# -*- coding: utf-8 -*-
import json
from Plugins.Extensions.MediaPortal.plugin import _
from Plugins.Extensions.MediaPortal.resources.imports import *
from Plugins.Extensions.MediaPortal.resources.choiceboxext import ChoiceBoxExt
from Plugins.Extensions.MediaPortal.resources.keyboardext import VirtualKeyBoardExt
from... | n3wb13/OpenNfrGui-5.0-1 | lib/python/Plugins/Extensions/MediaPortal/additions/fun/youtube.py | Python | gpl-2.0 | 53,786 | [
"VisIt"
] | 2075d3f8525dfc103afa111db2cd3b981918a103903ea93a084e56fe51eb70d8 |
"""Common functionality shared across interfaces."""
# Copyright (c) 2016-2017 Andrew Dawson
#
# 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 limitatio... | ajdawson/windspharm | windspharm/_common.py | Python | mit | 4,312 | [
"Gaussian"
] | 48eb8583dc1f43da52ebd89f4876d9a64f4f8234ed04b79c92e44352143a6c4b |
""" Modules will run collectl in playback mode and collect various process
statistics for a given pid's process and process ancestors.
"""
import collections
import csv
import tempfile
from galaxy import util
from ..collectl import stats
import logging
log = logging.getLogger( __name__ )
# Collectl process informat... | ssorgatem/pulsar | galaxy/jobs/metrics/collectl/processes.py | Python | apache-2.0 | 9,204 | [
"Galaxy"
] | e8042e91c73ed012c89bb08b20f043d6207192befe25f9cd5a84a4af9bc8c813 |
"""
Bootstrap Embedding
"""
import time
import os
import numpy as np
import h5py
from pyscf import ao2mo
from frankenstein import molecule, scf
from frankenstein.be.sd import SD
from frankenstein.pyscf_be.pysd import pySD
from frankenstein.optimizer import NRQN
from frankenstein.tools.io_utils import prtvar
def i... | hongzhouye/frankenstein | be/be.py | Python | bsd-3-clause | 25,296 | [
"PySCF"
] | 24fe803c9ec03019df48b89915876815d4ba8f5e66a2c35bd78d51f28b089b1a |
#!/usr/bin/env python
"""Module to generically wrap modules for usage from within Galaxy.
First command line argument is a module, e.g: "translate".
Second command line argument is a file to log any output to.
Further arguments are passed to the named module's main method."""
__author__ = "Tim te Beek"
__copyright__ =... | ODoSE/odose.nl | wrapper.py | Python | mit | 1,997 | [
"Galaxy"
] | 8b1eab58b61122c9261d67d9eb2849c4906c5e29b42388dd54961df44d05da7b |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dosewidget_QtDesign.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_DoseWidget(object):
def setupUi(self, DoseWidget):
... | mgotz/EBT_evaluation | ebttools/gui/dosewidget_ui_qt5.py | Python | mit | 34,994 | [
"Gaussian"
] | 56e3486d986ef26c2f9fffca43f775e7ec0830904673086648dfa0b7bbd07893 |
"""
Package for Gaussian Process Optimization
=========================================
This package provides optimization functionality
for hyperparameters of covariance functions
:py:class:`pygp.covar` given.
"""
# import scipy:
import scipy as SP
import scipy.optimize as OPT
import logging as LG
import pdb
# L... | PMBio/pygp | pygp/optimize/optimize_base.py | Python | gpl-2.0 | 6,442 | [
"Gaussian"
] | ba2dc90b4e777924b1d39a7b0f98bd7332b42f8d5a3228f21a4d46b04b1e0383 |
from __future__ import absolute_import
import torch
import numpy as np
import pandas as pd
import scipy
import os
import copy
from pysurvival import utils
from pysurvival.utils import optimization as opt
from pysurvival.models import BaseModel
from pysurvival.models._svm import _SVMModel
# Available Kernel functions... | square/pysurvival | pysurvival/models/svm.py | Python | apache-2.0 | 15,908 | [
"Gaussian"
] | 6378b5b1d0d76e2cbefd6ed4ba838e019d12ba31a1276e7f998adab24dadb654 |
"""Tools for model-based motion correction
Some more text here.
"""
import os.path as op
import numpy as np
import ipywidgets as wdg
import IPython.display as display
from IPython.display import Image
import matplotlib.pyplot as plt
import nibabel as nib
import dipy.core.gradients as dpg
from dipy.align.metrics impor... | arokem/model_mc | tools.py | Python | bsd-3-clause | 9,697 | [
"Gaussian"
] | 558a70e520aac479dfc57f1e7c0331d077fb881b2f8583731e10c51b3f066e40 |
from ..codes import CodeOutput
import os
import re
import json
class SiestaOutput(CodeOutput):
def __init__(self, outputfile='siesta.out'):
CodeOutput.__init__(self)
self.outputfile = None
self.output_values = None
self.data = None
if os.path.isfile(outputfile):
... | MaterialsDiscovery/PyChemia | pychemia/code/siesta/output.py | Python | mit | 4,168 | [
"SIESTA"
] | 43fbab8fd0ee8bcf6fac3b20d774e82c9883ff07a09e917c86b6b09fe484b7eb |
import collections as coll
import numpy as np
from scipy import ndimage
import warnings
from ..util import img_as_float
from ..color import guess_spatial_dimensions
__all__ = ['gaussian_filter']
def gaussian_filter(image, sigma, output=None, mode='nearest', cval=0,
multichannel=None):
"""
... | chintak/scikit-image | skimage/filter/_gaussian.py | Python | bsd-3-clause | 4,008 | [
"Gaussian"
] | c9701e2b7b27109afed217a916878903a19573ed74f14ddc09b1e8c8e10e7fc4 |
# -*- coding: utf-8 -*-
# Author: Braden Czapla (2019)
# Last modified: 2019-04-29
# Original data: Kaiser et al. 1962, https://doi.org/10.1103/PhysRev.127.1950
from __future__ import absolute_import, division, print_function
import numpy as np
import matplotlib.pyplot as plt
#########################################... | polyanskiy/refractiveindex.info-scripts | scripts/Kaiser 1962 - BaF2.py | Python | gpl-3.0 | 3,299 | [
"CRYSTAL"
] | a4b6bfbbe8d6691f3d106412902a477887df85318ebf571eedb3d7c047d9f5ec |
"""
snowbird
--------
Tools for migrating data
"""
from setuptools import setup
setup(
name='snowbird',
version='0.1',
url='http://github.com/unbracketed/snowbird/',
license='BSD',
author='Brian Luft',
packages=['snowbird'],
#namespace_packages=['snowbird'],
zip_safe=False,
platfo... | unbracketed/snowbird | setup.py | Python | mit | 797 | [
"Brian"
] | 841a5667f539367b5f616bbba316cedce7c2c1a14ab258d0f3d7263776e2fff3 |
# okay, let's try outsome very basic stuff here to see if it works
import numpy as np
import matplotlib.pyplot as plt
#first let's draw points from standard bivariate normal
mu = [0,0]
sigma = [[1,0],[0,1]]
samples = np.random.multivariate_normal(mu, sigma, 1000000)
#now we need to plot said samples on 2d graph
prin... | Bmillidgework/Misc-Maths | Misc/dimension_correlation.py | Python | mit | 5,888 | [
"Gaussian"
] | 4a4402fd9751e537506abfdb9c98a7567ed559cdebcacc42764a36bdfc579952 |
#!/usr/bin/python
# coding:utf-8
'''下载模块用于从url队列中取出链接进行下载,并在下载完成后将html页面封装为内部
数据格式放入html队列中以等待解析线程解析,
下载模块与解析模块之间的关系:下载模块和解析模块互为生产者和消费者,下载模块
从url队列取出数据进行消费,也生产html页面并放入html队列。解析模块从html队列
取出数据消费,也生成url链接并放入url队列
由于功能的划分,代码中将下载模块和解析模块独立分开,它们之间的接口仅为url队列
和html队列两个容器。
'''
import sys
import ... | zhjl120/ZSpider | src/downloader.py | Python | mit | 5,793 | [
"VisIt"
] | fd485a18bfb8b79b8d7b7ec9e09ca94ec57bbade79cc95dd8e0629a7efad9bb7 |
################################################################################
# Copyright (C) 2011-2013 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
"""
General numerical functions and methods.
"""
import functool... | dungvtdev/upsbayescpm | bayespy/utils/misc.py | Python | mit | 42,257 | [
"Gaussian"
] | 160c9637b3b0244c2e2d35dbced07ab4db2bc9ff3d18c8b14bcb65543e21241e |
from tools.load import LoadMatrix
from sg import sg
lm=LoadMatrix()
traindat=lm.load_numbers('../data/fm_train_real.dat')
testdat=lm.load_numbers('../data/fm_test_real.dat')
trainlabel=lm.load_labels('../data/label_train_regression.dat')
parameter_list=[[traindat,testdat,trainlabel,10,2.1,1.2,1e-5,1e-2],
[traindat,t... | AzamYahya/shogun | examples/undocumented/python_static/regression_libsvr.py | Python | gpl-3.0 | 913 | [
"Gaussian"
] | a33676b5f51e8cc05216b2d582bd5ac631589054f456988816e8235204f90c49 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""This script runs the regression framework in the cclib-data repostiory."""
from __future__ import print_funct... | gaursagar/cclib | test/run_regressions.py | Python | bsd-3-clause | 904 | [
"cclib"
] | d4dff3e34cbb65ed55b44b433477a3c4055b21a043c8f03229ad12ef144c0117 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Optimization utilities.
"""
| davidwaroquiers/pymatgen | pymatgen/optimization/__init__.py | Python | mit | 142 | [
"pymatgen"
] | c2805a317f126b1c6643fce0873bc394778c6dfebe31ef3a51622fa2cbb9a5ca |
# This program implements a distributed version of BWA, using Makeflow and WorkQueue
# Author: Olivia Choudhury
# Date: 09/03/2013
import optparse, os, sys, tempfile, shutil, stat
class PassThroughParser(optparse.OptionParser):
def _process_args(self, largs, rargs, values):
while rargs:
try... | isanwong/cctools | galaxy/makeflow_bwa_wrapper.py | Python | gpl-2.0 | 2,780 | [
"BWA"
] | 58c28275b9beb5e2e6e26770d20cf69efbe4ef5246ee61203848ebe8d281180d |
# 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)
class PyGpytorch(PythonPackage):
"""GPyTorch is a Gaussian process library implemented using PyTorch.
GPyTorch is... | iulian787/spack | var/spack/repos/builtin/packages/py-gpytorch/package.py | Python | lgpl-2.1 | 1,222 | [
"Gaussian"
] | 6ce0fe7fbc7cb9d7af18943f9b5fac897ece4883350b9de850a9d6f32d6167ad |
from __future__ import annotations
import random
from unittest import mock
from cctbx import sgtbx
from dxtbx.model import Crystal, Experiment, ExperimentList
from scitbx import matrix
from dials.algorithms.clustering import observers
from dials.algorithms.clustering.unit_cell import UnitCellCluster
def test_UnitC... | dials/dials | tests/algorithms/clustering/test_observers.py | Python | bsd-3-clause | 1,766 | [
"CRYSTAL"
] | 2fa2895a047302dda16220f8b3df9f495cc36d31816346c6bba4dc52817ba8d9 |
# -*- coding: utf-8 -*-
"""
Unit tests for instructor.api methods.
"""
# pylint: disable=E1111
import unittest
import json
import requests
import datetime
from urllib import quote
from django.test import TestCase
from nose.tools import raises
from mock import Mock, patch
from django.conf import settings
from django.tes... | morenopc/edx-platform | lms/djangoapps/instructor/tests/test_api.py | Python | agpl-3.0 | 91,167 | [
"VisIt"
] | 252c60bd5036e0e728701c835c3a74f56389e8061f397e8587c470de487ccd36 |
import datetime
import requests
from requests_oauthlib import OAuth1
from oauthlib.oauth1 import SIGNATURE_RSA, SIGNATURE_TYPE_AUTH_HEADER
from urlparse import parse_qs
from urllib import urlencode
from .constants import (REQUEST_TOKEN_URL, AUTHORIZE_URL, ACCESS_TOKEN_URL, XERO_API_URL,
PARTNER... | skillflip/pyxero | xero/auth.py | Python | bsd-3-clause | 18,704 | [
"VisIt"
] | 63d29966c7d315dcaf84aab9ee819e7a819adeac171c4fab79ef53c0c58c3614 |
#encoding:utf-8
""" unit tests.
Data required for these tests is the example project my_project mentioned in the tutorial.
"""
# tests to do:
# mTAUX[X,0] should yield ValueError: Slice axis argument X not in grid (time, yu)
# when mTAUX.grid is (time, yu)
import inspect
import copy
import unittest
import os
impo... | willo12/spacegrids | tests/tests.py | Python | bsd-3-clause | 100,961 | [
"Gaussian"
] | 450a5078e6097a37de22257f85bd397a93c7cccac09f22cf70bc33a18954aaeb |
# Copyright (C) 2013,2014 The ESPResSo project
# Copyright (C) 2012 Olaf Lenz
#
# This file is part of ESPResSo.
#
# ESPResSo 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... | olenz/espresso | doc/doxygen/gen_doxyconfig.py | Python | gpl-3.0 | 1,862 | [
"ESPResSo"
] | 24c385e97a22ebf0a32a59f05258389c3f4bdfea0eb87568edca6dd45edac34d |
#! /usr/bin/env python
import random,sys
import re
import math
import collections
import numpy as np
import time
import operator
from scipy.io import mmread, mmwrite
from random import randint
from sklearn import cross_validation
from sklearn import linear_model
from sklearn.grid_search import GridSearchCV
from sklearn... | Goodideax/CS249 | predict_balance__5000.py | Python | bsd-3-clause | 15,523 | [
"Gaussian"
] | 08e42986d2158bfe74942e3c74265b8bd7c5e99a17694cd26084bf580a1fceda |
import lmfit
import numpy as np
from numpy.linalg import inv
import scipy as sp
import itertools
import matplotlib as mpl
import cmath
from collections import OrderedDict, defaultdict
from pycqed.utilities import timer as tm_mod
from sklearn.mixture import GaussianMixture as GM
from sklearn.tree import DecisionTreeCla... | QudevETH/PycQED_py3 | pycqed/analysis_v2/timedomain_analysis.py | Python | mit | 499,531 | [
"Gaussian"
] | 654821a744bfba112b3b320884181fa411834ba5b53fd6a99fad06402d873716 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | pseudovirtual/earnings-calendar | gcal-boilerplate/sample.py | Python | mit | 3,485 | [
"VisIt"
] | a4b13835e05c2d7823f9ae9e9334d79b678f76a0797f4575ef9fbe0d183a9629 |
# Vodka is a lib that extract OpenERP models informations
# Copyright (C) 2013 Laurent Peuch <cortex@worlddomination.be>
# Copyright (C) 2013 Railnova SPRL <railnova@railnova.eu>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publishe... | Psycojoker/vodka | vodka.py | Python | gpl-3.0 | 14,429 | [
"VisIt"
] | d94385eaf98b49cf52df3b8631bae4eafe78a3f6c03ceb33627fcb57503dbb89 |
""" Python test discovery, setup and run of test functions. """
import re
import fnmatch
import functools
import py
import inspect
import sys
import pytest
from _pytest.mark import MarkDecorator, MarkerError
from py._code.code import TerminalRepr
try:
import enum
except ImportError: # pragma: no cover
# Only ... | codewarrior0/pytest | _pytest/python.py | Python | mit | 84,482 | [
"VisIt"
] | f9cacc7cf719dfd703ae8eedc3b187555dcf99e36d0e99949a6d3a47d0143c53 |
"""
"""
import inspect
import os
import hashlib
import random
import socket
import string
import time
from Cookie import CookieError
from galaxy import eggs
eggs.require( "Cheetah" )
from Cheetah.Template import Template
eggs.require( "Mako" )
import mako.runtime
import mako.lookup
# pytz is used by Babel.
eggs.requir... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/web/framework/webapp.py | Python | gpl-3.0 | 39,566 | [
"Galaxy"
] | e013c2d1938bbabc7624475ca99186df0eda54c60d16b99c975570705f7f329c |
# Copyright (c) 2010, 2012 Luke McCarthy <luke@iogopro.co.uk>
#
# This is free software released under the MIT license.
# See COPYING file for details, or visit:
# http://www.opensource.org/licenses/mit-license.php
#
# The file is part of FSMonitor, a file-system monitoring library.
# https://github.com/shaurz/fsmonito... | shaurz/fsmonitor | fsmonitor/__init__.py | Python | mit | 2,655 | [
"VisIt"
] | e9953b76371454dd8f1801db98f2f2ade26cb6d2b3dfbfa09f8a9c603be4c360 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | kratman/psi4public | psi4/share/psi4/databases/JSCH.py | Python | gpl-2.0 | 287,205 | [
"Psi4"
] | 21fa585bbe06a9a80c636865702c1638b5e9ae8bbe09f185d8de6ab06d99dc03 |
#!/usr/bin/env python3
import os
import sys
import time
import logging
import argparse
import tempfile
import resource
import subprocess
import collections
import distutils.spawn
import parallel_tools
import seqtools
import shims
# There can be problems with the submodules, but none are essential.
# Try to load these m... | makrutenko/dunovo | align-families.py | Python | isc | 18,275 | [
"Galaxy"
] | 87fadd51b66deea3334ed5133f0ca696a8a865624653afd24abaa3f895c8d7cf |
#
# 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... | yasharmaster/scancode-toolkit | tests/commoncode/test_command.py | Python | apache-2.0 | 8,505 | [
"VisIt"
] | cb70e1aed537de20711751e7e328ded8cd3a4b34edcb5d473375f0e56738f6e0 |
from math import ceil
from logic.smbool import SMBool
from logic.helpers import Helpers, Bosses
from logic.cache import Cache
from rom.rom_patches import RomPatches
from graph.graph_utils import getAccessPoint
from utils.parameters import Settings
class HelpersGraph(Helpers):
def __init__(self, smbm):
sel... | theonlydude/RandomMetroidSolver | graph/rotation/graph_helpers.py | Python | mit | 33,119 | [
"CRYSTAL"
] | ddf53b071f8ed332c3755b987fed118a96fe7addf56f6a2e4d81071f6c29b307 |
#!/usr/bin/env python3
import os, re, sys
from glob import glob
from argparse import ArgumentParser
parser = ArgumentParser(prog='check-styles.py',
description="Check style table completeness")
parser.add_argument("-v", "--verbose",
action='store_true',
... | akohlmey/lammps | doc/utils/check-styles.py | Python | gpl-2.0 | 11,467 | [
"LAMMPS"
] | 179d00d7b5e4bea2ba70e88483819d01b3fac0b6837d7c158d37c215d3ce07c4 |
from __future__ import print_function
import sys
import os
import io
try:
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
except ImportError:
from distutils.core import setup
from distutils.command.install import install as _install
def find... | DarkEnergySurvey/ugali | setup.py | Python | mit | 10,264 | [
"Galaxy"
] | 92fc565a6e172ed7f16f84f88cf1dade56aafb1f327f1293f5efe9fc73d59562 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# freeseer - vga/presentation capture software
#
# Copyright (C) 2014 Free and Open Source Software Learning Centre
# http://fosslc.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 ... | Freeseer/freeseer | src/freeseer/tests/framework/test_youtube.py | Python | gpl-3.0 | 2,479 | [
"VisIt"
] | 53bdd28a88f0736679d99a1e57946564174dcb28c9034a63461110b555b16acc |
"""
================================
Workshop: Dartmouth College 2010
================================
First lets go to the directory with the data we'll be working on and start the interactive python interpreter
(with some nipype specific configuration). Note that nipype does not need to be run through ipython - it i... | BrainIntensive/OnlineBrainIntensive | resources/nipype/nipype/examples/workshop_dartmouth_2010.py | Python | mit | 9,774 | [
"VTK"
] | ab121da835f92e2bf59b86528c910e1eeba316434bd7c9398d0777108e2f428d |
###########################################################
# SPEpy - simplified parquet equation solver for SIAM #
# Copyright (C) 2019 Vladislav Pokorny; pokornyv@fzu.cz #
# homepage: github.com/pokornyv/SPEpy #
# siam_parquet.py - solver for SPE #
# method described i... | pokornyv/SPEpy | siam_parquet.py | Python | gpl-3.0 | 15,368 | [
"Gaussian"
] | e727c2be13e55046f84bdef1d2a2d52ac2dca203f3deda3e40366341e1f9b29b |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/view/controls/delegates/localfiledelegate.py | Python | gpl-2.0 | 2,211 | [
"VisIt"
] | bf7dbc2d9b2eb8aec54fafbd783995469e97510837a0af3f4d68cdac310de146 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import unittest
from PyQt5 import QtGui, QtWidgets
from PyQt5.QtWidgets import QApplication
import pytest
import imtools.sample_data
import imtools.select_label_qt
class MyTestCase(unittest.TestCase):
def setUp(self):
pass
# se... | mjirik/imtools | tests/pg_widgets_test.py | Python | mit | 6,483 | [
"VTK"
] | 0419b0708d31cf2ddb7df1dd2cb65fed6aa55194b1b299d20b8baae3fa00a52a |
#ImportModules
import ShareYourSystem as SYS
#Definition a Visiter instance that is grouped
MyVisiter=SYS.VisiterClass().update(
[
(
'<Visiters>FirstChildVisiter',
SYS.VisiterClass().update(
[
(
'<Collecters>GrandChildCumulater',
SYS.CumulaterClass()
)
]
)
),
(
'<Visit... | Ledoux/ShareYourSystem | Pythonlogy/draft/Walkers/Visiter/01_ExampleDoc.py | Python | mit | 702 | [
"VisIt"
] | 11cd8199c26dbc77af31e99e8e45f13e323ae3b15ac73e69e2286726234bf9bb |
#!/usr/bin/env python
""" Submission of test jobs for use by Jenkins
"""
# pylint: disable=wrong-import-position,unused-wildcard-import,wildcard-import
import os.path
from DIRAC.Core.Base.Script import parseCommandLine
parseCommandLine()
from DIRAC import gLogger
from DIRAC.tests.Utilities.utils import find_all
f... | fstagni/DIRAC | tests/Jenkins/dirac-test-job.py | Python | gpl-3.0 | 1,855 | [
"DIRAC"
] | f421ffb1b9117f437d3ee06dd29736085bdaf37fc304241f2bd294135d5d8e16 |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. 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
#
# U... | sunqm/pyscf | pyscf/grad/cisd.py | Python | apache-2.0 | 9,526 | [
"PySCF"
] | da67360be0f3f270e32d012190615461162c50c3e705ac7c728349c8e37ce988 |
#BEGIN_HEADER
import simplejson
import sys
import os
import glob
import json
import logging
import time
import subprocess
from pprint import pprint
import script_util
from biokbase.workspace.client import Workspace
from biokbase.auth import Token
try:
from biokbase.HandleService.Client import HandleService
except... | kbaseIncubator/core_genome_utilities | lib/biokbase/genome_util/KBaseGenomeUtilImpl.py | Python | mit | 32,725 | [
"BLAST"
] | ea2bf247f46bb5814b701ef6c3f10e5e83735bacf3c44d113e0b0b07b1858270 |
import sys
import moose
import rdesigneur as rd
if len( sys.argv ) > 1:
fname = sys.argv[1]
else:
fname = './cells/h10.CNG.swc'
rdes = rd.rdesigneur(
cellProto = [[fname, 'elec']],
stimList = [['soma', '1', '.', 'inject', 't * 25e-9' ]],
plotList = [['#', '1', '.', 'Vm', 'Membrane potential'],
... | BhallaLab/moose-examples | tutorials/Rdesigneur/ex9.0_load_neuronal_morphology_file.py | Python | gpl-2.0 | 518 | [
"MOOSE"
] | 4578baea146dcd18e4035204b681c1a2ad283fb88268b2fb551bf409d23c6c92 |
import sys
import bcbio.pipeline.datadict as dd
from bcbio.ngsalign import bowtie2, bwa
from bcbio.log import logger
def clean_chipseq_alignment(data):
aligner = dd.get_aligner(data)
data["raw_bam"] = dd.get_work_bam(data)
if aligner:
if aligner == "bowtie2":
filterer = bowtie2.filter_m... | biocyberman/bcbio-nextgen | bcbio/chipseq/__init__.py | Python | mit | 843 | [
"BWA"
] | 52106dd3c0a41e8e9a28c654ff83dfa7739435701879fbb746178137cb923b39 |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... | thica/ORCA-Remote | src/ORCA/interfaces/InterfaceResultParser.py | Python | gpl-3.0 | 3,013 | [
"ORCA"
] | 2604e188c8e3ea0aa73d4fe995cb7c97cb78d8bffb09971cf8acd80d901a88e4 |
# crest_macro.py
# the macro to generate a crest, the optinal gear of the cross_cube
# created by charlyoleg on 2013/12/11
#
# (C) Copyright 2013 charlyoleg
#
# This file is part of the Cnc25D Python package.
#
# Cnc25D is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pub... | charlyoleg/Cnc25D | cnc25d/tests/crest_macro.py | Python | gpl-3.0 | 8,987 | [
"VisIt"
] | b16f4098f5c98c4616664ebc98064f5ea855eaa9905a147769d94e86aebbeaa8 |
##
# Copyright 2009-2016 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# Flemish Research Foundation ... | wpoely86/easybuild-easyblocks | easybuild/easyblocks/l/libsmm.py | Python | gpl-2.0 | 8,349 | [
"CP2K"
] | 48a6830051571bf0dab185c9f8621aca5bf9706f7b1b7dddf085d79465f7f69d |
#!/usr/bin/env python
'''
Master loader for CANON July (Summer) Campaign 2020
'''
import os
import sys
from datetime import datetime
parentDir = os.path.join(os.path.dirname(__file__), "../")
sys.path.insert(0, parentDir)
from CANON import CANONLoader
import timing
cl = CANONLoader('stoqs_canon_july2020', 'CANON - ... | duane-edgington/stoqs | stoqs/loaders/CANON/loadCANON_july2020.py | Python | gpl-3.0 | 5,960 | [
"NetCDF"
] | f74f9589daccac6e009525f7b620ce081cfe26016e62fa4d3e881718e44ef86c |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2019 Bitergia
#
# 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... | grimoirelab/GrimoireELK | utils/p2o.py | Python | gpl-3.0 | 3,937 | [
"Elk"
] | c15270521edc059270c9e7b9458d12b72521977a74ff9dc1344e13c57a32ae2b |
'''
Validate the string, checking all open and close brackets
'''
OPEN_BRACKETS = {'{', '(', '['}
CLOSE_BRACKETS = {'}', ')', ']'}
BRACKETS_MAP = {'{':'}', '(':')', '[':']'}
def check_string(s):
stack = []
for c in s:
if c in CLOSE_BRACKETS:
bracket = stack.pop()
if c != BRACK... | fleith/coding | interviews/interview1.py | Python | unlicense | 4,696 | [
"Galaxy"
] | 59d5ce9cddfd892226718bee552b00f31ddbabde132c13ac34d0cdf4ca563778 |
#!/usr/bin/python
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2016-2017 Francois Beaune, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any ... | gospodnetic/appleseed | scripts/sortincludes.py | Python | mit | 3,882 | [
"VisIt"
] | eb501425cc278ac6e8669fe0a016f0469bc4df433e873dbea2bf8daab3475fce |
"""Fractal functions"""
import numpy as np
from numba import jit, types
from math import log, floor
from .entropy import num_zerocross
from .utils import _linear_regression, _log_n
all = ['petrosian_fd', 'katz_fd', 'higuchi_fd', 'detrended_fluctuation']
def petrosian_fd(x, axis=-1):
"""Petrosian fractal dimensi... | raphaelvallat/antropy | antropy/fractal.py | Python | bsd-3-clause | 13,447 | [
"Gaussian"
] | 7acdd5172316e75c3ccc73453c9a7f6f2d0d2a627c96e20a0d07e649a1155266 |
# -*- coding: utf-8 -*-
"""
Created on Thu Jul V16 10:18:13 2015
@author: Michael
This file is part of beam-cam, a camera project to monitor and characterise laser beams.
Copyright (C) 2015 Christian Gross <christian.gross@mpq.mpg.de>, Timon Hilker <timon.hilker@mpq.mpg.de>, Michael Hoese <michael.hoese@physik.lmu.de... | kviebahn/beam-cam | FirstTest.py | Python | gpl-3.0 | 36,567 | [
"Gaussian"
] | 3bf3a0bf09e582fbbf5ebca019d87fe2d7045965db012febba0d80b7d4ce47fc |
# Copyright 2012 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your option)
# any later version.
#
# G... | balint256/gnuradio | gr-filter/python/filter/design/fir_design.py | Python | gpl-3.0 | 15,888 | [
"Gaussian"
] | 2bd3803cadc8d2680fdd7199759c0cbebe9bbcd2453007cbbc063504e3cafab6 |
#! /usr/bin/env python
import cv2
import numpy as np
import matplotlib.pyplot as plt
from image_processor import *
print (TCOLORS.PURPLE + "Unit Test: Generate a standard guassian Array and digital representation of a guassian array" + TCOLORS.NORMAL)
#Constants
gaussian_sigma=1.2
gaussian_bitrange=18 #This is the n... | CospanDesign/python | image_processor/gaussian_test.py | Python | mit | 1,446 | [
"Gaussian"
] | c2f0e4ca044687370cd36ec59b67cdd0388bd172bf7c5f9e357d6c5fea482043 |
# Imports
import sframe
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import multivariate_normal
import copy
from PIL import Image
from io import BytesIO
import matplotlib.mlab as mlab
import colorsys
def generate_MoG_data(num_data, means, covariances, weights):
data = []
for i in range(... | neogi/machine-learning | clustering_and_retrieval/gaussian_mixture_model/em-gmm.py | Python | gpl-3.0 | 11,332 | [
"Gaussian"
] | af6bdcf4aaa639a3ec52f25e8189dd76a1c3bad5d524a463438c036a208dc316 |
#!/usr/bin/env python3
#* 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/lgp... | nuclear-wizard/moose | python/peacock/tests/exodus_tab/test_BlockPlugin.py | Python | lgpl-2.1 | 12,514 | [
"MOOSE",
"VTK"
] | b2fef808836ee10e75ec8455007c061068849526f5c18e59808afec8b1b99000 |
"""
===========
gaussfitter
===========
.. codeauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com> 3/17/08
Latest version available at <http://code.google.com/p/agpy/source/browse/trunk/agpy/gaussfitter.py>
As of January 30, 2014, gaussfitter has its own code repo on github:
https://github.com/keflavich/gaussfitte... | ufoym/agpy | agpy/gaussfitter.py | Python | mit | 23,846 | [
"Gaussian"
] | d27e56a21faa2187c9089eaea1ba43fae372f91282977eb1718105bbaedd51e8 |
#!/usr/bin/python
# (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# most of it copied from AWX's scan_packages module
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
module: package_fac... | thnee/ansible | lib/ansible/modules/package_facts.py | Python | gpl-3.0 | 16,572 | [
"Brian"
] | e7613590a239e858f7a852586dff520578e1cfec8922755e5b6792d1c6f77697 |
""" Affine image registration module consisting of the following classes:
AffineMap: encapsulates the necessary information to perform affine
transforms between two domains, defined by a `static` and a `moving`
image. The `domain` of the transform is the set of points in the
`static` image'... | sinkpoint/dipy | dipy/align/imaffine.py | Python | bsd-3-clause | 52,930 | [
"Gaussian"
] | 390455c253aa4aa178a794a4686902f7e4d629d3f436c983141e75f10cab18c8 |
"""
Module focused on the implementation of the Radial Basis Functions interpolation technique.
This technique is still based on the use of a set of parameters, the so-called control points,
as for FFD, but RBF is interpolatory. Another important key point of RBF strategy relies in the
way we can locate the control poi... | fsalmoir/PyGeM | pygem/radial.py | Python | mit | 10,169 | [
"Gaussian"
] | 7378d2068a068ab5749487d059bc34fe88fa35b2918f5447e8b37a33ce7afe91 |
#!/usr/bin/env python
"""
Predict data with CNN trained using the Lasagne library:
https://github.com/Lasagne
"""
from __future__ import print_function
import argparse
import sys
import os
import time
import csv
import numpy as np
from scipy.io import netcdf
from scipy.stats import pearsonr
from sklearn.metrics impo... | vanessajurtz/lasagne4bio | peptide_MHCII/scripts/lstm_ensemble.py | Python | gpl-3.0 | 6,895 | [
"NetCDF"
] | 3b4e4659cf388b6e1eb6ac111ff81e0f1d678085538867a965935eebb93049a0 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/test_failure.py | Python | gpl-2.0 | 1,313 | [
"MDAnalysis"
] | 00aae7dc49a082cfc947dd92a629260387b50718863d1e67d446642a809c572c |
"""
Python implementation of the fast ICA algorithms.
Reference: Tables 8.3 and 8.4 page 196 in the book:
Independent Component Analysis, by Hyvarinen et al.
"""
# Authors: Pierre Lafaye de Micheaux, Stefan van der Walt, Gael Varoquaux,
# Bertrand Thirion, Alexandre Gramfort, Denis A. Engemann
# License: BS... | kevin-intel/scikit-learn | sklearn/decomposition/_fastica.py | Python | bsd-3-clause | 21,028 | [
"Gaussian"
] | e3de0b5f6ce70d8c66bfca2ccfc1e3ff45233d9204eb25fe4c8c0df850eaebdd |
import json
import random
dialogosf=open("dialogos.txt",'r')
frasesf=open("fraces.txt",'r')
dialogos=json.load(dialogosf)
frases=json.load(frasesf)
def frase(rules):
posibles = dialogos[rules["personaje"]]
validos = []
tamano = 0
for dialogo in posibles:
if(esValida(dialogo,rules) and len(dial... | cangothic/practica-de-complejidad | practica brian y carlos/desserializa.py | Python | mit | 1,069 | [
"Brian"
] | 4317487bf407306c83d9eb9fd6711497367996e7cb9971721764dace1fa4e1ce |
#
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# u... | graalvm/mx | mx_gc.py | Python | gpl-2.0 | 11,168 | [
"VisIt"
] | 493dbc1e882457afa5b226fbb97263b8db067db46a0ac033fdfc0f4347143c45 |
#!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 3: Deep Learning and Neural Networks
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2015 by Jeff Heaton
Licensed under the Apache License, V... | jeffheaton/aifh | vol3/vol3-python-examples/examples/example_mnist_sigmoid.py | Python | apache-2.0 | 2,485 | [
"VisIt"
] | 99e3b2d3f9e6bacdcd67267ccc6d6260d03025796e002a7b6205d920ed381311 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.