text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
import coverage.plugin import hy.importer import ast import os.path class HyCoveragePlugin(coverage.plugin.CoveragePlugin): """The main entry point for the coverage plugin. This is responsible for determining which modules it understands (i.e. all Hy modules), and acts as an Abstract Factory to instantiat...
timmartin/hy-coverage
hy_coverage_plugin/hy_coverage.py
Python
mit
2,500
[ "VisIt" ]
fa51aae832940bcee7839a2cb800bf24bad106e066ab88a1e7e867933db7a7f8
# -*- coding: utf-8 -*- """ Shortest path algorithms for weighed graphs. """ __author__ = """\n""".join(['Aric Hagberg <hagberg@lanl.gov>', 'Loïc Séguin-C. <loicseguin@gmail.com>', 'Dan Schult <dschult@colgate.edu>']) # Copyright (C) 2004-2011 by # Aric Hagb...
ReganBell/QReview
networkx/algorithms/shortest_paths/weighted.py
Python
bsd-3-clause
30,414
[ "VisIt" ]
a9e05399c9840be57184766af38a48a7e84d8ec871dc046db644d30fdced80d9
# coding: utf-8 """ Integration Tests ~~~~~~~~~~~~~~~~~ """ import sys import re import argparse import iocapture import mock import pytest import argh from argh.exceptions import AssemblingError from .base import DebugArghParser, get_usage_string, run, CmdResult as R @pytest.mark.xfail(reason='TODO') def test_gue...
neithere/argh
test/test_integration.py
Python
gpl-3.0
21,166
[ "MOOSE" ]
72cb057c17b038fd93a38e27c20dd6bbd04fe43f91cde01fbea1673e56cfdf0c
# -*- coding: utf-8 -*- """ pygments.lexers.boa ~~~~~~~~~~~~~~~~~~~~ Lexers for the Boa language. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, words from pygments.toke...
unreal666/outwiker
plugins/source/source/pygments/lexers/boa.py
Python
gpl-3.0
3,862
[ "VisIt" ]
ffedf7339d9f430f69b05e8fd0ff1f2f5784cb6a1507654bfd953f2c05cf9e18
#!/usr/bin/python # Import standard Python modules import os,sys # Debug info print 'Python version: %s' % unicode(sys.version_info) # In order to find our custom data files, make sure that we are in the directory # containing the executable. oldworkingdir = os.getcwdu() os.chdir(os.path.abspath(os.path.dirname(sys....
BoldingBruggeman/gotm
gui.py/batch.py
Python
gpl-2.0
6,457
[ "NetCDF" ]
9809f1df7d7b64f14fb81f19bd9ff0a562356a905502525de6c2b27d51622681
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import uuid class Migration(migrations.Migration): dependencies = [ ('visit', '0054_auto_20150811_1304'), ] operations = [ migrations.CreateModel( name='InvolvementType',...
koebbe/homeworks
visit/migrations/0055_auto_20150815_0213.py
Python
mit
1,129
[ "VisIt" ]
a183be4bd0f5af66845b207f1985b23898db7b4e139e52470bb9a8efa7bf38c5
#!/usr/bin/env python from active_worker.task import task import yaml import matplotlib matplotlib.use('Agg') import time import os import glob import numpy as np from task_types import TaskTypes as tt import helper_functions @task def microcircuit_task(configuration_file, simulation_duration, ...
INM-6/UP-Tasks
NEST/microcircuit_task/microcircuit_task.py
Python
gpl-2.0
12,026
[ "NEURON" ]
fd56b77e063fbc94c8ad8e65d8c14ff7fa9585bebf7f292e03333afa0350bca7
# AvsP - an AviSynth editor # Copyright 2007 Peter Jang # http://avisynth.nl/users/qwerpoi # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your op...
AvsPmod/AvsPmod
pyavs_avifile.py
Python
gpl-2.0
15,204
[ "VisIt" ]
7b6af904f5d2b62f63eee0c3482dec46f93df0c7c419cdb26aa5da8fcedc473a
#pylint: disable=missing-docstring #* 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/...
nuclear-wizard/moose
python/chigger/base/ResultGroup.py
Python
lgpl-2.1
2,059
[ "MOOSE" ]
cec0fb77e0e42b8169c86a8ceb26e959f2fd5b611c2c5442bfcc3f3baf000b4f
import numpy as np import mdtraj as md from mdtraj.testing import eq random = np.random.RandomState(0) def compute_neighbors_reference(traj, cutoff, query_indices, haystack_indices=None): if haystack_indices is None: haystack_indices = range(traj.n_atoms) # explicitly enumerate the pairs of query-hay...
dwhswenson/mdtraj
tests/test_neighbors.py
Python
lgpl-2.1
1,848
[ "MDTraj" ]
7a7d790e52e732105ec932a911dcf86a7fff4fac135f6fdb40ae038229729d3f
#!/usr/bin/env python import sys import os import os.path if len(sys.argv)!=2: print("Usage:", sys.argv[0], "simu_directory") sys.exit(0) import numpy as np from io import StringIO # Open lammps log file to extract thermodynamic observables logfile = open(os.path.join(os.getcwd(),sys.argv[1], 'log.lammps'))...
pdebuyl/ljrr
check_T.py
Python
bsd-3-clause
966
[ "LAMMPS" ]
f101d283c15fad6f993cba9ccfc0391959c6706e41c8844dbfc72fa5cbd0ad0c
""" Tests the forum notification views. """ import json import logging from datetime import datetime from unittest.mock import ANY, Mock, call, patch import ddt import pytest from django.http import Http404 from django.test.client import Client, RequestFactory from django.test.utils import override_settings from dja...
edx/edx-platform
lms/djangoapps/discussion/tests/test_views.py
Python
agpl-3.0
91,300
[ "VisIt" ]
d6506f971cd52545c25b670970f1afe0ba57f9a41207b0346f0d4f15ca1e6ea0
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
MOA-2011/e2openplugin-OpenWebif
plugin/controllers/views/web/mediaplayeradd.py
Python
gpl-2.0
5,225
[ "VisIt" ]
90680c198fdf2710b78d0be9683cd77ce61b74be73ad7c9d81e5657f2441a7f6
#!/usr/bin/env python __author__ = 'Xiaocheng Tang and Ted Ralphs' __maintainer__ = 'Ted Ralphs' __email__ = 'ted@lehigh.edu' __version_ = '1.0.0' __url__ = 'https://github.com/tkralphs/GoogleDriveScripts' # Last modified 2/17/2016 Ted Ralphs # Visit this URL to download client secret file # https...
tkralphs/GoogleDriveScripts
DriveSort.py
Python
mit
11,500
[ "VisIt" ]
f16fb7b8cf1f7f7bc6e37f5a4e81bfa58fa7aafd0670463c8b8ba53afa3b7950
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import logging from collections import namedtuple import pytest import torch import pyro.distributions as dist from pyro.contrib.gp.kernels import RBF, Cosine, Matern32, WhiteNoise from pyro.contrib.gp.likelihoods import Gaussian...
uber/pyro
tests/contrib/gp/test_models.py
Python
apache-2.0
15,042
[ "Gaussian" ]
ce7c7ccaed8c095c26da5a30966f0075812901b67c7b6fde61a5f8909bbe4c57
# coding: utf-8 from __future__ import unicode_literals """ This module implements various transmuter classes. Transmuters are essentially classes that generate TransformedStructures from various data sources. They enable the high-throughput generation of new structures and input files. It also includes the helper f...
rousseab/pymatgen
pymatgen/alchemy/transmuters.py
Python
mit
16,781
[ "VASP", "pymatgen" ]
25718fe3915ea2633f8b6b0fb307e79162cbb2b3736a01ecc1ad0883dca7bfa5
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() pts = vtk.vtkPoints() pts.SetNumberOfPoints(22) pts.SetPoint(0,0,0,0) pts.SetPoint(1,1,0,0) pts.SetPoint(2,2,0,0) pts.SetPoint(3,3,0,0) pts.SetPoint(4,4,0,0) pts.SetPoint(5,5,0,0) pts...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Filters/Core/Testing/Python/TestTriangleFilter.py
Python
gpl-3.0
2,623
[ "VTK" ]
d94be52e1a7b69d715dfdf8fb578e63be87c451b6deb4f3631a64735d28b9689
from __future__ import print_function import ast import os import codecs from setuptools import setup class VersionFinder(ast.NodeVisitor): def __init__(self): self.version = None def visit_Assign(self, node): if node.targets[0].id == '__version__': self.version = node.value.s d...
jezdez/django-configurations
setup.py
Python
bsd-3-clause
2,117
[ "VisIt" ]
3b47a2d990c81fb33f3bb7a973d5608c33f2f75a4450c2f46871ff0ac79ac8a5
import unittest import itertools from functools import partial import numpy from tvtk.api import tvtk from simphony.cuds.mesh import Mesh, Point, Face, Edge, Cell from simphony.core.data_container import DataContainer from simphony.core.cuba import CUBA from simphony.testing.abc_check_mesh import ( CheckMeshConta...
simphony/simphony-mayavi
simphony_mayavi/cuds/tests/test_vtk_mesh.py
Python
bsd-2-clause
9,374
[ "VTK" ]
9dd8d28fa48687b2bed921bc685856f34b2fdc1f7461b4bc032e55eb20f08998
######################################################################## # File : CLI.py # Author : Andrei Tsaregorodtsev ######################################################################## """ CLI is the base class for all the DIRAC consoles ( CLIs ). It contains several utilities and signal handlers of ge...
yujikato/DIRAC
src/DIRAC/Core/Base/CLI.py
Python
gpl-3.0
3,675
[ "DIRAC" ]
00aaac4323daaeb2904bae6efb8270776d4fe37010331cce1ff0e80d11d7be78
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2014 Brian McClure # # django-media-helper is free software under terms of the MIT License. # # Fork of django-cleanup from setuptools import setup, find_packages description = """# **django-media-helper** # When dealing with content from unacquainted...
brmc/django-media-helper
setup.py
Python
mit
1,794
[ "Brian" ]
76d0e0cb84bdd800be36c4c8b5569ff771ad37ad062c11c70303104add928140
# -*- coding: utf-8 -*- import ast import base64 import csv import glob import itertools import logging import operator import datetime import hashlib import os import re import simplejson import time import urllib2 import xmlrpclib import zlib from xml.etree import ElementTree from cStringIO import StringIO import b...
mrshelly/openerp71313
openerp/addons/web/controllers/main.py
Python
agpl-3.0
66,071
[ "VisIt" ]
fc5362f8591584fb90b20b1696016d47b5d729f26433f070a5334a1f7ba20e7d
#!/usr/bin/env python3 # Coptyright 2016 (c) Brian McKean ''' File name: set_host_os.py Author: Brian McKean Date created: 10/16/2016 Python Version: 3.5 input: a list of ip addresses, string input: a keyfile for accessing AWS output: string modified to instance:OS pair dependencies: ...
co-bri/quevedo
v2_scripts/set_host_os.py
Python
mit
2,899
[ "Brian" ]
90d1e200534f7d63c7406b88c53bcbe93e044840047fbb17f92ccdf2dec977f9
from castle.cms import registration from castle.cms.utils import get_email_from_address from castle.cms.utils import send_email from castle.cms.utils import verify_recaptcha from castle.cms.widgets import ReCaptchaFieldWidget from plone.app.users.browser.register import RegistrationForm as BaseRegistrationForm from plo...
castlecms/castle.cms
castle/cms/browser/registration.py
Python
gpl-2.0
10,263
[ "VisIt" ]
5daff79f5307d397128448059e8f42ef9f167452f7a3cd82af025ed941ecfc05
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Python 3.6.8 ########################################################################################## # Armoured Commander # # The World War II Tank Commander Roguelike ...
sudasana/armcom
armcom.py
Python
gpl-3.0
572,525
[ "BLAST", "Firefly" ]
394d407fa6c733d7ad67c3f5bbf2cb1873475f3ec2b0821c03158c56c6c19207
# -*- coding: utf-8 -*- # Copyright (c) 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2013-2014 Google, Inc. # Copyright (c) 2014-2017 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Cosmin Poieana <cmin@ropython.org> # Copyright (c) 2014 Vlad Temian <vladtemian@gmail.com> # Copy...
AtomLinter/linter-pylama
bin/deps/pylint/checkers/stdlib.py
Python
mit
12,544
[ "VisIt" ]
cbfe63408816a049730b04c40481ad65731bb49ad2c759f19387f939ec32cdc3
#!/usr/bin/env python # Copyright 2014-2021 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...
sunqm/pyscf
pyscf/fci/selected_ci_spin0.py
Python
apache-2.0
7,596
[ "PySCF" ]
3863569a49cbdb2c8e39edc8f868aca843250f096b1759e58f82e95422956860
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribu...
jarrodmcc/OpenFermion
src/openfermion/tests/_lih_integration_test.py
Python
apache-2.0
6,229
[ "Psi4" ]
aa8fa19bb148f979135cf74217ee58e7e1cb59ba1a5fa1dfb21226feb25ab371
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,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 t...
capoe/espressopp.soap
src/Int3D.py
Python
gpl-3.0
3,721
[ "ESPResSo" ]
bed7ef5dbdc76889c4224314267ef11d95035e96b5892901833958e806abfdf0
""" 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...
manhhomienbienthuy/scikit-learn
sklearn/tree/_classes.py
Python
bsd-3-clause
70,831
[ "Brian" ]
2fda80a9fe831b44eb9d370abc18612197854841e95d40a6a683beeef5167016
__author__ = 'Victoria' from src.common.Observable import * from src.game.AttackSpell import * from random import * class HeroState(object): def __init__(self, name): self._name = name super(HeroState, self).__init__() def north(self): pass def south(self): pass def attack(self): pass ...
victorianorton/SimpleRPGGame
src/game/SimpleGame.py
Python
mit
6,900
[ "VisIt" ]
379302933ca97feb3737c645aaa7d8b61656b4750236d001982b93a1522f5696
import unittest import numpy as np import pysal #import pysal.spreg as EC from scipy import sparse from pysal.contrib.handler import Model from functools import partial OLS = partial(Model, mtype='OLS') PEGP = pysal.examples.get_path class TestOLS(unittest.TestCase): def setUp(self): db = pysal.open(PEG...
TaylorOshan/pysal
pysal/contrib/handler/tests/test_ols_sparse.py
Python
bsd-3-clause
4,665
[ "COLUMBUS" ]
59398de822e1743ff5d60df9141818317850823e328d3e8c531e9f7c7af62340
# -*- coding: utf-8 -*- # 145. Binary Tree postorder Traversal # # Given a binary tree, return the postorder traversal of its nodes' values. # # For example: # Given binary tree {1,#,2,3}, # 1 # \ # 2 # / # 3 # return [1,2,3]. # # Note: Recursive solution is trivial, could you do it iteratively? # ...
gengwg/leetcode
145_binary_tree_postorder_traversal.py
Python
apache-2.0
2,759
[ "VisIt" ]
335c899e3f0f6b8893aeb11364d41e8e26a7e93ff3b71cfa552232ea2e5e959b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import unittest import os import json from io import open from pymatgen.electronic_structure.bandstructure import Kpoint from pymatgen import Lattice from pymatgen.elec...
migueldiascosta/pymatgen
pymatgen/electronic_structure/tests/test_bandstructure.py
Python
mit
8,456
[ "pymatgen" ]
da4b07b57b3835560d36dce513ffdc2371cc858a3089a97385756b0799fc08ab
class node(object): """ This class represents a node in the AST built while parsing command lines. It's basically an object container for various attributes, with a slightly specialised representation to make it a little easier to debug the parser. """ def __init__(self, **kwargs): asse...
idank/bashlex
bashlex/ast.py
Python
gpl-3.0
7,080
[ "VisIt" ]
24ae9d556f9d8afc6e1339366f7cf62745465ac0bfccccf96ef211f49ea16ecf
import numpy as np from mpl_toolkits.basemap import pyproj from datetime import datetime try: import netCDF4 as netCDF except: import netCDF3 as netCDF import pyroms class BGrid_POP(object): """ BGrid object for POP """ def __init__(self, lon_t, lat_t, lon_u, lat_u, angle, h_t, h_u, z_t, z_w, na...
dcherian/pyroms
pyroms_toolbox/pyroms_toolbox/BGrid_POP/BGrid_POP.py
Python
bsd-3-clause
2,079
[ "NetCDF" ]
bbd932cfc67078858e8c42297cbb9ed3676cfb4cde36834a8e22732bb893e3b0
#!/usr/bin/env python # # A basic functional test of the total impact API # import urllib2 import urllib import json import time import sys import pickle from pprint import pprint from optparse import OptionParser TEST_ITEMS = { ('doi', '10.1371/journal.pcbi.1000361') : { 'aliases': ['doi', "...
total-impact/total-impact-core
extras/functional_tests/functional_test.py
Python
mit
8,918
[ "CDK" ]
4fd538a0e0307610a6776d870f82d75c7db7487ccd5e49c5c0f8f50375e67f09
""" Scematic Diagram of PCA ----------------------- Figure 7.2 A distribution of points drawn from a bivariate Gaussian and centered on the origin of x and y. PCA defines a rotation such that the new axes (x' and y') are aligned along the directions of maximal variance (the principal components) with zero covariance. ...
nhuntwalker/astroML
book_figures/chapter7/fig_PCA_rotation.py
Python
bsd-2-clause
3,000
[ "Gaussian" ]
00be0b21cebafa6d7b0a179efd5c90daca6e4f7f80c04aa20e1a7d664cff0d0c
__author__ = 'tylin' __version__ = '2.0' # 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 visualizing the annotations in COCO. # Pleas...
wenhuchen/ETHZ-Bootstrapped-Captioning
visual-concepts/coco/PythonAPI/pycocotools/coco.py
Python
bsd-3-clause
16,953
[ "VisIt" ]
6cf0c67f60cb87372e2944a9d1199eff9b1bad66271c8c48ce520a7181decbe5
""" Acceptance tests for Home Page (My Courses / My Libraries). """ from bok_choy.web_app_test import WebAppTest from opaque_keys.edx.locator import LibraryLocator from unittest import skip from ...pages.studio.auto_auth import AutoAuthPage from ...pages.studio.library import LibraryEditPage from ...pages.studio.index...
valtech-mooc/edx-platform
common/test/acceptance/tests/studio/test_studio_home.py
Python
agpl-3.0
2,146
[ "VisIt" ]
9428df4b4044f677849108f79971d3b68edc73fb8dd4ed48246c97fda728fe0c
#!/usr/bin/env python import unittest import shutil import os import subprocess import sys from distutils.version import StrictVersion def run(command): """ run shell command & return unix exit code """ process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = proce...
snayfach/PhyloCNV
test/test_midas.py
Python
gpl-3.0
5,928
[ "pysam" ]
d194e0c84d8a0067e58fa02fb687a6825705cc3142b89a9689b63b46933e7c58
# Copyright 2010 Dan Smith <dsmith@danplanet.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is ...
mach327/chirp_fork
chirp/drivers/kenwood_live.py
Python
gpl-3.0
44,648
[ "Elk" ]
55b75285e64a00cc45a5067485f50a3099f57e95bb2fc8c89518d414bf799829
# # Copyright 2001 - 2006 Ludek Smid [http://www.ospace.net/] # # This file is part of IGE - Outer Space. # # IGE - Outer Space 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...
Lukc/ospace-lukc
server/lib/ige/ospace/IFleet.py
Python
gpl-2.0
51,556
[ "Galaxy" ]
bb99e2eadb69f49d57421ed430a2da194175b45f746e3e83e1c4fe5560563bae
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Input sets for Qchem """ import logging import os from monty.io import zopen from pymatgen.io.qchem.inputs import QCInput from pymatgen.io.qchem.utils import lower_and_check_unique __author__ = "Samuel ...
davidwaroquiers/pymatgen
pymatgen/io/qchem/sets.py
Python
mit
10,509
[ "pymatgen" ]
58adf9c7451f8eea544f82d4ce213593f596b61f5e022fcbe55e6630a27eb979
""" This module contain utilities for the source finding routines """ import numpy import math import scipy.integrate from tkp.sourcefinder.gaussian import gaussian from tkp.utility import coordinates def generate_subthresholds(min_value, max_value, num_thresholds): """ Generate a series of ``num_thresholds``...
mkuiack/tkp
tkp/sourcefinder/utils.py
Python
bsd-2-clause
8,748
[ "Gaussian" ]
def1a81206a32f6eb7a9c58933a8e019fb3ff5bd476709a1d3d70ae7795aec76
#!/usr/bin/env python import pysam import argparse import multiprocessing as mp import subprocess import logging logger = logging.getLogger(__name__) FORMAT = '%(asctime)s %(message)s' logging.basicConfig(format=FORMAT) logger.setLevel(logging.INFO) from math import log10 import pandas as pd import scipy.stats as s...
adamewing/tebreak
scripts/bam_cpm_mask.py
Python
mit
2,815
[ "pysam" ]
0814a066ed2b81a95996d928b9f1bb28504992d574ad592c2beac2066653fa92
'''OpenAnything: a kind and thoughtful library for HTTP web services This program is part of 'Dive Into Python', a free Python book for experienced programmers. Visit http://diveintopython.org/ for the latest version. ''' __author__ = 'Mark Pilgrim (mark@diveintopython.org)' __version__ = '$Revision: 1.6 $'[11:-2] _...
pacoqueen/cican
utils/gmapcatcher/gmapcatcher/openanything.py
Python
gpl-3.0
6,282
[ "VisIt" ]
c8c4665675a0e9de665f9955f1f3d87efa3b9161a0415b0af5e7b1a2b0b417f7
#!/usr/bin/python # (C) 2014, Markus Wildi, markus.wildi@bluewin.ch # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # Th...
zguangyu/rts2
scripts/rts2saf/rts2saf_frosted.py
Python
gpl-2.0
1,649
[ "VisIt" ]
b46aa19e9a50c6e2395ce55649da76a7dff7e150c203e45f30379c37937ee53f
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2005-2007 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2009 Benny Malengier # Copyright (C) 2010 Nick Hall # Copyright (C) 2010 Jakim Friant # Copyright (C) 2012 Gary Burton # Copyright (C) 2...
beernarrd/gramps
gramps/gui/viewmanager.py
Python
gpl-2.0
69,222
[ "Brian" ]
92bbe76f0d1816501e89a28861c283f7e3f5921769f408cf595719244958a3fe
""" Generating lines of code. """ from functools import partial, wraps import sys from typing import Collection, Iterator, List, Optional, Set, Union from black.nodes import WHITESPACE, RARROW, STATEMENT, STANDALONE_COMMENT from black.nodes import ASSIGNMENTS, OPENING_BRACKETS, CLOSING_BRACKETS from black.nodes import...
psf/black
src/black/linegen.py
Python
mit
42,162
[ "VisIt" ]
f4b1a5395b8d9fbd938551ad4d9e2672fa3756b93e44476947de1cb037050050
import fnmatch import os import posixpath import re import sys from ast import AST, Attribute, iter_fields, Name if sys.version_info[0] == 3: string_types = (str,) else: string_types = (basestring,) # noqa IGNORED_DIRS = [ '*.egg-info', '.bzr', '.cache', '.git', '.hg', '.idea', '....
suutari-ai/shoop
_misc/sanity_utils.py
Python
agpl-3.0
5,137
[ "VisIt" ]
9792af562b33e081a62f295373accd9225c0752de22c2150e9ca2cb46421df2a
import numpy as np from operator import attrgetter from scipy.ndimage.morphology import distance_transform_edt as scipy_edt from scipy.spatial.distance import euclidean import glob import os import sys # http://www.gaussian.com/g_tech/g_ur/k_constants.htm angstrom_per_bohr = 0.5291772086 AXES = ['x', 'y', 'z'] class...
jszopi/repESP
repESP_old/cube_helpers.py
Python
gpl-3.0
19,741
[ "Gaussian" ]
45214023bbef6fc35ddb1a0ecbc74882c53672fb4cb7a088cd70cc990b33286f
""" ARC Computing Element Using the ARC API now **Configuration Parameters** Configuration for the ARCComputingElement submission can be done via the configuration system. XRSLExtraString: Default additional string for ARC submit files. Should be written in the following format:: (key = "value") XRSLMP...
DIRACGrid/DIRAC
src/DIRAC/Resources/Computing/ARCComputingElement.py
Python
gpl-3.0
30,607
[ "DIRAC" ]
2195489d793c6d13e71d732de2594ee6021b239dadf1f07fe423405158ed9905
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ Created on Mar 18, 2012 """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "S...
czhengsci/pymatgen
pymatgen/apps/borg/tests/test_queen.py
Python
mit
1,372
[ "pymatgen" ]
e841a3e0c8cfd99931bc932925c5538436edcfaf29019b0f45a6e925b6c65082
# Copyright 2015 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...
strint/tensorflow
tensorflow/python/ops/template.py
Python
apache-2.0
12,917
[ "VisIt" ]
3437cae55a86f29652b9a92eaf7809974a937e49bd5122e67d9aa20d108babef
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @file tls_vissimXML2SUMOnet_update.py @author Lukas Grohmann <Lukas.Grohmann@ait.ac.at> @author Gerald Richter <Gerald.Richter@ait.ac.at> @date Jun 11 2015 @version $Id: tls_vissimXML2SUMOnet_update.py 22608 2017-01-17 06:28:54Z behrisch $ Converts a VISSIM-tls...
702nADOS/sumo
tools/import/vissim/tls_vissimXML2SUMOnet_update.py
Python
gpl-3.0
24,957
[ "Amber" ]
268427fe5ac6748b2ba8b5a73081368119b577a071022770f034758ab234f9ec
#!/usr/bin/env python # -*- coding: utf-8 -*- # #****************************************************************************** #* #* Copyright (C) 2015 Kiran Karra <kiran.karra@gmail.com> #* #* This program is free software: you can redistribute it and/or modify #* it under the terms of the GNU General Public Licens...
kkarrancsu/copula-bayesian-networks
ecdf.py
Python
gpl-3.0
4,661
[ "Gaussian" ]
5641a778d02b56bccf3731212e4acc6501f7afd3b67cd3a5c790e7d1979e20c6
from __future__ import division from pylab import * import utils utils.backup(__file__) from stats import AbstractStat from stats import HistoryStat from stats import _getvar from common.sources import TrialSource from utils.lstsq_reg import lstsq_reg import cPickle as pickle import gzip def load_source(name,c): ...
Saran-nns/SORN
common/sorn_stats.py
Python
mit
74,077
[ "NEURON" ]
20d4638cf3db4898f7c31d2c53c9c08ff3c5dd208b6af0cc07dffa31f92baec2
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2003-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2012 Nick Hall # Copyright (C) 2011-2014 Paul Franklin # # This program is free software; you can redistribute it...
pmghalvorsen/gramps_branch
gramps/gui/plug/report/_bookdialog.py
Python
gpl-2.0
39,233
[ "Brian" ]
0efce33f656cd49afc7d720e983932f13db3280d3a54d7dc3e83592138faa58a
from django.utils.translation import ugettext as _ from django.conf import settings import os, syslog # ------------------------------------------- # # CONFIGURATION # ------------------------------------------- # # Global conf = { 'appdir': os.path.dirname(os.path.realpath(__file__)), 'taskdir': os.pa...
hicinformatic/DJANGO-Tracker
settings.py
Python
gpl-3.0
4,355
[ "VisIt" ]
a82164c8b7c2fe40bb9b628e1101a7fab1415afe8d6f4b6380215c5be5614cc4
""" ======================================================= Diffeomorphic Registration with binary and fuzzy images ======================================================= This example demonstrates registration of a binary and a fuzzy image. This could be seen as aligning a fuzzy (sensed) image to a binary (e.g., temp...
FrancoisRheaultUS/dipy
doc/examples/register_binary_fuzzy.py
Python
bsd-3-clause
4,831
[ "Gaussian" ]
e4b87cd9e9983a93f167619c8e0ffab0e23294d81ce9d6865ad713837b3eb1c3
""" ================================= Map data to a normal distribution ================================= .. currentmodule:: sklearn.preprocessing This example demonstrates the use of the Box-Cox and Yeo-Johnson transforms through :class:`~PowerTransformer` to map data from various distributions to a normal distribut...
glemaitre/scikit-learn
examples/preprocessing/plot_map_data_to_normal.py
Python
bsd-3-clause
4,716
[ "Gaussian" ]
b981315f216514de09b08e2131d44a572facaf82d104d98596a2bfe6226b9ebd
""" Gaussian Mixture Models. This implementation corresponds to frequentist (non-Bayesian) formulation of Gaussian Mixture Models. """ # Author: Ron Weiss <ronweiss@gmail.com> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Bertrand Thirion <bertrand.thirion@inria.fr> import numpy as np import warni...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/sklearn/mixture/gmm.py
Python
agpl-3.0
29,124
[ "Gaussian" ]
d4964b9854390f323e01dd377d378d0b1640f3b805bd85cfb7d0eec8f3f509cb
##### # Author : David Stewart # Date : April 14, 2016 # Problem : https://projecteuler.net/problem=29 # Brief : How many unique numbers are there for, where 2 <= x,y <= 100, x^y? # Comments : This one was a fun one. I thought of a couple different ways to approach it. # First approach used ...
DavidOStewart/ProjectEuler
29.py
Python
mit
1,986
[ "VisIt" ]
4255afa82a350b897c0eb1e483ec2e9e2ab5c789f79c8f0d9b0a344f81a27dfc
""" @author: Yuhuang Hu @contact: duguyue100@gmail.com @note: setup experiment of supervised classification task. """ import sys; sys.path.append(".."); import time; import numpy as np; from sacred import Experiment; import conceptors.util as util; import conceptors.net as net; from conceptors.dataset import load_...
duguyue100/conceptors
scripts/classify_exp.py
Python
gpl-3.0
7,155
[ "NEURON" ]
be35164e18730626bea2d0e7a3aa19892fad82547aa4fccd663ae8959a637c6f
from sdssgaussfitter import gaussfit import numpy as np from scipy import interpolate import os,sys from util import utils from util.readDict import readDict from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt def aperture(startpx,startpy,radius=7): r = radius length = 2*r height = le...
bmazin/ARCONS-pipeline
examples/Pal2012_landoltPhot/landoltFitPsf.py
Python
gpl-2.0
7,656
[ "Gaussian" ]
0bca95809ad3d0862d0328d47834e025cc75f4474dbda64f708431cdd7501c9e
# -*- coding: utf-8 -*- # # gap_junctions_two_neurons.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 t...
terhorstd/nest-simulator
pynest/examples/gap_junctions_two_neurons.py
Python
gpl-2.0
3,140
[ "NEURON" ]
d5ec08ebdfe9367020c0e850971b70cf1b542fa98fa1bf749a17d9b4d1a32552
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
fernandezcuesta/ansible
lib/ansible/module_utils/basic.py
Python
gpl-3.0
112,433
[ "VisIt" ]
407856092d8526798d89e8aa0ec29d7b812b290351f3234c1c61e9334fda4031
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides objects describing the basic parameters of the pseudopotentials used in Abinit, and a parser to instantiate pseudopotential objects.. """ from __future__ import unicode_literals, divisio...
czhengsci/pymatgen
pymatgen/io/abinit/pseudos.py
Python
mit
63,668
[ "ABINIT", "pymatgen" ]
92536dcea71c7410bfe3917a77806a4dadffeae3fa57753e46af338f7b3b4526
#!/usr/bin/env python # Copyright (C) 2007 University of Texas at Austin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later versi...
zxtstarry/src
framework/rsf/sftour.py
Python
gpl-2.0
3,094
[ "VisIt" ]
866c42b4b20e3106cdc7a497d77a1261ac56cf0e5585435794feb9dbc76463a0
#!/usr/bin/env python #from math import * import gi gi.require_version('NumCosmo', '1.0') gi.require_version('NumCosmoMath', '1.0') from gi.repository import GObject from gi.repository import NumCosmo as Nc from gi.repository import NumCosmoMath as Ncm Ncm.cfg_init () NT = 3 # Number of threads NClust...
NumCosmo/NumCosmo
scripts/mass_calibration_planck_clash.py
Python
gpl-3.0
3,891
[ "Gaussian" ]
b5a9fa940ced6158c8a1d3a7f1f6150b8736c0efd329319e2f520c0b05e40149
""" Contains tests to check a particular script's results or speed have not changed. Check README and buildbot to see how all these tests are run. """ import pickle, copy, __main__, timeit, os, os.path, socket, cPickle, inspect, traceback, tempfile, shutil from numpy.testing import assert_array_equal, assert_array_...
Tasignotas/topographica_mirror
topo/tests/test_script.py
Python
bsd-3-clause
26,287
[ "Gaussian" ]
9569f21be49cec7077c6fef92b34f39fdc7b85eb55a4bf6f8ffe702469505306
import getopt import logging import sys import matplotlib.pyplot as plt from matplotlib import cm from Comm.EnsembleReceiver import EnsembleReceiver logger = logging.getLogger("EnsembleReceiver") logger.setLevel(logging.DEBUG) FORMAT = '[%(asctime)-15s][%(levelname)s][%(funcName)s] %(message)s' logging.basicConfig(f...
ricorx7/rti_python
Frontend/LivePlot.py
Python
bsd-3-clause
3,742
[ "Gaussian" ]
3f92a2b4242337939068209afcdb91aeffba40e73a434077fd586fb4cea405e3
""" Tests for CountModel class, which includes various linear models designed for count data Test data is the Columbus dataset after it has been rounded to integers to act as count data. Results are verified using corresponding functions in R. """ __author__ = 'Taylor Oshan tayoshan@gmail.com' import unittest impor...
TaylorOshan/pysal
pysal/contrib/spint/tests/test_count_model.py
Python
bsd-3-clause
4,181
[ "COLUMBUS" ]
5b8ce662208271b3a7b91bfc381a8e49ec8a2a421590017dbe087f4061a309ab
#!/usr/bin/python ''' File defining a python class for snowpit data November 2016, Simon Filhol ''' import numpy as np import pandas as pd import os import snowpyt.CAAMLv6_xml as cxv6 from snowpyt.snowflake.sf_dict import snowflake_symbol_dict import snowpyt.snowflake.sf_dict as sfd from matplotlib import pyplot a...
ArcticSnow/snowpyt
build/lib/snowpyt/pit_class.py
Python
mit
23,226
[ "CRYSTAL" ]
b047a142ca89652d2c20973046d19a814f1012280eef87522bcad8fec9068d43
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2011 CERN. ## ## Invenio 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) a...
jmartinm/invenio
modules/bibauthorid/lib/bibauthorid_templates.py
Python
gpl-2.0
180,706
[ "VisIt" ]
2ac70309bacd3b9b771b0461848b219c5f74d0522b1ff9a4151dd2178f45bebc
# # Copyright 2021 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # 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 Found...
libAtoms/matscipy
maintenance/copyright.py
Python
lgpl-2.1
3,148
[ "Matscipy" ]
4f63ec5fc2014a9ec1de7e6705b1d69dd964849c845135b5456fcbf2803acff4
# -*- coding: utf-8 -*- # # CleanerVersion documentation build configuration file, created by # sphinx-quickstart on Tue Jul 22 13:37:08 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file...
swisscom/cleanerversion
docs/conf.py
Python
apache-2.0
9,124
[ "Brian" ]
bcbfa5104d748c246b452ec6afe3aef2d19a584d30975f4f7790c7ac45bc6448
""" StateMachine This module contains the basic blocks to build a state machine ( State and StateMachine ). And the RSS implementation of it, using its own states map. """ from DIRAC import S_OK, S_ERROR __RCSID__ = '$Id: $' class State( object ): """ State class that represents a single step on a Sta...
vmendez/DIRAC
ResourceStatusSystem/PolicySystem/StateMachine.py
Python
gpl-3.0
9,395
[ "DIRAC" ]
08485e081c016b42a2aebf7a651c12d048ec301f1fd1c45da49712cf4d2bcab1
#!/usr/bin/env python # coding: utf-8 # # Minimal Example: Gaussian Processes # # In this example script, we'll reproduce Figure 7 from the fitting release paper ([Conroy et al. 2020](http://phoebe-project.org/publications/2020Conroy+)). # # <img src="http://phoebe-project.org/images/figures/2020Conroy+_fig7.png" al...
phoebe-project/phoebe2-docs
development/examples/minimal_GPs.py
Python
gpl-3.0
3,237
[ "Gaussian" ]
ad03eec1e4a8f31e34bf95897c247ed9976535cedf51db8bfa8d0a4dfd92a1ed
__author__ = 'Brian' # My first neural net!!! import math import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data # Consider implementing feature scaling/whitening (scipy.cluster.vq.whiten?) # Consi...
bhwester/neural-network
neuralnet.py
Python
mit
18,251
[ "Brian" ]
661452e9a04d5c4066deca6c190570a4c994ecafa57ded409bc5f9cdc006007c
#!/usr/bin/python # Emacs settings: -*- tab-width: 4 -*- # # Copyright (c) 2002-2003 Apple Computer, 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://...
ghmajx/asuswrt-merlin
release/src/router/mDNSResponder/mDNSPosix/parselog.py
Python
gpl-2.0
10,526
[ "Jaguar" ]
7332ef800477122807d1a84162b518c59f3a062b94da44f1e5c256e4f823acfd
''' Set up Visual Sudio to build a specified MPIR configuration Copyright (C) 2011, 2012, 2013, 2014, 2015 Brian Gladman ''' from operator import itemgetter from os import listdir, walk, unlink, makedirs from os.path import split, splitext, isdir, relpath, join, exists from os.path import dirname, normpath from copy...
jpflori/flint2
build.vc14/build_tests/build_tests.py
Python
lgpl-2.1
5,047
[ "Brian" ]
bfa88c668be951ca362d3a0c3059c6975eb774695de8a62f5cc87b70da15d03d
""" Extended math utilities. """ # Authors: G. Varoquaux, A. Gramfort, A. Passos, O. Grisel # License: BSD import math from . import check_random_state import numpy as np from scipy import linalg def norm(v): v = np.asarray(v) __nrm2, = linalg.get_blas_funcs(['nrm2'], [v]) return __nrm2(v) def _fast_lo...
joshbohde/scikit-learn
sklearn/utils/extmath.py
Python
bsd-3-clause
6,785
[ "Gaussian" ]
2342ffe7910686469d7a8845ea1b3a0884494c38c77a8ae4d813ddd6be82f262
#!/usr/bin/python # 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 # (at your option) any later version. # # Ansible is distributed...
az7arul/ansible-modules-core
cloud/amazon/ec2_elb_lb.py
Python
gpl-3.0
33,856
[ "Dalton" ]
4769f3e2da538609f0c7934221a41d5241212f22fe350fa2321a76eca4fff86d
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the # following terms and conditions apply: # # This pro...
tkaitchuck/nupic
py/regions/ImageSensorExplorers/RandomJump.py
Python
gpl-3.0
7,906
[ "VisIt" ]
cbaa5ac4e51d3fb740a37c977c23b020658e5660678e3fd94651d6577423a756
import sys import ast from llvm.core import * from llvm.ee import * i64 = Type.int(64) i32 = Type.int(32) i8 = Type.int(8) i8ptr = Type.pointer(i8) def c_i32(n): return Constant.int(i32, n) class Context(object): def __init__(self, mod, block, builder, main): object.__init__(self) self.modul...
thomaslee/snappy
snappy.py
Python
mit
3,232
[ "VisIt" ]
6827a220ae94cf751ddffd7cc71c3922c00e5970c1f840cab08f52d676f6a10b
# tests.test_features.test_rankd # Test the rankd feature analysis visualizers # # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Fri Oct 07 12:19:19 2016 -0400 # # Copyright (C) 2016 District Data Labs # For license information, see LICENSE.txt # # ID: test_rankd.py [01d5996] benjamin@bengfor...
pdamodaran/yellowbrick
tests/test_features/test_rankd.py
Python
apache-2.0
15,507
[ "Gaussian" ]
9cd263c9735fb4ef1ab70bcf6d4c96dcf94d7e0a1c40a40b9b8f372ebf078170
import click from parsec.cli import pass_context, json_loads from parsec.decorators import custom_exception, json_output @click.command('search_repositories') @click.argument("q", type=str) @click.option( "--page", help="page requested", default="1", show_default=True, type=int ) @click.option( ...
galaxy-iuc/parsec
parsec/commands/toolshed_repositories/search_repositories.py
Python
apache-2.0
2,811
[ "Galaxy" ]
ae06a7c33c124b98ab4238fd3079e47e2eac6035b2c1e4590bd9b3c10327f007
import sys import os import numpy as np import h5py import multiprocessing import cPickle import ephem import matplotlib.pyplot as plt import types from sklearn.gaussian_process import GaussianProcess from sklearn.cross_validation import train_test_split from sklearn import metrics, linear_model, tree, ensemble # NOTE...
acbecker/solar
gp4/regress11.py
Python
mit
9,521
[ "Gaussian" ]
4f771d81e879fd3a32a615d13a3367b7a3e3569af38a41220aa6c964b847897e
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
espressomd/espresso
src/python/espressomd/math.py
Python
gpl-3.0
1,754
[ "ESPResSo" ]
b6d0c510784557d9288fa2d464dae0841493732b6cb2a494813d2cca739fea9e
""" :mod: RequestTaskTests ======================= .. module: RequestTaskTests :synopsis: test cases for RequestTask class test cases for RequestTask class """ from __future__ import print_function __RCSID__ = "$Id $" # # # @file RequestTaskTests.py # @author Krzysztof.Ciba@NOSPAMgmail.com # @date 20...
fstagni/DIRAC
RequestManagementSystem/private/test/RequestTaskTests.py
Python
gpl-3.0
3,166
[ "DIRAC" ]
3b40fb17666578a52c222b22b87ab505400ff670aa7b38f0c5d1bbb4933476ed
#! /usr/bin/env python from __future__ import print_function import argparse, gzip, pysam, re, sys def extract_reference_slices(faf_ref, f_fasta, f_out, f_bed=None): for coord in get_coords(f_fasta, f_bed): key="{}:{}-{}".format(*coord) seq=faf_ref.fetch(region=key) print(">{}".format(ke...
dellytools/maze
extract_reference_slices.py
Python
mit
4,489
[ "pysam" ]
dc70dacd3c7c755803c64f469d5cf5c15e5fd7a31f395459f43be153f2dbdc7b
"""Tests for _sketches.py.""" from __future__ import division, print_function, absolute_import import numpy as np from scipy.linalg import clarkson_woodruff_transform from numpy.testing import assert_ def make_random_dense_gaussian_matrix(n_rows, n_columns, mu=0, sigma=0.01): """ Make some random data with ...
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/scipy/linalg/tests/test_sketches.py
Python
mit
2,000
[ "Gaussian" ]
e0cbbffae30d1128d9f7cf8a5baedbd0fc8dd5aa792f31cb38263eace482e400
# coding: utf-8 # Part of Odoo. See LICENSE file for full copyright and licensing details. from contextlib import contextmanager from datetime import datetime, timedelta from unittest.mock import patch from odoo.addons.base.tests.common import HttpCaseWithUserDemo from odoo.addons.website.tools import MockRequest fro...
ygol/odoo
addons/website/tests/test_website_visitor.py
Python
agpl-3.0
15,250
[ "VisIt" ]
3b6b7c0f00001b878576f2d7eeb2fa8c05430f9aeca4f181b753f5480b975206
# -*- coding: utf-8 -*- # # balancedneuron.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,...
INM-6/nest-git-migration
pynest/examples/balancedneuron.py
Python
gpl-2.0
6,690
[ "NEURON" ]
04799a46e6a8477fefea0cb8d7f55ab00ab8e520ca1c412796e3d91e8cdd33da
""" Python implementation of the fast ICA algorithms. Reference: Tables 8.3 and 8.4 page 196 in the book: Independent Component Analysis, by Hyvarinen et al. """ # Author: Pierre Lafaye de Micheaux, Stefan van der Walt, Gael Varoquaux, # Bertrand Thirion, Alexandre Gramfort # License: BSD 3 clause import war...
lucidfrontier45/scikit-learn
sklearn/decomposition/fastica_.py
Python
bsd-3-clause
14,751
[ "Gaussian" ]
79903664884c0cbcfb6831342ff56e8c9dfba7f182e45b683a65733d88a3cb05
# sql/compiler.py # Copyright (C) 2005-2015 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Base SQL and DDL compiler implementations. Classes provided include: :class:`.c...
thundernet8/WRGameVideos-API
venv/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py
Python
gpl-2.0
100,608
[ "VisIt" ]
ea1cad4d4d1aa54713c07248aee2674b6fac79b7c55cc005077626a742454e94
import os from boxbranding import getMachineBrand, getMachineName import xml.etree.cElementTree from datetime import datetime from time import ctime, time, strftime, localtime, mktime from bisect import insort from enigma import eActionMap, quitMainloop from Components.config import config from Components.TimerSanity...
idrogeno/FusionOE
PowerTimer.py
Python
gpl-2.0
44,704
[ "ASE" ]
16d3f2c2bdd0e2c7793d24bf2dd271eee0830158340b4ba537ac56d57ee0b171
#! /usr/bin/env python # ===========================================================================================# # This script tests the offset angle dependence of the instrumental response function. # # ===========================================================================================# from gammalib impo...
cdeil/gammalib
inst/cta/test/test_irf_offset.py
Python
gpl-3.0
5,601
[ "Gaussian" ]
8f40a8a9d0f579792a635e18acc406108490cd94782fa7d35c12b26f8f6ca4e7