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 |
|---|---|---|---|---|---|---|---|
# 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... | ghchinoy/tensorflow | tensorflow/contrib/gan/python/eval/python/classifier_metrics_impl.py | Python | apache-2.0 | 45,060 | [
"Gaussian"
] | 9a2e8512f85886a0f6823240ad831bccc57f2c198ed7d88fbc9ca70faff42d97 |
"""
This class includes all of the functions that used by MeshOperations.py for the creation of the mesh.
"""
from mesh_netcdf.StandardModules import *
import sys
from PyQt4.QtGui import *
from export_geo import *
class PreMesh(DefineDomain):
"""
Once the user has selected something from the drop-dow... | janhui/test_engine | dev/plugins/mesh_netcdf/scripts/PreMeshingFunctions.py | Python | lgpl-2.1 | 5,914 | [
"NetCDF"
] | 70cf26dc0a35050258c069c7dd0f582342f113194bf94c6bb0037e92b9599740 |
# This file is part of cclib (http://cclib.github.io), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2015, 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 s... | andersx/cclib | test/writer/testxyzwriter.py | Python | lgpl-2.1 | 1,234 | [
"ADF",
"cclib"
] | 38365a6216262f33a889d4c05d20711b2f284778459530c9148de2a0abfc5a21 |
#!/usr/bin/env python
###############################################################################
# Copyright (C) 1994 - 2013, Performance Dynamics Company #
# #
# This software is licensed as described in the file COPY... | evelynmitchell/pdq | examples/misc/jackpdq.py | Python | mit | 4,650 | [
"VisIt"
] | d67729c5fa42848436f3e538ad12a28e7389ad30d80de8f8fb5c25324dc55bfe |
#
# cl.h - Compression Library typedefs and prototypes
#
# 01/07/92 Cleanup by Brian Knittel
# 02/18/92 Original Version by Brian Knittel
#
#
# originalFormat parameter values
#
from warnings import warnpy3k
warnpy3k("the CL_old module has been removed in Python 3.0", stacklevel=2)
del warnpy3k
MAX_NUMBER_O... | teeple/pns_server | work/install/Python-2.7.4/Lib/plat-irix5/CL_old.py | Python | gpl-2.0 | 6,162 | [
"Brian"
] | 9a78cc38f3f8d9a70a7e7ab9e79d1efad08195e77a66a8a733565356e7415f84 |
"""
This module implements the functionality to take any Python expression as a
string and fix all numbers and other things before evaluating it,
thus
1/2
returns
Integer(1)/Integer(2)
We use the Python ast module for that, which is in python2.6 and later. It is
well documented at docs.python.org.
Some tips to und... | hazelnusse/sympy-old | sympy/core/ast_parser.py | Python | bsd-3-clause | 3,482 | [
"VisIt"
] | ecff1c5f09e1340e99216a50c60736c3e7e831ecf97522ae0f3d5d8bebb239b0 |
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Brian Coca <bcoca@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
class ModuleDocFragment(object):
# Standard files documentation fragment
DOCUMENTATION = r'''
options:
decrypt:
description:
-... | anryko/ansible | lib/ansible/plugins/doc_fragments/decrypt.py | Python | gpl-3.0 | 451 | [
"Brian"
] | c1554fa70a42d8aa33a68411d99c8aea446f40137d79e4d513486df2ca855d65 |
"""
Copyright (c) 2015 Andreea Georgescu
Created on Wed Nov 19 00:18:55 2014
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.
... | SamWitte/Codds_DarkMatter | src/Data/SuperCDMSLikelihood.py | Python | gpl-2.0 | 3,283 | [
"DIRAC"
] | 701d9784a8f3fe3e1065e796c74ff58dc376076997408fb4c491fb676e22a301 |
#!/usr/bin/python
"""Test of learn mode."""
from macaroon.playback import *
import utils
sequence = MacroSequence()
sequence.append(KeyPressAction(0, None, "KP_Insert"))
sequence.append(TypeAction("h"))
sequence.append(KeyReleaseAction(0, None, "KP_Insert"))
sequence.append(KeyComboAction("F1"))
sequence.append(Pa... | pvagner/orca | test/keystrokes/helpcontent/struct_nav_paragraph.py | Python | lgpl-2.1 | 10,816 | [
"ORCA"
] | 7e2da9c579a9b01def1528b1b5bd904a9684601a60845f6cb83ceb0ba6564691 |
from __future__ import print_function
from pixell import enmap, utils, resample, curvedsky as cs, reproject
import numpy as np
from pixell.fft import fft,ifft
from scipy.interpolate import interp1d
import yaml,six
from orphics import io,cosmology,stats
import math
from scipy.interpolate import RectBivariateSpline,inte... | msyriac/orphics | orphics/maps.py | Python | bsd-2-clause | 65,123 | [
"Gaussian"
] | 92684dd4e0784065e96cd72452260038ac9fa917de78d4dae417e0a7ff8fc0b2 |
# Copyright (C) 2011-2018 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | hmenke/espresso | testsuite/python/ek_eof_one_species_z.py | Python | gpl-3.0 | 1,282 | [
"ESPResSo"
] | 2a52e03f93ef3de34ae9e7148bc8299dce51e1d5b71703a34fd383b3516bff28 |
"""Support for Z-Wave lights."""
from __future__ import annotations
import logging
from typing import Any
from zwave_js_server.client import Client as ZwaveClient
from zwave_js_server.const import (
TARGET_VALUE_PROPERTY,
TRANSITION_DURATION_OPTION,
CommandClass,
)
from zwave_js_server.const.command_class... | rohitranjan1991/home-assistant | homeassistant/components/zwave_js/light.py | Python | mit | 18,712 | [
"Amber"
] | 9d853268ba4214437b40b2e29531c46300d14ce2b78425e2a41416b4f21fdf2e |
# -*- 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
urlpatterns = [
url(r'^graphs$', TemplateView.as_view... | atiro/obesitydata | config/urls.py | Python | bsd-3-clause | 1,616 | [
"VisIt"
] | 017442ac34bc9edb4ce93f36e33f1543696973fcdcb558e88c3c0db155307186 |
# coding=utf-8
"""
InaSAFE Disaster risk assessment tool developed by AusAid -
**IS Utilities implementation.**
Contact : ole.moller.nielsen@gmail.com
.. note:: 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 Fre... | MariaSolovyeva/inasafe | safe/utilities/utilities.py | Python | gpl-3.0 | 13,067 | [
"VisIt"
] | d7b607536484c9cc4cd51ccfb70b03970b399a76c44661b07d98decee33f3207 |
from __future__ import print_function
import numpy as np
from box import mix
from scipy.linalg import norm
from scipy.optimize import fminbound
from scipy.optimize import brentq
from scipy.interpolate import splprep
from scipy.interpolate import splrep
from scipy.interpolate import splev
from scipy.interpolate import ... | pekkosk/hotbit | box/interpolation.py | Python | gpl-2.0 | 28,672 | [
"VTK"
] | 5a89b2ab5fc6ed77f4d15a21a9c9fe34a331d110ea75547b2f0c2fbd33ed9cc1 |
import os
from paegan.cdm.dataset import CommonDataset
from paegan.location4d import Location4D
import numpy as np
class Bathymetry():
def __init__(self, **kwargs):
"""
Optional named arguments:
* file (local path or dap to bathymetry netcdf file)
"""
if kwargs.g... | asascience-open/paegan-transport | paegan/transport/bathymetry.py | Python | gpl-3.0 | 2,734 | [
"NetCDF"
] | 46af6d88f63e0520646b3ebc035528220db062b042e256922f27dbcea2d7fa1f |
from .utils import *
from vase.gt_annotator import GtAnnotator
from collections import defaultdict
def get_annotated_gts(anno_vcf, annot):
expected_annots = defaultdict(dict)
with pysam.VariantFile(anno_vcf) as vcf:
for record in vcf:
rid = var_string_from_record(record)
for s ... | gantzgraf/vape | test/test_gt_annotator.py | Python | gpl-3.0 | 2,352 | [
"pysam"
] | df4114a0b6a4902faa9a396565450df73073d2627ef1befb5c2f51b7334c59a1 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | ForkedReposBak/mxnet | python/mxnet/initializer.py | Python | apache-2.0 | 24,484 | [
"Gaussian"
] | cf4870f4c9234b7962d9aa03be07804ec062dbb2b01d74b99cd0fa6303d59dc1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Takes *.mae structure files and merges them.
The input *.mae files contain information pertinent to merging. This information
is stored as Schrödinger structure properties and is described below. This
information is manually entered by editing the *.mae files.
Structu... | ericchansen/q2mm | screen/merge.py | Python | mit | 41,221 | [
"MacroModel"
] | 2b93d9d4dc285c6e9a0d2434db272274f7ae7006080c34ea28d0f6b488fa328d |
#!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | feanil/ansible-modules-core | files/acl.py | Python | gpl-3.0 | 9,778 | [
"Brian"
] | 161622ab1b862863839fee83cccb306ea767f4e33b945ff8ad0b70b799f163fe |
# GNU Solfege - free ear training software
# vim: set fileencoding=utf-8 :
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008 Tom Cato Amundsen
#
# 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... | gabrielelanaro/solfege | solfege/gu.py | Python | gpl-3.0 | 39,182 | [
"VisIt"
] | 816d5d1d0cdf251579b06aefb7c8a01047c9e77676fb4944af135f0d2bb8d7c2 |
from __future__ import unicode_literals
import base64
import datetime
import hashlib
import json
import netrc
import os
import re
import socket
import sys
import time
import math
from ..compat import (
compat_cookiejar,
compat_cookies,
compat_etree_fromstring,
compat_getpass,
compat_http_client,
... | kenwang815/KodiPlugins | script.module.youtube.dl/lib/youtube_dl/extractor/common.py | Python | gpl-2.0 | 79,445 | [
"VisIt"
] | 39f3d8e46fc27314c1b565838b5ca2375662133476eeab2bda85b10c50a258b1 |
#User provided customizations for the gpaw setup
import os
# compiler
compiler = './gcc.py'
mpicompiler = './gcc.py'
mpilinker = 'cc'
extra_compile_args = ['-std=c99 -fopenmp-simd']
# libz
libraries = ['z']
# libxc
library_dirs += [os.environ['LIBXCDIR'] + '/lib']
include_dirs += [os.environ['LIBXCDIR'] + '/include'... | mlouhivu/build-recipes | gpaw/examples/sisu-1.4.0/setup/customize-sisu.py | Python | mit | 597 | [
"GPAW"
] | e0d7d896c054fb667f7f500b0ba887bb48ade4820f6ba89542abea0b0b3ca2c9 |
../../../../share/pyshared/orca/notification_messages.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/notification_messages.py | Python | gpl-3.0 | 56 | [
"ORCA"
] | 6a588bb273d4fa91496ce4e6340e595c152f9309ae9c5283941911a439cec414 |
from paver.easy import *
from paver.setuputils import setup
options = environment.options
NAME = 'blackbelt'
VERSION = '0.16.0'
requires = ['six', 'click', 'requests', 'PyGithub', 'slacker>=0.6.2', 'pyopenssl', 'ndg-httpsclient', 'pyasn1', 'twine']
setup(
name=NAME,
version=VERSION,
description='Project... | apiaryio/black-belt | pavement.py | Python | mit | 4,264 | [
"VisIt"
] | 8ccc55af327add391dd391e8c14501a2ac3c158056f461f866f28280a16f60b8 |
# Please do not change this widgets module for Quisk. Instead copy
# it to your own quisk_widgets.py and make changes there.
#
# This module is used to add extra widgets to the QUISK screen.
from __future__ import print_function
import wx, time
import _quisk as QS
class BottomWidgets: # Add extra widgets to the bot... | gonesurfing/Quisk_rpi_remote | n2adr/uhfrx_widgets.py | Python | gpl-2.0 | 953 | [
"ADF"
] | 07fccfb252095dcd87877ae2c8dc8ffd0f5f3b63a222eb32a43eeb626118bd46 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache/incubator-singa | test/python/test_tensor.py | Python | apache-2.0 | 21,972 | [
"Gaussian"
] | 3d61e1ffc116fd18c36d589e77d6035a5e774f9883507a09410ef535507b9e04 |
# coding: utf-8
from __future__ import division, unicode_literals
"""
This module implements a Composition class to represent compositions,
and a ChemicalPotential class to represent potentials.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "0.1"
__maintainer... | ctoher/pymatgen | pymatgen/core/composition.py | Python | mit | 31,215 | [
"pymatgen"
] | 2f3cfdd837822f9acef07993d55f3b5e59ec7e7195e66cb56263f00c293c4c3c |
"""Methods for creating saliency maps."""
import pickle
import numpy
from keras import backend as K
from gewittergefahr.gg_utils import file_system_utils
from gewittergefahr.gg_utils import error_checking
from gewittergefahr.deep_learning import model_interpretation
TOLERANCE = 1e-6
DEFAULT_IDEAL_ACTIVATION = 2.
PRE... | thunderhoser/GewitterGefahr | gewittergefahr/deep_learning/saliency_maps.py | Python | mit | 22,461 | [
"NEURON"
] | 281d1d6bf17f7eb049b3911d2ccaf0c431a62da6d9c9ef8318c6fefc2ee2ddb3 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2007-2009 Brian G. Matherly
# Copyright (C) 2009 Gary Burton
# Copyright (C) 2010 Peter Landgren
# Copyright (C) 2011 Adam Stein <adam@csh.rit.edu>
#
# This program is free software; you... | Forage/Gramps | gramps/plugins/docgen/rtfdoc.py | Python | gpl-2.0 | 21,285 | [
"Brian"
] | e5cc76b9e13002a657113dcf1e253da8c24cc4dc748f1592a4d7d600dc5cb635 |
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
from Bio import Seq
from Bio import SeqIO
import pandas as pd
import numpy as np
import sys
import os
sys.path.append('/home/will/PySeqUtils/')
from GeneralSeqTools import fasta_reader, fasta_writer
from HIVAlignTools import SeqTransformer, build_aligner... | JudoWill/ResearchNotebooks | HIVTransTool.py | Python | mit | 8,007 | [
"BLAST"
] | ed43f0b93a3a61e1c0c5ab86e6266bfcc2aba4ef5cbc4b01bdb8d8d66837dde5 |
from __future__ import print_function
import attr
import numpy as np
import pytest
import scipy.ndimage
from pytest import approx
from fastimgproto.fixtures.image import (
add_gaussian2d_to_image,
gaussian_point_source,
uncorrelated_gaussian_noise_background,
)
from fastimgproto.fixtures.sourcefits import... | SKA-ScienceDataProcessor/FastImaging-Python | tests/test_sourcefind/test_detection.py | Python | apache-2.0 | 11,855 | [
"Gaussian"
] | 85416ff9b293540d6f996967b28a1c24e4cd61c485f433af2e066d9f257eb0e1 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007 Johan Gronqvist (johan.gronqvist@gmail.com)
# copyright (C) 2007 Brian G. Matherly
#
# 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 ... | arunkgupta/gramps | gramps/gen/filters/rules/person/_missingparent.py | Python | gpl-2.0 | 2,373 | [
"Brian"
] | 38d50eea6c2050055be17ec609493d42ba6790ec3149a7f5b78ec8628d57d172 |
"""
.. moduleauthor:: Gillian Basso<gillian.basso@hevs.ch>
.. codeauthor:: Gillian Basso<gillian.basso@hevs.ch>
This module provides a unit management based on pint
(https://pypi.python.org/pypi/Pint/).
*******************************
How to use :mod:`gridsim.units`
*******************************
The unit in Gridsi... | gridsim/gridsim | gridsim/unit.py | Python | gpl-3.0 | 22,051 | [
"Dalton"
] | c332006d5e29d54cf04b373bc25af171b34f9e1ae12775f3aa5c54f6efc4c937 |
# -*- coding: utf-8 -*-
import numpy as np
import pylab
from scipy.optimize import fmin, fmin_ncg, fmin_cg
from scipy import linalg
from .. import kernels
class GP:
"""A simple GP with optimisation of the hyperparameters via the marginal
likelihood approach. There is a Univariate Gaussian Prior on the
hyperparam... | jameshensman/pyGP | src/pyGP/regression/basic_regression.py | Python | gpl-3.0 | 6,728 | [
"Gaussian"
] | 2a4483e35b5c2db2c040aaef5df4c3e775f2312ce8e8dbc71b3fae6eb424d1a3 |
# -*- coding: utf-8 -*-
"""
End-to-end tests for Student's Profile Page.
"""
from contextlib import contextmanager
from datetime import datetime
from bok_choy.web_app_test import WebAppTest
from nose.plugins.attrib import attr
from ...pages.common.logout import LogoutPage
from ...pages.lms.account_settings import Acc... | 10clouds/edx-platform | common/test/acceptance/tests/lms/test_learner_profile.py | Python | agpl-3.0 | 35,209 | [
"VisIt"
] | 7b5cbdb9be5bcd09fd4d47a0470c9b155ce4bb49c2031db061050eb1fc52ed32 |
# Copyright 2008 Brian Boyer, Ryan Mark, Angela Nitzke, Joshua Pollock,
# Stuart Tiffen, Kayla Webley and the Medill School of Journalism, Northwestern
# University.
#
# This file is part of Crunchberry Pie.
#
# Crunchberry Pie is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gene... | brianboyer/newsmixer | social/quips/templatetags/quips.py | Python | gpl-3.0 | 2,878 | [
"Brian"
] | 4d2b64613f8fcd6e44ad6fa8437739f58243e9f14826b646b9a301d8c0c09c6f |
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2002-2006 Donald N. Allingham
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2011 Tim G L Lyons
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published b... | sam-m888/gprime | gprime/filters/rules/event/__init__.py | Python | gpl-2.0 | 2,326 | [
"Brian"
] | cdb12bb128c8b9f279520623f5decbe5e68c018be91f74fc0c00e456ba4f0ce9 |
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2016 OpenStack Foundation
#
# 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... | tipabu/swift | test/unit/proxy/test_server.py | Python | apache-2.0 | 505,156 | [
"MOOSE"
] | f1f5fc3fee61d367297e7c4fef0b6eaa2c8f621f086b10ab7d4f3aa76cb611e1 |
#!/usr/bin/env python
# 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.
# Copyright (C) 2008 Evan Martin <martine@danga.com>
"""A git-command for integrating reviews on Rietveld."""
from distutils.vers... | junhuac/MQUIC | depot_tools/git_cl.py | Python | mit | 144,465 | [
"VisIt"
] | 48024c1a0ebdc7de22cbd1aa36eb3222c980632db57839593956ba4af67119b2 |
from django.conf import settings
# Attributes in this settings.py file can be edited directly or overridden by adding to main project settings.py
# To add to main project settings.py add as standard django list.
# example
## IGNORED_USER_AGENTS = ['agent1', 'agent2', 'etc']
## IGNORED_URLS = ['/url1', '/url2', '/url/e... | shadowym/django-pageviewsplus | pageviewsplus/settings.py | Python | gpl-3.0 | 1,555 | [
"Firefly",
"Galaxy"
] | 116378ec6a6ab593e7987af45256aeb3ebbd017b4090b29747b39d75e95c5277 |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RFdbInfiniummethylationHg18(RPackage):
"""Annotation package for Illumina Infinium DNA met... | LLNL/spack | var/spack/repos/builtin/packages/r-fdb-infiniummethylation-hg18/package.py | Python | lgpl-2.1 | 1,188 | [
"Bioconductor"
] | ba5c748f6ac9097a69cdc604bff24337eb07244cbadf8e7681f4cada5ca35b42 |
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/
#
# Copyright (c) 2008 - 2014 by Wilbert Berendsen
#
# 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
... | brownian/frescobaldi | frescobaldi_app/scorewiz/parts/plucked_strings.py | Python | gpl-2.0 | 13,457 | [
"ADF"
] | 322e9ec3c692ea2e4fe4039c6c09c186c39db3b6831f1237753f572773c1a194 |
import unittest
from unittest.mock import patch
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from datetime import datetime
from meerkat_abacus.config import config
from meerkat_abacus import model
from meerkat_abacus.pipeline_worker.process_steps import initial_visit_control
from meerka... | who-emro/meerkat_abacus | meerkat_abacus/pipeline_worker/tests/test_initial_visit_control.py | Python | mit | 3,806 | [
"VisIt"
] | fb76a3c063bffcc325d2819829ba6f51ea9052237c894fca590182d80fe689f6 |
from collections import defaultdict
import networkx as nx
__all__ = ["check_planarity", "PlanarEmbedding"]
def check_planarity(G, counterexample=False):
"""Check if a graph is planar and return a counterexample or an embedding.
A graph is planar iff it can be drawn in a plane without
any edge intersecti... | SpaceGroupUCL/qgisSpaceSyntaxToolkit | esstoolkit/external/networkx/algorithms/planarity.py | Python | gpl-3.0 | 38,046 | [
"VisIt"
] | ca5f03b1fad607333592b1e963274b9d571fe2a87e2a70ad634cad6457601228 |
try:
from osgeo import gdal
except ImportError:
try:
import gdal
except ImportError:
print("Unable to load GDAL support, no heightmap export possible.")
import tempfile
import numpy
import os
import sys
'''
Whenever a GDAL short-format (http://www.gdal.org/formats_list.html) is given
and ... | esampson/worldengine | worldengine/imex/__init__.py | Python | mit | 4,999 | [
"ADF"
] | 33b0c39888a7d556355ca81a48c319e4c3e69d6f3873de007c162c2127256c70 |
from __future__ import print_function, division, absolute_import, unicode_literals
from nltk.corpus import wordnet as wn
import random
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.style.use('ggplot')
import click
def transitive_isometry(t1, t0):
u'''
computing isometry which move... | TatsuyaShirakawa/poincare-embedding | scripts/plot_mammal_subtree.py | Python | mit | 2,981 | [
"Elk"
] | 3a39146071339a3cb1d669e5f5607aeebc7743cd87babc5271a51087c3b0f9d5 |
import os
import numpy as np
from subprocess import call
from shutil import copyfile
'''
Copyright (c) Hstau Liao 2018-2019
Copyright (c) Evan Seitz 2018-2019
'''
def init():
# resume project:
global proj_name #user-defined project name
global resProj #GUI gatekeeping for resuming previous project
''... | hstau/covar-cryo | covariance/p.py | Python | gpl-2.0 | 11,198 | [
"Gaussian"
] | bce83eecac8204e6e40fa4ba9d454846a006344e4d80c402f5d3a8baedcb49da |
import os, platform
import argparse
import sys
import tempfile
from Bio import SeqIO
from Bio.SeqFeature import FeatureLocation
from Bio.SeqFeature import SeqFeature
class Operon():
def __init__(self, name, genes, info, terminator, regstart, regend, strand):
self.name = name
self.genes = genes
... | nikolaichik/SigmoID | Python/OperOn.py | Python | gpl-3.0 | 33,285 | [
"Biopython"
] | a81518b172adb0c2134ef31c3f6cec0d349a5ac318fa542217873e934bf340db |
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | gkc1000/pyscf | pyscf/nao/lsofcsr.py | Python | apache-2.0 | 2,706 | [
"PySCF"
] | e6732506a7f37e3c9c78a3e5efbe1ee12542a2a17cdef7d19798cade718c7224 |
#!python
"""\
Easy Install
------------
A tool for doing automatic download/extract/build of distutils-based Python
packages. For detailed documentation, see the accompanying EasyInstall.txt
file, or visit the `EasyInstall home page`__.
__ http://packages.python.org/distribute/easy_install.html
"""
import sys
impor... | kikin81/heroku-buildpack | vendor/distribute-0.6.49/setuptools/command/easy_install.py | Python | mit | 74,154 | [
"VisIt"
] | 9477fb036be0019072617050c099c77243c0fc827094e50f4c58b326bcb22b03 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Ansible module to manage PaloAltoNetworks Firewall
# (c) 2016, techbizdev <techbizdev@paloaltonetworks.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 publish... | alxgu/ansible | lib/ansible/modules/network/panos/_panos_check.py | Python | gpl-3.0 | 3,990 | [
"Galaxy"
] | ed02568849d14354233c8743b9fd7458aae90f22526b8e5fe9d631fdf3fb46f0 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2008 Gary Burton
#
# 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 v... | SNoiraud/gramps | gramps/gen/plug/menu/_boolean.py | Python | gpl-2.0 | 1,780 | [
"Brian"
] | ce7ad0e2073a826ade5b7448f66f1ad3423d44cb87e64b45fbd357ffbda263f6 |
import moogli
import numpy
import pylab
from matplotlib.cm import gnuplot
import moose
from moose import neuroml
from PyQt4 import Qt, QtCore, QtGui
import matplotlib.pyplot as plt
import sys
import os
from moose.neuroml.ChannelML import ChannelML
sys.path.append('/home/bhalla/moose/trunk/Demos/util')
import rdesigneur... | dilawar/moose-full | moose-examples/tutorials/Rdesigneur/spikingMultiscale.py | Python | gpl-2.0 | 6,479 | [
"MOOSE",
"NEURON"
] | 42b9659601492b036c5e6910856df358e148964f723a8da180c71e9856f8327a |
from .. import Provider as MiscProvider
class Provider(MiscProvider):
"""
Provider for miscellaneous data for en_PH locale
This class also houses all other provider methods that would have otherwise been weird to place in another provider.
"""
gemstone_names = (
'Agate', 'Amber', 'Amethy... | danhuss/faker | faker/providers/misc/en_PH/__init__.py | Python | mit | 3,051 | [
"Amber",
"Galaxy"
] | 4b36a76d137f3e9aaa049d7c85a24c87437864b3a8bcf2955a619ed473db83be |
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2007, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# For complete informat... | zenoss/ZenPacks.community.HPBladeChassis | ZenPacks/community/HPBladeChassis/modeler/plugins/BladeServers.py | Python | gpl-2.0 | 5,327 | [
"VisIt"
] | 73001aaa3e7ce8d589dc83618ff9c1f67b748ee6386019b8efade7549e875dc2 |
"""
LMS edxnotes page
"""
from bok_choy.page_object import PageLoadError, PageObject, unguarded
from bok_choy.promise import BrokenPromise, EmptyPromise
from selenium.webdriver.common.action_chains import ActionChains
from common.test.acceptance.pages.common.paging import PaginatedUIMixin
from common.test.acceptance... | edx-solutions/edx-platform | common/test/acceptance/pages/lms/edxnotes.py | Python | agpl-3.0 | 17,148 | [
"VisIt"
] | 4b2b1e442854278e510b42adc2c44ff5e5f1d81be65286084875cc76ffa6c681 |
# ----------------------------------------------------------------------
# LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
# http://lammps.sandia.gov, Sandia National Laboratories
# Steve Plimpton, sjplimp@sandia.gov
#
# Copyright (2003) Sandia Corporation. Under the terms of Contract
# DE... | jcarlson23/lammps | python/lammps.py | Python | gpl-2.0 | 6,013 | [
"LAMMPS"
] | 3b01a954177a52e0b1be5b67e327066fee6688e2aff7f175f605f4cb213ba24e |
"""
Installation file for python pyvista module
"""
import os
# import sys
from io import open as io_open
from setuptools import setup
package_name = 'pyvista'
__version__ = None
filepath = os.path.dirname(__file__)
version_file = os.path.join(filepath, package_name, '_version.py')
with io_open(version_file, mode='r'... | akaszynski/vtkInterface | setup.py | Python | mit | 3,226 | [
"VTK"
] | 5d4b319a83c10cb01536354325ac2c10b5f490e17f7b79a9f5655d43c8d294cd |
#!/usr/bin/python
#
# Copyright 2012 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 b... | donspaulding/adspygoogle | examples/adspygoogle/adwords/v201302/misc/use_oauth2.py | Python | apache-2.0 | 5,056 | [
"VisIt"
] | 7b7ded78e45da783d4c9778e7aa4ad53a6ff98a13bdb971de245f883307cdf27 |
# -*- coding: utf-8 -*-
# Copyright (C) 2008, 2009 Adriano Monteiro Marques
#
# Author: Francesco Piccinno <stack.box@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version ... | dennisfrancis/PacketManipulator | umit/pm/gui/plugins/pluginpage.py | Python | gpl-2.0 | 21,608 | [
"VisIt"
] | 863343fd29c65827c17b42f2982af4d0a7acb7424b4853616c28424a94756ea6 |
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 29 18:44:54 2013
Configuration for timestamp server. All options must be present, even if set
to None.
Members follow capitalization of their namesake OpenSSL options.
@author: Brian Visel <eode@eptitude.net>
"""
import os
### Configuration ###
data_dir = '/opt/ts_s... | barronmo/gecko_emr | ts_project.rc1/timestamping/config.py | Python | gpl-2.0 | 3,261 | [
"Brian"
] | a2dc0b7ced8d1f45b14e029e9fdfd20e929a063af065a94b3d7a924f910691bb |
#!/usr/bin/env python
# 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.
"""Generates .h and .rc files for installer strings. Run "python
create_string_rc.py" for usage details.
This script generates an ... | was4444/chromium.src | chrome/installer/util/prebuild/create_string_rc.py | Python | bsd-3-clause | 15,706 | [
"xTB"
] | 76ea590c12a58e1bad0afbda334b9d2051905245831c3f63d4df6d67b05e472f |
# #####
# This file is part of the RobotDesigner of the Neurorobotics subproject (SP10)
# in the Human Brain Project (HBP).
# It has been forked from the RobotEditor (https://gitlab.com/h2t/roboteditor)
# developed at the Karlsruhe Institute of Technology in the
# High Performance Humanoid Technologies Laboratory (H2T)... | HBPNeurorobotics/BlenderRobotDesigner | robot_designer_plugin/operators/dynamics.py | Python | gpl-2.0 | 15,273 | [
"VisIt"
] | 5d8f3837a6e9b34f445dc538fd61286b3630ceedea82045f202faf5e4951284f |
from setuptools import setup, find_packages
import os
import glob
package_dir = {'': 'src'}
for pkg in [pkg for pkg in find_packages("src") if pkg.find('.') > -1]:
package_dir['rocketblast' + "." + pkg] = "src" + os.sep + pkg
datadir = os.path.join('data')
data_files = [(datadir, [f for f in glob.glob(os.path.joi... | rocketblast/rcon | setup.py | Python | agpl-3.0 | 1,248 | [
"BLAST"
] | c6add4996def318a90996f0e91a4d06711926ef332981b9cd20be3c47ef6d13e |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: Gensim Contributors
# Copyright (C) 2018 RaRe Technologies s.r.o.
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Introduction
============
This module implements the word2vec family of algorithms, using highly optimized C routin... | gojomo/gensim | gensim/models/word2vec.py | Python | lgpl-2.1 | 104,865 | [
"VisIt"
] | 26477beab10298219422a24347a7b9bb0736e32ea08a836ce1a096f1a9567cdb |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | kain88-de/mdanalysis | testsuite/MDAnalysisTests/analysis/test_distances.py | Python | gpl-2.0 | 9,839 | [
"MDAnalysis"
] | 15ba8cc7ac0843a114a699fe84a9860b5bbeeedfc547827d7cef57d4f637ceff |
# The MIT License (MIT)
#
# Copyright (c) 2016 Paul Watkins, National Institutes of Health / NINDS
#
# 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 lim... | elhuhdron/emdrp | neon3/arch/emarch.py | Python | mit | 25,008 | [
"Gaussian"
] | 3ec7b8a613f03fc140c0ad3b7645895eebdf546263d64100ec1d24edf1e7ad87 |
##########################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id$
#
# Copyright (C) 2009 Andreas Heger
#
# 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 ... | CGATOxford/Optic | scripts/gpipe/gbrowser_clone_devel.py | Python | mit | 5,812 | [
"CFOUR"
] | 593c449132589019530016f577f3fa5dbe8202e849f05a9ebc989fd907299ba4 |
# Originally written by Brian Baskin (@bbaskin):
# https://github.com/Rurik/Java_IDX_Parser
# See the file 'LICENSE' for copying permission.
import os
import getopt
import struct
import sys
import time
import zlib
from viper.common.out import *
from viper.common.abstracts import Module
from viper.core.session import... | rommelfs/viper | modules/idx.py | Python | bsd-3-clause | 8,299 | [
"Brian"
] | 55012fa63a3c366cf48ccf95cb885a8c32ec5625bafebec459d9a889e4492399 |
# -*- coding: utf-8 -*-
'''
Created on Jan 30, 2015
Modified on Jan 30, 2015
@author: rainier.madruga@gmail.com
A simple Python Program to scrape the ESPN FC website for content.
'''
'''
Version Number of Script
'''
version = '0.01.a'
# Import Libraries needed for Scraping the various web pages
from bs4 import Beautif... | rainier-m/python-soccer | EPL-teamNews.py | Python | gpl-2.0 | 5,001 | [
"CRYSTAL"
] | 5e8e9dd8aa38f47aaf63ce5ea109ec41cb453972d81dca8c8997ec6578d6ce5b |
"""
@name: Modules/House/Entertainment/pioneer/_test/test_pioneer.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2018-2019 by D. Brian Kimmel
@license: MIT License
@note: Created on Jul 10, 2018
@summary: Test
Passed all 3 tests - DBK - 2019-08-02
"""
__updated__ = '... | DBrianKimmel/PyHouse | Project/src/Modules/House/Entertainment/Pioneer/_test/test_pioneer.py | Python | mit | 1,946 | [
"Brian"
] | 396f1beb2ed03fd60ade494e1bb6128aa6d5e693927f6817955e8707844c0949 |
# -*- coding: utf-8 -*-
# Copyright (c) 2007, 2008, Benoît Chesneau
# Copyright (c) 2007 Simon Willison, original work on django-openid
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# ... | aavrug/askbot-devel | askbot/deps/django_authopenid/views.py | Python | gpl-3.0 | 48,676 | [
"VisIt"
] | 29d384e98ff4d1068f3a9dea4ae59d52876eb2adbb2f023d45e28bbeed243562 |
"""Tests for Bundle.
"""
import pandas as pd
import numpy as np
import pytest
import os
import shutil
import py
import datreant as dtr
from datreant.tests import test_data
def do_stuff(cont):
return cont.name + cont.uuid
def return_nothing(cont):
b = cont.name + cont.uuid
class CollectionTests():
"... | andreabedini/datreant | datreant/tests/test_bundle.py | Python | bsd-3-clause | 10,978 | [
"MOE"
] | acbcac74765dfdf9667732cd1dc0a8a1727bfde49c0aaf80de3871a519adb5ce |
from .estimator_base import H2OEstimator
class H2OGeneralizedLinearEstimator(H2OEstimator):
"""Build a Generalized Linear Model
Fit a generalized linear model, specified by a response variable, a set of predictors,
and a description of the error distribution.
Parameters
----------
model_id : ... | YzPaul3/h2o-3 | h2o-py/h2o/estimators/glm.py | Python | apache-2.0 | 11,821 | [
"Gaussian"
] | 6742e0d052dee651359931d814773ae60d5fddbc80bbd5dbb25b8a2a45829b47 |
#!/usr/bin/env python3
import argparse
import math
import os
import psutil
import shutil
import sys
import taskrun
from common import *
def generateSettings(alg):
# get all parameters
params = parameters()
# set parameters value ranges
for param in params:
if param['code'] == 'nr':
param['values'... | nicmcd/ratesim | batch/multisweep.py | Python | bsd-3-clause | 5,454 | [
"BWA"
] | 053d0f6e27aff487410e7c2964f65a4760591858019cd00b678478aa530b2b7e |
# Authors: Christian Lorentzen <lorentzen.ch@gmail.com>
#
# License: BSD 3 clause
import numpy as np
from numpy.testing import assert_allclose
import pytest
import warnings
from sklearn.datasets import make_regression
from sklearn.linear_model._glm import GeneralizedLinearRegressor
from sklearn.linear_model import (
... | bnaul/scikit-learn | sklearn/linear_model/_glm/tests/test_glm.py | Python | bsd-3-clause | 15,605 | [
"Gaussian"
] | b5c1cd43e24b3832a856c371b7b057201b7d29761bb77e707111a1dd8be4b6fd |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Parser for Psi3 and Psi4 output files"""
import re
import numpy
from . import data
from . import log... | gaursagar/cclib | src/cclib/parser/psiparser.py | Python | bsd-3-clause | 50,305 | [
"Psi4",
"cclib"
] | 91690b7df3b70952ccf1da26e8e9477fda4fe90b53864efdc6538f4b7c7284b6 |
# Copyright (C) 2003 CAMP
# Please see the accompanying LICENSE file for further information.
import os
import time
import xml.sax
import numpy as np
import ase
from ase.version import version as ase_version
import gpaw
from gpaw.version import version_base as gpaw_version
try:
#new style cmr io
import cmr... | robwarm/gpaw-symm | gpaw/io/cmr_io.py | Python | gpl-3.0 | 9,141 | [
"ASE",
"GPAW"
] | 220f45fe429b1a6f064cf7d7037e17848fd96b1ddc9b7a22f0ffd30d6455f645 |
from redux.types import str_
from redux.visitor import ASTTransformer
class StringInliner(ASTTransformer):
"""Inlines all string references."""
def __init__(self):
super(ASTTransformer, self).__init__()
self.scopes = []
def push_scope(self):
self.scopes.append({})
def pop_sco... | Muon/redux | redux/stringinliner.py | Python | mit | 1,311 | [
"VisIt"
] | 77814014c55272986258e3523a49712a0430cf67e5bebb26f607acbf98ea438a |
# Copyright 2014 Swisscom, Sophia Engineering
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | brki/cleanerversion | versions/models.py | Python | apache-2.0 | 40,651 | [
"VisIt"
] | f42cdc031d66845e01c26cf0745a645ee36ec7546c0a543caba8e10bc8bdd81f |
from paraview.simple import *
import vtk
image = vtk.vtkPNGReader()
image.SetFileName('/Users/origimbo/Software/ParaviewPlugins/Macros/AMCGLogo.png')
image.Update()
rep = vtk.vtkLogoRepresentation()
rep.SetImage(image.GetOutput())
widget = vtk.vtkLogoWidget()
widget.SetRepresentation(rep)
widget.SetInteractor(GetRe... | jrper/ParaViewTalk | AddLogo.py | Python | gpl-3.0 | 360 | [
"ParaView",
"VTK"
] | 7e579764c542b4f44e07db7697e736d3c574189b3e18a299df1073c9c0f5f9c5 |
''' SMSAction
'''
__RCSID__ = '$Id$'
# FIXME: not ready
from DIRAC import S_ERROR, S_OK
from DIRAC.ResourceStatusSystem.PolicySystem.Actions.BaseAction import BaseAction
#from DIRAC.ResourceStatusSystem.Utilities.InfoGetter import getNotificationsThatApply
class SMSAction(BaseAction):
'''
Action t... | andresailer/DIRAC | ResourceStatusSystem/PolicySystem/Actions/SMSAction.py | Python | gpl-3.0 | 2,817 | [
"DIRAC"
] | 5369f97f719f858d6ed9661cd4ca597c98673717b900e64aef5a824d7efc68dd |
""" Collection of user jobs for testing purposes
"""
# pylint: disable=wrong-import-position, invalid-name
import unittest
import time
from DIRAC.tests.Utilities.testJobDefinitions import helloWorld, mpJob, wholeNodeJob, parametricJob
from DIRAC import gLogger
gLogger.setLevel('DEBUG')
from DIRAC.Core.Base.Script i... | andresailer/DIRAC | tests/System/unitTestUserJobs.py | Python | gpl-3.0 | 3,155 | [
"DIRAC"
] | ebe9474822ae915217793bb9ccf56ad4ec24d5f9605d067a241e39824936994b |
import unittest
from splinter import Browser
import time
from siteurl import site
browser = Browser()
def tearDownModule():
browser.quit()
def wait_until_filled(box):
for i in range(10):
content = box.value or box.text
if content != '' and content != 'Updating...':
return conte... | Apoc2400/Reftag | test/test_with_browser.py | Python | gpl-3.0 | 13,518 | [
"VisIt"
] | 84f82902e4ff58d05cbf03c14ced3e2b6adfa5e25846b5a698e2cf6a176a09f0 |
"""
"""
import os, sys, posixpath
import fnmatch
import py
# Moved from local.py.
iswin32 = sys.platform == "win32" or (getattr(os, '_name', False) == 'nt')
try:
from os import fspath
except ImportError:
def fspath(path):
"""
Return the string representation of the path.
... | cvegaj/ElectriCERT | venv3/lib/python3.6/site-packages/py/_path/common.py | Python | gpl-3.0 | 14,844 | [
"VisIt"
] | 08f64cb87ddfb55f160c7bc6254fc704c972f7edeea5698a07a460460ddef115 |
#!/usr/bin/env python
#
# Copyright (c) 2001 Autonomous Zone Industries
# Copyright (c) 2002 Bryce "Zooko" Wilcox-O'Hearn
# This file is licensed under the
# GNU Lesser General Public License v2.1.
# See the file COPYING or visit http://www.gnu.org/ for details.
#
__cvsid = '$Id: EGTPVersion.py,v 1.24 2002/07/... | zooko/egtp | EGTPVersion.py | Python | agpl-3.0 | 800 | [
"VisIt"
] | 6599479a473268169e1b705690dae02f15db7bfb83d60a7010a98d257f97fd0d |
#!/usr/bin/env python
#Adam Bowen - Apr 2016
#This script provisions a vdb or dSource
# Updated by Corey Brune Aug 2016
# --- Create vFiles VDB
#requirements
#pip install docopt delphixpy
#The below doc follows the POSIX compliant standards and allows us to use
#this doc to also define our arguments for the script.
... | mcbrune/delphixpy | v1_8_0/_dx_provision_vdb.py | Python | mit | 48,207 | [
"ASE"
] | 6124d29b622341366f59ded3aaab43c8f7f649daa153f50304d0ae5e95e07d49 |
"""
module to support calculating climatolical statistics
"""
import xray
import numpy as np
from ..calendar import get_dpm
def season_mean(ds, calendar='standard'):
"""
Calculate the seasonal mean from a xray Dataset of monthly means. Weight
the means by the number of days in each month.
Parameters... | jhamman/rasmlib | rasmlib/analysis/climatology.py | Python | gpl-3.0 | 2,405 | [
"NetCDF"
] | deb532f20168eefc94b92ae015bdee28ed084a4fe775b45a06036a374e954a88 |
"""
Class for reading data from Neuralynx files.
This IO supports NCS, NEV and NSE file formats.
This module is an older implementation with old neo.io API.
A new class NeuralynxIO compunded by NeuralynxRawIO and BaseFromIO
superseed this one.
Depends on: numpy
Supported: Read
Author: Julia Sprenger, Carlos Canova... | JuliaSprenger/python-neo | neo/io/neuralynxio_v1.py | Python | bsd-3-clause | 105,289 | [
"NEURON"
] | ec91ef27d298b66759f7bcef8180756017f5df12c8002c114b20b68a0562848e |
# Anna and Brian order n items at a restaurant, but Anna declines to eat any of
# the kth item (where 0 <= k < n) due to an allergy. When the check comes, they
# decide to split the cost of all the items they shared; however, Brian may
# have forgotten that they didn't split the kth item and accidentally charged
# Anna... | chinhtle/python_fun | hacker_rank/algorithms/implementation/bonappetit.py | Python | mit | 1,588 | [
"Brian"
] | c3ae6224afc0ae7cd6540bcb84d49667975dbfcc70ad4c857e40ed727faafcbd |
# -*- coding: utf-8 -*-
# An experimental script to export a TrakEM2 project's annotations
# directly to the CATMAID database. This is based on Albert Cardona's
# TrakEM2 helper scripts here: https://github.com/acardona/Fiji-TrakEM2-scripts
# Mark Longair 2010
# flake8: noqa
import os
import re
from ini.trakem2 im... | catmaid/CATMAID | scripts/export/export_from_trakem2.py | Python | gpl-3.0 | 25,082 | [
"NEURON"
] | 168d6018c1ae6767236437211a8b8405d1b1939c9d84244461816e43df895b6a |
"""
The :mod:`pyeda.boolalg.minimization` module contains interface functions for
two-level logic minimization.
Interface Functions:
* :func:`espresso_exprs`
* :func:`espresso_tts`
"""
# Disable the 'no-name-in-module' error, b/c pylint can't look into C extensions
# pylint: disable=E0611
from pyeda.boolalg impor... | GtTmy/pyeda | pyeda/boolalg/minimization.py | Python | bsd-2-clause | 4,851 | [
"ESPResSo"
] | 18a0040e2c6371ba85a47b5dab4aad2e124a238844d784301ade412b8514f223 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2004-2009 Edgewall Software
# Copyright (C) 2004 Daniel Lundin <daniel@edgewall.com>
# Copyright (C) 2004-2006 Christopher Lenz <cmlenz@gmx.de>
# Copyright (C) 2006 Jonas Borgström <jonas@edgewall.com>
# Copyright (C) 2008 Matt Good <matt@matt-good.net>
# All rights reserved.
#... | exocad/exotrac | trac/web/session.py | Python | bsd-3-clause | 21,585 | [
"VisIt"
] | 96721c97f12806c6d8d39f4a7f7e4dfa1662ec2f971a1d5d821017f2934734fc |
#
# Copyright (C) 2010-2013 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is distributed in the hope that it wi... | itoed/anaconda | tests/regex_tests/url_test.py | Python | gpl-2.0 | 8,450 | [
"Brian"
] | 322aae9914d688c5964d1970149e0050dd221c2080f71e12656de2577744c4eb |
"""
A buffered iterator for big arrays.
This module solves the problem of iterating over a big file-based array
without having to read it into memory. The `Arrayterator` class wraps
an array object, and when iterated it will return sub-arrays with at most
a user-specified number of elements.
"""
from __future__ impor... | Microvellum/Fluid-Designer | win64-vc/2.78/python/lib/site-packages/numpy/lib/arrayterator.py | Python | gpl-3.0 | 7,282 | [
"NetCDF"
] | c8aa2521a635d87d287d676d46e6ebf9fa8a93b49b760b85a71f9fc7a5e3b7a7 |
# $Id$
#
# Copyright (C)2003-2006 Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
""" functionality for drawing hierarchi... | rvianello/rdkit | rdkit/DataStructs/HierarchyVis.py | Python | bsd-3-clause | 3,875 | [
"RDKit"
] | c7213e897aff108798f7ca66028f5afdcb3ee158824f6acfe58120b5a4fc09b5 |
from DIRAC.Core.Tornado.Client.TornadoClient import TornadoClient
from DIRAC.Core.DISET.RPCClient import RPCClient
from time import time
from random import randint
import sys
class Transaction(object):
def __init__(self):
# If we want we can force to use dirac
if len(sys.argv) > 2 and sys.argv[2].... | DIRACGrid/DIRAC | tests/DISET_HTTPS_migration/multi-mechanize/ping/test_scripts/v_perf.py | Python | gpl-3.0 | 533 | [
"DIRAC"
] | 929ef95f70754a47cb4c8ea7350b77d94f2e3fb2821d2bc4e8710b383ef688c5 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Warning:
# This is my first dive into Python. There is much room for improvement. :)
# Some parts are implemented in a rather ugly manner.
# Philipp Brauner - lipflip.org
# Wolfgang Reszel - www.tekl.de
import sys, re, string, codecs, datetime, os, locale, urllib, argp... | kjyv/osx-dictcc-dictionary | createpackages.py | Python | gpl-3.0 | 20,341 | [
"VisIt"
] | c6f812a74098efc757299f97ccc952e223d2c8dc2753deebc58329907a9c3032 |
""" Interlex add Triple for examples. Will have the same post triple commands for real ILX.
Notes:
1. In beta some old and all new ILX IDs are TMP: prefix instead
2. To install go into the 1st ilxutils directory and run pip3 setup.py install
3. cli.log will be created in your current directory (info an... | tgbugs/pyontutils | ilxutils/ilxutils/simple_scicrunch_client.py | Python | mit | 18,866 | [
"NEURON"
] | d46e28196519b7b53332781d58d52ab8efcc187c1e7055c846802bbcca4fb532 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.