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 (c) Charl P. Botha, TU Delft.
# All rights reserved.
# See COPYRIGHT for details.
import config
from install_package import InstallPackage
import os
import re
import shutil
import sys
import utils
BASENAME = "VTK"
GIT_REPO = "http://vtk.org/VTK.git"
GIT_TAG = "v5.8.0"
VTK_BASE_VERSION = "vtk-5.8"
# this... | nagyistoce/devide.johannes | install_packages/ip_vtk58.py | Python | bsd-3-clause | 9,776 | [
"VTK"
] | 636a40ac04acc860d78f87e6a5ee74d84e5d9899e0166a321549116d1d258e54 |
import os
import subprocess
import sys
from GpdbBuildBase import GpdbBuildBase
class GporcacodegenBuild(GpdbBuildBase):
def __init__(self):
pass
def configure(self):
return subprocess.call(' '.join(["./configure",
"--enable-orca",
... | xuegang/gpdb | concourse/scripts/builds/GporcacodegenBuild.py | Python | apache-2.0 | 1,564 | [
"ORCA"
] | f2d2e1560a45b0d15acdc31fbfce59a1ff871bd87884f6b391bea810ca807314 |
# -*- Mode: Python; coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2011 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Sof... | andrebellafronte/stoq | stoqlib/lib/pdf.py | Python | gpl-2.0 | 1,127 | [
"VisIt"
] | e9f9e3564f168ba70ba1080363e2a4e1a026522c0a95e3d0b90d6e77a66f9865 |
# coding: utf-8
from __future__ import unicode_literals, division, print_function
import os
import tempfile
import shutil
from pymatgen.util.testing import PymatgenTest
from monty.functools import lazy_property
from pymatgen.core.lattice import Lattice
from pymatgen.core.structure import Structure
from pymatgen.io.a... | Dioptas/pymatgen | pymatgen/io/abinitio/tests/test_flows.py | Python | mit | 5,823 | [
"ABINIT",
"pymatgen"
] | b1a2979c4c48007fe52276d7ec3bf9e4feb0aa5ea5750681aefdb601f95b8730 |
"""
Copyright (C) 2014, Jaguar Land Rover
This program is licensed under the terms and conditions of the
Mozilla Public License, version 2.0. The full text of the
Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
Rudolf Streif (rstreif@jaguarlandrover.com)
"""
from __future__ import absolute_import
i... | rstreif/rvi_backend | web/sota/tasks.py | Python | mpl-2.0 | 3,589 | [
"Jaguar"
] | bb77c6a48d3f9e9da78509fd52621e4cbb8956424133a52b271898c0acff8680 |
import ocl
import camvtk
import time
import vtk
if __name__ == "__main__":
myscreen = camvtk.VTKScreen()
a = ocl.Point(1,0,0)
myscreen.addActor(camvtk.Point(center=(a.x,a.y,a.z), color=(1,0,1)));
b = ocl.Point(0,1,0)
myscreen.addActor(camvtk.Point(center=(b.x,b.y,b.z), color=(1,0,1)))... | aewallin/opencamlib | src/attic/ball_cutter_tst_1.py | Python | lgpl-2.1 | 1,383 | [
"VTK"
] | 9de51ea3fd89dcd777a0ca8fad426f79567c38852760a6dc8709ce68c90c9a40 |
# -*- 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-dialogflow-cx | tests/unit/gapic/dialogflowcx_v3/test_entity_types.py | Python | apache-2.0 | 98,551 | [
"Octopus"
] | b1fcf8ec8fb0aa5bb21392b74177f8ab60a9fc737208cf7b86102a3aa7a42738 |
#!/usr/bin/env python
"""
This module sorts and checks the (E, V) data for use in the MP-AGL module.
"""
from __future__ import division
import warnings
import sys
import subprocess
import unittest
import pymatgen
import numpy as np
import os
from numpy import matrix
from numpy import linalg
import math
__author__ =... | ctoher/pymatgen | pymatgen/agl_thermal/agl_ev_check.py | Python | mit | 3,982 | [
"pymatgen"
] | 54a134f063eb44caad40c410faec45fea5d8f039d0c24df0cb73acfbdb1a2187 |
"""
Copyright (C) 2014 Jerry Teeple / Brian Jack
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed i... | om3n/cexybot | cexybot.py | Python | gpl-2.0 | 5,602 | [
"Brian"
] | f267a9ac38b2c3c1d199da56b7f0180a564922d769830453b80bd7357785da77 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
import os
i... | nuclear-wizard/moose | python/MooseDocs/extensions/content.py | Python | lgpl-2.1 | 11,533 | [
"MOOSE"
] | 61f076280e19f54f8f12fffc99bb6b0b7293c9f638953594ebd1406a34c5e11f |
""":func:`~pandas.eval` parsers
"""
import ast
import operator
import sys
import inspect
import tokenize
import datetime
from functools import partial
import pandas as pd
from pandas import compat
from pandas.compat import StringIO, lmap, zip, reduce, string_types
from pandas.core.base import StringMixin
from pandas... | bdh1011/wau | venv/lib/python2.7/site-packages/pandas/computation/expr.py | Python | mit | 22,706 | [
"VisIt"
] | 65625387087e583a6d761913f07e8006733065b4c66fae912495223c2d9667b6 |
# creates: transport_setup.png
import numpy as np
from ase import Atoms
from ase.structure import molecule
from ase.io import write
a = 3.92 # Experimental lattice constant
sqrt = np.sqrt
cell = np.array([[a / sqrt(3), 0., 0.],
[ 0., a / sqrt(2), 0.],
... | askhl/ase | doc/ase/transport/transport_setup.py | Python | gpl-2.0 | 2,457 | [
"ASE"
] | c24ef7f86f5a2af4eac2c1b48cc0219a8305b6db287aa0d2762b8ae73aecdbec |
from unittest import TestCase
from galaxy.util import bunch
from galaxy import model
from galaxy.tools.parameters import basic
from elementtree.ElementTree import XML
import tools_support
class SelectToolParameterTestCase( TestCase, tools_support.UsesApp ):
def test_dep_dummy_datasets_need_late_validation( self... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/test/unit/tools/test_select_parameters.py | Python | gpl-3.0 | 5,196 | [
"Galaxy"
] | b479886789e205d809112c08f766e993ac90068a6867f6075196fa473d7b1e0c |
# Copyright (C) 2014-2016 DNAnexus, Inc.
#
# This file is part of dx-toolkit (DNAnexus platform client libraries).
#
# 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.a... | johnwallace123/dx-toolkit | src/python/dxpy/utils/file_load_utils.py | Python | apache-2.0 | 15,790 | [
"BWA"
] | d1bb5650c13faa7936ac248f6726e532e1c02deed76e9e1c3c42970f330d751f |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2012 Infracom & Eurotechnia (support@webcampak.com)
# This file is part of the Webcampak project.
# Webcampak 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 Softwa... | Webcampak/v2.0 | src/bin/wpak-createlocalftpaccounts.py | Python | gpl-3.0 | 5,878 | [
"VisIt"
] | c70e3373d0736f2968a6765be98b6ff4bab5ff14b44dd852fbc133da1d1b5e32 |
# default.py ---
#
# Filename: default.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Tue Nov 13 15:58:31 2012 (+0530)
# Version:
# Last-Updated: Mon Sep 10 23:35:00 2018 (+0530)
# By: Harsha
# Update #:
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
# The default placeholder... | BhallaLab/moose | moose-gui/plugins/default.py | Python | gpl-3.0 | 61,934 | [
"MOOSE"
] | 67276e813db12d571513a8a3cd23de466e49e079c40c81a67716460cc6bdb205 |
"""
Brian T. Bailey
ITM 513 - MP4
MP4 Main Driver
"""
from ftplib import FTP
import subprocess
from mp4domain.ftpconfig import *
from mp4domain.ioutils import print_file_terminal
from mp4domain.ServerThread import ServerThread
# Start the server thread
server = ServerThread()
server.daemon = True
server.start()
prin... | briantbailey/ITM-513 | mp4/src/mp4_driver.py | Python | mit | 2,107 | [
"Brian"
] | 4e63c88ed2193753d93569fc9dab03731e8b98a7a610183fce73f51695d3cae6 |
"""
NN Policy: PPO with KL Penalty (Actor)
Can save model and use it to resume training
Dinamically allocates GPU memory to avoid
memory saturation during parallel training
(otherwise tensorflow allocates all GPU memory)
"""
import numpy as np
import tensorflow as tf
import os.path
class Policy(object):
def... | dariomangoni/chrono | src/demos/python/chrono-tensorflow/PPO/policy.py | Python | bsd-3-clause | 14,552 | [
"Gaussian"
] | dc7a3f1c36d61fc041f197f0cf55981516144cfec3f7a6c4661e6c2b36ce4719 |
# -*- encoding:utf-8 -*-
"""
==================================
Input and output (:mod:`scipy.io`)
==================================
.. currentmodule:: scipy.io
SciPy has many modules, classes, and functions available to read data
from and write data to a variety of file formats.
.. seealso:: :ref:`numpy-reference.... | mbayon/TFG-MachineLearning | venv/lib/python3.6/site-packages/scipy/io/__init__.py | Python | mit | 2,418 | [
"NetCDF"
] | e147aafcb3101a73f434a73e80635ade88a8837e1d3e91da8d29cb60feac63e4 |
"""ageo.ranging - active geolocation library: calibration curves.
A calibration curve models the relationship between distance and
round-trip time.
"""
import collections
from functools import partial
import math
import warnings
import numpy as np
from scipy import optimize, spatial, interpolate
import sys
# half... | zackw/active-geolocator | lib/ageo/calibration.py | Python | mit | 20,365 | [
"Gaussian"
] | dad5d73329fafaa1b6bba71e4553d764134d2148e054bd56690617aae69b49a1 |
#
# Copyright (C) 2013 UNINETT AS
#
# This file is part of Network Administration Visualized (NAV).
#
# NAV 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.
#
# This program is distributed in the hope... | alexanderfefelov/nav | tests/unittests/netmap/metadata_json_test.py | Python | gpl-2.0 | 9,239 | [
"Galaxy"
] | c0aa6b705d9c24b26fca6a55144c4fe64c3fc5994842879d67f3cc13d57675a3 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import vtk
def main():
colors = vtk.vtkNamedColors()
# Set the background color.
colors.SetColor("BkgColor", [51, 77, 102, 255])
sourceObjects = list()
sourceObjects.append(vtk.vtkSphereSource())
sourceObjects[-1].SetPhiResolution(21)
source... | lorensen/VTKExamples | src/Python/GeometricObjects/SourceObjectsDemo.py | Python | apache-2.0 | 3,719 | [
"VTK"
] | f27daa077f9d3978443b4088df6ab859aea841f625d353010931068ce93a414e |
#!/usr/bin/env python
#
# Copyright 2002 by Michael Hoffman. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Bio.GFF.easy: some functions to ease the use of Biopython (DEPREC... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/GFF/easy.py | Python | gpl-2.0 | 21,391 | [
"BioPerl",
"Biopython"
] | 960188e83f2bcf37288b2ab88877a56fd8a5a234b1fe224c581184ca98e49bf0 |
"""
Browser set up for acceptance tests.
"""
#pylint: disable=E1101
#pylint: disable=W0613
from lettuce import before, after, world
from splinter.browser import Browser
from logging import getLogger
from django.core.management import call_command
from django.conf import settings
from selenium.common.exceptions import... | rationalAgent/edx-platform-custom | common/djangoapps/terrain/browser.py | Python | agpl-3.0 | 4,053 | [
"VisIt"
] | 9bb7b6f9d6947a6af170dbaff8ad8dfaf9ab42dec5fd007c8fc299be1b31ff69 |
from __future__ import print_function, division
import string
import warnings
from .utils import flatten, listify, is_number, is_iter
import numpy as np
__all__ = ['InputVariable', 'SpecialInputVariable']
_SPECIAL_DATASET_INDICES = (':', '+', '?')
_DATASET_INDICES = ''.join(list(string.digits) + list(_SPECIAL_DAT... | trangel/OPTpy | OPTpy/Abinit/variable.py | Python | gpl-3.0 | 12,098 | [
"ABINIT"
] | fbe903670974dd79b374dfca8ac24ec8e04be8677e64b8ac1af1e4d2cfb58221 |
from warnings import warn as Warn
from ..cg import asShape
from ..core.FileIO import FileIO
from .weights import W, WSP
from ._contW_binning import ContiguityWeightsPolygons
from ._contW_rtree import ContiguityWeights_rtree
from ._contW_lists import ContiguityWeightsLists
from .util import get_ids
WT_TYPE = {'rook': 2,... | TaylorOshan/pysal | pysal/weights/Contiguity.py | Python | bsd-3-clause | 14,708 | [
"COLUMBUS"
] | 631e7d712f4ff740ad5d73c9daf2f71f2f06aea838d0b8f6eba127e057631fc0 |
#! /usr/bin/env python
########################################################################
# File : dirac-stager-monitor-request
# Author : Andrew C. Smith
########################################################################
"""
Report the summary of the stage task from the DB.
"""
from DIRAC.Core.Base.Scr... | DIRACGrid/DIRAC | src/DIRAC/StorageManagementSystem/scripts/dirac_stager_monitor_request.py | Python | gpl-3.0 | 2,402 | [
"DIRAC"
] | 5cbc447adc98024a00e59dd7f06e65779107e90b3e691fac06ddd0f482f81d73 |
""" pytest for WorkflowTasks
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=protected-access,missing-docstring,invalid-name
from mock import MagicMock
import pytest
from DIRAC import gLogger
from DIRAC.Interfaces.API.Job import Job
... | yujikato/DIRAC | src/DIRAC/TransformationSystem/Client/test/Test_Client_WorkflowTasks.py | Python | gpl-3.0 | 5,430 | [
"DIRAC"
] | b7c0ecc7d0a7786793339b1f52885d82bf3341d0da4d9723995cb7fd7b23d003 |
# -*- test-case-name: twisted.web.test.test_domhelpers -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
A library for performing interesting tasks with DOM objects.
"""
import StringIO
from twisted.web import microdom
from twisted.web.microdom import getElementsByTagName, es... | hlzz/dotfiles | graphics/VTK-7.0.0/ThirdParty/Twisted/twisted/web/domhelpers.py | Python | bsd-3-clause | 8,830 | [
"VisIt"
] | 608744fcd1e3fe0eff839435caff0012aee84db861f6330df5ff7e4865d92421 |
#import sys
#import collections
#import StateMachine.GameStates
#import StateMachine.InputAction
colors = ['red','green','blue','black','purple']
war_status = ['early','mid','mid','late']
class DarknessSpreadsCard:
def __init__(self, area1 = False, area1_color = False, area1_count = 0,
area2 = False, area2_... | jmacleod/dotr | GameData/GameData.py | Python | gpl-2.0 | 25,256 | [
"CRYSTAL"
] | 85a5d261899c3d8a7520a2620842f3ace07381ac08943aab001823fb00223c26 |
###############################
# 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 | src/pylada/misc/lockfile.py | Python | gpl-3.0 | 6,381 | [
"CRYSTAL",
"VASP"
] | bfe7d886e6686bcfd505520132fe6fa42977b6d7049b227b77cc36996ee1ad41 |
"""Pipeline code to run alignments and prepare BAM files.
This works as part of the lane/flowcell process step of the pipeline.
"""
from collections import namedtuple
import glob
import os
import toolz as tz
from bcbio import bam, utils
from bcbio.ngsalign import (bowtie, bwa, tophat, bowtie2, novoalign, snap, star,... | biocyberman/bcbio-nextgen | bcbio/pipeline/alignment.py | Python | mit | 6,095 | [
"BWA",
"Bowtie",
"Galaxy"
] | ff7ead286e2cfe9ae597fa2243e376ccc57f367a06de693a9f68239388a43eef |
import discord
import asyncio
import aiohttp
import os
import random
import traceback
import sys
from datetime import datetime, timedelta
from io import BytesIO, StringIO
from config import *
from settings import *
import json
import urllib.request
from collections import OrderedDict
from itertools import chain
######... | belguawhale/Discord-Werewolf | bot.py | Python | mit | 382,456 | [
"VisIt"
] | 1230e9825407eb0c46b50f71511610c82b6d0b7708dbe9eab2d49a617bccc48d |
""" Module that holds the ReportsClient Client class
"""
__RCSID__ = "$Id$"
import tempfile
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Base.Client import Client
from DIRAC.Core.DISET.TransferClient import TransferClient
from DIRAC.Core.Utilities.Plotting.FileCoding import codeRequestInFileId
class ReportsClie... | andresailer/DIRAC | AccountingSystem/Client/ReportsClient.py | Python | gpl-3.0 | 3,461 | [
"DIRAC"
] | ca489909ab6090c0c2c58eb147b6aca8df64e8f640c19852326773bd91e8250a |
""" Test the SSLTransport mechanism """
import os
import socket
import threading
try:
import selectors
except ImportError:
import selectors2 as selectors
from pytest import fixture
from diraccfg import CFG
from DIRAC.Core.Security.test.x509TestUtilities import CERTDIR, USERCERT, getCertOption
from DIRAC.Conf... | DIRACGrid/DIRAC | src/DIRAC/Core/DISET/private/Transports/test/Test_SSLTransport.py | Python | gpl-3.0 | 7,405 | [
"DIRAC"
] | 9c7d5f5d1acf127e26fd680aa7d5d42a134aa43888c48d8b93dcb1151fd560d9 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | modeling/reporting/reporting.py | Python | agpl-3.0 | 15,432 | [
"Galaxy"
] | e7931c151045cb808be1fb621e2d1a2465733278a28f734a646ff199df5ebc52 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Crystal oscillator utilities
"""
from UliEngineering.EngineerIO import normalize_numeric
from UliEngineering.Units import Unit
__all__ = [
"load_capacitors", "actual_load_capacitance",
"crystal_deviation_seconds_per_minute",
"crystal_deviation_seconds_per_... | ulikoehler/UliEngineering | UliEngineering/Electronics/Crystal.py | Python | apache-2.0 | 5,427 | [
"CRYSTAL"
] | dade81821c818362c1f68e84cafec73af7fb1391718032dddbeb11ecd323fdb3 |
"""The base filter class from which all MayaVi filters derive.
"""
# Author: Prabhu Ramachandran <prabhu_r@users.sf.net>
# Copyright (c) 2005, Enthought, Inc.
# License: BSD Style.
# Enthought library imports.
from traits.api import List, Str
# Local imports
from mayavi.core.source import Source
from mayavi.core.pip... | dmsurti/mayavi | mayavi/core/filter.py | Python | bsd-3-clause | 5,896 | [
"Mayavi"
] | ec7115aa4ab1dcbc060d8ea245618456e996ea711a1235e39cd7b2ca79333038 |
# $HeadURL$
__RCSID__ = "$Id$"
import time
import copy
import os.path
import GSI
from DIRAC.Core.Utilities.ReturnValues import S_ERROR, S_OK
from DIRAC.Core.Utilities.Network import checkHostsMatch
from DIRAC.Core.Utilities.LockRing import LockRing
from DIRAC.Core.Security import Locations
from DIRAC.Core.Security.X50... | Andrew-McNab-UK/DIRAC | Core/DISET/private/Transports/SSL/SocketInfo.py | Python | gpl-3.0 | 13,340 | [
"DIRAC"
] | afd4fb522f6b2e8bd4d861d435e2e8cf3dbfa070522a31698caf60204ca8df1a |
import collections
import heapq
import traceback
import numpy
import six
import chainer
from chainer import cuda
from chainer import flag
def _check_grad_type(func, x, gx):
def make_message(message):
if func:
detail = 'Function `{0}` ({1}) has a bug.\n'.format(
type(func).__n... | AlpacaDB/chainer | chainer/variable.py | Python | mit | 15,563 | [
"VisIt"
] | a41fbb3d38a74bf8d521ba0f4cbe90536ac7f9e120541eb4953c7768084249e7 |
"""This module defines an ASE interface to Turbomole
http://www.turbomole.com/
"""
import os
import sys
import numpy as np
from ase.units import Hartree, Bohr
from ase.io.turbomole import write_turbomole
from ase.calculators.general import Calculator
class Turbomole(Calculator):
def __init__(self, label='turbo... | JConwayAWT/PGSS14CC | lib/python/multimetallics/ase/calculators/turbomole.py | Python | gpl-2.0 | 4,955 | [
"ASE",
"TURBOMOLE"
] | c5f019760f61f6e72f28a1aee390cd9b918a223bf608204cba4c27387a11ca42 |
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2008-2012 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 of ... | sam-m888/gramps | gramps/plugins/drawreport/calendarreport.py | Python | gpl-2.0 | 30,445 | [
"Brian"
] | 57f664a231cfc68f7a20650dcb6bbf8e560303c17fb70ac7fcd17862de60d2fa |
from MrBam.bam import get_reads, pad_softclip
from helper import make_bam
from argparse import Namespace
from pysam import AlignmentFile
def test_get_reads_1(tmpdir):
"it should get all but only the reads that covers the given position"
make_bam(tmpdir.strpath, """
123456789_123456789_12
... | ylxdzsw/MrBam | test/test_bam.py | Python | mit | 2,915 | [
"pysam"
] | 68b1f89861ce182c43b08dcf7dac598440c5c21d4f2051083b5d5471615bf5d1 |
#!/usr/bin/env python
#
# Remote entry point for Tilde based on websockets
# Author: Evgeny Blokhin
# TODO render HTML entirely at the client
import os, sys
import math
import time
import logging
from sqlalchemy import text, and_, func
from sqlalchemy.orm.exc import NoResultFound
from ase.atoms import Atoms
from to... | ansobolev/tilde | utils/gui_server.py | Python | mit | 15,660 | [
"ASE"
] | 669083e135b540409c0fc6965625e14ac88962a2156d860b607198f852822fba |
# -*- coding: utf-8 -*-
import pytest
from pytest import mark
from marshmallow import fields, Schema, validate
from apispec.ext.marshmallow import swagger
from apispec import exceptions, utils, APISpec
from apispec.ext.marshmallow.swagger import field2parameter
class TestMarshmallowFieldToSwagger:
def test_fi... | Nobatek/apispec | tests/test_swagger.py | Python | mit | 29,038 | [
"Brian"
] | b5a716ed0b6e8530843d4472434b70872c3231d89c3388df160cea430885e247 |
# standalone scipt to plot gain and resolution vs time.
# Designed for the specific purpose of GPD018 trend after refill
import ROOT
import numpy as np
ROOT.gStyle.SetOptFit(1)
ROOT.gStyle.SetPadGridX(True)
ROOT.gStyle.SetPadGridY(True)
G2FWHM = 2.3548200450309493
tt = ROOT.TChain("tree")
# SELECT RUNS to be analize... | lucabaldini/pyxpe | pyxpe/scripts/plot_gaintrend.py | Python | gpl-3.0 | 9,127 | [
"Gaussian"
] | aac320e7695d5ba0cbc23f192cd56b1acbf71bca3a8c444637826c67c0bdbe81 |
#!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
Exact density fitting with Gaussian and planewaves
Ref:
'''
import time
import numpy
from pyscf.pbc.df import mdf_jk
from mpi4pyscf.tools import mpi
comm = mpi.comm
rank = mpi.rank
#
# Divide the Coulomb potential to two parts. Computing sho... | sunqm/mpi4pyscf | mpi4pyscf/pbc/df/mdf_jk.py | Python | gpl-3.0 | 4,010 | [
"Gaussian",
"PySCF"
] | d43f12fa3e84722bed6d677179eb920fb8f12ed6459c8fa10170e5a18da253cc |
# -*- coding: utf-8 -*-
"""Convert the Yelp Dataset Challenge dataset from json format to csv.
For more information on the Yelp Dataset Challenge please visit http://yelp.com/dataset_challenge
"""
import argparse
import collections
import csv
import simplejson as json
import os
def read_and_write_file(json_file_pat... | patelparth30j/yelp-sentiment-analysis | json_to_csv_converter.py | Python | mit | 3,971 | [
"VisIt"
] | 3ccb9bafbc88f83b093398f4946237af4886e8bae7e7e080ec1ccba4065c4b03 |
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2008 Jerome Rapinat
# Copyright (C) 2008 Benny Malengier
#
# 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 Softw... | sam-m888/gprime | gprime/filters/rules/event/_hasgallery.py | Python | gpl-2.0 | 1,809 | [
"Brian"
] | fc842bb3e31b38b1a9a6587311723914072cf7585a6948d055890ab25e1a7596 |
#!/usr/bin/env python
from __future__ import division
import os
import argparse
import console
import sys
import operator
"""
Prepare arguments to be parsed for summarizing BLAST
"""
parser = argparse.ArgumentParser(description = """
Summarizing INSDC BLAST results with user define identity and alignment length
t... | ut-planteco/ssu-pipeline | pipeline_summarize_gbblast.py | Python | gpl-3.0 | 5,148 | [
"BLAST"
] | b474bc065b03143f82233ddd499aee3488f205e3abf77599141b8a25764c204e |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2018 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | amjames/psi4 | psi4/driver/qcdb/exceptions.py | Python | lgpl-3.0 | 4,518 | [
"Psi4"
] | 38bab54fd807b9408dc1a20acb87949d5e158dc45eb40f9fecf1de79aa6b6d25 |
"""
Celery Tasks doing the actual work
.. rubric:: Tasks
.. autosummary::
get_latest_pr_commit
create_check_run
bump
lint_check
check_circle_artifacts
trigger_circle_rebuild
merge_pr
post_result
create_welcome_post
run_autobump
"""
import logging
import os
from collections import name... | bioconda/bioconda-utils | bioconda_utils/bot/tasks.py | Python | mit | 23,002 | [
"Bioconda"
] | 43688df1144ea0c691af789f8ba58d9ed3047661d81f7c0106a759f77215f0e2 |
# -*- coding: utf-8 -*-
"""
==========================
Gromov-Wasserstein example
==========================
This example is designed to show how to use the Gromov-Wassertsein distance
computation in POT.
"""
# Author: Erwan Vautier <erwan.vautier@gmail.com>
# Nicolas Courty <ncourty@irisa.fr>
#
... | rflamary/POT | examples/plot_gromov.py | Python | mit | 2,803 | [
"Gaussian"
] | 3684508c8aab7c3db891938d90e66d2ec9a02dbd89e4a2702431f3a3d41e052f |
# -*- coding: utf-8 -*-
# Copyright 2009 James Hensman and Michael Dewar
# Licensed under the Gnu General Public license, see COPYING
import numpy as np
class Node:
"""base class for a node
Arguments
----------
shape : tuple
shape of the node
Attributes
----------
children : list
A list of the children... | jameshensman/pyvb | src/pyvb/nodes/node.py | Python | gpl-3.0 | 8,569 | [
"Gaussian"
] | d3721e1bd919c2eb8b81a1d9fd2ab8494038cf5cfbf54b855c86890adb60f793 |
# 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 Gfsio(CMakePackage):
"""The GFSIO library provides an API to convert GFS Gaussian output i... | LLNL/spack | var/spack/repos/builtin/packages/gfsio/package.py | Python | lgpl-2.1 | 1,093 | [
"Gaussian"
] | 6b821900a5d823274c8fbd45bda5778de227ba36c76e3200c5229ac37456af0b |
# -*-python-*-
#
# Copyright (C) 1999-2006 The ViewCVS Group. All Rights Reserved.
#
# By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found at the top level of the ViewVC
# distribution or at http://viewvc.org/license-1.html.
#
# For more information, visit h... | oseemann/cvsreview | app/vclib/popen.py | Python | gpl-3.0 | 8,464 | [
"VisIt"
] | a8a1380d73da91bb588cbf03200fb18ac2873109c8cbc80852203eeb742e565f |
from Ganga.GPI import *
import sys
import inspect
import os
local_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
j = Job(application=DaVinci(version="v36r4p1",
#version="v36r2",
optsfile=local_dir + "/davinci-job.py",
... | betatim/lhcb-psi2s | nTupleProduction/davinci-ganga.py | Python | mit | 899 | [
"DIRAC"
] | 15f45051434e20da0e2b5b6a68ffcd4b155824ddef09a46f0ef48765537d739d |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import datetime
import json
import os
import pytz
import time
from datetime import timedelta
from decimal import Decimal
from django.conf import settings
from django.core import mail
from django.core.urlresolvers import reverse
from djan... | ewheeler/rapidpro | temba/flows/tests.py | Python | agpl-3.0 | 266,506 | [
"VisIt"
] | 3867dab473aa6a8d111680930efa241be8d0a8fa812717b88a5380bbb887e10c |
# -*- coding: utf-8 -*-
import h5py
import numpy as np
"""
mctracks/
bjorkeny, dir_x, dir_y, dir_z, energy, id, interaction_channel, is_cc, length, pos_x, pos_y, pos_z, time, type, event_id
hits/
_indices, channel_id, dir_x, dir_y, dir_z, dom_id, du, event_id, floor, pos_x, pos_y, pos_z, t0, time, tot, trigg... | StefReck/Km3-Autoencoder | scripts/Testing/py5Example.py | Python | mit | 8,766 | [
"ORCA"
] | d0734393ea68ffe7d65ac41765e35357d9e8fd4ac801a9681a2f720749933ec4 |
# -*- coding: utf-8 -*-
"""
Acceptance tests for CMS Video Module.
"""
import os
from unittest import skipIf
from bok_choy.promise import EmptyPromise
from mock import patch
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from common.test.acceptance.pages.common.auto_auth import... | edx-solutions/edx-platform | common/test/acceptance/tests/video/test_studio_video_module.py | Python | agpl-3.0 | 12,605 | [
"VisIt"
] | fcf7ae23d3abdcd13eaa09074ddaefcdc77c52956e7f3a9597cb801613fab7b3 |
"""
AST nodes for C constructs.
"""
import os
import types
import subprocess
import logging
log = logging.getLogger(__name__)
from ctypes import CFUNCTYPE
from ctree.nodes import CtreeNode, File
import ctree
from ctree.util import singleton, highlight, truncate
from ctree.types import get_ctype, get_common_ctype, g... | ucb-sejits/ctree | ctree/c/nodes.py | Python | bsd-2-clause | 18,789 | [
"VisIt"
] | f851f1cd872ea2c5abd8c53bc87c9c94786f3913fbb377a36b88fa1715a20fd7 |
#
# ImageViewPg.py -- a backend for Ginga using javascript and
# HTML5 canvas and websockets
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
from __future__ import... | rupak0577/ginga | ginga/web/pgw/ImageViewPg.py | Python | bsd-3-clause | 16,327 | [
"FLEUR"
] | e2eea00ec52f5aab0f3fe5b566828aa31d6006d6d4965897b1e5f10ce3b9142f |
# 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/TersoffPairTerm.py | Python | gpl-3.0 | 7,108 | [
"ESPResSo"
] | 3ea1d0b22786512a932cb6907e4d3b2db02fb8cd4a137f6f47dbdd6b22e72045 |
from parametrix.core.signal_models import BaseSignalModel
import numpy as np
import scipy.linalg as lg
from scipy.stats import norm
import matplotlib.pyplot as plt
class M_Gaussian_N(BaseSignalModel):
noise=norm
def __init__(self,N,sigma2,iscomplex=False,name="Gaussian Noise Model"):
self.N... | vincentchoqueuse/parametrix | parametrix/generic/signal_models.py | Python | bsd-3-clause | 2,857 | [
"Gaussian"
] | 39a6051d58a9c4a389259c37575b3b8e03fed2e569551f3829416b55d2d81aa7 |
from geonode.core.models import AUTHENTICATED_USERS, ANONYMOUS_USERS, CUSTOM_GROUP_USERS
from geonode.maps.models import Map, Layer, MapLayer, Contact, ContactRole, \
get_csw, LayerCategory, LayerAttribute, MapSnapshot, MapStats, LayerStats, CHARSETS
from geonode.profile.forms import ContactProfileForm
from geoser... | mbertrand/cga-worldmap | geonode/maps/views.py | Python | gpl-3.0 | 114,620 | [
"VisIt"
] | 1316d093bd759eae2b36163885497026b04d2af29dda3a41b25d8b744c7ac597 |
# copies.py - copy detection for Mercurial
#
# Copyright 2008 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2, incorporated herein by reference.
from i18n import _
import util
import heapq
def _nonoverlap(d1, d2, d3):
... | dkrisman/Traipse | mercurial/copies.py | Python | gpl-2.0 | 7,456 | [
"VisIt"
] | 5344826389741d3dec67c9da6c6c1ad32c68ab72802d5c668fd949d2a45389b3 |
# coding=utf-8
from __future__ import absolute_import
from flask_wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import ValidationError, Email, Required
from firefly.models.user import User
class RegisterForm(Form):
username = StringField('Username', [Required()])
email... | ruitian/firefly | firefly/forms/user.py | Python | mit | 1,341 | [
"Firefly"
] | faf40591ea3ea145df9b157668a9a4e9e80d2c0450e4c350865a4e9e199c6344 |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... | thica/ORCA-Remote | src/ORCA/scripts/ScriptConfig.py | Python | gpl-3.0 | 3,617 | [
"ORCA"
] | 720201712ec5b565fcb5621d3247c2611ac449b1b15729b0bcc719846cc32754 |
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2007-2009 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2013 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the G... | sam-m888/gprime | gprime/plugins/docgen/svgdrawdoc.py | Python | gpl-2.0 | 13,396 | [
"Brian"
] | 82f7d8159a3d0113b713255f8d42ea2336b1d8fa5b2938e72ceeed3e11ad8483 |
#!env/python3
# coding: utf-8
import os
import sys
import datetime
import sqlalchemy
import subprocess
import reprlib
import time
import psycopg2
from progress.bar import Bar
from progress.spinner import Spinner
from multiprocessing import Pool
from sqlalchemy import Table, Column, Integer, String, Boolean, ForeignKe... | REGOVAR/Sandbox | benchs/db/sandbox/poc_004.py | Python | agpl-3.0 | 7,230 | [
"pysam"
] | a09663a80770a9c584b0bf58e9bca114ce407e4845178572be9d463ef077511d |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import errno
import os
from os.path import curdir
def cleanEmptySubdirectories(topLimit, leafPath, osModule=os):
"... | Tayamarn/socorro | socorro/external/fs/filesystem.py | Python | mpl-2.0 | 6,036 | [
"VisIt"
] | fdf557e25e5b163d62fe602138ab2370bed6890c598869ba8a1955cad8626a5b |
import nengo
from nengo.objects import Uniform
model = nengo.Model('A Single Neuron')
neuron = nengo.Ensemble(nengo.LIF(1),
dimensions=1, # Represent a scalar\n",
intercepts=Uniform(-.5, -.5), # Set intercept to 0.5\n",
max_rates=Uniform(100, 100)... | chairmanmeow50/Brainspawn | examples/single_neuron.py | Python | bsd-3-clause | 576 | [
"NEURON"
] | 99f9c7d080eaaa7cb427bcad8b6c011ac69a503784bec8f804dce0a14d4679ab |
# -*- coding: utf-8 -*-
from tg import expose, flash, lurl, request, redirect
from tg import require
from tg.predicates import has_permission
from tg.i18n import lazy_ugettext as l_
from tg.exceptions import HTTPFound
from molgears.model import DBSession, Projects, User
#from tgext.admin.tgadminconfig import TGAdminCon... | admed/molgears | controllers/root.py | Python | bsd-3-clause | 6,881 | [
"RDKit"
] | dd9b359b60b59a3a0cac7ab04dc49f33c07484330c22a0d88d94fafe7a4c4c2c |
"""
Load and save a set of chosen implementations.
@since: 0.27
"""
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from zeroinstall import _
from zeroinstall.injector import model
from zeroinstall.injector.policy import Policy, get_deprecated_singleton_config
fro... | pombredanne/zero-install | zeroinstall/injector/selections.py | Python | lgpl-2.1 | 11,286 | [
"VisIt"
] | 00ea7631ca14c0c8578cc746a1a02a9bf4845879ac44de0512f584ca5529068a |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import re
from monty.io import zopen
from pymatgen.core.lattice import Lattice
from pymatgen.core.structure import Structure
"""
This module provides input an... | matk86/pymatgen | pymatgen/io/cssr.py | Python | mit | 3,039 | [
"pymatgen"
] | d0dadedb2d1d5746dfc7d1b01ff91407f938bda24fcc6567336bbd58ca59d1fd |
""" This module contain solvers for all kinds of equations:
- algebraic, use solve()
- recurrence, use rsolve() (not implemented)
- differential, use dsolve() (not implemented)
"""
from sympy.core import *
from sympy.simplify import simplify, collect
from sympy.matrices import Matrix, zeronm
from sym... | certik/sympy-oldcore | sympy/solvers/solvers.py | Python | bsd-3-clause | 12,724 | [
"Gaussian"
] | 06bc439c79611163346ec4a9d75cf7d42cfcfd6e01ded3478af1fc72c3807787 |
# 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... | drpngx/tensorflow | tensorflow/contrib/autograph/converters/continue_statements.py | Python | apache-2.0 | 5,259 | [
"VisIt"
] | a149b87fbbe2890d66b15bc1ed0a2f05e3fd25ac4d809f29891b0b1071d7ab0d |
from collections import defaultdict
import gzip
import json
import random
import logging
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from django.db.models.query_utils import Q
from django.utils import timezone
from pretty_times import pretty
from xbrowse im... | macarthur-lab/xbrowse | xbrowse_server/base/models.py | Python | agpl-3.0 | 53,673 | [
"ASE"
] | e0407bfa3b2170bce44728c4179bc30e6a3a1c639a8ae2c7ff7158efa367b7e7 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014, 2015 Panu Lahtinen
# Author(s):
# Panu Lahtinen <pnuu+git@iki.fi>
# 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... | pnuu/halostack | halostack/image.py | Python | gpl-3.0 | 26,661 | [
"Gaussian"
] | 08370ffba33b77fc53c208b0c12aacf7fe382fe70592c7eb96907bd26b6a821d |
from __future__ import absolute_import
from celery import Celery
app = Celery('align',
broker='amqp://idigphylo:idppass9@elk.acis.ufl.edu//',
include=['align.align'])
# Optional configuration, see the application user guide.
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
CELERY_R... | mjcollin/idigphylo | workers/align/celery.py | Python | mit | 419 | [
"Elk"
] | bab3beb5c3934176af83ba93ddd1af7c2548b1cd38ce7290d4f4918599260a73 |
##
# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
#
# Copyright:: Copyright 2013-2019 CaSToRC, The Cyprus Institute
# Authors:: George Tsouloupas <g.tsouloupas@cyi.ac.cy>
# License:: MIT/GPL
# $Id$
#
##
"""
Easybuild support for building NAMD, implemented as an easyblock
@autho... | akesandgren/easybuild-easyblocks | easybuild/easyblocks/n/namd.py | Python | gpl-2.0 | 10,016 | [
"NAMD"
] | b147acdde5c7ec043ee90b4a74937e1620d690b7173f6729eb8fab81feecc0cc |
#!/usr/bin/env python
# Standard packages
import os
import sys
import argparse
# Third-party packages
from toil.job import Job
# Package methods
from ddb import configuration
from ddb_ngsflow import gatk
from ddb_ngsflow import annotation
from ddb_ngsflow import pipeline
from ddb_ngsflow.align import bwa
from ddb_ng... | dgaston/ddb-ngsflow-scripts | workflow-var_call_somatic_amplicon.py | Python | mit | 3,597 | [
"BWA"
] | 06a78b874c716f621ae4fe6e50782964f861e3da2d06728277990fc9dfb1a572 |
# Copyright (C) 2012,2013,2015,2016
# 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 term... | espressopp/espressopp | src/FixedTripleListAdress.py | Python | gpl-3.0 | 2,887 | [
"ESPResSo"
] | a5826d357824ff41c4d5166d1052d02b1665e47cdc372a1bb02b70b8b7e9ee4f |
import numpy as np
from paraBEM.airfoil.conformal_mapping import JoukowskyAirfoil
from paraBEM.vtk_export import VtkWriter
from paraBEM.utils import check_path
####################################################
# analytic solution of joukowsky-airfoils #
####################################################... | looooo/paraBEM | examples/vtk/vtk_airfoil_joukowsky.py | Python | gpl-3.0 | 3,640 | [
"VTK"
] | 971ed0765f716cf5acfe3b7f3ea93a3b3756c75475b9d3880445d68e64d888c0 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/ajax/epgpop.py | Python | gpl-2.0 | 10,103 | [
"VisIt"
] | 686b94c310aa2345bff0a385b3b523b20b5c637ffb1be23ee7460261e2c5c1f6 |
# Copyright (c) 2001, Stanford University
# All rights reserved.
#
# See the file LICENSE.txt for information on redistributing this software.
#
# Authors:
# Brian Paul
""" tilesort_template.py
Tilesort template module.
"""
# Known issues:
# 1. All tiles must be the same size
# 2. Tiles can't overlap
# 3. Need... | excid3/chromium | mothership/tools/tilesort_template.py | Python | bsd-3-clause | 31,790 | [
"Brian"
] | 9c035bec383a7ca18ffcf5b8307ffc18528edd4addc798e9a2e91fe7597b8127 |
#!/usr/bin/env python2
"""
This is @robo_pirate.
Yarrr, matey.
"""
# -*- coding: utf-8 -*- #
import json
from random import randint
# from os.path import expanduser
from twitterbot import TwitterBot
class RoboPirate(TwitterBot):
"""Bot class."""
def bot_init(self):
"""Initialize and configure bot.... | brianshumate/robo-pirate | robo-pirate.py | Python | mit | 4,074 | [
"Brian"
] | 4dac3642addde150c9a829a2bcfd052a46ec89aa6e8ac1f344c55bf25f3db5b5 |
import string
__all__ = ["readAmberParam"]
class readAmberParam:
"""Extract info from coords.prmtop
prmtop:
string with the full coords.prmtop file
bondConn:
list of 2-ples such that bondConn[i][0] and bondConn[i][1] are the
atom numbers of the i-th bond; atom numbers ... | khs26/pele | pele/utils/amber.py | Python | gpl-3.0 | 3,031 | [
"OpenMM"
] | 5337b7d65902f9422f898f7c31415d8ff9803f66f9c5c1419b7dcf033afe4480 |
from setuptools import setup
setup(
name='Pounce',
version='1.1',
author='Brian Tomlinson',
author_email='darthlukan@gmail.com',
maintainer='Brian Tomlinson',
maintainer_email='darthlukan@gmail.com',
url='https://github.com/darthlukan/pounce.git',
download_url='https://github.com/darthl... | darthlukan/pounce | setup.py | Python | gpl-2.0 | 654 | [
"Brian"
] | 11ac6bb10f77ea2d6d2247c0fbed11ca5d802834706a82263dd86e3a10e93dfd |
# coding: utf-8
# # Create ERDDAP dataset.xml from NetCDF file
# Create an ERDDAP <dataset> snippet by reading a NetCDF CF-1.6 DSG **`featureType=TimeSeries`** file
# In[1]:
import numpy as np
import netCDF4
import uuid
import glob
import os
import string
from jinja2 import Environment, FileSystemLoader
env = Envir... | rsignell-usgs/notebook | ERDDAP/ooi_datasets_xml.py | Python | mit | 4,951 | [
"NetCDF"
] | a0872ff9b85ab93d6dfe10c169c467c1725ba24f18b23c3c8433a698cda9d418 |
import numpy as np
from matplotlib import pyplot as plt
from sklearn.model_selection import KFold
from sklearn.tree import DecisionTreeRegressor
def get_features_targets(data):
features = np.zeros((data.shape[0], 4)) #n lines, 4 columns
features[:,0] = data['u'] - data['g']
features[:,1] = data['g'] - data['r']
... | lokijota/datadrivenastronomymooc | wk5/optional/kfold_cross_validated_predictions.py | Python | mit | 2,450 | [
"Galaxy"
] | 47bc76f34a2937e9253429c6bec791ee946c089e5c1b411e5145fdca90dbbfa5 |
"""
This class is used to insert data to a db (currently elasticsearch).
It uses an internal list which is used to keep messages in the memory.
addRecord is used to insert messages to the internal queue. commit is used
to insert the acumulated messages to elasticsearch.
It provides two failover mechanism:
1.) If the da... | yujikato/DIRAC | src/DIRAC/MonitoringSystem/Client/MonitoringReporter.py | Python | gpl-3.0 | 7,376 | [
"DIRAC"
] | ffbf730a91e62e6ea9d060f74712488845807ef1107b361cf32fa44e86915ad5 |
#!/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... | nearlyfreeapps/python-googleadwords | examples/adspygoogle/adwords/v201206/basic_operations/add_text_ads.py | Python | apache-2.0 | 3,210 | [
"VisIt"
] | 42d3549ec96d720da0841972e984eddfd4f7b6e8b170be64841ff78b09e3c79a |
import cart
import math
import gui
import random
import brain
import copy
def randomSeed():
"""
Random number between -0.5 and 0.5
"""
return (0.5 - random.random())
def randomWeights(sizes,fact):
weight=[]
for i in range(len(sizes)-1):
laye... | pauljohnleonard/pod-world | CI_2014/ATTIC/PJL/00_rand_inc_mainX.py | Python | gpl-2.0 | 4,978 | [
"NEURON"
] | 4531d1bd1269a7832c53244a374379d97b599b026c45bde13ec39c02cc6a0ac8 |
"""Test SimParam class."""
import os
import pytest
from .test_base import auto_setup_uwg, setup_open_matlab_ref, TEST_DIR
from uwg import SimParam
def test_uwg_simparam_matlab_init():
"""Matlab value comparison for simparam initialization in main uwg."""
# Initialize uwg from default initialize.uwg for 31 d... | chriswmackey/UWG_Python | tests/test_simparam.py | Python | gpl-3.0 | 5,212 | [
"EPW"
] | 582aaf92ae952888e22116b2b8a09dff645d42ff0c202514ffc26fcb7a62cd6c |
# TODO: Determine which tests are valid for GLSAR, and under what conditions
# TODO: Fix issue with constant and GLS
# TODO: GLS: add options Iterative GLS, for iterative fgls if sigma is None
# TODO: GLS: default if sigma is none should be two-step GLS
# TODO: Check nesting when performing model based tests, lr, wald,... | kiyoto/statsmodels | statsmodels/regression/linear_model.py | Python | bsd-3-clause | 95,123 | [
"Gaussian"
] | 6ebaa252f37e0616caaa88881af68923753e7240b49b60c16020f98c5b053513 |
#!/usr/bin/env python
# Copyright (c) 2004-2006 ActiveState Software Inc.
#
# Contributors:
# Trent Mick (TrentM@ActiveState.com)
"""
pythoncile - a Code Intelligence Language Engine for the Python language
Module Usage:
from pythoncile import scan
mtime = os.stat("foo.py")[stat.ST_MTIME]
... | dostavro/dotfiles | sublime2/Packages/SublimeCodeIntel/libs/codeintel2/pythoncile1.py | Python | mit | 70,114 | [
"VisIt"
] | 6d9b6d4adba58e97b267fd8779130356dfc189de79f88f896c88020c3e027394 |
"""
-----------------------------------------------------------------------------
Copyright (c) 2009-2014 Alexandru Emilian Susu (icam.service@gmail.com).
License: BSD.
Ideas from many :) .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, IN... | alexsusu/icam-mobile-revival | Client/iCam.py | Python | bsd-2-clause | 911,262 | [
"VisIt"
] | b52f7c653049832c3a38165385b86b499d4eae5d1af24be87392f3a4a85466fa |
# -*- coding: utf-8 -*-
# @Author: Zachary Priddy
# @Date: 2016-04-26 23:06:59
# @Last Modified by: Zachary Priddy
# @Last Modified time: 2016-10-13 21:28:39
import logging
from core.models.app import App
from core.models.command import Command as ffCommand
from time import sleep
class App(App):
METADATA = {
... | zpriddy/Firefly | Firefly/apps/ffAdvancedLighting/contact.py | Python | apache-2.0 | 5,518 | [
"Firefly"
] | 6a45010e5d9652029b1571709b96143928fe91ef37b433931ec0761097ed383b |
import datetime
from collections import namedtuple
import os
import tempfile
import time
import uuid
import random
import stat
from textwrap import dedent
import pytest
from GangaCore.Utility.logging import getLogger
from GangaDirac.Lib.Utilities.DiracUtilities import execute
from GangaCore.testlib.mark import ex... | ganga-devs/ganga | ganga/GangaLHCb/test/Unit/DiracAPI/TestDiracCommands.py | Python | gpl-3.0 | 16,423 | [
"DIRAC"
] | fdcd092ad42406c105d332647e4a11feb8556f34411e4a3221ffe4c8b25df0bb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.