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 |
|---|---|---|---|---|---|---|---|
# (C) British Crown Copyright 2010 - 2018, Met Office
#
# This file is part of Iris.
#
# Iris 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 3 of the License, or
# (at your option) any l... | marqh/iris | lib/iris/fileformats/netcdf.py | Python | lgpl-3.0 | 94,380 | [
"NetCDF"
] | d64f12ee5dad9a8f4c230a1d7a0c45de0df31e1d7049b9e637d2b199f77e5fc6 |
from __future__ import division, print_function
import numpy as np
import nose.tools as nt
import regreg.api as rr
from ..group_lasso import (group_lasso,
selected_targets,
full_targets,
debiased_targets)
from ...tests.instance import... | selective-inference/selective-inference | selectinf/randomized/tests/test_group_lasso.py | Python | bsd-3-clause | 10,569 | [
"Gaussian"
] | c259e7a7a882e33604f60825bdeac46a7ff2700e346e61584a85fd2ca43d2c32 |
import collections
import os
import random
import sys
import numpy as np
import bio
# usage
# cmd fasta
# config
# human
fasta_start = 20000000
fasta_finish = 40000000
step = 1000
prefix = 'human_chr21'
# pms2
#fasta_start = 6012800
#fasta_finish = 6049000
#step = 100
#prefix = 'human_pms2'
# drosophila
#fasta_s... | supernifty/mgsa | mgsa/mappability.py | Python | mit | 6,547 | [
"BWA"
] | 1d0714a88a5afc730a12b8b8d287ae4b420414828825d8e046449cdbb50b6037 |
import argparse
import sys
from pysisyphus import logger
from pysisyphus.calculators import XTB
from pysisyphus.calculators.OBabel import OBabel
from pysisyphus.config import LIB_DIR
from pysisyphus.Geometry import Geometry
from pysisyphus.helpers import geom_loader
from pysisyphus.helpers_pure import chunks
from pysi... | eljost/pysisyphus | pysisyphus/drivers/replace.py | Python | gpl-3.0 | 7,487 | [
"Jmol",
"Pybel",
"xTB"
] | a6fe2751210db821f4832bc76140746610491fe607ffe9184039fe2b201869f8 |
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | filipenf/ansible | lib/ansible/module_utils/basic.py | Python | gpl-3.0 | 85,119 | [
"VisIt"
] | f4cf9282762fba54c9b57b81daa6515ba3d5b70597a29966a57b43d98b46e672 |
"""
Gaussian Mixture Models.
This implementation corresponds to frequentist (non-Bayesian) formulation
of Gaussian Mixture Models.
"""
# Author: Ron Weiss <ronweiss@gmail.com>
# Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Bertrand Thirion <bertrand.thirion@inria.fr>
import numpy as np
from scipy i... | 0asa/scikit-learn | sklearn/mixture/gmm.py | Python | bsd-3-clause | 26,906 | [
"Gaussian"
] | fcc2c19b7542218ce5e245c2ff0e5b65a6517c5812a8ef7227d21d88d4d85783 |
"""Galaxy (ansible-galaxy) plugin for integration tests."""
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import tempfile
import uuid
from . import (
CloudProvider,
CloudEnvironment,
CloudEnvironmentConfig,
)
from ..util import (
find_executable,
... | indrajitr/ansible | test/lib/ansible_test/_internal/cloud/galaxy.py | Python | gpl-3.0 | 9,501 | [
"Galaxy"
] | 3c46c90faab0d69e4b5bc67ba1d30cc4fac44908f7db3eb289212dcfe16b20da |
"""Check options for all agents."""
import logging
import pytest
from DIRAC.tests.Utilities.assertingUtils import AgentOptionsTest
from DIRAC import S_OK
AGENTS = [('DIRAC.AccountingSystem.Agent.NetworkAgent', {'IgnoreOptions': ['MaxCycles', 'MessageQueueURI',
... | fstagni/DIRAC | ConfigurationSystem/test/Test_agentOptions.py | Python | gpl-3.0 | 8,042 | [
"DIRAC"
] | 0b3268b0017512ac20a916c30082a3c73611a5bc7a42da10444f4bbe0bd1c305 |
#!/usr/bin/env python
__author__ = 'Danelle Cline'
__copyright__ = '2016'
__license__ = 'GPL v3'
__contact__ = 'dcline at mbari.org'
__doc__ = '''
Master loader for LRAUV Lake Michigan 2016 experiment
Danelle Cline
MBARI 21 July 2016
@var __date__: Date of last svn commit
@undocumented: __doc__ parser
@statu... | duane-edgington/stoqs | stoqs/loaders/LakeMichigan/load_2016.py | Python | gpl-3.0 | 2,655 | [
"NetCDF"
] | 847e689b8d9e0d564cb242b16d5db80aa5adc88788fb061c0c3fb11fa2eb3dec |
# This file is part of Shyft. Copyright 2015-2018 SiH, JFB, OS, YAS, Statkraft AS
# See file COPYING for more details **/
from __future__ import absolute_import
from __future__ import print_function
from os import path
import numpy as np
from netCDF4 import Dataset
from shyft import api
from shyft import shyftdata_dir... | jfburkhart/shyft | shyft/repository/netcdf/cf_geo_ts_repository.py | Python | lgpl-3.0 | 6,264 | [
"NetCDF"
] | fbc5f983520f681f4f3451ea1503d1fb90adb605e3b8176f92594d220a709bd3 |
"""ica contains routines for creating and working with
incremental capacity analysis data"""
import os
import logging
import warnings
import numpy as np
import pandas as pd
from scipy import stats
from scipy.interpolate import interp1d
from scipy.signal import savgol_filter
from scipy.integrate import simps
from scip... | jepegit/cellpy | cellpy/utils/ica.py | Python | mit | 36,542 | [
"Gaussian"
] | 324394c84992fd001ad33eeefaf9dca6153e43fa1443dc750b88079d776618b0 |
# -*- coding: utf-8 -*-
import ast
import base64
import csv
import glob
import itertools
import logging
import operator
import datetime
import hashlib
import os
import re
import simplejson
import time
import urllib
import urllib2
import urlparse
import xmlrpclib
import zlib
from xml.etree import ElementTree
from cStri... | titasakgm/brc-stock | openerp/addons/web/controllers/main.py | Python | agpl-3.0 | 67,938 | [
"VisIt"
] | 6c5063f24da73fdb73af6454dd794ebecb463e29f5f253a7eea7463096277eb4 |
"""
CBMPy: CBDataStruct module
==========================
PySCeS Constraint Based Modelling (http://cbmpy.sourceforge.net)
Copyright (C) 2009-2022 Brett G. Olivier, VU University Amsterdam, Amsterdam, The Netherlands
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Gen... | SystemsBioinformatics/cbmpy | cbmpy/CBDataStruct.py | Python | gpl-3.0 | 1,148 | [
"PySCeS"
] | 131cc35a99191691454f5332e0c8c01023f2fae48a098d541429b781c7dc76ec |
class OperatingSystem:
multitasking = True
name = "Mac OS"
class Apple:
website = "www.apple.com"
name = "Apple"
class MacBook(Apple,OperatingSystem):
def __init__(self):
if self.multitasking is True:
print("This is multi tasking system. Visit {} for more details.".format(self... | cyberlearner13/techshots13 | OOOPython/multipleInheritance.py | Python | gpl-2.0 | 381 | [
"VisIt"
] | d0ca45ab2bb29369f0c050e928dfd4101a8fbaac69e00c05541fb629102c784f |
from collections import namedtuple
import datetime
from typing import Any, List, Dict, Union, Optional
import numpy as np # type: ignore
import xarray as xr # type: ignore
from .variable import InstanceVariable, ParticleVariable, arraystr
Timetype = Union[str, np.datetime64, datetime.datetime]
Array = Union[np.nda... | bjornaa/ladim | postladim/particlefile.py | Python | mit | 4,889 | [
"NetCDF"
] | d1a89ff7061427e56ba5029e09e7fcc01e550a2041fa0598eacc4d09462f8930 |
from datetime import datetime, date
from decimal import Decimal
from typing import NamedTuple, Optional
class ObjectsDbfRecord(NamedTuple):
# C,15
accessno: Optional[str] = None
# M,4
accessory: Optional[str] = None
# N,12,2
acqvalue: Optional[Decimal] = None
# C,10
age: Optional[st... | minorg/pastpy | pastpy/impl/dbf/objects_dbf_record.py | Python | bsd-2-clause | 12,579 | [
"CRYSTAL"
] | 22c1993ad6309696c321be9882c508cfb2cbe4ed2a7320b1e0b541811c3a9a83 |
#
# QAPI visitor generator
#
# Copyright IBM, Corp. 2011
#
# Authors:
# Anthony Liguori <aliguori@us.ibm.com>
# Michael Roth <mdroth@linux.vnet.ibm.com>
#
# This work is licensed under the terms of the GNU GPLv2.
# See the COPYING.LIB file in the top-level directory.
from ordereddict import OrderedDict
from qapi ... | piyushroshan/xen-4.3.2 | tools/qemu-xen/scripts/qapi-visit.py | Python | gpl-2.0 | 9,037 | [
"VisIt"
] | fa3c89099c69443cc4ad685e93fa05e35f6d98f0bc285b1797f31108e4eec163 |
#!/usr/bin/env python -i
# preceding line should have path for Python on your machine
# trivial.py
# Purpose: run a LAMMPS input script via Python
# Syntax: trivial.py in.lammps
# in.lammps = LAMMPS input script
from __future__ import print_function
import sys
# parse command line
argv = sys.argv
if len(a... | aurix/lammps-induced-dipole-polarization-pair-style | python/examples/trivial.py | Python | gpl-2.0 | 605 | [
"LAMMPS"
] | 1bc9d499c165c95e4cae1fa5858c5051c85f96721d3a00f9cd507498a42e9c6a |
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2018, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
"""
Two Body Properties Computations
#####################################
"""
import numpy as np
import numba as nb
import pandas as pd
from IPython.display import display
from ipyw... | alexvmarch/atomic | exatomic/algorithms/angles.py | Python | apache-2.0 | 2,542 | [
"ADF"
] | da90a39042a5c2877da8cf51fafe1405388371c11358abafe419a0cda2620dff |
##
# Copyright 2009-2013 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (htt... | geimer/easybuild-easyblocks | easybuild/easyblocks/c/cp2k.py | Python | gpl-2.0 | 30,192 | [
"CP2K"
] | b2621726b6d8a6bb9b16f7e6406e1bdc28d60e17f83b475ad2ee60f3c32f53ac |
#!/usr/bin/env python
# This example shows how to manually construct unstructured grids
# using Python. Unstructured grids require explicit point and cell
# representations, so every point and cell must be created, and then
# added to the vtkUnstructuredGrid instance.
import vtk
# Create several unstructured grids ... | CMUSV-VisTrails/WorkflowRecommendation | examples/vtk_examples/DataManipulation/BuildUGrid.py | Python | bsd-3-clause | 13,874 | [
"VTK"
] | a90810a4bbd59b4a84282548ea6cc821abdb8983b4a51ad7fa99494c5e4e3ac6 |
# coding: utf8
{
' (leave empty to detach account)': ' (leave empty to detach account)',
' Module is the main communications hub of the Sahana system. It is used to send alerts and/or messages using SMS & Email to various groups and individuals before, during and after a disaster.': ' Module is the main communicatio... | ptressel/sahana-eden-madpub | languages/el.py | Python | mit | 265,627 | [
"VisIt"
] | aedf7f9fe9312d0360b04654aac1377361fa2b0645365ce9c41ffb207f0e751c |
#!/usr/bin/env python
""" Submission of test jobs for use by Jenkins
"""
# pylint: disable=wrong-import-position,unused-wildcard-import,wildcard-import
import os.path
import DIRAC
DIRAC.initialize() # Initialize configuration
from DIRAC import gLogger
from DIRAC.tests.Utilities.utils import find_all
from DIRAC.I... | DIRACGrid/DIRAC | tests/Jenkins/dirac-test-job.py | Python | gpl-3.0 | 1,775 | [
"DIRAC"
] | 571d681f5884effdd53fdcd4750cbbc4b6c8b25d56dc57de7d11dafda63ae6b7 |
###############################################################################
# ilastik: interactive learning and segmentation toolkit
#
# Copyright (C) 2011-2014, the ilastik developers
# <team@ilastik.org>
#
# This program is free software; you can redistribute it and/or
# mod... | jakirkham/ilastik | ilastik/applets/dataSelection/dataSelectionGui.py | Python | gpl-3.0 | 39,347 | [
"VisIt"
] | e6782267f68a5f090f1adda732fd0e68b690cd6fc9251c7b6f92c516f4b6558d |
"""
Utility functions for transcripts.
++++++++++++++++++++++++++++++++++
"""
from django.conf import settings
import os
import copy
import json
import requests
import logging
from pysrt import SubRipTime, SubRipItem, SubRipFile
from pysrt.srtexc import Error
from lxml import etree
from HTMLParser import HTMLParser
fro... | proversity-org/edx-platform | common/lib/xmodule/xmodule/video_module/transcripts_utils.py | Python | agpl-3.0 | 30,835 | [
"FEFF"
] | ace753fbd584de44497ab61ef15fdcffa8a20102142b4115b6052adf0314ac36 |
# encoding: utf-8
# Copyright 2016 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.
# The number of lines will be reduced after 2018 update is complete and
# the old stories are removed: https://crbug.com/878390.
# pylint:... | chromium/chromium | tools/perf/page_sets/system_health/browsing_stories.py | Python | bsd-3-clause | 82,856 | [
"VisIt"
] | fb677d9ead09007e82b0b7f416a16922e92d9f3ad1e3998dd8792bc22d87945b |
# -*- 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 publi... | thica/ORCA-Remote | src/ORCA/definition/DefinitionVars.py | Python | gpl-3.0 | 1,437 | [
"ORCA"
] | bdb1bf0d15f5d478d913f0fc3847167ccfb2f694ea99f75178b9b3a4ebfa569b |
#!/usr/bin/env python
# Note: To use the 'upload' functionality of this file, you must:
# $ pip install twine
import io
import os
import sys
from shutil import rmtree
from setuptools import Command, find_packages, setup
NAME = 'cel'
DESCRIPTION = 'A function as a service build package'
URL = 'https://github.com/... | a-musing-moose/cel | setup.py | Python | mit | 2,793 | [
"MOOSE"
] | e330747538d9b5f0356a1284ec3317d006af0dedacba89874f3ff0c9e5238afb |
import os
import sys
import warnings
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.colors import LogNorm
from sklearn import mixture
import time
import mkl
warnings.filterwarnings("ignore", module="matplotlib")
def timing(f):
TIMING = False
if TIMING:
def wrap(*args):
... | knub/master-thesis | code/scala/gaussian_mixture.py | Python | apache-2.0 | 4,258 | [
"Gaussian"
] | 47b5bfac3689eccd2160d31c2cdaab5529413e01763a78c2fdf075d4bdc4daea |
"""Deals with the socket communication between the PIMD and driver code.
Copyright (C) 2013, Joshua More and Michele Ceriotti
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the ... | akohlmey/lammps | tools/i-pi/ipi/interfaces/sockets.py | Python | gpl-2.0 | 29,683 | [
"LAMMPS"
] | 2498f8c62ccf1a4e5fd793a0ea97ca8c6ed83b5170337ad14cdbc8d62385db26 |
"""Abstract Base classes implementing the Runner interface.
Runner Interface
----------------
All a runner needs to implement is the 'run_segment' method which
should accept a walker and a spec for the length of the segment to run
(e.g. number of dynamics steps).
Additionally, any number of optional key word argumen... | ADicksonLab/wepy | src/wepy/runners/runner.py | Python | mit | 2,645 | [
"OpenMM"
] | 2de0bf5bc3747d87f64381f49671eb27a955101a42e9ee6b94db46e134a0298f |
import datetime
import json
import os
import re
import sys
import tempfile
import time
import warnings
from auditutils import verbose
class BuildAudit:
"""Class to manage and persist the audit of a build into prereqs and targets.
Files used during a build can be categorized as prerequisites
(read from) and tar... | boyski/AuditBuild | buildaudit.py | Python | gpl-3.0 | 5,574 | [
"VisIt"
] | 4416ec33b88142ea942481e9032880d4ce1368b79d0a5689bc304a9371a3b410 |
"""
Export parameters from raw beam data.
Routines in this module:
get_bpm_data(fn, *kwargs)
gauss_params(fn, **kwargs)
get_sec_data(fn, *kwargs)
"""
from __future__ import print_function, division
import warnings
from datetime import datetime
from collections import deque
import numpy as np
from scipy.optimize i... | andalexo/cryoblm | beamproc.py | Python | mit | 9,589 | [
"Gaussian"
] | bc5480effc3c70337a5f95186858e7af0fcac7c47f7b7bfc7ab449ce8a2ad5a6 |
# -*- coding: utf-8 -*-
# v.112211
# Copyright (C) 2011, Marine Biological Laboratory
#
# 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)
# an... | jooolia/oligotyping | Oligotyping/lib/b6lib.py | Python | gpl-2.0 | 12,384 | [
"BLAST"
] | d164794b3131c5e1ecc5726d3c266356142a22be40b2aedd0699ae49febc60e7 |
""" manage PyTables query interface via Expressions """
import ast
import time
import warnings
from functools import partial
from datetime import datetime, timedelta
import numpy as np
import pandas as pd
from pandas.compat import u, string_types, PY3, DeepChainMap
from pandas.core.base import StringMixin
import panda... | bdh1011/wau | venv/lib/python2.7/site-packages/pandas/computation/pytables.py | Python | mit | 20,192 | [
"VisIt"
] | ca30a8646f86d79239e1b097c57dfa2c72d44e482c1a33825d40247ce3520b05 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# to mark the origin
sphere = vtk.vtkSphereSource()
sphere.SetRadius(2.0)
sphereMapper = vtk.vtkPolyDataMapper()
sphereMapper.SetInputConnection(sphere.GetOutputPort())
sphereMapper.... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Imaging/Core/Testing/Python/TestExtractVOI.py | Python | gpl-3.0 | 1,491 | [
"VTK"
] | 5b78a475ddca206f33de7eb0b4122b863eb5221629c594bbda7ccdf2d9684e95 |
#!/usr/bin/env python
from pyscf import gto, scf, dft
from pyscf.prop import gtensor
mol = gto.M(atom='''
C 0 0 0
N 0 0 1.1747
''',
basis='ccpvdz', spin=1, charge=0, verbose=3)
mf = scf.UHF(mol).run()
gobj = gtensor.uhf.GTensor(mf).set(verbose=4)
gobj.kernel()
#
# 2-ele... | gkc1000/pyscf | examples/prop/02-g_tensor.py | Python | apache-2.0 | 1,840 | [
"PySCF"
] | 55945166d80279032962f21373ef93aafe2b5d381e1ed9f5c980fe184909f9fd |
__author__ = 'scott'
import numpy as np
# Set the random seed for reproducibility
seed = np.random.randint(2**16)
print "Seed: ", seed
np.random.seed(seed)
import matplotlib.pyplot as plt
from optofit.models.model import Model
from optofit.population.population import Population
from optofit.neuron.neuron import Ne... | HIPS/optofit | optofit/test/geweke_test.py | Python | gpl-2.0 | 6,320 | [
"NEURON"
] | e8e8fedc4156dcb40d4f958c0f039f0b74af93dad3e893de1ba4118799438a8e |
# -*- coding: utf-8 -*-
from unilangs.bcp47.parser import parse_code
# Custom dict classes to make adding and lookup up easier.
class BCP47Dict(dict):
def add(self, value, language, region=None, script=None):
self[(language, region, script)] = value
def add_all(self, langs):
for lang in lang... | pculture/unilangs | unilangs/bcp47/converter.py | Python | mit | 8,680 | [
"ASE"
] | 9b6f9fa13820ca9542a65946777dbc6820fcb0dbb4632c808bb9150bc0e761a3 |
# -*- coding: utf-8 -*-
"""Functions for FIR filter design."""
from __future__ import division, print_function, absolute_import
from math import ceil, log
import warnings
import numpy as np
from numpy.fft import irfft, fft, ifft
from scipy.special import sinc
from scipy.linalg import toeplitz, hankel, pinv
from scipy... | Eric89GXL/scipy | scipy/signal/fir_filter_design.py | Python | bsd-3-clause | 41,879 | [
"Brian"
] | 19fb439a931a5f237366c242ed9027a42b10df1337640da62ddb8adfc112802e |
# Copyright (c) 2013, GlaxoSmithKline Research & Development Ltd.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# ... | bp-kelley/rdkit | Contrib/fraggle/fraggle.py | Python | bsd-3-clause | 2,637 | [
"RDKit"
] | 51a79e3e36fc22f7671295fafdaf026b09c193e1c150f7c48be08297c2f4de17 |
# Autodetecting setup.py script for building the Python extensions
#
__version__ = "$Revision: 70850 $"
import sys, os, imp, re, optparse
from glob import glob
from platform import machine as platform_machine
from distutils import log
from distutils import sysconfig
from distutils import text_file
from distutils.err... | google-code/android-scripting | python/src/setup.py | Python | apache-2.0 | 82,948 | [
"VisIt"
] | 2acee1df8a1c6a0f54a96b17a1be57db481a33dcbdfd7b46a30fee6490fbc5f4 |
# -*- coding: utf-8 -*-
"""
Report
Generates a report detailing the contents and simulation preparedness of input
SasMolScan object.
"""
'''
SASSIE: Copyright (C) 2011 Joseph E. Curtis, Ph.D.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public ... | madscatt/zazzie | src_2.7/sassie/build/pdbscan/pdbscan/report.py | Python | gpl-3.0 | 35,496 | [
"CHARMM"
] | 561d2dab710ec370286163cc170c6eaca8a17041009f50f60638ef8d0186ac66 |
#!/usr/bin/python
#FILE DESCRIPTION=======================================================
#~ Python script used for foam case construction (as automatic, as
#~ possible)
#~
#~ NOTES:
#~ - mesh grading in z direction
#~ USAGE:
#~ - modify and run the script
#~ TO DO:
#LICENSE=======================... | MartinIsoz/CFD_oF | 03_texturedPlate/02_transTexture/00_Scripts/caseConstructorV3.py | Python | gpl-2.0 | 25,437 | [
"ParaView"
] | 6e611a33ac9fc0f85a9a30f60246096d5ee5c4dec01aa51e91eae55822676207 |
# This file is part of the myhdl library, a Python package for using
# Python as a Hardware Description Language.
#
# Copyright (C) 2003-2012 Jan Decaluwe
#
# The myhdl 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 t... | gw0/myhdl | myhdl/conversion/_toVerilog.py | Python | lgpl-2.1 | 49,224 | [
"VisIt"
] | dee931566277301c21268e07045111933cf9d4c26417b4fc6febbf7bdd02f7aa |
# 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/Scaled_Features/results/4_categories/test10_cross_validate_categories_1200ms_scaled_method_v.py | Python | mit | 4,665 | [
"Mayavi"
] | de056944be1a270269b54ad723823f415111d6820128489137de15419ef88e21 |
# Author: Gael Varoquaux <gael dot varoquaux at enthought dot com>
# Copyright (c) 2009-2015, Enthought, Inc.
# License: BSD Style.
# Standard library imports.
import unittest
from io import BytesIO
from os.path import abspath
import numpy as np
# Local imports.
from mayavi.core.null_engine import NullEngine
from t... | dmsurti/mayavi | mayavi/tests/test_text3d.py | Python | bsd-3-clause | 2,942 | [
"Mayavi"
] | ad4d092d69d1e7efe1baafa96e6280c9ef54d840531127c1033bcce981bc170f |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2007-2012 Brian G. Matherly
# Copyright (C) 2009 Gary Burton
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011 Matt Keenan (matt.keenan@gmail.com)
# Copyright (C) 2013-2014 Paul Fr... | jralls/gramps | gramps/plugins/textreport/descendreport.py | Python | gpl-2.0 | 22,311 | [
"Brian"
] | 735832292bb23acea2c8d08ea2c7117f735f37444e034b192e2c077f7e0f313a |
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import BaggingClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.neural_network import MLPClassifie... | rupakc/Kaggle-Compendium | Expedia Hotel Recommendations/expedia-baseline.py | Python | mit | 3,576 | [
"Gaussian"
] | 66ca674781adef933e6d5818d272477d1efd88190a7322c5f2ca5e8ce48d99f6 |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/view/controls/delegates/intervalsdelegate.py | Python | gpl-2.0 | 3,813 | [
"VisIt"
] | fdfd684df81935d3bed97f7a6651802b26b37c66c51071efb49d2323178a8e72 |
# Copyright 2018 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... | alsrgv/tensorflow | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | Python | apache-2.0 | 92,548 | [
"Gaussian"
] | 7159354db311e434341d9e6f72d34a41826fa3d4b96432f25af0abeec3a94258 |
import ast
import imp
import itertools
import os.path
import sys
from . import conf
class RewriterHook(object):
def __init__(self):
self.loaded_modules = {}
def find_module(self, full_name, path=None):
if path and not isinstance(path, list):
path = list(path)
if path and... | mhallin/hesitate-py | hesitate/rewriter.py | Python | bsd-3-clause | 5,295 | [
"VisIt"
] | 7881838db175f3e1b1607f8d7070187f4707e103c4305b1c9bbdfadde3a36713 |
#! /usr/bin/env/python
import numpy as np
import pandas as pd
from pymatgen.core import Element, Composition
import csv
def read_data(filename):
"""
:argument
filename - The filename of the csv file to read from
:returns
DataFrame - Pandas Dataframe containing the formatted parsed data
"""
... | bismayan/MaterialsMachineLearning | src/parser_macl.py | Python | mit | 4,109 | [
"pymatgen"
] | 524b1a2c75be98285f4c6d788fd54f1bfe4f3465b4476838ee0236609082257e |
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2007-2012 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2013-2014 Paul Franklin
#
# 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... | sam-m888/gprime | gprime/plugins/textreport/endoflinereport.py | Python | gpl-2.0 | 13,288 | [
"Brian"
] | de8fa2d5f37450e3a087de96231548907f97188869b80df394ed0ccce79b08cf |
# encoding: utf-8
"""
Tests for IPython.utils.traitlets.
Authors:
* Brian Granger
* Enthought, Inc. Some of the code in this file comes from enthought.traits
and is licensed under the BSD license. Also, many of the ideas also come
from enthought.traits even though our implementation is very different.
"""
#---... | noslenfa/tdjangorest | uw/lib/python2.7/site-packages/IPython/utils/tests/test_traitlets.py | Python | apache-2.0 | 25,088 | [
"Brian"
] | 69be0f520f3bb0c21ab0e3cfceb5c242e11de382decea746fc6782754e55781c |
"""
gauss.core
~~~~~~~~~~
Models for objects used throughout the project.
"""
import re
import numpy as np
from gauss.dep.matrix import Matrix
from gauss.util import precision
class Ecuation(object):
"""Generic container for a liniar ecuation"""
PARSER = re.compile(r'([+-]*[\d\.]*)([a-z]+)')
... | c-square/homework | Licență/Anul III/CN/gauss/gauss/core.py | Python | mit | 8,120 | [
"Gaussian"
] | 4443af798ee1f4ce7553da2c503b23f91862f673681913aa173831f32758cf69 |
# $HeadURL$
__RCSID__ = "$Id$"
from DIRAC.ConfigurationSystem.Client.Config import gConfig
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import gBaseSecuritySection
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getDefaultUserGroup
from DIRAC.ConfigurationSystem.Clie... | avedaee/DIRAC | Core/Security/CS.py | Python | gpl-3.0 | 1,491 | [
"DIRAC"
] | 3ce4a112c64f8fe38373424ec65ff376ea52cecf5eda4b2958c986fe6d62bf31 |
# -*- coding: utf-8 -*-
import pytest
from ..helpers.movie_data import Movie,Actor,Director
from .fixtures import backend
from blitzdb.backends.sql.relations import ManyToManyProxy
def prepare_data(backend):
backend.init_schema()
backend.create_schema()
francis_coppola = Director({'name' : 'Francis Co... | M4rtinK/tsubame | core/bundle/blitzdb/tests/sql/test_eager_loading.py | Python | gpl-3.0 | 5,729 | [
"Brian"
] | 5b76040df241450b331a2400efafa46c5cc06e99b815db5cbd106ad6f021ba70 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# OpenNest, an open source thermostat
# Copyright (C) 2014 Brian Gregg
# 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 versi... | baritonehands/opennest | nest.py | Python | gpl-3.0 | 2,423 | [
"Brian"
] | 4cfcbede40e3101f938bd04c679d60b6f3cbc214a6788226b3b19a691bd57d3f |
import re
from rdkit import Chem
from rdkit.Chem import AllChem
import pandas as pd
import glob
from thermopyl import thermoml_lib, cirpy
data = pd.read_hdf("./data.h5", 'data')
# SEE GOOGLE DOC!!!!!!# SEE GOOGLE DOC!!!!!!# SEE GOOGLE DOC!!!!!!# SEE GOOGLE DOC!!!!!!
bad_filenames = ["./10.1016/j.fluid.2013.12.014.xml... | jchodera/LiquidBenchmark | src/old/find_static_dielectric.py | Python | gpl-2.0 | 3,451 | [
"RDKit"
] | 92de542660a076f8af84fadffeb1d26697f1df31b2cdfa0acbbb5040a011bad5 |
#!/usr/bin/python
# -*- coding: utf-8
# Copyright (C) 2010 - 2012, A. Murat Eren
#
# 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 lat... | meren/oligotyping | Oligotyping/utils/parsers.py | Python | gpl-2.0 | 24,149 | [
"BLAST"
] | d34d26b4e1da06988ff251d1d8e1a080b91ace5c960d189f811e9ee9a7cc9a79 |
# Copyright (c) 2012, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from __future__ import print_function
import numpy as np
from ..core.parameterization.param import Param
from GPy.core.parameterization.variational import VariationalPosterior
from ..core.sparse_gp import S... | dhhjx880713/GPy | GPy/models/sparse_gp_minibatch.py | Python | bsd-3-clause | 15,415 | [
"Gaussian"
] | e8fd1cc4529c395e9b6f43ed9a8b6ca41309398736d6fc42b3163fcca13ad6b8 |
########################################################################
# File : PoolComputingElement.py
# Author : A.T.
########################################################################
""" The Pool Computing Element is an "inner" CE (meaning it's used by a jobAgent inside a pilot)
It's used running se... | yujikato/DIRAC | src/DIRAC/Resources/Computing/PoolComputingElement.py | Python | gpl-3.0 | 9,551 | [
"DIRAC"
] | 7f186385a1511331e1d323d6d9dadd3842ef7a1aea4de124c3137edf66746679 |
#!/usr/bin/env python
"""Application controllers for blast family
"""
from string import strip
from os import remove, access, F_OK, environ, path
from cogent.app.parameters import FlagParameter, ValuedParameter, MixedParameter
from cogent.app.util import CommandLineApplication, ResultPath, \
get_tmp_filename, guess... | sauloal/cnidaria | scripts/venv/lib/python2.7/site-packages/cogent/app/blast.py | Python | mit | 46,483 | [
"BLAST"
] | 82cf345bb7d7e0ce300cde02f7d48fd3e661fd2fd0b1a2183cb6201ca317efe5 |
# Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013
# Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import absolute_import, division, print_function
SIZE_RANGES = ... | hryamzik/ansible | lib/ansible/module_utils/basic.py | Python | gpl-3.0 | 118,357 | [
"VisIt"
] | 3c1c6c8b533f8fcb276e8adfda07c293f4a862247d1b72ac5c21aa0af2afae70 |
"""MSMBuilder3: WIP
Description
"""
DOCLINES = __doc__.split("\n")
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
##########################
VERSION = "3.0.0"
ISRELEASED = False
__version__ = VERSION
##########################
def find_packages()... | rmcgibbo/msmbuilder3 | setup.py | Python | gpl-3.0 | 1,117 | [
"MDTraj"
] | 711a758280ed2533ff3ded58619b42648e72d4660e10a7a4e71a139ca6620650 |
# -*- 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/settings/SettingChanges.py | Python | gpl-3.0 | 6,777 | [
"ORCA"
] | 85789ec620754e704bcfaa3926028a37f31de4945f6e8afc716ba5673a638884 |
#TODO: replace directory strings by r strings so that "\" works instead of "\\"
#TODO: Write wrapper class to hide the VTU processing, custom colors and color presets (in a similar way as vtktools)
docstring= """
************************* Ali SAAD 2014 ***************************
* VTU/PVSM (paraview state) to PNG Ut... | alisaad05/utils | pvpython_script.py | Python | gpl-2.0 | 14,437 | [
"Mayavi",
"ParaView"
] | 8a6ef66c2fda447f261c53dbe0ce1f7af7bbb028b250f9c21e71cdb3e18ba7ff |
# encoding: utf-8
import 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 'GeoRecord.geo_searchable'
db.add_column(u'profiles_georecord', 'geo_searchable', self.gf('... | ProvidencePlan/Profiles | communityprofiles/profiles/oldmigrations/0049_auto__add_field_georecord_geo_searchable.py | Python | mit | 16,717 | [
"MOE"
] | 686a6d36394381104374e5228cc93e34981ec03e90348a3050a1a49cb71fdbce |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2008 Gary Burton
# Copyright (C) 2008 Robert Cheramy <robert@cheramy.net>
# Copyright (C) 2009 Douglas S. Blank
# Copyright (C) 2010 Jak... | Fedik/gramps | gramps/plugins/export/exportxml.py | Python | gpl-2.0 | 52,024 | [
"Brian"
] | 6ffe90706ffb7e0265aee2a2fff18f82cc6e2bc910e2e643ebffb979d98867a4 |
import numpy as np
from netCDF4 import Dataset, num2date, date2num
class ugrid:
"""
A class for dealing with unstructured grid model output and converting to GNOME format
Although I use variable names consistent with FVCOM, by passing in a var_map dict the
variable names can be customized for SELFE or... | rsignell-usgs/notebook | utools.py | Python | mit | 6,409 | [
"NetCDF"
] | dcb8c318c55d5f64cbbcde1ba4222be6853d76e1ed94c847451b8a3da7c5218b |
"""
GWR is tested against results from GWR4
"""
import unittest
import pickle as pk
from pysal.contrib.gwr.gwr import GWR
from pysal.contrib.gwr.sel_bw import Sel_BW
from pysal.contrib.gwr.diagnostics import get_AICc, get_AIC, get_BIC, get_CV
from pysal.contrib.glm.family import Gaussian, Poisson, Binomial
import nump... | ljwolf/pysal | pysal/contrib/gwr/tests/test_gwr.py | Python | bsd-3-clause | 45,280 | [
"Gaussian"
] | 81f7db775261a9fe48f234c1840ffdf52de2c760a9e8c2bf8b68d796a9244598 |
# -*- coding: utf-8 -*-
# @Author: aaronpmishkin
# @Date: 2017-07-10 14:41:16
# @Last Modified by: aaronpmishkin
# @Last Modified time: 2017-08-09 20:34:27
import numpy as np
from scipy.optimize import minimize
def upper_confidence_bound(x, gp, fixed_features=[], fixed_values=[], quantiles=(0.025, 0.975), maximi... | aaronpmishkin/gaussian_processes | source/bayesian_optimization.py | Python | apache-2.0 | 3,835 | [
"Gaussian"
] | 58daa0cf39f542238301f1810ce9737c96f35622add47b5426bf19a3e34a695f |
#!/usr/bin/env python
"""
Copyright (C) 2012 by Adam Ewing (adam.ewing@gmail.com)
Released under the MIT license, see LICENSE.txt
"""
import sys, re, time, pp, argparse, subprocess, pysam, ConfigParser
import lib.configtest as configtest
from os import path as path
# other imports are done via pp
class PairedSam... | adamewing/GRIPper | gripper.py | Python | mit | 8,717 | [
"pysam"
] | 2ea060a2cc3e7318ff9f1ac871dacf1f94b0648ad6cfac041d387e9ff652e477 |
# $Id: get_tasks.py 2016-12-27 $
# Author: Coen Meerbeek <coen@buzzardlabs.com>
# Copyright: BuzzarLabs 2016
"""
This file retrieves tasks from an Octopus application
"""
import logging, json, requests, time, sys
import ConfigParser
import splunk.Intersplunk as isp
import octopus_common
# Parse octopus.conf for conf... | cmeerbeek/splunk-addon-octopus-deploy | TA-OctopusNT-Fwd/bin/get_tasks.py | Python | mit | 1,896 | [
"Octopus"
] | dc16be4946fcb0fa4cb7501b5f0ebcec8526714796e75ce4255a60d039236777 |
# Load packages which form part of the Python 2.7 core
import pickle
import multiprocessing
import math
import logging
# Load packages which are a part of GeometricMD
from geometricmd.animation import write_xyz_animation
from geometricmd.geometry import convert_vector_to_atoms
from geometricmd.curve_shorten import gen... | suttond/GeometricMD | geometricmd/curve_shorten_pbc.py | Python | lgpl-3.0 | 13,621 | [
"ASE"
] | 14740e3ab2747ed1c3bbbc922f77c021782a838435503e78fce2e1992db834e5 |
# -*- encoding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 6
_modified_time = 1417442153.654742
_template_filename='templates/webapps/galaxy/history/view.mako'
_template_uri='history/view.mako'
_template_cache=cache... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/database/compiled_templates/history/view.mako.py | Python | gpl-3.0 | 13,948 | [
"Galaxy"
] | 947cc4bf2b4a9c0944c327f4b10a5421e6cbb69d521dd2344f1e4b491ba63ee8 |
#!/usr/bin/env python3
#pylint: disable=missing-docstring
#* 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
... | nuclear-wizard/moose | python/chigger/tests/clipping/clip.py | Python | lgpl-2.1 | 850 | [
"MOOSE",
"VTK"
] | 41381dcce11ff25bca96595585c5f7b8f2c3dafa4c1b9d608ef6635f02a54f50 |
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
# Copyright (c) 2009 Jendrik Seipp
#
# RedNotebook 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 ver... | tomka/rednotebook | rednotebook/util/utils.py | Python | gpl-2.0 | 13,099 | [
"VisIt"
] | a92a744c31ea208b974568380d5fb7f79d8e7e8dc7da056ee844f7cd22aa2194 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | Stargrazer82301/CAAPR | CAAPR/CAAPR_AstroMagic/PTS/pts/eagle/runner.py | Python | mit | 6,085 | [
"Galaxy"
] | f738471ad9f4dfa4a5b601c3e1e7552df29ed204b22f6fd0a3f9fe16e808f080 |
"""
===================
Canny edge detector
===================
The Canny filter is a multi-stage edge detector. It uses a filter based on the
derivative of a Gaussian in order to compute the intensity of the gradients.The
Gaussian reduces the effect of noise present in the image. Then, potential
edges are thinned dow... | ClinicalGraphics/scikit-image | doc/examples/edges/plot_canny.py | Python | bsd-3-clause | 1,602 | [
"Gaussian"
] | 7c826418d22b19efa2da91270618500fda909f02ded159cb62e369999e32b129 |
#! /usr/bin/python
#Guruprasad Ananda
#MAQ mapper for SOLiD colourspace-reads
import sys, os, zipfile, tempfile, subprocess
def stop_err( msg ):
sys.stderr.write( "%s\n" % msg )
sys.exit()
def __main__():
out_fname = sys.argv[1].strip()
out_f2 = open(sys.argv[2].strip(),'r+')
ref_fname = sys.ar... | volpino/Yeps-EURAC | tools/solid_tools/maq_cs_wrapper.py | Python | mit | 12,127 | [
"Galaxy"
] | b8cb98f41326e7c3f5930e137cc8ffeb9e484801b8333c843f016795af9dff96 |
import cPickle
import numpy as np
def unpickle(fileName):
'''
Description: retrieve data from CIFAR-10 Pickles
Params: fileName = filename to unpickle
Outputs: Unpickled Dict
'''
with open(fileName, 'rb') as f:
dict = cPickle.load(f)
return dict
def merge_batches(num_to_load=1):
... | sethuiyer/mlhub | CIFAR 10 from Scratch/cifar.py | Python | mit | 12,583 | [
"Gaussian",
"NEURON"
] | 9d13b86ee08f63774ef9e5e3ca2c47b104a6ae71a2cf03fc7ecd814c8f99ed91 |
"""Quickly check if VTK off screen plotting works."""
import pyvista
from pyvista.plotting import system_supports_plotting
print('system_supports_plotting', system_supports_plotting())
pyvista.OFF_SCREEN = True
sphere = pyvista.Sphere()
pyvista.plot(sphere)
| akaszynski/vtkInterface | .ci/pyvista_test.py | Python | mit | 259 | [
"VTK"
] | 7d209cf5479a216074d9d85c774ff721d5716e8154ddab02a8c4ec53401f792a |
"""
Excel related functions
"""
from __future__ import absolute_import, print_function
from collections import OrderedDict
from copy import copy
from openpyxl import Workbook, load_workbook
from openpyxl.cell import (
Cell,
column_index_from_string,
coordinate_from_string,
get_column_letter,
)
from op... | jricardo27/travelhelper | old/core/excel.py | Python | bsd-3-clause | 7,396 | [
"VisIt"
] | 8bb999048dd9faa2cbc051403f87df4203c3b92dd458175e7c21f2fe525a6888 |
import numpy as np # type: ignore
import pandas as pd # type: ignore
import matplotlib.pyplot as plt # type: ignore
from matplotlib.axis import Axes # type: ignore
from matplotlib.figure import Figure # type: ignore
import matplotlib._color_data as mcd # type: ignore
from typing import Optional, List, Union, Dict... | bjmorgan/vasppy | vasppy/doscar.py | Python | mit | 13,401 | [
"VASP"
] | 46642cfcaa49a105bf319cf9c1e4e83473109ddf41a444807951d54aa03d5305 |
import calendar
from email.utils import formatdate
from django.db import models
from django.conf import settings
from django.utils.translation import gettext_lazy as _
from django.template.loader import render_to_string
from django.utils import timezone
from django.utils.html import format_html
from django.utils.funct... | fin/froide | froide/foirequest/models/message.py | Python | mit | 22,852 | [
"VisIt"
] | cda4e98fb36872d854084f273db85971c7be118563b2d741992d1105731a3e69 |
from math import sqrt
import numpy as np
__all__ = ['FixCartesian', 'FixBondLength', 'FixedMode', 'FixConstraintSingle',
'FixAtoms', 'UnitCellFilter', 'FixScaled', 'StrainFilter',
'FixedPlane', 'Filter', 'FixConstraint', 'FixedLine',
'FixBondLengths', 'FixInternals']
def slice2enlis... | grhawk/ASE | tools/ase/constraints.py | Python | gpl-2.0 | 44,885 | [
"ASE"
] | d38a36a32c51c449c5b27658d44aef56c9955217f221dffe1ff60ae113138c76 |
# coding: utf-8
from __future__ import unicode_literals, division
import glob
import shlex
"""
This module implements basic kinds of jobs for QChem runs.
"""
import os
from monty.io import zopen
import shutil
import copy
import subprocess
from pymatgen.io.qchemio import QcInput
from custodian.custodian import Job, g... | alberthxf/custodian | custodian/qchem/jobs.py | Python | mit | 8,842 | [
"pymatgen"
] | b850b8c83919784a17dda633717882a627b2a2dbb3efc7981d2ec2c3923a3ea6 |
''' Test_RSS_Policy_JobRunningMatchedRatioPolicy
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import unittest
import DIRAC.ResourceStatusSystem.Policy.JobRunningMatchedRatioPolicy as moduleTested
#####################################################... | yujikato/DIRAC | src/DIRAC/ResourceStatusSystem/Policy/test/Test_RSS_Policy_JobRunningMatchedRatioPolicy.py | Python | gpl-3.0 | 4,392 | [
"DIRAC"
] | ae45aac1e49dc0e291b98fc4c02e53debaf33c003eb5a0fd4a50d94fb6ba0420 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This is a self-generating script that contains all of the iso3166-1 data.
To regenerate, a CSV file must be created that contains the latest data. Here's
how to do that:
1. Visit https://www.iso.org/obp
2. Click the "Country Codes" radio option and click the search bu... | pimlie/django-countries | django_countries/data.py | Python | mit | 17,818 | [
"BWA",
"VisIt"
] | 1c3c9bbe761b369785fcae530d1d90243479b31fff7f0e4d48337bb88059f9be |
"""
2014 July 10
Shane Bussmann
Convert config.py to config.yaml
"""
import config
reload(config)
import yaml
objectname = config.ObjectName
ImageName = config.ImageName
opticalimage = config.OpticalImage
opticaltag = config.OpticalTag
Nwalkers = config.Nwalkers
Nthreads = config.Nthreads
lnLike = config.lnLike
... | astro313/uvmcmcfit | py2yaml.py | Python | mit | 8,671 | [
"Gaussian"
] | 850abc9873daed10e93340633b75164633f857eb98477fc0c0b8002dfa5a02fe |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | gkc1000/pyscf | pyscf/dft/roks.py | Python | apache-2.0 | 2,446 | [
"PySCF"
] | d26bd34d23747d34c22fae543e74acfffe1eb385ea810148ee4c56f0641da12b |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2008 Brian G. Matherly
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your ... | arunkgupta/gramps | gramps/gen/plug/_import.py | Python | gpl-2.0 | 2,644 | [
"Brian"
] | 1f7ceab5b93f44f399f3c28f33126f11658618dd85c6cc63f88f4a8627e7c0a1 |
# Copyright 2014 Roberto Brian Sarrionandia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | sarrionandia/tournatrack | forms.py | Python | apache-2.0 | 3,274 | [
"Brian"
] | 2d42687a32c6c928b73c0130a690f7543a2b84e61249668d3b569ce78b6000cc |
# $HeadURL$
__RCSID__ = "$Id$"
import urllib2, re, tarfile, os, types, sys, subprocess, urlparse, tempfile
from DIRAC import gLogger, S_OK, S_ERROR
from DIRAC.Core.Utilities import CFG, File, List
class Distribution:
cernAnonRoot = 'http://svn.cern.ch/guest/dirac'
googleAnonRoot = 'http://dirac-grid.googlecode.... | andresailer/DIRAC | Core/Utilities/Distribution.py | Python | gpl-3.0 | 16,711 | [
"DIRAC"
] | 9b1720384c393a290a49a90a00cb39a58735bd320f65676223eebd3d48352d88 |
# Copyright 2016 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... | strint/tensorflow | tensorflow/contrib/learn/python/learn/learn_io/graph_io.py | Python | apache-2.0 | 33,704 | [
"VisIt"
] | 3ada28ba1878666d6a3d20d55d374f21f62a3daebd6fc4a5fda2feb5f684c6d9 |
# Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
#################... | jonaustin/advisoryscan | django/django/conf/global_settings.py | Python | mit | 12,229 | [
"VisIt"
] | 2180f46c7759f47e9264d83aeed2d831056846c54e4187dfc2188051972df71a |
# 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
#
# Unless required by applica... | yanchen036/tensorflow | tensorflow/python/ops/image_ops_impl.py | Python | apache-2.0 | 93,702 | [
"Gaussian"
] | 79c0edfaddcc756c519ab45fa9cfcecf29961c1ac8b8bdbe3498c341acdc9fbe |
#!/usr/bin/env python
from __future__ import print_function
# -*- coding: latin1 -*-
__author__ = 'Herbert OLiveira Rocha'
#Python
import sys
import os
import re
import csv
import inspect
from operator import itemgetter
from collections import defaultdict
# From PycParser
import pycparser.c_parser
import pycparser.c... | hbgit/Inception | modules/intrument_assert_zero/write_assert_zero.py | Python | gpl-2.0 | 27,027 | [
"VisIt"
] | 21f89ca8e2a4ac934cda231c989eac55d9e65a860942ce26085ff5c570357596 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.