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 |
|---|---|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016, 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.
import urllib
from BeautifulSoup import BeautifulSoup
wiki = "http://sourceforge.net/apps/mediawiki/cclib"
... | Schamnad/cclib | old/downloadwiki.py | Python | bsd-3-clause | 941 | [
"cclib"
] | 450aa8d03bf0dba2d6db1ed980ed59edf3e6966fa0d1a86a5c97ea03611a8edc |
#!/usr/bin/python
import os
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
time=["06"]
year=["2013"]
param=["129.128","130.128","131.128","132.128","157.128","151.128"]
nam=["hgt","air","uwnd","vwnd","rhum","psl"]
#month=["01","02","03","04","05","06","07","08","09","10","11","12"]
for y in year:
... | CopyChat/Plotting | Python/2013.1.py | Python | gpl-3.0 | 1,307 | [
"NetCDF"
] | 7897175802d9d9ae9fdcb8071306a1a6c96085a71bc8beee2572ffddb40eed6a |
#!/usr/bin/env python
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
... | datalogics/scons | test/Parallel/ref_count.py | Python | mit | 5,023 | [
"VisIt"
] | 768b310d6f1912d50f419f9612a25e4f59d9013a0a7883c64d11be58d944634d |
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2020, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
#"""
#ADF NMR Output Editor
##############################
#Editor class for parsing the NMR data from an ADF calculation
#"""
#from __future__ import absolute_import
#from __future_... | exa-analytics/atomic | exatomic/adf/nmr/output.py | Python | apache-2.0 | 6,399 | [
"ADF"
] | 4c72b6d0034ba336f94183aa38f309d42070586a31d3a3700307af40a16b3490 |
# $HeadURL$
__RCSID__ = "$Id$"
import GSI
from DIRAC.Core.Utilities.LockRing import LockRing
from DIRAC.FrameworkSystem.Client.Logger import gLogger
class ThreadSafeSSLObject:
cLock = LockRing().getLock()
def __init__( self, object ):
self.cObject = object
def __getattr__( self, name ):
method = getattr... | fstagni/DIRAC | Core/DISET/private/Transports/SSL/pygsi/ThreadSafeSSLObject.py | Python | gpl-3.0 | 1,631 | [
"DIRAC"
] | 6bd086507155e00033fe21298f4808d4570da815cd1c13ac1def547533aa60b8 |
#!/usr/bin/env python
# -*- coding=utf-8 -*-
# A Python code for plotting orbital-resolved bandstructure.
# Written by : Internet
# catalyst : Ravindra
# under the eagle eyes of : Rinkle
import sys
import os
import numpy as np
from numpy import array as npa
import matplotlib as... | neelravi/vasp | bandplotting-orb-resolved-bug-removed-without-borders-automatic-klabels.py | Python | gpl-3.0 | 5,355 | [
"VASP",
"pymatgen"
] | e7f84d1f1c20b33cca0ccf7f8f7a4f8bcd81da3ac3f8638957109b1d7679951f |
"""
Routines for fitting source profiles (currently just 2d-Gaussian)
We borrow from the Astropy modeling routines, since they provide a tested
implementation of both the 2d Gaussian and its Jacobian
(first partial derivatives).
We add routines for estimation of initial fitting parameters (method of moments,
using th... | SKA-ScienceDataProcessor/FastImaging-Python | src/fastimgproto/sourcefind/fit.py | Python | apache-2.0 | 10,229 | [
"Gaussian"
] | dea4d6891268822e40f276a11ce2e48358dcf6725bfb018bf19f263ddc631dfe |
#!/usr/bin/env python
'''
CREATED:2014-01-17 16:30:07 by Brian McFee <brm2132@columbia.edu>
Compute segmentation evaluation metrics
Usage:
./segment_eval.py TRUTH.TXT PREDICTION.TXT
'''
import argparse
import sys
import os
import eval_utilities
import mir_eval
def process_arguments():
'''Argparse function to... | mrgloom/mir_eval | evaluators/segment_eval.py | Python | mit | 2,336 | [
"Brian"
] | 18ffa5a0478097897a421012f3a23fe92de50edbc153f9f314a16811077454a2 |
""" Inlining inline functions body. """
from pythran.analyses import Inlinable, Aliases
from pythran.passmanager import Transformation
import gast as ast
import copy
class Inlining(Transformation):
"""
Inline one line functions.
>>> import gast as ast
>>> from pythran import passmanager, backend
... | serge-sans-paille/pythran | pythran/optimizations/inlining.py | Python | bsd-3-clause | 4,196 | [
"VisIt"
] | e1d95a607a7a7786a2db1ce26148c2aa1feef7c6f5df210a0101003f627152a8 |
# $HeadURL: $
''' RSCommand
'''
from DIRAC import S_OK, S_ERROR
from DIRAC.ResourceStatusSystem.Client.ResourceStatusClient import ResourceStatusClient
from DIRAC.ResourceStatusSystem.Command.Command import Command
from DIRAC.ResourceStatusSystem.Utilities... | Sbalbp/DIRAC | ResourceStatusSystem/Command/RSCommand.py | Python | gpl-3.0 | 8,118 | [
"DIRAC"
] | d8cae9406bd1dcff468dd83e7a82300a400b830335b75d86f1a429391ad71ec9 |
"""
Class for spherical harmonic coefficients of the magnetic potential.
"""
import numpy as _np
import matplotlib as _mpl
import matplotlib.pyplot as _plt
from mpl_toolkits.axes_grid1 import make_axes_locatable as _make_axes_locatable
import copy as _copy
import warnings as _warnings
import xarray as _xr
from scip... | SHTOOLS/SHTOOLS | pyshtools/shclasses/shmagcoeffs.py | Python | bsd-3-clause | 131,573 | [
"COLUMBUS",
"NetCDF"
] | 3f0e13d2001d039f2f72bf6635711890e7f3e830b7cc32af8471b98b7614ff79 |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | EmreAtes/spack | var/spack/repos/builtin/packages/parallel-netcdf/package.py | Python | lgpl-2.1 | 3,160 | [
"NetCDF"
] | 4712e4c878639ed741b0f5dbb35b7047ce1ddf0a887fa9359c8b7029219fade2 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# 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)
#
# Released under t... | alejob/mdanalysis | package/MDAnalysis/coordinates/LAMMPS.py | Python | gpl-2.0 | 17,213 | [
"CHARMM",
"LAMMPS",
"MDAnalysis"
] | fc9333abca575c6926b82d12a5a74ca8cc2ed146d80272a06f3de9016dee3b8c |
# $Id$
# Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
# See the file COPYING for details.
"""
``analysis.plugins.dist`` --- Helper Class for ``g_dist``
=========================================================
:mod:`dist` contains helper c... | pslacerda/GromacsWrapper | gromacs/analysis/plugins/dist.py | Python | gpl-3.0 | 8,542 | [
"Gromacs"
] | 713d231651ada596f357ffefe430cfc8cbe6ab2add4862a0d20a10b30d2b3911 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Provides a class for interacting with KPath classes to
generate high-symmetry k-paths using different conventions.
"""
import itertools
import numpy as np
import networkx as nx
from pymatgen.symmetry.kpath ... | mbkumar/pymatgen | pymatgen/symmetry/bandstructure.py | Python | mit | 12,186 | [
"pymatgen"
] | 3f845d44247c8b6b3f74fdded86a4cc4f3964625f36a5b7ffa1275131c6231a6 |
import ast
from .visitors import NodeVisitor
from .util import enumerate_flatten
def label_for_py_ast_nodes(self):
from .py.dotgen import PyDotLabeller
return PyDotLabeller().visit(self)
def to_dot_outer_for_py_ast_nodes(self):
return "digraph mytree {\n%s}" % self._to_dot()
def to_dot_inner_for_py_as... | alphaFred/Sejits4Fpgas | sejits4fpgas/src/vhdl_ctree/dotgen.py | Python | gpl-3.0 | 2,138 | [
"VisIt"
] | 4f8742260e013ef701004621c49427f3a9d0a708229b413af9f94d788f89d8fd |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Unit tests for TEM calculator.
"""
import unittest
import numpy as np
import pandas as pd
import plotly.graph_objs as go
from pymatgen.analysis.diffraction.tem import TEMCalculator
from pymatgen.core.lat... | gmatteo/pymatgen | pymatgen/analysis/diffraction/tests/test_tem.py | Python | mit | 11,403 | [
"pymatgen"
] | 7eb69b135c6c30c96e261a58c14091d21b370fbc298c800acd286890cdbd4eac |
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 17 10:30:59 2013
@author: Solrisa
"""
from PyQt4 import QtCore, QtGui
from PyQt4 import Qt
from elements import ELEMENTS
#from fractions import Fraction
from math import *
import re
#import sys
#LmtngElmnt=Elmnt3 #Set Rate-limiting Element
#Prompt the user or record th... | johnmgregoire/JCAPdepositionmonitor | Conversion.py | Python | bsd-3-clause | 5,541 | [
"CRYSTAL"
] | 3053f3ebf1f8c25d75064ba091ceff1f53d9428ddf03e13ae0e63ed6df8de6ef |
"""Bowtie pager."""
import flask
from flask_socketio import emit
import eventlet
from bowtie._component import SEPARATOR
_NAME = 'page' + SEPARATOR
class Pager:
"""Tell the client to send a message to the server."""
_NEXT_UUID = 0
@classmethod
def _next_uuid(cls):
cls._NEXT_UUID += 1
... | jwkvam/bowtie | bowtie/pager.py | Python | mit | 797 | [
"Bowtie"
] | 32fb34853034467064a0aaf7700cad6659bc4e8954710f319e7fc86588c17dd8 |
__author__ = 'yupeng'
import scipy
from search.chance_constraint_relaxation import ChanceConstraintRelaxation
from search.temporal_allocation import TemporalAllocation
from temporal_network.chance_constraint import ChanceConstraint
from search.candidate import Candidate
from search.conflict import NegativeC... | yu-peng/cdru | search/mincost_cc_relaxation.py | Python | gpl-3.0 | 29,528 | [
"Gaussian"
] | 9cd44016f5555e01448ffe8de9d27e914b60a51cd4d28f5172d162caa8e91015 |
# -*- coding: utf-8 -*-
#
# Copyright 2014 Google Inc. All rights reserved.
# Copyright 2015 Benjamin Kiessling
#
# 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/... | QuLogic/ocropy | kraken/linegen.py | Python | apache-2.0 | 10,487 | [
"Gaussian"
] | 8730f30b9fdb895d333c0561400018e237960ad79407b7adb576e4a0b3d8e03b |
import logging
import jinja2
import os
import webapp2
from flask import Flask
from flask import request
from flask import redirect
from functools import wraps
from google.appengine.api import users
from google.appengine.api import mail
from models import Profile, Entry
ADMIN_EMAIL = "progrium@gmail.com"
def nl2br(v... | progrium/workjournal | main.py | Python | bsd-3-clause | 3,964 | [
"VisIt"
] | 58d9c142c824f2ab05ca1421b7f33aea7496dbc3ebdd5bcba58c36dda64e3a73 |
"""
Inline-optimized Sheet classes
"""
import param
from topo.base.cf import CFIter
from topo.base.projection import NeighborhoodMask
from topo.misc.inlinec import inline,provide_unoptimized_equivalent,c_header
from topo.sheet import SettlingCFSheet
from topo.sheet import compute_joint_norm_totals # pyflakes:ignore ... | mjabri/topographica | topo/sheet/optimized.py | Python | bsd-3-clause | 6,767 | [
"Gaussian"
] | dae7e0b76ecd7d19835918b72c6f74843f402b57619ac5c9137a8dc0659b0f56 |
#! /usr/bin/env python
import os, re, sys, math, time, stat, time, random, subprocess, decimal
from operator import add,mul
from string import *
from sio import *
import utilities as ut, xpermutations as perm
"""
This file contains methods pertaining to genomic sequences, io, manipulation and analysis.
"""
all_jobs... | dfsimola/glimmr | seqDefs.py | Python | gpl-3.0 | 101,399 | [
"BLAST"
] | 39fce34ec9c623a21c0520593786f3d9d9ff724d2d37cf7cff906a3f68b7e4bf |
# coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | google-research/google-research | rl_repr/batch_rl/train_eval_offline.py | Python | apache-2.0 | 30,121 | [
"Gaussian"
] | c0dd7af473a7227fd1c3c80edee4d3d0f8255f792e39cf881f9dce170bd8c8e0 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# 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)
#
# Released under th... | kain88-de/mdanalysis | package/MDAnalysis/topology/tpr/__init__.py | Python | gpl-2.0 | 1,457 | [
"MDAnalysis"
] | ea4d7a11f6bab2116ad020f1ff9cb0629f34b0c5488960f99eec6511837e0872 |
import operator
import numpy as np
import sys
if sys.argv[0] != "gen_py.py":
from api_autogen import *
import cgt
from . import core, utils
# Every non-underscored function in this file should have a docstring, and it should enforce that the input data is valid
# ==================================================... | animesh-garg/cgt | cgt/api.py | Python | mit | 24,799 | [
"Gaussian"
] | b6d059270121ab27e6f848ec7284661e405079634ec1908ca48ccc286a0915f4 |
#
# Copyright (C) 2000 greg Landrum
#
""" unit testing code for cross validation """
from __future__ import print_function
import unittest, random
from rdkit import RDConfig
from rdkit.ML.DecTree import CrossValidate
def feq(a,b,tol=1e-4):
return abs(a-b)<tol
class XValTestCase(unittest.TestCase):
def setUp(se... | AlexanderSavelyev/rdkit | rdkit/ML/DecTree/UnitTestXVal.py | Python | bsd-3-clause | 2,379 | [
"RDKit"
] | 7396588098d4e9e484f507ccae559a5db6e736690b05d7d84b8e9f82a9784f18 |
# Copyright (c) 2012, Vehbi Sinan Tunalioglu <vst@vsthost.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# - Redistributions of source code must retain the above copyright
# notice, th... | vst/kountry | kountry.py | Python | bsd-2-clause | 47,804 | [
"BWA"
] | 2a109fa6f3584bf53f06b14cd64408ecda7a1fac2f7949823d767f2ca4a82a37 |
# coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_urlparse,
compat_str,
)
from ..utils import (
ExtractorError,
determine_ext,
find_xpath_attr,
fix_xml_ampersands,
GeoRestrictedError,
int_or_none,
parse... | nyuszika7h/youtube-dl | youtube_dl/extractor/rai.py | Python | unlicense | 18,787 | [
"ESPResSo",
"GULP"
] | 30af05a990bdede12b3c9b1d6ea602cb2ab5c3de131c98696a97b23e919605ad |
from fil_finder import fil_finder_2D
from fil_finder.width import gauss_model
from basics import BubbleFinder2D
from spectral_cube.lower_dimensional_structures import Projection
from astropy.io import fits
from radio_beam import Beam
from astropy.wcs import WCS
import astropy.units as u
import matplotlib.pyplot as p
i... | e-koch/VLA_Lband | 14B-088/HI/analysis/run_filfinder.py | Python | mit | 9,249 | [
"Gaussian"
] | 6cae57553c5736102935b6944305164fd6e825f599d8982044e1e32a20846599 |
#
# File:
# TRANS_streamline.py
#
# Synopsis:
# Illustrates how to create a streamline plot
#
# Categories:
# streamline plot
#
# Author:
# Karin Meier-Fleischer, based on NCL example
#
# Date of initial publication:
# September 2018
#
# Description:
# This example shows how to create a stream... | KMFleischer/PyEarthScience | Transition_examples_NCL_to_PyNGL/streamlines/TRANS_streamline.py | Python | mit | 1,895 | [
"NetCDF"
] | 15fbf21455062763e9c0e960efaefe786fd62e9cf7f4fb94f0358752193e60e3 |
# 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 required by applicable law or agreed ... | google-research/ott | ott/tools/gaussian_mixture/linalg.py | Python | apache-2.0 | 4,208 | [
"Gaussian"
] | 20e91436c0fd3333941564ae02385d89cad11da23e33ecf394557a9902fa4a54 |
'''
synbiochem (c) University of Manchester 2015
synbiochem is licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>.
@author: neilswainston
'''
import requests
def get(url, headers=None, verify=True):
'''GETs url.'''
return __process_resp(requests.get... | synbiochem/synbiochem-py | synbiochem/utils/net_utils.py | Python | mit | 1,980 | [
"VisIt"
] | 4fef2b237d0e552624f61e812eb3ee297479ecfa364893c3b554a475b803ddb8 |
import os
from Bio import SeqIO
import io
from ..nucleotide import to_seq
from ..nucleotide.alignment import make_alignment
from ..nucleotide.cpg import bisulfite_conversion, c2t_conversion
from ..nucleotide.primer import Primer
from ..util import report
from ..view.baseseq_renderer import BaseseqRenderer
from ..format... | mizuy/seqtool | seqtool/script/sequencing.py | Python | mit | 11,151 | [
"Biopython"
] | 622cd6b21c75ef631e72167c2ff903de6791210309e2a0e143c8b6f32d31c960 |
"""
Set of programs to degrade/convolve synthetic images/spectra to observational
conditions
"""
import math
import os
import scipy.interpolate as interp
import numpy as np
from scipy import ndimage, signal
def spec_conv(spec, wave, conv_type='IRIS', ww=None, wpts=200, winterp='linear',
xMm=16.5491, gra... | ITA-Solar/helita | helita/sim/synobs.py | Python | bsd-3-clause | 21,528 | [
"Gaussian"
] | d579f99fc184f0677f233e0cf34c6670e9c27de061601d92d69848e09bc09fe7 |
# mako/parsetree.py
# Copyright (C) 2006-2015 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""defines the parse tree components for Mako templates."""
from docassemble.base.mako import e... | jhpyle/docassemble | docassemble_base/docassemble/base/mako/parsetree.py | Python | mit | 19,343 | [
"VisIt"
] | f69c217956cc351c5b1cabe095794c802f24bc155fc8a9e00704ed11fd6a4d00 |
# -*- coding: utf-8 -*-
#!/usr/bin/python
"""Test of sayAll output of Firefox on bugzilla's advanced search page."""
from macaroon.playback import *
import utils
sequence = MacroSequence()
########################################################################
# We wait for the focus to be on a blank Firefox windo... | h4ck3rm1k3/orca-sonar | test/keystrokes/firefox/sayAll_bugzilla_search.py | Python | lgpl-2.1 | 8,222 | [
"ORCA"
] | e4242e0b1798fba0650776933a0cbc303cd52a55e120d53284dd29d373b0cb4d |
#!/usr/bin/python
import numpy as np
import libtiff as tf
import time as tm
from operator import add
import geo
fdir = "layers/"
tdir = "geometry/"
fname = "cellsN8R"
# time the code
t1 = tm.time()
# get the reduced image stack
print "load image stack"
f = tf.TIFF3D.open(fdir+fname+".tif", mode='r')
images = f.re... | jrugis/cell_mesh | vox_geometry_ORIGINAL.py | Python | gpl-3.0 | 2,431 | [
"VTK"
] | c02114de60e26246f81e0524a81dd8089a29b045a5209009d44af3b3a2cbfddf |
#! /usr/bin/env python
from argparse import ArgumentParser
from os.path import isfile
from json import loads
from ase import Atoms
import ase.io
from numpy import matrix
from numpy.linalg import inv
def fold_prim(supercell_file, supercell_matrix, output='prim_cell_lattice.in'):
"""Get a primitive cell correspondi... | ajjackson/mctools | mctools/fold_prim.py | Python | gpl-3.0 | 3,041 | [
"ASE",
"VASP"
] | 62f3d62abd0b73498e0308ed74ba56dd150fb5f4edbe2c8af74d067ac270af96 |
''' Some tests for filters '''
import numpy as np
from numpy.testing import (assert_equal, assert_allclose,
assert_array_equal, assert_almost_equal,
suppress_warnings)
from pytest import raises as assert_raises
import scipy.ndimage as sndi
from scipy.ndimage.filte... | pizzathief/scipy | scipy/ndimage/tests/test_filters.py | Python | bsd-3-clause | 16,488 | [
"Gaussian"
] | 4b756b28653445ded1d608fb02902991f8e7d99030fe791c0074b85544bf24d1 |
# coding: utf-8
from __future__ import division, unicode_literals
import re
import os
import shutil
import subprocess
from string import Template
from monty.io import zopen
from monty.json import MSONable
from pymatgen.core.structure import Molecule
"""
This module implements input and output processing for Fiesta... | Bismarrck/pymatgen | pymatgen/io/fiesta.py | Python | mit | 28,823 | [
"NWChem",
"pymatgen"
] | fc39d22a245af9247010b1f887e43ed9d208651552b5db1b3214fada87246826 |
# Copyright (c) 2013 Jose Cruz-Toledo
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, dis... | jctoledo/ligandneighbours | ligandneighbours.py | Python | mit | 10,769 | [
"Biopython"
] | b1710a15167cbcd4db2015984eb08bfc485f1443716f9d33e70f1206c9adec08 |
#!/usr/bin/env python
import sys
lines_gaff = sys.stdin.readlines()
#pair_style = 'lj/charmm/coul/long'
# NOTE: Long-range coulombic forces were disabled intentionally. (See below)
# If you want to use long-range electrostatics, uncomment these lines:
# Instead I use hybrid lj/charmm/coul/charmm b... | quang-ha/lammps | tools/moltemplate/moltemplate/force_fields/convert_AMBER_files_to_LT_files/amberparm_pair_to_lt.py | Python | gpl-2.0 | 2,195 | [
"Amber",
"CHARMM",
"LAMMPS"
] | 597c3238d6e62faf9b5eef77990768c9fbdc2f7af37c188a3dbef5196d0f6e83 |
# Copyright 2013 Velodyne Acoustics, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | Kitware/VeloView | Application/Ui/python/lidarview/planefit.py | Python | apache-2.0 | 4,405 | [
"ParaView",
"VTK"
] | 207e3fae1ab23cf9c4d2bebaed7c8db00c4e3592404e469ea5234c9863f669a6 |
# coding=utf-8
# Copyright 2022 The Uncertainty Baselines Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | google/uncertainty-baselines | uncertainty_baselines/datasets/random.py | Python | apache-2.0 | 8,297 | [
"Gaussian"
] | 095507fd86de8ed7111cdba0f2f742ec0846d7fa38a86957b1a1ad82d052ea85 |
#!/usr/bin/env python
from __future__ import print_function
import gzip
import json
import optparse
import os
import os.path
import re
import shutil
import sys
import urllib
import zipfile
from pysam import ctabix
"""
# Install dbNSFP databases
# from DbNsfp site
# Download dbNSFP database
$ wget ftp://dbnsfp:... | Delphine-L/tools-iuc | data_managers/data_manager_snpsift_dbnsfp/data_manager/data_manager_snpsift_dbnsfp.py | Python | mit | 7,930 | [
"pysam"
] | 38c1e2a65f4eb96d1a40382b74ee9670ecefc725ca01cac1369b687735a89ce2 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/plugins/bibles/forms/bibleupgradeform.py | Python | gpl-2.0 | 28,476 | [
"Brian"
] | c2daf7861718f5fabf2f9e984a39276b4bf127248496e63d1da30ad376880a2e |
import os
from setuptools import setup, find_packages
def get_scripts(path):
for name in os.listdir(path):
yield os.path.join(path, name)
setup(
name='dbooru',
version='0.1',
package_dir={'': 'src'},
packages=find_packages('src'),
scripts=list(get_scripts('src/bin')),
author='Al... | darkfeline/dbooru | setup.py | Python | gpl-3.0 | 424 | [
"MOE"
] | 4a64af3e39b10e71d56d79b94a3827888cb9a563ccf0440d1fbdaedab6edf31a |
import os
import sys
from pyjade import Parser, Compiler as _Compiler
from pyjade.runtime import attrs as _attrs
from pyjade.utils import process
ATTRS_FUNC = '__pyjade_attrs'
ITER_FUNC = '__pyjade_iter'
def attrs(attrs, terse=False):
return _attrs(attrs, terse, MakoUndefined)
class Compiler(_Compiler):
useR... | glennyonemitsu/muhJade | pyjade/ext/mako.py | Python | mit | 3,548 | [
"VisIt"
] | de34db4b59d61d647500ef1ec91edd619456f0648581743cf15935152e584448 |
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... | pyemma/deeplearning | assignment2/cs231n/classifiers/fc_net.py | Python | gpl-3.0 | 15,913 | [
"Gaussian"
] | f4f3040fd381303a05a73140824b8ba0a43ff111c8cb02c0d1f2f9a020f0d266 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015 Simon Perkins
#
# This file is part of montblanc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the L... | ska-sa/montblanc | montblanc/src_types.py | Python | gpl-2.0 | 6,105 | [
"Gaussian"
] | 2c75a97c21ae233914f1a0da75e54f946e31fb8d327e0487059bd76cd22a0908 |
#!/usr/bin/env python
###############################################################################
# Copyright (C) 1994 - 2007, Performance Dynamics Company #
# #
# This software is licensed as described in the file ... | peterlharding/PDQ | examples/MultiServer/gross_te42.py | Python | mit | 3,627 | [
"VisIt"
] | 02235ff33a507bd8ee0f47594104cc72728179139f86efe088689acc1bc25c72 |
#!/usr/bin/env python
import os
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Now create the RenderWindow, Renderer and Interactor
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
iren = vtk.vtkRenderWindowInteracto... | biddisco/VTK | Imaging/Core/Testing/Python/voxelModel.py | Python | bsd-3-clause | 2,170 | [
"VTK"
] | 0510b2049a1883b026a13b1abe87b84fb322ce92e0066983e4de3c125cad6375 |
# Copyright (C) 2013 by Yanbo Ye (yeyanbo289@gmail.com)
# 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.
""" Classes and methods for finding consensus trees.
This module contains a ``_BitString`` clas... | zjuchenyuan/BioWeb | Lib/Bio/Phylo/Consensus.py | Python | mit | 23,672 | [
"Biopython"
] | c3064d0932490a6e15b03e4524843f01e35996bccbc33aff6508074ef3c9bd3b |
from nbody_graph_search import Ugraph
# This file defines how improper interactions are generated in OPLS.
# To use it, add "(opls_imp.py)" to the name of the "Data Impropers By Type"
# section, and make sure this file is located in the "common" directory.
# For example:
# write_once("Data Impropers By Type (opls_imp.... | ganzenmg/lammps_current | tools/moltemplate/src/nbody_alternate_symmetry/opls_imp.py | Python | gpl-2.0 | 3,383 | [
"LAMMPS",
"TINKER"
] | e721d0ecfe767db768f7a125b8ff571c602b3c40160e12f1d42837e1576a96d5 |
# coding: utf-8
# # testAPI_propane
#
# Created by Davy Yue 2017-06-22
#
#
# ### Imports
# In[ ]:
import itertools
import string
import os
import numpy as np
import matplotlib.pyplot as plt
get_ipython().magic('matplotlib inline')
from msibi import MSIBI, State, Pair, mie
import mdtraj as md
# ## PROPANE - e... | ddyy345/trajAPI | trajAPI_propane.py | Python | mit | 2,486 | [
"MDTraj"
] | b06b8727ab9042816f7dde69aa3522dfff691c0004c61194885b7bdd8c789638 |
'''
(c) Copyright 2012 Magnus Morton.
This file is part of Nest.
Nest 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 License, or
(at your option) any later version.
Nest is distr... | magnusmorton/nest | nest/tests/visitor_helper.py | Python | agpl-3.0 | 927 | [
"VisIt"
] | 706689fbc8b1bfeb48a474c44e5cbf35dfa3e52cb2441723961ad5135512778a |
# -*- coding: utf-8 -*-
import codecs
import json
import os
import tempfile
from django import forms
from django.core.urlresolvers import reverse
from django.test.client import RequestFactory
from mock import patch
from nose.tools import eq_
from pyquery import PyQuery as pq
from mkt.developers.views import standalo... | luckylavish/zamboni | mkt/developers/tests/test_views_validation.py | Python | bsd-3-clause | 9,245 | [
"exciting"
] | 43c81369474a8819fb69c8cddbf431f0d4c5c84d872d0a4a532ac4a27ac56b7a |
#######################################################################
#
#
# Next Event Renderer for Dreambox/Enigma-2
# Coded by Vali (c)2010
# Support: www.dreambox-tools.info
#
#
# This plugin is licensed under the Creative Commons
# Attribution-NonCommercial-ShareAlike 3.0 Unported License.
# To view ... | kajgan/e2 | lib/python/Components/Renderer/OMNextEvent.py | Python | gpl-2.0 | 1,927 | [
"VisIt"
] | afdd621357da3830365dea0ac68c11055d52c127a5ab1fc7dfa2161424fb1657 |
# -*- coding: utf-8 -*-
#
# Name: face.com Python API client library
# Description: face.com REST API Python client library.
#
# For more information about the API and the return values,
# visit the official documentation at http://developers.face.com/docs/api/.
#
# Author: Tomaž Muraus (http://www.tomaz-muraus.info)
#... | gleitz/automaticdj | face_client/face_client.py | Python | mit | 11,305 | [
"VisIt"
] | 310021e8dd23424102cee868ece7f2b2ebbefd0542cafd1500e7ca9a0649344e |
# 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... | jarifibrahim/climate | obs4MIPs/factory/formats.py | Python | apache-2.0 | 18,397 | [
"NetCDF"
] | d48c5952a2f01a2c56391573440e9e0dd4dcf3d698e72665b09108c9c83d41af |
# Natural Language Toolkit: Logic
#
# Author: Dan Garrette <dhgarrette@gmail.com>
#
# Copyright (C) 2001-2013 NLTK Project
# URL: <http://nltk.org>
# For license information, see LICENSE.TXT
"""
A version of first order predicate logic, built on
top of the typed lambda calculus.
"""
from __future__ import print_functi... | TeamSPoon/logicmoo_workspace | packs_sys/logicmoo_nlu/ext/pldata/nltk_3.0a3/nltk/sem/logic.py | Python | mit | 67,593 | [
"VisIt"
] | 69b376f33d422bfccc71c349004993e67886a3a927d8ae4fd0cf55128a2389d9 |
import numpy
from itertools import tee, izip
def pairwise(iterable):
"s -> (s0,s1), (s1,s2), (s2, s3), ..."
a, b = tee(iterable)
next(b, None)
return izip(a, b)
def gaussian2d(size, sigma, theta):
x, y = numpy.meshgrid(numpy.arange(float(size[0])),numpy.arange(float(size[1])))
xc = x - size[... | christianpanton/slopesnake | slope/util.py | Python | gpl-3.0 | 592 | [
"Gaussian"
] | 2f6fb37c9201329158a8b116f7cd89d1d2419ea34405cf211c480d26ab29bbe5 |
""" The Matcher service provides an XMLRPC interface for matching jobs to pilots
It uses a Matcher and a Limiter object that encapsulated the matching logic.
It connects to JobDB, TaskQueueDB, and PilotAgentsDB.
"""
__RCSID__ = "$Id$"
from types import StringType, DictType, StringTypes
from DIRAC ... | vmendez/DIRAC | WorkloadManagementSystem/Service/MatcherHandler.py | Python | gpl-3.0 | 4,905 | [
"DIRAC"
] | 34a837575a938d1c577bfe5fb36c0ffc00344ce6ac6a3e5f8fa09a8fdc4f142b |
from __future__ import print_function
import numpy as np
from astrometry.util.util import Tan
from astrometry.util.fits import fits_table
from tractor import PointSource, getParamTypeTree
from tractor.galaxy import ExpGalaxy, DevGalaxy, FixedCompositeGalaxy
from tractor.ellipses import EllipseESoft, EllipseE
N_subt... | gregreen/legacypipe | py/legacypipe/desi_common.py | Python | gpl-2.0 | 11,167 | [
"Galaxy"
] | 194220bd22be63e544571dc24fbf31c02fef6a3840dda7858aa8a29d07a17872 |
import ast
from fractions import Fraction
from artiq.language import core as core_language
from artiq.language import units
embeddable_funcs = (
core_language.delay_mu, core_language.at_mu, core_language.now_mu,
core_language.delay,
core_language.seconds_to_mu, core_language.mu_to_seconds,
core_langu... | fallen/artiq | artiq/transforms/tools.py | Python | gpl-3.0 | 4,256 | [
"VisIt"
] | c08b7d493428b8bd029241a8f1f0e626165b10c40df4194e9e99053ab5116d57 |
# Copyright 2013 Google Inc. All Rights Reserved.
"""Config for Google Cloud Platform CLIs."""
import json
import os
from googlecloudsdk.core import exceptions
from googlecloudsdk.core.util import files as file_utils
from googlecloudsdk.core.util import platforms
class Error(Exception):
"""Exceptions for the cl... | ychen820/microblog | y/google-cloud-sdk/lib/googlecloudsdk/core/config.py | Python | bsd-3-clause | 17,793 | [
"MOE"
] | 08e8332a1eb744a5a78c552ce827f72716b721bf390ee3d858b3137a1494cc37 |
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 06 11:36:31 2016
@author: Br3A
"""
import numpy, math
class Neuron:
def __init__(self, net = 0, out = 0):
self.net = net # total net input to the neuron
self.out = out # output of neuron after passing input through activation functi... | Yousuf-CS/Artificial-Intelligence | NN.py | Python | mit | 5,843 | [
"NEURON"
] | 2e838fb1c98574e6db3ce310a9891a009ad1cc5b129f389d0bf728cb95fcccbf |
#!/usr/bin/env python
""" load mWGS Raw Seq Set into OSDF using info from data file """
import os
import re
from cutlass.Cytokine import Cytokine
import settings
from cutlass_utils import \
load_data, get_parent_node_id, list_tags, format_query, \
write_csv_headers, values_to_node_dict, write_out_csv... | JAX-GM/osdf_submit | nodes/cytokine.py | Python | gpl-3.0 | 5,794 | [
"VisIt"
] | 67af671d34886ebfe2fd6c3e3727c884904d44f22dd5434b9705137fc573f19d |
from __future__ import print_function
import sys, os, collections
sys.path.insert(1, os.path.join("..", "..", ".."))
import matplotlib
matplotlib.use("Agg") # remove warning from python2 (missing TKinter)
import h2o
import matplotlib.pyplot
from tests import pyunit_utils
from h2o.automl import H2OAutoML
from h2o.esti... | michalkurka/h2o-3 | h2o-py/tests/testdir_misc/pyunit_explain.py | Python | apache-2.0 | 20,392 | [
"Gaussian"
] | 27b4f8be220ec20d136a3367fbbc0c42c626419f1b7f1e45d04e29eaa3d65aff |
#!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
from numpy.random import rand, randn, permutation, multivariate_normal
import shogun as sg
def generate_synthetic_logistic_data(n, p, L, blk_nnz, gcov, nstd):
# Generates synthetic data for the logistic regression, using the example
# from ... | shogun-toolbox/shogun | examples/undocumented/python/graphical/group_lasso.py | Python | bsd-3-clause | 7,724 | [
"Gaussian"
] | 548bb2297623a8988cb1307b77145e50c8fdb2c87c994debc2c9ff011fb43759 |
#!/usr/bin/env python2.7
import os, sys
from numpy import *
##################
### For gREM ###
##################
#
# Take walker enthalpies/energies from multiple, identical
# length trajectories, concatenate, and follow exchanges
# to get replica enthalpies/energies. Start and stop are
# file handles for each re... | dstelter92/gREM | tools/get-hist-enthalpies.py | Python | gpl-2.0 | 5,100 | [
"LAMMPS"
] | e5273ea399810c8d7998c2117c1dc512ae0effabfb1ace19cef11792678e8f66 |
"""
LMS edxnotes page
"""
from __future__ import absolute_import
from bok_choy.page_object import PageLoadError, PageObject, unguarded
from bok_choy.promise import BrokenPromise, EmptyPromise
from selenium.webdriver.common.action_chains import ActionChains
from common.test.acceptance.pages.common.paging import Pagina... | ESOedX/edx-platform | common/test/acceptance/pages/lms/edxnotes.py | Python | agpl-3.0 | 20,755 | [
"VisIt"
] | 10f8aa49a8c3f4d0deb365001b9f39f8e1506da3c559bda0b3f2dc9a8c087f1a |
import os
import subprocess
from multiprocessing import Process
import time
class Runner:
def __init__(self, code, code_bin, environment, use_mpi=True, nmpiproc=2, nconcurrent=1, runtime=3600):
if code.lower() not in ['abinit', 'vasp', 'octopus', 'dftb', 'fireball']:
raise ValueError('Code no... | MaterialsDiscovery/PyChemia | pychemia/runner/_runner.py | Python | mit | 5,568 | [
"ABINIT",
"Octopus",
"VASP"
] | 3a77d05fb56c1cd5cceb230785217aa68a8db39b8c2ec924c6ff5991ad4c7a7c |
#!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
#
#
# 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... | bearstech/ansible | lib/ansible/modules/network/avi/avi_ipamdnsproviderprofile.py | Python | gpl-3.0 | 5,006 | [
"VisIt"
] | 50439c4b33efeaa2a68269893d132f69bd0a9ef8761a490562ea9d6c05ce492a |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import os
import unittest
import warnings
from pymatgen.apps.borg.hive import (
GaussianToComputedEntryDrone,
SimpleVaspToComputedEntryDrone,
VaspToComputedEntryDrone,
)
from pymatgen.entries.computed_entries imp... | vorwerkc/pymatgen | pymatgen/apps/borg/tests/test_hive.py | Python | mit | 4,628 | [
"pymatgen"
] | 9083cecde051a64c737ee62f02464a6ea9ba31a0d509f64909816baf34bbe313 |
#!/usr/bin/env python
#
# Restriction Analysis Libraries.
# Copyright (C) 2004. Frederic Sohm.
#
# 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.
#
"""Restriction Enzyme classes.
Notes abou... | zjuchenyuan/BioWeb | Lib/Bio/Restriction/Restriction.py | Python | mit | 81,940 | [
"Biopython"
] | b8687bf89ccae3a9474b8079173f69fc907fa1ad001cef878f898a245e85a025 |
"""
# Copyright (C) 2013-2016 Stray <stray411@hotmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
... | blythemusic/ClyphX | ClyphXControlSurfaceActions.py | Python | lgpl-2.1 | 18,706 | [
"Amber"
] | 914d8729aa87c29a6f5f435787eed7033acc4331328c703d112b5e2336f2b8c9 |
# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots[
"test_get_doctor_output 1"
] = """Using configuration file found at ./tests/invalid-thumbor.conf
Thumbor doctor will analyze your instal... | thumbor/thumbor | tests/snapshots/snap_test_doctor.py | Python | mit | 5,915 | [
"VisIt"
] | df80039e459f2fd3ad195d52e6b2bfabf60e37fa94a5bac488575af4ffc487c3 |
#!/usr/bin/python
"""
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* isingrand: postprocessing of isingrand data
* Copyright (c) 2013 Analabha Roy (daneel@utexas.edu)
*
* This is free software: you can redistribute it and/or modify it under the
* terms of version 3 of the GNU L... | hariseldon99/archives | isingrand_varalpha/scripts/postprocess.py | Python | gpl-2.0 | 4,399 | [
"Gaussian"
] | a492db8e4aef3760ca885081a3360064707f5688130cf4228dfc64b7e16ea04f |
# -*- 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 required by applicable law or... | googleapis/python-asset | tests/unit/gapic/asset_v1p4beta1/test_asset_service.py | Python | apache-2.0 | 58,656 | [
"Octopus"
] | f7ac05d59aa469a126862d50a2380d982fb18a91e2a7d1cb1e52ec360cd0130d |
#
# Copyright 2016 Providence Health Services
#
# This software is distributed under a dual license. For academic,
# non-commerical use of the sofware the GNU Lesser General Public
# License (LGPLv3) open source license may be used. See the License.LGPL.md
# file at the top of the source tree for more information. F... | venkateshr89/neoantigen | lambda/ppmp-runtask/lambda_function.py | Python | lgpl-3.0 | 6,524 | [
"Brian"
] | 3eba67625d474fde640b6d055c52e950f889699b65d28f7e62672444dbd055f6 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'SurveyQuestion.start_date'
db.add_column(u'survey_surveyq... | myvoice-nigeria/myvoice | myvoice/survey/migrations/0020_auto__add_field_surveyquestion_start_date__add_field_surveyquestion_en.py | Python | bsd-2-clause | 13,665 | [
"VisIt"
] | d9ba4df83b0538fdb7fd486f91f5422a47b424264a33f5b7100af81d6eb1ce63 |
from __future__ import print_function, division
import math
import numpy as np
import gmm
from noisy_bhc import noisy_bhc
class noisy_rbhc(object):
"""
An instance of Randomized Bayesian hierarchical clustering CRP
mixture model, where there is noise on the observations.
Attributes
----------
... | stuartsale/pyBHC | pyBHC/noisy_rbhc.py | Python | bsd-3-clause | 31,412 | [
"Gaussian"
] | f036a8a41c4bbf3226be721dce10805f40c5d7fd314b4c79b60e5715bc094beb |
"""
Clone an undirected graph. Each node in the graph contains a label and a list
of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as a separator for each node, and , as a separator for node label and
each neighbor of the node.
As an example, consider the serialized graph {... | fantuanmianshi/Daily | LeetCode/clone_graph.py | Python | mit | 1,783 | [
"VisIt"
] | bddd3e867917672829c605677dcade4fe3e7077b85105c173ecb82cd6d50736f |
# -*- coding: utf-8 -*-
import numpy as np
from skimage.filters import gaussian
from crystals import Crystal
from skued import detector_scattvectors, electron_wavelength, powder_calq, powdersim
np.random.seed(23)
def test_powder_calq_simulation():
"""
Test calibration from simulation, down to 1% error . P... | LaurentRDC/scikit-ued | skued/image/tests/test_calibration.py | Python | gpl-3.0 | 3,326 | [
"CRYSTAL",
"Gaussian"
] | 070bd15db7e6419a05d6b087905efc02fd24de92d56c08c5caafbd81f7fb502f |
# Banner.py
# Aaron Taylor
# Moose Abumeeiz
#
# This is the class for the banner that shows up when you take a pill
# or appear on a new floor
#
from pygame import *
from time import time as cTime
from func import *
from const import *
class Banner:
def __init__(self, text, textures):
self.text = text # The text ... | ExPHAT/binding-of-isaac | Banner.py | Python | mit | 1,023 | [
"MOOSE"
] | 1b63b3ccf4c7eeb1698ea5d10f0d718d244d7e890bfbd7241b90dd856175adea |
from django.db import models
from django.utils.translation import ugettext, ugettext_lazy as _
from django.utils.timezone import now
class Visit(models.Model):
class Meta:
verbose_name = _('Visit')
verbose_name_plural = _('Visits')
unique_together = ('collaborator', 'harvest')
perm... | sauli6692/ibc-server | rte/models/visit.py | Python | mit | 763 | [
"VisIt"
] | fe55cf2f7d5e3f65195164ebd08117a344a10d91d229a26c02e593150c61de01 |
from builtins import str
from builtins import range
from builtins import object
import logging
import datetime
import os
import shutil
import tempfile
import re
import traceback
import json
import time
from biomaj.utils import Utils
from biomaj.download.ftp import FTPDownload
from biomaj.download.http import HTTPDownl... | markiskander/biomaj | biomaj/workflow.py | Python | agpl-3.0 | 43,183 | [
"BLAST"
] | 5d29bcfdd66cd653ecd04ebb87e49d983ed691a3a80eb43b759fccaa2ae5a042 |
# Copyright 2021, 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 required by applicable law or agreed to in writing... | google-research/public-data-in-dpfl | mime_loop.py | Python | apache-2.0 | 12,966 | [
"Gaussian"
] | 8d672e063877f4525732693b21265a8debabc210e58d9806f304b215a08fb483 |
# 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 a... | DeepThoughtTeam/tensorflow | tensorflow/python/ops/gradients.py | Python | apache-2.0 | 27,661 | [
"VisIt"
] | a799a95a3e7d626cc924c2cc5ba890bafd9a0bcf56c81d83af8459d129906d05 |
# This file is part of Shyft. Copyright 2015-2018 SiH, JFB, OS, YAS, Statkraft AS
# See file COPYING for more details **/
import os
import time
from shyft import api
from netCDF4 import Dataset
from .time_conversion import convert_netcdf_time
from shyft.repository.interfaces import GeoTsRepository, ForecastSelectionCri... | jfburkhart/shyft | shyft/repository/netcdf/wx_repository.py | Python | lgpl-3.0 | 4,823 | [
"NetCDF"
] | 9954bc1cfb56b7b5f4aa477e209d3c755448fa7195b241fe55de68d23e16ffeb |
<<<<<<< master
'''
Created on 24.08.2016
@author: jvanderwoerd
'''
from traits.api import \
Float, HasTraits, Property, cached_property, Int, \
Instance, Array
import numpy as np
from oricreate.api import MappingTask
from oricreate.api import YoshimuraCPFactory, \
fix, link, r_, s_, t_, MapToSurface,\
... | simvisage/oricreate | apps/sandbox/laura/ex04_canopy.py | Python | gpl-3.0 | 44,488 | [
"Mayavi"
] | 4759ce445a5fd373a65fceab34250be3089ea5ccf84fd65cfe1aadde6f2cf9fb |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2008 Gary Burton
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either v... | arunkgupta/gramps | gramps/gen/plug/menu/_placelist.py | Python | gpl-2.0 | 1,797 | [
"Brian"
] | 94bd89640093704c3e63aaef350798bf9f29bb4ad834839751c94b716e7d7198 |
#!/usr/bin/env ipython
from pylab import *
import numpy as np
import console_colors as ccl
from scipy.io.netcdf import netcdf_file
import os
import matplotlib.patches as patches
import matplotlib.transforms as transforms
from numpy import array
from matplotlib.gridspec import GridSpec
import matplotlib.pyplot as plt
c... | jimsrc/seatos | mixed/figs/sheaths.paper/src/together2.py | Python | mit | 9,585 | [
"NetCDF"
] | e0d81cb50125a22661c7f58abac564145fc8265a70eafd880c1eed5d88150d84 |
# Copyright 2016-2020 The GPflow Contributors. 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 appli... | GPflow/GPflow | gpflow/models/vgp.py | Python | apache-2.0 | 14,665 | [
"Gaussian"
] | 22f2682032d4f5c2058e7503d1b61f391855dba24c7e6cab750133c7b9eefa46 |
"""
A buffered iterator for big arrays.
This module solves the problem of iterating over a big file-based array
without having to read it into memory. The `Arrayterator` class wraps
an array object, and when iterated it will return sub-arrays with at most
a user-specified number of elements.
"""
from __future__ impo... | plaes/numpy | numpy/lib/arrayterator.py | Python | bsd-3-clause | 6,437 | [
"NetCDF"
] | 90b26509b5b08d3d455ddb0151ecfa84e188b84e3e883799ee9721ef640beee4 |
"""
Authentication example using Flask-Login
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This provides a simple example of using Flask-Login as the authentication
framework which can guard access to certain API endpoints.
This requires the following Python libraries to be installed:
* Flask
... | dnordberg/flask-restless | examples/server_configurations/authentication/__main__.py | Python | agpl-3.0 | 4,483 | [
"VisIt"
] | 2cac5ba7bccc0b1ab51711a80e87d818132949bc922f3b1fd355df8a1ca27974 |
"""
Tests for Shopping Cart views
"""
import pytz
from urlparse import urlparse
from decimal import Decimal
import json
from django.http import HttpRequest
from django.conf import settings
from django.test import TestCase
from django.test.utils import override_settings
from django.core.urlresolvers import reverse
from... | olexiim/edx-platform | lms/djangoapps/shoppingcart/tests/test_views.py | Python | agpl-3.0 | 89,071 | [
"VisIt"
] | 368fb7713a44f5754a5bf04e7a8e63a85f8ed9a2e84f4e6f673e6b0174d354ab |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.