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
import numpy as np from scipy.optimize import leastsq from scipy.special import erf, erfc import matplotlib.pyplot as plt from labrad.units import Unit,Value V, mV, us, ns, GHz, MHz, dBm, rad = [Unit(s) for s in ('V', 'mV', 'us', 'ns', 'GHz', 'MHz', 'dBm', 'rad')] import pyle.envelopes as env from pyle.pipeline impor...
McDermott-Group/LabRAD
LabRAD/TestScripts/fpgaTest/pyle/pyle/dataking/multiqubit.py
Python
gpl-2.0
98,669
[ "Gaussian", "exciting" ]
98f66cb5bc2ef997d85cc7733315c82e7a9d198e035175b492372e302cb51da6
# -*- 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-scheduler
tests/unit/gapic/scheduler_v1beta1/test_cloud_scheduler.py
Python
apache-2.0
119,535
[ "Octopus" ]
8b99ed3815d8cf55d6f3f71c7f252f86b5a7656b40ac8e13b3d2d03538479815
from __future__ import print_function import openpyxl import scipy.io as sio import numpy as np from sklearn import linear_model import matplotlib.pyplot as plt from functions_extract_database import get_rates_from_trials folder = './database/' filename = 'SummaryDatabase' format_type = '.xlsx' # Extract all the dat...
h-mayorquin/camp_india_2016
project1/predict_location_block.py
Python
mit
1,995
[ "NEURON" ]
e3aae872838564b81d92d284cada113e2557c03040a1fbe8d5d3d4e2a62f24f6
#!/usr/bin/env python import argparse import pysam def Parser(): parser = argparse.ArgumentParser(description='miRNAs counts and coverages') parser.add_argument('-a', '--alignment', metavar='FILE', type=str, dest='alignment_file', help='Alignment bam file') parser.add_argument('--...
ARTbio/tools-artbio
tools/mircounts/mircounts.py
Python
mit
4,827
[ "pysam" ]
c3ff6062a8c684fa4110092789cc992314255524e49f59dbdd0c83aca90135e5
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Input sets for Qchem """ import logging import os from typing import Dict, List, Literal, Optional from monty.io import zopen from pymatgen.core.structure import Molecule from pymatgen.io.qchem.inputs import QCInput fro...
materialsproject/pymatgen
pymatgen/io/qchem/sets.py
Python
mit
45,466
[ "pymatgen" ]
8b27a64d16f81f53e2fddcf983b00de6626c63d2476b13c52560178b7e89ea4d
import numpy as np import math import naxion from quasi_observable_data import * run_name='mp_DM_GRID' ############################## # Set up your model # ############################## # A grid-based sampler on two variables # Model selection nax=20 model=1 # 10^2 samples nsteps = 100 # number of samples ...
DoddyPhysics/AxionNet
Example_MP_GRID.py
Python
mit
2,858
[ "Gaussian" ]
26274e4bebb2cfc5f6c97c277de95361e7cbc667842a0de9d4590bd3deba63fd
# Copyright 2017 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...
rabipanda/tensorflow
tensorflow/contrib/py2tf/pyct/pretty_printer.py
Python
apache-2.0
2,964
[ "VisIt" ]
cfc384393e141dcb86fe7c809c9adb55baf302c2e90b93f03bba5cf30ba1f867
# coding=utf-8 import os import datetime import pytz from django.core.exceptions import ValidationError from django.core.files.uploadedfile import UploadedFile from django.test import TransactionTestCase from django.contrib.auth.models import Group from rest_framework import status from hs_core.testing import MockIR...
hydroshare/hydroshare
hs_composite_resource/tests/test_composite_resource.py
Python
bsd-3-clause
156,066
[ "NetCDF" ]
c29acac54e8671593becf9de836f77663411b0ea95c964f5896138c8a89fb787
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # mpinterfaces documentation build configuration file, created by # sphinx-quickstart on Sat Mar 11 21:29:43 2017. # # 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...
henniggroup/MPInterfaces
docs/conf.py
Python
mit
5,576
[ "VASP" ]
727d6d8b339153bacf38d2652b2b8efd6175cc6a3a22f0bd9185770c0f949079
from __future__ import absolute_import import time import os.path as op import numpy as nm from sfepy.base.testing import TestCommon def fix_u_fun(ts, coors, bc=None, problem=None, extra_arg=None): return nm.zeros_like(coors) class Test(TestCommon): @staticmethod def from_conf(conf, options): im...
BubuLK/sfepy
tests/test_high_level.py
Python
bsd-3-clause
6,703
[ "VTK" ]
8a5c652bb6c97b5f8ff7f8f4c1b4926c48617d26ccbc3458de3b333af77bc0b0
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2008 Stephane Charette # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2009-2010 Gary Burton # Contribution 2009 by Bob Ham <rah@bash.sh> # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011-2014 Paul Franklin # # This ...
gramps-project/gramps
gramps/plugins/graph/gvfamilylines.py
Python
gpl-2.0
47,895
[ "Brian" ]
84430f97fedc31b3e22d2edd5daa6d059bea04f009f9813ec500b9ca48fd23f6
""" Import utilities Exported classes: ImportManager Manage the import process Importer Base class for replacing standard import functions BuiltinImporter Emulate the import mechanism for builtin and frozen modules DynLoadSuffixImporter """ from warnings import warnpy3k warnpy3k(...
nmercier/linux-cross-gcc
win32/bin/Lib/imputil.py
Python
bsd-3-clause
26,489
[ "BLAST" ]
29f00c8ffca5d2a4df0ec583aebc2ec72cc194514212ae813d0764bf1fd5fbb9
# Copyright 2015 gRPC 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 applicable law or agreed to in writing...
grpc/grpc-ios
native_src/src/python/grpcio/grpc_core_dependencies.py
Python
apache-2.0
88,129
[ "ORCA" ]
79b205aa68a67c5088f1c1605f4353b21e9bba97063d38379bfcd917bf3d24cf
#!/usr/bin/env python2 """ convert output of gamess/GAU$$IAN to ezfio Usage: qp_convert_output_to_ezfio.py <file.out> [-o <ezfio_directory>] Option: file.out is the file to check (like gamess.out) folder.ezfio is the name you whant for the ezfio (by default is file.out.ezfio) """ import sys impo...
LCPQ/quantum_package
scripts/ezfio_interface/qp_convert_output_to_ezfio.py
Python
gpl-2.0
12,989
[ "GAMESS" ]
8a19122bd49e8d2f465c7779d5be51600f062b21990138b000a1b25512c05d85
# -*- coding: UTF8 -*- from pybuilder.core import use_plugin, init, Author, task import os import sys SRC = os.path.join(os.path.dirname(__file__), "src") DOC = os.path.join(os.path.dirname(__file__), "docs") sys.path.append(SRC) from _spy import __version__ use_plugin("python.core") use_plugin("python.install_depend...
labase/vitollino
build.py
Python
gpl-3.0
2,529
[ "VisIt" ]
cadcd773a6b86c0adb7cedabda5fcfe5cadd4be1dc1d12a6758a74a937e0d7d3
############################################################################## # 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...
krafczyk/spack
var/spack/repos/builtin/packages/libcint/package.py
Python
lgpl-2.1
3,592
[ "Gaussian" ]
de6ec97436f00b44d68c93121b57a10351bf04d6857494f13ee419cbec2fd139
#!/usr/bin/env python import json import optparse import os.path def _add_data_table_entry( data_manager_dict, data_table_name, data_table_entry ): data_manager_dict['data_tables'] = data_manager_dict.get( 'data_tables', {} ) data_manager_dict['data_tables'][ data_table_name ] = data_manager_dict['data_tables...
Christian-B/galaxy_shedtools
gene_transfer_by_path/data_manager/path_name_value_key_manager.py
Python
gpl-2.0
3,076
[ "Galaxy" ]
8147668303d3917d5e368e3fd41825cec046ddcdbfdb4c074166b0d49c37a754
#!/usr/bin/env python """ dirac-rss-sync Script that synchronizes the resources described on the CS with the RSS. By default, it sets their Status to `Unknown`, StatusType to `all` and reason to `Synchronized`. However, it can copy over the status on the CS to the RSS. Important: If the StatusTyp...
Sbalbp/DIRAC
ResourceStatusSystem/scripts/dirac-rss-sync.py
Python
gpl-3.0
7,467
[ "DIRAC" ]
066cb18522ff986cf801ecc73e144afc73f183a26a67e0731f3ba722bb2c458c
""" Test courseware search """ import os import json from nose.plugins.attrib import attr from ..helpers import UniqueCourseTest, remove_file from ...pages.common.logout import LogoutPage from ...pages.studio.utils import add_html_component, click_css, type_in_codemirror from ...pages.studio.auto_auth import AutoAuth...
B-MOOC/edx-platform
common/test/acceptance/tests/lms/test_lms_courseware_search.py
Python
agpl-3.0
7,307
[ "VisIt" ]
810f630cda015fb6943db67cb320bd7e61f9b309571b3bb32d4e5ecaf1e7ebcd
# 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...
dmlc/tvm
tests/micro/zephyr/test_zephyr.py
Python
apache-2.0
19,332
[ "VisIt" ]
5f755a8235471bf517c2491ce6736f8b131f526e954ae5eb3f3a5f6b3407200b
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007 Donald N. Allingham # Copyright (C) 2008 Brian Matherly # # 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 F...
gramps-project/addons-source
CalculateEstimatedDates/CalculateEstimatedDates.py
Python
gpl-2.0
26,470
[ "Brian" ]
eba93b513fe9b49bacde70af0bc561b67cb0eedfd953f583b56a3c693c4d1b61
""" This file contains the basic code to download and store all the data for the 5th and 8th class exam from the Punjab Education Commission Website. This site achieves that by doing the following: 1. It runs through the entire list of possible roll numbers from '00-000-000' to '99-999-999'. 2. After every page load, ...
AliSajid/pec58
main.py
Python
gpl-3.0
5,060
[ "VisIt" ]
f1a573db65438bd75e375bc2c89dd2fe38ea1e6a8284e32265ebfe7a780ca03b
# -*- 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...
kain88-de/mdanalysis
package/MDAnalysis/topology/PDBQTParser.py
Python
gpl-2.0
5,227
[ "MDAnalysis" ]
2d3c723be7e028bab5bd74defa130ff7c32f5b4c8894b0eb527edcd1ced05622
#!/usr/bin/env python import sys import os import PyQt4 import vtk from vtk.test import Testing class TestQVTKWidget(Testing.vtkTest): def testQVTKWidget2(self): w2 = vtk.QVTKWidget2() w2.resize(500,500) ren = vtk.vtkRenderer() ren.SetBackground(0,0,0) ren.SetBackground2(1,1,1) ren.SetGra...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/GUISupport/Qt/Testing/Python/TestQVTKWidget2.py
Python
gpl-3.0
877
[ "VTK" ]
094802091c6a2d6d91dd24764f58136e07e19a1d9d4cb0a62924180dabd176a5
#!/usr/bin/env python # # $File: freqDependentSelector.py $ # # This file is part of simuPOP, a forward-time population genetics # simulation environment. Please visit http://simupop.sourceforge.net # for details. # # Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org) # # This program is free software: you can r...
BoPeng/simuPOP
docs/freqDependentSelector.py
Python
gpl-2.0
1,767
[ "VisIt" ]
14dbe86308132ebbc462853496ee00076395d652ebe7451039920d64527d339f
from __future__ import absolute_import import numpy as np from .core import MaskedLayer import theano import theano.tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams class GaussianNoise(MaskedLayer): ''' Corruption process with GaussianNoise ''' def __init__(self, s...
bottler/keras
keras/layers/noise.py
Python
mit
1,925
[ "Gaussian" ]
88757474ee555276ff2412fe047cc1b432f25fdee37c6bf6b56a051fdb5f65f6
# -*- coding: utf-8 -*- """Functions for FIR filter design.""" from __future__ import division, print_function, absolute_import from math import ceil, log import operator import warnings import numpy as np from numpy.fft import irfft, fft, ifft from scipy.special import sinc from scipy.linalg import (toeplitz, hankel...
arokem/scipy
scipy/signal/fir_filter_design.py
Python
bsd-3-clause
47,872
[ "Brian" ]
f5ddbbca931a78335328722dfba5d974565dc6a1ccb971e5547005072ac42e63
# -*- coding: utf-8 -*- # Copyright 2013 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import os import unittest from splinter import Browser from .fake_webapp import EXAMPLE_APP from .base import WebDriverTests def fire...
nikolas/splinter
tests/test_webdriver_firefox.py
Python
bsd-3-clause
3,823
[ "VisIt" ]
15a446e4b5014b193e85768af5fe529d0341a98be6761ea03c5e6b6e24e13358
import os, sys, getopt try: from PyQt4 import QtCore, QtGui QtCore.Signal = QtCore.pyqtSignal QtCore.Slot = QtCore.pyqtSlot except ImportError: try: from PySide import QtCore, QtGui QtCore.QString = str except ImportError: raise ImportError("Cannot load either PyQt or PySide...
Chuban/moose
gui/vtk/ExodusResult.py
Python
lgpl-2.1
6,236
[ "VTK" ]
7c91c45de843fbd7a5c39c52082a7af777da31a8010530c033cb5006faa3c58a
######################################################################## # This program is copyright (c) Upinder S. Bhalla, NCBS, 2015. # It is licenced under the GPL 2.1 or higher. # There is no warranty of any kind. You are welcome to make copies under # the provisions of the GPL. # This programme illustrates buildi...
BhallaLab/moose-examples
paper-2015/Fig2_elecModels/Fig2C.py
Python
gpl-2.0
14,223
[ "MOOSE", "NEURON" ]
04cd1d5c9f6631455287275bc85f097c2f3c6eec032cea63845896f4724211c4
######################################################################## # File: FileCatalogHandler.py ######################################################################## """ :mod: FileCatalogHandler .. module: FileCatalogHandler :synopsis: FileCatalogHandler is a simple Replica and Metadata Catalog service ""...
andresailer/DIRAC
DataManagementSystem/Service/FileCatalogHandler.py
Python
gpl-3.0
28,601
[ "DIRAC" ]
92dc30f48c37d9b3fa21d6069847bd9dcc2a0d97edd49b25617efe0ccb480ab7
import os import sys import argparse import math import random import logging logging.basicConfig(level=logging.DEBUG) #from common import find_mxnet import common.data_cotrain as data #from common import fit import mxnet as mx import mxnet.optimizer as optimizer import resnet_dcn import numpy as np import os, urllib ...
deepinsight/Deformable-ConvNets
deeplab/fine_tunec.py
Python
apache-2.0
13,939
[ "Gaussian" ]
4d42fc455d8c11bba52c5fd3f4780f873c8529e34e0923d6fc7ad52f4f7acfac
# (C) 2016, Markus Wildi, wildi.markus@bluewin.ch # # 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, or (at your option) # any later version. # # This program is distr...
jerryjiahaha/rts2
scripts/u_point/transform/u_skyfield.py
Python
lgpl-3.0
3,328
[ "VisIt" ]
52911b7eb6af53b691944e9328dc270cdb336c08e23f3f3c20835c4d6f482fe4
"""Tests for items views.""" import copy import json import os import tempfile import textwrap from uuid import uuid4 from mock import patch from django.core.urlresolvers import reverse from django.test.utils import override_settings from django.conf import settings from contentstore.tests.utils import CourseTestCas...
cecep-edu/edx-platform
cms/djangoapps/contentstore/views/tests/test_transcripts.py
Python
agpl-3.0
29,110
[ "FEFF" ]
33540ebde0a9042b09d03b3ee7ed88554d370c57691acc1843ab96eb8a5ecc5b
from matplotlib.colors import LogNorm import matplotlib.pyplot as plt import numpy as np import pandas as pd import sys from itertools import islice from scipy import signal # To find peaks, for edge-detecting the crystal import os import editable_input as ei # My script for editable text input import mie_utils as my ...
f-forcher/crystal-channeling-analysis
geometric_cuts.py
Python
gpl-3.0
12,164
[ "CRYSTAL" ]
eca54e1715059cba49f9a48cfe36c457dcf52cb3e4882cd501a13616235c2514
import os import site # Add all of the directories in ./modules as site package directories extensionPath = os.path.dirname(__file__) modulesPath = os.path.join(extensionPath, "modules") for item in os.listdir(modulesPath): itemPath = os.path.join(modulesPath, item) if os.path.isdir(itemPath): site.add...
andyclymer/ControlBoard
lib/ControlBoard.py
Python
mit
19,550
[ "CRYSTAL" ]
4dfc343cd931add82507921e45ea52b02d1f0cf19c37dd37e88da6409610354b
from .base import * class networks(object): """ cytoscape session interface as shown in CyREST's swagger documentation. :param url: an url of the type 'http://' + host + ':' + str(port) + '/' + version + '/'. """ def __init__(self, url): self.__url = url + 'commands/networks' self...
idekerlab/py2cytoscape
py2cytoscape/cyrest/networks.py
Python
mit
60,858
[ "Cytoscape" ]
302b1bc63e51ff7c76d3dce14071dc34b42027b991ed3f4b55cd4efff7208c2e
import numpy as np from alis import almsgs from alis import alfunc_base msgs=almsgs.msgs() class vSigma(alfunc_base.Base) : """ Convolves the spectrum with a Gaussian with a velocity sigma vsig: p[0] = vsig """ def __init__(self, prgname="", getinst=False, atomic=None, verbose=2): self._ids...
rcooke-ast/ALIS
alis/alfunc_vsigma.py
Python
gpl-3.0
15,474
[ "Gaussian" ]
3e247038b87390879ede3a9597343eaada4357122a036b62753333cc5d62dbee
import subprocess import os from os import listdir #========== gsnap alignment ========================== def gsnap_Db(fa,db_path,db_name,annotation): """ This function builds index for genome """ cmd = ('gmap_build -D {db_path} -d {db_name} {fa}').format(db_path=db_path,db_name=db_name,fa=fa) sub...
shl198/Pipeline
DetectVirusPipeline/f02_aligner_command.py
Python
mit
11,487
[ "BLAST", "BWA" ]
b37242898d89d8cc62041d93c3c1a79ebfb1bcbc77199f4fd2bdb8993fe991a5
import os from datetime import datetime from django.test import SimpleTestCase from django.utils.functional import lazystr from django.utils.html import ( conditional_escape, escape, escapejs, format_html, html_safe, json_script, linebreaks, smart_urlquote, strip_spaces_between_tags, strip_tags, urlize, ) from...
fenginx/django
tests/utils_tests/test_html.py
Python
bsd-3-clause
11,870
[ "ADF" ]
5233629695a7641fc803feb0bacd85a50a1e0cbca410b5d22bd77732cfc2be04
############################################################################## # 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...
TheTimmy/spack
var/spack/repos/builtin/packages/ncl/package.py
Python
lgpl-2.1
10,030
[ "NetCDF" ]
fd320741651af072d59638ee51a6f73b0546cdd18b2fb3b0083259f72beea442
############################################################################## # 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...
lgarren/spack
var/spack/repos/builtin/packages/r-a4reporting/package.py
Python
lgpl-2.1
1,790
[ "Bioconductor" ]
4f0f38a7c7ba4ede493efdfeb2ac7a2bfbe1f6c2fa17aa999355ce2dfac2c381
#!/usr/bin/env python # Copyright (c) 2011 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. """ This module is a simple qa tool that installs extensions and tests whether the browser crashes while visiting a list of urls. ...
zcbenz/cefode-chromium
chrome/test/functional/extensions.py
Python
bsd-3-clause
18,001
[ "VisIt" ]
0debb63a533bcc2d6e8637c6efb2b5bbf58c2a0af25e751179a8e937bd71f474
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, sys, glob, string import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','description','copyright','license','co...
kishikawakatsumi/TiKeyChainStore
build.py
Python
mit
5,891
[ "VisIt" ]
433e8fd95937dca36e93b56e88b7f3fd0f1b529320055dc16ecba810e700a2c7
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.conf import settings from django.http import HttpResponse from django.test import TestCase from mock import patch from fakeldap import MockLDAP from zilencer.models import Deployment from zerver.views import do_change_password, create_homepag...
Jianchun1/zulip
zerver/tests/test_signup.py
Python
apache-2.0
48,268
[ "VisIt" ]
0478252658b351ff49fbcf9432e4c79452af805837aad21bbf22db35185f7532
#!/usr/bin/env python # ---------------------------------------------------------------------------------------- # Created by: Lee Bergstrand # Description: Counts up BLAST hits per subject. # # Usage: QueryProteinRepeats.py <input.csv> # Example: QueryProteinRepeats.py AUUJ0000000000.csv # --------------------------...
LeeBergstrand/BackBLAST_Reciprocal_BLAST
Statistics/QueryProtienRepeats.py
Python
mit
2,038
[ "BLAST" ]
4160880202cc98b7728a019e17c1a4ffe8e6776413b1412e6ff4cbebedbcc3dd
import os, re, subprocess, unittest # enable test mode os.putenv('LAMMPS_SHELL_TESTING','1') shell_prompt_re = r"([^>]*LAMMPS Shell> ([a-z0-9_]+) *([a-z0-9_\.]+)?.*\n)+" cmd_group_re = r"([^>]*LAMMPS Shell> ([a-z0-9_]+) +([a-z0-9]+) +([a-z0-9]+)? *([a-z/0-9]+)?.*\n)+" # class LammpsShell(unittest.TestCase): de...
stanmoore1/lammps
unittest/tools/test_lammps_shell.py
Python
gpl-2.0
5,735
[ "LAMMPS" ]
32aa0649c9d477ee9f56a24f3bee71e59c80524db703585d27be347e9f710d66
import itertools import numpy as np import mdtraj as md from . import Featurizer, TrajFeatureUnion ATOM_NAMES = ["N", "CA", "CB", "C", "O", "H"] def get_atompair_indices(reference_traj, keep_atoms=ATOM_NAMES, exclude_atoms=None, reject_bonded=True): """Get a list of acceptable atom pairs. Parameters ---...
rmcgibbo/msmbuilder
msmbuilder/featurizer/subset_featurizer.py
Python
lgpl-2.1
9,327
[ "MDTraj" ]
ea05aae86286d98fe32154f0ff9636a61733d1b632b0e3988c4dfdeb6de61cdf
# $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...
Sbalbp/DIRAC
Core/DISET/private/Transports/SSL/ThreadSafeSSLObject.py
Python
gpl-3.0
1,638
[ "DIRAC" ]
2cb783fc356f7099149bd463a08fb08eddc8f42d8a6bc2e04bddeb4b2b84b458
import math import numpy as np import matplotlib.pyplot as plt @np.vectorize def sigmoid(x): return 1 / (1 + math.exp(-2 * x)) @np.vectorize def cosine(x): return (math.cos(x) / 2) + 0.5 @np.vectorize def sine(x): return (math.sin(x) / 2) + 0.5 @np.vectorize def gaussian(x): return 1 / (math.exp(...
rebeccabilbro/machine-learning
code/activation_viz.py
Python
mit
1,050
[ "Gaussian" ]
122237ef39c12a9042ba0fb77d7ed6aff211bc5141613870e54d750ccca934ff
#! /usr/env/python """ A class used to create and manage regular raster grids for 2D numerical models in Landlab. Do NOT add new documentation here. Grid documentation is now built in a semi- automated fashion. To modify the text seen on the web, edit the files `docs/text_for_[gridfile].py.txt`. """ import numpy as n...
csherwood-usgs/landlab
landlab/grid/raster.py
Python
mit
202,340
[ "NetCDF" ]
730e2e1c2b60d06622a3309874d3b44fe523bc552216bde45b3c4987c5ce3cf8
""" Contains functions to calculate costs The functions in this file are used to calculate the costs of buildings and researches. There are certain categories of these items; the only difference is the base factor. Note: Costs in OGame are growing exponentially. This library contains functions to calculate the costs...
Mischback/django-oweb
oweb/libs/costs.py
Python
mit
7,145
[ "CRYSTAL" ]
5a1c26b439fff484a2cc25db6787e2a766160a61b102846041f38b13418ab034
# -*- coding: utf-8 -*- import diaper import fauxfactory import hashlib import iso8601 import random import re import command import yaml from collections import namedtuple from contextlib import closing from django.core.cache import cache from django.core.exceptions import ObjectDoesNotExist from django.core.mail i...
Yadnyawalkya/integration_tests
sprout/appliances/tasks.py
Python
gpl-2.0
107,856
[ "VisIt" ]
2c9544eec9bed66d5059eddcac4a8bfd1d439207f9b07f95f47f1c40a2a498c6
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Top-level presubmit script for Chromium. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presu...
sgraham/nope
PRESUBMIT.py
Python
bsd-3-clause
64,823
[ "VisIt" ]
1cb9624fdfd40e4a35ffb9110bedba5fbc0924115cc51c02dae8764dc467e162
"""This module defines an ASE interface to ABINIT. http://www.abinit.org/ """ import os from glob import glob from os.path import join, isfile, islink import shutil import copy from ase.atoms import Atoms import numpy as np from ase.data import atomic_numbers from ase.units import Bohr, Hartree, fs, Ha, eV from ase....
mailhexu/pyDFTutils
pyDFTutils/abinit/myabinit_vca.py
Python
lgpl-3.0
69,432
[ "ABINIT", "ASE", "DIRAC", "GPAW", "Gaussian", "VASP" ]
ef25c7f2ae658dbaced37a26544eead7eff32c5d8dcbf91a589b1fb752a45ea3
# Copyright (c) 2016 Jamie Bull # ======================================================================= # Distributed under the MIT License. # (See accompanying file LICENSE or copy at # http://opensource.org/licenses/MIT) # ======================================================================= """ Integration te...
eayoungs/eppy
eppy/tests/test_runner.py
Python
mit
18,731
[ "EPW" ]
c827968d583cdba1173061cdd01eaa93615807f69e3103f25d28a5a1e8934180
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yasharmaster/scancode-toolkit
src/commoncode/functional.py
Python
apache-2.0
7,534
[ "VisIt" ]
3eea1f1379af2dddf0a40e4054a8d04982c37c128fc76a76bd24d68fca7e1ee9
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2013-2014 Paul Franklin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published b...
pmghalvorsen/gramps_branch
gramps/plugins/textreport/endoflinereport.py
Python
gpl-2.0
12,732
[ "Brian" ]
171e790f10de422d01bc86e7da4294092aafe6473c6102beaef524ca9c9ceec7
'''Julian's copy of sdssfitpsf.psf''' from examples.Pal2012_transitPhot.gaussfitter import gaussfit import numpy as np from util import utils from util.readDict import readDict from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt def aperture(startpx,startpy,radius=3): r = radius length =...
bmazin/ARCONS-pipeline
examples/Pal2012_transitPhot/transitFitPSF.py
Python
gpl-2.0
5,627
[ "Gaussian" ]
4b150253da39b6c42caa78216764c30a4f67f592de997f736d1d72bc1470d844
from __future__ import print_function, division import os import numpy as np from . import get_data_home from .tools import download_with_progress_bar DATA_URL = ("http://www.astro.washington.edu/users/ivezic/" "DMbook/data/SDSSspecgalsDR8.fit") def fetch_sdss_specgals(data_home=None, download_if_miss...
nhuntwalker/astroML
astroML/datasets/sdss_specgals.py
Python
bsd-2-clause
6,586
[ "Galaxy" ]
c4fd4993b5af06775951f61b12e51e3a2f006ce47d221b5f8c27c61a746c7de5
# # Copyright (C) 2016 by frePPLe bv # # This library 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. # # This library is distri...
frePPLe/frePPLe
freppledb/common/widget.py
Python
agpl-3.0
5,913
[ "VisIt" ]
327099355e77d593401972006e44e5bd9b7488d23ca3291d940575e844c3bfba
import logging import subprocess import os import sys import re import warnings import pysam from distutils.version import LooseVersion # Check java version to make sure it is Java 8 MY_DIR = os.path.dirname(os.path.realpath(__file__)) VARSIMJAR = os.path.realpath(os.path.join(MY_DIR, "VarSim.jar")) RTGJAR = os.path.re...
bioinform/varsim
utils.py
Python
bsd-2-clause
14,793
[ "pysam" ]
d978ec56dc76609f610878de864d85a1858185f3c3d77bf804bb315116d36659
__source__ = 'https://leetcode.com/problems/course-schedule-ii/description/' # https://github.com/kamyu104/LeetCode/blob/master/Python/course-schedule-ii.py # Time: O(|V| + |E|) # Space: O(|E|) # # Description: Leetcode # 210. Course Schedule II # # There are a total of n courses you have to take, labeled from 0 to n...
JulyKikuAkita/PythonPrac
cs15211/CourseScheduleII.py
Python
apache-2.0
11,683
[ "VisIt" ]
c00ee009090ef030693c25d1e1bbb0099d29e09e65452f44a026fc4fb05d947f
#!/usr/bin/env python # -*- coding: utf-8 -*- #============================================================================== # Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Amazon Software License (the "License"). You may not use # this file except in compliance with th...
DennisDenuto/puppet-commonscripts
files/aws_cli/AWS-ElasticBeanstalk-CLI-2.6.3/eb/macosx/python3/scli/resources.py
Python
mit
19,513
[ "VisIt" ]
5d0fdb867eb4dab86e855accec8886ca0e72af8d9b2c55f95255cf085801ab65
#### PATTERN | VECTOR ############################################################################## # -*- coding: utf-8 -*- # Copyright (c) 2010 University of Antwerp, Belgium # Author: Tom De Smedt <tom@organisms.be> # License: BSD (see LICENSE.txt for details). # http://www.clips.ua.ac.be/pages/pattern ############...
boompieman/iim_project
project_python2/lib/python2.7/site-packages/pattern/vector/__init__.py
Python
gpl-3.0
124,430
[ "NEURON", "VisIt" ]
aacbf48e1485bc2ee9f4ee3bf48e7cd38b51c97f92f63d5150de3e25970aa84a
import argparse import sys from coalib.misc import Constants from coalib.collecting.Collectors import get_all_bears_names class CustomFormatter(argparse.RawDescriptionHelpFormatter): """ A Custom Formatter that will keep the metavars in the usage but remove them in the more detailed arguments section. ...
abhiroyg/coala
coalib/parsing/DefaultArgParser.py
Python
agpl-3.0
7,902
[ "VisIt" ]
6e5bed4fd8f6f0a871daa624d9c39a1537911a92422d1b66ab2d199ae9c3f601
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # Copyright (C) 2014 Brian Douglass bhdouglass@gmail.com # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Softwa...
bhdouglass/agui
agui/awidgets/menu.py
Python
gpl-3.0
1,253
[ "Brian" ]
033501f384b35de26f31174159567e45a6a11bcf8cdaabc7f8b31171e52ec9f8
__all__ = ['RigidRegistration'] from ...registration import interface, apply_transforms class Registration(object): """ How would it work: # Co-registration within-visit reg = Registration('Rigid', fixed_image=t1_template, save_dir=save_dir, save_suffix='_coreg') for im...
ANTsX/ANTsPy
ants/contrib/sklearn_interface/sklearn_registration.py
Python
apache-2.0
5,900
[ "VisIt" ]
a248e68b6d33d4cec9bb904ee59480616ab2160ee13cc0787600a7860500b2e4
# encoding: utf-8 """ A base class for objects that are configurable. Inheritance diagram: .. inheritance-diagram:: IPython.config.configurable :parts: 3 Authors: * Brian Granger * Fernando Perez * Min RK """ #----------------------------------------------------------------------------- # Copyright (C) 2008-20...
noslenfa/tdjangorest
uw/lib/python2.7/site-packages/IPython/config/configurable.py
Python
apache-2.0
13,891
[ "Brian" ]
133b09bf8d63f60a5c6168df22033c4a819baf2817165d17d99a5530890cb4a1
'''Higher level functions for analyzing the data ''' from copy import deepcopy from functools import partial, wraps from logging import getLogger import numpy as np import pandas as pd import xarray as xr from dask import local, compute, delayed from .data_processing import (get_interpolated_position_dataframe, ...
edeno/Jadhav-2016-Data-Analysis
src/analysis.py
Python
gpl-3.0
25,687
[ "NEURON" ]
0896052038a356c4141a71f1cac764cd2f676ead3d39ee9f906b62c41b76711e
# ====================================================================== # Atomistica - Interatomic potential library and molecular dynamics code # https://github.com/Atomistica/atomistica # # Copyright (2005-2020) Lars Pastewka <lars.pastewka@imtek.uni-freiburg.de> # and others. See the AUTHORS file in the top-level A...
Atomistica/atomistica
src/python/tools/a_voro.py
Python
gpl-2.0
1,628
[ "ASE" ]
12546ade403313028583f469ed8f1cb988de4480865dd4b57a865c4b32e1b521
# Author: Idan Gutman # Modified by jkaberg, https://github.com/jkaberg for SceneAccess # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickRage. # # SickRage 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 Sof...
slightstone/SickRage
sickbeard/providers/hdtorrents.py
Python
gpl-3.0
13,925
[ "VisIt" ]
ae6668e28f13f2d6975e0316ea9d3db21521df7972211ccfc55c7c0f17a6d804
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from pymatgen.command_line.bader_caller import * from pymatgen.util.testing import PymatgenTest @unittest.skipIf(not which("bader"), "bader executable not present.") class BaderAnalysisTest(unittest.TestCase...
vorwerkc/pymatgen
pymatgen/command_line/tests/test_bader_caller.py
Python
mit
5,068
[ "pymatgen" ]
c9b8c7db89547c0e429921c306aa5fa1e0e2616b3f2114a1d99ab9d611154547
# Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import _, gobject from zeroinstall.support import tasks from zeroinstall.injector import handler, download version = '1.12' class GUIHandler(handler.Handler): dl_callbacks = None # Download -> [ c...
dabrahams/0install
zeroinstall/0launch-gui/gui.py
Python
lgpl-2.1
2,898
[ "VisIt" ]
0735437e93468be6128d8cccbfd74ef8ecf58fe06811a8dd33ca38836c7555aa
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: # # MDTraj is free software: y...
jchodera/mdtraj
tests/test_hdf5.py
Python
lgpl-2.1
10,182
[ "MDTraj", "OpenMM" ]
483241657d4b738d661132eef1dcf44892e5dd0a38eb55961c7daedf6644881f
from instagram.client import InstagramAPI import sys if len(sys.argv) > 1 and sys.argv[1] == 'local': try: from test_settings import * InstagramAPI.host = test_host InstagramAPI.base_path = test_base_path InstagramAPI.access_token_field = "access_token" InstagramAPI.authori...
mcxiaoke/python-labs
instagram/get_access_token.py
Python
apache-2.0
1,556
[ "VisIt" ]
fd99888c4b01dd7ad0008bbbb35ef6662d3d6d175d0126cae134da2b14c44e2f
import numpy as np import pandas as pd from astropy import constants as c from cachelib import SimpleCache cache = SimpleCache() colors = { 'Blue': '#1f77b4', 'Orange': '#ff7f0e', 'Green': '#2ca02c', 'Red': '#d62728', 'Purple': '#9467bd', } def readExoplanetEU(): """Read the exoplanet.eu data...
DanielAndreasen/SWEETer-Cat
sweetercat/utils.py
Python
mit
10,496
[ "NetCDF" ]
9709f38d2db3c94232100e2233535fb82c3d4b1c5a5fde870a2233eedb0d5616
from junction.tickets.management.commands.sync_data import Command from junction.tickets.management.commands.explara import Explara from mock import MagicMock import pytest def none_events(): return None def single_event(): list_of_event = list() list_of_event.append( {"eventId": "EKDJHH", "even...
ChillarAnand/junction
tests/unit/tickets/management/commands/test_sync_data.py
Python
mit
2,467
[ "VisIt" ]
9ae8f2cf4129973923fa6f1ee0d652015c632b605bf74f3899308649c3b3a521
# # Copyright (C) 2003 Greg Landrum and Rational Discovery LLC # """ defines class _DbResultSet_ for lazy interactions with Db query results **Note** this uses the Python iterator interface, so you'll need python 2.2 or above. """ from __future__ import print_function import sys from rdkit.Dbase import DbInfo c...
soerendip42/rdkit
rdkit/Dbase/DbResultSet.py
Python
bsd-3-clause
6,080
[ "RDKit" ]
5b5b14c302131681ce0fa4d7cac4d3e98ddedb56bed6d6262159d0ab45b8eefa
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The util package implements various utilities that are commonly used by various packages. """ __author__ = "Shyue" __date__ = "$Jun 6, 2011 7:30:05 AM$"
dongsenfo/pymatgen
pymatgen/util/__init__.py
Python
mit
269
[ "pymatgen" ]
a5def33b853fe72b54ebbe05bd07f50578e0ac1d07686aa331a26e96bb8de48e
""" :mod:`pyvx.codegen` --- Code generation tools ============================================= """ from pycparser import c_parser, c_ast from pycparser.c_generator import CGenerator from cffi import FFI import tempfile import subprocess import os, re from shutil import rmtree, copy typedefs = ''.join("typedef int u...
hakanardo/pyvx
old/pyvx/codegen.py
Python
mit
10,785
[ "VisIt" ]
12c797792ac076c682b00f4ea75e957cb9df9f50d53340bd52c14958be5adb1b
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from compiler.ast import Const from compiler.ast import Dict from compiler.ast import Discard from compiler.ast import List from compiler.ast import Module from co...
migua1204/jikexueyuan
极客学院/BusStopBoard/node_modules/.3.4.0@node-gyp/gyp/pylib/gyp/input.py
Python
apache-2.0
115,880
[ "VisIt" ]
fa25f29cdd4936b5135a9043850603586e8b0be37f6d34dea38c11ebbfe5be6b
#!/usr/bin/env python # -*- coding: utf-8 -*- """ nmap.py - version and date, see below Source code : https://bitbucket.org/xael/python-nmap Author : * Alexandre Norman - norman at xael.org Contributors: * Steve 'Ashcrow' Milner - steve at gnulinux.net * Brian Bustin - brian at bustin.us * old.schepperhand * Joha...
VillanCh/vscanner
vplugin/nmap/nmap.py
Python
apache-2.0
41,045
[ "Brian" ]
60f4ac2ba94bab8661a1280a0ef130e01324ecc5c0d64a329f66844bbabd0628
#!/usr/bin/python -E import subprocess import datetime import os import time import socket from subprocess import call import re def listAll(args): submithost = socket.gethostname() mX = submithost[:2] partition = mX + "-vis-c6" username = os.path.expandvars('$USER') total_seconds = 0 cmd = ["...
monash-merc/cvl-fabric-launcher
scripts/MASSIVE/C6/vis_manager.py
Python
gpl-3.0
12,834
[ "ParaView" ]
f1f2c69502c0a2b915cb23b4f4004eba129a193171e2cfb469b0e16916b9b507
#!/usr/bin/env python ######################################################################## # File : dirac-configure # Author : Ricardo Graciani ######################################################################## """ Main script to write dirac.cfg for a new DIRAC installation and initial download of CAs a...
arrabito/DIRAC
Core/scripts/dirac-configure.py
Python
gpl-3.0
20,322
[ "DIRAC" ]
6b4de6cfbf4f17dd06b57025e82b57f219b14aedecd16cf3e22407248533d79b
#!/usr/bin/env python3 # # Copyright (C) 2018-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...
psci2195/espresso-ffans
maintainer/gh_post_docs_warnings.py
Python
gpl-3.0
3,077
[ "ESPResSo" ]
ba9dc14f0ca79d28e9a24f1a535874e250d43b837df08014e5d6d86a1920f7e2
# # File : mkdir.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team # # 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 th...
igou/rt-thread
tools/mkdist.py
Python
apache-2.0
13,809
[ "CDK" ]
42b3643e7b1b0803dcfcd78d4493a7e6c80e7596427185a67f116358eba91f70
"""Module symbol-table generator""" from compiler import ast from compiler.consts import SC_LOCAL, SC_GLOBAL, SC_FREE, SC_CELL, SC_UNKNOWN from compiler.misc import mangle import types import sys MANGLE_LEN = 256 class Scope: # XXX how much information do I need about each name? def __init__(self, name, mo...
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-2.2/Lib/compiler/symbols.py
Python
mit
13,005
[ "VisIt" ]
ded155babf86172893f29868920a7ad943a5b751159f6238aa6bea717aa1e7a5
# -*- coding: utf-8 -*- # # Copyright (C) 2014 Google 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 applicabl...
GoogleCloudPlatform/gce-oreilly
ch7-1.py
Python
apache-2.0
5,575
[ "VisIt" ]
7c4d98b4907a70a667f9b51b298f968b450afbc2a926b135063e79ffa81ce861
""" View for Courseware Index """ # pylint: disable=attribute-defined-outside-init from datetime import datetime from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.context_processors import csrf from django.core.urlreso...
mbareta/edx-platform-ft
lms/djangoapps/courseware/views/index.py
Python
agpl-3.0
23,668
[ "VisIt" ]
4bd615cec2cf9b958e947ee1e6042bda0c60c2f779b07911863a3b47f4b9d10f
import sys import copy import pprint import pytest import numpy as np from utils import * from addons import * import qcdb from qcdb.physconst import psi_bohr2angstroms subject1 = """O 0 0 0 no_com H 1 ,, 0 \t 0 # stuff-n-nonsense""" ans1 = {'geom': [0., 0., 0., 1., 0., 0.], 'elbl': ['O', 'H'], ...
amjames/psi4
psi4/driver/qcdb/pytest/test_from_string.py
Python
lgpl-3.0
38,671
[ "Psi4" ]
677d12307585b663762c38f47626f71d348d0fc69ff5c454c7f6eb3a5f75ec66
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2015 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by th...
eustislab/horton
horton/part/test/test_proatomdb.py
Python
gpl-3.0
8,698
[ "CP2K" ]
eb2cc28fddd4edd94349eb3e7788894a867b6c58a6128e8c0d486119b1f9beab
# Import Libraries # ---------------- import numpy as np from numba import jit import matplotlib import matplotlib.pyplot as plt from pylab import rcParams # Ignore Warning Messages # ----------------------- import warnings warnings.filterwarnings("ignore") from mpl_toolkits.axes_grid1 import make_axes_locatable @j...
daniel-koehn/Theory-of-seismic-waves-II
08_1D_visco_elastic_SH_modelling/tew2/FD_2DAC.py
Python
gpl-3.0
7,094
[ "Gaussian" ]
778f7ea6a665c5dd83135e808010ea7121d2025e913b65b92cb5fab48fdbfbda
""" API operations for samples in the Galaxy sample tracking system. """ import logging from galaxy import util from galaxy.web.base.controller import * from galaxy.model.orm import * from galaxy.util.bunch import Bunch log = logging.getLogger( __name__ ) class SamplesAPIController( BaseAPIController ): update_ty...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/webapps/galaxy/api/samples.py
Python
gpl-3.0
7,615
[ "Galaxy" ]
9d63cd77e9557ac130b61cb410cad2de47e610c1191f0ef1db050603c6161024
import unittest from nose.tools import * # PEP8 asserts from tests.base import OsfTestCase from tests.test_features import requires_search from tests.factories import ( UserFactory, ProjectFactory, NodeFactory, UnregUserFactory, UnconfirmedUserFactory ) from framework.auth.core import Auth import website.se...
AndrewSallans/osf.io
tests/test_elastic.py
Python
apache-2.0
13,299
[ "Brian" ]
94cecfe8bdff7b097e4c14e2e2cbc5c332dc4d57cf423275a782cd0c723d4d50
import unittest from Tests.utils.utils import get_test_path from kalliope.core.Models import Brain from kalliope.core.Models import Neuron from kalliope.core.Models import Synapse from kalliope.core.Models.MatchedSynapse import MatchedSynapse from kalliope.core.Models.Signal import Signal from kalliope.core.OrderAnaly...
kalliope-project/kalliope
Tests/test_order_analyser.py
Python
gpl-3.0
30,914
[ "NEURON" ]
b70756d140a2de98cda388f21dcd27adc37edb7269786a3d966b676a40bc1b46
# coding: utf-8 import os PRODUCTION = os.environ.get('SERVER_SOFTWARE', '').startswith('Google App Eng') DEBUG = DEVELOPMENT = not PRODUCTION try: # This part is surrounded in try/except because the config.py file is # also used in the run.py script which is used to compile/minify the client # side files (*.l...
gae-init/gae-init-docs
main/config.py
Python
mit
6,466
[ "GULP" ]
7821a52e135b13cf4d59a83821fb88b195502a0c632ee5ff09b37ea3ba8eee2e
def fleur(): color(55, 255, 102) rosquare(200) color(234, 255, 129) rosquare(125) color(255, 255, 255) rosquare(50)
alcemirfernandes/pynguin
doc/examples_src/morex_pynd/00005.py
Python
gpl-3.0
140
[ "FLEUR" ]
5dca963bd022c72fe9434eff230fb73055e54711ad5b2f5898988c51550928c2
from contextlib import contextmanager from typing import Dict, List class _NormalizerMeta(type): def __new__(cls, name, bases, dct): new_cls = type.__new__(cls, name, bases, dct) new_cls.rule_value_classes = {} new_cls.rule_type_classes = {} return new_cls class Normalizer(metacl...
snakeleon/YouCompleteMe-x64
third_party/ycmd/third_party/jedi_deps/parso/parso/normalizer.py
Python
gpl-3.0
5,597
[ "VisIt" ]
81e606f54650e99a5a7d373f0a25d0a01b7c54899d06c88dc3afc624b79219b8
####################################################################### ####################################################################### # CoNIFER: Copy Number Inference From Exome Reads # Developed by Niklas Krumm (C) 2012 # nkrumm@gmail.com # # homepage: http://conifer.sf.net # This program is described in: #...
moka-guys/RPKM
conifer.py
Python
gpl-3.0
27,574
[ "pysam" ]
53bfe80a58e358aeb21c079036c2f6898305ee709c4f562ba6f272b52263f28e