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 |
|---|---|---|---|---|---|---|---|
# This component calculates the humidity ratio from the ladybug weather file import parameters
#
# Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Ladybug.
#
# Copyright (c) 2013-2015, Chris Mackey <chris@mackeyarchitecture.com>
# Ladybug is free s... | samuto/ladybug | src/Ladybug_Humidity Ratio Calculator.py | Python | gpl-3.0 | 7,319 | [
"EPW"
] | 68e85b18f5fa580ecbc86bbc4fae366406406835df3b5c6a879d02c7c50a2e89 |
import sys
sys.path.insert(1, "../../../")
import h2o, tests
import random
def random_attack():
def attack(family, train, valid, x, y):
kwargs = {}
kwargs['family'] = family
gaussian_links = ["inverse", "log", "identity"]
binomial_links = ["logit"]
poisson_links =... | tarasane/h2o-3 | h2o-py/tests/testdir_algos/glm/pyunit_NOPASS_random_attack_medium.py | Python | apache-2.0 | 4,940 | [
"Gaussian"
] | cadf19a9bbcddf46a16b9b434d25ad51dfca065a75c462a4cf737549a2bbc4c1 |
"""
this script used NaN loss -- dunno where
Followed from https://wiseodd.github.io/techblog/2016/12/10/variational-autoencoder/
"""
#import SetPub
#SetPub.set_pub()
from tensorflow.examples.tutorials.mnist import input_data
from keras.layers import Input, Dense, Lambda
from keras.models import Model
from keras im... | hep-cce/ml_classification_studies | cosmoDNN/AutoEncoder/Cl_denoiseVAE.py | Python | gpl-3.0 | 10,348 | [
"Gaussian"
] | 0d46571b8585082cf656081dd2482a0c812964b600bd1c2d2624e44205fe6819 |
import os
from six import string_types
from .destination import submit_params
from .setup_handler import build as build_setup_handler
from .job_directory import RemoteJobDirectory
from .decorators import parseJson
from .decorators import retry
from .util import json_dumps
from .util import json_loads
from .util impor... | ssorgatem/pulsar | pulsar/client/client.py | Python | apache-2.0 | 15,600 | [
"Galaxy"
] | a8e029ef345f5a023278cab52dceaa481275fdd9a8d4aef88d73ab12b45b7256 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
import argparse
import vcf
import sys
import gzip
import os
from collections import namedtuple
from operator import attrgetter
# import io
from Bio import SeqIO
from Bio.Seq import Seq
# from Bio.SeqRecord import SeqRecord
# from Bio.SeqIO.FastaIO import SimpleFasta... | nickp60/open_utils | vcfortless/vcfortless/main.py | Python | mit | 9,628 | [
"Biopython"
] | 7d55822a4fc10b1e009f6b305babcdac1d249d2a6bbe9cdbba4ba3aa59a825f9 |
#!/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.
'''The 'grit build' tool along with integration for this tool with the
SCons build system.
'''
import codecs
import filecmp
import... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/tools/grit/grit/tool/build.py | Python | gpl-3.0 | 20,550 | [
"xTB"
] | 87fc7bbc794b5c5a2dfe51280b091839c1af9fe555903fd6e58d750fbf8fc5c7 |
#!/usr/bin/env python3
#
# QAPI parser test harness
#
# Copyright (c) 2013 Red Hat Inc.
#
# Authors:
# Markus Armbruster <armbru@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2 or later.
# See the COPYING file in the top-level directory.
#
import argparse
import difflib
import os
impo... | dslutz/qemu | tests/qapi-schema/test-qapi.py | Python | gpl-2.0 | 6,716 | [
"VisIt"
] | 31e3bdabf32d1685249f617d732e6ce54aa62829af827d2607a0f34d22ed46b2 |
# 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
# d... | Akrog/cinder | cinder/flow_utils.py | Python | apache-2.0 | 2,976 | [
"VisIt"
] | ff067f4b4d6eb4f1a7bdb71f835d78a8cc82d24402e0579618e6d24679d1b053 |
"""Classes for running 0MQ Devices in the background.
Authors
-------
* MinRK
* Brian Granger
"""
#
# Copyright (c) 2010 Min Ragan-Kelley, Brian Granger
#
# This file is part of pyzmq.
#
# pyzmq is free software; you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public L... | takluyver/pyzmq | zmq/devices/basedevice.py | Python | lgpl-3.0 | 7,034 | [
"Brian"
] | d81749bba87391a60367b0ef9bcd7238512e75588e022f97c1dae8648cc2e651 |
#!/usr/bin/python2.7
# encoding: utf-8
from __future__ import division
import numpy as np
#import netCDF4 as nc
import sys
import os
from utide import solve, reconstruct
from scipy.io import netcdf
from scipy.io import savemat
from scipy.io import loadmat
from pydap.client import open_url
import cPickle as pkl
import ... | rsignell-usgs/PySeidon | pyseidon/stationClass/stationClass.py | Python | agpl-3.0 | 17,603 | [
"NetCDF"
] | 310f6af34f916188a6e5faf8f65ffc745ab7e6f9f971bb736a99d48f50227ba3 |
import functools
import inspect
import os
import sys
import warnings
from collections import defaultdict
from collections import deque
from types import TracebackType
from typing import Any
from typing import Callable
from typing import cast
from typing import Dict
from typing import Generator
from typing import Generi... | TeamSPoon/logicmoo_workspace | packs_web/butterfly/lib/python3.7/site-packages/_pytest/fixtures.py | Python | mit | 65,079 | [
"VisIt"
] | 4c82944a123b47724f1c691a25cfa7dba0b2d1ba1f8630c8e260de33be28820f |
import numpy as np
import scipy as scipy
import lxmls.classifiers.linear_classifier as lc
import sys
from lxmls.distributions.gaussian import *
class MultinomialNaiveBayes(lc.LinearClassifier):
def __init__(self, xtype="gaussian"):
lc.LinearClassifier.__init__(self)
self.trained = False
s... | jnobre/lxmls-toolkit-2017 | lxmls/classifiers/multinomial_naive_bayes.py | Python | mit | 2,715 | [
"Gaussian"
] | 1d46d04c491c7d99c25c34838d166cb27b85b775c5e903117d96654560130c52 |
# Auxiliary functions for analysis of
# ll_4320 mitgcm simulation
# crocha, sio summer 2014
import numpy as np
def rmean(A):
""" Removes time-mean of llc_4320 3d fields; axis=2 is time"""
ix,jx,kx = A.shape
Am = np.repeat(A.mean(axis=2),kx)
Am = Am.reshape(ix,jx,kx)
return A-Am
def spec_est... | crocha700/dp_spectra | synthetic/aux_func_3dfields.py | Python | mit | 4,729 | [
"Gaussian"
] | f5c01b1a1da079b35005311ac4fbeadd842492b21f6cbdf86e1b71bcb04eaf3d |
'''
Created on Jul 15, 2011
@author: sean
'''
from __future__ import print_function
import _ast
from ...asttools import Visitor
from string import Formatter
import sys
from ...utils import py3op, py2op
if sys.version_info.major < 3:
from StringIO import StringIO
else:
from io import StringIO
class ASTFormat... | jasonyaw/SFrame | oss_src/unity/python/sframe/meta/asttools/visitors/pysourcegen.py | Python | bsd-3-clause | 23,969 | [
"VisIt"
] | a007dc8b9e731fb49142e434f66a0a89ef9eae12b1ed65f3dcdfa7768977c9c5 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""This module provides functions and classes related to Task objects."""
from __future__ import division, print_function, unicode_literals, absolute_import
import os
import time
import datetime
import shutil
i... | xhqu1981/pymatgen | pymatgen/io/abinit/tasks.py | Python | mit | 171,911 | [
"ABINIT",
"NetCDF",
"Wannier90",
"pymatgen"
] | 2212330934bc017511117271fcaaac86ce06255eee94815d03a5e95d052c813b |
import numpy as np
import theano
import theano.tensor as T
from theano.tensor.shared_randomstreams import RandomStreams
from theano import shared
from collections import OrderedDict
from logistic_sgd import LogisticRegression
from AutoEncoder import AutoEncoder, BernoulliAutoEncoder, GaussianAutoEncoder, ReluAutoEn... | lzamparo/SdA_reduce | theano_models/SdA/SdA.py | Python | bsd-3-clause | 43,640 | [
"Gaussian"
] | 2b100a688a4c6a585a75637e2f31a22b894c62ac2026611614f1c5b1c4a41ead |
"""PDBFetcher: A simple python API for querying the RCSB PDB and
downloading PDB files"""
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
DOCLINES = __doc__.split("\n")
import os
import sys
import tempfile
import shutil
import subprocess
from glob import ... | schwancr/pdbfetcher | setup.py | Python | mit | 5,152 | [
"MDTraj"
] | 98076a49c1eb8469e3ccec3535778078adc54a2e1f09bf81eca9ed39977c18f8 |
"""Provide variant calling with VarScan from TGI at Wash U.
http://varscan.sourceforge.net/
"""
import os
import sys
from bcbio import broad, utils
from bcbio.distributed.transaction import file_transaction, tx_tmpdir
from bcbio.pipeline import config_utils
from bcbio.provenance import do
from bcbio.variation import... | vladsaveliev/bcbio-nextgen | bcbio/variation/varscan.py | Python | mit | 14,283 | [
"pysam"
] | 92610d547943849f6975470050ceeba764b5e3b35906f1ef78e02b00a61cd028 |
#!/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/pbc/df/df_ao2mo.py | Python | apache-2.0 | 13,851 | [
"PySCF"
] | 9265c4f897dc96710ca4e6ae2bc307bf4b05948ad2747f0f91ff308508330fb5 |
"""
Graph processing.
using Brian Ling's edge triple (inlet, outlet, weight)
with reference to Guido van Russum essay "implementing graphs"
Bruce Wernick
10 June 2021
"""
def has_key(graph, n, c):
'true if graph has an inlet or outlet node called n but not c'
for e in graph:
if c in [e[0],e[1]]: con... | bru32/magz | magz/edge_triple.py | Python | mit | 2,575 | [
"Brian",
"VisIt"
] | 6031d9a48c3363cd434363db0dca2a56057763df52de1470f541b170d1166b30 |
import os
import sys
import random
import math
from time import *
import decimal
print('Welcome to PythonMinecraftTools')
sleep(1)
print('A Console based Minecraft tool with many purposes')
sleep(1)
print('Press "1" to use the Resource Calculator')
print('Press "2" to use the Basic Minecraft Time Conversti... | TheUncannyScrub/PythonMinecraftTools | Tools/MasterMinecraftTool.py | Python | mit | 4,514 | [
"VisIt"
] | 3507c2abcbfffac878cdb1dbdaec8ca904b7558fb84ac16098e58564ea59aa54 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2020, Brian Scholer <@briantist>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'commun... | roadmapper/ansible | lib/ansible/modules/windows/win_psrepository_info.py | Python | gpl-3.0 | 3,236 | [
"Brian"
] | fdccd83befd8c917d6370c62a96796c12f58e87c90db539f3e7b0ed34703fcf2 |
import argparse
parser = argparse.ArgumentParser(description='Run simulation for nora w 3d layers')
parser.add_argument('t', metavar='threads', type=int,
default=1,
help='number of nest threads')
parser.add_argument('n', metavar='nn',
default=3000,
... | research-team/NEUCOGAR | NEST/cube/integration/excitement/simulation_params.py | Python | gpl-2.0 | 1,252 | [
"NEURON"
] | c0f698b2ead8c25fc5568d565c0f13c1ae60df30c0c253f19ae37340d47ba768 |
import copy
import lan
from itertools import chain
import exchange
import collect_array as ca
import collect_loop as cl
import collect_id as ci
import collect_device as cd
class PlaceInReg(object):
def __init__(self, ast):
self.ast = ast
self.PlaceInRegFinding = tuple()
self.PlaceInRegCon... | dikujepsen/OpenTran | v2.0/framework/Matmul/place_in_reg.py | Python | mit | 7,807 | [
"VisIt"
] | 9cb2689c4bc99de29db0b8da0eab8c2729918faeb102dc483b813fdc688fc9de |
import Tools.HTML
from Top import Top
import logging
log = logging.getLogger(__name__)
"""
jmol commands need to be wrapped into Jmol.script(ID, "...commands...")
Sometimes, it is preferable to do it immediately or within .webdata() function.
Accordingly, html_* elements represent controls that are ready to be insert... | talipovm/terse | terse/JSMol.py | Python | mit | 8,266 | [
"Jmol"
] | a969879c8c6014f39ddec8104bcd6f388c4e40d3eda7304b7a42876614602cfc |
"""Functions to plot M/EEG data on topo (one axes per channel)
"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eri... | jaeilepp/eggie | mne/viz/topo.py | Python | bsd-2-clause | 27,382 | [
"Gaussian"
] | a68769bd2ad01d050b7f492378c62fe069259eef72446c845ca2ca7b8abd94bb |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
import io
import itertools
import os
import re
import time
import github
import jinja2
import ruamel.yaml
from conda_build.metadata import (ensure_valid_license_family,
FIELDS as cbfields)
import conda_... | shadowwalkersb/conda-smithy | conda_smithy/lint_recipe.py | Python | bsd-3-clause | 16,738 | [
"Bioconda"
] | 949e2390772894dd69635fac9fb20d96e67dc519626afcdd03bf81c72e379bf9 |
import uuid
from django.conf import settings
from django.core.mail import send_mail, EmailMultiAlternatives
from django.template.loader import render_to_string
from django.utils.html import strip_tags
BASE_CLIENT_URL = 'http://elsyser.netlify.com/#/'
def generate_activation_key():
return uuid.uuid4().hex
def ... | pu6ki/elsyser | students/utils.py | Python | mit | 1,752 | [
"VisIt"
] | b95d7325fc0ae426606eeb90ae586181d831227000bec87fee51fd382af92b09 |
#!/usr/local/sci/bin/python
#*****************************
#
# controller for internal QC checks.
#
#
#************************************************************************
# SVN Info
#$Rev:: 112 $: Revision of last commit
#$Author:: rdunn ... | rjhd2/HadISD_v2 | internal_checks.py | Python | bsd-3-clause | 17,691 | [
"NetCDF"
] | dc93c5e74ba253ce23f96a9d2387a16e5b0ee07f003868ee4cfce9528bc26f4e |
import re
from thefuck.utils import for_app
from thefuck.system import open_command
@for_app('yarn', at_least=2)
def match(command):
return (command.script_parts[1] == 'help'
and 'for documentation about this command.' in command.output)
def get_new_command(command):
url = re.findall(
r'... | nvbn/thefuck | thefuck/rules/yarn_help.py | Python | mit | 431 | [
"VisIt"
] | 290bbc673fa7f5cd31efb9a3a76c81fc8770eccc904065e662b1717b14bea4e9 |
#!/usr/bin/python
#
# Copyright (C) 2010,2012,2013,2014,2015,2016 The ESPResSo project
# Copyright (C) 2008 Axel Arnold
#
# 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 Found... | lahnerml/espresso | tools/trace_memory.py | Python | gpl-3.0 | 2,286 | [
"ESPResSo"
] | 28962728baa37dac7a51e9870fb00d92e343356389316d164bc3b167d7427642 |
# Copyright (C) 2010-2018 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... | mkuron/espresso | testsuite/python/lb_get_u_at_pos.py | Python | gpl-3.0 | 3,270 | [
"ESPResSo"
] | a849bbffaf6cb0c5e2a4843068a0044373c6d33b728ee128387741926b0988e6 |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import functools
import inspect
import sys
import warnings
from collections import defaultdict
from collections import deque
from collections import OrderedDict
import attr
import py
import six
from more_itert... | txomon/pytest | src/_pytest/fixtures.py | Python | mit | 53,770 | [
"VisIt"
] | 37b028c35d605d82ed7b4c3c5e51740b23526cf65f68c389b82a0ea4a6041a7d |
"""Handle installation and updates of bcbio-nextgen, third party software and data.
Enables automated installation tool and in-place updates to install additional
data and software.
"""
from __future__ import print_function
import argparse
import collections
import contextlib
import datetime
import dateutil
from distu... | biocyberman/bcbio-nextgen | bcbio/install.py | Python | mit | 33,701 | [
"BWA",
"Bioconda",
"Bowtie",
"Galaxy"
] | 9156e1126951d5dab9aa9e1ad114aeaf95ab054ad6cb9b6e442781535ec982b1 |
#!/usr/bin/python3
"""Define a PGPWords object inherited from bytearray.
Adding initialization via hex-, or pgp-word-string,
adding .hex() method and
overriding __str__
Mainline code:
Convert pgp words to hex strings and vice versa.
Example:
$ pypgpwords.py DEAD 1337
tactics perceptive Aztec consensus
or
$ ... | mo-ki/pypgpwords | pypgpwords.py | Python | mit | 13,257 | [
"ORCA"
] | 1f27e411ea38c3c158adc5d7eb245aa13df0722008c0feac478aaa4e5cbebf5e |
import numpy as np
import scipy.stats as ss
import scipy.special as sp
from .family import Family
from .flat import Flat
from .normal import Normal
from .gas_recursions import gas_recursion_exponential_orderone, gas_recursion_exponential_ordertwo
from .gas_recursions import gasx_recursion_exponential_orderone, gasx_r... | RJT1990/pyflux | pyflux/families/exponential.py | Python | bsd-3-clause | 13,173 | [
"Gaussian"
] | 050719857d1dcd1f0027e807be35aa53f64a12322d35c30a22d651f5d63d101c |
"""Functions for fetching checklists and information about visits."""
from ebird.api.utils import call
from ebird.api.validation import (
clean_area,
clean_code,
clean_date,
clean_max_checklists,
)
CHECKLISTS_DATE_URL = "https://ebird.org/ws2.0/product/lists/%s/%s"
CHECKLISTS_RECENT_URL = "https://ebi... | ProjectBabbler/ebird-api | src/ebird/api/checklists.py | Python | mit | 3,290 | [
"VisIt"
] | bbcdbd323923f068058d792ced028c6bac0f2b571a90f339f7c261d3656bf772 |
# -*- coding: utf-8 -*-
import sys
import numpy as np
from ase.optimize.optimize import Optimizer
from ase.utils.linesearch import LineSearch
class LBFGS(Optimizer):
"""Limited memory BFGS optimizer.
A limited memory version of the bfgs algorithm. Unlike the bfgs algorithm
used in bfgs.py, the inve... | grhawk/ASE | tools/ase/optimize/lbfgs.py | Python | gpl-2.0 | 11,211 | [
"ASE"
] | d2e3a9ee3d396cd983656614e8b88586f42ec68b20e29ff09035e59aff0e9483 |
import csv
import random
import requests
import string
from io import StringIO
from typing import Dict, List
from data_refinery_common.logging import get_and_configure_logger
from data_refinery_common.models import Sample
from data_refinery_foreman.surveyor.utils import requests_retry_session
logger = get_and_config... | data-refinery/data_refinery | foreman/data_refinery_foreman/surveyor/harmony.py | Python | bsd-3-clause | 31,729 | [
"Bioconductor"
] | 132cd7f433cebc7e465bb16855ef96158c3a8cde4a42e335a45723e27f7d551a |
# 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.
"""Additional protein alphabets used in the SCOP database and PDB files.
See Bio.SCOP for more information about SCOP and Biopython"s SCOP module.
"""
... | ajing/SIFTS.py | SCOPData.py | Python | mit | 17,113 | [
"Biopython"
] | edf5c3a8b37d30f67e779ec5310ac8b0eb60c2b8a57155f8a2c4c2af37af0a5b |
from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os
import logging
log = logging.getLogger( __name__ )
category_name = 'Test 1440 Tool dependency missing env.sh'
category_description = 'Test script 1440 for detection of missing environment settings.'
package_repository_name = 'package_env_sh_1_0_14... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/test/tool_shed/functional/test_1440_missing_env_sh_files.py | Python | gpl-3.0 | 7,970 | [
"Galaxy"
] | e7b767e6caeabf9df475143d801e36ade5091ab9a3d98d7919f50afc531744a8 |
# Copyright (c) 2013, GlaxoSmithKline Research & Development Ltd.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# ... | rdkit/rdkit | Contrib/mmpa/mol_transform.py | Python | bsd-3-clause | 4,351 | [
"RDKit"
] | 47d1a82a5c3c4844c2ab149d9a22dc86494096d6a67ac75305c93f1a125715d4 |
#!/usr/bin/env python
""" Create a DIRAC transfer/replicateAndRegister request to be executed
by the DMS Transfer Agent
"""
__RCSID__ = "$Id$"
import os
from hashlib import md5
import time
from DIRAC.Core.Base import Script
from DIRAC.Core.Utilities.List import breakListIntoChunks
Script.setUsageMessage( '\n'.joi... | sposs/DIRAC | DataManagementSystem/scripts/dirac-dms-create-replication-request.py | Python | gpl-3.0 | 3,301 | [
"DIRAC"
] | 218f3138fa32354accfa325f994eddf185944b5762fa4fe57cb981021381fac1 |
from datetime import datetime
import numpy as np
from numpy.random import randn
import pytest
import pandas.util._test_decorators as td
from pandas import DataFrame, Series, bdate_range, notna
@pytest.fixture(params=[True, False])
def raw(request):
return request.param
@pytest.fixture(
params=[
"... | TomAugspurger/pandas | pandas/tests/window/conftest.py | Python | bsd-3-clause | 7,223 | [
"Gaussian"
] | 760a854b65eed584908bc16570a7d7cd5eb4a646f74f574944aa3a0e9c54e5ce |
#!/usr/bin/env python
#
# 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
# "... | apache/helix | helix-core/src/main/scripts/integration-test/script/dds_driver.py | Python | apache-2.0 | 53,904 | [
"ESPResSo"
] | 74461a11b33e157e9cb2164cc957d99fdd68c20bb578799cff7a932c258645c1 |
from User import *
from College import College
import urllib2
from bs4 import BeautifulSoup
colleges = [
"Princeton University",
"Harvard University",
"Yale University",
"Columbia University",
"Stanford University",
"University of Chicago",
"Duke University",
"Massachusetts Institute of Technology",
"University of Penn... | aacoppa/inglorious-gangsters | Populator.py | Python | mit | 29,862 | [
"COLUMBUS"
] | c25d04e55bde3a0443b9beea883ffbcdb8cb0e6fb2691237a3667b4cfd2cd53b |
'''Evaluate constant expressions in ir.
'''
from __future__ import absolute_import
from __future__ import with_statement
import operator as O
import types
from ..runtime.multimethod import MultiMethod, defmethod, around
from ..runtime.picklep import picklep
from ..runtime.copy import make_copy
from ..runtime.purity ... | matthagy/Jamenson | jamenson/transform/constant_reduction.py | Python | apache-2.0 | 6,969 | [
"VisIt"
] | f0d302cbb959d111d1f5487e7f6f45afdb51f6fbef922b32a51f016f937487c0 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This module is also sponsored by E.T.A.I. (www.etai.fr)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version... | h3biomed/ansible | lib/ansible/modules/cloud/vmware/vmware_guest.py | Python | gpl-3.0 | 136,014 | [
"VisIt"
] | 22ffe72b3a500c4840685d536814453d77bd18a7fc1cdb9cc567a60dc820f1eb |
#!/usr/bin/env python
# Copyright 2010-2013 by Peter Cock.
# All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
import sys
# Add path to Bio
sys.path.append('..')
r"""Read and writ... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/bgzf.py | Python | gpl-2.0 | 34,138 | [
"Biopython"
] | da5b4f393afd0dc622f77541089201abb98a22d2882792c7b6734e7924d2c122 |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... | thica/ORCA-Remote | src/ORCA/utils/Platform/generic/generic_GetUserDownloadsDataPath.py | Python | gpl-3.0 | 2,102 | [
"ORCA"
] | 2f2f437179a110e75f0c2e6562dfdd88fd6b7872164aa74737ecdd442ede029f |
#
# This file is a part of KNOSSOS.
#
# (C) Copyright 2007-2011
# Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V.
#
# KNOSSOS is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 of
# the License as published by the Free Sof... | thorbenk/knossos-svn | tools/flatToNested.py | Python | gpl-2.0 | 1,649 | [
"VisIt"
] | 506365ee9e88d78c2aa7c9d2be84d26e62eaed6ebf12cebbdb09744f5fae277f |
"""
.. _statsrefmanual:
==========================================
Statistical functions (:mod:`scipy.stats`)
==========================================
.. currentmodule:: scipy.stats
This module contains a large number of probability distributions,
summary and frequency statistics, correlation functions and statist... | grlee77/scipy | scipy/stats/__init__.py | Python | bsd-3-clause | 12,694 | [
"Gaussian"
] | 3bafdcf8491d9f26b671af21fe307567fb493e98dbfe4149aa64fac2c2002288 |
#!/usr/bin/env python
# cython: profile=True
# -*- coding: utf-8 -*-
###############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Fo... | cxhernandez/findBindingEvents | countBindingEvents.py | Python | gpl-2.0 | 7,737 | [
"MDTraj"
] | fb2f66825431cdff22fd08a5a222242f6a3cd8dffd00283df8c0a7c09edc61d2 |
# Copyright (c) 2014 AG Stephan
# from github.com/pseudonym117/Riot-Watcher
# file Riot-Watcher/riotwatcher/riotwatcher.py
# last downloaded on 15th October 2015
# with a few changes: search "CUSTOMISED"
from collections import deque
import time
import requests
### CUSTOMISED
import data_path
with open(data_path.rio... | dianegalloiswong/LoL-stats | riotwatcher.py | Python | mit | 23,417 | [
"CRYSTAL"
] | 9b16e9773ca55fb70b2b08c4f5203ed05dc3eef7d3c8d409daa0501076064e24 |
# take the guardian articles and generate a csv
# import guardian articles
import os
import json
import csv
import re
from elasticsearch import Elasticsearch
from elasticsearch_dsl.connections import connections
connections.create_connection(hosts=['http://controcurator.org:80/ess'])
es = Elasticsearch(
['h... | ControCurator/controcurator | cronjobs/generateInput.py | Python | mit | 19,551 | [
"VisIt"
] | d7de047f9f5fedaacc8ff73130db4be700af98795f1cdf1411b9e51a2a8be3df |
import nest
import nest.voltage_trace
import nest.raster_plot
import pylab as pl
nest.ResetKernel()
nest.SetKernelStatus({'local_num_threads': 4,
'resolution': 0.01})
lol = {'C_m': 1.5}
nest.SetDefaults("hh_psc_alpha", lol)
neuron = nest.Create("hh_psc_alpha")
noise = nest.Create("poisson_gene... | research-team/NEUCOGAR | NEST/cube/dopamine/integrated/scripts/test.py | Python | gpl-2.0 | 2,416 | [
"NEURON"
] | 7fcc57a0862f550ee3beaa9e9409f3fc56796cf9477c2b77b855055ec538d0ce |
# Copyright (c) Amber Brown, 2015
# See LICENSE for details.
import os
from textwrap import dedent
from twisted.trial.unittest import TestCase
import mock
from click.testing import CliRunner
from ..create import _main
def setup_simple_project(config=None, mkdir=True):
if not config:
config = dedent(
... | hawkowl/towncrier | src/towncrier/test/test_create.py | Python | mit | 4,684 | [
"Amber"
] | cd820f7b90b73e60c151fb37b5d8020c2aee533ff0f04b14cc6e8672fa6cfa41 |
"""
vtkDrawing
Convenience methods for creating simple vtk objects
that can be used in renderers.
Call one of the methods with some custom parameters
and out comes a vtkActor that can be given to a
renderer with AddViewProp().
:Authors:
Berend Klein Haneveld
"""
from vtk import vtkActor
from vtk import vtkVectorTex... | berendkleinhaneveld/Registrationshop | core/vtkDrawing.py | Python | mit | 14,609 | [
"VTK"
] | d20a26abb0e16dfaf4bca6e7e3ba2cc894de3d4fac9a780fe406ee12e752f5ef |
import cv2
import numpy as np
from matplotlib import pyplot as plt
import BasePixelTransfer
class BaseSpatialFilter:
def __init__(self):
pass
def Mean(self, img, size):
kernel = np.ones((size, size), np.int32)
dImg = cv2.filter2D(img, -1, kernel)
return dImg
def Median(se... | artzers/NGImageProcessor | BaseSpatialFilter.py | Python | mit | 5,014 | [
"Gaussian"
] | 5464f428c4c6b3561ac733885310e9b1d5e8cbc822a22a021b1bf4aa834e063c |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/core/ui/printserviceform.py | Python | gpl-2.0 | 16,598 | [
"Brian"
] | 6eb934ed7ca3d0f98fe14395fddddb2b198e2f04b2d03b42757f59120812467a |
#!/usr/bin/env
"""
GOA_Winds_NARR_model_prep.py
Retrieve NARR winds for two locations:
GorePoint - 58deg 58min N, 150deg 56min W
and Globec3 59.273701N, 148.9653W
Filter NARR winds with a triangular filter (1/4, 1/2, 1/4) and output every 3hrs
Provide U, V
Save in EPIC NetCDF standard
"""
#System St... | shaunwbell/FOCI_Analysis | ReanalysisRetreival_orig/GOA_Winds_Mordy/chiniaktrough_NARR_model_prep.py | Python | mit | 11,651 | [
"NetCDF"
] | e57cdc95d416c15d2567f28ddb84f7f1801a04ec4363ec2740dc5c88f6ea0447 |
#!/usr/bin/env python
"""Hierarchical Cache Simulator."""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import textwrap
from functools import reduce
import sys
from collections import Iterable
from cachesim import backend
if sys.version_info[0] < 3:
... | RRZE-HPC/pycachesim | cachesim/cache.py | Python | agpl-3.0 | 24,617 | [
"ParaView",
"VTK"
] | b6057b618035b9e683f9df501c11b1f6bf7eb4cfa3161232d4a24de87377fbaa |
########################################################################################
## This file is a part of YAP package of scripts. https://github.com/shpakoo/YAP
## Distributed under the MIT license: http://www.opensource.org/licenses/mit-license.php
## Copyright (c) 2011-2013 Sebastian Szpakowski
#############... | andreyto/YAP | StepsLibrary_EXP.py | Python | mit | 52,486 | [
"BLAST",
"Bowtie"
] | b769e52549a2af6f2fc04b36f783c3027bc8403499cf0568d232097e372846dc |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2016 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | kannon92/psi4 | psi4/driver/procedures/dft_functional.py | Python | gpl-2.0 | 96,317 | [
"Psi4"
] | 810d3e566581f541ce5d0a1c7869284ab62487c8bdbaec0b4a6da7fbcc41bed1 |
# slicer imports
from __main__ import vtk, qt, ctk, slicer
# vmtk includes
import SlicerVmtkCommonLib
#
# Vesselness Filtering using VMTK based Tools
#
class VesselnessFiltering:
def __init__( self, parent ):
parent.title = "Vesselness Filtering"
parent.categories = ["Vascular Modeling Toolkit", ]
par... | jcfr/SlicerExtension-VMTK | PythonModules/VesselnessFiltering.py | Python | apache-2.0 | 22,448 | [
"VTK"
] | 70a8f96cf50e34f98de6839130dcb09c732e495ab83a8e595498983d2f123087 |
from brian.stdunits import *
from brian.units import *
F = 1
N_SUBPOP = 2
INTERCO_RATE = 0
INTERCO_STRENGTH = 0
PARAMETERS = {
'Common':
{'simu_dt' : 0.05*msecond,
'simu_length' : 2000*msecond,
'N_subpop' : N_SUBPOP,
'N_mitral' : N_SUBPOP*50*F,
'inter_conn_rate' : {},
'inter_conn_... | neuro-lyon/multiglom-model | src/paramsets/std_gamma_1glom.py | Python | mit | 1,370 | [
"Brian"
] | 02e967a7e8edbdf294bd758c8ab892f595a3c1e8ae94c1a4d7b9c6084a4c22be |
"""
This is the boilerplate default configuration file.
Changes and additions to settings should be done in the config module
located in the application root rather than this config.
"""
config = {
# webapp2 sessions
'webapp2_extras.sessions': {'secret_key': '_PUT_KEY_HERE_YOUR_SECRET_KEY_'},
# webapp2 au... | eugenewong/AirShare | boilerplate/config.py | Python | apache-2.0 | 4,560 | [
"VisIt"
] | 47aafc5f533730f5aca0d873a81062e33f343adba484c56eb0731c6f750c2282 |
import re, sys, pprint
import unittest
import setup_path
from lib.asmlib.assembler import *
from lib.asmlib.asm_common_types import *
from lib.asmlib.asmparser import *
from lib.commonlib.utils import unpack_word, bytes2word, unpack_bytes
class TestAssembler(unittest.TestCase):
""" It's quite hard to ... | 8l/luz-cpu | luz_asm_sim/tests_unit/test_assembler.py | Python | unlicense | 14,535 | [
"MOE"
] | 3ee2997eab1d58eff471a33c3942a1f99ac2f723a3b6eb6be175fefe9cd4d9c8 |
# -*- coding: utf-8 -*-
# This script can also be called directly to build and install the pymoose
# module.
#
# Alternatively, you can use cmake build system which provides finer control
# over the build. This script is called by cmake to install the python module.
#
# This script is compatible with python2.7 and py... | BhallaLab/moose-core | setup.py | Python | gpl-3.0 | 6,058 | [
"MOOSE"
] | 35831ca9af6618160a1bbdeb9dcad6af9ce3450c8282c651e4365402d862a584 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import sys
import platform
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext as _build_ext
class build_ext(_build_ext):
def finalize_options(self):... | dongsenfo/pymatgen | setup.py | Python | mit | 8,279 | [
"ABINIT",
"ASE",
"CRYSTAL",
"FEFF",
"Gaussian",
"LAMMPS",
"NWChem",
"VASP",
"VTK",
"pymatgen"
] | 3666553ba4446254145a9e705f3731d9117755ce8f3312de7d9a4bcde18623a7 |
###############usage: reads in photometry file and for n stars creates x and y average displacements and integrates them over m time steps to create the actual gaussian profile#####################################################
###############
from numpy import *
import sys
import os
#from scipy import *
from scip... | fedhere/getlucky | LIpipe/psf.py | Python | mit | 11,707 | [
"Gaussian"
] | ad66c126e0e6dc742c96f252d43e9072e1950be5dc177e9fc98f68a9c06da876 |
"""Package for learning complete games from data
The API of this individual module is still unstable and may change as
improvements or refinements are made.
There are two general game types in this module: learned games and deviation
games. Learned games vary by the method, but generally expose methods for
computing ... | egtaonline/GameAnalysis | gameanalysis/learning.py | Python | apache-2.0 | 32,808 | [
"Gaussian"
] | cca450aafab483253d4f4250b0071a2119fffcea7b3aa3779eabde40af4bee53 |
#!/usr/bin/env python
import datetime
import json
import unittest
from unittest.mock import MagicMock, PropertyMock, patch
from data.variable import Variable
from data.variable_list import VariableList
from oceannavigator import DatasetConfig, create_app
app = create_app(testing=True)
# Note that patches are applie... | DFO-Ocean-Navigator/Ocean-Data-Map-Project | tests/test_api_v_1_0.py | Python | gpl-3.0 | 26,272 | [
"Gaussian"
] | 6e5a895a007d6ca253768dcde9317f7a8e3cd00ba157d03ae249820dcc2f71fd |
########################################################################
# $Id$
########################################################################
""" The TimeLeft utility allows to calculate the amount of CPU time
left for a given batch system slot. This is essential for the 'Filling
Mode' where severa... | sposs/DIRAC | Core/Utilities/TimeLeft/TimeLeft.py | Python | gpl-3.0 | 7,741 | [
"DIRAC"
] | 0c5e24e60eff4f041906c2113a4a6ed3ecd79333d51ae5f0161c2d56bd9ba1cc |
# coding=utf-8
# Copyright 2021 The Dopamine Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | google/dopamine | dopamine/jax/agents/sac/sac_agent.py | Python | apache-2.0 | 25,381 | [
"Gaussian"
] | a85b75fb07a6daa5a5febb89639c6aaceca69c916c83e66726a4269add359d9b |
#!/usr/bin/python
import time
import os
import sys
import argparse
#TODO: Rename this script, it's horrible!
# Copyright(C) 2014 David Ream
# Released under Biopython license. http://www.biopython.org/DIST/LICENSE
# Do not remove this comment
########################################################################... | schaefce/gene_block_evolution | main.py | Python | gpl-3.0 | 8,377 | [
"BLAST",
"Biopython"
] | ec72de5ea41f1fa331691bc8af6566948a5fbc9fdbe35653f74054b84cc11b7f |
# Author: Varun Hiremath <varun@debian.org>
# Enthought library imports.
from traits.api import Instance, Enum
from traitsui.api import View, Group, Item
from tvtk.api import tvtk
# Local imports
from mayavi.filters.filter_base import FilterBase
from mayavi.core.pipeline_info import PipelineInfo
###################... | dmsurti/mayavi | mayavi/filters/extract_vector_components.py | Python | bsd-3-clause | 2,661 | [
"Mayavi"
] | 717e77f296b2d8e15d527b8991f399afbd4772ea76571f7b5015fb5ce38a148e |
#!/usr/bin/env python
"""
Easy Install
------------
A tool for doing automatic download/extract/build of distutils-based Python
packages. For detailed documentation, see the accompanying EasyInstall.txt
file, or visit the `EasyInstall home page`__.
__ https://pythonhosted.org/setuptools/easy_install.html
"""
from... | CollinsIchigo/hdx_2 | venv/lib/python2.7/site-packages/setuptools/command/easy_install.py | Python | mit | 82,867 | [
"VisIt"
] | 8d811b1dd63e27c15fc7cb9f38a5dad74adf81641a45361ef3288fd5f104c2af |
# Copyright (c) 2017 Elias Riedel Gårding
# Licensed under the MIT License
from .node import Node
from utilities import hamming_distance, memoized
from distributions import gaussian
import numpy as np
import scipy.stats as stats
from scipy.integrate import quad
from scipy.optimize import minimize
from queue import Pr... | eliasrg/SURF2017 | code/separate/coding/convolutional/stack.py | Python | mit | 5,605 | [
"Gaussian"
] | bd78b89cb6c881e474a3c32052778e8dc23303e6199f75c1ac86a3e7a60da944 |
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgarren/spack | var/spack/repos/builtin/packages/r-affycoretools/package.py | Python | lgpl-2.1 | 2,632 | [
"Bioconductor"
] | 87549b9e0cf462419ffed07f6f63df28b9d4b21d52ba96daa34c9d3ac0f496a5 |
import numpy as np
from matplotlib import pyplot as plt
from scipy.stats import multivariate_normal
from skimage import filters
from toybox.symmetry.operators import propagate
from toybox.symmetry.parsers import parse_hermann_mauguin
from toybox.tools import check_points, check_point, equivalent
class Points:
de... | bm424/diffraction-toybox | toybox/toys/core.py | Python | mit | 5,671 | [
"Gaussian"
] | 413c8eb0f655b9a63c2df15214bbb5ad61cf890980e0a91a01dd89d9d787bd9b |
@mfunction("p")
def multivariateGaussian(X=None, mu=None, Sigma2=None):
# MULTIVARIATEGAUSSIAN Computes the probability density function of the
# multivariate gaussian distribution.
# p = MULTIVARIATEGAUSSIAN(X, mu, Sigma2) Computes the probability
# density function of the examples X under ... | gedman4b/MachineLearning | coursera/AnomolyDetection and RecommenderSystems/multivariateGaussian.py | Python | gpl-3.0 | 911 | [
"Gaussian"
] | 556724a2a59ef16ec52a67fb9386cd021f791bd7a69efa6faf5d668fed58fb8c |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2012 The Plaso Project Authors.
# Please see the AUTHORS file for details on individual 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 L... | cvandeplas/plaso | plaso/parsers/sqlite_plugins/firefox.py | Python | apache-2.0 | 15,505 | [
"VisIt"
] | 9eb089da11e59f3dd373ee02324545cb7ea9866fe802f529a2e201dd31330d5d |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, print_function, unicode_literals
from __future__ import absolute_import
from pymatgen.analysis.elasticity.tensors import Tensor, \
TensorCollection, get_uvec
from pymatgen.... | setten/pymatgen | pymatgen/analysis/elasticity/elastic.py | Python | mit | 40,064 | [
"VASP",
"pymatgen"
] | ba9778fcca8896bdfbc86ca8a7d28ae998ae30c879d7c123a8635ca9ae6ae64c |
#!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 16.3.8
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the te... | 0x46616c6b/ansible | lib/ansible/modules/network/avi/avi_networkprofile.py | Python | gpl-3.0 | 4,061 | [
"VisIt"
] | c37c51b1bdf06aab281ef47d2c908dd1ac288cc98944f167db3475dbb7d3c3e7 |
"""
Global average annual temperature plot
======================================
Produces a time-series plot of North American temperature forecasts for 2 different emission scenarios.
Constraining data to a limited spatial area also features in this example.
The data used comes from the HadGEM2-AO model simulations... | scollis/iris | docs/iris/example_code/graphics/COP_1d_plot.py | Python | gpl-3.0 | 3,947 | [
"NetCDF"
] | 197ae2f98a53977fcba2f8838cfd0fdd8155d6d0dc856037cce6e7cf41f25c90 |
# -*- coding: utf-8 -*-
"""
End-to-end tests for Student's Profile Page.
"""
from contextlib import contextmanager
from datetime import datetime
from nose.plugins.attrib import attr
from common.test.acceptance.pages.common.auto_auth import AutoAuthPage
from common.test.acceptance.pages.common.logout import LogoutPage... | Lektorium-LLC/edx-platform | common/test/acceptance/tests/lms/test_learner_profile.py | Python | agpl-3.0 | 34,750 | [
"VisIt"
] | 2ae0a479e973f600acf08714722b577d1087ebedf98083a8e7d2a469ce9f1250 |
def agts(queue):
queue.add('C5H12.agts.py',
walltime=25,
ncpus=8,
creates=['C5H12-gpaw.csv'])
if __name__ == "__main__":
from ase.optimize.test.C5H12 import *
| qsnake/gpaw | doc/devel/ase_optimize/C5H12.agts.py | Python | gpl-3.0 | 210 | [
"ASE",
"GPAW"
] | 4911238f104b5b0e693fc6c3fce22ff1e911c09d0bffd5eaa918184bd137c0ff |
""" DIRAC Transformation DB
Transformation database is used to collect and serve the necessary information
in order to automate the task of job preparation for high level transformations.
This class is typically used as a base class for more specific data processing
databases
"""
import re
import time... | andresailer/DIRAC | TransformationSystem/DB/TransformationDB.py | Python | gpl-3.0 | 69,831 | [
"DIRAC"
] | b71c272ee2e9025103eb98a13d6268ffa55ea5704d4cf2db1b2e9a7a07001c7c |
"""
Generates cut-site matrix for use in CENTIPEDE
Usage:
python cutsite_matrix.py something.bam annotation.bed
"""
import pysam
import numpy as np
def get_cutsite():
pass
def main():
import optparse
p = optparse.OptionParser(__doc__)
p.add_option("-D", "--debug", action="store_true", dest="D"... | jeffhsu3/genda | scripts/PWM/cutsite_matrix.py | Python | bsd-3-clause | 1,609 | [
"pysam"
] | 54c55e94300d318c1d0fedb74a8ac0a898b76c27851b493df44e2eec9886158f |
"""An NNTP client class based on:
- RFC 977: Network News Transfer Protocol
- RFC 2980: Common NNTP Extensions
- RFC 3977: Network News Transfer Protocol (version 2)
Example:
>>> from nntplib import NNTP
>>> s = NNTP('news')
>>> resp, count, first, last, name = s.group('comp.lang.python')
>>> print('Group', name, 'ha... | invisiblek/python-for-android | python3-alpha/python3-src/Lib/nntplib.py | Python | apache-2.0 | 41,473 | [
"Brian"
] | 451bb6f4770b4afd8bfacec3fad1f0e4233534977b3f3fd714a3fd1d97813e95 |
"""Tests for items views."""
import copy
import json
import os
import tempfile
import textwrap
from uuid import uuid4
from mock import patch
from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from django.conf import settings
from contentstore.tests.utils import CourseTestCas... | waheedahmed/edx-platform | cms/djangoapps/contentstore/views/tests/test_transcripts.py | Python | agpl-3.0 | 29,107 | [
"FEFF"
] | cf62ed5e49d4836011a61e2bb569268798ecf1d33fef3b48ba97d1825ccc3307 |
from math import log
import numpy as np
from matplotlib import pyplot
from spm1d import rft1d
def here_manova1_single_node(Y, GROUP):
### assemble counts:
u = np.unique(GROUP)
nGroups = u.size
nResponses = Y.shape[0]
nComponents = Y.shape[1]
### create design matrix:
X = np.zeros((nR... | 0todd0000/spm1d | spm1d/rft1d/examples/val_max_8_manova1_1d.py | Python | gpl-3.0 | 2,552 | [
"Gaussian"
] | 90a29b7049de8c539739fe0d2448f0806a81c34b633ef8415a232ac550f9e867 |
# Copyright (c) 2012 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | kalaidin/luigi | setup.py | Python | apache-2.0 | 2,810 | [
"VisIt"
] | 353bf7169c0705b316931d6ab7625fe5300567e85ab985afe56b8af9d402ff64 |
#!/usr/bin/env python2
from __future__ import print_function
import os, sys, subprocess, re
import warnings
warnings.filterwarnings("ignore")
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import time, hashlib
import tempfile
import numpy as np
impor... | khendarg/hvordan | hvordan.py | Python | bsd-3-clause | 30,570 | [
"BLAST"
] | 74d58087108aa778e743760da99a4af5cc30347cf38b6c156299af00bd608070 |
from zope.component import getUtility
from zope.interface import implementer
import Missing
from wsapi4plone.core.interfaces import IFormatQueryResults, IScrubber
@implementer(IFormatQueryResults)
class FormatQueryResults(object):
masking = {
'cmf_uid': None,
'exclude_from_nav': None,
'... | OpenBfS/dokpool-plone | Plone/src/wsapi4plone.core/wsapi4plone/core/utilities/query.py | Python | gpl-3.0 | 1,327 | [
"NEURON"
] | 028105d8181c4824df2e7625a27052b36368d965a6b27d855c12994333e86597 |
# -*- coding: utf-8 -*-
"""Wrapper functions and classes around scikit-images AffineTransformation.
Simplifies augmentation of images in machine learning.
Example usage:
img_width = 32 # width of the images
img_height = 32 # height of the images
images = ... # e.g. load via scipy.misc.imload(fi... | Luonic/tf-cnn-lstm-ocr-captcha | ImageAugmenter.py | Python | mit | 39,211 | [
"Gaussian"
] | a7712f6a436f9cdaef387614dbaffaa80ebf697801230f71f8d3df07a2979017 |
from __future__ import annotations
import errno
import os
import matplotlib
from libtbx.phil import parse
import dials.util
from dials.algorithms.refinement.rotation_decomposition import (
solve_r3_rotation_for_angles_given_axes,
)
matplotlib.use("Agg")
import matplotlib.gridspec as gridspec
import matplotlib.... | dials/dials | command_line/plot_scan_varying_model.py | Python | bsd-3-clause | 14,391 | [
"CRYSTAL"
] | 9b56423d50693ba8ab2ce88384de766a2ea199f17eb44e06bbd0c4c16f4cefc8 |
__author__ = 'sulantha'
from Utils.PipelineLogger import PipelineLogger
from Utils.DbUtils import DbUtils
import Config.PipelineConfig as pc
from datetime import datetime
import itertools
class DIAN_T1_Helper:
def __init__(self):
self.DBClient = DbUtils()
self.MatchDBClient = DbUtils(database=pc.D... | sulantha2006/Processing_Pipeline | Pipelines/DIAN_T1/DIAN_T1_Helper.py | Python | apache-2.0 | 6,987 | [
"VisIt"
] | 88b378be325cd5a219bdab31a7dd9576b889965fe2df191969cf54b364631c55 |
"""
@name: PyHouse_Install/src/Install/hostname.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2016-2016 by D. Brian Kimmel
@license: MIT License
@note: Created Jan 22, 2016
@Summary: Set up the computers hostname
Hostname must be set up properly so that X509 certifica... | DBrianKimmel/PyHouse_Install | src/Install/hostname.py | Python | mit | 864 | [
"Brian"
] | 5f1f104fd82a46b32dd795cf1b4499e87105a284c0ad33086f800af24c3c6618 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.