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 |
|---|---|---|---|---|---|---|---|
#!/router/bin/python
from .stl_general_test import CStlGeneral_Test, CTRexScenario
from nose.plugins.attrib import attr
import time
import os
@attr('wlc')
class CTRexWLC_Test(CStlGeneral_Test):
"""This class tests TRex WLC related code"""
def get_pkts(self):
stats = self.client.get_stats()
ret... | kisel/trex-core | scripts/automation/regression/stateless_tests/stl_wlc_test.py | Python | apache-2.0 | 2,909 | [
"Elk"
] | 2690fcde9915cd6aec9ab7ed3d7822a140ff773e6fa4403abbb727c5143fb740 |
"""
module of utilities
"""
import cPickle as cp
from collections import defaultdict
import numpy as np
import matplotlib.pyplot as plt
def extract_single_stroke_chars_and_digits(data):
res_data = defaultdict(list)
for dict_key in data.keys():
if (ord(dict_key[0]) >= ord('a') and ord(dict_key[0]) <= o... | navigator8972/vae_assoc | utils.py | Python | bsd-2-clause | 15,213 | [
"Gaussian"
] | 3b5bf005e6a0e558e040e5a59aa3014eadf61b515b83ca42799f5e1a71d53c42 |
import os
import sys
import netCDF4
import numpy as np
from geophys_utils import NetCDFPointUtils, get_spatial_ref_from_wkt
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.io.img_tiles as cimgt
from math import log10, ceil, floor, pow
from pprint import pprint
#print(sys.version)
#pprint(dict(... | alex-ip/geophys_utils | examples/9_gravity_point_dataset.py | Python | apache-2.0 | 5,875 | [
"NetCDF"
] | 7380f0e252360f5ebe8f4c33e44a0a7e60d4aab672ef1ea589b5fe6e0e92b632 |
# Transmageddon
# Copyright (C) 2009 Christian Schaller <uraeus@gnome.org>
# Copyright (C) 2009 Edward Hervey <edward.hervey@collabora.co.uk>
#
# Some code in this file came originally from the encode.py file in Pitivi
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the... | hailongqiu/new-deepin-media-player | src/format_conv/codecfinder.py | Python | gpl-3.0 | 9,685 | [
"DIRAC"
] | cb83397e00cfa3a7bf24c868cb67cfb10e50dca782e3941ed53c5f8619a71b8a |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2008 Stephane Charette <stephanecharette@gmail.com>
# Contribution 2009 by Bob Ham <rah@bash.sh>
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2013-2014 Paul Franklin
#
# This program is free... | pmghalvorsen/gramps_branch | gramps/plugins/graph/gvhourglass.py | Python | gpl-2.0 | 12,216 | [
"Brian"
] | e8a5690605addd61672c8d890c78275df5fc6aef39d64822f48af2036eade49f |
#!/usr/bin/python3
def partial_pivoting(k, n, m):
""" Partial pivoting of a matrix. The entry with largest absolute
value from the column of the matrix that is currently being
considered as the pivot element, partial pivoting adjusts the
main diagonal with these pivots.
Args:
k : colu... | mrcaique/ufsc-ine5409 | T1/direct_methods.py | Python | gpl-3.0 | 2,464 | [
"Gaussian"
] | ac317a1a5430cfa4c3e4c817133fa04a77ee2e3257d195a4ebe250a4bd30b5ce |
import unittest
import numpy as np
import pysal
import pysal.spreg.diagnostics_tsls as diagnostics_tsls
import pysal.spreg.diagnostics as diagnostics
from pysal.spreg.ols import OLS as OLS
from pysal.spreg.twosls import TSLS as TSLS
from pysal.spreg.twosls_sp import GM_Lag
from scipy.stats import pearsonr
# create re... | darribas/pysal | pysal/spreg/tests/test_diagnostics_tsls.py | Python | bsd-3-clause | 2,013 | [
"COLUMBUS"
] | ff83bb4028d850029200588eb7000e4e1ab1ddaeeeec2d0358944770f62bdd7e |
#!/usr/bin/env python
##
## See COPYING file distributed along with the ncanda-data-integration package
## for the copyright and license terms
##
from __future__ import print_function
from builtins import str
import re
import os
import glob
import shutil
import sys
import tempfile
from sibispy import sibislogger a... | sibis-platform/ncanda-datacore | scripts/redcap/export_mr_sessions_pipeline.py | Python | bsd-3-clause | 24,816 | [
"VisIt"
] | 6a387fb167c2160d979f1ae0991929992789aae4e8f5a1d79903e0f30c0c6ec9 |
import os
import unittest
import tempfile
import shutil
import numpy
from PIL import Image
from hypothesis import given
from paraview import servermanager
from paraview.simple import Disconnect
from simphony.core.cuba import CUBA
from simphony_paraview.snapshot import snapshot
from simphony_paraview.core.testing impo... | simphony/simphony-paraview | simphony_paraview/tests/test_snapshot.py | Python | bsd-2-clause | 3,761 | [
"ParaView"
] | f9661dea4abac35dfb2c3fb22296b5d0c80e8291bd45392c1170b0f3f187540a |
"""
PyChemia is a python library for automatize atomistic-level calculations. The library provides classes and routines to
manipulate the geometry of atomic structures, with emphasis on crystals.
It has connectors to manipulate the input for several DFT codes and interpret the output from those codes too.
PyChemia allo... | MaterialsDiscovery/PyChemia | pychemia/__init__.py | Python | mit | 4,419 | [
"ASE",
"CRYSTAL",
"Mayavi",
"VTK",
"pymatgen"
] | b3bc5787864f86cb696fc5cdc78e1a7e6e3ee5666ef9730944f5fa81c60bcd80 |
import os
import functools
import numpy as np
from mpi4py import MPI
import pytest
from mpi4py_fft import generate_xdmf
from shenfun import FunctionSpace, TensorProductSpace, ShenfunFile, Function,\
Array, CompositeSpace, VectorSpace
N = (12, 13, 14, 15)
comm = MPI.COMM_WORLD
skip = {'hdf5': False, 'netcdf4': Fal... | spectralDNS/shenfun | tests/test_io.py | Python | bsd-2-clause | 6,260 | [
"VisIt"
] | d6b50ae8c6708b5eca95c6516f89d359c801d3fd760d39c866f705a1317a5bd4 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# sssmonitor - [insert a few words of module description on this line]
# Copyright (C) 2003-2009 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 o... | heromod/migrid | mig/cgi-bin/sssmonitor.py | Python | gpl-2.0 | 1,146 | [
"Brian"
] | e830e6b08e2e7b9b8b7a136bb3667d67b05fbd1aafa8b9a8d3415e8f116d2152 |
import numpy as np
from scipy.ndimage.filters import gaussian_filter
class ScaleSpace:
def __init__(self, img_shape, sigmas, dys, dxs):
''' Compute the scale-space of an image.
Upon initialization, this class precomputes the Gaussian windows used
to smooth images of a fixed shape to save t... | andersbll/ipcv | ipcv/scalespace.py | Python | mit | 3,575 | [
"Gaussian"
] | 2aa38fd92d291e215ca2f8a4ccb17ead30061ef17bf4f926fedf5c202125adb9 |
#!/usr/bin/python3
# This script downloads the basis set library data from www.basissetexchange.org
# into the directory $NWCHEM_TOP/src/basis/libraries.bse
# to use, set the env. variable NWCHEM_BASIS_LIBRARY=$NWCHEM_TOP/src/basis/libraries.bse/
# Requires the installation of the python env. from
# https://github.com/... | rangsimanketkaew/NWChem | src/basis/getlibr.py | Python | mit | 2,696 | [
"NWChem"
] | 2ef01fbb5633f2f152c79c431043bb583cd4f5014ded4e0fc77038061c7d4e35 |
#!/usr/bin/python
# -*- coding: utf8 -*-
import cmd
import os
import sys
import threading
import string
import ConfigParser
import gdata.youtube
import gdata.youtube.service
from time import gmtime, strftime
import re
from spotify.manager import (SpotifySessionManager, SpotifyContainerManager)
## YOUTUBE API
import h... | currogtl/Spotube | spotube.py | Python | mit | 12,169 | [
"VisIt"
] | 3472179d0ef08c175648d154dc3dc11ba1e7cb29c3177bb4aea5dd94bb44efda |
#!/usr/bin/env python
#
# $File: haplodiploid.py $
#
# This file is part of simuPOP, a forward-time population genetics
# simulation environment. Please visit http://simupop.sourceforge.net
# for details.
#
# Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you can redistribu... | BoPeng/simuPOP | docs/haplodiploid.py | Python | gpl-2.0 | 1,233 | [
"VisIt"
] | 9915525f2d26b98a2345267a97ca5919a9e988ac9e261e91908cb59d59aa9104 |
#!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
from pyscf import gto
from pyscf import lo
from pyscf.tools import ring, molden
'''
Meta-lowdin orthogonalization takes the minimal AOs as the occupied sets.
The valence space might not be large enough for many elements eg
* Li and Be may need incl... | gkc1000/pyscf | examples/local_orb/10-modify_valence_space_for_meta_lowdin.py | Python | apache-2.0 | 1,516 | [
"PySCF"
] | d9d228efd41a8c4d4eda52b57c00ea890723c7985a14a59103cdc132d2eaf153 |
from magma import *
from mantle import *
from parts.lattice.ice40.ice40 import ICE40HX1K
from parts.generic.crystal import Crystal
from parts.generic.led import LED
from peripherals.timer import Timer
class IceStick(Board):
def __init__(self):
super(IceStick, self).__init__("IceStick")
# Need... | bjmnbraun/icestick_fastio | thirdparty/magma/boards/icestick.py | Python | mit | 2,505 | [
"CRYSTAL"
] | d19850afa5a58e302f453190ff6ac7901f3352258fd2cb833a99587cd48dda64 |
#
# Copyright 2016 The BigDL 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 in ... | intel-analytics/BigDL | python/orca/src/bigdl/orca/learn/trigger.py | Python | apache-2.0 | 2,510 | [
"ORCA"
] | 780e3e09191f0a424c76ca5c6a220a3cb494d28fdf5c9f01c987e82863fc70f3 |
def getconfig(args):
return args
def count_valid_samples(smiles):
from rdkit import Chem
count = 0
for smi in smiles:
try:
mol = Chem.MolFromSmiles(smi[1:-1])
except Exception:
continue
if mol is not None:
count += 1
return count
| ECP-CANDLE/Benchmarks | examples/rnngen/train.py | Python | mit | 314 | [
"RDKit"
] | 52c9d8bbf3fa3c03a03418dc7c2a4cbb49ae0a6f9e469f0738b12cb225e14450 |
#!/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/serverBest.py | Python | gpl-3.0 | 9,188 | [
"Galaxy"
] | ee492ab549d9aab7f62cd2a23686c18027583b4de48e827d873939c747138ddd |
import logging
import json
import globus_sdk
import os
import parsl
import typeguard
from functools import partial
from typing import Optional
from parsl.app.app import python_app
from parsl.utils import RepresentationMixin
from parsl.data_provider.staging import Staging
logger = logging.getLogger(__name__)
# globus... | Parsl/parsl | parsl/data_provider/globus.py | Python | apache-2.0 | 12,273 | [
"VisIt"
] | 23c702f986299bcd4351e2af424fe57080714dabcae11b3654bbe4cd77d2fdc8 |
# Copyright (c) 2008,2015,2016,2017,2018,2019 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Contains a collection of basic calculations.
These include:
* wind components
* heat index
* windchill
"""
from itertools import product
import warnings... | ShawnMurd/MetPy | src/metpy/calc/basic.py | Python | bsd-3-clause | 41,566 | [
"Gaussian"
] | 61089afeba00e1652ec52a51d0a2615d286f02333596ba8f75bc35ba21c69e6a |
import luigi
import os
import sys
import itertools
from ratatosk import backend
from ratatosk.log import setup_logging
from ratatosk.config import setup_config
from ratatosk.handler import setup_global_handlers
import ratatosk.lib.align.bwa
import ratatosk.lib.tools.gatk
import ratatosk.lib.tools.samtools
import ratato... | percyfal/ratatosk | scripts/ratatosk_run.py | Python | apache-2.0 | 1,822 | [
"BWA"
] | 9c52cefea1053ac4e185e1ce5286e6c90016aadd3cf527afe66ac49b457bf143 |
# -*- coding: utf-8 -*-
#
# gap_junctions_inhibitory_network.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version... | hakonsbm/nest-simulator | pynest/examples/gap_junctions_inhibitory_network.py | Python | gpl-2.0 | 6,040 | [
"NEURON"
] | bf15db7707894576431ff6dd9f9b246377f251a55bd0a9d14093a64d6f088814 |
# ============================================================================
#
# Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | kurtraschke/camelot | camelot/view/wizard/importwizard.py | Python | gpl-2.0 | 15,833 | [
"VisIt"
] | 6033c49a8ba257be32689c1baf64934b63c1061544a49c436457d15b439e0413 |
#!/usr/local/bin/python
"""
setup.py file for LAMMPS with system MPI library
"""
from distutils.core import setup, Extension
import os, glob
path = os.path.dirname(os.getcwd())
# list of src files for LAMMPS
libfiles = glob.glob("%s/src/*.cpp" % path)
lammps_library = Extension("_lammps",
... | val-github/lammps-dev | python/setup.py | Python | gpl-2.0 | 1,346 | [
"LAMMPS"
] | edd5aab7a037d78a3de52bb590e328d7ab8f523bf168408e3b07fa6c083c5e64 |
#!/usr/bin/env python
#os importsimport os
from sys import stdin,argv
import sys
from optparse import OptionParser
#Title:
#script to reformt fasta ID names.
#############################################################################
#functions
def reformat_fasta_name(filename, prefix, out_prefix="seq"):... | widdowquinn/THAPBI | Phyt_ITS_identifying_pipeline/Python_ITS_scripts/re_format_fasta.py | Python | mit | 2,239 | [
"Biopython"
] | 28c437bd608e0b87797073514d79a3066bcdb0f5bbe6b4ed955f5fbcb9067bc4 |
# import the necessary packages
import numpy as np
import imutils
import cv2
import tkinter as tk
def grayscale(img):
"""Applies the Grayscale transform
This will return an image with only one color channel
but NOTE: to see the returned image as grayscale
(assuming your grayscaled image is called 'gray... | maanitm/MadMobile | testing/sidewalkTracking.py | Python | apache-2.0 | 7,157 | [
"Gaussian"
] | a72140456bc1380e55874f64fdf841cfe340780c203dc80cfa30446e6e9874ca |
#!/usr/bin/env python2.7
#
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2007, 2015, 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 redis... | jtulach/mx | mx_findbugs.py | Python | gpl-2.0 | 3,925 | [
"VisIt"
] | c61f7ce1b33280c5073dfc9a313f969c101a2fb81bdc4f6e5afd616a121a1228 |
# 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 'GeoLevel.year'
db.add_column(u'profiles_geolevel', 'year', self.gf('django.db.models.field... | ProvidencePlan/Profiles | communityprofiles/profiles/oldmigrations/0061_auto__add_field_geolevel_year.py | Python | mit | 20,569 | [
"MOE"
] | 5e8c111316bfbdb918e4d8d3553e9616e73decf515e34dd4d1f6bcab04becd80 |
import os
import degas
os.chdir(os.environ['DEGASDIR'])
# getting the observational log file
degas.catalogs.updateLogs() # technically only needs to be done if it's changed.
# reduce all galaxies
degas.reduceAll(outputDir=os.environ['DEGASDIR'])
# reduce a specific galaxy and overwrite
degas.reduceAll(outputDir=os... | low-sky/degas | scripts/reduce_spectra.py | Python | gpl-3.0 | 380 | [
"Galaxy"
] | 350f380c994d3db65af2efe73d65d57c5984dffb0b46e119ac0d06794100bb33 |
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
#################################
# #
# ESPResSo++ Python script #
# #
#############... | BackupTheBerlios/espressopp | examples/stillinger_weber_Si/stillinger_weber_silicon.py | Python | gpl-3.0 | 8,145 | [
"ESPResSo"
] | 67cb873e2f4ceeb1956456b88bcab2a5e8562ff67368b4ce367fab08aa958a16 |
# mako/_ast_util.py
# Copyright (C) 2006-2016 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
"""
ast
~~~
The `ast` module helps Python applications to process trees of the Pyth... | Widiot/simpleblog | venv/lib/python3.5/site-packages/mako/_ast_util.py | Python | mit | 25,691 | [
"VisIt"
] | 4a7f2f25ad57c1a9b5d9904e70b16561717026baf3aa17ed325a323430671cbc |
import os
import sys
# setting the absolute path of the previous directory
# getting the this py module path by __file__ variable
# pass that __file__ to the os.path.dirname, returns the path of this module
__curDir__ = os.path.dirname(__file__)
diagDir = os.path.abspath(os.path.join(__curDir__, '../..'))
# adding the ... | arulalant/mmDiagnosis | diagnosis1/miso/harmonic/extract_JJAS_model_anomaly.py | Python | gpl-3.0 | 2,366 | [
"NetCDF"
] | 249d7b869027dee2cccdb60fb50988651874875d95db341bcc4f05bf324b945a |
"""CSShellCmd class emulates the behaviour of a shell to edit the CS config.
"""
from __future__ import print_function
__RCSID__ = "$Id$"
import cmd
import os
from DIRAC.Core.Base.CLI import CLI, colorize
from DIRAC.ConfigurationSystem.Client.ConfigurationData import gConfigurationData... | chaen/DIRAC | ConfigurationSystem/Client/CSShellCLI.py | Python | gpl-3.0 | 6,308 | [
"DIRAC"
] | 9adabdce1a4bbfc7bf117a16a7ec53c422fcb5dbf2d50388d9aa0552449b088d |
#!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, 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 ... | polyaxon/polyaxon | core/polyaxon/main.py | Python | apache-2.0 | 6,058 | [
"VisIt"
] | 4bb3ee00c496da9d36bad9ab74cc88a3a9d32409e68a78a526137bcb6c699494 |
"""
Submodule: CC
Basic module for various coupled cluster methods
Currently it is simply a wrapper of the cc module in PySCF
"""
from frankenstein.cc.ccsd import CCSD
| hongzhouye/frankenstein | cc/__init__.py | Python | bsd-3-clause | 171 | [
"PySCF"
] | 239476704ce82d9bb8af3db8f33c98836fdf26f40fe53bd969dfbb689275ed47 |
#!/usr/bin/env vpython
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Utilities for checking for disallowed usage of non-Blink declarations.
The scanner assumes that usage of non-Blink code is always n... | chromium/chromium | third_party/blink/tools/blinkpy/presubmit/audit_non_blink_usage.py | Python | bsd-3-clause | 61,230 | [
"VisIt"
] | 58f41c70aa392dce22a2aa0307bac6a07fa37c037c75a624cea62ff2455bf1b6 |
#
# QAPI visitor generator
#
# Copyright IBM, Corp. 2011
# Copyright (C) 2014-2015 Red Hat, Inc.
#
# Authors:
# Anthony Liguori <aliguori@us.ibm.com>
# Michael Roth <mdroth@linux.vnet.ibm.com>
# Markus Armbruster <armbru@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2.
# See the CO... | chunyanliu/qemu | scripts/qapi-visit.py | Python | gpl-2.0 | 12,985 | [
"VisIt"
] | 7d672c8c0d82ec73649f4a0a6a6c427c34746aad3987f9e60017150131dae9e4 |
#!/usr/bin/python
#==========================================================
# LANG : Python 3.x
# NAME : sydi-linux.py
# AUTHORS : Brian Carpenter (brian.carpenter@wosc.edu)
# Patrick Ogenstad (patrick.ogenstad@netsafe.se)
# Patrik Kullman (patrik.kullman@netsafe.se)
# VERSION : 0.1
# DATE : 2005... | psywhale/sydi-linux-ubuntu | sydi-linux.py | Python | mit | 10,980 | [
"Brian"
] | 7eb09e9b78e7ba8c5253680a08907aa844e76821e7fb24008bb51b1e7288a143 |
##############################################################################
# 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: ... | marscher/mdtraj | scripts/mdinspect.py | Python | lgpl-2.1 | 8,485 | [
"MDTraj"
] | bafee4ce63c9099353de23edc5cfa7376b2108aa9cc8fa32ff52e8c7ad7da352 |
import gen_utils
from module_base import ModuleBase
import module_utils
import module_mixins
from module_mixins import ScriptedConfigModuleMixin
import os
import vtk
class cptDistanceField(ScriptedConfigModuleMixin, ModuleBase):
def __init__(self, module_manager):
# call parent constructor
Module... | nagyistoce/devide | modules/misc/cptDistanceField.py | Python | bsd-3-clause | 5,314 | [
"VTK"
] | 03137565dcb88431bfa1cf8ab26a753b3e2a78a62a6b603b7bef872b83b8b70a |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
"""
Created on Jan 22, 2013
@author: Bharat Medasani
"""
import unittest2 as unittest
from pymatgen.command_line.gulp_caller import *
from pymatgen.core.structure impo... | aykol/pymatgen | pymatgen/command_line/tests/test_gulp_caller.py | Python | mit | 11,817 | [
"GULP",
"VASP",
"pymatgen"
] | a9b27b6a91576f019152996c1d42d45d32b54057b7e5c39aabd0f2b3d2c1e45d |
#pylint: disable=missing-docstring
#* 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/... | nuclear-wizard/moose | python/chigger/graphs/Graph.py | Python | lgpl-2.1 | 7,055 | [
"MOOSE",
"VTK"
] | 7e139f937e5be3da708adcfbd0f24b63fcdf5e172f5044c67145c5f20ee57d2f |
"""
Trace module
Trace functions:
TraceInit(<filename or file object>)
TraceMsg(<message>)
TraceQuit()
Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>,
Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>.
See LICENSE.txt for licensing details (MIT License).
"""
import sys... | runefriborg/pycsp | pycsp/common/trace.py | Python | mit | 11,036 | [
"Brian"
] | 61f53b16c0882c1a64eda79194b7cb1acafed4d17d0f7c90b4882e2a55e0cefd |
# ICE Revision: $Id$
"""Reads configuration-files that define defaults for various PyFoam-Settings
Also hardcodes defaults for the settings"""
from PyFoam.ThirdParty.six.moves import configparser
from PyFoam.ThirdParty.six import iteritems,PY3
from PyFoam.Infrastructure.Hardcoded import globalConfigFile,userConfigF... | Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder-other-scripting-PyFoam | PyFoam/Infrastructure/Configuration.py | Python | gpl-2.0 | 24,788 | [
"ParaView",
"VTK"
] | 6159f3c75702a3f1d2eb686212bdc663391b189ab084c44d3423bfc95862ddd0 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import surt
from surt import handyurl
import pytest
def test_handyurl_parse():
# These tests come from URLParserTest.java
assert handyurl.parse("http://www.archive.org/index.html#foo").geturl() == 'http://www.archive.org/index.... | internetarchive/surt | tests/test_surt.py | Python | agpl-3.0 | 26,981 | [
"VisIt"
] | 6cac625cf9ec5e07812b0e3ef3edf7fbd367ea13a6fac34b6560da48031edbd7 |
try:
paraview.simple
except:
from paraview.simple import *
XDMF_temporalFields_xmf = GetActiveSource()
ProgrammableFilter1 = ProgrammableFilter()
ProgrammableFilter1.RequestUpdateExtentScript = ''
ProgrammableFilter1.PythonPath = ''
ProgrammableFilter1.RequestInformationScript = ''
ProgrammableFilter1.Scrip... | OlympusMonds/lithospheric_modelling_recipe | scripts/paraview_macros/classify_regime_2D.py | Python | gpl-3.0 | 1,256 | [
"ParaView"
] | b09475d2143131ae33edb4a6f4f351b103c1bf440a007009c18958d2351378d3 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import os
import unittest
from monty.os.path import which
from monty.serialization import dumpfn, loadfn
from pymatgen.core.structure import Molecule
from pymatgen.io.qchem.outputs import QCOutput, check_for_structure_chang... | vorwerkc/pymatgen | pymatgen/io/qchem/tests/test_outputs.py | Python | mit | 9,511 | [
"pymatgen"
] | ab6e2fef08a53f68d49291560189e4701fbe31e0f8cb46a218fd26032dbb0608 |
#!/usr/bin/env python
"""
Script to setup some test data.
This is useful during development when we are continuously wiping the db
and want to get some new data in quickly.
NOTE: Several tests use this module, so avoid breaking tests when changing
this.
"""
import os
import random
import shutil
import subprocess
im... | woodymit/millstone_accidental_source | genome_designer/scripts/bootstrap_data.py | Python | mit | 19,211 | [
"BWA"
] | a89c96517f052afea053dc864d0b3a03dc6048d6ddec82d264e4bf8c63ea9468 |
import os
import numpy as np
from ase.atoms import Atoms
from ase.io import read, write
from ase.calculators.neighborlist import NeighborList
from ase.units import GPa, J, m, kB, fs, Ang
vacuum = 15.
skin = 5.
eqm_bond_lengths = {(8, 14): 1.60,
(1, 8): 1.10}
crack_direction = [1, 0, 0]
cleavag... | marcocaccin/crack2Dglass | params.py | Python | gpl-2.0 | 2,845 | [
"ASE",
"CRYSTAL",
"NetCDF"
] | 3bbf457c8fc808e3c0c0c2b8909acf2888baa26ecc4db87744e267fb7f73b743 |
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.db import mode... | suutari/shoop | shuup/core/models/_manufacturers.py | Python | agpl-3.0 | 1,506 | [
"VisIt"
] | 1eceacde5121aba800293ceb8e62e7e519cf802b5bfec80ef419e58def036c75 |
""" Test class for SiteInspectorAgent
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from six.moves import queue as Queue
# imports
import pytest
from mock import MagicMock
# DIRAC Components
from DIRAC.ResourceStatusSystem.Agent.SiteInspectorAgent imp... | yujikato/DIRAC | src/DIRAC/ResourceStatusSystem/Agent/test/Test_Agent_SiteInspectorAgent.py | Python | gpl-3.0 | 1,600 | [
"DIRAC"
] | e529fa3ec792ee73c000c29a898ace08320fbd92361aca993c1205bcb990ab2c |
#!/usr/bin/python3
# -*- coding: utf_8 -*-
import sqlite3
import shutil, re, os, logging
from datetime import datetime
from glob import glob
from sys import stdout, argv
from readtag import get_id3Tag # local library
__version__ = "2.1.0"
#=====================================
# Custom Error Classes
#==============... | pablo33/quodlibet-filesorter | quodlibet_filesorter.py | Python | gpl-3.0 | 21,835 | [
"VisIt"
] | c2f9c7756f8c4e61fb2b00c732d8c99df7f3ac248c83b8ab247bef199a4474a5 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | Serulab/misolrna | index_template.py | Python | agpl-3.0 | 83,111 | [
"BLAST",
"VisIt"
] | f8049c0577c50863da757538ae8ecc477580d346e6e556d65b5c01e24c3c2d07 |
#!/usr/bin/env python
'''
CREATED:2013-02-11 18:37:30 by Brian McFee <brm2132@columbia.edu>
Track beat events in an audio file
Usage: ./beat_tracker.py [-h] input_file.mp3 output_beats.csv
'''
from __future__ import print_function
import argparse
import sys
import librosa
def beat_track(input_file, output_csv... | Cortexelus/librosa | examples/beat_tracker.py | Python | isc | 1,934 | [
"Brian"
] | d21e589d5824121cac61a2ebefe9a9a64ef10a75d6548cc58d7232c149349d76 |
"""
BIANA: Biologic Interactions and Network Analysis
Copyright (C) 2009 Javier Garcia-Garcia, Emre Guney, Baldo Oliva
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... | emreg00/biana | biana/BianaObjects/BianaSessionManager.py | Python | gpl-3.0 | 150,323 | [
"Cytoscape"
] | f2dce0332157d45042151b98baa50cc2aebc1a93d93e4264f64418eac96fa749 |
# Copyright (c) 2010-12, Pierre-Antoine Delsart, Kurtis Geerlings, Joey Huston,
# Brian Martin, and Christopher Vermilion
#
#----------------------------------------------------------------------
# This file is part of SpartyJet.
#
# SpartyJet is free software; you can redistribute it and/or modify
# ... | mickypaganini/SSI2016-jet-clustering | spartyjet-4.0.2_mac/python/spartyjet/gui/JetHistoryGui.py | Python | mit | 14,632 | [
"Brian"
] | 07f23689af142e941560299f85be86888835ece145b98c6d26c5db6fbdba7074 |
import unittest
from nose.tools import assert_true
import numpy as np
from numpy.testing import (assert_array_equal, assert_array_almost_equal,
assert_raises)
from scipy import stats
from sklearn import mixture
from sklearn.datasets.samples_generator import make_spd_matrix
rng = np.random.R... | chaluemwut/fbserver | venv/lib/python2.7/site-packages/sklearn/mixture/tests/test_gmm.py | Python | apache-2.0 | 12,725 | [
"Gaussian"
] | 4570d50f9dfeb4eb8cd1a774f24bf0b09d280855d440d2651a0bfdf19930a57c |
from __future__ import division
import numpy as np
from numpy import dot
from dipy.core.geometry import sphere2cart
from dipy.core.geometry import vec2vec_rotmat
# Diffusion coefficients for white matter tracts, in mm^2/s
#
# Based roughly on values from:
#
# Pierpaoli, Basser, "Towards a Quantitative Assessment o... | mdesco/dipy | dipy/sims/voxel.py | Python | bsd-3-clause | 18,837 | [
"Gaussian"
] | 33001f3f33fcef61a22501d76e7104483cb8ec92273bbb23482f8e36529809ca |
#
# Copyright 2016 The BigDL 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 in ... | intel-analytics/BigDL | python/chronos/example/onnx/onnx_autotsestimator_nyc_taxi.py | Python | apache-2.0 | 3,982 | [
"ORCA"
] | 5c944b6b7ffe4a9879ce6fed150bd6b189c37cc6aa1192988bbeaacef5ce4829 |
# coding: utf-8
"""
Vericred API
Vericred's API allows you to search for Health Plans that a specific doctor
accepts.
## Getting Started
Visit our [Developer Portal](https://developers.vericred.com) to
create an account.
Once you have created an account, you can create one Application for
Production and an... | vericred/vericred-python | test/test_base.py | Python | apache-2.0 | 9,939 | [
"VisIt"
] | c3343db3596b87b743ea6469bfa4720a0d5f0a19042cc2fa72db6d4d361edce7 |
# ksp-compiler - a compiler for the Kontakt script language
# Copyright (C) 2011 Nils Liberg
#
# 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 opt... | nojanath/SublimeKSP | ksp_compiler3/ksp_ast_processing.py | Python | gpl-3.0 | 14,662 | [
"VisIt"
] | 4e0113fc1a0dc0c3395a74491249a763bac7dbbfed319cb904c39f12cead7319 |
#### PATTERN | EN | INFLECT ########################################################################
# -*- coding: utf-8 -*-
# Copyright (c) 2010 University of Antwerp, Belgium
# Author: Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
######################################################... | EricSchles/pattern | pattern/text/en/inflect.py | Python | bsd-3-clause | 35,978 | [
"Elk",
"Octopus"
] | 028fd9e5c6cd798ad1d41c7ed2f557e84824d6dce865ed862cfd0a8b6c666304 |
import os
import numpy as np
np.set_printoptions(precision=2, linewidth=120, suppress=True)
from ase.build import molecule
import atomistica.native as native
from atomistica import Atomistica
###
molstr = 'CO2'
a = molecule(molstr)
a.center(vacuum=10.0)
###
database_folder = os.getenv('MIO')
if database_folder i... | Atomistica/atomistica | examples/ASE/scc_dftb.py | Python | gpl-2.0 | 3,584 | [
"ASE"
] | 8a4cbbfae3a1f9abd6c657b8ada18fb2a1d826ee48d9a20c2247009249ace78b |
# the inputs list tells MCEdit what kind of options to present to the user.
# each item is a (name, value) pair. name is a text string acting
# both as a text label for the input on-screen and a key for the 'options'
# parameter to perform(). value and its type indicate allowable and
# default values for the option:
... | skinny121/MCEdit-Unified | stock-filters/demo/filterdemo.py | Python | isc | 5,141 | [
"VisIt"
] | a15bfe36f071478d64898c4185c0a28e25b935ed721934ba7f386ff8594a557a |
#!/usr/bin/env python
#-*- coding:utf-8 -*-
""" Store results into a database """
from collections import namedtuple
from peewee import *
from playhouse.fields import CompressedField
from playhouse.migrate import *
import nngt
from .pickle_field import PickledField
__all__ = [
'Activity',
'Computer',
... | Silmathoron/NNGT | nngt/database/db_generation.py | Python | gpl-3.0 | 5,783 | [
"Brian",
"NEURON"
] | 2187a15dba7bbb32fd73e56f948ee7223d12e02e20e45f82ce7bac8fc5cad145 |
"""
=====================================
Inference for Linear-Gaussian Systems
=====================================
This module implements the Kalman Filter in "Square Root" form (Cholesky
factorization).
"""
import warnings
import numpy as np
from scipy import linalg
from ..standard import _arg_or_default, _deter... | PierrotLC/pykalman | pykalman/sqrt/cholesky.py | Python | bsd-3-clause | 29,721 | [
"Gaussian"
] | b14e8a8fcc69874662de7ca3b966499686058493bd7f36cc75a8c9c800d21fa2 |
# -*- python -*-
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later versio... | michalliu/OpenWrt-Firefly-Libraries | staging_dir/toolchain-mipsel_1004kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libstdc++.so.6.0.19-gdb.py | Python | gpl-2.0 | 2,618 | [
"Firefly"
] | d6af229e6f712b67130a8edc2fdd4b04759552b08470fa07f3c7e34fef791acc |
# Copyright (C) 2008 CAMd
# Please see the accompanying LICENSE file for further information.
"""This module is an example of good coding style.
This docstring should begin with a one-line description followed by a
blank line, and then this paragraph describing in more word what kind
of functionality this module imp... | qsnake/gpaw | gpaw/coding_style.py | Python | gpl-3.0 | 3,198 | [
"ASE",
"GPAW"
] | 6ea55636b2b13a02ccae9a3cfcf29f055c5a955462daa9d30a6920d093bd8078 |
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <headingcell level=1>
# Try search and access of glider data
# <codecell>
import json, requests
url = 'http://erddap.marine.rutgers.edu/erddap/search/advanced.json'
params = dict(
page='1',
itemsPerPage='1000',
searchFor='',
protocol='(ANY)',
... | rsignell-usgs/notebook | ERDDAP/glider_test.py | Python | mit | 1,743 | [
"NetCDF"
] | e0a4abad4113ac83ef2160b4edc1215dccc0a3116fa61f533dda79bd912b57ae |
import numpy as np
import pandas as pd
import lsst.afw.coord as afwCoord
import lsst.afw.geom as afwGeom
import lsst.afw.image as afwImage
import lsst.afw.display
from functools import partial
from .match import match_lists
class hashable_dict(dict):
def __key(self):
return tuple((k,self[k]) for k in sorted(s... | timothydmorton/qa_explorer | explorer/display.py | Python | mit | 6,842 | [
"VisIt"
] | 2cba831face02ea7415555e5168f357b6caac6e02dacf8928f90bbd81c087e7e |
###################################################################################
## ##
## Retina model that reproduces contrast adaptation experiment by Ozuysal and ##
## Baccus [1] ... | rrcarrillo/COREM | COREM/Retina_scripts/contrast.py | Python | gpl-3.0 | 3,769 | [
"NEURON"
] | 9d9e67b14167abbcd9626d6a9712f679465734ca8f6cee74d76a6cf7c90aa569 |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
import sys
import android_commands
import json
import math
# Valid values of result type.
RESULT_TYPES = {'unimportant': 'RESULT ',
... | plxaye/chromium | src/build/android/pylib/perf_tests_helper.py | Python | apache-2.0 | 6,102 | [
"Galaxy"
] | b7a58c9d6abe4b40537840483909932021ba21a9a5bf9932b27278e3c79a0f80 |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main_window.ui'
#
# Created: Sat May 4 21:06:40 2013
# by: PyQt4 UI code generator 4.9.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Att... | Cheeser12/quadrature_tool | gui/main_window.py | Python | mit | 25,193 | [
"Gaussian"
] | 3345c48da32ce48e66dcc8cf28f5f0a019aa215d8e680f15a9d7664fba14a976 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import unittest
import pickle
import warnings
from pymatgen.util.testing import PymatgenTest
from pymatgen.core.periodic_table import Element, Specie, DummySp... | czhengsci/pymatgen | pymatgen/core/tests/test_periodic_table.py | Python | mit | 15,530 | [
"pymatgen"
] | 789da50af19ffa9e079c0ea1ee96a7eab9eb3833639be45a87840811765c57d2 |
# coding: utf-8
from __future__ import unicode_literals
import base64
import datetime
import hashlib
import json
import netrc
import os
import random
import re
import socket
import ssl
import sys
import time
import math
from ..compat import (
compat_cookiejar_Cookie,
compat_cookies,
compat_etree_Element,
... | yan12125/youtube-dl | youtube_dl/extractor/common.py | Python | unlicense | 143,050 | [
"VisIt"
] | 1e4c3434a264a8201a1a1ebae9ec281b22da7a8c1c8512a892b66b377c5ff798 |
# 2018-06-21 Scan Variable
__script__.title = 'KKB Overview'
__script__.version = '2.0'
__FOLDER_PATH__ = 'V:/shared/KKB Logbook/Temp Plot Data Repository/'
if not os.path.exists(__FOLDER_PATH__):
os.makedirs(__FOLDER_PATH__)
#__savefile__ = 'overview'
SampleName_tick = Par('bool', Tr... | Gumtree/Kookaburra_scripts | Internal/KKB_overview_vs2.py | Python | epl-1.0 | 22,963 | [
"CRYSTAL"
] | 17e2eac52a2173bde9f3e5f912d968593ab1b27cfd87e39f681aa773b1111a0b |
#
# Copyright 2015, 2020-2021 Lars Pastewka (U. Freiburg)
# 2020 Wolfram G. Nöhring (U. Freiburg)
# 2015 Adrien Gola (KIT)
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# This program is free software: you can redistribute it and/or modify
... | libAtoms/matscipy | tests/test_eam_io.py | Python | lgpl-2.1 | 8,521 | [
"ASE",
"Matscipy"
] | f15f80ab24de0bf379dc9fd7440dddda2a12c50b37ccd061815ce44ec9431b24 |
import MDAnalysis as mda
import datreant as dtr
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pdbionsurvey.coordination
import json
import seaborn as sb
import scipy
import mmtf
import pdbionsurvey.collection
# import pdbionsurvey.analysis
from os ... | Becksteinlab/PDB_Ion_Survey | src/pdbionsurvey/plotting.py | Python | gpl-3.0 | 24,567 | [
"MDAnalysis"
] | 5ad68a7fba78ec30a55b0f9a60cc7f469a98c1ae1aadbb45eaab4ecb08c06561 |
###############################################################################
# apogee.spec.lsf: Utilities to work with APOGEE LSFs
###############################################################################
import os, os.path
from functools import wraps
import warnings
import math
import numpy
from scipy import ... | jobovy/apogee | apogee/spec/lsf.py | Python | bsd-3-clause | 19,990 | [
"Gaussian"
] | c411308ea857617e808509c0ec7ca7dc00bdc7e7b12283033e895c666bd1b7cf |
# Copyright (c) 2014-2016 Genome Research Ltd.
#
# This file is part of IVA.
#
# IVA is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
# ... | sanger-pathogens/iva | setup.py | Python | gpl-3.0 | 2,157 | [
"pysam"
] | 9ec78e401e9c99b17b37b32bb5f8994247ab4bed879d9285aa02e7b9f7ae3117 |
from StringIO import StringIO
import HTSeq
unpaired = '''@HD\tVN:1.0\tSO:unsorted
@SQ\tSN:chr1\tLN:249250621
@SQ\tSN:chr2\tLN:243199373
@PG\tID:bowtie2\tPN:bowtie2\tVN:2.0.0-beta7
FCC0DEFACXX:2:1101:1087:101744#CCACATTC\t153\tchr2\t128281285\t42\t75M\t=\t128281285\t0\tTCCGGAGTGTTGCTCATTTACATNATCCTNACCGTCTGACCCNGAATCCC... | boratonAJ/htseq-copy | test/test_regression.py | Python | gpl-3.0 | 839 | [
"HTSeq"
] | 146c4799d570cd5f9baa4d2888e9e4fb43ddf2bb581652b7d889f21713affc50 |
"""Estimate tumor purity and frequency using copy number and allele freqencies with BubbleTree.
http://www.bioconductor.org/packages/release/bioc/html/BubbleTree.html
http://www.bioconductor.org/packages/release/bioc/vignettes/BubbleTree/inst/doc/BubbleTree-vignette.html
"""
import collections
import csv
import os
imp... | Cyberbio-Lab/bcbio-nextgen | bcbio/heterogeneity/bubbletree.py | Python | mit | 17,272 | [
"Bioconductor",
"pysam"
] | dd994aeb953f815a318d2b3d8e392c755ec712109924a18fb20463675b88eac2 |
# -*- coding: utf-8 -*-
import ast
import logging
import os.path
import re
import traceback
from collections import OrderedDict
from collections.abc import Sized, Mapping
from functools import reduce
from itertools import tee, count
from textwrap import dedent
import itertools
from lxml import etree, html
from psycop... | ddico/odoo | odoo/addons/base/models/qweb.py | Python | agpl-3.0 | 70,366 | [
"VisIt"
] | 12fb29f84c45beeade5782b7f6e5f01e8c0eafa227b426902e0ba6b314fcdc18 |
# coding: utf-8
"""
This module provides functions for finding the dimensions of connected subunits
in a crystal structure.
This method finds the dimensionality of the material even when the material is
not layered along low-index planes, or does not have flat layers/molecular wires.
See details at : Cheon, G.; Duerl... | gmatteo/pymatgen | pymatgen/analysis/find_dimension.py | Python | mit | 8,635 | [
"CRYSTAL",
"Jmol",
"pymatgen"
] | 929faa2d0564ed7b335e2c8a112c0092674b6cb1d4d87e9689548ab19acc8c05 |
# 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... | drpngx/tensorflow | tensorflow/contrib/autograph/pyct/templates.py | Python | apache-2.0 | 9,077 | [
"VisIt"
] | 234737bef806a9936ac79971f83fca40c8974553410038db1839f96f59809cf5 |
#!/usr/bin/env python3
"""
GUI framework and application for use with Python unit testing framework.
Execute tests written using the framework provided by the 'unittest' module.
Updated for unittest test discovery by Mark Roddy and Python 3
support by Brian Curtin.
Based on the original by Steve Purcell, from:
htt... | FFMG/myoddweb.piger | monitor/api/python/Python-3.7.2/Tools/unittestgui/unittestgui.py | Python | gpl-2.0 | 18,560 | [
"Brian"
] | 5195cd2c1044f5b520dcad40fb413d177b39d4127fa564745cdd2d893f68fb4b |
# -*- coding: utf-8 -*-
# aboutdialog.py
#
# Copyright (C) 2007 Marcos Pinto ('markybob') <markybob@gmail.com>
#
# Deluge is free software.
#
# You may 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, o... | jamielennox/deluge | deluge/ui/gtkui/aboutdialog.py | Python | gpl-3.0 | 18,938 | [
"Gaussian"
] | 3c4ac869587be2290f97ce2eb335bb030d21d620b382db60ae75a97265a9b271 |
#!/usr/bin/env python
import math
from scipy.stats import norm
import numpy as np
try:
import gi
gi.require_version('NumCosmo', '1.0')
gi.require_version('NumCosmoMath', '1.0')
except:
pass
from gi.repository import GObject
from gi.repository import NumCosmo as Nc
from gi.repository import NumCosmoMath as Nc... | NumCosmo/NumCosmo | examples/pydata_simple/py_sline_gauss.py | Python | gpl-3.0 | 2,528 | [
"Gaussian"
] | 3c36c6717f3d205643610bc28ff9122022600169056531e9fdd21ec291335d93 |
"""
@name: Modules/House/Family/Insteon/_test/test_insteon_device.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2011-2020 by D. Brian Kimmel
@note: Created on Apr 1, 2011
@license: MIT License
@summary: This module tests Insteon_device
Passed all 6 tests - DBK - 2020-... | DBrianKimmel/PyHouse | Project/src/Modules/House/Family/Insteon/_test/test_insteon_device.py | Python | mit | 2,769 | [
"Brian"
] | a6203bd012397fba034aab7242682837e65500099c558a8e08c79b7173f30bf1 |
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import functools
import itertools
import logging
import os.path
from dataclasses import dataclass
from pathlib import PurePath
from typing import Iterab... | patricklaw/pants | src/python/pants/engine/internals/graph.py | Python | apache-2.0 | 47,145 | [
"VisIt"
] | 59adf8834434940c4938be66b2a929961bafd0ce0cf43abb702c43d73c69242f |
import os
import aiohttp
import traceback
import sys
import re
import json
import time
import asyncio
import discord
import datetime
from utils import checks
from discord.ext import commands
from utils.dataIO import fileIO
from random import choice as randchoice
with open('config.json') as f:
config = json.load(f)
p... | JonnyBoy2000/Brooklyn1.0 | main.py | Python | gpl-3.0 | 11,134 | [
"CASINO"
] | 9d622337a340bf9f0c6cdd28ae79465b4ab35fceafadfa9c46d741067376d9ac |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | modeling/data/inspector.py | Python | agpl-3.0 | 15,721 | [
"Galaxy"
] | 2ef3fc0e516bab72b74971b9e1ad07af7b8b7cdd32b82146cd4d2e754f62b35a |
import re
import inspect
from collections import defaultdict
from .errors import TransitionError, DeclarationError, UnreachableStateError, NonExistentStateError, MultipleStatesError
from .blocks import State
from .logger import StateLogger
from .collection import StateCollection
def _find_shortest_path(graph, start,... | gurunars/state_machine_crawler | state_machine_crawler/state_machine_crawler.py | Python | apache-2.0 | 18,263 | [
"VisIt"
] | d411c0609511b944f46df9b3e5b21104c2abb50c616e45b8fc330e7b167e7244 |
"""
Codes for Canstrat ASCII files; only used by canstrat.py.
:copyright: 2021 Agile Scientific
:license: Apache 2.0
"""
# Codes for rtc
rtc_txt = """X ROC-C_X ROCKTP_IGNEB ROCK TYPE 1 Igneous Basic
N ROC-C_N ROCKTP_IGNEA ROCK TYPE 2 Igneous Acidic
Z ROC-C_Z ROCKTP_META ROCK TYPE 3 Metamorphic
V ROC-C_V ROCKTP_VOLC ... | agile-geoscience/welly | welly/canstrat_codes.py | Python | apache-2.0 | 5,067 | [
"CRYSTAL"
] | 58cd53858ac2e337235f278360f2691b5719b8c38dcc3299ed7a28bae273befb |
"""
This file implements a type I and a type II model from
the abstract base class NeuronAbstract.
You can inject step currents and plot the responses,
as well as get firing rates.
Relevant book chapters:
- http://neuronaldynamics.epfl.ch/online/Ch4.S4.html
"""
# This file is part of the exercise code repository a... | EPFL-LCN/neuronaldynamics-exercises | neurodynex3/neuron_type/neurons.py | Python | gpl-2.0 | 7,219 | [
"Brian",
"NEURON"
] | ca4464448c806e376a22bbd4195f1653f711a5ce3e96a605a808ebe66e6be0c8 |
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Copyright (c) 2007, Enthought, Inc.
# License: BSD Style.
# Enthought library imports.
from traits.api import Instance
from tvtk.api import tvtk
# Local imports
from mayavi.filters.filter_base import FilterBase
from mayavi.core.pipeline_info import PipelineIn... | dmsurti/mayavi | mayavi/filters/extract_edges.py | Python | bsd-3-clause | 1,094 | [
"Mayavi"
] | 8acbdda5eda84d4d4963f1dfdde11c314e670dbe39bbdfa637b726749ac5f137 |
# https://bitbucket.org/arjones6/sphinx-numfig/src
from docutils.nodes import figure, caption, Text, reference, raw, SkipNode, Element
from sphinx.roles import XRefRole
# Element classes
class page_ref(reference):
pass
class num_ref(reference):
pass
# Visit/depart functions
def skip_page_ref(self, node):... | yungyuc/solvcon | doc/ext/numfig.py | Python | bsd-3-clause | 3,325 | [
"VisIt"
] | 52bc06c654e4e08a160ea50c1e2fee7440a8a53823ed7a5a11624b8304c0f09d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.