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 #-*- coding:utf-8 -*- # test_generation.py # This file is part of the NNGT module # Distributed as a free software, in the hope that it will be useful, under the # terms of the GNU General Public License. """ Test the connect group and type methods. """ import pytest import numpy as np import...
Silmathoron/NNGT
testing/test_connect_group_type.py
Python
gpl-3.0
5,795
[ "Gaussian" ]
281f1ba098fbfeb058378a5af9bff3bb053a6ad3c55ea25a80fb77347716e14b
"""Splinter plugin for pytest. Provides easy interface for the browser from your tests providing the `browser` fixture which is an object of splinter Browser class. """ import functools # pragma: no cover try: from httplib import HTTPException except ImportError: from http.client import HTTPException import m...
pelme/pytest-splinter
pytest_splinter/plugin.py
Python
mit
17,698
[ "VisIt" ]
5eaa0d8ea0a47359a4f7fbd951131e96bd4dff045ce1f9e376fdec4657965eef
import numpy as np from astropy.table import Table from astropy.io import fits import matplotlib.pyplot as plt import matplotlib import pickle from os.path import isfile, join from os import listdir import astropy.io.fits as ts from TheCannon import dataset,apogee from astropy.table import Table import numpy as np impo...
peraktong/Cannon-Experiment
DR13_red_clump/0323_make_table_red_clump.py
Python
mit
7,098
[ "VisIt" ]
ad32e3d78f416100525ba08eabdb00f10f6812fb5dc98028e4cb66116f24e6cd
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2002 Gary Shao # Copyright (C) 2007 Brian G. Matherly # Copyright (C) 2009 Benny Malengier # Copyright (C) 2009 Gary Burton # # This program is free software; you can redistribute i...
arunkgupta/gramps
gramps/gen/plug/docgen/paragraphstyle.py
Python
gpl-2.0
11,375
[ "Brian" ]
ece7775f10d255bc231476efac2abb396d08f313b1c233f0762987fd33a68606
import matplotlib.pyplot as pl from astroML.plotting.tools import draw_ellipse def fake_data_plot(x_true, y_true, x, y, samples=None, mus=None, Vs=None): """ Two column plot of fake data in xd-demo.ipynb """ fig = pl.figure(figsize=(5, 3.75)) fig.subplots_adjust(left=0.1, right=0.95, ...
rossfadely/xd-demo
demo_utils.py
Python
mit
4,411
[ "Galaxy" ]
ddff77ad80a9d18ef519e11e258d0d092e3647955cb08c7ba0815e3887c2b548
# Copyright (C) 2016 # Jakub Krajniak (jkrajniak at gmail.com) # # 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 ...
hidekb/espressopp
src/integrator/LangevinThermostatOnGroup.py
Python
gpl-3.0
2,236
[ "ESPResSo" ]
8abe9003f15962f6794d62c86863ca89d0158f3f9dc48e2c87f7a20f3ea606d3
# coding=utf-8 from __future__ import absolute_import from flask import url_for from flask_login import current_user import pytest from firefly.six import unicode from firefly.models.user import User from firefly.views.api.consts import OK @pytest.mark.usefixtures('client_class') class TestUser: def setup(self)...
matrixorz/firefly
tests/test_user.py
Python
mit
3,213
[ "Firefly" ]
a95f66203808fb830efbd0aa26e5cb9b87bf1492cd286a4b03529a62489d030c
""" generate toy datasets based on code by Mark Rogers """ from math import sin, pi from random import gauss import numpy import datafunc ## # Class generators: ## def sineClass(xlim=[0,1], ylim=[0,1], n=20, sigma = 0.04) : """ Generates a 2-D noisy sine wave Parameters: xlim ...
cathywu/Sentiment-Analysis
PyML-0.7.9/PyML/datagen/toydata.py
Python
gpl-2.0
4,824
[ "Gaussian" ]
e4ccf4ec48044ea2a372c99f4a958838b8cfb2f415c81b5ae0974ebb80c7d361
../../../../../../../share/pyshared/orca/scripts/apps/pidgin/__init__.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/pidgin/__init__.py
Python
gpl-3.0
72
[ "ORCA" ]
967fa4d0fdcc728035cbef4a341b9a7491e90c09eeeae824a8a932799730e14a
# Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2020, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This program is free software: you can redistribute it and/or modify # it unde...
mrcslws/nupic.research
src/nupic/research/frameworks/vernon/network_utils.py
Python
agpl-3.0
4,364
[ "Gaussian" ]
381fa8aad53f337325f714fdb9e7c9a0f55e33e92429e9892dbc40345f35d0d7
""" Executes a set of implementations as a program. """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function from zeroinstall import _ import os, sys from logging import info, debug from string import Template from zeroinstall.in...
dabrahams/zeroinstall
zeroinstall/injector/run.py
Python
lgpl-2.1
10,692
[ "VisIt" ]
cc31877c03f259509260ed32d3042cc521eb72b6259d5386b2469a18d696faaf
#!/usr/bin/python from stemming.porter2 import stem import DictionaryServices, re, operator #ignore_list = set(['the', 'noun', 'adjective', 'the', 'for', 'not', 'when', 'shall', 'will', 'and', 'with', 'brit', 'informal', 'but', 'that', 'from', 'verb', 'their', 'derivatives', 'adverb', 'late', 'latin', 'origin']) star...
jbowens/taboo
wordgen/osx-dict/explore.py
Python
mit
2,913
[ "VisIt" ]
1637311aff571844d88443dab0d81f4b5bfe2bc2d1682d323cdced5c23b8de8c
######################################################################## # File : ModuleFactory.py # Author : Stuart Paterson ######################################################################## """ The Module Factory instantiates a given Module based on a given input string and set of arguments to be pas...
ic-hep/DIRAC
src/DIRAC/Core/Utilities/ModuleFactory.py
Python
gpl-3.0
1,990
[ "DIRAC" ]
2a60f92d4bf57fd47833301506c283ab11d8cbd8271fbaa248a777a8e52cfead
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 # # Copyright (C) 2020 Stoq Tecnologia <http://www.stoq.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 Foundation;...
stoq/stoq-server
stoqserver/api/resources/b1food.py
Python
gpl-2.0
44,437
[ "VisIt" ]
6ef829975bb8ebd62e8db5be7ec34afc1f0e3568891df42cba2320323cdf460d
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
lgarren/spack
var/spack/repos/builtin/packages/r-affycontam/package.py
Python
lgpl-2.1
1,837
[ "Bioconductor" ]
c31cc4cb36bbbfffc858ef4002b7f9da931faea4936c45a3be74c9bbdae750ae
""" Hidden Markov model (HMM) with Gaussian observations This example shows how a hidden Markov model can be implemented as a dynamic Bayesian network. The DBN is be unrolled for N time-slices and inference/learning is performed in the unrolled static network with condition PDFs shared across time slices. x1 _ x2 ....
bhrzslm/uncertainty-reasoning
my_engine/others/GrMPy/lib/GrMPy/Tests/test_ghmm.py
Python
mit
2,546
[ "Gaussian" ]
d994bd64474e9566f10f60a73e118bbbebc1c1ceae9850832679b4cfc997b7b6
#!/usr/bin/env python import pylab as pyl import numpy as np import matplotlib.pyplot as pp #from enthought.mayavi import mlab import scipy as scp import scipy.ndimage as ni import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import rospy #import hrl_lib.mayavi2_util as mu import hrl_lib.viz as hv import hr...
tapomayukh/projects_in_python
classification/Classification_with_CRF/old_crfsuite_package/data_conversion.py
Python
mit
4,634
[ "Mayavi" ]
01b63712cb9f059b394aded291be73f84381bf350972f533a469a7994e7f69dc
# -*- coding: utf-8 -*- """ generators.py: Trivial result generation functions for illustrating tdda.referencetest Source repository: http://github.com/tdda/tdda License: MIT Copyright (c) Stochastic Solutions Limited 2016 """ from __future__ import division from __future__ import print_function from ...
tdda/tdda
tdda/referencetest/examples/generators.py
Python
mit
4,047
[ "exciting" ]
cfada21a802dc6dab252d3a355f2cd1ed6f697be5f0b0c1a6b641ae080ac824c
"""Joint variant calling with multiple samples: aka squaring off, or backfilling. Handles the N+1 problem of variant calling by combining and recalling samples previously calling individually (or in smaller batches). Recalls at all positions found variable in any of the input samples within each batch. Takes a general...
lbeltrame/bcbio-nextgen
bcbio/variation/joint.py
Python
mit
11,473
[ "pysam" ]
e7c54e3c2bdcbeb2cf488f1a336a8a348877c68a3f04569ec1ee01665b7a4fcb
from cStringIO import StringIO import numpy as np import warnings import xray from xray.backends.common import AbstractWritableDataStore from xray.conventions import (is_valid_nc3_name, coerce_nc3_dtype, encode_cf_variable) from xray.utils import Frozen class ScipyDataStore(AbstractWrit...
takluyver/xray
xray/backends/scipy_.py
Python
apache-2.0
3,452
[ "NetCDF" ]
94dcbf62b6e12eab24e2af0d19ab47368a73d23486b8927531a1a0ab6afe308b
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2012 Jan Decaluwe # # The myhdl library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as # published by t...
cordoval/myhdl-python
myhdl/_always_seq.py
Python
lgpl-2.1
7,997
[ "VisIt" ]
4302c36bd1fab7ba451184cf167d5fc32f3362ae24e0910ccc7073d97ae99a63
from django.shortcuts import render from django.conf import settings from django.core.files import File from protein.models import ProteinFamily, ProteinAlias, ProteinSet, Protein, ProteinSegment from common.views import AbsTargetSelection from common.views import AbsSegmentSelection from common.views import Abs...
cmunk/protwis
phylogenetic_trees/views.py
Python
apache-2.0
16,637
[ "CRYSTAL" ]
adb497aad15f847ba9f39a800c7272475e7a7ad845d1b98ae0ac7efbffd629a4
from pyatompaw import AtompawMaster # Atom definition atom = AtompawMaster('26-Fe') atom.launcher.set_executable(executable) atom.Atom_name = 'Fe' atom.Z = 26 rpaw = 2.12 # a.u. rshape = 1.81 rs = 2.01 rp = 1.81 rd = 2.01 rmax = 10.0 # a.u. rmatch = rpaw # Keywords atom.XC_functional = 'GGA-PBE' atom...
GkAntonius/pyatompaw
examples/Fe.py
Python
gpl-3.0
2,166
[ "ABINIT" ]
ce44fc33b9f1dee4a2f945dd0c2fcc61415d4e364085c35b875430ad804a8d54
#!/usr/bin/env python """ routines describing the number density evolution of galaxy populations in Illustris. """ __author__ = "Paul Torrey with contributions from Ryan McKinnon" __copyright__ = "Copyright 2015, The Authors" __credits__ = ["Paul Torrey and Ryan McKinnon"] __license__ = "GPL" __version__ = "1.0" __mai...
ptorrey/torrey_cmf
torrey_cmf.py
Python
gpl-2.0
15,955
[ "Galaxy" ]
a349d8ea39fe24599ae4ed2c5bd29cd797c8b9de8fd1242cbc5b202b6e296324
# -*- coding: utf-8 -*- # # test_clopath_synapse.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 Li...
hakonsbm/nest-simulator
pynest/nest/tests/test_clopath_synapse.py
Python
gpl-2.0
9,545
[ "NEURON" ]
125c89b155bfe4118cb4ff8a6db83b9db4f0f3df86a947736f78cf9eb8be2c15
# nnmware(c)2012-2020 from __future__ import unicode_literals import json from django.contrib import messages from django.utils.deprecation import MiddlewareMixin from django.utils.timezone import now from nnmware.core.utils import setting from nnmware.core.http import get_session_from_request from nnmware.core.mode...
nnmware/nnmware
core/middleware.py
Python
gpl-3.0
2,844
[ "Firefly", "Galaxy" ]
9d938a2bd01da6ddcde85b837c69293506970adbd2b20112c914e62182e4b630
""" Acceptance tests for grade settings in Studio. """ from __future__ import absolute_import from bok_choy.promise import EmptyPromise from six.moves import range from common.test.acceptance.fixtures.course import XBlockFixtureDesc from common.test.acceptance.pages.studio.settings_graders import GradingPage from com...
ESOedX/edx-platform
common/test/acceptance/tests/studio/test_studio_grading.py
Python
agpl-3.0
10,392
[ "VisIt" ]
6a8472950dfa5f1fd6fe3a9120f0bc52608546db1230e70bc4316bb0696f2c40
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
neuroidss/nupic.vision
nupicvision/regions/ImageSensorFilters/GaussianBlur.py
Python
gpl-3.0
1,746
[ "Gaussian" ]
fae41f80e0df21d4654f056617ac31a17ec2efaeace1a87f72517e3ee1cbe9b1
#!/usr/bin/env python # # GPytage config.py module # ############################################################################ # Copyright (C) 2008-2010 by Kenneth Prugh, Brian Dolbec # # ken69267@gmail.com # # ...
Ken69267/gpytage
gpytage/config.py
Python
gpl-2.0
2,419
[ "Brian" ]
aab682be0dc448f9e6644212a996233b510959d6948a35749f8b7a3e630942a0
import numpy as np import ephem from scipy.stats import norm def gaussian(x, a, b, c, d): val = d + (a * np.exp(-(x - b)**2 / c**2)) return val def fehprior(feh): _fehprior = (0.8/0.15*np.exp(-0.5*(feh-0.016)**2./0.15**2.) +0.2/0.22*np.exp(-0.5*(feh+0.15)**2./0.22**2.)) return _fehpri...
danxhuber/isoclassify
isoclassify/grid/priors.py
Python
mit
1,993
[ "Gaussian" ]
441bf32fac3692aba3519bb806395c495e8696b1b71cb500d50821412a49cf79
#!/usr/bin/env python import numpy import netCDF4 import argparse import os def parseCommandLine(): """ Parse the command line and invoke operations. """ parser = argparse.ArgumentParser(description= ''' Reads WOA05 ascii files and writes as netcdf. ''', epilog='Written by A.Adcroft, 2...
adcroft/convert_WOA05
python/WOA05_to_netcdf.py
Python
mit
5,973
[ "NetCDF" ]
0dd176714cfdb515f04c0585d15542823715708e2094e30e2b8c7ab649b193d3
#!/usr/bin/env python ''' TrainNetwork.py Written by Jeff Berry Jul 1 2010 Revised by Gus Hahn-Powell March 8 2014 purpose: Train a translational Deep Belief Network for tracing. The training data should be arranged in a folder called Subject<N>, where N is any positive integer, such as Subject1. Images are locate...
arizona-phonological-imaging-lab/Autotrace
matlab-version/TrainNetwork2.py
Python
mit
16,128
[ "Gaussian" ]
ee0e1b9539ec85e8430bf4714f8abc3ed8aefe5a8e208e100c01e69cc0af166b
import sys sys.path.insert(1, "../../../") import h2o, tests import random def cv_carsGBM(): # read in the dataset and construct training set (and validation set) cars = h2o.import_file(path=h2o.locate("smalldata/junit/cars_20mpg.csv")) # choose the type model-building exercise (multinomial classificati...
tarasane/h2o-3
h2o-py/tests/testdir_algos/gbm/pyunit_cv_carsGBM.py
Python
apache-2.0
7,238
[ "Gaussian" ]
858720fd2c688f47838189f88a6a399f483d6fa8fadd529056c8e5f556da550c
# Copyright (C) 2015 Hydriz Scholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in ...
Hydriz/DBReports
reports/nspagecount.py
Python
gpl-3.0
3,398
[ "VisIt" ]
1a8be4a973af30129c4428df441d8d948e2e001059b7b45c4a1e2366a7d35801
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...
lhilt/scipy
scipy/stats/morestats.py
Python
bsd-3-clause
111,757
[ "Gaussian" ]
f670b57b1050ccbc3783ca52f848626bc5a84927df3e813b2be82d8193ef94c3
""" Service class implements the server side part of the DISET protocol There are 2 main parts in this class: - All useful functions for initialization - All useful functions to handle the requests """ from __future__ import absolute_import from __future__ import division from __future__ import print_function ...
yujikato/DIRAC
src/DIRAC/Core/DISET/private/Service.py
Python
gpl-3.0
28,969
[ "DIRAC" ]
99110fd1048ef399a3e0eaf2a03b4450bcd6583b487c33a0b84e63970c62ba69
from . import neuralnet from . import neuron from . import helpers __all__ = ["neuralnet", "neuron", "helpers"]
jpypi/ffnn
__init__.py
Python
mit
113
[ "NEURON" ]
0bd722962dd488d122425edd1be2ab0a1ba5e2ade6cc472dfe6a277ed1f793e8
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + from __future__ import (absolute_import, divi...
mganeva/mantid
scripts/AbinsModules/SingleCrystalData.py
Python
gpl-3.0
1,850
[ "CRYSTAL" ]
f5ffe26bd6345e8a0cbc7fb76bc0c2c97adefeb8f4c2e973c64a8e39e618b037
# Copyright (c) 2021 PaddlePaddle 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 app...
PaddlePaddle/Paddle
python/paddle/nn/initializer/dirac.py
Python
apache-2.0
7,958
[ "DIRAC" ]
d20300442db00576613e7e6d3af4f385f67910926cefcc2291a544293265ec86
import msmexplorer as msme from msmexplorer.utils import msme_colors from matplotlib.ticker import FuncFormatter from matplotlib import pyplot as pp from traj_utils import split_trajs_by_type import numpy as np import pandas as pd import seaborn as sns from glob import glob from natsort import natsorted, order_by_index...
jeiros/Scripts
AnalysisMDTraj/plot_utils.py
Python
mit
26,888
[ "MDTraj" ]
a3a7681d47b30c27e777f0a66d928fab7433af459ae851728e5e82b4c81659b7
# # This source file is part of appleseed. # Visit https://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2017-2018 Francois Beaune, The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining ...
Biart95/appleseed
sandbox/samples/python/studio/plugins/basicenumerator/__init__.py
Python
mit
2,107
[ "VisIt" ]
ae4c5bf7de50fd8def4fc291623217b56b2ffd1be958027a64667bb312f6651d
from __future__ import annotations import collections import glob import os import procrunner import pytest from cctbx import uctbx from dxtbx.model import ExperimentList from dxtbx.serialize import load from dials.array_family import flex def unit_cells_are_similar( uc1, uc2, relative_length_tolerance=0.01, ...
dials/dials
tests/algorithms/indexing/test_index.py
Python
bsd-3-clause
28,216
[ "CRYSTAL" ]
ce5e82e6d04918833991fcdf1382c911d13f38ff4f126313772504f3fdce401f
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-06-15 20:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stein', '0006_auto_20151115_1744'), ] operations = [ migrations.AddField( model_name='mineraltype', ...
GeoMatDigital/django-geomat
geomat/stein/migrations/0007_auto_20160615_2017.py
Python
bsd-3-clause
4,515
[ "CRYSTAL" ]
e932c881f635a4b99b97364a9d9a65f4e8bb78e687d4553c6ad11437ea63cee9
""" Module: audit_tie_breaker Author: Berj K. Chilingirian Date: 10 August 2016 Description: The Australian Senate Election (ASE) may require an Australian Election Official (AEO) to break a tie. There are three cases in which ties must be broken manually by an AEO: Case 1: Election Order Tie...
berjc/aus-senate-audit
aus_senate_audit/audit_tie_breaker.py
Python
apache-2.0
14,693
[ "ASE" ]
eae5eeb2f8fe6eae498c5e0d7b9c8008154b19494eeb4ce61a2e96718cca977a
# Tests for basic Tkinter widgets. import Tkinter import Test Test.initialise() testData = () if Tkinter.TkVersion >= 8.0: button_num = 31 frame_num = 16 menu_num = 20 menubutton_num = 32 else: button_num = 30 frame_num = 15 menu_num = 19 menubutton_num = 31 c = Tkinter.Button te...
CasataliaLabs/biscuit_drishtiman
Pmw-2.0.0/build/lib.linux-x86_64-2.7/Pmw/Pmw_1_3_3/tests/Tkinter_test.py
Python
gpl-3.0
12,105
[ "Brian" ]
4cd0991c892a3cc25df6c9462cd86deb6884742cca3c9fd24ee14bc6b80752ab
""" Unit test for ConsistencyInspector """ import unittest import datetime from mock import MagicMock from DIRAC import gLogger from DIRAC.Resources.Catalog.test.mock_FC import fc_mock # sut from DIRAC.DataManagementSystem.Client.ConsistencyInspector import ConsistencyInspector class UtilitiesTestCase( unittest.Tes...
Andrew-McNab-UK/DIRAC
DataManagementSystem/Client/test/Test_Client_DataManagementSystem.py
Python
gpl-3.0
9,190
[ "DIRAC" ]
765d71200a05bb98f5776f7efd42efb1f74195005e1bf70d268a81133b613717
#!/usr/bin/env python """ login to my wifi """ from splinter.browser import Browser from time import sleep URL = 'https://controller...' def main(): br = Browser('chrome') br.visit(URL) sleep(3) if br.is_text_present('Connection', wait_time=7): br.fill('login', '...') br.fill('passwo...
jabbalaci/jabbapylib
demos/browser_automation/splinter_wifi.py
Python
gpl-3.0
523
[ "VisIt" ]
9d54d59e084d17cd25655b1064b706933b3f3896a6f9e57f212327006351b7b9
#! /usr/bin/env python # -*- coding:utf-8 # Convolutional Neural Network (CNN) for recognizing handwritten digits, using tflearn # Special thanks: Harisson@pythonprogramming.net ''' File name: cnn_simple.py Author: chimney37 Date created: 12/09/2017 Python Version: 3.62 ''' import tflearn from tflearn....
chimney37/ml-snippets
cnn_simple.py
Python
mit
6,827
[ "NEURON" ]
35c84a24cbe67986934c32090e61b4a5398602587d0aa7014f8e63015966f519
# -*- coding: utf-8 -*- # # librosa documentation build configuration file, created by # sphinx-quickstart on Tue Jun 25 13:12:33 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
ebattenberg/librosa
docs/conf.py
Python
isc
8,244
[ "Brian" ]
4b7741fef757c43792c347d69a57aac37fc2eada28dd2566f7d130c708d13a91
from DIRAC.Core.Base import Script Script.parseCommandLine() import unittest import itertools from DIRAC.DataManagementSystem.DB.FileCatalogDB import FileCatalogDB from DIRAC.Core.Security.Properties import FC_MANAGEMENT seName = "mySE" testUser = 'atsareg' testGroup = 'dirac_user' testDir = '/vo.formation.idgrille...
coberger/DIRAC
DataManagementSystem/DB/test/TestFileCatalogDB.py
Python
gpl-3.0
43,159
[ "DIRAC" ]
e9b082139833e1511d4cae3138a8303a1dc29fe3fb9e562cb29fa17c55742a19
import argparse import os import numpy as np import pylab as pl import itertools from astropy.coordinates import Angle from numpy.polynomial.chebyshev import chebval from scipy.interpolate import interp1d import SEDMr.Wavelength as Wavelength import SEDMr.Spectra as SedSpec import SEDMr.Version as Version # Nadia im...
scizen9/kpy
SEDMr/CurveOfGrowth.py
Python
gpl-2.0
20,078
[ "Gaussian" ]
46432cf63926ae6b2257b440fbd6ce8f2fcf175bfd5f07ee9b843fe2971d23f4
#!/usr/bin/env python3 # Copyright 2017 Jan von Cosel # # This file is part of utility-scripts. # # utility-scripts 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 yo...
janvc/utility-scripts
scripts/genviper.py
Python
gpl-3.0
3,352
[ "Gaussian" ]
0db281c4ef2a69589ddb0d67f1a407545782f3385700ea7d29092cc5e2016ecb
# # @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 file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
jH0ward/psi4
psi4/driver/p4util/__init__.py
Python
lgpl-3.0
1,155
[ "Psi4" ]
81ae451eb5d4bdafafc594ae45f2623aa45f3195485915e4608b192ca9416687
#!/usr/bin/env python # 12.01.2007, c import os.path as op import shutil from optparse import OptionParser import sfepy from sfepy.base.base import * from sfepy.base.conf import ProblemConf, get_standard_keywords from sfepy.applications import SimpleApp ## # 26.03.2007, c def print_terms(): import sfepy.terms as...
olivierverdier/sfepy
simple.py
Python
bsd-3-clause
4,701
[ "VTK" ]
859b7223f7617092cf03af3a68a1196e92f6ce5f110b82af56fe906fbea47572
import pandas as pd import numpy as np import json from datetime import datetime from queries import * from dataset import * def price_quartiles(df): if('price' in df.columns): prices = df['price'] first, second, third = prices.quantile([.25, .5, .75]) return first, second, third else:...
jairot/meliscore
meliscore/front/sweet_price_spot.py
Python
bsd-3-clause
2,353
[ "Galaxy" ]
cbc830e2451773839c1b48a9faf075543d4e0f3f6c2c898a0957d738eead14e4
from common import Modules, data_strings, load_yara_rules, PEParseModule, ModuleMetadata, is_ip_or_domain import pefile class diamondfox(PEParseModule): def __init__(self): md = ModuleMetadata( module_name="diamondfox", bot_name="diamondfox", description="Bot that steal...
bwall/bamfdetect
BAMF_Detect/modules/diamondfox.py
Python
mit
4,881
[ "Brian" ]
c21e4bac3c5bbe3245cb81e9f115feada7dd6c0f2c5a5a608d6def6b68ef415c
# Copyright (C) 2010-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
hmenke/espresso
testsuite/python/dds-and-bh-gpu-perf.py
Python
gpl-3.0
7,321
[ "ESPResSo" ]
d06b7b99feab128171bff8f0b703af05f8684a133612b17f144660d4e1efc20e
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
capoe/espressopp.soap
src/soap/Descriptor.py
Python
gpl-3.0
2,040
[ "ESPResSo" ]
2fd549fad1b2799a9a7e3a100a51971193ac730b43f9c40031d6f527418ca513
import numpy as np from . import _get_default_resolution def conv(a,b,padding_things_equal=[1,3,4],padding_things_tail=[1],*args,**kwargs): raise Exception("Needs reimplementation!") a_ = a.copy() b_ = b.copy() a_ = np.pad(a_,[(s-1,s-1) for si,s in enumerate(b_.shape)],mode='constant') return _con...
jahuth/convis
convis/numerical_filters.py
Python
gpl-3.0
10,343
[ "Gaussian" ]
b9d9727fee7626960b65beeab1d5d1708b7e606b0413f310fa49b7b4f7b010b8
import pandas as pd from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.ensemble import BaggingClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.ensemble import ExtraTreesClassifier from sklearn.neural_network import MLPClassifie...
rupakc/Kaggle-Compendium
Spooky Author Identification/spooky-baseline.py
Python
mit
2,770
[ "Gaussian" ]
d7307428c004830c11d32c9a8f67a3b8292f86cf23075c320e713b2b3f1eb912
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # lsvgridtriggers - simple list of vgrid triggers for a grid with access # Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms...
heromod/migrid
mig/shared/functionality/lsvgridtriggers.py
Python
gpl-2.0
2,787
[ "Brian" ]
c8175b2ac67e63e858df3bba9a663b2e6660ef2c2111d93b1276849c9a5532e1
import numpy from rdkit.Chem import AllChem from steps.preprocessing.shared.chemicalproperties import chemical_properties from steps.preprocessing.shared.tensor2d import bond_positions, bond_symbols with_empty_bits = False padding = 2 def molecule_to_2d_tensor(molecule, index_lookup, rasterizer_, preprocessed_shape...
patrick-winter-knime/mol-struct-nets
molstructnets/steps/preprocessing/shared/tensor2d/molecule_2d_tensor.py
Python
gpl-3.0
3,723
[ "RDKit" ]
087c302bdfd6219a6ee44122f4a6e154fab6554e06eaf772585eb33cc01cb5f6
''' Pulse characterization Created Fri May 12 2017 @author: cpkmanchee ''' import numpy as np import os.path from inspect import getargspec from warnings import warn from beamtools.constants import h,c,pi from beamtools.common import normalize, gaussian, sech2, alias_dict, FitResult from beamtools.import_data_file...
kikimaroca/beamtools
beamtools/pulse.py
Python
mit
10,038
[ "Gaussian" ]
bfc98a5e9f835b360527b43db92e6e668a6b00b863aa71a3005ebaef7a41630c
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RHdf5array(RPackage): """HDF5 backend for DelayedArray objects Implements the HDF5...
LLNL/spack
var/spack/repos/builtin/packages/r-hdf5array/package.py
Python
lgpl-2.1
2,830
[ "Bioconductor" ]
906b96c74f0184c131cc70e91e08e3caa90d54d0e09cfde55aa975a5bda71d9c
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator as glm # test scoring_history for Gaussian family with validation dataset and cv def test_gaussian_alpha(): col_list_compare = ["iterations", "objective", "negative_log_l...
h2oai/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_8077_gaussian_alpha.py
Python
apache-2.0
3,487
[ "Gaussian" ]
bfb78afeed74a3ef0a7b4b9a90b4ceb9a52aaf7c901614a060175a30cee4a7d5
"""A client for the device based server.""" # # Copyright (c) 2010 Brian E. Granger and Eugene Chernyshov # # This file is part of pyzmq. # # pyzmq is free software; you can redistribute it and/or modify it under # the terms of the Lesser GNU General Public License as published by # the Free Software Fo...
mgadi/naemonbox
sources/psdash/pyzmq-13.1.0/examples/device/client.py
Python
gpl-2.0
1,140
[ "Brian" ]
ee2063100d4cf17d2582deed7e14a739e520215706e5acef39de172473362820
# -*- coding: utf-8 -*- # Copyright (c) 2020 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type import pytest from ansible import context from ansible.cli.galaxy import Gala...
atosorigin/ansible
test/units/cli/galaxy/test_execute_list_collection.py
Python
gpl-3.0
10,584
[ "Galaxy" ]
2ffb016e5454e47ffb51aa5a3af58c60d9250f4435903326d962c5f99b622e00
""" Instructor Dashboard Views """ import logging import datetime from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey import uuid import pytz from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_POST from django.utils.translation imp...
kursitet/edx-platform
lms/djangoapps/instructor/views/instructor_dashboard.py
Python
agpl-3.0
30,777
[ "VisIt" ]
942adb0a05994363fa30932d39c0cfd921ad343eeb8018b58e17336dcbfed1b8
import sys sys.path.insert(1, "../../../") import h2o, tests import random def cv_carsGLM(): # read in the dataset and construct training set (and validation set) cars = h2o.import_file(path=h2o.locate("smalldata/junit/cars_20mpg.csv")) # choose the type model-building exercise (multinomial classificati...
tarasane/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_cv_carsGLM.py
Python
apache-2.0
6,743
[ "Gaussian" ]
d946f308171169573b44ebb0281ca5ccc5290dbfb4f99d91c5c1d1ab58164ee0
#!/usr/bin/env python2.7 # # ---------------------------------------------------------------------------------------------------- # # Copyright (c) 2007, 2012, 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 redis...
smarr/graal
mxtool/mx.py
Python
gpl-2.0
219,099
[ "VisIt" ]
a5c97a1c7c86f33a82043994bae6f379585ca5e01fe14d330e87c151eda1f716
# Placeholder because log moved # Remove this in version 1.0 import warnings with warnings.catch_warnings(): warnings.simplefilter('always', DeprecationWarning) warnings.warn(("log has moved to MDAnalysis.lib.log " "and will be removed from here in release 1.0"), Deprecatio...
alejob/mdanalysis
package/MDAnalysis/core/log.py
Python
gpl-2.0
355
[ "MDAnalysis" ]
ef43bc53ec6b62a11e3e9caa05be7cddd01fe1280936dfd8664459d40ff12bb0
from locust import TaskSet, task, HttpLocust class UserBehavior(TaskSet): def on_start(self): self.index = 0 @task def test_visit(self): url = self.locust.share_data[self.index] print('visit url: %s' % url) self.index = (self.index + 1) % len(self.locust.share_data) s...
WZQ1397/automatic-repo
project/locust/locustcircle_url_test.py
Python
lgpl-3.0
530
[ "VisIt" ]
41c40ec0953345133d80a1bae92a63647d144a4ad457b23b627a9d1486971327
# -*- coding: utf-8 -*- ############################################################################# # SRWLIB Example: Virtual Beamline: a set of utilities and functions allowing to simulate # operation of an SR Beamline. # The standard use of this script is from command line, with some optional arguments, # e.g. for ...
radiasoft/sirepo
tests/template/srw_import_data/amx.py
Python
apache-2.0
34,767
[ "CRYSTAL" ]
d06308a3a5a491cb72a94e5c57bf910544b7cbc38a26de5c7107958593b58cf3
# Test BUG #0015025: Toggling annotation text visibility in Catalyst/batch doesn't work. from paraview.simple import * from paraview import smtesting smtesting.ProcessCommandLineArguments() v = CreateRenderView() v.OrientationAxesVisibility = 0 HeadingText = Text(Text="Hello World") HeadingRep = Show() HeadingRep.Wi...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/ParaViewCore/ServerManager/Default/Testing/Python/AnnotationVisibility.py
Python
gpl-3.0
875
[ "ParaView", "VTK" ]
003cf9c46a85670dad775f3b13964018df2be8b6eb38f45b648d92ff3a51ac86
# -*- coding: utf-8 -*- import logging from cStringIO import StringIO from math import exp from lxml import etree from path import path # NOTE (THK): Only used for detecting presence of syllabus import requests from datetime import datetime import dateutil.parser from lazy import lazy from xmodule.modulestore import ...
pelikanchik/edx-platform
common/lib/xmodule/xmodule/course_module.py
Python
agpl-3.0
42,126
[ "VisIt" ]
7b91c9406a47ce0d36ebb83dcbfea8c2e7d17ebda0071b6c02284d86a8b7bd84
""" Utilities to evaluate pairwise distances or affinity of sets of samples. This module contains both distance metrics and kernels. A brief summary is given on the two here. Distance metrics are a function d(a, b) such that d(a, b) < d(a, c) if objects a and b are considered "more similar" to objects a and c. Two ob...
ominux/scikit-learn
sklearn/metrics/pairwise.py
Python
bsd-3-clause
20,713
[ "Gaussian" ]
b14fb26d857f5ae3f25422aac9ce0cc3ad1d7474aa762a9ea03f7f0da61bb069
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.absp...
ldimaggi/fabric8-test
EE_API_automation/pytest/setup.py
Python
apache-2.0
6,875
[ "VisIt" ]
b72599d22a75318a322c3672761273adaacf00d17cb056cf12cd895d57348197
""" Testing for the forest module (sklearn.ensemble.forest). """ # Authors: Gilles Louppe, # Brian Holt, # Andreas Mueller, # Arnaud Joly # License: BSD 3 clause import pickle import math from collections import defaultdict import itertools from itertools import combinations from itertools ...
scikit-learn/scikit-learn
sklearn/ensemble/tests/test_forest.py
Python
bsd-3-clause
59,844
[ "Brian" ]
72115c71c860356060bc16f378e9c2533c18d7d02546903736a5880e5c896a21
# Copyright 2012 IKT Leibniz Universitaet Hannover # GPL2 # Zdravko Bozakov (zb@ikt.uni-hannover.de) import os import sys import pprint import logging import threading import time import subprocess from collections import deque try: # import numpy as np #FIXME from numpy import * import types ...
bozakov/H-probe
parser_xcov.py
Python
gpl-2.0
14,995
[ "Gaussian" ]
e4b8ce2560fa7d7b1e6a702ca5da20a0797424b3f18df17df09461307b59d10a
# Copyright (C) 2015-2017 # Jakub Krajniak (jkrajniak at gmail.com) # 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 soft...
MrTheodor/AdResSLab
adresslab/topology_helper.py
Python
gpl-3.0
17,636
[ "ESPResSo", "GROMOS", "Gromacs" ]
bc30b9d91d2c57ae58bf75a6e6c0c2935858ed02f2bc697e1929757cfa2380f9
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # 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) # # Released under th...
alejob/mdanalysis
package/MDAnalysis/topology/guessers.py
Python
gpl-2.0
12,236
[ "Amber", "CHARMM", "GROMOS", "MDAnalysis", "VMD" ]
894953d5143d03c035cd1624033190c306c783d3d928fd8145931de3933f636e
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2005-2007 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/gui/templates/persontemplate.py
Python
gpl-2.0
12,295
[ "VisIt" ]
6dcde2c1764ea1cc07742b1a8d7e11666b371e5a4ae29550c7eb8bc3e501581b
#!/usr/bin/env python from setuptools import setup, find_packages from kademlia import version setup( name="kademlia", version=version, description="Kademlia is a distributed hash table for decentralized peer-to-peer computer networks.", author="Brian Muller", author_email="bamuller@gmail.com", ...
Tha-Robert/kademlia
setup.py
Python
mit
504
[ "Brian" ]
70eb5f503059f23fc9a33793a9d1fa8e7763e1b04da57b5aee78709ac2e36e49
# text from https://microbit-micropython.readthedocs.io/en/latest/microbit_micropython_api.html def sleep(ms): """sleep for the given number of milliseconds.""" def running_time(): """returns the number of milliseconds since the micro:bit was last switched on.""" def panic(error_code): """makes the micro:...
hickford/microbit-dummy-python-api
microbit.py
Python
mit
3,004
[ "exciting" ]
2efb6e25c899c4d11d0b4c32888587befb509e30d1a543b2833fb0a703de3128
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/pbc/dft/roks.py
Python
apache-2.0
2,644
[ "PySCF" ]
2c50112bf0fcf270cefd7d70e574c93973613c027465dfb03d2bd6fc7e036b5b
#!/usr/bin/env python3 """ Copyright (C) 2015 Petr Skovoroda <petrskovoroda@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later v...
PetrSkovoroda/silver-rain
src/silver/schedule.py
Python
gpl-2.0
26,542
[ "exciting" ]
7f17b44d93238e9d397c20c3c0ce545740d8d0153540427788f23e3ac02e4bba
#!/usr/bin/env python #JSON {"lot": "UKS/6-31G(d)", #JSON "scf": "EDIIS2SCFSolver", #JSON "er": "cholesky", #JSON "difficulty": 5, #JSON "description": "Basic UKS DFT example with hyrbid GGA exhange-correlation functional (B3LYP)"} import numpy as np from horton import * # pylint: disable=wildcard-import,unused-w...
theochem/horton
data/examples/hf_dft/uks_methyl_hybgga.py
Python
gpl-3.0
4,578
[ "Gaussian" ]
4cc22780cd92d5cc03e2f00d068e038064419602d5eab732fabc117feb734489
# -*- Mode: Python; coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2013 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 General Public License as published by ## the Free Sof...
andrebellafronte/stoq
plugins/optical/tests/test_optical_history.py
Python
gpl-2.0
4,533
[ "VisIt" ]
2dc4da39d120ee5d4a79e45fa672c9d818905a037e0fc165a501b5e78737816f
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of the G...
espressopp/espressopp
src/analysis/StaticStructF.py
Python
gpl-3.0
4,261
[ "ESPResSo" ]
457eb168db381e7ae2ad5403b9f6af36c02375d430ef147eb1a683c477a48e4b
"""Code run on the client side for unstaging complete Pulsar jobs.""" from contextlib import contextmanager from logging import getLogger from os.path import join, relpath from json import loads from ..action_mapper import FileActionMapper from ..staging import COMMAND_VERSION_FILENAME log = getLogger(__name__) de...
natefoo/pulsar
pulsar/client/staging/down.py
Python
apache-2.0
9,758
[ "Galaxy" ]
912fce42564fbe66c8a4ba928109ca131be40cdf599d7fa569a242b65d28f7a7
# -*- coding: utf-8 -*- """Various text used throughout the website, e.g. status messages, errors, etc. """ from website import settings # Status Messages ################# # NOTE: in status messages, newlines are not preserved, so triple-quotes strings # are ok # Status message shown at settings page on first login...
adlius/osf.io
website/language.py
Python
apache-2.0
9,431
[ "VisIt" ]
64948582ee92302788ece94c3ed885bfcaec38ba31eea578e34c375bc0191472
""" A collection of utility functions and classes. Originally, many (but not all) were from the Python Cookbook -- hence the name cbook. This module is safe to import from anywhere within matplotlib; it imports matplotlib only at runtime. """ from __future__ import (absolute_import, division, print_function, ...
jonyroda97/redbot-amigosprovaveis
lib/matplotlib/cbook/__init__.py
Python
gpl-3.0
84,575
[ "Gaussian" ]
033ad94489de307c8d11937d0ab4a40f425f909fce63733b0def065c4c2d2f79
#!/usr/bin/env python2 # # Copyright 2012 Unknown <diogo@arch> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # ...
ODiogoSilva/TriFusion
trifusion/orthomcl_pipeline.py
Python
gpl-3.0
24,641
[ "BLAST" ]
5333c7d8032d312cc3a66f53d479e9feb079fabb942bc67d5969833d93638a81
#!/usr/bin/env python # 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 # # U...
gkc1000/pyscf
pyscf/cc/uccsd_t_lambda.py
Python
apache-2.0
9,887
[ "PySCF" ]
683a72bd7eafaaa617439eb2eaaadb85162ed6f7eaa4fd92407f2c1187ddeaab
# # @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/share/psi4/databases/HSG.py
Python
gpl-2.0
46,440
[ "Psi4" ]
685d372a4461809fd8be0ace4fc81626cdcffab30a63ce6e7a463bc771472654
# -*- coding: utf-8 -*- import logging import os import subprocess from galaxy.datatypes.data import get_file_peek, Text from galaxy.datatypes.metadata import MetadataElement log = logging.getLogger(__name__) def count_special_lines(word, filename, invert=False): """ searching for special 'words' using...
yhoogstrate/tools-iuc
datatypes/msa/stockholm_1_0/stockholm_1_0.py
Python
mit
4,042
[ "Galaxy" ]
5a6235c2635e2dde8d3f31869fd45f28e6c220e677c02acf7ae7ce773375fb24
from setuptools import setup """ Static comments plugin for Pelican. """ setup( name='pelican_comments', version='0.0.1', long_description=__doc__, py_modules=['pelican_comments'], author='Brian St. Pierre', author_email='brian@bstpierre.org', classifiers=[ 'License :: OSI Approve...
bstpierre/pelican-comments
setup.py
Python
agpl-3.0
452
[ "Brian" ]
5bbe5a2d83fa57c9b5159b400a8097312fe80d83d4e017b8bbf86262e218d4f5
# Version: 0.19 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/python-versioneer/python-versioneer * Brian Warner * License: Public Domain * Compatible with: Python 3.6, 3.7, 3.8, 3.9 and pypy3 * [![Latest Version][pyp...
simongibbons/numpy
versioneer.py
Python
bsd-3-clause
70,185
[ "Brian" ]
3a0cf64223b6dd955068c4fd2e7a0009e9235c4ba13f3c559d7957ac6a41eea9
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2016-2020 Satpy developers # # This file is part of satpy. # # satpy is free software: you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation, either version 3 of the Licens...
pytroll/satpy
satpy/readers/netcdf_utils.py
Python
gpl-3.0
11,229
[ "NetCDF" ]
461a561463f8be3154d4e86b09923ef2eaa2f0650929234fda2c88007c67b8a9
# Copyright 2012 by Wibowo Arindrarto. 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. """Bio.SearchIO parser for BLAST+ tab output format, with or without comments.""" import ...
poojavade/Genomics_Docker
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Bio/SearchIO/BlastIO/blast_tab.py
Python
apache-2.0
33,732
[ "BLAST", "Biopython" ]
60498557660afe3f7649463063dcda9bf6a17ef60e1dc949dcf99230d974b746