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 # encoding: utf-8 """ binary_tree_postorder.py Created by Shengwei on 2014-06-30. """ # https://oj.leetcode.com/problems/binary-tree-postorder-traversal/ # tags: medium, tree, traversal, dfs """ Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary...
CodingVault/LeetCodeInPython
binary_tree_postorder.py
Python
apache-2.0
3,620
[ "VisIt" ]
5fcae5142cb1c38e37bbbdc7d1d69c7e6c688023ef161e324de20db9df60e5a7
# Copyright 2008-2014 Nokia Solutions and Networks # # 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 l...
userzimmermann/robotframework-python3
src/robot/model/stats.py
Python
apache-2.0
6,698
[ "VisIt" ]
7daa23be9becdfbfad12492dece8aa1222addbe108b2a2e174f6f27295f1d241
# Copyright (c) 2016-2017, Matteo Cafasso # All rights reserved. # 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 ...
noxdafox/vminspect
vminspect/winreg.py
Python
bsd-3-clause
6,628
[ "VisIt" ]
9abfdbc203fe6d84906c4f7cb3d3a239e6ce7c2ef3a4bf6422eab2f6edeac020
from googlexml import GoogleXML as google from splinter import Browser search_query = 'How much wood could a woodchuck chuck?' with Browser() as browser: browser.visit(google.search_url) browser.fill('q', search_query) button = browser.find_by_name('btnG') #TODO: Move btnG to GoogleXML button.click()
SearchLightApp/SearchLight
code/account.py
Python
mit
319
[ "VisIt" ]
99de7826916628212d178f6bb35f64b6688417c29c5ca8e45b5ad52fa15cb7eb
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkTexture(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk.vtkTex...
nagyistoce/devide
modules/vtk_basic/vtkTexture.py
Python
bsd-3-clause
462
[ "VTK" ]
c0ecbeb965ee75b0bfc60079bc20c8dd1fa30c649a1a72380da13512821609f8
#!/usr/bin/env python ######################################################################## # $HeadURL$ ######################################################################## """ Change file owner """ from DIRAC.Core.Base import Script from DIRAC import S_OK class Params: def __init__ ( self ): self.recur...
calancha/COMDIRAC
Interfaces/scripts/dchown.py
Python
gpl-3.0
2,187
[ "DIRAC" ]
74d803f41d508a6f90c7f508191fb8f1af593acf8c1e81442d97827a359746da
@mfunction("mu, sigma2") def estimateGaussian(X): # ESTIMATEGAUSSIAN This function estimates the parameters of a # Gaussian distribution using the data in X # [mu sigma2] = estimateGaussian(X), # The input X is the dataset with each n-dimensional data point in one row # The output is a...
gedman4b/MachineLearning
coursera/AnomolyDetection and RecommenderSystems/estimateGaussian.py
Python
gpl-3.0
973
[ "Gaussian" ]
5967f2fe9a3b439948bf54231052dab7a6f1743fbfb4a498d344c94a883a2978
#!/bin/env python ############################################################################# ## ## Copyright (C) 2010 Riverbank Computing Limited. ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ## All rights reserved. ## ## This file is part of the examples of PyQt. ## ## $QT_BEGIN...
kerneltravel/zyj
data/connection.py
Python
gpl-3.0
6,246
[ "exciting" ]
7254c52086753a41177b905740b51eddeb7dbadf7c3058e0232191473c1e1f03
# Copyright (c) 2000-2008 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # 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, o...
mattjmorrison/Pylint
test/unittest_pyreverse_writer.py
Python
gpl-2.0
2,708
[ "VisIt" ]
32fab2df8dd617c81382f21d36645669f27b861a41d7d5bfb1898f8b7f96ec24
# 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...
zasdfgbnm/tensorflow
tensorflow/contrib/py2tf/pyct/compiler.py
Python
apache-2.0
2,385
[ "VisIt" ]
83986ebea2a33fb46db9a97f2fd0ea09b2a54977044413e0fe172729d9199d0b
# A simple CLI runner for slurm that can be used when running Galaxy from a # non-submit host and using a Slurm cluster. from logging import getLogger try: from galaxy.model import Job job_states = Job.states except ImportError: # Not in Galaxy, map Galaxy job states to Pulsar ones. from pulsar.util im...
natefoo/pulsar
pulsar/managers/util/cli/job/lsf.py
Python
apache-2.0
4,842
[ "Galaxy" ]
1d7abc39dccbec6cc61f8b63dd745da02967c5937a9fb72e524b280901b1d2ed
#!/usr/bin/env """ SS_Winds_NARR_hr.py Compare NARR Winds with NCEP V2 (with Mooring Winds) for 6hr intervals. Uses 3hr NARR and 6hr NCEP Note: ----- SS data is in text format and lacking geolocation information See Bond and Stabeno 1998 - Analysis of Surface Winds in Shelikof Strait, Alaksa, Using Moore...
shaunwbell/FOCI_Analysis
ReanalysisRetreival_orig/SS_Winds/SS_Winds_NARR_hr.py
Python
mit
24,088
[ "NetCDF" ]
eb9bc6c52ecf53893e107b62ce5a835ddcadd5fabb9820cd3fd9e6fe108759d5
# 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 use ...
lochiiconnectivity/libcloud
libcloud/common/google.py
Python
apache-2.0
29,480
[ "VisIt" ]
720167d0a97055d07938df147b0c93367d6ea4cff714e005ebd17b0602dfe8ed
# -*- coding: utf-8 -*- """ OpenNFT is an integrated software package designed for neurofeedback training OpenNFT is an integrated software package designed for neurofeedback training. It constitutes the core technical framework for developments in this exciting new field of neuroimaging. OpenNFT is based on best pra...
OpenNFT/OpenNFT
opennft/__init__.py
Python
gpl-3.0
1,026
[ "exciting" ]
21eb335d1aa065a1bda35700adbfba97580e279c13609622b695ae8532a6b937
''' Module of all the controllers used in M-LOOP. The controllers, as the name suggests, control the interface to the experiment and all the learners employed to find optimal parameters. ''' from __future__ import absolute_import, division, print_function __metaclass__ = type import datetime from importlib import impo...
michaelhush/M-LOOP
mloop/controllers.py
Python
mit
43,221
[ "Gaussian" ]
794ede0970b2152efdfe6d17aa9b662c4351ed7007d5192a2d01b34e4b72b2ef
import numpy as np import scipy.special as sps def wixi(x): """ Complex Error Function (Faddeeva/Voigt). w(i*x) = exp(x**2) * ( 1-erf(x) ) This function is called by other functions within this module. We are using the scipy.special.wofz module which calculates w(z) = exp(-z**2) * ...
paulmueller/PyCorrFit
pycorrfit/models/MODEL_TIRF_gaussian_3D3D.py
Python
gpl-2.0
7,099
[ "Gaussian" ]
a9967d011e65dd0d2ff3048b248828f0b6c96a173abff9d2e123bcc337aa209b
# # This implementation is derived from the ``concurrent.futures`` # module of Python 3.2, by Brian Quinlan, (C) 2011 the Python Software # Foundation. See http://docs.python.org/3/license.html for more information. import logging import signal import threading import uuid from itertools import islice from contextlib ...
ASinanSaglam/westpa
src/westpa/work_managers/core.py
Python
gpl-3.0
15,025
[ "Brian" ]
22fbeff5bd601c6a86ebbe7d42082dbb6984f1d08b344a0915d7593b9a199538
# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com) # 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. """Base classes for Bio.Phylo objects. All object representations for phylogenetic tree...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/Phylo/BaseTree.py
Python
gpl-2.0
34,923
[ "Biopython", "Octopus" ]
adae7a58f8276c9667f3fc708152f9489042baa368d90f1b03c4280b36ae60e5
""" This is a test implementation of Wizbit sync using mock objects. The first phases uses a Breadth First Search on the mock DAG to exchange a list of SHA1's with another mock DAG. When we encounter a commit that is in both DAG's, the system knows it no longer has to visit parents of that commit. The number of SHA1'...
wizbit-archive/wizbit
design/bfs_sha1_exchange.py
Python
lgpl-2.1
7,469
[ "VisIt" ]
093fa7b015dec209a798150156c63058b2d8aacaaa07ed9cd394f59fff986eb6
#Copyright 2009 Almero Gouws, <14366037@sun.ac.za> """ This module functions used to implement a Depth-first search on a graph. The functions contained in this module are: 'dfs': Performs a depth first search on a graph. 'dfs_visit': Performs a depth first search visit on a node in a graph. """ __doc...
bhrzslm/uncertainty-reasoning
my_engine/others/GrMPy/lib/GrMPy/dfs.py
Python
mit
2,768
[ "VisIt" ]
ea36fb2925a341cfaab6bac2b1a2053f9cc1209c576ea041e102008cebfac369
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General...
e-gob/plataforma-kioscos-autoatencion
scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/modules/network/avi/avi_ipamdnsproviderprofile.py
Python
bsd-3-clause
5,006
[ "VisIt" ]
2d362aad8d137c7fac2059a3440d57cffb8c38440c67b3e5bd7837f87514ea84
# #-*- coding:utf-8 -*- """ Gentoo-keys - actionbase.py Base api interface module @copyright: 2012-2015 by Brian Dolbec <dol-sen@gentoo.org> @license: GNU GPL2, see COPYING for details. """ from __future__ import print_function import os import sys if sys.version_info[0] >= 3: _unicode = str e...
gentoo/gentoo-keys
gkeys/gkeys/actionbase.py
Python
gpl-2.0
2,709
[ "Brian" ]
a699accf9418ba19b3070568b1c8bb324a8f74f11c508d9ba63e90faf737402f
import abc from typing import List from data.variable_list import VariableList class Data(metaclass=abc.ABCMeta): """Abstract base class for data access.""" def __init__(self, url: str) -> None: self.url: str = url self.interp: str = "gaussian" self.radius: int = 25000 # radius in m...
DFO-Ocean-Navigator/Ocean-Data-Map-Project
data/data.py
Python
gpl-3.0
962
[ "Gaussian" ]
3f9ac507b9190d82b3ff57a588ce01dd0ea79a5814a9eec7126e11ce838b1180
#!/usr/bin/env python ######################################################################## # $HeadURL$ ######################################################################## __RCSID__ = "$Id$" from DIRAC.Core.Base import Script Script.setUsageMessage( """ Returns the LFN matching given GUIDs Usage: %s <GUIDs...
coberger/DIRAC
DataManagementSystem/scripts/dirac-dms-resolve-guid.py
Python
gpl-3.0
1,145
[ "DIRAC" ]
722c6cf45db1b6bcc7597b6d0b9a158316a79641d47793e93dfddba057489651
#* This file is part of Zapdos, an open-source #* application for the simulation of plasmas #* https://github.com/shannon-lab/zapdos #* #* Zapdos is powered by the MOOSE Framework #* https://www.mooseframework.org #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl-2.1.htm...
lindsayad/zapdos
problems/process_jac_matrix.py
Python
lgpl-2.1
1,592
[ "MOOSE" ]
490c970fd1b128143d4c784b2ab29746e5c99b4d03f7f629612cea1287d330d6
#!/usr/bin/python #Audio Tools, a module and set of tools for manipulating audio data #Copyright (C) 2007-2012 Brian Langenberger #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...
R-a-dio/python-audio-tools
audiotools/aiff.py
Python
gpl-2.0
38,359
[ "Brian" ]
b4e67040661c4823285576e531718593b8574061e3e24f454fcdef3763d0fb98
# -*- coding: utf-8 -*- """ Authors: Tim Hessels UNESCO-IHE 2016 Contact: t.hessels@unesco-ihe.org Repository: https://github.com/wateraccounting/wa Module: Collect/CFSR """ # General modules import pandas as pd import os import numpy as np from netCDF4 import Dataset import re from joblib import Parallel, del...
wateraccounting/wa
Collect/CFSR/DataAccess_CFSR.py
Python
apache-2.0
8,868
[ "NetCDF" ]
c7c2b2d8d2defe4b5df740630a870be610f8ebe8d22467fe0f2664b78ff3a8ee
import numpy as np from .control import model_setup from .cp_confocal import twod, threed from .cp_triplet import trip from .cp_mix import double_pnum # 3D + 2D + TT Gauß # Model 6045 def CF_Gxyz_gauss_3D2DTT(parms, tau): u""" Two-component three-dimensional free diffusion with a Gaussian laser profile, ...
paulmueller/PyCorrFit
pycorrfit/models/model_confocal_tt_3d_2d.py
Python
gpl-2.0
5,176
[ "Gaussian" ]
12269ab36ff607273bca6c5d125a5760289d19002a3db2eac8e123085849c09d
# Copyright (C) 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 versio...
psci2195/espresso-ffans
testsuite/scripts/tutorials/test_06-active_matter__rectification_geometry.py
Python
gpl-3.0
1,233
[ "ESPResSo", "VTK" ]
49ef2a6f431c60f81a85e0adc63519fed2d4366d42737710ab474a1aab201282
# 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...
ghchinoy/tensorflow
tensorflow/python/autograph/pyct/ast_util.py
Python
apache-2.0
10,780
[ "VisIt" ]
e7f9ce82588ddbe5ca5c8b2f899124145cda7c0ceddaa619d578d66b135402a3
"""K-means clustering""" # Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Thomas Rueckstiess <ruecksti@in.tum.de> # James Bergstra <james.bergstra@umontreal.ca> # Jan Schlueter <scikit-learn@jan-schlueter.de> # Nelle Varoquaux # Peter Prettenhofer <peter.prettenh...
asnorkin/sentiment_analysis
site/lib/python2.7/site-packages/sklearn/cluster/k_means_.py
Python
mit
59,557
[ "Gaussian" ]
e9a98c242f63ebd182dca1052aefbad5430ba69e5a8771e4376aa9cca27c2871
import numpy as np import ase from pyemto.utilities import distort, rotation_matrix from pyemto.examples.emto_input_generator import * from pymatgen import Lattice from ase.visualize import view from ase.build import cut, make_supercell import sys find_primitive = False make_supercell = None coords_are_cartesian = Tru...
hpleva/pyemto
example_projects/fcc_elastic_constants/input_scripts/elastic_constants/input.py
Python
mit
4,397
[ "ASE", "pymatgen" ]
05b3cea72a7b1aeb2edd615bf20d4f001fee352d00f4371d4aee5bd292442a01
"""Playing around with a more performant implementation of t-SNE.""" import logging import pickle from pymatgen import MPRester from tsne import bh_sne from plot_tsne import plot_tsne from vectorize_material import vectorize_random # Set up streaming log to console with formatting _log = logging.getLogger('neigh_p...
mp-interns/eratosthenes
neigh/alt/neigh_perf.py
Python
bsd-2-clause
2,148
[ "pymatgen" ]
e3c783f06573d46784411429c6c60e977c8d81ba1311eaa101b71de41b622296
import os import unittest from pymatgen.entries.correction_calculator import CorrectionCalculator from pymatgen.util.testing import PymatgenTest class CorrectionCalculatorTest(unittest.TestCase): def setUp(self): self.normal_corrections = { "oxide": (-0.74, 0.0017), "peroxide": (...
davidwaroquiers/pymatgen
pymatgen/entries/tests/test_correction_calculator.py
Python
mit
4,936
[ "pymatgen" ]
28b75cf84f0a37d275eeaa1d1284f6a358a8d8b11a4ed32e9a560700413c753f
import string import random import inspect import visitor import astnode as ast from codegen import calvin_astgen, calvin_components, query, PortlistRewrite #, ResolvePortRefs from parser import calvin_parse from calvin.actorstore.store import DocumentationStore _docstore = DocumentationStore() def _refname(name): ...
EricssonResearch/calvin-base
calvin/csparser/visualize.py
Python
apache-2.0
11,292
[ "VisIt" ]
5bdf7f57390c4816d63fa5d420f89368a95fc8693a72624aec4fe356281848ee
#-*- coding:utf-8 -*- """ Gentoo-keys - actions.py Primary api interface module @copyright: 2012-2015 by Brian Dolbec <dol-sen@gentoo.org> @copyright: 2014-2015 by Pavlos Ratis <dastergon@gentoo.org> @license: GNU GPL2, see COPYING for details. """ from __future__ import print_function import ...
gentoo/gentoo-keys
gkeys/gkeys/actions.py
Python
gpl-2.0
46,439
[ "Brian" ]
4ff42f05014aa34ab637052a6cbb90c3a617816baca81313e4ef9a3aefacefc3
#!/usr/local/bin/python import argparse _help = """ Converts a minirepro taken with GPDB5 or earlier for use with GPDB 6 and later """ # Description: # # Usage: ./convert_minirepro_5_to_6.py my_minirepro # creates my_minirepro_6X file # # GPDB6 added a new field to pg_statistic, making minirepros taken with GPDB5 #...
50wu/gpdb
src/backend/gporca/scripts/convert_minirepro_5_to_6.py
Python
apache-2.0
2,836
[ "ORCA" ]
91f06ff6ebcd6b6a3bb758ac1da2e530990a38b360812366d9c5ecbdeabb3863
############################################################################### # ilastik: interactive learning and segmentation toolkit # # Copyright (C) 2011-2014, the ilastik developers # <team@ilastik.org> # # This program is free software; you can redistribute it and/or # mod...
ilastikdev/ilastik
ilastik/applets/pixelClassification/pixelClassificationGui.py
Python
gpl-3.0
36,506
[ "Gaussian" ]
35e5be22c5fecf769cfffd787cff723de4da65e0e917540465b2c1e46d733223
#!/usr/bin/env python32 #* 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/lg...
nuclear-wizard/moose
modules/porous_flow/examples/tidal/atm_tides_open_hole.py
Python
lgpl-2.1
1,682
[ "MOOSE" ]
64cb53f2bf1843153df94e8f571cdc5dabbd49791abbb051b93ec4186de3b89c
#!/usr/bin/env python3 """ Copyright 2020 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 ...
pwillworth/galaxyharvester
html/getSpawnNames.py
Python
gpl-3.0
2,041
[ "Galaxy" ]
394ea8a33e5854c5fb69678e70aac84b716938f9f7544ec5b972fdfb8c23117c
''' Created on 2013-05-27 @author: brian ''' from pygame.color import THECOLORS from random import randint from projectiles import Star class HealBolt(object): range = 5 damage = 2, 5 heal = True name = "Heal Bolt" icon = "healbolt" cooldown = 0 def __init__(self, caster, location, item): self.item = it...
Greymerk/python-rpg
src/abilities/healbolt.py
Python
gpl-3.0
1,661
[ "Brian" ]
3924d5f6cfe636ea5b236f73271064ee05c2bebf36992583c641edce4f8aab2a
WORDS = ( 'Aaron', 'Abbey', 'Abbie', 'Abby', 'Abigail', 'Ada', 'Adah', 'Adaline', 'Adam', 'Addie', 'Adela', 'Adelaida', 'Adelaide', 'Adele', 'Adelia', 'Adelina', 'Adeline', 'Adell', 'Adella', 'Adelle', 'Adena', 'Adina', 'Adria', 'Adrian', 'Adriana', 'Adriane', 'Adrianna', 'Adrianne', 'Adrie...
geradcoles/random-name
randomname/lists/names_female.py
Python
apache-2.0
47,154
[ "Amber", "Brian", "CRYSTAL" ]
3cd255220799362d1c4b907d4163926fe01da2809631a095fd5b193479071978
#!/usr/bin/env python # -*- coding: utf-8 -*- r""" A collection of functions for creating k-points input for different first-principles codes. All functions have the same calling structure as :func:`prototype`. """ import decorator import numpy as np from fsc.export import export @export def prototype(kpt): r""...
Z2PackDev/Z2Pack
z2pack/fp/kpoint.py
Python
gpl-3.0
6,448
[ "ABINIT", "CRYSTAL", "Quantum ESPRESSO", "VASP", "Wannier90" ]
d0c8040020ae4c36dac887646ef6d9a4110f454d075849b8f26df3d1600da9fe
#!/usr/bin/env python """This script tests a FABM configuration (fabm.yaml) by reading the value of the model state and environmental dependencies from one or more files (e.g., outputs of a 3D model), and then evaluating the model's rate of change for that state and environment. The absolute and relative rates of chang...
hofmeist/fabm-ihf
testcases/python/fabm_evaluate.py
Python
gpl-2.0
8,822
[ "NetCDF" ]
d3f264fa12db91d97962c0227e735162cc5d499c096ab48e818ee2859743a7eb
from Logger import initLogger from Pipeline import * from OutputDir import mkOutputDir from Options import getConfig from sys import exit options = getOptions() initLogger(options['logging']) reference = options['reference'] sequences = options['sequences'] if len(sequences == 0): exit('At least one sequence fil...
bjpop/ngs-pipeline
src/python/Sequential.py
Python
bsd-3-clause
1,502
[ "BWA" ]
c4eca3c0c85499e7986532d0dc59feeac3910d4f4e4f385e388d48d8ce8f5685
from jinja2.ext import Extension import os import pyjade.runtime from pyjade import Compiler as _Compiler from pyjade.runtime import attrs as _attrs, iteration from jinja2 import Markup from jinja2.runtime import Undefined from pyjade.utils import process ATTRS_FUNC = '__pyjade_attrs' ITER_FUNC = '__pyjade_iter' def...
syrusakbary/pyjade
pyjade/ext/jinja.py
Python
mit
4,573
[ "VisIt" ]
eb26f14b3d9c30978f0a7f5682785cec9b7bb7949f9fb9905e68556619f1169d
"""Builds the CIFAR-10 network. Summary of available functions: # Compute input images and labels for training. If you would like to run # evaluations, use input() instead. inputs, labels = distorted_inputs() # Compute inference on the model inputs to make a prediction. predictions = inference(inputs) # Compu...
brodyh/tensorflow
tensorflow/models/image/cifar10/cifar10.py
Python
apache-2.0
17,896
[ "Gaussian" ]
2d2b3dc1df2ab4fd71e0225b08c45569bd31c25b4e34522b18de59caea714e6c
# -*- coding: utf-8 -*- """ Acceptance tests for Video. """ import os from ddt import ddt, unpack, data from mock import patch from nose.plugins.attrib import attr from unittest import skipIf, skip from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from common...
prarthitm/edxplatform
common/test/acceptance/tests/video/test_video_module.py
Python
agpl-3.0
51,462
[ "VisIt" ]
b12220e91e29df3671dced238485afdd61d2aeefb1ee122535c157dc94a2e008
#!/usr/bin/env python3 import torch from ..distributions import Delta from ._variational_distribution import _VariationalDistribution class DeltaVariationalDistribution(_VariationalDistribution): """ This :obj:`~gpytorch.variational._VariationalDistribution` object replaces a variational distribution wi...
jrg365/gpytorch
gpytorch/variational/delta_variational_distribution.py
Python
mit
1,670
[ "Gaussian" ]
3aeebd4865b0d36070865e9abad37d0b1b2d31494353dd895f1388598be11525
######################################################################## # File : BOINCComputingElement.py # Author : J.Wu ######################################################################## """ BOINC Computing Element """ from __future__ import print_function from __future__ import absolute_import from __futu...
yujikato/DIRAC
src/DIRAC/Resources/Computing/BOINCComputingElement.py
Python
gpl-3.0
13,087
[ "DIRAC" ]
0f8e0398f6b03baf1ac45e769ecc5fb30067a0699b6140e9735251c8e0de1b6e
#!/usr/bin/env python # -*- coding: utf-8 -*- import rdkit from rdkit.Chem import AllChem from rdkit import DataStructs __license__ = "X11" METADATA = { "id": "method_rdkit_ecfc8_tanimoto", "representation": "ecfc8", "similarity": "tanimoto" } def _compute_fingerprint(molecule): return AllChem.GetM...
skodapetr/lbvs-environment
methods/ecfc/ecfc8_tanimoto.py
Python
mit
1,365
[ "RDKit" ]
b41789123c06ffd1eafa268853a784d7958bb3b3ffe2620953f9045eb7b1184c
import logging logging.basicConfig(level=logging.DEBUG) import nengo import nengo_spinnaker import numpy as np def test_probe_ensemble_spikes(): with nengo.Network("Test Network") as network: a = nengo.Node(lambda t: -1.0 if t > 1.0 else 1.0) # Create a 2 neuron ensemble with opposing encoders ...
project-rig/nengo_spinnaker
regression-tests/test_spike_probing.py
Python
mit
1,304
[ "NEURON" ]
cdeb9a847377d523447e4fa353d1c7aab628fb3ea32135c55719a324d9aadc38
""" The FileCatalogClient is a class representing the client of the DIRAC File Catalog """ import os from DIRAC import S_OK, S_ERROR from DIRAC.Core.Tornado.Client.ClientSelector import TransferClientSelector as TransferClient from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getVOMSAttributeForGroup, get...
DIRACGrid/DIRAC
src/DIRAC/Resources/Catalog/FileCatalogClient.py
Python
gpl-3.0
25,531
[ "DIRAC" ]
f47fbc872efe50e519b301f9343115021da9a757aba1e7ebba17b367ebcced92
# -*- coding: utf-8 -*- import logging import re from django.apps import apps from django.core.exceptions import ValidationError from website.util import sanitize logger = logging.getLogger(__name__) def has_anonymous_link(node, auth): """check if the node is anonymous to the user :param Node node: Node w...
aaxelb/osf.io
website/project/model.py
Python
apache-2.0
2,778
[ "VisIt" ]
b21305baac55dd78b92de1e25fbe55149d7dd92104489e6fb23055b0e9afe4e1
# # @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/p4util/solvers.py
Python
lgpl-3.0
37,813
[ "Psi4" ]
5b2d9596b9b47c225259436d16aa6d2e68bd83dc406430f3937ba2211525406e
# ============================================================================ # # Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
jeroendierckx/Camelot
camelot/view/controls/editors/fileeditor.py
Python
gpl-2.0
9,897
[ "VisIt" ]
74cce09bef7ba3a0bf47df01469bf33b67fd8eba2fc18f4a4ff3f348497f19d0
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General...
le9i0nx/ansible
lib/ansible/modules/network/avi/avi_webhook.py
Python
gpl-3.0
4,423
[ "VisIt" ]
bb5ad11535ac9adeca56417986f55068d2a57d20a4ad3354cc279ea9581dce3d
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Patient.name' db.add_column('core_patient', 'name', self.gf('django.db.models.fields.CharF...
praekelt/txtalert
txtalert/core/migrations/0009_auto__add_field_patient_name__add_field_patient_surname__add_field_his.py
Python
gpl-3.0
14,885
[ "VisIt" ]
5ab902383d47b48978c8d82f0cf9ee17dbeb752715b87e8f46661a0ccd6ef87c
""" This file is part of canisrufus Copyright (C) 2017 @maldevel https://github.com/maldevel/canisrufus canisrufus - A fully featured backdoor that uses Github as a C&C server This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public ...
maldevel/canisrufus
canisrufus.py
Python
gpl-3.0
16,368
[ "VisIt" ]
e4dcb64721727b8f2ccc288bd0c489831fcd19f75ae26f64c27afb3f8a9564b6
import inspect import os import re import subprocess from functools import partial from io import StringIO from itertools import islice from os import makedirs from os.path import splitext, join, dirname, basename, relpath, normpath from subprocess import run import chemcoord as cc import numpy as np from datasize imp...
mcocdawc/chemopt
src/chemopt/interface/molcas.py
Python
lgpl-3.0
8,088
[ "MOLCAS" ]
82a70662a10ca8c36c4a296dc4594c5993e40dcdd2ea47af2a979c67f2a3ab36
# $HeadURL$ """ Nova11 driver to nova v_1.1 endpoint using libcloud """ # File : Nova11.py # Author : Victor Mendez ( vmendez.tic@gmail.com ) import os import paramiko import time from libcloud import security from libcloud.compute.types import Provider from libcloud.compute.provide...
vmendez/VMDIRAC
WorkloadManagementSystem/Client/Nova11.py
Python
gpl-3.0
19,262
[ "DIRAC" ]
be3997e641232bb04fc59ed695bdf90ccf5398675f1e3de3ba02676cfae22cd6
# Copyright (C) 2007, Thomas Leonard # See the README file for details, or visit http://0install.net. import copy import os, subprocess, shutil, tarfile import urlparse, ftplib, httplib from zeroinstall import SafeException from zeroinstall.injector import model, qdom from logging import info release_status_file = os...
gfxmonk/0release
support.py
Python
lgpl-2.1
7,352
[ "VisIt" ]
815d0cb32bf2d5b32f9419cd3b446d1d0a8ea4ae3ccbd52a91906e4320727372
from django.db.models import Q from dateutil.relativedelta import relativedelta from edc_registration.models import RegisteredSubject from edc_constants.constants import POS, NEG, UNK, IND from td_maternal.models import AntenatalEnrollment, RapidTestResult, MaternalInterimIdcc from django.core.exceptions import Valid...
botswana-harvard/tshilo-dikotla
td_maternal/classes/maternal_status_helper.py
Python
gpl-2.0
4,390
[ "VisIt" ]
d057bcf456196d215293af3279bcc4d76e56ee8d4325d6710679d062deb7210d
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: # # MDTraj is free software: y...
daviddesancho/mdtraj
mdtraj/utils/unit/__init__.py
Python
lgpl-2.1
6,908
[ "MDTraj", "OpenMM", "VisIt" ]
887a692cf1bcf329150cf11563265176d39c101de051e8a7af51a20b56b9e491
# encoding: utf-8 """A dict subclass that supports attribute style access. Authors: * Fernando Perez (original) * Brian Granger (refactoring to a dict subclass) """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed...
maximsch2/SublimeIPythonNotebook
external/nbformat3/ipstruct.py
Python
gpl-3.0
11,879
[ "Brian" ]
2e02675f70394298657ed08862d2c6a897c5132cf310e63579788a47b3a8da13
## ## Biskit, a toolkit for the manipulation of macromolecular structures ## Copyright (C) 2004-2018 Raik Gruenberg ## ## 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 ...
graik/biskit
biskit/amberResidueLibrary.py
Python
gpl-3.0
8,496
[ "Amber" ]
c240d14fd81d0973ce6e018e56a851c2fd7766163d66330bad1b4b2d15b58cbf
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/scf/uhf_symm.py
Python
apache-2.0
22,072
[ "PySCF" ]
fab0daf108b21bb49b31d76d9e37e7d819eb8371761b0985ea8fa61b92cd325a
import os import vtkAll as vtk from shallowCopy import shallowCopy def readPolyData(filename, computeNormals=False): ext = os.path.splitext(filename)[1].lower() readers = { '.vtp' : vtk.vtkXMLPolyDataReader, '.vtk' : vtk.vtkPolyDataReader, '.ply' : vtk.vtkPLYReader, ...
mitdrc/director
src/python/director/ioUtils.py
Python
bsd-3-clause
3,976
[ "VTK" ]
da648a4d343447741df7efffe10d4df33128786765c341a5151136754f66f8f6
''' Recurrent Highway Networks ------------------------------------------------------------------------------- Julian Georg Zilly | Rupesh Kumar Srivastava | Jan Koutnik | Jurgen Schmidhuber https://arxiv.org/abs/1607.03474 This is an implementation of language modeling experiments on text8 dataset as specified in the...
datalogai/recurrentshop
examples/recurrent_highway_networks.py
Python
mit
5,919
[ "VisIt" ]
5359d7cc1347c8abeb09ed7f054dbfb9c224a46d46fdd693baa5e0f29efe5a0d
from aiida import load_dbenv load_dbenv() from aiida.orm import Code, DataFactory from pymatgen.io import vasp as vaspio StructureData = DataFactory('structure') ParameterData = DataFactory('parameter') import numpy as np codename = 'vasp541mpi@stern' ############################ # Define input parameters # #####...
abelcarreras/aiida_extensions
plugins/launcher/launch_vasp_si.py
Python
mit
4,007
[ "VASP", "pymatgen" ]
59d26c319a468838055c58b8374ffd53c8559ca6e5e9520af4d0b8854770cc4b
# Author: Travis Oliphant, 2002 # # Further updates and enhancements by many SciPy developers. # from __future__ import division, print_function, absolute_import import math import warnings from collections import namedtuple import numpy as np from numpy import (isscalar, r_, log, sum, around, unique, asarray, ...
piyush0609/scipy
scipy/stats/morestats.py
Python
bsd-3-clause
87,801
[ "Gaussian" ]
a3315540d88968cd788f2d227708554ae61b240d26b213c3e90e54ebc36a4575
# -*- coding: utf-8 -*- # # Cherokee-admin # # Authors: # Alvaro Lopez Ortega <alvaro@alobbs.com> # # Copyright (C) 2001-2011 Alvaro Lopez Ortega # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License as published by the Free S...
nuxleus/cherokee-webserver
admin/market/Install.py
Python
gpl-2.0
21,050
[ "VisIt" ]
7f3731d608fef7e0dde96fb7b743319f59d6207b8b553767e9606fc42ce05d80
__author__ = "Jose Diaz" __copyright__ = "Copyright (C) 2015, Jose Diaz" __license__ = "GPL v3.0" __version__ = "1.0" __revision__ = "18" __date__ = "$02/04/2015 11:57:06 PM$" __status__ = "Desarrollo" __contact__ = "966403361" __email__ = "jozz.18x@gmail.com" import sys from tkinter import * from tkinte...
jozz68x/Simulador-Cisco
src/simulador.py
Python
gpl-3.0
46,868
[ "FLEUR" ]
c34e797d375bc52ba14812e5011afaebd9a15e13eceb870e48fb26b799e23a38
#!/usr/bin/env python3 import os import json import sys import time import argparse import multiprocessing import pychemia from pychemia.db import get_database def safe_read_json(filename): """ Safely read a given filename, extract and returns the associated dictionary """ if not os.path.exists(filen...
MaterialsDiscovery/PyChemia
scripts/StructuralSearch.py
Python
mit
7,911
[ "ABINIT", "Firefly" ]
394109281cf0f753bde05143104650ddf3143da3a615fc68acf60886d717cd51
# # @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 #...
lothian/psi4
psi4/driver/procrouting/dft/dh_functionals.py
Python
lgpl-3.0
18,989
[ "Psi4" ]
6cb702f2b0d88e65ae8ab0c0390480eaaca5f83ee09daba96edfeed0b1151474
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # iobase - wrapper to wrap local and dist io in one # Copyright (C) 2003-2014 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 terms of the GNU General P...
heromod/migrid
mig/shared/iobase.py
Python
gpl-2.0
19,223
[ "Brian" ]
5147a3d16e7e980799da27a9d68effc95f81d114341c1c58c838e7d8a49ccf81
# Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. """Unittest for ipaddress module.""" import unittest import re import contextlib import functools import operator import pickle import ipaddress import weakref class BaseTestCase(unittest.TestCase): # One big change in ipaddress ove...
batermj/algorithm-challenger
code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Lib/test/test_ipaddress.py
Python
apache-2.0
87,188
[ "FEFF" ]
3d51ded7f3bdf58a0305fc3aa230983d4910380d6f610271271f5621dab5b48a
# Orca # # Copyright 2004-2009 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...
chrys87/orca-beep
src/orca/script.py
Python
lgpl-2.1
24,152
[ "ORCA" ]
c63e8dcae8ee1dba32b0aac0c0d354bc1e75b291f8d46d183be93537b961a159
from datetime import datetime from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.shortcuts import render from registration.backends.simple.views import RegistrationView from rango.forms import CategoryForm from rango.forms import PageForm # Importing category mo...
vaibhavsingh97/Rango
rango/views.py
Python
gpl-3.0
10,021
[ "VisIt" ]
5ff0c6517443a1ccf023d5b2a210676da47e35c7042facb39bd65f3e358999cd
../../../../../../../share/pyshared/orca/scripts/apps/gnome-mud/script.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/gnome-mud/script.py
Python
gpl-3.0
73
[ "ORCA" ]
7b5eeab167d4dce1fd769b0d7203210e1add397a5078a6a596323271bb2ba52e
# Created by John Travers, Robert Hetland, 2007 """ Test functions for rbf module """ from __future__ import division, print_function, absolute_import import numpy as np from numpy.testing import (assert_, assert_array_almost_equal, assert_almost_equal) from numpy import linspace, sin, rand...
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/scipy/interpolate/tests/test_rbf.py
Python
mit
4,505
[ "Gaussian" ]
d591ab84e8faed12efeeda49f1acf9cfdfe9a7bc66cca6a3e4c50b8d412b13f1
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/plugins/bibles/lib/__init__.py
Python
gpl-2.0
18,655
[ "Brian" ]
c2e4919e229a77597808bcb9ccc52d8414694a533423b7de94263b9fde27cf5b
''' hw4_3.py Vogels-Abbott network ''' from neuron import h, gui import random h.load_file("stdrun.hoc") h.load_file("CNSutils.hoc") # Fix the seed for random number generators seed = 1 random.seed(seed) r = h.Random(seed) r.uniform(0,1) # The simulation will run for 100 ms. h.tstop = 200 # Variable step controll...
shhong/a310_cns_2017
Assignment_4/hw4_3.py
Python
gpl-3.0
3,362
[ "NEURON" ]
864802b57b803f8570729e306ad274c3e12921910afb4df0f1e38772926f89c2
from __future__ import division, absolute_import, print_function import os import sys import types import re from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype from numpy.core import ndarray, ufunc, asarray __all__ = [ 'issubclass_', 'issubsctype', 'issubdtype', 'deprecate', 'deprecate_...
NextThought/pypy-numpy
numpy/lib/utils.py
Python
bsd-3-clause
37,308
[ "VisIt" ]
f248d5e52c98f5624974aa91f69b40bed52fe2e4fe788d4e279608dff1154b81
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string, optparse, subprocess import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','desc...
Robbe92/TiDAKeyboardControl
build.py
Python
lgpl-2.1
8,787
[ "VisIt" ]
54cda44d69486eba3c5bc47f3703a15551643f6cc167eb2b334e98823a52764e
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 (usua...
sonaht/ansible
setup.py
Python
gpl-3.0
3,863
[ "Galaxy" ]
85266fc391b5761c88d968174c224dbc80daf66dc7f8d77a25160b22ff6546a9
import matplotlib import numpy as np import scipy as sp import matplotlib.pyplot as plt import scipy.io from sklearn.cross_decomposition import CCA from orthAE import OrthdAE # generate toy data for multi-view learning from paper "Factorized Latent Spaces with Structured Sparsity" t = np.arange(-1, 1, 0.02) x = np....
tengerye/orthogonal-denoising-autoencoder
tensorflow/demo.py
Python
apache-2.0
2,335
[ "Gaussian" ]
130cd0e16080d2fe7b3149339dd31039f7668f65a7ee83e936f26d3d9837e9f8
from random import Random #from time import time from inspyred import ec from inspyred.ec import terminators from inspyred.ec import variators from inspyred.ec import observers from fitnessFunctions import fF,frange #from fitnessFunctions import * import sys import inspyred import logging from scipy import optimize, ar...
vellamike/optimizer
optimizer/optimizerHandler.py
Python
lgpl-2.1
38,459
[ "Gaussian" ]
5b4a36a584ac5e3d165724ae822aa335d6927aa95d95092b1270d0dd16a573cb
# -*- coding: utf-8 -*- # coding=utf-8 # Copyright 2019 The SGNMT 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 requir...
ucam-smt/sgnmt
cam/sgnmt/decoding/core.py
Python
apache-2.0
43,307
[ "MOE" ]
c3eeba4c98e86c716db1ef27607e8a248cfbf88852c83006c44c18ef21284e72
# # ---------------------------------------------------------------------------------------------------- # # Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify ...
graalvm/mx
mx.py
Python
gpl-2.0
772,837
[ "VisIt" ]
ad0987d20f4484f496970d429fc4e7de116f47d0ca31e8ace1edd93e58902420
#!/usr/bin/env python #import pyfits from LCScommon import * from pylab import * import os from astropy.table import Table from astropy.io import fits from astropy.io import ascii import mystuff as my import chary_elbaz_24um as chary mingalaxysize_kpc=my.DA(clusterbiweightcenter['Hercules']/3.e5,h)*mingalaxysize clas...
rfinn/LCS
paper1code/LCSReadmasterBaseNSA.py
Python
gpl-3.0
24,274
[ "Galaxy" ]
7ea4c2dfb964ef47c8bbff16ee4bd9c274f498a0d4c53583581d71b1044f2511
from __future__ import division import copy import new import math import multiprocessing as mp import time import timeit import shutil import json as ujson from tempfile import mkdtemp import copy_reg import numpy as np import os import os.path from megaradrp.core.recipe import MegaraBaseRecipe from numina.core im...
Pica4x6/megaradrp
megaradrp/recipes/calibration/weights.py
Python
gpl-3.0
15,527
[ "Gaussian" ]
e9d8f218a13864a52e4176cf58f8281bd1c5b315b4a0c26272c10bb45d8849d7
#!/usr/bin/env python # # Copyright (C) 2013-2017(H) # Max Planck Institute for Polymer Research # # 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, ei...
espressopp/espressopp
testsuite/AdResS/FreeEnergyCompensation/test_FreeEnergyCompensation.py
Python
gpl-3.0
6,877
[ "ESPResSo" ]
8404992e16da27dad59b0ce28534469bf913331b6a0e37c0fba3094b0de92953
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under th...
kain88-de/mdanalysis
package/MDAnalysis/coordinates/null.py
Python
gpl-2.0
1,925
[ "MDAnalysis" ]
1954c0f4137174443dff7e4e1dca81a69f7ebf4efb80768417f1f1db4eb007b5
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the Opera browser history parsers.""" import unittest from plaso.formatters import opera # pylint: disable=unused-import from plaso.lib import timelib from plaso.parsers import opera from tests import test_lib as shared_test_lib from tests.parsers import test_l...
dc3-plaso/plaso
tests/parsers/opera.py
Python
apache-2.0
3,317
[ "VisIt" ]
dae6ccbe5d69f59b915d281795c2f8a69022829120bde7b36a271e6482ad9976
# ---------------------------------------------------------------------------- # Copyright 2015-2016 Nervana Systems 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.apa...
Jokeren/neon
tests/test_gradient_mlp.py
Python
apache-2.0
2,955
[ "Gaussian" ]
4f65060399c742acd329a0e7af2865f65f9177e4c727f54b3674d9f7ec16249d
import numpy class Gaussian: def __init__(self, magnitude, sigma, mu): self.sigma = sigma self.mu = mu self.magnitude = magnitude / numpy.sqrt(numpy.pi*2*self.sigma**2) def __call__(self, x): return(self.magnitude*numpy.exp(-(x-self.mu)**2/(2*self.sigma**2))) def __str__(s...
tsbischof/photon_correlation
python/photon_correlation/Gaussian.py
Python
bsd-3-clause
443
[ "Gaussian" ]
30c0cac85d11de98dc59a24ae17f539bc89f3b4780dd12cdbfbd1bad405f6868
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------- # Copyright (c) 2009 Jendrik Seipp # # RedNotebook 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 vers...
pakesson/rednotebook
rednotebook/util/utils.py
Python
gpl-2.0
12,635
[ "VisIt" ]
344677ed47bef08f94df5c26ee5b620495907492e1a3e04dba4341a3ba451f31
#!/usr/bin/python # -*- coding: utf-8 -*- """This module defines an interface to CASTEP for use by the ASE (Webpage: http://wiki.fysik.dtu.dk/ase) Authors: Max Hoffmann, max.hoffmann@ch.tum.de Jörg Meyer, joerg.meyer@ch.tum.de """ __all__ = [ 'Castep', 'CastepCell', 'CastepParam', 'create_...
alexei-matveev/ase-local
ase/calculators/castep.py
Python
gpl-2.0
81,101
[ "ASE", "CASTEP" ]
fa814c2c34c8e4996e85f8a3079cfc4edb3e1b22fbb5fa3a5d3237b3c6de768b
# -*- coding: utf-8 -*- """ Acceptance tests for CMS Video Module. """ from nose.plugins.attrib import attr from unittest import skipIf from ...pages.studio.auto_auth import AutoAuthPage from ...pages.studio.overview import CourseOutlinePage from ...pages.studio.video.video import VideoComponentPage from ...fixtures.c...
kuiwei/kuiwei
common/test/acceptance/tests/video/test_studio_video_module.py
Python
agpl-3.0
9,603
[ "VisIt" ]
b09e3b4ce2cbb2b2f7b313c49ac088a40b167a82566cfa04e397aa72c0770853