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 |
|---|---|---|---|---|---|---|---|
from wandbox import __bash__ as bash
from wandbox import __cc__ as cc
from wandbox import __cmake__ as cmake
from wandbox import __coffee__ as coffee
from wandbox import __cpp__ as cpp
from wandbox import __crystal__ as crystal
from wandbox import __csharp__ as cs
from wandbox import __cxx__ as cxx
from wandbox import ... | srz-zumix/wandbox-api | wandbox/__all__.py | Python | mit | 2,358 | [
"CRYSTAL"
] | 3e178df115d70f2563eae885baf0288007c4a492d7e4ba9c80a2b608a2246f22 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module is intended to be used to compute Pourbaix diagrams
of arbitrary compositions and formation energies. If you use
this module in your work, please consider citing the following:
General formalis... | gVallverdu/pymatgen | pymatgen/analysis/pourbaix_diagram.py | Python | mit | 41,344 | [
"pymatgen"
] | 1dbd25021f6bf1921f8c68bd0f689a57ac9eda616729383c3c0240e6d978c56d |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2018, Chris Houseknecht <@chouseknecht>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | pgmillon/ansible | lib/ansible/modules/clustering/k8s/k8s.py | Python | gpl-3.0 | 9,564 | [
"Galaxy"
] | 851c3231d2ad171f2ebb2f21e634799159c1f4422573b2103e4303c52cffe88c |
#!/usr/bin/python
"""
Likelihood functions for various data.
"""
import numpy as np
import pylab as P
from scipy.special import erf
def load_mauch_lf(fname="../lumfns/lumfunc_6dfgs.dat", h=0.7, starburst_corr=False):
"""
Load 6dFGS star-forming radio galaxy data from Mauch & Sadler
(astro-ph/0612018). (z_... | philbull/ghost | likelihoods.py | Python | mit | 4,085 | [
"Galaxy"
] | 95f2703afe0fe9649c69729fe95f94d5a7aba18a548bffb0a3b8e177fc4cad2d |
import sys
from py._code.code import FormattedExcinfo
import py
import pytest
import warnings
import inspect
import _pytest
from _pytest._code.code import TerminalRepr
from _pytest.compat import (
NOTSET, exc_clear, _format_args,
getfslineno, get_real_func,
is_generator, isclass, getimfunc,
getlocati... | jaraco/pytest | _pytest/fixtures.py | Python | mit | 44,995 | [
"VisIt"
] | a672cb3edf1ced2d5edb42fad7931b0bbebed855048f11870f2bbb07409c17e6 |
'''
*** SHED SKIN Python-to-C++ Compiler ***
Copyright 2005-2013 Mark Dufour; License GNU GPL version 3 (See LICENSE)
infer.py: perform iterative type analysis
we combine two techniques from the literature, to analyze both parametric polymorphism and data polymorphism adaptively. these techniques are agesen's cartesi... | kirbyfan64/shedskin | shedskin/infer.py | Python | gpl-3.0 | 57,578 | [
"VisIt"
] | a61d71aec5e5a140bfe2b8fbee6d446d3828f4ee8cf8ec008cacebe2237bd47f |
# beamsearch.py - breadth-first search with limited queueing
#
# Copyright 2016-2019 NetworkX developers.
#
# This file is part of NetworkX.
#
# NetworkX is distributed under a BSD license; see LICENSE.txt for more
# information.
"""Basic algorithms for breadth-first searching the nodes of a graph."""
import networkx ... | sserrot/champion_relationships | venv/Lib/site-packages/networkx/algorithms/traversal/beamsearch.py | Python | mit | 3,543 | [
"VisIt"
] | de65be27b2c301a35cdfe328441c9d8e44ec4da1df5532bedb774062678da410 |
"""
Unit Tests for preprocess module.
"""
import sys
import math
import unittest
import argparse
import numpy
import pysam
from mixemt import phylotree
from mixemt import preprocess
# TODO: Stuff to test:
# def process_reads(samfile, var_pos, min_mq, min_bq):
# def build_em_input(samfile, refseq, phylo, args):
cla... | svohr/mixemt | mixemt/test/preprocess_test.py | Python | mit | 11,279 | [
"pysam"
] | 8902bd57b423590833e42e7312a0938bd9e69ae2047684dc43e8f7d6e38b9144 |
#!/bin/python
#-*-coding: utf-8-*-
import urllib
import urllib2
import cookielib
import re
import sys
# import random
class baidu_Search:
def __init__(self):
self.enable = True
self.page = 0
def rmTags(self,str):
pattern1 = re.compile(r'<.*?>',re.DOTALL)
pattern2 = re.com... | hao-app/baiduCrawl | baiduSearch.py | Python | gpl-2.0 | 5,356 | [
"Galaxy"
] | ea1766059258900b46b598ca12bf25acf5681cddfacdccec65e4b594d6302ff5 |
#!/usr/bin/python
'''
wrapper for blastn
'''
from rjv.fileio import *
from rjv.blast import _blastfields_all as fields
import sys
usage=\
'''
wrapper for blastn
blastme.py query.fa subject.fa > output.csv
'''
if len(sys.argv) < 3:
print usage
exit()
blast = 'blastn'
ops = '-evalue 1e-20' # -num_threads ... | robertvi/rjv | blastme.py | Python | gpl-2.0 | 550 | [
"BLAST"
] | b6d572e12f49177c85e44648ab32753f925f61e701e5d2af6d919b32e8aa8aa3 |
#! /usr/bin/env python
import os
import setuptools
meta = {}
with open(os.path.join('pycallnumber', '__init__.py')) as fh:
variables = [l.split(' = ') for l in fh if l.startswith('__')]
for var in variables:
meta[var[0].strip('_')] = var[-1].strip('"\'\n')
setuptools.setup(
name=meta['name'],
... | jthomale/pycallnumber | setup.py | Python | bsd-3-clause | 1,274 | [
"VisIt"
] | 2c0f5793c8156927f5e4b7e3c5abd19fa6b9f8d1552fa9be02e880ade2b52d0c |
from datetime import datetime
from sqlalchemy import Table, Column, String, DateTime
from sqlalchemy.orm import class_mapper
from gearshift import config
from gearshift.database import get_engine, bind_metadata, metadata, session, mapper
from gearshift.util import load_class
from gearshift.visit.api import BaseVisitM... | dbrattli/python-gearshift | gearshift/visit/savisit.py | Python | mit | 3,003 | [
"VisIt"
] | 61fc2cd45e6b743ba7e71bca35bc4fd1000f01b4788f6fed259ec0c881543926 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright INRIA
# Contributors: Nicolas P. Rougier (Nicolas.Rougier@inria.fr)
#
# DANA is a computing framework for the simulation of distributed,
# asynchronous, numerical and adaptive models... | rougier/dana | examples/DNF-2d.py | Python | bsd-3-clause | 4,057 | [
"Gaussian",
"NEURON"
] | 6735b9d928e070634cc18441bc2b35bd8f4a2c114d4d2cda9b6ea2460e604b86 |
# (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
##########################################################################
#
# Copyright (c) 2005 Imaginary Landscape LLC and Contributors.
#
# Permiss... | santisiri/popego | envs/ALPHA-POPEGO/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/auth/auth_tkt.py | Python | bsd-3-clause | 12,707 | [
"VisIt"
] | 1488e5e1cb9031fe7fa8e3af09664a4dda590e4efcfcb604a9e343721e74ea4f |
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import matplotlib.ticker as ticker
import numpy as np
import pkgutil
import re
from debug import Debug, Debuggable
import stemming.porter2
from nltk.stem import PorterStemmer
from sklearn.neighbors import KernelDensity
from collections import Ordere... | MartinPaulEve/PlotSummary | text.py | Python | mit | 10,140 | [
"Gaussian"
] | be3cd24f02b0f094c0a5784586c61190aa43ba6f8634a93be4b75005c9f44fb0 |
import os
import os.path
import unittest
import random
import math
import tempfile
import time
import numpy
import SimpleITK as sitk
import sitkUtils
from __main__ import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
def generateModel(modelFiducialName, radius, nFiducials, workingDir):
modelFi... | tokjun/FiducialRegistrationTest | ConsoleTest/FiducialRegistrationConsoleTest.py | Python | bsd-3-clause | 13,969 | [
"VTK"
] | c983f1179e54c3cf44d8da2c6d94d7179ca09367daa2d5810a81390875810210 |
import discord
from discord.ext import commands
from __main__ import send_cmd_help
from bs4 import BeautifulSoup
import random
class Nsfw:
"""Nsfw commands."""
def __init__(self, bot):
self.bot = bot
self.session = self.bot.http.session
@commands.group(pass_context=True)
async def ns... | Eslyium/Eslyium-Cogs | nsfw/nsfw.py | Python | mit | 8,861 | [
"MOE"
] | bbea97e813d5c1e04022e4fb72a9a321cf3694105f1e7b36b6daf821d2e61e17 |
# Copyright 2011 OpenStack Foundation
# 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 requ... | hahaps/openstack-project-generator | template/<project_name>/tests/unit/api/test_xmlutil.py | Python | apache-2.0 | 27,293 | [
"VisIt"
] | e7cfd747cf7d773a52ca82bd38bec21c2f2b5cb9435ea9389673dccf12f4c895 |
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2014 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors: Kyle A. Beauchamp, TJ Lane, Jo... | kyleabeauchamp/mdtraj | mdtraj/core/trajectory.py | Python | lgpl-2.1 | 61,694 | [
"Amber",
"CHARMM",
"Desmond",
"Gromacs",
"LAMMPS",
"MDTraj",
"NAMD",
"NetCDF",
"OpenMM"
] | d9aa71d098b3f192aa8ceeabfddb05d6fffeefad0f9d36456cd26a3c46e5e7de |
#!/usr/local/bin/python
#CHIPSEC: Platform Security Assessment Framework
#Copyright (c) 2010-2015, Intel Corporation
#
#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; Version 2.
#
#This program is... | chipsecintel/chipsec | source/tool/chipsec/hal/pcidb.py | Python | gpl-2.0 | 407,606 | [
"BWA",
"CRYSTAL",
"Octopus",
"VisIt"
] | d7b84a313115933c07ded0ee6b07f7b2f43fd98bcb4089b03eee09ef923b6078 |
from __future__ import division, print_function
import numpy as np
import warnings
import xactcore as xore
import lanczos
# $$\
# $$ |
# $$ | $$$$$$\ $$$$$$$\ $$$$$$\
# $$ | \____$$\ $$ __$$\ $$ __$$\
# $$ | $$$$$$$ |$$ | $$ |$$ / $$ |
# $$ | $$ __$$ |$$ | $$ |$$ | ... | georglind/humo | humo/xactlang.py | Python | mit | 21,557 | [
"ASE"
] | b542503335c5e94e831b85d528847b4e3e508fcf6432b701e66b67a56b5131fa |
# IPython log file
from collections import deque
import matplotlib.pyplot as plt
import numpy as np
import dask.array as da
import skan
import napari
import networkx as nx
from scipy import ndimage as ndi
from skimage import morphology
from scipy import spatial
##################################################
# PAR... | jni/useful-histories | sholl-analysis.py | Python | bsd-3-clause | 5,560 | [
"NEURON",
"Napari"
] | b1bd978c3de580ffb09200dafadfbb4c5ec7be2f1bf9b777944c75238e9ba74c |
# Copyright (C) 2012-2016 Max Planck Institute for Polymer Research
# Copyright (C) 2008-2011 Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Li... | kkreis/espressopp | src/analysis/LBOutput.py | Python | gpl-3.0 | 2,268 | [
"ESPResSo"
] | 8f9470a88cb29842256ce92d3fdfd8647d2496200c0bc2643679500379924475 |
#! /usr/bin/python
import cv2
import numpy as n
import sys
from math import *
Img = cv2.imread(sys.argv[1], 0)
#Img = n.array([[1, 1, 1], [1, 1, 1], [1, 1, 1]])
def convolve(Img, G):
Height, Width = Img.shape
Res = n.zeros((Height, Width))
ICopy = n.zeros((Height+2, Width+2))
InsideW = int((ICopy.s... | YuKill/UEMImplementation | ImageProcessing/Convolution.py | Python | unlicense | 1,863 | [
"Gaussian"
] | 3df08e48f245d3c73bcff827ab93348e3f01d9ecf4c067007d13a4883f548f96 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | AnishShah/tensorflow | tensorflow/python/autograph/core/converter.py | Python | apache-2.0 | 11,712 | [
"VisIt"
] | d3e4316578cfad81274daf0d37b332e980d8dc899bd5b0b4f1676b051e6f6466 |
###############################################################################
##
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## "Redistribution and use in source and binary forms, with or without
## modification, ... | CMUSV-VisTrails/WorkflowRecommendation | vistrails/packages/vtk/tf_widget.py | Python | bsd-3-clause | 28,144 | [
"VTK"
] | 7885d144da1bc9ebe8ef847df80153daac18a7c4c3d829e0228d35208dd7e9e3 |
import os
import shutil
import json
import logging
from pychemia.code.vasp import VaspJob, VaspOutput, VaspInput
from pychemia.crystal import KPoints
from pychemia.code.vasp import read_poscar
from pychemia.utils.mathematics import round_small
__author__ = 'Guillermo Avendano-Franco'
class RelaxPopulation:
def _... | MaterialsDiscovery/PyChemia | pychemia/evaluator/vasp_evaluator.py | Python | mit | 10,280 | [
"CRYSTAL",
"VASP"
] | 7d91d18cfebf58c677224bbb9cc0e26f7f4f1fdbb602d237bd5ae2313f7fee8b |
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# Name: corpus/__init__.py
# Purpose: Shortcuts to the corpus collection
#
# Authors: Christopher Ariza
# Michael Scott Cuthbert
#
# Copyright: Copyright © 2009, 2015 Michael Scott ... | arnavd96/Cinemiezer | myvenv/lib/python3.4/site-packages/music21/corpus/__init__.py | Python | mit | 21,355 | [
"VisIt"
] | 5f26c3492a52aa1a5c23ead57bda5402f183296a289552f846d668d58df9c1c5 |
'''
Individual stages of the pipeline implemented as functions from
input files to output files.
The run_stage function knows everything about submitting jobs and, given
the state parameter, has full access to the state of the pipeline, such
as config, options, DRMAA and the logger.
'''
from utils import safe_make_di... | khalidm/hiplexpipe | src/stages.py | Python | mit | 11,036 | [
"BWA"
] | 0f09132d57be82b8522851b50f44b4b116788ac6fc8d4f05ffa74bf3950abfaf |
r"""Module for generating a Python state for ParaView.
This module uses paraview.smtrace to generate a trace for a selected set of
proxies my mimicking the creating of various pipeline components in sequence.
Typical usage of this module is as follows::
from paraview import smstate
state = smstate.get_state()
... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/Wrapping/Python/paraview/smstate.py | Python | gpl-3.0 | 11,879 | [
"ParaView"
] | d32720b2644b8f5625f1dce5d9e394e26599b0d89feab95cb31866e7fce45878 |
import numpy as np
from mayavi import mlab
from scipy.interpolate import splprep, splev
from traits.api import HasTraits, Instance, Button, on_trait_change, Float
from traitsui.api import View, Item, HSplit, Group, VGroup
from mayavi.core.ui.api import MlabSceneModel, SceneEditor
#############################... | drhoet/marantz-hue-adapter | analysis/color_space_analysis.py | Python | mit | 5,469 | [
"Mayavi",
"VTK"
] | 24e0ad7aa8c173ce2f893387474a6326bb6d421e0b2548dabb32de7c26495b37 |
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright 2015 Nervana Systems Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... | coufon/neon-distributed | examples/mnist_merge.py | Python | apache-2.0 | 2,564 | [
"Gaussian"
] | 96a4407ebe1dc2cdcf0a09348c6fe8cd8033cff060595dc81d46bbc8a1cca654 |
"""
Handles testing of the core object and function module
#
Written By: Matthew Stadelman
Date Written: 2016/06/09
Last Modifed: 2017/03/03
#
"""
from argparse import Namespace
import logging
import os
import pytest
import re
import sys
import scipy as sp
import PIL
import apmapflow as apm
import apmapflow.ap_map_flow... | stadelmanma/netl-AP_MAP_FLOW | test/unit/TestCore.py | Python | gpl-3.0 | 7,963 | [
"VTK"
] | b2eecbe7b2c70d7c3910446d4cbdeabba566f7ad0dac1cfe8509ae8eda360a12 |
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
import os
import sys
import json
import platform
import tempfile
import threading
import multiprocessing
from collections import OrderedDict
import gi
import pytz
import iso639
import tzlocal
import requests
import humanfriendly
import webbrowser
from backend.... | ideascube/pibox-installer | kiwix-hotspot/gui.py | Python | gpl-3.0 | 78,877 | [
"VisIt"
] | 70452939f923666d7327842dd0fbe727f91729f6447e4712f05b1a64e1bf7671 |
"""
@created_at 2014-06-09
@author Exequiel Fuentes <efulet@gmail.com>
@author Brian Keith <briankeithn@gmail.com>
"""
# Se recomienda seguir los siguientes estandares:
# 1. Para codificacion: PEP 8 - Style Guide for Python Code (http://legacy.python.org/dev/peps/pep-0008/)
# 2. Para documentacion: PEP 257 - Docst... | efulet/laberinto | laberinto/lib/laberinto_excepcion.py | Python | mit | 712 | [
"Brian"
] | 1c62e9a5daf15748956f3f6ff6fcc4af60138f1182147bb4dd4350f4025dfdca |
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import BaggingClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.neural_network import MLPClassifie... | rupakc/Kaggle-Compendium | Accelerometer Biometric Competition/accelerate-baseline.py | Python | mit | 2,539 | [
"Gaussian"
] | 97b9bb7ae8799a83a70f9e440aad1c6913ffccac0511a8e2f50f6a88241a29a5 |
"""
Parser function parse() to parse the .wout output file of Wannier90.
"""
from __future__ import print_function
import inspect
import re
from collections import defaultdict
from . import show_output
# Match the lines describing the nearest-neighbour Shells
# Groups:
# 0: Shell Index
# 1: distance (ang^-1)
# 2: mu... | mostofi/wannier90 | test-suite/tools/parsers/parse_wout.py | Python | gpl-2.0 | 5,713 | [
"Wannier90"
] | 5f970aa0284cd27c73d8092d228c352e257e5e2437d747d693f3f328ca03bcec |
# Copyright (C) 2012,2013,2015
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms... | junghans/espressopp | src/FixedTripleList.py | Python | gpl-3.0 | 3,234 | [
"ESPResSo"
] | 2b51aa5d34a8b722a08a1c91d4a176bb089745aad931dc8303dec2e9bf81c184 |
"""
Defines the plugin to return the boolean given as param
"""
__RCSID__ = "$Id $"
from DIRAC.Resources.Catalog.ConditionPlugins.FCConditionBasePlugin import FCConditionBasePlugin
class DummyPlugin( FCConditionBasePlugin ):
"""
This plugin is to be used to simply return True or False
"""
def __init__(... | Andrew-McNab-UK/DIRAC | Resources/Catalog/ConditionPlugins/DummyPlugin.py | Python | gpl-3.0 | 577 | [
"DIRAC"
] | 8fdf581ca26c5fd90ed34a3a1d827fa80c3b54effe0c4c5f14e333b49509b20f |
#!/usr/bin/env python
#-*- encoding:utf-8 -*-
##ref https://secure.flickr.com/services/api/misc.urls.html
##ref https://secure.flickr.com/services/api/flickr.photos.search.html
##ref https://secure.flickr.com/services/api/explore/flickr.photos.search
import json
import os
import time
import requests
import urllib
fro... | gaofeihifly/fetch_image | fkr.py | Python | gpl-3.0 | 2,815 | [
"VisIt"
] | 480b41fb1aea697d290df7890207b8c076df784f39424d8dfcdcc6c2d01ffd77 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
# ------------------------------------------------------------------------------
# Copyright (C) 2006-2009 University of Dundee. All rights reserved.
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General P... | dominikl/openmicroscopy | components/tools/OmeroPy/src/omero/util/ROIDrawingUtils.py | Python | gpl-2.0 | 11,753 | [
"VisIt"
] | a422d06c6f04a0f8d7a70104443d861508d1cb12cfe449002a5efd04891bc74c |
"""
This module contains an interface to I/O using the python binding of
the OpenBabel library ( http://openbabel.org/ ), supporting over 90
different chemical file formats. In order to avoid a hard dependency
on yet another library, the idea is to use this module as a fallback
in case none of the builtin methods work.... | freephys/python_ase | ase/io/babel.py | Python | gpl-3.0 | 3,031 | [
"ASE",
"Pybel"
] | 08dbaf9b19b51d65c1e8a8996c2097e6545d23e9b2a2dc90730495d40216ea45 |
#
# Copyright (C) 2007, Mark Lee
#
#http://rl-glue-ext.googlecode.com/
#
# 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... | steckdenis/rlglue-py3 | rlglue/network/Network.py | Python | apache-2.0 | 9,981 | [
"Brian"
] | 40fae74c6f2e8bea1aaec063a769ebee5155c99db5465402baf1cc60a911bf9b |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Predict volumes of crystal structures.
"""
import os
import warnings
import numpy as np
from monty.serialization import loadfn
from pymatgen.analysis.bond_valence import BVAnalyzer
from pymatgen.analysis.structure_match... | vorwerkc/pymatgen | pymatgen/analysis/structure_prediction/volume_predictor.py | Python | mit | 9,808 | [
"CRYSTAL",
"pymatgen"
] | e889e3bc0e707292f69c4f73bd850c514c01c123a2f4846f5e16bd3ba00688e6 |
"""
# Copyright (C) 2007 Nathan Ramella (nar@remix.net)
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# T... | shouldmakemusic/yaas | LiveOSC/UDPClient.py | Python | gpl-2.0 | 5,672 | [
"VisIt"
] | bf9947e80ce51f8d411a712e0e91cc0bc7efe3f858e2617544e40eaff5db4513 |
# -*- coding: utf-8 -*-
import datetime
import traceback
from south.db import db
from south.v2 import DataMigration
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from django.db import transaction
import re
from catmaid.control.common import get_relation_to_i... | htem/CATMAID | django/applications/catmaid/migrations/0019_create_annotations_for_object_tree_entries.py | Python | agpl-3.0 | 56,229 | [
"NEURON"
] | 0672e49d0a3e51215c9edcb54c4f98c7e18c93ea2fdd168f8dba3b428b7a3d84 |
"""API for Home Connect bound to HASS OAuth."""
from asyncio import run_coroutine_threadsafe
import logging
import homeconnect
from homeconnect.api import HomeConnectError
from homeassistant import config_entries, core
from homeassistant.const import DEVICE_CLASS_TIMESTAMP, TIME_SECONDS, UNIT_PERCENTAGE
from homeass... | nkgilley/home-assistant | homeassistant/components/home_connect/api.py | Python | apache-2.0 | 14,340 | [
"ESPResSo"
] | 9c4c7255b9fe94e41bfdea0c8df13dd50711d821faa11e52ec6a0d20de8da77f |
import numpy as np
from scipy.fftpack import fft, ifft, fftshift
__all__ = ['cwt', 'ccwt', 'icwt', 'SDG', 'Morlet']
class MotherWavelet(object):
"""Class for MotherWavelets.
Contains methods related to mother wavelets. Also used to ensure that new
mother wavelet objects contain the minimum requirements ... | Unidata/pyCWT | cwt.py | Python | bsd-3-clause | 26,078 | [
"Gaussian"
] | 1f105813e4ddf5a1fd94e85738cc20c65fe39896b721006185791c0a2b491d6c |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2018 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
#... | amjames/psi4 | psi4/driver/p4util/text.py | Python | lgpl-3.0 | 6,983 | [
"Psi4"
] | f1baed4f83da0abffda0137331a8a0b4bcc523ace1d3502ef995b13da37d9bfd |
#!/usr/bin/env python
import yaml
import rospy
import roslib
from std_srvs.srv import Empty
from activity_exploration.srv import ChangeMethodSrv
from activity_exploration.srv import ChangeMethodSrvResponse
from activity_exploration.budget_control import BudgetControl
from strands_executive_msgs.msg import Task
from... | strands-project/strands_exploration | activity_exploration/src/activity_exploration/exploration.py | Python | mit | 7,914 | [
"VisIt"
] | 8f7125c713d05e9fa1653075a6b7294c30d646fe1e226f86a3c8d7d315ac22c6 |
#
# MuPIF: Multi-Physics Integration Framework
# Copyright (C) 2010-2015 Borek Patzak
#
# Czech Technical University, Faculty of Civil Engineering,
# Department of Structural Mechanics, 166 29 Prague, Czech Republic
#
# This library is free software; you can redistribute it and/or
# modi... | mupif/mupif | mupif/model.py | Python | lgpl-3.0 | 23,354 | [
"LAMMPS"
] | 8313e6b219a172b2fe8178da2aadcd50ca7734ca4ada9a20e1b8f9b8dc0bd483 |
#!/usr/bin/python
# Copyright 2014 Google Inc. 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 applic... | googlearchive/googlecrisismap | card_test.py | Python | apache-2.0 | 32,603 | [
"COLUMBUS"
] | 29964654844ec7cd16f9f6e5e5aa22527c7909f08379b4a1974fe0c96a39f2ae |
#!/usr/bin/env python3
'''Adds show_arrows command to pymol, which takes an xyz file'''
import sys
import os
from pymol import cmd, cgo, CmdException
from chempy import cpv
def draw_arrow(xyz1,xyz2, radius=0.5, gap=0.0, hlength=-1, hradius=-1,
color='blue red', name=''):
'''
Draw an arrow; borrows... | gnina/scripts | show_xyz_arrows.py | Python | bsd-3-clause | 2,688 | [
"ChemPy",
"PyMOL"
] | 7f89e8c8a6445468ddaf8e3a8505c5c3e4a6db0e973dda552d488d8dfd279d49 |
"""
Utilities for creating and working with Zinc Fields.
"""
from opencmiss.utils.zinc.general import ChangeManager
from opencmiss.zinc.element import Mesh
from opencmiss.zinc.field import Field, FieldFiniteElement, FieldGroup, \
FieldNodeGroup, FieldStoredMeshLocation
from opencmiss.zinc.fieldmodule import Fieldmo... | OpenCMISS-Bindings/opencmiss.utils | src/opencmiss/utils/zinc/field.py | Python | apache-2.0 | 31,320 | [
"Gaussian"
] | 5604c71f6112a6f6c67e19e511ec215d6b028ab8b35c3571d00109946dc3976c |
#!/usr/bin/env python
from __future__ import print_function
from rdkit import Chem
from rdkit.Chem import RWMol
from rdkit.Chem import AllChem
import mol_io as io
import topomod
import math
import random
# xyz,atom,charge,spin = react.GenReaction(FileName,pro1Name,pro2Name)
def GenReaction(EdName,Pro1Name,Pro2Name):... | jmargraf/agrippa | inputgen/react.py | Python | gpl-3.0 | 7,695 | [
"RDKit"
] | a02faa3dde50ea6d087d5091189b78783090cec2a6d6bb43cdf1cd1fc446eb27 |
""" Module that contains client access to the WMSAdministrator handler.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from DIRAC.Core.Base.Client import Client, createClient
@createClient('WorkloadManagement/WMSAdministrator')
class WMSAdministratorC... | yujikato/DIRAC | src/DIRAC/WorkloadManagementSystem/Client/WMSAdministratorClient.py | Python | gpl-3.0 | 820 | [
"DIRAC"
] | d2a5e849edbd6b2999563d7d77fd720c151aff75a60928ef30a18eb69868f597 |
from __future__ import unicode_literals
"""
This package implements various Nwchem Jobs and Error Handlers.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "ongsp@ucsd.edu"
__status__ = "Beta"
__date__ = "6/17/... | specter119/custodian | custodian/nwchem/__init__.py | Python | mit | 324 | [
"NWChem"
] | 3c9191a8f19337c35d42b9b4093d40e19d8f56e478da258c61cce6aeb6df659d |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Mathematical constants and functions extending the functionality
available from OpenCL directly.
@author: Sebastian M. Gaebel
@email: sebastian.gaebel@ligo.org
"""
# TODO: Other potentially useful stuff:
# * integration routine
# * interpolation in 1D, maybe more
#... | sgaebel/GAPS | gaps/auxiliary_sources.py | Python | mit | 7,372 | [
"Gaussian"
] | 1eada400fccfc1e5bc07fb39d152e9a9912c0e4ce12feec6175fbfea8c356943 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | benoitsteiner/tensorflow-xsmm | tensorflow/python/ops/distributions/distribution.py | Python | apache-2.0 | 43,119 | [
"Gaussian"
] | 9ef53f7040b8af43ef00424b99a7aa168c6862e2af21cce76b89138b590d813c |
#!/usr/bin/python
# -*- coding: utf8 -*-
import argparse
import os
import subprocess
import sys
parser = argparse.ArgumentParser(description='Animate Paraview data')
optional = parser._action_groups.pop()
required = parser.add_argument_group('required arguments')
required.add_argument('-l','--layout', help="Paraview... | flexi-framework/flexi | tools/animate/animate_paraview.py | Python | gpl-3.0 | 3,859 | [
"ParaView"
] | c5abe74dc03e2a4024921e18c1ca1fba8f228f5e74c5672e0c9d1fb82249b565 |
"""Command line options, ini-file and conftest.py processing."""
import argparse
import collections.abc
import contextlib
import copy
import enum
import inspect
import os
import re
import shlex
import sys
import types
import warnings
from functools import lru_cache
from pathlib import Path
from types import TracebackTy... | pexip/os-pytest | src/_pytest/config/__init__.py | Python | mit | 56,940 | [
"VisIt"
] | 472bd726a9cd6117cd6b3a80ba4a43bde5a21c05a96d78404b164c2a0f42314d |
#__docformat__ = "restructuredtext en"
# ******NOTICE***************
# optimize.py module by Travis E. Oliphant
#
# You may copy and use this module as you see fit with no
# guarantee implied provided you keep this notice in all copies.
# *****END NOTICE************
# A collection of optimization algorithms. Version ... | ortylp/scipy | scipy/optimize/optimize.py | Python | bsd-3-clause | 95,963 | [
"Gaussian"
] | de4c502de2e125f1f10fff81dd5bde93d9999d4c94951b3fc7749aa3ebdb7d77 |
# GromacsWrapper: test_example.py
# Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
# See the file COPYING for details.
import gromacs
import pytest
from numpy.testing import assert_equal
from ..datafiles import datafile
@pytest.fixture(
... | Becksteinlab/GromacsWrapper | tests/fileformats/test_ndx.py | Python | gpl-3.0 | 1,353 | [
"Gromacs"
] | 1c5a441ca9ced4d901d12bbbc0229fd6a93af6d1e51f8cf08ae417b4afbea810 |
########################################################################
# $HeadURL $
# File: RequestValidatorTests.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2012/09/25 13:49:20
########################################################################
""" :mod: RequestValidatorTests
=====================... | andresailer/DIRAC | RequestManagementSystem/private/test/RequestValidatorTests.py | Python | gpl-3.0 | 5,248 | [
"DIRAC"
] | 7b73496a224979b6838ce5b7e41b9471c6eeda5e8e9dfe281dedda05dc096afc |
#!/usr/bin/env python
##############################################################################
#
# This PPXF_POPULATION_GAS_EXAMPLE_SDSS routine shows how to study stellar
# population with the procedure PPXF, which implements the Penalized Pixel-Fitting
# (pPXF) method by Cappellari M., & Emsellem E., 2004, PASP... | cebarbosa/fossilgroups | ppxf/ppxf_population_gas_example_sdss.py | Python | gpl-3.0 | 12,643 | [
"Galaxy",
"Gaussian"
] | 285d08d22d5e6c32a6c49967bdf76c09be47f6c23af3ff390b2ad0f66742b815 |
#!/usr/bin/env python
import sys
import getopt
import matplotlib as mpl
mpl.use('Agg') # avoid assuming X backend if we run in cron job
import matplotlib.pyplot as plt
from PIL import Image
import datetime
import collections
from pathlib import Path
# conda install PIL
# conda install -c scitools cartopy
# conda inst... | psi4/psi4meta | download-analysis/installer/parse-psi-dl-ospy.py | Python | gpl-2.0 | 10,091 | [
"Psi4"
] | d14171a4ad99b793939fad4d22ca0e9a5ba8f74b9a969a06efcae53044a837bc |
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | Acehaidrey/incubator-airflow | airflow/providers/google/cloud/hooks/vertex_ai/custom_job.py | Python | apache-2.0 | 108,824 | [
"VisIt"
] | 020c904e4691ead95cbc391fa7463e0929d7d90a830528abbe6d107cc1799bdb |
# Bar Learning example
#
# authors: Julien Vitay, Helge Uelo Dinkelbach
from ANNarchy import *
setup(paradigm="cuda")
# Input neuron: r is set externally
InputNeuron = Neuron(parameters="r = 0.0")
# Leaky neuron
LeakyNeuron = Neuron(
parameters="""
tau = 10.0 : population
""",
equations="""
... | vitay/ANNarchy | examples/bar_learning/BarLearningGPU.py | Python | gpl-2.0 | 2,153 | [
"NEURON"
] | f5bc90a4a1e4acd4af7af4bbd3352092082accb4cdcba030e9935569a034ea56 |
import math as m
import warnings
import numpy as nu
from scipy import integrate
import galpy.util.bovy_plot as plot
import galpy.util.bovy_symplecticode as symplecticode
from galpy.util.bovy_conversion import physical_conversion
from galpy.orbit_src.OrbitTop import OrbitTop
from galpy.potential_src.planarPotential impo... | followthesheep/galpy | galpy/orbit_src/planarOrbit.py | Python | bsd-3-clause | 30,816 | [
"Galaxy"
] | 14cd7e0e7df49a2764ba2d77952d137c6450c2ca72570907eeb49180205c2295 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/web/movielist.py | Python | gpl-2.0 | 7,514 | [
"VisIt"
] | 2aadf6e9271638a50224e5377dd7e6b3b28646779a479ef6ef7f6b564a34ccce |
# coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | google-research/google-research | tunas/rematlib/layers.py | Python | apache-2.0 | 57,585 | [
"Gaussian"
] | b47cc05f246bf660dd8c21911c7afa09516312ffdcf53c6b6b55bb445fb682d9 |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Ocean Manager Tool
#
# Copyright (C) 2015 Bitergia
#
# 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... | sanacl/GrimoireELK | utils/ocean.py | Python | gpl-3.0 | 3,589 | [
"Elk"
] | 0e9768df70fa12868a5bbe2cec853e3ba28c0f960eed3b006c0596e3569df9b8 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | HaebinShin/tensorflow | tensorflow/contrib/distributions/python/ops/mvn.py | Python | apache-2.0 | 19,827 | [
"Gaussian"
] | 3d8d64ed39e0b3d891c13a0dd98865e37daf23ee51ad95dce71d3bcc97ea1e6a |
#! /usr/bin/python
#
# This is amber2lammps, a program written by Keir E. Novik to convert
# Amber files to Lammps files.
#
# Copyright 1999, 2000 Keir E. Novik; all rights reserved.
#
# Modified by Vikas Varshney, U Akron, 5 July 2005, as described in README
#
#======================================================... | browndeer/lammps-ocl | tools/amber2lmp/amber2lammps.py | Python | gpl-2.0 | 35,052 | [
"Amber",
"LAMMPS"
] | 0089a90d2e4f6eae3247f5681d652156d977f70e1eedd59130a9745d6a099059 |
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import time
import os
import numpy as np
import scipy
import scipy.misc
from skopt import gp_minimize
from skopt.space import Categorical
def expansion_number_to_string(expansion):
if expansion == 0:
... | AlbertoEsc/cuicuilco | hyperparameter_search_dd2.py | Python | apache-2.0 | 28,018 | [
"Gaussian"
] | 920a2072cd45dab429ba75117ff0e03e553822c25cb2ff50e167968127bacadf |
#!/usr/bin/env python
""" Test specific of JobParameters with and without the flag in for ES backend
flag in /Operations/[]/Services/JobMonitoring/useESForJobParametersFlag
"""
import os
import time
import DIRAC
DIRAC.initialize() # Initialize configuration
from DIRAC.WorkloadManagementSystem.Client.WMSClient i... | DIRACGrid/DIRAC | tests/Integration/WorkloadManagementSystem/Test_JobParameters_MySQLandES.py | Python | gpl-3.0 | 7,355 | [
"DIRAC"
] | c8940da49bf094e98ac5978a2db1748339f5f16676591531c4c3e1c889ecc3c9 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
**********************************************************
*
* SpectraLearnPredict2 - SKlearn Neural Networks
* Perform Machine Learning on Spectroscopy Data.
*
* Uses: Deep Neural Networks, TensorFlow, SVM, PCA, K-Means
*
* By: Nicola Ferralis <feranick@hotmail.com>
*... | feranick/SpectralMachine | Archive/SpectraLearnPredict2/SpectraLearnPredict2/slp/slp_nn.py | Python | gpl-3.0 | 5,809 | [
"NEURON"
] | a52e589496ed2be4ff99095d09d2238ac9b9b81c028657e6d0669f58c291ccca |
# Copyright 2020 Tensorforce Team. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | reinforceio/tensorforce | tensorforce/core/optimizers/optimizer.py | Python | apache-2.0 | 7,845 | [
"Gaussian"
] | 536a5bfd9947549b8c131285db530befbc5703595ffd028e9cd7f81ac6d16465 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/Exceptions.py | Python | gpl-3.0 | 2,468 | [
"ESPResSo"
] | f1468d1bd0206831cb9c1fad4cb948155c133ad329f116346e8648d97b54559d |
"""
utilities.py
"""
import os
import tarfile
from scipy.spatial import cKDTree
import numpy as np
from shutil import rmtree, copyfile
from ConfigParser import SafeConfigParser
from netCDF4 import Dataset
from logging import getLogger
from log import LOG_NAME
from share import TIMESTAMPFORM, RPOINTER, EARTHRADIUS, METE... | bartnijssen/RVIC | rvic/core/utilities.py | Python | gpl-3.0 | 14,411 | [
"NetCDF"
] | ff1bc0582d11bd83be71adfca2b74cd480d1f08415ce018096007560115c93f1 |
import logging
import os
import numpy as np
from netCDF4 import Dataset
import validation_utils
from data_decoders.bin_reader import BINFileReader
from data_decoders.sig_reader import SIGFileReader
from data_decoders.sigrid_decoder import DecodeSIGRIDCodes
LOG = logging.getLogger(__name__)
# logging.basicConfig(lev... | HelgeDMI/trollvalidation | trollvalidation/data_preparation.py | Python | apache-2.0 | 4,440 | [
"NetCDF"
] | b99c461b51b36d4d5c6fbdba83d92f1766de0ab7fb6e0900cc6dc6c3f0dc1fe6 |
# stageDefaults contains the default options which are applied to each stage (command).
# This section is required for every Rubra pipeline.
# These can be overridden by options defined for individual stages, below.
# Stage options which Rubra will recognise are:
# - distributed: a boolean determining whether the ta... | vlsci/variant_calling_pipeline | pipeline_stages_config.py | Python | mit | 6,757 | [
"BWA"
] | 6323a2967d888f93dee15493e6716c41719105567f02a2226d47954ab119293a |
#!/usr/bin/env python
""" A unittest script for the MicrobiomeAssayPrep module. """
import unittest
import json
from cutlass import MicrobiomeAssayPrep
from CutlassTestConfig import CutlassTestConfig
from CutlassTestUtil import CutlassTestUtil
# pylint: disable=W0703, C1801
class MicrobiomeAssayPrepTest(unittest.... | ihmpdcc/cutlass | tests/test_microb_assay_prep.py | Python | mit | 12,901 | [
"VisIt"
] | c629e88fc421e9be62a05895930fb1094590f4ab7fd7fb5cc3d59134b83f809b |
"""The experimentDB is a web-based application for the storage, organization and communication of experimental data with a focus on molecular biology and biochemical data. This application also stores data regarding reagents, including antibodies, constructs and other biomolecules as well as tracks the distribution of ... | davebridges/ExperimentDB | experimentdb/__init__.py | Python | bsd-3-clause | 2,496 | [
"Biopython"
] | 596eaa108c742c4858dc8afaad0606a6a55c536e56e117627ec3204616eb666b |
#!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | MJJoyce/climate | obs4MIPs/obs4MIPs_process.py | Python | apache-2.0 | 19,744 | [
"NetCDF"
] | 5217df7ceb5a742e5e0fbd9b1cf83ae3e005750e5502bf2b6191ce8f33df4c91 |
""" :mod: GFAL2_XROOTStorage
=================
.. module: python
:synopsis: XROOT module based on the GFAL2_StorageBase class.
"""
# from DIRAC
from DIRAC import gLogger
from DIRAC.Resources.Storage.GFAL2_StorageBase import GFAL2_StorageBase
class GFAL2_XROOTStorage( GFAL2_StorageBase ):
""" .. class:... | coberger/DIRAC | Resources/Storage/GFAL2_XROOTStorage.py | Python | gpl-3.0 | 1,523 | [
"DIRAC"
] | c7e41084cbfc9dfa6a625b5b6fe6a05a9a1149edcccb0698d5a0b69c4690eb5e |
# Copyright (c) 2011, Jimmy Cao All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following... | Agent-Isai/lykos | src/wolfgame.py | Python | bsd-2-clause | 397,683 | [
"VisIt",
"exciting"
] | 1473d8cfc2b948f92bdbe19e5a1e1ac6a7514dd194322501cb3e8f2ff02228f9 |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-wms-job-submit
# Author : Stuart Paterson
########################################################################
"""
Submit jobs to DIRAC WMS
"""
__RCSID__ = "$Id$"
import DIRAC
from DIRAC.C... | andresailer/DIRAC | Interfaces/scripts/dirac-wms-job-submit.py | Python | gpl-3.0 | 2,233 | [
"DIRAC"
] | d8aea18cf7b91b60ef1d0d82d3ba0740f1904f777e3632881e2d9262424bf215 |
""" Callback when a staging operation is finished """
__RCSID__ = "$Id$"
from DIRAC import S_OK
from DIRAC.RequestManagementSystem.private.OperationHandlerBase import OperationHandlerBase
from DIRAC.WorkloadManagementSystem.Client.JobStateUpdateClient import JobStateUpdateClient
class StagingCallback(OperationHand... | chaen/DIRAC | DataManagementSystem/Agent/RequestOperations/StagingCallback.py | Python | gpl-3.0 | 1,385 | [
"DIRAC"
] | f360920c81a58671d9e3577fe9e52b4b8e69151af6a24b3ee6caf61bbd7747af |
# (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... | wkeeling/ansible | lib/ansible/utils/color.py | Python | gpl-3.0 | 3,144 | [
"Brian"
] | 3ab137f3d27be3caed81fc37d9d2899ee16ee7c4e5b111f5464b7af71c99d5aa |
import os
import btor
from btor import BtoRGUIClasses as ui
from btor.BtoRTypes import *
import cgkit
import cgkit.rmshader
import cgkit.cgtypes
import cgkit.quadrics
from cgkit import ri as ri
from cgkit import ribexport as export
import Blender
import xml.dom.minidom
import new
import math
from sets import Set
import... | karstenda/aqsis | tools/integration/BtoR/BtoRAdapterClasses.py | Python | gpl-2.0 | 125,137 | [
"Gaussian"
] | 68916432a563ca41ae4330b7bd07164eb38d1e5a15d677ca2aaa070b910538a1 |
import vtk
from vtk.util import numpy_support as ns
import numpy as np
from six.moves import range
from .tractography import Tractography
from functools import reduce
def tractography_from_vtk_files(vtk_file_names):
tr = Tractography()
if isinstance(vtk_file_names, str):
vtk_file_names = [vtk_file... | demianw/tract_querier | tract_querier/tractography/vtkInterface.py | Python | bsd-3-clause | 16,188 | [
"VTK"
] | d9858e48230c6570d9f6cf1ec2636a3b0f58210a2b2704af3782902ef519b410 |
# -*- coding: utf-8 -*-
"""
Test helper functions and base classes.
"""
from .ga_helpers import GaccoTestMixin, SUPER_USER_INFO, GA_COURSE_SCORER_USER_INFO, GA_GLOBAL_COURSE_CREATOR_USER_INFO
from ..pages.lms.auto_auth import AutoAuthPage
from ..pages.lms.ga_instructor_dashboard import MembershipPageMemberListSection, ... | nttks/edx-platform | common/test/acceptance/tests/ga_role_helpers.py | Python | agpl-3.0 | 1,707 | [
"VisIt"
] | 986008b3beba4cc6c4e728d2d3dfd47f06df18ac04b3dfe727f44da6fef77d81 |
import argparse
import json
from collections import defaultdict
from multiprocessing.dummy import Pool
import requests
import logging
from ya_courier_helpers.util import chunks, get_duplicates, post_request, \
get_request, delete_request, get_mvrp_request, get_mvrp_solution, valid_date
FORMAT = '%(asctime)-15s %... | roschupkin/ya.courier.helpers | ya_courier_helpers/mvrp_solution_uploader.py | Python | apache-2.0 | 11,903 | [
"VisIt"
] | 454709c43e898aca453ffff2004b2b63f55a211bdb24bd5d48480d5e0cc44288 |
"""
pyNEAT
Copyright (C) 2007-2008 Brian Greer
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in ... | liquidkarma/pyneat | pyNEAT/Gene.py | Python | gpl-2.0 | 1,206 | [
"Brian"
] | cc6e4dbdd51c4e0b73cb04aac96afb70378737e6b24b2cef974db36d9447ded4 |
from brian import *
import time
if __name__=='__main__':
savelocation = '/home/achilleas/Documents/Uni/working_dir/simout.py/tmp/'
input_freqs = arange(300,400,10)
n_inputs = 50
numsims = len(input_freqs)
duration = 2000*ms
V_reset = 13.65*mV
V_th = 15*mV
V_rest = 0*mV
V2_rest = 0... | achilleas-k/brian-scripts | twp_comp_transfer.py | Python | apache-2.0 | 3,358 | [
"Brian"
] | 440580530cbf56b42d8cde3da5444e56c5d34edbd2d0f89c8e76fcdaf2e439aa |
#
# Copyright (C) 2010-2017 Samuel Abels
# The MIT License (MIT)
#
# 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,
# including without limitation the rights to use, copy,... | maximumG/exscript | Exscript/util/crypt.py | Python | mit | 22,207 | [
"Elk",
"MOE"
] | 1d7433287005d99d2e51bf901d37ad99eb5b6acc739dd03d7c2fe18aa58eeb5c |
# -*- coding: utf-8 -*-
#
# hl_api_types.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 2 of the License, o... | jakobj/nest-simulator | pynest/nest/lib/hl_api_types.py | Python | gpl-2.0 | 38,514 | [
"Gaussian"
] | 887d4df7e242592f3dd263ecbe01fdfef6b21c0bd79c6c52c72b110801638aa5 |
import caffe
import numpy as np
import argparse, pprint
import scipy.misc as scm
from os import path as osp
from easydict import EasyDict as edict
import time
import glog
import pdb
import pickle
import matplotlib.pyplot as plt
import copy
class GaussRenderLayer(caffe.Layer):
@classmethod
def parse_args(cls, argsStr... | pulkitag/caffe-python-layers | python_ief.py | Python | bsd-3-clause | 2,878 | [
"Gaussian"
] | eca6867ef45268215f653d15ed1d7256e9f82c8bdb3367912b19eaa9f682805b |
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2018, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
import numpy as np
import pandas as pd
from unittest import TestCase
from exatomic.base import resource
from exatomic.adf.output import Output
class TestADFOutput(TestCase):
""... | avmarchenko/exatomic | exatomic/adf/tests/test_output.py | Python | apache-2.0 | 1,700 | [
"ADF"
] | e4957e71e6e4a459ebbdef103f886ca0396e32197a260aa91e3fa90c68fdafb1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.