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 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/web/mediaplayerremove.py | Python | gpl-2.0 | 5,283 | [
"VisIt"
] | fa837d2c999aeca314dfe8f513995183d96730deef30dd149d7dbcb1bf7ae4bb |
#!/usr/bin/env python
##############################################################################################
#
#
# CMIP6_hybrid_regrid_emissions_N96e.py
#
#
# Requirements:
# Iris 1.10, time, cf_units, numpy
#
#
# This Python script has been written by N.L. Abraham as part of the UKCA Tutorials:
# http://... | acsis-project/emissions | emissions/python/CMIP6_hybrid/CMIP6_hybrid_regrid_iC4H10_emissions_n96e_greg.py | Python | gpl-3.0 | 18,931 | [
"NetCDF"
] | ba86fad1f88b25f628a587103a11b3800ba2c59c9526c3edfed8129c0eab77d4 |
from sqlalchemy import extract, select
from sqlalchemy import sql
from sqlalchemy.databases import sybase
from sqlalchemy.testing import assert_raises_message, \
fixtures, AssertsCompiledSQL
class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
__dialect__ = sybase.dialect()
def test_extract(self):
... | robin900/sqlalchemy | test/dialect/test_sybase.py | Python | mit | 1,066 | [
"ASE"
] | a09fd09ab9f52e6e7e8f5dfa2955dfd6fda28af68137f900685ba76e28cb3fa6 |
class Person():
def __init__(self, name, phoneNum, carrier):
self.name = name
self.phoneNum = phoneNum
self.carrier = carrier
self.smsEmail = None
self.currentAssignment = None
self.makeSMSEmail()
def getName(self):
return self.name
def getPhoneNum(self):
return self.phoneNum
def getCarrier(self)... | izzygomez/RemPy | brothers.py | Python | mit | 2,349 | [
"Brian"
] | 9189c42005b7704648b237f60175785216886ffe5a707779362415e21bff0359 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# PMDA
# Copyright (c) 2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under the GNU Public Licence, v2 or any higher ve... | MDAnalysis/pmda | pmda/test/test_parallel.py | Python | gpl-2.0 | 5,084 | [
"MDAnalysis"
] | a9a7bfbe9c1605c7a3f2e9bdc09b9495a5e7043dbfc7cb42cc06e5dd31be3141 |
import sys
import socket
import Messages
import pickle
import threading
import Queue
import sha
import struct
class _Protocol(object):
NAIVE = 0
LOCKSTEP = 1
AS = 2
PROTOCOL = _Protocol.NAIVE
if len(sys.argv) > 3:
protocol = sys.argv[3]
if protocol == "naive":
pass
elif protocol == "lo... | jiminychris/shiny-ninja | ShinyNinja/Networking/Client.py | Python | mit | 11,444 | [
"BLAST"
] | 087a233b7a8a2c291b2f0d76d8d692f71922f5c4ae8bc062fa6feb0655e1e853 |
# Copyright 2014 Insight Software Consortium.
# Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0.
# See http://www.boost.org/LICENSE_1_0.txt
"""defines few unrelated algorithms, that works on declarations"""
def declaration_path(decl, with_defaults=True):
"""
r... | iMichka/mini-iw | pygccxml/declarations/algorithm.py | Python | apache-2.0 | 11,319 | [
"VisIt"
] | 8e2861be99e6c3167ede93ce717172f756e398d34ab65a9baf5fd1677931cbe4 |
## INFO ########################################################################
## ##
## plastey ##
## ======= ... | kitchenbudapest/vr | app.py | Python | gpl-3.0 | 20,905 | [
"VisIt"
] | a21719180d39b1877063715278a4380a087cff01fd7a37792b3875ebec2c7f1c |
"""
TODO
"""
import sys
import logging
import numpy
import numpy as np
from theano import function, shared
from theano import tensor as TT
import theano
sharedX = lambda X, name : \
shared(numpy.asarray(X, dtype=theano.config.floatX), name=name)
def kinetic_energy(vel):
"""
Returns the kinetic energ... | NoSRPKU/GradD | codes/mcrbm/hmc.py | Python | mit | 14,485 | [
"Gaussian"
] | 70f5616ff5ee7bf5c7a22f1c03acffea1383449e190a05b613029c8f7e1d7ddc |
import re
from blaze import resource, DataFrame
import pandas as pd
from snakemakelib.odo.pandas import annotate_by_uri
@resource.register('.+htseq.counts')
@annotate_by_uri
def resource_fastqc_summary(uri, **kwargs):
with open(uri):
data = pd.read_csv(uri, sep="\t", header=None, names=["FBgn", "count"], ... | Oliver-Lab/snakemakelib-oliver | snakemakelib_oliver/odo/htseq.py | Python | mit | 367 | [
"HTSeq"
] | 120475076b9fdf7516bd6c5444ea51619c66cbc309494d41c7b22ff1eba1793b |
r"""
I/O utils (:mod:`skbio.io.util`)
================================
.. currentmodule:: skbio.io.util
This module provides utility functions to deal with files and I/O in
general.
Functions
---------
.. autosummary::
:toctree: generated/
open
open_file
open_files
"""
# -------------------------... | xguse/scikit-bio | skbio/io/util.py | Python | bsd-3-clause | 10,848 | [
"scikit-bio"
] | fea9c5aff72bcf43b11bf155a37d9535630510f6b7248a93418f6e5035c667ea |
"""Contains AssetManager, AssetLoader, and Asset parent classes"""
# assets.py
# Mission Pinball Framework
# Written by Brian Madden & Gabe Knuth
# Released under the MIT License. (See license info at the end of this file.)
# Documentation and more info at http://missionpinball.com/mpf
import logging
import os
import... | spierepf/mpf | mpf/system/assets.py | Python | mit | 18,843 | [
"Brian"
] | ce983609ad8991eac65a6a5f02c96f8524a8fe26e07ebac707c093c8471dccc9 |
"""
The B{0install list-feeds} command-line interface.
"""
# Copyright (C) 2011, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from __future__ import print_function
from zeroinstall import _
from zeroinstall.cmd import UsageError
from zeroinstall.injector import model
syntax = "URI... | linuxmidhun/0install | zeroinstall/cmd/list_feeds.py | Python | lgpl-2.1 | 645 | [
"VisIt"
] | 168b2dc3fc54f2f3e5f00e80ad7222e6cae9122d9b74d67f9bacb68df98e6491 |
'''
A reporter class to prepare reports and network accounting plots.
Supports: packet loss rate (standard and magnified),
one-way delay, jitter, jitter over one-way delay
'''
__RCSID__ = "$Id: $"
from DIRAC import S_OK
from DIRAC.AccountingSystem.Client.Types.Network import Network
from DIRAC.AccountingSys... | andresailer/DIRAC | AccountingSystem/private/Plotters/NetworkPlotter.py | Python | gpl-3.0 | 9,348 | [
"DIRAC"
] | 91ef3a24005b8ff41524e294b310b5a301c58cbef7fddc8bf58c54bfccfd9253 |
def smhm(logMstar, redshift):
"""Convenience method to calculate halo masses using default SMHM relations.
Current default: smhm_rodriguez().
--- Inputs ---
logMstar = log of stellar mass of galaxies (can be list/array)
redshift = redshift of galaxies (can be list/array)
--- Returns ---
... | jchowk/pyND | pyND/gal/halos.py | Python | gpl-3.0 | 13,574 | [
"Galaxy",
"TINKER"
] | 607dc3a78d2fe4e2de703e4f3c188c10e2bccfb486019df7aba3dcb6e74ae75a |
from collections import defaultdict
from itertools import chain
import logging
import numpy
from theano import function
import warnings
logger = logging.getLogger(__name__)
class StateComputer(object):
"""
Convenient interface to theano function for computing states/cells
of a trained SequenceGenerator mo... | Copper-Head/the-three-stooges | util.py | Python | mit | 14,526 | [
"NEURON"
] | 529ccd3457694d1596ee1eee005ac4ddf3f7e931cd3bf465037bc38aeb378eee |
#
# Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later vers... | mkuron/espresso | testsuite/python/galilei.py | Python | gpl-3.0 | 2,661 | [
"ESPResSo"
] | b9bdbbe480ac629ddc52e46290726db65fa0248ac26a873e308a1c06bd7fa73b |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import platform
from pyglet.gl.base import Config, CanvasConfig, Context
from pyglet.gl import ContextException
from pyglet.gl import gl
from pyglet.gl import agl
from pyglet.canvas.cocoa import CocoaCanvas
from pyglet.libs.d... | nicememory/pie | pyglet/pyglet/gl/cocoa.py | Python | apache-2.0 | 10,368 | [
"Jaguar"
] | b0b45388717e75cf5f10a3c4a9169073addf88eeeb878ef4509d147d17c266c7 |
#!/bin/env python
from __future__ import division, print_function , unicode_literals, absolute_import
import os, sys, subprocess
crow_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
eigen_cflags = ""
try:
has_pkg_eigen = subprocess.call(["pkg-config","--exists","eigen3"]) == 0
except:
has_pkg_... | idaholab/raven | scripts/find_eigen.py | Python | apache-2.0 | 726 | [
"MOOSE"
] | ace062094afc2a556774721ce8ac2f300d312aa3b6847f8d7dcfe218e03692f8 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# create reader and extract the velocity and temperature
reader = vtk.vtkPNGReader()
reader.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/vtk.png")
quant = vtk.vtkImageQuantiz... | hlzz/dotfiles | graphics/VTK-7.0.0/Filters/Hybrid/Testing/Python/imageToPolyData.py | Python | bsd-3-clause | 1,672 | [
"VTK"
] | d94b9bb29321d1f4d5e9d59b4bb6c8dacc99ddba0aa0881bd1bff0828690164b |
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
####################################################################################
### Copyright (C) 2015-2019 by ABLIFE
####################################################################################
########################################################... | ablifedev/ABLIRC | ABLIRC/bin/public/iv_cluster/get_CTTS.py | Python | mit | 11,437 | [
"HTSeq"
] | 79d7dc64ef924fdced5f237ac1992eef073166b94edb73e24b19a1679aeb97cd |
# This file is part of pybootchartgui.
# pybootchartgui is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# pybootchartgui is dis... | wwright2/dcim3-angstrom1 | sources/openembedded-core/scripts/pybootchartgui/pybootchartgui/gui.py | Python | mit | 12,782 | [
"FLEUR"
] | 20482e87b7baf7e5959fb10b1a09d81474e54d78327eb6ec49b0ee0d63fc772c |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import platform
import re
import unittest
import warnings
import random
import sys
from pymatgen import SETTINGS, __version__ as pmg_version
from pymatgen.ext.matproj import MPRester, MPRestError, TaskType
from ... | fraricci/pymatgen | pymatgen/ext/tests/test_matproj.py | Python | mit | 21,952 | [
"pymatgen"
] | 2eb58bf533c47959ca9264eb2fc53458fbf5c19051f3d7dede69394f33712e2c |
from HTTPFeedApiModule import get_indicators_command, Client, datestring_to_server_format, feed_main,\
fetch_indicators_command, get_no_update_value
import requests_mock
import demistomock as demisto
def test_get_indicators():
with open('test_data/asn_ranges.txt') as asn_ranges_txt:
asn_ranges = asn_r... | demisto/content | Packs/ApiModules/Scripts/HTTPFeedApiModule/HTTPFeedApiModule_test.py | Python | mit | 18,734 | [
"Amber"
] | 62fa72fce6e07341ec4c84cd3df728ab7218973480d0d3f27805139cc2efd1ac |
"""
################################################################################
# Copyright (c) 2003, Pfizer
# Copyright (c) 2001, Cayce Ullman.
# Copyright (c) 2001, Brian Matthews.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provid... | 2ndy/RaspIM | usr/share/python-support/python-soappy/SOAPpy/Config.py | Python | gpl-2.0 | 7,423 | [
"Brian"
] | b77a3745f9d05ac7dc6c26804f49c79946626da4015b545eb40c2492e4f7eb54 |
# copyright 2004-2005 Samuele Pedroni
import sys
from java_lexer import Token
import java_parser
import java_nodes
from simpleprettyspec import simplepretty,p_space,p_nl,p_repeat,p_dependent
from simpleprettyspec import p_indent,p_dedent,p_morep,P_LAST,P_EFFECT
from simpleprettyspec import p_expect_skip
class Inden... | alvin319/CarnotKE | jyhton/src/templates/java_pretty.py | Python | apache-2.0 | 16,654 | [
"VisIt"
] | 184da53329c951473c32c389f6acb474fc9725b13727544d929c2ea7d83238c7 |
#!/usr/bin/env python
"""
Framework to start a simulated vehicle and connect it to MAVProxy.
Peter Barker, April 2016
based on sim_vehicle.sh by Andrew Tridgell, October 2011
"""
import atexit
import getpass
import optparse
import os
import os.path
import signal
import subprocess
import sys
import tempfile
import ti... | hsu/ardupilot | Tools/autotest/sim_vehicle.py | Python | gpl-3.0 | 30,806 | [
"Firefly"
] | 0c6bc55ce44fb86031743c319a80d83a03c75d56fda5d22578295a7430dbe2d7 |
# -*- 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... | watchdogpolska/petycja-norweskie | config/urls.py | Python | mit | 1,328 | [
"VisIt"
] | 0c2ec9090b95bbcce733f81165bc18c0b8f51a2b2c1900933bfdeb58bde13460 |
""" Sahana Eden Test Framework
@copyright: 2011-2012 (c) Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, incl... | flavour/tldrmp | modules/tests/smoke/broken_links.py | Python | mit | 26,011 | [
"VisIt"
] | 8806cc21c65c14e4e935aebaa8dc0cf9eddc51c2c5716a2f72e2873a3ecc3631 |
from aiida.parsers.parser import Parser
from aiida.parsers.exceptions import OutputParsingError
from aiida.orm.data.array import ArrayData
from aiida.orm.data.parameter import ParameterData
from aiida.orm.data.array.trajectory import TrajectoryData
import numpy as np
def read_lammps_trajectory(file_name,
... | abelcarreras/aiida_extensions | plugins/parsers/lammps/md.py | Python | mit | 6,639 | [
"LAMMPS"
] | c7eb7c9f47943b0a267032302a72875aabd845741f9ccef31b73fa49bfd0437b |
import unittest
from ...dictionaries import moe
class TestyDict(unittest.TestCase):
def setUp(self):
self.dict = moe()
def test__get_url(self):
self.assertEqual(
'https://www.moedict.tw/uni/萌',
self.dict._get_url('萌')
)
| LeaYeh/zdict | zdict/tests/dictionaries/test_moe.py | Python | gpl-3.0 | 284 | [
"MOE"
] | d4e5d0e0a4a4f943b52c1b760c055679a3a1bdcc868836749903259df4d595f6 |
from twisted.logger import Logger
from pathlib import Path
from typing import List
import sys
if sys.version_info < (3, 8):
# https://packaging.python.org/guides/creating-and-discovering-plugins/
# Actually 3.8 is the minimum version for importlib.metadata
import importlib_metadata
else:
import importl... | richardingham/octopus | octopus/blocktopus/plugins.py | Python | mit | 5,791 | [
"Octopus"
] | e7de00e9acbf9308c7eff08a3863de1e0383f4f5248e81077a4159514a7662f2 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
#
# RMG - Reaction Mechanism Generator
#
# Copyright (c) 2002-2010 Prof. William H. Green (whgreen@mit.edu) and the
# RMG Team (rmg_dev@mit.edu)
#
# Permission is hereby granted, free of c... | enochd/RMG-Py | rmgpy/data/thermo.py | Python | mit | 54,148 | [
"VisIt"
] | a670cb60dae9ec416e97b27bdc275566232d3142f80eddbaeaf838d945b37492 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import os
import re
import itertools
import warnings
import logging
import math
import six
import numpy as np
from numpy.linalg import det
from collections im... | matk86/pymatgen | pymatgen/io/vasp/inputs.py | Python | mit | 73,040 | [
"VASP",
"pymatgen"
] | 6f1f0017d13e00f4b39d458098ee6c514e83eb1e1894f9e95b032d8d0c90bd25 |
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | hfp/tensorflow-xsmm | tensorflow/python/training/learning_rate_decay_v2.py | Python | apache-2.0 | 38,287 | [
"Gaussian"
] | 7c7975337abedbc10e7c981e1f52595b8fb3f98f23478902439fce05f7bc72dd |
#!/usr/bin/env python3
#
#
# Mike Dvorak
# Sail Tactics
# mike@sailtactics.com
#
# Created: 2014-11-05
# Modified: 2016-06-13
#
#
# Description: Inserts a arbitrary WRF netCDF file into a WindDB at the specified height.
#
# Returns -1 if there is an IntegrityError, which is triggered by a duplicate key error if the dat... | sailorsenergy/windb2 | bin/interpolate-wrf-file.py | Python | gpl-3.0 | 2,667 | [
"NetCDF"
] | f062f546ecb1a6532a91df8c6629f76a6dc857fdb1b12e563b36a23249f0df48 |
#!/usr/bin/env python
"""
Show storage quotas for specified users or for all registered users if nobody is specified
Example:
$ dirac-admin-user-quota
------------------------------
Username | Quota (GB)
------------------------------
atsareg | None
msapunov | Non... | DIRACGrid/DIRAC | src/DIRAC/DataManagementSystem/scripts/dirac_admin_user_quota.py | Python | gpl-3.0 | 1,456 | [
"DIRAC"
] | 4cff3fca4e58bd9f250af65987d564c30ede2f0f9eb3a8d9e09b486ad4ad9127 |
# -*- coding: utf-8 -*-
"""
End-to-end tests for the LMS Instructor Dashboard.
"""
from ..helpers import UniqueCourseTest, get_modal_alert
from ...pages.common.logout import LogoutPage
from ...pages.lms.auto_auth import AutoAuthPage
from ...pages.lms.instructor_dashboard import InstructorDashboardPage
from ...fixtures... | eestay/edx-platform | common/test/acceptance/tests/lms/test_lms_instructor_dashboard.py | Python | agpl-3.0 | 16,277 | [
"VisIt"
] | 6de68b7d351a097b666c676ff6488f4805dbeb934a328fb0329722f56e6193d2 |
# Copyright 2005-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Author(s): Brian Harring (ferringb@gentoo.org)
from __future__ import unicode_literals
from portage.cache import fs_template
from portage.cache import cache_errors
import errno
import io
import stat
import sys... | ptisserand/portage | pym/portage/cache/flat_hash.py | Python | gpl-2.0 | 4,610 | [
"Brian"
] | b9ae3b71a9ab2b9ce39c473922f184378904450819fc4fe18c998ad37d5cc279 |
# This file is part of PyEMMA.
#
# Copyright (c) 2015, 2014 Computational Molecular Biology Group, Freie Universitaet Berlin (GER)
#
# PyEMMA is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either versi... | markovmodel/PyEMMA | pyemma/coordinates/tests/test_traj_info_cache.py | Python | lgpl-3.0 | 14,155 | [
"MDTraj"
] | 8078a0e4ad17ec62a162a19a2ad2cc903a765c83328343c1f397f014b6f4ad3f |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | jensreeder/scikit-bio | skbio/diversity/alpha/_ace.py | Python | bsd-3-clause | 3,672 | [
"scikit-bio"
] | 90bbd0d8767a9a37d09a54269f7f668fee5b2327f0be24fafcb737698a9209a4 |
"""This file contains code used in "Think Stats",
by Allen B. Downey, available from greenteapress.com
Copyright 2012 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
import matplotlib.pyplot as pyplot
import myplot
import csv
import Cdf
import correlation
import math
import random
import ... | AllenDowney/HeriReligion | archive/heri12.py | Python | mit | 11,607 | [
"Gaussian"
] | 31caac991f1c72ed279669699d3f3b4d209aacea84002f16dad5faa2ed5b7871 |
from rest_framework import status
from rest_framework.authentication import \
SessionAuthentication, \
TokenAuthentication
from rest_framework.permissions import IsAuthenticated, IsAdminUser
from rest_framework.decorators import authentication_classes, permission_classes
from rest_framework.decorators import ap... | whitews/ReFlow | repository/api_utils.py | Python | bsd-3-clause | 5,518 | [
"VisIt"
] | fa1aa7eeadfc3fc43222a974a11f4ad8d5157e108cdc8b88531b7cbb155a94bc |
# Autodetecting setup.py script for building the Python extensions
#
__version__ = "$Revision$"
import sys, os, imp, re, optparse
from glob import glob
from platform import machine as platform_machine
import sysconfig
from distutils import log
from distutils import text_file
from distutils.errors import *
from distu... | jyio/botbrew | cookbook/python2.7/setup.py | Python | mit | 92,206 | [
"VisIt"
] | 945e3f929c808cdf0016e4b36fa191fb7ebf18b322a624481251e244ba7cfacd |
from twilio.rest import TwilioRestClient
# To find these visit https://www.twilio.com/user/account
ACCOUNT_SID = "AC388d08c36de5ff26c2fd8acacbb8aad8"
AUTH_TOKEN = "b308a23efb875b24021dedfd16b760cf"
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
def send_message(message_body, phone):
message = client.messages... | Shashank-Ojha/MakeBank | send_messages.py | Python | mit | 472 | [
"VisIt"
] | 4fbca312740d6c49912050dabdd5f28c72cfd52e915ef3c20c80955ef9d156c8 |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | googleapis/python-resource-manager | scripts/fixup_resourcemanager_v3_keywords.py | Python | apache-2.0 | 7,811 | [
"VisIt"
] | 62daa26695a30519b00a9c298c43c7259044f8c99effc8f82a85302bbfdea5ac |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | SamStudio8/scikit-bio | skbio/diversity/alpha/_base.py | Python | bsd-3-clause | 27,424 | [
"scikit-bio"
] | c0a117045d6ab6d17e31bfc86e29dbd52959ef6cb64df0c8b8e88da239269f65 |
#!/usr/bin/env python3
#
# Script to convert SCM AMV trajectory to xyz format trajectory
# by Patrick Melix
# 2020/10
#
# You can import the module and then call .main() or use it as a script
import sys, os, glob
from ase import io
def main(argv):
inFile = argv[0]
outFile = argv[1]
data = []
nAtoms = ... | patrickmelix/Python4ChemistryTools | amv2xyz.py | Python | mit | 993 | [
"ASE"
] | 9bfafa1d219f6f15f54c979da134e4944e448729cd9ddb550c16240e05cc0712 |
# -*- coding: utf-8 -*-
# Copyright 2007-2016 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... | to266/hyperspy | hyperspy/_components/gaussian.py | Python | gpl-3.0 | 6,181 | [
"Gaussian"
] | 1abffc2cdad8d37a79e9cc3784e84b426f1f3588d41da5a5fa94052af4671b23 |
"""
db_admin_util v0.01
ga-bitbot database administration utility
Copyright 2011 Brian Monkaba
This file is part of ga-bitbot.
ga-bitbot 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 vers... | Pascal66/ga-bitbot | tools/db_admin_util.py | Python | gpl-3.0 | 8,303 | [
"Brian"
] | 02ecd24bba17d45679a337c19003209856fea7e5577a9e3b0d3bcee4a708718a |
#!/usr/bin/env python3
#pylint: disable=missing-docstring
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
... | nuclear-wizard/moose | python/chigger/tests/tube/tube.py | Python | lgpl-2.1 | 669 | [
"MOOSE"
] | 12ebb884ba3e7d303cb94d4f064b67bcca5221fd9938cdcd94c0264adc09e5d2 |
__package__ = "DIRAC.AccountingSystem.Client.Types" | avedaee/DIRAC | AccountingSystem/Client/Types/__init__.py | Python | gpl-3.0 | 51 | [
"DIRAC"
] | 98cfb8c1e3d95988677a1a90f1c627ddccff78afd2817d98d4b69c23757d8809 |
# Copyright (C) 2019 Alejandro Molina Sanchez - Henrique PC Miranda
# All rights reserved.
#
# This file is part of yambopy
#
# Tutorial File of Yambopy Tasks. BSE flow
#
#import argparse
#import os
#import shutil
from yambopy.flow import YambopyFlow, P2yTask, YamboTask
#from schedulerpy import Scheduler
from yambop... | henriquemiranda/yambo-py | tutorial/bn/flow-bse.py | Python | bsd-3-clause | 1,626 | [
"Yambo"
] | 3d8325de9ec038c1bd9f95e04d13007dc760e7129940b40e37181c98f5590c07 |
"""
Augmenters that blur images.
List of augmenters:
* :class:`GaussianBlur`
* :class:`AverageBlur`
* :class:`MedianBlur`
* :class:`BilateralBlur`
* :class:`MotionBlur`
* :class:`MeanShiftBlur`
"""
from __future__ import print_function, division, absolute_import
import numpy as np
from scipy... | aleju/ImageAugmenter | imgaug/augmenters/blur.py | Python | mit | 52,323 | [
"Gaussian"
] | 46b5f833e6c26196f2291090878ba9832965f6cd22257846fcbc844a163037a5 |
"""CatBoost coding"""
import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator
import category_encoders.utils as util
from sklearn.utils.random import check_random_state
__author__ = 'Jan Motl'
class CatBoostEncoder(BaseEstimator, util.TransformerWithTargetMixin):
"""CatBoost coding for cat... | wdm0006/categorical_encoding | category_encoders/cat_boost.py | Python | bsd-3-clause | 11,562 | [
"Gaussian"
] | 7b2bc746f0819e309e0204bef9d7ba2849d330d92d1ad0ed0241dda75ec515c6 |
"""Universal feed parser
Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
Visit https://code.google.com/p/feedparser/ for the latest version
Visit http://packages.python.org/feedparser/ for the latest documentation
Required: Python 2.4 or later
Recommended: iconv_codec <http://cjkpython.i18n.org... | krishna11888/ai | third_party/pattern/pattern/web/feed/feedparser.py | Python | gpl-2.0 | 167,919 | [
"NetCDF",
"VisIt"
] | c942727ad968e416cc04eaece06a6193fee1665d9cbf5340d263d34f9577e9c5 |
# -*- coding: utf-8 -*-
import socket
import platform
import os
import os.path
import click
from turbo_markdown import run_server
def port_is_used(port):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if sock.connect_ex(('localhost', port)) == 0:
return True
return False
@click.comm... | wecatch/turbo-markdown | turbo_markdown/cli.py | Python | mit | 775 | [
"VisIt"
] | 062c047d4b408d25e8bb5a76f6be8cfa4a0bb7e5db37ba6fbd1d77ed5b0e2c59 |
from __future__ import print_function
import numpy as np
import scipy
import pyqtgraph as pg
from acq4.analysis.tools import functions as afn
from acq4.util import Qt
Ui_Form = Qt.importTemplate('.MapConvolverTemplate')
class MapConvolver(Qt.QWidget):
sigOutputChanged = Qt.Signal(object, object)
sigFi... | acq4/acq4 | acq4/analysis/modules/MapImager/MapConvolver.py | Python | mit | 10,010 | [
"Gaussian"
] | 1baa890785355bdec1fe10d09aeaae169eb32bad1384a04912de3c7c1b52f415 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | kain88-de/mdanalysis | testsuite/MDAnalysisTests/coordinates/test_mmtf.py | Python | gpl-2.0 | 2,953 | [
"MDAnalysis"
] | 5a2800bb5e7bedc427c6f28967c988e8d31b7dc33b6f91e7cc8de53fb5d7b87d |
#!/usr/bin/env python
"""
LookupTable
"""
"""
Copyright 2001 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the LGPL. See http://www.fsf.org
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OW... | ddempsey/PyFEHM | pyvtk/LookupTable.py | Python | lgpl-2.1 | 2,119 | [
"VTK"
] | f87663237c96dca12ed3e29db89b4d8ed3a4252e358bfc160cef3148bebacb14 |
#!/usr/bin/env python2.7
"""Script to install mooltool on developer and test machines. We use python
virtual environment based approach for setting up the development environment.
Required packages before the script can be used are:
* Java >= 1.7.0
* python >= 2.7.3
* G++
It is supposed to work on Mac OS, Ubuntu and ... | jkumarrf/mool | installer/install_mooltool.py | Python | bsd-3-clause | 16,674 | [
"VisIt"
] | ca5b6c3a301bdffba399cb61a18c37c83b788ab54ee3150f0706d8a40d4d7529 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2011-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 Softw... | tiagocardosos/stoq | stoqlib/domain/event.py | Python | gpl-2.0 | 5,766 | [
"VisIt"
] | dd5562dd08977a4c23dd6ccf2add1bed6de213d37e50c773f50fd88a68d243f0 |
from setuptools import setup
import os
def readme(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='espei',
author='Brandon Bocklund',
author_email='brandonbocklund@gmail.com',
description='Fitting thermodynamic models with pycalphad.',
packages=['espei', ... | PhasesResearchLab/ESPEI | setup.py | Python | mit | 2,047 | [
"pycalphad"
] | 275c7ae1cf2cdccc2ee48c33f75cb9457d256d2261bf94fdee592c74b4dc2567 |
# coding: utf-8
from __future__ import unicode_literals
import unittest
import os
from pymatgen.io.feff import Header, FeffTags, FeffLdos, FeffPot, Xmu, \
FeffAtoms
test_dir = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..",
'test_files')
class HeaderTest(unittest.TestCa... | rousseab/pymatgen | pymatgen/io/feff/tests/test_feffio.py | Python | mit | 7,497 | [
"FEFF",
"pymatgen"
] | bc850bc3789bb0214c6a0954ee240337dd57ecf4c37b8f705aa0ee34c5e59cdd |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/bug_1117098 | openlp/plugins/bibles/lib/mediaitem.py | Python | gpl-2.0 | 50,056 | [
"Brian"
] | 8450059c90fd916beddef836a64d769b2fef8f4426346ee064d54d2305563e89 |
import numpy as np
import copy
from collections import OrderedDict
import cv2
import caffe
from caffe import layers as L
from caffe import params as P
from caffe.proto import caffe_pb2 as pb2
def compute_jacobian(net, output, input_):
assert output in net.outputs
assert input_ in net.inputs
input_data = ne... | alexlee-gk/visual_dynamics | visual_dynamics/predictors/net_caffe.py | Python | mit | 67,823 | [
"Gaussian"
] | cd878b61a8dbb1c291e47c4c1cc9cc17e004c97c0dece531eab532791cd493e0 |
#!/usr/bin/python2
#NOTE: Run this plot script from directory deft/papers/fuzzy-fmt
#with comand ./new-melting_plot_script.py [directory where data stored] [temp]
import os
import numpy as np
import matplotlib.pyplot as plt
import sys
if len(sys.argv) < 3:
print "Usage: directory temperature"
exit(1)
data_... | droundy/deft | papers/fuzzy-fmt/new-melting_plot_script.py | Python | gpl-2.0 | 2,515 | [
"CRYSTAL"
] | aeee54f62154289d9ea6ffe6ffcfd293a2c9ffb8356ea050506104cca6313da8 |
from cis.data_io.products import NetCDF_Gridded
import logging
class HadGEM_CONVSH(NetCDF_Gridded):
"""
HadGEM plugin for reading NetCDF files converted by CONVSH. It implements a callback to pass to iris when
reading multiple files to allow correct merging
"""
def get_file_signature(self... | cedadev/cis | cis/data_io/products/HadGEM.py | Python | lgpl-3.0 | 5,253 | [
"NetCDF"
] | 96cecd8403953073563adba2dcb4b5eb2edcc77bb2a26acc38c9e18163056069 |
import numpy as np
from numpy.testing import (assert_equal,
assert_almost_equal,
assert_raises)
import skimage
from skimage import data
from skimage._shared._warnings import expected_warnings
from skimage.filters.thresholding import (threshold_adaptive,
... | paalge/scikit-image | skimage/filters/tests/test_thresholding.py | Python | bsd-3-clause | 12,997 | [
"Gaussian"
] | 767cf6f6681b2dc50b83293f0e1f92cdc52510016c59c7b502291eaf57108ba9 |
# -*- coding: utf-8 -*-
import os
import subprocess
import tempfile
import warnings
from threading import Thread
import json
from collections import defaultdict
import re
from functools import partial
import pandas as pd
import numpy as np
from chemcoord._generic_classes.generic_IO import GenericIO
from chemcoord.car... | mcocdawc/chemcoord | src/chemcoord/cartesian_coordinates/_cartesian_class_io.py | Python | lgpl-3.0 | 14,387 | [
"ASE",
"pymatgen"
] | 0cfad16a3dc126ef080bfc2ee5388ea285681d8a3b36485adb45da93ba77ac4a |
''' file name : comparehist.py
Description : This sample shows how to determine how well two histograms match each other.
This is Python version of this tutorial : http://opencv.itseez.com/doc/tutorials/imgproc/histograms/histogram_comparison/histogram_comparison.html
Level : Beginner
Benefits : Learn to use cv2.co... | asrob-uc3m/rpc_rpi | src/python/opencv_python_tutorials/Official_Tutorial_Python_Codes/3_imgproc/comparehist.py | Python | gpl-3.0 | 1,899 | [
"VisIt"
] | a83c1001897571eaf23052bfe6ce11adb8406abba6f7c79baf6b57bfda6e957d |
#!/usr/bin/env python
'''
Module to launch a crawl.
This module supplies the following functions that can be used
independently:
1. compute_stats: To calculate the download statistics of a URL.
Usage:
To use the functions provided in this module independently,
first place yourself just above py... | Jamlum/pytomo | pytomo/start_pytomo.py | Python | gpl-2.0 | 76,253 | [
"VisIt"
] | c603231a72e13d3f5ff1e7b1aa2784ef2d8e3808a2c3758561dc1b6888077971 |
#!/usr/bin/env python
import os
import sys
import pychemia.code.octopus
def helper():
print(""" Set a variable in octopus
Use:
octopus_setvar.py --filename 'Octopus_Input_File' [ --set varname value ]... [--del varname]...
""")
if __name__ == '__main__':
# Script starts from here
if len... | MaterialsDiscovery/PyChemia | scripts/oct_setvar.py | Python | mit | 1,497 | [
"Octopus"
] | 9c8febe3739e5b47e27ddf3dd9865837209fd7f5a3fb482d0c0282482a20da40 |
from distutils.version import LooseVersion
import pytest
from cfme.utils.log import logger
from cfme.utils.providers import ProviderFilter, list_providers
from cfme.markers.env import EnvironmentMarker
from cfme.utils.pytest_shortcuts import fixture_filter
ONE = 'one'
ALL = 'all'
LATEST = 'latest'
ONE_PER_VERSION =... | mfalesni/cfme_tests | cfme/markers/env_markers/provider.py | Python | gpl-2.0 | 8,447 | [
"VisIt"
] | f7cef5abf4b4d00a10e6e9dbe50b6fb76e89fc606c9d4c34192fbc76970cf622 |
# Copyright 2003, 2007 by Sebastian Bassi. sbassi@genesdigitales.com
# 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.
"""Local Composition Complexity."""
import math
def lcc_m... | zjuchenyuan/BioWeb | Lib/Bio/SeqUtils/lcc.py | Python | mit | 5,908 | [
"Biopython"
] | 087fb911b7807ce51bf55ebc09b8b63a53347a7e65d27d870d423a462ad12574 |
"""
Test the convergence of a small diffusion problem discretized with the local
discontinuous Galerkin method. The polynomial order is 5. To utilize the
visualization capabilities, you need to have Paraview and scikits.delaunay
installed.
References
----------
[1] L. N. Olson and J. B. Schroder. Smoothed Aggregat... | pombreda/pyamg | Examples/Diffusion/demo_local_disc_galerkin_diffusion.py | Python | bsd-3-clause | 5,019 | [
"ParaView"
] | a9d9448c63bb9521ff8fd8b3ee82e54ac19f4fd287558a18446930ebe94ba878 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2006-2009 Søren Roug, European Environment Agency
#
# This is free software. You may redistribute it under the terms
# of the Apache license and the GNU General Public License Version
# 2 or at your option any later version.
#
# This program is distributed ... | kawamon/hue | desktop/core/ext-py/odfpy-1.4.1/setup.py | Python | apache-2.0 | 4,535 | [
"VisIt"
] | 6cdac33d204d9b0192916cfb740259345469d3fd2800644a7848bac27c087f28 |
import os, threading, collections
from functools import wraps
from flask import Module, url_for, render_template, request, session, redirect, g, current_app, make_response
from decorators import guest_or_login_required, login_required, with_lock
from collections import defaultdict
from flask.ext.babel import Babel, get... | macieksk/sagenb | sagenb/flask_version/worksheet.py | Python | gpl-3.0 | 35,813 | [
"Jmol"
] | 285c6d559630f41e0f346f5ed6e3e08f5354323be2301478333c14fa1223230f |
import numpy as np
import GPy
from GPy.core import Model
from GPy.core.parameterization import variational
from GPy.util.linalg import tdot, jitchol, dtrtrs, dtrtri
class InferenceX(Model):
"""
The model class for inference of new X with given new Y. (replacing the "do_test_latent" in Bayesian GPLVM)
It i... | zhenwendai/DeepGP | deepgp/inference/inferenceX.py | Python | bsd-3-clause | 5,652 | [
"Gaussian"
] | 87641dc7b4c704dce1d1c0236586aa93a397f7e52261a8e735c24d7f84e089e1 |
import unittest
from unittest import TestCase
from flask import url_for, session
from app import app, users
from activity import Activity
from user import User
from bucketlist import BucketList
class BucketListTest(TestCase):
def setUp(self):
app.config['SECRET_KEY'] = 'seasasaskrit!'
# ... | mkiterian/bucket-list-app | test_app.py | Python | mit | 4,103 | [
"VisIt"
] | af308d801d852f4b79291a63edec90ec331dde6da08117a7c3321b852943b05e |
# Blender rock creation tool
#
# Based on BlenderGuru's asteroid tutorial and personal experimentation.
# Tutorial: http://www.blenderguru.com/how-to-make-a-realistic-asteroid/
# Update with another tutorial shared by "rusted" of BlenderArtists:
# Tutorial: http://saschahenrichs.blogspot.com/2010/03/3dsmax-environm... | Passtechsoft/TPEAlpGen | blender/release/scripts/addons_contrib/add_mesh_rocks/rockgen.py | Python | gpl-3.0 | 69,120 | [
"Gaussian"
] | abd82cd58013c2a472b209149637f6868ffea4bb79b4ca435b69ec0e2b9bb643 |
# -*- coding: utf-8 -*-
"""Tests for :mod:`pybel.parser`."""
| pybel/pybel | tests/test_parse/__init__.py | Python | mit | 62 | [
"Pybel"
] | fb08b8d9bcc1b130f5405ec715ead8dcd529d260d9a38f69285abfd572fa12a8 |
from math import log
import numpy as np
import functools
import gym
import tree # pip install dm_tree
from ray.rllib.models.action_dist import ActionDistribution
from ray.rllib.models.modelv2 import ModelV2
from ray.rllib.utils import MIN_LOG_NN_OUTPUT, MAX_LOG_NN_OUTPUT, \
SMALL_NUMBER
from ray.rllib.utils.annot... | pcmoritz/ray-1 | rllib/models/tf/tf_action_dist.py | Python | apache-2.0 | 23,931 | [
"Gaussian"
] | 3da222ff40e7d78b1bd36fdc9c8ebbf81b07427cfa78d52c1233393ad8cf6561 |
import logging
import numpy as np
from neon.util.argparser import NeonArgparser
from neon.backends import gen_backend
from neon.initializers import Constant, Gaussian
from neon.layers import Conv, Pooling, GeneralizedCost, Affine
from neon.optimizers.optimizer import MultiOptimizer, GradientDescentMomentum
from neon.tr... | cs-chan/fuzzyDCN | prune_neon/mnist_cnn.py | Python | bsd-3-clause | 2,431 | [
"Gaussian"
] | 65ffd6fe6f5f8afc514ac0474aa3fe6a8740f85f427a9a487f38300f81d97314 |
# -*- coding: utf-8 -*-
#
# gif_pop_psc_exp.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License... | niltonlk/nest-simulator | pynest/examples/gif_pop_psc_exp.py | Python | gpl-2.0 | 14,148 | [
"NEURON"
] | a9b1fbc46cf024d72dfd56222871056c795634a9f93abf6b5b92e2a84fcfc989 |
########################################################################
# $HeadURL $
# File: FTSGraph.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/05/10 20:02:32
########################################################################
""" :mod: FTSGraph
==============
.. module: FTSGraph
:syno... | miloszz/DIRAC | DataManagementSystem/private/FTS2/FTS2Graph.py | Python | gpl-3.0 | 9,889 | [
"DIRAC"
] | 0505b53687e757598e4ebaccf4ed44c64dd0f990764d0fffeba744609073e78a |
# -*- coding: utf-8 -*-
#
# multimeter_file.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License... | kristoforcarlson/nest-simulator-fork | pynest/examples/multimeter_file.py | Python | gpl-2.0 | 5,200 | [
"NEURON"
] | 135ecea1e15349c01ec1e8d1fcb9f8ba9b01c24b4af17a774a2185dd4c93c9dc |
"""
mbed SDK
Copyright (c) 2011-2013 ARM Limited
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 wr... | jeremybrodt/mbed | tools/synch.py | Python | apache-2.0 | 11,435 | [
"VisIt"
] | 435e648e6bdc8c52ba2beeee36ba4ee95fd5c330ce12ba3c62b56e5af5210e69 |
#!/usr/bin/python
# resultsFile is a library which allows to read output files of quantum
# chemistry codes and write input files.
# Copyright (C) 2007 Anthony SCEMAMA
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published... | scemama/resultsFile | resultsFile/Modules/xmvbFile.py | Python | gpl-2.0 | 23,503 | [
"Gaussian"
] | d6dccaf064ee6a3b36cea005b7b83344d5aef9842352efca8c322cf15953dfe9 |
#!/usr/bin/env python
import os
import sys
from Bio.Blast import NCBIXML
result_handle = open(sys.argv[1])
blast_records = NCBIXML.parse(result_handle)
families = {}
i=0
for blast_record in blast_records:
# taking one record one hsp
try:
hsp = blast_record.alignments[0].hsps[0]
i += 1
e... | naumenko-sa/bioscripts | blast/blastn_xml.parse_example.py | Python | mit | 860 | [
"BLAST"
] | 2b1e4c305dd63cd3a966c18ffd9e640e5c8994cc4d43fc59aa08ae0a5be1c32f |
# sybase/base.py
# Copyright (C) 2010-2017 the SQLAlchemy authors and contributors
# <see AUTHORS file>
# get_select_precolumns(), limit_clause() implementation
# copyright (C) 2007 Fisch Asset Management
# AG http://www.fam.ch, with coding by Alexander Houben
# alexander.houben@thor-solutions.ch
#
# This module is par... | Haynie-Research-and-Development/jarvis | deps/lib/python3.4/site-packages/sqlalchemy/dialects/sybase/base.py | Python | gpl-2.0 | 29,456 | [
"ASE"
] | 767c075b33659a03ac890c515945d906b4059bcdb5f4a66ce0c49ce5083deab6 |
#!/usr/bin/env python
from __future__ import with_statement
# Library path
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
# Standard libraries
import atexit
import random
import re
import socket
import threading
import time
import traceback
import weakref
import xm... | pbarton666/buzz_bot | bot_project/buzzbot/crawler.py | Python | mit | 26,283 | [
"VisIt"
] | 7ed11b0288c77605867bf0ed71df9b12e579a34b1c665cd0459cec551128f4bc |
# -*- coding: utf-8 -*-
#
# Copyright © 2013 Michael Rabbitt.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, mo... | gwax/nikola | nikola/plugins/compile/markdown/mdx_gist.py | Python | mit | 6,599 | [
"Brian"
] | c0bea5ca5d8895826e8d3b61799215955cef38717e62abe2c959731f71de4043 |
import sys, traceback
import time
import os
from git import Repo
from ConfigParser import SafeConfigParser
import bioblend
from bioblend.galaxy import GalaxyInstance
from bioblend.galaxy.workflows import WorkflowClient
import subprocess
dist_dname = '/galaxy-central/config'
wf_dname = dist_dname + '/workflow_file'
rep... | myoshimura080822/galaxy_in_docker_custom_bit_wf | setup_scripts/bit-workflow_install_docker.py | Python | mit | 3,334 | [
"Galaxy"
] | c2c1da4d163d65af7c24bc5291772da360c9344268cb3b4d0a1c16a1ca886587 |
##############################################################################
# adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD)
# Simulations on HPC Resources
# Copyright 2017 FU Berlin and the Authors
#
# Authors: Jan-Hendrik Prinz
# Contributors:
#
# `adaptiveMD` is free software: ... | thempel/adaptivemd | adaptivemd/engine/openmm/__init__.py | Python | lgpl-2.1 | 1,050 | [
"MDTraj",
"OpenMM"
] | 3b710968cdf67bfb762dfa38127b52b617bdd5cae94addc58dc561559d6a2938 |
#!/usr/bin/env python
"""
Define paramters
author: Xiaowei Huang
"""
from network_configuration import *
from usual_configuration import *
#######################################################
#
# To find counterexample or do safety checking
#
#######################################################
task = "sa... | xiaoweih/DLV | configuration.py | Python | gpl-3.0 | 6,469 | [
"NEURON"
] | 1d715a837626ecf5d230102d406bfd23ecf9e8cf053215b14cefa915b40756ac |
# Copyright 2014-2018 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
#
# Unless required by appl... | sunqm/pyscf | pyscf/df/test/test_incore.py | Python | apache-2.0 | 7,048 | [
"PySCF"
] | b4af90b16b6a3aac7e29ba076501eefc139e0721d6b07a0624eb75696e318aa7 |
#!/usr/bin/env python
#
import webapp2
import re
from google.appengine.ext import db
from google.appengine.ext import blobstore
from google.appengine.ext.webapp import blobstore_handlers
import xml.etree.ElementTree as ET
import logging
headers = '''<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang=... | Dataliberate/bibschemaorg | headers.py | Python | apache-2.0 | 4,412 | [
"ESPResSo"
] | ee3040954b8d4e8a32a5b7a26167fcd8028fedc743ced3c4dc72298af77ac982 |
#!/usr/bin/env python
#-*- coding:utf-8 -*-
#
# networks.py
#
# This file is part of the NNGT project to generate and analyze
# neuronal networks and their activity.
# Copyright (C) 2015-2019 Tanguy Fardet
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General ... | Silmathoron/NNGT | nngt/core/networks.py | Python | gpl-3.0 | 19,108 | [
"NEURON"
] | 9868792b3fc60a33f1e7abcb97d734e097c7cada6867ba1898d1955697007ee6 |
# -*- 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/widgets/core/Label.py | Python | gpl-3.0 | 2,739 | [
"ORCA"
] | d5dde4c25f6eab9512ec6a263bc7ee3cf41d710dd86c2bf152a5e48956b64e4a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.