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 python
###############################################################################
#
# sam.py - simple parsing of samfiles - much faster than pysam
#
###############################################################################
# ... | NIASC/VirusMeta | SAM_BAM/sam.py | Python | gpl-3.0 | 10,145 | [
"pysam"
] | d4a38d6fbc9e3798ca16cfa51eecd4722c3799ef7c76459e7c4f20965de9547d |
import pytest
import pathlib
import numpy as np
from util import full
from util.full import Matrix
from loprop.core import LoPropTransformer, penalty_function, AU2ANG, pairs
from loprop.dalton import MolFragDalton
from loprop.veloxchem import MolFragVeloxChem
from .common import LoPropTestCase
from . import h2o_data... | vahtras/loprop | tests/test_h2o.py | Python | gpl-3.0 | 25,199 | [
"Dalton"
] | 3efa638e4e21b7f9cb7ba586e8c91cac376cf2b80a134de55f2c7ab2e4bb1cb2 |
#!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | sunqm/pyscf | pyscf/grad/test/test_roks.py | Python | apache-2.0 | 1,844 | [
"PySCF"
] | 744ee8b3df85463cb9206e32cbae919c4b15660d809d0cc08087f940bb6e35e4 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from time import time
import os.path
from math import exp, log
import sys
import numpy as np
from scipy.special import gammaln
from scipy.linal... | rth/PyAbel | abel/basex.py | Python | mit | 15,591 | [
"Gaussian"
] | dfd2c01da45ba449ec390bac644a5f84caf98fe1ebd116593df8b0773f8fcb96 |
from gpaw.transport.selfenergy import LeadSelfEnergy
from gpaw.transport.tools import get_matrix_index, aa1d, aa2d, sum_by_unit, \
dot, fermidistribution, eig_states_norm, \
find, get_atom_indices, dagger, \
write, gather_nd... | robwarm/gpaw-symm | gpaw/transport/analysor.py | Python | gpl-3.0 | 56,517 | [
"ASE",
"GPAW"
] | 9713e23bba2accc8919b094614c4b3728442ed53a2ab148d403d4db206b780a7 |
## INFO ########################################################################
## ##
## COUBLET ##
## ======= ... | petervaro/coublet | views/vars.py | Python | mit | 7,544 | [
"VisIt"
] | 7e0493f86e9c00f176353a9235ce2f6e7f409333ad54d32b18b3ca58068c68a3 |
from __future__ import annotations
import logging
import os
# other odds and ends
from xia2.DriverExceptions.NotAvailableError import NotAvailableError
from xia2.Handlers.Phil import PhilIndex
# selection stuff
from xia2.Handlers.PipelineSelection import get_preferences
# refiner implementations
from xia2.Modules.R... | xia2/xia2 | src/xia2/Modules/Refiner/RefinerFactory.py | Python | bsd-3-clause | 2,601 | [
"CRYSTAL"
] | 48f6c429d042155ce4ddf8d9f5b7933d03f8b0f84f180c0971cc6d52f2908271 |
#!/usr/bin/env python
# $Id: Compiler.py,v 1.1 2006-09-06 09:50:08 skyostil Exp $
"""Compiler classes for Cheetah:
ModuleCompiler aka 'Compiler'
ClassCompiler
MethodCompiler
If you are trying to grok this code start with ModuleCompiler.__init__,
ModuleCompiler.compile, and ModuleCompiler.__getattr__.
Meta-Data
======... | skyostil/tracy | src/generator/Cheetah/Compiler.py | Python | mit | 78,231 | [
"VisIt"
] | eb1a79806c360aeb949d805e50b363d4af6de34f4cc1df4a9eca6d65d32a604b |
from falcor import *
def render_graph_GaussianBlur():
loadRenderPassLibrary("DepthPass.dll")
loadRenderPassLibrary("ForwardLightingPass.dll")
loadRenderPassLibrary("Utils.dll")
testGaussianBlur = RenderGraph("Gaussian Blur")
DepthPass = createPass("DepthPass")
testGaussianBlur.addPass(DepthPass... | NVIDIAGameWorks/Falcor | Tests/image_tests/renderpasses/graphs/GaussianBlur.py | Python | bsd-3-clause | 1,133 | [
"Gaussian"
] | f95339621f1caa283f834002a1730602b854560b302fed04c11318b982356b6d |
"""
General helper functions that don't fit neatly under any given category.
They provide some useful string and conversion methods that might
be of use when designing your own game.
"""
import os
import sys
import imp
import types
import math
import re
import textwrap
import random
import traceback
from importlib i... | ypwalter/evennia | evennia/utils/utils.py | Python | bsd-3-clause | 41,890 | [
"VisIt"
] | d2196f8fd8eb0abd4e63ffb19a76781466848846a89ff681e2b0ad7cea35c4ab |
from brian import *
from brian.library.IF import quadratic_IF
import Graphics as artist
n = 2
taum = 20*ms
taue = 5*ms
taui = 10*ms
gmax=1.
Ee = 60.*mV
Ei = -20.*mV
Vt = 10.*mV
Vr = 0.*mV
refractory = 5*ms
tau_pre = 20*ms
tau_post = 20*ms
dA_pre = 0.01
dA_post = -0.01
eqs = Equations('''
dV/dt = (Vr-V + ge*(Ee... | mac389/deep-brain-stimulation | src/qif_machado.py | Python | apache-2.0 | 1,221 | [
"Brian"
] | ef07ebc33353ada7fe5861c7803f52f01ef2ebfbbb8f15e1e22d0c319d3e1b51 |
""" JobCommand
The JobCommand class is a command class to know about present jobs efficiency
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = '$Id$'
from DIRAC import S_OK, S_ERROR
from DIRAC.ConfigurationSystem.Client.Helpers.Resources i... | yujikato/DIRAC | src/DIRAC/ResourceStatusSystem/Command/JobCommand.py | Python | gpl-3.0 | 6,040 | [
"DIRAC"
] | 8f8d105a8ec54be7bcca794da30e7d1cad15ee4695e3b49247395d362523dcd8 |
import numpy as np
import pandas as pd
# from matplotlib.pyplot import plot,show,draw
import scipy.io
from functions import *
from pylab import *
from sklearn.decomposition import PCA
import _pickle as cPickle
import matplotlib.cm as cm
import os
import neuroseries as nts
###########################################... | gviejo/ThalamusPhysio | python/pyfigures/main_article_fig_5_mouse17.py | Python | gpl-3.0 | 18,758 | [
"NEURON"
] | f60d9031f21babf771f67c9ee3b8eeac1f33756efa1a3106f4685122691c086d |
"""
Module to set up run time parameters for Clawpack.
The values set in the function setrun are then written out to data files
that will be read in by the Fortran code.
"""
from __future__ import absolute_import
import os
import numpy as np
#------------------------------
def setrun(claw_pkg='amrclaw'):
#---------... | ForestClaw/forestclaw | applications/paper/transport_torus/setrun.py | Python | bsd-2-clause | 9,998 | [
"NetCDF"
] | d82d92d85c0e13286a500a194e13e0dcb9928d77b2a63ffe3ba91fa03bc7aa92 |
from aiida.orm import Code, DataFactory, WorkflowFactory
from aiida.orm.workflow import Workflow
#from aiida.workflows.wf_phonon import WorkflowPhonon
from aiida.orm import load_node, load_workflow
from aiida.orm.calculation.inline import make_inline
WorkflowPhonon = WorkflowFactory('wf_phonon')
StructureData = DataF... | abelcarreras/aiida_extensions | workflows/wf_quasiparticle.py | Python | mit | 6,529 | [
"CRYSTAL",
"LAMMPS",
"phonopy"
] | d4599dce5329edb46b762898944f70a8db50c551b5339596f2fe29d7e11a25ef |
import numpy as np
from ase.optimize import polyfit, LBFGS, LBFGSLineSearch
from ase.lattice.surface import fcc100, fcc110, fcc111, hcp0001
def SurfaceEnergy(images, natoms, calc, fmax=0.01, debug=False):
"""Calculate the surface energy from a list of slab images.
Parameters
----------
images: List o... | auag92/n2dm | Asap-3.8.4/Python/asap3/Tools/SurfaceEnergies.py | Python | mit | 4,896 | [
"ASE"
] | 5336f033f62c295c4c71e981bfff812d44c6c647215acaf3da8252067769e461 |
#!/usr/bin/python
#Audio Tools, a module and set of tools for manipulating audio data
#Copyright (C) 2007-2012 Brian Langenberger
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2... | R-a-dio/python-audio-tools | test/test_metadata.py | Python | gpl-2.0 | 312,136 | [
"Brian"
] | c50cfbac1915fd97221e630feb827ce2c0f3b8fed0c11e4282c33d46bf62be62 |
# encoding: utf-8
"""
@author: monitor1379
@contact: yy4f5da2@hotmail.com
@site: www.monitor1379.com
@version: 1.0
@license: GNU General Public License(Version 3)
@file: e2_LinearKernelFunctionModel.py
@time: 2016/12/19 9:53
基于核函数的核模型。
"""
from __future__ import print_function
import matplotlib.pyplot as plt
impor... | monitor1379/sammale | examples/e2_LinearKernelFunctionModel_for_regression.py | Python | gpl-3.0 | 2,590 | [
"Gaussian"
] | 0cdedcbee2db625896d850084c3ad97002c470a7b7d348073a9da4eca60e343c |
"""
Elite code -- no meaningful use/pure vanity
(c) Copyright 2005 Philip Jenvey
[See end of file]
"""
import random
from Hellanzb.Util import cmHella
__id__ = '$Id: Elite.py 665 2006-02-16 23:27:52Z pjenvey $'
class Codez:
allCodez = {}
aolSays = []
def __init__(self, name, codez):
self.co... | myusuf3/hellanzb | Hellanzb/Elite.py | Python | bsd-3-clause | 22,018 | [
"MOE"
] | 70e6250cea318feb5568b2ea3a5cedc1130e1852fae5ef3b840149d2c48efb04 |
# Copyright: (c) 2013, James Cammarata <jcammarata@ansible.com>
# Copyright: (c) 2018-2021, Ansible Project
# 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
import json
import os.path
im... | dmsimard/ansible | lib/ansible/cli/galaxy.py | Python | gpl-3.0 | 80,235 | [
"Galaxy"
] | 9bb306e1e72b06b66f77e11d1b2c43bef67b5c0965e88d07a86638c923bee524 |
""" Core classes and functions for the Iterative Importance Sampling after Annan and Hargreaves
References
----------
Annan, J. D., & Hargreaves, J. C. (2010). Efficient identification of
ocean thermodynamics in a physical/biogeochemical ocean model with an iterative
Importance Sampling method. Ocean Modelling, 32(3... | perrette/iis | iis/core.py | Python | mit | 29,549 | [
"Gaussian"
] | 6d16158096d3e3009311b9783287beff3506e1ac48c5d7d56317bec72c39454e |
'''
'''
import logging
from rnapipe.samples import Sample, TechnicalReplicate
from rnapipe.utils import read_csv, check_paired_files
from rnapipe.constants import *
import re
from glob import glob
from collections import defaultdict
class Experiment(object):
'''
'''
def __init__(self, state):
'''... | jessicachung/rnapipe | rnapipe/experiment.py | Python | bsd-3-clause | 9,965 | [
"HTSeq"
] | f6be46f05c1fedec15b60f916d21eb2e84e353ee52e4e446b3f6a85ad030fffa |
#!/usr/bin/env python
"""
This file contains Python code illustrating the creation and manipulation of
vtkTable objects.
"""
from __future__ import print_function
from vtk import *
#------------------------------------------------------------------------------
# Some Helper Functions
#--------------------------------... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Examples/Infovis/Python/tables_adv.py | Python | gpl-3.0 | 4,433 | [
"VTK"
] | 6dba085719e15bf857c97243b150edc6b439c4b90f2eb9042bb62c4cdda6bbf1 |
from __future__ import division, print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import sys
from os import path, devnull
from numpy.ma import log10
from numpy import array, errstate, nanmin, nanmax, nonzero, float64,\
bool_, string_, ones
from pysces.PyscesModel impo... | PySCeS/PyscesToolbox | psctb/utils/misc/_misc.py | Python | bsd-3-clause | 35,339 | [
"PySCeS"
] | 179c44c0130adf135ef5b3534470b6e570343e3da1d651a6d492891b1817bf06 |
#! /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-datastream | scripts/fixup_datastream_v1_keywords.py | Python | apache-2.0 | 7,826 | [
"VisIt"
] | 241be804d2d35e0ebccd63c1426e2ae13f945a28071896736621fb700354b694 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
from PyQt5 ... | harterj/moose | python/peacock/PostprocessorViewer/PostprocessorPluginManager.py | Python | lgpl-2.1 | 2,775 | [
"MOOSE"
] | 6b74927edf7fd7fdf7e95b080858c3cd78e0968d1aefcde49bbca242c4abb626 |
"""K-means clustering"""
# Authors: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Thomas Rueckstiess <ruecksti@in.tum.de>
# James Bergstra <james.bergstra@umontreal.ca>
# Jan Schlueter <scikit-learn@jan-schlueter.de>
# Nelle Varoquaux
# Peter Prettenhofer <peter.prettenh... | sgenoud/scikit-learn | sklearn/cluster/k_means_.py | Python | bsd-3-clause | 45,433 | [
"Gaussian"
] | dcff5fab55db52199bb876acdd806d3a2d015d4caa01f8e143727b14237755e9 |
#!/usr/bin/python
import sys
from ctypes import *
from functions import *
from math import sqrt
import numpy as np
import multiprocessing
import pyfits
import signal
# Load the library for the CFitsio routines
overseer = CDLL("/home/steven/Projects/galaxy_icd/libraries/liboverseer.so.0")
def main(sample):
naxes ... | boada/ICD | parallel_main_gs_IH.py | Python | mit | 5,448 | [
"Galaxy"
] | a8ce8c12b826fbacce71d11fcba429242a45464a19f9845a4087a246501e1d80 |
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
ImageStencil()
| jeromevelut/Peavip | Testing/ImageStencil.py | Python | gpl-3.0 | 125 | [
"ParaView"
] | 9ec76790526e944f7dacafc0c4e64ea90c2ed536631f7752aac759fe02226b52 |
# -*- coding: utf-8 -*-
# YAFF is yet another force-field code.
# Copyright (C) 2011 Toon Verstraelen <Toon.Verstraelen@UGent.be>,
# Louis Vanduyfhuys <Louis.Vanduyfhuys@UGent.be>, Center for Molecular Modeling
# (CMM), Ghent University, Ghent, Belgium; all rights reserved unless otherwise
# stated.
#
# This file is pa... | molmod/yaff | yaff/analysis/biased_sampling.py | Python | gpl-3.0 | 4,886 | [
"Gaussian"
] | 9f879d819f058d7c516427fb8121f1b6971996194bbe9f7f3b5257047ae0e8da |
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | wscullin/spack | var/spack/repos/builtin/packages/r-edger/package.py | Python | lgpl-2.1 | 2,109 | [
"Bioconductor"
] | 178ec53f8625657b16b64d66701e5cae97e2c6251175f4f73039ab0f3ff6758a |
import re
from enum import Enum
from os import sep
from os.path import (
basename,
dirname,
exists,
join,
)
from galaxy.util.bunch import Bunch
from ..util import PathHelper
COMMAND_VERSION_FILENAME = "COMMAND_VERSION"
DEFAULT_DYNAMIC_COLLECTION_PATTERN = [
"|".join(
[
r"prim... | galaxyproject/pulsar | pulsar/client/staging/__init__.py | Python | apache-2.0 | 11,645 | [
"Galaxy"
] | 688bc11e1ac779fa00416d9336c8cc8ac13292ac1e275189d5bc93f6ea1099a1 |
"""
Module implementing connectivity finding.
"""
import logging
import numpy as np
from pymatgen.analysis.chemenv.connectivity.structure_connectivity import (
StructureConnectivity,
)
__author__ = "David Waroquiers"
__copyright__ = "Copyright 2012, The Materials Project"
__credits__ = "Geoffroy Hautier"
__vers... | richardtran415/pymatgen | pymatgen/analysis/chemenv/connectivity/connectivity_finder.py | Python | mit | 3,330 | [
"pymatgen"
] | 976f011fd6d1f3d0e9a5fe3d2a6e82bc5c07ee9fa2c85d2ba1c9590ded86acf5 |
from brian2 import *
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(font_scale=2.0)
# Neuron Parameters
g_l = 0.05 * msiemens / cm2
cm = 1.0 * ufarad / cm2 # Specific membrane capacitance
E_l = -60 * mV # Resting potential
V_t = -50 * mV # Threshold
tau_w = 600 * ms # Adaptation ... | h-mayorquin/camp_india_2016 | project3_sustained_activity/dynamical_study.py | Python | mit | 2,389 | [
"NEURON"
] | d8385f9ce425975e435bef90f5b558a6943f7d81365206e540a630ef2531711b |
#!/usr/bin/python
# Modified by Weihua Zheng, Peter Wolynes Group Apr., 2011
# Use BioPython to calculate RMSD from the ref. structure.
# Only C-alpha atoms are used.
# ----------------------------------------------------------------------
# Copyright (2010) Aram Davtyan and Garegin Papoian
# Papoian's Group, Univer... | luwei0917/awsemmd_script | script/CalcRMSD.py | Python | mit | 5,103 | [
"Biopython"
] | ca1a6f9459c42793a5c196ff34a31b9294aaba4dc3af6a5a60adb0302652120e |
import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dimension
of D, a hidden dimension of H, and perform classific... | Alexoner/mooc | cs231n/2016/assignment2/cs231n/classifiers/fc_net.py | Python | apache-2.0 | 15,982 | [
"Gaussian"
] | 0564d6378e9abb0c28375556e1c789ad4956e47aa025a1a9ca1edee369de5794 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | mlperf/training_results_v0.7 | NVIDIA/benchmarks/resnet/implementations/mxnet/train_imagenet.py | Python | apache-2.0 | 8,114 | [
"Gaussian"
] | 48c2a3adf43912efb03aa9830cb5a50608ea017c86518291719169cc480bb896 |
from bbcode import *
import re
class Table(MultiArgumentTagNode):
"""
There are two ways of defining tables.
[b]Simple table[/b]
Usage:
[code lang=bbdocs linenos=0][table rowsep=\\n colsep=| autohead=1 border=0 cellpadding=0 cellspacing=0 frame=void rules=none colspanchar=@ simple=0... | SonicFrog/jdrpoly | bbcode/bbtags/table.py | Python | gpl-2.0 | 12,526 | [
"VisIt"
] | 931086c8c785bf4e08a9914e8af73f31b713f97b2bffd0a3182a9fdaedee32d6 |
"""
This test is designed to check protocol/server performances
Configuration and how to run it are explained in the documentation
"""
from DIRAC.Core.Tornado.Client.ClientSelector import RPCClientSelector
from time import time
from random import randint
import sys
import os
class Transaction(object):
def __ini... | yujikato/DIRAC | tests/Integration/TornadoServices/perf-test-ping/test_scripts/v_perf.py | Python | gpl-3.0 | 648 | [
"DIRAC"
] | 54712d97c7f638f85847545d56da33f0cf18d4fd6f4be560731d0cf7a2b144bf |
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
####################################################################
# fixXreacs.py
# The program is meant to take a model and reconfigure any cross-compartment
# reactions so that they are split into portions on either side coupl... | BhallaLab/moose-core | python/moose/fixXreacs.py | Python | gpl-3.0 | 6,995 | [
"MOOSE"
] | c360b9955e7bcffdabd30ef5b7d80a5ed801df39984595814278ce2a7cd84781 |
#!/usr/bin/env python
__requires__ = ['pysam>=0.8.1']
import pysam
import sys
import os
from optparse import OptionParser
import myVCF
import radiaUtil
import logging
from itertools import izip
import collections
import math
'''
' RNA and DNA Integrated Analysis (RADIA):
' Identifies RNA and DNA variants in NG... | aradenbaugh/radia | scripts/filterByReadSupport.py | Python | agpl-3.0 | 111,840 | [
"pysam"
] | 65cb3ae8c1574fc3c3d1768ea163d6674bfe2ad233dc943080c2deef624054ea |
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2013 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors:
#
# MDTraj is free software: y... | swails/mdtraj | mdtraj/geometry/hbond.py | Python | lgpl-2.1 | 16,253 | [
"MDTraj"
] | 2f7ac5931cb8b8fd0f235efd554a6ef5f4902a16006f67c8c8c5ae82fd508c3d |
# Copyright 2015 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 applicable law or ag... | Sorsly/subtle | google-cloud-sdk/lib/googlecloudsdk/calliope/walker.py | Python | mit | 4,042 | [
"VisIt"
] | a1765cb4e4e0eb88fe034fe9a72eb2f0fe2d700302bc6ae663a3446f4b6f998f |
try:
from MDAnalysis.coordinates.DCD import DCDReader
from MDAnalysisTests.datafiles import DCD
except ImportError:
pass
try:
from MDAnalysis.coordinates.XTC import XTCReader
from MDAnalysisTests.datafiles import XTC
except ImportError:
pass
try:
from MDAnalysis.coordinates.TRR import TRR... | MDAnalysis/mdanalysis | benchmarks/benchmarks/traj_reader.py | Python | gpl-2.0 | 1,768 | [
"MDAnalysis"
] | a6ae0f8b11e35658918925d779ce0bd39bb4f6b51d27100917681b0bb098f2db |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2010 - 2019 Brian R. D'Urso
#
# This file is part of Python Instrument Control System, also known as Pythics.
#
# Pythics is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the ... | dursobr/Pythics | setup.py | Python | gpl-3.0 | 2,565 | [
"Brian"
] | d85e5f6b96a84c3b97c410df4ebc377f35798c60b3f0866901c46fa08eea9ed7 |
"""
Description of the video:
Mimic of Star Wars' opening title. A text with a (false)
perspective effect goes towards the end of space, on a
background made of stars. Slight fading effect on the text.
"""
import numpy as np
from skimage import transform as tf
from moviepy.editor import *
from moviepy.video.tools.dr... | DevinGeo/moviepy | examples/star_worms.py | Python | mit | 4,800 | [
"Galaxy"
] | eef9e53f2115695983b472c41cd41d096d2cbdd7952fcbc6e9bc615a927b1b3e |
# Copyright 2019 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.
from datetime import date
import json
import logging
import os
import re
import subprocess
from subprocess import CalledProcessError
import shutil
import sys... | endlessm/chromium-browser | content/test/gpu/gpu_tests/skia_gold_integration_test_base.py | Python | bsd-3-clause | 26,988 | [
"VisIt"
] | 579f64797494462801140b43a9410289896853918eed11f2bc7e6fd11ad0498c |
"""
Module for rendering
@author: Chris Scott
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import os
import sys
import shutil
import logging
import time
import threading
import six.moves.queue
import vtk
from PIL import Image
from PySide2 i... | chrisdjscott/Atoman | atoman/rendering/renderer.py | Python | mit | 21,495 | [
"VTK"
] | 74cd62069eee8773950cee348249513973dbb734e89f38c452bb9434ff511a01 |
# Easy paver commands for less command typing and more coding.
# Visit http://paver.github.com/paver/ to get started. - @brandondean Sept. 30
import subprocess
import json
import time
import optparse
from paver.easy import *
path = path("./")
@task
@cmdopts([
optparse.make_option("-p", "--project", help="App Eng... | verycumbersome/the-blue-alliance | pavement.py | Python | mit | 5,096 | [
"GULP",
"VisIt"
] | 2f1bd131143c0726666753a0352e6ba3aa77c0c99be57a54b4b8f7981e73cf8a |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2007-2009 Stephane Charette
# Copyright (C) 2009 Gary Burton
# Contribution 2009 by Bob Ham <rah@bash.sh>
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2012-2013 Paul Franklin
#
# This ... | beernarrd/gramps | gramps/gui/plug/report/_graphvizreportdialog.py | Python | gpl-2.0 | 10,695 | [
"Brian"
] | f81b4c22c5a87194f94ae0bb343cec75b4a5d065671dd7c121bb3ce6cdb1e223 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from pymatgen.core.structure import Structure, Lattice
from pymatgen.io.vasp.outputs import Xdatcar, Vasprun
from monty.json import MSONable
from fnmatch import fnmatch
import numpy as np
import warnings
import... | dongsenfo/pymatgen | pymatgen/core/trajectory.py | Python | mit | 11,785 | [
"VASP",
"pymatgen"
] | cfe33a0e10ec9908e84670a78c0fc1ae5cf484543244a2647427ab7d31af176c |
# 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.
'''The 'grit build' tool.
'''
from __future__ import print_function
import codecs
import filecmp
import getopt
import gzip
import os
import shutil
impo... | endlessm/chromium-browser | tools/grit/grit/tool/build.py | Python | bsd-3-clause | 22,004 | [
"xTB"
] | ab02662a242afa02fd0d3c126045ec826bd4636ff1fc3ccc2961ff40f4d37064 |
"""Define a Particle on a PES
Allow for particles on a single PES or a surface hopping particle
"""
import numpy as np
import cPickle as pickle
from ase import units
from gpaw.mpi import world, MASTER
from pardyn.tools import normalize, get_overlaps, get_random_number
# Ideas for improvements:
# ND functionality
h... | tkjacobsen/pardyn | pardyn/particle.py | Python | lgpl-2.1 | 13,813 | [
"ASE",
"GPAW"
] | 915b873d5b17bd55efb49364c651429fa7135a5ed162e8b750ef7106d3b98dbf |
# -*- coding: utf-8 -*-
"""Generate graphs with a given degree sequence or expected degree sequence.
"""
# Copyright (C) 2004-2016 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import heapq
from itertools i... | JamesClough/networkx | networkx/generators/degree_seq.py | Python | bsd-3-clause | 27,095 | [
"Brian"
] | fe48e0df542549b176d8f97efd0d620448be5d949e2746a0a86448b20d65b42c |
#!/usr/bin/env python
"""
Define the class of AccList, which contains all the access entries and detect
signatures among them.
This program is part of the "I/O Signature detection software". Visit
http://www.cs.iit.edu/~scs/iosig for the latest version.
"""
__author__ = "Yanlong Yin (yyin2@iit.edu)"
__version__ = ... | yinyanlong/iosig | src/analysis/accList.py | Python | bsd-3-clause | 29,361 | [
"VisIt"
] | 9bf873d821a042430f6c086f3dc3909dbf35fad45d94a79241a377e0486de720 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides class to generate and analyze interfacial reactions.
"""
from __future__ import division
import warnings
import numpy as np
import matplotlib.pylab as plt
from pymatgen import Compo... | gVallverdu/pymatgen | pymatgen/analysis/interface_reactions.py | Python | mit | 23,031 | [
"pymatgen"
] | 6e626d9fc3b66996a20342b1058ccfd8631c0aafef2823e97c918860116d0732 |
"""
Lower level of visualization framework which does three main things:
- associate visualizations with objects
- create urls to visualizations based on some target object(s)
- unpack a query string into the desired objects needed for rendering
"""
import os
import shutil
import glob
from galaxy import ut... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/visualization/registry.py | Python | gpl-3.0 | 43,610 | [
"Galaxy"
] | 2b3861c68347f0e8a07c0431d7d92eb0fb278eb57efef69483864939da0f7af9 |
#!/usr/bin/env python
from sys import argv
import json
import os
import subprocess
DSA = 'xilinx:xil-accel-rd-ku115:4ddr-xpr:3.3'
VERSION = 'SDAccel 2016.4'
DEVICES = {
'xilinx:adm-pcie-7v3:1ddr': {
'version': '3.0',
'name': 'Alpha Data ADM-PCIE-7V3',
'nae': 'nx2'
},
'xilinx:adm-pcie-... | lorenzoditucci/sda_examples_aws | vector_addition/makefile_vector_add/makefile_sda_repo/utility/readme_gen/readme_gen.py | Python | mit | 17,383 | [
"VisIt"
] | 086659d94a1008d9a867233c08d0432d6c2198bac457602fd00b63ea7a30125f |
"""
Load Kitti Segmentation Input
-------------------------------
The MIT License (MIT)
Copyright (c) 2017 Marvin Teichmann
Details: https://github.com/MarvinTeichmann/KittiSeg/blob/master/LICENSE
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
impor... | MarvinTeichmann/KittiSeg | inputs/kitti_seg_input.py | Python | mit | 17,562 | [
"VisIt"
] | dd45eb9177fbb385569e469feccb8cff4d3c93750c1afac0914468ae8d6c4a6e |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import stat
import time
import re
try:
import cPickle as pickle # python 2
except ImportError:
import pickle # python 3
from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script
f... | DIRACGrid/COMDIRAC | src/COMDIRAC/Interfaces/Utilities/DConfigCache.py | Python | gpl-3.0 | 3,185 | [
"DIRAC"
] | f3ed3c8389a067599c2e84a19903cc597e0067fe78f43daa989c342e3ccf6a3e |
# Optimize MGH unconstrained test suite with Nelder-Mead optimizer.
from pyopus.optimizer.nm import NelderMead
from pyopus.optimizer.base import Reporter
from pyopus.problems.mgh import *
from numpy import array, sqrt
from platform import system
if system()=='Windows':
# clock() is the most precise timer in ... | blorgon9000/pyopus | demo/optimizer/nm.py | Python | gpl-3.0 | 4,065 | [
"Gaussian"
] | 4105948b8ba782a6ea502cba8b639cd13540adff7b51b17b04fca894a36e5ec7 |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright 2014 Luca Beltrame <luca.beltrame@marionegri.it>
#
# 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... | lbeltrame/mnegri-ov170 | programs/coverage_plot.py | Python | gpl-2.0 | 5,797 | [
"pysam"
] | c036b99400382f8a313260739f9d80a58377e8d4682cd80fe6035a6753a4dcd2 |
from vtk import *
reader = vtkXMLTreeReader()
reader.SetFileName("vtkclasses.xml")
view = vtkGraphLayoutView()
view.AddRepresentationFromInputConnection(reader.GetOutputPort())
view.SetVertexLabelArrayName("id")
view.SetVertexLabelVisibility(True)
view.SetVertexColorArrayName("vertex id")
view.SetColorVertices(True)... | b3c/VTK-5.8 | Examples/Infovis/Python/cone_layout.py | Python | bsd-3-clause | 701 | [
"VTK"
] | 7d3abaa3e61cbad26d518370fa175535ef0ec0b52683f33325157f9d01cf9ebb |
########################################################################
# $HeadURL $
# File: ForwardDISETTests.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/04/18 09:23:05
########################################################################
""" :mod: ForwardDISETTests
=======================
.... | sposs/DIRAC | RequestManagementSystem/test/ForwardDISETTests.py | Python | gpl-3.0 | 2,467 | [
"DIRAC"
] | 089115b95797c05ee219e5bd3fb158f9aa437345f8edb4137cd2d9027adce89f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This program takes the data from a specific data-entry Excel sheet and converts
it to two formatted Excel files for distribution to client.
Parse new format Excel file to make formatted output.
:REQUIRES:
:TODO: Make it a user friendly program
:AUTHOR: Jay William J... | Ripley6811/TAIMAU | src/xls_tools/excel_conversion.py | Python | gpl-2.0 | 18,579 | [
"ASE"
] | 1ab5e8dcd2e356d92c366a3bf67cd94822aba687f7be66d822beaae2f31824d1 |
"""We put utility code in a separate package so that other tests
can use it without triggering this app's unit tests
"""
import hashlib
from domain.models import Domain, Membership
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import User
from hq.models import Reporter... | icomms/wqmanager | apps/hq/tests/util/__init__.py | Python | bsd-3-clause | 3,305 | [
"Brian"
] | 25c31326a596077345f2868e7d68dcda26380ccdfbeae8a23f4480308da805ff |
# This file is part of cclib (http://cclib.github.io), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2015, the cclib development team
#
# The library is free software, distributed under the terms of
# the GNU Lesser General Public version 2.1 or later. You s... | ghutchis/cclib | test/parser/testlogfileparser.py | Python | lgpl-2.1 | 3,583 | [
"ADF",
"cclib"
] | ecb9a2804ff4551a8ea6f29268ed919da21b0c2302b131d00328a6d036e19940 |
#!/usr/bin/env python2
# Copyright (C) 2015-2017(H)
# Max Planck Institute for Polymer Research
#
# 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, eit... | govarguz/espressopp | examples/pathintegral_water/water.py | Python | gpl-3.0 | 8,118 | [
"ESPResSo",
"Gromacs"
] | c320741a664d4ff1f8f71276953428cc704379dbf62e0bc8153e1dcd87cc4ae0 |
#
# Copyright (c) 2009-2015, Jack Poulson
# All rights reserved.
#
# This file is part of Elemental and is under the BSD 2-Clause License,
# which can be found in the LICENSE file in the root directory, or at
# http://opensource.org/licenses/BSD-2-Clause
#
import El, time
m = 1000
n = 2000
display = True
worldR... | justusc/Elemental | examples/interface/BPDense.py | Python | bsd-3-clause | 1,236 | [
"Gaussian"
] | f14d8b2d289a1a2694307b3da8238616298b5c6b96767a7bb0ff69cde63ce485 |
""" Python 'utf-7' Codec
Written by Brian Quinlan (brian@sweetapp.com).
"""
import codecs
### Codec APIs
class Codec(codecs.Codec):
# Note: Binding these as C functions will result in the class not
# converting them to methods. This is intended.
encode = codecs.utf_7_encode
decode = cod... | ericlink/adms-server | playframework-dist/play-1.1/python/Lib/encodings/utf_7.py | Python | mit | 1,127 | [
"Brian"
] | 996f33d0b3d0309a58da658265462dfc7fa6f7ffa6ece0aff9425d197ca5634f |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/plugins/presentations/lib/presentationtab.py | Python | gpl-2.0 | 7,262 | [
"Brian"
] | d4780e878f0a9b79db02a391be61fc31e8ab0777c5a240d11adedf77bbe467dd |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | sunqm/pyscf | pyscf/grad/uccsd_t.py | Python | apache-2.0 | 5,040 | [
"PySCF"
] | 0eb812478899c116158284068fc61b5f114daee0c39dfa6df933f3b03c432769 |
#!/usr/bin/env python
# ***** BEGIN LICENSE BLOCK *****
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
# ***** END LICENSE BLOCK *****
import copy
import os
import pla... | cstipkovic/spidermonkey-research | testing/mozharness/mozharness/mozilla/testing/testbase.py | Python | mpl-2.0 | 34,121 | [
"VisIt"
] | 5c5c9822b9cb1c4bbb05297e922d281097013b4c54003548bf3dcde605ebd9b9 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2007 Async Open Source
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or... | andrebellafronte/stoq | stoqlib/importers/supplierimporter.py | Python | gpl-2.0 | 2,754 | [
"VisIt"
] | 4b141c375dba396a458d83528d13030225a4721908bc57882d181e5301957558 |
"""
@author David W.H. Swenson
"""
from __future__ import absolute_import
import pytest
from builtins import object
from nose.tools import (assert_equal, assert_not_equal, assert_is, raises,
assert_true)
from nose.plugins.skip import Skip, SkipTest
from numpy.testing import assert_allclose
from... | choderalab/openpathsampling | openpathsampling/tests/test_snapshot.py | Python | lgpl-2.1 | 2,806 | [
"OpenMM"
] | 3ff39a7ead8863dcbb8074bcd28aff6bd72ba02ed534bd898918e091c9bcbd3e |
#!/usr/bin/env drgn
#
# Copyright (C) 2019 Tejun Heo <tj@kernel.org>
# Copyright (C) 2019 Facebook
desc = """
This is a drgn script to monitor the blk-iocost cgroup controller.
See the comment at the top of block/blk-iocost.c for more details.
For drgn, visit https://github.com/osandov/drgn.
"""
import sys
import re
... | c0d3z3r0/linux-rockchip | tools/cgroup/iocost_monitor.py | Python | gpl-2.0 | 9,931 | [
"VisIt"
] | d25c897efd993e8e26d05d8d9ee5dfcab0a54baaefd92e6d0cea27874c446650 |
'''
Testing the Spark Cloud API by using a real connected Spark Core.
To use this test you must create a config.py file in this tests folder.
You can use config.py.tpl as a template. The target core should run the default
Tinker app.
Beware, if you have several cores resgistered on your account and some are not
connec... | Alidron/spyrk | tests/test_spark_cloud.py | Python | lgpl-3.0 | 7,109 | [
"TINKER"
] | 80ff630de5c7c25cf90af3e11220c531ef1b2e5b7a65de44addcfa1b81a53f9d |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides classes for calculating the ewald sum of a structure.
"""
import bisect
from copy import copy, deepcopy
from datetime import datetime
from math import log, pi, sqrt
from typing import ... | richardtran415/pymatgen | pymatgen/analysis/ewald.py | Python | mit | 28,216 | [
"GULP",
"pymatgen"
] | 58dd772c9575de75b3933b9e57c5aecad27900952cf6038e447959489f8d8072 |
#-----------------------------------------------------------------------------
# Name: Tray.py
# Product: ClamWin Free Antivirus
#
# Author: alch [alch at users dot sourceforge dot net]
#
# Created: 2004/19/03
# Copyright: Copyright alch (c) 2005
# Licence:
# This program is free softwa... | ghostshellgnome/clamwin | py/ClamTray.py | Python | gpl-2.0 | 38,009 | [
"VisIt"
] | 57225ba511922fba7e5769a254eb019fefeeed8f26ca35203b0978bca2c761d5 |
#!/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... | pli3/Openwebif | plugin/controllers/views/web/getlocations.py | Python | gpl-2.0 | 5,175 | [
"VisIt"
] | 8ad6e5a15aa10fb51869001b939bd9f51d7224bd4a82d08b37c3d44b8eb0a268 |
import numpy as np
import mbuild as mb
class Betacristobalite(mb.Compound):
"""The beta-cristobalite form of SiO2.
Area per port specifies the density of attachment sites in nm^2.
The crystal is expanded to yield an area per port of 0.25 nm^2, the
typical density of alkane monolayers on SiO2 althoug... | sallai/mbuild | mbuild/lib/surfaces/betacristobalite.py | Python | mit | 1,741 | [
"CRYSTAL"
] | 61e6fe8f57b96daf0f6924a4b0440698a7b2425da2569fbbc23fe13f1e80336e |
# coding: utf-8
import string
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import StaleElementReferenceException
from selenium.common.exceptions import NoSuchElement... | jvahala/brew-thing | py-modules/crawler.py | Python | apache-2.0 | 5,089 | [
"Amber"
] | 9ce8376e5814ddb4a660993c9932da5ef1bf6635a5858b4167d34cb1bedccb98 |
# This file is part of cclib (http://cclib.sf.net), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2006, the cclib development team
#
# The library is free software, distributed under the terms of
# the GNU Lesser General Public version 2.1 or later. Yo... | Clyde-fare/cclib_bak | src/cclib/bridge/cclib2pyquante.py | Python | lgpl-2.1 | 1,182 | [
"cclib"
] | cec5b27e9ae7d8a0c8c5a8cf634426d3354c84445bdc0d97426c3a8b28fd5b75 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Test the Nuclear method in cclib"""
from __future__ import print_function
import sys
import os
import re
import loggi... | gaursagar/cclib | test/method/testnuclear.py | Python | bsd-3-clause | 1,245 | [
"cclib"
] | 4719639eac693ba595e3620a7153748fc0cc130a258e5290e8c793dd1cd6a99e |
#!/usr/bin/env python
# Generate docs/options.html
import glob
import json
import os
import re
import sys
# Set this to the path to a test file to get debug output for just that test
# file. Can be helpful to figure out why a test is not being shown for a
# particular option.
debug_tests = [] # [ 'tests/zoom.html' ... | ezsimple/java | springboot/GReact/node_modules/dygraphs/generate-documentation.py | Python | apache-2.0 | 6,817 | [
"TINKER"
] | 6d271ed587c00b933232c60223e61b3907db2392aeade1a4e26fda9bced05ba4 |
# 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.
#
"""Useful utilities for helping in parsing GenBank files.
"""
__docformat__ = "restructuredtext en"
class FeatureValueCleaner(object):
r"""P... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/GenBank/utils.py | Python | gpl-2.0 | 1,954 | [
"Biopython"
] | 5af80fa198cd2ec1012618c9cc66b241fb0583d6e2e3dd5bb772e91fd33b1836 |
#!/usr/bin/env python
# Copyright (C) 2014 Open Data ("Open Data" refers to
# one or more of the following companies: Open Data Partners LLC,
# Open Data Research LLC, or Open Data Capital LLC.)
#
# This file is part of Hadrian.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this... | opendatagroup/hadrian | titus/titus/pmml/version_4_2.py | Python | apache-2.0 | 120,889 | [
"NEURON"
] | 93a32690371e8d9178633892255f3271d2feeff88b8b7b8bd1d3ecc4c28cf4f1 |
#!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# | ____ _ _ __ __ _ __ |
# | / ___| |__ ___ ___| | __ | \/ | |/ / |
# | | | | '_ \ / _ \/ __| |/ /... | tomas-edwardsson/check_mk | web/htdocs/userdb.py | Python | gpl-2.0 | 22,992 | [
"VisIt"
] | c1160761b85a987e5515df4b50e9987720817fe8828f1368fa160ee92329ffbc |
import typing as tp # NOQA
from chainer.functions.connection import linear
from chainer import initializers
from chainer import link
from chainer import types # NOQA
from chainer import utils
from chainer import variable
class Linear(link.Link):
"""Linear layer (a.k.a.\\ fully-connected layer).
This is ... | tkerola/chainer | chainer/links/connection/linear.py | Python | mit | 5,796 | [
"Gaussian"
] | de2bc8d6066942d6d8b7237d67d6417948e29d21b97902d1df4cb48acb520e0e |
import os.path
import time, random
import Krakatau
import Krakatau.ssa
from Krakatau.error import ClassLoaderError
from Krakatau.environment import Environment
from Krakatau.java import javaclass, visitor
from Krakatau.verifier.inference_verifier import verifyBytecode
from Krakatau import script_util
def findJRE():
... | alexkasko/krakatau-java | krakatau-lib/src/main/resources/Lib/decompile.py | Python | gpl-3.0 | 4,963 | [
"VisIt"
] | 9dd1324b9963e1fcec92eba51c3df1df7572d00444d45f6ffd9c8ea7e4d774ff |
#!/usr/bin/env python
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl... | harterj/moose | python/moosesqa/test/test_Requirement.py | Python | lgpl-2.1 | 5,399 | [
"MOOSE"
] | 49365755a20e00c70ecd2fa09cd3865084bb663936dc299959bb824f8c4b0de1 |
import json
import common
from objs.gametime import Gametime
from objs.poll import Poll
class WeekendGames(object):
"""
Defines the WeekendGames class
"""
def __init__(self,):
"""
WeekendGames constructor
"""
db = common.db
self.people = []
if 'people... | nluedtke/brochat-bot | objs/weekend_games.py | Python | mit | 14,033 | [
"exciting"
] | 8243e4063d525c7ef9d6a449b8a19f6368286dd2d0849a1bb3c81cfb18f5ab80 |
#!/usr/bin/env python
__version__ = '3.1.1'
__author__ = "Avinash Kak (kak@purdue.edu)"
__date__ = '2012-June-9'
__url__ = 'https://engineering.purdue.edu/kak/dist/BitVector-3.1.1.html'
__copyright__ = "(C) 2012 Avinash Kak. Python Software Foundation."
__doc__ = '''See https://engineering.purdue.edu/kak/dist... | stregoika/aislib | ais/BitVector.py | Python | gpl-3.0 | 69,477 | [
"Brian"
] | 223b6eff00921d1e1d338ea1034d4ebe40991686345660b9a9668ad8bca81f94 |
import yeadon
import yeadon.exceptions
import yeadon.human
import yeadon.inertia
import yeadon.segment
import yeadon.solid
import yeadon.ui
import yeadon.utils
import yeadon.tests
try:
import yeadon.gui
except ImportError: # mayavi not installed
pass
| chrisdembia/yeadon | conda-recipes/yeadon-1.3.0/import_test.py | Python | bsd-3-clause | 260 | [
"Mayavi"
] | 7122a0f041ff14a7e6f83d666fda946af5706ff1b4330261a36d8b9d6f047ca5 |
from rtems_waf.config.options import Boolean, Integer, String, StringList
class ALLOW_IRQ_NESTING(Boolean):
value = True
tag = ["build"]
undef = True
descr = "If set to !0, allow nested irq processing"
class ARM_CLK(Boolean):
value = False
tag = ["general"]
undef = True
descr = "Arm clock in hz"
class... | swordsmaster/waf | rtems_waf/defaults/options.py | Python | gpl-2.0 | 57,453 | [
"CRYSTAL"
] | 20f4a9551ef3fafac8396c02d15a367837055c122777dc12d0e5278f0801245e |
"""A VTK interactor scene which provides a convenient toolbar that
allows the user to set the camera view, turn on the axes indicator
etc.
"""
# Authors: Prabhu Ramachandran <prabhu_r@users.sf.net>,
# Dave Peterson <dpeterson@enthought.com>
# Copyright (c) 2006, Enthought, Inc.
# License: BSD Style.
# System ... | dmsurti/mayavi | tvtk/pyface/ui/qt4/decorated_scene.py | Python | bsd-3-clause | 11,285 | [
"VTK"
] | 8142eed08d37a07b7923ca38980f31199937a1efaeee21586fea3df4ce104d6a |
# Copyright (c) 2015 Microsoft Corporation
from z3 import *
set_option(auto_config=True)
bv_solver = Then(With('simplify', mul2concat=True),
'solve-eqs',
'bit-blast',
'aig',
'sat').solver()
x, y = BitVecs('x y', 16)
bv_solver.add(x*32 + y == 13, x ... | dstaple/z3test | old-regressions/python/tactic.7.py | Python | mit | 475 | [
"BLAST"
] | ffedc1697b88f59a169870eedcf234bacca1c0c088ca3e0147d3f916d39f91f8 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publi... | pmghalvorsen/gramps_branch | gramps/plugins/tool/changetypes.py | Python | gpl-2.0 | 6,439 | [
"Brian"
] | 2750d6726f63fe3a591738ad4e83b0049468460e52b8b77c97e134e44b337c74 |
#!/usr/bin/env python
__copyright__ = "Copyright 2014"
"""
Name:
trex_unit_test.py
Description:
This script creates the functionality to test the performance of the TRex traffic generator
The tested scenario is a TRex TG directly connected to a Cisco router.
::
Topology:
------- ... | dimagol/trex-core | scripts/automation/regression/trex_unit_test.py | Python | apache-2.0 | 30,512 | [
"Elk"
] | ffd5dbe8a5437e93cff3ac0045f9d24da4ed9022403cfc384074419f15828478 |
#!/usr/bin/env python
# coding: utf-8
"""Tests for the mesh import of mesh from external libraries"""
import pytest
import numpy as np
import xarray as xr
from capytaine.io.mesh_writers import write_STL
from capytaine.io.mesh_loaders import load_STL
import capytaine as cpt
try:
import meshio
import pygmsh
... | mancellin/capytaine | pytest/test_io_meshes.py | Python | gpl-3.0 | 3,938 | [
"VTK"
] | 1b12cf1812f6495f339f179ce77d795867041741efb2e6037fb051432b660028 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.