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 |
|---|---|---|---|---|---|---|---|
__RCSID__ = "$Id$"
import os
import hashlib
import threading
import cStringIO
import tarfile
import tempfile
from DIRAC.Core.Utilities.ReturnValues import S_OK, S_ERROR
from DIRAC.FrameworkSystem.Client.Logger import gLogger
gLogger = gLogger.getSubLogger( "FileTransmissionHelper" )
class FileHelper(object):
__v... | arrabito/DIRAC | Core/DISET/private/FileHelper.py | Python | gpl-3.0 | 12,617 | [
"DIRAC"
] | 10e9b162572af19cfc4d5e10300a6f6ecc5c78442f283d445d5e020fd9aec573 |
# 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.
"""Provides an interface to start and stop Android emulator.
Emulator: The class provides the methods to launch/shutdown the emulator with
... | guorendong/iridium-browser-ubuntu | build/android/pylib/utils/emulator.py | Python | bsd-3-clause | 13,955 | [
"Galaxy"
] | dbbb6af8a124c66b382377c68a042bb4776dc8fc58d2b256156d19b4b3db82d9 |
# -*- coding: utf-8 -*-
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2009 Brian G. Matherly
# Copyright (C) 2013 John Ralls
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General P... | sam-m888/gramps | gramps/gen/utils/grampslocale.py | Python | gpl-2.0 | 48,797 | [
"Brian"
] | 0fd60655f5237487a71b3320dead737cc8a45cb55b8f1a6f8d3e480ac6419602 |
#!/usr/bin/python
import unittest
import os
import random
import numpy as np
from pymatgen.core.structure import Structure
from pymatgen.core.lattice import Lattice
from pymatgen.core.surface import Slab, SlabGenerator, generate_all_slabs, \
get_symmetrically_distinct_miller_indices
from pymatgen.symmetry.group... | yanikou19/pymatgen | pymatgen/core/tests/test_surface.py | Python | mit | 10,130 | [
"pymatgen"
] | f248635cebce8343adc907288605eea651fcd25a25a9c5b098663ae0a3e1009d |
#!/usr/bin/env python
"""rallpacks_cable_hhchannel.py:
A cable with 1000 compartments with HH-type channels in it.
Last modified: Wed May 21, 2014 09:51AM
"""
__author__ = "Dilawar Singh"
__copyright__ = "Copyright 2013, NCBS Bangalore"
__credits__ = ["NCBS Bangalore", "Bhalla L... | rahulgayatri23/moose-core | tests/python/Rallpacks/rallpacks_cable_hhchannel.py | Python | gpl-3.0 | 8,053 | [
"MOOSE"
] | cdbfdc954b3afcfdfa6161f63021b7a25aacb4423c23aacd7f2e346244dbdd99 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2016 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | kannon92/psi4 | psi4/driver/__init__.py | Python | gpl-2.0 | 1,612 | [
"Psi4"
] | f359b5cd42d0f81a7c2a44512c9f9d903412ac8fb22d7000b6ee330505a4be5a |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/core/lib/theme.py | Python | gpl-2.0 | 23,608 | [
"Brian"
] | 2d8a0098ca6ce367e006f4f5380ebd1dae102476f56349a8d9c63558d9da1ab3 |
""" Models for the shopping cart and assorted purchase types """
from collections import namedtuple
from datetime import datetime
from decimal import Decimal
import pytz
import logging
import smtplib
from boto.exception import BotoServerError # this is a super-class of SESError and catches connection errors
from dja... | abdoosh00/edx-platform | lms/djangoapps/shoppingcart/models.py | Python | agpl-3.0 | 31,559 | [
"VisIt"
] | 211370654cd9a27bb7d19c8e8154fe0e1447f2947a1b245c07b22c8517e1e204 |
# 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 use ... | apache/libcloud | libcloud/common/google.py | Python | apache-2.0 | 32,744 | [
"VisIt"
] | 8088629dcff564c3fe142658f545c36d089356ff411c27f83b93e4ec9910eba1 |
#!/usr/bin/env python
"""
Refine a surface by adding points along cell edges
"""
from __future__ import print_function
import argparse
import time
import sys
import re
from icqsol.shapes.icqShapeManager import ShapeManager
from icqsol import util
# time stamp
tid = re.sub(r'\.', '', str(time.time()))
description = ... | gregvonkuster/icqsol | examples/refineSurface.py | Python | mit | 2,110 | [
"VTK"
] | a0a93bbb35ac7255e677fc732c0b8d10a14ec56ebb899443f564b37d6f80c05c |
#!/usr/bin/env python
""" convert a SPPARKS multi-timestep dump file to single-timestep vtks with pizza.py """
import sys
import dump # pizza.py module
import vtk # pizza.py module
infile = ""
try:
infile = sys.argv[1]
except:
sys.exit("Please supply the filename of a valid SPPARKS dump file.")
print("loading d... | bdecost/spparks-demo | demos/visualization/pizza_dump2vtk.py | Python | gpl-2.0 | 434 | [
"VTK"
] | 86bc5a137584e19f888a6ad41c0d6cd416c9ae4daef6521b4478dfb6fe2c6874 |
#
# Copyright (C) 2007-2013 German Aerospace Center (DLR/SC)
#
# Created: 2012-12-17 Martin Siggel <Martin.Siggel@dlr.de>
#
# 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.ap... | DLR-SC/tigl | misc/math-scripts/ms_componentSegmentGeom.py | Python | apache-2.0 | 19,336 | [
"Gaussian"
] | 157ebe2a16b89fbd3f64e02c92cd1082508a5ac229959d0105248bff56f32218 |
# mako/ast.py
# Copyright 2006-2020 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""utilities for analyzing expressions and blocks of Python
code, as well as generating Python from AST no... | nwjs/chromium.src | third_party/mako/mako/ast.py | Python | bsd-3-clause | 6,789 | [
"VisIt"
] | 4f92a73b065ec2a01f50b50b2cb5a9ea3a060fe8f5e12882b6b1f5f8a1890a94 |
# Copyright (C) 2012,2013,2018
# 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 ... | espressopp/espressopp | src/interaction/Potential.py | Python | gpl-3.0 | 3,936 | [
"ESPResSo"
] | ad31b280124ad915ad0412c418bb804e656d33ca994055ffd7dd4093d1e414af |
import numpy as np
from ..trials import erp
from ..dataset import DataSet
from .spatialfilter import SpatialBlur
def channel_temporal_offsets(data, k=list(range(-20, 20))):
'''
Calculate temporal shift required for optimal cross channel covariances.
parameters:
data - (channels x samples) the sign... | wmvanvliet/psychic | psychic/nodes/align.py | Python | bsd-3-clause | 3,088 | [
"Gaussian"
] | 7134a9a1d1a48ac42f72f1c1d7fb54390b8269783d6a6c5aa9055511f8e212de |
# coding: utf-8
from __future__ import unicode_literals
import textwrap
"""
This module implements input and output processing from QChem.
"""
import copy
import re
import numpy as np
from string import Template
import six
from monty.io import zopen
from pymatgen.core.operations import SymmOp
from pymatgen.core.st... | Dioptas/pymatgen | pymatgen/io/qchemio.py | Python | mit | 78,861 | [
"Gaussian",
"Q-Chem",
"pymatgen"
] | aacb8fd69b29c4a76ba116d7f969a883d1498a9452f1d59aa5cc7b9050777f71 |
from ase.lattice.spacegroup import Spacegroup
sg = Spacegroup(225)
print 'Space group:', sg.no, sg.symbol
print 'Primitive cell:\n', sg.scaled_primitive_cell
print 'Reciprocal cell:\n', sg.scaled_reciprocal_cell
print 'Lattice type:', sg.lattice
print 'Lattice sub-translations', sg.subtrans
print 'Centerosymmetric', ... | grhawk/ASE | tools/doc/tutorials/spacegroup/spacegroup-sg.py | Python | gpl-2.0 | 483 | [
"ASE"
] | 03b8b0d7a675c6e2b27ec1b9656d3b41c7405e82d9138320d108562c91d4ee08 |
###############################################################################
#
# sage_interface.py
#
# description: interface between Boole and Sage
#
# Converts Boole expressions to Sage symbolic expressions and back.
#
# In the forward direction, the user specifies the symbolic ring, by
# default the_SymbolicRing(... | avigad/boole | boole/interfaces/sage_interface.py | Python | apache-2.0 | 11,169 | [
"VisIt"
] | 4703be68cd73062dd367b9c2ffbe70b0c909648cb05e1740a71bd744ccb677aa |
# Principal Component Analysis Code :
from numpy import mean,cov,double,cumsum,dot,linalg,array,rank,size,flipud
from pylab import *
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import ro... | tapomayukh/projects_in_python | classification/Classification_with_kNN/Single_Contact_Classification/Feature_Comparison/multiple_features/results/test10_cross_validate_categories_1200ms_scaled_method_v_area_motion.py | Python | mit | 4,714 | [
"Mayavi"
] | 1fcc5f06c6368e6916a69da67b1d48e6bb50c947e1ad5e02618c5b4573f9bd2c |
#!/usr/bin/env python
import sys
#Opens an infile specified by the user. Should be a list of the blast hits, each name on a new line
#HITS = open(sys.argv[1], 'r')
#Opens a fasta file with the database sequences as specified by user. Must be non-interleaved.
DBSEQS = open(sys.argv[1], 'r')
#Opens an output text file... | cuttlefishh/papers | vibrio-fischeri-transcriptomics/code/python/fastato1line.py | Python | mit | 719 | [
"BLAST"
] | 5b14b09a1d2a8d31d2beb0469852d913f5abb67933f9209e79d9858f38169f48 |
"""
codegen
~~~~~~~
Extension to ast that allow ast -> python code generation.
:copyright: Copyright 2008 by Armin Ronacher.
:license: BSD.
Modified by ipkn to support python3 ast.arg
"""
import os
import string
from ast import *
BINOP_SYMBOLS = {}
BINOP_SYMBOLS[Add] = '+'
BINOP_SYMBOLS[Sub]... | yaksok/yaksok | yaksok/codegenjs.py | Python | bsd-3-clause | 18,571 | [
"VisIt"
] | 7ad526396d3dbce7a9d444b914f3b3e886be931edcd06f9722ab1d30675c0670 |
# GromacsWrapper -- cbook.py
# Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
"""
:mod:`gromacs.cbook` -- Gromacs Cook Book
=========================================
The :mod:`~gromacs.cbook` (cook book) module contains short recipes for tas... | CTCNano/GromacsWrapper | gromacs/cbook.py | Python | gpl-3.0 | 86,678 | [
"CHARMM",
"CRYSTAL",
"Gromacs",
"MDAnalysis",
"VMD"
] | 29658913f81407e835561cdc2491a5185b43b16900a338975ac8b83e691a9b31 |
import numpy as np
from cs231n.layers import *
from cs231n.fast_layers import *
from cs231n.layer_utils import *
class ConvNet1(object):
"""
A convolutional network with the following architecture:
[conv-spatial batch normalization - relu - max_pool] * N - conv - relu -dropout- [affine-vanilla batch normaliza... | zlpure/CS231n | assignment2/cs231n/classifiers/mycnn1.py | Python | mit | 6,262 | [
"Gaussian"
] | 7a52ec302c075f5b1bcbf4d5baea31f5e0dd7173683ccd663194e5c16733025a |
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import errno
import glob
import ntpath
import os
import subprocess
import sys
import tempfile
from typing import Optional, Mapping
from .co... | facebook/folly | build/fbcode_builder/getdeps/buildopts.py | Python | apache-2.0 | 23,691 | [
"OpenMS"
] | 21f704cf4347beb5b8f7c5b038b12a1e0b1ed61d2535eb3d67aa261478dbd4f6 |
# Lint as: python3
# Copyright 2021 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 ... | tensorflow/lingvo | lingvo/jax/tasks/lm/model_params.py | Python | apache-2.0 | 26,015 | [
"Gaussian",
"MOE"
] | ad541a6f761452c417f7f9add0271c9746e4cbc171a0eb99f3a28af5e915eed5 |
#!/usr/bin/env python
import sys
import os
import vtk
sys.path.append(os.path.abspath('../../python'))
import lsutils
camera = vtk.vtkCamera()
camera.SetViewUp(0.0000, 1.0000, 0.0000)
camera.SetPosition(0.0000, 0.0000, 3.5431)
camera.SetFocalPoint(0.0000, 0.0000, 0.0000)
lsutils.build_frames(camera=camera)
| liuwenf/moose | modules/level_set/examples/rotating_circle/viewer.py | Python | lgpl-2.1 | 311 | [
"VTK"
] | ed2fa3a0df4fa701db532d9bdc96079a5e3cddea4f5bdbb81f07eb87e8558d7e |
from collections import namedtuple
import logging
from math import floor, ceil
from ingester.utils import get_file_extents, execute
_LOG = logging.getLogger(__name__)
TileFile = namedtuple('TileFile', 'filename minlon maxlon minlat maxlat')
EXAMPLE_CONFIG = {
'output_dir': '/short/v10/dra547/tmp/today',
'sr... | omad/datacube-experiments | ingester/create_tiles.py | Python | bsd-3-clause | 5,275 | [
"NetCDF"
] | 2a29e6d52e0a4467c3e4a1085e4b42552eaa3519ba7fa1f849317f669ee07093 |
########################################################################
# $Id$
########################################################################
__RCSID__ = "$Id$"
from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC.DataManagementSystem.DB.FileCat... | fibbo/DIRAC | DataManagementSystem/DB/FileCatalogComponents/FileManager.py | Python | gpl-3.0 | 31,278 | [
"DIRAC"
] | 12ce86ed541fca96f702ea5379f36c2052b7fd277c30a7f741bfa73664df1ad4 |
# $Id$
#
# Copyright (C) 2003-2006 greg Landrum and 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.
#
""" Supplies a class fo... | strets123/rdkit | rdkit/Chem/Fingerprints/DbFpSupplier.py | Python | bsd-3-clause | 4,401 | [
"RDKit"
] | 0cc260f4b2e69410dfd6da7e8b076be48d080c0eb52088a8a53d0d39080fd0bf |
# $HeadURL$
__RCSID__ = "$Id$"
import types
import os
import threading
import time
from DIRAC import gLogger, gConfig, rootPath, S_OK, S_ERROR
from DIRAC.Core.DISET.RequestHandler import RequestHandler
from DIRAC.Core.DISET.RPCClient import RPCClient
from DIRAC.Core.Utilities.SiteCEMapping import getCESiteMapping
from ... | sposs/DIRAC | FrameworkSystem/Service/SiteMapHandler.py | Python | gpl-3.0 | 10,351 | [
"DIRAC"
] | c3335ce39bd35d744794d7d8839b3b7c06b26985fa19e1249f51b2da09db346d |
from __future__ import annotations
import numpy as np
def predict_reflections(sequence, crystal):
from dxtbx.model.experiment_list import Experiment, ExperimentList
from dials.algorithms import shoebox
from dials.algorithms.profile_model.gaussian_rs import Model
from dials.array_family import flex
... | dials/dials | tests/algorithms/shoebox/test_mask_overlapping.py | Python | bsd-3-clause | 6,118 | [
"CRYSTAL"
] | add66733403b06a4587798d50372683da5807743fa6be527f88141437e3d3d39 |
"""Contains the High Score mode code"""
# high_score.py
# Mission Pinball Framework
# Written by Brian Madden & Gabe Knuth
# Released under the MIT License. (See license info at the end of this file.)
# Documentation and more info at http://missionpinball.com/mpf
from collections import OrderedDict
from mpf.system.d... | spierepf/mpf | mpf/modes/high_score/code/high_score.py | Python | mit | 11,107 | [
"Brian"
] | 4cba00d2965d4f3314df63e2beefa29a9a8445b0e0294ddf2904a18b3b72f450 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def test_uccsd_7():
"""Test projective linearized unliked UCCSDT = CISDT on H4 using RHF/STO-3G orbitals"""
import pytest
import forte.proc.scc as scc
import forte
import psi4
ref_energy = -1.9824130356 # from CISDT
geom = """
H 0.0 0.... | evangelistalab/forte | tests/pytest/sparse_ci/srcc/test_uccsd_7.py | Python | lgpl-3.0 | 1,096 | [
"Psi4"
] | 09416bc1e3d7c9630e666f4071f33ab6d25b11c1a867700b1ea1fc995b7f905a |
#!/usr/bin/env python
# This example shows how to color an isosurface with other
# data. Basically an isosurface is generated, and a data array is
# selected and used by the mapper to color the surface.
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Read some data. The importa... | CMUSV-VisTrails/WorkflowRecommendation | examples/vtk_examples/VisualizationAlgorithms/ColorIsosurface.py | Python | bsd-3-clause | 2,546 | [
"VTK"
] | d46b288cf25b73fe10163a06b22594589ae6845618a139851d1e28c5da98e680 |
"""The main API for the v3 notebook format.
Authors:
* Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distribute... | maximsch2/SublimeIPythonNotebook | external/nbformat/__init__.py | Python | gpl-3.0 | 2,397 | [
"Brian"
] | 247f00a7f9f53f3a1cb5e7428ccfa8c899f9496e3eba4f88dd7ca8b7bb1a23e8 |
from datetime import timedelta
import functools
import itertools
import numpy as np
import pandas as pd
from . import common
from . import indexing
from . import ops
from . import utils
from .pycompat import basestring, OrderedDict, zip, reduce, dask_array_type
from .indexing import (PandasIndexAdapter, LazilyIndexed... | clarkfitzg/xray | xray/core/variable.py | Python | apache-2.0 | 34,663 | [
"NetCDF"
] | b450d0254256d30c1387c7d2b21663279120885e3feebf6cc71b74b790382237 |
'''-------------------------------------------------------------------------
IB2d is an Immersed Boundary Code (IB) for solving fully coupled non-linear
fluid-structure interaction models. This version of the code is based off of
Peskin's Immersed Boundary Method Paper in Acta Numerica, 2002.
Author: Nicholas A... | nickabattista/IB2d | pyIB2d/IBM_Blackbox/IBM_Driver.py | Python | gpl-3.0 | 76,451 | [
"VTK",
"VisIt"
] | f9fb943e0ad8dc0903007b8c24abe25801aca7d89806aba7495497ca021dd3dd |
"""
Defines the plugin to perform evaluation on the user in the proxy
"""
import re
from DIRAC.Resources.Catalog.ConditionPlugins.FCConditionBasePlugin import FCConditionBasePlugin
from DIRAC.Core.Security.ProxyInfo import getProxyInfo
class ProxyPlugin(FCConditionBasePlugin):
"""
This plugin is to be use... | DIRACGrid/DIRAC | src/DIRAC/Resources/Catalog/ConditionPlugins/ProxyPlugin.py | Python | gpl-3.0 | 3,765 | [
"DIRAC"
] | 66c57af7525c24638d57997e997baadc2901e5c3340570739b5b65f853e855b4 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Patient.mobile'
db.add_column(u'clinics_patient', 'mobile... | myvoice-nigeria/myvoice | myvoice/clinics/migrations/0010_auto__add_field_patient_mobile.py | Python | bsd-2-clause | 12,060 | [
"VisIt"
] | 73a0cd3a0be6d1abc56683447023f0d6c7e4b43e495d367a07c32b0463fb984e |
"""
Loads synthetic reaction datasets from USPTO.
This file contains loaders for synthetic reaction datasets from the US Patenent Office. http://nextmovesoftware.com/blog/2014/02/27/unleashing-over-a-million-reactions-into-the-wild/.
"""
from __future__ import division
from __future__ import unicode_literals
import ... | ktaneishi/deepchem | deepchem/molnet/load_function/uspto_datasets.py | Python | mit | 3,459 | [
"RDKit"
] | b36f5ed091d346e9f0b3c39f4349c829abe4d22ff3b82eb251ea80396b88f2aa |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Write a (legacy) VTK file line by line from a set of points+values.
# This program was used to build a paraview export routine in C++
import vtk
version=vtk.vtkVersion().GetVTKMajorVersion()
def createData():
""" 1. create some data (points)"""
pts = []
p... | rboman/progs | classes/sph/sandbox/writevtk.py | Python | apache-2.0 | 4,943 | [
"ParaView",
"VTK"
] | 3c598d910d333696d84a4787598ddb787b35f3cdb96f60caf214956607d5b004 |
import string
import random
import json
from collections import defaultdict
from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.template.context import RequestContext
from catmaid.fields import Double3D
from catmaid.models import Log, Neur... | aschampion/CATMAID | django/applications/catmaid/control/common.py | Python | gpl-3.0 | 9,790 | [
"NEURON"
] | 9f0699e9606900c744dba688c3095f3f9b0e4750a262d273b0047debaa635277 |
# Copyright (C) 2010-2018 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | hmenke/espresso | src/python/espressomd/io/writer/h5md.py | Python | gpl-3.0 | 3,780 | [
"ESPResSo"
] | 4015d4ff041aef0c60b02a323298cdbd268af400a1729f1272d4fd4cefc260ed |
#!/usr/bin/env python
# This work was funded by Roche and generously donated to the free
# and open source cheminformatics community.
## Copyright (c) 2012 Andrew Dalke Scientific AB
## Andrew Dalke <dalke@dalkescientific.com>
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or... | rvianello/rdkit | rdkit/Chem/fmcs/fmcs.py | Python | bsd-3-clause | 105,690 | [
"RDKit",
"VisIt"
] | c4daac740746d66bfa49a770a4aa2bb3ac1227ebfdcede955122211c1ee40218 |
#!/usr/bin/env python
########################################################################
# File : dirac-wms-job-submit
# Author : Stuart Paterson
########################################################################
"""
Submit jobs to DIRAC WMS
Usage:
dirac-wms-job-submit [options] ... JDL ...
Argument... | yujikato/DIRAC | src/DIRAC/Interfaces/scripts/dirac_wms_job_submit.py | Python | gpl-3.0 | 2,311 | [
"DIRAC"
] | 62055c921aa31d3679e19d0cad3151e6ce990fe974c6b717f9abb16460a57872 |
#!/usr/bin/env python3
#formatted with yapf3 --style=google
import glob
import numpy as np
import pandas as pd
import xarray as xr
import os
import sys
#----------- user changable ----------------------------------
ceipdir = '/home/davids/MDISKS/Nebula/Agnes/work/emis01degEMEP' # Dave's sshfs mount
ceipdir = '/noback... | mifads/pyscripts | emxemis/ceip2emep.py | Python | gpl-3.0 | 10,930 | [
"NetCDF"
] | 3daba6f2957e499694849fcadbd94d94f7a3583598bf3e210313b21bd5da23da |
#!/usr/bin/python
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | hryamzik/ansible | lib/ansible/modules/cloud/amazon/cloudwatchevent_rule.py | Python | gpl-3.0 | 16,757 | [
"Dalton"
] | 5b73f11524fe6b2756ad3a22b7634fda1875b18a7a7d5f54a7b58967c40bc004 |
# coding: utf-8
"""
Vericred API
Vericred's API allows you to search for Health Plans that a specific doctor
accepts.
## Getting Started
Visit our [Developer Portal](https://developers.vericred.com) to
create an account.
Once you have created an account, you can create one Application for
Production and an... | vericred/vericred-python | vericred_client/models/plan_county_bulk.py | Python | apache-2.0 | 12,764 | [
"VisIt"
] | 22b97dc88fccbe113c12fb4bd65d4b66fe2dbda1bbecedd7bfbe90ceb2cce543 |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '\ " update\ " è un\' espressione facoltativa come " field1=\'newvalue\'". Non è possibile aggiornare o eliminare i risultati di una JOIN',
'# of International Staff': '# di Personale Int... | flavour/porto | languages/it.py | Python | mit | 283,096 | [
"VisIt"
] | 9b1630910b9f016ee23f99f49f9800bfdcad816c0304ec5e719ec342dd808b80 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 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 Software Foundati... | tiagocardosos/stoq | stoqlib/gui/test/test_deliveryeditor.py | Python | gpl-2.0 | 5,725 | [
"VisIt"
] | 6d5208341fa6fe10f871781e9d12a2dcc972fe88b62b2f6e1774a27a5fd6cb26 |
"""
Instructor Dashboard Views
"""
import logging
import datetime
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey
import uuid
import pytz
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import require_POST
from django.utils.translation imp... | romain-li/edx-platform | lms/djangoapps/instructor/views/instructor_dashboard.py | Python | agpl-3.0 | 35,043 | [
"VisIt"
] | 0b1a01db18d0435bf5c238732140e10b03be1cc21c357ba1bbdaa8bb2f6d8ca7 |
#--------------------------------------------------------------------------
# Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas
# Copyright: (C) 2001 Centro de Pesquisas Renato Archer
# Homepage: http://www.softwarepublico.gov.br
# Contact: invesalius@cti.gov.br
# License: GNU ... | dfelinto/invesalius3 | invesalius/data/volume.py | Python | gpl-2.0 | 27,986 | [
"VTK"
] | 9e7f3753696092e6eefaba14f98daa3e3d8c78db7c7bde3f752225881da3164d |
#!/usr/bin/env python
# =============================================================================================
# MODULE DOCSTRING
# =============================================================================================
"""
Utilities for testing.
"""
# ==================================================... | open-forcefield-group/openforcefield | openff/toolkit/tests/utils.py | Python | mit | 67,825 | [
"Amber",
"OpenMM",
"RDKit"
] | d25d62b6dd511444e5529a8d8d4b14407468fe90d32ee8433404cbb744380d35 |
from sklearn import metrics
from sklearn.mixture import GMM
from sklearn.preprocessing import scale
from sklearn.manifold import LocallyLinearEmbedding
import logging, os
from optparse import OptionParser
import sys
from time import time
import numpy as np
import pandas as pd
from tables import *
from extract_dataset... | lzamparo/SdA_reduce | plot_scripts/lle_embed_test.py | Python | bsd-3-clause | 3,284 | [
"Gaussian"
] | a9099fe30218813b670acb8ce31d7e162144204dbb531ddccb970167a5ab260d |
#encoding utf-8
# ---------------------------------------------------------Libraries--------------------------------------------------------
# Standard Library
# Third-party Libraries
import numpy as np
# User Define Module
# --------------------------------------------------------Global Strings--------------------... | dengliangshi/pynnlms | nnlm/nnm/acfun.py | Python | mit | 4,291 | [
"Gaussian"
] | 8fc9300594fc58e6852fdafd5e5b1685f57da6a21ceb068d8a0d330a488e6280 |
# -*- coding: utf-8 -*-
# Copyright to Alexander Liu.
# Any distrubites of this copy should inform its author. If for commercial, please inform the author for authentication. Apr 2014
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from lxml import etree
import time
import json
import urllib
import urllib2
# Fo... | xros/megaboat | megaboat.py | Python | mit | 41,583 | [
"VisIt"
] | cf16f7dc6711c29c2edcfc6f2b8c3f2809851248089414f3696886e3e5465623 |
# -*- coding: utf-8 -*-
#
# brunel_alpha_evolution_strategies.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versio... | niltonlk/nest-simulator | pynest/examples/brunel_alpha_evolution_strategies.py | Python | gpl-2.0 | 20,437 | [
"Gaussian",
"NEURON"
] | 5284dd86ea227fc6ac6dbeda700e5ec387f7a610c499b95f5a76eddaff9b833c |
from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from django.shortcuts import redirect
from rango.models import Catego... | leifos/tango_with_django_17 | rango/views.py | Python | mit | 7,485 | [
"VisIt"
] | 4ea704c6aa10f8927fa1ed78c2e7fba3e0e65d5d71a2a2ea74fc437c63ec83af |
#!/usr/bin/env python
# file test_exclude_seqs_by_blast.py
__author__ = "Jesse Zaneveld"
__copyright__ = "Copyright 2011, The QIIME Project"
__credits__ = ["Jesse Zaneveld", "Rob Knight"]
__license__ = "GPL"
__version__ = "1.8.0-dev"
__maintainer__ = "Jesse Zaneveld"
__email__ = "zaneveld@gmail.com"
"""
Test code for... | wasade/qiime | tests/test_exclude_seqs_by_blast.py | Python | gpl-2.0 | 14,442 | [
"BLAST"
] | 054cbe23b24efea76ea86c93a8721bd2f0c03cf46fbd0482bdf1ec9e21a60223 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) Alex Urban (2018-2020)
#
# This file is part of GWpy.
#
# GWpy 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
... | areeda/gwpy | examples/frequencyseries/inject.py | Python | gpl-3.0 | 2,585 | [
"Gaussian"
] | 51048c048dfa115a316f63b5b6c5c1f2c0d8b75229965a6f627f049f9123dace |
"""
********************************************************************************
* Name: HRRR Tests
* Author: Alan D. Snow
* Created On: September 16, 2016
* License: BSD 3-Clause
********************************************************************************
"""
import unittest
import os
from shutil import copytr... | CI-WATER/gsshapy | tests/test_hrrr.py | Python | bsd-3-clause | 5,033 | [
"NetCDF"
] | 230f510b0fd08e758ebfd53370a3092d4e5725cee6276b7f4b5ef790513d64e4 |
#=======================================================================
# Model.py
#=======================================================================
"""Base modeling components for building hardware description models.
This module contains a collection of classes that can be used to construct
PyMTL (pronounced... | cornell-brg/pymtl | pymtl/model/Model.py | Python | bsd-3-clause | 26,921 | [
"VisIt"
] | 30da4b0e9ec58bc2f85676d20847eadfd423c9c46fbce2df453e9406ce818aef |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 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 Software Foundati... | andrebellafronte/stoq | stoqlib/gui/test/test_invoicelayouteditor.py | Python | gpl-2.0 | 2,613 | [
"VisIt"
] | 0bffec43db69955e125c5ad95c2b7dc1ff000f0a6d944068e6d55d4f9fa46ca9 |
# coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | google-research/google-research | behavior_regularized_offline_rl/brac/policies.py | Python | apache-2.0 | 6,450 | [
"Gaussian"
] | 0880138708897d6e300fb059c7f1fbfcc1ae36cef42b68c30c3f8ed6313b1587 |
########################################################################
# $Id$
########################################################################
""" SandboxHandler is the implementation of the Sandbox service
in the DISET framework
"""
__RCSID__ = "$Id$"
import os
import time
import random
import types
imp... | sposs/DIRAC | WorkloadManagementSystem/Service/SandboxStoreHandler.py | Python | gpl-3.0 | 18,487 | [
"DIRAC"
] | cd411ddd486fbeca1d17242386ba3412c82fada11e2d002a0ace433d24e4c1a7 |
""" Common helper functions for the viewsets """
from rest_framework import status
from rest_framework.response import Response
from app.serializers.raid_item import RaidItemSerializer
from app.serializers.gym_item import GymItemSerializer
from app.models.gym_item import GymItem
from app.models.gym import Gym
from app.... | Gimpneek/exclusive-raid-gym-tracker | app/views/view_sets/common.py | Python | gpl-3.0 | 2,820 | [
"VisIt"
] | 3b3f0f5ac71fc075518bf1c51e460df96a3e944b0bb6564cab188c326c836154 |
from database.model import LoLChampions, LoLSpells
from rapidfuzz import process
from utilities.format import format_list
from utilities.request import fetch
BASE = 'https://na1.api.riotgames.com/lol'
ASSET = 'https://ddragon.leagueoflegends.com'
UGG = 'https://u.gg/lol/champions'
class Summoner:
__slots__ = (
... | braycarlson/viking | utilities/lol.py | Python | mit | 12,700 | [
"CRYSTAL"
] | 5a31819ca2738def380ec8be5cf814ea055eb085c1a293267e7e433bd765556a |
usage = """module that computes bayesian posteriors via analytic marginalization """
import utils
np = utils.np
linalg = utils.linalg
hp = utils.hp
import priors
plt = priors.plt
import multiprocessing as mp
import time
print """WARNING:
normalizations are questionable for these posteriors.
need to check that ... | reedessick/bayesburst | posteriors.py | Python | gpl-2.0 | 89,205 | [
"Gaussian"
] | 375a2c27fa91444cdbc79bf7a4569082a2b74af113bb5a872bfe4a0814ee4ee5 |
# -*- coding:utf-8 -*-
# ##### BEGIN LGPL LICENSE BLOCK #####
# GEOS - Geometry Engine Open Source
# http://geos.osgeo.org
#
# Copyright (C) 2011 Sandro Santilli <strk@kbt.io>
# Copyright (C) 2005 2006 Refractions Research Inc.
# Copyright (C) 2001-2002 Vivid Solutions Inc.
# Copyright (C) 1995 Olivier Devill... | s-leger/archipack | pygeos/shared.py | Python | gpl-3.0 | 83,585 | [
"VisIt"
] | 05e217f04c1d20255b83ba17e6343bf04270958be5e3efdf694849c1cf736792 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# create pipeline
#
pl3d = vtk.vtkMultiBlockPLOT3DReader()
pl3d.SetXYZFileName("" + str(VTK_DATA_ROOT) + "/Data/combxyz.bin")
pl3d.SetQFileName("" + str(VTK_DATA_ROOT) + "/Data/combq.... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Rendering/Annotation/Testing/Python/xyPlot2.py | Python | gpl-3.0 | 7,699 | [
"VTK"
] | 252b4e5854413c1bc6f96236ebf49a9bb775e1472512e70624052128f7c85ece |
# -*- coding: utf-8 -*-
# Copyright (c) 2015, ESS LLP and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
import json
from frappe.utils import getdate
from frappe import _
import datetime
from frappe.core.do... | manassolanki/erpnext | erpnext/healthcare/doctype/patient_appointment/patient_appointment.py | Python | gpl-3.0 | 14,089 | [
"VisIt"
] | 0f6a5434ef29ff318c9599426c39e14a6e05094ee8345f808515b938954b7632 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | yasharmaster/scancode-toolkit | tests/textcode/test_pdf.py | Python | apache-2.0 | 3,476 | [
"VisIt"
] | de034a2acfb7ecf6bfe822fa45da4f9e1b8a4cef0005d4122dc830d5e779b2d1 |
#!/usr/bin/python
"""
Copyright 2017 Paul Willworth <ioscode@gmail.com>
This file is part of Galaxy Harvester.
Galaxy Harvester is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of th... | druss316/G-Harvestor | html/getTopResSchematic.py | Python | gpl-3.0 | 10,566 | [
"Galaxy"
] | 8aa54ef888ebb62ee4d7ddc972e00be3be3b207d27a2fd453b0244f91407ab73 |
r"""OS routines for NT or Posix depending on what system we're on.
This exports:
- all functions from posix or nt, e.g. unlink, stat, etc.
- os.path is either posixpath or ntpath
- os.name is either 'posix' or 'nt'
- os.curdir is a string representing the current directory (always '.')
- os.pardir is a strin... | brunotougeiro/python | venv/Lib/os.py | Python | gpl-2.0 | 37,525 | [
"VisIt"
] | 47cdc6eff6f68a18f074e88052314999729e64c13dc68177e98fc7c76c15e554 |
#
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify ... | graalvm/mx | mx_ide_eclipse.py | Python | gpl-2.0 | 64,036 | [
"VisIt"
] | f0160170353f2465d911c451ac401d98fd99e1e356805d9ac82cbd74bf82c7ab |
# -*- coding:utf-8 -*-
#
# Copyright 2012 NAMD-EMAP-FGV
#
# This file is part of PyPLN. You can get more information at: http://pypln.org/.
#
# PyPLN 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 vers... | flavioamieiro/pypln.web | pypln/web/backend_adapter/pipelines.py | Python | gpl-3.0 | 2,003 | [
"NAMD"
] | 9d9b9c304c55ce14fbd3ed9bb443467e01abf8b8cbd6226152eb040f8077466d |
import numpy as np
from scipy.special import gamma, gammainc
__all__ = []
def DebyeChain(q, Rg):
"""Scattering form-factor intensity of a Gaussian chain (Debye)
Inputs:
-------
``q``: independent variable
``Rg``: radius of gyration
Formula:
--------
``2*(exp(-a)-1+a)/a^2`... | awacha/sastool | sastool/fitting/fitfunctions/saspolymer.py | Python | bsd-3-clause | 3,523 | [
"Gaussian"
] | 8ca45a37f0f4f80a5a31bc93585ea7695188fa624c05d55dbb832d06f559b96c |
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import with_statement
from zope.interface import implementer
from zope.interface import Interface, Attribute
class ITor(Interface):
"""
Represents a to... | meejah/txtorcon | txtorcon/interface.py | Python | mit | 14,943 | [
"VisIt"
] | d010137fdaedc7641ed52934ea978ca5946ab8d7060d0729d576f5a99994ca2f |
from ase.ga.data import DataConnection
from ase.ga.element_mutations import RandomElementMutation
from ase.ga.element_crossovers import OnePointElementCrossover
from ase.ga.offspring_creator import OperationSelector
from ase.ga.population import Population
from ase.ga.convergence import GenerationRepetitionConvergence
... | askhl/ase | doc/tutorials/ga/ga_fcc_alloys_main.py | Python | gpl-2.0 | 1,943 | [
"ASE"
] | 8413b68abcdb921ea0776cd3d0270af473da4c9dd3c27351eebd8df9caccb48b |
# Orca
#
# Copyright 2013-2015 Igalia, S.L.
# Author: Joanmarie Diggs <jdiggs@igalia.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at you... | GNOME/orca | src/orca/caret_navigation.py | Python | lgpl-2.1 | 13,989 | [
"ORCA"
] | 9986d5366e13256f107aa61de221a8cb86f1196fe6d2f2e97a173cb9af9eafef |
# -*- coding: utf-8 -*-
"""
End-to-end tests for the main LMS Dashboard (aka, Student Dashboard).
"""
import datetime
import re
import six
from six.moves.urllib.parse import unquote # pylint: disable=import-error
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from common.test.acc... | cpennington/edx-platform | common/test/acceptance/tests/lms/test_lms_dashboard.py | Python | agpl-3.0 | 21,201 | [
"VisIt"
] | 23c9e590aa5da8f4c49509b6d2825c1918a6b8505a66485bb7c85ea8109bfa87 |
########################################################################
# File : GlobusComputingElement.py
# Author : A.S.
########################################################################
""" Globus Computing Element
Allows direct submission to Globus Computing Elements with a SiteDirector Agent
Nee... | marcelovilaca/DIRAC | Resources/Computing/GlobusComputingElement.py | Python | gpl-3.0 | 9,973 | [
"DIRAC"
] | 5e7edb115db439120d925c40686132defd0c9373ae204df0091ec50585e1e3c9 |
import ocl as cam
import camvtk
import time
import vtk
import datetime
if __name__ == "__main__":
myscreen = camvtk.VTKScreen()
myscreen.setAmbient(1,1,1)
stl = camvtk.STLSurf(filename="demo.stl")
print "STL surface read"
myscreen.addActor(stl)
stl.SetWireframe()
stl.SetColor((0.5,0.... | AlanZatarain/opencamlib | scripts/old/kdtree_tst_1.py | Python | gpl-3.0 | 5,182 | [
"VTK"
] | cad32cfb37fa7112ce7980f816e5a0fa82f2faf26acd562ae21479e6150d2443 |
from ase.test import NotAvailable
from ase.structure import molecule
from ase.calculators.calculator import get_calculator
required = {'abinit': dict(ecut=200, toldfe=0.0001),
'aims': dict(sc_accuracy_eev=5.e-3)}
def h2dft(name):
Calculator = get_calculator(name)
par = required.get(name, {})
... | conwayje/ase-python | ase/test/aep1.py | Python | gpl-2.0 | 1,428 | [
"ABINIT",
"ASE",
"NWChem"
] | 33aaeac61570eeb9e91e7293ecbb30d950c43d54d1abc5f63f9f8d2466ca8917 |
#!/usr/bin/env python3
import argparse
import collections
import dataclasses
import enum
import logging
import struct
import sys
import typing
try:
import graphviz
except ImportError:
pass
l = logging.getLogger("assembler")
Opcode = collections.namedtuple('Opcode', ['opcode', 'num_inputs', 'repr'])
Instructi... | Qwaz/solved-hacking-problem | PlaidCTF/2021/a-fallen-lap-ray/assembler.py | Python | gpl-2.0 | 28,859 | [
"VisIt"
] | f945d0039729bf05a25922dda78b6f522c7a93a68c5ffbfc66d59d84a163de3f |
# -*- coding: utf-8 -*-
"""test_muparser.py:
Modified from https://elifesciences.org/articles/25827 , Fig4.py
"""
import sys
import os
import matplotlib
matplotlib.use( 'Agg' )
import numpy as np
import sys
import numpy as np
import moose
import abstrModelEqns9 as ame
try:
import rdesigneur as rd
exc... | BhallaLab/moose | moose-core/tests/python/test_muparser.py | Python | gpl-3.0 | 5,840 | [
"MOOSE",
"NEURON"
] | 5fc1eee978ab8aab5e4b029d48d10a1be236dfa296a991ba258c057d09f45e4c |
from __future__ import division, unicode_literals
"""
This is essentially just a clone of the MPRester object in pymatgen with
slight modifications to work with MaterialsWeb.
This module provides classes to interface with the MaterialsWeb REST
API v2 to enable the creation of data structures and pymatgen objects usin... | henniggroup/MPInterfaces | mpinterfaces/rest.py | Python | mit | 7,501 | [
"pymatgen"
] | a72972c29181912ae02b4d058e3bc8bf7676af1264e4ef5a75e917478db7e6c7 |
# -*- coding: utf-8 -*-
import scrapy
from scrapy.http import Request, FormRequest
from scrapy.spiders import CrawlSpider
from alexscrapper.items import *
from datetime import datetime
from scrapy.conf import settings
import urllib
import csv
import json
import re
from datetime import datetime, timedelta
from dateutil... | GaneshPandey/alex-scraper | alexscrapper/spiders/rebateblast_spider.py | Python | gpl-3.0 | 2,662 | [
"BLAST"
] | 132ef4107d9297017561d7397e6979d8d5c28b254a0ff77090fc6a2c8018bda0 |
from sympy.core import Basic, C
from sympy.core.compatibility import is_sequence, iterable #logically, these belong here
from sympy.core.compatibility import product as cartes, combinations, combinations_with_replacement
import random
def flatten(iterable, levels=None, cls=None):
"""
Recursively denest iterabl... | Cuuuurzel/KiPyCalc | sympy_old/utilities/iterables.py | Python | mit | 33,371 | [
"VisIt"
] | f449b7dbc3a7424093b4059ab4b360cc2a469c500430a4d271184c10931c1848 |
from __future__ import division
# Samsiddhir Haritoshanam!
__author__ = 'Rohin Kumar Y'
# tpcf(dat, datR=None, randcatsize=2, bins,**kwargs)
#
# **kwargs for choosing geometry - metric 'flat' 'open' 'close'
# **kwargs for choosing xi estimator - 'simple' 'ls' '...'
# import fileios
# from metrics.metrics import * # fo... | rohinkumar/correlcalc | correlcalc/tpcf.py | Python | mit | 25,202 | [
"Galaxy"
] | b102a14e71ff0c76116441a3d112a9528265d5e74262f4890c1dd3a63059b75a |
"""An agent to ensure consistency for transformation jobs, tasks and files.
Depending on what is the status of a job and its input and output files different actions are performed.
.. warning:: Before fully enabling this agent make sure that your transformation jobs fulfill the assumptions of the
agent. Otherwise ... | andresailer/DIRAC | TransformationSystem/Agent/DataRecoveryAgent.py | Python | gpl-3.0 | 25,912 | [
"DIRAC"
] | c29cb92e8ba90781fcd1eca8fccf86e06c0c0b0f8a16db41cf25e41c311f5218 |
from mypl_ast import Visitor
from mypl_symbol_table import *
import mytoken as token
from error import Error
class TypeChecker(Visitor):
def __init__(self):
""" Instantiates a Type Checker """
self.sym_table = SymbolTable()
self.current_type = None
# visitor functions
def visit_... | RudyBermudez/MyPL-RDP | src/mypl_type_checker.py | Python | mit | 5,228 | [
"VisIt"
] | acbad465b6f3dda49a465103f64c1ca6ffaa233765b5d10ed04e8edd488174ff |
# Adopted form SfePy project, see http://sfepy.org
# Thanks to Robert Cimrman
import time
import numpy as nm
import scipy.sparse as sp
from .base import Struct, get_default, output, assert_
from .meshio import MeshIO
##
# 28.05.2007, c
def make_point_cells(indx, dim):
conn = nm.zeros((indx.shape[0], dim + 1), dt... | mjirik/dicom2fem | dicom2fem/mesh.py | Python | bsd-3-clause | 27,575 | [
"VTK"
] | a6d2a0b1e7dc057fb39553f1fec7ba710a0acaccde7ca982f7542c2190367e68 |
#!/usr/bin/python
import os
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
time=["06"]
year=["2013"]
param=["129.128","130.128","131.128","132.128","157.128","151.128"]
nam=["hgt","air","uwnd","vwnd","rhum","psl"]
#month=["01","02","03","04","05","06","07","08","09","10","11","12"]
for y in year:
... | CopyChat/Plotting | Python/download_era-interim.py | Python | gpl-3.0 | 1,297 | [
"NetCDF"
] | 51af74094735b5c2ecc80fe2098701b029a6dda77780d152b03e5a2b3cb77428 |
#! /usr/bin/env python
from __future__ import division, print_function
import scipy as sp
from numpy import atleast_2d
from sklearn.gaussian_process import GaussianProcess
from sklearn.cluster import KMeans, AffinityPropagation, DBSCAN
from sklearn.neighbors.nearest_centroid import NearestCentroid
from sklearn import s... | marcocaccin/LearningMetaDynamics | gpfit.py | Python | gpl-2.0 | 16,988 | [
"Gaussian"
] | 691a4d3784d5b105b8aa05958557d4b1b24653d25f1e0070b5b51587d3806cca |
# coding=utf-8
# Copyright 2022 The Mesh TensorFlow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | tensorflow/mesh | mesh_tensorflow/transformer/heterogeneous_moe.py | Python | apache-2.0 | 20,547 | [
"MOE"
] | ecaf7a1919fbe0d5f83c5d14d35c7ddc519d12c0e9e0db70159f18b0ba39ccb3 |
"""
Structure Residues
==================
"""
import logging
from collections import defaultdict
from copy import deepcopy
from Bio.Alphabet import IUPAC
from Bio.PDB import Polypeptide
from Bio.PDB.HSExposure import ExposureCN, HSExposureCA, HSExposureCB
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
im... | nmih/ssbio | ssbio/protein/structure/properties/residues.py | Python | mit | 16,050 | [
"Biopython"
] | 06b908de056e7e54c4ca13fe480d6eedce7484827709233d8295a2ad957712dc |
#!/usr/bin/env python3
# coding: utf-8
import argparse
import json
import urllib.request
import urllib.parse
import urllib.error
import socket
import ssl
import sys
import os.path
import dns.resolver
import dns.exception
import ipaddress
import ipwhois
'''
=================================
IMPORTANT
Make sure to ru... | ValdikSS/blockcheck | blockcheck.py | Python | mit | 53,923 | [
"MOE"
] | 4905469f18752eef30c8ffd1c89c896e32eb011d008b8f49af5f24c8fd670bf4 |
# Lint as: python2, python3
# Copyright 2015 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
#
... | gunan/tensorflow | tensorflow/tools/common/traverse.py | Python | apache-2.0 | 3,854 | [
"VisIt"
] | 46a2ee384dd506fb33861a553f215f7333a43590f1776e5ab17ed8fd1ad269aa |
"""Sensor that can display the current Home Assistant versions."""
from datetime import timedelta
from pyhaversion import HaVersion, HaVersionChannel, HaVersionSource
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
from homeassistant.const import CONF_NAME, CONF_SOUR... | adrienbrault/home-assistant | homeassistant/components/version/sensor.py | Python | apache-2.0 | 4,274 | [
"TINKER"
] | 712944f36059f1b51baeac16d5d767043f7559676592b83714f6d522805a3f42 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.