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
import os
import numpy as np
import xarray as xr
from pytest import approx
from pymt.grids import RasterField
from pymt.printers.nc.database import Database
def open_nc_file(filename):
import netCDF4 as nc
return nc.Dataset(filename, "r", format="NETCDF4")
def test_2d_constant_shap... | csdms/pymt | tests/printers/nc/test_database.py | Python | mit | 3,687 | [
"NetCDF"
] | a86dcf06e3583757dbefc23488cf1a46d4a64f540e2275dd4f68e23e814aade8 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | kobejean/tensorflow | tensorflow/python/autograph/core/converter.py | Python | apache-2.0 | 11,637 | [
"VisIt"
] | a39adcd3d191e40bad0782b7b2773ab11e2d7258479a15e4b9755fa13a01c86e |
'''
Created on 16/02/2010
@author: jose
'''
# Copyright 2009 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia
# This file is part of franklin.
# franklin 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... | JoseBlanca/franklin | franklin/snv/snv_annotation.py | Python | agpl-3.0 | 74,722 | [
"pysam"
] | ab526bf358ca1c1fec5ccf82b1f834242fd29de011d149a418f61620e292d348 |
#!/usr/bin/env python
"""
Script to setup some test data.
This is useful during development when we are continuously wiping the db
and want to get some new data in quickly.
NOTE: Several tests use this module, so avoid breaking tests when changing
this.
"""
import os
import random
import shutil
import subprocess
im... | woodymit/millstone | genome_designer/scripts/bootstrap_data.py | Python | mit | 18,750 | [
"BWA"
] | a234d3bd9fa4956158820440e726c12c66e2241933e9db95be5eac43ce2c25e8 |
# __main__
class ParameterError(Exception):
pass
# T-Coffee
class TcoffeeError(Exception):
def __init__(self, result, error, alignInFile, system_command):
message = (
'tcoffee blast error for file: {0}, with error message: {1}, '
'when trying to run command: {2}'
.... | ostrokach/elaspic | elaspic/errors.py | Python | mit | 2,077 | [
"BLAST",
"Biopython"
] | 151d2efde43dbffaa433fdb1c0414988ba8a3623bec4e8f7480726f86953b911 |
# -*- coding: utf-8 -*-
# This work is licensed under the GNU Public License (GPL).
# To view a copy of this license, visit http://www.gnu.org/copyleft/gpl.html
# Written by Abd Allah Diab (mpcabd)
# Email: mpcabd ^at^ gmail ^dot^ com
# Website: http://mpcabd.igeex.biz
# Ported and tweaked from Java to Python, from ... | SmartElect/SmartElect | rollgen/arabic_reshaper.py | Python | apache-2.0 | 13,671 | [
"VisIt"
] | d5fab593429837c825738e3c41d52492a83e87044fe3edfab03bad56bf704e3f |
"""Generators to create different output formats."""
class Augtool:
"""Visits each node in turn and generates augtool set commands"""
def visit(self, pathnode, augpath):
"""Generates augtool set commands for everything below augpath in
pathnode"""
topnode = pathnode.topnode(augpath)
... | domcleal/aug2cmds | aug2cmds/outputs.py | Python | bsd-3-clause | 877 | [
"VisIt"
] | 080574770979d9ff72ca5c4019573e55042aac7f58bf7ac89b5d28e0323eb0c0 |
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import gtk, pango
from zeroinstall import _, translation
from zeroinstall.cmd import slave
from zeroinstall.support import tasks, pretty_size
from zeroinstall.injector import model, download
from zeroinstall.gui impo... | afb/0install | zeroinstall/gui/iface_browser.py | Python | lgpl-2.1 | 16,982 | [
"VisIt"
] | 75c92d10904794928536ee4a83820f53c0a42783799f42e3170cf4ba9610fff8 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module is intended to match crystal structures against known crystallographic "prototype"
structures.
In this module, the AflowPrototypeMatcher uses the AFLOW LIBRARY OF CRYSTALLOGRAPHIC PROTOTYPES.
If using this par... | vorwerkc/pymatgen | pymatgen/analysis/prototypes.py | Python | mit | 4,051 | [
"CRYSTAL",
"pymatgen"
] | 7a8631ece3954fe83f80adeff561a49195675f212245893d360c9e9b66c93693 |
# compartment_net_no_array.py ---
#
# Filename: compartment_net_no_array.py
# Description:
# Author:Subhasis Ray
# Maintainer:
# Created: Sat Aug 11 14:30:21 2012 (+0530)
# Version:
# Last-Updated: Tue May 7 18:26:26 2013 (+0530)
# By: subha
# Update #: 974
# URL:
# Keywords:
# Compatibility:
#
#
# Comm... | BhallaLab/moose-examples | snippets/compartment_net_no_array.py | Python | gpl-2.0 | 15,391 | [
"MOOSE"
] | a59b0437c7b9ccbf5dd962e5f8ba3a8f4032b603cee9eb82ca5821bcf17aab51 |
#!/usr/bin/env python3
import os, re
import pickle
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from netCDF4 import Dataset
from datetime import datetime
# --------------------------------------------------------------------------------
def ncdf_2_df(nc_fname):
... | rhyswhitley/flux_learner | src/ncdf_to_df.py | Python | cc0-1.0 | 4,130 | [
"NetCDF"
] | 9f7ec48dde251e131ccb7c2bfdcb2e037360cdec5e1184e6b6e3dbf7b5f93798 |
import unittest
import datetime
import json
from mock import MagicMock
from DIRAC.DataManagementSystem.Agent.RequestOperations.ReplicateAndRegister import ReplicateAndRegister
from DIRAC.DataManagementSystem.Agent.RequestOperations.MoveReplica import MoveReplica
from DIRAC.RequestManagementSystem.Client.File import F... | fstagni/DIRAC | DataManagementSystem/Agent/RequestOperations/test/Test_RequestOperations.py | Python | gpl-3.0 | 8,115 | [
"DIRAC"
] | ce63a51a9a629690ff5fab7e56961d74893fbabd9baf4c53be2bc401703d0b2a |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# rm - backend to remove files/directories in user home
# Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gener... | heromod/migrid | mig/shared/functionality/rm.py | Python | gpl-2.0 | 9,938 | [
"Brian"
] | 25ed74d611dd523973b9ca7a639a796e1369298957f4d50a87afa3d470f78f9f |
""" EC2Endpoint class is the implementation of the EC2 interface to
a cloud endpoint
"""
import os
import json
import boto3
from DIRAC import gLogger, S_OK, S_ERROR
from DIRAC.Core.Utilities.File import makeGuid
from DIRAC.Resources.Cloud.Endpoint import Endpoint
class EC2Endpoint(Endpoint):
def __init__(sel... | DIRACGrid/DIRAC | src/DIRAC/Resources/Cloud/EC2Endpoint.py | Python | gpl-3.0 | 7,409 | [
"DIRAC"
] | 313fbc7c7dc3ec69952d58136d979dd2691a06f37dd6c1214a7ab08186451d5b |
__author__ = 'Christo Robison'
from PyQt4 import QtGui, QtCore
import sys
import HyperSpecGui
import numpy as np
from scipy import ndimage
from scipy import fftpack as ft
import matplotlib
matplotlib.use('QT4Agg')
import matplotlib.pylab as pylab
import matplotlib.pyplot as plt
import time
import pyqtgraph
import hs_... | Crobisaur/HyperSpec | Python/HyperSpecApp.py | Python | gpl-3.0 | 10,241 | [
"Gaussian"
] | 5caa552216afe1a0496bb42e1da003d8314a88d9ae2319972e8163b5fd366247 |
#
# Copyright (C) 2013-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | KaiSzuttor/espresso | testsuite/python/brownian_dynamics.py | Python | gpl-3.0 | 11,788 | [
"ESPResSo"
] | 487c6a849674c6801529afbfb99a68f82bfcd59b4b74fbec4be87838a262a6ef |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Module for commons shared by tests """
import re
import logging
logging = logging.getLogger('sneakylang')
from sneakylang.err import ParserRollback, MacroCallError
from sneakylang.macro import Macro
from sneakylang.node import Node, TextNode
from sneakylang.parser i... | Almad/sneakylang | sneakylang/test/module_test.py | Python | bsd-3-clause | 5,032 | [
"VisIt"
] | 9998010076552951cd93bb45993214a364ffcf1f2d6c5a4357fe2abda876491a |
#!/usr/bin/env python
# -*- coding: Latin-1 -*-
""" setbuild - set the build environment you require """
##
def syntax():
"syntax - print syntax of setbuild.py "
print "syntax: python setbuild.py Win32|x64|all|reset"
##
##
# import modules
import os.path
import sys
import xml.dom.minidom
from xml.sax.sa... | coapp-packages/exiv2 | msvc64/setbuild.py | Python | gpl-2.0 | 4,218 | [
"VisIt"
] | 7c27a046124730e5f94cb09186c95c012a902dfd5c964c64242796871b348569 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB ... | retrography/scancode-toolkit | tests/textcode/test_markup.py | Python | apache-2.0 | 7,836 | [
"VisIt"
] | 93ac52f7c4ab807bedc47c4d315d7f115da51af5940556e55a4777debcaf8b6d |
"""
Signal handling functions for use with external commerce service.
"""
from __future__ import unicode_literals
import json
import logging
from urlparse import urljoin
import requests
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.models import AnonymousUser... | lduarte1991/edx-platform | lms/djangoapps/commerce/signals.py | Python | agpl-3.0 | 9,145 | [
"VisIt"
] | c78338a886125fdb6a398bbba95cdead16bb6ba16652446c60834e21924c233b |
teamAbv = {
"L.A": "LOS ANGELES KINGS",
"ANA": "ANAHEIM DUCKS",
"CAR": "CAROLINA HURRICANES",
"MTL": "MONTREAL CANADIENS",
"DET": "DETROIT RED WINGS",
"COL": "COLORADO AVALANCHE",
"NSH": "NASHVILLE PREDATORS",
"BOS": "BOSTON BRUINS",
"DAL": "DALLAS STARS",
"PHI": "PHILA... | shawger/pucklab | db/scraping/utils.py | Python | gpl-3.0 | 4,478 | [
"COLUMBUS"
] | 4a8053251f8de99e0befd5e1339e9494d6a317e60b0a4eb9eaf4e979af0b2c0d |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Classes that deal with macromolecular crystal structures.
Includes: PDB and mmCIF pars... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/PDB/__init__.py | Python | gpl-2.0 | 2,165 | [
"Biopython",
"CRYSTAL"
] | 836af2e08b08265505ff0cd4f8c5f96c4b441490027d867c7b05ffca988a8a63 |
#!/usr/bin/env python
from __future__ import division
import numpy as np
import argparse
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
import asetk.format.cube as cube
import asetk.format.qe as qe
import asetk.format.igor as igor
import sys
# Define command lin... | ltalirz/asetk | scripts/cube-plot.py | Python | mit | 7,083 | [
"Gaussian"
] | 6a96b57a3c754b4831ec77901dbe49beb0938efce452c06e8bbb29022f952ce3 |
import math
from random import gauss, expovariate
from matplotlib import pyplot
from scipy import optimize, arange
from pyhistuples.pyhistoplots import histo_plot
from pyhistuples.pyhistogram.histogram import Histogram, Axis
def gaussian(mu, sigma2, x) :
norm = math.sqrt( 2*math.pi*sigma2 )
exponent = -1*pow... | juanchopanza/pyhistuples | examples/example_histo_fit.py | Python | lgpl-3.0 | 1,437 | [
"Gaussian"
] | 2f395e27fc5525ea8702b38559d0c9f6ccc07869ecf1de480b12c4c8fae42299 |
from unittest import TestCase
from galaxy.util.bunch import Bunch
from galaxy.jobs.output_checker import check_output
from galaxy.jobs.error_level import StdioErrorLevel
from galaxy.tools import ToolStdioRegex
class OutputCheckerTestCase( TestCase ):
def setUp( self ):
self.tool = Bunch(
stdi... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/test/unit/jobs/test_job_output_checker.py | Python | gpl-3.0 | 3,321 | [
"Galaxy"
] | 03ddf190ad0bfaddb354f6fdbb96f79dcb266d3e570b58e0518f12db16084cc9 |
#!/usr/bin/python
import numpy as np
from scipy.integrate import odeint
import sys
ELEC_MASS = 9.10938356E-31
ELEC_CHARGE = -1.60217662E-19
FUND_FREQ = 3.7474057E14
SP_LIGHT = 3E8
FOCUS_RADIUS = 30E-6
PL_FWHM = 5E-15
PULSE_ENERGY = 0.6E-3
EPSILON_o = 8.85418782E-12
TIME_GRID = 5000
INTENSITY = 1.88... | KavuriG/classical-calc-three-color | ponderomotive-test/odeint_solve.py | Python | gpl-3.0 | 4,828 | [
"Gaussian"
] | 82d0071e6eb455ab0dfb38fe581421c53319f7291335a40cfc8e42ba7b0997e4 |
#!/usr/bin/env python
"""
Returns the calib stars for given dataIds
"""
import os, re
import numpy as np
import lsst.afw.table as afwTable
import lsst.daf.persistence as dafPer
import lsst.pex.exceptions
import hsc.tools.bick.utils as hscUtil
import astropy.table
def getMag(flux, fluxerr, zeropoint):
"""
r... | surhudm/hscTools | clackner/bin/getCalibStars.py | Python | gpl-3.0 | 6,716 | [
"Gaussian",
"VisIt"
] | 9f04bc9e1d93661ce8300ff5b55ae6f4586efa27c80908aa83bd6405f1a5cc7e |
###############################################################################
##
## Copyright (C) 2011-2014 Tavendo GmbH
##
## 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
##
#... | liurenqiu520/AutobahnPython | autobahn/autobahn/websocket/protocol.py | Python | apache-2.0 | 166,198 | [
"VisIt"
] | 607a2f50b49c5624f2193f3c4ce2268e97492d981bf3e6ea076eebad7fe3303e |
# -*- coding: utf-8 -*-
import re
from app.models import User, Blog
from app import db, create_app
import unittest
from flask import url_for
class FlaskClientTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_context()
self.app_c... | seagullbird/BLEXT | tests/test_client.py | Python | mit | 15,643 | [
"VisIt"
] | e89d5a7f30f38d6fa9146674a195f947eeead8cdc05f0bf5ef502602fe7d6012 |
from unittest import TestCase
from flexible_permissions.roles import (
roles_to_actions,
actions_to_roles,
)
class RolesTestCase(TestCase):
def test_roles_to_actions(self):
self.assertItemsEqual([
'zoo.open',
'exhibit.create',
'animal.feed',
'exhibit... | staab/django-flexible-permissions | tests/test_roles.py | Python | mit | 662 | [
"VisIt"
] | 8e4e6e224dc21cbd60ce6f39ca51f5b230b2363ebf9599dcfd964b5b8d96d7e5 |
# 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.py | Python | apache-2.0 | 26,910 | [
"Gaussian"
] | 022a8885c6d204244663c9089f45fbbaa1c3bb12445d8ded56fa648045324f41 |
"""This demo uses PETSc's TAO solver for nonlinear (bound-constrained)
optimisation problems to solve a buckling problem in FEniCS.
We consider here a hyperelastic beam constrained in a box
under axial compression.
The box is designed such that this beam will lose stability and move
upwards (and not downwards) in orde... | FEniCS/dolfin | demo/undocumented/buckling-tao/python/demo_buckling-tao.py | Python | lgpl-3.0 | 4,418 | [
"VTK"
] | 9c12f1704c513ca0efabe5da1a8790c582db9d897f0c86f0234d046641160cdd |
from data_news import db, cache
from ..utils import epoch_seconds
from flask.ext.sqlalchemy import Pagination
from sqlalchemy import func
from datetime import datetime
from math import log
class Vote(db.Model):
""" We keep track of very vote
Pretty simple here, we have:
an item they voted on... | joehand/DataNews | data_news/frontend/models.py | Python | bsd-3-clause | 6,674 | [
"ADF"
] | e7ea4bdc018a3c692282a2b9acf61135fcb1fd969eaa1ba618ae2f268b5c670d |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
#
# RMG - Reaction Mechanism Generator
#
# Copyright (c) 2002-2009 Prof. William H. Green (whgreen@mit.edu) and the
# RMG Team (rmg_dev@mit.edu)
#
# Permission is hereby granted, free ... | comocheng/RMG-Py | rmgpy/cantherm/qchem.py | Python | mit | 17,000 | [
"Q-Chem"
] | a0d6f68ab9c2624476af0f63340a1939a4332569138964f333ba2e0a09517a18 |
#PPM from RC transmitters Calibrate Version 0.5
#
#PPMRC - PPM interpreter, calibrator and remapper
#Copyright (C) 2017-2018 Francesco Antonetti Lamorgese Passeri
#
#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 Soft... | antlampas/ppmrc | ppmrc.py | Python | gpl-3.0 | 4,958 | [
"VisIt"
] | 9d454666558c9bbeaa22e1b7bba93604ead439f04de6dc9a35bd58a7f7e513b5 |
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Eric Martin <eric@ericmart.in>
# Giorgio Patrini <giorgio.patrini@anu.edu.au>
# Lic... | hugobowne/scikit-learn | sklearn/preprocessing/data.py | Python | bsd-3-clause | 68,325 | [
"Gaussian"
] | 6ca755d13fdb6731eba18e4337f65b2bb41c53833f878894c8875225fd0ffbbb |
""" Example smearing script
This script:
* Reads in mc spectra from hdf5
* Smears spectra, default is to use weighted Gaussian method, but can
also use specify random Gaussian method via command line
* Smeared spectrum is saved to the same directory with ``_smeared``
added to the file name
Examples:
T... | ashleyrback/echidna | echidna/scripts/dump_smeared.py | Python | mit | 2,974 | [
"Gaussian"
] | 4789a2b3efc15093f57172c2a0cf4258bc9cd541906bf0e2da31fe8dbda41b10 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
<<<<<<< HEAD
from __future__ import division, unicode_literals
=======
>>>>>>> a41cc069c865a5d0f35d0731f92c547467395b1b
"""
Created on Nov 10, 2012
@author: shyue
"""
<<<<<<< HEAD
=======
from __future__ impo... | Bismarrck/pymatgen | pymatgen/core/tests/test_composition.py | Python | mit | 21,119 | [
"pymatgen"
] | 6c072ebf16bd1366a69e8a3bc2500e5e6b6f8fd83dd8f40cea1e29393e211402 |
from __future__ import division
import numpy as np
from . import _hoghistogram
from .._shared.utils import skimage_deprecation, warn
def _hog_normalize_block(block, method, eps=1e-5):
if method == 'L1':
out = block / (np.sum(np.abs(block)) + eps)
elif method == 'L1-sqrt':
out = np.sqrt(block /... | kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/skimage/feature/_hog.py | Python | gpl-3.0 | 13,056 | [
"Gaussian"
] | e9f7af865672b06dea1df10e2d6db58b9e31fff2452be5bfc7a279c04df46a09 |
'''
Finds CRISPR spacers in a metagenome; then looks to see if those spacers have good BLAST matches to other contigs in that metagenome.
The implication is the CRISPR spacer will be on a host contig and the BLAST match on the other contig could be a phage it is targeting.
'''
import sys
import argparse
import subproc... | alexcritschristoph/CircHMP | crispr_matches.py | Python | gpl-2.0 | 4,395 | [
"BLAST"
] | 0a8787635389d6558905565da82b3ef357945e7dd44eac905ff81dbee5dc72b1 |
#!/usr/bin/python
#---------PLEASE INDICATE ABSOLUTE PATHS FOR THE FOLLOWING VARIABLES-------------#
# These variables indicate the directories of all tools used in this pipeline
# It is also suggested that you make all tools executable
# See the README.txt for more information
#--------------------------------------... | mdeletto/STAT-GPS | statgps_pipeline_variables.py | Python | unlicense | 2,374 | [
"BLAST"
] | 991f3a2709eba7c0438c3a975a65521249a75799a46b88dd530b49fddc6b97ef |
from area51.namd import NamdObject
from .. import node, NodeBase
from .. import NullScope, DictScope, LoggingScope
from pytest import raises
class FibThing(NamdObject, NodeBase):
def __init__(self, x):
super().__init__(x)
if x < 0:
raise ValueError('cannot calculate Fib < 1')
sel... | thatcr/knowed | src/area51/nowd/test/test_simple_fib.py | Python | mit | 724 | [
"NAMD"
] | 582d14827aa5de969ccb0f0470082fcf8da09769115daf03cf3cb2c00836abd4 |
"""
Python implementation of the fast ICA algorithms.
Reference: Tables 8.3 and 8.4 page 196 in the book:
Independent Component Analysis, by Hyvarinen et al.
"""
# Authors: Pierre Lafaye de Micheaux, Stefan van der Walt, Gael Varoquaux,
# Bertrand Thirion, Alexandre Gramfort, Denis A. Engemann
# License: BS... | ashhher3/scikit-learn | sklearn/decomposition/fastica_.py | Python | bsd-3-clause | 18,043 | [
"Gaussian"
] | 2d9bf9ab8c92c4c6dee686d0d270c1336a1e1123212e832fa0707a78a87c1a36 |
from __future__ import print_function
__author__ = """Alex "O." Holcombe, Charles Ludowici, """ ## double-quotes will be silently removed, single quotes will be left, eg, O'Connor
import time, sys, platform, os
from math import atan, atan2, pi, cos, sin, sqrt, ceil, radians, degrees
import numpy as np
import psychopy, ... | alexholcombe/dot-jump | dataRaw/Fixed Cue/test_dot-jump25Oct2016_11-10.py | Python | gpl-3.0 | 25,144 | [
"Gaussian"
] | e451c29103f44f069b02288cd4263bb36d493caef934ac0a7427176a4098ba4c |
"""
Gaussian Process Regression Implementation using Theano for symbolic gradient computation.
Author: Shen Xu
"""
# To speed Theano up, create ram disk: mount -t tmpfs -o size=512m tmpfs /mnt/randisk
# Then use flag THEANO_FLAGS=base_compiledir=/mnt/randisk python script.py
import sys, os
import theano
import theano.... | DTUWindEnergy/FUSED-Wake | examples/gptheano_model.py | Python | mit | 16,388 | [
"Gaussian"
] | 06fd157d0bf1246d74059df397807c99a19a848ab019cc51a284fe14170cc728 |
from __future__ import division, print_function
from hscom import __common__
(print, print_, print_on, print_off,
rrr, profile) = __common__.init(__name__, '[back]')
# Python
from os.path import split, exists, join
# Qt
from PyQt4 import QtCore
from PyQt4.Qt import pyqtSignal
# Science
import numpy as np
# Hotspotter
... | Erotemic/hotspotter | hsgui/guiback.py | Python | apache-2.0 | 35,176 | [
"EPW"
] | eea8c86caf37a14b8cc2843798505aeef95b415c1103a6d2203b1032d2875ccf |
import numpy as np
from skimage import data
from skimage.color import rgb2gray
from skimage.filters import gaussian
from skimage.segmentation import active_contour
from skimage._shared import testing
from skimage._shared.testing import assert_equal, assert_allclose
def test_periodic_reference():
img = data.astro... | kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/skimage/segmentation/tests/test_active_contour_model.py | Python | gpl-3.0 | 4,472 | [
"Gaussian"
] | 00f3720817167119022d8f93813b68954421390d68989deb3c6f1fa7b2643c85 |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-14 18:47
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('visit', '0099_auto_20160120_2205'),
]
operations = [
migrations.RemoveField(
... | koebbe/homeworks | visit/migrations/0100_auto_20160614_1347.py | Python | mit | 3,577 | [
"VisIt"
] | 0ef2862c2fe99fbc9898b0db512bd4b7a12a64573deb249139d37b64f6758c57 |
from __future__ import division
from __future__ import absolute_import
from builtins import zip
from builtins import range
from past.utils import old_div
from builtins import object
import pytest
from numpy.testing import assert_array_almost_equal
from .test_helpers import u
import openpathsampling as paths
import ope... | choderalab/openpathsampling | openpathsampling/tests/test_snapshot_modifier.py | Python | lgpl-2.1 | 31,336 | [
"Dalton",
"OpenMM"
] | af5099197669fa930cda3655dfd4df537955c73a38a732ad0fa0be5be7ce0c4b |
#!/usr/bin/python
#-*-coding:utf-8-*-
#Author : Manning
#Date : 2015-10-17
'''
About how to get html.
'''
import requests
import urlparse
import time
import random
import urllib2
from splinter import Browser
import sys
sys.path.append(sys.path[0].split('MSpider')[0] + "MSpider/lib")
import logging
... | manning23/MSpider | lib/core/fetch.py | Python | gpl-2.0 | 2,531 | [
"VisIt"
] | 4fe0ea574f8bb5d2cafb45da25e28f61e187a4d0d84b7406a55b112e9e346d91 |
#! /usr/bin/env python
"""
Unit tests for landlab.io.netcdf module.
"""
import os
import numpy as np
from nose.tools import assert_equal, assert_true, assert_raises
from nose import SkipTest
try:
from nose import assert_list_equal
except ImportError:
from landlab.testing.tools import assert_list_equal
from num... | decvalts/landlab | landlab/io/netcdf/tests/test_write_netcdf.py | Python | mit | 7,250 | [
"NetCDF"
] | 3767822ce6d9324ea0891da1284d1f8ccb696a177e3909801f4f5817d79ea97f |
"""Options manager for :class:`Poly` and public API functions. """
from sympy.core import S, Basic, sympify
from sympy.utilities import numbered_symbols, topological_sort
from sympy.polys.polyerrors import (
GeneratorsError,
OptionError,
FlagError,
)
import sympy.polys
import re
class Option(object):
... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/sympy/polys/polyoptions.py | Python | agpl-3.0 | 19,339 | [
"Gaussian"
] | bb16f5708c8ac1e8a8d629a82d739dd63deba14b7c0ea1f0f94fcecbbcb6d86f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# king_phisher/server/database/models.py
#
# 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
# n... | drptbl/king-phisher | king_phisher/server/database/models.py | Python | bsd-3-clause | 10,073 | [
"VisIt"
] | 3b5557130f467ecf7a1f2a4e54818949848e6bbd928876080f7373e8a14a64b9 |
# Copyright 2013 Cloudbase Solutions SRL
# Copyright 2013 Pedro Navarro Perez
# 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... | gabriel-samfira/networking-hyperv | hyperv/neutron/hyperv_neutron_agent.py | Python | apache-2.0 | 19,665 | [
"VisIt"
] | 6d45610e6a0f7a2db47ed19a4b6fd9a974d6f3e16ce0a2244fff8ba3c09cc7a6 |
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 6 10:39:20 2017
@author: konstantin
"""
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore",category=FutureWarning)
import h5py
from dolfin import *
import numpy as np
import time
import pickle
import os
from tissue_dielectrics import... | andreashorn/lead_dbs | ext_libs/OSS-DBS/OSS_platform/FEM_in_spectrum.py | Python | gpl-3.0 | 42,544 | [
"NEURON"
] | aebb1e5280d25c16d4fa359de231926f47b73c70534ad0f6401a6d25ab02e8e7 |
# -*- coding: utf-8 -*-
#
# taxtastic documentation build configuration file, created by
# sphinx-quickstart on Tue Mar 8 19:52:20 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | fhcrc/taxtastic | docs/conf.py | Python | gpl-3.0 | 7,539 | [
"Brian"
] | 78e3c05ecce257de8b3e90289a1a44ff2dffcfe1e7242be9c6a6f570ea6361cd |
#from .... import graph
from scipy.spatial.distance import pdist
import numpy as np
import sys
from numpy.linalg import norm
from tree_kernel import TreeKernel
from copy import deepcopy
import math
def gaussianKernel(X,Y,beta):
Z=[X,Y]
return np.exp(-beta * pdist(Z, 'sqeuclidean'))
def linearKernel(X,Y):
X... | nickgentoo/scikit-learn-graph | skgraph/tree/tree_kernels_SSTprod_new.py | Python | gpl-3.0 | 16,413 | [
"Gaussian"
] | c17f7023239f0f7b30a86be0adace7b408d9970912aab422adf318eefae07d08 |
import token_names as tokens
from node_visitor import NodeVisitor
class Interpreter(NodeVisitor):
def __init__(self, tree):
self.tree = tree
def visit_Program(self, node):
self.visit(node.block)
def visit_Block(self, node):
for declaration in node.declarations:
self.v... | doubledherin/my_compiler | interpreter.py | Python | mit | 1,612 | [
"VisIt"
] | e32e6ec7cbc13a3c2ff4fb60cea58c8e9297b46db1085a2eecd1c4c8b149e612 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
import datetime
import os
from django.contrib.auth.models import Permission
from django.conf import settings
from django.core import mail
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.core.except... | acamposruiz/quecoins | pybb/tests.py | Python | bsd-2-clause | 81,999 | [
"VisIt"
] | 7fb6abb88890beb321434a005c98a667b962321c4303e1e3489b6b27d57aaf23 |
NAMES = {
'lane': 'Test1',
'lb': None,
'pu': 'Test1',
'sample': 'Test1',
'rg': 'Test1',
'pl': 'illumina'
}
DATA = {
'files': [
'/bcbio-nextgen/tests/test_automated_output/trimmed/1_1_Test1.trimmed.fq.gz',
'/bcbio-nextgen/tests/test_automated_output/trimmed/1_2_Test1.trimmed.... | a113n/bcbio-nextgen | tests/unit/data.py | Python | mit | 13,077 | [
"Galaxy"
] | 5975c5138281a81bcecea235d0eed2513c4a4ace7b5d61ff8e9e29d962e73c00 |
# Copyright 2018 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | google/jax | examples/advi.py | Python | apache-2.0 | 4,900 | [
"Gaussian"
] | 6db8cc65f64cd48843318d2577ab8fba41b3eafb646f323a8e519349f3eb13bb |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007-2008 Douglas S. Blank
# Copyright (C) 2004-2007 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011 Tim G L Lyons
# Copyright (C) 2013 Vassilii Khachaturov
#
# Th... | prculley/gramps | gramps/plugins/export/exportcsv.py | Python | gpl-2.0 | 23,778 | [
"Brian"
] | ea8ea88250f2d50dad4f50f4f7c960915c2061fa8312fe1f0741f464e1d02a59 |
#!/usr/bin/env python
import sys
import os
import subprocess
import logging
import argparse
#import align
import pysam
import numpy as np
from uuid import uuid4
FORMAT = '%(asctime)s %(message)s'
logging.basicConfig(format=FORMAT)
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
def rc(dna):
... | adamewing/tebreak | scripts/misc/fixorient.py | Python | mit | 8,916 | [
"pysam"
] | af2de0d1cf5ee4aaebb5f28b791ff3671e5f2ba06774eb9bfa5b1b1e5df4ecae |
#!/usr/bin/env python
"""%prog [options] DENSITY
Generate the hopping trajectory from the DENSITY and the original
trajectory. DENSITY must be a pickle file produced by hop and it
should contain the bulk site; otherwise most other downstream analysis
makes little sense.
If ``-s topology`` and ``-f trajectory`` are le... | Becksteinlab/hop | scripts/hop-generate-hoptraj.py | Python | gpl-3.0 | 5,537 | [
"MDAnalysis"
] | 73ecd8bdeba29b2387be48e8e7c45c73cab7ef7a72f89e6caf530f39b5c9f6f3 |
#!/usr/bin/env python
#PBS -N NiC8
#PBS -e NiC8.err
#PBS -o NiC8.log
#PBS -m ae
#PBS -q verylong
#PBS -l nodes=4:ppn=8:xeon5570
from gpaw import *
from ase import *
from gpaw.transport.calculator import Transport
from ase.lattice.surface import fcc100
from gpaw.transport.tools import sort_atoms
system = read('NiC8.tr... | robwarm/gpaw-symm | doc/documentation/transport/spin_transport.py | Python | gpl-3.0 | 2,491 | [
"ASE",
"GPAW"
] | edd7177aead3970937261f12e30e689a672b3c33137871ed5b0edbe019505ef6 |
from django.db import models
from django.contrib.auth.models import User
from multiselectfield import MultiSelectField
class Doctor(models.Model):
user = models.OneToOneField(User, primary_key=True)
def __str__(self):
return self.user.first_name + ' ' + self.user.last_name
class Patient(model... | Ronald-Tuco/Tuco | clinic/models.py | Python | mit | 2,296 | [
"VisIt"
] | fbf70c32fe35e6f346b57835d561932203c1109cb306710d4274e360f1a2c9df |
#!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 2: Nature-Inspired Algorithms
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2014 by Jeff Heaton
Licensed under the Apache License, Versi... | trenton3983/Artificial_Intelligence_for_Humans | vol2/vol2-python-examples/examples/example_crossover.py | Python | apache-2.0 | 2,433 | [
"VisIt"
] | 1049ef7077d3452dbfcf95d87ab9cd0174113ea43448e615b1d7756decaa27f4 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2016 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | kannon92/psi4 | psi4/driver/interactive.py | Python | gpl-2.0 | 1,283 | [
"Psi4"
] | e2bc53f1a7bd8da46c413bacf902fff267b9cbf0d8316a003b4169f6de77bb4f |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | anderspitman/scikit-bio | skbio/util/tests/test_misc.py | Python | bsd-3-clause | 10,934 | [
"scikit-bio"
] | 493fb1685a7a759e06d697431c2a37c4c5e667bec3bac823668845f6f9529728 |
# Copyright (C) 2017,2018
# 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, either version 3 of the Licen... | niktre/espressopp | src/integrator/PIAdressIntegrator.py | Python | gpl-3.0 | 28,813 | [
"ESPResSo",
"Gromacs"
] | 4f068149621d99372d6a2a9f561c68ffacd0dd75b1b1aad153caeb82353fcc5f |
from __future__ import print_function, absolute_import, division
import os
import sys
import time
import signal
import traceback
from socket import gethostname
from getpass import getuser
from datetime import datetime
from six import iteritems
from six.moves import cStringIO
from sqlalchemy import func
from sklearn.b... | cxhernandez/osprey | osprey/execute_worker.py | Python | apache-2.0 | 7,839 | [
"MDTraj"
] | d0f7bf4cc8a4a95f8054b154890247401fa33edd356f24c9ff58c9a80f92664e |
#!/usr/bin/env python
"""Search for inlined CPP macros in ABINIT src files"""
from __future__ import unicode_literals, division, print_function, absolute_import
__author__ = "M. Giantomassi"
import os
import re
import sys
from abirules_tools import find_src_dirs
# Files that will be checked.
re_srcfile = re.compil... | abinit/abinit | abichecks/scripts/check_inlined_macros.py | Python | gpl-3.0 | 3,029 | [
"ABINIT"
] | 16403fa927ab083681354581e2bdc5e69b0c7cc040212e7d76dead53187b6f3e |
#!/usr/bin/env python2
#
# Copyright 2013 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.
"""Convert Android xml resources to API 14 compatible.
There are two reasons that we cannot just use API 17 attributes,
so we are g... | MirakelX/old-mirakel-android | scripts/generate_v14_compatible_resources.py | Python | gpl-3.0 | 13,800 | [
"Galaxy"
] | dc2b606170e7c4e8b0f45bd7950b65f32c44174d445966488467ef6e398674a5 |
import discord
from discord.ext import commands
import random
def setup(bot):
bot.add_cog(Claptrap(bot))
class Claptrap(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def claptrap(self, ctx):
"""Can I shoot something now? Or climb some ... | corpnewt/CorpBot.py | Cogs/Claptrap.py | Python | mit | 23,857 | [
"exciting"
] | e0d33e1cce4cccc3d9e55a5e7fe1959f08e72b93d64a4d9be0dcd845ee02236a |
import vtk
import wx
def makeBorderPD(ipw):
# setup source
ps = vtk.vtkPlaneSource()
ps.SetOrigin(ipw.GetOrigin())
ps.SetPoint1(ipw.GetPoint1())
ps.SetPoint2(ipw.GetPoint2())
fe = vtk.vtkFeatureEdges()
fe.SetInput(ps.GetOutput())
tubef = vtk.vtkTubeFilter()
tubef.SetNumberOfSides... | nagyistoce/devide | snippets/addBorderToSlices.py | Python | bsd-3-clause | 1,391 | [
"VTK"
] | cfc9b7760ef7787dc24c0630f1d3057d81ab99e991cbecad9f0697e23d105af5 |
from ase.structure import molecule
from ase.parallel import parprint
from gpaw import GPAW
from gpaw.cluster import Cluster
from gpaw.analyse.hirshfeld import HirshfeldDensity, HirshfeldPartitioning
from gpaw.analyse.wignerseitz import WignerSeitz
from gpaw.test import equal
h = 0.3
gpwname = 'H2O' + str(h) + '.gpw'
... | ajylee/gpaw-rtxs | gpaw/test/partitioning.py | Python | gpl-3.0 | 1,576 | [
"ASE",
"GPAW"
] | 055490a649dcfc9fdc6c29855868bc27019c6b79bd815057a705a2a4601c0359 |
'''
As Mayavi is a little outdated, and not support wxphoenix
So I wrote a simple one, and remove two a, M(a)y(a)vi.self.color = cs if isinstance(cs, tuple) else (0,0,0)self.color = cs if isinstance(cs, tuple) else (0,0,0)self.color = cs if isinstance(cs, tuple) else (0,0,0)self.color = cs if isinstance(cs, tuple) else... | yxdragon/myvi | myvi/__init__.py | Python | bsd-3-clause | 687 | [
"Mayavi"
] | a4cdd10474e1913be60e69aee61a73b9603b9e39c188736fdaf65d666d237553 |
# -*- coding: utf-8 -*-
"""test_table_stream.py:
Test moose.TableStream.
This class takes over moose.Table and make sure that their vector is written
to stream. Once a chunk of data is written, it is removed from vector.
This way, moose never runs out of memory during simulation.
"""
__author__ ... | dharmasam9/moose-core | tests/python/streamer.py | Python | gpl-3.0 | 946 | [
"MOOSE"
] | addad33f5081e62fc4acdbdfb31ddbdfc11874e214ee90ee6a74c4c154bd12d1 |
##############################################################################
# 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... | skosukhin/spack | var/spack/repos/builtin/packages/r-affyrnadegradation/package.py | Python | lgpl-2.1 | 2,026 | [
"Bioconductor"
] | 5af6f723b4d838d3e0660009f323afc138812f74d2c23779255c2eda7512b0cb |
import characterquests
from characterutil import *
def sz_01_05_Gilneas_City(count,datatree,openfile):
characterquests.charquestheaderfaction(count,"01-05: Gilneas City","alliance",openfile)
characterquests.charquestprintfactionrace(count,datatree,openfile,14078,"Lockdown!","alliance","race_worgen_female")
characte... | DreamsofPeace/WoW-Quests | characterquests4cata.py | Python | mit | 92,686 | [
"BLAST",
"CRYSTAL"
] | c03fe9fbf27ce4048af9467b864be4e0dbde32264e28c0d66bb0986378cc07a7 |
"""
The package containing the i/o functionalities required by the
dimerizer script.
Dimerizer can deal with the following files:
* # pdb
The configuration of the system provided in pdb format.
This file is read and the specified part of the system will be
dimerized.
* # topology
The Gromacs topology fi... | marckn/dimerizer | dimerizer/__init__.py | Python | gpl-3.0 | 808 | [
"Gromacs"
] | f95970071e8066f2a750944978c90590729c9f1a4e234899f6f00fd0b265ae24 |
# -*- coding: utf-8 -*-
from pymol.cgo import *
from pymol import cmd
from random import randint
from pymol.vfont import plain
import sys
##############################################################################
# GetBox Plugin.py -- Draws a box surrounding a selection and gets box information
# This scrip... | MengwuXiao/Getbox-PyMOL-Plugin | GetBox Plugin.py | Python | gpl-3.0 | 8,874 | [
"PyMOL"
] | ade43e522ede56b1f60cb4d04073e1dc95466de7d32ec465eca663fad3a98570 |
# -*- coding: utf-8 -*-
import copy
import datetime
import logging
from pymongo import MongoClient
import time
import os
from urlparse import urlsplit, urljoin
import launchpadlib.launchpad
from launchpadlib.credentials import Consumer
from launchpadlib.credentials import authorize_token_page
from launchpadlib.uris ... | Mirantis/launchpad-reports-summary | launchpad_reporting/launchpad/lpdata.py | Python | mit | 18,939 | [
"VisIt"
] | 53b4f37ac29917295cadb78d079dd49fcc9b58cebd50f7fa38be901a1b36eb37 |
# $HeadURL$
__RCSID__ = "$Id$"
import types
from DIRAC import S_OK, S_ERROR, gConfig
from DIRAC.AccountingSystem.DB.AccountingDB import AccountingDB
from DIRAC.Core.DISET.RequestHandler import RequestHandler
from DIRAC.Core.Utilities import Time
from DIRAC.Core.Utilities.ThreadScheduler import gThreadScheduler
gAccoun... | avedaee/DIRAC | AccountingSystem/Service/DataStoreHandler.py | Python | gpl-3.0 | 6,949 | [
"DIRAC"
] | 91d2323f396bf156282fcc844cd581b9583f521d115dc2b8824fce4f0548e7eb |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2013 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## 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 F... | tiagocardosos/stoq | stoqlib/lib/ibpt.py | Python | gpl-2.0 | 6,098 | [
"VisIt"
] | 1d7cf7b849cdc4277444420560dd7df80e883a36faf2b94376809989f780dc83 |
#!/usr/bin/python
#
# Inline, Crossline, True dip, Dip Azimuth and Plane using the Gradient Structure Tensor
# Gradients calculated using Kroon's 3 point derivative filter
#
import sys,os
import numpy as np
# Import the module with the I/O scaffolding of the External Attribute
#
sys.path.insert(0, os.path.join(sys.pat... | waynegm/OpendTect-External-Attributes | Python_3/DipAndAzimuth/ex_gradient3_st_dip.py | Python | mit | 2,785 | [
"Gaussian"
] | e2d04b86ec431d34f728099cd217fed9e5e9f2f2e7f9a18f47f8d4c178557f89 |
# Copyright 2020-2021, Anthony Criscione
# Developed for the Center for Phage Technology, Texas A&M University
#
# Distributed under the BSD 3-Clause License, see included LICENSE file
from Bio import SeqIO, SeqFeature
from Bio.SeqRecord import SeqRecord
from Bio.SeqFeature import FeatureLocation, CompoundLocation
fro... | TAMU-CPT/galaxy-tools | tools/webapollo/cpt_gffParser.py | Python | gpl-3.0 | 39,217 | [
"Biopython"
] | d3ad48ff5672c9e8e3659526c520e0368a3a1b510d4ddf7d9adfdba2b63a20eb |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def populate_enrollment_info(apps, schema_editor):
"""
Populate the Enrollment info based on static text
"""
Location = apps.get_model('portal', 'Location')
for loc in Location.objects.all():... | smartchicago/chicago-early-learning | python/ecep/portal/migrations/0007_auto_20150803_1503.py | Python | mit | 1,397 | [
"VisIt"
] | e3d8bedb306beed82ed630420fef9d57a6cba27d77d12a5f14ef15d2455a62e7 |
# Copyright 2015 CERN. This software is distributed under the
# terms of the GNU General Public Licence version 3 (GPL Version 3),
# copied verbatim in the file LICENCE.md.
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Or... | kiliakis/BLonD | impedances/impedance.py | Python | gpl-3.0 | 38,779 | [
"Gaussian"
] | c34754d708a11761971713418098dec335f972196b19b82f2353e2fa5c76bd4a |
#!/usr/bin/env python
"""
Description:
Utility to partse and validate a CSAF Common Vulnerability Reporting Framework (CVRF)
file and display user-specified fields.
For additional information about CSAF or CVRF visit:
https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=csaf
Requirements:
* lxml
This tool is ... | CiscoPSIRT/cvrf-util | cvrf_util.py | Python | mit | 12,314 | [
"VisIt"
] | 31ed3d07b9a3cf08827fd8db926178f0844b434377fb3caa5758776530298790 |
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step
from common import *
from terrain.steps import reload_the_page
from selenium.common.exceptions import InvalidElementStateException
from opaque_keys.edx.locations import SlashSeparatedCourseKey
from contentstore.u... | olexiim/edx-platform | cms/djangoapps/contentstore/features/grading.py | Python | agpl-3.0 | 6,983 | [
"VisIt"
] | e33dedb050fca5fb22011b0e363a3e50209df1e8062189e6644793fc645d42f9 |
#!/usr/bin/env python
#Last-update: 12/05/07 21:02:10
import re
import sys
from sets import Set
##
# External files
#
AJS_SRC = 'AJS.js'
AJS_MINI_SRC = 'AJS_compressed.js'
##
# Standard stuff that may change in the future
#
DOM_SHORTCUTS = [
"ul", "li", "td", "tr", "th",
"tbody", "table", "input", "span", "b... | theonlyzby/SmartCAN | var/www/smartcan/www/lib/greybox/GreyBox_v5_54/compression_lib/AJS_minify.py | Python | apache-2.0 | 7,781 | [
"VisIt"
] | 87416aac1bf3913f473113b37a9770f614411ceb1aed50ebb367cef01c4b416f |
from __future__ import absolute_import
import os
import numpy as nm
from sfepy.base.testing import TestCommon
from six.moves import range
class Test(TestCommon):
@staticmethod
def from_conf(conf, options):
test = Test(conf=conf, options=options)
test.join = lambda x: os.path.join(test.options... | rc/sfepy | tests/test_linearization.py | Python | bsd-3-clause | 3,116 | [
"VTK"
] | 2d4682f128a6ffb7ad22b61e2f9469506711e19c1c9b0f36a251f9ef8b2ce050 |
# -*- coding: utf-8 -*-
"""
glashammer.utils.forms
~~~~~~~~~~~~~~~~~~~~~~
This module implements a sophisticated form validation and rendering
system that is based on diva with concepts from django newforms and
wtforms incorporated.
It can validate nested structures and works in both ways. It... | passy/glashammer-rdrei | glashammer/utils/forms.py | Python | mit | 51,663 | [
"VisIt"
] | d57cfd18da4f9ccda3b3ed721f6f336252caedd48078d8571b8768f8781b3039 |
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import os
import errno
from typing import List
from typing import Optional
from typing import Text
def relative_normpath(f, path):
# type: (Optional[Text], Text) ->... | verloop/rasa_nlu | rasa_nlu/utils/__init__.py | Python | apache-2.0 | 2,474 | [
"VisIt"
] | 9181f8fe11d22c7aacc1e9d66fd5982c2cd416de9553d63db241630523b8cb38 |
from mpinterfaces.utils import jobs_from_file
from pymatgen.io.vasp.inputs import Kpoints
from pymatgen.io.vasp.outputs import Vasprun
from scipy.optimize import curve_fit
import numpy as np
import os
from glob import glob
import pandas as pd
def diagnose_cur_dir():
datasets = []
good_vaspruns = []
rel... | joshgabriel/dft-crossfilter | CompleteApp/benchmark-precision/precision/script_to_general_pandas.py | Python | mit | 9,536 | [
"VASP",
"pymatgen"
] | 05de04380dd4b35bac20c09ce566fafba9943291e19fba38f9cb9652a090fe1c |
#!/usr/bin/env python3
#* 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/lgp... | nuclear-wizard/moose | test/tests/time_integrators/scalar/run.py | Python | lgpl-2.1 | 4,487 | [
"MOOSE"
] | c4cc21e972606196a2d6fe397e48f90bb711a89c90b884327d1427996b0f825a |
# -*- coding: utf-8 -*-
#
# cloudbridge documentation build configuration file, created by
# sphinx-quickstart on Sat Oct 10 03:17:52 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#... | gvlproject/libcloudbridge | docs/conf.py | Python | mit | 9,543 | [
"Galaxy"
] | c5ee17aa12865a6df79321a670d106ee9aef101c4a468a2c677d4739c54a5053 |
# Copyright (C) 2015 Henrique Pereira Coutada Miranda, Alejandro Molina Sanchez
# All rights reserved.
#
# This file is part of yambopy
#
#
import os
import re
from math import sqrt
from numpy import array
from qepy.auxiliary import *
meVtocm = 8.06573
class DynmatIn():
"""
Generate an manipulate quantum es... | alexmoratalla/yambo-py | qepy/dynmat.py | Python | bsd-3-clause | 3,974 | [
"Quantum ESPRESSO"
] | 7338465085a9656489a06268679c309167b25fab3bf8e0eb14fda8a21067c134 |
# 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... | wangsheng1001/incubator-singa | python/singa/initializer.py | Python | apache-2.0 | 3,999 | [
"Gaussian"
] | f2191a12a1fb288727da78f67c0db14488425bb362b6b56120ed680f41818856 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.