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
# creates: bigpicture.pdf bigpicture.png import os from math import pi, cos, sin import numpy as np latex = r"""\documentclass[10pt,landscape]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \parindent=0pt \pagestyle{empty} %\usepackage{landscape} \usepackage{pstricks-add,graphicx,hyperref} \usepackage[...
qsnake/gpaw
doc/devel/bigpicture.py
Python
gpl-3.0
8,872
[ "ASE", "GPAW" ]
c6cae83bbc64c1dcdc0d42143ffdcb375fbe06401bcca51730769447a25667d9
#!/usr/bin/python # -*- coding: utf-8 ''' This file is part of VetApp. VetApp 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 ver...
mape90/VetApp
models/bill.py
Python
gpl-3.0
3,735
[ "VisIt" ]
2f7ae58b79335832a40c499885d44de20fd78907202c65f4b07b81c8d67149ae
""" Test for the dataset_manager.py module. """ # Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. import unittest import numpy as N from tvtk.api import tvtk from mayavi.core.dataset_manager import DatasetManager def make_data(): points = N.array(...
liulion/mayavi
mayavi/tests/test_dataset_manager.py
Python
bsd-3-clause
7,371
[ "Mayavi", "VTK" ]
90927b7fd9e0740194da32251b6c6cfbffabfabdbd6772cb6d9d5a399a97db96
import os import ast import xml.dom.minidom #import xml.dom.ext # python 2.5 and later import xml.etree.ElementTree as ET #from xml.etree.ElementTree import Element, SubElement, Comment, parse import numpy as np import re try: from StringIO import StringIO except ImportError: from io import StringIO class VTK...
frRoy/Heat
heat/vtktools.py
Python
bsd-2-clause
11,919
[ "VTK" ]
3433d4db8f9d45bf8c62bef905c6d061ece7577fc1864047357387f92f0343cb
######################################################################## # $HeadURL$ # File : Watchdog.py # Author: Stuart Paterson ######################################################################## """ The Watchdog class is used by the Job Wrapper to resolve and monitor the system resource consumption. ...
avedaee/DIRAC
WorkloadManagementSystem/JobWrapper/Watchdog.py
Python
gpl-3.0
32,902
[ "DIRAC" ]
5c52d44904e571bff63823a30420c95b30948107e344c42b13fdd77f5ca77e25
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkGraphWriter(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk.vt...
nagyistoce/devide
modules/vtk_basic/vtkGraphWriter.py
Python
bsd-3-clause
472
[ "VTK" ]
a31bd40f545554e9f4387f465695b3253e40289627a15697df2bf35c86d44c1d
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
lothian/psi4
psi4/driver/qcdb/basislistother.py
Python
lgpl-3.0
32,066
[ "ORCA", "Psi4" ]
0223939dfd0937573a9219d46c1f2855188ca378e4bbf8e38b94103d6411b37f
# -*- coding: utf-8 -*- # coding: utf-8 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os from shutil import rmtree from tempfile import mkdtemp from nipype.testing import (assert_equal, assert_raises, skipif, assert...
carolFrohlich/nipype
nipype/algorithms/tests/test_mesh_ops.py
Python
bsd-3-clause
2,901
[ "VTK" ]
ffc73f0ae9751135d26aa064e634df804fbba8dc2924bc6cd316c32288031a92
from astropy.nddata import support_nddata, NDDataRef from acalib import core import numpy as np from acalib.upi.axes import opening, features, axes_units @support_nddata def noise_level(data,mask=None,unit=None): """ Compute the RMS of data. Parameters ---------- data : (M,N) nump...
GasparCorrea/acalib
acalib/upi/flux.py
Python
gpl-3.0
5,731
[ "Gaussian" ]
9703c4cc72353501e2e77022c272e213c635e147f85e8a96808d31c2bc19cdfc
# This script will calculate Shannon entropy from a MSA. # Dependencies: # Biopython, Matplotlib, Math """ Shannon's entropy equation (latex format): H=-\sum_{i=1}^{M} P_i\,log_2\,P_i Entropy is a measure of the uncertainty of a probability distribution (p1, ..... , pM) https://stepic.org/lesson/Scoring-...
jrjhealey/bioinfo-tools
Shannon.py
Python
gpl-3.0
6,290
[ "Biopython" ]
2d7821e222987e7d0affbc7d08caaa90190f82d6b39adbb052dacf42a6665abf
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from __future__ import print_function # Python 2/3 compatibility __doc__ = """ Example of a demo that fits a Bayesian Gaussian Mixture Model (GMM) to a dataset. Variational bayes and ...
bthirion/nipy
examples/algorithms/bayesian_gaussian_mixtures.py
Python
bsd-3-clause
2,309
[ "Gaussian" ]
23e347cfc54c5a9f01553c73a4ccc335850e67e779614a15f5abdc01effda49e
# Open SoundControl for Python # Copyright (C) 2002 Daniel Holth, Clinton McChesney # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your opti...
arlowhite/kivy
kivy/lib/osc/OSC.py
Python
mit
11,408
[ "VisIt" ]
9f51413c27d5491d922a4ec48cd41cdf8a91a3c8a93a0b0892f8ef622e89d35e
# ----------------------------------------------------------------------------- # User configuration # ----------------------------------------------------------------------------- convert_dir = [ '/Users/seb/Desktop/vtk_volume_v3/0_90', '/Users/seb/Desktop/vtk_volume_v3/0_0'] # --------------------------------------...
Kitware/tonic-data-generator
scripts/vtk/tests/convert-stack-to-sorted.py
Python
bsd-3-clause
504
[ "VTK" ]
5b660b1a6797d35d08532477ca4d326f110d94c8e37ebc8f1e9f8aa9b7ab9c19
"""Provide the :class:`.UserSubreddit` class.""" import inspect from typing import TYPE_CHECKING, Dict, Union from warnings import warn from ...util.cache import cachedproperty from .subreddit import Subreddit, SubredditModeration if TYPE_CHECKING: # pragma: no cover import praw class UserSubreddit(Subreddit):...
praw-dev/praw
praw/models/reddit/user_subreddit.py
Python
bsd-2-clause
10,801
[ "VisIt" ]
f40427f6f0938be03aaa77efd035678fd2e83b231c26d05828b5cd1f1e734a54
""" Copyright 2013 Steven Diamond 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, software...
SteveDiamond/cvxpy
examples/expr_trees/1D_convolution.py
Python
gpl-3.0
2,013
[ "Gaussian" ]
d0657dcbacc3c4ab106141070b4bf13622a219e9c4e1ae74849b6d5f4740735f
"""User-friendly public interface to polynomial functions. """ from sympy.core import ( S, Basic, Expr, I, Integer, Add, Mul, Dummy, Tuple ) from sympy.core.sympify import ( sympify, SympifyError, ) from sympy.core.decorators import ( _sympifyit, ) from sympy.polys.polyclasses import ( DMP, ANP, DMF...
Cuuuurzel/KiPyCalc
sympy_old/polys/polytools.py
Python
mit
139,809
[ "Gaussian" ]
bfd8e28d71c17d81447212f953c25e93664bb27a28dc74618a8cb022782eaa4e
#!/usr/bin/env python # Copyright (c) 2011-2015 Rusty Wagner # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This ...
spthaolt/binaryninja-python
binja.py
Python
gpl-2.0
37,304
[ "VisIt" ]
e5dabfb337a46c57425f0502c8726ec72618515253b14896d2ef984a46ff09ce
# -*- coding: utf-8 -*- import ast import base64 import csv import glob import itertools import logging import operator import datetime import hashlib import os import re import simplejson import time import urllib import urllib2 import urlparse import xmlrpclib import pdb import zlib from xml.etree import ElementTree...
Capriatto/web
controllers/main.py
Python
agpl-3.0
68,836
[ "VisIt" ]
f183c9ac11b79e95d15afdc43d823d1a57702b7f72b10f2872c4dbdfc224dda3
#!python from __future__ import print_function # 2.X/3.X compatibility class SkipObject: def __init__(self, wrapped): # Save item to be used self.wrapped = wrapped def __iter__(self): return SkipIterator(self.wrapped) # New iterator each time class...
simontakite/sysadmin
pythonscripts/learningPython/skipper_2x.py
Python
gpl-2.0
1,339
[ "VisIt" ]
2fbcd1b71d72e4f063003f473293892a26ac26f5fc96c9b385502ec32e596baa
import platform import random import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0 import SearchDistribute.Enums imp...
ARDivekar/SearchDistribute
SearchDistribute/ProxyBrowser.py
Python
mit
22,778
[ "VisIt" ]
af4bcb7cc180e763ccb017d6e6eecda22cc4db5960b816709801c70eb2357439
# Copyright 2018 The TensorFlow Probability 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 o...
tensorflow/probability
tensorflow_probability/python/math/diag_jacobian.py
Python
apache-2.0
10,089
[ "Gaussian" ]
3b012055d73d16f9d6887963ca179faf326c6f01bbb644db2e7ff69e4fda2912
""" Copyright 2020 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, software di...
google/report2bq
application/classes/sa360_report_validation/visit.py
Python
apache-2.0
1,861
[ "VisIt" ]
8109e576861fa9802c76c0b2009d59eedf0cdb7a7f8008edde3f5756e9e5ac08
# -*- coding: utf-8 -*- from __future__ import unicode_literals import time # !! This is the configuration of Nikola. !! # # !! You should edit it to your liking. !! # # ! Some settings can be different in different languages. # ! A comment stating (translatable) is used to denote those. # ! There are two ways to...
laurentperrinet/elasticite
conf.py
Python
mit
44,778
[ "VisIt" ]
2712b8d2eea396b863c7106bf38ad8091f3e3e1fcde1d6bdc199cad0fc0d5530
#!/usr/bin/env python3 ''' Agent.py Author: Rafael Zamora Updated: 5/16/17 ''' # Import Packages import deepdoomde import json, sys, os import vizdoom as vzd import itertools as it from contextlib import contextmanager import numpy as np from tqdm import tqdm from random import sample import keras.backend as K K.set_...
rz4/DeepDoom-DE
src/deepdoomde/Agent.py
Python
mit
25,251
[ "Gaussian" ]
fe7400bc6c14ee4a0897daaa8958860550cd06ec7c853f0deded91b36608366d
from volatility import debug from volatility.renderers.basic import Renderer __author__ = "gleeda" try: from openpyxl.workbook import Workbook from openpyxl.writer.excel import ExcelWriter from openpyxl.cell import get_column_letter from openpyxl.styles import Color, Fill, Style, PatternFill, Border, ...
Cisco-Talos/pyrebox
volatility/volatility/renderers/xlsx.py
Python
gpl-2.0
1,857
[ "VisIt" ]
a0417c5709cb2da4c117cf732ac2a91723446ffbcad1d24ebb43dda8346939d7
import logging import networkx as nx import numpy as np import os from deepchem.utils.dependencies import pdbfixer from deepchem.utils.dependencies import simtk from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import rdmolops try: from StringIO import StringIO except ImportError: from io imp...
rbharath/deepchem
deepchem/utils/rdkit_util.py
Python
mit
11,626
[ "OpenMM", "RDKit" ]
12d8a43d988a96109b00b5785aed459f86463bcee4d3906bbe1695bc2f412ff0
#!/usr/bin/env python import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() arrayType = ['Bit', 'Char', 'Double', 'Float', 'Int', 'Long', 'Short',\ 'UnsignedChar', 'UnsignedInt', 'UnsignedLong', 'UnsignedShort'] for array in arrayType: print(array + ' array') vtkClass = 'vtk' ...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Common/Core/Testing/Python/TestArrays.py
Python
gpl-3.0
1,468
[ "VTK" ]
f650950ac36db61425ecaaf93d7aa09a50d590d474c9152a626e7c1631e95605
class Tree(): def __init__(self, root): self.root = root class BinaryNode(): def __init__(self, data, left = None, right = None): self.data = data self.left = left self.right = right self.visited = False class BinaryNodeParent(): def __init__(self, data, left = None...
howardwkim/ctci
Chapter4_Trees_And_Graphs/Tree.py
Python
bsd-2-clause
1,548
[ "VisIt" ]
35130ff00e9dfe1dc8d6eac27dfea4b875c42e07848295bb2b0cc95eadc31138
""" Methods related to offsets""" import numpy as np import pandas from astropy import units from astropy.coordinates import SkyCoord from IPython import embed def angular_offset(frb, galaxy, nsigma=5., nsamp=2000, gal_sig=None): """ Warning: All calculations in arcsec -- Do not use for...
FRBs/FRB
frb/galaxies/offsets.py
Python
bsd-3-clause
4,401
[ "Galaxy", "Gaussian" ]
ea844dd404af7b19e81a8e2918e02fa0178e498177855552228256ac748d271a
from typing import Any from django.db import ProgrammingError from confirmation.models import generate_realm_creation_url from zerver.lib.management import CommandError, ZulipBaseCommand from zerver.models import Realm class Command(ZulipBaseCommand): help = """ Outputs a randomly generated, 1-time-use link...
showell/zulip
zerver/management/commands/generate_realm_creation_link.py
Python
apache-2.0
1,419
[ "VisIt" ]
945d38a25035c534fa78b8ab19b63e848c3d96c1116de09463bf3e29f8217196
# -*- coding: utf-8 -*- import glob import os import json import textwrap from distutils.version import LooseVersion import setuptools import pytest from . import reset_setup_helpers, reset_distutils_log # noqa from . import run_cmd, run_setup, testpackage, create_testpackage from ..utils import silence TEST_SE...
dpshelio/astropy-helpers
astropy_helpers/tests/test_ah_bootstrap.py
Python
bsd-3-clause
15,082
[ "VisIt" ]
d2ba186ad3ae71a23ddcf65ef10ee3cb973c1bd8c86f91b718fab84cf0069a5f
from gbf_bot.casino import Poker class TestPoker: def test_play(self): # two pair poker = Poker() poker.new_game(("S2", "D2", "H3", "C3", "C5")) poker.calculate() assert poker.hold_cards_index == [0, 1, 2, 3] # 3 kind poker.new_game(("S2", "D2", "H2", "D4", ...
mythnc/gbf-bot
tests/test_casino.py
Python
mit
6,074
[ "CASINO" ]
0e8236f604bcf2b586a9cacfc7d5a16f48424c5b65fe8d61569295d40b7e8acf
from setuptools import setup setup( name="datename", version="0.1", description="This package is designed to organize files by modification date.", url="https://github.com/tekemperor/datename", author="Brian Lindsay", author_email="tekemperor@gmail.com", license="MIT", packages=["datena...
tekemperor/datename
setup.py
Python
mit
350
[ "Brian" ]
a221304c6cd4e4bb99de9798ff77d09cf86874fdf2bed2a7ccc91eac4a31b198
# -*- coding: utf-8 -*- import glob import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation from itertools import izip, chain, permutations, product from collections import OrderedDict from mapos import mapBase, fieldplot, windplot, returnbounds, round_...
Chilipp/nc2map
_maps_old.py
Python
gpl-2.0
61,976
[ "NetCDF" ]
316742ffa4b9dd9be49d33451e0549c6ee5b08b91b7a3ae3d24059463d13b98b
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 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 General Public License as published by ## the Free Software Foundati...
andrebellafronte/stoq
stoqlib/gui/test/test_purchaseitemeditor.py
Python
gpl-2.0
1,536
[ "VisIt" ]
fa82a3de4b5b4f31852f8ef25f6145610de94f8ecd5a14f2f0f53f865ce72d91
""" ========================================= Density Estimation for a Gaussian mixture ========================================= Plot the density estimation of a mixture of two Gaussians. Data is generated from two Gaussians with different centers and covariance matrices. """ import numpy as np import matplotlib.pyp...
RPGOne/Skynet
scikit-learn-0.18.1/examples/mixture/plot_gmm_pdf.py
Python
bsd-3-clause
1,521
[ "Gaussian" ]
45a5e12b4181671e051130e26fcd83d072a7e60d86749a2fe108e7b367b9a06a
#!/usr/bin/python # -*- coding: utf-8 -*- """ Copyright 2015 Ericsson AB 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 l...
EricssonResearch/monad
OpenStreetMap/routeGenerator.py
Python
apache-2.0
6,615
[ "VisIt" ]
1147e84380d33836400150c1bdbe31560b50bd6b0be88bda612db273fbf2e920
#!/usr/bin/env python __author__ = "Greg Caporaso" __copyright__ = "Copyright 2011, The QIIME Project" __credits__ = ["Rob Knight", "Greg Caporaso", "Kyle Bittinger", "Jens Reeder", "William Walters", "Jose Carlos Clemente Litran", "Adam Robbins-Pianka", "Jose Antonio Navas Molina"] __lice...
wasade/qiime
qiime/pick_otus.py
Python
gpl-2.0
82,387
[ "BLAST" ]
90e5caeec3c41ac208425e67da3f6bfeb5a79dc3e62cb177fa2ee1857f2871e9
# -*- coding: utf-8 -*- # # Copyright 2008 - 2013 Brian R. D'Urso # # This file is part of Python Instrument Control System, also known as Pythics. # # Pythics is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
LunarLanding/Pythics
pythics/libcontrol.py
Python
gpl-3.0
4,477
[ "Brian" ]
9e99deee9ee3b4a6642fe5eb1b254a886801630b33be54e30c0cb0a5b4cd2b6f
from django.conf.urls import url from crystal_dashboard.dashboards.crystal.nodes import views urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^update/(?P<server>[^/]+)/(?P<node_id>[^/]+)/$', views.UpdateNodeView.as_view(), name='update') ]
Crystal-SDS/dashboard
crystal_dashboard/dashboards/crystal/nodes/urls.py
Python
gpl-3.0
276
[ "CRYSTAL" ]
f8c0ce7d9fdb76c48f2898359dfe041134280e11b72f4d87d43519d5d2fb5e79
# Copyright (c) 2012, James Hensman # Licensed under the BSD 3-clause license (see LICENSE.txt) from .posterior import Posterior from ...util.linalg import jitchol, tdot, dtrtrs, dpotri, pdinv from ...util import diag import numpy as np from . import LatentFunctionInference log_2_pi = np.log(2*np.pi) class FITC(Laten...
ptonner/GPy
GPy/inference/latent_function_inference/fitc.py
Python
bsd-3-clause
3,137
[ "Gaussian" ]
b4d4b5e24b904f01fb44a43a2008e68b5895dd7eb0514c98b4f7941e1e660c27
"""Miscellaneous utility functions This program is part of "Dive Into Python", a free Python book for experienced programmers. Visit http://diveintopython.org/ for the latest version. """ __author__ = "Mark Pilgrim (mark@diveintopython.org)" __version__ = "$Revision: 1.3 $" __date__ = "$Date: 2004/05/05 21:57:20 $" ...
tapomayukh/projects_in_python
sandbox_tapo/src/refs/diveintopython-pdf-5.4/diveintopython-5.4/py/kgp/toolbox.py
Python
mit
1,800
[ "VisIt" ]
69692c1758e3f3a6095672f675a5cfd7abd6fa51e593bfaba3091c747f07908a
############################################################################## # 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/openbabel/package.py
Python
lgpl-2.1
3,329
[ "Open Babel", "Pybel" ]
1a3e4a92c33f67fd93c8ad14174af2015d3e50153fbb85df3e223501e7ab74fe
#!/usr/bin/python # (c) 2013, Cove Schneider # (c) 2014, Joshua Conner <joshua.conner@gmail.com> # (c) 2014, Pavel Antonov <antonov@adwz.ru> # # This file is part of Ansible, # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the...
jordiclariana/ansible
lib/ansible/modules/cloud/docker/_docker.py
Python
gpl-3.0
75,051
[ "VisIt" ]
93ee3f5ab06bfde62a1c5c3df0ead98154d8ad0236f93a7adf8097c9ea735499
# Copyright 2017 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 applicable law or agreed to in writing, ...
TimoCrafter/aiyprojects-raspbian
src/action.py
Python
apache-2.0
8,978
[ "Galaxy" ]
c131aa65207c103fbd5259b35732ba6e74fa219b11c4c87a5c9385ba240d600f
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # tree.py # # Written by Doug Dahms # # Prints the tree structure for the path specified on the command line # http://stackoverflow.com/questions/9727673/list-directory-tree-structure/9728478#9728478 import os from os import listdir, sep from os.path import abspath, basen...
cibinmathew/cbn_gits
misc/filesystem-to-tree.py
Python
gpl-3.0
2,614
[ "Galaxy" ]
1f6e4181fba02c77418151cc68f9504c6311b2e0892a7cf271af408292734c31
# lintory - keep track of computers and licenses # Copyright (C) 2008-2009 Brian May # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
VPAC/lintory
lintory/webs.py
Python
gpl-3.0
24,518
[ "Brian" ]
36e800079d011e53b122178130d465f5ca4adb0b77062e1dc996849c7d1a555c
#!/usr/bin/env python ############################################################################### # # SageMathCloud: A collaborative web-based interface to Sage, IPython, LaTeX and the Terminal. # # Copyright (C) 2014, William Stein # # This program is free software: you can redistribute it and/or modify # ...
evelynmitchell/smc
src/scripts/test_install.py
Python
gpl-3.0
2,775
[ "Brian", "NEURON" ]
29041f75f89cc03ac770b2964f652679668377e85f077172e7ed5a1b2ad009b3
from octopus.plugins.plugin import OctopusPlugin class DataDependenceCreator(OctopusPlugin): def __init__(self, executor): super().__init__(executor) self._pluginname = 'datadependence.jar' self._classname = 'bjoern.plugins.datadependence.DataDependencePlugin' def __setattr__(self, ke...
octopus-platform/bjoern
python/bjoern-tools/bjoern/plugins/data_dependence.py
Python
gpl-3.0
465
[ "Octopus" ]
4c464ee9dcca0b1e33d435525affcb1f8043df18db18364572a3e2073717896a
import collections import logging import os import pyfaidx import pysam import sys from svviz import annotations from svviz import gff from svviz import genomesource def nameFromBamPath(bampath): return os.path.basename(bampath).replace(".bam", "").replace(".sorted", "").replace(".sort", "").replace(".", "_").rep...
gatoravi/svviz
src/svviz/datahub.py
Python
mit
4,937
[ "pysam" ]
ec46a4a4d123a31c74d5a473059f30ceb5134054785c6ad9a9a4311da86824be
#!/usr/bin/env python """ try to do ref-directed assembly for paired reads in a region of a .bam file """ import pysam,argparse,subprocess,sys,shutil,os,re import parseamos import datetime from uuid import uuid4 def now(): return str(datetime.datetime.now()) def velvetContigs(dir): assert os.path.exists(...
MischaLundberg/bamsurgeon
bamsurgeon/asmregion.py
Python
mit
8,714
[ "pysam" ]
198e2c8f6461eec86dfb0ab68f3ea60569c1058275793c12736149046c155b24
from test import support import unittest import codecs import sys, _testcapi, io class Queue(object): """ queue: write bytes at one end, read bytes from the other end """ def __init__(self, buffer): self._buffer = buffer def write(self, chars): self._buffer += chars def read(s...
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-3.2/Lib/test/test_codecs.py
Python
mit
63,565
[ "FEFF" ]
a7d40c1338ff736225bc4bf1e3eea159a34fb9f5ab9729f9a2903628cfb6d7f8
from seleniumbase import BaseCase class MyTestClass(BaseCase): def test_basic(self): self.open("https://store.xkcd.com/search") self.type('input[name="q"]', "xkcd book") self.click('input[value="Search"]') self.assert_text("xkcd: volume 0", "h3") self.open("https://xkcd.co...
mdmintz/SeleniumBase
examples/my_first_test.py
Python
mit
5,669
[ "VisIt" ]
9fca9e1c2888ea6e4c5642432f7e00bdaf47c0401feae779ebbfbda5191771f9
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2020, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
qiime2-plugins/feature-table
q2_feature_table/_summarize/_visualizer.py
Python
bsd-3-clause
11,251
[ "BLAST" ]
de7bbabe77f571145bfb043201fb5bfebde1c411c6dc0474aa4041758600a185
#!/usr/bin/env python # Processes uploads from the user. # WARNING: Changes in this tool (particularly as related to parsing) may need # to be reflected in galaxy.web.controllers.tool_runner and galaxy.tools from __future__ import print_function import errno import os import shutil import sys from json import dump, l...
lappsgrid-incubator/GalaxyMods
tools/data_source/upload.py
Python
apache-2.0
13,428
[ "Galaxy" ]
37ea0283bce2f26e23cb7db33dbabd2a0ec6bc0ffc26099777025ae476adb900
# !usr/bin/env python # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2017-08-07 11:38:53 # @Last modified by: Brian Cherinka # @Last Modified time: 2017-08-30 10:37:04 from __future__ import print_function, division, absolute_import import pytest SkyQuery_T...
havok2063/SciScript-Python
python/sciserver/tests/test_skyquery.py
Python
apache-2.0
3,894
[ "Brian" ]
db8e3a7c3be901e7b4189a560d70942b191f7d1da7c2ba599b8d4963c85204a5
import time import miasm2.expression.expression as m2_expr from miasm2.arch.x86.arch import mn_x86, deref_mem_ad, ParseAst, ast_int2expr, \ base_expr, rmarg, print_size from miasm2.arch.x86.sem import ir_x86_16, ir_x86_32, ir_x86_64 from miasm2.core.bin_stream import bin_stream_str for s in ["[EAX]", "[0...
stephengroat/miasm
test/arch/x86/arch.py
Python
gpl-2.0
87,784
[ "VisIt" ]
a721ac95c7481d574dfef13c14d32a78d69a548af0bc053580d258e647413c48
from mumax2 import * from math import * from mumax2_geom import * # Test for LLB with 2TM # Ni, just like in PRB 81, 174401 (2010) Nx = 64 Ny = 64 Nz = 4 sX = 320-9 sY = 320e-9 sZ = 20e-9 hsX = 0.5 * sX hsY = 0.5 * sY hsZ = 0.5 * sZ csX = sX/Nx csY = sY/Ny csZ = sZ/Nz setgridsize(Nx, Ny, Nz) setcellsize(csX, csY,...
mumax/2
tests/heat-demag-simple.py
Python
gpl-3.0
2,740
[ "Gaussian" ]
0077b9725e534a172a4e820633070aa8c68a40b760c0b28d77c60d0675f68e93
# -*- coding: utf-8 # pylint: disable=line-too-long """ Classes for pan operations. anvi-pan-genome is the default client using this module """ import os import json import math import copy import multiprocessing import pandas as pd from itertools import chain import anvio import anvio.utils as utils import ...
merenlab/anvio
anvio/panops.py
Python
gpl-3.0
53,339
[ "BLAST" ]
acc1218ec7590aa5441302ad0514ff74dce532a45d0810970a8f831144cc62c3
#!/usr/bin/env python # Standard packages import sys import argparse # Third-party packages from toil.job import Job # Package methods from ddb import configuration from ddb_ngsflow import gatk from ddb_ngsflow import annotation from ddb_ngsflow import pipeline from ddb_ngsflow.align import bwa from ddb_ngsflow.vari...
dgaston/ddb-ngsflow-scripts
workflow-var_annotate_exome_multi_lib.py
Python
mit
1,703
[ "BWA" ]
963fab7b9f6465055a081bb5820ed185cb85d1db22052c7d4a13d0ae8816f533
# Copyright 2014 the National Renewable Energy Laboratory # # 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 ...
NREL/OpenWARP
source/automated_test/bemio/mesh_utilities/mesh.py
Python
apache-2.0
34,776
[ "ParaView", "VTK" ]
ba648f0b336a40b8233eaa874d93b8ef46865f5ade7f98a1961420efbcdcc6f3
# 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...
ghchinoy/tensorflow
tensorflow/python/autograph/converters/list_comprehensions.py
Python
apache-2.0
2,295
[ "VisIt" ]
0097204929dc658d918c5d8fb52f3061dd28308432fe092d0fe27eefe55d4136
# coding: utf-8 """ Vericred API Vericred's API allows you to search for Health Plans that a specific doctor accepts. ## Getting Started Visit our [Developer Portal](https://developers.vericred.com) to create an account. Once you have created an account, you can create one Application for Production and an...
vericred/vericred-python
vericred_client/models/request_providers_search.py
Python
apache-2.0
20,407
[ "VisIt" ]
d7aea5df65d10df34236477096363c094055844e8827d991bd2de91e644a3c4f
import sys import os.path #sys.path.insert(0, '/home/andy/theano/tool_examples/theano-lstm-0.0.15') from theano_lstm import Embedding, LSTM, RNN, StackedCells, Layer, create_optimization_updates, masked_loss from utilities import * import dill import argparse #import cPickle import pickle import numpy from collections...
darongliu/Lstm_Turing_LM
lstm-neural-turing-machines-lm/v2/lm_v4.py
Python
mit
25,410
[ "NEURON" ]
1801ac8cbd2b0800a583fff50e0763d8896732aa7a7cabb1324a65b26995ef4b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Module for graph representations of crystals. """ import warnings import subprocess import numpy as np import os.path import copy from itertools import combinations from pymatgen.core import Structure, La...
tschaume/pymatgen
pymatgen/analysis/graphs.py
Python
mit
114,552
[ "CRYSTAL", "Jmol", "pymatgen" ]
4b061e4495e089334dcb8afe38f63423f0d47eabcaf7997592c0efa0e83f9707
"""Python test discovery, setup and run of test functions.""" import enum import fnmatch import inspect import itertools import os import sys import types import warnings from collections import Counter from collections import defaultdict from functools import partial from pathlib import Path from typing import Any fro...
nicoddemus/pytest
src/_pytest/python.py
Python
mit
64,390
[ "VisIt" ]
86419a4756c91e8690585ab06b2b78781506965d1b7202f53f49c5309fc19fb4
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
Tatsh-ansible/ansible
lib/ansible/modules/network/avi/avi_gslb.py
Python
gpl-3.0
5,306
[ "VisIt" ]
cf4501665b6f5c0d24a00208b248ce1ef278a273c065e0533f4fac0f54e90d7c
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com> # Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk> # Copyright (C) 2007-2009 Stephane Charet...
prculley/gramps
gramps/plugins/webreport/thumbnail.py
Python
gpl-2.0
10,925
[ "Brian" ]
29194b5dbc63a9262711185c5ff74ab4eb2bad31e964f8712987b03b94ca2438
""" """ from __future__ import print_function import numpy from numpy import where, array, sqrt, exp, log, linspace, zeros from numpy import isfinite, median import ngmix from ngmix import Observation from .generic import srandu, PSFFailure, GalFailure from ngmix.gexceptions import GMixRangeError class Bootstrappe...
esheldon/great3
great3/bootstrapper.py
Python
gpl-2.0
31,933
[ "Galaxy", "Gaussian" ]
a37761e90fa543ae69fc39322be801b7a25e0ac9551d4d985598d76b10b40e62
# Alan Richardson (Ausar Geophysical) # 2017/01/31 import numpy as np import scipy.signal import pandas as pd from sklearn import preprocessing, metrics from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor from sklearn.base import clone from matplotlib import pyplot as plt import scipy.optimize from...
seg/2016-ml-contest
ar4/ar4_submission3.py
Python
apache-2.0
27,730
[ "Gaussian" ]
78e444f068da0dd0cd32758698d05c3aca53df71057c4b1f42bf733f57d006ea
import Constants import subprocess import traceback import os import glob import h5py import StringIO import scipy.misc import binascii import numpy as np from PIL import Image import os.path from shutil import copyfile # XRF JOB ARGS KEYS JOB_IS_LIVE_JOB = 'Is_Live_Job' # INTEGER JOB_STANDARDS = 'Standards' # TEXT...
aglowacki/Taskington
modules/xrf_maps.py
Python
mit
5,920
[ "NetCDF" ]
a72fdec6489237bf9b958d34b951d3bb4db4ef020ba25b6485c69b014e5ed687
# # gPrime - A web-based genealogy program # # Copyright (C) 2008 Brian G. 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 Foundation; either version 2 of the License, or # (at your option)...
sam-m888/gprime
gprime/plug/_export.py
Python
gpl-2.0
2,810
[ "Brian" ]
b5a3a28221f8f8556243e992982e37bdcade876c01b9515ff28a6bf02ada7c09
from frappe import _ def get_data(): return { 'heatmap': True, 'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'), 'fieldname': 'customer', 'non_standard_fieldnames': { 'Payment Entry': 'party', 'Quotation': 'party_name', 'Opportunity': 'party...
frappe/erpnext
erpnext/selling/doctype/customer/customer_dashboard.py
Python
gpl-3.0
1,081
[ "VisIt" ]
bbde900e534b2a4624341aad9e1d62ba90f34e067c994067703f1d1dda23c165
# ammoInfluenceCapNeed # # Used by: # Items from category: Charge (465 of 899) # Charges from group: Frequency Crystal (185 of 185) # Charges from group: Hybrid Charge (209 of 209) type = "passive" def handler(fit, module, context): # Dirty hack to work around cap charges setting cap booster # injection amoun...
Ebag333/Pyfa
eos/effects/ammoinfluencecapneed.py
Python
gpl-3.0
528
[ "CRYSTAL" ]
a6b490b1d7f7d430f2f1a0af980abccad5d4488dac4861ded8d82826ffab2412
""" This is a DIRAC WMS administrator interface. """ __RCSID__ = "$Id$" from DIRAC import gConfig, S_OK, S_ERROR from DIRAC.Core.DISET.RequestHandler import RequestHandler from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getUsernameForDN from DIRAC.WorkloadManagementSystem.DB.JobDB import JobDB from DIR...
andresailer/DIRAC
WorkloadManagementSystem/Service/WMSAdministratorHandler.py
Python
gpl-3.0
22,080
[ "DIRAC" ]
bfbf4f9aa85e99bc13b77e684b57425d09b791bcafe9a08cfc390b45a9b70d97
from django.conf import settings from django.urls import include, re_path from django.conf.urls.static import static from django.contrib import admin from django.views import defaults as default_views from wagtail.admin import urls as wagtailadmin_urls from wagtail.core import urls as wagtail_urls from wagtail.document...
nfletton/bvspca
config/urls.py
Python
mit
1,745
[ "VisIt" ]
3988efbddbe6ebab4c99983b347ddebc8835b1121ab74438740c13fd12d8947d
import datetime from kalliope import Utils from kalliope.core.NeuronModule import NeuronModule, MissingParameterException class Debug(NeuronModule): def __init__(self, **kwargs): super(Debug, self).__init__(**kwargs) self.message = kwargs.get('message', None) # check if parameters have b...
kalliope-project/kalliope
kalliope/neurons/debug/debug.py
Python
gpl-3.0
989
[ "NEURON" ]
9b4b5217a799ae81f1c7e519cce60a9ea3d88f2f9b8f99672856d362969c558c
""" Encapsulate reading and formatting of SureChEMBL """ import json from Sdf import Sdf from rdkit_utils import rdkit_standardize, rdkit_descriptors, rdkit_smiles class Surechembl(Sdf): def __init__(self, path, limit=None): Sdf.__init__(self, path, limit) def mol_to_dict(self, mol): """ ...
nbateshaus/chem-search
mol-loader/Surechembl.py
Python
bsd-3-clause
1,259
[ "RDKit" ]
b0c8afd97898261fe1b51f51912c7a511cd87c0a982b6ac551481b7566db1a06
# Copyright 2009 by Cymon J. Cox. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Command line wrapper for the multiple alignment program MUSCLE. """ from __future__ import p...
zjuchenyuan/BioWeb
Lib/Bio/Align/Applications/_Muscle.py
Python
mit
29,017
[ "BLAST", "Biopython" ]
0fd9895f4e06cbec7a94039cafe48dd602b8cb9c177bfa54bdf72965470d9511
# piddlePIL.py -- a Python Imaging Library backend for PIDDLE # Copyright (C) 1999 Joseph J. Strout # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of the License, ...
rdkit/rdkit-orig
rdkit/sping/PIL/pidPIL.py
Python
bsd-3-clause
13,931
[ "RDKit" ]
630ecc78b2c3c738bb6ec38dac2812ff43c820917c042a8b9075cb71a8d72421
import argparse import logging import multiprocessing import time from functools import partial, update_wrapper from defaults import EXTRACTION_MAX_READ_PAIRS, EXTRACTION_MAX_NM, EXTRACTION_MAX_INTERVAL_TRUNCATION, EXTRACTION_TRUNCATION_PAD import pysam compl_table = [chr(i) for i in xrange(256)] compl_table[ord('A')...
chapmanb/metasv
metasv/extract_pairs.py
Python
bsd-2-clause
7,896
[ "pysam" ]
88341eb836f22a5e5bebe337ef36c68192381fd45f7cbcebe21f400ee55f6a61
#!/usr/bin/python # License: # The MIT License (MIT) # # Copyright (c) 2013-2021 Brian Almeida <bma@thunderkeys.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, in...
thunderkeys/pdfconvertme-public
bin/pdfconvertme-eml2pdf.py
Python
mit
6,563
[ "Brian" ]
761a76a7c6c051e7fee384ab4c4f901d1eb63c740f89a11822ea8cc793552b1d
# phrase = "Don't panic!" # plist = list(phrase) # letter = ['D', 'a', 'n', 'i', 'c', '!', ' ', 'n'] # plist.pop(3) # for vobl in letter: # plist.remove(vobl) # plist.insert(1, 'n') # plist.insert(2, ' ') # plist.insert(4, 'a') # new_phrase = ''.join(plist) # print(new_phrase) #=====================================...
Foxfanmedium/python_training
Book_courses/Berry_P/chapter_2/panic.py
Python
apache-2.0
1,235
[ "Galaxy" ]
a990286c4a0ed86eed586147a195e3984258574d06d8fee68f163cc4d2ed053f
# Copyright (c) 2013, GlaxoSmithKline Research & Development Ltd. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # ...
bp-kelley/rdkit
Contrib/fraggle/atomcontrib.py
Python
bsd-3-clause
5,054
[ "RDKit" ]
d267a60935ffd7071dd54606db701606396de68bedab02d1b2a4e735139e9703
###################################################################### ## Filename: pySNIFS.py ## Version: $Revision$ ## Description: ## Author: Emmanuel Pecontal ## Author: $Author$ ## $Id$ ###################################################################### from __future__ import print_fun...
snfactory/extract-star
extract_star/pySNIFS.py
Python
mit
59,676
[ "Gaussian" ]
02792bb5f8eed58b9a765897749201269519d33416b850c2870fcf4b135c7b84
#!/usr/bin/env python """ Blast class specific tests you must fetch databases before running blast See the README.md file """ import sys,os,unittest,time,re,shutil from Bio import SeqIO from htsint.blast import Blast,ParseBlast,ParallelBlast from htsint import __basedir__ from htsint import Configure ## test class ...
ajrichards/htsint
unittests/BlastTest.py
Python
bsd-3-clause
2,543
[ "BLAST" ]
235f590141e0164b5537c06dc3148ae02dc8db1ab1974710d425b7a44601c941
from typing import Optional, Iterable, List, Union, Tuple import numpy as np from checklist.test_suite import TestSuite from checklist.test_types import MFT, INV, DIR, Expect from checklist.perturb import Perturb from allennlp.confidence_checks.task_checklists.task_suite import TaskSuite from allennlp.confidence_check...
allenai/allennlp
allennlp/confidence_checks/task_checklists/sentiment_analysis_suite.py
Python
apache-2.0
26,259
[ "exciting" ]
fb91c37c1fe764e64312ca3afd0616aac129fcf031c1816d10110c507a15ce5f
""" Feedforward layers. TODO: write more documentation """ __docformat__ = 'restructedtext en' __authors__ = ("Razvan Pascanu " "KyungHyun Cho " "Caglar Gulcehre ") __contact__ = "Razvan Pascanu <r.pascanu@gmail>" import numpy import copy import theano import theano.tensor as TT from th...
neozhangthe1/coverage_model
groundhog/layers/ff_layers.py
Python
bsd-3-clause
18,838
[ "Gaussian" ]
5bce576cf87cfe8d324adb02d2159e81a50920a96121fa7f79847c002adedf80
# -*- coding: utf-8 -*- # # This file is part of EventGhost. # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/> # # EventGhost 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 versio...
tfroehlich82/EventGhost
eg/Classes/PluginInstall.py
Python
gpl-2.0
9,814
[ "VisIt" ]
3090de76ffe0035d58ce24fb1175e8434620540337566b4b9b3ea3a4a71833e7
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyBiomine(PythonPackage): """Bioinformatics data-mining.""" homepage = "https://githu...
LLNL/spack
var/spack/repos/builtin/packages/py-biomine/package.py
Python
lgpl-2.1
729
[ "pysam" ]
a716c8b99964ff444d83ca60ae4285afab54ea75128e5decc199bb04dd3d3487
"""Convert to and from Roman numerals This program is part of "Dive Into Python", a free Python book for experienced programmers. Visit http://diveintopython.org/ for the latest version. """ __author__ = "Mark Pilgrim (mark@diveintopython.org)" __version__ = "$Revision: 1.3 $" __date__ = "$Date: 2005/08/10 05:00:31 ...
zmughal/xerox-parc-uplib-mirror
python/uplib/roman.py
Python
gpl-2.0
2,168
[ "VisIt" ]
7da95fed73ae03e270bfd1b6106e77086e447a713b244a39d1204f7e7db932b6
#!/usr/bin/python2 # # # pre-processing of raw downloaded CMIP5 data from the PCMDI portal to something that is standardized for # use in later downscaling to ALFRESCO AK/Canada extent and resolution needs. # # # # # def group_input_filenames( prefix, root_dir ): import fnmatch, functools, itertools, os, glob imp...
ua-snap/downscale
snap_scripts/old_scripts/tem_iem_older_scripts_april2018/tem_inputs_iem/old_code/hur_ar5_model_data_preprocess.py
Python
mit
11,351
[ "NetCDF" ]
10ef8291ad6c6515861736c21442572130d9d9768888d75af371d8441cbe41af
# 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...
jhseu/tensorflow
tensorflow/python/autograph/converters/conditional_expressions.py
Python
apache-2.0
1,561
[ "VisIt" ]
186f5f044ce11acd299ed547e96c2c6ea1c8476c90d07bb0e443ea53d0465277
# python version 1.0 DO NOT EDIT # # Generated by smidump version 0.4.8: # # smidump -f python JUNIPER-MIB FILENAME = "mib-jnx-chassis.txt" MIB = { "moduleName" : "JUNIPER-MIB", "JUNIPER-MIB" : { "nodetype" : "module", "language" : "SMIv2", "organization" : """J...
alexanderfefelov/nav
python/nav/smidumps/juniper_mib.py
Python
gpl-2.0
149,242
[ "Amber" ]
e9fc344c98418b703eb3cff8336c96cfec0ac821d9835e59d3c80c8c46451088
# Hidden Markov Model Implementation import pylab as pyl import numpy as np import matplotlib.pyplot as pp #from enthought.mayavi import mlab import scipy as scp import scipy.ndimage as ni import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import rospy #import hrl_lib.mayavi2_util as mu import hrl_lib.viz ...
tapomayukh/projects_in_python
classification/Classification_with_HMM/Single_Contact_Classification/force_codes/number_of_states/hmm_crossvalidation_force_50_states.py
Python
mit
15,860
[ "Gaussian", "Mayavi" ]
49c7a1d83f8faf70e0c4ee5ee89214e7fe40d3dac49e0379c4dd15f9ad8797db
# coding: utf-8 """ `%%unittest`, `%%unittest_testcase`, `%%unittest_main` magics for IPython =========================================== This extension provides three cell magics. First magic is `%%unittest_main`. This magic runs testcases defined in a cell %%unittest_main class MyTest(unittest.TestCase): ...
JoaoFelipe/ipython-unittest
ipython_unittest/magics.py
Python
mit
18,202
[ "VisIt" ]
33ce0e7901c017fea6a3fbd15e70c74528edd0c1374783454e8a541b9cd0a585
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
wojciechtanski/robotframework
src/robot/model/testsuite.py
Python
apache-2.0
5,540
[ "VisIt" ]
7d112e99e0a98ee7dba537413f7e74a243161d5ef9b81456c4d795f9353e3ad8
from __future__ import annotations import http.client import json import os import select import socket as pysocket import sys import urllib.error import urllib.parse import urllib.request from multiprocessing.pool import ThreadPool import libtbx.phil from dxtbx.model.crystal import CrystalFactory from dxtbx.util imp...
dials/dials
command_line/find_spots_client.py
Python
bsd-3-clause
7,823
[ "CRYSTAL" ]
d1df4d7bf6c9bf80d24e85cecab649ab59ae903d266224da1c4bc0dd5a47b76b
#!/usr/bin/env python # -*- coding=utf-8 -*- import sys import numpy as np import matplotlib.pyplot as plt from matplotlib.collections import LineCollection from matplotlib.gridspec import GridSpec from pymatgen.io.vasp.outputs import Vasprun from pymatgen.electronic_structure.core import Spin, OrbitalType def rgb...
gVallverdu/bandstructureplots
Cu_bands/bands_Cu.py
Python
mit
4,900
[ "VASP", "pymatgen" ]
b92697b745490e1032b2749c99d457f88bade2dc2ce93995caeb18982ff3f512
# -*- coding: utf-8 -*- """ Bok choy acceptance tests for problems in the LMS See also old lettuce tests in lms/djangoapps/courseware/features/problems.feature """ from textwrap import dedent from nose.plugins.attrib import attr from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from...
BehavioralInsightsTeam/edx-platform
common/test/acceptance/tests/lms/test_lms_problems.py
Python
agpl-3.0
37,864
[ "VisIt" ]
ceeec04b0c0032f5e2bb218599dd4648fb37bf2df84cdc7ee261008535bd0580