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 |
|---|---|---|---|---|---|---|---|
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.shortcuts import render, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.views.decorators.cache import cache_page
from coredata.forms import RoleForm, UnitRoleForm, InstrRoleFormSet, MemberForm, Perso... | sfu-fas/coursys | coredata/views.py | Python | gpl-3.0 | 61,526 | [
"VisIt"
] | dc1136462a1f68c3f9b3ee6b2b24a921543f0689a8f40ae53e8254c815320205 |
#! /usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-admin-get-site-protocols
# Author : Stuart Paterson
########################################################################
"""
Check the defined protocols for all SEs of a given site
"""
__... | Sbalbp/DIRAC | Interfaces/scripts/dirac-admin-get-site-protocols.py | Python | gpl-3.0 | 1,196 | [
"DIRAC"
] | e1b3a54e6ede15033b50ba43ef1c9d3c857bffed83f47f5c111643aadfaff53c |
# -*- coding: utf-8 -*-
import pytest
import inferbeddings.parse.clauses as clauses
@pytest.mark.light
def test_parse_clauses_one():
clause_str = 'p(x, y) :- p(x, z), q(z, a), r(a, y)'
parsed = clauses.grammar.parse(clause_str)
clause = clauses.ClauseVisitor().visit(parsed)
assert isinstance(claus... | uclmr/inferbeddings | tests/inferbeddings/parse/test_parsers.py | Python | mit | 2,806 | [
"VisIt"
] | f3ea066f27541dc61fd95e1d8a54f2630a23022e705cf89e5da393743c5c00e2 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
import unittest
from pymatgen.optimization.linear_assignment import LinearAssignment
import numpy as np
class LinearAssignmentTest(unittest.TestCase):
def test(se... | sonium0/pymatgen | pymatgen/optimization/tests/test_linear_assignment.py | Python | mit | 7,666 | [
"pymatgen"
] | 86eabb3de54dfbf92f00e890abf8d1242cac6058d5b552bd34fbf38242f2e1bc |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012-2013 Michal Kalewski <mkalewski at cs.put.poznan.pl>
#
# This file is a part of the Simple Network Simulator (sim2net) project.
# USE, MODIFICATION, COPYING AND DISTRIBUTION OF THIS SOFTWARE IS SUBJECT TO
# THE TERMS AND CONDITIONS OF THE MIT LICENSE. YOU SHO... | mkalewski/sim2net | sim2net/failure/__init__.py | Python | mit | 1,788 | [
"VisIt"
] | a1f62c261b7bd572a4a9c6f4e1aea75aad5737c71f162d53dc36e7f01cfc4c22 |
import numpy as np
from scipy.ndimage import gaussian_filter1d
from tensortools.cpwarp.shifted_cp import ShiftedCP
from tensortools.cpwarp.multishift import MultiShiftModel
def simulate_shifted_cp(
shape, rank, max_shift=.5, smoothness=2.0, noise_scale=.1, seed=None):
"""
Generates a synthetic datase... | ahwillia/tensortools | tensortools/cpwarp/datasets.py | Python | mit | 3,512 | [
"Gaussian"
] | f97f5ff3da1f37ec5c7f3870725ed4836c244896bdecbc4cfe82f0b9b9c52a6e |
"""
Example of plotting a 3D vector field
"""
# set up some data to plot
from numpy import *
dim = 10
# initialise the positions of the vectors
x = zeros((dim,dim), dtype=floating)
y = zeros((dim,dim), dtype=floating)
z = zeros((dim,dim), dtype=floating)
# initialise the vector displacements
# (I may need to rethi... | paultcochrane/pyvisi | examples/renderers/vtk/arrowPlot3D.py | Python | gpl-2.0 | 4,745 | [
"VTK"
] | e42d0c13ab7bb044b2bb98fc384b1c74f5a94cddf9b195d781fff9a809332cdd |
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googlegenomics/gcp-variant-transforms | gcp_variant_transforms/beam_io/vcfio.py | Python | apache-2.0 | 23,219 | [
"pysam"
] | 5a2bdc6664560e85ff920085aa79b20483fee4057eced9be559e76919b5b7159 |
"""
Set of programs and tools to read the outputs from RH, 1.5D version
"""
import os
import datetime
import numpy as np
import xarray as xr
import h5py
class Rh15dout:
"""
Class to load and manipulate output from RH 1.5D.
"""
def __init__(self, fdir='.', verbose=True, autoread=True):
self.fil... | M1kol4j/helita | helita/sim/rh15d.py | Python | bsd-3-clause | 47,086 | [
"NetCDF"
] | c236a4d7842ada67c62ab13409b6c5ec554b7678fe62d007434acfa84773dd81 |
# -*- coding: utf-8 -*-
{
"'Sounds-like' name search allowing search even the spelling of the name is not known exactly": "'Sounds-like'名稱搜尋或搜尋,即使名稱的拼字不完全",
"A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that ha... | bobrock/eden | languages/zh-tw.py | Python | mit | 338,458 | [
"VisIt"
] | e8a2d4ef1d298c9d7f3c031adc5ee9be9943728daf5dd618b020cf4b14c902be |
import unittest
from test import test_support
from itertools import *
from weakref import proxy
from decimal import Decimal
from fractions import Fraction
import sys
import operator
import random
import copy
import pickle
from functools import reduce
maxsize = test_support.MAX_Py_ssize_t
minsize = -maxsize-1
def onear... | ljgabc/lfs | usr/lib/python2.7/test/test_itertools.py | Python | gpl-2.0 | 67,130 | [
"GULP"
] | 9ef90a39ba7d055300362d5709f69af2a22c9424c614a4a06d171e726725c110 |
from pymatgen.util.testing import PymatgenTest
from pymatgen.io.vasp.outputs import Xdatcar
from pymatgen.io.vasp.inputs import Poscar
from pymatgen.core.trajectory import Trajectory
from pymatgen.core.structure import Structure
from pymatgen.core.lattice import Lattice
import numpy as np
import os
test_dir = os.path.... | dongsenfo/pymatgen | pymatgen/core/tests/test_trajectory.py | Python | mit | 4,483 | [
"VASP",
"pymatgen"
] | f10defcc642837817e653a1c31b14469251b5781bcf28da4e19e68be446240bf |
"""The idea behind this module is to take the code that is repeated many times in the application and refactor it
so that the following functions can be used multiple times rather using duplicate code."""
import wx, wx.html
from wx.lib.mixins.listctrl import CheckListCtrlMixin, ListCtrlAutoWidthMixin
import MySQLdb, s... | barronmo/gecko_emr | EMR_utilities.py | Python | gpl-2.0 | 16,710 | [
"ADF",
"VisIt"
] | 40890cb6593bfe8ebe96966b5e67e14666c4e8f1e1543ca05fa48cc03f769300 |
#!/usr/bin/env python
""" load Visit into OSDF using info from data file """
import os
import re
from cutlass.Visit import Visit
import settings
from cutlass_utils import \
load_data, get_parent_node_id, list_tags, format_query, \
write_csv_headers, values_to_node_dict, write_out_csv, \
load_... | TheJacksonLaboratory/osdf_submit | nodes/visit.py | Python | gpl-3.0 | 5,197 | [
"VisIt"
] | 39bde6460ed09f8af8f8a35391299b3ba5270fe129534caa42e352de9b1dac2b |
import operator
import sys
from collections import defaultdict
from colorsys import rgb_to_hsv
from pathlib import Path
import numpy as np
from PIL import Image
class ColorModel:
version = 20210206
approx_ram_mb = 120
max_num_workers = 2
def __init__(self):
self.colors = {
# Name... | damianmoore/photo-manager | photonix/classifiers/color/model.py | Python | agpl-3.0 | 3,863 | [
"Amber"
] | cbefd32f10b8c7dbc0e2d2d31ae4a04932bdb70cbbf0096d915b168efa00ebb9 |
#!/usr/bin/env python
__author__ = "waroquiers"
import os
import random
import shutil
import unittest
import numpy as np
from monty.tempfile import ScratchDir
from pymatgen.analysis.chemenv.coordination_environments.voronoi import (
DetailedVoronoiContainer,
)
from pymatgen.core.lattice import Lattice
from pym... | gmatteo/pymatgen | pymatgen/analysis/chemenv/coordination_environments/tests/test_voronoi.py | Python | mit | 9,915 | [
"pymatgen"
] | 694ac5df21118c8836187ea9bd6176296261052e9288671d8a9f2a9b7bfa3bfe |
from __future__ import division, absolute_import, print_function
import warnings
import sys
import collections
import operator
import numpy as np
import numpy.core.numeric as _nx
from numpy.core import linspace, atleast_1d, atleast_2d
from numpy.core.numeric import (
ones, zeros, arange, concatenate, array, asarr... | rherault-insa/numpy | numpy/lib/function_base.py | Python | bsd-3-clause | 152,157 | [
"Gaussian"
] | b1da60468bcaf341a187154e9c588efb33f63676e72999e1095f5369ca683923 |
import operator
from ..node import NodeVisitor, DataNode, ConditionalNode, KeyValueNode, ListNode, ValueNode
from ..parser import parse
class ConditionalValue(object):
def __init__(self, node, condition_func):
self.node = node
self.condition_func = condition_func
if isinstance(node, Condi... | anthgur/servo | tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptmanifest/backends/conditional.py | Python | mpl-2.0 | 10,484 | [
"VisIt"
] | ff2d4db9e4954a2dd372bdb629ba516eed77c905ad296e46d4f57c3baafad44a |
"""
Example generation for the scikit learn
Generate the rst files for the examples by iterating over the python
example files.
Files that generate images should start with 'plot'
"""
from __future__ import division, print_function
from time import time
import ast
import os
import re
import shutil
import traceback
i... | ssaeger/scikit-learn | doc/sphinxext/gen_rst.py | Python | bsd-3-clause | 40,192 | [
"VisIt"
] | c8cc1613111a522c2144f7dc04650c69cd2c3a25bf444cd4fabb4e60991dfdd4 |
#!/usr/bin/env python
import os
import sys
import requests
import requests_cache
from bs4 import BeautifulSoup
from pprint import pprint
from lib.csvtools import dict_to_csv
def main():
requests_cache.install_cache('scraper_cache')
mfers = {}
website = 'http://southcarolinasccoc.weblinkconnec... | jctanner/scrapers | manufacturers-scraper.py | Python | apache-2.0 | 5,528 | [
"VisIt"
] | 6bac9c1f4e356cf69da250c3d0be42357aab0bcd5e12f5916dd9203a95006f13 |
# -*- coding: utf-8 -*-
"""
Django-Select2 Widgets.
These components are responsible for rendering
the necessary HTML data markups. Since this whole
package is to render choices using Select2 JavaScript
library, hence these components are meant to be used
with choice fields.
Widgets are generally of two types:
1... | DMOJ/django-select2 | django_select2/forms.py | Python | apache-2.0 | 14,773 | [
"VisIt"
] | e8199fe9742e0fddf89c190d9d019c09ed448bc1eaa9509ead7f2187377cdf4b |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | modeling/modeling/modeler.py | Python | agpl-3.0 | 5,083 | [
"Galaxy"
] | 40068662f859f9a355baea4e47934dd7cec2100f55434cc5fe8c860f19bf65af |
Data.days = 7
Data.members = q.QueryCount(
"MemberStatusId = 10[Member]")
Data.uniqueAttends = q.QueryCount(
"RecentAttendCount( Days=7 ) > 0")
Data.newAttends = q.QueryCount(
"HasRecentNewAttend( Days=7, NumberOfDaysForNoAttendance='365' ) = 1[True]")
Data.meetings = q.MeetingCount(Data.days, 0, 0, 0)
Data.numPres... | RGray1959/MyParish | CmsWeb/Content/VitalStats.py | Python | gpl-2.0 | 3,801 | [
"VisIt"
] | 060f5a1f2bb80203b36a4689e5df4f317955d3656f637692ece07efe6b524e16 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import pytest
import os.path as osp
from sisl import Geometry, Atom
from sisl.io.vasp.car import *
import numpy as np
... | zerothi/sisl | sisl/io/vasp/tests/test_car.py | Python | mpl-2.0 | 2,477 | [
"VASP"
] | 73476be61989d610222e34bfeaff097754efc985478a778cf2c1c73bfaa992bf |
"""Simple tight-binding add-on for GPAWs LCAO module."""
from math import pi
import numpy as np
import scipy.linalg as sla
import ase.units as units
from gpaw.utilities.tools import tri2full
class TightBinding:
"""Simple class for tight-binding calculations."""
def __init__(self, atoms, calc):
"""... | ajylee/gpaw-rtxs | gpaw/lcao/tightbinding.py | Python | gpl-3.0 | 6,810 | [
"ASE",
"GPAW"
] | 501a037793b92444009d9fea5a642261744721904ad6f0127444c7378c84b717 |
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2014-2018 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
# This file is part of qutebrowser.
#
# qutebrowser 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 So... | V155/qutebrowser | qutebrowser/qutebrowser.py | Python | gpl-3.0 | 8,778 | [
"VisIt"
] | bec47b6d658dd52ef58a8bfa6e4c52f52fba23293f98e6a00e349fd5cfe4aa0b |
# This file is part of cclib (http://cclib.github.io), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2016 the cclib development team
#
# The library is free software, distributed under the terms of
# the GNU Lesser General Public version 2.1 or later. You sh... | gaursagar/cclib | test/method/testorbitals.py | Python | bsd-3-clause | 2,060 | [
"Gaussian",
"cclib"
] | 17bd1051550b1cdfc66e7d4c459e6956f4408da526f7e6833b80df52a679cfd2 |
import configparser
import pathlib
import pickle
from PyQt5.QtCore import pyqtSlot, Qt, QTimer, QVariant, QEvent
from PyQt5.QtGui import QIcon, QCloseEvent, QCursor, QShowEvent, \
QWindowStateChangeEvent
from PyQt5.QtWidgets import QWidget, QFrame, QMessageBox, QSystemTrayIcon, \
QScrollArea, QMenu, QAction, Q... | minlexx/xnovacmd | ui/main.py | Python | gpl-2.0 | 31,915 | [
"Galaxy"
] | 10427f01383ed4f509613aaab5d0bb44e27c3e7ab21dcf0b2dc06abbc2bb2432 |
#!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the te... | dav1x/ansible | lib/ansible/modules/network/avi/avi_analyticsprofile.py | Python | gpl-3.0 | 27,868 | [
"VisIt"
] | 11fcb14a5545f8cf99b37e47081dce84397fedf50a2f80f48acfd62a5108255b |
# ./gen_hamm_dct.py
# script generateing NN initialization for training with TNet
#
# author: Karel Vesely
# calling example:
# python gen_mlp_init.py --dimIn=598 --dimOut=135 --dimHid=1024:1024:1024
#
import math, random
import sys
from optparse import OptionParser
parser = OptionParser()
parser.add_option('... | troylee/nnet-asr | tools/init/gen_discretelinearity_init.py | Python | apache-2.0 | 2,289 | [
"Gaussian"
] | 9baf79cbcce03b538f73f387a291ca7df89effeff77776479eb55dcaefa223bd |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# @Author: Brian Cherinka, José Sánchez-Gallego, and Brett Andrews
# @Date: 2016-04-11
# @Filename: rss.py
# @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause)
#
# @Last modified by: José Sánchez-Gallego (gallegoj@uw.edu)
# @Last modified time: 2018-... | albireox/marvin | python/marvin/api/rss.py | Python | bsd-3-clause | 7,763 | [
"Brian"
] | b1e6b419b1d0860fa1b6024af0862c7fa4cfc58a6455ca1dddb615dc62ed4596 |
# -*- coding: UTF-8 -*-
# Copyright 2017-2020 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
"""General demo data for Lino Avanti.
- Course providers and courses
"""
# from django.conf import settings
# from lino.utils import mti
from lino.utils import Cycler # join_words
from lino.utils.mldbc import ... | lino-framework/book | lino_book/projects/avanti1/fixtures/demo.py | Python | bsd-2-clause | 6,751 | [
"VisIt"
] | bfe6ab5d0ecdb406bc3772ae0aa69bce08352e11b8129527277b93f5a794103a |
#!/usr/bin/python3
# direct translation of extract_wb in python using as little external deps as possible
from __future__ import print_function
import sys
from sys import argv
import os
import xml.etree.ElementTree as ET
import subprocess
from subprocess import PIPE
import shlex
def eprint(*args, **kwargs):
print... | peterbud/darktable | tools/extract_wb.py | Python | gpl-3.0 | 16,361 | [
"Amber"
] | b19c2efcb98cd1196cac46a89f0db3a403ba937f92d941a58b8c2cc3b41baeb7 |
# ----------------------------------------------------------------------------
# cocos2d
# Copyright (c) 2008-2012 Daniel Moisset, Ricardo Quesada, Rayentray Tappa,
# Lucio Torre
# Copyright (c) 2009-2014 Richard Jones, Claudio Canepa
# All rights reserved.
#
# Redistribution and use in source and binary forms, with o... | Alwnikrotikz/los-cocos | cocos/director.py | Python | bsd-3-clause | 25,909 | [
"VisIt"
] | 58623547da7b3b65d47f2d8febdfacf37ee8a802a79102957a3cd9033a4ed845 |
ALLOWED = {"a",
"abandoned",
"able",
"aborted",
"abortion",
"about",
"above",
"absolute",
"absolutely",
"abuse",
"accept",
"acceptable",
"according",
"accountants",
"accounting",
"across",
"act",
"action",
"actually",
"ad",
"add",
"address",
"administration",
"ads",
"advantage",
"advertise",
"afford",
"afraid",
"after"... | cshaley/TrumpScript | src/trumpscript/allowed_words.py | Python | mit | 21,685 | [
"VisIt"
] | 9aed0d14b20cac21c642ace4adbd214d8f37fe834165ed4ec9c739054c1b8782 |
# normalised correlation test after gaussian smoothing
# gaussian radii: 40 and 60
# thresholds: dBZ = 15, 25, 35
#
import copy
from armor import pattern
from armor import objects3 as ob
from armor.tests.roughwork20131106 import construct3by3
#from armor.geomtery import frames as fr
import numpy as np
import numpy.ma... | yaukwankiu/armor | tests/gaussianSmoothedNormalisedCorrelationTest.py | Python | cc0-1.0 | 5,727 | [
"Gaussian"
] | 4d26fb95a9fe527f2ea321c5e5f5753fc6ede40e7821f1e41794ca6eebd10767 |
"""
==================
GMM classification
==================
Demonstration of Gaussian mixture models for classification.
See :ref:`gmm` for more information on the estimator.
Plots predicted labels on both training and held out test data using a
variety of GMM classifiers on the iris dataset.
Compares GMMs with sp... | 000ubird/HighResolution | src/samples/plot_gmm_classifier.py | Python | mit | 3,918 | [
"Gaussian"
] | dbc40730f0419c3f158e0e08df1a8e68edadb6fac582505df60d5afdb7866f7e |
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import six
from .biology import BiologyType
from .cell import Cell
from .dataObject import DatatypeProperty, ObjectProperty
__all__ = ['Connection']
class SynapseType:
Chemical = 'send'
Gap... | gsarma/PyOpenWorm | PyOpenWorm/connection.py | Python | mit | 3,807 | [
"NEURON"
] | f325665499ae6d380832f0ffce238b7a89db454facab0efcd2f8da7a1d4df474 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Module containing class to create an ion
"""
import re
from copy import deepcopy
import numpy as np
from monty.json import MSONable
from pymatgen.core.composition import Composition
from pymatgen.util.s... | gVallverdu/pymatgen | pymatgen/core/ion.py | Python | mit | 6,391 | [
"pymatgen"
] | 2860e0952b09cf04d400f71fe3f5a9953b2b6531a494e7fb2cf7b36bd439037b |
"""
Various general utility functions.
"""
import math
import os.path
import warnings
import scipy
import numpy as np
from medpy.io import load
import skimage
from skimage import io, transform, morphology, filters
from sklearn import cluster
def preprocess_image(image_path, mask_path=None):
"""Preprocess an ima... | samueljackson92/major-project | src/mia/utils.py | Python | mit | 7,885 | [
"Gaussian"
] | 0db775b5ee285cacaf266c37470f2ee7419845f383c5e2c249b6e3ccd5c6998b |
"""Test generation helpers
Intended to functionalize common tasks when working with the pytest_generate_tests hook.
When running a test, it is quite often the case that multiple parameters need to be passed
to a single test. An example of this would be the need to run a Provider Add test against
multiple providers. W... | dajohnso/cfme_tests | utils/testgen.py | Python | gpl-2.0 | 14,573 | [
"VisIt"
] | 2dbdffec8aff345422c5ef9f6f1ed528c2a272187dfdc409514a047ece72dab5 |
import os
import sys
import ast
import imp
import marshal
import meta
import cPickle as pickle
import optparse
from hashlib import sha256
from visitor import ScopeVisitor
from backend import Scope, Symbol, Instance, Context, Unknown
NAME = 'strictpy'
__version__ = '1.0.0'
def pyc_source(pyc_contents):
code_sect... | clark800/pystarch | main.py | Python | mit | 8,180 | [
"VisIt"
] | 6a3f6c44615bb3b1621eb81c99c69fce5ee91798753d525ca15c0b5e33c87bb9 |
"""Collection of :class:`~chainer.Function` implementations."""
from chainer.functions.activation import clipped_relu
from chainer.functions.activation import elu
from chainer.functions.activation import leaky_relu
from chainer.functions.activation import log_softmax
from chainer.functions.activation import lstm
from ... | AlpacaDB/chainer | chainer/functions/__init__.py | Python | mit | 8,397 | [
"Gaussian"
] | a4655b7c81379cf488dc6941cf2a215a69f69e98959a6b1b3034158f19717d37 |
# -*- python -*-
# Package : omniidl
# util.py Created on: 1999/11/2
# Author : David Scott (djs)
#
# Copyright (C) 2002-2008 Apasphere Ltd
# Copyright (C) 1999 AT&T Laboratories Cambridge
#
# This file is part of omniidl.
#
# omniidl is free software; you ... | ogata-lab/rtmsdk-mac | x86_64/lib/python2.7/site-packages/omniidl_be/cxx/util.py | Python | lgpl-2.1 | 7,529 | [
"VisIt"
] | 5b73819eaa9e55762dd7ab80f04388e00fd0bdaf6ea9d4f3e92aa479dde367a2 |
#!/usr/bin/python3
# Copyright 2015 Francisco Pina Martins <f.pinamartins@gmail.com>
# This file is part of BioGenepop.
# BioGenepop 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 Lic... | CoBiG2/RAD_Tools | BioGenepop.py | Python | gpl-3.0 | 2,097 | [
"Biopython"
] | 8345e213f6a7176a877425e82adec712db16399e71ecd0bd3e52cf416deb8685 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#al_finder.py
#03/2014
__author__ = 'Igor Rodrigues da Costa'
__contact__ = 'igor.bioinfo@gmail.com'
''' This program will get ALs from the genomes from a sum file,
align them and make a nexus file.'''
import os
import argparse
import shlex
from hashlib import sha1
from ... | igorrcosta/alfie | al_align.py | Python | gpl-2.0 | 22,717 | [
"BLAST"
] | 630129b17d35144a280a72b651e87ae4010a375b2cdd342a99454db33107901f |
# -*- coding: utf-8 -*-
## all SI units
########################################################################################
## Plot the membrane potential for a leaky integrate and fire neuron with current injection
## Author: Aditya Gilra
## Creation Date: 2012-06-08
## Modification Date: 2012-06-08
#############... | h-mayorquin/camp_india_2016 | tutorials/chemical switches/moose/neuroml/LIF/LIFxml_firing.py | Python | mit | 2,100 | [
"MOOSE",
"NEURON"
] | c75e7e452312767d7613e76db0918c0eeb73da525b0a7c2f6ceba32984fd3954 |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# 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 li... | xifle/greensc | tools/scons/scons-local-2.0.1/SCons/Taskmaster.py | Python | gpl-3.0 | 39,297 | [
"VisIt"
] | 86b08e20852f5ae82ed530927dacde5f9dda349d95d765892bdaf0433ad54696 |
# coding: utf-8
from __future__ import division, unicode_literals
"""
This module define the various drones used to assimilate data.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "1.0"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyuep@gmail.com"
__date__... | yanikou19/pymatgen | pymatgen/apps/borg/hive.py | Python | mit | 16,065 | [
"Gaussian",
"VASP",
"pymatgen"
] | 4fae4580993f57322633d730fdbb36cf6d5ac21bce539e1e138466e6bdcf8c4a |
# ksp-compiler - a compiler for the Kontakt script language
# Copyright (C) 2011 Nils Liberg
#
# 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 opt... | nojanath/SublimeKSP | ksp_compiler3/ksp_compiler_extras.py | Python | gpl-3.0 | 37,664 | [
"VisIt"
] | 4cce4b77397348a8c33ac567e45e9281a5ce3a689d1de72c652a9a748e188205 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, print_function, unicode_literals
from __future__ import absolute_import
"""
This module provides classes for the Piezoelectric tensor
"""
from pymatgen.core.operations import S... | aykol/pymatgen | pymatgen/analysis/piezo.py | Python | mit | 1,957 | [
"pymatgen"
] | 8b1a4dabb6f3904a696afd506e49fc96cce9d38f0ae69070a050b044a63b6244 |
#!/usr/bin/env python
import argparse
from datetime import datetime
from pathlib import Path
import os
import re
import fflogs
import encounter_tools as e_tools
def load_timeline(timeline):
"""Loads a timeline file into a list of entry dicts"""
timelist = []
with timeline as file:
for line in fi... | quisquous/cactbot | util/test_timeline.py | Python | apache-2.0 | 22,631 | [
"VisIt"
] | 0c7f1bf1aaed40e48854cf4df49623dc551e43f48cf22cf87cd731c8a45e1be5 |
#!/usr/bin/python
#coding=utf8
##----------------------------------------------------------------------------##
## █ █ ##
## ████████ ##
## ██ ██ ... | AmazingCow/CppGuardChecker | guardchecker.py | Python | gpl-3.0 | 18,094 | [
"VisIt"
] | 149c85269e017aac194ac46af6d5db9e6d4f6abea2c662f9864c359306daea90 |
#
# Copyright (c) 2009-2015, Jack Poulson
# All rights reserved.
#
# This file is part of Elemental and is under the BSD 2-Clause License,
# which can be found in the LICENSE file in the root directory, or at
# http://opensource.org/licenses/BSD-2-Clause
#
import El
import time
m = 2000
n = 4000
testMehrotra = ... | justusc/Elemental | examples/interface/LPDirect.py | Python | bsd-3-clause | 3,491 | [
"Gaussian"
] | 6b415323a8931b165c79b5d52d1abe4db0082ec7d5f7057ed272329e74eb8c13 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (... | vmax-feihu/hue | apps/useradmin/src/useradmin/tests.py | Python | apache-2.0 | 40,666 | [
"MOE"
] | 35d6cdedf4e86670d07d3d8a5ae5666dd92317796de71fdac8011dbd43311ee5 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2018, Chris Houseknecht <@chouseknecht>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | alexlo03/ansible | lib/ansible/modules/clustering/k8s/k8s.py | Python | gpl-3.0 | 5,058 | [
"Galaxy"
] | 7260e9c1cc171e2c7addbde4ca4a479536d23652d48fbe86f1b535a8645ef148 |
#! /usr/bin/python
import json, subprocess
from argparse import ArgumentParser
from os import walk
from os.path import join, getsize
from datetime import datetime
parser = ArgumentParser(description="Tracks any changes in a specified directory. Additions, deletions,\n \
changes of... | boulis/Track-Dir-Changes | trackDirFileChanges.py | Python | mit | 17,685 | [
"VisIt"
] | 55df842336becfb4a29a33d16768de3850f548b8f7715872043276a94bf15c37 |
#!/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/ajax/multiepg.py | Python | gpl-2.0 | 13,136 | [
"VisIt"
] | fba366ad7479b53a98aa76b122f9e1d5de10a5382948b552b87a95d18b6f9baf |
"""mbe.file_templates: (Default) file templates for dealing with PBS,
ORCA, Q-Chem, and Psi."""
def eprfile(charge, multiplicity, xyzfile):
"""
A default template for an EPR input file.
"""
return """! uks pbe0 def2-sv(p) def2-svp/jk ri rijk pmodel somf(1x) noautostart tightscf grid5
%pal
nprocs 1
... | berquist/mbe | mbe/file_templates.py | Python | mpl-2.0 | 1,077 | [
"ORCA",
"Q-Chem"
] | 1970e1af073e737cdb99c7580412ea4f737b1949e6952b6167f0e91c1397dd53 |
#!/usr/bin/python
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2016 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it ... | kannon92/psi4 | doc/sphinxman/document_driver.py | Python | gpl-2.0 | 4,584 | [
"Psi4"
] | ced822ada896e9fb6a4842d481ed5e8510c32d2683e796db93676a3d02feabda |
# coding=utf-8
# Copyright 2022 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | tensorflow/datasets | tensorflow_datasets/text/wikipedia.py | Python | apache-2.0 | 11,591 | [
"VisIt"
] | eb9d98b03e9bb2e5ffb1b02ab53231a227282b42da12f70fbad1f485a8971a1e |
"""
Provides functions for working with and visualizing scalar ARMA processes.
TODO: 1. Fix warnings concerning casting complex variables back to floats
"""
import numpy as np
from numpy import conj
from .util import check_random_state
class ARMA:
r"""
This class represents scalar ARMA(p, q) processes.
... | oyamad/QuantEcon.py | quantecon/arma.py | Python | bsd-3-clause | 8,055 | [
"Gaussian"
] | 8313c22b07ee1a597bae0a10d2e0bc1c67d38863f8d5154ee29e653bd818215d |
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2014 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors: Kyle A Beauchamp
#
# MDTraj is... | hainm/mdtraj | mdtraj/tests/test_trajectory.py | Python | lgpl-2.1 | 22,638 | [
"MDTraj"
] | 5e12d473ef08458013d7bab4ec2cca6ee3b882b9ff28cc2ca460a082adbb3258 |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/view/controls/delegates/integerdelegate.py | Python | gpl-2.0 | 2,390 | [
"VisIt"
] | ff0d5ab8c01b2d0b79c5ff932b0e99434d9e4491bb8482da8bbe9c5353a1617a |
from string import atoi,atof
import sys,os,commands
def get_interface(pdb,interfaceid):
cmd="curl --compressed http://eppic-web.org/ewui/ewui/fileDownload?type=interface\&id=%s\&interface=%s > %s-%s.%s.pdb"%(pdb,interfaceid,pdb,pdb,interfaceid)
os.system(cmd)
chains=commands.getoutput("cat %s-%s.%s.pdb | grep SEQR... | kumar-physics/general-scripts | python/ss.py | Python | gpl-3.0 | 1,525 | [
"PyMOL"
] | b270279ad6c455469d81d0da5544d2b84db080aae003145c791d35b900a9485a |
#!/usr/bin/env python
# Created by John Travers, Robert Hetland, 2007
""" Test functions for rbf module """
from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import (assert_, assert_array_almost_equal,
assert_almost_equal, run_module_suit... | valexandersaulys/airbnb_kaggle_contest | venv/lib/python3.4/site-packages/scipy/interpolate/tests/test_rbf.py | Python | gpl-2.0 | 4,626 | [
"Gaussian"
] | 8399b41cd50fb0c60b3a3eef1f3d4acb979ba09951457876f9996730713e4d27 |
# -*- coding: utf-8 -*-
"""
Bok choy acceptance tests for Entrance exams in the LMS
"""
from textwrap import dedent
from common.test.acceptance.tests.helpers import UniqueCourseTest
from common.test.acceptance.pages.studio.auto_auth import AutoAuthPage
from common.test.acceptance.pages.lms.courseware import Courseware... | romain-li/edx-platform | common/test/acceptance/tests/lms/test_lms_entrance_exams.py | Python | agpl-3.0 | 4,146 | [
"VisIt"
] | 3114109d55897e76d63f077d5115250765763f86c2ac4ad8933517f2e7488b45 |
##
# Copyright 2009-2020 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | pescobar/easybuild-easyblocks | easybuild/easyblocks/w/wps.py | Python | gpl-2.0 | 16,404 | [
"NetCDF"
] | 88e618ab10ee94aa762bfb6dcf48b1328591f0a95001cdb7e20fa1692867d696 |
#!/usr/bin/env python
"""Combine_classifications.py: fills in taxonomic classification from separate tsv.
From tab-separated blast files corresponding to fwd and rev reads,
the 5% top HSP making cutoffs for evalue, coverage and identity
in both files are used for LCA determination"""
from collections import default... | EnvGen/toolbox | scripts/combine_taxonomy.py | Python | mit | 1,614 | [
"BLAST"
] | 5dd4bb68c90195f92f1cd4fe9c3cec33365659fc9e8afbd119f0fc2ca46f4cc5 |
# Copyright 2010-2017, The University of Melbourne
# Copyright 2010-2017, Brian May
#
# This file is part of Karaage.
#
# Karaage 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... | brianmay/karaage | karaage/people/forms.py | Python | gpl-3.0 | 10,433 | [
"Brian"
] | 2247f2f8da33313825d793ebb0ac4804145b7f219b90231e590a3869849ef98a |
'''
Module of learners used to determine what parameters to try next given previous cost evaluations.
Each learner is created and controlled by a controller.
'''
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import threading
import numpy as np
import random
import numpy.random ... | michaelhush/M-LOOP | mloop/learners.py | Python | mit | 144,110 | [
"Gaussian"
] | d9cb4921a794fd25c287cd7d13c58778f7cde0055de1d83d977dca9d009385cc |
"""Utility functions for plotting M/EEG data
"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# ... | ARudiuk/mne-python | mne/viz/utils.py | Python | bsd-3-clause | 40,089 | [
"Mayavi"
] | 5c59bb0a6ce01ae3eae00cb12490830a7712375178636d9912b162e98959ce73 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | dustpedia/data/seds.py | Python | agpl-3.0 | 3,270 | [
"Galaxy"
] | a6a5504eecc9082c934c65cd71dd7320e4840390605ba8600b2f24cac2ff3653 |
"""
Tests for coloring methods of molecule representations.
"""
from VMD import molecule as _molecule, molrep as _molrep
from pyvmd.representations import (COLOR_BACKBONE, COLOR_BETA, COLOR_CHAIN, COLOR_CHARGE, COLOR_COLOR,
COLOR_CONFORMATION, COLOR_ELEMENT, COLOR_FRAGMENT, COLOR_IND... | ziima/pyvmd | pyvmd/tests/test_coloring_methods.py | Python | gpl-3.0 | 9,871 | [
"VMD"
] | d1bbb97beceda88e1a8c979f24c592f7921967c76955ffb2a2d4d1ca8cb8a83a |
# Example of ymport.unv function and also export.VTKExporter.exportFacetsAsMesh
# Reads facets from shell.unv and saves them as one mesh to vtk file
from yade import ymport,export
f,n,ct = ymport.unv('shell.unv',returnConnectivityTable=True)
O.bodies.append(f)
vtk = export.VTKExporter('test')
vtk.exportFacetsAsMesh(c... | yade/trunk | examples/test/unv-read/unvReadVTKExport.py | Python | gpl-2.0 | 341 | [
"VTK"
] | f617d94eaf328c495135b66d95c5706399f6bdcb398e403099f0fd5809c640e1 |
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 12 15:31:31 2015
@author: hanbre
"""
from __future__ import print_function
import sys
import numpy as np
import pandas as pd
import xray
import datetime
import netCDF4
from mpl_toolkits.basemap import Basemap
import matplotlib
from matplotlib.pylab import *
import matplo... | hansbrenna/NetCDF_postprocessor | plotter4.py | Python | gpl-3.0 | 3,593 | [
"NetCDF"
] | 24c9a0a931ed72906723b549b5fdad5d54c9f2efa465dcbad144df037eb5138d |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""BBOB noiseless testbed.
The optimisation test functions are represented as classes
:py:class:`F1` to :py:class:`F24` and :py:class:`F101` to
:py:class:`F130`.
Each of these classes has an _evalfull method which expects as argument
an array of row vectors and returns a ... | PyQuake/earthquakemodels | code/cocobbob/coco/deapbbob/bbobbenchmarks.py | Python | bsd-3-clause | 70,666 | [
"Gaussian"
] | 7ec6815dc9628abdb340773f4577dbf380ba5863a3bef6114e711e6791d4d934 |
"""
==================
ModEM
==================
# Generate files for ModEM
# revised by JP 2017
# revised by AK 2017 to bring across functionality from ak branch
"""
import os
import numpy as np
from mtpy.utils.mtpylog import MtPyLog
from .exception import CovarianceError
from .model import Model
try:
from ev... | MTgeophysics/mtpy | mtpy/modeling/modem/convariance.py | Python | gpl-3.0 | 11,209 | [
"VTK"
] | 2e49983590d637a06522cb16c5b2929776d825fee014ba3e42c9cf074b6934ae |
#!/usr/bin/env python3
# Copyright 2019 VMware, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | p4lang/p4runtime | tools/madokolint.py | Python | apache-2.0 | 10,508 | [
"VisIt"
] | e7ba314d21bacc43e5ea4b404d24b3983afbe2618188cfaf59f90bb3bf4e8ed8 |
#
# 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... | pkreissl/espresso | testsuite/python/observable_chain.py | Python | gpl-3.0 | 10,445 | [
"ESPResSo"
] | 00947dcb611f2d17df51545d98d7c688fc4758b45bb5b3716762321c24815a9a |
""" Test class for SiteDirector
"""
# pylint: disable=protected-access
# imports
import datetime
import pytest
from mock import MagicMock
from DIRAC import gLogger
# sut
from DIRAC.WorkloadManagementSystem.Agent.SiteDirector import SiteDirector
mockAM = MagicMock()
mockGCReply = MagicMock()
mockGCReply.return_valu... | petricm/DIRAC | WorkloadManagementSystem/Agent/test/Test_Agent_SiteDirector.py | Python | gpl-3.0 | 9,644 | [
"DIRAC"
] | ae26f29d270887828b27fa29230c8dab7fdea6d1448baa532011c32efe72cafd |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | MDAnalysis/mdanalysis | package/MDAnalysis/analysis/hydrogenbonds/hbond_analysis.py | Python | gpl-2.0 | 33,580 | [
"MDAnalysis",
"VMD"
] | a65207c6a7367e3bf391b2022c805500d37925e08db64ee664b8ee828bd1154a |
"""
Functional GUI tests: run_basic() and run_detailed().
"""
import copy
from numpy import array
from numpy.testing import assert_array_equal
import topo
import topo.tests.functionaltest as ft
from topo.tests.utils import assert_array_not_equal
from nose.tools import nottest
def run_basic():
"""Check that t... | ioam/topographica | topo/tests/gui_tests.py | Python | bsd-3-clause | 6,347 | [
"Gaussian"
] | 6e804b00d5d3bf4398364c94a9ade7d5662f19ca54d2eda4a75ecf1c7e29596c |
########################################################################
#
# (C) 2015, Brian Coca <bcoca@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation... | hfinucane/ansible | lib/ansible/galaxy/role.py | Python | gpl-3.0 | 12,164 | [
"Brian",
"Galaxy"
] | f9ca892e9c29f917e6a06b94b51d81ea313823ddaad0cf9978807425031a4a03 |
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) cgstudiomap.org <cgstudiomap@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the t... | cgstudiomap/cgstudiomap | main/local_modules/res_partner_count_iframe_host/__openerp__.py | Python | agpl-3.0 | 1,424 | [
"VisIt"
] | 7574e41090dafde890f1f889d54923bdd0af014a3d54a2c6530d7396729be639 |
#http://www.raspberrypi-spy.co.uk/2012/05/send-text-and-html-email-using-python/
# Import smtplib to provide email functions
import smtplib
# Import the email modules
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import MySQLdb as mdb
# Define email addresses to use
con = mdb.con... | renderlab/ENTS-Pop-Pi | pop-PI/EmailTest.py | Python | gpl-2.0 | 1,849 | [
"VisIt"
] | 11b46398ec60cda3e8b200ea6eaefddf6a43f341c00caabac2661570b790c883 |
"""
Suppose a casino invents a new game that you must pay $250 to play. The game
works like this: The casino draws random numbers between 0 and 1, from a
uniform distribution. It adds them together until their sum is greater than 1,
at which time it stops drawing new numbers. You get a payout of $100 each time
a new nu... | noelevans/sandpit | fivethiryeight/riddler_casino.py | Python | mit | 1,180 | [
"CASINO"
] | 699b41230be106aa3cd140c73d6a533f7f301347233744743a5ee375319eff73 |
import matplotlib as mpl
mpl.use('Agg')
import numpy as np
import matplotlib.pyplot as py
host = ['LMC']
marker = ['o']#'o','v','^','<','>','D','+','x','*']
alpha_eff = np.dtype([('Period',np.float32),('observed_w',np.float32),('residual',np.float32),('error',np.float32),('alpha',np.float32),('name',np.str_,5)])
P,... | wilmarcardonac/hypermcmc | analyzer/plot_HP_LMC.py | Python | gpl-2.0 | 3,241 | [
"Galaxy"
] | 0b2197fee41e20d0708c0514b58bcaa5f85dfe720f95fbff4c9a3fff6597701d |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | modeling/analysis/run.py | Python | agpl-3.0 | 116,812 | [
"Galaxy"
] | 04395402a5d0c9530a7c30dbeb8cfede1629b1efc86d06719a5b5d5ea8005d13 |
# -*- coding: utf-8 -*-
from __future__ import print_function
import moose
moose.Neutral('/model')
compt = moose.CubeMesh('/model/Compart')
compt.volume = 1.6667e-21
s = moose.Pool('/model/Compart/S')
s.concInit = 0.3
p = moose.Pool('/model/Compart/P')
r = moose.Reac('/model/Compart/Reac')
moose.connect(r, 'sub', s, ... | dharmasam9/moose-core | tests/issues/issue_45.py | Python | gpl-3.0 | 1,514 | [
"MOOSE"
] | 7ab02a22aef598c41b43f234649135c9d8d79355add1acebba503482ce75a204 |
# -*- coding: utf-8 -*-
#
# Bio-Formats documentation build configuration file, created by
# sphinx-quickstart on Wed Aug 29 15:42:49 2012.
#
# 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.
#
#... | ximenesuk/bioformats | docs/sphinx/conf.py | Python | gpl-2.0 | 11,342 | [
"CRYSTAL"
] | dcee56805eaba49f273b6b981985fad8b855ff9841efd4668d8769ba7efabe4d |
# This component calculates heating and cooling degree hours
#
# Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Ladybug.
#
# Copyright (c) 2013-2015, Mostapha Sadeghipour Roudsari <Sadeghipour@gmail.com>
# Ladybug is free software; you can ... | boris-p/ladybug | src/Ladybug_CDH_HDH.py | Python | gpl-3.0 | 11,925 | [
"EPW"
] | 29132233a9b8cfe0b9b0f44f689857c4de908eab6ccbc51e3d66ba1f5de709b7 |
import unittest
import subprocess
import os
import sys
if sys.version_info[0] >= 3:
from io import StringIO
else:
from io import BytesIO as StringIO
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
from allosmod.util import check_out... | salilab/allosmod-lib | test/test_edit_restraints.py | Python | lgpl-2.1 | 49,570 | [
"Gaussian"
] | 9255d8890e8ca8a79a213823c8d4c9154f5abd5e86f83bfbeb036f087606a8fb |
# -*- coding: utf-8 -*-
#
# define_hill_tononi.py
#
# This file is part of the NEST Instrumentation App.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST Instrumentation App 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 Softw... | compneuronmbu/NESTConnectionApp | static/examples/define_hill_tononi.py | Python | gpl-2.0 | 18,392 | [
"Gaussian"
] | 0d9dfefb6c1b59cfd0b42614302945816d71d45f3aab98457cf33da3dfe82bb5 |
# Copyright (C) 2004-2008 Paul Cochrane
#
# 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.
#
# This program is distribut... | paultcochrane/pyvisi | examples/vtkDataLoadExample.py | Python | gpl-2.0 | 2,972 | [
"VTK"
] | 7dafe0f244c6576690a2fc75a57299d95eef7def12df1ec0fefd3aa22efac938 |
"""
gts v0.01
genetic test sequencer
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 version 3 of the License, or
... | stahn/ga-bitbot | gts.py | Python | gpl-3.0 | 20,222 | [
"Brian"
] | c5106baff07f67ad833f3c246c19c2129b056bf1f965211601c82bb17ab9a668 |
"""
Acceptance tests for Studio's Setting pages
"""
from unittest import skip
from .base_studio_test import StudioCourseTest
from ...pages.studio.settings_certificates import CertificatesPage
class CertificatesTest(StudioCourseTest):
"""
Tests for settings/certificates Page.
"""
def setUp(self): # py... | appliedx/edx-platform | common/test/acceptance/tests/studio/test_studio_settings_certificates.py | Python | agpl-3.0 | 8,564 | [
"VisIt"
] | c28686c8e9df4523e980f8d41a22202381080f492f590cdc313769dc528eea34 |
#!/usr/bin/env python
from __future__ import division
from setuptools import setup
import os
__author__ = "Daniel McDonald"
__copyright__ = "Copyright 2011, The tax2tree project"
__credits__ = ["Daniel McDonald"]
__license__ = "BSD"
__version__ = "1.0-dev"
__maintainer__ = "Daniel McDonald"
__email__ = "mcdonadt@color... | biocore/tax2tree | setup.py | Python | bsd-3-clause | 2,268 | [
"scikit-bio"
] | 66d3e418096241de44b4fdfdcd7dee24d6bc9060cbe8341e0ebf773f821f2d56 |
import discord
from discord.ext import commands
from __main__ import send_cmd_help
from bs4 import BeautifulSoup
import random
class sfw:
"""sfw commands."""
def __init__(self, bot):
self.bot = bot
self.session = self.bot.http.session
@commands.group(pass_context=True)
async def sfw(... | Vidyapoky/keksimus | nsfw/sfw.py | Python | mit | 6,946 | [
"MOE"
] | 154554c21d90e78191897e0b7dc3da9c3bbe9365d50d9a1b5ffe84fb1c1129fb |
"""
=====================================================================
The Johnson-Lindenstrauss bound for embedding with random projections
=====================================================================
The `Johnson-Lindenstrauss lemma`_ states that any high dimensional
dataset can be randomly projected in... | JT5D/scikit-learn | examples/plot_johnson_lindenstrauss_bound.py | Python | bsd-3-clause | 7,418 | [
"Gaussian"
] | b4ed74d7eeb697e83f76d48f7f29e51fe37f69e9e10c31ee624e0e84fde4f1b7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.