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 |
|---|---|---|---|---|---|---|---|
# -*- test-case-name: twisted.trial.test.test_runner -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
A miscellany of code used to run Trial tests.
Maintainer: Jonathan Lange
"""
__all__ = [
'suiteVisit', 'TestSuite',
'DestructiveTestSuite', 'DocTestCase', 'DocTestSuite',
... | waseem18/oh-mainline | vendor/packages/twisted/twisted/trial/runner.py | Python | agpl-3.0 | 28,970 | [
"VisIt"
] | b347cb53ddafe6b5491d00c29777f90dbcdb43e348ba692e7870d64196dc9e89 |
"""
This is the base class for all level states (i.e. states
where the player can move around the screen). Levels are
differentiated by self.name and self.tmx_map.
This class inherits from the generic state class
found in the tools.py module.
"""
import copy, sys
import pygame as pg
from .. import tools, collision
fro... | justinmeister/The-Stolen-Crown-RPG | data/states/levels.py | Python | mit | 19,605 | [
"BLAST"
] | 051573f73a864f02a01cb791f56d9cab6c134bb6da4ae962102d927d0865e7d4 |
from django.utils import timezone
from django.db import models
from django.template.loader import get_template
from django.core.mail import EmailMultiAlternatives
from django.conf import settings
from django.db.models import Q
from coredata.models import Unit, JSONField, config_property
from autoslug import AutoSlugFie... | sfu-fas/coursys | space/models.py | Python | gpl-3.0 | 14,243 | [
"VisIt"
] | 2fcf1128642b2cef60ee1ed2f8338e964457efee7ae7172662079b61b29fd985 |
import ast
class FirstParser(ast.NodeVisitor):
def __init__(self):
pass
def continues(self, stmt):
'''Helper: parse a node's children'''
super(FirstParser, self).generic_visit(stmt)
def parse(self, code):
'''Parse text into a tree and walk the result'''
tree = a... | rohitsingh0812/primes-synthesis | python_ast_practice/parse_ast.py | Python | mit | 1,328 | [
"VisIt"
] | 7e6af1096770feddb347e939e9f1480a4cc177b3754704e930212b569fe53f60 |
#Author: Remi Pelletier
#File: bit_manip.py
#Desc.: Module containing various bit manipulation related functions.
#Returns the absolute value of the
#given number (x) without branching.
def abs_no_branch(x):
return (x & -(x >= 0)) | ((~x + 1) & -(x < 0))
#Counts the number of bits that are
#set (=1) in the g... | Remi05/libpy | sneklib/bit_manip.py | Python | gpl-3.0 | 3,059 | [
"Brian"
] | e28b52631fc4041cb95d50b06b1f41404bdc0d63ed66c6912d43febb1a102c1d |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/core/lib/renderer.py | Python | gpl-2.0 | 28,049 | [
"Brian"
] | 6eab3114742671618689028d1b66b2a64456cfcb4576cdeef006ece68731532c |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import logging
plainLogger = logging.getLogger(__name__)
import os
import subprocess
from abc import ABCMeta, abstractproperty, abstractmethod
from ruamel.yaml.comments import CommentedMap, CommentedSeq
from six import add_metaclass, iteritems
from cont... | chouseknecht/ansible-container | container/k8s/base_engine.py | Python | lgpl-3.0 | 10,144 | [
"Galaxy"
] | 71ec8a9b155206339aa25a403637fbddaa656ff251034a41ef75456c46a30e86 |
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
import os
import gyp
import gyp.common
import gyp.msvs_emulation
import json
import sys
generator_supports_multiple_toolsets = True... | caplin/qa-browsers | nodejs/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py | Python | unlicense | 3,513 | [
"VisIt"
] | 82cfb169a0d673cf3ba5e69ac861dc445458b1ca79ba96858cb4c4d8d506ed33 |
#!/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 (... | jayceyxc/hue | apps/useradmin/src/useradmin/test_ldap.py | Python | apache-2.0 | 40,684 | [
"MOE"
] | e82dbb767ffa1883376c57ce5f9e15876382a803a727f9cfdf058ed705f7f700 |
#### PATTERN | WEB #######################################################
# -*- coding: utf-8 -*-
# Copyright (c) 2010 University of Antwerp, Belgium
# Author: Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
# http://www.clips.ua.ac.be/pages/pattern
######################################... | shubhangiKishore/pattern | pattern/web/__init__.py | Python | bsd-3-clause | 157,947 | [
"VisIt"
] | 9f69f9306955da3b6437e068ddab4874cf6cfaa98121d2f5eeed652eaa83f7b5 |
# -*- coding: utf-8 -*-
import chemcoord.constants as constants
import pandas as pd
class GenericCore(object):
def add_data(self, new_cols=None):
"""Adds a column with the requested data.
If you want to see for example the mass, the colormap used in
jmol and the block of the element, just... | mcocdawc/chemcoord | src/chemcoord/_generic_classes/generic_core.py | Python | lgpl-3.0 | 3,052 | [
"Jmol",
"MOLCAS"
] | 9611d78e0740cebef39600b447e93dbf17e2e6671b4265068c5c71685a62ae0f |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from os import listdir
import os
import re
import sys
from argparse import ArgumentParser
import random
import subprocess
from math import sqrt
import ast
from adderror import adderror
import numpy as np, numpy.random
import tempfile
import shutil
"""ENSAMBLE, -d director... | spirit01/SAXS | testing_ensamble.py | Python | mit | 9,766 | [
"PyMOL"
] | e7a29662f98ee6ba464f554cea707368e2f0ce55eba8a4eecdd62e493c6a2a3a |
import itertools
import pandas as pd
import lb_loader
import simtk.openmm.app as app
import numpy as np
import simtk.openmm as mm
from simtk import unit as u
from openmmtools import hmc_integrators, testsystems
collision_rate = 10000.0 / u.picoseconds
temperature = 300. * u.kelvin
testsystem = testsystems.LennardJone... | kyleabeauchamp/HMCNotes | code/old/test_hmc_correctness.py | Python | gpl-2.0 | 3,879 | [
"OpenMM"
] | 8e183caa1fe9688072ee91d69bd23e53eaf6965873e5dfce0b15b25254b284ac |
# Copyright 2015 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 a... | awni/tensorflow | tensorflow/python/ops/gradients.py | Python | apache-2.0 | 28,197 | [
"VisIt"
] | 1dccf79ea90ecba5c44a228f9201f32da7105ab34f025442ac8f181530ad0234 |
""" The Job Scheduling Agent takes the information gained from all previous
optimizers and makes a scheduling decision for the jobs. Subsequent to this
jobs are added into a Task Queue by the next optimizer and pilot agents can
be submitted.
All issues preventing the successful resolution of... | calancha/DIRAC | WorkloadManagementSystem/Executor/JobScheduling.py | Python | gpl-3.0 | 20,140 | [
"DIRAC"
] | a9e6d8cdbc7ee7904cc0013271d6a89ea6fcd42a76f87530815707abaf76089d |
#!/usr/bin/env python
#
# @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 redistri... | rmcgibbo/psi4public | psi4/share/psi4/fsapt/copy_pymol2.py | Python | lgpl-3.0 | 1,339 | [
"Psi4",
"PyMOL"
] | e7efc932aa33fc19dabf607fb268174117635c153d5d8bdaa799b769fb912a04 |
"""
Grid Tool is a class that represents
everything needed for a tool to run on a galaxy grid
Author James Boocock
"""
import os
import sys
import logging
from elementtree import ElementTree
log = logging.getLogger(__name__)
def str2bool(v):
return v.lower() in ("yes", "true", "t", "1")
class InputD... | smilefreak/NesiGridSelection | grid_selection/clustering/grid_tool.py | Python | mit | 4,313 | [
"Galaxy"
] | 764c0d185c35c79fb865f764e10e092d8b321e4c1a28a5dfe7e2dad7cb1e8481 |
import os
import unittest
import numpy
import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
import logging
import dicom
from slicer.util import VTKObservationMixin
#
# AutoSegmentationSliceletWidget
#
class AutoSegmentationSliceletWidget:
def __init__(self, parent=None):
try:
parent
... | TTrambi/Slicer-CompVis | CompVis/AutoSegmentation/AutoSegmentation.py | Python | mit | 16,485 | [
"VTK"
] | a62fdb1adefcff8aff1361aba48d7b07e52e634e98115f39db31d983e53f4e86 |
import numpy as np
import tensorflow as tf
from config import Config
from activations import Activations
def resolve_model(name):
models = {
"FeedForwardNeuralNetwork": FeedForwardNeuralNetwork
}
return models[name]()
class FeedForwardNeuralNetwork():
def __init__(self):
self.config = Config().config
self.... | callaunchpad/NES | models.py | Python | mit | 3,873 | [
"Gaussian"
] | 862c30cf096f3f3b4840b70ce3988e48480ac3099123f038bade1855896c4964 |
import numpy as np
import mdtraj as md
from alias.src.positions import (
molecular_positions,
minimum_image,
coordinate_arrays,
orientation,
batch_coordinate_loader
)
from alias.tests.alias_test_case import AliasTestCase
from alias.tests.fixtures import (
amber_topology,
amber_trajectory
)
... | franklongford/alias | alias/src/tests/test_positions.py | Python | bsd-2-clause | 6,549 | [
"MDTraj"
] | 82cd6107b1605412d6575d1988c6e80d255e572a027c1cfbfe0b5f6825b1e509 |
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2016 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | crisely09/horton | horton/io/test/test_molden.py | Python | gpl-3.0 | 6,012 | [
"ORCA",
"Psi4"
] | 182e51b0f384649206f8eb4557e77aea78a7be3ed540a75caf980d6f2d719621 |
# -*- coding: utf-8 -*-
"""This module contains the data model of the application."""
__all__ = ['Group', 'Permission', 'User', 'Visit', 'VisitIdentity']
from datetime import datetime
import pkg_resources
pkg_resources.require("SQLAlchemy>=0.4.3")
from turbogears.database import get_engine, metadata, session
# imp... | bmcfee/gordon | gordon/web/gordonweb/model.py | Python | gpl-3.0 | 9,134 | [
"VisIt"
] | 99bf65472ff91f7815288d1a86b1bb60125353a4b7aae4855450d01f1545385b |
#!/usr/bin/env python
'''
Author: John D. Anderson
Email: jander43@vols.utk.edu
Problem Statement:
Given a sorted (increasing order) array with unique integer elements, write
an algorithm to create a binary search tree with minimal height.
Complexity: O(N)
Usage: minimal_tree <traversal_order>
'''
# functions
de... | RagingTiger/CodingInterview | ch4/python/minimal_tree.py | Python | mit | 3,163 | [
"VisIt"
] | b140d4df9e456b88bcf75400902e6716fc7e9c4fc0797d00b1fc342b2b0754a6 |
"""These are convenience functions, that I find useful over-and-above the
functionality provided by the Google-developed Python gtfs package.
See:- https://code.google.com/p/googletransitdatafeed/wiki/TransitFeed
They deal with the basic 'schedule' Idiom and related classes of that package."""
import os, sys
import ... | PatSunter/SimpleGTFSCreator | gtfs_ops.py | Python | lgpl-3.0 | 43,478 | [
"VisIt"
] | d1d8d7099370331c34638f953a50c73ec05bac0329ffcb05b55b16234adc4ab1 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import collections
import abc
import numpy as np
from pymatgen.core.spectrum import Spectrum
from pymatgen.util.plotting import add_fig_kwargs
"""
This modu... | nisse3000/pymatgen | pymatgen/analysis/diffraction/core.py | Python | mit | 7,502 | [
"CRYSTAL",
"pymatgen"
] | 545e849ad4087f332ca41ace96cf7a668367dafd26fc6968865ab7b66bb54bd0 |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | tensorflow/tensorflow | tensorflow/python/autograph/pyct/qual_names.py | Python | apache-2.0 | 8,127 | [
"VisIt"
] | a4e6b67bc6fa6a75b29ebb345351888d864dcc107a9b24d9b7a2586661bfe0e1 |
# Copyright 2000 by Katharine Lindner. 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.
"""
This module provides code to work with files from Rebase.
http://rebase.neb.com/rebase... | dbmi-pitt/DIKB-Micropublication | scripts/mp-scripts/Bio/Rebase/__init__.py | Python | apache-2.0 | 13,770 | [
"Biopython"
] | 44f13da5181c45b9ce6289c3b026ac277f6c7ce5c381a4a7f91fd49338d449a1 |
"""
Tests for discussion pages
"""
import datetime
from pytz import UTC
from uuid import uuid4
from nose.plugins.attrib import attr
from .helpers import BaseDiscussionTestCase
from ..helpers import UniqueCourseTest
from ...pages.lms.auto_auth import AutoAuthPage
from ...pages.lms.courseware import CoursewarePage
from... | nttks/edx-platform | common/test/acceptance/tests/discussion/test_discussion.py | Python | agpl-3.0 | 49,885 | [
"VisIt"
] | 446d9cbbeb397358fdb842440983a980653a8853d6100d38c9016a82e24d1d1f |
# 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/management/commands/daily_cleanup.py | Python | gpl-3.0 | 1,061 | [
"Brian"
] | 9a75715b7e21b715da341d0205953106019090055136b2e9caef9cdf49a7b078 |
# Copyright 2006 by Sean Davis. 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.
#
# $Id: __init__.py,v 1.12 2009-04-24 12:03:45 mdehoon Exp $
# Sean Davis <sdavis2 at mail dot ni... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/UniGene/__init__.py | Python | gpl-2.0 | 12,432 | [
"Biopython"
] | 38d0f10d24cb63be82c850578f2ae702071a7d684c9cca7ca68672f3a5e392fd |
# Copyright (c) 2010 Howard Hughes Medical Institute.
# All rights reserved.
# Use is subject to Janelia Farm Research Campus Software Copyright 1.1 license terms.
# http://license.janelia.org/license/jfrc_copyright_1_1.html
"""
This script loads a region- or neuron-level network from a user-chosen adjacency matr... | JaneliaSciComp/Neuroptikon | Source/Scripts/Adjacency Matrix.py | Python | bsd-3-clause | 5,509 | [
"NEURON"
] | aa704eb4d8d59984b218e3643e63b0edcc5a403405cae938c4473ccb568b1c0c |
import numpy as np
from mpl_toolkits.basemap import pyproj
from datetime import datetime
try:
import netCDF4 as netCDF
except:
import netCDF3 as netCDF
import pyroms
def make_remap_grid_file(grd):
#create remap file
remap_filename = 'remap_grid_' + grd.name + '_t.nc'
nc = netCDF.Dataset(remap_filenam... | dcherian/pyroms | pyroms_toolbox/pyroms_toolbox/Grid_HYCOM/make_remap_grid_file.py | Python | bsd-3-clause | 3,015 | [
"NetCDF"
] | 3e10103329b47f66312778b2e569a572128687ebab04927af30cfd9ae7be1295 |
#!/usr/bin/env python
import os, numpy as np
from pymicro.crystal.microstructure import Microstructure
from pymicro.crystal.texture import PoleFigure
"""
111 Pole figure of a copper sample containing 10000 grains with a fibre
texture.
"""
euler_list = np.genfromtxt('../data/Cu_111.dat', usecols=(0, 1, 2), max_rows=100... | heprom/pymicro | examples/plotting/Cu_111_pole_figure.py | Python | mit | 838 | [
"CRYSTAL"
] | 2aecdb7492559d213d311794ce92733529f7bd6f1afda87c9c513d20abe64b3b |
# -*- coding: utf-8 -*-
"""An exporter for signaling pathway impact analysis (SPIA) described by [Tarca2009]_.
.. [Tarca2009] Tarca, A. L., *et al* (2009). `A novel signaling pathway impact analysis
<https://doi.org/10.1093/bioinformatics/btn577>`_. Bioinformatics, 25(1), 75–82.
.. seealso:: https://b... | pybel/pybel | src/pybel/io/spia.py | Python | mit | 8,123 | [
"Bioconductor"
] | 745ca0808af081c16786fa309a3f52084a0098577c7fd12bc43c1e3149558c4e |
import sys, os
import http.client
import urllib
from octopus.server.project_manager import ProjectManager
from octopus.server.plugin_executor import PluginExecutor
class OctopusImporter:
def __init__(self):
pass
def importFile(self, filename):
self.filename = filename
self.initProjec... | octopus-platform/joern | projects/octopus/python/octopus-tools/octopus/importer/OctopusImporter.py | Python | lgpl-3.0 | 1,318 | [
"Octopus"
] | bf40598c7e777475a9837190ce633627e1d400f3ad12b890b38459318802d2da |
# coding: utf-8
# Copyright 2013 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 ap... | GirlsCodePy/girlscode-coursebuilder | tests/functional/test_classes.py | Python | gpl-3.0 | 269,668 | [
"VisIt"
] | 789476c65d8eb8f8972f0a47df33074feae3b7458f662f42657ff4f3472213fd |
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2016 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | crisely09/horton | horton/gbasis/iobas.py | Python | gpl-3.0 | 3,045 | [
"Gaussian",
"NWChem"
] | ee3a28c78c802e00c625c6b6e39117eaff3db3dd49ba1332cd8494d0ac107f9f |
""" This module loads the entire VTK library into its namespace. It
also allows one to use specific packages inside the vtk directory.."""
import os
import sys
# AIX apparently does not have dl?
try:
import dl
except ImportError:
dl = None
except SystemError:
dl = None
import __helper
# set the dlopen ... | sgh/vtk | Wrapping/Python/vtk/__init__.py | Python | bsd-3-clause | 2,358 | [
"VTK"
] | 6abd7b3618d915ea430f0e7c9657784341588f80787aa6c3ce06a3ed91520f63 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Team-XBMC
#
# 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 versio... | sparklyballs/XBMC-Headless | xbmcdata/addons/service.xbmc.versioncheck/lib/common.py | Python | mit | 7,008 | [
"VisIt"
] | 5242a2ca33afe8c27b5e3a199e3604ed205fac4e29204fa23819aebc7ed6c5b1 |
from ase import Atom, Atoms
from gpaw import GPAW
from gpaw.test import equal
a = 4.00
d = a / 2**0.5
z = 1.1
b = 1.5
slab = Atoms([Atom('Al', (0, 0, 0)),
Atom('Al', (a, 0, 0)),
Atom('Al', (a/2, d/2, -d/2)),
Atom('Al', (3*a/2, d/2, -d/2)),
... | qsnake/gpaw | gpaw/test/big/miscellaneous/H2Al110.py | Python | gpl-3.0 | 1,234 | [
"ASE",
"GPAW"
] | a1bf6fbaf74d29b78ea8a571a1d68150d236200088d2cc228f2d2a9a05ff2996 |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import os
import sys
import pkgutil
from antlr4 import *
from UnitXVisitor import UnitXVisitor
from UnitXParser import UnitXParser
from UnitXLexer import UnitXLexer
from unitx_object import UnitXObject
from scope_list import ScopeList
from util import Util
from function i... | 0ED/UnitX | unitx/eval_visitor.py | Python | mit | 26,560 | [
"VisIt"
] | 98a6921747b29dd76b36bbaef618fb1f2befed12397889f0efa96e0da8bbac5d |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for Chromium.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presu... | anirudhSK/chromium | PRESUBMIT.py | Python | bsd-3-clause | 52,256 | [
"VisIt"
] | 27ccd171d1ee38a97e5536bacd0f76e5161153d4ff4b8f1414862e439bbf84b1 |
# Copyright: (c) 2017, Brian Coca <bcoca@ansible.com>
# Copyright: (c) 2018, 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 sys
import argparse
from operator im... | ssbarnea/ansible | lib/ansible/cli/inventory.py | Python | gpl-3.0 | 15,560 | [
"Brian"
] | 003a5770b2d2073ed77802dc84edc229a0b23be3282bc4e905142dd59a13a754 |
import re
import os
import time
from Bio import SeqIO
from Bio import Entrez
from Bio.Blast import NCBIXML
def check():
print("Working on it")
pass
def parse(access, species_regex, result):
id_seq = {}
file_name = result
result = open(result)
blast = NCBIXML.read(result)
print("Reading re... | julioscalves/pyblast | pyblast_result.py | Python | mit | 1,570 | [
"BLAST"
] | 2446cbd976bb4dc9a6e1572baefa4a4525d64e77ed03847388ab9acf379114b5 |
"""CLI options class for ComicTagger app"""
# Copyright 2012-2014 Anthony Beville
# 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 r... | evilhero/mylar | lib/comictaggerlib/options.py | Python | gpl-3.0 | 17,841 | [
"VisIt"
] | f0ae8afe97af497ab6ddd8ad47ad575661f3d42e1dfc6d7bc29f67ccb821fe33 |
#!/usr/bin/env python
import numpy as np
import argparse
import json
import os
import random
import ray
from ray import tune
from ray.tune.schedulers import PopulationBasedTraining
def pbt_function(config, checkpoint_dir=None):
"""Toy PBT problem for benchmarking adaptive learning rate.
The goal is to opti... | robertnishihara/ray | python/ray/tune/examples/pbt_function.py | Python | apache-2.0 | 3,828 | [
"Gaussian"
] | a7ec6f0ab28b6f0fb84bf4e2e7a1b87fb7405f2f345a2ae410b926a7bc570dd1 |
## Copyright (c) 2010-2013, Scott D. Peckham
## July 2010 (created)
#-----------------------------------------------------------------------
# Notes: This file defines a "base class" for HIS Data components
# that retrieve HIS data from a web service using suds.
#-------------------------------------------... | mperignon/component_creator | topoflow_creator/topoflow/HIS_base.py | Python | gpl-2.0 | 36,497 | [
"NetCDF"
] | 2bc5e5880e46310cf28195657132a56e930984810ffb87a3b5d3a2c26edeb291 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-compute | tests/unit/gapic/compute_v1/test_interconnects.py | Python | apache-2.0 | 105,717 | [
"Octopus"
] | c180e6e0cece86bbf69f6882635d1a621ab24c76f25730b354a08b8b0fca007d |
"""Utilities for fetching and plotting DWAF real-time data.
This module contains some simple functions to make it easier
to read and plot the data from GRIB(version 1) files produced
by SAWS Unified Model. The module relies on Wesley Ebisuzaki's
wgrib programme being somewhere on your systems path. If you
don't have w... | sahg/SAHGutils | sahgutils/io/dwafdata.py | Python | bsd-3-clause | 5,130 | [
"VisIt"
] | cc073a33c0c2d1449429516a88e9d25387555ef3a581f74ca1f7deca6a0d3269 |
"""
API for initiating and tracking requests for credit from a provider.
"""
import datetime
import logging
import pytz
import uuid
from django.db import transaction
from lms.djangoapps.django_comment_client.utils import JsonResponse
from openedx.core.djangoapps.credit.exceptions import (
UserIsNotEligible,
... | iivic/BoiseStateX | openedx/core/djangoapps/credit/api/provider.py | Python | agpl-3.0 | 15,541 | [
"VisIt"
] | a10ede47bc75d2580846e549f6fcbb85937a9c29c5eda3a9ade60d2205986383 |
# -*- coding: utf-8 -*-
# ------------------------------------------------------------
# Mzero 4
# Copyright 2015 tvalacarta@gmail.com
# http://blog.tvalacarta.info/plugin-xbmc/Mzero/
#
# Distributed under the terms of GNU General Public License v3 (GPLv3)
# http://www.gnu.org/licenses/gpl-3.0.html
# ------------------... | Mzero2010/MaxZone | plugin.video.Mzero/platformcode/mct.py | Python | gpl-3.0 | 30,081 | [
"ADF"
] | 2d31771fc4cfe3dfbc905735218e331dba9d85fb9d576c61138c460b9fc1b364 |
#!/usr/bin/env python
##
#######################################################################################################################
#
# Copyright (c) 2020-2022 Advanced Micro Devices, Inc. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of th... | GPUOpen-Drivers/llpc | test/run_amber_test.py | Python | mit | 3,891 | [
"Amber"
] | 30c73ee6dbd7c8aab63bc137b8ad6dee8a53d497da93162cdaee2dcbde11845b |
"""Berendsen NPT dynamics class."""
import numpy as np
#from ase.md import MolecularDynamics
from ase.md.nvtberendsen import NVTBerendsen
import ase.units as units
#import math
class NPTBerendsen(NVTBerendsen):
"""Berendsen (constant N, P, T) molecular dynamics.
Usage: NPTBerendsen(atoms, timestep, tempera... | slabanja/ase | ase/md/nptberendsen.py | Python | gpl-2.0 | 3,886 | [
"ASE"
] | 917584106f38255e8f180632421819697d8df1ab715987a1f7eb817a7cabba8d |
#!/usr/bin/env python
from datetime import date, timedelta
import click
from paper_cal import *
@click.command()
@click.option(
'--year',
'-y',
default=date.today().year,
help='Year to show',
)
def main(year):
''' '''
# https://en.wikipedia.org/wiki/(137108)_1999_AN10
# https://fr... | tylert/wall-calendar-core | holiday_other.py | Python | gpl-3.0 | 16,293 | [
"COLUMBUS"
] | 7896c6a770c36eb9fdf2d0bada12c17754ef8bc40b3a103e88adcdd8f395b78d |
import numpy as np
from ase.optimize.optimize import Dynamics
from ase.optimize.fire import FIRE
from ase.units import kB
from ase.parallel import world
from ase.io.trajectory import PickleTrajectory
class BasinHopping(Dynamics):
"""Basin hopping algorythm.
After Wales and Doye, J. Phys. Chem. A, vol 101 (1... | grhawk/ASE | tools/ase/optimize/basin.py | Python | gpl-2.0 | 4,201 | [
"ASE",
"GPAW"
] | 6ef42ed409c2dfe9560f85188b7d0bfc214eaf46d0627e5e3611c1c362619a5b |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
This module queries NCBI using the Entrez E-utilities programming tools
provided by a BioPython wrapper.
As many queries follow the same format and uses the same database, it is
expedient to wrap them into functions requiring few parameters.
References:
Entrez Pr... | kevinkle/semantic | superphy/src/upload/python/_eutils.py | Python | apache-2.0 | 2,162 | [
"Biopython"
] | 3c469f5a1c9b44896d91f02ad83addb04631137bad37fd4723c2b36f73f4c630 |
# Hop --- a framework to analyze solvation dynamics from MD simulations
# Copyright (c) 2009 Oliver Beckstein <orbeckst@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 versio... | Becksteinlab/hop | hop/graph.py | Python | gpl-3.0 | 115,552 | [
"Biopython",
"CHARMM",
"MDAnalysis",
"VMD"
] | 9c3c45941bc442b2c0033a7931f3da659e3a7de93266800b2cac38f4e590577a |
# Copyright (C) 2012 Olaf Lenz
#
# 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 version.
#
# ESPR... | icimrak/espresso | config/featuredefs.py | Python | gpl-3.0 | 5,293 | [
"ESPResSo"
] | ddb2c42537f1724cdad18e5594c236cc0bec26f7968719da4a0beb1a385fd5e2 |
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 11 18:51:26 2017
@author: Federico Barabas
"""
import numpy as np
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph as pg
from pyqtgraph.parametertree import Parameter, ParameterTree
class DevTree(ParameterTree):
def __init__(self, *args, **kwargs):
... | fedebarabas/ringfinder | ringfinder/pyqtsubclass.py | Python | gpl-3.0 | 5,486 | [
"Gaussian",
"NEURON"
] | 51cb894da7a311eda5f90bcedd70ceabba950a3ec25cbbc256ed2fbbe7740556 |
import os
import shutil
import bcbio.bam as bam
from bcbio.utils import (file_exists, safe_makedir)
from bcbio.pipeline import config_utils
from bcbio.bam import is_paired
from bcbio.provenance import do
from bcbio.distributed.transaction import file_transaction
import bcbio.pipeline.datadict as dd
try:
import pan... | Cyberbio-Lab/bcbio-nextgen | bcbio/rnaseq/featureCounts.py | Python | mit | 2,884 | [
"HTSeq"
] | 0cde1884ae75a660784ff2bbe4f9976cb4bafc5e6aafcc66bdc8804b84ad61e7 |
"""
Functional Alignment
====================
When performing any type of group analysis, we assume that each voxel is
reflecting the same computations across all participants. This assumption is
unlikely to be true. Several standard preprocessing steps assist in improving
'anatomical alignment'. We spatially normaliz... | ljchang/nltools | examples/02_Analysis/plot_hyperalignment.py | Python | mit | 9,758 | [
"Gaussian"
] | a4a55a06df57cf8301774a23bf86eb4ace902a8ce19aaabe0e5240ec7791c876 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Simple example that used to crash when an UpdateExtent request
# from one algorithm is overwritten by a smaller UpdateExtent
# request from another algorithm. The COMBINED_UPDATE_E... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Imaging/Core/Testing/Python/MultipleUpdateExtents.py | Python | gpl-3.0 | 1,300 | [
"VTK"
] | f524f8fc153721905f01210635d17416fd0719dcfff9bd4674f756b8630f4cd7 |
from behave import given, then
import re
@given("I visit the home page")
def impl(context):
context.browser.get('http://localhost:8000/')
@then('I see the call to action "{call_to_action}" on the page')
def find_cta(context, call_to_action):
element = context.browser.find_element_by_css_selector("body")
... | alper/volunteer_planner | tests/_behave/steps/landing_page_steps.py | Python | agpl-3.0 | 2,547 | [
"VisIt"
] | 2b894983fa10ad905d0b60dd05c8d6bdd3408beb33feaa84126105cc56026011 |
""" Some utilities for FTS3...
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import random
import threading
from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations as opHelper
from DIRAC.DataManagementSystem.Client.DataManager impor... | ic-hep/DIRAC | src/DIRAC/DataManagementSystem/private/FTS3Utilities.py | Python | gpl-3.0 | 7,512 | [
"DIRAC"
] | 9178228cd8c63c0be6d6a16f1b1af2a8719d18d5f60852184d17369d62513518 |
from django.conf.urls import url
from crystal_dashboard.dashboards.crystal.policies.access_control import views
urlpatterns = [
url(r'^create/$', views.CreateView.as_view(), name='create'),
url(r'^update/(?P<policy_id>[^/]+)/$', views.UpdateView.as_view(), name='update')
]
| Crystal-SDS/dashboard | crystal_dashboard/dashboards/crystal/policies/access_control/urls.py | Python | gpl-3.0 | 283 | [
"CRYSTAL"
] | 7dc8950c5073fedbcf807756af44bceee8a3cf6c2e5171815fc2cf9cd8846032 |
# coding=utf-8
import math
import numpy as np
from astropy import units as u
#
# This file contains the FieldSpreadFunction and LineSpreadFunction interfaces
# as well as some basic implementations of these interfaces :
# - Gaussian FSF
# - Moffat FSF
# - Gaussian LSF
# - MUSE LSF (only if mpdaf module is ava... | irap-omp/deconv3d | lib/spread_functions.py | Python | mit | 9,801 | [
"Gaussian"
] | d2ec586ed6990cab07a70e7733bf73b8901192132013ca7237561ee0d7e62887 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# $Id: tiff_ovr.py 33793 2016-03-26 13:02:07Z goatbar $
#
# Project: GDAL/OGR Test Suite
# Purpose: Test Overview Support (mostly a GeoTIFF issue).
# Author: Frank Warmerdam <warmerdam@pobox... | nextgis-extra/tests | lib_gdal/gcore/tiff_ovr.py | Python | gpl-2.0 | 66,259 | [
"Gaussian"
] | 12609c76f08e7a5adf4f506077be99cb2d0df6c49b818ef0e0b33da3ad69626b |
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2017 Esteban Tovagliari, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a c... | aytekaman/appleseed | sandbox/samples/python/studio/plugins/textureprocessor/__init__.py | Python | mit | 3,746 | [
"VisIt"
] | c2016c80980ee9d1ab662defb98d27cd20672582e50d838b9f1dee3e87a45ed4 |
#==============================================================================
# spec1D - Vertical and radial soil consolidation using the spectral method
# Copyright (C) 2013 Rohan T. Walker (rtrwalker@gmail.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of th... | rtrwalker/spec1d | spec1d/spec1d_generate_code.py | Python | gpl-3.0 | 16,785 | [
"DIRAC"
] | 3264cb2bfff45eb4603d60a83165552344d6ea188466094a6008f65f1edb4571 |
#! python3.4-32
import sys
import os
import multiprocessing
import zlib
import pickle
from importlib import import_module
from urllib.request import urlretrieve
from .shared import cachepath, appdata, __version__
from .loadbar import Bar
from . import render
__author__ = "Fabian Dill"
__credits__ = ["Ijwu", "7UR7L... | Berserker66/omnitool | omnitool/__init__.py | Python | mit | 41,548 | [
"ADF",
"VisIt"
] | 77933f674a91f482de5b116a7796f043599dd76bed3a66b3ea8833b06659561a |
#
# Copyright 2014-2017, 2021 Lars Pastewka (U. Freiburg)
# 2015 James Kermode (Warwick U.)
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General P... | libAtoms/matscipy | matscipy/io/tbl.py | Python | lgpl-2.1 | 3,756 | [
"Matscipy"
] | 3f8b5733a91665bf43d717c60f76ffa48520dbb6677680c05c7913fc0639bd10 |
#! /usr/bin/env python
'''
This script simulates a neuron driven by an excitatory and an
inhibitory population of neurons firing Poisson spike trains. The aim
is to find a firing rate for the inhibitory population that will make
the neuron fire at the same rate as the excitatory population.
Optimization is performed ... | gewaltig/cython-neuron | cynest/examples/balancedneuron.py | Python | gpl-2.0 | 5,997 | [
"NEURON"
] | 5722576c7b6966fc5c1d1f8340c0c00eb4323ff4d089ebd1eb18424b63cbed55 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Part of the PsychoPy library
# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2020 Open Science Tools Ltd.
# Distributed under the terms of the GNU General Public License (GPL).
import ast
import sys
import re
try:
from metapensiero.pj.api import translates
excep... | psychopy/versions | psychopy/experiment/py2js_transpiler.py | Python | gpl-3.0 | 11,281 | [
"VisIt"
] | d796dc414b5b0fa48443f506a256ca7c70e98ee31a1c905db7f8597abfbfc98f |
# 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/interaction/Quartic.py | Python | gpl-3.0 | 4,562 | [
"ESPResSo"
] | 3964538c0b2c624ad68db2607348b102a1e28f44e7bc83b72dfae67b8eff02b5 |
#!/usr/bin/env python
import unittest
import numpy as np
import pyscf.pbc.mp.kmp2
from pyscf.pbc.mp.kmp2 import get_nocc, get_nmo, get_frozen_mask
class fake_mp:
def __init__(self, frozen, mo_occ, nkpts):
self._nocc = None
self._nmo = None
self.frozen = frozen
self.mo_occ = mo_occ... | sunqm/pyscf | pyscf/pbc/mp/test/test_mask.py | Python | apache-2.0 | 3,996 | [
"PySCF"
] | bbe1a8b914bfa061989594d638de2869d70d96010c5b54c932d05abce5da2920 |
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from .theplatform import ThePlatformIE
from ..utils import (
find_xpath_attr,
lowercase_escape,
smuggle_url,
unescapeHTML,
)
class NBCIE(InfoExtractor):
_VALID_URL = r'https?://www\.nbc\.com/(?:[^/]+/)+(?P<id>n?\... | maleficarium/youtube-dl | youtube_dl/extractor/nbc.py | Python | unlicense | 13,590 | [
"Brian"
] | 5eb9e4a3d4f198870279974e84b64b1ebaf301a21ef70eb182cc049823b706bb |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
from m... | EliotBerriot/mnm | config/urls.py | Python | mit | 1,893 | [
"VisIt"
] | 449e271005fec64d17010688c864136d17f14591e2c12d84ff6bf67d6b8a9b16 |
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2016, 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... | numenta/htmresearch | projects/sdr_paper/sdr_paper_unions.py | Python | agpl-3.0 | 16,962 | [
"NEURON"
] | a33bc2f74270e746fcb4683dafd8d7b69f2d6b7aad03f8d42927651656ed5efb |
# -*- coding: utf-8 -*-
"""
GIS
"""
module = "gis"
MARKER = T("Marker")
gis_location_hierarchy = deployment_settings.get_gis_locations_hierarchy()
# Expose settings to views/modules
_gis = response.s3.gis
# @ToDo: These 3 are deprecated by the new Location Selector
_gis.location_hierarchy = gis_location_hierarc... | ptressel/sahana-eden-madpub | models/03_gis.py | Python | mit | 74,448 | [
"Amber"
] | d755117ec03b52aaad7a50ac23737acc6a2d9143e389d812e508785d415137f7 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/core/ui/shortcutlistdialog.py | Python | gpl-2.0 | 8,279 | [
"Brian"
] | 1a02971ea2419b97723f04e573b07955946d13fb1e2edcb4b32dc776b1eaf48c |
from time import sleep
from lettuce import *
from survey.features.page_objects.question import BatchQuestionsListPage
from survey.features.page_objects.rules import AddLogicToBatchQuestionPage
from survey.models import BatchQuestionOrder
from survey.models import Question
from survey.models.question import QuestionOpti... | unicefuganda/uSurvey | survey/features/rule_to_batch-steps.py | Python | bsd-3-clause | 13,683 | [
"VisIt"
] | e26fd1068c28e6047593a3241eb62519ee96188d5daccc5727118370e88507a5 |
from biblio import Biblio
from journals_lookup import journals_lookup
from Bio import Entrez
from Bio import Medline
from collections import defaultdict
import os
import arrow
# module setup stuff
Entrez.email = "team@impactstory.org"
Entrez.tool = "Impactstory"
def get_medline_records(pmids):
handle = Entrez.e... | Impactstory/biomed | pubmed.py | Python | mit | 5,877 | [
"Biopython"
] | bf70880ca95d6aeb5dd2015a29962fc9f806c9441ba8f80b9d6249fa3e137d2c |
# -*- coding: utf-8 -*-
#This is generated code - do not edit
encoding = 'utf-8'
dict = {
' of ': ' de ',
'&About...': '&A propos de...',
'&Close Document': 'Fermer le &document',
'&Comment Region': '&Commenter la zone',
'&Delete Window': '&Effacer la fen\xc3\xaatre',
'&Describe Action': "&D\xc3\xa9crire l'action",
'&E... | robmcmullen/peppy | peppy/i18n/fr.py | Python | gpl-2.0 | 13,639 | [
"Gaussian"
] | 93cec994b72d3c970632791f807277043e23a30ee4e9ff0c334a002579df8666 |
# compute pairwise energy between 2 groups of atoms
# Syntax: group_energy.py data.file dump.file1 dump.file2 ...
# Author: Paul Crozier (Sandia)
# return distance sq between 2 atoms with PBC
def distance(box,x1,y1,z1,x2,y2,z2):
delx = x2 - x1
dely = y2 - y1
delz = z2 - z1
xprd = box[3] - box[0]
yprd... | sn-amber/mylpp | examples/group_energy.py | Python | gpl-2.0 | 2,652 | [
"CHARMM"
] | ca03c51fca23bd37397964a9954f07e0248fbe5e53baa71e295c9fc915a853ab |
from __future__ import division
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.collections import LineCollection
import pyhsmm
from pyhsmm.basic.distributions import Gaussian
from pyhsmm.util.general import cumsum
from pybasicbayes.util.general import blockarray
from util import AR_striding, ... | fivejjs/pyhsmm-autoregressive | autoregressive/models.py | Python | gpl-2.0 | 19,389 | [
"Gaussian"
] | eda414de7dd9c60b027e2e65a6b5c1e59098806d40031a6e32dbde68d74f147d |
"""
Cubes
=====
Tools to deal with spectroscopic data cubes.
Some features in Cubes require additional packages:
* smoothing - requires agpy_\'s smooth and parallel_map routines
* `pyregion <git://github.com/astropy/pyregion.git>`_
The 'grunt work' is performed by the :py:mod:`cubes` module
"""
from __futu... | mikelum/pyspeckit | pyspeckit/cubes/SpectralCube.py | Python | mit | 59,626 | [
"Gaussian"
] | 24b390962f9929ec39916d096e03dbdd5309c6ccbe65fea94eee3368a7af2923 |
import theano
import theano.tensor as T
from theano.sandbox.rng_mrg import MRG_RandomStreams
from theano.tensor.nnet.conv import conv2d
from theano.tensor.signal.downsample import max_pool_2d
from theano.tensor.shared_randomstreams import RandomStreams
import numpy as np
from toolbox import *
from modelbase import *
... | tigerneil/Theano-Lights | models/ffn_vat.py | Python | mit | 3,594 | [
"Gaussian"
] | 334235da5354efc8c2d5b1f681e76d54114f268de96c155f39fefed68dc42282 |
'''Lexer/parser classes for PDF vote files in which the roll call
votes are shown as embedded images.
'''
import logging
from operator import attrgetter
from tater import Lexer, bygroups, include
from tater import Node, matches
from tater import Visitor
class Lexer(Lexer):
re_skip = r'[\s\n]+'
dont_emit = [... | showerst/openstates | openstates/ma/lexers/with_image.py | Python | gpl-3.0 | 3,431 | [
"VisIt"
] | 98bf399d2eb16f5c326a589ebdd612b81f4e0c90f539376699bb2ca18a0c7cff |
#### Import Libraries#############
import os, sys
from os import path, uname, mkdir
from glob import glob
import string, logging, traceback
from time import time
import numpy as np
from numpy import ma as ma
import scipy as scipy
import matplotlib
import matplotlib.cm as cm
from matplotlib.colors import ListedColor... | hperugu/SatelliteRemoteSensing | hdf5toVI_GeoTiff_v1.py | Python | gpl-3.0 | 18,176 | [
"Bowtie"
] | e1de81819900ab1a9bb2b0efbaff5cf4b7cd5cecf8c08e6be972af3d5310ae68 |
import smtplib
from email.mime.text import MIMEText
from web_frontend import settings
from string import Template
from django.core.urlresolvers import reverse
def send_email(job):
#Only do something if email is enabled in the settings file
if not settings.SEND_EMAILS:
return
sender = settings... | Nucleoos/condor-copasi | web_frontend/email_notify.py | Python | artistic-2.0 | 1,678 | [
"COPASI",
"VisIt"
] | 64076507458b2271deea66bf502d1f359f42808fc6f2a1e0168437cfb311adf4 |
# Copyright (c) Amber Brown, 2015
# See LICENSE for details.
from subprocess import call
import os
import click
def remove_files(fragment_filenames, answer_yes):
if not fragment_filenames:
return
if answer_yes:
click.echo("Removing the following files:")
else:
click.echo("I want... | hawkowl/towncrier | src/towncrier/_git.py | Python | mit | 678 | [
"Amber"
] | 96cf8cfa6d46f4145f45e95c091188068e1624f3606c84094b54e1f3583b07a5 |
##
# Copyright 2013-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/n/netcdf4_python.py | Python | gpl-2.0 | 2,945 | [
"NetCDF"
] | 7c218f9024fbd56c6bb13c3b2771e35c67d61f3a8d1199bb058c40a84524e737 |
# sql/visitors.py
# Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Visitor/traversal interface and library functions.
SQLAlchemy schema and express... | gltn/stdm | stdm/third_party/sqlalchemy/sql/visitors.py | Python | gpl-2.0 | 15,940 | [
"VisIt"
] | 4caacb80b238ff4593cabb032f90a4bc558b03fe920a5126862dde89bf5e7534 |
###############################
# This file is part of PyLaDa.
#
# Copyright (C) 2013 National Renewable Energy Lab
#
# PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to submit
# large numbers of jobs on supercomputers. It provides a python interface to physical input, suc... | pylada/pylada-light | tests/vasp/test_ediff.py | Python | gpl-3.0 | 7,971 | [
"CRYSTAL",
"VASP"
] | c481912222a509574da6d99fd6e443630e98919eac30758e5070c0f078a8daa1 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2007-2009 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2012-2014 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms o... | pmghalvorsen/gramps_branch | gramps/plugins/textreport/ancestorreport.py | Python | gpl-2.0 | 13,554 | [
"Brian"
] | 5295419d3610a1811a0fa82257da1e582f2332abeddb38023839eaf3de73af53 |
import numpy as np
import numpy.ma as ma
import pylab as pl
from numpy import random
from scipy.signal import convolve2d, fftconvolve
import scipy.ndimage as nd
@np.vectorize
def divide_array(a,b):
'''a/b'''
if abs(b) < 1e-1:
return 0.
else:
return a/b
def Gaussian(sigma, size=11, ndim=2):... | vvinuv/kappabias | bias/convolution_mask.py | Python | gpl-2.0 | 4,820 | [
"Gaussian"
] | 8a1949f1be140c06ef262c6598d98d6139ab9972fdf919ee243be8c6648be7fd |
#!/usr/bin/env python
# (the first line allows execution directly from the linux shell)
#
# --- simple hartree-fock simulation, basically a port of http://personal.ph.surrey.ac.uk/~phs3ps/simple-hf.html
# Author: M. Langer, T. Horstschaefer
# dependencies: PYTHON v2.7, numpy
# last modified:
# coding=utf... | sirmarcel/simple-hf | hf.py | Python | bsd-3-clause | 1,639 | [
"Gaussian"
] | 3e6c7ff947800566856963fd39d88c2b945d22b6cf1c83c9fad7c821429cf60d |
import os
import mock
import time
import pytest
from purl import URL
from django.conf import settings
from django.template import RequestContext
from django.core.urlresolvers import reverse
from django import VERSION as DJANGO_VERSION
from django.core.management import call_command
from django.db import connections, ... | socradev/django-fancypages | fancypages/test/testcases.py | Python | bsd-3-clause | 5,969 | [
"VisIt"
] | 4ea81fc01720b2342bb1f7dd0677c2fda17f9a95605954a86567993cb029d188 |
# Orca
#
# Copyright (C) 2011-2013 Igalia, S.L.
#
# Author: Joanmarie Diggs <jdiggs@igalia.com>
#
# This 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 the Free Software Foundation; either
# version 2.1 of the License, or (... | chrys87/orca-beep | src/orca/label_inference.py | Python | lgpl-2.1 | 19,404 | [
"ORCA"
] | 5f65ee9d8216b77df0df377c017c43a925a7e5ea36dfc0473936d7915928bec9 |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from DIRAC.AccountingSystem.Client.Types.BaseAccountingType import BaseAccountingType
import DIRAC
__RCSID__ = "$Id$"
class DataOperation(BaseAccountingType):
def __init__(self):
super(DataOperation, s... | yujikato/DIRAC | src/DIRAC/AccountingSystem/Client/Types/DataOperation.py | Python | gpl-3.0 | 1,703 | [
"DIRAC"
] | f7456a6ca4cfacb36b1722f4d4e00e7ebb0bcf07d2f5387d20381355f3f3d17c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.