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
# proxy module from __future__ import absolute_import from mayavi.tools.camera import *
enthought/etsproxy
enthought/mayavi/tools/camera.py
Python
bsd-3-clause
88
[ "Mayavi" ]
f9f3239f86028b4cf6dcabb6a84f57c6ab127d77ace97543d841d7c5df118385
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Module for Latent Semantic Analysis (aka Latent Semantic Indexing) in Python. Implements scalable truncated Singular Value Decompo...
nvoron23/paragraph2vec
gensim/models/lsimodel.py
Python
lgpl-3.0
34,640
[ "Gaussian" ]
7cadb6790845bb5c8cb7b63546e9eec38ff846142b8a1d98d520262416435b92
from __future__ import print_function __version__ = '1.0.1' __author__ = 'tylin' # Interface for accessing the Microsoft COCO dataset. # Microsoft COCO is a large image dataset designed for object detection, # segmentation, and caption generation. pycocotools is a Python API that # assists in loading, parsing and visu...
likelyzhao/mxnet
example/rcnn/rcnn/pycocotools/coco.py
Python
apache-2.0
14,869
[ "VisIt" ]
e3b980ad815a8860f29158ee9a7b3e4d46541a4936ec7b3da62e9f77b3d7fe7a
#!/usr/bin/env python # Copyright (C) 2007 CAMP # Please see the accompanying LICENSE file for further information. from __future__ import print_function from distutils.core import setup, Command from distutils.command.build_py import build_py as _build_py from glob import glob from os.path import join import os im...
misdoro/python-ase
setup.py
Python
gpl-2.0
5,133
[ "ASE" ]
9ab05124ca875b05e754eb8548d7d760e94b6b29f7973aa09ce58b40a64e22f2
""" Code generator for C constructs. """ from ctree.codegen import CodeGenVisitor from ctree.c.nodes import Op from ctree.types import codegen_type from ctree.precedence import UnaryOp, BinaryOp, TernaryOp, Cast from ctree.precedence import get_precedence, is_left_associative from numbers import Number from ctree.no...
mbdriscoll/ctree
ctree/c/codegen.py
Python
bsd-2-clause
5,485
[ "VisIt" ]
18adff5f3e80658a750dbb492d26a633476c7610418f396ecdb837d7a80de6e0
from __future__ import absolute_import, unicode_literals import json import requests import urllib from datetime import timedelta from django.conf import settings from django.core.cache import cache from django.core.paginator import Paginator from django.db.models import Q, Prefetch from django.http import HttpRespon...
Thapelo-Tsotetsi/rapidpro
temba/api/views.py
Python
agpl-3.0
118,577
[ "VisIt" ]
65dd52b89b3493e177d1bcc6d5c7a413f020c14714a3663edef56b0d3311cbc9
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # Copyright (C) 2013 Brian Douglass bhdouglass@gmail.com # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Softwa...
bhdouglass/remindor-qt
remindor_qt/remindor_qtconfig.py
Python
gpl-3.0
2,369
[ "Brian" ]
52c33df6ccf81bb0f635157db4bb5de3e0fc64ca4812f9cb5317829d75e92d31
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 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 #...
rmcgibbo/psi4public
psi4/share/psi4/databases/BENCH12.py
Python
lgpl-3.0
60,274
[ "Psi4" ]
e635b3ce6284c0890cb483c27cc38ae7f94ae6e6c56d9e172a0546bb05a0d38d
''' Generates some test plots from a lightcone that has been generated using Rachel's SAM. :author: Sami-Matias Niemi :contact: niemi@stsci.edu ''' import matplotlib matplotlib.use('Agg') matplotlib.rc('text', usetex=True) matplotlib.rcParams['font.size'] = 16 matplotlib.rc('xtick', labelsize=13) matplotlib.rc('ytick...
sniemi/SamPy
bolshoi/testLightcone.py
Python
bsd-2-clause
67,239
[ "Galaxy" ]
240f1a10fece9add601ef8dbc745bcc65b1c90a50b71a9c98a007f6fb7ad0eb6
from __future__ import print_function, division, absolute_import import matplotlib matplotlib.use('TkAgg') from matplotlib import pyplot as plt import numpy as np from scipy.signal import medfilt from odin.visual import plot_save from odin.preprocessing import signal, speech from odin.utils import play_audio def t...
imito/odin
benchmarks/test_split_audio_by_VAD.py
Python
mit
7,089
[ "Gaussian" ]
4c0558c4bd0fc4f02c0c8a0bd36ea86e555115a78d32c76e4c79ccdbae46439b
from .generator import * from .generator.markov import MarkovChain # from ._unknown.motivation import MotivationGenerator # from ._unknown.world import WorldGenerator # from ._unknown.space.galaxy import GalaxyGenerator # from ._unknown.space.star import StarGenerator # from ._unknown.space.planet import PlanetGenerat...
d2emon/generator-pack
src/genesys/generator/__init__.py
Python
gpl-3.0
343
[ "Galaxy" ]
9dcec81a6f7dc63a0efea7ad7abf86713e16ab0a657ac525c45e86e0df3dfca2
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS. """ import urllib from datetime import datetime, timedelta from textwrap import dedent from unittest import skip import pytz from bok_choy.promise import EmptyPromise from nose.plugins.attrib import attr from common.test.acceptance.fixtures.course import Cours...
miptliot/edx-platform
common/test/acceptance/tests/lms/test_lms.py
Python
agpl-3.0
57,191
[ "VisIt" ]
0e1fa313c42d961d854d9a3745bfb4d4974b848f92c7ef892c014155d6ac9e48
# GromacsWrapper # Copyright (c) 2009-2010 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. # exceptions and warnings class GromacsError(EnvironmentError): """Error raised when a gromacs tool fails. Returns error code...
jandom/GromacsWrapper
gromacs/exceptions.py
Python
gpl-3.0
1,976
[ "Gromacs" ]
55b1f817aeb57452dcb27334cf1ed24868408cf60a67e703ec078b3c444a5c3d
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
yipenggao/moose
python/chigger/tests/colormap/colormap_number.py
Python
lgpl-2.1
1,255
[ "MOOSE" ]
ce417483c13c2e7323c705c0a28cb6585c9300c7b8d492e8e4199ef2a52aad3f
import cherrypy import json import os import functools import requests from jsonpath_rw import parse from girder.api.describe import Description, autoDescribeRoute from girder.api.docs import addModel from girder.api.rest import Resource from girder.api.rest import RestException, loadmodel, getCurrentUser from girder....
OpenChemistry/mongochemserver
girder/molecules/molecules/molecule.py
Python
bsd-3-clause
24,667
[ "Avogadro", "NWChem" ]
18b4a0ff317a748e70489a2ac4edd9e8f3e2dd9a713d2e500ff899701f7d2c70
# proxy module from __future__ import absolute_import from mayavi.plugins.mayavi_ui_plugin import *
enthought/etsproxy
enthought/mayavi/plugins/mayavi_ui_plugin.py
Python
bsd-3-clause
100
[ "Mayavi" ]
6c364d61ab19fae3b46d6d54300ec8a45de80456c46802017d1b05c5e5f8bf33
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """ Test pickling of Iris objects. """ # Import iris tests first so that some things can be initialised # before importing an...
rcomer/iris
lib/iris/tests/test_pickling.py
Python
lgpl-3.0
4,183
[ "NetCDF" ]
9fc2327cebfcf11f307e6af47237cee4a6cb32951b7ec1a2fa1707710a8c4d66
# $HeadURL: $ ''' VOBOXAvailabilityCommand module ''' import urlparse from DIRAC import S_OK, S_ERROR from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC.ResourceStatusSystem.Client.ResourceManagementClient import ResourceMa...
hgiemza/DIRAC
ResourceStatusSystem/Command/VOBOXAvailabilityCommand.py
Python
gpl-3.0
2,232
[ "DIRAC" ]
6569e6429cd613ec766d916f929a2738a6725ec2e1097628998858cd21b22ece
#!/usr/bin/env python import os import copy from Bio import Entrez from email.utils import parseaddr from itertools import combinations, permutations email = os.environ.get('EMAIL', '') if '@' not in parseaddr(email)[1]: sys.stderr.write("Need a valid email address in 'EMAIL' environment variable!\n") else: ...
jzsh2000/author-network
network.py
Python
gpl-3.0
6,987
[ "Cytoscape" ]
625d48ab8299233fed13cbcd67642ec1b205c86b7e6627e6337a15479d2c275b
#!/usr/bin/env python # # mol_parameters.py # # Parameters for annotating molecular structures. # # http://iimcb.genesilico.pl/moderna/ # __author__ = "Kristian Rother" __copyright__ = "Copyright 2008, Kristian Rother" __credits__ = ["Sabrina Hofmann"] __license__ = "GPL" __maintainer__ = "Kristian Rother" __email__ = ...
mmagnus/rna-pdb-tools
rna_tools/tools/mini_moderna3/moderna/analyze/MolParameters.py
Python
gpl-3.0
8,941
[ "Amber" ]
e137a410e4fccc254542a35f8eed2bae8baac0d3131e19e43ccafee4e8e253c5
# Copyright: (c) 2008, Jarek Zgoda <jarek.zgoda@gmail.com> __revision__ = '$Id: models.py 28 2009-10-22 15:03:02Z jarek.zgoda $' import datetime import string from random import SystemRandom from typing import Mapping, Optional, Union from urllib.parse import urljoin from django.conf import settings from django.contr...
brainwane/zulip
confirmation/models.py
Python
apache-2.0
8,228
[ "VisIt" ]
2cef5492d5393e65332ac4ce370646064b3ec85d581c66b553a03e9e56551265
# -*- coding: utf-8 -*- """ sphinx.pycode.nodes ~~~~~~~~~~~~~~~~~~~ Parse tree node implementations. :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ class BaseNode(object): """ Node superclass for both terminal and nonterminal ...
nirmeshk/oh-mainline
vendor/packages/sphinx/sphinx/pycode/nodes.py
Python
agpl-3.0
6,387
[ "VisIt" ]
c927bcffacbcc118cd7444b2eb472f14a5afbfc8a52a6bfbf1f64ab8868f9b5b
""" Simple GLM with two neurons connected by a complete network with Gaussian weights. """ StandardGlm = \ { # Number of neurons (parametric model!) 'N' : 2, # Parameters of the nonlinearity 'nonlinearity' : { 'type' : 'explinear' }, # Parameters of the bias ...
slinderman/theano_pyglm
pyglm/models/standard_glm.py
Python
mit
2,131
[ "Gaussian" ]
8c13de823de2c4a8c8378cf284fcdaeccb9caf6a2682612290ffc2b601063683
import datetime from django.core.management import call_command from django.utils.timezone import get_current_timezone from freezegun import freeze_time import json from dateutil.relativedelta import relativedelta from django.urls import reverse from factory.fuzzy import FuzzyDate from jmespath import search as s f...
UKTradeInvestment/export-wins-data
mi/tests/test_sector_views.py
Python
gpl-3.0
54,678
[ "Amber" ]
8041511c52afb7a3f2e6336097268a0f5e7d24a63b05c3d3fa3511e550ca64e7
# 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...
snnn/tensorflow
tensorflow/python/data/experimental/kernel_tests/sql_dataset_test.py
Python
apache-2.0
25,496
[ "MOE" ]
259485fa0855c402fbd7086e4232d12903ea0091c88791022df8b1e8ad7cff69
# -*- coding: utf-8 -*- """ Low level routines for dealing with traces in numpy arrays. Works on arrays sample by sample and need not know anything about the time of a sample interval. Assumes data of interest is at the centre of the array. Trace must have odd number of samples so there is a definite centre. """ from...
JackWalpole/splitwavepy
splitwavepy/core/core.py
Python
mit
9,766
[ "Gaussian" ]
0cf744f77d311dc74c52334214d6f8f1e4399b601d0f3f22e2c6abf0ab4cb1a6
""" This module is for hemodynamic reponse function (hrf) specification. Here we provide for SPM, Glover hrfs and finite timpulse response (FIR) models. This module closely follows SPM implementation Author: Bertrand Thirion, 2011--2018 """ import warnings import numpy as np from scipy.stats import gamma def _gamma...
nistats/nistats
nistats/hemodynamic_models.py
Python
bsd-3-clause
17,067
[ "DIRAC" ]
e112885de246da5fd7019117af75e5f61a670df8fde968ce79800877a6dae070
# pmx Copyright Notice # ============================ # # The pmx source code is copyrighted, but you can freely use and # copy it as long as you don't change or remove any of the copyright # notices. # # ---------------------------------------------------------------------- # pmx is Copyright (C) 2006-2013 by Daniel ...
tectronics/pmx
pmx/library.py
Python
lgpl-3.0
106,525
[ "CHARMM" ]
7de6d9a13e361c07fb4f350d5e1281930adb6b95e890eb529eb4fa87a3dd8f2b
import logging, os, sets, string, shutil, re, socket, mimetypes, smtplib from galaxy.web.base.controller import * from galaxy import util, datatypes, jobs, web, model from cgi import escape, FieldStorage from email.MIMEText import MIMEText import pkg_resources; pkg_resources.require( "Paste" ) import paste.httpexce...
dbcls/dbcls-galaxy
lib/galaxy/web/controllers/dataset.py
Python
mit
11,256
[ "Galaxy" ]
d77d24c1a8377bb4735487283cc9c6d5721f57caa16b9162de9b29bc66d5f818
# Author: Aaron MacDonald # Date: June 14, 2007 # # Description: An implementation of the precise permissive field # of view algorithm for use in tile-based games. # Based on the algorithm presented at # http://roguebasin.rogue...
RedMike/pYendor
lib/fov.py
Python
bsd-2-clause
11,735
[ "VisIt" ]
9346878e054be6c8a58c73793dd4f3639c63f23addd879a023e4a1eaa2b11093
#=============================================================================== # This file is part of TEMPy. # # TEMPy is a software designed to help the user in the manipulation # and analyses of macromolecular assemblies using 3D electron microscopy maps. # # Copyright 2015 Birkbeck Colle...
OniDaito/ChimeraXTempy
TEMPy/Vector.py
Python
mit
13,862
[ "Biopython" ]
4643bb302bc5af2ef8133d507bd3c991f4d2275f09ef1bc312c6100742ac987f
#=============================================================================== # # Synapses.py # # This file is part of ANNarchy. # # Copyright (C) 2013-2016 Julien Vitay <julien.vitay@gmail.com>, # Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com> # # This program is free software: you can redi...
vitay/ANNarchy
ANNarchy/models/Synapses.py
Python
gpl-2.0
11,837
[ "NEURON" ]
bb9277f87c9798ffefdefef4ba705afe24acd00554b303ba7bbe09b2473ae2a3
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
google-research/google-research
snerg/nerf/utils.py
Python
apache-2.0
18,203
[ "Gaussian" ]
0a242713aaeb0695aff7517f656b0b85bb3db188f0f51df4523df53a17522c72
""" Tests for discussion pages """ import datetime from uuid import uuid4 from flaky import flaky from nose.plugins.attrib import attr from pytz import UTC from .helpers import BaseDiscussionTestCase from ..helpers import UniqueCourseTest from ...pages.lms.auto_auth import AutoAuthPage from ...pages.lms.courseware i...
analyseuc3m/ANALYSE-v1
common/test/acceptance/tests/discussion/test_discussion.py
Python
agpl-3.0
52,703
[ "VisIt" ]
5f0295b597f640798f2619b3d04b9a1781e562c11a29147b757dbf3bafce0e10
from ast import literal_eval as make_tuple from neurons.data_generator import LogicalFunctionsGenerator from neurons.neuron import Neuron from neurons.optimizer import Optimizer def generate_data_set_from_config(config): try: config['samples'] = int(config['samples']) config['high_range'] = make_...
PiotrGrzybowski/NeuralNetworks
networks/neurons/config.py
Python
apache-2.0
1,030
[ "NEURON" ]
dc019fb6baf7621fbb8b0f578d7ee7fa6b41efd9dc3d7c553063a6277e56b84b
from __future__ import print_function from __future__ import division from __future__ import absolute_import from six.moves import input #======================================================================# #| Chemical file format conversion module |# #| ...
rmcgibbo/qchem-utils
qchem_utils/molecule.py
Python
gpl-2.0
105,452
[ "Amber", "CHARMM", "Dalton", "GROMOS", "Gaussian", "Gromacs", "Q-Chem", "TINKER" ]
1fa973ecb36913f76b40c27b9172b1b7216446c6df79f8e1bc0c4b7b7e2a8e8c
# Copyright 2010 The Closure Library Authors. All Rights Reserved. """Utility to use the Closure Compiler CLI from Python.""" import distutils.version import logging import re import subprocess # Pulls a version number from the first line of 'java -version' _VERSION_REGEX = re.compile('[\.0-9]+') def _GetJavaVers...
xs2ranjeet/mdv
third_party/closure/closure/bin/build/jscompiler.py
Python
apache-2.0
1,676
[ "VisIt" ]
70313551ad932b7ddb13c0bdaacea1f74ed713cc13b0cd1e1b67e5d05e89466e
""" ================== Two-class AdaBoost ================== This example fits an AdaBoosted decision stump on a non-linearly separable classification dataset composed of two "Gaussian quantiles" clusters (see :func:`sklearn.datasets.make_gaussian_quantiles`) and plots the decision boundary and decision scores. The di...
RPGOne/Skynet
scikit-learn-0.18.1/examples/ensemble/plot_adaboost_twoclass.py
Python
bsd-3-clause
3,268
[ "Gaussian" ]
abcccc0e206fa22db835e7d4ff51f175c82276a7a90a5f05d6c6de76085c5851
from vtk import * import os.path data_dir = "../../../../VTKData/Data/Infovis/SQLite/" if not os.path.exists(data_dir): data_dir = "../../../../../VTKData/Data/Infovis/SQLite/" sqlite_file = data_dir + "SmallEmailTest.db" database = vtkSQLDatabase.CreateFromURL("sqlite://" + sqlite_file) database.Open("") query = ...
berendkleinhaneveld/VTK
Examples/Infovis/Python/database_query1.py
Python
bsd-3-clause
579
[ "VTK" ]
35a40c651d627abef1691f4e72ec464eca86b97c092665d7bde19f8a9272289d
# -*- coding: utf-8 -*- import numpy as np import paraBEM from paraBEM.vtk_export import VtkWriter from paraBEM.pan2d import * from paraBEM import PanelVector2, Vector2, Panel2 from paraBEM.airfoil.conformal_mapping import * from paraBEM.pan2d import DirichletDoublet0Source0Case2 as Case from paraBEM.utils import chec...
looooo/paraBEM
examples/vtk/vtk_coordinates_not_aligned.py
Python
gpl-3.0
2,119
[ "VTK" ]
0be81011481a331048d3358264787ad0ffa1f9dc97ab853c176155985570b8c3
# Licensed under a 3-clause BSD style license - see LICENSE.rst import itertools import pytest import numpy as np from numpy.testing import assert_allclose, assert_almost_equal from astropy.convolution.convolve import convolve, convolve_fft from astropy.convolution.kernels import (AiryDisk2DKernel, Box1DKernel, Box...
larrybradley/astropy
astropy/convolution/tests/test_kernel_class.py
Python
bsd-3-clause
21,124
[ "Gaussian" ]
ee8f3525388984dc23c206d02a0caf422bfd5f0708dd186d6709e15fc93d4fd6
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
B3AU/waveTree
sklearn/waveTree/tree.py
Python
bsd-3-clause
29,336
[ "Brian" ]
8d006d84f49c17451d4c95dd2ddfd0b916679f35cb5bb0c2f9275c7d4ff2eabc
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
philippjfr/bokeh
bokeh/__init__.py
Python
bsd-3-clause
2,367
[ "VisIt" ]
4b69a33a5f57f274deb7d5b6374f6720640f4a75fbb16eae343522761a6d0238
# -*- coding: utf-8 -*- # # gPodder - A media aggregator and podcast client # Copyright (c) 2005-2011 Thomas Perl and the gPodder Team # # gPodder 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...
elelay/gPodderAsRSSReader
src/gpodder/gtkui/frmntl/about.py
Python
gpl-3.0
5,570
[ "VisIt" ]
ea9b81af01fdde2ccd1df60dd8de60b3a567483f228d4ab41b1f7570f61d7f28
#!/usr/bin/python # --------------------- # Developed by National Center for Media Forensics # University of Colorado Denver # YouTubeUP-DOWN.sh v.6 9/23/2017 # # REQUIREMENTS: # View README.txt # # This file is derived from from Google's developer resources and has been modified # to integrate the youtube-dl Python l...
rwgdrummer/maskgen
plugins/YoutubeUpDown/__init__.py
Python
bsd-3-clause
16,466
[ "VisIt" ]
17fe828b47553ed49af90d31acd92791d7cee2dec663d9e75198589d6e43eee4
#!/usr/bin/python # -*- coding: utf-8 -*- # # 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 License as published by # the Free Software Foundation, either version 3 of the License, or # ...
t0mk/ansible
lib/ansible/modules/network/lenovo/cnos_conditional_template.py
Python
gpl-3.0
8,553
[ "VisIt" ]
c00939a4593a9d3563b2ad57e6dd744a525d26b7c6022bea8615962a6f9d6766
from __future__ import print_function from typing import cast, Any, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Text from confirmation.models import Confirmation from django.conf import settings from django.template import loader from django.utils.timezone import now as timezone_now from zerver.decorato...
jphilipsen05/zulip
zerver/lib/notifications.py
Python
apache-2.0
17,956
[ "VisIt" ]
2b9f0aca7a8e446ee4f26dfde0684afd68968408f288f520ba09b5f65bcba18a
# Various useful utilities for the pipeline. import sys import errno import subprocess from ruffus.proxy_logger import * import logging import imp import os import os.path from shell_command import shellCommand from cluster_job import PBS_Script import re # A simple container object class Bag: pass # XXX I don'...
magosil86/rubra
rubra/utils.py
Python
mit
8,497
[ "BWA" ]
4af5635dcf70a9c418afc4f5d017a226f56c8954f78f403f3e1c2a18c51c7ddc
""" Utility functions for transcripts. ++++++++++++++++++++++++++++++++++ """ from functools import wraps from django.conf import settings import os import copy import json import requests import logging from pysrt import SubRipTime, SubRipItem, SubRipFile from pysrt.srtexc import Error from lxml import etree from opaq...
gsehub/edx-platform
common/lib/xmodule/xmodule/video_module/transcripts_utils.py
Python
agpl-3.0
36,964
[ "FEFF" ]
9331459d0317a3b6c6e66d2cc8b10d60392ff537405eb74956fc6c4e9d06b8fb
#!/usr/bin/env python # # E-Mail post-processing script for NZBGet # # Copyright (C) 2013 Andrey Prygunkov <hugbug@users.sourceforge.net> # # 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...
tmm1/nzbget
ppscripts/EMail.py
Python
gpl-2.0
8,130
[ "VisIt" ]
68df0c5b4f3389652332e234658099c0fdb4c07335f3e941f3f0140c1d7e03b1
from common import Modules, data_strings, load_yara_rules, PEParseModule, ModuleMetadata, is_ip_or_domain from re import match class herpes(PEParseModule): def __init__(self): md = ModuleMetadata( module_name="herpes", bot_name="Herpes Net", description="Botnet that rea...
bwall/bamfdetect
BAMF_Detect/modules/herpes.py
Python
mit
1,507
[ "Brian" ]
ec56b3672ef09eb55e0afeae46932c37fc9c71f79e33fa5a878399f109886f85
import json from coalib.bearlib.abstractions.Linter import linter from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY def bool_or_str(value): try: return bool(value) except: return str(value) def bool_or_int(value): try: return bool(value) except: return int(v...
sims1253/coala-bears
bears/js/JSHintBear.py
Python
agpl-3.0
17,746
[ "VisIt" ]
dd27d4a5c1bf4dbdcb43a2e5278ee88d128f76459212d3ee500ebff405b401a3
## Generating simulated data for variations in the object parameters: 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 scipy.io import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import rospy #imp...
tapomayukh/projects_in_python
classification/Classification_with_HMM/Single_Contact_Classification/simulation_results/comparision_with_kNN_PCA/Combined/gen_data.py
Python
mit
19,166
[ "Mayavi" ]
7eb4349f74e7053be56df0ab7c7486002b9475a2c69ac754e4fdfec16a45772d
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2013, Jeroen Hoekx <jeroen.hoekx@dsquare.be>, Alexander Bulimov <lazywolf0@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ =...
ravibhure/ansible
lib/ansible/modules/system/lvol.py
Python
gpl-3.0
17,067
[ "Firefly" ]
81b6d496cd45ac8a3c59d1c22154a12f6f2796cc0e30c0792687ff93e9e24512
#!/usr/bin/python #Audio Tools, a module and set of tools for manipulating audio data #Copyright (C) 2007-2012 Brian Langenberger #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...
R-a-dio/python-audio-tools
test/test_core.py
Python
gpl-2.0
182,039
[ "Brian" ]
cdbcd30dd26ab6eb983770b2c54d7278e7bd19156663d33b1d2feb06cadf6fec
import numpy as np import nest import nest.voltage_trace as plot # Reset simulation nest.ResetKernel() nest.SetKernelStatus({'overwrite_files': True}) # set to True to permit overwriting # Set up simulation time limits T = 10000.0 dt = 10.0 # Set basic params delay = 1. # the delay in ms w_ex = 45. g = 3.83 w_in...
vitaliykomarov/NEUCOGAR
nest/serotonin/research/C/Py-Tests/test_serotonin.py
Python
gpl-2.0
2,980
[ "NEURON" ]
05ac82f43f1299b00f6f2d1b6ddc57c24f18510ba45cb9fd50443675ee2d5688
import pysam, sys, os from jobTree.src.bioio import reverseComplement, fastaRead, system, fastaWrite, \ cigarRead, logger, nameValue from margin.utils import * from cPecan import cPecanEm from cPecan.cPecanEm import Hmm, SYMBOL_NUMBER import numpy as np def mergeChainedAlignedSegments(chainedAlignedSegments, refSequen...
benedictpaten/marginAlign
src/margin/marginAlignLib.py
Python
mit
17,238
[ "pysam" ]
4f9b7fa01eb34c8d89dd9f8e36ff5878cf02487b2417f71946a51b62d60f264b
'''NetworkManager mock template This creates the expected methods and properties of the main org.freedesktop.NetworkManager object, but no devices. You can specify any property such as 'NetworkingEnabled', or 'WirelessEnabled' etc. in "parameters". ''' # This program is free software; you can redistribute it and/or m...
pete-woods/python-dbusmock
dbusmock/templates/networkmanager.py
Python
lgpl-3.0
32,225
[ "VisIt" ]
0955484147bb39c394cfdb523435f982e61dde711687aceba3ed7a25841bf63a
import os import unittest try: from StringIO import StringIO except ImportError: from io import StringIO import numpy as np from spglib import (get_ir_reciprocal_mesh, get_stabilized_reciprocal_mesh, get_symmetry_dataset, relocate_BZ_grid_address, ...
atztogo/spglib
python/test/test_reciprocal_mesh.py
Python
bsd-3-clause
22,699
[ "VASP" ]
d7217ca945d6a254ee1a92eb92617a933fcaf070fe704414db7ca57f01deeaae
# titles.py # # Copyright (C) 2014-2016 Kano Computing Ltd. # License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2 # chapters = { 1: { 'start_challenge': 1, 'end_challenge': 9, 'title': _('Start exploring') }, 2: { 'start_challenge': 10, 'end_challenge': 16, ...
KanoComputing/terminal-quest
linux_story/titles.py
Python
gpl-2.0
4,447
[ "VisIt" ]
c1e9038c9ceda3d440b4392f170407f4269bcd9b721824d2b39b56e443f321f3
# -*- coding: utf-8 -*- # # Copyright (c) 2017, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Classes and tools for storing and handling parsed data""" import numpy from collections import namedtuple ...
gaursagar/cclib
src/cclib/parser/data.py
Python
bsd-3-clause
18,135
[ "Gaussian", "cclib" ]
f3bad449fc6c8159882b64c91c7ec9e5aa41e81773baae877ff9c22437c17e93
__author__ = 'george' from baseclass import Plugin import time from apscheduler.scheduler import Scheduler class AreWeDone(Plugin): def __init__(self, skype): super(AreWeDone, self).__init__(skype) self.command = "arewedoneyet" self.sched = Scheduler() self.sched.start() sel...
jvlomax/Beaker-bot
plugins/arewedone.py
Python
gpl-2.0
1,837
[ "VisIt" ]
a6b3c871bdf247b936dd38997d42f49f4898055c438d74bbbdbda509e842e57d
""" ===================================== Inference for Linear-Gaussian Systems ===================================== This module implements Bierman's version of the Kalman Filter. In particular, the UDU' decomposition of the covariance matrix is used instead of the full matrix, where U is upper triangular and D is d...
PierrotLC/pykalman
pykalman/sqrt/bierman.py
Python
bsd-3-clause
35,116
[ "Gaussian" ]
c63986e4ddd2af2a127088a33bdf74f2144ea55952130411cabaad82930118e2
from bic_math import PitmanYor, LOG2PI, LogSum, LogRnd, Gammaln, slice_sample, LogPartition, LogSumWeave from matplotlib.mlab import find #from Graphviz.Dotty import * # from scipy import weave LOGMIN = -743.746924741 from numpy import * from pylab import hist, matshow, cm, hlines, legend,vlines, show, draw, axis, fi...
tedmeeds/tcga_encoder
tcga_encoder/analyses/biclustering/models.py
Python
mit
101,361
[ "Gaussian" ]
a2e9bf170eb1cb533e8f385ccf3f9bff258f23493ee805cf8ecd819b8b0cbdf3
''' Module to parse POTCAR files ''' import re from subprocess import Popen, PIPE def get_ZVAL(potcar): ''' return the ZVAL for a potcar file. parse this line: POMASS = 106.420; ZVAL = 10.000 mass and valenz ''' # First check if it is a .Z type file if potcar.endswith('.Z'): ...
prtkm/jasp
jasp/POTCAR.py
Python
gpl-2.0
2,564
[ "VASP" ]
a2fbd1cfceeabf492daa506cc6f047853f70b0fa7a7934c2ccbb215b4fe3113d
import os,sys import numpy as np from scipy.stats import norm from rpy import r from scipy.cluster.vq import kmeans2 #r.library(mvtnorm) ## a class represent a k component mixture of Gaussian models using a latent # variable representation of the Gaussian function. # the data matrix x is a numpy array (nxd) class Gau...
ksiomelo/cubix
spectralmix/mixmodel/GaussianMix.py
Python
apache-2.0
9,756
[ "Gaussian" ]
40c40e68000eb6b9f9f7b8b4e8a55c432b7fd3db338503f1a755220cb12f0ac2
#!/opt/local/bin/python # -*- Encoding: UTF-8 -*- """ ============ tracker ============ Implements blob tracking. The idea is to identify one coheren large amplitude structure in an image. Using a flooding and labelin algorithm from pymorph, the coherent region is identified. Identify coherent regions of similar amp...
rkube/blob_tracking
tracker.py
Python
mit
7,291
[ "Gaussian" ]
da77879e0316e46767d85d29824ae9986638895d39ec31126dc9f671252275b6
import subprocess import sys import os from django.conf import settings from utils import convert_fasta_to_fastq import millstone_de_novo_fns BWA_BINARY = settings.TOOLS_DIR + '/bwa/bwa' VELVETH_BINARY = settings.TOOLS_DIR + '/velvet/velveth' VELVETG_BINARY = settings.TOOLS_DIR + '/velvet/velvetg' """ Workflow: ref...
woodymit/millstone_accidental_source
genome_designer/genome_finish/de_novo_bam.py
Python
mit
6,373
[ "BWA" ]
962163c8e8203b87d51a638b24d336dc0a4410c546df77b2bf74469843ca769f
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2013 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Software F...
tiagocardosos/stoq
stoqlib/gui/editors/costcentereditor.py
Python
gpl-2.0
1,892
[ "VisIt" ]
deed9779b26249d6a9afea9320a7673319739e2cc25ea5022cd1fdd717190e3c
# # ast_visitor.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 # (at your option) any ...
kperun/nestml
pynestml/visitors/ast_visitor.py
Python
gpl-2.0
44,827
[ "NEURON", "VisIt" ]
fdedd8fec28e1350c529758b3874d7ad835de33f30f3ccfde2d2090a937d070c
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
DazWorrall/ansible
lib/ansible/modules/files/acl.py
Python
gpl-3.0
11,287
[ "Brian" ]
b070ae4537cb0bc757974c2de3fd613fcb9d9a39f7f49a9c8376eb0f72729ba9
#!/usr/bin/env python # Brian Cottingham # spiffytech@gmail.com # 2009-05-07 # Delivers messages to users either at a specified time, or when they next join/talk # This file is part of Spiffybot. # # Spiffybot is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
spiffytech/spiffybot
modules/tell/tell.py
Python
gpl-3.0
4,234
[ "Brian" ]
e42f98a233ddc2897a8ff404271cfddb3b7877707fd7ddba88968835af12a32b
"""This module contains functions for general bioinformatic tasks such as handling fasta files, running BLAST searches, and using the built-in subprocess module flexibly and safely""" #HANDLING FASTA FILES def extractfromfasta(fastafilepath): """extract FASTA headers ('comments') and sequences from FASTA file"""...
AlexOrlek/MOBtyping
mobtypingmodules/mobmods.py
Python
mit
6,814
[ "BLAST" ]
c70d0e390d40a7bc01cb6058194550e3f05466d1dfe4f39ab70dafa9ad7067cf
#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals, print_function import sys import sys import itertools from molbiox.frame.command import Command from molbiox.io import fasta, blast class CommandHitAggregate(Command): abbr = 'ha' name = 'hit-aggregate' desc = 'aggregate data...
frozflame/molbiox
molbiox/execute/relational_.py
Python
gpl-2.0
2,272
[ "BLAST" ]
ee82900f8b2ad5864f70cd4833f97051eb133448c34cf4f74e33cb41de2efa0e
__author__ = 'Patrick B. Grinaway' import os import MSMSeeder.distributed as msmseeder import pyspark class SparkDriver(object): """ Driver class for the Spark version of MSMSeeder. Provides a higher- level interface for interacting with MSMSeeder. """ _starting_templates = None _rdd_starting_...
choderalab/Ensembler2
scripts/SparkDriver.py
Python
gpl-2.0
1,876
[ "BLAST" ]
8625b8aa60e25de2fb23aa55b7652d09b67c7a4363c1d1f0810a1cad0bb8e992
""" Replicating the results of Interaction between light and highly confined hypersound in a silicon photonic nanowire Van Laer et al. http://dx.doi.org/10.1038/nphoton.2015.11 """ import time import datetime import numpy as np import sys import matplotlib matplotlib.use('pdf') import matplotlib.pyplo...
bjornsturmberg/NumBAT
lit_examples/simo-lit_04-pillar-Van_Laer-NP_2015.py
Python
gpl-3.0
3,587
[ "CRYSTAL" ]
4d8748bf84f7619633f3241d8dd70190fd723734ca6e7780dd4b5ad13da9222b
# # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Softwar...
SnakeDoc/GuestVM
guestvm~guestvm/com.oracle.max.ve.shell/fixsuperblock.py
Python
bsd-3-clause
1,218
[ "VisIt" ]
94fd3e5fb170d5924f84f17c634093bc10881772933f09478f045a598d03db0a
#imports from .netcdf import NetCdf from . import utils from . import shapefile_utils from .netcdf import Logger
bdestombe/flopy-1
flopy/export/__init__.py
Python
bsd-3-clause
120
[ "NetCDF" ]
c2dd816653cbccbe232b9487a2bf98d4369a0af6ba4fee98f9f1b8aa6e673fa9
"""Loads plugins from ``porcupine.plugins``.""" # many things are wrapped in try/except here to allow writing Porcupine # plugins using Porcupine, so Porcupine must run if the plugins are # broken from __future__ import annotations import argparse import dataclasses import enum import importlib.machinery import loggin...
Akuli/porcupine
porcupine/pluginloader.py
Python
mit
12,766
[ "VisIt" ]
ab3a5d7770927da5286a77965f5fa835d6853dd857433da277e70e04faaa8d82
""" ========================= Bayesian Ridge Regression ========================= Computes a :ref:`bayesian_ridge_regression` on a synthetic dataset. Compared to the OLS (ordinary least squares) estimator, the coefficient weights are slightly shifted toward zeros, wich stabilises them. As the prior on the weights is...
florian-f/sklearn
examples/linear_model/plot_bayesian_ridge.py
Python
bsd-3-clause
2,482
[ "Gaussian" ]
6cd5a4580d0653d42676d57eeafd2a4e98e7966a453b4827b56f87f564cbed1b
# Auto generated configuration file # using: # Revision: 1.303.2.7 # Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v # with command line options: -s GEN,SIM --conditions auto:mc --eventcontent RAWSIM --datatier GEN-SIM -n 10 --no_exec --mc --fileout zprime_GEN...
hh-italian-group/HHbbTauTau
McProduction/python/HH_TauTauBB_GENSIM_cfg.py
Python
gpl-2.0
5,905
[ "Gaussian" ]
463da11b3ec843489bc52ce8711b8ee312cc0c0f3f64ea4a8477acb68982cc14
# Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Handle path inference and translation.""" from __future__ import print_function import collections import os import tempfile from chromite.cbuildbot...
guorendong/iridium-browser-ubuntu
third_party/chromite/lib/path_util.py
Python
bsd-3-clause
13,750
[ "VisIt" ]
4443deb809e92aab0db8808e5b073d9e684410db9b9331b76e0a3967c09f16ba
#!/usr/bin/env python # vim: ts=4 sw=4 expandtab import os.path import re import conf import fs import htmlparse import jsparse import visitation import warnings import unittest import util from jsengine.parser import kind as tok from jsengine.parser import op _newline_kinds = ( 'eof', 'comma', 'dot', 'semi', 'c...
melloc/javascriptlint
javascriptlint/lint.py
Python
gpl-2.0
27,767
[ "VisIt" ]
fd83d02da042f17f435648e0beec8201db97d98e9f8ba3a606d9f897c03d2d51
try: import moogli except ImportError as e: print( "[INFO ] Could not import moogli. Quitting..." ) quit() import moose from moose import neuroml from PyQt4 import Qt, QtCore, QtGui import sys import os app = QtGui.QApplication(sys.argv) filename = os.path.join( os.path.split(os.path.realpath(__file__))[0...
BhallaLab/moose
moose-examples/moogli/simple_viewing.py
Python
gpl-3.0
1,302
[ "MOOSE" ]
251c21c59aa32229740773187b9e1847a47be112484af0ce9f0c25e04e2962aa
## numpy-oldnumeric calls replaced by custom script; 09/06/2016 ## Automatically adapted for numpy-oldnumeric Mar 26, 2007 by alter_code1.py ## ## Biskit, a toolkit for the manipulation of macromolecular structures ## Copyright (C) 2004-2018 Raik Gruenberg & Johan Leckner ## ## This program is free software; you can r...
graik/biskit
archive_biskit2/Biskit/AmberEntropyMaster.py
Python
gpl-3.0
25,638
[ "Amber" ]
c3d58b13d7c2496a7381d51155172ea9c96e1793536e7cc646f06f52ca0b00d4
# # # MMP (Multiscale Modeling Platform) - EU Project # funded by FP7 under NMP-2013-1.4-1 call with Grant agreement no: 604279 # # MICRESS application interface (example version) # # Copyright (C) 2014-2016 Ralph Altenfeld # (Access e.V., Germany) # # # This script code is free software; you can redistribute...
mupif/mupif
obsolete/APIs/micress/micress.py
Python
lgpl-3.0
23,986
[ "VTK" ]
28895b5959df802c195ae2366beb26ea1a152b3759d29215e94b20418a260c36
import os import sys import shutil from distutils.spawn import find_executable import tempfile import mdtraj as md import numpy as np from mdtraj.testing import get_fn, eq, SkipTest from mdtraj.geometry.dihedral import (compute_chi1, compute_chi2, compute_chi3, compute_chi4, compute_omega, compute_phi, compute_psi...
marscher/mdtraj
MDTraj/geometry/tests/test_dihedral.py
Python
lgpl-2.1
4,509
[ "MDTraj", "PyMOL" ]
effad5cf2e13ce3fedfb6f7a1046569a91b7c1ca0d1b8319e26c4788457505a0
#!/usr/bin/python -*- coding: utf-8 -*- # # Merlin - Almost Native Python Machine Learning Library: Gaussian Distribution # # Copyright (C) 2014-2015 alvations # URL: # For license information, see LICENSE.md import numpy as np """ Class for univariate gaussian p(x) = 1/sqrt(2*pi*simga^2) * e ^ - (x-miu)^2/2*sigma^2 ...
meetvaruni/GitFiles
pywsd-master/pywsd-master/merlin/gaussian.py
Python
gpl-2.0
862
[ "Gaussian" ]
f06e627cbdb9ed161da59bfefee11c94e83c374605573ebb5ba3c8ed060d79a9
""" Generate the SIM model using machine-generated code Copyright 2016 Brian Romanchuk 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 requir...
brianr747/SFC_models
sfc_models/deprecated/GL_machine_generated.py
Python
apache-2.0
2,855
[ "Brian" ]
f8bbe128d4289931779273430dbc9c32484e2e8ab08339b32d5d89ac5ed40c25
#! python3 # randomQuizGenerator.py - Creates quizzes with questions and answers in # random order, along with the answer key. import random # The quiz data capitals = {'Alabama': 'Montgomery', 'Alaska': 'Juneau', 'Arizona': 'Phoenix', 'Arkansas': 'Little Rock', 'California': 'Sacramento', 'Colorado': 'Denver', ...
vdrey/Toolbox
Python/AutomateBoringStuff/randomQuizGenerator.py
Python
mit
2,884
[ "COLUMBUS" ]
d539d4a86094be6ce3e42e5b61e76aa317e2e581ed72afedfc3c81c6a891fcbd
""" Provide a generic structure to support window functions, similar to how we have a Groupby object. """ from __future__ import annotations import copy from datetime import timedelta from functools import partial import inspect from textwrap import dedent from typing import ( TYPE_CHECKING, Any, Callable,...
datapythonista/pandas
pandas/core/window/rolling.py
Python
bsd-3-clause
77,026
[ "Gaussian" ]
e99c9e421e11fd32fdea1da606936d0fa32be89f7d84e5d5a7083a50690f8b30
''' Created on 18 Jan 2013 @author: Kieran Finn ''' import urllib2 import sys import json from functions import * import time import pickle from math import pi from scipy.integrate import quad import numpy as np source_fname='q1_sources.csv' in_fname='q1_detailed.csv' out_fname='planet_specific.csv' ...
christensen5/pyIBCC
attic/Copy of get_planet_data.py
Python
mit
3,852
[ "Gaussian" ]
20504fc6bce7d8b643e148d12f8d3524bcdbfd5035e8586b57ac94dcc31fb265
#!/usr/bin/env python """ Fuzzy logic system for risk mitigation Input: Scene-graph content + Risk level Output: Robot left/right weel speed (scale?) """ import numpy as np import skfuzzy as fuzz from skfuzzy import control as ctrl global IZW # Safety zone size IZW = 0.4 # This is an example. It will be rec...
EricssonResearch/scott-eu
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/mitigationFramework2.py
Python
apache-2.0
6,193
[ "Gaussian" ]
4a15f4ca99e3b4b4c595a681c0dadc5402bdd700d86800a99dbc899f0a1cdc22
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2008 Jerome Rapinat # Copyright (C) 2008 Benny Malengier # # This program is free software; you can redistribute it and/or modify # it under the terms of the ...
pmghalvorsen/gramps_branch
gramps/gen/filters/rules/_hassourcecountbase.py
Python
gpl-2.0
2,639
[ "Brian" ]
6ff976a2fa7c65d9946379b3e305b197adc945727392fb5c64e12693a61b0a2c
from __future__ import print_function, division from sympy import Integer from sympy.core.compatibility import is_sequence from threading import RLock # it is sufficient to import "pyglet" here once try: from pyglet.gl import * except ImportError: raise ImportError("pyglet is required for plotting.\n " ...
grevutiu-gabriel/sympy
sympy/plotting/pygletplot/plot.py
Python
bsd-3-clause
13,256
[ "VisIt" ]
1c424cb0d263e72a62a4e462f55d542bdfbd20e3839c57869ca593446ed8afef
#!/usr/bin/env python # vim:fileencoding=utf-8 from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' import inspect, time from io import BytesIO from repr import repr from functo...
insomnia-lab/calibre
src/calibre/db/tests/legacy.py
Python
gpl-3.0
38,765
[ "MOOSE" ]
2e3acdff01fba771674c08d344024ed7a896ec6b28d1ce3dbe9adc6d3c96ac01
import firedrake as fd import numpy as np from slepc4py import SLEPc from firedrake.petsc import PETSc import scipy.io as sp import pandas as pd import matplotlib.pyplot as plt def coords2ijk(x, y, z, Delta, data_array): i = np.floor(x / Delta[0]).astype(int) j = np.floor(y / Delta[1]).astype(int) k = np...
rbpiccinini/codes
eigendrake/scripts/heterogeneous/case01/temporal_case01.py
Python
gpl-3.0
7,529
[ "VTK" ]
8f0b60977ce97de7f7530457dc592812837f810040ed87f3d7e4ed776ed6a591
# Copyright (C) 2012-2018 # Max Planck Institute for Polymer Research # Copyright (C) 2008-2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of the GNU General...
espressopp/espressopp
src/integrator/FreeEnergyCompensation.py
Python
gpl-3.0
4,603
[ "ESPResSo" ]
859aa3002b10e52de34d60e62f620403a14cf3f5fff37b33f6077ee7cea5ba89
# -*- coding: utf-8 -*- """ Unit tests for instructor.api methods. """ import datetime import ddt import random import pytz import io import json import requests import shutil import tempfile from urllib import quote from unittest import skip from django.conf import settings from django.contrib.auth.models import User ...
edcast-inc/edx-platform-edcast
lms/djangoapps/instructor/tests/test_api.py
Python
agpl-3.0
201,720
[ "VisIt" ]
04fa7c7af1097231ad6b85eb35840990c8da64a0f91e1c2102d437711844c8de
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
vortex-ape/scikit-learn
sklearn/tree/tree.py
Python
bsd-3-clause
62,143
[ "Brian" ]
d8de0c267e88ecbb5a5fcddf154668258cb2e857ccde98a238e24ab4f81974cc