text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
import sys
import os
import os.path as op
import argparse
from toolshed import nopen
def faseq(fa, chrom, start, end, cache=[None]):
"""
this is called by pileup which is ordered by chrom
so we can speed things up by reading in a chrom at
a time into memory
"""
if cache[0] is None or cache[0][0... | PeteHaitch/bwa-parclip | scripts/tabulate-methylation.py | Python | mit | 6,372 | [
"BWA"
] | 4cd00c98c4557895eaece259c44737a7519c53462a8353d7dfba22b9a3352571 |
#!/usr/bin/env python
#===============================================================================
# Copyright (c) 2014 Geoscience Australia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
... | alex-ip/agdc | agdc/stacker.py | Python | bsd-3-clause | 67,065 | [
"NetCDF"
] | 13e173558d6d4360d9f7a7756d00178a0724ac71119f426827275ae708e1234c |
import numpy as np
import scipy as scipy
import lxmls.classifiers.linear_classifier as lc
from lxmls.distributions.gaussian import *
class NaiveBayes(lc.LinearClassifier):
def __init__(self,xtype="gaussian"):
lc.LinearClassifier.__init__(self)
self.trained = False
self.xtype = xtype
... | oplatek/lxmls-toolkit | lxmls/classifiers/naive_bayes.py | Python | mit | 2,956 | [
"Gaussian"
] | 0f4da2dbe64a8a38a8a7826139a4f784b1cdf4c94bd20f87076665bfef13b6ed |
# -*- coding: utf-8 -*-
{
"'Cancel' will indicate an asset log entry did not occur": "'Annulla' indicherà che una voce di registrazione asset non si è verificata",
"A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location ... | code-for-india/sahana_shelter_worldbank | languages/it.py | Python | mit | 261,445 | [
"VisIt"
] | cb37230264fc1aabc3f60246a1e7bce9d3d2a302b6da1104dc552d1757c01a5d |
import numpy as np
from compliance_checker.base import check_has, Result
from compliance_checker.defined_base import DefinedNCBaseCheck
from netCDF4 import Dataset
# more varlists - not used for checking
def roms_varlist(option):
"""
varlist = roms_varlist(option)
Return ROMS varlist.
"""
if opt... | webtrike/compliance-checker | compliance_checker/roms.py | Python | apache-2.0 | 13,048 | [
"NetCDF"
] | e222ba8167ec97fe89f07f08382abc1f283a9305130ed98b1a3899fe7c396294 |
########################################################################
# $HeadURL$
# File : InputDataAgent.py
########################################################################
"""
The Input Data Agent queries the file catalog for specified job input data and adds the
relevant information to the job opti... | Sbalbp/DIRAC | WorkloadManagementSystem/Executor/InputData.py | Python | gpl-3.0 | 13,286 | [
"DIRAC"
] | d1bbc5ab16e3d5a4df627ed95cdf6c74e8e5d5f21757f30e48a798968eb3189f |
# -*- coding: utf-8 -*-
# Copyright 2007-2021 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | thomasaarholt/hyperspy | hyperspy/_signals/signal2d.py | Python | gpl-3.0 | 36,696 | [
"Gaussian"
] | a044a1734a0d1c75abfe4a5f6fc034db80da9c4901563d30b58547e2108648b8 |
#adapted from the example at http://scikit-learn.org/stable/auto_examples/svm/plot_rbf_parameters.html
"""
This script can be used to get the p value for classifiers. It takes input files with column vectors corresponding to features and lables.
Then there are two different routes one can go down. When mode has a val... | weissercn/MLTools | Dalitz_simplified/classifier_eval_simplified.py | Python | mit | 17,436 | [
"Gaussian"
] | a89e5e2351f464ac908ead4a2000095b554fc6f047f84d97c32d4b4cce95e5e7 |
from django.core.management import call_command
from django.test import TestCase
from django.test.client import Client
from django.utils.six import StringIO
from guardian.shortcuts import assign_perm
from catmaid.models import Class, ClassInstance, Project, User, Treenode
class PruneSkeletonsTest(TestCase):
"""
... | AdaEne/CATMAID | django/applications/catmaid/tests/command_tests.py | Python | gpl-3.0 | 2,666 | [
"NEURON"
] | 456507ac52b6a01e8261ac061a5fc67151026bf5902837981d58e00cc2ed2e32 |
#!/usr/bin/env python
# Splits a BAM file and the FASTA/FASTQ used to generate the alignment into matched chunks
# Every read in chunk i of the the BAM file will have its original FASTA/FASTQ record stored in chunk i of the FASTA/Q
# Usage: ./split_bam_and_fasta.py in.bam in.fasta/q chunk_size [suffix]
# Output files: ... | scottgigante/nanopore-scripts | split_bam_and_fasta.py | Python | mit | 1,990 | [
"pysam"
] | 50e34af5474a661bbf4ca627842e871cec78ffc826b600878c76a30e84a83ca7 |
import os, re, time
import urllib.parse as url
from selenium import webdriver
import needl
def generate_wordlist(wordfile=None, min_length=5, max_length=20):
words = []
regexp = re.compile("^%s{%i,%i}$" % ('.', min_length, max_length))
wordfile = os.path.expanduser(wordfile)
with open(wordfile) as wo... | eth0izzle/Needl | needl/utils.py | Python | mit | 3,404 | [
"VisIt"
] | e49e28263655d0dade978a1ef8d3e65aea11e2940c6b7189fb384499565f232f |
"""
Created on 13 Aug 2013
@author: thom
"""
import logging
import os
import config
from rdkit.Chem import AllChem as Chem
from emergent_reactions import EmergentReactions
from molecule import Molecule
from chemistry_factory import ChemistryFactory
from physics_factory import PhysicsFactory
if __name__ == '__main... | th0mmeke/toyworld | util/reaction_distribution.py | Python | gpl-3.0 | 2,778 | [
"RDKit"
] | 38e4f434105a85535e0bb6aabd24f0448c4d9984f47f265dbd100c4a98848d4e |
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
#
# PyMTP
# Developed by: Nick Devito (nick@nick125.com)
# (c) 2008 Nick Devito
# Released under the GPLv3 or later.
#
import os
import ctypes
import ctypes.util
from models import *
from constants import *
from errors import *
_module_path = ctypes.util.find_librar... | RaphaelCavalcante/pymtp | pymtp/main.py | Python | gpl-3.0 | 23,958 | [
"VisIt"
] | 5f9b0f79f705120b9f800e72cd6cfea2e2b1df8b542e4e3238a0502f4f91e14c |
# Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
import gyp
import gyp.common
import json
import sys
generator_supports_multiple_toolsets = True
generator_wants_static_library_dependencies_ad... | ramyfarid922/Quiz-Program | vendor/bundle/ruby/2.2.0/gems/libv8-3.16.14.7/vendor/gyp/pylib/gyp/generator/dump_dependency_json.py | Python | cc0-1.0 | 2,147 | [
"VisIt"
] | 9fa90b00f37d13563e1ef57151c3a6236067d30f442db649726d880919eccf8d |
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
"""Determine facts about the environment."""
import os
import platform
import sys
# Operating systems.
WINDOWS = sys.platform == "win32"
LINUX = sys.platform.star... | hugovk/coveragepy | coverage/env.py | Python | apache-2.0 | 4,719 | [
"VisIt"
] | 49a1ca735e87fdd4452fd3bdbf73f0c559cf9de0e34bff642b790213bc21382e |
# -*- coding: UTF-8 -*-
import numpy as np
import pyfftw
class fgn( object ) :
"""A class to generate fractional Gaussian process of fixed length using
a circulant matrix method suggested by Dietrich and Newsam (1997). For the
best performance N-1 should be a power of two."""
## For better performance N-1 should be... | ivannz/study_notes | year_14_15/course_project/code/project/fgn.py | Python | mit | 5,615 | [
"Gaussian"
] | 022997b46daf17d3976ae27fa8d9273a2a1baeab1eb391ddfb1c820ff61b7a00 |
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views import defaults as default_views
from fin_manager.categories.views import entry_editor, category_editor, categories_list, \
delete_category, updat... | OleaGulea/fin_manager | config/urls.py | Python | mit | 2,129 | [
"VisIt"
] | a3b30b136491007113ab834d337b038e6eefe296a53ed2a733ba7ce4e02a3176 |
# These tests are those of the deprecated GMM class
import unittest
import copy
import sys
import warnings
from nose.tools import assert_true
import numpy as np
from numpy.testing import (assert_array_equal, assert_array_almost_equal,
assert_raises)
from scipy import stats
from sklearn impo... | toastedcornflakes/scikit-learn | sklearn/mixture/tests/test_gmm.py | Python | bsd-3-clause | 20,673 | [
"Gaussian"
] | ecab129c8b8f7bc2f112a771ad18e07b88b2b960da8856a3df3317d424f0f613 |
# -*- coding: utf-8 -*-
import numpy as np
from morty.pitchdistribution import PitchDistribution
from morty.converter import Converter
import logging
import copy
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class InputParser(object):
_dummy_ref_freq = 220.0
def __init__(self, ... | altugkarakurt/morty | morty/classifiers/inputparser.py | Python | agpl-3.0 | 4,483 | [
"Gaussian"
] | e46f6955b61fbce8bb5023b0ad4ecf77b4801b4ae1629a32ced3f0037c4d808b |
# -*- coding: utf-8 -*-
import logging
import numpy as np
from collections import OrderedDict
import theano
import theano.tensor as T
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
from theano.tensor.nnet.conv import conv2d, ConvOp
from theano.sandbox.cuda.blas import GpuCorrMM
from theano.san... | ryukinkou/ladder_customized | ladder_theano_customized/ladder.py | Python | mit | 26,220 | [
"Gaussian"
] | 71e2a11ca36ab734acf05b966f9e1fcfc70f3471abebee664d28e0a00c08dc0e |
"""
Methods related to importing data.
"""
import copy
import csv
import os
import shutil
import re
import subprocess
from tempfile import mkdtemp
from tempfile import mkstemp
from tempfile import NamedTemporaryFile
from BCBio import GFF
from Bio import Entrez
from Bio import SeqIO
from celery import task
from django... | woodymit/millstone | genome_designer/utils/import_util.py | Python | mit | 45,936 | [
"BWA",
"Biopython"
] | 68dc1bda001b1cb31cb67bcfd4ae9e6193b3cb7295e6718fe0313ac63528849e |
#!/usr/bin/python2.7
# encoding: utf-8
# 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 ... | namanjain236/personfinder | tests/server_test_cases/person_note_tests.py | Python | apache-2.0 | 229,314 | [
"VisIt"
] | 7c74de082b17c5921ac3deacf463faefa07a3f7a44510d9c60c0b37b2d2b0ca9 |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | shirou/ansible | lib/ansible/utils/__init__.py | Python | gpl-3.0 | 55,660 | [
"VisIt"
] | 52f9ee0831cae2f28bd06bfe571547d4a2f55d1b9deffbe6fe8826efe1c40661 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
#
# Copyright (C) 2017 Lenovo, Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Licens... | caphrim007/ansible | lib/ansible/modules/network/cnos/cnos_backup.py | Python | gpl-3.0 | 11,252 | [
"VisIt"
] | 61a54f6f5044af5e9cfe45fbd62a3786c5e6f6bfdd6bc3640ae994e11b549eff |
#!/usr/bin/python
"""
# Created on Aug 12, 2016
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com) GitHub ID: grastogi23
#
# module_check: not supported
#
# 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 publ... | adityacs/ansible | lib/ansible/modules/network/avi/avi_api_session.py | Python | gpl-3.0 | 8,029 | [
"VisIt"
] | fdf30021ada2083b3d4034767477c73a3dd0bdd6460c0bf5b16cdd00e5ace119 |
# -*- coding: utf-8 -*-
import Base
import VS
import GUI
import ShowProgress
import computer_lib
import dj_lib
# No good reason to disable it...
# dj_lib.disable()
def DoStartNewGame(self,params):
global starting_new_game
ShowProgress.activateProgressScreen('loading',3)
VS.loadGame(VS.getNewGameSaveName(... | vegastrike/Assets-Production | bases/main_menu.py | Python | gpl-2.0 | 9,809 | [
"Brian",
"CRYSTAL"
] | b4549fb6907cbcc022401ce172d9d28f830a3b3b34521550b0a9cc0ea888cbc4 |
# Subcommands not exciting enough for their own module.
import argparse
import inspect
import os
import os.path
import sys
import charliecloud as ch
import pull
import version
## argparse "actions" ##
class Action_Exit(argparse.Action):
def __init__(self, *args, **kwargs):
super().__init__(nargs=0, *args... | hpc/charliecloud | lib/misc.py | Python | apache-2.0 | 3,195 | [
"exciting"
] | 9053363e80500ef6dcd6c7f6d89fa479e077b12c490181f413d16bb64b0ef492 |
# -*- coding: utf-8 -*-
"""
End-to-end tests related to the cohort management on the LMS Instructor Dashboard
"""
from datetime import datetime
from pytz import UTC, utc
from bok_choy.promise import EmptyPromise
from nose.plugins.attrib import attr
from .helpers import CohortTestMixin
from ..helpers import UniqueCour... | B-MOOC/edx-platform | common/test/acceptance/tests/discussion/test_cohort_management.py | Python | agpl-3.0 | 51,006 | [
"VisIt"
] | ddbfc511d0dae64092894a7f613a638a4ce984b3a6053eb8f8b89606c97dafeb |
import collections as c
def _cat(x,y):
xlist = x if isinstance(x, c.Iterable) else [x]
ylist = y if isinstance(y, c.Iterable) else [y]
return xlist + ylist
class State:
"""A state is one of the enumerated nodes within
the state machine.
"""
def __init__(self,name,description):
self.name = name... | bwtaylor/statemach | state_machinery/state_mach.py | Python | apache-2.0 | 3,469 | [
"VisIt"
] | ab793aed6887c9792d9f072929287954371656aeb610c6b798be3471572b0eed |
# -*- coding: iso-8859-1 -*-
#
# Bicycle Repair Man - the Python Refactoring Browser
# Copyright (C) 2001-2006 Phil Dawes <phil@phildawes.net>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
from parserutils import ge... | lebauce/artub | bike/parsing/fastparserast.py | Python | gpl-2.0 | 16,827 | [
"VisIt"
] | 8f9f9b0e518e9e8c440e218c38aef7d920518364ea72d8a0cc3a525ac6f4caca |
# -*- coding: utf-8 -*-
"""
2016-06-17, 2016M-1.0 lzj
Utilities for pipeline, general operations
This part including file and list operations
"""
import os
import time
def list_expand (alist , basedir='', log=None):
""" Expand list if given a filename. remove all comments and empty lines
args:
... | RapidLzj/Scheduler | common/util.py | Python | gpl-3.0 | 4,779 | [
"VisIt"
] | c523d9361284886439398a2f99e4d5f9ee49e4c1f37fb00e3d97ea7cfa695964 |
# -*- test-case-name: twisted.trial.test.test_runner -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
A miscellany of code used to run Trial tests.
Maintainer: Jonathan Lange
"""
__all__ = [
'suiteVisit', 'TestSuite',
'DestructiveTestSuite', 'DryRunVisitor',
'ErrorHolder',... | geodrinx/gearthview | ext-libs/twisted/trial/runner.py | Python | gpl-3.0 | 27,732 | [
"VisIt"
] | 8c891aea39bd1045c96e650a6688231bbd6942a1c4bf9f14c1acc48f15be228c |
"""Schedule observations during an observing night.
This module supercedes desisurvey.old.schedule.
"""
from __future__ import print_function, division
import os.path
import numpy as np
import astropy.io.fits
import astropy.units as u
import desiutil.log
import desisurvey.config
import desisurvey.utils
import des... | desihub/desisurvey | py/desisurvey/scheduler.py | Python | bsd-3-clause | 22,658 | [
"Gaussian"
] | 47b6e1b0c71cc2b4bcb2e2d2fcff0bab18c82b1b24f314667a7e761497a81849 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import unittest
import warnings
from pymatgen.core.bonds import CovalentBond, get_bond_length
from pymatgen.core.sites import Site
__author__ = "Shyue Ping O... | czhengsci/pymatgen | pymatgen/core/tests/test_bonds.py | Python | mit | 1,950 | [
"pymatgen"
] | 2b38d326615acead0a090ec91f152a70bd16eeb354c477bdd4b4db73512f1606 |
# -*- coding: utf-8 -*-
# Copyright (C) 2017-2019 Arno Onken
#
# This file is part of the mixedvines package.
#
# The mixedvines package 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 ... | asnelt/mixedvines | mixedvines/tests/test_copula.py | Python | gpl-3.0 | 13,315 | [
"Gaussian"
] | 9ac8cebf592a14144803229ab662c571ecfb9172af1256fb6465b0f2fbb39aff |
"""\
Code for reading/writing Gaussian Cube files
This program is part of the PyQuante quantum chemistry program suite.
Copyright (c) 2004, Richard P. Muller. All Rights Reserved.
PyQuante version 1.2 and later is covered by the modified BSD
license. Please see the file LICENSE that is part of this
distribut... | gabrielelanaro/pyquante | PyQuante/IO/Cube.py | Python | bsd-3-clause | 2,394 | [
"Gaussian"
] | 3964e350ee672b3f6b7c684362bdc9a1f67933f320a5057a49c36ffc89944156 |
# Flickr API implementation
#
# Inspired largely by Michele Campeotto's flickrclient and Aaron Swartz'
# xmltramp... but I wanted to get a better idea of how python worked in
# those regards, so I mostly worked those components out for myself.
#
# http://micampe.it/things/flickrclient
# http://www.aaronsw.com/2002/xmlt... | jamesblackburn/flickrfs-old | flickrfs/flickrapi.py | Python | gpl-2.0 | 17,820 | [
"Brian"
] | df9ffa8681fb391d9aa859ec278f313a1e29917923543074adb568592f90d2da |
"""
The :mod:`hmmlearn.hmm` module implements hidden Markov models.
"""
import functools
import inspect
import logging
import numpy as np
from scipy import linalg, special
from sklearn import cluster
from sklearn.utils import check_random_state
from . import _utils
from .stats import log_multivariate_normal_density
... | hmmlearn/hmmlearn | lib/hmmlearn/hmm.py | Python | bsd-3-clause | 42,011 | [
"Gaussian"
] | 953d69e231120958e4b3a2eb1a6df9257fee55a52b07ffbc1f815d38c7457650 |
# Python test set -- part 1, grammar.
# This just tests whether the parser accepts them all.
# NOTE: When you run this test as a script from the command line, you
# get warnings about certain hex/oct constants. Since those are
# issued by the parser, you can't suppress them by adding a
# filterwarnings() call t... | babyliynfg/cross | tools/project-creator/Python2.6.6/Lib/lib2to3/tests/data/py2_test_grammar.py | Python | mit | 31,953 | [
"GULP"
] | 862b4b997d91ed2ae6e69a3bba106c342123b2527f4459d929682d6e4bbd6572 |
"""
Views for user API
"""
from completion.exceptions import UnavailableCompletionData
from completion.utilities import get_key_to_last_completed_block
from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user
from django.contrib.auth.signals import user_logged_in
from django.sho... | EDUlib/edx-platform | lms/djangoapps/mobile_api/users/views.py | Python | agpl-3.0 | 14,742 | [
"VisIt"
] | a748fa776fc0a9e986c6b769d9b082a3f8e1cbe75fbde2bc3de15b84db3a4448 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham, A. Roitman
# Copyright (C) 2007-2009 B. Malengier
# Copyright (C) 2008 Lukasz Rymarczyk
# Copyright (C) 2008 Raphael Ackermann
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Fr... | dermoth/gramps | gramps/cli/arghandler.py | Python | gpl-2.0 | 29,530 | [
"Brian"
] | b187ba8d0b6d45056368831706fc266901d3cd669b9a6dcd0dd99385c28f9781 |
#!/usr/bin/python
"""
BACnet Virtual Link Layer Service
"""
import sys
from .settings import settings
from .debugging import ModuleLogger, DebugContents, bacpypes_debugging
from .udp import UDPDirector
from .task import OneShotFunction, OneShotTask, RecurringTask
from .comm import Client, Server, bind, \
Servic... | JoelBender/bacpypes | py34/bacpypes/bvllservice.py | Python | mit | 50,957 | [
"ASE"
] | c54f413f9b3590268c52af8e1ec400d8e6ac261dc5bf1ae8136471ab3e147117 |
from __future__ import print_function, division
import pandas as pd
import time
import sys
import numpy as np
import numpy.random as rand
import random
import matplotlib.pyplot as plt
from pymacula import Star, Spot, MaculaModel
from generate_LC import LightCurve
from dataobject import DataObject
from sklearn.svm imp... | raileanu/Spring-JP | pymacula/pymacula/find_Prot.py | Python | mit | 11,466 | [
"Gaussian"
] | 6031f865c3b4784b74530985fb37a858fe5110e25a2d8cb4b23ae7d80cd7eeaf |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2018, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Unit tests for parser utils module."""
import unittest
import cclib
class convertorTest(unittest.TestCase):
de... | ATenderholt/cclib | test/parser/testutils.py | Python | bsd-3-clause | 2,072 | [
"cclib"
] | 4580e8090afb022b72d2f3e02f75fbd55dd49f48257755b61e752b4028b0d7a0 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# pairwise_diff.py
# Calculate pairwise differentiation indexes
__authors__ = "Eric Normandeau"
__program_name__ = "pairwise_diff"
__version_info__ = ('0', '0', '1')
__version__ = '.'.join(__version_info__)
__revision_date__ = "2010-05-20"
# Module imports
import getopt... | wkh124/wkh124 | pairwise_diff.py | Python | gpl-3.0 | 7,626 | [
"Biopython"
] | 3fa167a10acb0664ac2f28239cb1d4dd8254c95560ef3f82f352968ac1f80266 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 Async Open Source
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of ... | JuniorPolegato/pole | src/pole/PoleSetting.py | Python | lgpl-3.0 | 4,413 | [
"VisIt"
] | 2ea5e1f08a8eae8c5bad4ab7627c27c011e1cc8d51435131b76e39959855b0f4 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 18 20:06:27 2017
@author: alessandro
"""
import matplotlib.pyplot as plt
import kcftracker3d_numpy
import numpy as np
def drawbox(volume,bbox,width=1):
res = volume.copy()
for k in range(width):
for j in range(width):
f... | ale93111/KCF_3D | kcftracker3d_run_real_plot.py | Python | mit | 2,974 | [
"Gaussian"
] | 2d7ddf5ea7e812e80e05287e1281cbfbf69992491705448868204c9fac48a984 |
from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible
from django.db import models
SELECTION_CHOICES = (
('', 'Empty'),
('horse', 'Horse'),
('bear', 'Bear'),
('octopus', 'Octopus'),
)
SET_CHOICES = (
('', 'Empty'),
('set1', '1'),
('set2', ... | benzkji/django-formfieldstash | formfieldstash/tests/test_app/models.py | Python | mit | 3,396 | [
"Octopus"
] | f6f9c43e81e43019be6890fd4ac8c809a641da2c901c9b4bbf152329782868de |
#
# Copyright (C) University College London, 2007-2012, all rights reserved.
#
# This file is part of HemeLB and is provided to you under the terms of
# the GNU LGPL. Please see LICENSE in the top level directory for full
# details.
#
import types
from vtk import vtkObject
from ..Util.Observer import Change, Chang... | jenshnielsen/hemelb | Tools/setuptool/HemeLbSetupTool/Bindings/VtkObject.py | Python | lgpl-3.0 | 2,493 | [
"VTK"
] | bb04e3d3d71ccb08ef7073aad6af358406f37bd233fa8e121acbab59841609f1 |
""" This tests only need the JobDB, and connects directly to it
Suggestion: for local testing, run this with::
python -m pytest -c ../pytest.ini -vv tests/Integration/WorkloadManagementSystem/Test_JobDB.py
"""
# pylint: disable=wrong-import-position
from datetime import datetime, timedelta
import pytes... | DIRACGrid/DIRAC | tests/Integration/WorkloadManagementSystem/Test_JobDB.py | Python | gpl-3.0 | 13,910 | [
"DIRAC"
] | 16ea415323b9f3db820be5a4033d2284cb89e26b0b06b8b2230205aa20a2c719 |
# Copyright 2016 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... | jbedorf/tensorflow | tensorflow/python/autograph/converters/control_flow.py | Python | apache-2.0 | 20,248 | [
"VisIt"
] | ebbe4c529d9cded9fb704f68508f829dfa9b8c8ee7ab13634d051cca00ec5827 |
#!/usr/bin/python2.7
# encoding: utf-8
#Libs import
from __future__ import division
import numpy as np
import sys
#TR comment: 2 alternatives
#import netCDF4 as nc
from scipy.io import netcdf
def pyseidon_to_netcdf(fvcom, filename, debug):
"""
saves fvcom object in a pickle file
inputs:
- fvcom = f... | TheKingInYellow/PySeidon | pyseidon/utilities/pyseidon2netcdf.py | Python | agpl-3.0 | 6,503 | [
"NetCDF"
] | 73b8ae23851b89e355a45f57f688d405f9b1a30b13c97c3d77d5932bc0a7a7bd |
# 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... | szha/mxnet | python/mxnet/gluon/nn/activations.py | Python | apache-2.0 | 7,265 | [
"Gaussian"
] | 99b9ada869e5e45227658c5fc95863761d50b20dd08b1bf9ef6ee5e48c7db191 |
import datetime
import json
import os
import subprocess
import traceback
from ..imports.ftp_ecmwf_download import get_ftp_forecast_list, download_and_extract_ftp
from ..imports.helper_functions import (clean_main_logs, CaptureStdOutToLog, get_datetime_from_forecast_folder)
from ..ecmwf_forecast_process import update_l... | erdc-cm/spt_ecmwf_autorapid_process | spt_compute/hpc/spt_hpc_watershed_groups_process.py | Python | bsd-3-clause | 7,047 | [
"NetCDF"
] | ccddbeb2235fe8736462e725438bbd9427d3905f1229c5a1d2200a37dbe9654a |
from . import core, utils
import cgt
import ctypes, os.path as osp, hashlib, numpy as np, sys, subprocess, string, os, time, traceback, cPickle
from collections import defaultdict, namedtuple
from StringIO import StringIO
import logging
def function(inputs, outputs, dbg=None, updates=None, givens=None):
assert isi... | rohanraja/cgt_distributed | cgt/compilation.py | Python | mit | 38,653 | [
"VisIt"
] | 13ab6d96dd48ffd82765978aefc3726a97bc93efbe7bf49d9c3a6267f023932e |
import multiprocessing
import platform
import subprocess
import sys
import os
from conans.client.tools.files import WSL, MSYS2, CYGWIN, MSYS
from conans.errors import ConanException
from conans.model.version import Version
from conans.util.log import logger
from conans.client.tools import which
_global_output = None... | tivek/conan | conans/client/tools/oss.py | Python | mit | 10,089 | [
"Jaguar"
] | 997101a4c82c178e632b9548bc9a204414c4652231358eb1818fe57f40677c93 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpat... | thedoodlebakery/cheese | config/urls.py | Python | mit | 1,516 | [
"VisIt"
] | 9cadcd1bf931cd8349f466d6064b16790eefba62c756236ae2ddff8d6fb86021 |
import os
from math import exp, pi, sqrt
import numpy as np
from gpaw.gauss import Gauss, Lorentz
from gpaw.test import equal
from gpaw.utilities.folder import Folder
# Gauss and Lorentz functions
width = 0.5
x = 1.5
equal(Gauss(width).get(x),
exp(- x**2 / 2 / width**2) / sqrt(2 * pi) / width,
1.e-15)... | qsnake/gpaw | gpaw/test/spectrum.py | Python | gpl-3.0 | 1,015 | [
"GPAW"
] | 5489638d5029ebaba2e7355877085467a6aaf743c257ffb3157029cf0a8b774f |
# Copyright 2016 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... | yufengg/tensorflow | tensorflow/contrib/linalg/python/ops/linear_operator_test_util.py | Python | apache-2.0 | 25,898 | [
"Gaussian"
] | e89054d9ff2b096e46a5c021cd7f0badeb537a3c3dd932ba6c1caf42add0629b |
"""Annotate an existing model."""
from pathlib import Path
from sbmlutils import EXAMPLES_DIR
from sbmlutils.cytoscape import visualize_sbml
from sbmlutils.metadata.annotator import annotate_sbml
if __name__ == "__main__":
base_path = EXAMPLES_DIR
doc = annotate_sbml(
source=base_path / "minimal_mod... | matthiaskoenig/sbmlutils | src/sbmlutils/examples/minimal_model_annotations.py | Python | lgpl-3.0 | 578 | [
"Cytoscape"
] | f53d6ce8af64c076e95ef019418420c1902496cd8a38cf13bfceb78a5047e26e |
#!/usr/bin/env python
#-*- coding:utf-8 -*-
#
# Copyright 2012 NAMD-EMAP-FGV
#
# This file is part of PyPLN. You can get more information at: http://pypln.org/.
#
# PyPLN 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 Fo... | fccoelho/pypln.backend | scripts/mongo2sphinx.py | Python | gpl-3.0 | 3,747 | [
"NAMD"
] | 4301d76b612b94fd330aaf6090408ff9c8729895a76549ede8e70bf52141522c |
"""
Test helper functions and base classes.
"""
import functools
import json
import os
import sys
from datetime import datetime
from unittest import SkipTest, TestCase
import requests
from bok_choy.javascript import js_defined
from bok_choy.page_object import XSS_INJECTION
from bok_choy.promise import EmptyPromise, ... | edx/edx-platform | common/test/acceptance/tests/helpers.py | Python | agpl-3.0 | 17,256 | [
"VisIt"
] | b93efb4ddb2f71654f2e762dfb35f6485bb5bac4e4bd2d2c4a63d2ca1c11c401 |
import re
import warnings
from datetime import datetime, timedelta
from functools import partial
import numpy as np
import pandas as pd
from pandas.errors import OutOfBoundsDatetime
from ..core import indexing
from ..core.common import contains_cftime_datetimes, is_np_datetime_like
from ..core.formatting import first... | pydata/xarray | xarray/coding/times.py | Python | apache-2.0 | 25,042 | [
"NetCDF"
] | b7b215f4d3723d21199d81fb6ec6c79041cf67c73e5250f2305b7501edb17e93 |
import re
from ast.visit import visit as v
from ast.node import Node
from ast.body.classorinterfacedeclaration import ClassOrInterfaceDeclaration
from ast.body.variabledeclarator import VariableDeclarator
from ast.expr.integerliteralexpr import IntegerLiteralExpr
from ast.utils.utils import replace_node
from cString... | plum-umd/java-sketch | java_sk/decode/replacer.py | Python | mit | 7,347 | [
"VisIt"
] | 6623161ff212d7199fa5a399ec932661828cce8ce4261e9b4d45cbc84ef265e0 |
# Copyright (C) 2003 CAMP
# Please see the accompanying LICENSE file for further information.
version_base = '0.11.0'
ase_required_version = '3.8.1'
try:
from gpaw.svnversion import svnversion
except (AttributeError, ImportError):
version = version_base
else:
version = version_base + '.' + svnversion
| robwarm/gpaw-symm | gpaw/version.py | Python | gpl-3.0 | 318 | [
"GPAW"
] | 85fb6b31d5310080a934056565d7653abdfef8f3e941deb33f1949ba57a6bb71 |
#
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# u... | rschatz/mx | mx_javamodules.py | Python | gpl-2.0 | 18,964 | [
"VisIt"
] | a99557fef1ca2fb6ee7845b03ec36418f7e680a8b00c6dd2177a6e82c742c3ea |
"""Filter design.
"""
from __future__ import division, print_function, absolute_import
import warnings
import numpy
from numpy import atleast_1d, poly, polyval, roots, real, asarray, allclose, \
resize, pi, absolute, logspace, r_, sqrt, tan, log10, arctan, arcsinh, \
cos, exp, cosh, arccosh, ceil, conjugate, ... | sargas/scipy | scipy/signal/filter_design.py | Python | bsd-3-clause | 83,159 | [
"Gaussian"
] | c10aa6fff94640ffd55bb6b9f4abb40d361fa5b7644b097bd8fd5c3d075ca6c6 |
from __future__ import division, print_function, absolute_import
import math
import warnings
from collections import namedtuple
import numpy as np
from numpy import (isscalar, r_, log, around, unique, asarray,
zeros, arange, sort, amin, amax, any, atleast_1d,
sqrt, ceil, floor, a... | gfyoung/scipy | scipy/stats/morestats.py | Python | bsd-3-clause | 94,644 | [
"Gaussian"
] | 38475f9c72b5091c39a6c3cdf87fc51bc1c396e0055ab894fe60e2ce82eae4a7 |
import json
import requests_oauthlib
from constants import CALLBACK_URL, REQUEST_TOKEN_URL, AUTHORIZATION_BASE_URL, ACCESS_TOKEN_URL, USER_INFO_URL
def session_from_keys(key, secret_key, session_filename=None):
"""
Gets an OAuth1 Authenticated session with the given keys.
Will prompt the user to visit u... | dhui/tumblr-migrate | auth.py | Python | bsd-3-clause | 2,858 | [
"VisIt"
] | d3f46f780666e69481d98080009b5df7292c9682652f6bfd127b707465cc5d00 |
"""Implementations of Gaussian noise example models."""
from functools import partial
import numpy as np
import scipy.stats as ss
import elfi
def gauss(mu, sigma, n_obs=50, batch_size=1, random_state=None):
"""Sample the 1-D Gaussian distribution.
Parameters
----------
mu : float, array_like
s... | HIIT/elfi | elfi/examples/gauss.py | Python | bsd-3-clause | 5,451 | [
"Gaussian"
] | 84c40970bd652c78493e32a8d2d3fe8e303da1831a368823e2c1c1e09be500d1 |
"""
Computational Neurodynamics
Exercise 2
(C) Murray Shanahan et al, 2015
"""
import numpy as np
import numpy.random as rn
from Exercise_2.IzNetwork import IzNetwork
def RobotConnectAvoidance(Ns, Nm):
"""
Construct four layers of Izhikevich neurons and connect them together, just
as RobotConnect4L. Layers 0 ... | cpsnowden/ComputationalNeurodynamics | Exercise_2/Solutions/RobotConnectAvoidance.py | Python | gpl-3.0 | 2,182 | [
"NEURON"
] | a8376d4c7a510211c52a118166eba0a7a838b8c115f00d5e3d8bad7b5ef6c969 |
#!/usr/bin/env python
# Copyright (c) 2014, the GREAT3 executive committee (http://www.great3challenge.info/?q=contacts)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the following conditions are met:
#
# 1. Redistributions of ... | lsst-dm/great3-public | validation/plot_galaxy_badcounts.py | Python | bsd-3-clause | 3,216 | [
"Galaxy"
] | b14a8605de28639f35147adb666611a95db3a2583794ae16b208f686ebb0461e |
#! /usr/bin/env python
import os
import Tkinter as Tk
import tkFileDialog, tkMessageBox
import shelve
import time
from scipy.odr.odrpack import *
from scipy.ndimage import minimum_position
from pylab import *
import pylab
from PIL import Image
from PIL import ImageTk
from GRCFcommonFunctions import fig2img, fig2da... | latrop/GRCF | GRCFlibs/GRCFifaceFunctions.py | Python | gpl-3.0 | 80,548 | [
"Galaxy"
] | ed3b7f402779e92f6bfd8e02082028d21b782567e0d7452bb2379cd84033a18e |
# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
__author__ = "Jose Diaz"
__date__ = "$03/04/2015 09:43:29 PM$"
from tkinter import *
from acordeon import *
from widgetstyle import *
... | jozz68x/Simulador-Cisco | src/biblioteca/toolbox.py | Python | gpl-3.0 | 16,069 | [
"FLEUR"
] | b9fa85a58d7777f5e53f7a6f0429376f323e5341cd711b305a3654f9f3eb8c59 |
import os
import subprocess
import sys
import time
from typing import List
import py.path
import _pytest.pytester as pytester
import pytest
from _pytest.config import ExitCode
from _pytest.config import PytestPluginManager
from _pytest.pytester import CwdSnapshot
from _pytest.pytester import HookRecorder
from _pytest... | KiChjang/servo | tests/wpt/web-platform-tests/tools/third_party/pytest/testing/test_pytester.py | Python | mpl-2.0 | 25,884 | [
"Brian"
] | e764e5c8a8d6bd3afe6db7b0022282d5824107138cfce67b9cd73d080b524e83 |
#
# Copyright 2016 The BigDL 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 or agreed to in ... | intel-analytics/BigDL | python/orca/src/bigdl/orca/tfpark/text/estimator/bert_squad.py | Python | apache-2.0 | 4,812 | [
"ORCA"
] | ddaf9654ec2b864f1f5a46acb6542ebfeea4162a2bc7f6de4abc6ef31df0d88b |
"""Module containing classes abstracting datasets
"""
# Any commits made to this module between 2015-05-01 and 2017-03-01
# by Gerrit Holl are developed for the EC project “Fidelity and
# Uncertainty in Climate Data Records from Earth Observations (FIDUCEO)”.
# Grant agreement: 638822
#
# All those contributions are ... | atmtools/typhon | typhon/datasets/dataset.py | Python | mit | 84,090 | [
"NetCDF"
] | 34203933dac3efc5e75b8e9a3229db04a3f1d794ff073e5c96ab0c7494f5ebf9 |
# Authors : Denis A. Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
#
# License : BSD 3-clause
from copy import deepcopy
import math
import numpy as np
from scipy import fftpack
# XXX explore cuda optimization at some point.
from ..io.pick import _pick_data_channels, ... | olafhauk/mne-python | mne/time_frequency/_stockwell.py | Python | bsd-3-clause | 9,628 | [
"Gaussian"
] | e42467ede9aeaf4628052dd8010af31ec19b3143689fec159b3dce1b5f7ffd69 |
from behaving.web.steps import *
@when('I log in EVI')
def log_in(context):
assert context.configuration
context.execute_steps(u"""
When I visit "{0}"
And I fill in "username" with "{1}"
And I fill in "password" with "{2}"
And I press the element with xpath "//*[@type='submit']"... | ilonajulczuk/tubylcy | tubylcy/locations/features/steps/event.py | Python | mit | 540 | [
"VisIt"
] | 6355c6782b9f03f8227d5622056562df0848978663fb6efc3a992a35a775db80 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | BackupTheBerlios/espressopp | src/tools/DumpConfigurations.py | Python | gpl-3.0 | 11,250 | [
"ESPResSo"
] | 87c01fe3b3cc5a25b32ed431dc079562199b32025d83b135c2b9213fb4cb5f85 |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | Russell-IO/ansible | lib/ansible/modules/network/avi/avi_useraccountprofile.py | Python | gpl-3.0 | 4,860 | [
"VisIt"
] | 723662f1b0bdaa3584369ff9fae8b57c30600d50f5410ace757919529fd7d803 |
# -*- coding: utf-8 -*-
#
# Copyright 2012 - 2013 Brian R. D'Urso
#
# This file is part of Python Instrument Control System, also known as Pythics.
#
# Pythics 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 Foundati... | dursobr/Pythics | pythics/examples/logistic_map.py | Python | gpl-3.0 | 4,362 | [
"Brian"
] | 2529e3780266ca2c7f3b8ce5872e97c571fb3d6c551c957a35f5938585180e41 |
#!/usr/bin/python
"""Script based on assignment 6 to blend two images."""
import cv2
import math
import os
import numpy as np
import scipy.signal
import shutil
def generating_kernel(parameter):
""" Return a 5x5 generating kernel based on an input parameter.
Note: This function is provided for you, do not cha... | powersj/tilt-shift | src/blend.py | Python | apache-2.0 | 12,001 | [
"Gaussian"
] | b2895968f87a99062c84164e0c7eae6a6cd7ab88ac952df4a6ee5ff87346359a |
from dateutil.relativedelta import (MO, TH, TU)
from pandas import (DateOffset, Timestamp, date_range)
from datetime import timedelta
from pandas.tseries.holiday import (Holiday, nearest_workday, sunday_to_monday, Easter)
from pandas.tseries.offsets import Day, CustomBusinessDay
from pandas_market_calendars.market_c... | rsheftel/pandas_market_calendars | pandas_market_calendars/holidays_nyse.py | Python | mit | 41,142 | [
"COLUMBUS"
] | 4025c2d351f1b24fcd998efb1e3f8d2a08d6e84d11944a90e230cb6b2e664981 |
# yellowbrick.download
# Downloads the example datasets for running the examples.
#
# Author: Rebecca Bilbro
# Author: Benjamin Bengfort
# Created: Wed May 18 11:54:45 2016 -0400
#
# Copyright (C) 2016 The sckit-yb developers
# For license information, see LICENSE.txt
#
# ID: download.py [1f73d2b] benjamin@bengfor... | DistrictDataLabs/yellowbrick | yellowbrick/download.py | Python | apache-2.0 | 3,026 | [
"VisIt"
] | 5abeac2fc736548f83a49f1c8556e0df61018fc46b6bd21c144c57988054362b |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Software F... | andrebellafronte/stoq | stoqlib/gui/dialogs/sellableimage.py | Python | gpl-2.0 | 2,487 | [
"VisIt"
] | b4b05fb1a1267f00c52ff737b59a1b8404e207d39f101681fcac92d7e1f983e0 |
# This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | mitya57/debian-buildbot | buildbot/changes/svnpoller.py | Python | gpl-2.0 | 17,173 | [
"Brian"
] | 9e3aafc09a404408100d8a4eb745804ac00ac1d21c83c0d533cb462efa6d3788 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import glob
import argparse
import datetime
import logging
import numpy as np
from netCDF4 import Dataset
# Establish EMS_RUN
try:
EMS_RUN = os.environ['EMS_RUN']
except KeyError:
logging.error('EMS_RUN does not exist. Have you installed WRF EMS?')
... | klimaat/emspy | ems_dechunk.py | Python | mit | 17,832 | [
"NetCDF"
] | de0704a05f81ba84ed5a48b32514e6fa840a575e414506c2eddac86cb952bf62 |
from django.test import TestCase
from django.utils import six
from ..bin.start_cms_project import (Output, git, make_executable, query_yes_no,
configure_apps, main)
import getpass
try:
from unittest import mock
from unittest.mock import call
except ImportError:
import ... | danielsamuels/cms | cms/tests/test_start_cms_project.py | Python | bsd-3-clause | 12,858 | [
"GULP"
] | a7c5d4b87bd304fbb82bf681227551ec24d3da1a8c4bee219c1b3c6b1379a86b |
# Copyright 2021 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 agreed to in writing, sof... | google-research/long-range-arena | lra_benchmarks/models/performer/performer_attention.py | Python | apache-2.0 | 27,398 | [
"Gaussian"
] | ea5c6b38014670e4bf38792255b8d392725ce816db46f61fc799686a0e752c3d |
import wx
import vtk
import time
import numpy
from vtk.util import numpy_support
from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor
from invesalius.pubsub import pub as Publisher
import invesalius.constants as const
import invesalius.data.vtk_utils as vtku
import invesalius.data.converters as... | paulojamorim/invesalius3 | invesalius/gui/bitmap_preview_panel.py | Python | gpl-2.0 | 21,360 | [
"VTK"
] | b694396b55dd20b8525992d29af71fddf106b2575be77ecb870f95e7a8d39f7d |
# Copyright (c) 2012-2013 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 functiona... | nilmini20s/gem5-2016-08-13 | configs/example/spec06_config.py | Python | bsd-3-clause | 14,404 | [
"GAMESS",
"Gromacs",
"NAMD"
] | 530ed0bcd967372007cfd9e82d77617bd86cfb8e257a78bbae2762df93774538 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | kratman/psi4public | psi4/driver/inputparser.py | Python | gpl-2.0 | 30,556 | [
"CFOUR",
"Psi4"
] | 70b9d2db0858bf957742beac17e2b62b0da2a5350889da1f20912b300950afea |
#
# \file generator.py
#
# \brief Generates the CUTLASS Library's instances
#
import re
###################################################################################################
import enum
# The following block implements enum.auto() for Python 3.5 variants that don't include it such
# as the default 3.5... | NVIDIA/cutlass | tools/library/scripts/library.py | Python | bsd-3-clause | 16,068 | [
"Gaussian"
] | c6507260ee42f8bc62ad45bc825beede54f328cf6467da705f9c4d55535b279a |
#!/usr/bin/env python
"""
--------------------------------------------------------------------------------
(c) 2017 Julian Rees
License: GNU GPLv3
Description: Plot the energy trajectory of a geometry optimization in ORCA.
Run: python geomenergymap.py filename
Arguments: filename - file name with extension
Depende... | julianrees/scripts | python/geomenergymap.py | Python | gpl-3.0 | 1,557 | [
"ORCA"
] | 16fe5c27dd3fe4d42df3171b72c69ca3ac14a3d959ebeb136846a02b7c96bfbc |
#!/usr/bin/env python
##############################################################################################
#
#
# regrid_emissions_N96e.py
#
#
# Requirements:
# Iris 1.10, cf_units, numpy
#
#
# This Python script has been written by N.L. Abraham as part of the UKCA Tutorials:
# http://www.ukca.ac.uk/wiki... | acsis-project/emissions | emissions/python/periodic_1960/regrid_OC_fossil_emissions_n96e_360d_1960.py | Python | gpl-3.0 | 7,095 | [
"NetCDF"
] | 251a8df40b44ce6c9df8ed160b5e7960f13ad4404f28bd163b8e914a19fbd789 |
"""Helpers to work with MIDI messages.
"""
import re
from enum import IntEnum
from typing import Dict, Generator, List
def midi_note_on(note: int, channel: int = 0, velocity: int = 64) -> List[int]:
"""MIDI 9nH message - note on.
>>> midi_note_on(70)
[144, 70, 64]
>>> midi_note_on(70, velocity=127, c... | b3b/midistream | midistream/helpers.py | Python | mit | 7,161 | [
"CRYSTAL"
] | 081de38cb658d88d5908efbc0d21ef38792cd48d4a13eca7ff10187a72121989 |
from __future__ import print_function, division, absolute_import
from . import imgaug as ia
from .parameters import StochasticParameter, Deterministic, Binomial, Choice, DiscreteUniform, Normal, Uniform
from abc import ABCMeta, abstractmethod
import random
import numpy as np
import copy as copy_module
import re
import ... | jasag/Phytoliths-recognition-system | code/imgaug/imgaug/augmenters.py | Python | bsd-3-clause | 103,591 | [
"Gaussian"
] | 1a9dfb4d0aad018faa1d3d85d04953c293a6fce4884b42b473c8b8651f1747f8 |
"""
StderrBackend wrapper
"""
__RCSID__ = "$Id$"
import logging
import sys
from DIRAC.Resources.LogBackends.AbstractBackend import AbstractBackend
from DIRAC.FrameworkSystem.private.standardLogging.Formatter.ColoredBaseFormatter import ColoredBaseFormatter
class StderrBackend(AbstractBackend):
"""
StderrBacken... | andresailer/DIRAC | Resources/LogBackends/StderrBackend.py | Python | gpl-3.0 | 1,201 | [
"DIRAC"
] | 4497a8067f908d8c7fadb0c4ca7ef7fcfbb1b95a3de273893d615329704c0abf |
#!/usr/bin/env python
# if necessary, edit preceding line to point to your Python
# or launch as "python Make.py ..."
# Purpose: manage LAMMPS packages, external libraries, and builds
# create a version of LAMMPS specific to an input script(s)
# Syntax: Make.py switch args ...
# Help: type Make.py or Make.py ... | CFDEMproject/LIGGGHTS-PUBLIC | src/Make.py | Python | gpl-2.0 | 27,648 | [
"LAMMPS"
] | 7d575b277df6052aa946fe8a4ef39b1a7f467e152858f54c5b6e5de51b6d64d6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.