text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# 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 requi... | googleapis/python-videointelligence | scripts/fixup_videointelligence_v1p3beta1_keywords.py | Python | apache-2.0 | 6,122 | [
"VisIt"
] | 11fad1dbde292bed222e7a3c0c36ef4f145e94d4bf97f0762e29df0978bee1ce |
"""A setuptools based setup module adapted from PyPa's sample project.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
We reproduce their license terms here:
Copyright (c) 2016 The Python Packaging Authority (PyPA)
Permission is hereby granted, free of charge, to ... | alexjarosch/sia-fluxlim | setup.py | Python | gpl-3.0 | 8,649 | [
"VisIt"
] | fd05ef5f93dd2c2a42d307f0ce21c00a11b9086364589ecdbf89e96d56ef9446 |
"""
Test systems for validation
"""
import numpy as np
import math
from bhmm.output_models import GaussianOutputModel, DiscreteOutputModel
__author__ = "John D. Chodera, Frank Noe"
__copyright__ = "Copyright 2015, John D. Chodera and Frank Noe"
__credits__ = ["John D. Chodera", "Frank Noe"]
__license__ = "FreeBSD"
... | marscher/bhmm | bhmm/util/testsystems.py | Python | lgpl-3.0 | 11,386 | [
"Gaussian"
] | 0540a77533b0509c726888c13c80944c81d823f4f28881395d3e46bd00b25203 |
from numpy import *
import numpy
import numpy as np
from . import hamil2 as h
import scipy
def sloped_lorentzian(x,p):
'''
x0 is center of peak
A is amplitude of peak
w is Full Width Half Maximum
h is height of baselevel
slope is slope of lorentz
'''
x0,A,w,h, slope = p[0],p[1],p[2],p[... | DiCarloLab-Delft/PycQED_py3 | deprecated/pycqed/analysis/fit_toolbox/old/functions.py | Python | mit | 12,815 | [
"Gaussian"
] | c5bc2c87614577c5678c93203e36e9eeeeaf5d84d1c7311db666b0f996fcf2a2 |
import ConfigParser
import datetime
import Queue
import logging
import os
import pickle
import socket
import sys
import time
import thread
import traceback
import modules.logger as logger
import modules.protocol as protocol
import modules.scrapping as scrapping
sys.setrecursionlimit(10000)
buffSize =... | dnacreative/Zeek | src/client.py | Python | mit | 13,764 | [
"VisIt"
] | 39c35faea62863a9a54e4ec75de2f621d18f4c02648e76663e946ac2980832a7 |
from Bonus import *
from Key import *
class Game:
version = "0.71"
# map x, y
x = 0
y = 0
# labirynth_dim_x = 3 # for testing
# labirynth_dim_y = 3 # for testing
labirynth_dim_x = 7
labirynth_dim_y = 7
#stages
stage = 1
# rxvt
bot_movement_loop = 0
bot_movement_loop_max = 50
... | linukser/alienthreat | Game.py | Python | gpl-3.0 | 12,332 | [
"Galaxy",
"VisIt"
] | 2e60b214a7190d2ebca13b1eee0428e5ca25b079272cff30803a5a98cf78ca5d |
import sys
import maya.OpenMaya as OpenMaya
import maya.OpenMayaMPx as OpenMayaMPx
import maya.cmds as cmds
kPluginNodeName = "MitsubaDielectricShader"
kPluginNodeClassify = "shader/surface/"
kPluginNodeId = OpenMaya.MTypeId(0x87034)
class dielectric(OpenMayaMPx.MPxNode):
def __init__(self):
OpenMayaMPx.M... | hpd/MitsubaForMaya | plug-ins/mitsuba/materials/dielectric.py | Python | mit | 7,010 | [
"Amber"
] | 3fffd7a57381bbd29184bd2b5b7f4b3b1b62ff0f20706ebf0fabe19593ff6973 |
"""
A simple VTK widget for wxPython.
Find wxPython info at http://wxPython.org
Created by David Gobbi, December 2001
Based on vtkTkRenderWindget.py
Updated to new wx namespace and some cleaning by Andrea Gavana,
December 2006
"""
"""
Please see the example at the end of this file.
---------------... | timkrentz/SunTracker | IMU/VTK-6.2.0/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py | Python | mit | 24,173 | [
"VTK"
] | 1475c2c250bcb981adfee490d9449a24c8810880442f4c55acf12a18513a8fe2 |
#!/usr/bin/env python
"""
System administrator client.
Example:
$ dirac-admin-sysadmin-cli --host dirac.in2p3.fr
DIRAC Root Path = /afs/in2p3.fr/home/h/hamar/DIRAC-v5r12
dirac.in2p3.fr >
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = ... | yujikato/DIRAC | src/DIRAC/FrameworkSystem/scripts/dirac_admin_sysadmin_cli.py | Python | gpl-3.0 | 902 | [
"DIRAC"
] | ff8d72716d80dfab2d02078f1b09a3fe993ae890c9a6fd655a6be6ff50fb13d1 |
"""Modules for calculating thermochemical information from computational
outputs."""
import os
import sys
import numpy as np
from ase import units
def rotationalinertia(atoms):
"""Calculates the three principle moments of inertia for an ASE atoms
object. This uses the atomic masses from ASE, which (if not e... | askhl/ase | ase/thermochemistry.py | Python | gpl-2.0 | 20,339 | [
"ASE"
] | 87f496c70a16f1ac1aea69c521e052eac8f87817397431ddfb874088e655e706 |
from __future__ import print_function
import os
import sys
import subprocess
import errno
import argparse
import copy
from visitors import clang_visitor as cv
from visitors import data_visitor as dv
from templates.json import json_renderer
from templates.json.jsmn import jsmn_renderer
from templates.wire import wire_r... | svperbeast/plain_data_companion | src/pdc_main.py | Python | mit | 19,376 | [
"VisIt"
] | 6ba41f2c5f7e82e8afc4f5dfb7908308e10271e7d6bd8d27efc9973a63c1dd23 |
# $HeadURL: $
''' CSHelpers
Module containing functions interacting with the CS and useful for the RSS
modules.
'''
from DIRAC import S_OK, S_ERROR
from DIRAC.ConfigurationSystem.Client.Helpers.Resources import getGOCSiteName
from DIRAC.ResourceStatusSystem.Utilit... | rajanandakumar/DIRAC | ResourceStatusSystem/Utilities/CSHelpers.py | Python | gpl-3.0 | 4,107 | [
"DIRAC"
] | 5e0439f7829643f6e8306ba788b6d3971afe9183939c34cd53c9a19103bbf0c6 |
from fastnet import net, util
from fastnet.layer import ConvLayer, MaxPoolLayer, AvgPoolLayer, \
CrossMapResponseNormLayer, SoftmaxLayer, NeuronLayer, ResponseNormLayer, FCLayer, \
DataLayer, LocalUnsharedLayer
import fastnet
from fastnet.util import isfloat
import numpy as np
def parse_config_file(parsing_file):
... | rjpower/fastnet | fastnet/parser.py | Python | gpl-3.0 | 11,102 | [
"NEURON"
] | d378171c797927f9ab464cfcc2cbb3b9662c9af0a3e1f60fc503f6ffa583a968 |
from base.twilltestcase import TwillTestCase
from base.test_db_util import (
get_user,
get_private_role,
get_form,
get_library,
get_folder,
get_user_address,
get_latest_ldda_by_name,
get_latest_hda,
mark_obj_deleted,
refresh
)
import galaxy.model
AddressField_form = None
Checkbo... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/test/functional/test_library_templates.py | Python | gpl-3.0 | 41,770 | [
"Galaxy"
] | e0e27ce183312eb7fd4567058dfa8d1ef7ed8a4943462f91e96c87aa7ff5a557 |
#!/usr/bin/env python
##############################################################################################
#
#
# regrid_emissions_N96e.py
#
#
# Requirements:
# Iris 1.10, cf_units, numpy
#
#
# This Python script has been written by N.L. Abraham as part of the UKCA Tutorials:
# http://www.ukca.ac.uk/wiki... | acsis-project/emissions | emissions/python/periodic_1960/regrid_MeCHO_emissions_n96e_360d_1960.py | Python | gpl-3.0 | 7,188 | [
"NetCDF"
] | 0139be8051625b5a4cb59031feb3179a6b5fdebe495f179f98598946ec683db2 |
#!/usr/bin/python
# -*- coding: UTF-8 -*-
from __future__ import absolute_import
from __future__ import with_statement
from __future__ import division
from __future__ import nested_scopes
from __future__ import generators
from __future__ import unicode_literals
from __future__ import print_function
from neurotools.syst... | michaelerule/neurotools | stats/hmm.py | Python | gpl-3.0 | 39,438 | [
"Gaussian"
] | 7610cb41269e82ad1f9343998bab62133175aa3c34de923662ecc7862c2adaa4 |
from math import pi
from pickle import load, dump
import numpy as np
from ase.units import Bohr
from _gpaw import localize
from gpaw.utilities.tools import dagger, lowdin
class Wannier:
def __init__(self, calc=None, spin=0, nbands=None):
self.spin = spin
self.Z_nnc = None
if calc is not ... | qsnake/gpaw | gpaw/wannier.py | Python | gpl-3.0 | 6,936 | [
"ASE",
"GPAW"
] | 0f7c7c83198924147f406920729b211059bb4805fb83c8981f36174b25ba6290 |
import os, sys
import argparse
import types
import numpy as np
import pickle
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import tensorflow as tf
import data
import model
from util import *
from learning import LearnerCls, LearnerDACls,... | googleinterns/intern2020_cocal | uncertainty/plots/plot_prec_cov.py | Python | apache-2.0 | 17,279 | [
"Gaussian"
] | c7d97c2e2e6674f4db365be54204a9432294ecaa8a8754642b60d2d0b935dcf0 |
"""setuptools.command.bdist_egg
Build .egg distributions"""
from distutils.errors import DistutilsSetupError
from distutils.dir_util import remove_tree, mkpath
from distutils import log
from types import CodeType
import sys
import os
import marshal
import textwrap
from pkg_resources import get_build_platform, Distri... | ARMmbed/yotta_osx_installer | workspace/lib/python2.7/site-packages/setuptools/command/bdist_egg.py | Python | apache-2.0 | 17,184 | [
"VisIt"
] | dde6e59c70e6d6df07c21f0ae73d5069639593152fc50738d0a57f619547345b |
import sys
import os
sys.path.insert(0, "/usr/local/src/screed")
sys.path.insert(0, "/usr/local/src/bio-playground/fileindex")
sys.path.insert(0, "/usr/local/src/biopython-sqlite/")
import screed
import fileindex
#import bsddbfileindex
import time
import random
from Bio import SeqIO
def get_rand_headers(fq, N=100000... | shashidhar22/bio-playground | fileindex/examples/bench.py | Python | mit | 2,973 | [
"Biopython"
] | 97454517558a45b3c810ab9239276d63f9277a71fff56d6457e547fb824fc810 |
"""Monte Carlo Tree Search, as described in Silver et al 2015.
This is a "pure" implementation of the AlphaGo MCTS algorithm in that it is not specific to the
game of Go; everything in this file is implemented generically with respect to some state, actions,
policy function, and value function.
"""
import numpy as np
... | unkcpz/ababe | ababe/mlearn/mcts.py | Python | mit | 9,303 | [
"VisIt"
] | b7f30bb469d6d208383293965f192bce9f1a1b246a9a313808b263291e97b24f |
import vtk
import math
p0 = (0,0,0)
p1 = (1,1,1)
distSquared = vtk.vtkMath.Distance2BetweenPoints(p0,p1)
dist = math.sqrt(distSquared)
print("p0 = ", p0)
print("p1 = ", p1)
print("distance squared = ", distSquared)
print("distance = ", dist)
| kayarre/Tools | vtk/DistanceBetweenPoints.py | Python | bsd-2-clause | 249 | [
"VTK"
] | ae2154cacaa53e8c9bf22669c83ad2607ecdf4cc8da55348fcc15821b1d69c11 |
#! /usr/bin/env python3
# Copyright (c) 2020 Marcello Salvati (byt3bl33d3r@pm.me)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any la... | byt3bl33d3r/DeathStar | deathstar/deathstar.py | Python | gpl-3.0 | 16,131 | [
"Galaxy"
] | a45dcff5cf531debdcdfaac2ec28ca272eb69e03a35773348acab8e73cdc872c |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/plugins/songs/forms/editsongdialog.py | Python | gpl-2.0 | 22,746 | [
"Brian"
] | dfd478576c886f84662c37aaf3c381eeeb3b917b620c991559204efeca1e10d3 |
import warnings
warnings.warn("pymatgen.util.plotting_utils has been renamed "
"pymatgen.util.plotting. This stub will be removed in PMG 5.0.")
from pymatgen.util.plotting import * | matk86/pymatgen | pymatgen/util/plotting_utils.py | Python | mit | 196 | [
"pymatgen"
] | c805f74a606481d1c8274cb24072737fc8c3e2b06c5cfb9cbcd8557e10c50f67 |
# 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 the G... | kkreis/espressopp | src/analysis/NeighborFluctuation.py | Python | gpl-3.0 | 1,802 | [
"ESPResSo"
] | ce1fa3c0008a4b5fdf013f69bbb8d52214a88efbda0d38bf17d56ec492d5f534 |
#!/usr/bin/env python
import os
import sys
from datetime import datetime
try:
from psutil import virtual_memory
ram = virtual_memory().total/(1024**3)
except:
ram = 'unknown'
import multiprocessing
import numpy as np
import matplotlib
import scipy
import platform
import netCDF4
from mpl_toolkits import bas... | knutfrode/opendrift | tests/benchmarks/performance_test.py | Python | gpl-2.0 | 5,436 | [
"NetCDF"
] | 049c83d983d84970f1e4a3c998cc1bfae03ed1555ba3ac5d84a0c00426e4ec39 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012-2013 Michal Kalewski <mkalewski at cs.put.poznan.pl>
#
# This file is a part of the Simple Network Simulator (sim2net) project.
# USE, MODIFICATION, COPYING AND DISTRIBUTION OF THIS SOFTWARE IS SUBJECT TO
# THE TERMS AND CONDITIONS OF THE MIT LICENSE. YOU SHO... | mkalewski/sim2net | sim2net/failure/crash.py | Python | mit | 11,001 | [
"VisIt"
] | d4e3436111c6e564953d29225886c9b34764b47ee65ff450ebecad6f383bddfc |
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2006 Donald N. Allingham
# Copyright (C) 2008,2012 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | SNoiraud/gramps | gramps/plugins/textreport/simplebooktitle.py | Python | gpl-2.0 | 7,642 | [
"Brian"
] | 0f923e7627b0dc3c97d60973b821c9b5599163959eb8a6d107744b9ffca52f62 |
#-*- coding:utf-8 -*-
"""
PyHdust *interftools* module: interferometry tools
`colors` keep the *amdlib* standard.
A biblioteca python XDRLIB eh MUITO lenta... Usa muitas listas!!!
>>> import xdrlib
A biblioteca PYDAP estah em desenvolvimento... Eh complicada de usar
>>> from pydap.model import *
>>> from pydap.x... | dbednarski/pyhdust | pyhdust/interftools.py | Python | gpl-3.0 | 48,126 | [
"Amber",
"Gaussian"
] | 399eac97f278538ceb5f8d4cab7af2aa5fd9d98ecdb0c8bf6ec7de9af8bf6f60 |
"""
MUSE -- A Multi-algorithm-collaborative Universal Structure-prediction Environment
Copyright (C) 2010-2017 by Zhong-Li Liu
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 of t... | zhongliliu/muse | muse/Symmetry/SymmConstr.py | Python | gpl-2.0 | 5,785 | [
"CRYSTAL"
] | 4e6b4e68718885c1969678678d01d0c9ecec36f0e80ec3278de072b4fc480191 |
#
# 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 us... | aosagie/spark | python/pyspark/ml/clustering.py | Python | apache-2.0 | 49,816 | [
"Gaussian"
] | 0afa43172e09c463abe0bf16051e5af70b9d9a28659ec780c44227e8f85a1925 |
# Author: Ahmed Hani
# Package: https://github.com/AhmedHani/Neural-Networks-for-ML/tree/master/Implementations
#
# The package is implemented according to the lectures of Toronto University's Neural Networks for Machine Learning ..
# taught by Geoffrey Hinton.
#
# Course link: https://www.coursera.org/learn/neural-net... | AhmedHani/Neural-Networks-for-ML | Implementations/online_perceptron.py | Python | gpl-3.0 | 2,707 | [
"Gaussian"
] | 86c076fce74767fc4c55554e6ee22aa1f462312fdd10e02ab30f94031874994a |
# 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.
#
import sys
# Add path to Bio
sys.path.append('../..')
"""Parser for FSSP files, used in a database of protein fold classifications.
This is a modul... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/FSSP/__init__.py | Python | gpl-2.0 | 9,430 | [
"Biopython"
] | 6cc2ec41b910f4e4ae02b952e0d410f1e58dad9f058bdf69d5694f62a1ed077d |
from __future__ import print_function
from lammps import lammps
import numpy as np
class LAMMPSFix(object):
def __init__(self, ptr, group_name="all"):
self.lmp = lammps(ptr=ptr)
self.group_name = group_name
class LAMMPSFixMove(LAMMPSFix):
def __init__(self, ptr, group_name="all"):
supe... | akohlmey/lammps | examples/python/py_nve.py | Python | gpl-2.0 | 3,202 | [
"LAMMPS"
] | 4aee8cba5f2b754785b181fe3980437e4689c8cac64e5617fb71e3324290aac0 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import numpy as np
from fractions import Fraction
try:
from math import gcd
except ImportError:
from fractions import gcd
from itertools import groupby... | xhqu1981/pymatgen | pymatgen/transformations/advanced_transformations.py | Python | mit | 33,684 | [
"pymatgen"
] | a22cb33daed3c7639091202eecdd592834fdb49a6bfe848d8cb55f5884a94f25 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | vinodpanicker/scancode-toolkit | tests/scancode/test_cli.py | Python | apache-2.0 | 8,802 | [
"VisIt"
] | 0a32a172b5e9578f20b0cf49f2a0c0ee1539c2102a4748c1f0d80c4033f9b2d2 |
# $HeadURL$
""" Cache for the Plotting service plots
"""
__RCSID__ = "$Id$"
import os
import os.path
import time
import threading
from DIRAC import S_OK, S_ERROR, gLogger, rootPath
from DIRAC.Core.Utilities.DictCache import DictCache
from DIRAC.Core.Utilities import Time
from DIRAC.Core.Utilities.Graphs import grap... | avedaee/DIRAC | FrameworkSystem/Service/PlotCache.py | Python | gpl-3.0 | 2,424 | [
"DIRAC"
] | 2bede5a2f00f68346a1abb34c4d84c9d9a04323ef212cbc73605b26e6de7a82d |
##############################################
# #
# Mutational Interference Mapping Experiment #
# Python Module #
# #
##############################################
"""
-- RS
--Version including... | vkleist/MIME | processdata.py | Python | gpl-2.0 | 12,744 | [
"pysam"
] | f079e99e2d4d41624074667f38722b8140d6d2b6d32ccdece17b171a041a2463 |
from neurom import load_neuron
from neurom.apps.annotate import annotate, generate_annotation
from neurom.check import CheckResult
from neurom.check.neuron_checks import has_no_narrow_start
from nose import tools as nt
def test_generate_annotation():
checker_ok = CheckResult(True)
checker_not_ok = CheckResult... | juanchopanza/NeuroM | neurom/apps/tests/test_annotate.py | Python | bsd-3-clause | 1,669 | [
"NEURON"
] | 8fc32d7b4583f1de3600db98cca52e39a33be55834b0aacae2a072c033e87478 |
#!/usr/bin/env python
#
# This file is part of Buildbot. Buildbot 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 distributed in the hope that it will be useful, but WITHOUT
# A... | buildbot/buildbot | master/setup.py | Python | gpl-2.0 | 22,906 | [
"Brian"
] | a869b4d71a0f30e78a2ad6a8edad9ad11bca9c3fa172e7d34b7aa17b789a5c08 |
#! /usr/bin/env python3
#-----------------------------------------------------------------------------
# nominatim - [description]
#-----------------------------------------------------------------------------
#
# Indexing tool for the Nominatim database.
#
# Based on C version by Brian Quinion
#
# This program is free... | openstreetmap/Nominatim | nominatim/nominatim.py | Python | gpl-2.0 | 12,478 | [
"Brian"
] | 6d6da46dba69a5c6b36f16666a2c39a1e11bdc53aad98afb5e982db0d6631149 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# A script to test the threshold filter.
# Values above 2000 are set to 255.
# Values below 2000 are set to 0.
# Image pipeline
reader = vtk.vtkPNGReader()
reader.SetFileNa... | hlzz/dotfiles | graphics/VTK-7.0.0/Imaging/Core/Testing/Python/TestCityBlockDistance.py | Python | bsd-3-clause | 968 | [
"VTK"
] | 1ddcdec23cf7281ec4b44d6b9061d9eb3f06c848b039bb7756d551d12a61f131 |
import tempfile
import logging
log = logging.getLogger( __name__ )
from tool_shed.galaxy_install import install_manager
from tool_shed.galaxy_install.repository_dependencies import repository_dependency_manager
from tool_shed.galaxy_install.tools import tool_panel_manager
from tool_shed.util import hg_util
from tool... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/tool_shed/galaxy_install/repair_repository_manager.py | Python | gpl-3.0 | 16,011 | [
"Galaxy"
] | 288a43fe7320441051e69f074bd6214d120a670164df587ccb6547046fdd49d3 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2015, Brian Coca <bcoca@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 Foundation, either version 3 of the Licen... | Tatsh-ansible/ansible | lib/ansible/modules/notification/jabber.py | Python | gpl-3.0 | 4,809 | [
"Brian"
] | ec658e23623d9fb30838f015a8d3b78b40cd02e0c408b33615a1f4c2e37a1841 |
# Copyright 2012, 2013 The GalSim developers:
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
#
# GalSim 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... | mardom/GalSim | tests/deprecated/test_atmosphere.py | Python | gpl-3.0 | 7,501 | [
"Galaxy"
] | b76b26022d4de0734f4f60df0df42375a94a1238668a22bbfaa1d1f602aa4edd |
#!/usr/bin/env python
import os
import glob
import time
# import multiprocessing as mp
import numpy as np
import xarray as xr
import sys
pool = None
# This should be an input, this is the search string that is assumed to match
# the output files to be aggregated.
file_search = "icar_out_{ens}_*"
def load_file(fil... | NCAR/icar | helpers/aggregate_parallel_files.py | Python | mit | 6,119 | [
"NetCDF"
] | 181ff6c1ffe4f284bd7302bef3fddc77073332b3ab030092b40c004c13f0d80c |
#!/usr/bin/python
# coding=UTF-8
import subprocess, sys, argparse, urllib2, signal, httplib, os, math, multiprocessing, mimetypes
from time import time, sleep
from hashlib import md5
from fiddle import Fiddle
###########
# GLOBALS #
###########
running_processes = []
###########
# Classes #
###########
class HeadRe... | mhelwig/urlfiddle | urlfiddle/main.py | Python | mit | 12,812 | [
"VisIt"
] | 1a4bd1e1582cd47f5220d376d6d13a780ce63d98e7348a67a5ba02fccbd3a4fc |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
useFECutter = 1
res = 100
# Create the RenderWindow, Renderer and both Actors
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.SetMultiSamples(0)
renWin... | hlzz/dotfiles | graphics/VTK-7.0.0/Filters/Core/Testing/Python/TestFlyingEdgesPlaneCutter.py | Python | bsd-3-clause | 2,214 | [
"VTK"
] | 3eb5320db57833df3390d46e888be995208e9a31e20a765ab1a20c34a5f4c663 |
# 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 | test/unittest_base.py | Python | apache-2.0 | 8,350 | [
"Gaussian"
] | 1dc7792e79706c96d5d4bcb62beddeb611cf38ecc2d5d02f10b9c6933fe84107 |
#!/usr/bin/env python
# Copyright 2013 The Swarming Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0 that
# can be found in the LICENSE file.
"""Client tool to trigger tasks or retrieve results from a Swarming server."""
__version__ = '0.6.1'
import collection... | sgraham/nope | tools/swarming_client/swarming.py | Python | bsd-3-clause | 43,531 | [
"VisIt"
] | 03ec73cc0e43fd78f5f3e3d579f8299e780fb37199f6de57c1aec0f9f140168d |
# coding: utf-8
"""Unit tests for sending e-mails."""
from django.conf import settings
from django.conf.urls import include, url
from django.contrib.auth.models import User
from django.core import mail
from django.core.urlresolvers import clear_url_caches, reverse
from django.test.utils import override_settings
from d... | reviewboard/reviewboard | reviewboard/notifications/tests/test_email_sending.py | Python | mit | 87,193 | [
"VisIt"
] | b64204cf8b7bb3f0587097188a4ae5c40bcf5266cb511d65e32ee5a5f2e41da6 |
#!/usr/bin/python
# file: webdoc.py
# author: Andrea Vedaldien
# description: Implementation of webdoc.
# Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
# All rights reserved.
#
# This file is part of the VLFeat library and is made available under
# the terms of the BSD license (see the COPYING ... | silencej/pollenTubeProc | segPollen/vlfeat/docsrc/webdoc.py | Python | gpl-3.0 | 36,845 | [
"Brian"
] | 1bb28e3c989c332206743160df3955ec8d710b2fed659b9bdff23cc1740bb26a |
import re
import os
import DIRAC
from DIRAC import S_OK, S_ERROR
from DIRAC.FrameworkSystem.Client.Logger import gLogger
from DIRAC.Core.Utilities import List
from DIRAC.Core.Utilities.Extensions import extensionsByPriority
from DIRAC.Core.Utilities.ObjectLoader import loadObjects
class MessageFactory(object):
de... | DIRACGrid/DIRAC | src/DIRAC/Core/DISET/private/MessageFactory.py | Python | gpl-3.0 | 8,416 | [
"DIRAC"
] | 3cca51cf2ae322b8e522f71900397381307a406761e171857b679bdad3f71fe8 |
#!/usr/bin/env python
""" File Catalog Client Command Line Interface. """
from __future__ import print_function
__RCSID__ = "$Id$"
import commands
import os.path
import time
import sys
import getopt
from DIRAC.Core.Utilities.ReturnValues import returnSingleResult
from DIRAC.Core.Base.CLI import CLI
from DIRAC.Core.S... | fstagni/DIRAC | DataManagementSystem/Client/FileCatalogClientCLI.py | Python | gpl-3.0 | 68,869 | [
"DIRAC"
] | 3ab0ece6ce0817d3e9a82811231df071df252009a72ec043e70c35088fdb62c9 |
# $Id$
#
# Copyright (C) 2003-2006 greg Landrum and Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
"""unit testing code ... | jandom/rdkit | rdkit/Chem/Pharm2D/UnitTestLazyGenerator.py | Python | bsd-3-clause | 2,171 | [
"RDKit"
] | 782fbd40d0ea40464a7803f81b59efb914975e7714078ef63e80ec19ab2356db |
# Copyright 2000-2002 Andrew Dalke.
# Copyright 2002-2004 Brad Chapman.
# Copyright 2006-2010 by Peter Cock.
# 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.
"""Represent a Seque... | zjuchenyuan/BioWeb | Lib/Bio/SeqRecord.py | Python | mit | 48,092 | [
"BioPerl",
"Biopython"
] | 5573bff4043d9fca61c4901540e26efee2b241fab8f43a1702e647523d848e6f |
'''
* This file is part of Touhou SRPG.
* Copyright (c) Hans Lo
*
* Touhou SRPG is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tou... | JDShu/Touhou-SRPG | tools/glFreeType.py | Python | gpl-3.0 | 13,521 | [
"Brian"
] | 4f7d771e701278f15fcdacecfa7897db109f9c0c39cba40065fd45bb6d83dcaf |
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 4 10:35:23 2015
@author: Anton O Lindhal
"""
import numpy as np
import lmfit
from . progress import update_progress
_2pi = 2 * np.pi
_gauss_fwhm_factor = 2 * np.sqrt(2 * np.log(2))
def gaussian(x, amplitude, center, sigma):
return amplitude * np.exp(-(x-center)**... | aolindahl/epicea | epicea/_electron_calibration_helper.py | Python | gpl-2.0 | 16,761 | [
"Gaussian"
] | 73026458840d1366d2a25afdf1e224ca62b00381af7c0280e6ba04747c527aee |
from __future__ import annotations
def dfs(u):
global graph, reversedGraph, scc, component, visit, stack
if visit[u]:
return
visit[u] = True
for v in graph[u]:
dfs(v)
stack.append(u)
def dfs2(u):
global graph, reversedGraph, scc, component, visit, stack
if visit[u]:
... | TheAlgorithms/Python | graphs/scc_kosaraju.py | Python | mit | 1,284 | [
"VisIt"
] | 6180111f0ca5b65ea37a5179e3f8eedf853bd8919acdff5558a0f2a44adc76d4 |
# Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Implements ThreadPoolExecutor."""
from __future__ import with_statement
import atexit
import threading
import weakref
import sys
import base
try:
import queue
except ImportError:
import Queue as queue
_... | mj3-16/mjtest | mjtest/util/concurrent/futures/thread.py | Python | mit | 5,203 | [
"Brian"
] | f63d3aeb6b93683cda4f9582c640c2fa4382c90db53443a7ec15a1d938927bce |
import sys
sys.path.insert(0, "../../build/default/examples/callback")
import c
def visitor(value):
print value
c.visit(visitor)
| JBonsink/GSOC-2013 | tools/ns-allinone-3.14.1/pybindgen-0.15.0.809/examples/callback/c_test.py | Python | gpl-3.0 | 136 | [
"VisIt"
] | a93932ff33267075c3af434506ecb38caca69cd0c6f07f80d1348d5ddff8d96a |
# Authors: Artem Pulkin, pyscf authors
"""
This module implements the G0W0 approximation on top of `pyscf.tdscf.rhf_slow` and `pyscf.tdscf.proxy` TD
implementations. Unlike `gw.py`, all integrals are stored in memory. Several variants of GW are available:
* (this module) `pyscf.gw_slow`: the molecular implementation... | sunqm/pyscf | pyscf/gw/gw_slow.py | Python | apache-2.0 | 11,034 | [
"MOE",
"PySCF"
] | eb6ab80e87a83785a2de7434df87f8d0ce9002e429a5c800eabcf49195eb17cb |
#!/usr/bin/env python
from __future__ import print_function
import vtk
import numpy
def getArrayIndexFromName(data, name):
"""
Get the array index from its name
@param data either a vtkCellData or a vtkPointData object
@param name name
@return index >= 0 if name exists or -1 if it does not
"""... | gregvonkuster/icqsol | util/icqDataFetcher.py | Python | mit | 2,122 | [
"VTK"
] | aa48d15fd8981c5f6cebf564f4680bac365de782752897739992b36305bacd82 |
# Copyright 2018 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... | tensorflow/tensorflow | tensorflow/tools/compatibility/update/generate_v2_reorders_map.py | Python | apache-2.0 | 5,276 | [
"VisIt"
] | d25ad670ff3f23bd1699244ea58cd33aa05b24baa7d72e7247b0c498fd74cdd4 |
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
'''
Miscellaneous algorithms
Change directory to provide relative paths for doctests
>>> import os
>>> filepath = os.path.dirname(os.path.realpath(__file__))
>>> datadir = os.path.realpath(... | blakedewey/nipype | nipype/algorithms/misc.py | Python | bsd-3-clause | 51,269 | [
"Gaussian"
] | de8520c44e8a811ac306de97db07ef6b9d135c5ea8737f88d1bbd3756727a228 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# @Title : test_beadPos
# @Project : 3DCTv2
# @Description : pytest test
# @Author : Jan Arnold
# @Email : jan.arnold (at) coraxx.net
# @Copyright : Copyright (C) 2016 Jan Arnold
# @License : GPLv3 (see LICENSE file)
# @Credits :
# @Maintainer : Jan Ar... | coraxx/3DCT | tdct/test/test_beadPos.py | Python | gpl-3.0 | 1,985 | [
"Gaussian"
] | 8124736186515f0f2963081b5235b13811daeeb69c96a3bd9e2cd6e2aee75832 |
"""
PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net)
Copyright (C) 2004-2015 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved,
Brett G. Olivier (bgoli@users.sourceforge.net)
Triple-J Group for Molecular Cell Physiology
Stellenbosch University, South Africa.
Permiss... | asttra/pysces | pysces/PyscesUtils.py | Python | bsd-3-clause | 13,113 | [
"PySCeS"
] | 6626d668cb00416319387be689e5ba329fce808f760da80ea2b71259ec539b81 |
"""Contains the drivers and interface code for pinball machines which
use the Multimorphic R-ROC hardware controllers.
This code can be used with P-ROC driver boards, or with Stern SAM, Stern
Whitestar, Williams WPC, or Williams WPC95 driver boards.
Much of this code is from the P-ROC drivers section of the pyprocgam... | qcapen/mpf | mpf/platform/p_roc.py | Python | mit | 55,296 | [
"Brian"
] | 8c266730597a3369e3c6eb7f844f9288b4685f509901577322b432e4d203da75 |
import _ast
def dont_visit(self, node):
pass
def visit_children(self, node):
for child in self.children(node):
self.visit(child)
class Visitor(object):
def children(self, node):
for field in node._fields:
value = getattr(node, field)
if isinstance(value, (list, ... | ypkang/Dato-Core | src/unity/python/graphlab/meta/asttools/visitors/__init__.py | Python | agpl-3.0 | 2,580 | [
"VisIt"
] | 6f39235c067971707463d0071b8360b4741a4e995f29ccece770b043a9c1b676 |
# Copyright (c) 2015, Julian Straub <jstraub@csail.mit.edu>
# Licensed under the MIT license. See the license file LICENSE.
import mayavi.mlab as mlab
import numpy as np
from scipy.linalg import solve, inv, norm
from vpCluster.manifold.sphere import *
def plotGaussianTpS2(R):
Rr,Th = np.meshgrid(np.linspace(0,0.5... | jstraub/dpMM | python/figures/plotTpS.py | Python | mit | 4,422 | [
"Mayavi"
] | 0ebaae6eed361e03c6598dd1f1bfc86858452b38f8a9151fdda7a2126e30854a |
# coding: utf-8
from __future__ import division, unicode_literals
"""
Created on Nov 10, 2012
@author: shyue
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyuep@gmail.com"
__status__ = "Production"
__dat... | Dioptas/pymatgen | pymatgen/core/tests/test_composition.py | Python | mit | 15,757 | [
"pymatgen"
] | 83e7dba82a002ad8174b86922b24446340ddac4b9a9dd6fe219cfa90314d359f |
#!/usr/bin/env python
# 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 appli... | mkumatag/origin | vendor/k8s.io/kubernetes/hack/boilerplate/boilerplate.py | Python | apache-2.0 | 7,457 | [
"VisIt"
] | c26c856af4556eda46d1fff07963dd8f489736c4d307181b3a0e4c9c9c612af5 |
##
# Copyright 2009-2021 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | hpcugent/easybuild-easyblocks | easybuild/easyblocks/s/siesta.py | Python | gpl-2.0 | 20,396 | [
"NetCDF",
"SIESTA"
] | 0a36eee7fdd2eb7a72d6e59264fc77fa322efdf3f8f26e1d049645531c9a6288 |
# Copyright (C) 2014 Guilherme Balena Versiani, guibv42@gmail.com
#
# This setup script is part of python-sqlparse and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php.
import re
import sys
try:
from setuptools import setup, find_packages
packages = find_packages(exclude... | balena/sqlp | setup.py | Python | bsd-3-clause | 2,444 | [
"VisIt"
] | f790e47fbce159fb1fc0e2c9b4a7ed40f5633a432aeb46d0d50c795a861e569e |
#
# 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... | fweik/espresso | doc/tutorials/active_matter/exercises/rectification_simulation.py | Python | gpl-3.0 | 6,600 | [
"ESPResSo",
"ParaView",
"VTK"
] | 0bab65a23ab10a30e1e76ee86e8726de65ad97b82a639a112bed55314c1a03b8 |
################################################################################
# Copyright (C) 2011-2012 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
# Import some most commonly used nodes
from . import *
from .b... | jluttine/bayespy | bayespy/inference/vmp/nodes/__init__.py | Python | mit | 1,544 | [
"Gaussian"
] | e0a040829ee3cc0a69d2af5b863f47887a8b898cc659db6081b23e5a9eb81988 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | JamesGuthrie/libcloud | libcloud/compute/drivers/azure.py | Python | apache-2.0 | 107,890 | [
"VisIt"
] | a2fd496675a6395a94d3c1968a01d677cb198c47516320c018ad69cd37b66c05 |
import numpy as np
import catmap
import re
from copy import copy
from ase.atoms import string2symbols
import warnings
def get_composition(species_string):
"""
Convert string of species into a dictionary of species and the number of each species.
:param species_string: A string of the reaction species. Sho... | montoyjh/catmap | catmap/functions.py | Python | gpl-3.0 | 21,302 | [
"ASE",
"VisIt"
] | b81b9fb89ccdaa308bc6a203efdc36bd04a56a8f3e8f40efac209a9680b25707 |
"""Useful utility methods for GTK."""
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import gtk
from zeroinstall.support import tasks
class Template:
"""Wrapper for GtkBuilder widget tree that throws a sensible exception if the widget isn't found."""
def __ini... | timdiels/0install | zeroinstall/gtkui/gtkutils.py | Python | lgpl-2.1 | 4,003 | [
"VisIt"
] | 366a1837ce26ca4a575e7e9d58ae940ad9d4ca05c63c0e04de3809bb1abd770b |
from setuptools import setup, find_packages
from os import path
try:
from jupyterpip import cmdclass
except:
import pip
import importlib
pip.main(['install', 'jupyter-pip'])
cmdclass = importlib.import_module('jupyterpip').cmdclass
here = path.abspath(path.dirname(__file__))
# Get the long description from ... | exe0cdc/PyscesToolbox | setup.py | Python | bsd-3-clause | 1,704 | [
"PySCeS"
] | da31dbd2467ebb961a0835cb38b41f94bee0c2ea46e2ce415412a40d3e18bf28 |
"""
Test the about xblock
"""
import datetime
import ddt
import pytz
from ccx_keys.locator import CCXLocator
from django.conf import settings
from django.urls import reverse
from django.test.utils import override_settings
from milestones.tests.utils import MilestonesTestCaseMixin
from mock import patch
from nose.plugin... | Stanford-Online/edx-platform | lms/djangoapps/courseware/tests/test_about.py | Python | agpl-3.0 | 27,582 | [
"VisIt"
] | 079983572ec853eda689835882f95172f29d3b614848cb98e300e9f25dc6ff1f |
''' Create rst documentation of the examples directory.
This uses screenshots in the screenshots_dir
(currently doc/sources/images/examples) along with source code and files
in the examples/ directory to create rst files in the generation_dir
(doc/sources/examples) gallery.rst, index.rst, and gen__*.rst
'''
import ... | manthansharma/kivy | doc/gallery.py | Python | mit | 11,764 | [
"exciting"
] | de9c02d63ab3aa68aec9a4774a1daa2c1212b4d9e51286d769c29bb133404309 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2013, Jeroen Hoekx <jeroen.hoekx@dsquare.be>, Alexander Bulimov <lazywolf0@gmail.com>
# 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__ =... | roadmapper/ansible | lib/ansible/modules/system/lvol.py | Python | gpl-3.0 | 19,620 | [
"Firefly"
] | 90286a21b459f1ec66264a348bf52a8b75b6323567b3e7bbb81764e55777403a |
# This file is part of DmpBbo, a set of libraries and programs for the
# black-box optimization of dynamical movement primitives.
# Copyright (C) 2018 Freek Stulp
#
# DmpBbo 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... | stulp/dmpbbo | python/functionapproximators/tests/testBasisFunctions.py | Python | lgpl-2.1 | 1,720 | [
"Gaussian"
] | 65c1a0d3e4cfbe499100db017678598061cbafa5bf62cf79c62d536895dd8906 |
"""
Visit the Twitter developer page and create a new application:
https://dev.twitter.com/apps/new
This will get you a CONSUMER_KEY and CONSUMER_SECRET.
When users run your application they have to authenticate your app
with their Twitter account. A few HTTP calls to twitter are required
to do this. Please see ... | CNAMmaster/Tweeples | twitter/oauth.py | Python | bsd-2-clause | 4,437 | [
"VisIt",
"exciting"
] | 5e5ed91a1a9c30de36f7a8a344a0b509a3a0a7c50017ae6318e5c60262ecb772 |
"""
Acceptance tests for Library Content in LMS
"""
import textwrap
import ddt
from nose.plugins.attrib import attr
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from common.test.acceptance.pages.studio.library import StudioLibraryContainerXBlockWrapper, StudioLibraryContentEdito... | pepeportela/edx-platform | common/test/acceptance/tests/studio/test_studio_library_container.py | Python | agpl-3.0 | 13,899 | [
"VisIt"
] | 5bb7354443b3e6432feec9ec2898e7087e1ca8708abfad5e6c49b248e648dfe4 |
"""
Results for test_glm.py.
Hard-coded from R or Stata. Note that some of the remaining discrepancy vs.
Stata may be because Stata uses ML by default unless you specifically ask for
IRLS.
"""
import numpy as np
from statsmodels.compatnp.py3k import asbytes
import glm_test_resids
import os
from statsmodels.api import... | bavardage/statsmodels | statsmodels/genmod/tests/results/results_glm.py | Python | bsd-3-clause | 270,131 | [
"Gaussian"
] | ddcfbaa3a927f6c0ee782238386d7d9dc905aceeb3989966b7bb05eed347cabc |
#!/usr/bin/env python3
import itertools
from collections import defaultdict
import logging
from operator import mul
import networkx as nx
import numpy as np
import pandas as pd
from pgmpy.base import DirectedGraph
from pgmpy.factors import TabularCPD, JointProbabilityDistribution, Factor
from pgmpy.independencies im... | anaviltripathi/pgmpy | pgmpy/models/BayesianModel.py | Python | mit | 27,398 | [
"VisIt"
] | c1ee9c9137f2cd4c076523422ef369809ac0416331782de5d186de7f30de7e39 |
'''
Module to create a METADATA file in a vasp directory
The aim of this module is to record information about the user, jobs,
system, etc... this is useful for archiving purposes
this file will store a uuid that can be used as a key in a database.
The format of the metadata file is json. You can store the standard
p... | jkitchin/jasp | jasp/metadata.py | Python | gpl-2.0 | 4,085 | [
"ASE",
"VASP"
] | f9674756d86d583e223f4e9e489e49de9ec5007d4f4f46b09cc70bd6028dd146 |
# $HeadURL$
__RCSID__ = "$Id$"
from DIRAC import gLogger, S_OK
from DIRAC.Core.Base.AgentModule import AgentModule
from DIRAC.StorageManagementSystem.Client.StorageManagerClient import StorageManagerClient
from DIRAC.Resources.Catalog.FileCatalog import FileCata... | vmendez/DIRAC | StorageManagementSystem/Agent/RequestPreparationAgent.py | Python | gpl-3.0 | 10,144 | [
"DIRAC"
] | a274f8658b0c30e5be512b1a4f3318eb56d51bc3deeb6c6684f10132abdd85b6 |
"""Processes for testing purposes"""
from pywps.Process import WPSProcess
class NoInputsProcess(WPSProcess):
"""This process has no inputs and no outputs"""
def __init__(self):
WPSProcess.__init__(self, identifier = "noinputsprocess",title="No inputs")
class LiteralProcess(WPSProcess):
"""This pro... | jachym/PyWPS-SVN | tests/processes/tests.py | Python | gpl-2.0 | 11,107 | [
"NetCDF"
] | 9107997c3c009b651bd5a62e65a19c20bb648f6de8893648a47e750524d66729 |
from flashget.page import Page, log
from flashget.url import UrlMgr
from flashget.helper import textextract, textextractall
from lxml import html
import re
class EliteAnimes(Page):
eregex = r'^(http://)?(www\.)?eliteanimes\.com/.+$'
ename = 'EliteAnimes_s'
name = 'Eliteanimes'
url = 'http://www.elitea... | balrok/Flashget | flashget/pages/eliteanimes.py | Python | mit | 3,540 | [
"VisIt"
] | 56145e2306f0770206df304ef1941e390ffaf6fa232a45ad272e33f8e397c519 |
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2012-2022 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | gem/oq-engine | openquake/hazardlib/gsim/chiou_youngs_2014.py | Python | agpl-3.0 | 29,256 | [
"Brian"
] | 21ad62e6219b9836f33f8927be1a0b2009d6e22936ab0dea08fd32666b0e32b6 |
from __future__ import absolute_import, division, print_function
import numpy as np
from .. import Variable
from ..core import indexing
from ..core.pycompat import integer_types
from ..core.utils import Frozen, FrozenOrderedDict, is_dict_like
from .common import AbstractDataStore, BackendArray, robust_getitem
class... | jcmgray/xarray | xarray/backends/pydap_.py | Python | apache-2.0 | 3,031 | [
"NetCDF"
] | b8c67d5147821634257f5d714cc89c97356a35f259ac39abfb1a58da96aa904a |
# 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... | sandeepdsouza93/TensorFlow-15712 | tensorflow/contrib/learn/python/learn/estimators/__init__.py | Python | apache-2.0 | 11,551 | [
"Gaussian"
] | 9084726f418f7888447e686bc261fcd7ee33d90278ba1dd8cd63136bb3b6a03b |
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2016-2018 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser 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 S... | airodactyl/qutebrowser | qutebrowser/browser/webengine/webenginetab.py | Python | gpl-3.0 | 53,805 | [
"VisIt"
] | f777e349e9a7935ef7fa5d7380eeaa0fa5a5ea488803e064218f744468b8b79a |
import numpy as np
# Calcualte bond energy of He dimers for a series of bond
# distances using ADF
# type of atoms
atom1 = 'He'
atom2 = 'He'
# interatomic distance values
dmin = 2.2
dmax = 4.2
step = 0.2
# create a list with interatomic distances
distances = np.arange(dmin,dmax,step)
# calculation parameters (sin... | miroi/open-collection | theoretical_chemistry/software_runs/ams/runs/plams_tests/He2_dissoc_curve/He2DissociationCurve.py | Python | mit | 960 | [
"ADF"
] | 84b6ebb2a65cda84d8ee430783db433e4dfad46290c84177294b1197b567ecae |
#!/usr/bin/env python3
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Unit tests for grd_reader package'''
from __future__ import print_function
import os
import sys
if __name__ == '__main__':
... | nwjs/chromium.src | tools/grit/grit/grd_reader_unittest.py | Python | bsd-3-clause | 12,543 | [
"xTB"
] | 689210132eb5234f8c750090babed1ded2e88815a7360a301e35e190a657072f |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/topology/base.py | Python | gpl-2.0 | 3,954 | [
"MDAnalysis"
] | b7f658986d135fc892ff776c2c67c168b480f2eeea5079301f8cf5f29a1910b7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.