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 |
|---|---|---|---|---|---|---|---|
"""Similar to the last problem, the bulk of 3.py is scraping a large comment
from the source of the webpage in order to find the name of the next webpage
to visit. The hint this time is to look for one "small letter" surrounded
by exactly three "big bodyguards" (letters) on each of its sides. To find all
matches of thi... | cjonsmith/python-challenge | problem_03.py | Python | mit | 1,791 | [
"VisIt"
] | 4832a5a08b4797ab241cdc4d14ffe3617c92cdaf58ab61d9d307835d7fccad4f |
#!/usr/bin/env python
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | googleads/google-ads-python | examples/remarketing/add_expression_rule_user_list.py | Python | apache-2.0 | 6,004 | [
"VisIt"
] | db936085a4d90c582f4820b6ea972897af778807de006e2717d6fa1dde75e354 |
# Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Implements ProcessPoolExecutor.
The follow diagram and text describe the data-flow through the system:
|======================= In-process =====================|== Out-of-process ==|
+----------+ +----------... | invisiblek/python-for-android | python3-alpha/python3-src/Lib/concurrent/futures/process.py | Python | apache-2.0 | 14,991 | [
"Brian"
] | 55c07ac681618620bef82fb89989409e98a08607096d731a1137b4cc7f2690ca |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/core/document/__init__.py | Python | gpl-2.0 | 2,744 | [
"VisIt"
] | 727f4db01980e527f82ec57054e29aaa6e0d79aa71e54145d320822cef71e0f0 |
#!/usr/bin/env python
"""Constants used with the netcdf module."""
_DIMENSION_NAMES = ['ni', 'nj', 'nk']
_AXES_NAMES = ['x', 'y', 'z']
_NP_TO_NC_TYPE = {
'float32': 'f4',
'float64': 'f8',
'int8': 'i1',
'int16': 'i2',
'int32': 'i4',
'int64': 'i8',
'uint8': 'u1',
'uint16': 'u2',
'ui... | csherwood-usgs/landlab | landlab/io/netcdf/_constants.py | Python | mit | 571 | [
"NetCDF"
] | e57e5e5f44d4b430ef6fc0dd39f433fab03521ffabde47cdb933cd08481e8ff3 |
"""
Corruptor classes: classes that encapsulate the noise process for the DAE
training criterion.
"""
# Third-party imports
import numpy
import theano
from theano import tensor
T = tensor
from pylearn2.utils.rng import make_np_rng
# Shortcuts
theano.config.warn.sum_div_dimshuffle_bug = False
if 0:
print 'WARNING:... | ml-lab/pylearn2 | pylearn2/corruption.py | Python | bsd-3-clause | 12,778 | [
"Gaussian"
] | 1997261e68155a40b3b80c2239c56830938f8575af91d22dfff23e43bc18cd06 |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | googleapis/python-retail | scripts/fixup_retail_v2_keywords.py | Python | apache-2.0 | 7,849 | [
"VisIt"
] | 4e3711f9b93078b8785935c7acfe4419cea62b96cf854bda43bfe9bd7593816d |
from chiplotle.core.visitor import Visitor
from chiplotle.tools.hpgltools import convert_coordinates_to_hpgl_absolute_path
import chiplotle.hpgl.commands as hpgl
import copy
class HPGLFormatVisitor(Visitor):
'''Visitor that collects shapes and returns their HPGL representation.'''
def __init__(self):
... | drepetto/chiplotle | chiplotle/geometry/core/hpglformatvisitor.py | Python | gpl-3.0 | 3,065 | [
"VisIt"
] | c2e5b0843938a3fee944872b2c873d7de64b2f55f63b41e061e84644cdffeafa |
# Copyright (C) 2017-2018 Michael Freitag, Shahin Amiriparian, Sergey Pugachevskiy, Nicholas Cummins, Björn Schuller
#
# This file is part of auDeep.
#
# auDeep 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, ... | auDeep/auDeep | audeep/cli/export.py | Python | gpl-3.0 | 2,980 | [
"NetCDF"
] | 65f1ce4a2a03d4bd08516907efd7ba6ae852eca4861f5d50a0514d58906d0030 |
import numpy as np
from mmap import mmap
from qharv.reel.ascii_out import read, name_sep_val, all_lines_with_tag
def read_first_energy(scf_out):
with open(scf_out,'r+') as f:
mm = mmap(f.fileno(),0)
# end with
idx = mm.find(b'!')
mm.seek(idx)
eline = mm.readline().decode()
energy = flo... | Paul-St-Young/solid_hydrogen | qe_reader.py | Python | mit | 32,563 | [
"CRYSTAL",
"DIRAC",
"Quantum ESPRESSO"
] | 10d472c0ed8efcfa916b1335e4ee2bc95aa3158674c8ce4e9ed068b99ae90b21 |
#!/usr/bin/env python
# for python 2 / 3 compatibility
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
try :
range = xrange
except NameError :
pass
import numpy as np
import symmetry_operations
import paddi... | andyofmelbourne/crappy-crystals | utils/forward_sim.py | Python | gpl-3.0 | 12,603 | [
"CRYSTAL",
"Gaussian"
] | b72e82d901d6267941cc415e8cd601bfd93768f3d32d50dff9f090e346a743fd |
#!/usr/bin/python
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | oak11/liquid-galaxy.lg-root-fs | home/lg/bin/screensaver.py | Python | apache-2.0 | 4,199 | [
"Galaxy"
] | ddfc0f0dae7650241812308a10138350dc0b7b69f1a53719ea4c5d4c3f804168 |
'''This module contains all high-level helpers function that allow to work with
Cyclomatic Complexity
'''
import math
from radon.visitors import GET_COMPLEXITY, ComplexityVisitor, code2ast
# sorted_block ordering functions
SCORE = lambda block: -GET_COMPLEXITY(block)
LINES = lambda block: block.lineno
ALPHA = lambda... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/radon/complexity.py | Python | agpl-3.0 | 3,531 | [
"VisIt"
] | 203898b51bc539d8b3546a8211ba5244a80b903f30f7aee1e130eb003f456ed3 |
# -*- coding: utf-8 -*-
import unittest
import mock
from auth0plus.settings import AUTH0_PER_PAGE
from auth0plus.management.users import User
from auth0plus.exceptions import UnimplementedException, MultipleObjectsReturned
class TestUser1(unittest.TestCase):
def setUp(self):
User._default_connection = 't... | bretth/auth0plus | tests/test_management/test_users.py | Python | isc | 7,821 | [
"Brian"
] | 437836b1bd6500cb71cc4c7702ad2cba5dc0980a88c1d6087b53dba2553b3842 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2018 Satpy developers
#
# This file is part of satpy.
#
# satpy 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... | pytroll/satpy | satpy/readers/goes_imager_nc.py | Python | gpl-3.0 | 52,656 | [
"NetCDF"
] | 8e0cd8178f599ec2cc41d5813fe473de6046d0bc0231d71f46c695e866aea06a |
"""Approximate bilateral rank filter for local (custom kernel) mean.
The local histogram is computed using a sliding window similar to the method
described in [1]_.
The pixel neighborhood is defined by:
* the given structuring element
* an interval [g-s0, g+s1] in greylevel around g the processed pixel greylevel
Th... | chintak/scikit-image | skimage/filter/rank/bilateral.py | Python | bsd-3-clause | 7,565 | [
"Gaussian"
] | 906950c13740ffa680ff428f58ce92f275c4427c4f18ce16fc9a63a7bff80e93 |
#! /usr/bin/env python
'''This script will use the results from two reciprocal blastp searches and update a gff file from one species with gene IDs from the other. The blastp searches must have returned single alignments in tab-delimited text output format (e.g. run as: blastp -db Species1.fasta -query Species2.fast... | ajshultz/whole-genome-reseq | Annotation/reciprocal_blast_to_gff.py | Python | gpl-3.0 | 6,469 | [
"BLAST"
] | 2d9e709e3c014b9c4fd93318f405fc28e4a16adf8c8173ece68b9a29084d2f70 |
"""
:mod: FTS3ManagerHandler
.. module: FTS3ManagerHandler
:synopsis: handler for FTS3DB using DISET
Service handler for FT3SDB using DISET
"""
__RCSID__ = "$Id$"
import json
# from DIRAC
from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC.Core.DISET.RequestHandler import RequestHandler
from... | Andrew-McNab-UK/DIRAC | DataManagementSystem/Service/FTS3ManagerHandler.py | Python | gpl-3.0 | 3,886 | [
"DIRAC"
] | abcb208bb550b610c5da3bfaac418b322c7f8292b99f26dd0943a01f3b6ccc72 |
import pytest
from capybara.exceptions import ElementNotFound
class AssertMatchesSelectorTestCase:
@pytest.fixture(autouse=True)
def setup_session(self, session):
session.visit("/with_html")
@pytest.fixture
def element(self, session):
return session.find("css", "span", text="42")
c... | elliterate/capybara.py | capybara/tests/session/element/test_assert_matches_selector.py | Python | mit | 1,879 | [
"VisIt"
] | 285279acdbf48add52239edfd3da294b3eff23c731f665fb699776edcc04670e |
import logging
from galaxy import util
from galaxy.model import tool_shed_install
from galaxy.web.framework.helpers import iff, grids
from galaxy.web import url_for
from galaxy.model.orm import or_
import tool_shed.util.shed_util_common as suc
from tool_shed.util import tool_dependency_util
log = logging.getLogger( _... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/tool_shed/galaxy_install/grids/admin_toolshed_grids.py | Python | gpl-3.0 | 25,113 | [
"Galaxy"
] | 42a4fa5ce2f6b89bd91525b626f740a0f763c9e930ff0a12861f89ad34307320 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import re
from collections import defaultdict
def path_splitter(path):
"""
Split a path into its constituent parts.
Might be better written as a recursive function.
:param path: The path to split.
:retu... | lorensen/VTKExamples | src/Admin/FindMissingExamples.py | Python | apache-2.0 | 7,197 | [
"VTK"
] | b4a86f2168302f7056394e8a6deff669208ff795032998d705766c0a7fec508e |
# Copyright (c) 2015. Mount Sinai School of Medicine
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | hammerlab/varlens | varlens/read_evidence/pileup_element.py | Python | apache-2.0 | 7,250 | [
"pysam"
] | f45decfb5602168c9ea983d9e8773695506e88e74f9614f1a359deb27e41661c |
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
This module provides classes and definitions for using full width at half
maximum (FWHM) to be used in conjunction with Gaussian Random Field Theory
to determine resolution elements (resels).
A resolut... | bthirion/nipy | nipy/algorithms/fwhm.py | Python | bsd-3-clause | 6,115 | [
"Gaussian"
] | a8e9e627e581b37e2e5395a8b29c03cf8722ef3cd689bc20c053b6c590927dc8 |
# (C) British Crown Copyright 2014 - 2016, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | jswanljung/iris | lib/iris/fileformats/grib/_load_convert.py | Python | lgpl-3.0 | 82,516 | [
"Gaussian"
] | 6d19795059b8bbe72857292aa43bf13eca9543c891b91d0d8532e6624f4f34c3 |
# Copyright (c) 2012 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... | haowu4682/gem5 | src/python/m5/SimObject.py | Python | bsd-3-clause | 43,118 | [
"VisIt"
] | 4d846d9bfc6cd3c326c83a72ec2f0a122ffb19926aa29655112fcb08924d0a71 |
#!/usr/bin/env python
# Copyright 2014-2020 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/cc/uccsd_t_rdm.py | Python | apache-2.0 | 16,218 | [
"PySCF"
] | c027ee8f961d51c4f1dcacd0ff4e103d53dedaa5a3354137aa75c9d2d4130eb7 |
# coding=utf8
# _____ _________
# __ /____________ /_____
# _ __/ __ \ __ /_ __ \
# / /_ / /_/ / /_/ / / /_/ /
# \__/ \____/\__,_/ \____/
#
# Todo application in the command line, with readable storage.
# Authors: https://github.com/secreek
# Home: https://github.com/secreek/todo
# Email: nz2324@126.com
# ... | secreek/todo | todo/app.py | Python | mit | 15,559 | [
"VisIt"
] | 49d77077e259993c311370fad4703470d7ab7c6126bbd93af3d67d4d33a482a1 |
# Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013
# Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
SIZE_RANGES = {
'Y': 1 << 80,
'Z': 1 << 70,
'E': 1 << 60,
'P': 1... | kbrebanov/ansible | lib/ansible/module_utils/basic.py | Python | gpl-3.0 | 112,090 | [
"VisIt"
] | 51045761f316e77c1b7981ad55fa58969c2d5534e36bfa89c94da71f795dac2c |
import random
import unittest
from hearthbreaker.agents.basic_agents import PredictableAgent, DoNothingAgent
from hearthbreaker.cards.minions.neutral import V07TR0N, Poultryizer, Nightmare
from hearthbreaker.constants import CARD_RARITY, MINION_TYPE, CHARACTER_CLASS
from hearthbreaker.engine import Player
from tests.a... | kingoflolz/hearthbreaker | tests/card_tests/neutral_tests.py | Python | mit | 209,951 | [
"BLAST",
"TINKER"
] | 8ec66a19f09ed5949b39df83033a9ef4a5df684c78c857a55d3c16684206735a |
# Copyright 2012-2013 Dusty Phillips
# This file is part of gitifyhg.
# gitifyhg 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.
#
# ... | asottile/gitifyhg | gitifyhg/gitexporter.py | Python | gpl-3.0 | 11,827 | [
"Octopus"
] | a7adb541ab9c2665f7159e3dc1f177900d8bb89a8214717e1c842440afa4f0c6 |
#Impot MiniDom to WORK with XML
from xml.dom import minidom
#Template to class
strClassBegin = """unit SAS_Synchro{0};
interface
{1}
type TSynchro{0} = class
private
public
{2}
"""
#Template to end of the class
strClassEnd = """
end;
implementation
end."""
#Return first caracter of string in Uppe... | rodvieirasilva/xml-synchro-cteos-delphi | main.py | Python | apache-2.0 | 3,351 | [
"VisIt"
] | 1b510ae19dc34ea031c1a1cb8d7df1e7774ae4e7aec4a6074c6a6784f0df0254 |
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
try:
import pypandoc
description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
description = 'Basic implementation of Gaussian mixture model.'
setup(
name='GMM',
version='0.1.0',
... | kubkon/gmm | setup.py | Python | mit | 667 | [
"Gaussian"
] | 3e33bb72862627951109025fea5ccb5e736bc2abe56aebda34225cba95614537 |
#!/usr/bin/env python
import urllib
import json
import os
import random
from flask import Flask
from flask import request
from flask import make_response
# Flask app should start in global layout
app = Flask(__name__)
@app.route('/webhook', methods=['POST'])
def webhook():
req = request.get_json(silent=True, fo... | aeroabir/mobile-plan-sample | app.py | Python | apache-2.0 | 5,673 | [
"VisIt"
] | 441f504d2fe7acbcb5f2f2e838b7c2733723f84da608bcd70f9bebd5e1e01026 |
import sets, os
from galaxy import eggs
from galaxy import jobs
from galaxy.tools.parameters import DataToolParameter
def exec_after_process(app, inp_data, out_data, param_dict, tool=None, stdout=None, stderr=None):
"""
Copy data_label to genetrack.metadata.label
"""
out_data['genetrack'].metadata.labe... | dbcls/dbcls-galaxy | tools/visualization/genetrack_code.py | Python | mit | 463 | [
"Galaxy"
] | ee4032b995ec41b7e4afaaab1b60d3c4b6ebf60a6651bb17523ffbaf501aa9cc |
##
# Copyright 2013-2021 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | hpcugent/easybuild-easyblocks | easybuild/easyblocks/n/netcdf4_python.py | Python | gpl-2.0 | 3,860 | [
"NetCDF"
] | 824c745afd0be5bf2d7cd7d939aab94fca634274d63947a716b6ee91307ad7a2 |
from collections import OrderedDict
import numpy as np
from robosuite.environments.manipulation.single_arm_env import SingleArmEnv
from robosuite.models.arenas import TableArena
from robosuite.models.objects import DoorObject
from robosuite.models.tasks import ManipulationTask
from robosuite.utils.observables import ... | ARISE-Initiative/robosuite | robosuite/environments/manipulation/door.py | Python | mit | 19,549 | [
"Gaussian"
] | 14aff4b38114db5fd56cf713e1bd7bc0c177649c95823ce1ee5ef6a2f0a79a22 |
#!/usr/bin/env python
#
# Copyright (C) 2014
# Brian Caswell <bmc@lungetech.com>
# Narf Industries <info@narfindustries.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without res... | f0rki/cb-multios | original-challenges/SIGSEGV/support/strncmp/strncmp.py | Python | mit | 3,370 | [
"Brian"
] | 22ccafdbe8345381d7e439a1f3cc10d87fe6ba6511357d1a32c380fadc7d4dcf |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | MJJoyce/climate | examples/model_ensemble_to_rcmed.py | Python | apache-2.0 | 7,790 | [
"NetCDF"
] | f1295d877bd2dab50ba4148b0a085a2899b26a149b3248a4ec40ea8e665a7e78 |
#!/usr/bin/env python
# This example demonstrates the use of a single streamline and the
# tube filter to create a streamtube.
import vtk
from vtk.util.misc import vtkGetDataRoot
from vtk.util.colors import *
VTK_DATA_ROOT = vtkGetDataRoot()
# We read a data file the is a CFD analysis of airflow in an offi... | hlzz/dotfiles | graphics/VTK-7.0.0/Examples/VisualizationAlgorithms/Python/officeTube.py | Python | bsd-3-clause | 12,656 | [
"VTK"
] | 36fa9705c0bc5d7b5ae8fd444ca70c7e2f998ff425d74548b165f4259814a542 |
# -*- coding: utf-8 -*-
"""
equip.visitors.bytecode
~~~~~~~~~~~~~~~~~~~~~~~
Callback the visitor method for each encountered opcode.
:copyright: (c) 2014 by Romain Gaucher (@rgaucher)
:license: Apache 2, see LICENSE for more details.
"""
import opcode
from ..utils.log import logger
class BytecodeVisitor... | neuroo/equip | equip/visitors/bytecode.py | Python | apache-2.0 | 7,720 | [
"VisIt"
] | 893113447b9ba84d27c399e37814f3c3692379ae65f2d865dc4c6e10838a58f7 |
from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
from point_cloud import wavefront
from dynamics import asteroid
import pdb
from mayavi import mlab
import mayavi.api
import copy
from multiprocessing import Pool
from functools import partial
def define_grid(ast, densi... | skulumani/asteroid_dumbbell | integration/gravity_potential.py | Python | gpl-3.0 | 5,242 | [
"Mayavi"
] | cd3977d77fa534fd64ef09aecf96e57bdaada0b795a20ae9c5a01ce883e37f33 |
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure that all files contain proper licensing information."""
import json
import optparse
import os.path
import subproces... | sgraham/nope | tools/checklicenses/checklicenses.py | Python | bsd-3-clause | 16,269 | [
"Galaxy"
] | c72e8f207d869c2c18984ecccc85b65dbe35dafe6c870c68e70183a58227d5e8 |
import zlib
import struct
import array
import random
import colorsys
def output_chunk(out, chunk_type, data):
out.write(struct.pack("!I", len(data)))
out.write(chunk_type)
out.write(data)
checksum = zlib.crc32(data, zlib.crc32(chunk_type))
out.write(struct.pack("!i", checksum))
def get_data(widt... | jtauber/web-graphics | web_graphics.py | Python | mit | 2,780 | [
"Gaussian"
] | 812ef37a877242099c1b2346c1fabc6377d2f3e131a774d0c0c7465db7567af0 |
"""Unittests for pymatgen/core"""
| gVallverdu/pymatgen | pymatgen/core/tests/__init__.py | Python | mit | 34 | [
"pymatgen"
] | 9d0a6232d64f4c1a842a705d4df81f2c05f3ba25813ab1856294425177bce50d |
import unittest
import pysal
import numpy as np
from pysal.spreg import error_sp_hom_regimes as SP
from pysal.spreg.error_sp_hom import GM_Error_Hom, GM_Endog_Error_Hom, GM_Combo_Hom
from pysal.common import RTOL
class TestGM_Error_Hom_Regimes(unittest.TestCase):
def setUp(self):
db=pysal.open(pysal.exampl... | ljwolf/pysal | pysal/spreg/tests/test_error_sp_hom_regimes.py | Python | bsd-3-clause | 14,682 | [
"COLUMBUS"
] | 1a54e4a71ebd355ad541739993b1bd89de9c3f8094f9e37f4bfcbb034b221c3a |
# -*- coding: utf-8 -*-
"""
__author__ = "Roman Chernikov", "Konstantin Klementiev"
__date__ = "2018-10-01"
Created with xrtQook
Single Crystal Diffraction
------------------
Sample script to calculate the Single Crystal Laue Diffraction pattern.
"""
import sys
import os
sys.path.append(os.path.join('..', '..'... | kklmn/xrt | examples/withRaycing/15_XRD/xrd_mono.py | Python | mit | 7,121 | [
"CRYSTAL"
] | b410d1575bcb7eeef036e83620f9a2d887eeaee4c894d674972e114add199444 |
""" ProxyProvider implementation for the proxy generation using local (DIRAC) CA credentials
This class is a simple, limited CA, its main purpose is to generate a simple proxy for DIRAC users
who do not have any certificate register on the fly.
Required parameters in the DIRAC configuration for its implem... | DIRACGrid/DIRAC | src/DIRAC/Resources/ProxyProvider/DIRACCAProxyProvider.py | Python | gpl-3.0 | 18,792 | [
"DIRAC"
] | 94db09e1b0519fcb9ac9a6e2c871ed63d88a7851498a99d75bd6c7bb4dd2d4d1 |
"""
Utility methods to deal with "names" of relations.
To be safe, we always delimit names in queries but would prefer not to during logging.
See TableName.
There are additional methods and classes here to support the feature of choosing relations
by a pattern from the command line.
"""
import fnmatch
import re
impo... | harrystech/arthur-redshift-etl | python/etl/names.py | Python | mit | 19,292 | [
"Octopus"
] | ca9358b8cab9459f04355f14ca46fdf3552bc9064dcc47d5462f790741142a1b |
from argparse import ArgumentParser
from pathlib import Path
from pytput import tput_print
from rtfm.core import RtfmApp
DEFAULT_CONFIG = Path.home() / ".config/rtfm.json"
ACTIONS = {
"list": RtfmApp.dump,
"tag": RtfmApp.tag,
"clean": RtfmApp.clean,
"check": RtfmApp.check,
"new": RtfmApp.new,
}
... | essembeh/RegexTagForMusic | src/rtfm/cli.py | Python | gpl-3.0 | 2,472 | [
"VisIt"
] | 1d892b1e8e174d3f4cd44c2481ce86cd757cdb18264bf10cbb13725a225ab3b4 |
#!/usr/bin/python
## Decompress .gz file in subdirectory!!
import subprocess,os,time,argparse,fnmatch,random
parser=argparse.ArgumentParser()
parser.add_argument('--lib',nargs='*')
parser.add_argument('--mei',nargs='*')
parser.add_argument('--r1',nargs='*')
parser.add_argument('--r2',nargs='*')
parser.add_argument('--p... | JXing-Lab/ME-SCAN-SVA | modules/BB_mapping.py | Python | gpl-3.0 | 5,584 | [
"BLAST",
"BWA"
] | 0989f3b651d78bfe6f7a2e277f13e3fe1e5c034761f9ce5a7bd92c2a61750373 |
########################################################################
# File: FTSJob.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/04/02 13:41:20
########################################################################
"""
:mod: FTSJob
.. module: FTSJob
:synopsis: class representing FTS job
.. moduleau... | miloszz/DIRAC | DataManagementSystem/Client/FTSJob.py | Python | gpl-3.0 | 25,284 | [
"DIRAC"
] | efffb9b4ba04dc2e59727de4b49b0a0c97430f774948bf9693ec4822157ecdf1 |
#!/usr/bin/env python
#
# $File: userFunc.py $
#
# This file is part of simuPOP, a forward-time population genetics
# simulation environment. Please visit http://simupop.sourceforge.net
# for details.
#
# Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you can redistribute i... | BoPeng/simuPOP | docs/userFunc.py | Python | gpl-2.0 | 1,567 | [
"VisIt"
] | 8c18c12644a04dc387e7e9b3af8cb4e0a5e1b2b7700307f1b3421db9d1efe790 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""extends the standard Python gettext classes
allows multiple simultaneous domains... (makes multiple sessions with different languages easier too)"""
# Copyright 2002, 2003 St James Software
#
# This file is part of jToolkit.
#
# jToolkit is free software; you can redi... | cc-archive/jtoolkit | jToolkit/localize.py | Python | gpl-2.0 | 6,307 | [
"VisIt"
] | 86a16341fb5836047c8dad1613609accba25f33d6bcb1c4e5f1a893f4f8a6eed |
# Open SoundControl for Python
# Copyright (C) 2002 Daniel Holth, Clinton McChesney
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your opti... | Cheaterman/kivy | kivy/lib/osc/OSC.py | Python | mit | 13,204 | [
"VisIt"
] | 2c16a317086be8c574bb155b2c1b4b8cb247bf9de9c39345b2c8d878f8fd9df5 |
import functools
# visit http://shields.io/ for spec
DEFAULT = "default"
FLAT = "flat"
FLATSQUARED = "flat-square"
STYLE = [DEFAULT, FLAT, FLATSQUARED]
JPG = "jpg"
PNG = "png"
SVG = "svg"
FORMAT = [JPG, PNG, SVG]
def imgurl(path, style=FLAT, fmt=SVG):
if style == DEFAULT:
return "http://img.shields... | aureooms/sak | lib/shieldsio.py | Python | agpl-3.0 | 2,154 | [
"VisIt"
] | 21c5a428f6aff7b7a9ec12e198e329c50ac6d356e6a7e77967801118a7ec7e33 |
"""Finds the consensus crowd classifications in Radio Galaxy Zoo.
Matthew Alger
The Australian National University
2016
"""
import argparse
import collections
import csv
import itertools
import logging
import h5py
import numpy
import scipy.linalg.basic
import scipy.ndimage.filters
import scipy.ndimage.morphology
imp... | chengsoonong/crowdastro | crowdastro/consensuses.py | Python | mit | 11,366 | [
"Galaxy",
"Gaussian"
] | 31133dcea0b27fac5a97e1912a1692fd111adf84dfabc56c919363aebed6946b |
import time
import simtk.openmm.app as app
import simtk.openmm as mm
from simtk import unit as u
from openmmtools import hmc_integrators, testsystems, integrators
testsystem = testsystems.DHFRExplicit(rigid_water=False, constraints=None)
system, topology, positions = testsystem.system, testsystem.topology, testsystem... | kyleabeauchamp/HMCNotes | code/misc/benchmark_mts_july.py | Python | gpl-2.0 | 1,588 | [
"OpenMM"
] | d131665107a6af88093d0c46a603ca2c2dc3b8297d3965dcf313724103963462 |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Parser for PDB files."""
import warnings
import numpy
from Bio.PDB.PDBExceptions i... | asherkhb/coge | bin/last_wrapper/Bio/PDB/PDBParser.py | Python | bsd-2-clause | 12,924 | [
"Biopython"
] | e0992206533edfe6b39676934827514bf1a67a75a07202c036d49ff53bc18c3c |
"""
Categories of data, like "signal" of "background" etc
"""
import pandas as pd
import inspect
import numpy as np
import dashi as d
import pylab as p
import abc
import concurrent.futures as fut
import tables
import matplotlib.colors as colors
from hepbasestack.colors import get_color_palette
from hepbasestack impo... | achim1/HErmes | HErmes/selection/categories.py | Python | gpl-2.0 | 50,657 | [
"Gaussian"
] | db37d48ff71c0f82e1f0fbd1461774d24c2fc10c1037a54d55bb1c4f288672ab |
# Copyright 2020-2021, Anthony Criscione
# Developed for the Center for Phage Technology, Texas A&M University
#
# Distributed under the BSD 3-Clause License, see included LICENSE file
from Bio import SeqIO, SeqFeature
from Bio.SeqRecord import SeqRecord
from Bio.SeqFeature import FeatureLocation, CompoundLocation
fro... | TAMU-CPT/galaxy-tools | tools/external/cpt_gffParser.py | Python | gpl-3.0 | 39,271 | [
"Biopython"
] | cd3ef09dbf99130318200f4b6b9bf8b7252a0e7275fa728fd67c2d91862fed95 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, print_function, unicode_literals, \
absolute_import
import os
import unittest
from pymatgen import Molecule
from pymatgen.io.lammps.utils import Polymer
from pymatgen.io.l... | matk86/pymatgen | pymatgen/io/lammps/tests/test_utils.py | Python | mit | 4,652 | [
"LAMMPS",
"pymatgen"
] | a6a303954bcdae17e763e9d18644647179dfec015a1affb5b53c4ba19d0a03d2 |
#!/usr/bin/env python
import abipy.abilab as abilab
import numpy as np
from ase.build import bulk
from ase.dft.kpoints import get_special_points, bandpath
from pyDFTutils.unfolding.phonon_unfolder import phonon_unfolder
from pyDFTutils.phonon.plotphon import plot_band_weight
import matplotlib.pyplot as plt
import sys
... | mailhexu/pyDFTutils | pyDFTutils/unfolding/DDB_unfolder.py | Python | lgpl-3.0 | 7,680 | [
"ASE"
] | f2b8ce1dae0e8b69415adb2f876a0e6edaa797a5c30c9188ad9885be79175c7d |
# coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | mlperf/training_results_v0.5 | v0.5.0/google/research_v3.32/gnmt-tpuv3-32/code/gnmt/model/t2t/tensor2tensor/layers/common_video.py | Python | apache-2.0 | 29,295 | [
"Gaussian"
] | db1a7939642f85deda9c59ee3a3d27d6428d6654a63a57d4e0835b412ed153f9 |
from setuptools import setup
from bevis import version
version = '.'.join(str(i) for i in version)
long_description = """\
bevis is a syslog endpoint that forwards messages to an AMQP server.
"""
setup(name='bevis',
version=version,
description="syslog-to-amqp bridge",
long_description=long_descripti... | bkjones/bevis | setup.py | Python | bsd-3-clause | 652 | [
"Brian"
] | 8ea5fad6efb1dc89085e6e832319149bbfbc0bef50f493e23eb02cc61b954738 |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RPathview(RPackage):
"""a tool set for pathway based data integration and visualization.
... | rspavel/spack | var/spack/repos/builtin/packages/r-pathview/package.py | Python | lgpl-2.1 | 1,874 | [
"Bioconductor"
] | b88fef34b0ba4c9b2ed8592a25c2555b7041ca66d8cb0e63474dbefbb533a9e6 |
# -*- coding: utf-8 -*-
"""
Initial conditions for standard tests
"""
import math
def add_outer_solar_system(sim):
"""
Add the planet of the outer Solar System as a test problem.
Data taken from NASA Horizons.
"""
Gfac = 1./0.01720209895 # Gaussian constant
if sim.G is not None:
... | hannorein/rebound | rebound/data.py | Python | gpl-3.0 | 3,504 | [
"Gaussian"
] | 04f7b2a64ef5b292a062152a9bfd28ba3a208b1bfed75b3c2a1c32f007de4409 |
import ocl
import camvtk
import time
import vtk
import datetime
import math
if __name__ == "__main__":
print ocl.revision()
myscreen = camvtk.VTKScreen()
#stl = camvtk.STLSurf("../../stl/demo.stl")
stl = camvtk.STLSurf("../../stl/gnu_tux_mod.stl")
myscreen.addActor(stl)
stl.SetWirefra... | tectronics/opencamlib | scripts/waterline/waterline_1_tux.py | Python | gpl-3.0 | 2,586 | [
"VTK"
] | a57d950d58d3268d8ab1748ee4571f1c440392ecdc96caa11d15763024c4379a |
#!/usr/bin/python
# Copyright 2012, SIL International
# All rights reserved.
#
# This library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of License, or
# (at y... | silnrsi/graide | lib/graide/main.py | Python | lgpl-2.1 | 58,145 | [
"VisIt"
] | a7b4ed0162a785190f79f449eda526a2e72399e65fae2f65bc4cc898ecc5c5f8 |
# ----------------------------------------------------------------------
# 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/ImageSensorFilters/GaussianBlur.py | Python | gpl-3.0 | 1,768 | [
"Gaussian"
] | 2afefe91b056dc8f8b5653ad321bb08c1a474db1382973bf3ed483e01eb8275e |
"""Definitions of Celery tasks in Askbot
in this module there are two types of functions:
* those wrapped with a @task decorator and a ``_celery_task`` suffix - celery tasks
* those with the same base name, but without the decorator and the name suffix
the actual work units run by the task
Celery tasks are special ... | erichegt/askbot-devel | askbot/tasks.py | Python | gpl-3.0 | 9,532 | [
"VisIt"
] | 7583ba940667da9c43b3765b40176ee03fe2ab3c236ab41a10953b370a2fd7e0 |
# -*- coding: utf-8 -*-
# ----------------------------------------------------------
# AdvaS Advanced Search
# module for phonetic algorithms
#
# (C) 2002 - 2005 Frank Hofmann, Chemnitz, Germany
# email fh@efho.de
# ----------------------------------------------------------
#
# changed 2005-01-24
# 2012-01-01 MU adapt... | OpenSextant/Xponents | python/opensextant/advas_phonetics.py | Python | apache-2.0 | 17,589 | [
"VisIt"
] | 0924ac15811fd58b9315a5eced6090ad66ec0ace0b5d88ad0d0e3be3b81e682c |
"""
Test functions for GEE
External comparisons are to R and Stata. The statmodels GEE
implementation should generally agree with the R GEE implementation
for the independence and exchangeable correlation structures. For
other correlation structures, the details of the correlation
estimation differ among implementat... | hainm/statsmodels | statsmodels/genmod/tests/test_gee.py | Python | bsd-3-clause | 55,589 | [
"Gaussian"
] | 518f7428812767bf3c61d3ea53a5ebd1a9902d0254ef4c55b576b994212aac2d |
# 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... | fweik/espresso | samples/visualization_npt.py | Python | gpl-3.0 | 2,534 | [
"ESPResSo"
] | 977061ffb9942f3d39697f691b3980ee0574ea3dc1defdb1ade95d40068964c4 |
"""
CountModel class for dispatching different types of count models and different
types of estimation technqiues.
"""
__author__ = "Taylor Oshan tayoshan@gmail.com"
import numpy as np
from pysal.contrib.glm.glm import GLM
from pysal.contrib.glm.family import Poisson, QuasiPoisson
class CountModel(object):
"""
... | pastephens/pysal | pysal/contrib/spint/count_model.py | Python | bsd-3-clause | 7,191 | [
"COLUMBUS",
"Gaussian"
] | 392a71a75473fc8e7cf64907367e5cfc8b327976947c9f63820c5b525d7d25fc |
# coding=utf-8
# Copyright 2022 The init2winit Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | google/init2winit | init2winit/dataset_lib/nqm_noise.py | Python | apache-2.0 | 3,062 | [
"Gaussian"
] | cae7ffe63a51e531298f0b1ea370bca45435f74bc83373ee96d178b7ed8422a6 |
# -*- coding: utf-8 -*-
# Copyright (C) 2008 CSC Scientific Computing Ltd.
# Please see the accompanying LICENSE file for further information.
"""This module defines an Overlap operator.
The module defines an overlap operator and implements overlap-related
functions.
"""
import sys
import numpy as np
from gpaw.uti... | ajylee/gpaw-rtxs | gpaw/overlap.py | Python | gpl-3.0 | 4,958 | [
"GPAW"
] | 67c39d468aa50191c1c3ea420a09bb26c36798794de247ef4b0624e71b46119c |
"""
Tests for non-spatially referenced objects
"""
import numpy as np
import pytest
import vtk
import pyvista
from pyvista import examples
try:
import pandas as pd
except ImportError:
pd = None
def test_table_init(tmpdir):
"""Save some delimited text to a file and read it"""
filename = str(tmpdir.mk... | akaszynski/vtkInterface | tests/test_objects.py | Python | mit | 6,379 | [
"VTK"
] | 21d14f4b5a3b21b59b538b52fb9172f6cd7b6832b96a635f4fc6526326b45b42 |
#! /usr/bin/python
import argparse
import ast
import os
import re
import sys
import yaml
class DefinitionVisitor(ast.NodeVisitor):
def __init__(self):
super().__init__()
self.functions = {}
self.classes = {}
self.names = {}
self.attrs = set()
self.definitions = {
... | matrix-org/synapse | scripts-dev/definitions.py | Python | apache-2.0 | 6,537 | [
"VisIt"
] | f5542a2362d8a0d5c94f73504927280125f866c48cee4c80c17c39e94f18a8a0 |
# Copyright 2012, Olav Stetter
# Copyright 2014, Javier G. Orlandi
# A collection of meta routines for the NEST simulator.
import sys
import numpy
import random
import nest
DEFAULT_NEURON_PARAMETERS = {
"C_m" : 1.0,
"tau_m" : 20.0,
"t_ref" : 2.0,
"E_L" : -70.0,
"V_th" : -50.0,
"... | orlandi/connectomicsPCV | nest/small-clustering/NEST_meta_routines.py | Python | mit | 9,406 | [
"NEURON"
] | 80760509d51eae1711068df7567579fb543b4c563920122b0f56227ef8852255 |
import datetime
import json
import logging
import pytz
from antlr4 import InputStream, CommonTokenStream, ParseTreeVisitor, Token
from antlr4.error.Errors import ParseCancellationException, NoViableAltException
from antlr4.error.ErrorStrategy import BailErrorStrategy
from decimal import Decimal
from enum import Enum
f... | rapidpro/expressions | python/temba_expressions/evaluator.py | Python | bsd-3-clause | 19,878 | [
"VisIt"
] | a3a8bd627c676b7c732364584f1e6a51e504014254815952e418726e32e845ba |
#!/usr/bin/env python
from __future__ import print_function
import os
import sys
import argparse
import multiprocessing
from os.path import exists, join
from tempfile import mkdtemp
import pysam
from dark.process import Executor
from dark.bowtie2 import Bowtie2
DEFAULT_SAMTOOLS_VIEW_FLAGS = (
pysam.FUNMAP | pys... | acorg/dark-matter | bin/run-bowtie2.py | Python | mit | 14,668 | [
"pysam"
] | 38bbaaa95914b7032408813c161f25cb0c3a70c783fd9adfbe828b9d5977aa20 |
#!/usr/bin/env python
# Part of BP discovery pipeline
# Given a bam file, this script will output the files that overlap the branchpoint.
# It will also output the lariat support stats into stderr
# This script will also output the type of support of each lariat-supporting read
# File format for lariat support:
# read... | yfu/tools | parse_bam/filter_ol_bp.py | Python | gpl-3.0 | 4,187 | [
"pysam"
] | f0e6b3e3ac8daf30bf1b0ee693d900e3336415e586b9531f70a46e619ecf26e4 |
#! /usr/bin/env python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | hujiajie/chromium-crosswalk | tools/telemetry/third_party/pyfakefs/pyfakefs/fake_filesystem_test.py | Python | bsd-3-clause | 111,773 | [
"VisIt"
] | b9fd95cbd8ba4c91943a3a3e04c73f0e8eb06dde1f3680d806fc6737c42e3f86 |
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Denis A. Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
import copy as cp
import os
from math import floor, ceil, log
import itertools as itt
import warnings
import ... | dimkal/mne-python | mne/cov.py | Python | bsd-3-clause | 70,748 | [
"Gaussian"
] | 475304c3df9d386e8e300e06343c225ba05270710796826e208aab077463ea03 |
# -*- test-case-name: pyflakes -*-
# (c) 2005-2010 Divmod, Inc.
# See LICENSE file for details
try:
import __builtin__ # NOQA
except ImportError:
import builtins as __builtin__ # NOQA
import os.path
import _ast
import sys
from flake8 import messages
from flake8.util import skip_warning
__version__ = '... | softwaredoug/flake8_doctest | flake8/pyflakes.py | Python | mit | 25,154 | [
"VisIt"
] | 48955bc1676fcdbdaf378d0d378ed5d051e75b55fea4641bd363237758d3f3bd |
#
# Copyright (C) 2011, 2015, 2016, 2018, 2019, 2020, 2021
# Smithsonian Astrophysical Observatory
#
#
# 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
# ... | anetasie/sherpa | sherpa/sim/__init__.py | Python | gpl-3.0 | 32,348 | [
"Gaussian"
] | a112db062ea1cb093a81a26e798cd15d9d9bb71cb3ec29f3aac89a583f9b9a55 |
#!/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
# ... | adityacs/ansible | lib/ansible/modules/network/lenovo/cnos_conditional_command.py | Python | gpl-3.0 | 7,131 | [
"VisIt"
] | 5424e534ff82925698bf50c10ca46c4096e8fd76a6f5bb8703eef3ced77b509f |
#calculates the mean score of two output of the blastaaa1.py (against the same organism)
#output: transcript media score
import argparse
parser = argparse.ArgumentParser(description="Do mean score")
parser.add_argument("-in1",dest="outputdoblast1",required=True,help="Provide the blast output")
parser.add_ar... | Nymeria8/SpeciesSplit | mediascore2.py | Python | gpl-2.0 | 1,950 | [
"BLAST"
] | 774464b48c4849857e265709e3daf9c5e0410043d70daa7ef29bacb15237d5c1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
=========================================================================
Program: Visualization Toolkit
Module: TestNamedColorsIntegration.py
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or ... | hlzz/dotfiles | graphics/VTK-7.0.0/IO/Core/Testing/Python/TestSortFileNames.py | Python | bsd-3-clause | 3,335 | [
"VTK"
] | f342bf9cbd88eb79fc77f394719a344132bc1937131d18e99a86c41fe3a3cf20 |
# 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 the G... | espressopp/espressopp | src/interaction/LennardJonesExpand.py | Python | gpl-3.0 | 7,112 | [
"ESPResSo"
] | 7854c6b53bcf6e35c622ae991c7f58085892e87acf41a37ceec72fa7499b1137 |
########################################################################
#
# File Name: Printer.py
#
#
"""
The printing sub-system.
WWW: http://4suite.com/4DOM e-mail: support@4suite.com
Copyright (c) 2000 Fourthought Inc, USA. All Rights Reserved.
See http://4suite.com/COPYRIGHT for license and... | alanjw/GreenOpenERP-Win-X86 | python/Lib/site-packages/_xmlplus/dom/ext/Printer.py | Python | agpl-3.0 | 13,835 | [
"VisIt"
] | 0a0f1d76e2e2d7a75a3286d7631cb8f0fe44a51390b0fa099dd0b1243f2daf3c |
""""This module implements an SPPF implementation
This is used as the primary output mechanism for the Earley parser
in order to store complex ambiguities.
Full reference and more details is here:
http://www.bramvandersanden.com/post/2014/06/shared-packed-parse-forest/
"""
from random import randint
from math import... | python-poetry/poetry-core | src/poetry/core/_vendor/lark/parsers/earley_forest.py | Python | mit | 17,590 | [
"VisIt"
] | 05f8b997f60fe3e43c0b417ef860c175e71a4e4afd9d9200743d52eb36c31b6a |
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
from pyqstem import PyQSTEM
from pyqstem.util import atoms_plot
from ase.lattice.hexagonal import Graphite
directions=[[1,-2,1,0],[2,0,-2,0],[0,0,0,1]] # QSTEM requires a right-angled unit cell
atoms = Graphite(symbol='C', lattice... | jacobjma/PyQSTEM | test/test_tem.py | Python | gpl-3.0 | 872 | [
"ASE"
] | 16e822a9c764e7c249af181beccd4ede72ad0cf9a4af736a1726e299158578d7 |
# Copyright 2021 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... | google/differential-privacy | python/dp_accounting/rdp/rdp_privacy_accountant.py | Python | apache-2.0 | 22,564 | [
"Gaussian"
] | c113d4ed9019a5baf7d36436742f42dc1c887d07943856a35dbef42c0be1d554 |
'''This script demonstrates how to build a adversarial variational bayes with Keras.
'''
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm
from keras.layers import Input, Dense, Lambda, Activation, Concatenate, Dot
from keras.models import Model
from keras.regularizers import l2
from kera... | DingKe/nn_playground | avb/avb.py | Python | mit | 4,999 | [
"Gaussian"
] | 6e90890e55966e7ed6f55b312ebb09ba507364b1776d0a1eaa668c5d0d202018 |
from fontbakery.section import Section
from fontbakery.fonts_profile import profile_factory
def check_filter(item_type, item_id, item):
# Filter out external tool checks for testing purposes.
if item_type == "check" and item_id in (
"com.google.fonts/check/ots",
"com.google.fonts/check/fontval... | googlefonts/fontbakery | tests/profiles/external_profile_test.py | Python | apache-2.0 | 7,428 | [
"Dalton"
] | fa246b45865f293e568d22c57e833ee2ef868bb89b28ae2702747a2c643376af |
# --------------------------------------------------------------------------
# Copyrights
#
# Portions created by or assigned to Cursive Systems, Inc. are
# Copyright (c) 2002-2007 Cursive Systems, Inc. All Rights Reserved. Contact
# information for Cursive Systems, Inc. is available at
# http://www.cursive.net/.
#
#... | meebey/smuxi-head-mirror | lib/jabber-net/fixup.py | Python | gpl-2.0 | 1,510 | [
"VisIt"
] | b163e650c19ec48d628386872919e35ce6aa9f1e673cf079ea553bbe353a7f37 |
import datetime
import glob
import os
from django.core.management import call_command
from django.test import TestCase
from django.conf import settings
from core.utils import BLAST
from public_interface.models import Vouchers
from public_interface.models import Sequences
class BlastLocalTest(TestCase):
def setU... | carlosp420/VoSeq | blast_local/tests/test_blast.py | Python | bsd-3-clause | 6,591 | [
"BLAST"
] | 3d666f2594c4e94e7d8f95e4e1e36710694d7aabaccbc32d3d478c9184e597f5 |
import pytest
from .utils import *
from .addons import using_dftd3
import psi4
@using_dftd3
def test_dftd3_dft_grad_lr3():
"""modified VV10-less B97 functional gradient wB97X-V -> wB97X-D3BJ"""
# stored data from finite differences
FD_wb97x_d3 = psi4.core.Matrix.from_list([
[ 0.03637802044642, ... | CDSherrill/psi4 | tests/pytests/test_dftd3.py | Python | lgpl-3.0 | 1,398 | [
"Psi4"
] | bd09c55209dbacb9a2d5bf324bba6545dcc8970aca233f1a8b5a43eb2aa293d4 |
# -*- coding: utf-8 -*-
#
"""
This models contains the Kernels for Kernel smoothing.
Hopefully in the future they may be reused/extended for other kernel based
method
References:
----------
Pointwise Kernel Confidence Bounds
(smoothconf)
http://fedc.wiwi.hu-berlin.de/xplore/ebooks/html/anr/anrhtmlframe62.html
"""
#... | matthew-brett/draft-statsmodels | scikits/statsmodels/sandbox/kernel.py | Python | bsd-3-clause | 11,409 | [
"Gaussian"
] | 3c3894f52a90aa0d9c1019e59246b2520246c407e1ffb27e745a0570cc7edb94 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.