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
import telebot from telebot.types import LabeledPrice, ShippingOption token = '1234567890:AAAABBBBCCCCDDDDeeeeFFFFgggGHHHH' provider_token = '1234567890:TEST:AAAABBBBCCCCDDDD' # @BotFather -> Bot Settings -> Payments bot = telebot.TeleBot(token) # More about Payments: https://core.telegram.org/bots/payments prices ...
sgomez/pyTelegramBotAPI
examples/payments_example.py
Python
gpl-2.0
4,308
[ "VisIt" ]
2840afd25016346e036ae8f0ebba26a866e851dda999ceb41d784c786f65d2ee
import ocl import camvtk import time import vtk import datetime import math def drawPoints(myscreen, clpoints, ccpoints): c=camvtk.PointCloud( pointlist=clpoints, collist=ccpoints) c.SetPoints() myscreen.addActor(c ) def drawFiber(myscreen, f, fibercolor=camvtk.red): inter = f.getInts() for i in ...
AlanZatarain/opencamlib
scripts/fiber_02_onetriangle_drawfibers.py
Python
gpl-3.0
3,692
[ "VTK" ]
f3e696eaedaf1ffaabccd6bb21d5eb920e13b82f66f1d31dec001ad9d01425fe
""" Learning functions for Projections. For example, CFProjectionLearningFunctions compute a new set of ConnectionFields when given an input and output pattern and a set of ConnectionField objects. $Id$ """ __version__ = "$Revision$" from numpy import ones,zeros import numpy.oldnumeric as Numeric from numpy.oldnume...
jesuscript/topo-mpi
topo/learningfn/projfn.py
Python
bsd-3-clause
12,442
[ "NEURON" ]
a21e549c0715817d7669767f5bceb46745daa64f4e6e0239b89d9cd1c8947ffb
from __future__ import print_function, absolute_import, division, unicode_literals """Convert to and from Roman numerals""" __author__ = "Mark Pilgrim (f8dy@diveintopython.org)" __version__ = "1.4" __date__ = "8 August 2001" __copyright__ = """Copyright (c) 2001 Mark Pilgrim This program is part of "Dive Into Python...
profxj/xastropy
xastropy/outils/roman.py
Python
bsd-3-clause
2,817
[ "VisIt" ]
0b31dda1994fcb9b56d01dab66c08caec66d053cdbbf0890fd39ae303fc4330d
#!/usr/bin/env python ############################################################################################## # # # regrid_emissions_N96e.py # # # Requirements: # Iris 1.10, time, cf_units, numpy # # # This Python script has been written by N.L. Abraham as part of the UKCA Tutorials: # http://www.ukca.ac.u...
acsis-project/emissions
emissions/python/timeseries_1950-2020/regrid_iC5H12_emissions_n96e_360d.py
Python
gpl-3.0
18,872
[ "NetCDF" ]
8b63cdf346b7104badf9e96eb9e012335fa6ff6951a66298c45b02c99636907c
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
Chuban/moose
python/chigger/tests/range/min.py
Python
lgpl-2.1
1,362
[ "MOOSE" ]
d386c1f76931f9e4971ed8098ce4db5d7f694cc403af52bdb6fbe0d779d54c3a
# -*- 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 from dj...
arsenalstriker14/imagetraccloud
config/urls.py
Python
mit
6,487
[ "VisIt" ]
0878b8d3065a8ca14be00b7ec8594ee761ff4b12a6127d8d6dd6894763b5e829
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # Name: PyZDDEunittest.py # Purpose: PyZDDE unit test using the python unittest framework # # Licence: MIT License # This file is subject to the terms and conditions of the MIT License. #...
indranilsinharoy/PyZDDE
Test/pyZDDEunittest.py
Python
mit
86,617
[ "Gaussian" ]
a675cb3c1d1696f21d96daf99bb3fdf6906589185f0c01277105e20e698e5c7f
# This file is part of OpenHatch. # Copyright (C) 2010 Parker Phinney # Copyright (C) 2010 Karen Rustad # Copyright (C) 2011 Jack Grigg # Copyright (C) 2009, 2010 OpenHatch, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as pub...
jledbetter/openhatch
mysite/search/models.py
Python
agpl-3.0
31,607
[ "exciting" ]
dfa917e480db7be793c99a4abd009e02cc1ffd6d45985a5230a07b46666126e2
""" Test basic molecular features. """ import numpy as np import unittest from rdkit import Chem from deepchem.feat.basic import MolecularWeight, RDKitDescriptors class TestMolecularWeight(unittest.TestCase): """ Test MolecularWeight. """ def setUp(self): """ Set up tests. """ smiles = 'CC(=...
joegomes/deepchem
deepchem/feat/tests/test_basic.py
Python
mit
1,025
[ "RDKit" ]
cef7b9c9e0ad487e99db265fab901c6f85b0d0c3aeab9497a99378c3d91510ba
#!/usr/bin/env python2.7 """ Simple sequencing file statistics. Gather the following numbers: * Percentages of bases with quality at least Q40, Q30, and Q20 from FASTQ files. * Percentages of reads whose average quality is at least Q40, Q30, and Q20. Requirements: * Python == 2.7.x * Biopython...
ablifedev/ABLIRC
ABLIRC/bin/public/seq_quality_stat.py
Python
mit
3,339
[ "Biopython" ]
e47222303e661fd7891a29492ce0fc8b403e44a0b54dba91131d8aff41005ccc
# 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 HMMER domain table output format.""" from itertools import cha...
zjuchenyuan/BioWeb
Lib/Bio/SearchIO/HmmerIO/hmmer3_domtab.py
Python
mit
12,530
[ "Biopython" ]
bfe81c72a6aabd0f49f98b85e4165a71881824505249216353d66dff8e6ea0cc
""" Module defining halo model components for halo exclusion. """ import numpy as np from hmf import Component from cached_property import cached_property from scipy import integrate as intg import warnings from hmf._internals import pluggable try: from numba import jit USE_NUMBA = True except ImportError: #...
steven-murray/halomod
src/halomod/halo_exclusion.py
Python
mit
18,292
[ "TINKER" ]
2bddf09dd9a63d90c3b0f56989a198d492d47394e808bbdb3c7928560e513116
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Nodes for PPAPI IDL AST.""" from idl_namespace import IDLNamespace from idl_node import IDLAttribute, IDLFile, IDLNode from idl_option import GetOpti...
aYukiSekiguchi/ACCESS-Chromium
ppapi/generators/idl_ast.py
Python
bsd-3-clause
4,288
[ "VisIt" ]
bfccc155a18da08a3892281038224503b4e4aeb0f1fa0f3837303a562520b2dd
#!/usr/bin/python ## Global modules import os from os.path import join import logging import shutil import pysam ## Local modules import mglobals import helpers import snp2gene import snps_combine log = logging.getLogger('pipeline') def trim(): log.info('Beginning trim') os.chdir(mglobals.samples_path) ...
d-quinn/bio_quinn2013
gene_estimates/pipeline-pairedend_altfastas.py
Python
mit
16,026
[ "pysam" ]
3d540f2c1f536bfa61a4ca809c5724cec74483e8aad5d036988b5030e34c7ee1
#!/usr/bin/env python # -*- coding: utf-8 -*- # TAMkin is a post-processing toolkit for normal mode analysis, thermochemistry # and reaction kinetics. # Copyright (C) 2008-2012 Toon Verstraelen <Toon.Verstraelen@UGent.be>, An Ghysels # <An.Ghysels@UGent.be> and Matthias Vandichel <Matthias.Vandichel@UGent.be> # Center ...
molmod/tamkin
tamkin/examples/011_ethyl_ethene_lot/reaction.py
Python
gpl-3.0
11,623
[ "Gaussian" ]
305fe2a8d60cefa6734a242f0b0606f261a158662b18d3baf96ad2323b9e0f5a
from __future__ import division, print_function, absolute_import from scipy import stats import numpy as np from numpy.testing import assert_almost_equal, assert_, assert_raises, \ assert_array_almost_equal, assert_array_almost_equal_nulp, run_module_suite def test_kde_1d(): #some basic tests comparing to no...
ales-erjavec/scipy
scipy/stats/tests/test_kdeoth.py
Python
bsd-3-clause
6,412
[ "Gaussian" ]
a11d9c10dfa4f42b80546a1a7d9493f69492d1184dc8ea72340c7b84cd2e2c2f
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
ashutoshvt/psi4
psi4/driver/qcdb/util/__init__.py
Python
lgpl-3.0
984
[ "Psi4" ]
716c287c4009a3820c0f569d6db4c494879dddfc4854e0980debeba81c740017
#!/usr/bin/env python import pybedtools import pysam import vcf import re import vcf import numpy as np from scipy.stats import mannwhitneyu import filt_cnvs def create_bedTools(cnv_file): cnv_bed = "" with open(cnv_file, 'r') as f: for line in f: line = line.replace("\n","") ...
huguesfontenelle/cnvScan
src/annotate.py
Python
gpl-3.0
16,482
[ "pysam" ]
80620fdc11f4d1618418e72a80dcb9cf0668c0b4c0ddc67c7c813559d42d9374
#!/usr/bin/python ###################################################################### # Ascii TMS Viewer # #-------------------------------------------------------------------- # Brian Hone | Initial Release #-------------------------------------------------------------------- # ...
flailingsquirrel/asciimapper
Wget.py
Python
bsd-3-clause
5,007
[ "Brian" ]
97ca5d2d710183640ef91354c6ec5867acc46678851417a19a5335652c30368d
"""The Mayavi Envisage application. """ # Author: Prabhu Ramachandran <prabhu@enthought.com> # Copyright (c) 2008-2015, Enthought, Inc. # License: BSD Style. # Standard library imports. import sys import os.path import logging # Enthought library imports. from apptools.logger.api import LogFileHandler, FORMATTER from...
dmsurti/mayavi
mayavi/plugins/app.py
Python
bsd-3-clause
8,778
[ "Mayavi" ]
98643644e89482f4b8fdc1df35d33f0f50420939904597396e0e696262b8fff4
#!/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...
harterj/moose
python/MooseDocs/test/extensions/test_katex.py
Python
lgpl-2.1
8,041
[ "MOOSE" ]
62a32a125c5b80c8969caa954768ceaad6cb674dc1b0aea4793f8682c58aff68
# 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...
espressomd/espresso
samples/immersed_boundary/sampleImmersedBoundary.py
Python
gpl-3.0
3,438
[ "ESPResSo", "VTK" ]
31d0222756d85352221a9218d309d5a022bfb93307498f4d6f71b28298400baa
#!/usr/bin/env python import os,sys from os.path import join,abspath,split import inspect from collections import OrderedDict as odict import numpy as np from numpy.lib.recfunctions import stack_arrays import fitsio import ugali.utils.projector from ugali.utils.projector import gal2cel, cel2gal import ugali.utils.idl...
kadrlica/ugali
ugali/candidate/associate.py
Python
mit
16,624
[ "Galaxy" ]
689dd7c854558f8fd0ebe8f6d2b40997424c2e85e5db77cd816172759cbc0794
# $HeadURL$ __RCSID__ = "$Id$" import os import os.path try: import hashlib as md5 except: import md5 from DIRAC import gLogger, gConfig, S_OK, S_ERROR from DIRAC.ConfigurationSystem.Client.PathFinder import getServiceSection from DIRAC.FrameworkSystem.private.monitoring.ColorGenerator import ColorGenerator from DI...
Sbalbp/DIRAC
FrameworkSystem/private/monitoring/RRDManager.py
Python
gpl-3.0
10,184
[ "DIRAC" ]
a345d889f9f51bbb2e587d99820dce53059b2a9451c14ffe3da0d6312a477e26
#! /usr/bin/env python3 import sys from SWEET import * p = JobGeneration() p.compilecommand_in_jobscript = False # # Run simulation on plane or sphere # p.compile.program = 'swe_sphere' p.compile.plane_or_sphere = 'sphere' p.compile.plane_spectral_space = 'disable' p.compile.plane_spectral_dealiasing = 'disable'...
schreiberx/sweet
benchmarks_sphere/rexi_mass_energy_galewsky_martinium/jobs_create.py
Python
mit
10,962
[ "Gaussian" ]
1b324a48509c7d29240e24e70c81cc923a77aa7b4719c56da27d502ca65f537e
from django.db import models from django.contrib.auth.models import User import requests import json from datetime import datetime, timedelta import dateutil.parser from pushbullet import PushBullet from settings_local import PUSHBULLET_KEY, GITLAB_KEY, GITLAB_URL import html5lib from django.utils.crypto import get_ran...
arlyon/codestreak
models.py
Python
mit
5,337
[ "VisIt" ]
27cd7d12ec003b49730e3d0d63f4f38d68eaa446039da26eadd85157ff1f0912
import os import os.path import sys sys.path.insert(0, os.path.abspath('lib')) from ansible.release import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print("Ansible now needs setuptools in order to build. Install it using" " your package manager (us...
gptech/ansible
setup.py
Python
gpl-3.0
3,121
[ "Galaxy" ]
1bf733c54188d16ea04795087b217d071776348bf42c4e6c78b5fc6712b8dd1d
#!/usr/bin/env python -i # preceeding line should have path for Python on your machine # gui.py # Purpose: control a continuously running LAMMPS simulation via a Tkinter GUI # Syntax: gui.py in.lammps Nfreq # in.lammps = LAMMPS input script # Nfreq = query GUI every this many steps # IMPORTANT: thi...
arielzn/lammps
python/examples/gui.py
Python
gpl-2.0
2,890
[ "LAMMPS" ]
abd98aed4f274651d1242651e5f9d84f29a7116b9b170ac403e78e514bb09eb2
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2015, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the # following terms and conditions apply: # # This pro...
numenta/nupic.rogue
avogadro/agent.py
Python
agpl-3.0
2,347
[ "Avogadro" ]
1c94cbe0d30aa4260fb288a79d188addb7ae562219019c79ab23407b9d9b172e
from numpy import exp,concatenate,array,float,r_ from pylab import plot,ylabel,xlabel,gca,draw,legend,subplot,show,text,gcf,rand from numpy import zeros,arange,ones,convolve,floor import numpy as np import matplotlib as mpl mpl.rcParams['lines.linewidth'] = 3 mpl.rcParams['figure.figsize'] = (10,8) mpl.rcParams['axes....
bblais/Plasticnet
splikes/utils.py
Python
mit
24,339
[ "NEURON" ]
8d5e37636d15dd34eba996ee8ce8329681a988b5051607fd9f8eae71ba76a146
from __future__ import absolute_import, print_function from . import common_info from . import c_spec #---------------------------------------------------------------------------- # The "standard" conversion classes #---------------------------------------------------------------------------- default = [c_spec.int_c...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/scipy/weave/converters.py
Python
agpl-3.0
2,746
[ "VTK" ]
4c009f00ba8d1d46f8ffb097d79fc63ef7d62622d549f30769f62265b3d9f9d9
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # Copyright (C) 2010-2014 OpenERP s.a. (<http://openerp.com>). # # This program is free software: you ca...
BT-astauder/odoo
openerp/tools/misc.py
Python
agpl-3.0
45,247
[ "VisIt" ]
ef3b625c955b7f1d6b1044459855fd0c93fbfdec5430e876173d0692f58b907d
# ============================================================================ # # 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/controls/delegates/booldelegate.py
Python
gpl-2.0
4,796
[ "VisIt" ]
5d9707476beb24aead1e22f39ae7dd25364f7b5dba3f3f9434e666b268869125
#!/usr/bin/env python # Written by Soo Lee and Carl Vitzthum # This code is based on the following open-source projects: # pytabix (https://github.com/slowkow/pytabix) # pysam (https://github.com/pysam-developers) # The Github repo for this project is: # https://github.com/4dn-dcic/pairix # IMPORTANT: use Python 2.7 or...
4dn-dcic/pairix
setup.py
Python
mit
2,134
[ "pysam" ]
71ee7be862cd227ef0d4bca8286cc6852bb63a9f36db40f9c12cd24ecebfe8ce
""" Soft Actor-Critic (SAC) ------------------ Actor policy in SAC is stochastic, with off-policy training. And 'soft' in SAC indicates the trade-off between the entropy and expected return. The additional consideration of entropy term helps with more explorative policy. And this implementation contains an automatic...
zsdonghao/tensorlayer
examples/reinforcement_learning/tutorial_SAC.py
Python
apache-2.0
19,736
[ "Gaussian" ]
3d003f5a30536189e0b822b72623755051e9217dd4be7647368ff0d35b9d6eb7
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
dongjoon-hyun/tensorflow
tensorflow/python/ops/distributions/normal.py
Python
apache-2.0
9,800
[ "Gaussian" ]
875666b4cdbfe946c7dfb242ff09f123466c7b1cddf8bfab004664c60b2aa8bc
import datetime import math import time from django.utils.tzinfo import FixedOffset from canvas.redis_models import RedisHash, RedisKey from canvas import knobs from django.conf import settings class Sticker(object): """ A datastructure to hold a Canvas sticker definition. Note that the `details` prope...
drawquest/drawquest-web
website/canvas/stickers.py
Python
bsd-3-clause
21,635
[ "exciting" ]
67dcfb86298b82d8086543b40aca11f39f38358c4a7e11f3ad453c5087dde66c
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
xguse/scikit-bio
skbio/stats/ordination/tests/test_correspondence_analysis.py
Python
bsd-3-clause
7,852
[ "scikit-bio" ]
956a6a58726b22358323e9cc249d822e0304d840627a575eaede9a07f814c4e4
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-15 15:10 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('visit', '0103_visit_answerset'), ] operations = [ migrations.RemoveField( ...
koebbe/homeworks
visit/migrations/0104_remove_visit_type.py
Python
mit
384
[ "VisIt" ]
f7e7082c26c68ca23cb67a7b3a078daf67349ff31600cb75bf10d5dcacd70520
# -*- coding: utf-8 -*- # ############################################################################## # # Authors: Adrien Peiffer # Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Genera...
acsone/l10n-belgium
account_companyweb/__openerp__.py
Python
agpl-3.0
2,962
[ "VisIt" ]
07076977d05dc0d4c317bc10e01bd3cd783aec552c7a5e93094b8382c7c8c89a
import py import pytest import cfme import subprocess import sys ROOT = py.path.local(cfme.__file__).dirpath() MODULES = sorted(x for x in ROOT.visit("*.py") if 'test_' not in x.basename) KNOWN_FAILURES = set(ROOT.dirpath().join(x) for x in[ 'cfme/utils/ports.py', # module object 'cfme/utils/dockerbot/check...
anurag03/integration_tests
cfme/tests/test_modules_importable.py
Python
gpl-2.0
1,129
[ "VisIt" ]
26d74a1423331e087529b99d15a7d51a17dae1e9e3d7b65e9fff126afc2209aa
#!/usr/bin/env python # # simple script to repeatedly publish an MQTT message # # uses the Python MQTT client from the Paho project # http://eclipse.org/paho # # Andy Piper @andypiper http://andypiper.co.uk # # 2011/09/15 first version # 2012/05/28 updated to use new pure python client from mosquitto # 2014/02/03 up...
xively/ee_live_2014
python/pull-blue.py
Python
mit
920
[ "BLAST" ]
899f0bf41a7d44022f530ba639821c29d0a81206084740a3813e7d02528a105f
#!/usr/bin/env python # -*- coding: utf-8 """This file contains Kegg related classes.""" import os import shutil import glob import re import copy import statistics import json import time import hashlib import pandas as pd import numpy as np from scipy import stats import anvio import anvio.db as db import anvio.uti...
meren/anvio
anvio/kegg.py
Python
gpl-3.0
303,026
[ "VisIt" ]
9e72f147d44b269cf7467cb35c5803e0ce91a6885fb077918d9dc42d601560d2
#!/usr/bin/python from __future__ import print_function import os import glob import argparse import numpy as np import sys from dicom_tools.make_histo import make_histo # from dicom_tools.read_files import read_files from dicom_tools.FileReader import FileReader import ROOT from array import array from dicom_tools.myr...
carlomt/dicom_tools
bin/dicom_make_histo_indir.py
Python
mit
19,988
[ "Gaussian" ]
0cb4e039485d74630c17bc6f19f604996f709b82c1bce6d5ca6fe7a5609f5e3a
''' Random Field Theory expectations and probabilities. The core RFT computations are conducted inside **prob.rft**, and the **RFTCalculator** class serves as a high-level interface to **prob.rft** ''' # Copyright (C) 2015 Todd Pataky # version: 0.1.3 (2015/12/27) from math import pi,log,sqrt,exp import numpy as ...
0todd0000/rft1d
rft1d/prob.py
Python
gpl-3.0
21,872
[ "Gaussian" ]
7c1e60957680e97e646b5d0d306994040ec14079225403c3865899ab2e0b28a8
""" Tests for get_smiles_map.py. """ import shutil import tempfile import unittest from rdkit import Chem from vs_utils.scripts.get_smiles_map import main, parse_args from vs_utils.utils import read_pickle class TestGetSmilesMap(unittest.TestCase): """ Tests for get_smiles_map.py. """ def setUp(self...
rbharath/vs-utils
vs_utils/scripts/tests/test_get_smiles_map.py
Python
gpl-3.0
2,991
[ "RDKit" ]
823d7ec4b9e13445a4f0ba22f4a4f4ffd55e6c434636e41889f30be495cee37e
""" Provides some visualization capabilities. """ # IMPORTS try: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm except ImportError as err: # Could not import pyplot # ... do some stuff here raise err # DEBUGGING from IPython import embed as IP...
pysofe/pysofe
pysofe/visualization.py
Python
bsd-3-clause
22,194
[ "Gaussian" ]
e4468447f734bdbe0c4712c25c56e0c4cae9bf23d4f9402a39811abdbc6980c6
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/presentations/lib/impresscontroller.py
Python
gpl-2.0
18,222
[ "Brian" ]
b5e83a1300e43d023c86b189f4ba1d12a71aba940df079e39be7abe62b56265d
# # Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
pyzoo/zoo/orca/data/pandas/__init__.py
Python
apache-2.0
764
[ "ORCA" ]
3828f185b59818105dd223099fb8042d7f28616369550744dfbbcbf8ff4159c8
import os import logging from shutil import copyfile import time from collections import OrderedDict import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * from CIP.logic.SlicerUtil import SlicerUtil from CIP.logic import Util from CIP.logic import geometry_topology_data as gtd # # CIP_PointsLabelli...
acil-bwh/SlicerCIP
Scripted/CIP_PointsLabelling/CIP_PointsLabelling.py
Python
bsd-3-clause
28,331
[ "VTK" ]
34de21726260dcdfa7384d861ca9079d0a38ab1fcfc391fd3be2e2d152e06e8c
#!/usr/bin/env python """ Kukkaisvoima a lightweight weblog system. Copyright (C) 2006-2012 Petteri Klemola Kukkaisvoima is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. Kukkaisvoima is distrib...
druss316/G-Harvestor
html/blog.py
Python
gpl-3.0
57,034
[ "Galaxy" ]
b91619528dad9945d3bd7451501e992f7fe3c28d1ef67e9fec3fcea5258270ec
""" Explore integration of rotationally symmetric shapes """ from __future__ import print_function, division import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import numpy as np from numpy import pi, sin, cos, sqrt, exp, expm1, degrees, log10 from numpy.polynomial.legendre import leggauss...
SasView/sasmodels
explore/symint.py
Python
bsd-3-clause
5,187
[ "Gaussian" ]
424fc51bd5c786a5ce37000243547130af721e5c1a4fc0455048eece5622879f
""" Views for user API """ from completion.exceptions import UnavailableCompletionData from completion.utilities import get_key_to_last_completed_block from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user from django.contrib.auth.signals import user_logged_in from django.db ...
eduNEXT/edx-platform
lms/djangoapps/mobile_api/users/views.py
Python
agpl-3.0
15,353
[ "VisIt" ]
647d7b19af18947bbeda79fb01b576f4aa56995a31a47ee3a975842fa4b8f8d8
#!/usr/bin/python # Copyright 2017 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 applicable law or agr...
google/myelin-acorn-electron-hardware
fx2_tube_cartridge_adapter/pcb/fx2_tube_cartridge_adapter.py
Python
apache-2.0
18,242
[ "Elk" ]
8e7d724819f7e3a5df281609b6cfd7429f2f52ab12caa90d629f036f97fe5747
""" Test functions for multivariate normal distributions. """ from __future__ import division, print_function, absolute_import from numpy.testing import (assert_allclose, assert_almost_equal, assert_array_almost_equal, assert_equal, assert_raises, run_module_suite...
ales-erjavec/scipy
scipy/stats/tests/test_multivariate.py
Python
bsd-3-clause
30,527
[ "Gaussian" ]
10506ab6d578bee9f6d2b35f504e95892c3e5d0e39a7d2898788cdece96c6ff3
""" Calculate driving_force due to ZPF tielines. The general approach is similar to the PanOptimizer rough search method. 1. With all phases active, calculate the chemical potentials of the tieline endpoints via ``equilibrium`` calls. Done in ``estimate_hyperplane``. 2. Calculate the target chemical potentials, wh...
PhasesResearchLab/ESPEI
espei/error_functions/zpf_error.py
Python
mit
21,071
[ "pycalphad" ]
8b48aac3431f6b934ac3da5a5e7e29c535d51652e8be7c6e013ae5e419deb323
#!/usr/bin/env python # ============================================================================================= # MODULE DOCSTRING # ============================================================================================= """ Parameter handlers for the SMIRNOFF force field engine This file contains standar...
open-forcefield-group/openforcefield
openff/toolkit/typing/engines/smirnoff/parameters.py
Python
mit
238,850
[ "Amber", "OpenFF Toolkit", "OpenMM" ]
92e3f2cae1349d976494e58f0d3df6c268e444f45d812f7ecd7f99d70b89e083
#!/usr/bin/env python import logging import os.path import pysam import sys def get_chromosomes_info(bam_path): # Check if there is an index file, create one if there isn't if not os.path.isfile(bam_path + ".bai"): pysam.index(bam_path) logging.info('No BAM index file was found, new index was...
BroadPeaksBioinf/BroadPeaks
BroadPeaks1/pre_counting.py
Python
gpl-2.0
4,543
[ "pysam" ]
49f4099a1ef8d6e49510ced5a7dce1acfde268a8eeec4639bd157f9bb52e7d25
## # Copyright 2012-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://www.vscentrum.be), # Flemish Research Foundation (F...
wpoely86/easybuild-framework
test/framework/modules.py
Python
gpl-2.0
34,083
[ "NetCDF" ]
965adf62c82293c3b2b5ce98c2fcefb00c65d3788270d1095b488f01026fb0a1
""" Convenience routines for performing common operations. @since: 0.28 """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. import os, sys, logging from zeroinstall import support from zeroinstall.support import tasks def get_selections_gui(iface_uri, gui_args, t...
dabrahams/zeroinstall
zeroinstall/helpers.py
Python
lgpl-2.1
4,165
[ "VisIt" ]
3868e47d1346f2e4dadc62c901323a7b0627fa78fc1f2b810a36cda1c676ab74
# Copyright 2012 Patrick Varilly # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is di...
patvarilly/uwham
test_uwham.py
Python
gpl-3.0
2,528
[ "Gaussian" ]
2093689c67829ae78af0db405256293f33af8798f20b88ae3e164e3eea5079fd
# proxy module from __future__ import absolute_import from mayavi.scripts.mayavi2 import *
enthought/etsproxy
enthought/mayavi/scripts/mayavi2.py
Python
bsd-3-clause
91
[ "Mayavi" ]
35548ef7bcc730852fdad56f64bfa28b43ba1fdad8f5a1601c66c90f1386225e
from PIL import Image from pyimage import PyImage import numpy as np class GaussPyramid(object): '''This class represent a gaussian pyramid of a given image. It contains an array of PyImage instances, where the higher the index, the deeper you are in the pyramid; and also an array of loss information, s...
Thurler/imgprocess
gausspyramid.py
Python
gpl-3.0
5,999
[ "Gaussian" ]
f6e79bb25845de80b59d43b6ba710470c3dbc8f0dbddf33306579970a55172e2
AGENTS = [ "Avant Browser/1.2.789rel1 (http://www.avantbrowser.com)", "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.5", "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.310.0 Safari/532.9", ...
carpedm20/hali
spider/spider/agents.py
Python
bsd-3-clause
48,876
[ "Galaxy" ]
f3e40c15260a850e74f88b62f7f823907540b51973b9a36ec7b985d78f1137df
#!/usr/bin/env python import argparse import logging logging.basicConfig(level=logging.INFO) def filter_blast(blast_results, top_n=5): id_counts = {} for line in blast_results: # evalue = line.split('\t')[10] id = line.split("\t")[0] if id in id_counts: id_counts[id] += 1 ...
TAMU-CPT/galaxy-tools
tools/blast/cpt_blast_filter.py
Python
gpl-3.0
765
[ "BLAST" ]
09ae0b9ffaa3c073ad41b76ca9245be79b8b3c553d22746dab71ce9732cc0d68
#!/usr/bin/env python import numpy import argparse import os import math from Scientific.IO import NetCDF def main(): parser = argparse.ArgumentParser( prog="gaussian_bump", description="""Create a Gaussian bump in a netcdf file""" ) parser.add_argument( '-v', ...
adamcandy/QGIS-Meshing
tests/support_files/gaussian_bump.py
Python
lgpl-2.1
3,191
[ "Gaussian", "NetCDF" ]
766a13549f0f0eb3684dc4a9eb2d705e39728298265988b413b943ab32c93221
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2005-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 Lesser General Public License as published by ## the Free Softw...
tiagocardosos/stoq
stoqlib/domain/account.py
Python
gpl-2.0
20,945
[ "VisIt" ]
8664683a47d98f4bc1d04e9438eed6a7928aedfa71a6888b7e04111b891fbe9e
"""Plugin docstring. """ __version__ = '0.1' __author__ = 'Psi4 Developer' # Load Python modules from .pymodule import * # Load C++ plugin import os plugdir = os.path.split(os.path.abspath(__file__))[0] #sofile = plugdir + '/' + os.path.split(plugdir)[1] + '.so' #psi4.plugin_load(sofile)
CDSherrill/psi4
tests/psithon2/psiaux1/myplugin1/__init__.py
Python
lgpl-3.0
294
[ "Psi4" ]
97e24ada265c62682925ad0b6ad1f66bacaa89223e147a17d38474310fb708bc
# -*- coding: utf-8 -*- # # Copyright (c) 2016, 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. """Test logfiles with (non)linear response output in cclib""" import os import unittest import numpy __filedir__ = os....
Schamnad/cclib
test/data/testPolar.py
Python
bsd-3-clause
1,986
[ "cclib" ]
e2e120e91898746eb4a683c7fd70025c00f444233a6d710e1e90a65e1b28d0ed
############################################################################## # 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/ncl/package.py
Python
lgpl-2.1
10,721
[ "NetCDF" ]
3816543c17ee018c51560cfa0530eb602c7ba1a0149f707964aedd6804816896
""" Module to call mcsqs, distributed with AT-AT https://www.brown.edu/Departments/Engineering/Labs/avdw/atat/ """ import os import tempfile import warnings from pathlib import Path from subprocess import Popen, TimeoutExpired from collections import namedtuple from typing import Dict, List, Optional, Union from mont...
gmatteo/pymatgen
pymatgen/command_line/mcsqs_caller.py
Python
mit
9,898
[ "pymatgen" ]
729340f6838d5b49f0615dde230d32b8825ff1427aa0ea3fa6e2fae2ad20fddd
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 nu from __future__ import (unicode_literals, absolute_import, division, print_function) import logging from django.utils import timezone from snisi_sms.reply import SMSReply from snisi_core.models.Providers import Prov...
yeleman/snisi
snisi_cataract/sms_handlers.py
Python
mit
8,413
[ "VisIt" ]
856858e30147eb3a7f9ac6757c32f6088d07573d2b43229aba52163c5686f2f1
"""Tests performing linter-like checks""" import ast from os.path import dirname, join from subprocess import check_output # Root of the repository. Note that this is relative to this file, # so if this file is moved, this may need to be changed: source_root = dirname(dirname(__file__)) def test_logger_format_stri...
CCI-MOC/haas
tests/custom_lint.py
Python
apache-2.0
3,640
[ "VisIt" ]
55a74811a3ba6a88cf2465c60868289957eb5bf8aa771e755972b175fe556f57
#!/usr/bin/env python # -*- coding: utf-8 -*- import collections from pycparser import CParser from pycparser import c_ast def extractTypeAndName(n, defaultName=None): if isinstance(n, c_ast.EllipsisParam): return ('int', 0, 'vararg') t = n.type d = 0 while isinstance(t, c_ast.PtrDecl) or ...
anthraxx/pwndbg
pwndbg/funcparser.py
Python
mit
2,418
[ "VisIt" ]
24e58d0510fa87e603f3bf7aff094d42863cb470f9b0d28e72cf2032ab573cf3
#!/usr/bin/env python """ Create a DIRAC transfer/replicateAndRegister request to be executed by the DMS Transfer Agent """ __RCSID__ = "$Id$" import os from hashlib import md5 import time from DIRAC.Core.Base import Script from DIRAC.Core.Utilities.List import breakListIntoChunks Script.setUsageMessage( '\n'.joi...
Sbalbp/DIRAC
DataManagementSystem/scripts/dirac-dms-create-replication-request.py
Python
gpl-3.0
3,404
[ "DIRAC" ]
6ec5fbdf818d604d09acb30b6f9ed1fa4de2dbf200a38fd6b915a75e982058d0
# Copyright 2018 The TensorFlow Probability 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 o...
tensorflow/probability
tensorflow_probability/python/experimental/mcmc/pnuts_test.py
Python
apache-2.0
45,484
[ "Gaussian" ]
670afe1b2bb008ee789f51d14a9bdce8ad147230d40033e38c8cb65180a2ee83
#! /usr/bin/env python # Author: Andrew Jewett (jewett.aij at g mail) # License: 3-clause BSD License (See LICENSE.TXT) # Copyright (c) 2017, California Institute of Technology # All rights reserved. """ This standalone python script can be used to convert force-field data in FRC files (a.k.a. "MSI", "Accelrys", "BI...
quang-ha/lammps
tools/moltemplate/moltemplate/force_fields/convert_MSI_files_to_LT_files/msifrc2lt.py
Python
gpl-2.0
234,432
[ "CHARMM", "LAMMPS", "VisIt" ]
9b302abb35dc07e4b1b05e6b8ba1c91f9021ca715eceeb41c98c6009d6d92bed
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/bibles/forms/editbibledialog.py
Python
gpl-2.0
10,020
[ "Brian" ]
692720cb09bb87680664884a30e6be82296182c0bdd9c111c0c9b1fda7923e90
""" Application-class that implements pyFoamConvertMixingPlaneToNewSyntax.py Adjust the mixingPlane interface definition in the boundary file to the latest supported syntax. Author: Martin Beaudoin, Hydro-Quebec, 2012. All rights reserved """ from PyFoamApplication import PyFoamApplication from PyFoam.RunDiction...
Unofficial-Extend-Project-Mirror/openfoam-extend-foam-extend-3.1
ThirdParty/LocalDev/Hydro-Quebec/PyFoam/ConvertMixingPlaneBoundaryToNewSyntax.py
Python
gpl-3.0
8,738
[ "Brian" ]
576cc0f4a0fb5677b4b3f52e1046c696abcdd98cb6f9e0f606132e0090cb4c74
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
psi4/psi4
psi4/driver/procrouting/wrappers_cfour.py
Python
lgpl-3.0
36,339
[ "CFOUR", "Psi4" ]
5491964fc66758d5c9f2ab33ffe32e746d4d1001dc0112cb0743491b12482547
#!/usr/bin/python # # Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. # # 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/LICE...
mozilla/stoneridge
wpr/third_party/ipaddr/ipaddr_test.py
Python
mpl-2.0
50,368
[ "FEFF" ]
e82e46a274e313ae19036614f0f5ab4dc8c1c7a55564e043f3f1630a237b4c47
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Bunch is a subclass of dict with attribute-style access. >>> b = Bunch() >>> b.hello = 'world' >>> b.hello 'world' >>> b['hello'] += "!" >>> b.hello 'world!' >>> b.foo = Bunch(lol=True) >>> b.foo.lol True >>> b.foo is b['...
Nexenta/s3-tests
virtualenv/lib/python2.7/site-packages/bunch/__init__.py
Python
mit
13,203
[ "Brian" ]
1517e0070937d695bdb8fc3391cecf30eeabb2386dd42f91f2076429b1646388
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/interaction/unittest/PTestSoftCosine.py
Python
gpl-3.0
2,031
[ "ESPResSo" ]
391e172d7227991397d4f7049ca4ad6df63b0a8399f702a70cae8c25927f0e6e
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack Foundation # 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.apach...
sacharya/nova
nova/tests/api/openstack/test_xmlutil.py
Python
apache-2.0
33,261
[ "VisIt" ]
7483912ce0ea6341c76809c30e8ffdfd6866837583b889d28946356ad97645da
from bsPlugins import * from bein import execution from bbcflib.track import track, convert from bbcflib.mapseq import bam_to_density from bbcflib.gfminer.stream import merge_scores import os, sys, pysam __requires__ = ["pysam"] output_opts=["sql", "bedGraph", "bigWig"] meta = {'version': "1.0.0", 'author': ...
bbcf/bsPlugins
bsPlugins/Bam2Density.py
Python
gpl-3.0
11,177
[ "pysam" ]
dd99dfd20f8491a26bdf05d88ee7eab3a57d2f1e89bbc44f243697e7d9818313
import vtk from vtk.util.colors import * cubeSource = vtk.vtkCubeSource() cubeSource.SetBounds(-5, 5, -5, 5, -5, 5) ee = vtk.vtkExtractEdges() ee.SetInput(cubeSource.GetOutput()) cubeTube = vtk.vtkTubeFilter() cubeTube.SetRadius(0.1) cubeTube.SetNumberOfSides(20) cubeTube.UseDefaultNormalOn() cubeTube.SetDefaultNorm...
zhangfangyan/devide.vtkdevide
Examples/Rendering/Python/pbtf.py
Python
bsd-3-clause
4,366
[ "VTK" ]
d0a014c2ecfa38929488956cffb25d0a906427b36726ebcb9e51a00e1f46efa6
import h5py import numpy as np import pytest import pysisyphus from pysisyphus.calculators.OverlapCalculator import OverlapCalculator from pysisyphus.calculators.PySCF import PySCF from pysisyphus.helpers import geom_loader from pysisyphus.helpers_pure import describe from pysisyphus.init_logging import init_logging f...
eljost/pysisyphus
tests/test_overlap_calculator/test_overlap_calculator.py
Python
gpl-3.0
3,247
[ "Jmol", "PySCF" ]
55b0ac84dce3986195ab6cfb740b0016ad9778b13738aadea2a3bc62442db689
# Copyright (C) 2015-2020 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU Affero General Public License version 3, or any later version # See top-level LICENSE file for more information from collections import defaultdict import functools from fun...
SoftwareHeritage/swh-web-ui
swh/web/api/apidoc.py
Python
agpl-3.0
17,293
[ "VisIt" ]
46cdce01677145b7a7f6bc1bad199cdf136502086a2044a619161ed1e1a609f6
from direct.directnotify import DirectNotifyGlobal from direct.fsm import StateData import CogHQLoader from toontown.toonbase import ToontownGlobals from direct.gui import DirectGui from toontown.toonbase import TTLocalizer from toontown.toon import Toon from direct.fsm import State from toontown.coghq import BossbotHQ...
ToontownUprising/src
toontown/coghq/BossbotCogHQLoader.py
Python
mit
5,759
[ "VisIt" ]
8c65d9d09ddc5c7601c633dbfaadbf8c784310b59f93764049aeade5f7ad43cc
import numpy as np from .deriv import pderiv3D __all__ = ['avg_eqlat', 'epflux_eddyterms', 'epflux_all', 'theta'] def avg_equivlat(in_field, pv_field, n_lon, n_lat): """ Average a 2-D input field along equivalent latitude bands using global 2-D field of potential vorticity. Equivalent latitu...
yl238/boa
boa/science/dynamics.py
Python
mit
4,113
[ "NetCDF" ]
dd6099430015e7674f58d306f62f102ec9cd15dc2146d51be1efec23b7ab7070
from __main__ import vtk, qt, ctk, slicer import string class LabelStatisticsLogic: """This Logic is copied from the Label Statistics Module -Steve Pieper (Isomics)""" """Implement the logic to calculate label statistics. Nodes are passed in as arguments. Results are stored as 'statistics' instance va...
vnarayan13/Slicer-OpenCAD
SegmentCAD/LabelStatisticsLogic/LabelStatisticsLogic.py
Python
mit
5,235
[ "VTK" ]
8d1b1020bd59f39852eccc8120dbb4860514b3262e2d2261d23ce12ab3603c78
#!/usr/bin/python # Handle unicode encoding import collections import csv import errno import getpass import itertools import locale import os import platform import threading import time import shlex import socket import sys import tempfile import urllib2 import re import fileinput from optparse import OptionParser...
haanme/FinnBrain
dockerfiles/fsl_anaconda3/fslinstaller.py
Python
mit
102,918
[ "VisIt" ]
95daa0b2d269829db98e365b5357b83f5eccd6946321c69f4d69962503c3e24f
# texttable - module for creating simple ASCII tables # Copyright (C) 2003-2015 Gerome Fournier <jef(at)foutaise.org> # # 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; either # version 2....
amisrs/one-eighty
angular_flask/lib/python2.7/site-packages/texttable.py
Python
mit
19,664
[ "Brian" ]
0aefac99829d767cb17bc984f0abeb131239dbda012f910a492d8976b3313dd0
""" Title: Vector-Quantized Variational Autoencoders Author: [Sayak Paul](https://twitter.com/RisingSayak) Date created: 2021/07/21 Last modified: 2021/07/21 Description: Training a VQ-VAE for image reconstruction and codebook sampling for generation. """ """ In this example, we will develop a Vector Quantized Variatio...
keras-team/keras-io
examples/generative/vq_vae.py
Python
apache-2.0
20,195
[ "Gaussian" ]
a6cff547fab29d2786729ff1c2bd1ccf17d742c2dd31b43de6141460f90492ca
# -*- coding: utf-8 -*- # Author: Aziz Köksal class NodeVisitor: def visit(self, node): """ Calls a visit method for this node. """ method = getattr(self, node.__class__.visit_name, self.default_visit) return method(node) def default_visit(self, node): """ Calls visit() on the subnodes of this nod...
SiegeLord/dil
scripts/dil/visitor.py
Python
gpl-3.0
367
[ "VisIt" ]
c62ff03bbb79d55fe5838889cbfc6053b485d352917927c9fa21c44bc99082ad
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2014, Ruggero Marchei <ruggero.marchei@daemonzone.net> # Copyright: (c) 2015, Brian Coca <bcoca@ansible.com> # Copyright: (c) 2016-2017, Konstantin Shalygin <k0ste@k0ste.ru> # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING...
hogarthj/ansible
lib/ansible/modules/files/find.py
Python
gpl-3.0
14,854
[ "Brian" ]
637f707d77e5488ee729e135a21a5e767bf09e3600bc92bc95a18c72f4a1601c
import sys import hashlib import pytest import numpy as np from numpy.linalg import LinAlgError from numpy.testing import ( assert_, assert_raises, assert_equal, assert_allclose, assert_warns, assert_no_warnings, assert_array_equal, assert_array_almost_equal, suppress_warnings) from numpy.random import G...
abalkin/numpy
numpy/random/tests/test_generator_mt19937.py
Python
bsd-3-clause
101,044
[ "Gaussian" ]
0df91a110e1c67beaf94b75dcd1bf58b2e535301262aa319dbd239225d2cae31
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import json import os import os.path import re import sys import warnings from collections import defaultdict try: from setuptools import setup, find_packages from setuptools.command.build_py import build_py as BuildPy ...
s-hertel/ansible
setup.py
Python
gpl-3.0
15,629
[ "Galaxy" ]
53fc649075c13ba80295f1e4cd129b484934a3c6a15d055200eda15f73a5431d
#!/usr/bin/python # Image querying script written by Tamara Berg, # and extended heavily James Hays # Modified a little bit by Haozhi Qi # 9/26/2007 added dynamic time slices to query more efficiently. # 8/18/2008 added new fields and set maximum time slice. # 8/19/2008 this is a much simpler function which gets ALL ...
Oh233/Flicrawler
query_imgs/image_crawler.py
Python
mit
7,857
[ "VisIt" ]
f87994b3d19c9394c9679478ba2bb015c8ceee9682600d119b30397554f32001