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 |
|---|---|---|---|---|---|---|---|
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | rmcgibbo/psi4public | psi4/driver/p4util/exceptions.py | Python | lgpl-3.0 | 5,590 | [
"Psi4"
] | a3583ad1d0f90aec6ed88d9129b9ae471ed6f8991650cf5f4682b74e5eb2a5e9 |
#!/usr/bin/python
import argparse
import arguments
import logconfig
import session
from app.elk.tiny_builder import TinyElkBuilder
def update_stack(args):
boto3_session = session.new(args.profile, args.region, args.role)
builder = TinyElkBuilder(args, boto3_session, True)
return builder.build(args.dry_r... | mccormickmichael/laurel | update_tiny_elk_stack.py | Python | unlicense | 1,834 | [
"Elk"
] | e620d834e3b62b5bf02cd6cbc1f683769b32b8e781790d2290dbe3e6d080fb74 |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | simonwydooghe/ansible | lib/ansible/playbook/conditional.py | Python | gpl-3.0 | 10,288 | [
"VisIt"
] | 80bf162a5dabae1ea9a8653755022a73edcd0a2acae43fe9aa84ea5c317442ff |
import json
import logging
from core import ffCommand
from core import ffLocation
from core import getDeviceStatusDict
from core import getDeviceViewsList
from core import getRoutineViewsDict
from core import reinstallRoutinesFromConfig
from core.api.alexa import alexaHandler
from core.api.ifttt import iftttHandler
fr... | zpriddy/Firefly | Firefly/core/api/views.py | Python | apache-2.0 | 5,757 | [
"Firefly"
] | a13c9e8698e7c9021f65aafda770c4b906565dba9b09df4b58b4f6666b4c99fa |
#!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 16.3.8
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the te... | 0x46616c6b/ansible | lib/ansible/modules/network/avi/avi_systemconfiguration.py | Python | gpl-3.0 | 6,584 | [
"VisIt"
] | 535a5f55cddffb24f548e2ac761f15b321695a6df61b5f519f0072c717027901 |
# -*- coding: utf-8 -*-
"""
tests.datastructures
~~~~~~~~~~~~~~~~~~~~
Tests the functionality of the provided Werkzeug
datastructures.
Classes prefixed with an underscore are mixins and are not discovered by
the test runner.
TODO:
- FileMultiDict
- Immutable types undertested... | mollstam/UnrealPy | UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/Werkzeug-0.10.4/tests/test_datastructures.py | Python | mit | 28,933 | [
"TINKER"
] | a2346859ccae54cca886fcd69bdc746863af441a4c7510bf6dda8928421da1c3 |
# 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/projects/__init__.py | Python | gpl-3.0 | 738 | [
"Brian"
] | 4288283c7212f5c72f92dfab460a5dd29d38e8bcf9a5b73c9a23a97572304fa4 |
# -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | CodeMonkeyJan/hyperspy | hyperspy/model.py | Python | gpl-3.0 | 73,236 | [
"Gaussian"
] | 39856104b5cb4bc635c27a3ab4d5a8a321ee317efc55cedd891ff47824615062 |
# Script to generate VTKUnstructuredGrid objects from CitcomS hdf files
# author: Martin Weier
# Copyright (C) 2006 California Institue of Technology
#
# 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 F... | geodynamics/citcoms | visual/Mayavi2/original_plugins/plugins/CitcomSHDFUgrid.py | Python | gpl-2.0 | 9,370 | [
"VTK"
] | cea2434bdeb7d5353925ede4008f1483d2c8589b04fffc4e27d6e218f18e8992 |
#!/usr/bin/python
import time
import os
import sys
import argparse
#TODO: Rename this script
# Copyright(C) 2015 David Ream
# Released under GPL version 3 licence. http://www.gnu.org/licenses/lgpl.html
# Do not remove this comment
####################################################################################... | reamdc1/gene_block_evolution | gbeer_pipeline_developmental.py | Python | gpl-3.0 | 9,572 | [
"BLAST"
] | cf6281c414db0995296bb14f2fd90920cf1e3d17eaf289cdc29f039b51ba1fc3 |
""" ProxyManager is the implementation of the ProxyManagement service
in the DISET framework
"""
__RCSID__ = "$Id$"
import types
from DIRAC.Core.DISET.RequestHandler import RequestHandler
from DIRAC import gLogger, S_OK, S_ERROR
from DIRAC.FrameworkSystem.DB.ProxyDB import ProxyDB
from DIRAC.Core.Security import ... | sposs/DIRAC | FrameworkSystem/Service/ProxyManagerHandler.py | Python | gpl-3.0 | 16,843 | [
"DIRAC"
] | ef763da7caa19f0c1cd7db6fa98ec1d7d5954d628d620ad16d9f4481d92a56a1 |
#!/usr/bin/env python
"""
A program to solve the 3D incompressible magnetohydrodynamics equations using the
implicit midpoint rule
The program is based on the Orszag-Patterson algorithm as documented on pg. 98
of C. Canuto, M.Y. Hussaini, A. Quarteroni and T.A. Zhang
"Spectral Methods: Evolution to Complex Geometri... | openmichigan/PSNM | Magnetohydrodynamics/Programs/Magnetohydrodynamics3D.py | Python | bsd-2-clause | 14,217 | [
"Mayavi"
] | 58ea77b18c7c920ff814b62411a397751a418befe2b448dd17b86edb21eb980a |
# -*- coding: utf-8 -*-
# Copyright 2007-2011 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | pburdet/hyperspy | hyperspy/gui/egerton_quantification.py | Python | gpl-3.0 | 24,695 | [
"Gaussian"
] | 5b16b3d8b4e5c6d6da2782c1896698bd7a43917e12cc5252b7ff832d3858dc64 |
import warnings
warnings.warn("pymatgen.structure_prediction and submodules has been moved to "
"pymatgen.analysis.structure_prediction. This stub will be "
"removed in pmg 2018.01.01.")
from pymatgen.analysis.structure_prediction.substitution_probability import *
| matk86/pymatgen | pymatgen/structure_prediction/substitution_probability.py | Python | mit | 296 | [
"pymatgen"
] | 9e9452f41c6c305eee3270b788eee983737121bb52b9709a485ea68faeb7b79d |
"""
Created on Sun Sep 10 22:06:46 2017
Converting from GSFLOW_print_controlfile4_gcng_melt30yr.m
Creates inputs files to run GSFLOW, based on the "Sagehen" example but
modified for Chimborazo's Gavilan Machay watershed. Crystal's AGU2016
poster.
GSFLOW Input files:
- control file (generate with GSFLOW_print_... | UMN-Hydro/GSFLOW_pre-processor | python_scripts/GSFLOW_print_controlfile.py | Python | gpl-3.0 | 22,167 | [
"CRYSTAL"
] | 827743f23ad1cc6308cb1b680638026c304328aced7429e5d9c0b34cc6a57bcb |
#phidget.py
#! /usr/bin/python
"""Copyright 2011 Phidgets Inc.
This work is licensed under the Creative Commons Attribution 2.5 Canada License.
To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/
"""
__author__="Adam Stelmack"
__version__="2.1.8"
__date__ ="14-Jan-2011 2:29:14 PM"
#B... | maniot/ruche | scripts/weight/getraw.py | Python | gpl-2.0 | 7,423 | [
"VisIt"
] | 5992153fe26d81a9e24470f48bbfae8b5511741189ef7d8b21bfc7bc538b77b9 |
from views import *
from lookups import *
import requests
import re
from utils import *
import itertools
from config import config
if config.IMPORT_PYSAM_PRIMER3:
import pysam
import csv
#hpo lookup
import orm
import subprocess
@app.route('/register',methods=['POST'])
def register():
name=request.form.get('nam... | Withington/phenopolis | views/home.py | Python | mit | 3,518 | [
"pysam"
] | 1def0c27f0c4e525c99650d3c4dcd84f17cf43fec6c17853f6245a1e8f6044cc |
""" DIRAC Production DB
Production database is used to collect and serve the necessary information
in order to automate the task of transformation preparation for high level productions.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# # import... | ic-hep/DIRAC | src/DIRAC/ProductionSystem/DB/ProductionDB.py | Python | gpl-3.0 | 25,063 | [
"DIRAC"
] | 5de5ded9d3774e531f6ac6f6a718d2413f00228eab3ee08622715e7412ce04e0 |
import numpy as np
import tensorflow as tf
import elbow.util as util
from elbow.elementary import Gaussian
from elbow.conditional_dist import ConditionalDistribution
from elbow.parameterization import unconstrained, positive_exp, simplex_constrained
class NoisyGaussianMatrixProduct(ConditionalDistribution):
... | davmre/bayesflow | elbow/models/factorizations.py | Python | bsd-3-clause | 25,872 | [
"Gaussian"
] | 58bd1fbfbd178064407ec8993196a46d4ee817e8926b292db9431c8515a488c6 |
#!/usr/bin/env python
import tkinter as Tk
from tkinter import ttk
import matplotlib
import numpy as np
import numpy.ma as ma
import new_cmaps
from new_cnorms import PowerNormWithNeg, PowerNormFunc
import matplotlib.colors as mcolors
import matplotlib.gridspec as gridspec
import matplotlib.patheffects as PathEffects
c... | pcrumley/Iseult | src/mag_plots.py | Python | gpl-3.0 | 46,781 | [
"Gaussian"
] | d72ffb387031ff059c4eb83c0aa15e364ccf5ed52e42b912de8a20f7c4f23935 |
#!/usr/bin/env python
# Copyright 2014-2020 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | sunqm/pyscf | pyscf/pbc/dft/test/test_krkspu.py | Python | apache-2.0 | 1,664 | [
"PySCF"
] | 8b46469d926291dc2efe26baffa070da5f0144eaaf4d74c94a3303aef1cea333 |
""" This is a test of using PilotManagerClient
In order to run this test we need the following DBs installed:
- PilotAgentsDB
And the following services should also be on:
- PilotManager
this is pytest!
"""
from __future__ import absolute_import
from __future__ import division
from __future__ imp... | yujikato/DIRAC | tests/Integration/WorkloadManagementSystem/Test_PilotsClient.py | Python | gpl-3.0 | 3,972 | [
"DIRAC"
] | ef326647087648a55779afa29344bd1dfe0859764b45556a899c58279a386c99 |
from .. import Provider as PersonProvider
class Provider(PersonProvider):
formats = (
'{{first_name}} {{last_name}}',
'{{first_name}} {{last_name}}',
'{{first_name}} {{last_name}}',
'{{first_name}} {{last_name}}',
'{{first_name}} {{last_name}}',
'{{first_name}} {{la... | danhuss/faker | faker/providers/person/de_CH/__init__.py | Python | mit | 25,983 | [
"Brian"
] | 56896ec5655275a4df5d14b47f8fdbdba19b45a72803a9a56b5cd8e0268830c9 |
#!/usr/bin/python2
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, CDesktopEnums
from GSettingsWidgets import *
DPI_FACTOR_LARGE = 1.25
DPI_FACTOR_NORMAL = 1.0
HIGH_CONTRAST_THEME = "HighContrast"
KEY_TEXT_SCALING_FACTOR = "text-scaling-factor"
KEY_GTK_THEME ... | mtwebster/Cinnamon | files/usr/share/cinnamon/cinnamon-settings/modules/cs_accessibility.py | Python | gpl-2.0 | 20,971 | [
"ORCA"
] | c62125cbb24930a9eba45449dee4397717e2544f048242b7b555c50df1721107 |
#import matplotlib
#matplotlib.use('Agg')
from brian import *
from brian.library.ionic_currents import *
defaultclock.dt = dt = 0.1*ms
duration = 0.5*second
# Neuron parameters
Cm = 1*uF # /cm**2
gL = 0.1*msiemens
EL = -65*mV
ENa = 55*mV
EK = -90*mV
gNa = 35*msiemens
gK = 9*msiemens
threshold = EmpiricalThreshold(thr... | achilleas-k/brian-scripts | my_hh.py | Python | apache-2.0 | 2,906 | [
"Brian",
"NEURON"
] | 5b38f9bc01f32fe9ab39f80f9d46a50830cd26303a6446cd642df1580e4adfd4 |
"""Some examples for quick testing/demonstrations.
All function accept `show` and `draw` arguments
* If `draw` is `True` it will return the widgets (Scatter, Volume, Mesh)
* If `draw` is `False`, it will return the data
* if `show` is `False`, `ipv.show()` will not be called.
"""
import warnings
import numpy a... | maartenbreddels/ipyvolume | ipyvolume/examples.py | Python | mit | 9,002 | [
"Gaussian"
] | 613c4efb2e640fa18ad6fd9a599206aa1fc14426056cc9a462fb9a171e1c722e |
from __future__ import unicode_literals
import base64
import datetime
import hashlib
import json
import netrc
import os
import re
import socket
import sys
import time
import xml.etree.ElementTree
from ..compat import (
compat_cookiejar,
compat_cookies,
compat_HTTPError,
compat_http_client,
compat_... | FICTURE7/youtube-dl | youtube_dl/extractor/common.py | Python | unlicense | 50,001 | [
"VisIt"
] | e77dba75d3efeaa0ff5c74c29d411a238129db9d76ad008cb481c1edae36f00a |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import os
import shutil
class Amber(Package, CudaPackage):
"""Amber is a suite of biomolecular s... | rspavel/spack | var/spack/repos/builtin/packages/amber/package.py | Python | lgpl-2.1 | 9,325 | [
"Amber",
"NetCDF"
] | 6d4089d4bbb8740434bf202ae451c7c0328246cb9168216b36cde4642df4d689 |
#!/usr/bin/env python3
# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | canhnt/ingress | hack/boilerplate/boilerplate.py | Python | apache-2.0 | 6,272 | [
"VisIt"
] | d467d073800120922b4e9e16a5b2843df98847c1a558bf2b3c0af16319a9d392 |
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
try: paraview.simple
except: from paraview.si... | mganeva/mantid | qt/paraview_ext/PVPlugins/Macros/ThreeSliceView.py | Python | gpl-3.0 | 6,874 | [
"ParaView"
] | e26e19b56f9d41a9c0265db48e171ac782f0d5a52f4cbae4a63d7b204c86a60e |
""" X509Request is a class for managing X509 requests with their Pkeys.
It's main use is for proxy delegation.
"""
import M2Crypto
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Utilities import DErrno
# from DIRAC.Core.Security.m2crypto.X509Chain import X509Chain # pylint: disable=import-error
# pylint: disable=br... | DIRACGrid/DIRAC | src/DIRAC/Core/Security/m2crypto/X509Request.py | Python | gpl-3.0 | 6,223 | [
"DIRAC"
] | f080da6d37c25d7a5bf3851db395209ef88a71760217bc9934390f78afa07d1c |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# demonstrate use of point labeling and the selection window
# Create the RenderWindow, Renderer and both Actors
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddR... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Rendering/Label/Testing/Python/labeledMesh.py | Python | gpl-3.0 | 3,661 | [
"VTK"
] | 72fa05847319805bf7a9cf1b62724874d75407cd773ceb161f6d4ad5c848d170 |
# Most of this code is:
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
# The server command includes the additional header:
# For discussion of daemonizing:
# http://aspn.activestate.com/ASPN/C... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/util/pastescript/serve.py | Python | gpl-3.0 | 36,232 | [
"Galaxy"
] | d7da444b23834b64b427e2951e12d867156b53782da8f418408546f847959887 |
# -----------------------------------------------------------------------
#
# < pyetree_utils.py >
#
# -----------------------------------------------------------------------
# -----------------------------------------------------------------------
#
# File Name : pyetree_utils.py
#
# Auth... | josefgrosch/Pyetree | pyetree/PyetreeUtils.py | Python | apache-2.0 | 3,361 | [
"MOOSE"
] | e675f26ccf929fe54b023988ea37667aa84cbb1cb7d1ded844ab771add9c5422 |
#!/usr/bin/python
import HTSeq
import sys
from Bio.Seq import Seq
from Bio import SeqIO
from Bio.Alphabet import generic_dna
from Bio.SeqRecord import SeqRecord
from Bio.Blast import NCBIXML
from Bio.Blast.Applications import NcbiblastnCommandline
from Counter import Counter #Counter.py is needed to run this script
#fr... | mickaelsilva/pythonscripts | AlleleCalling/CommonFastaFunctions.py | Python | gpl-2.0 | 4,678 | [
"BLAST",
"HTSeq"
] | a60c0cf19c4c40bff93f5f39aa7db967c39beb55825f057beb4f9b28dab24d2e |
# Copyright 2009 by Tiago Antao <tiagoantao@gmail.com>. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
from __future__ import print_function
import os
import unittest
from Bi... | updownlife/multipleK | dependencies/biopython-1.65/Tests/test_PopGen_GenePop.py | Python | gpl-2.0 | 3,369 | [
"Biopython"
] | 3673319be959417daae4b6c5b0572369475f9ad5831fe41eb29ae88916d00c6d |
from json import dumps
from getpass import getuser
from .base.base_drmaa import BaseDrmaaManager
from .util.sudo import sudo_popen
from ..managers import status
try:
from galaxy.tools.deps.commands import which
except ImportError:
from galaxy.tool_util.deps.commands import which
from logging import getLogger... | galaxyproject/pulsar | pulsar/managers/queued_external_drmaa.py | Python | apache-2.0 | 4,555 | [
"Galaxy"
] | 7f948a3ae8115aa60dfdbc1fad8521337c39b93e9367be58489f5ea2382670e8 |
import numpy as np
#from Numeric import asarray as Numeric_asarray
#from ase.units import Bohr
#from ase.parallel import paropen
fast = False
# -------------------------------------------------------------------
from vtk import vtkStructuredPoints, vtkDoubleArray, vtkXMLImageDataWriter
def write_vti(filename, atom... | grhawk/ASE | tools/ase/io/vtkxml.py | Python | gpl-2.0 | 5,337 | [
"ASE",
"VTK"
] | b2ac16d8963ee6fc453d6c5d8cd914bcf41e492c01810c9b08d5063eeee16151 |
#!/usr/bin/env python3
#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
... | nuclear-wizard/moose | python/chigger/tests/color/color.py | Python | lgpl-2.1 | 608 | [
"MOOSE"
] | 8f6efd698b8d22c89313af7b6a612bba207ecfe9fb7a71ae56d7efa20157a653 |
#!/usr/bin/env
"""
GOA_Winds_Reanalysis_Comp.py
Compare NARR Winds with NCEP V2 (with Mooring Winds)
Using Anaconda packaged Python
"""
#System Stack
import datetime
#Science Stack
import numpy as np
from netCDF4 import Dataset
from scipy import stats
# User Stack
import general_utilities.haversine as sphered... | shaunwbell/FOCI_Analysis | ReanalysisRetreival_orig/GOA_Winds/GOA_Winds_Reanalysis_Comp.py | Python | mit | 26,399 | [
"NetCDF"
] | 03cbd31b0504fa84a124ae6fd32b04b11fa9f5be41862e2a8a9a5e585aca13cc |
########################################################################
#
# (C) 2013, James Cammarata <jcammarata@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software ... | veger/ansible | lib/ansible/galaxy/api.py | Python | gpl-3.0 | 11,051 | [
"Galaxy"
] | 684601c565ccb2feebfdac7a86c457d3db3e5c8bef11f4c543d7d2bb8f432a4d |
#!/usr/bin/env python
import os, time, re
from functools import partial
from flask import Flask, Module, url_for, render_template, request, session, redirect, g, make_response, current_app
from decorators import login_required, guest_or_login_required, with_lock
from decorators import global_lock
# Make flask use the o... | gutow/sagenb_slickgrid | sagenb/flask_version/base.py | Python | gpl-3.0 | 19,147 | [
"Jmol"
] | 7f1ddb469f0b6d352b50cea499d7f25fb21489f75dda0c8161c3dc5face5a6cd |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | tmerrick1/spack | lib/spack/spack/spec.py | Python | lgpl-2.1 | 144,513 | [
"VisIt"
] | 16640e58606c484a5586ee0872df39b3b1192e63eef2290fe5b36185eb3a3df4 |
"""
cclib (http://cclib.sf.net) is (c) 2006, the cclib development team
and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html).
gmagoon 4/5/10-4/6/10 (this notice added 4/29/10): Gregory Magoon modified this file from cclib 1.0
"""
__revision__ = "$Revision: 882 $"
import re
import numpy
... | connie/RMG-Java | source/cclib/parser/gaussianparser.py | Python | mit | 46,059 | [
"Gaussian",
"cclib"
] | 678013458061d8cddb604755dc5a50a63b2fd64e9cbb93974419253e207e5778 |
# -*- coding: utf-8 -*-
"""
The :mod:`sklearn.naive_bayes` module implements Naive Bayes algorithms. These
are supervised learning methods based on applying Bayes' theorem with strong
(naive) feature independence assumptions.
"""
# Author: Vincent Michel <vincent.michel@inria.fr>
# Minor fixes by Fabian Pedre... | ashhher3/scikit-learn | sklearn/naive_bayes.py | Python | bsd-3-clause | 26,046 | [
"Gaussian"
] | e2022f86fd2cd4b768237f14857c4309cfa2abcbef56cf50b58d406058084a8d |
"""Provide estimates of sample purity and subclonal copy number using THetA.
Identifying cellularity and subclonal populations within somatic calling using
tumor normal pairs.
https://github.com/raphael-group/THetA
"""
import os
import sys
import subprocess
import pybedtools
import pysam
import toolz as tz
from bcb... | fw1121/bcbio-nextgen | bcbio/heterogeneity/theta.py | Python | mit | 10,023 | [
"pysam"
] | 91a8ae915237304bacdd4fa6fcdaccf8d06e5f8ac9dc5c323564db71e8c116f5 |
#encoding: UTF-8
# Copyright (C) 2016 Mauro Palumbo
# This file is distributed under the terms of the # MIT License.
# See the file `License' in the root directory of the present distribution.
"""
This submodule groups all functions relevant for computing elastic constants and
compliances.
"""
import numpy as np
fr... | mauropalumbo75/pyqha | pyqha/fitC.py | Python | mit | 6,332 | [
"Quantum ESPRESSO"
] | 4af25d637771c16e794b0b82c46ed5b02e4b6e4f00fc646b9fcc904a1472153f |
__author__ = 'nzhang-dev'
import unittest
from ctree.frontend import *;
from ctree.transformations import PyBasicConversions
from ctree.transforms import DeclarationFiller
def fib(n):
a, b = 0.0, 1.0
k = "hello"
while n > 0:
a, b = b, a + b
n -= 1
return a
class DeclarationTest(uni... | mbdriscoll/ctree | test/test_transforms/test_declaration_filler.py | Python | bsd-2-clause | 1,687 | [
"VisIt"
] | b40c7ab4288de634bb0dec8adafde717ce6d8931d7188c6951cbca3bd206bbad |
#!/usr/bin/env python
#
# Copyright (c) 2001 Autonomous Zone Industries
# This file is licensed under the
# GNU Lesser General Public License v2.1.
# See the file COPYING or visit http://www.gnu.org/ for details.
#
# A module containing user-configuration utilities.
# (And it's pronounced confu-tils, where "con... | zooko/egtp | common/confutils.py | Python | agpl-3.0 | 2,273 | [
"VisIt"
] | 8056ce40d48bb3b73ee9f1dc4921dc5fa99575886357cbf2843d73b3d49eff06 |
# -*- coding: utf-8 -*-
"""
End-to-end tests for the LMS that utilize the course home page and course outline.
"""
from datetime import datetime, timedelta
import six
from common.test.acceptance.pages.lms.create_mode import ModeCreationPage
from openedx.core.lib.tests import attr
from ...fixtures.course import Cou... | appsembler/edx-platform | common/test/acceptance/tests/lms/test_lms_course_home.py | Python | agpl-3.0 | 3,163 | [
"VisIt"
] | 2c68849d6d6eafbb3e86807c2d413adb9f6d19275ba9c11433813358df8577db |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
"""
The sound task will accept Celery messages as a Celery task
It will manage playing files in the background
It will have configuration options to do the following:
- just output to a file some debug print logs
- Use PyAudio, the most common python audio system that... | bbulkow/MagnusFlora | flask/sound_task.py | Python | mit | 2,847 | [
"Brian"
] | 14775f1f4fff1924d4e55fbb0fbfbdd305451d451a0933085bb8b6d09772fdf5 |
##################################################################################################
# Name: Oracle.py #
# Author: Randy Johnson #
# Description: This is... | dallasdba/dbascripts | Oracle.py | Python | gpl-3.0 | 108,560 | [
"EPW"
] | 957ebb6a6c7a535e2eb81014d450c6d3fa4a8f1e6ed8fcf8772a7b711b9a6cec |
'''
Unittests for spreg.error_sp_hom module
'''
import unittest
import pysal
#from pysal.spreg import error_sp_hom as HOM
from scipy import sparse
import numpy as np
from functools import partial
from pysal.contrib.handler import Model
GM_Error_Hom = partial(Model, mtype='GM_Error_Hom')
GM_Endog_Error_Hom = partial(... | schmidtc/pysal | pysal/contrib/handler/tests/test_error_spom_sparse.py | Python | bsd-3-clause | 18,281 | [
"COLUMBUS"
] | 84944b1476f35dd1e1cb63337fb823cd72194be1d920b2cdc5b2c2793320ab57 |
# coding: utf-8
# In[2]:
#import tkinter as tk
import sqlite3
import numpy as np
import pandas as pd
#import pubchempy as pcp
#import json
#from urllib.request import urlopen
#from rdkit import Chem
#from rdkit.Chem.Draw import IPythonConsole
#from rdkit.Chem import Draw
#from rdkit.Chem import PandasTools
import ... | bbqtaco/matinsy | dbintegretyck.py | Python | gpl-3.0 | 8,904 | [
"RDKit"
] | 49caf940caa41f22e4f68c505bb5f332ef3c763e524343e4e18f6f35acf1fdb4 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Classes for reading/manipulating/writing VASP ouput files.
"""
import glob
import itertools
import json
import logging
import math
import os
import re
import warnings
import xml.etree.cElementTree as ET
fr... | davidwaroquiers/pymatgen | pymatgen/io/vasp/outputs.py | Python | mit | 214,218 | [
"CRYSTAL",
"VASP",
"VisIt",
"Wannier90",
"pymatgen"
] | eb02a3941660a13ffc0f936f3d4a3805d981820db71b9563759aeedd8d025d39 |
# Copyright (C) 2019-2020 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from collections import Counter
import dataclasses
import datetime
i... | SoftwareHeritage/swh-storage | swh/storage/cassandra/cql.py | Python | gpl-3.0 | 52,602 | [
"VisIt"
] | d7208e6f93eb5f38db7636ce245ce60d56505fed55c8c0596da41334b5a220b4 |
from ast.body.classorinterfacedeclaration import ClassOrInterfaceDeclaration
from ast.visit.generic import GenericVisitor
from ast.visit.sourcevisitor import SourcePrinter
import os, logging
from .. import util
from finder import HFinder, EGFinder
from replacer import HReplacer
from cleaner import Cleaner
def to_jav... | plum-umd/java-sketch | java_sk/decode/__init__.py | Python | mit | 2,301 | [
"VisIt"
] | ba42f3a451a23bfca1dc8132706983bb391e3eacc6544e62e5c364f2a3e8d00d |
#
# 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/src/bigdl/chronos/model/tcmf/local_model_distributed_trainer.py | Python | apache-2.0 | 5,083 | [
"ORCA"
] | 53a3dc9e127ee1bda8058760199abd10622f4b1271df1a73754461d6eb593bea |
# coding: utf-8
from __future__ import division, unicode_literals
"""
Created on Mar 19, 2012
"""
__author__ = "Shyue Ping Ong, Stephen Dacek"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyuep@gmail.com"
__date__ = "Mar 19, 2012"
impor... | rousseab/pymatgen | pymatgen/entries/tests/test_compatibility.py | Python | mit | 34,571 | [
"pymatgen"
] | a60f13fd5310a46d6acdd00f8e000b9ca3a46dc3eb21cbc681475bab7dc1938b |
# -*- coding: utf-8 -*-
# Natural Language Toolkit: Python port of the tok-tok.pl tokenizer.
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Jon Dehdari
# Contributors: Liling Tan, Selcuk Ayguney, ikegami, Martijn Pieters
#
# URL: <http://nltk.sourceforge.net>
# For license information, see LICENSE.TXT
"""
The tok-... | sdoran35/hate-to-hugs | venv/lib/python3.6/site-packages/nltk/tokenize/toktok.py | Python | mit | 8,031 | [
"COLUMBUS"
] | 55202d762ea788aeba75ee67eb914e0dc4ba39d4ab56ac1eb85fff42eae82a22 |
# Copyright 2016 Brian Innes
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | brianinnes/pycupi | python/reset.py | Python | apache-2.0 | 645 | [
"Brian"
] | 06120361edb7f61ba2497f2e281fc8a677ccea8304af342229cc498740676906 |
#!/usr/bin/env python
'''
SCF module currently does not apply SO-ECP automatically. SO-ECP contributions
can be added to GHF/GKS core Hamiltonian by overwriding the method get_hcore.
Since pyscf-2.0 setting attribte with_soc in GHF object can include the
ECP-SOC integrals in core Hamiltonian.
See also examples/gto/20... | sunqm/pyscf | examples/scf/44-soc_ecp.py | Python | apache-2.0 | 1,049 | [
"PySCF"
] | d18b786b38a1d3ec7477c5089e90b42c1193f730d19bc79a8df52c6750efc755 |
"""
DIRAC Times module
Support for basic Date and Time operations
based on system datetime module.
It provides common interface to UTC timestamps,
converter to string types and back.
The following datetime classes are used in the returned objects:
- dateTime = datetime.datetime
- date = datetime.date
- t... | marcelovilaca/DIRAC | Core/Utilities/Time.py | Python | gpl-3.0 | 7,735 | [
"DIRAC"
] | 50903a1a56ea2c49db9aab9a97c03f9020bc25139292fc31bc54ef636ba1c0c9 |
#!/usr/bin/env python
#
# This file is part of OpenDrift.
#
# OpenDrift 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, version 2
#
# OpenDrift is distributed in the hope that it will be useful,
# but WITHOU... | knutfrode/opendrift | opendrift/scripts/opendrift_animate_profile.py | Python | gpl-2.0 | 1,760 | [
"NetCDF"
] | fcffabacffc0791e6cf51bfac2c9feaacc45e4180131f01803f2185bab957afb |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import logging
from math import ceil
import sys
import numpy as np
import tensorflow as tf
VGG_MEAN = [103.939, 116.779, 123.68]
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_boolean('use_fp16', F... | irashadow/TensorFlow_FCN | fcn32_vgg_train.py | Python | mit | 21,712 | [
"Gaussian"
] | 773c38b15e7591d716f2fedd678878b2fee3ddca60d057401be1454bb3e9689b |
from rest_framework.test import APITestCase
from model_mommy import mommy
from enhydris import models
class GareaTestCase(APITestCase):
def setUp(self):
self.garea = mommy.make(models.Garea)
def test_get_garea(self):
r = self.client.get("/api/gareas/{}/".format(self.garea.id))
self.... | openmeteo/enhydris | enhydris/api/tests/test_views/test_misc.py | Python | agpl-3.0 | 3,506 | [
"VisIt"
] | 2a2c06dbe468c11da94ebf3b71acaa8bc7589556f0646b79a837f2f13fe3f499 |
# Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | KaiSzuttor/espresso | testsuite/python/tests_common.py | Python | gpl-3.0 | 19,660 | [
"ESPResSo",
"Gaussian"
] | 6925bd25bab399974b1bb513665c1cc4f37234659f2e18819dbf9d538c07a077 |
#!/usr/bin/env python
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the fol... | wizmer/NeuroM | examples/features_graph_table.py | Python | bsd-3-clause | 4,053 | [
"NEURON"
] | 16a93d9638fd530c09dac6e683059fd1cd12d4e18157e54e38cdf667cc6d41a8 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, print_function, unicode_literals
from itertools import chain, combinations
from pymatgen.core.periodic_table import Element
from pymatgen.core.composition import Composition
'... | setten/pymatgen | pymatgen/core/molecular_orbitals.py | Python | mit | 4,254 | [
"CRYSTAL",
"pymatgen"
] | 097eda9593b809d55ad3eaac561c04bec3c628073320abb343d21e4dedd07c11 |
##
## Biskit, a toolkit for the manipulation of macromolecular structures
## Copyright (C) 2004-2018 Raik Gruenberg & Johan Leckner
##
## 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 v... | graik/biskit | biskit/md/amberCrdEntropist.py | Python | gpl-3.0 | 7,217 | [
"Amber"
] | 70506b75aae0dcfee9b781dc7fd6448fd6b8b02535a13a291263ac143d7c5d21 |
#!/usr/bin/env python3
"""
Runs all posible ciftify functions on some test data
Usage:
ciftify_intergration_tests [options] <testing_dir> <fixtures-dir>
Arguments:
<testing_dir> PATH The directory to run the tests inside
<fixtures-dir> PATH The directory with the csv to test the results against
Opti... | edickie/ciftify | tests/integration/ciftify_integration_tests.py | Python | mit | 46,187 | [
"Gaussian"
] | d807ae234b2b20545697781d8479934311f8c98b2aaf727a93f61b9c28e456e1 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
This module define the various drones used to assimilate data.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
... | sonium0/pymatgen | pymatgen/apps/borg/hive.py | Python | mit | 17,244 | [
"Gaussian",
"VASP",
"pymatgen"
] | 9d6abccd07d4c1f9f3bbf733bdb5743b9b75272fddecefb35756a66c3b65ab1b |
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 30 21:51:35 2015
@author: spatchcock
"""
# %%
import numpy
from matplotlib import pyplot
import matplotlib.animation as animation
numpy.set_printoptions(precision=3)
# %% Numerical scheme
w = 0.01
D = 0.0000
lamda = 0.01
L = 1.
J = 500
dx = float(L)/float(J-1)
x_grid ... | spatchcock/models | advection_diffusion/advection_diffusion_decay_equation_crank_nicolson.py | Python | unlicense | 2,281 | [
"Gaussian"
] | 37cadf1774bf3a80cea08cc4866a892e99c229be2bc9962061bb77b06cc39ddb |
"""Adsorbate operators that adds an adsorbate to the surface
of a particle or given structure, using a supplied list of sites."""
import numpy as np
import random
from itertools import chain
from ase import Atoms, Atom
from ase.structure import molecule
from ase.ga.offspring_creator import OffspringCreator
from ase.ca... | suttond/MODOI | ase/ga/adsorbate_operators.py | Python | lgpl-3.0 | 25,156 | [
"ASE"
] | 07606a2f5d81ad2b3b17a4bef255ba85c90e883ff8054ee2a3e0aecbbb5c2435 |
#!/usr/bin/env python
##
## Copyright 2016 SRI International
## See COPYING file distributed along with the package for the copyright and license terms.
##
"""
Check Missing Scans
===================
- Take as input a csv file containing subject id, visit, and validation type.
- Then query redcap to see if scan info... | abonil91/ncanda-data-integration | scripts/redcap/check_missing_scans.py | Python | bsd-3-clause | 3,664 | [
"VisIt"
] | ef576dcfa50fb51a1cc7bdcaa48ef07453c10ca160859efb5907d021b1ca15a1 |
#!/usr/bin/env python
# encoding: utf-8
################################################################################
#
# RMG - Reaction Mechanism Generator
#
# Copyright (c) 2009-2011 by the RMG Team (rmg_dev@mit.edu)
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of thi... | faribas/RMG-Py | rmgpy/constantsTest.py | Python | mit | 5,261 | [
"Avogadro",
"ChemPy"
] | 7b933ac17110285cb87711086ddd7d017492874d9d2d59f5b7739e2ec9b64aef |
"""SCons.Util
Various utility functions go here.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, in... | bilke/OpenSG-1.8 | SConsLocal/scons-local-0.96.1/SCons/Util.py | Python | lgpl-2.1 | 50,878 | [
"VisIt"
] | b9168722bcdccc25901d1ad14634f77fce1b663d62339a8a776c3c829a0da056 |
'''
An elasticsearch query pass-through.
Has auth control, so it is better than exposing your ES index directly.
'''
import json, urllib2
from flask import Blueprint, request, abort, make_response
from flask.ext.login import current_user
from service import models
from octopus.core import app
blueprint = Blueprint... | JiscPER/jper | service/views/query.py | Python | apache-2.0 | 1,982 | [
"Octopus"
] | ae8a02b0be5038a46206bdee680ec026b7ecea216eb0b2e7fca839054e5c0f83 |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Class that maps (chain_id, residue_id) to a residue property."""
class AbstractProper... | bryback/quickseq | genescript/Bio/PDB/AbstractPropertyMap.py | Python | mit | 3,999 | [
"Biopython"
] | 49241dfe3d0c4439281e7f3f9f6ed08f41f407c380fc9cdb728c0038941d2bff |
# 05.10.2007, c
# last revision: 25.02.2008
from sfepy import data_dir
filename_mesh = data_dir + '/meshes/3d/special/cube_sphere.mesh'
# Whole domain $Y$.
region_1000 = {
'name' : 'Y',
'select' : 'all',
}
# Domain $Y_1$.
region_1 = {
'name' : 'Y1',
'select' : 'elements of group 1',
}
# Domain $Y_2$... | olivierverdier/sfepy | tests/test_lcbc_3d.py | Python | bsd-3-clause | 2,359 | [
"VTK"
] | b01101e0550302170c2ed48b92985818286248b124232c951be7028332dce77d |
import os
import re
import matplotlib.pyplot as plt
import textplot.utils as utils
import numpy as np
import pkgutil
from nltk.stem import PorterStemmer
from sklearn.neighbors import KernelDensity
from collections import OrderedDict, Counter
from scipy.spatial import distance
from scipy import ndimage
from functools... | davidmcclure/textplot | textplot/text.py | Python | mit | 6,654 | [
"Gaussian"
] | 987deaf0dd8d7b002f352cd80f6be2822b289ebcd52ef56902441c2b20283884 |
from __future__ import print_function
from ase.calculators.calculator import Calculator, FileIOCalculator
from ase.data import atomic_numbers
import sys
import os
import numpy as np
from scipy.special import i0 as bessel_i0 # used for Kaiser FT widnow
class EXAFS(FileIOCalculator):
implemented_properties = ['en... | lavakyan/ase-bimetall | calculators/exafs.py | Python | gpl-2.0 | 20,803 | [
"ASE",
"FEFF"
] | a6f742d8ec7cdb20c223fdb663b09cf344bf64604de2ef117a9dff31740765a5 |
# -*- coding: utf-8 -*-
import common
import regex
import find
try:
import numpy as np
except ImportError:
print 'missing: numpy'
np = None
try:
import scipy as sp
except ImportError:
print 'missing: scipy'
sp = None
try:
import matplotlib.pyplot as plt
import matplotlib as mpl
except... | LangmuirSim/langmuir | LangmuirPython/langmuir/__init__.py | Python | gpl-2.0 | 1,232 | [
"VTK"
] | 9fb0476da23c0c280adab2bf91df0d7d283fe095a5dd3423d0de6d0601bb4687 |
import numpy as np
import bayesianoracle as bo
import bayesianoracle.plot as boplotter
def plot(bmap, X, k_fig, x_next, kappa):
""" Auxillary plotting function
Parameters
----------
bma : EnrichedBayesianModelAveraging object to be plotted
X : The values that have been previously traversed
... | altaetran/bayesianoracle | tests/quadraticBayesianAveraging/testBayesianBMA1D.py | Python | apache-2.0 | 4,930 | [
"Gaussian"
] | 2e440cecc36b32a71fcfa3431bb65fe53b2c60c4abe8f2d7758cf58ddb77bbb5 |
import bs4
import copy
import datetime
import functools
import time
from django.conf import settings as django_settings
from django.core import management
from django.core import serializers
import django.core.mail
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client imp... | JDShu/SCOPE | askbot/tests/email_alert_tests.py | Python | gpl-3.0 | 42,754 | [
"VisIt"
] | 7bd6253a3b1dee7eee289f082c22bd9823084bb32c4664340df0ef48782813a7 |
#!/usr/bin/env python
"""
Kyle McChesney
Ruffus pipeline for simple bowtie alignment
Does not support paired end reads
"""
import logging
import argparse
from rpy2.robjects import r
from rpy2.robjects.packages import importr
parser = cmdline.get_argparse(description='Perform the MEDIP analysis on a set of bam files'... | mbiokyle29/pipelines | medip/medip_pipeline.py | Python | mit | 1,830 | [
"Bowtie"
] | 598c78067c3a44ff380d0a37cb0e573e71421d87e98761ff5f0793b666c9a4ef |
import os
import traceback
from nco import Nco
from os import remove
from .. import checker
from re import compile
from netCDF4 import Dataset
from numpy.ma import isMaskedArray
from numpy import array, diff
class SimpleChecker(checker.Checker):
def verify_params(self, latidx, lonidx):
harvested_area = s... | RDCEP/psims | pysims/checkers/common/simplechecker.py | Python | agpl-3.0 | 6,502 | [
"NetCDF"
] | c99969714a442b71722c48c191e526c66228fc80d2d83264265d310a906fc26b |
# coding=utf-8
# Copyright 2022 The Uncertainty Baselines 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 ap... | google/uncertainty-baselines | uncertainty_baselines/datasets/aptos.py | Python | apache-2.0 | 12,852 | [
"Gaussian"
] | 2f47030fb6b300479218fa40cd5091166b8f14c51cf252504aaabf5ef46f9909 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
urlpatterns = [
url(r'^', include('on_admin.home.urls... | anduslim/adminpage | config/urls.py | Python | bsd-3-clause | 1,296 | [
"VisIt"
] | 7fc6d33fc010429eab546d49b37e7cc3f6c3ab179f8ef56fbbe6faacab263fd4 |
#!/usr/bin/env python
from __future__ import print_function
# Core
import collections
from functools import wraps
import logging
import pprint
import random
import time
import ConfigParser
# Third-Party
import argh
from clint.textui import progress
from selenium.webdriver.common.action_chains import ActionChains
f... | metaperl/tramon | src/main.py | Python | mit | 10,918 | [
"VisIt"
] | 5bf8ca5c1509c48b66e7071542c6e7e25169624db6caf0eb8b356d2cd809a57b |
"""
@name: Modules/Computer/Pi/pi.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2019-2019 by D. Brian Kimmel
@license: MIT License
@note: Created on Jul 30, 2019
@Summary:
"""
__updated__ = '2019-07-30'
# Import system type stuff
# Import PyMh files and modules.
# #... | DBrianKimmel/PyHouse | Project/src/Modules/Computer/Pi/pi.py | Python | mit | 330 | [
"Brian"
] | 8538be74c36f85348b043aa400e900fe23f16292189c1832b0bf9b92ab8a91ad |
# This file based on the example by Thomas Lecocq at
# http://www.geophysique.be/2011/08/01/pack-an-enthought-traits-app-inside-a-exe-using-py2exe-ets-4-0-edit/
# retrieved 2013-04-05
# Quoting the blog entry:
#
# then, to launch the packing, just do:
# $ python setup.py py2exe
#
# The build and packing process takes s... | Peter--K/Sakura | setup.py | Python | bsd-3-clause | 2,985 | [
"NetCDF"
] | 0b592a1b6aab7fa7ccbc78ea4eb80337442b2e951147936e4e840e3d2fa5b57d |
from __future__ import division, unicode_literals
import unittest
import os
import warnings
import json
from sympy import Number, Symbol
from pymatgen.analysis.surface_analysis import SlabEntry, SurfaceEnergyPlotter, \
NanoscaleStability, WorkFunctionAnalyzer
from pymatgen.util.testing import PymatgenTest
from py... | nisse3000/pymatgen | pymatgen/analysis/tests/test_surface_analysis.py | Python | mit | 23,735 | [
"pymatgen"
] | 644c15329e63ff6c5f041406f9842e0bd8bb327de7c1e6b80d6b6c692c03168a |
import sys, json, uuid, os, time, datetime
from misp2cybox import *
from misp2ciq import *
from dateutil.tz import tzutc
from stix.indicator import Indicator
from stix.ttp import TTP, Behavior
from stix.ttp.malware_instance import MalwareInstance
from stix.incident import Incident, Time, ImpactAssessment, ExternalID, A... | 0x0mar/MISP | app/files/scripts/misp2stix.py | Python | agpl-3.0 | 17,205 | [
"Amber"
] | bed46d4b5ee2b8ef6888ba02f860a761b68f65ab5880f88012021d65174be6c4 |
""" Just listing the possible Properties
"""
__RCSID__ = "$Id$"
#
TRUSTED_HOST = "TrustedHost"
# Normal user operations
NORMAL_USER = "NormalUser"
# CS Administrator - possibility to edit the Configuration Service
CS_ADMINISTRATOR = "CSAdministrator"
# Job sharing among members of a group
JOB_SHARING = "JobSharing"
# ... | andresailer/DIRAC | Core/Security/Properties.py | Python | gpl-3.0 | 1,566 | [
"DIRAC"
] | 1439a9ba0f172ec90820e51d04edf527e9bb7cfe24fdabe21cd2c1332be1d0fe |
from __future__ import print_function
from __future__ import division
import numpy as np
from numpy import *
from scipy import signal as ss
import re
import os, sys
script_dir = os.path.realpath(os.path.dirname(__file__))
LUT_TABLEDATA_FILE = os.path.join(script_dir, "src/table_data.cpp")
LUT_TABLEHDR_FILE = os.path.j... | austensatterlee/VOSIMSynth | VOSIMLib/genTables.py | Python | gpl-3.0 | 23,013 | [
"DIRAC"
] | b4abb44a1fdc04ac0ebaa3d05c81183e8ceeea74462b8ea1297a35e2908a394b |
import time
import datetime
import socket
import json
from markdown.extensions.toc import TocExtension
import markdown
from django.utils.text import slugify
from django.views import generic
from django.http import HttpResponse
from django.shortcuts import (render, render_to_response, redirect, get_object_or_404)
from d... | fountainhead-gq/DjangoBlog | blog/views.py | Python | gpl-2.0 | 16,571 | [
"VisIt"
] | 382dd183207c922f9e9add637d750dae5e7a32e361be72da8dcedd52293c5883 |
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | frreiss/tensorflow-fred | tensorflow/python/keras/engine/keras_tensor.py | Python | apache-2.0 | 25,154 | [
"VisIt"
] | e7fe7a289e76c4d9c93f287ab1bd66cdcfdea606b109aa70787e184dc735e00b |
#!/usr/bin/env python3
import glob
import h5py
import matplotlib.pyplot as plt
files = glob.glob('hdf5_out_2d_*.h5')
def printname(name):
print(name)
fig = plt.figure()
for file in files:
# file = 'hdf5_out_2d_00000.h5'
f = h5py.File(file, 'r')
print(f['Bx'])
f.visit(printname)
bx = f['... | garethcmurphy/mhdvanleer | scripts/see.py | Python | mit | 748 | [
"VisIt"
] | 93f4c81c50ca721309b0cefbdd2e0b32c1f6a403c79c7306033d9e5dda7c27d5 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2005-2011 Async Open Source
##
## 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 Licens... | tiagocardosos/stoq | stoqlib/gui/base/gtkadds.py | Python | gpl-2.0 | 2,091 | [
"VisIt"
] | 40b90695f3838bb10fc2b0db2b9876a7a9809012c36e76e2299d82031f925349 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.