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
from __future__ import division import pysam import numpy as np import yaml from Bio import SeqIO from Bio.Seq import Seq from Bio.Alphabet import generic_dna #from scripts.seq_classes import locus, segment, tally, allele # %% from seq_classes import locus, segment, tally, allele #from scripts.trim_to_regions import ...
lauringlab/variant_pipeline
scripts/position_data.py
Python
apache-2.0
6,571
[ "pysam" ]
17facc3c00c348af9d88fb4b7e252ad912d1113ee917e4053ca87e172c11f7b4
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Modified parameters file for the Hybrid LFP scheme, applying the methodology with the model of: Potjans, T. and Diesmann, M. "The Cell-Type Specific Cortical Microcircuit: Relating Structure and Activity in a Full-Scale Spiking Network Model". Cereb. Cortex (2014) 24 (...
espenhgn/hybridLFPy
examples/example_microcircuit_params_lognormalweights.py
Python
gpl-3.0
38,825
[ "Gaussian", "NEURON" ]
8241ac75e06ea1fb7aff9ae91c73246a836db8746d5b113bf25062dddf84503a
""" Module for integration with BioPython, specifically SeqRecords and SeqFeature objects. """ import six try: from Bio.SeqFeature import SeqFeature, FeatureLocation except ImportError: import warnings warnings.warn("BioPython must be installed to use this module") from .feature import Feature, feature_from...
daler/gffutils
gffutils/biopython_integration.py
Python
mit
2,590
[ "Biopython" ]
5c9be520f50362b09f182be95678bd69ad3a62e56489c9524822b2cdf2cf15a5
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2011, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
zenoss/ZenPacks.zenoss.OpenStackSwift
ZenPacks/zenoss/OpenStackSwift/tests/testParsers.py
Python
gpl-2.0
3,940
[ "VisIt" ]
4e9b7fb9344b16a8761c2256f28616816549536309c73f0c67b7874125fede99
## This file is part of Invenio. ## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2014 CERN. ## ## Invenio 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, ...
Panos512/invenio
modules/websession/lib/websession_templates.py
Python
gpl-2.0
121,287
[ "VisIt" ]
e1b7836d01b5c810b125a7728f9678822e1d4304510cfca8abc82d8eaf3b4165
""" Constructs a data source for the ga4gh server by downloading data from authoritative remote servers. """ # TODO # - would be nice to have some kind of checkpoint functionality to resume # process where it left off since getting a clean run is uncertain... from __future__ import division from __future__ import pri...
ekalosak/server
scripts/download_data.py
Python
apache-2.0
15,583
[ "BWA", "pysam" ]
fdc5c539c2c00f0284856ad90dd4ffed423a778b58edc85447ced9bd7f2bb29c
# (c) 2014, Brian Coca, Josh Drake, et al # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' cache: redis short_description: Use Redis...
e-gob/plataforma-kioscos-autoatencion
scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/plugins/cache/redis.py
Python
bsd-3-clause
4,208
[ "Brian" ]
25630b60d8c22432c6628988799b1dccf003659d6679eaf782446999d1bf61a3
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from __future__ import division import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) import unittest from pattern import graph from pattern.graph import commonsense from builtins i...
clips/pattern
test/test_graph.py
Python
bsd-3-clause
27,752
[ "VisIt" ]
4ec1c6c2c9bc1cd030c834afb923efae6f16ab2f3ccb8ac4b6a6c313c6d1f4eb
""" The CS! (Configuration Service) """ from DIRAC.Core.Utilities.ReturnValues import S_OK, S_ERROR from DIRAC.ConfigurationSystem.private.ServiceInterface import ServiceInterface from DIRAC.Core.DISET.RequestHandler import RequestHandler, getServiceOption from DIRAC.WorkloadManagementSystem.Utilities.PilotCStoJSONSyn...
Andrew-McNab-UK/DIRAC
ConfigurationSystem/Service/ConfigurationHandler.py
Python
gpl-3.0
4,227
[ "DIRAC" ]
69c0cefda7ff20f607c5364a42a7a2d21d06c6163c82fd1aa7ee35d12664611c
""" Basic molecular features. """ __author__ = "Steven Kearnes" __copyright__ = "Copyright 2014, Stanford University" __license__ = "BSD 3-clause" from rdkit.Chem import Descriptors from vs_utils.features import Featurizer class MolecularWeight(Featurizer): """ Molecular weight. """ name = ['mw', '...
rbharath/vs-utils
vs_utils/features/basic.py
Python
gpl-3.0
1,319
[ "RDKit" ]
4cd20f73809b71f2a4b7726d9fb365710766ca7fe2ee707b29c7d45bbd0026e9
# Copyright (C) 2010-2019 The ESPResSo project # # 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 # (at your option) any later v...
fweik/espresso
testsuite/python/lb_poiseuille_cylinder.py
Python
gpl-3.0
7,468
[ "ESPResSo" ]
9b2211623279a69f0b4442c24466889fff9e82019baa2d502c9e74f40f4b3724
######################################################### # YAM(BO)PY(THON) Library # # Generation of Yambo input files using python # # Authors: A Molina-Sanchez, HPC Miranda # # January 2016 ######################################################### # Calculation of COHSEX corrections for different times # in real...
alexmoratalla/yambopy
scripts/realtime/rt-cohsex.py
Python
bsd-3-clause
2,906
[ "Yambo" ]
235f4deaf4d9d0977defac46f83ef590b5eabfc1d470abea538446fae34f741d
top_1000_no_https_hosts = [ "http://baidu.com", "http://sina.com.cn", "http://weibo.com", "http://t.co", "http://imgur.com", "http://msn.com", "http://bing.com", "http://onclkds.com", "http://gmw.cn", "http://xvideos.com", "http://imdb.com", "http://csdn.net", "http://wikia.com", "http://youth.cn", "http://diply.com", ...
jlcmoore/vuExposed
src/no_https_hosts.py
Python
mit
23,094
[ "ADF" ]
d88514a551f5de0f1ea676bb0e80b960cb3b94881ae7f13ae0ed25011c0eb8e6
"""Helpful utilities for building analysis pipelines. """ import gzip import os import tempfile import time import shutil import contextlib import itertools import functools import random import ConfigParser import collections import fnmatch import subprocess import toolz as tz import yaml try: from concurrent imp...
elkingtonmcb/bcbio-nextgen
bcbio/utils.py
Python
mit
19,312
[ "Galaxy" ]
e0bbcb2b34f1b63df5a95a975016093e3be17d6e9430786ce61c9ac5a9c0af68
# 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.core.composition import Composition from pymatgen.apps.battery.conversion_battery import ( ConversionElectrode, ConversionVolta...
vorwerkc/pymatgen
pymatgen/apps/battery/tests/test_conversion_battery.py
Python
mit
3,687
[ "pymatgen" ]
16cb50cfdf3d4fe4b535ec4dd9463d1351ad326e072689a0a883c28062d999e0
import scipy import numpy import math from AZutilities import dataUtilities from AZutilities import Mahalanobis from rdkit import DataStructs from rdkit import Chem from rdkit.Chem.Fingerprints import FingerprintMols from rdkit.Chem import AllChem from rdkit.Chem import MACCSkeys def getRespVar(tanList, tanDict, trai...
JonnaStalring/AZOrange
azorange/AZutilities/PredConfMetrics.py
Python
lgpl-3.0
7,996
[ "RDKit" ]
8f82d686a3e0f9169a803a96d35d29a69d6b2c9b608b19d15b5c9c5b25a44275
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
mfherbst/spack
var/spack/repos/builtin/packages/r-affyplm/package.py
Python
lgpl-2.1
2,158
[ "Bioconductor" ]
8c4bf40202247bcc9462fab7e2180b4f43d53b07ed0cb0c0d2657b7e314e484a
#!/usr/bin/env python #----------------------------------------------------------------------------- # Copyright (c) 2013--, biocore development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------...
biocore/burrito-fillings
bfillings/muscle_v38.py
Python
bsd-3-clause
28,614
[ "BLAST" ]
7a070f45b251141c7f7618868187cb8718fe6a4344f6a41b2f36a6825654c9e6
import pytest import numpy as np from LabPy import Constants from NonlinearTMM import SecondOrderNLTMM, Material def SpdcPowerQuantum(wlP1, wlP2, betaP1, betaP2, nF, chi2, crystalL, pwrP1, dwl, solidAngleSpdc, deltaThetaSpdc): wlGen = Constants.OmegaToWl(Constants.WlToOmega(wlP1) - Constants.WlToOmega(wlP2))...
ardiloot/NonlinearTMM
Tests/test_SPDC.py
Python
mit
6,098
[ "CRYSTAL", "Gaussian" ]
abb519d547cf44e782c427ee309489f26e4ed2c7e6da6c0faf2c33603b69cbc8
""" Some validation functions. """ from __future__ import division import numpy as np from scipy.stats import norm def smse(y_true, y_pred): """ Standardised mean squared error. Parameters ---------- y_true: ndarray vector of true targets y_pred: ndarray vector of predicted ...
NICTA/revrand
revrand/metrics.py
Python
apache-2.0
3,239
[ "Gaussian" ]
c7d188b1e4ba5b87f8066b6aefa132359a28e17c3f62fed1b766e4770af7af57
# NOTE: This example uses the next generation Twilio helper library - for more # information on how to download and install this version, visit # https://www.twilio.com/docs/libraries/python import os from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/user/account # To set up environmenta...
TwilioDevEd/api-snippets
notifications/rest/credentials/create-fcm-credential/create-fcm-credential.7.x.py
Python
mit
593
[ "VisIt" ]
cc52a62925c893e65a2e320b13291956c05353d7771d1dcf57b40f1732bbb94d
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
MDAnalysis/mdanalysis
package/MDAnalysis/coordinates/chain.py
Python
gpl-2.0
24,516
[ "Gromacs", "MDAnalysis" ]
9e46b043d22256dff6b89bec158d1e050a5e70ce331d7a430069cb341be4bc9e
''' A pseudo MSO neuron, with two dendrites (fake geometry). There are synaptic inputs. ''' import os import matplotlib matplotlib.use('Agg') from brian2 import * import brian2cuda # cuda_standalone device name = os.path.basename(__file__).replace('.py', '') codefolder = os.path.join('code', name) print('runing examp...
brian-team/brian2cuda
examples/compartmental/bipolar_with_inputs_cuda.py
Python
gpl-2.0
2,220
[ "NEURON" ]
f33ed5cfd48c6b35b4e064ee0c73593c4bdd471a40459efe52dfbc0d4bf7b7c9
"""The suite of window functions.""" from __future__ import division, print_function, absolute_import import warnings import numpy as np from scipy import special, linalg from scipy.fftpack import fft from scipy.lib.six import string_types __all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall', ...
maciejkula/scipy
scipy/signal/windows.py
Python
bsd-3-clause
48,620
[ "Gaussian" ]
a3ad5825b99c9df905d476b9bf7e8b429ce9e9848f9bbf0ed2d1e8686922c2d4
import mdp import numpy as np try: from NeuroTools import stgen from pyNN.pcsim import * from pypcsim import * except ImportError: pass class poisson_gen: '''Container class for a poisson generator signal-to-spiketrain convertor ''' def __init__(self, rngseed, RateScale=1e6, Tstep=10): ...
npinto/Oger
Oger/utils/spiking_utilities.py
Python
gpl-3.0
5,435
[ "Gaussian" ]
375ec0f6c5ee533fe0de8b8af47fba50b4e890ce1c424574d346bb99504af518
""" ../wps.py?request=execute &service=wps &version=1.0.0 &identifier=esmvaltool-perfmetrics &status=true &storeExecuteResponse=true """ import datetime import shutil import netCDF4 import urlparse from pywps.Process import WPSProcess import os import logging from jinja2 import FileSystemLoader, Environment,select...
c3s-magic/adaguc-services-esmvaltool-wps
processes/esmvaltool-perfmetrics.py
Python
apache-2.0
9,857
[ "NetCDF" ]
d8699befd9f69fc2c8c132df72eee3bd3f8e32b7e945b7124e3313022943c1e4
# ============================================================================ # # Copyright (C) 2007-2010 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...
kurtraschke/camelot
camelot/view/wizard/merge_document.py
Python
gpl-2.0
4,095
[ "VisIt" ]
a2ae0bb101f3a601268330350dd944bccd1dab51a7bda5454eb6b631b18359fe
#!/usr/bin/env python3 import os,sys,getopt,tarfile import getpass from distutils.spawn import find_executable import time import socket import optparse import subprocess import multiprocessing from swiftclient import Connection from swiftclient import shell from swiftclient import RequestException from swiftclien...
trel/swift-commander
bin/swbundler.py
Python
apache-2.0
12,279
[ "VisIt" ]
5db3f03c34da03c74a5fc280d2c0e8d2b47eeed4d24faba341efad57257e0ff5
#!/usr/bin/env python ''' give fastq file(s) (1 or 4 line format) preprocess_radtag_lane.py /path/to/flowcell/s_N_1_sequence.txt [s_N_2_sequence.txt] for which individual data is present in <LIBRARY_DATA> gdoc spreadsheet (see config.py) generates tabular uniqued read data: ID nreads sequence mean_qual comma,delim,i...
brantp/rtd
preprocess_radtag_lane.py
Python
lgpl-3.0
38,846
[ "BWA" ]
4b2c276be687ea7bbce1804d5960a5f46da3f03d860da53bd65807a269995dd6
import tensorflow as tf import numpy as np from draw_ops import * from utils import * import input_data # from scipy.misc import imsave as ims class Draw(): def __init__(self): self.mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) self.n_samples = self.mnist.train.num_examples ...
AutonomyLab/deep_intent
code/autoencoder_model/scripts/draw.py
Python
bsd-3-clause
9,556
[ "Gaussian" ]
6fd3c57178d4b40fbc206c657db25571c209b2614f540664c6af4d8feaba2313
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS. """ import time from ..helpers import UniqueCourseTest from ...pages.studio.auto_auth import AutoAuthPage from ...pages.lms.create_mode import ModeCreationPage from ...pages.studio.overview import CourseOutlinePage from ...pages.lms.courseware import Courseware...
kxliugang/edx-platform
common/test/acceptance/tests/lms/test_lms_courseware.py
Python
agpl-3.0
12,670
[ "VisIt" ]
642f62c5d20ed9552912ffc7dbbf30b57b0147caecfbcd2638a097afb759d541
#!/usr/bin/env python from datetime import datetime, timedelta from collections import OrderedDict import calendar import sys from ecmwfapi import ECMWFDataServer import time from dateutil.relativedelta import * start_time = time.time() server = ECMWFDataServer() def retrieve_interim(strtDate,endDate,latNorth,latSou...
joelfiddes/toposubv2
workdir/eraRetrievePLEVEL.py
Python
gpl-3.0
3,921
[ "NetCDF" ]
8e8a2ea82d2d1e9bae346590ba71c77ea33a11df0835ee7a5299354d78655e58
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpat...
catherinedevlin/rideshare-matchmaker
config/urls.py
Python
cc0-1.0
1,444
[ "VisIt" ]
7e608ed85cf5dd2d2054e6812d07feb76ce228cd2560ae965f2c07b6146040f7
import unittest from redisgraph.execution_plan import Operation from tests.utils import base import redis from redisgraph import Node, Edge, Graph, Path class TestStringMethods(base.TestCase): def setUp(self): super().setUp() self.r = redis.Redis(host='localhost', port=6379, decode_responses=Tr...
swilly22/redisgraph-py
tests/functional/test_all.py
Python
bsd-2-clause
15,834
[ "VisIt" ]
6fbd0c0394489de931cd82b090a5889c795c8e8348bb8b01d15ef26fb30992c7
import os import unittest import vtk, qt, ctk, slicer import math import sys # # AstroReprojectSelfTest # class AstroReprojectSelfTest: def __init__(self, parent): parent.title = "Astro Reproject SelfTest" parent.categories = ["Testing.TestCases"] parent.dependencies = ["AstroVolume"] parent.contrib...
Punzo/SlicerAstro
AstroReproject/Testing/Python/AstroReprojectSelfTest.py
Python
bsd-3-clause
6,133
[ "VTK" ]
c4cc0e4ed80a237db95d9ad0ddc2530ddfc95b235d3c62fd61462ce38fb4dce0
#!/usr/bin/env python3 import numpy as np from pytest import approx from pysisyphus.calculators.XTB import XTB from pysisyphus.calculators.Psi4 import Psi4 from pysisyphus.optimizers.RFOptimizer import RFOptimizer from pysisyphus.helpers import geom_from_library np.set_printoptions(suppress=True, precision=3, line...
eljost/pysisyphus
tests_staging/test_delocalized_coords/test_deloc_coords.py
Python
gpl-3.0
2,299
[ "Psi4", "xTB" ]
9190a578afd1823c3d6a3c17dc98e09eddc5a2494c8742150d49abf6a17190dc
""" Title: Self-supervised contrastive learning with NNCLR Author: [Rishit Dagli](https://twitter.com/rishit_dagli) Date created: 2021/09/13 Last modified: 2021/09/13 Description: Implementation of NNCLR, a self-supervised learning method for computer vision. """ """ ## Introduction ### Self-supervised learning Self-...
keras-team/keras-io
examples/vision/nnclr.py
Python
apache-2.0
22,444
[ "Gaussian" ]
93825a706925d3bd07ae65c7a16599d48f1e19705eb6f61376cf14e99ff3c545
#!/usr/bin/env python # # $File: MlSelector.py $ # # This file is part of simuPOP, a forward-time population genetics # simulation environment. Please visit http://simupop.sourceforge.net # for details. # # Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org) # # This program is free software: you can redistribute...
BoPeng/simuPOP
docs/MlSelector.py
Python
gpl-2.0
1,907
[ "VisIt" ]
294363861e5d30f2f4ae44a535b203fe5323c8062a098ad204a4f3ca4bf0b38b
#!/usr/bin/env python # # Copyright 2016, Raymon Cao <rcao5@jhu.edu> and Daehwan Kim <infphilo@gmail.com> # # This file is part of HISAT 2. # # HISAT 2 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 v...
infphilo/hisat2
hisatgenotype_modules/hisatgenotype_extract_cyp_data.py
Python
gpl-3.0
37,712
[ "BLAST" ]
10d6b71304c4e544d25947c794b1bf5bde856319731d042c2568a4588a521e9e
# Copyright 2018 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...
gunan/tensorflow
tensorflow/python/autograph/pyct/origin_info.py
Python
apache-2.0
9,355
[ "VisIt" ]
c21f264f437276d7bcb0f5312ce01e44c8a39b8932729d950ae66fceb2397e31
from django.core.management.base import NoArgsCommand from dropbox import rest, session from django_dropbox.settings import CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TYPE class Command(NoArgsCommand): def handle_noargs(self, *args, **options): sess = session.DropboxSession(CONSUMER_KEY, CONSUMER_SECRET, ACCES...
cpatrick/comic-django
django/django_dropbox/management/commands/get_dropbox_token.py
Python
apache-2.0
864
[ "VisIt" ]
bd3f87090c4df1e3647ffd4841f115c88a6b186434cf647478a750ba2051b22d
""" Profiling class for updated information on process status """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import datetime import errno import psutil from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Core.Utilities.DErrno import...
yujikato/DIRAC
src/DIRAC/Core/Utilities/Profiler.py
Python
gpl-3.0
7,044
[ "DIRAC" ]
e6f98655324bc5327ace4816f7e976da83c1bafae32171e2bbf50664a3db6ae1
# -*- coding: utf-8 -*- # TODO: Port to pytest # PEP8 asserts from copy import deepcopy import httplib as http import time import mock import pytest from nose.tools import * # noqa from tests.base import OsfTestCase, fake from osf_tests.factories import ( UserFactory, NodeFactory, ProjectFactory, AuthUserF...
TomBaxter/osf.io
addons/wiki/tests/test_wiki.py
Python
apache-2.0
61,125
[ "VisIt" ]
907c141ef8cd480673609f64b0680b2bc82aa344173701cf2bee6862f4bfac81
#! /usr/bin/python import os; import sys; import subprocess; def execute_command(command): sys.stderr.write('Executing command: %s\n' % (command)); subprocess.call(command, shell=True); def run_simulations(): sys.stderr.write('Starting the alignment process on simulated data.\n'); sys.stderr.write('Note that thi...
isovic/graphmap
reproducibility/run.py
Python
mit
1,874
[ "BLAST" ]
b737b4816cd7f46b311ce37c4237a60515d53d0b17ada74683282e08d24218b6
#!/usr/bin/env python ################################################ # Prey Configurator for Linux # By Tomas Pollak # (c) 2012-2014 - Fork Ltd. (usefork.com) ################################################ # if having trouble with the GTK theme as root, do this: # sudo ln -s ~/.themes/ /root/.themes #############...
prey/prey-node-client
lib/conf/gui/linux/prey-config.py
Python
gpl-3.0
11,783
[ "VisIt" ]
f70da4b1da8a16a54cf44773a10b8b055899d66069f7df391d7fd3cd7855884a
#!/usr/bin/python # Script: movie.py # Purpose: create images from LAMMPS dump snapshots # Syntax: movie.py raster/svg theta phi dump.1 dump.2 ... # raster/svg = style of image to create # theta/phi = vertical (z) and azimuthal angle to view from # files = one or more dump files # Example: movie...
sn-amber/mylpp
scripts/movie.py
Python
gpl-2.0
839
[ "LAMMPS" ]
6c5e338bc40b6d4f69b4785f21dbcb38bb6bfd446f4a1b7970a24ebf00570e30
import pickle as pickle import tempfile import rrpam_wds.examples as ex from rrpam_wds import hydraulic_services as hs from rrpam_wds.tests.test_utils import Test_Parent from rrpam_wds.tests.test_utils import main TOTAL_DEMAND_EX1 = 95045830. TOTAL_DEMAND_EX2 = 945660687. TOTAL_DEMAND_EX3 = 965890. class TC(Test_Pa...
asselapathirana/RRPam-WDS
src/rrpam_wds/tests/test_hydraulic_services2.py
Python
gpl-3.0
1,596
[ "ADF" ]
41b64af1a1ccc5289b57c571a62faee7b5bad779f6f5114c117f0e68a5c7d7d7
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Bio.SearchIO parser for Exonerate vulgar output format.""" import sys # Add path to Bi...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/SearchIO/ExonerateIO/exonerate_vulgar.py
Python
gpl-2.0
8,213
[ "Biopython" ]
c7a0ed34de79ec0434d8b3f87c691f6c2a4ff0c41d59ed1fe68a1aa065e9eb50
''' Created on 16/01/2014 @author: morisset ''' import os import sys import re import argparse from scipy import interpolate import numpy as np import pyssn from pyneb.utils.physics import vactoair from pyneb.utils.misc import roman_to_int def read_data(filename, NF=True): dtype = 'i8, a1, a9, float64, float64, f...
mvfcopetti/pySSN
pyssn/utils/misc.py
Python
gpl-3.0
10,005
[ "Gaussian" ]
4ae8df72de94220b49e458e983380af9d87b878359b963c5eed204849dd78ab7
""" Clustering of LINEAR data ------------------------- Figure 10.20 ~~~~~~~~~~~~ Unsupervised clustering analysis of periodic variable stars from the LINEAR data set. The top row shows clusters derived using two attributes (g - i and log P) and a mixture of 12 Gaussians. The colorized symbols mark the five most signif...
eramirem/astroML
book_figures/chapter10/fig_LINEAR_clustering.py
Python
bsd-2-clause
9,133
[ "Gaussian" ]
51790e636d523b596715a915e3bdeb7131e15affe5d7b6c5b2fedea4fc092929
""" A computing element class using singularity containers. This computing element will start the job in the container set by the "ContainerRoot" config option. DIRAC will the re-installed within the container, extra flags can be given to the dirac-install command with the "ContainerExtraOpts" opt...
Andrew-McNab-UK/DIRAC
Resources/Computing/SingularityComputingElement.py
Python
gpl-3.0
10,825
[ "DIRAC" ]
5b102e0cb24978fa1e72b197f2490e68298c94ed282fe01174e2832ee5dceed3
# -*- coding: utf-8 -*- """ Quickly setup a Pyccel source to work with pyccel. """ # TODO this file has not been refactored yet # TODO: - enables testing extensions when invoking pyccel-quickstart import sys import os import argparse from os import path from pyccel.codegen.utilities_old import load_extension fr...
ratnania/pyccel
pyccel/commands/quickstart.py
Python
mit
7,726
[ "VisIt" ]
c652d577aced05b2ae94fdd118816073209ce410924d92388897203d219f44e8
#!/usr/bin/env python # # $File: conversion.py $ # # This file is part of simuPOP, a forward-time population genetics # simulation environment. Please visit http://simupop.sourceforge.net # for details. # # Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org) # # This program is free software: you can redistribute...
BoPeng/simuPOP
docs/conversion.py
Python
gpl-2.0
1,685
[ "VisIt" ]
084a14a23009e86623a9d6424f585d103b41d0d43250a436ef95255fee42ec36
""" PassiveDNS Common Output Format (COF) MISP importer. Takes as input a valid COF file or the output of the dnsdbflex utility and creates MISP objects for the input. Copyright 2021: Farsight Security (https://www.farsightsecurity.com/) Author: Aaron Kaplan <aaron@lo-res.org> Released under the Apache 2.0 license....
MISP/misp-modules
misp_modules/modules/import_mod/cof2misp.py
Python
agpl-3.0
8,831
[ "Amber" ]
b758b754a3d57eae49760b8befb14d779aa408612ddff2df08ccb02849d885bf
from equadratures.sampling_methods.sampling_template import Sampling import numpy as np from scipy.special import betaln import bisect from scipy.optimize import brentq as brentq_root_solve import copy try: import ray ray_imported = True except ImportError: ray_imported = False pass class Induced(Samp...
Effective-Quadratures/Effective-Quadratures
equadratures/sampling_methods/induced.py
Python
lgpl-2.1
22,888
[ "Gaussian" ]
87d4f2f692ef4231ea901ca0dff48601c82033dc9cd109d9b49dc2ab0a3cc982
# -*- coding: utf-8 -*- # # This script is a modified implementation of an official # NEST example (see http://nest-simulator.org) that can be used as a task # on the Collaboratory. # # Contributors: # NEST Developers # Johanna Senk (j.senk@fz-juelich.de) # # # brunel_delta_nest.py # # This file is part of NEST. ...
INM-6/UP-Tasks
NEST/brunel_delta_nest_task/brunel_delta_nest_task.py
Python
gpl-2.0
13,335
[ "NEURON" ]
b7694e143831e491495db296dbc8fc91b097147cb1fc6d474574d830f1e08d60
# coding=utf-8 # Copyright 2016 Google 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 # # Unless required by app...
pombredanne/grumpy
grumpy-tools-src/grumpy_tools/compiler/stmt.py
Python
apache-2.0
33,212
[ "VisIt" ]
eff90c03a59700fab7724adcec9ecec16348ff0ffe6570f0b5d4ddd40005da03
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 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 ...
kannon92/psi4
doc/sphinxman/source/psi4doc/ext/__init__.py
Python
gpl-2.0
1,013
[ "Psi4" ]
15e67f0410fff706a3501a01949d446f3044d9b0dd4bf500ed3af90861927215
# Natural Language Toolkit: Logic # # Author: Dan Garrette <dhgarrette@gmail.com> # # Copyright (C) 2001-2015 NLTK Project # URL: <http://nltk.org> # For license information, see LICENSE.TXT """ A version of first order predicate logic, built on top of the typed lambda calculus. """ from __future__ import ...
MyRookie/SentimentAnalyse
venv/lib/python2.7/site-packages/nltk/sem/logic.py
Python
mit
69,910
[ "VisIt" ]
25aadee4fa61942a4a0f3cf4ec0489f6a83c842c45d3c883fcf8fdf9c1f163ef
# Copyright 2017 Max Planck Society # Distributed under the BSD-3 Software license, # (See accompanying file ./LICENSE.txt or copy at # https://opensource.org/licenses/BSD-3-Clause) """Training AdaGAN on various datasets. Refer to the arXiv paper 'AdaGAN: Boosting Generative Models' Coded by Ilya Tolstikhin, Carl-Joha...
tolstikhin/adagan
iclr_celeba_vae.py
Python
bsd-3-clause
8,118
[ "Gaussian" ]
8fcf1886033d0710449ee2a9a9dd4dde110646909b240ad5d8b0bae9b5fda205
import mfem if mfem.mfem_mode is None: mfem.mfem_mode = 'parallel' if mfem.mfem_mode == 'serial': raise ImportError("MFEM serial mode is already loaded") debug_print = mfem.debug_print from mpi4py import MPI from mfem._par.cpointers import * from mfem._par.globals import * from mfem._par.mem_manager import ...
mfem/PyMFEM
mfem/par.py
Python
bsd-3-clause
3,640
[ "VTK" ]
d9bc54fff3f22c00b8b23b11570261847dbc172f648ac84fc92f25db4cb3f4cf
from __future__ import print_function, division import collections from sympy.core.add import Add from sympy.core.basic import Basic, C, Atom from sympy.core.expr import Expr from sympy.core.function import count_ops from sympy.core.logic import _fuzzy_group_inverse, fuzzy_and from sympy.core.power import Pow from sym...
dqnykamp/sympy
sympy/matrices/matrices.py
Python
bsd-3-clause
127,921
[ "DIRAC", "Gaussian" ]
f8a1fa881f282039d4257df6e46076f5d565e9be22ebf21fefc50a6ba454ff7e
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google-research/fitvid
models.py
Python
apache-2.0
5,477
[ "Gaussian" ]
e7fcd7e41706cbfcf0ead47f5e3ec03f9327ad494c04c87612fac917d9135a58
# -*- coding: utf-8 -*- ''' Describe test for Django @author: Laurent GAY @organization: sd-libre.fr @contact: info@sd-libre.fr @copyright: 2015 sd-libre.fr @license: This file is part of Lucterios. Lucterios is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License ...
Diacamma2/financial
diacamma/accounting/tests.py
Python
gpl-3.0
65,977
[ "Dalton" ]
01e025930d58712096c7b192ad60df2af40ec3ce6c7652a37f766ee8f1d81c10
""" Interpolate Before Mapping ~~~~~~~~~~~~~~~~~~~~~~~~~~ The ``add_mesh`` function has an ``interpolate_before_map`` argument - this affects the way scalar data is visualized with colors. The effect can of this can vary depending on the dataset's topology and the chosen colormap. This example serves to demo the diff...
akaszynski/vtkInterface
examples/02-plot/interpolate-before-map.py
Python
mit
5,846
[ "VTK" ]
424cb92f9adc497146c77118c91c265c2328f87562fb50d8d72c16f211941bb1
# Copyright 2016 Mycroft AI, Inc. # # This file is part of Mycroft Core. # # Mycroft Core is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
seymour-bootay/my-mycroft-skills
loginctl/__init__.py
Python
gpl-3.0
3,793
[ "VisIt" ]
9a9bc2052ec170b3cbfc820ad251e92950ff24b796470b6b3ef4dfa2a790041e
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.test import TestCase from django.test import Client from django.urls import reverse from django.contrib.auth.models import User from wikisensei.wiki.services import get_root_wiki from wikisensei.wiki.services import add_wiki from wikisensei.su...
soasme/wikisensei
wikisensei/web/tests.py
Python
gpl-3.0
5,355
[ "VisIt" ]
66b1f836ca0482abcb9cf803c5c4ed8481898a31e4accff3f30f9bdc37cb8706
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 """ An implementation of a Deep Markov Model in Pyro based on reference [1]. This is essentially the DKS variant outlined in the paper. The primary difference between this implementation and theirs is that in our version any KL div...
uber/pyro
examples/dmm.py
Python
apache-2.0
25,357
[ "Gaussian" ]
a7a0ec8fd8d921b1c012bfcc6eebf0fec6567f0e4c3a6b9c32385da5a9c61937
# encoding:utf-8 # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2009 Benny Malengier # # 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 # ...
sam-m888/gramps
gramps/plugins/textreport/textplugins.gpr.py
Python
gpl-2.0
14,557
[ "Brian" ]
abf21ab09bae85bbb52da76a14b49d3e35a5c76306cc2fe1f1b0d72dbd6ebdc2
# $Id$ # # Copyright (C) 2001-2010 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from rdkit import Chem ...
adalke/rdkit
rdkit/Chem/Descriptors.py
Python
bsd-3-clause
5,822
[ "RDKit" ]
df3feb3cf590c5b614f4dfff14149aaa8ac38ecea611366b8972104b89acb21b
from __future__ import absolute_import, division, print_function # ---------------------------------------------------------------------------- # 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 ...
Kleptobismol/scikit-bio
skbio/util/_misc.py
Python
bsd-3-clause
8,357
[ "scikit-bio" ]
9e537cdfe5f37bcf937911a434e50635e812f421dd5f08714694370af4f85f21
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkExtractDataOverTime(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
nagyistoce/devide
modules/vtk_basic/vtkExtractDataOverTime.py
Python
bsd-3-clause
499
[ "VTK" ]
1bf3b1f8db52e596c7088af7cb71e325ce177fa18bf7c278754111961082cebf
import tensorflow as tf import numpy as np from skimage.segmentation import slic as skimage_slic NUM_SEGMENTS = 400 COMPACTNESS = 30.0 MAX_ITERATIONS = 10 SIGMA = 0.0 MIN_SIZE_FACTOR = 0.5 MAX_SIZE_FACTOR = 3.0 CONNECTIVITY = True def slic(image, num_segments=NUM_SEGMENTS, compactness=COMPACTNESS, max_iter...
rusty1s/graph-based-image-classification
segmentation/algorithm/slic.py
Python
mit
4,262
[ "Gaussian" ]
dc9463ec2f020df971a88f85fcad22be6b9e088848de6c665c7b700706602963
# -*- coding:utf-8 -*- # Default Django settings. Override these with settings in the module # pointed-to by the DJANGO_SETTINGS_MODULE environment variable. # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module depends on the settings. gettext_noop = lambda ...
wfxiang08/django178
django/conf/global_settings.py
Python
bsd-3-clause
23,348
[ "VisIt" ]
f8aa7518f49d2e0130b72ec2dfb3ff56fc68cafbf2f30d7d3c17f0b1d3657826
u""" Module for recoding matrices. date: 25/08/2016 """ import sys import os import subprocess import re import copy import warnings from Bio.Data import CodonTable from p4.alignment import Alignment import p4.func from p4.var import var from p4.p4exceptions import P4Error from p4.func import read from p4.code_utils im...
pgfoster/p4-phylogenetics
p4/alignment_recoding.py
Python
gpl-2.0
46,604
[ "Biopython" ]
9a146e2dc9101593ae94108778d10ae4d2ce97403d88f3bcd8362d76de2d48a0
#* 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 from . impo...
harterj/moose
python/MooseDocs/extensions/common.py
Python
lgpl-2.1
1,370
[ "MOOSE" ]
7b081d1fdf27ddd2d11600fcb11e24b54d8e90f632af61d1faa2f5dc8148b28a
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2013 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/test_fields.py
Python
gpl-2.0
1,564
[ "VisIt" ]
ee734766eac874f2ef737b73e4263c2a20e6b1877a696cd84a6d2b2b9d88445f
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
BlueBrain/NeuroM
neurom/io/utils.py
Python
bsd-3-clause
8,311
[ "NEURON" ]
b1ca1837630aef568f8d5fdaf83202103ccf8dc32cfa6bb0211ddd866fe8a337
# -*- coding: utf-8 -*- """ Tests the "preview" selector in the LMS that allows changing between Staff, Learner, and Content Groups. """ from textwrap import dedent from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPa...
cpennington/edx-platform
common/test/acceptance/tests/lms/test_lms_user_preview.py
Python
agpl-3.0
12,620
[ "VisIt" ]
be3ea65e3b8c5b73b26aa8099436c0968d8d1b1f6989096f0348caa9c00fa438
import numpy import requests from elastic_backend import Backend from browbeat_run import browbeat_run from util import connect_crdb metrics_list = ["overcloud-controller-0.cpu-*.cpu-system", "overcloud-controller-0.cpu-*.cpu-user", "overcloud-controller-0.cpu-*.cpu-softirq", ...
jkilpatr/Browbeat-ML
bml/lib/timeseries_uploaddb.py
Python
apache-2.0
4,243
[ "Elk" ]
f901fdf344eaccff3d503b07f3dc39e43ceb2a16aa11e0cf78ff675c900847a6
# -*- coding: utf-8 -*- """ equil.py ======== .. argparse:: :module: time :func: create_parser :prog: time .. moduleauthor:: Adam Gagorik <adam.gagorik@gmail.com> """ import langmuir as lm import pandas as pd import collections import argparse import os desc = """ Check simulation(s) for time data. """ ...
LangmuirSim/langmuir
LangmuirPython/analyze/time.py
Python
gpl-2.0
5,103
[ "Gaussian" ]
c91d81dfd3e0d26acdcd23d38827a8972e5988db1e23790aef1620dba05fe13c
""" This module contains helpers for various statistical calculations. """ import logging logger = logging.getLogger(__name__) from enum import Enum import numpy as np import pandas as pd import scipy.stats import typing from typing import Any, Callable, Iterable, Optional, Tuple ### # KL-divergence helpers ### def ...
bmmalone/pymisc-utils
pyllars/stats_utils.py
Python
mit
15,696
[ "Gaussian" ]
8c6e20b47589382c9fdeaac5cf9c25e8ef406916a434fa51fe7d9a74b2da9fc4
# coding: utf-8 from __future__ import unicode_literals """ Created on Jan 25, 2012 """ __author__ = "Anubhav Jain, Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Anubhav Jain" __email__ = "ajain@lbl.gov" __date__ = "Jan 25, 2012" import unittest import...
rousseab/pymatgen
pymatgen/apps/battery/tests/test_insertion_battery.py
Python
mit
4,696
[ "pymatgen" ]
14cc16c4b928bce07b7aa406086d2be27f7fc2a8fb7edacd79bbd7e7930c7975
# -*- encoding: utf-8 -*- # Yuuno - IPython + VapourSynth # Copyright (C) 2017 StuxCrystal (Roland Netzsch <stuxcrystal@encode.moe>) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, eit...
stuxcrystal/yuuno
yuuno_ipython/ipython/apps/preview.py
Python
lgpl-3.0
5,004
[ "MOE" ]
5ff912bb606fa610b90fee2d5f7486a11bbd6f67bdeefc876e4d99ddd159467e
# Principal Component Analysis Code : from numpy import mean,cov,double,cumsum,dot,linalg,array,rank,size,flipud from pylab import * import numpy as np import matplotlib.pyplot as pp #from enthought.mayavi import mlab import scipy.ndimage as ni import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import ro...
tapomayukh/projects_in_python
classification/Classification_with_kNN/Single_Contact_Classification/Final/best_kNN_PCA/4-categories/96/test11_cross_validate_categories_96_no_motion_1200ms.py
Python
mit
4,743
[ "Mayavi" ]
14f627bd1aa8d75f68171468f9e23a4cc7733b5b2a579288a24c0919092a83b2
examples = dict( disable_training_metrics=""" >>> from h2o.estimators import H2OSupportVectorMachineEstimator >>> splice = h2o.import_file("http://h2o-public-test-data.s3.amazonaws.com/smalldata/splice/splice.svm") >>> svm = H2OSupportVectorMachineEstimator(gamma=0.01, ... ran...
h2oai/h2o-3
h2o-bindings/bin/custom/python/gen_psvm.py
Python
apache-2.0
7,069
[ "Gaussian" ]
2907af69b533cdec9d7e1440b103231a2b5d52c9e2cd29831da2833dd7d7b161
from splinter import Browser browser = Browser() browser.visit('https://facebook.com') browser.fill('email','nishaanthguna@gmail.com') browser.fill('pass','googleiswaiting') browser.find_by_id('u_0_n').click()
gameFace22/Programs-and-Scripts.
fbsplinter.py
Python
mit
210
[ "VisIt" ]
4b06829504bc50dfac3fb1de4e3fda9490d2e5db28603471df976050deb796bc
# -*- coding: utf-8 -*- # Author: Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) from distutils.version import LooseVersion import gc import os import os.path as op from pathlib import Path import shutil import sys import warnings import pytest # For some unknown reason, on Travis-xenial there are s...
Eric89GXL/mne-python
mne/conftest.py
Python
bsd-3-clause
21,428
[ "Mayavi", "VTK" ]
badcbf761291691a5597847c0860649dfdce453fee55e24d762f6c8bb103d488
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
google-research/google-research
poem/cv_mim/models.py
Python
apache-2.0
30,548
[ "Gaussian" ]
126f332f820d5ede1e75e1f204d7eb35a7725a2864f21af8d451b398b3a25e68
import sys sys.path.insert(1, "../../../") import h2o, tests import random def random_attack(): def attack(family, train, valid, x, y): kwargs = {} kwargs['family'] = family gaussian_links = ["inverse", "log", "identity"] binomial_links = ["logit"] poisson_links =...
kyoren/https-github.com-h2oai-h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_random_attack_medium.py
Python
apache-2.0
5,231
[ "Gaussian" ]
5bd49939474e6024808bc476993e592ee3ffbf38efc793db94db8857e9f1edba
import os import re import shutil import json import collections import webbrowser import subprocess from cudatext import * from urllib.parse import unquote from .work_local import * from .work_remote import * from .work_dlg_config import * from .work_github import * from .work_cudatext_updates__fosshub import check_cu...
vhanla/CudaText
app/py/cuda_addonman/__init__.py
Python
mpl-2.0
20,035
[ "VisIt" ]
8bf4534304aeee95557deea9a4cc789c568c0baffdbb81d97eb9af192f79ddab
'''This script demonstrates how to build a variational autoencoder with Keras and deconvolution layers. Reference: "Auto-Encoding Variational Bayes" https://arxiv.org/abs/1312.6114 ''' import numpy as np import matplotlib.pyplot as plt from scipy.stats import norm from keras.layers import Input, Dense, Lambda, Flatte...
pratikgujjar/DeepIntent
code/vae_model/mnist_vae.py
Python
mit
6,844
[ "Gaussian" ]
8138bb60b639c8012d82ccd47b8f53a46e01b80fd36b6545a10cf160d85a974a
# encoding: utf-8 """colors.py - select how to color the atoms in the GUI.""" import gtk from gettext import gettext as _ from ase.gui.widgets import pack, cancel_apply_ok, oops, help import ase from ase.data.colors import jmol_colors import numpy as np import colorsys named_colors = ('Green', 'Yellow', 'Blue', 'Red...
grhawk/ASE
tools/ase/gui/colors.py
Python
gpl-2.0
29,490
[ "ASE", "Jmol" ]
13fd9e59e1fa65d7db95dc8449ac9e12ca3e99f70018fd6781c38f063f5c46fb
# This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2006-2014, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Public version 2.1 or l...
Clyde-fare/cclib
test/testvib.py
Python
lgpl-2.1
7,291
[ "Gaussian", "ORCA", "cclib" ]
f89dfddb926a9352e60bf8d30382eab62ba7082290cb9887be09190240a8eaf4
# # @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/driver/gaussian_n.py
Python
gpl-2.0
7,238
[ "Gaussian", "Psi4" ]
0029aeea5a906a2437d8b67a2918c2aa9bab19c9377906ffbf224d3192ae0247
# Copyright 2003 by Bartek Wilczynski. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Parsing AlignACE files: AlignAceParser """ from Bio.Motif import Motif from Bio.Alphab...
bryback/quickseq
genescript/Bio/Motif/Parsers/AlignAce.py
Python
mit
1,718
[ "Biopython" ]
839fc565422a52151966147a2034a7b2d33bf7b951fca09142a9ad37b415a5a6
from ase import Atom from ase.units import Hartree from gpaw import GPAW, FermiDirac from gpaw.cluster import Cluster from gpaw.test import equal h =.3 box = 4. energy_tolerance = 0.0004 l=2 # d-orbitals U_ev=3 # U in eV U_au=U_ev / Hartree # U in atomic units scale=1 ...
ajylee/gpaw-rtxs
gpaw/test/Hubbard_U_Zn.py
Python
gpl-3.0
985
[ "ASE", "GPAW" ]
219b96dc967d5b6008effded5e43407022a3508421f7bac138e319b810fc37b0
import csv, os from Products.CMFCore.utils import getToolByName def get_folder(self, type, name): folder_brains = self.queryCatalog({'portal_type':type, 'title':name})[0] return folder_brains.getObject() def create_object_in_directory(self, container, type): id = container.generateUniqueId(type) conta...
uwosh/UWOshMusicRecruiting
Extensions/import_visits.py
Python
gpl-2.0
3,594
[ "VisIt" ]
2a255b3b1e015790e35a463cae58f3d65cfb746b1791512735f227613ffeff74
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 from typing import Dict, Optional, Sequence import libcst as cst from libcst._nodes.internal import CodegenState, visit_required def make_aref(name: str, idx: cst.BaseEx...
lowRISC/opentitan
hw/ip/otbn/util/docs/get_impl.py
Python
apache-2.0
18,317
[ "VisIt" ]
9ec0df17a989cb56587f95bd16d969570782b851fe406fb95777944767bba2c6
import patternatom import util import collections import logging max_trials = 8 # algorithm is exponential in this number! Can be tweaked up and down, distinguishes best of the correct choices but not overall correctness def best(patterns,extended): # Enumberate daytimes dts = collections.defaultdict(...
ieb/timetables
python/lib/besttmplcalc.py
Python
agpl-3.0
2,713
[ "BLAST" ]
023f1befc0ce95268fe048b33d872215596e59e7909d409b2e01ba4c8fa4ec17