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
#!/usr/bin/env python # Copyright 2015 The Kubernetes 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 appli...
aledbf/kops
hack/boilerplate/boilerplate.py
Python
apache-2.0
6,239
[ "VisIt" ]
3e1362c6ead05f896d3567d909c15bc5e36839f54ee1839354d4d79f50b25487
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleads/google-ads-python
google/ads/googleads/v10/common/types/user_lists.py
Python
apache-2.0
21,362
[ "VisIt" ]
08d59835000d66cac08cb805c6b5d47cf730d9afd79b48bb8184a13044da1daf
""" This is Natural Evolution Strategies, designed to run on one computer and not a cluster. (c) May 2017 by Daniel Seita, though obviously based on OpenAI's work/idea. """ import gym import logz import numpy as np import os import pickle import sys import tensorflow as tf import tensorflow.contrib.layers as layers i...
DanielTakeshi/rl_algorithms
es/es.py
Python
mit
15,529
[ "Gaussian" ]
c20e64b04344d494c998fd3840433f89252edfd2c89677bf3211181e579f3e8b
import numpy as np from ase.parallel import world try: import json except ImportError: json = None if json is None: def dumps(obj): if isinstance(obj, str): return '"' + obj + '"' if isinstance(obj, (int, float)): return repr(obj) if isinstance(obj, dict):...
grhawk/ASE
tools/ase/tasks/io.py
Python
gpl-2.0
1,499
[ "ASE" ]
693fd3a4505b56fd756ff74aa43106f8f59bddfa89158912b2325dbde2e6721b
########################################################### ########################################################### #### #### #### SINGLE SLICE ROUTINE #### #### #### ####################...
gnudo/grecoman
externals/singleSliceFunc.py
Python
gpl-3.0
10,951
[ "Gaussian" ]
0b7f25d241a37e4ceeec1a36243b17a3341f0be2c2ac3d92d944bf00208b2698
# Python test set -- part 1, grammar. # This just tests whether the parser accepts them all. # NOTE: When you run this test as a script from the command line, you # get warnings about certain hex/oct constants. Since those are # issued by the parser, you can't suppress them by adding a # filterwarnings() call t...
tree-sitter/tree-sitter-python
examples/python2-grammar-crlf.py
Python
mit
31,929
[ "GULP" ]
42e9014edfae60326c9e26568e1ce04ca266616410b81ac5bcf09ab1424649bd
"""Module output. Defines functions that write the results of source detection in a variety of formats. These are then used as methods of Image objects and/or are called by the outlist operation if output_all is True. """ from __future__ import print_function from __future__ import absolute_import from .image import ...
lofar-astron/PyBDSF
bdsf/output.py
Python
gpl-3.0
49,335
[ "Gaussian" ]
df4c10197bc1bb7ae4874c563d2fbaf1744773cd27e10329191ba9337fe2acfb
import json import time import uuid import hashlib import boto3 import botocore.exceptions import sure # noqa # pylint: disable=unused-import from botocore.exceptions import ClientError from freezegun import freeze_time from moto import mock_sqs, settings from unittest import SkipTest, mock import pytest from moto....
spulec/moto
tests/test_sqs/test_sqs.py
Python
apache-2.0
105,998
[ "VisIt" ]
2871fcc0899f0670a17bde5b687d7b355334419d6d3a288102b96d80e67dfefa
#!/usr/bin/env python #-*- coding:utf-8 -*- # # This file is part of Decoy Finder # # Copyright 2011-2012 Adrià Cereto Massagué <adrian.cereto@urv.cat> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # ...
URVnutrigenomica-CTNS/DecoyFinder
find_decoys.py
Python
agpl-3.0
24,708
[ "CDK", "Pybel", "RDKit" ]
c653c4a86f83e42cda842eede36fa4b24bf32f90e5fe67cc35fc802ea4cea5c6
import os.path import warnings from glob import glob from io import BytesIO from numbers import Number from pathlib import Path from textwrap import dedent from typing import ( TYPE_CHECKING, Callable, Dict, Hashable, Iterable, Mapping, Tuple, Union, ) import numpy as np from .. import...
jhamman/xarray
xarray/backends/api.py
Python
apache-2.0
48,993
[ "NetCDF" ]
2f20bad091f47f6f0f6a802f2853c404699e0fc9594006e5694d17450fe0fa7d
from qgis.core import QgsCoordinateReferenceSystem from qgis.core import QgsCoordinateTransform from qgis.core import QgsDataSourceUri from qgis.core import QgsFeatureRequest from qgis.core import QgsProject from qgis.core import QgsWkbTypes from qgis.gui import QgsRubberBand from qgis.gui import QgsVertexMarker from q...
nens/threedi-qgis-plugin
tool_graph/graph_view.py
Python
gpl-3.0
34,582
[ "NetCDF" ]
46f3db26731cae7cbadbdd7f4ba35fb5470db905856c517801e3f5c23a173782
#!/usr/bin/env python ############################################################################ # Copyright (c) 2015 Saint Petersburg State University # Copyright (c) 2011-2014 Saint Petersburg Academic University # All Rights Reserved # See file LICENSE for details. ################################################...
B-UMMI/INNUca
src/SPAdes-3.11.1-Linux/bin/spades.py
Python
gpl-3.0
55,928
[ "BWA" ]
35346687cd8ce76760dea6bbb50051317b2ca9c7d1f9e75fb1f7088816401e14
# -*- coding: utf-8 -*- """ Copyright [2009-2020] EMBL-European Bioinformatics Institute 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...
RNAcentral/rnacentral-import-pipeline
rnacentral_pipeline/databases/ensembl/helpers.py
Python
apache-2.0
1,860
[ "Biopython" ]
1b3583ee252763d4aae09090396a53fd2cf57692dc060d27a6cf2362a251e2ed
""" # Majic # Copyright (C) 2014 CEH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This pr...
NERC-CEH/jules-jasmin
majic/joj/utils/constants.py
Python
gpl-2.0
14,862
[ "NetCDF" ]
5c59994dfaeae81b4be172f3be447231620cd80d0f9f1f1f3b1a32b1bedf742d
""" Tests configuration, e.g. proper paths, etc. """ import os from django.conf import settings from django.test import TestCase from millstone_setup import download_tools from conf import external_tool_registry class TestConfiguration(TestCase): def test_tool_download(self): """Runs millstone_setup.p...
woodymit/millstone
genome_designer/tests/configuration_tests/test_configuration.py
Python
mit
1,204
[ "BWA" ]
7901cb8ee08ac45ed4497dc38472cb4c28df7ab5bdaa4414c6d48c117bb7312f
'''code transformations to access global symbol bindings ''' from __future__ import absolute_import import .ir as I from .scope import NameTranslation, Binding from .walk import IRWalker from ..runtime.symbol import get_symbol_cells_map I.load_time_value(I.call( callee=I.constant(get_symbol_cells_map), kwd_...
matthagy/Jamenson
jamenson/compiler/Attic/globals.py
Python
apache-2.0
1,711
[ "VisIt" ]
39e1a9d4b40984f0bd850e8ae97c14cb6103d23ce41fc1a2cf5aeb957bb282e4
import numpy as np import os import shutil from json import dump, load from subprocess import call from typing import List, Union try: from pymatgen.io.vasp.inputs import Poscar from pymatgen.io.vasp.outputs import Vasprun from pymatgen.io.vasp.sets import VaspInputSet from pymatgen.core.periodic_tabl...
mir-group/flare
flare/dft_interface/vasp_util.py
Python
mit
6,420
[ "VASP", "pymatgen" ]
42cb9c9567bf75eddb1b0a3dcc4103f178ad37ce4e98ad90a63788d84b0fd54b
"""MNIST Autoencoder. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os # os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import numpy as np import tensorflow as tf import utils as ut import input as inp import visualization as vis import matplotlib.py...
yselivonchyk/TensorFlow_DCIGN
autoencoder.py
Python
mit
29,868
[ "Gaussian" ]
fe45a1bf6a414c9e4cd0602c6df91fe15c499da1e5366f6111d70d2d805cf84f
# Orca # # Copyright 2005-2008 Sun Microsystems Inc. # # 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.1 of the License, or (at your option) any later version. # # This...
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/pyshared/orca/scripts/toolkits/GAIL.py
Python
gpl-3.0
1,077
[ "ORCA" ]
8ee8ac31569bc818fcad4f8e9656bdf3433f2b8119ac97138715da4ec95c31c6
# 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...
frreiss/tensorflow-fred
tensorflow/python/ops/distributions/distribution.py
Python
apache-2.0
46,676
[ "Gaussian" ]
f5b52564711d508de5fba1895526ef82adc6561e6a32caba2ac36f9e9c945adc
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2013, 2014, 2015 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, or (at your optio...
jirikuncar/invenio-deposit
invenio_deposit/models.py
Python
gpl-2.0
48,632
[ "VisIt" ]
31ae9d4819d4a4832add552ae5fe1f2881bd45a14cd556e11f983e41887e36fc
#! /usr/bin/env python """ Module with fake companion injection functions. """ __author__ = 'Carlos Alberto Gomez Gonzalez, Valentin Christiaens' __all__ = ['collapse_psf_cube', 'normalize_psf', 'cube_inject_companions', 'generate_cube_copies_with_injections', 'frame_inject...
carlgogo/vip_exoplanets
vip_hci/metrics/fakecomp.py
Python
bsd-3-clause
27,327
[ "Gaussian" ]
fea1e87d56218f574f076fb465efe044a422249b172afc94bb6dc6f24acefd23
#!/usr/bin/env python #Copyright (C) 2013 by Glenn Hickey # #Released under the MIT license, see LICENSE.txt import unittest import sys import os import argparse import numpy as np from teHmm.track import TrackData from teHmm.hmm import MultitrackHmm from teHmm.cfg import MultitrackCfg from teHmm.modelIO import loadM...
glennhickey/teHmm
bin/teHmmView.py
Python
mit
13,032
[ "Gaussian" ]
b561349fe6a3ed166f48ab334f249a188ae9e50887631174500ab02d9a9b7629
""" A Python implementation of the _bh_ Olden benchmark. The Olden benchmark implements the Barnes-Hut benchmark that is decribed in: J. Barnes and P. Hut, "A hierarchical o(N log N) force-calculation algorithm", Nature, 324:446-449, Dec. 1986 The original code in the Olden benchmark suite is derived from the...
shedskin/shedskin
examples/bh.py
Python
gpl-3.0
20,915
[ "CRYSTAL" ]
16db9c6ba87b1a3ceddc7de79492edca6b3adff19c27d14da4146a906afde6c8
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2018 Satpy developers # # This file is part of satpy. # # satpy 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...
pytroll/satpy
satpy/tests/reader_tests/test_geocat.py
Python
gpl-3.0
8,746
[ "NetCDF" ]
516ebb781a564f4dc723e9c6243d1b79f566c9cafd1905389d563c3fd99bad06
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RAffyilm(RPackage): """Linear Model of background subtraction and the Langmuir isotherm. ...
iulian787/spack
var/spack/repos/builtin/packages/r-affyilm/package.py
Python
lgpl-2.1
1,354
[ "Bioconductor" ]
ad71f9b65a4f0159dafca7765bbd05c3eba7a08d046c2d96f930231fc09ef533
import numpy as np from ase.units import Hartree from gpaw.transport.tools import aa1d, interpolate_array, \ collect_atomic_matrices, distribute_atomic_matrices from gpaw.transport.io import Transport_IO from gpaw.grid_descriptor import GridDescriptor from gpaw import parsize_domain from gpaw....
robwarm/gpaw-symm
gpaw/transport/surrounding.py
Python
gpl-3.0
12,845
[ "ASE", "GPAW" ]
e299d9e68a89cadd8e5c560c1df039dcc707d9eeaa5cbbbce339ae4f73bdf4ea
# Copyright (C) 2003-2005 Peter J. Verveer # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following ...
fxia22/ASM_xf
PythonD/site_python/numarray/nd_image/filters.py
Python
gpl-2.0
30,179
[ "Gaussian" ]
b75be2c34429eb00265d9c251de9eb23499d8cea718c32280d10af82a88d5e3a
#!/usr/bin/env python3 import sys import LipidLibrary import loos import subprocess import os # @cond TOOLS_INTERNAL class Segment: """ Class describing a segment of a PSF file. Contains the information needed to write a psf, and to build this set ouf lipids. The input value line is expected to loo...
GrossfieldLab/loos
Packages/OptimalMembraneGenerator/PSFGen.py
Python
gpl-3.0
9,229
[ "NAMD" ]
1f09a58dd168758a9e800e23c5e5932414a88bab0d4657817b293d7fc4a2f96a
#! /usr/bin/env python # # Copyright (C) 2015-2016 Rich Lewis <rl403@cam.ac.uk> # License: 3-clause BSD import pytest import numpy as np import pandas as pd from ...core import bond, Mol from . import example_mol #provides 'm' fixture @pytest.fixture(name='b') def example_bond(m): return m.bonds[0] @pytest.f...
richlewis42/scikit-chem
skchem/test/test_core/test_bond.py
Python
bsd-3-clause
3,412
[ "RDKit" ]
5aa299fa714bcd83184e3f57bba273f9c16b99288c60d417c6eee3a3de31d18d
# 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, software # distributed under t...
stackforge/python-openstacksdk
openstack/tests/unit/test_resource.py
Python
apache-2.0
107,968
[ "Brian" ]
e0e89d6ee55b37524209f3f88cdae5475b0b94c81725ab62c2597715dd3e22a3
''' synbiochem (c) University of Manchester 2015 synbiochem is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' from threading import Thread import uuid class JobThread(Thread): '''Wraps a job into a thread, and fires event...
synbiochem/synbiochem-py
synbiochem/utils/job.py
Python
mit
1,150
[ "VisIt" ]
b29721708d650d3582abcdff741f30c4f3c34341311247f3eda627fcd12b2d8d
""" CountModel class for dispatching different types of count models and different types of estimation technqiues. """ __author__ = "Taylor Oshan tayoshan@gmail.com" import numpy as np from pysal.contrib.glm.glm import GLM from pysal.contrib.glm.family import Poisson, QuasiPoisson class CountModel(object): """ ...
ljwolf/pysal
pysal/contrib/spint/count_model.py
Python
bsd-3-clause
7,191
[ "COLUMBUS", "Gaussian" ]
0a9d84bb4f21bc2be038ca4bef5d85503e371830a07090194ad61e4f11d29f85
""" .. versionadded:: v6r20 FTS3Agent implementation. It is in charge of submitting and monitoring all the transfers. It can be duplicated. .. literalinclude:: ../ConfigTemplate.cfg :start-after: ##BEGIN FTS3Agent :end-before: ##END FTS3Agent :dedent: 2 :caption: FTS3Agent options """ from __future__ import...
ic-hep/DIRAC
src/DIRAC/DataManagementSystem/Agent/FTS3Agent.py
Python
gpl-3.0
22,923
[ "DIRAC" ]
f40d8435d2f32815129411f12d73250351a67e08e305992aac283cc61c701d8a
'''Generalized Linear Models ''' import numpy as np import statsmodels.api as sm from scipy import stats from matplotlib import pyplot as plt #Example for using GLM on binomial response data #the input response vector in this case is N by 2 (success, failure) #This data is taken with permission from #Jeff Gill (2000) ...
pprett/statsmodels
examples/example_glm.py
Python
bsd-3-clause
5,264
[ "Gaussian" ]
4b6c321772311c0278e52c77b4e652faed3ce44fc719c775b9fca0430f7b0750
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from monty.os.path import which import warnings from pymatgen.ext.cod import COD """ Created on Jun 9, 2012 """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials...
dongsenfo/pymatgen
pymatgen/ext/tests/test_cod.py
Python
mit
1,295
[ "pymatgen" ]
76eccfcf8bab0446bbabc4e85d28b129ce8055b77e16add8e13ef6f31249cdfb
# # @file TestXMLNamespaces.py # @brief XMLNamespaces unit tests # # @author Akiya Jouraku (Python conversion) # @author Michael Hucka <mhucka@caltech.edu> # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by c...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/xml/TestXMLNamespaces.py
Python
bsd-3-clause
10,035
[ "VisIt" ]
a25889ad6bb1df62f51ab3167615e7107ea2a4372b6af26263fd92488b0473f7
#!/usr/bin/env python from submit.models import User, Session from pyramid_mailer.mailer import Mailer from pyramid_mailer.message import Message from pyramid.paster import get_appsettings, setup_logging from sqlalchemy import engine_from_config import os import sys import transaction import helper def usage(argv): ...
ucsb-cs/submit
scripts/umail_merge.py
Python
bsd-2-clause
2,500
[ "VisIt" ]
1aca0695c0358fb4919726c8651c7d80c5375fcea5858dc8db2a78519b4d7184
import calendar from datetime import datetime, date def cd(year,month,fdw,nwe): """ Receive the year, month, fixed day of week of holiday (0:6), number of weeks. Returns day of the holiday for year in question.""" #Define first day of the month & number of days in month fdm, ndm = calendar...
dssg/energywise
Code/holiday.py
Python
mit
2,314
[ "COLUMBUS" ]
e9539ef46389e7e7e32a7ef2cc878169a765bcc6821f239154e5f1739b551e61
# # GMSK modulation and demodulation. # # # Copyright 2005-2007,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either versi...
iohannez/gnuradio
gr-digital/python/digital/gmsk.py
Python
gpl-3.0
11,208
[ "Gaussian" ]
1087193b25595c9a0659189f771e00c0cb0ae8295b0dd63d16bc696ce9c6fbfb
from uaperrors import StepError import sys import os from logging import getLogger from abstract_step import AbstractStep logger = getLogger('uap_logger') class BwaMem(AbstractStep): ''' Align 70bp-1Mbp query sequences with the BWA-MEM algorithm. Briefly, the algorithm works by seeding alignments with ma...
kmpf/uap
include/steps/bwa_mem.py
Python
gpl-3.0
12,136
[ "BWA" ]
9b96cf36db1d18b3bfa274b166285f63a25f920e23447f3c152ad34c51d53830
from vtk.util.colors import peacock, tomato, red, white, black class PeacockActor: def __init__(self, renderer): self.renderer = renderer self.visible = False self.edges_visible = False self.solid = True self.color = white ''' Sync view options. The view options for self will match the passe...
gleicher27/Tardigrade
moose/gui/vtk/PeacockActor.py
Python
lgpl-2.1
1,578
[ "VTK" ]
0ac81a8ea3e6ba972ee9233a9576105abb9165e1e4a65f09c719a172a30d17d7
# coding: utf-8 # # Example soil moisture validation: ASCAT - ISMN # This example shows how to setup the pytesmo validation framework to perform the validation either normal or using the parallel processing tool from ipython. # In[ ]: import os import pytesmo.validation_framework.temporal_matchers as temporal_ma...
christophreimer/pytesmo
examples/setup_validation_ASCAT_ISMN.py
Python
bsd-3-clause
3,862
[ "NetCDF" ]
6a065b9252cc26142eff2b2be9a4b62a295b52f0599c2d639ad19931d2962aed
from octopus.server.shell_manager import ShellManager from octopus.shell.octopus_shell import OctopusShellConnection import time DEFAULT_HOST = 'localhost' DEFAULT_PORT = '2480' DEFAULT_DATABASE_NAME = 'octopusDB' class PythonShellInterface: def __init__(self): self._initializeDefaults() def _initi...
octopus-platform/octopus
python/octopus-tools/octopus/server/python_shell_interface.py
Python
lgpl-3.0
3,711
[ "Octopus" ]
3f426baf3bca5b62568952d398c524caba11587a538434a42abd084bca69591a
import unittest import pam import bpy import numpy import random import pickle import sys SEED = 42 class TestAddon(unittest.TestCase): def testAddonEnabled(self): self.assertNotNone(pam.bl_info) class TestPamAllMappings(unittest.TestCase): def setUp(self): # Seed the rng random.seed(...
MartinPyka/Parametric-Anatomical-Modeling
tests/mapping/mapping.test.py
Python
gpl-2.0
2,330
[ "NEURON" ]
108c8f76f4aaefaaaebc0d18a8ad886a11870d88c5109253c52e97f509d66884
""" This module handles initial database propagation, which is only run the first time the game starts. It will create some default channels, objects, and other things. Everything starts at handle_setup() """ import django from django.conf import settings from django.utils.translation import ugettext as _ from evenni...
mrkulk/text-world
evennia/server/initial_setup.py
Python
bsd-3-clause
7,067
[ "VisIt" ]
4f3bc49d70b162c252ca537cb415b0c6d54d0020207b1443952ad6f2283f0f9a
# -*- coding: utf-8 -*- # # brunel_alpha_evolution_strategies.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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 versio...
hakonsbm/nest-simulator
pynest/examples/brunel_alpha_evolution_strategies.py
Python
gpl-2.0
21,089
[ "Gaussian", "NEURON" ]
00dddd0d85c127d6253ef3461574dac04c7908865171fcd01385800889050d30
# # High-dimensional Gaussian log-pdf. # # This file is part of PINTS (https://github.com/pints-team/pints/) which is # released under the BSD 3-clause license. See accompanying LICENSE.md for # copyright notice and full license details. # import numpy as np import scipy.stats from . import ToyLogPDF class HighDimen...
martinjrobins/hobo
pints/toy/_high_dimensional_gaussian.py
Python
bsd-3-clause
5,501
[ "Gaussian" ]
4901a5b7e574309c6a88cbf053a955c2e5642d6d971db1b1a46469bd092f0eb6
import openpyxl, requests, bs4, threading from bs4 import BeautifulSoup from tkinter import * from tkinter import ttk from tkinter import filedialog def ExcelToWeb(): websites = [] titles = [] # 1. fetch websites from excel wb = openpyxl.load_workbook(dirPath.get()) sheet = wb.get_sheet_by_name('Sh...
zephyr1125/PythonTools
ExcelToWebsite/main.py
Python
gpl-3.0
1,803
[ "VisIt" ]
78e2e0d075dd8fa66eca251fadfc73ec2cfff0cf1a62d0d6f12d912ca48e9f6f
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/core/ui/aboutdialog.py
Python
gpl-2.0
38,638
[ "Brian" ]
904c40b014d7829f89eedd20801157dcf1149007a588604d36e0e2f4832b4353
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) # # This file is part of Orfeo Toolbox # # https://www.orfeo-toolbox.org/ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
orfeotoolbox/OTB
Modules/Wrappers/SWIG/test/python/PythonSmoothingTest.py
Python
apache-2.0
1,248
[ "Gaussian" ]
39a84b8e9b17be2507b51cd006375778fb7dc75f9ca7a98baf4ee911f6a7e24e
# -*- coding: utf-8 -*- from piston.handler import BaseHandler from piston.utils import rc, throttle from django.conf import settings from django.http import HttpResponse from django.template.defaultfilters import slugify from django.utils import simplejson from django.utils.translation import ugettext as _ from django...
hfeeki/transifex
transifex/storage/api.py
Python
gpl-2.0
7,136
[ "VisIt" ]
1a4369a1efe2d132ea3cb6c8e1975a563fc04029bbba3589c9aaad7ed794b49c
#!/usr/bin/env python3 # Copyright 2010-2021 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
google/or-tools
examples/python/maze_escape_sat.py
Python
apache-2.0
5,494
[ "VisIt" ]
87745a89d206a312464dd079c123eb721604d6e9fc59c75c63944a2a04ea2062
import numpy as np from cs231n.layers import * from cs231n.fast_layers import * from cs231n.layer_utils import * class ThreeLayerConvNet(object): """ A three-layer convolutional network with the following architecture: conv - relu - 2x2 max pool - affine - relu - affine - softmax The network operates on mi...
Alexoner/mooc
cs231n/2016/assignment2/cs231n/classifiers/cnn.py
Python
apache-2.0
17,198
[ "Gaussian" ]
d74246da1afec07bc870de6a00867bcb0fe92145c2370859cb43bf10f6b5c8f1
#!/usr/bin/env python2 # XXX: Refactor to a comand line tool and remove pylint disable """Create gene expression profiles.""" from __future__ import absolute_import, division, print_function import argparse import logging import multiprocessing import os import biox parser = argparse.ArgumentParser(description="Crea...
genialis/resolwe-bio
resolwe_bio/tools/mappability.py
Python
apache-2.0
4,036
[ "Bowtie" ]
6517d98f1f93d47c297f46557db008f09ba23bc693bec8a205c1f6d6ec6f7ed1
__author__ = 'Jaap' ''' Experimental extension of the adaptive algorithm described below. This algorithm does not output coordinates to measure, but also reduces noise when appropriate by choosing the option with the highest gain in reducing the loss per interval. Easy to use O(N) adaptive sampling algorithm, measures ...
GitJaap/Adaptive-Measurement
algorithm_adaptive_error.py
Python
gpl-2.0
7,770
[ "Gaussian" ]
004ac0e4f59587a8672f305363a8cfe9d79e7127a92dd1066e55cf5d2c601073
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Changes in version 0.4.4 6-11-2009. - Improved index searching strategy. - Fix XIO compatibility with pilatus det. - Improve detector specific definitions in XIO exports. Changes in version 0.4.3 28-10-2009. - Fixe compatibility problems with Python2.2 and Python...
RAPD/RAPD
src/plugins/subcontractors/xdsme/new/xdsme-0.4.9/XDS/XDS.py
Python
agpl-3.0
63,599
[ "CRYSTAL" ]
462086ff4c867c743babcc581f9aade8a68e4af1aad585745d3c788eb9450c15
# Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google-research/vmoe
vmoe/nn/external.py
Python
apache-2.0
1,661
[ "MOE" ]
d78a49dd7d8b14f45714806d9d3e9f862dbe32770c74ee8e164a7cc63dd754e3
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module contains classes to wrap Python VTK to make nice molecular plots. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2011, The Mate...
sonium0/pymatgen
pymatgen/vis/structure_vtk.py
Python
mit
34,037
[ "Jmol", "VTK", "pymatgen" ]
ca9c0aa4439732571356ffb5ea7a31f750e1258f8f6f67e4926de50116a24c20
''' Copyright 2020 The Rook 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 applicable law or agreed to...
rook/rook
deploy/examples/create-external-cluster-resources.py
Python
apache-2.0
64,504
[ "Octopus" ]
8966223c3ec378d744638d742cb5a4478e9c57357648c865d1f81c808caef55f
from __future__ import absolute_import # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Ver...
wprice/qpid-proton
tests/python/proton_tests/messenger.py
Python
apache-2.0
30,158
[ "Galaxy" ]
cde4e82eadc5e68c7a1ec62c74fa706713f2900b3a17ee27c8ecb626e80583ad
#!/usr/bin/python2.4 # Copyright (c) 2006-2008 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. """SiteCompare component to handle bulk scrapes. Invokes a list of browsers and sends them to a list of URLs, saving the rende...
Crystalnix/house-of-life-chromium
tools/site_compare/site_compare.py
Python
bsd-3-clause
6,489
[ "VisIt" ]
315edec51907cc5098aceaf78ab1014ed429917910d984ac821a25f02886723f
# Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2020, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This program is free software: you can redistribute it and/or modify # it unde...
mrcslws/nupic.research
projects/visual_recognition_grid_cells/python2_htm_docker/docker_dir/train_and_eval_GridCellNet.py
Python
agpl-3.0
21,634
[ "Gaussian" ]
78b65ad7bc81a7853f713a8dec80f09e3488f22a8e296db30e536965f87f168b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ Development script to test the algorithms of a given model coordination environments """ __author__ = "David Waroquiers" __copyright__ = "Copyright 2012, ...
richardtran415/pymatgen
dev_scripts/chemenv/test_algos.py
Python
mit
3,439
[ "pymatgen" ]
a172c6e3bef9052d59e44ca1c6c1604acc9e755978bf14d9a69165f64cc782c5
#!/usr/bin/env python2 import sys sys.path.append('../../../src/') import cgmap as cg import mdtraj as md import md_check as check ############################### config ##################################### input_traj = "dppc.trr" input_top = "dppc.pdb" input_maps = ["mapping_bead_1_dppc", "mapping_...
uchicago-voth/cgmap
test/molecular_map_test/same_molecules_shared_map_com/test_same_molecules_shared_map_com.py
Python
apache-2.0
2,337
[ "MDTraj" ]
70e52cd8496708afa925cb268650362e0e495400ea67141350f467774d1d9e3b
#!/usr/bin/env python # coding: utf-8 """3D display of floating body with VTK.""" # Copyright (C) 2017-2019 Matthieu Ancellin # See LICENSE file at <https://github.com/mancellin/capytaine> from capytaine.tools.optional_imports import import_optional_dependency from capytaine.ui.vtk.mesh_viewer import MeshViewer vtk =...
mancellin/capytaine
capytaine/ui/vtk/body_viewer.py
Python
gpl-3.0
981
[ "VTK" ]
012ea951ac7b9f4061ad95a7197ac1d1d16b169ad1ff3d99258399d256b5ea42
styles = { 'darkgreen': { 'name': 'darkgreen', 'background': '#000000', 'foreground': '#007700', 'lines': '#001100', 'border': '#001100', 'info': '#007700', 'font': 'DejaVu Sans Mono', 'fontsize': 12, 'padding': 6, 'size': [0.6, 0.95], ...
genewoo/pyroom
styles.py
Python
gpl-3.0
2,605
[ "Amber" ]
36a1fe807246ca04489e04a2c587de1b005d1d3ba6f7a0edda2134c6420c2b4e
""" Cache This module provides a generic Cache extended to be used on RSS, RSSCache. This cache features a lazy update method. It will only be updated if it is empty and there is a new query. If not, it will remain in its previous state. However, Cache class internal cache: DictCache sets a validity to its entries. Af...
arrabito/DIRAC
ResourceStatusSystem/Utilities/RSSCacheNoThread.py
Python
gpl-3.0
12,428
[ "DIRAC" ]
6c6f6e4d96c121af2eb5c0125036bd3d663c7be235a509fee9302168d90dc487
import sys, os sys.path.insert(1, os.path.join("..","..","..")) import h2o from tests import pyunit_utils def weights_and_distributions(): htable = h2o.upload_file(pyunit_utils.locate("smalldata/gbm_test/moppe.csv")) htable["premiekl"] = htable["premiekl"].asfactor() htable["moptva"] = htable["moptva"]....
madmax983/h2o-3
h2o-py/tests/testdir_algos/deeplearning/pyunit_DEPRECATED_weights_and_distributionsDeeplearning.py
Python
apache-2.0
1,223
[ "Gaussian" ]
f3a4ba118db13d0488bbfe6840f4fdef60dc50980b432e050dbf3de83758576d
#!/usr/bin/env python ''' script for filtering insertions vs. the mouse reference genome mm10 ''' ''' may be useful as a template for extension to other species ''' import pysam import sys import os import logging import argparse import align import numpy as np import subprocess from uuid import uuid4 ver...
adamewing/tebreak
scripts/misc/filter_mm10.py
Python
mit
14,146
[ "pysam" ]
3c165772dca638f9daa188419b1a717d4aad09ec8901cbf2f462f6283eedf7e6
#Import necessary modules for movie animation from scipy.io.netcdf import * import numpy as np import pylab as p import matplotlib.animation as an #Open NETCF file and read in data as file f f=netcdf_file('trajectory.nc','r') position=f.variables['position'][:] time=f.variables['timepoints'][:] #Create an FFMPEG w...
ricardoharripaul/PlottingwithPython
lessons/PlottinginPythonwithMatplotlib/hwk3.2.py
Python
apache-2.0
934
[ "NetCDF" ]
34a84112a3d5efe51efc4961c62a2b8fcbe4f4a4f287bd61e2325786944a9219
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
apache/climate
RCMES/statistical_downscaling/run_statistical_downscaling.py
Python
apache-2.0
10,268
[ "NetCDF" ]
95ea69d862df22a324bd060d01dc7570c7c325a0e6b871ad602532ee7f59788d
""" Course Outline page in Studio. """ from bok_choy.page_object import PageObject from bok_choy.promise import EmptyPromise from .course_page import CoursePage from .unit import UnitPage class CourseOutlineContainer(object): """ A mixin to a CourseOutline page object that adds the ability to load a chil...
TangXT/edx-platform
common/test/acceptance/pages/studio/overview.py
Python
agpl-3.0
6,061
[ "VisIt" ]
8fd04540766ad4451e2ec1e0006df8d8354221f3bdbdebf67c28cb9af80a1062
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import datetime import random import re import string from lxml import html from urllib2 import urlopen from urlparse import urljoin from urlparse import urlparse from werkzeug import url_encode, unescape from odoo imp...
hip-odoo/odoo
addons/link_tracker/models/link_tracker.py
Python
agpl-3.0
10,126
[ "VisIt" ]
1e69e3d882ac95e449c67fbc88fb61f037dea6dbcd3c4b8ed67d8258db1516d2
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_array_almost_equal, assert_array_almost_equal_nulp) from pytest import raises as assert_raises def test_kde_1d(): #some basic tests compa...
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/scipy/stats/tests/test_kdeoth.py
Python
mit
7,923
[ "Gaussian" ]
917b3e2a3bc00fb82ba146fca9e5b79a87923d56acc5b006f8b303614ec34c1c
#!python # coding=utf-8 import os import shutil from glob import glob import pytest from gutils.nc import create_dataset from gutils.slocum import SlocumMerger, SlocumReader from gutils.tests import setup_testing_logger, resource import logging L = logging.getLogger(__name__) # noqa @pytest.mark.long @pytest.mark...
SECOORA/GUTILS
gutils/tests/test_real.py
Python
mit
1,650
[ "NetCDF" ]
7f7fcde3ab25e0b28ee9284cc01dc7e31aa9fd9ada526acbdd196764f1233371
""" Holds information about what the user asked for (which program, version constraints, etc). """ # Copyright (C) 2012, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import SafeException class Requirements(object): """ Holds information about what the user asked ...
michel-slm/0install
zeroinstall/injector/requirements.py
Python
lgpl-2.1
4,510
[ "VisIt" ]
95f6b20dee64a4eb58d047d4ef9456a9eecaefdca6e1627a161fdf54de2b26cc
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
MOA-2011/e2openplugin-OpenWebif
plugin/controllers/views/web/epgnownext.py
Python
gpl-2.0
7,512
[ "VisIt" ]
784abed65330ec95ed323fa7177433048898d5bc54469b5099245e45fe5e07d1
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
frreiss/tensorflow-fred
tensorflow/python/data/experimental/benchmarks/rejection_resample_benchmark.py
Python
apache-2.0
2,589
[ "DIRAC" ]
d4c7e90dc9df53fca55fafbe4255db88346f1602a813084c26a05c1a278d1f35
#!/usr/bin/env python # CREATED:2013-03-08 15:25:18 by Brian McFee <brm2132@columbia.edu> # unit tests for librosa core (__init__.py) # # Run me as follows: # cd tests/ # nosetests -v --with-coverage --cover-package=librosa # from __future__ import print_function # Disable cache import os try: os.environ.pop(...
ruohoruotsi/librosa
tests/test_core.py
Python
isc
36,218
[ "Brian" ]
f320702a9384b0de0f871220d5d88017708b40bdb0085c2ea0a7f3e3b1652709
# (c) 2012-2018, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
chouseknecht/galaxy
galaxy/main/celerytasks/elastic_tasks.py
Python
apache-2.0
10,015
[ "Galaxy" ]
bc6f09fc120827a79e00000e80ed3cdc4d1b79e5d25b3314bad0d41a75366f4f
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2005 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # 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 pu...
arunkgupta/gramps
gramps/gen/plug/_manager.py
Python
gpl-2.0
21,448
[ "Brian" ]
571392fbe624fa152bd94232ca70d31136a3b126ffcf5b1057700f11ebf84bfa
'''Attach generally useful information, not specific to any package. Copyright (C) 2009 Canonical Ltd. Authors: Matt Zimmerman <mdz@canonical.com>, Brian Murray <brian@ubuntu.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publ...
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/apport/general-hooks/ubuntu.py
Python
gpl-3.0
14,954
[ "Brian" ]
b5f49445a88142be3704a993e50604b33210c4a4dcbf87fd6162613cf7959c6c
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # extcertaction - handle external certificate sign up and send email to admins # Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the...
heromod/migrid
mig/shared/functionality/extcertaction.py
Python
gpl-2.0
10,360
[ "Brian" ]
2bfb75bc6d668c13be7fef0e45f7a93d1c11d1bae82d2909a185f4bd853136cc
# -*- coding: utf-8 -*- """Fake data generator. To use: 1. Install fake-factory. pip install fake-factory 2. Create your OSF user account 3. Run the script, passing in your username (email). :: python -m scripts.create_fakes --user fred@cos.io This will create 3 fake public projects, each with 3 fake con...
aaxelb/osf.io
scripts/create_fakes.py
Python
apache-2.0
19,891
[ "Galaxy" ]
65116c984b83119320a6fdbd58ec323043cf4fd35c4cef32427bb9830f9098b6
from ase.structure import molecule from ase.parallel import parprint from gpaw import GPAW from gpaw.cluster import Cluster from gpaw.analyse.hirshfeld import HirshfeldDensity, HirshfeldPartitioning from gpaw.analyse.wignerseitz import WignerSeitz from gpaw.test import equal from gpaw.mpi import rank h = 0.4 gpwname ...
robwarm/gpaw-symm
gpaw/test/partitioning.py
Python
gpl-3.0
2,585
[ "ASE", "GPAW" ]
1072b7aba952cb9c8b83b6673c4d8194878559eb07ee4f35df09f628874b8f28
#!/usr/bin/env python3 """ Author: Hunter Cameron Date: 11/31/2014 Updated: 11/31/2014 Description: A module for working with GenBank files that uses BioPython under the hood. """ from Bio import SeqIO from taxstring import TaxString class GenBank(object): """ Class for broad processing of GenBank file...
hunter-cameron/Bioinformatics
python/build/lib/mypyli/genbank.py
Python
mit
1,480
[ "Biopython" ]
cd16cfdf29dc03e3d4cf1b25d41a96568872f892d7b84fe46c38ac2b836741ae
import numpy as np # This is a PEP8 mess, but it is like this to more easily correlate with the FORTRAN77 code. def S_KP_EXV(Q, RL, RLL): # RL = contour_length # RRL = kuhn_length # I_EXVOL = 0:gaussian coils # 1: excluded volume effects included ----> this is set to 1 in the code, # ...
KarlClinckspoor/SAXS_treatment
WLM models/S_KP_EXV.py
Python
gpl-3.0
29,159
[ "Gaussian" ]
2f38ad8f45949e4bd7b82f07f18ea969e0752ffd8b7195364de4e3546ceec715
# -*- coding: utf-8 -*- __author__ = "Dilawar Singh" __copyright__ = "Copyright 2019-, Dilawar Singh" __maintainer__ = "Dilawar Singh" __email__ = "dilawars@ncbs.res.in" import moose import numpy as np print( "[INFO ] Using moose %s form %s" % (moose.version(), moose.__file__) ) def...
BhallaLab/moose-core
devel/fixme/test_wrapper.py
Python
gpl-3.0
2,747
[ "MOOSE" ]
271bf3e6faaea2a9f6f9307a4f10540454dbe46a3d5141f867e10f0e3358e3be
#! /usr/bin/env python # -*- coding: utf-8 # add parent folder to search path, to enable import of core modules like settings import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0,parentdir) import cv2 im...
arikpoz/deep-visualization-toolbox
caffevis/app.py
Python
mit
85,699
[ "NEURON" ]
adffbc22dbe875b76c8907bc53e992b2d2624ba41cc3a2411ca281cd341e273b
""" cclib (http://cclib.sf.net) is (c) 2006, the cclib development team and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html). """ __revision__ = "$Revision: 892 $" import re import numpy import logfileparser import utils class GAMESS(logfileparser.Logfile): """A GAMESS log file.""" SCFRMS,...
faribas/RMG-Java
source/cclib/parser/gamessparser.py
Python
mit
43,163
[ "GAMESS", "Gaussian", "cclib" ]
79603fdd23871e9de84135b873afc006fe6d3cc6417f6179b894bed2fff80960
# default.py --- # # Filename: default.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Tue Nov 13 15:58:31 2012 (+0530) # Version: # Last-Updated: Thu Jul 18 10:35:00 2013 (+0530) # By: subha # Update #: 2244 # URL: # Keywords: # Compatibility: # # # Commentary: # # The default placehol...
dilawar/moose-full
moose-gui/plugins/default.py
Python
gpl-2.0
60,382
[ "MOOSE" ]
bcee05d825f9bca9ddc1bc14d051eaa6cb679deb56f30383c7fdfb706b546e4a
#!/usr/bin/python """ Copyright 2010 Paul Willworth <ioscode@gmail.com> This file is part of Galaxy Harvester. Galaxy Harvester is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of th...
clreinki/GalaxyHarvester
ghLists.py
Python
agpl-3.0
4,120
[ "Galaxy" ]
63530bb7689279d95cdd2aba524d409a32681f3b5bea5e317ef31c93b10dadfb
# Copyright 2012 Nebula, 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 agree...
mandeepdhami/horizon
horizon/base.py
Python
apache-2.0
37,032
[ "VisIt" ]
7eca7d19e69810149c801e2d4f05291a3c5197def5038f18b8598f3ac78687ee
######################################################################## # File: RequestDB.py # Date: 2012/12/04 08:06:30 # pylint: disable=no-member ######################################################################## """ Frontend for ReqDB :mod: RequestDB ======================= .. module: Request...
Andrew-McNab-UK/DIRAC
RequestManagementSystem/DB/RequestDB.py
Python
gpl-3.0
33,705
[ "DIRAC" ]
4d3286d4bb743d596930aa326ae2db653d7e23cc322718e6f3bea547bce17ea3
""" Class with a collection of likelihood functions for EP - as executation time of this class is an issue we expect the hyperparameters to be set upfront """ from numpy import * import scipy as S import scipy.special as special def n2mode(x): """convert from natural parameter to mode and back""" return arra...
PMBio/pygp
misc/EPLikelihood.py
Python
gpl-2.0
8,116
[ "Gaussian" ]
cd023619c45c05ab4afd0f61c8f64c005290e8a1716fc6e5c10ff53d40586c2f
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os.path import numpy as np import matplotlib.pyplot as plt import abel # This example demonstrates a BASEX transform of an image obtained...
DanHickstein/pyBASEX
examples/example_basex_photoelectron.py
Python
gpl-2.0
2,640
[ "Gaussian" ]
79d6714103e09a10f79629eed7403c9b307b18eb04180ce8754ced8211a587d8
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import warnings """ Created on Mar 19, 2012 """ __author__ = "Shyue Ping Ong, Stephen Dacek" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Shyue Ping Ong" __em...
davidwaroquiers/pymatgen
pymatgen/entries/tests/test_compatibility.py
Python
mit
80,029
[ "pymatgen" ]
cb034e0301fa152d987ee801c8462d6f3b50a45a2684dd961b3ef9b3ec9d6133
"""Module symbol-table generator""" from lib2to3.compiler import ast from lib2to3.compiler.consts import SC_LOCAL, SC_GLOBAL, SC_FREE, SC_CELL, SC_UNKNOWN from lib2to3.compiler.misc import mangle import types import sys MANGLE_LEN = 256 class Scope: # XXX how much information do I need about each name? def...
certik/pyjamas
pgen/lib2to3/compiler/symbols.py
Python
apache-2.0
14,513
[ "VisIt" ]
3105c77675afd5f6516d8bdc08383ac5f006f89c97a2e88de909fb44e1f96a0e
import json import os import redis import subprocess import time import repos_service MAX_RETAINED_BUILDS = 300 redis_client = redis.StrictRedis( host=os.getenv('REDIS_HOST', 'localhost'), port=int(os.getenv('REDIS_PORT', 6379)), db=int(os.getenv('REDIS_DB', 0)) ) class Error(Exception): pass class...
grow/buildbot
app/jobs_service.py
Python
mit
8,451
[ "GULP" ]
a84ed27fa0cfc5d8461a4a7c27de8aa4d6249add7444afe8386b5184bc3adae7