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
# 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...
ruibarreira/linuxtrail
usr/lib/python3/dist-packages/orca/scripts/toolkits/Gecko/structural_navigation.py
Python
gpl-3.0
10,893
[ "ORCA" ]
4f12c89af40197d2df09496c572f2d514c1e34a48bb8290075846b079ac261ca
"""Module collecting functions dealing with the GLUE2 information schema :author: A.Sailer Known problems: * ARC CEs do not seem to publish wall or CPU time per queue anywhere * There is no consistency between which memory information is provided where, execution environment vs. information for a share * Some ...
yujikato/DIRAC
src/DIRAC/Core/Utilities/Glue2.py
Python
gpl-3.0
14,902
[ "DIRAC" ]
fa6da492228f5dfe2fe8aaa5c3ac7538fc3bf9f3fac8cff88e3237034ed495ab
# -*- coding: utf-8 -*- # Copyright (c) 2006-2016 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2010 Maarten ter Huurne <maarten@treewalker.org> # Copyright (c) 2012-2014 Google, Inc. # Copyright (c) 2012 FELD Boris <lothiraldan@gmail.com> # Copyright (c) 2013-2018 Claudiu Popa <pcmanticore@gmail.co...
ekwoodrich/python-dvrip
env/lib/python3.5/site-packages/pylint/checkers/classes.py
Python
mit
65,760
[ "VisIt" ]
54104b80fc2cbf26eba0bd9c612984e0a00b18a690c89cb55d866e3b3847b874
# ============================================================================ # # Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
kurtraschke/camelot
camelot/empty_project/model.py
Python
gpl-2.0
1,178
[ "VisIt" ]
ba887679a2853520b3b465f374ade715e180ac3055be5834c4bb2f4dac42f3b2
# -*- coding: utf-8 -*- """ Based on code by oemof development team This module provides a highlevel layer for reading and writing config files. There must be a file called "config.ini" in the root-folder of the project. The file has to be of the following structure to be imported correctly. # this is a comment \n # t...
openego/ego.io
egoio/tools/config.py
Python
agpl-3.0
2,381
[ "NetCDF" ]
5d0afb78f29a501ef76d53f1d433287c2a4822320e3fedd449a5aea60efafc9a
# -*- coding: utf-8 -*- """ End-to-end tests for the main LMS Dashboard (aka, Student Dashboard). """ import six from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acceptance.pages.lms.dashboard im...
msegado/edx-platform
common/test/acceptance/tests/lms/test_lms_dashboard.py
Python
agpl-3.0
5,727
[ "VisIt" ]
af1ba9d1af3b9c055565a0b7eed28b047d95291619955feaadf70cf7639297a6
import pandas as pd import os,sys import numpy as np import argparse from RASLseqAligner import * class RASLseqAnalysis_obj_heur(object): ''' This class creates a pandas DataFrame for RASLseq fastq sequences. Attributes of this class annotate RASLseq fastq sequences. The get_attributes ...
SuLab/RASLseqAligner
src/RASLseqAnalysis.py
Python
mit
9,381
[ "BLAST" ]
438f29df00a1a2a75ab71016267f8c1aac0407d1df245e28d376418a1ad10b39
""" ======================================= Robust vs Empirical covariance estimate ======================================= The usual covariance maximum likelihood estimate is very sensitive to the presence of outliers in the data set. In such a case, one would have better to use a robust estimator of covariance to ga...
florian-f/sklearn
examples/covariance/plot_robust_vs_empirical_covariance.py
Python
bsd-3-clause
5,859
[ "Gaussian" ]
0c2b8ceecf5b318fd56d2d3c962af8d69eaa7ff368cb2c2b3f46efccd9471432
import rose.upgrade class vn40_vn41(rose.upgrade.MacroUpgrade): """Version bump macro""" BEFORE_TAG = "vn4.0" AFTER_TAG = "vn4.1" def upgrade(self, config, meta_config=None): # Nothing to do return config, self.reports class vn41_vn42(rose.upgrade.MacroUpgrade): """Vers...
braghiere/JULESv4.6_clump
rose-meta/jules-fcm-make/versions.py
Python
gpl-2.0
3,548
[ "NetCDF" ]
e68d19f737f380162b2221a8f7a9d86a2a7039a4b067c2a2ad64042c11fae1aa
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
intel-analytics/analytics-zoo
pyzoo/test/zoo/chronos/data/experimental/test_xshardstsdataset.py
Python
apache-2.0
8,398
[ "ORCA" ]
ebbef1e0ac046d9c24aee32cae8d1b8566072e2e9391c6cd1c8cc6fd32323504
import cgi import os import os.path import sys import sha import pgdb import cStringIO class http_response(object): def __init__(self, environ, start_response): self.buffer = cStringIO.StringIO() self.environ = environ self.start_response = start_response self.status = '200 OK' self.headers = [('Content-Ty...
barneydesmond/qqc
qqc_report.py
Python
mit
15,399
[ "Desmond" ]
3aff7d934f21d34188b3689981ea310b47b65544c5b4adfa1ce2e7f5413bc207
# Copyright (c) 2012, James Hensman # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from ..core.sparse_gp_mpi import SparseGP_MPI from .. import likelihoods from .. import kern from ..inference.latent_function_inference import VarDTC from GPy.core.parameterization.variational import Nor...
mikecroucher/GPy
GPy/models/sparse_gp_regression.py
Python
bsd-3-clause
2,607
[ "Gaussian" ]
3cdeb430aaf3f855ce2bbe6e1dff0c8652bad332ba01d6e03246b6c618478735
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
mindriot101/bokeh
bokeh/__init__.py
Python
bsd-3-clause
3,530
[ "VisIt" ]
82211d88fc0371f5051a2cf2882ab02632c3aacf4ef7147eb0f5df6c8e85bad1
from __future__ import absolute_import # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import numpy as np from .transform import Transform from .affine import apply_affine from ._registration import _apply_polyaffine TINY_SIGMA = 1e-200 class PolyAff...
alexis-roche/nipy
nipy/algorithms/registration/polyaffine.py
Python
bsd-3-clause
3,773
[ "Gaussian" ]
88b0de6fdfa756a4f5d0e6ccc1ce63275dfbd8310b05bda606ae81a92dc31555
# 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...
yajiedesign/mxnet
tests/python/unittest/test_gluon_probability_v1.py
Python
apache-2.0
97,908
[ "Gaussian" ]
f21d1b35ca962a75852b8c461b7b6e84e1102548ae8a921c984c1c5e2b51b49e
# Copyright 2012 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia # This file is part of ngs_crumbs. # ngs_crumbs 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, ...
JoseBlanca/ngs_crumbs
test/bam/test_bam_tools.py
Python
gpl-3.0
8,763
[ "pysam" ]
8d688be0e1a86cea507e0cf60603a7032791e9828af97e870f877814f62c8385
# # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yashdsaraf/scancode-toolkit
src/commoncode/hash.py
Python
apache-2.0
5,715
[ "VisIt" ]
d165390d9b6716efa8f37911d931ae95705bb66af2452be309bce42c7989a74c
import sys import os import yaml import argparse import subprocess import pdb import datetime import compute, plots """ crosscorr: This module is used to compute cross-correlation redshifts for sets of galaxies. """ def process_configuration(filename): with open(filename, 'r') as f: config = yaml.load...
redshiftzero/crosscorr
crosscorr/run.py
Python
mit
1,291
[ "Galaxy" ]
e9bc6aae62de26a37fb9459d2eb2ef7e55190c9ac2db3c9ea76d9e52dc0293e4
import numpy import os import pandas import six import sys import time from io import StringIO from svviz import app class MockArgs(object): def __getattr__(self, attr): return None def run(genome, vcfs, bams, previousSummaryPath): timings = {} summaries = pandas.DataFrame() totalTime = 0 ...
svviz/svviz
src/svviz/testCounts.py
Python
mit
2,475
[ "BWA" ]
c2f9aa1a9b8509d37e265f576c4804929df4f72c033483fe2647f1480045a39b
# define your own custom voltage reset rule # this one linearly scales the input voltage def custom_voltage_reset_rule(neuron, voltage_t0, custom_param_a, custom_param_b): return custom_param_a * voltage_t0 + custom_param_b # initialize a neuron from a neuron config file neuron_config = json_utilities.read('47242...
wvangeit/AllenSDK
doc_template/examples/glif_ex6.py
Python
gpl-3.0
677
[ "NEURON" ]
1414dc9af6ae6efaebfc4573c4dbf2f7cd24e5b08e682c715a9a7cef24f5d138
"""Leave one out coding""" import numpy as np import pandas as pd from sklearn.base import BaseEstimator import category_encoders.utils as util from sklearn.utils.random import check_random_state __author__ = 'hbghhy' class LeaveOneOutEncoder(BaseEstimator, util.TransformerWithTargetMixin): """Leave one out codi...
scikit-learn-contrib/categorical-encoding
category_encoders/leave_one_out.py
Python
bsd-3-clause
11,063
[ "Gaussian" ]
f209bc773e889e3bf7a5bc6a6dcf73471a768285b3b14cfbea479851f0df7218
# -*- coding: utf-8 -*- import math import pytest from chempy import Reaction, ReactionSystem, Substance from chempy.chemistry import Equilibrium from chempy.units import ( allclose, Backend, to_unitless, units_library, patched_numpy, default_constants, simplified, default_units as u,...
bjodah/aqchem
chempy/kinetics/tests/test_rates.py
Python
bsd-2-clause
15,162
[ "ChemPy" ]
2ec3cdf8e2f85e2e427881706aaa484fb19864c78e79d413f69105be9672d01b
######################################################################## # $Id$ # File : InProcessComputingElement.py # Author : Stuart Paterson ######################################################################## """ The simplest Computing Element instance that submits jobs locally. """ __RCSID__ = "$Id$" fro...
Sbalbp/DIRAC
Resources/Computing/InProcessComputingElement.py
Python
gpl-3.0
4,456
[ "DIRAC" ]
c0f10dcfed41ee6d8f1b4f5136e9d5029444ac390905314a24021b8f2420e90f
# this program corresponds to special.py ### Means test is not done yet # E Means test is giving error (E) # F Means test is failing (F) # EF Means test is giving error and Failing #! Means test is segfaulting # 8 Means test runs forever ### test_besselpoly ### test_mathieu_a ### test_mathieu_even_coef ##...
matthewalbani/scipy
scipy/special/tests/test_basic.py
Python
bsd-3-clause
132,169
[ "Elk" ]
63be91bbaf35b1effc58812db515dfff6b858065c2bcca4d621055e1535d2357
#!/usr/bin/env python """ Extract outline edges of a given mesh and save them into '<original path>/edge_<original mesh file name>.vtk' or into a user defined output file. The outline edge is an edge for which norm(nvec1 - nvec2) < eps, where nvec1 and nvec2 are the normal vectors of the incident facets. """ from __fut...
sfepy/sfepy
script/extract_edges.py
Python
bsd-3-clause
7,359
[ "VTK" ]
c86eb2035a032144b6fd3ccee590f8ec5d3550d6c06aa10f22d47a93fb87f430
from setuptools import setup, find_packages from glob import glob import bio_bits setup( name = bio_bits.__projectname__, version = bio_bits.__release__, packages = find_packages(), author = bio_bits.__authors__, author_email = bio_bits.__authoremails__, description = bio_bits.__description__,...
VDBWRAIR/bio_bits
setup.py
Python
gpl-2.0
1,712
[ "Biopython" ]
5bf063fccf2272ee9530825ae65db3c3d137529109dd78af0458a295d264f2f4
#!/usr/bin/env python ## @package fill_missing # \brief This script solves the Laplace equation as a method of filling holes in map-plane data. # # \details The script is an implementation of the SOR method with Chebyshev # acceleration for the Laplace equation, as described in 'Numerical Recipes in # Fortran: the art...
m8se/pism_refined
util/fill_missing.py
Python
gpl-2.0
13,675
[ "NetCDF" ]
b186a32f6a4d8902f942c1ee9687f88c5ebcca1715cda1d3b22e23e962b9ba02
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be usefu...
dbbhattacharya/kitsune
vendor/packages/logilab-astng/utils.py
Python
bsd-3-clause
11,560
[ "VisIt" ]
f28127a332bc29b4e198180b1a4c3a2f62f765226d184643877e00fa8456bdac
# -*- coding:utf-8 -*- # Copyright (c) 2015, Galaxy Authors. All Rights Reserved # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Author: wangtaize@baidu.com # Date: 2015-04-01 from bootstrap import settings from common import http from galaxy import wrapper SHO...
leoYY/galaxy
console/backend/src/console/cluster/views.py
Python
bsd-3-clause
2,618
[ "Galaxy" ]
a4fae175dc5672ae850a29e71e0b72323020f363462d63688db885f0a0764a63
#!/usr/bin/python # ########################################################################## # # This file is part of OCEMR. # # OCEMR 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...
ph1l/ocemr
util/update_visit.py
Python
gpl-3.0
2,256
[ "VisIt" ]
cb394844288c8e3b5a50f0a3838445fb3818e4f5d25d1f7e0b12fe642bdcba47
#!/usr/bin/python ''' Use this in the same way as Python's SimpleHTTPServer: ./ssi_server.py [port] The only difference is that, for files ending in '.html', ssi_server will inline SSI (Server Side Includes) of the form: <!-- #include virtual="fragment.html" --> Run ./ssi_server.py in this directory and visit l...
Extentsoftware/Quest
src/Quest.WebCore/node_modules/dygraphs/docs/ssi_server.py
Python
agpl-3.0
1,938
[ "VisIt" ]
fc412ac62419a6a3cb54db49b25ba4f119f78e504a2e1d59e6e5e3a96df882da
# Noysim -- Noise simulation tools for Aimsun. # Copyright (c) 2010-2011 by Bert De Coensel, Ghent University & Griffith University. # # Numeric and random number generation methods and functions import math import numpy import scipy.special import scipy.stats import pylab #----------------------------...
bertdecoensel/noysim
noysim/numeric.py
Python
mit
8,991
[ "Gaussian" ]
98b637d3a08593f1c3c59236bf199b34f22fbe69064859dacfef36431674ddae
# Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. # Enthought library imports. from traits.api import Instance, List, Str, Bool from traitsui.api import View, Group, Item from tvtk.api import tvtk from tvtk.common import is_old_pipeline # Lo...
dmsurti/mayavi
mayavi/filters/set_active_attribute.py
Python
bsd-3-clause
8,920
[ "Mayavi", "VTK" ]
6192254ccd62e823a6ceff3ae9068f3be383053cd1db31a1768d53acfb26734d
def makeRunBWAScript(fastqFileListFileName, saiFileListFileName, outputFilePath, referenceGenomeFileName, outputFileNameSuffix, scriptFileName): # Make a script that will run bwa sampe for paired-end sequencing data # ASSUMES THAT, IN THE FILE WITH NAME fastqFileListFileName and saiFileListFileName, ALL PAIRS ARE LIS...
imk1/IMKTFBindingCode
makeRunBWAScript.py
Python
mit
1,904
[ "BWA" ]
21082b22f2fe6050f9aac9fd509c6c4059925502f84551be98e01e9c9b8d3de6
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Tue Nov 1 18:09:05 2016 @author: Stein """ # this routine finds the brightest and darkest spots in an image # a radius has to be provided and must be and odd number # Import libraries import cv2 import argparse import os.path print("\n") print("********...
steincastillo/img_utils
bright_spot.py
Python
gpl-3.0
2,395
[ "Gaussian" ]
531538377ec274be5174480e0dd86613cf60c9164e2d1ec7089b5a8af6e5e66c
""" This script is used to design the design matrix for our linear regression. We explore the influence of linear and quadratic drifts on the model performance. Script for the filtered data. Run with: python noise-pca_filtered_script.py from this directory """ from __future__ import print_function, division im...
berkeley-stat159/project-epsilon
code/utils/scripts/noise-pca_filtered_script.py
Python
bsd-3-clause
14,799
[ "Gaussian" ]
4f80a318c8f0b6e933f5a87ef9897823b1808859aab405d86794b86c491c2bdf
import unittest import numpy as np import scipy.misc import scipy.stats import tensorflow as tf import autogp from autogp import kernels from autogp import likelihoods SIG_FIGS = 5 class TestGaussianProcess(unittest.TestCase): @classmethod def setUpClass(cls): # We expect the child class to instan...
VirgiAgl/V_AutoGP
test/gaussian_process_test.py
Python
apache-2.0
22,183
[ "Gaussian" ]
f37d11de441b332f2bf9071f744ae26bc55d0ef1b7ab2d994b4906044e214257
""" Deprecated v1 API client. To be removed once v2 is at parity with v1. """ from __future__ import absolute_import import base64 import re import os import six import sys import urllib import warnings if six.PY3: from io import StringIO basestring = str url_path_quote = urllib.parse.quote else: fro...
ewjoachim/dropbox-sdk-python
dropbox/client.py
Python
mit
67,971
[ "VisIt" ]
64bb2d720ef0c3702df977d1379e7940933aaac4af4360d72ce7aa3d61e6893d
from builtins import range BOARDS = { 'arduino' : { 'digital' : tuple(x for x in range(14)), 'analog' : tuple(x for x in range(6)), 'pwm' : (3, 5, 6, 9, 10, 11), 'use_ports' : True, 'disabled' : (0, 1) # Rx, Tx, Crystal }, 'arduino_mega' : { 'digital' : tuple(...
jochasinga/pluto
pluto/boards.py
Python
mit
1,726
[ "CRYSTAL" ]
a63ddd4617767cae16f955d6b752487d4eafa90493cda5b7aa3abab07538f3bb
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- """ a text adventure game """ import sys from random import randint, random from random import choice as randchoice from collections import defaultdict from copy import copy from utils import Loop, Container, TextInput, first, sjoin, nl, space from board import Stacka...
pythonbyexample/PBE
chapter01/adv.py
Python
bsd-3-clause
7,574
[ "CRYSTAL" ]
6e51e4d38cbad0d1a43e178a0e465e4b3c18482218a619502aa8c8653234044d
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundati...
andrebellafronte/stoq
stoq/gui/test/test_main.py
Python
gpl-2.0
4,112
[ "VisIt" ]
1fb45ea86d580331c7b7a4a82462cb3f7674abf89f27cb5352b76bfcaf575486
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # # License: BSD (3-clause) import copy import warnings import numpy as np from ..io.pick import pick_channels_cov from ..forwar...
nicproulx/mne-python
mne/simulation/evoked.py
Python
bsd-3-clause
5,502
[ "Gaussian" ]
be10c10d21d4754ce650f6e0aa73f1be47f1a38f3ab9db6a07b0e8d141f43fd9
# -*- coding: utf-8 -*- # Copyright 2014-2018 Nate Bogdanowicz """ Driver module for Tektronix function generators. Currently supports: * AFG 3000 series """ import numpy as np from . import FunctionGenerator from .. import VisaMixin, MessageFacet from ... import u, Q_ _INST_PARAMS = ['visa_address'] _INST_VISA_INFO ...
mabuchilab/Instrumental
instrumental/drivers/funcgenerators/tektronix.py
Python
gpl-3.0
26,889
[ "Gaussian" ]
cf5fdff344d000e770b06e60dda3fc033061c79ab6dbfe8d576add730f90a83d
# Orca # # Copyright 2004-2009 Sun Microsystems Inc. # Copyright 2010-2011 The Orca Team # Copyright 2012 Igalia, S.L. # # 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...
ruibarreira/linuxtrail
usr/lib/python3/dist-packages/orca/orca.py
Python
gpl-3.0
26,903
[ "ORCA" ]
88ba2cbeba56c82672c877344745dfc6c66697a4fa8f0744d2a4fe0ddca67579
### this code was copied from http://stackoverflow.com/questions/39051451/ssim-ms-ssim-for-tensorflow ### and veryfied with the code in http://mubeta06.github.io/python/sp/_modules/sp/ssim.html ### ### import tensorflow as tf import numpy as np def fspecial_gauss(size, sigma): """Function to mimic the 'fspecial'...
elaeon/ML
src/dama/utils/tf_functions.py
Python
apache-2.0
6,304
[ "Gaussian" ]
6788768cd05f67544869685d5f408d1052abd8b8800a176029b0a2031ddb4684
############################################################################## # 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...
kyleabeauchamp/mdtraj
mdtraj/formats/mdcrd.py
Python
lgpl-2.1
17,180
[ "Amber", "MDTraj" ]
af993b19607b21bcbcbe5f0fc508d0f4504bbf3fbdae6302283db3deca9a69f0
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
magic/core/cutout.py
Python
agpl-3.0
33,132
[ "Gaussian" ]
877cf6ea09135a778ad604c57474409a2fb14c94e0084ebb86b52c5caf16931c
# coding: utf-8 from base64 import b64decode from lastpass.account import Account TEST_CHUNK_IDS = [ b'LPAV', b'ATVR', b'ENCU', b'CBCU', b'BBTE', b'IPTE', b'WMTE', b'ANTE', b'DOTE', b'FETE', b'FUTE', b'SYTE', b'WOTE', b'TATE', b'WPTE', b'SPMT', b'NMAC', b'ACCT', b'EQDN', b'URUL', b'ENDM', ] TEST_BLOB = b64dec...
konomae/lastpass-python
tests/test_data.py
Python
mit
77,839
[ "COLUMBUS" ]
46755638bc0f5ebd00d27ab9ae57bc0781fa604be5d70193322911558c21622e
#!/usr/bin/env python # Copyright (c) Jonas Steinmann, 2010-2013 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # You should have received a copy of the GNU General Public Licen...
steinmann/peakzilla
peakzilla.py
Python
gpl-2.0
28,458
[ "Gaussian" ]
21ebf6f2f56d5d8f0f1aae9acb6feb95845e62dcb9f0016799af0cda98b351d3
import os import antlr4 from cleo.styles import OutputStyle from sdoc.antlr.sdoc1Lexer import sdoc1Lexer from sdoc.antlr.sdoc1Parser import sdoc1Parser from sdoc.sdoc1.SDoc1Visitor import SDoc1Visitor class SDoc1Interpreter: """ Class for processing SDoc1 documents. """ # --------------------------...
SDoc/py-sdoc
sdoc/sdoc1/SDoc1Interpreter.py
Python
mit
1,640
[ "VisIt" ]
d55a9993048d72e446a53f8a9f471099ae8347d49239e2fbad6a7f974370ec0e
import os import orca import pandas as pd from activitysim import activitysim as asim from .util.mandatory_tour_frequency import process_mandatory_tours """ This model predicts the frequency of making mandatory trips (see the alternatives above) - these trips include work and school in some combination. """ @orca....
bhargavasana/activitysim
activitysim/defaults/models/mandatory_tour_frequency.py
Python
agpl-3.0
2,109
[ "ORCA" ]
f88b16e356a02a5a95ab1e086c42bac794ffc8fc39ac3c933461ff5b8afbe925
import pytest from .setup_transaction_tests import chain as s, tester as t, ethereum_utils as u, check_gas, \ get_contract_with_gas_estimation, get_contract, G1, G1_times_two, G1_times_three, \ curve_order, negative_G1 def test_block_number(): block_number_code = """ def block_number() -> num: return ...
NedYork/viper
tests/test_parser.py
Python
mit
24,491
[ "MOOSE" ]
4dcc1d248e92415e0a7e3f5f0fecaabc707c6c8d727d36e09d0ef89e8a3cbc9d
# # ---------------------------------------------------------------------------------------------------- # # Copyright (c) 2007, 2020, 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_ideconfig.py
Python
gpl-2.0
10,365
[ "VisIt" ]
18cfb2c8f1bbb1b4b111fa2c58c27127202af50fe0edaa0acccd91dace05068f
""" Example to generate a .fit, .mod and .dat file to feed in MrMoose for demonstration. The model consists of a single power-law and a black body with 12 data points of which 1 is an upper limit, both from unresolved, blended components at z=0 """ import models as md import numpy as np import mm_utilities as mm impo...
gdrouart/MrMoose
examples/example_3.py
Python
gpl-3.0
4,642
[ "Gaussian" ]
d3b848c93502b493eb86b1818f74111398ce303c8b7a784ce6afdf6a9ee42f01
""" @name: Modules/Computer/Bridges/_test/test_bridges.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2017-2019 by D. Brian Kimmel @note: Created on Dec 23, 2017 @license: MIT License @summary: Passed all 6 tests - DBK - 2018-02-12 """ __updated__ = '2019-12-15' # Imp...
DBrianKimmel/PyHouse
Project/src/Modules/Computer/Bridges/_test/test_bridges.py
Python
mit
4,079
[ "Brian" ]
ed369f42239866b62e353e0937b7bb4d969e9a7fc30376197b3be61a6d33c348
######################################################################################### # SLURM.py # 10.11.2014 # Author: A.T. ######################################################################################### """ SLURM.py is a DIRAC independent class representing SLURM batch system. SLURM objects are use...
hgiemza/DIRAC
Resources/Computing/BatchSystems/SLURM.py
Python
gpl-3.0
6,508
[ "DIRAC" ]
5be7061401ac70816478d7a9ad0d16921de8827ccaa70355e7548b6acd620fdd
import json import logging from datetime import date import cmor import netCDF4 import numpy as np import pandas as pd from cdo import * # for compressed files import gzip import shutil from ece2cmor3 import cmor_utils, cmor_target, cmor_task # from cmor.Test.test_python_open_close_cmor_multiple import path # Logg...
goord/ece2cmor3
ece2cmor3/lpjg2cmor.py
Python
apache-2.0
35,969
[ "NetCDF" ]
3264523eb828d3d36d8d204f58fd318ff53ced8074af45dd7bf9aa2972311f1b
#!/usr/bin/python2.4 # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
bennoleslie/pyutil
xoauth.py
Python
mit
18,466
[ "VisIt" ]
c99b7c9e6010e1d7af35fc6b849f795bd09b247eba96348f7fd131d2d1594b07
# 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 ...
marcinzaremba/libcloud
libcloud/compute/providers.py
Python
apache-2.0
8,218
[ "VisIt" ]
6dc23fa2233b24fa1fa269754f92b6abca455990e0651ce6c752f22527a66007
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from scipy import odeint import logging as log from synergetics.config import config as cfg from synergetics.neurons.neurons import Neuron class AdExStochastic(Neuron): def __init__(self, position, excitatory=True, update_rule= None, ...
synergetics/neuron
src/neurons/LIF/AdExStochastic.py
Python
mit
2,155
[ "NEURON" ]
928db155d9b6912684f0b1ce3226074670ab78687517ac57bc6b6192217a92bc
""" @name: Modules/House/Family/Insteon/__init__.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2010-2020 by D. Brian Kimmel @note: Created on Apr 3, 2011 @license: MIT License @summary: This module is for Insteon This interfaces PyHouse to the Insteon family of produc...
DBrianKimmel/PyHouse
Project/src/Modules/House/Family/Insteon/__init__.py
Python
mit
1,110
[ "Brian" ]
d2bc7d206883c3453620386e58851f6bbb40490eb86305cec48cb143e5840336
# Copyright 2013-2021 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) import numbers from spack import * def is_multiple_32(x): """multiple of 32 """ try: return isinstance(...
LLNL/spack
var/spack/repos/builtin/packages/abyss/package.py
Python
lgpl-2.1
2,521
[ "BWA" ]
2074c57f1ac2d7881c92a5f97d80d40eaa093ff51ef1e75acaacfd544011c98b
'''apport package hook for ghostscript (c) 2009 Canonical Ltd. Author: Brian Murray <brian@ubuntu.com> ''' from apport.hookutils import * def add_info(report): attach_hardware(report) attach_printing(report)
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/apport/package-hooks/source_ghostscript.py
Python
gpl-3.0
219
[ "Brian" ]
018c8f5e2245ea2ec2372ae9ee557e727470a2e67bd81421255ca6a303c53c4b
""" Extended math utilities. """ # Authors: G. Varoquaux, A. Gramfort, A. Passos, O. Grisel # License: BSD import numpy as np from scipy import linalg from . import check_random_state from . import deprecated from .fixes import qr_economic def norm(v): v = np.asarray(v) __nrm2, = linalg.get_blas_funcs(['nrm...
sgenoud/scikit-learn
sklearn/utils/extmath.py
Python
bsd-3-clause
9,303
[ "Gaussian" ]
d625429854c062b7820f969ecc182e6e96de8f93bbeac421ea3cda73b457f0a4
""" Instructor Dashboard Views """ import logging import datetime from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey import uuid import pytz from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_POST from django.utils.translation imp...
synergeticsedx/deployment-wipro
lms/djangoapps/instructor/views/instructor_dashboard.py
Python
agpl-3.0
32,070
[ "VisIt" ]
961cb7ff91dccbe6a752703a2c1b364a6a0436407ef7e128f8ede71b7f6ecfcf
import ast from unittest import TestCase from darglint.analysis.assert_visitor import AssertVisitor from .utils import reindent class AssertVisitorTests(TestCase): def assertFound(self, program, n=0): tree = ast.parse(reindent(program)) visitor = AssertVisitor() visitor.visit(tree) ...
terrencepreilly/darglint
tests/test_assert_visitor.py
Python
mit
1,424
[ "VisIt" ]
fcc55c9946b15618922286575e213fb3e9cd6b15cd5a0df97dff533bacc6c324
# 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...
KaiSzuttor/espresso
testsuite/python/linear_momentum.py
Python
gpl-3.0
1,406
[ "ESPResSo" ]
e1b8847de5b4b4670ca6e94eaf76b25f451e2082026be49817aa7c2ebe1d8e93
''' 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 ''' # pylint: disable=no-member # pylint: disable=redundant-unittest-assert # pylint: disable=too-many-public-methods imp...
synbiochem/synbiochem-py
synbiochem/utils/test/test_ice_utils.py
Python
mit
12,120
[ "VisIt" ]
4e13aa9cb96404a8801e66f5eca6678c1a5a4fb807d5d322391eb3cd5588ce50
#!/usr/bin/env python # -*- coding: UTF-8 -*- import sys sys.path.append('../../../src') import os, argparse, logging, logging.handlers, time, datetime import numpy as np import tensorflow as tf #from sklearn import preprocessing #import cv2 import swl.machine_learning.util as swl_ml_util #--------------------------...
sangwook236/sangwook-library
python/test/machine_learning/tensorflow/run_simple_training.py
Python
gpl-2.0
35,658
[ "NEURON" ]
09b9f956aae1ec1c7b387f8b9fad2351ffeaf1e775ec059f6ed98b5d911b2529
# # This file is part of the statismo library. # # Author: Marcel Luethi (marcel.luethi@unibas.ch) # # Copyright (c) 2011 University of Basel # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # ...
zarquon42b/statismo
modules/VTK/wrapping/tests/statismoTests/statismoTestUtils.py
Python
bsd-3-clause
2,797
[ "VTK" ]
d36e44d549ab8464abe7966ec1e2294f89baf89296f7fb4533e72b7a452dd408
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage 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...
brianmay/karaage
karaage/tests/client.py
Python
gpl-3.0
6,976
[ "Brian", "VisIt" ]
f3472f9f05da81d799cf55ffe3280bb1a88e0f0fa9a23d8595bf5527bfb63308
import random as rand from sage.all import ZZ from sage.rings.all import RR, QQ, PolynomialRing, Zmod from sage.rings.arith import next_prime from sage.functions.all import log, ceil, sqrt from sage.misc.misc_c import prod from sage.modules.free_module_element import vector, zero_vector from sage.stats.distributions.d...
zrathustra/mmap
ggh.py
Python
mit
3,730
[ "Gaussian" ]
f73e8c53aa1edc8e8ee672d981f7c0b2037627a3556d0823a45267676aef39bd
from docutils import nodes, languages class Context: def __init__(self): self.head = [] self.body = [] self.foot = [] def put_head(self, text): self.head.append(text) def put_body(self, text): self.body.append(text) def put_foot(self, text): self.foot...
sixty-north/rst_to_md
rst_to_md/translator.py
Python
mit
12,005
[ "VisIt" ]
1926249329aef589da05f097aec6ea3b344b9704f6373acb4858e7ade1080804
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # -*- mode: python -*- # Time-stamp: <Sun, 23/07-2017 21:09:22 CST> # Copyright (c) H.-K.Sun <spin.hk AT outlook DOT com> """A Sample From Vegas Tutorial.""" from numba import jit, float64 import numpy import vegas # Integrand: ridge of N Gaussian spread evenly along th...
SyrakuShaikh/python
learning/scientific_computation/Cython/ridge_numba.py
Python
gpl-3.0
872
[ "Gaussian" ]
769cfdede452f7c5276e12f013571c6799e9a40cc4b5e50e1f395b2282e8d6e8
''' Created on 19/02/2010 @author: jose ''' # Copyright 2009 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia # This file is part of franklin. # franklin 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...
JoseBlanca/franklin
test/snv/snv_filters_test.py
Python
agpl-3.0
43,994
[ "BLAST" ]
630ad43152e12cdc3a567b7a8bbda03e6a65d3b26c31f0b8b16baafdf2e38220
#!/usr/bin/env python #---------------- EDIT JOB NAME ------------------- #$ -N gsbpRMSfit #-------------------------------------------------- #$ -S /usr/bin/python # Importing the whole environment is important for setting up Charmm: #$ -V #$ -v PYTHONPATH=/home/oliver/Library/python-lib #$ -v LD_LIBRARY_PATH=/opt/int...
iwelland/hop
doc/examples/rmsfit_gsbp.py
Python
lgpl-3.0
5,252
[ "CHARMM", "LAMMPS", "MDAnalysis" ]
35d6a9019c477bbe3d42160131927ec9657da31974d0d1d853e030e273bf8fd2
# mako/parsetree.py # Copyright (C) 2006-2011 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """defines the parse tree components for Mako templates.""" from mako import exceptions, ast, u...
rubencabrera/LazyLibrarian
mako/parsetree.py
Python
gpl-3.0
19,721
[ "VisIt" ]
fd2ef43759b506260d7ee7e0e99a8ec2b4dd153bcd31d79f278a515b1cea4dc8
# $Id$ # # Copyright (C) 2003-2008 Greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ command line util...
jandom/rdkit
rdkit/Chem/BuildFragmentCatalog.py
Python
bsd-3-clause
19,438
[ "RDKit" ]
3dafd53993efdd93c36b826d05d12bfd94916ecbb0510ef16df74733f2c98159
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Jason Swails # Contributors: # # MDTraj is free software: you ...
rmcgibbo/mdtraj
tests/test_restart.py
Python
lgpl-2.1
4,202
[ "MDTraj" ]
8159e9ab04c4ca661dbf76c0c56dcc11b6829a6065d0fcc193b219c53d152846
# -*- coding:utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Client widget for the IPython Console This is the widget used on all its tabs """ # Standard library imports from __future__ import absolute_import ...
bgris/ODL_bgris
lib/python3.5/site-packages/spyder/widgets/ipythonconsole/client.py
Python
gpl-3.0
17,017
[ "Mayavi" ]
9ea9efdf18aacd999b51940546decfed7baad62e7b606661672783290d670c58
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/standard_system/KGMelt.py
Python
gpl-3.0
1,397
[ "ESPResSo" ]
83c63111b53b0d5190fde7d1dbf51be0ab85db534515eca22ab68c4899a13de3
#!/usr/bin/python # Audio Tools, a module and set of tools for manipulating audio data # Copyright (C) 2007-2016 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 vers...
tuffy/python-audio-tools
test/test_metadata.py
Python
gpl-2.0
387,599
[ "Brian" ]
1414416c3c81cc3aada4e41002d1f25236eb5b6e116e2887f2cc59e9357f5b93
import PISM import PISM.testing import os from unittest import TestCase, SkipTest # always available backends = [PISM.PISM_NETCDF3] if PISM.Pism_USE_PARALLEL_NETCDF4: backends += [PISM.PISM_NETCDF4_PARALLEL] if PISM.Pism_USE_PNETCDF: backends += [PISM.PISM_PNETCDF] if PISM.Pism_USE_PIO: # assume that Pa...
pism/pism
test/regression/file.py
Python
gpl-3.0
23,589
[ "NetCDF" ]
4f698742d622800dcb536113d5a30beb940376c5203c4d5970dcf2218eabeb8c
import configparser import logging import os import pathlib # Set default logging to debug for all tests logging.basicConfig(level=logging.DEBUG) def read_settings(filename): config = configparser.ConfigParser() config.read(filename) return config # Default scratch space SCR = os.environ.get("TMPDIR", ...
ppqm/ppqm
tests/context.py
Python
mit
1,233
[ "GAMESS", "MOPAC", "xTB" ]
cdacfc89b78c25035004d1d7c23ae8114aad319c2d1a9093315234e21d98f288
from shapely.geometry import Point, box, Polygon from toolz.dicttoolz import valmap from functools import reduce import math class CottleWrapper: def __init__(self, stage): self.cottle = Cottle(stage) def row_for_stage(self): return [ self.cottle.relatedness_all(), sel...
alepulver/my-thesis
results-tables/aggregators/cottle.py
Python
mit
7,237
[ "VisIt" ]
0ea9cc3ce858360293e5cf70e33866bf2a618abf1d984fca30cfb1502e358350
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2005-2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Softw...
andrebellafronte/stoq
stoqlib/gui/dialogs/sellabledialog.py
Python
gpl-2.0
2,689
[ "VisIt" ]
90e04c03e10c3f31680a435402b1f9c4664ee42df0d98decc250256aaca5873f
# Russian / Русский - Translations - Python 3 Only! from seleniumbase import BaseCase from seleniumbase import MasterQA class ТестНаСелен(BaseCase): # noqa def __init__(self, *args, **kwargs): super(ТестНаСелен, self).__init__(*args, **kwargs) self._language = "Russian" def открыть(self, *a...
mdmintz/SeleniumBase
seleniumbase/translate/russian.py
Python
mit
23,199
[ "VisIt" ]
6e201097d788970d142a5d7fe1d06e7a8e10d1ebf0a1317730fabb95ad462082
# Jackie's Map # CMDR Jackie Silver, DISC # Kay Johnston 2017 / 3303 # Thanks are due to everyone who's collected data for the various source lists, and particularly to edsm. version = '3q' # Standard Python imports. Might need to change PIL to pillow on some versions of Python? from tkinter import * import...
KayJohnston/jackies-map
jmap3r.py
Python
bsd-3-clause
74,631
[ "Galaxy" ]
e73457659e19f4ad60c373fe745b121667480c7f24bf730abe693726d4133bb5
""" @file @brief One class which visits a syntax tree. """ import ast class CodeNodeVisitor(ast.NodeVisitor): """ Defines a visitor which walks though the syntax tree of the code. .. exref:: :title: Get the tree of a simple function The following code uses Python syntax but follows a S...
sdpython/pysqllike
src/pysqllike/translation/node_visitor_translator.py
Python
mit
8,926
[ "VisIt" ]
2b1d7b62e898b4136a78f6d7469addce3b50c6c827c0b39325dca38831803461
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Build and install the TweetNaCl wrapper. """ from __future__ import print_function import sys, os from distutils.core import setup, Extension, Command from distutils.util import get_platform def setup_path(): # copied from distutils/command/build.py plat_name...
warner/python-tweetnacl
setup.py
Python
mit
4,417
[ "Brian" ]
a0ad3dcd32d8b8efc332d34264efbe6946b365558155140cc29a39f74ea33e89
# # gPrime - A web-based genealogy program # # Copyright (C) 2010 Brian G. Matherly # # 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 ...
sam-m888/gprime
gprime/cli/user.py
Python
gpl-2.0
7,898
[ "Brian" ]
ad372717f9490b2759e51f2c4d56f923a662706c9f0bfd3cd0fc31164f09df7b
from nose.tools import * import mock @mock.patch("espresso.bot.Espresso") def test_response_send_msg(Espresso): robot = Espresso()
ratchetrobotics/espresso
tests/response_test.py
Python
bsd-3-clause
132
[ "ESPResSo" ]
3d3a5db3efb2500a021a49138f31c3a277b5709acb04978bf1bcae79aa4f3071
import contextlib import functools import logging from typing import ( TYPE_CHECKING, Dict, FrozenSet, Iterable, Iterator, List, Mapping, Optional, Sequence, Set, Tuple, TypeVar, cast, ) from pip._vendor.packaging.requirements import InvalidRequirement from pip._vend...
google/material-design-icons
update/venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py
Python
apache-2.0
24,988
[ "VisIt" ]
d2ad7876646b2d95edf4e629db24f92f62aa2862c9e68906a00aeeda135a7458
#!/usr/bin/env python """Data management based on project identifiers Usage: project_management.py <YAML config file> <flowcell_dir> <project_dir> [<YAML run information> --flowcell_alias=<flowcell_alias> --project_desc=<project_desc> ...
senthil10/scilifelab
scripts/project_management.py
Python
mit
18,744
[ "Galaxy" ]
c388e61b473142472da325b3cd922854f773ae53cff16b4b1e74ad02a2da0fb9
#!/usr/bin/env python import randopt as ro def loss(x): return x**2 + 2*x - 3 def dloss(x): return 2*x + 2 def grad_descent(f, df, init, num_epochs, lr): params = init convergence = [] for epoch in range(num_epochs): params = params - (lr * df(params)) convergence.append(f(par...
seba-1511/randopt
examples/grad_descent.py
Python
apache-2.0
1,174
[ "Gaussian" ]
09e59654bfbae5fed5fc9ee708826957dde1eaa47aab945006576988485dd8bc
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' Access molecule geometry. Mole.natm is the total number of atoms. It is initialized in Mole.build() function. ''' from pyscf import gto mol = gto.M( atom = ''' O 0 0. 0 H1 0 -2.757 2.587 H2 0 2.757 2.587''',...
gkc1000/pyscf
examples/gto/10-atom_info.py
Python
apache-2.0
743
[ "PySCF" ]
388bbbb912904e8909df15f878568beef4741ad653debfe037e3a79207eeaee2
#! /usr/env/python """ A class used to create and manage regular square raster grids for 2D numerical models in Landlab. Getting Information about a Grid -------------------------------- The following attributes, properties, and methods provide data about a RasterModelGrid, its geometry, and the connectivity among the...
SiccarPoint/landlab
landlab/grid/raster.py
Python
mit
215,327
[ "NetCDF" ]
814b3bced264c26298f561bc6bc8567f6c19b27f7a665909071c89215128ae0a
# 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 d...
teoliphant/scipy
scipy/ndimage/fourier.py
Python
bsd-3-clause
9,758
[ "Gaussian" ]
caa8b6e750d77d46b27a2fca14796e358ddc2365d42833746cff7b5130510cfb
""" Internal utilities to cleanup HTML 5 code. These are used when FLUENT_TEXT_CLEANUP_HTML or FLUENT_TEXT_SANITIZE_HTML are enabled. These are extracted from django-wysiwyg, so they can be used by default for all HTML fields. It simplifies the dependencies a bit; html5lib can be directly mentioned as dependency. """...
edoburu/django-fluent-contents
fluent_contents/utils/html.py
Python
apache-2.0
2,444
[ "ADF" ]
5ab32fd84c186f5aa4c2beeb656aca5ae7bed30bdb013b1f12b6512961752235
"""pyNRC utility functions""" import os, re # Import libraries import numpy as np import matplotlib import matplotlib.pyplot as plt on_rtd = os.environ.get('READTHEDOCS') == 'True' # Update matplotlib settings rcvals = {'xtick.minor.visible': True, 'ytick.minor.visible': True, 'xtick.direction': 'in', 'ytic...
JarronL/pynrc
pynrc/nrc_utils.py
Python
mit
74,702
[ "Gaussian" ]
1f4dcc62ab7d787c33b8a69f835d4aebd92842e933303dfa8c2acad87846bd06