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
# The MIT License # # Copyright 2014, 2015 Piotr Dabkowski # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the 'Software'), # to deal in the Software without restriction, including without limitation the rights # to use, copy, modif...
repotvsupertuga/tvsupertuga.repository
script.module.universalscrapers/lib/universalscrapers/modules/js2py/translators/pyjsparser.py
Python
gpl-2.0
105,094
[ "VisIt" ]
42c86e792476c9b3735d2436fcdef514f3b033d639fd07e820b958af852a0818
# -*- coding: utf-8 -*- """ *************************************************************************** translate.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com *****************************...
nirvn/QGIS
python/plugins/processing/algs/gdal/gdaladdo.py
Python
gpl-2.0
5,341
[ "Gaussian" ]
1f5c129ab8787ff2aa86832b6bb8e3f4d30330846d6575ff51abc5d7b984d607
""" Unit tests for the sumatra.programs module """ from __future__ import unicode_literals from builtins import str from builtins import object try: import unittest2 as unittest except ImportError: import unittest import distutils.spawn import sys import os try: from subprocess import check_output except I...
dpad/sumatra
test/unittests/test_programs.py
Python
bsd-2-clause
4,677
[ "NEURON" ]
4042a30ad3b86806479630ad10169dca1e107029e55683fa576645ff7fc5a159
import unittest from funcparserlib.parser import finished, skip from tango.parser import parse from tango.scope_binder import ScopeBinder, SymbolsExtractor from tango.utils import find class TestScopeBinder(unittest.TestCase): @classmethod def setUpClass(cls): cls.scope_binder = ScopeBinder() ...
kyouko-taiga/tango
tests/test_scope_binder.py
Python
apache-2.0
2,119
[ "VisIt" ]
520095a06c477ac67900f9e629bbcf70a15e1613b9b8ce4bf2de42236a6dbc28
# -*- coding: utf-8 -*- # # connections.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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...
tobikausk/nest-simulator
topology/doc/user_manual_scripts/connections.py
Python
gpl-2.0
18,862
[ "Gaussian" ]
3e1c055da002c045ed2093f972ca27e83c7fb8fe2623686578369a6deccec65a
import string import numpy as np from sklearn.base import BaseEstimator from sklearn.utils import check_random_state from sklearn.utils.extmath import logsumexp from . import _hmmc from .utils import normalize decoder_algorithms = frozenset(("viterbi", "map")) ZEROLOGPROB = -1e200 EPS = np.finfo(float).eps NEGINF...
emmaggie/hmmlearn
hmmlearn/base.py
Python
bsd-3-clause
19,348
[ "Gaussian" ]
a59631285e07017182aed8affe2a275a5152205a96ec33c85432de55221057d4
# ============================================================================= # PROJECT CHRONO - http:#projectchrono.org # # Copyright (c) 2019 projectchrono.org # All rights reserved. # # Use of this source code is governed by a BSD-style license that can be found # in the LICENSE file at the top level of the distri...
projectchrono/chrono
src/demos/python/sensor/demo_SEN_camera.py
Python
bsd-3-clause
7,508
[ "Gaussian" ]
e499ea562ac786555689da97613d6b7ea3acf71c888e5a78873a962f8c840405
# A simple CLI runner for slurm that can be used when running Galaxy from a # non-submit host and using a Slurm cluster. from logging import getLogger try: from galaxy.model import Job job_states = Job.states except ImportError: # Not in Galaxy, map Galaxy job states to Pulsar ones. from pulsar.util im...
galaxyproject/pulsar
pulsar/managers/util/cli/job/lsf.py
Python
apache-2.0
4,846
[ "Galaxy" ]
d7d84a97839adc4d3c594150581f14febe44be3447abe3e4236d8c94e915adf4
import os, sys import socket import logging import marshal import cPickle import threading, Queue import time import random import getpass import urllib import warnings import weakref import multiprocessing import zmq import pymesos as mesos import pymesos.mesos_pb2 as mesos_pb2 from dpark.util import compress, deco...
ee08b397/dpark
dpark/schedule.py
Python
bsd-3-clause
28,302
[ "VisIt" ]
0a3a0a795c4f1f8108100d9e73076aa997ee63ea08d6640cf3d60f4124a547c6
# ipop-project # Copyright 2016, University of Florida # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
cstapler/Controllers
controller/framework/CFx.py
Python
mit
10,683
[ "VisIt" ]
72e3fcc0a15aa79c4c16118115446785a9fd40d3e76478ca117498166ad1965d
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/qmmm/test/test_itrf.py
Python
apache-2.0
4,809
[ "PySCF" ]
f4f706e1134c1ac76f269cbd3ab1035c5212fabe33f0a7813d27d1b49f77cec7
from galaxy.webapps.galaxy.controllers.user import *
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/webapps/tool_shed/controllers/user.py
Python
gpl-3.0
53
[ "Galaxy" ]
c22e44b073b82f1c1c6405fedc853294077037ac357e7f361ca4a1dd0b6e0b7e
#!python3 # File skipper.py 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 SkipIterator: def __init__(self, wrapped): ...
simontakite/sysadmin
pythonscripts/learningPython/skipper.py
Python
gpl-2.0
1,209
[ "VisIt" ]
edc907a5276876f2d36878d9897272f2f424849f9490704c386c677d1fc2c3a0
#!/usr/bin/env python import os from setuptools import setup on_rtd = os.environ.get('READTHEDOCS', None) == 'True' # read the docs could not compile numpy and c extensions if on_rtd: setup_requires = [] install_requires = [] tests_require = [] else: setup_requires = [ 'nose', 'coverag...
ianlini/serialtime
setup.py
Python
bsd-2-clause
1,493
[ "VisIt" ]
09cce3d349dc72607ab48df14ffcdc5c45ad1441d802beaff8fc35d590e229fd
""" Geosoft vox display handling, which manages the rendering of a `geosoft.gxpy.vox.Vox` in a 3d view. :Classes: :`VoxDisplay`: 3D visualization of a vox, which can be placed `geosoft.gxpy.view.View_3d` :Constants: :ZONE_DEFAULT: 0 :ZONE_LINEAR: 1 :ZONE_NORMAL: 2 :ZONE_EQUALAREA: 3 :ZONE_SHAD...
GeosoftInc/gxpy
geosoft/gxpy/vox_display.py
Python
bsd-2-clause
15,566
[ "Gaussian" ]
99d1974296326d577fa3c34db3660128cb3dc62c34c1fbdb4e457956c3eac895
#!/usr/bin/env python # -*- coding: utf-8 -*- import vtk def main(): colors = vtk.vtkNamedColors() planes = list() titles = list() # Using frustum planes. titles.append('Using frustum planes') camera = vtk.vtkCamera() planesArray = [0] * 24 camera.GetFrustumPlanes(1, planesArray) ...
lorensen/VTKExamples
src/Python/GeometricObjects/Planes.py
Python
apache-2.0
4,142
[ "VTK" ]
fdc7b81eacd86dbeda41b15ddb2e5915e132bc619db661f76a161037f834e983
#!/usr/bin/env python # File: plot_icd_vs_mass.py # Created on: Mon 12 Mar 2012 11:50:09 AM CDT # Last Change: Thu Feb 28 17:11:01 2013 # Purpose of script: <+INSERT+> # Author: Steven Boada import pylab as pyl from mk_galaxy_struc import mk_galaxy_struc def plot_icd_vs_mass(): galaxies = mk_galaxy_struc() ga...
boada/ICD
sandbox/legacy_plot_code/plot_icd_vs_mass_p1ar.py
Python
mit
1,673
[ "Galaxy" ]
6226571fcf6e749e071abd7406e0eeba8f91a6f7a988b54b18187a4a9874b4cb
import os, sys import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * from CIP.logic.SlicerUtil import SlicerUtil from CIP_PointsLabelling import CIP_PointsLabelling, CIP_PointsLabellingWidget, CIP_PointsLabellingLogic # Note: this is necessary in development because of the python path dependency # tr...
acil-bwh/SlicerCIP
Scripted/CIP_ParenchymaSubtypeTraining/CIP_ParenchymaSubtypeTraining.py
Python
bsd-3-clause
19,171
[ "VTK" ]
94cac648aa74f2d89a1bbd209e5dcd08fd0cb015b22cc0e2e71c4142d040a968
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
python/peacock/Execute/ExecuteTabPlugin.py
Python
lgpl-2.1
6,818
[ "MOOSE" ]
59ea9a360c1d3b3c26a9c3e1000ec0485ef16241766c42910f34de95e8e5b363
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
liuwenf/moose
python/chigger/tests/exodus/blocks/boundary.py
Python
lgpl-2.1
1,540
[ "MOOSE", "VTK" ]
c24100b34a748cbeefcba0c9500760fbb01ce91c7e8bdb8dd580485d967c34f5
######################################################################## # File : HTCondorCEComputingElement.py # Author : A.S. ######################################################################## """HTCondorCE Computing Element Allows direct submission to HTCondorCE Computing Elements with a SiteDirector Ag...
chaen/DIRAC
Resources/Computing/HTCondorCEComputingElement.py
Python
gpl-3.0
17,070
[ "DIRAC" ]
0adff4ba94c8f8be7ed66f4551769e2e7647169239b2111afa870d3c7b7bbeb0
#!/usr/bin/python # # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
dietrichc/streamline-ppc-reports
examples/adwords/v201409/remarketing/add_rule_based_user_lists.py
Python
apache-2.0
5,782
[ "VisIt" ]
8cbab0021ae10d358335dd4c818fbe7d98d0d64e75809e4bbda6e2354fe9f673
import numpy as np import matplotlib.pyplot as plt from skimage import data, draw, color, transform, feature, measure, \ filters, morphology, segmentation, restoration, io, img_as_float image = io.imread('./testzie/dataset/seal_real.jpg') image = io.imread('./testzie/dataset/seal_bad.jpg') image = io.imread('./tes...
amozie/amozie
testzie/skimage_test/deal_seal_photo.py
Python
apache-2.0
1,854
[ "Gaussian" ]
f640afe18bab60208b0b12415a26d25ab963d97000eefaac550f9c7b328c5905
#!/usr/bin/env python # -*- coding: utf-8 -*- # # (c) Copyright 2003-2008 Hewlett-Packard Development Company, L.P. # # 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 Lice...
matrumz/RPi_Custom_Files
Printing/hplip-3.15.2/scan/sane.py
Python
gpl-2.0
21,004
[ "ADF" ]
b4ba8183a78a558f1d5d3b5428fc760f67475542425db29d5612a62afb4e5352
#!/usr/bin/env python #<examples/doc_with_itercb.py> from numpy import linspace, random import matplotlib.pylab as pylab from lmfit.models import LinearModel, GaussianModel from lmfit.lineshapes import gaussian def per_iteration(pars, iter, resid, *args, **kws): if iter < 3 or iter % 10 == 0: out = ['== ...
DiamondLightSource/auto_tomo_calibration-experimental
old_code_scripts/simulate_data/lmfit-py/examples/doc_model_with_iter_callback.py
Python
apache-2.0
1,109
[ "Gaussian" ]
2b32bcfe49c61b9edb7a78daa0d5f67628bc825f30f62745c4b9430538be111e
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
pandas-dev/pandas
pandas/core/frame.py
Python
bsd-3-clause
384,508
[ "Elk" ]
422256e12d3b5bbae1a89e2b422f1f37b8e4e11688f8b09ade12bb2dd36d9ac9
"""Utility functions for plotting M/EEG data """ from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # ...
trachelr/mne-python
mne/viz/utils.py
Python
bsd-3-clause
29,921
[ "Mayavi" ]
9088610e0574fa84df278d8f232b2edd0a333058eaabaac4135ab31ae7126d48
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/plugins/songusage/songusageplugin.py
Python
gpl-2.0
11,613
[ "Brian" ]
b3001d5ea5d5c009b94255a3a5632cf0e29af3a8f15ad78be1351e2fbcec205b
"""Pygame-based media controller for MPF, based on the Backbox Control Protocol (BCP) v1.0""" # media_controller.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # The Backbox Control Protocol was conceived and developed...
jabdoa2/mpf
mpf/media_controller/core/media_controller.py
Python
mit
26,941
[ "Brian" ]
6e2a8ec23597ef10cd5368bfda89470dd5e26c07975ab2f795b46a17696e7b2a
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals, division, print_function import numpy as np import unittest from pymatgen.analysis.eos import EOS, NumericalEOS from pymatgen.util.testing import PymatgenTest class ...
matk86/pymatgen
pymatgen/analysis/tests/test_eos.py
Python
mit
4,777
[ "pymatgen" ]
a2365e0aa789bef6e4d4a5d8d4c35df7d13b332d70e17102dc04f9787c6aa8fd
import pathlib import h5py import numpy as np import pytest from scipy.ndimage.filters import gaussian_filter import dclab from dclab.rtdc_dataset.feat_anc_plugin.plugin_feature import ( PlugInFeature, import_plugin_feature_script, remove_plugin_feature, remove_all_plugin_features, PluginImportError) from ...
ZellMechanik-Dresden/dclab
tests/test_rtdc_feat_anc_plugin.py
Python
gpl-2.0
29,760
[ "Gaussian" ]
a573fde4c0963a69bc28d4e9add61f7e13b615a500046643eaaefc7644990877
# Copyright (c) 2012 Spotify 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 law or agreed to in writing, s...
foursquare/luigi
setup.py
Python
apache-2.0
3,217
[ "VisIt" ]
c42a976ecf349f70a4cdcc9e5fef88ee24e034b66eefa1bbb92894a4ef6c3805
""" Automatically find examples of a Brian object or function. """ import os, re from collections import defaultdict from .generate_examples import GlobDirectoryWalker from brian2.utils.stringtools import get_identifiers __all__ = ['auto_find_examples'] the_examples_map = defaultdict(list) the_tutorials_map = defau...
brian-team/brian2cuda
brian2cuda/sphinxext/examplefinder.py
Python
gpl-2.0
2,770
[ "Brian" ]
bd0e0592cadda3f05d4d8c41bd438b0c35b3b2450baf3accef652649f9af5cd0
""" Test functions for stats module """ import warnings import re import sys import pickle import os from numpy.testing import (assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_allclose, assert_, assert_warns, ...
WarrenWeckesser/scipy
scipy/stats/tests/test_distributions.py
Python
bsd-3-clause
230,495
[ "Gaussian" ]
1bad3db6dc8845d43a5174f737768a2f635e460beeee0db9fb01165c515a940e
# -*- coding: utf-8 -*- """ A real simple app for using webapp2 with auth and session. It just covers the basics. Creating a user, login, logout and a decorator for protecting certain handlers. Routes are setup in routes.py and added in main.py """ # standard library imports import logging import jso...
skumar07/Air-Share-Real
boilerplate/handlers.py
Python
lgpl-3.0
65,606
[ "VisIt" ]
b457b5458b29f8dc3fb60e45ddc747132caf449f57a6af9badb2ea71623d86a0
# NOTE: Do not add any dependencies to this file - it needs to be run in a # subprocess by a python version that might not have any installed packages, # including importlab itself. from __future__ import print_function import ast import json import os import sys # Pytype doesn't recognize the `major` attribute: # h...
google/importlab
importlab/import_finder.py
Python
apache-2.0
5,424
[ "VisIt" ]
05ca81c7fbfea01ff776e78913e03f1ed94a3666f4e2ac44be03b601a5e669d6
# proxy module from __future__ import absolute_import from mayavi.tools.data_wizards.csv_source_factory import *
enthought/etsproxy
enthought/mayavi/tools/data_wizards/csv_source_factory.py
Python
bsd-3-clause
113
[ "Mayavi" ]
25de5fde38b6ca8eacf5f2996b126f8e68375a08a5def6df66a01774a458ea7b
# encoding=utf8 # python plugin framework # snowdreamist@live.cn # 2014/1/4 # NOTE __version__ = '1.0.0.0' import sys import os import os.path import types import logging import time from ConfigParser import ConfigParser class PluginSource(object): """ The plugin source which engine absorbs plugins from ...
snowdreamist/wfpy
src/wfpy/pluginpy.py
Python
gpl-3.0
22,059
[ "VisIt" ]
dd4f1c58ee9b992fb7f0df777083ff911d7c65f60bb9b20f10d33c6f7c2c8119
#!/usr/bin/env python2 import os, sys, re # Scripts and programs python_exec = 'python2' build_pdb_script = '~/opt/script/BuildAllAtomsFromLammps.py' # Auxillary functions def build_pdb(dump_file, snapshot_index, structure_index): path, file_name = os.path.split(dump_file) print path print "%s %s %s struc...
luwei0917/awsemmd_script
archive/back_pick_structures.py
Python
mit
4,192
[ "VMD" ]
8f1bea98d7a4cc174dd5cd07499ee51b51af36664ca5299ec678a0647ef67b3d
# -*- coding: utf-8 -*- """ Create an initial ATP Profile for an ECs Mesh and write it out as .vtp. """ import os import sys # Run in current directory. os.chdir(os.path.dirname(os.path.abspath(__file__))) # Import path for the GenerateATPMapV2 script. importPath = os.path.abspath(os.path.join(os.path.dirname(__file...
BlueFern/DBiharMesher
meshes/c8000/Generate8000ATPMesh.py
Python
gpl-2.0
1,123
[ "VTK" ]
99507936339ecf4c97297feb60d7e830373312bd6fdd47a9d7bd8c2a511f5ffe
#!/usr/bin/env python """ Experimentations with feature tracking. Working towards the following paper: Kanhere, Neeraj K., and Stanley T. Birchfield. "Real-time incremental segmentation and tracking of vehicles at low camera angles using stable features." IEEE Transactions on Intelligent Transportation Systems 9.1 (2...
gwparikh/cvgui
featuretracker.py
Python
mit
14,601
[ "Gaussian" ]
961c6f9a89c1ab2036044a98e0b047c65ec86b36072a04a32d66da257b333ac1
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import copy import json import os import py...
simonwydooghe/ansible
test/units/galaxy/test_collection_install.py
Python
gpl-3.0
33,210
[ "Galaxy" ]
0b609391b2cd8379b4cd28b27fde0cfbfa785fb60883d01b7606b3c9093aab14
input_name = '../examples/multi_physics/biot.py' output_name = 'test_biot.vtk' from tests_basic import TestInput class Test( TestInput ): pass
RexFuzzle/sfepy
tests/test_input_biot.py
Python
bsd-3-clause
149
[ "VTK" ]
15b60da70ce14b22f6154061f498967ffb0fe46539ed7af56fae6ca9917114fd
# License: BSD 3 clause import numpy as np from scipy.linalg.special_matrices import toeplitz def features_normal_cov_uniform(n_samples: int = 200, n_features: int = 30, dtype="float64"): """Normal features generator with uniform covariance An example of features obtained as ...
Dekken/tick
tick/simulation/features.py
Python
bsd-3-clause
2,316
[ "Gaussian" ]
d30c7b09baa16460aab7e51bc3ac645ec4eb1bf6bf90e533e5ddccce555c32a1
''' *** SHED SKIN Python-to-C++ Compiler *** Copyright 2005-2013 Mark Dufour; License GNU GPL version 3 (See LICENSE) graph.py: build constraint graph used in dataflow analysis constraint graph: graph along which possible types 'flow' during an 'abstract execution' of a program (a dataflow analysis). consider the ass...
shedskin/shedskin
shedskin/graph.py
Python
gpl-3.0
71,909
[ "VisIt" ]
7793836f8eba820f622a2613e9349a198e679517469e1023d9acb77996c1d44b
import numpy as np, pandas as pd import nose.tools as nt import numpy.testing.decorators as dec from itertools import product from ...tests.flags import SMALL_SAMPLES from ...tests.instance import (gaussian_instance as instance, logistic_instance) from ...tests.decorators import (...
selective-inference/selective-inference
selectinf/algorithms/tests/test_lasso.py
Python
bsd-3-clause
27,613
[ "Gaussian" ]
18d7bb1903593fe9231f9b77c7c67e02f34df3c5cb02e27ce51d6ea07f86db84
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) __metaclass__ = type # # Copyright (C) 2017 Lenovo, Inc. # # 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 Licens...
caphrim007/ansible
lib/ansible/modules/network/cnos/cnos_vlag.py
Python
gpl-3.0
18,499
[ "VisIt" ]
4e3cb3b9212d8e20a812c6ae7af4f1fc97422763fad712a945c1b33120b57f60
""" This module contains all modifiers of OVITO. The abstract base class of all modifier types is the :py:class:`Modifier` class. Typically you create a modifier instance, set its parameters, and finally insert it into the modification pipeline of an :py:class:`~ovito.ObjectNode`, e.g.:: from ovito.modifiers impo...
srinath-chakravarthy/ovito
src/plugins/pyscript/python/ovito/modifiers/__init__.py
Python
gpl-3.0
4,052
[ "OVITO" ]
8a0a1005f56af9c31e2ad298e82cd21b64738d22c98ccc9973587df245f96d52
""" Linear Discriminant Analysis and Quadratic Discriminant Analysis """ # Authors: Clemens Brunner # Martin Billinger # Matthieu Perrot # Mathieu Blondel # License: BSD 3-Clause from __future__ import print_function import warnings import numpy as np from scipy import linalg from .extern...
wazeerzulfikar/scikit-learn
sklearn/discriminant_analysis.py
Python
bsd-3-clause
26,698
[ "Gaussian" ]
dcdda44270af5fe3a96ce11df11eb0ab73ffd77bde7aadc52dae66d126766302
""" .. module:: pysm :platform: Unix :synopsis: module containing primary use classes Sky and Instrument. .. moduleauthor: Ben Thorne <ben.thorne@physics.ox.ac.uk> """ from __future__ import absolute_import, print_funct...
bthorne93/PySM_public
pysm/pysm.py
Python
mit
30,303
[ "Gaussian" ]
a5f505ec8fc5bcec5a91ce04a7982abd8b166f4c0cedf97ac0ed32ad50024ea1
# # @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/libmintsbasissetparser.py
Python
lgpl-3.0
18,326
[ "Gaussian", "Psi4" ]
0c083e5f329b6dbe83521e5d324021cb9cebe316b79ed0d363995538a2f13f99
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com> # Stephen Fromm <sfromm@gmail.com> # Brian Coca <briancoca+dev@gmail.com> # # 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 publish...
wkeeling/ansible
lib/ansible/plugins/action/assemble.py
Python
gpl-3.0
6,412
[ "Brian" ]
42b69654c31e5fa513b6e379cbb6f8a28db6f90cda937a635cdc3ec4b7e50353
import unittest import os from netCDF4 import Dataset from cis.data_io.gridded_data import make_from_cube, GriddedDataList from cis.test.util.mock import make_dummy_2d_ungridded_data, make_mock_cube from cis.test.integration_test_data import valid_cis_col_file, valid_cis_col_variable from cis.data_io.write_netcdf impo...
cedadev/jasmin_cis
cis/test/integration/test_io/test_write_netcdf.py
Python
gpl-3.0
4,915
[ "NetCDF" ]
6935fefc38f03c2d98a75a28997b444c5c148e18ba43ed0f6f17dca2cdcc432f
############################################################################## # 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...
rmcgibbo/mdtraj
mdtraj/geometry/hbond.py
Python
lgpl-2.1
18,311
[ "MDTraj" ]
c7c237ff5bc9e82e69a2ae610a179ef2510d738bc77d810eb24613a8d795a26f
import numpy as np from ase.lattice import bulk from gpaw import GPAW, PW, FermiDirac, MethfesselPaxton a0 = 4.04 al = bulk('Al', 'fcc', a=a0) cell0 = al.cell for ecut in range(200, 501, 50): al.calc = GPAW(mode=PW(ecut), xc='PBE', kpts=(8, 8, 8), parallel=...
robwarm/gpaw-symm
doc/tutorials/lattice_constants/al.py
Python
gpl-3.0
757
[ "ASE", "GPAW" ]
c5550b4e76d2642d741db00f873ce660f21ba9d18aa3c10da73e2af4658e079f
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
deepmind/acme
acme/agents/tf/mcts/acting.py
Python
apache-2.0
3,992
[ "VisIt" ]
a57e58a1e922cddd2950276b40f5bf251843b0d3ebfb53a123eb8a63cc73015d
#!/usr/bin/env python3 import argparse import common import functools import multiprocessing import os import os.path import pathlib import re import subprocess import stat import sys import traceback import shutil import paths EXCLUDED_PREFIXES = ( "./generated/", "./thirdparty/", "./build", "./.git/...
envoyproxy/envoy-wasm
tools/code_format/check_format.py
Python
apache-2.0
54,221
[ "VisIt" ]
fc821a163a2f1e2e19cb51d34903652aca0c402c86f30ebce2ae85536b9138a8
import numpy as np from sklearn.metrics.pairwise import pairwise_distances import ConfigParser from shape_plot import plot_samples def elem_sympoly(lambdas, k): ''' Given a vector of lambdas and a maximum size k, determine the value of the elementary symmetric polynomials: E(l+1,n+1) = sum_{J \sub...
IDEALLab/domain_expansion_jmd_2017
dpp.py
Python
mit
4,312
[ "Gaussian" ]
1533a154444ec331bbbd93a119654b3ebf02ebf7fb93a010b1a4d45ad5151717
#!/usr/bin/env python """ filt.py Functions for quickly filtering time-series of data. Written by Brian Powell on 02/09/16 Copyright (c)2017 University of Hawaii under the MIT-License. """ import numpy as np import seapy import scipy.signal def average_err(x, window=5): """ Generate a moving (boxca...
ocefpaf/seapy
seapy/filt.py
Python
mit
5,192
[ "Brian" ]
c3d9dbc17691f1d6fae0c9cc174d6624269ffe4b5237d4d1ecf74d77e658e50e
import os from itertools import groupby, imap from functools import partial from operator import attrgetter import gzip from jbio.alignment import * from jbio.io.file import iterator_over_file_from_extension as ioffe from jbio.io.blast import record_iterator as blast_record_iterator from jbio.functional import com...
jgurtowski/jbio
jbio/test/alignment.py
Python
gpl-2.0
900
[ "BLAST" ]
779c113cea2983aa57b5c7f6c0f490c937c33bc5f872bfc99782695a5bbd0b1a
# Profile the sweep # # Copyright (C) 2010-2011 Huang Xin # # See LICENSE.TXT that came with this file. from __future__ import division from StimControl.LightStim.Core import DefaultScreen from StimControl.LightStim.LightData import dictattr from StimControl.LightStim.FrameControl import FrameSweep from StimControl.Li...
chrox/RealTimeElectrophy
StimControl/test/sweep_profile.py
Python
bsd-2-clause
1,815
[ "Gaussian" ]
c6b36b9c629872baa84b8fa16b2219150df9bb5ec55df308fc01812791af1469
# -*- coding: utf-8 -*- # Copyright 2007-2016 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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...
MartialD/hyperspy
hyperspy/model.py
Python
gpl-3.0
74,937
[ "Gaussian" ]
202a3bfe3ed68d0b55bb4740feada5714b369eefd55615d78f7af79cb12b9bf6
""" PlottingClient is a client of the Plotting Service """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import tempfile from DIRAC import S_OK, S_ERROR from DIRAC.Core.Tornado.Client.ClientSelector import TransferClientSelector as Tran...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/Client/PlottingClient.py
Python
gpl-3.0
4,325
[ "DIRAC" ]
db05df8bdb4c038f5cb1dfb5d1d809091f661f51820fa57121290732eff3c8df
""" This is used to test the ElasticSearchDB module. It is used to discover all possible changes of Elasticsearch api. If you modify the test data, you have to update the test cases... """ from __future__ import absolute_import from __future__ import division from __future__ import print_function # TODO: move to pytes...
ic-hep/DIRAC
tests/Integration/Core/Test_ElasticsearchDB.py
Python
gpl-3.0
21,844
[ "DIRAC" ]
b05f698a8f892811e9a73bf370cb7567bad74c795f0482512f50a1ab9bba2b8e
#!/usr/bin/env python import pyfits from LCScommon import * from pylab import * import os import mystuff as my def loadmastertable(clustername): infile='/home/rfinn/research/LocalClusters/MasterTables/'+clustername+'mastertable.fits' tb=pyfits.open(infile) tbdata=tb[1].data tb.close() self.agcflag...
rfinn/LCS
paper1code/LCSloadmaster.py
Python
gpl-3.0
8,623
[ "Galaxy" ]
ff9549a97b55bbf1aa80d57e7d9d2f488212fa7629bca21544e170621e545e09
from enthought.mayavi.core.registry import registry from enthought.mayavi.core.pipeline_info import PipelineInfo from enthought.mayavi.core.metadata import FilterMetadata from enthought.mayavi.core.metadata import SourceMetadata # Metadata for the new filters we want to add boundary_marker_editor = FilterMetadata( ...
rjferrier/fluidity
mayavi/site_mayavi.py
Python
lgpl-2.1
2,724
[ "Mayavi" ]
97134f6696627cd59af2c8bd8d2d77bfec88e9d0b4bee3f5c19b36699b834da6
import pyfftw import numpy as np from peak_detection import find_peak class FFTCorrelator(object): """ An FFT Correlation Class for a PIV Evaluation of two frames It uses the `pyfftw <https://hgomersall.github.io/pyFFTW/>`_ library for performant FFT. This class is also responsible for calculating the...
jr7/pypiv
pypiv/piv/fft_correlator.py
Python
bsd-3-clause
3,433
[ "Gaussian" ]
52c51abd19336127bd572a1ea02c5f92bd7c3c1f57685d16188688481cca7350
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides classes used to define a MD trajectory. """ import itertools import os import warnings from fnmatch import fnmatch from typing import List, Union, Sequence import numpy as np from mon...
gVallverdu/pymatgen
pymatgen/core/trajectory.py
Python
mit
22,192
[ "VASP", "pymatgen" ]
8b313e68ebd441719cf88b0528b82426b131d8e08750da922f4fb799e2463290
""" Purpose: To implement some alternative techniques for periodicity quantification to compare with TDA """ import numpy as np import scipy.io as sio import sys from CSMSSMTools import * from VideoTools import * import scipy.stats import scipy.signal import scipy.ndimage def getCutlerDavisFrequencyScore(I, doPlot = F...
ctralie/SlidingWindowVideoTDA
AlternativePeriodicityScoring.py
Python
apache-2.0
11,915
[ "Gaussian" ]
a9b62a85134ecc46e7ec1293331fa6114b8e9f0e78788a4693896c477f3ac3c1
# Author: Virgile Fritsch <virgile.fritsch@inria.fr> # # License: BSD 3 clause import numpy as np from . import MinCovDet from ..utils.validation import check_is_fitted, check_array from ..utils.validation import _deprecate_positional_args from ..metrics import accuracy_score from ..base import OutlierMixin class El...
xuewei4d/scikit-learn
sklearn/covariance/_elliptic_envelope.py
Python
bsd-3-clause
8,074
[ "Gaussian" ]
45378323f739600c98ac5099fd1af74920779f50ad074f018c018316efe7257d
#!/usr/bin/env python3 # -*-coding:Utf-8 -* import pyfits import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import interp1d """Script used to load SMF from Davizon+17 paper with uncertainties and marke abundance matching with it """ redshifts = np.array([0.2, 0.5, 0.8, 1.1, 1.5, 2, 2.5, 3, 3...
Gorbagzog/StageIAP
IaryDavidzonSMF_wrong.py
Python
gpl-3.0
3,498
[ "Galaxy" ]
1de0601229bbca25e0277554fd557fcfac7907b55fb543808aac6c1403127d89
#!/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.2 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
kbrebanov/ansible
lib/ansible/modules/network/avi/avi_vsvip.py
Python
gpl-3.0
4,585
[ "VisIt" ]
1fd929bbd70506dc352903bd68eaad6a0e66ff60b7a68d948119128af7dcb0a3
############################################################################## # pymbar: A Python Library for MBAR # # Copyright 2010-2014 University of Virginia, Memorial Sloan-Kettering Cancer Center # # Authors: Michael Shirts, John Chodera # Contributors: Kyle Beauchamp # # pymbar is free software: you can redistri...
kyleabeauchamp/pymbar
pymbar/exp.py
Python
lgpl-2.1
9,273
[ "Gaussian" ]
1462247ff65aeb9fc0723aa7cd5ed89cd9d1db9c8505f903779f3501c43cdd4b
import logging from parmed.unit import nanometers, picoseconds import numpy as np logger = logging.getLogger('InterMolLog') class GromacsGroParser(object): """GromacsGroParser reads and writes Gromacs .gro files A .gro file also contains some topological information, such as elements and residue names,...
shirtsgroup/InterMol
intermol/gromacs/grofile_parser.py
Python
mit
4,955
[ "Gromacs", "LAMMPS" ]
a0d7dadf68015cdfedcd87ddf8aa303539fa9bc3b29d702280db5c306f28b392
import click import parsley from visitor import Visitor class Heading(object): def __init__(self, text, underline): self.text = text self.ctype = underline[0] class Entry(object): def __init__(self, text, ctype): self.text = text self.ctype = ctype @property def done...
mbr/git-todo
git_todo/parser.py
Python
mit
1,948
[ "VisIt" ]
d5d0caa8c33a5f8cd15aa8f4eef9710d5e76fdea206813bf47b9643a55046239
from __future__ import division, print_function, unicode_literals # This code is so you can run the samples without installing the package import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) # testinfo = "f 10 0.033, s, f 20 0.033, s, f 30 0.033, s, f 30 0.033, s, q" tags = "particl...
dangillet/cocos
test/test_particle_galaxy.py
Python
bsd-3-clause
978
[ "Galaxy" ]
62902e1d4d1d01c43cac5e864d4e11d7b2593ab85548a00611a705e6aad7beff
def agts(queue): queue.add('H2.agts.py', walltime=25, ncpus=8, creates=['H2-emt.csv', 'H2-gpaw.csv']) if __name__ == "__main__": from ase.optimize.test.H2 import *
qsnake/gpaw
doc/devel/ase_optimize/H2.agts.py
Python
gpl-3.0
215
[ "ASE", "GPAW" ]
6536e14abf56e548a84621368c33820fcce208217ad30deefb46ab1f4158dc63
# $HeadURL: $ ''' DowntimePolicy module ''' from DIRAC import S_OK from DIRAC.ResourceStatusSystem.PolicySystem.PolicyBase import PolicyBase __RCSID__ = '$Id: $' class DowntimePolicy( PolicyBase ): ''' The DowntimePolicy checks for downtimes, scheduled or ongoing,...
Sbalbp/DIRAC
ResourceStatusSystem/Policy/DowntimePolicy.py
Python
gpl-3.0
1,768
[ "DIRAC" ]
b5eb16dcc2523ca902acfbe3f08545b62a8c866d3033574eb45882b4d1ddc5de
import os import struct from cStringIO import StringIO import vstruct import vstruct.defs.pe as vs_pe import ordlookup IMAGE_DLLCHARACTERISTICS_RESERVED_1 = 1 IMAGE_DLLCHARACTERISTICS_RESERVED_2 = 2 IMAGE_DLLCHARACTERISTICS_RESERVED_4 = 4 IMAGE_DLLCHARACTERISTICS_RESERVED_8 = 8 IMAGE_DLLCHARACTE...
HackerTool/vivisect
PE/__init__.py
Python
apache-2.0
38,449
[ "VisIt" ]
f886b5d0c436259a5a3351adc0073d303477f4530b3c47d583e46ada2c72b56a
# Import Google TransitFeed import transitfeed from transitfeed import ServicePeriod # Version mjts_version = "0.0.2" # New Schedule schedule = transitfeed.Schedule() # Create Agency schedule.AddAgency("Moose Jaw Transit Service", "http://www.moosejaw.ca/?service=city-of-moose-jaw-transit-division", ...
theshka/MJTS_GTFS
src/generate_feed.py
Python
mit
26,420
[ "MOOSE" ]
9b66dce408a1cab9c6351688c6bbec1e28abc0ddb5f1c05a9f0bfebfde8b68b5
from __future__ import absolute_import import sys,os import numpy as np import pandas as pd sys.path.append('/global/project/projectdirs/openmsi/jupyterhub_libs/anaconda/lib/python2.7/site-packages') from rdkit import Chem from rdkit.Chem import PandasTools sdf_file = '/project/projectdirs/openmsi/projects/compound_dat...
metabolite-atlas/metatlas
metatlas/interfaces/compounds/load_chembl.py
Python
bsd-3-clause
468
[ "RDKit" ]
39a6074c3940e5abe2627d9e0289fd761290de2fb5d8671e4c7a340ade78fd03
# 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 RMsnbase(RPackage): """Base Functions and Classes for Mass Spectrometry and Proteomics ...
LLNL/spack
var/spack/repos/builtin/packages/r-msnbase/package.py
Python
lgpl-2.1
2,903
[ "Bioconductor" ]
d576bc36609eda824b94239efc7e9d4822cad8a308937f81dee6f81664d6fd1f
from SimpleCV.base import np, warnings from SimpleCV.ImageClass import Image class DFT: """ **SUMMARY** The DFT class is the refactored class to crate DFT filters which can be used to filter images by applying Digital Fourier Transform. This is a factory class to create various DFT filters. *...
jayrambhia/SimpleCV2
SimpleCV/DFT.py
Python
bsd-3-clause
28,461
[ "Gaussian" ]
28302604b51608b377e56bf216c7c8e6ce0ecae3052bb5afe1dcdab2537dd132
########################################################################### # # 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/l...
google/starthinker
dags/email_dv360_to_bigquery_dag.py
Python
apache-2.0
5,664
[ "VisIt" ]
55710ee201ae973383cfa26f85feecb591114bfcc5167391f9dcfc43d530d7c1
# Copyright 2013 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
macchina-io/macchina.io
platform/JS/V8/v8/test/benchmarks/testcfg.py
Python
apache-2.0
6,637
[ "Gaussian" ]
42d55b3e7681d8912a38c805764c57758d1b45bfe0dccc3427d69c3fb68db063
import numpy as np import ase.units as units from gpaw import restart, GPAW from gpaw.poisson import PoissonSolver from gpaw.dipole_correction import DipoleCorrection energies = [] for name in ['zero', 'periodic', 'corrected']: if name == 'corrected': calc = GPAW(name, txt=None, poisson...
robwarm/gpaw-symm
doc/tutorials/dipole_correction/check.py
Python
gpl-3.0
805
[ "ASE", "GPAW" ]
7e6c8927dbf365d9f71fa2ed6e75e6728fb20d4d13065eaf609caeb2235ce04f
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2018 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 #...
amjames/psi4
psi4/driver/qcdb/molparse/to_schema.py
Python
lgpl-3.0
4,197
[ "Psi4" ]
7c8be9b20ef3b75dd7b31ba5274923e91b100dbd04cbb1e03a58261c87d03c57
#pylint: disable=C0111 #pylint: disable=W0621 from lettuce import world, step from common import create_studio_user from django.contrib.auth.models import Group from auth.authz import get_course_groupname_for_role, get_user_by_email from nose.tools import assert_true PASSWORD = 'test' EMAIL_EXTENSION = '@edx.org' @...
wwj718/edx-video
cms/djangoapps/contentstore/features/course-team.py
Python
agpl-3.0
5,945
[ "VisIt" ]
7e4ea27b54295b3b93b451b2810c2f7367974f32a1094f13b0133ae252c8217e
#!/usr/bin/env python # -*- coding: utf-8 """ Example generation modified from the scikit learn Generate the rst files for the examples by iterating over the python example files. Files that generate images should start with 'plot' """ from time import time import os import shutil import traceback import glob impor...
effigies/mne-python
doc/sphinxext/gen_rst.py
Python
bsd-3-clause
33,312
[ "Mayavi" ]
a987ac2236849293fdc573e7db4aa2624c75cede7407fed6a67bdc30cbd13358
""" ================================================= Deterministic Tracking with EuDX on Tensor Fields ================================================= In this example we do deterministic fiber tracking on Tensor fields with EuDX [Garyfallidis12]_. This example requires to import example `reconst_dti.py` to run. E...
StongeEtienne/dipy
doc/examples/tracking_eudx_tensor.py
Python
bsd-3-clause
3,897
[ "VTK" ]
d352f9123da3613e9930159f4271019beb4610e9655f50e41dcd75bcedc319b4
from __future__ import absolute_import from .core import MaskedLayer from .. import backend as K class GaussianNoise(MaskedLayer): ''' Corruption process with GaussianNoise ''' def __init__(self, sigma, **kwargs): super(GaussianNoise, self).__init__(**kwargs) self.sigma = sigma ...
valexandersaulys/airbnb_kaggle_contest
venv/lib/python3.4/site-packages/keras/layers/noise.py
Python
gpl-2.0
1,887
[ "Gaussian" ]
5305d87e803dbd03dd44050246452ceb8dba64903a80d6206ffbedc5d2a0df75
from tests import base from tests import factories as f outbox_len = 0 password = '123123' def test_workshop_create(base_url, browser, outbox): """ """ f.create_usertype(slug='tutor', display_name='tutor') poc_type = f.create_usertype(slug='poc', display_name='poc') state = f.create_state() u...
pythonindia/wye
tests/functional/workshop/test_create_workshop.py
Python
mit
1,933
[ "VisIt" ]
25922a988fde708e2e7b5312e24ff24c434576166c1939bbe33db21313773718
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/grossmj/PycharmProjects/gns3-gui/gns3/ui/about_dialog.ui' # # Created: Mon Mar 23 22:22:17 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: ...
noplay/gns3-gui
gns3/ui/about_dialog_ui.py
Python
gpl-3.0
112,795
[ "Brian", "CRYSTAL", "Dalton", "GAMESS", "MOOSE" ]
f198432deff9cf2c919fd580bce3f407b18770c6496e622cd1e083e0f2ef1a01
# -*- coding: utf-8 -*- # Copyright: (c) 2020-2021, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """A facade for interfacing with multiple Galaxy instances.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import...
renard/ansible
lib/ansible/galaxy/collection/galaxy_api_proxy.py
Python
gpl-3.0
7,459
[ "Galaxy" ]
a5605688b5452a754f3e08e22869480ac492db754e80cc6032f9fe13045bc6a9
# coding=utf-8 """Auto pull request migrations information plugin""" import re from git import Repo from . import MASTER_BRANCH from .base import AutoPullRequestPluginInterface, section_order from ..nodes import DescriptionNode, NodeList, NumberedList, SectionNode MIGRATION_FOLDER = 'migration_scripts' MIGRATION_SC...
gxx/auto_pull_request
auto_pull_request/plugins/migrations_info.py
Python
gpl-2.0
2,145
[ "ASE" ]
e72baf2ad678897478eb9a9b053a390a024938355462155e666d8e8ce899b539
#!/usr/bin/python # http://www.deheus.net/petrik/blog/2005/11/20/creating-a-wikipedia-watchlist-rss-feed-with-python-and-twill/ import sys, string, datetime, time, os, re, stat import twill import twill.commands as t import gd temp_html = "/tmp/wikipedia.html" rss_title = "Wikipedia watchlist" rss_link = "http://en.w...
SuriyaaKudoIsc/wikia-app-test
extensions/SwiftMedia/smtest.py
Python
gpl-2.0
5,519
[ "VisIt" ]
24b80fc52d7890ca4ff61159c0ec585782e03dd4234bc5ad3b6c1b8a4de9f75c
#!/usr/bin/env python # # Copyright 2007 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 o...
yencarnacion/jaikuengine
.google_appengine/google/appengine/tools/sdk_update_checker.py
Python
apache-2.0
14,498
[ "VisIt" ]
1b14c6c0859ff3ef935b6cd975090fe0aa4d9c885a34bdd6f014eaaa6b3d3f83
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/r-topgo/package.py
Python
lgpl-2.1
2,469
[ "Bioconductor" ]
d4a0dc142efabb88a06ce2130cbbe6f25f0ff6d1084aca79e39da635935274d5
# -*- coding: utf-8 -*- """ @author: c.zambaldi """ import os, sys import math try: import numpy as np except: np = None import time from sketch import Sketch #from msc.tools import MSC_TOOLS from tools import Tools #class Proc(Sketch, MSC_TOOLS): class Proc(Sketch, Tools): """ This class defines the co...
stabix/stabix
third_party_code/python/msc/proc/base.py
Python
agpl-3.0
19,911
[ "CRYSTAL" ]
d3ec07ea89daa9c2bd3331a8c26f19eba4318383ec73a9c787a2ea8b88e5ad61
#!/usr/bin/env python import os import sys import fnmatch import fileinput from subprocess import call import re def main(Main_Folder): geneid = re.compile('Vocar[a-zA-Z0-9]*m\.g') for root, dirnames, filenames in os.walk(Main_Folder): for filename in fnmatch.filter(filenames,'*.count'): ...
Luminarys/Bioinformatics
Scripts/ExtractStuff.py
Python
gpl-2.0
1,040
[ "HTSeq" ]
5e0389cc93fc2d3ee2d191d4491bd9c78d007b824efb69891286686bdff12a7c