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 |
|---|---|---|---|---|---|---|---|
# coding: utf-8
bought = int(input("Digite o valor da conta em R$: "))
pay = int(input("Informe o valor do pagamento em R$: "))
bill = pay - bought
jaguar, monkey, parrot, egret, turtle, bird = 0, 0, 0, 0, 0, 0
if bill >= 50:
jaguar = int(bill / 50)
bill = bill - 50 * jaguar
if bill >= 20:
monkey = int... | henriquejensen/Python_Zumbis | Lista-3-Desafios/troco.py | Python | mit | 909 | [
"Jaguar"
] | 86e589f1fc1cc593ad5e28dbfd3038ddc21856fddea7c8f6e27e6152e0557b1e |
import os
from os.path import join
import numpy as n
def writeScript(rootName, plate):
f=open(rootName+".sh",'w')
f.write("#!/bin/bash \n")
f.write("#PBS -l walltime=260:00:00 \n")
f.write("#PBS -o "+plate+".o.$PBS_JOBID \n")
f.write("#PBS -e "+plate+".e$PBS_JOBID \n")
f.write("#PBS -M comparat@mpe.mpg.de \n")
f... | JohanComparat/pySU | spm/bin/write_run_scripts_dr7_salpeter.py | Python | cc0-1.0 | 962 | [
"Galaxy"
] | bf4818bcd453b60947a37c4e38e2a017730c0ee6167c62e714b42cbc743c821d |
#!/usr/bin/env python
import os
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# NOTE: This test only works if the current directory is writable
#
try:
filename = "plyWriter.ply"
channel = open(filename, "wb")
channel.close()
ss = vtk.... | biddisco/VTK | IO/PLY/Testing/Python/TestPLYReadWrite.py | Python | bsd-3-clause | 3,229 | [
"VTK"
] | 6d9fc89a7e536a58a46458f77f6214c8b274e5c7dfefeec69ee5cb418b9f4433 |
import json
import re
from string import upper
from itertools import izip
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from django.db import connection
from rest_framework.decorators import api_view
from catmaid.models import UserRole, Project, Class, ClassInstance, \
C... | aschampion/CATMAID | django/applications/catmaid/control/neuron_annotations.py | Python | gpl-3.0 | 48,334 | [
"NEURON"
] | bf8b96ae633692615ea17e0fd9abfaebad2432d67907f9af93abb8a379ef993f |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | rmcgibbo/psi4public | psi4/driver/driver_nbody.py | Python | lgpl-3.0 | 19,173 | [
"Psi4"
] | c1bfaaf1095fa91d91aca8f68c7973d720589684d3087dc20c07ea356bf0ea4e |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkMultiBlockPLOT3DReader(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | nagyistoce/devide | modules/vtk_basic/vtkMultiBlockPLOT3DReader.py | Python | bsd-3-clause | 516 | [
"VTK"
] | 38f7ac8a4d82e368072a77a9fbfc035b863a4c9a9f7bb8e07e33565c9f44bf8c |
# 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... | ageron/tensorflow | tensorflow/python/keras/layers/kernelized_test.py | Python | apache-2.0 | 16,596 | [
"Gaussian"
] | 0ae45c2824a95262710a4a8a0f9e474b9bc19acc4a9ea6c373e41368d8bbcb2f |
import os
import mock
from headphones.unittestcompat import TestCase, TestArgs
from headphones.softchroot import SoftChroot
from headphones.exceptions import SoftChrootError
class SoftChrootTest(TestCase):
def test_create(self):
""" create headphones.SoftChroot """
cf = SoftChroot('/tmp/')
... | rembo10/headphones | headphones/softchroot_test.py | Python | gpl-3.0 | 3,387 | [
"ADF"
] | c79fcdddd2dcaa3fc1276b16cccc8a2676e93b23e5c22c9887a81e0bcc54d644 |
import base64
import ConfigParser
import io
import json
import os
import random
import sys
import time
import tornado.web
import traceback
import socket
import logging
from datetime import datetime
from datetime import timedelta
from token import TokenAuthenticator
sessions = {}
use_mock = True
config = None
global_s... | nagyistoce/eucalyptus-ui | eucaconsole/__init__.py | Python | bsd-2-clause | 13,083 | [
"MOE"
] | 1f2ff0c8ac5b225da8ae967362b3a0f9d2950c0f8e0d3bb3437faa5e523e7b1c |
#!/usr/bin/env python3
import re, os, sys
from argparse import ArgumentParser, RawDescriptionHelpFormatter
from collections import Counter
import pysam
#############
## Read Me ##
#############
# Complete redesign of the discard step by Tobias Neumann.
#
# 22/06/2020 Created
#
# This just scans through the BAM, and ... | fruce-ki/utility_scripts | countMappedReadsBAM.py | Python | mit | 2,740 | [
"pysam"
] | 861b579dfd6d1e3b979566477891f77deb6d8c278d5dee38e276cfa0e3883c8e |
#! /usr/bin/env python
"""longLangevin.py - test the Langevin dynamics.
Usage: python longLangevin.py
Tests Langevin dynamics using the EMT Copper potential. It takes a while
since it is a statistical test of the temperature control.
"""
import sys, time
import numpy as np
from asap3.testtools import ReportTest
fr... | auag92/n2dm | Asap-3.8.4/Test/LongLangevin.py | Python | mit | 5,127 | [
"ASE"
] | 552ec615fc41de3d13f2fbe923e154f86588b2a9d146507a9970ad5339aeb00c |
'''This example is from Koller & Friedman example 7.3 page 252'''
from bayesian.gaussian_bayesian_network import *
'''
This is a simple example with 3 variables:
+----+ +----+ +----+
| X1 |--->| X2 |--->| X3 |
+----+ +----+ +----+
With parameters:
p(X1) ~ N(1; 4)
p(X2|X1) ~ N(... | kamijawa/ogc_server | bayesian/examples/gaussian_bayesian_networks/koller.py | Python | mit | 731 | [
"Gaussian"
] | 0a6fc19ea20569690ea29d41095eaca4369fd291c34a0c941091c3c4f33c575e |
#! /usr/bin/env python
# Copyright Ivan Sovic, 2015. www.sovic.org
#
# Analyzes error rates from a given SAM file, and plots results.
import os;
import sys;
import subprocess
import fastqparser;
import utility_sam;
import numpy as np;
USE_MATPLOTLIB = True;
try:
import matplotlib;
matplotlib.use('A... | isovic/samscripts | src/errorrates.py | Python | mit | 22,240 | [
"BWA"
] | 4fcbb113a0626c29a3f747f3cd47e5a8b91a120b468a86f2f68ab417a53133d4 |
from . import pdb_basic
from . import atom
from . import pdb_viewer
import vtk
import random as rand
import numpy as np
import math
import copy
import time, sys
import itertools
class Pdb(pdb_basic.PdbBasic):
"""Stores the pdb_basic file for making transformations."""
def __init__(self,input_file=False):
... | alinar/Molar | molar/pdb.py | Python | gpl-2.0 | 15,027 | [
"VTK"
] | 914dce50f08ad7103815aced0ffeeb0cccab949954e17a8e43e7f3a6a247aeb5 |
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have purchased from
# Numenta, Inc. a separate commercial license for this software code, the
# following terms and conditi... | Petr-Kovalev/nupic-win32 | py/regions/extra/GaborNode2.py | Python | gpl-3.0 | 141,862 | [
"Gaussian"
] | 2d753cf74602260cb45295aa9fb868ac8637d14d4ea37a05ecc9b20c561f4e64 |
#===============================================================================
# This file is part of TEMPy.
#
# TEMPy is a software designed to help the user in the manipulation
# and analyses of macromolecular assemblies using 3D electron microscopy maps.
#
# Copyright 2015 Birkbeck Colle... | OniDaito/ChimeraXTempy | TEMPy/ProtRep_Biopy.py | Python | mit | 46,387 | [
"Biopython"
] | 5365354e93b933a1bb8565af4a9c2298f694c658a2d8ee5c8729e24e7c0886e0 |
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import division
import sys
import glob
import pandas as pd
import numpy as np
import scipy as sp
# My package
from ngskit.utils import dna
# Normalize Read counts
def norm_TC(df, scalar_factor = 1):
"""Very basic normalization. Total ... | kimlaborg/NGSKit | ngskit/pipelines/common_norm.py | Python | mit | 13,967 | [
"BLAST",
"Bowtie"
] | 5c954c36d9db3ecd254f790494d8d76d9bd7927f43d1b323d942ec2fbe54876e |
import abc
import datetime
import enum
import typing
import jsii
import jsii.compat
import publication
from jsii.python import classproperty
import aws_cdk.aws_cloudwatch
import aws_cdk.aws_events
import aws_cdk.aws_iam
import aws_cdk.core
__jsii_assembly__ = jsii.JSIIAssembly.load("@aws-cdk/aws-sns", "1.15.0", __na... | randyzingle/tools | kub/services/archive/cdk/python/sample-app/.env/lib/python3.6/site-packages/aws_cdk/aws_sns/__init__.py | Python | apache-2.0 | 102,106 | [
"CDK"
] | 3b42c1f4918c5fbeefa81471b70a8f4ea77d4aa54f36a7b0176c53277f6884fc |
"""
Provides `SafeStringsDataset`, a replacement netCDF4.Dataset class which works
around a bug in NetCDF4 which causes attribute strings written to files to
be incompatible with older NetCDF software. Ensures that strings are only
written as UTF-8 encoded bytes.
For more information see https://github.com/Unidata/net... | ceos-seo/Data_Cube_v2 | agdc-v2/datacube/storage/netcdf_safestrings.py | Python | apache-2.0 | 2,852 | [
"NetCDF"
] | 68f1418d7d68df792c5490f8334994508dc08a138506016ac95d3c2f4e5bcda7 |
from .moveset import Direction, Moveset
import random
import math
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.patches import FancyArrowPatch
from matplotlib import animation
from matplotlib import cm
import logging
class Labyrinth:
def __init__(self, ro... | olety/Labyrinther | genetic/genetic/labyrinth.py | Python | mit | 18,789 | [
"VisIt"
] | 5cef79b2bedeb5a6ba5f9637c7f0c7879a10bb05682b59e926be7a0c883216c8 |
from .. import shift
import numpy as np
import itertools
from astropy.tests.helper import pytest
def gaussian(x):
return np.exp(-x**2/2.)
@pytest.mark.parametrize(('imsize','dx','dy'),
list(itertools.product(range(9,27),np.linspace(-2.5,2.5,11),np.linspace(-2.5,2.5,11))))
def test_shifts_2d_asymm(imsize,dx,dy... | keflavich/image_registration | image_registration/fft_tools/tests/test_shift.py | Python | mit | 1,450 | [
"Gaussian"
] | eafe6a0582b2e77077d427c2c8d9fef7f563d7ff0ee1005f466789c945993f91 |
#
# Copyright 2016 The BigDL 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 applicable law or agreed to in ... | intel-analytics/BigDL | python/orca/src/bigdl/orca/torch/torch_optim.py | Python | apache-2.0 | 2,069 | [
"ORCA"
] | 7180767c510cbc4ed7db1c274013dd1c842236bb3975592289bbd2ae5c903ba2 |
#!/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... | sunqm/pyscf | pyscf/dft/dks.py | Python | apache-2.0 | 5,385 | [
"DIRAC",
"PySCF"
] | d8dbcf4402c518e670b7374e2fca97ce2cdd035c660e574c6f85b0930b887b9b |
#!/usr/bin/env python
"""
Determine number of processors and memory for the worker node
"""
from DIRAC.Core.Base.Script import Script
from DIRAC import gLogger
from DIRAC.WorkloadManagementSystem.Utilities import JobParameters
ceName = ""
ceType = ""
Queue = ""
def setCEName(args):
global ceName
ceName = arg... | DIRACGrid/DIRAC | src/DIRAC/WorkloadManagementSystem/scripts/dirac_wms_get_wn_parameters.py | Python | gpl-3.0 | 1,476 | [
"DIRAC"
] | 17e98a80acbc6569c68f5f0d8eedadb5331d1fa090aa94b3368a6e63a151d9ec |
'''
'''
from __future__ import print_function
import shutil
from os.path import dirname, exists, join, realpath, relpath
import os, re, subprocess, sys, time
import versioneer
# provide fallbacks for highlights in case colorama is not installed
try:
import colorama
from colorama import Fore, Style
def ... | philippjfr/bokeh | _setup_support.py | Python | bsd-3-clause | 15,278 | [
"GULP"
] | 1013f96e18812bcae3f552640b634420f90a5d7f0861d81494956a17cb80263d |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Written by Lucas Sinclair.
MIT Licensed.
Contact at www.sinclair.bio
"""
# Built-in modules #
import re
# Internal modules #
from plumbing.color import Color
# Third party modules #
import Bio
from Bio.Seq import Seq
# Constants #
iupac = {'A':'A', 'G':'G', ... | xapple/fasta | fasta/primers.py | Python | mit | 6,448 | [
"Biopython"
] | b8a9318e26cdc0998945d433e2f8054275a70d220315bc3a59adc658ff08acf9 |
import logging
import config
import elasticsearch
from elasticsearch_dsl import DocType, Date, Text, Integer, Float
from elasticsearch_dsl.connections import connections
try:
connections.create_connection(hosts=config.ES_RESULT_HOSTS, timeout=20)
tracer = logging.getLogger('elasticsearch')
tracer.setLevel... | JmFoces/OBD-ELK-Logger | lib/db/ecudata (SFConflict chemafv27@gmail.com 2018-04-14-12-13-45).py | Python | gpl-3.0 | 870 | [
"Elk"
] | 82547ad970095c86e7861ba95591841f6a278a5896cb6be27f0f3c014026e4fe |
from django.conf.urls import url, include
from rest_framework import routers
from api import viewsets
from api import views
router = routers.DefaultRouter()
router.register(r'galaxies', viewsets.GalaxyInstanceViewSet, 'Galaxy')
urlpatterns = [
url('api/', include(router.urls, namespace="api")),
url('api/conf.... | erasche/galactic-radio-telescope | api/urls.py | Python | agpl-3.0 | 429 | [
"Galaxy"
] | 3b8b088269c590e67f7ccf658bdcf2bd7bb638adfb05750640c34acd5c60b987 |
######################################################################
#
# File: __init__.py
#
# Copyright 2013 Brian Beach, All Rights Reserved.
#
######################################################################
from .bstat import (
bayes,
poisson_confidence_interval
)
from .data import (
... | bwbeach/bstat | bstat/__init__.py | Python | mit | 364 | [
"Brian"
] | baf2437b4d92ecd536bf4e5a43aabf2e2f19d3fb29bd2a2d438822fa6d6726ed |
"""CHARMM Par format."""
import warnings
__all__ = ["write_par"]
def write_par(structure, filename):
"""Write CHARMM Par file given a parametrized structure.
Notes
-----
Follows format according to
https://www.ks.uiuc.edu/Training/Tutorials/namd/namd-tutorial-unix-html/
node25.html
Furth... | iModels/mbuild | mbuild/formats/par_writer.py | Python | mit | 6,707 | [
"Amber",
"CHARMM",
"NAMD"
] | 76847b606031279afb1753515c14a18c3e48c2140802e602cfc85429fd5a97de |
#! /bin/env python
import sys
import numpy as np
import xml.dom.minidom
from landlab.io.vtk.encoders import encode
from landlab.io.vtk.vtktypes import SYS_TO_VTK_ENDIAN, NUMPY_TO_VTK_TYPE
class VtkExtent(object):
def __init__(self, shape):
assert(len(shape) <= 3)
self._shape = tuple(shape)
... | decvalts/landlab | landlab/io/vtk/vtkxml.py | Python | mit | 6,584 | [
"VTK"
] | ee326d0046c95a4a3120e2c57782cfeef205201b81eb0c9cd158104cbd7c2a62 |
"""
Student Views
"""
import datetime
import logging
import uuid
import json
import warnings
from collections import defaultdict
from pytz import UTC
from requests import HTTPError
from ipware.ip import get_ip
from django.conf import settings
from django.contrib.auth import logout, authenticate, login
from django.cont... | nanolearningllc/edx-platform-cypress | common/djangoapps/student/views.py | Python | agpl-3.0 | 91,673 | [
"VisIt"
] | a842222448a2d95e382bd3f03f2880d9ad9b39011e6648708853943f7aa3c832 |
"""Module :mod:`sklearn.kernel_ridge` implements kernel ridge regression."""
# Authors: Mathieu Blondel <mathieu@mblondel.org>
# Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
# License: BSD 3 clause
import numpy as np
from .base import BaseEstimator, RegressorMixin, MultiOutputMixin
from .metrics.pairwi... | sergeyf/scikit-learn | sklearn/kernel_ridge.py | Python | bsd-3-clause | 8,906 | [
"Gaussian"
] | feaab5b9bacd655b40d0678911444c4a7092c7f63a335544bb67a55a46496c45 |
#!/usr/bin/env python
import os
import vtk
import math
import numpy
import paraview.servermanager
fold_on_right_side = 0
#Active Render
renderView1 = GetActiveViewOrCreate('RenderView')
#Active source
S = GetActiveSource()
#Source file name
FileName = os.path.basename(GetActiveSource().FileNames[0])
FileName = os.p... | vianamp/Utils | ImaginalDisk/python/makebox.py | Python | gpl-3.0 | 4,008 | [
"ParaView",
"VTK"
] | 71e2eed8311fe025f90d2d89200806b40e088ac21f3bf56e71cd8123d3e991c0 |
#!/usr/bin/python
import os
import sys
import time
import glob
import tempfile
def fail(subject, filename='/dev/null'):
assert os.system(
'mail -s "%s" gpaw-developers@listserv.fysik.dtu.dk < %s' %
(subject, filename)) == 0
raise SystemExit
if '--dir' in sys.argv:
i = sys.argv.index('--dir... | ajylee/gpaw-rtxs | tools/nightly_test_parallel.py | Python | gpl-3.0 | 2,894 | [
"ASE",
"GPAW"
] | b08adb2105a6589c945ba573653b9aff24b94b5de6dfcd790800cf05eb1f550f |
# coding=utf-8
# Copyright 2017 The Tensor2Tensor 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 applicable... | waterblue13/tensor2tensor | tensor2tensor/models/attention_lm_moe.py | Python | apache-2.0 | 19,609 | [
"MOE"
] | 05efe47cc663ed5cfa356bf845d80d5006f683987d60e819dbe6c6915d63ee59 |
from __future__ import unicode_literals
from django.utils import six
from djblets.testing.decorators import add_fixtures
from djblets.webapi.errors import DOES_NOT_EXIST
from reviewboard.accounts.models import ReviewRequestVisit
from reviewboard.webapi.resources import resources
from reviewboard.webapi.tests.base imp... | chipx86/reviewboard | reviewboard/webapi/tests/test_archived_review_request.py | Python | mit | 4,750 | [
"VisIt"
] | 02b710b85234ec8f3e9cb6a365f7fcd2bf0afc91203e18936b3ed67f2150133c |
import re, os, sys
from Tester import Tester
from RunParallel import RunParallel # For TIMEOUT value
class RunApp(Tester):
@staticmethod
def validParams():
params = Tester.validParams()
params.addRequiredParam('input', "The input file to use for this test.")
params.addParam('test_name', ... | adamLange/moose | python/TestHarness/testers/RunApp.py | Python | lgpl-2.1 | 11,237 | [
"MOOSE"
] | c367a0ecb59a22ed373ab219cf9861be0b0c73d717ba03216b81a0d126202571 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# create pipeline - structured grid
#
pl3d = vtk.vtkMultiBlockPLOT3DReader()
pl3d.SetXYZFileName("" + str(VTK_DATA_ROOT) + "/Data/combxyz.bin")
pl3d.SetQFileName("" + str(VTK_DATA_ROO... | collects/VTK | Filters/Geometry/Testing/Python/geomFilter.py | Python | bsd-3-clause | 4,658 | [
"VTK"
] | 3b688b39a9a64bf442fbd34081e93593328ba612b6bb6ecb82fc425b1b2e0023 |
#!/usr/bin/python
#
# This script can be used to add a new translation to QOwnNotes
#
import sys
import re
if len(sys.argv) < 3:
print('Usage: {} <iso_crowdin> <iso_qon>\ne.g. {} de_AT de'.format(
sys.argv[0], sys.argv[0]))
sys.exit(1)
# e.g. "he_IL"
iso_crowdin = sys.argv[1]
# e.g. "he"
iso_qon = s... | pbek/QOwnNotes | scripts/add_translation.py | Python | gpl-2.0 | 2,912 | [
"VisIt"
] | 10dd40dac2f3cc14cc24c57e419fc4a26501b24f8fee42332f078d33d5b53fe8 |
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | gkc1000/pyscf | pyscf/nao/test/test_0131_h2b_uhf_nonin_pb.py | Python | apache-2.0 | 1,557 | [
"PySCF"
] | bdc163ff2e6c7031359af65dce27dbe1560ba5541637d459db36e31dca09540e |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Xibo - Digitial Signage - http://www.xibo.org.uk
# Copyright (C) 2010-2013 Alex Harrington
#
# This file is part of Xibo.
#
# Xibo 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 Fr... | xibosignage/xibo-offline-download | XiboOfflineDownload.py | Python | agpl-3.0 | 38,248 | [
"Amber"
] | 9a2fabaef12fd0f36c78cb36d853cf79cce02b2a70947d2a0c9e88bf756f7b1f |
from collections import OrderedDict
import functools
import sys
if sys.version < '3': # pragma: no cover
text_type = unicode
else: # pragma: no cover
text_type = str
basestring = str
from .graph import PlainGraphNode
class Walker(object):
'''Class to do depth-first walks of Graphs.
To use Walker... | dplepage/vertigo | vertigo/walker.py | Python | bsd-3-clause | 5,994 | [
"VisIt"
] | bdc82213a6af3fb6d18df576911e8e3386f6d49d5cc7240e8c665d1bce7aa85e |
"""
test_run_chronostar.py
Integration test, testing some simple scenarios for NaiveFit
"""
import logging
import numpy as np
import os.path
import sys
from distutils.dir_util import mkpath
sys.path.insert(0, '..')
from chronostar.naivefit import NaiveFit
from chronostar.synthdata import SynthData
from chronostar.co... | mikeireland/chronostar | integration_tests/test_run_chronostar_w_orbits.py | Python | mit | 12,214 | [
"Gaussian"
] | 1a5b195c07f1c1a01f130f6a757447dcddae98290689d0ba9b75afd2dcc908b7 |
#!env/python3
# coding: utf-8
import os
import sys
import datetime
import sqlalchemy
import subprocess
import reprlib
import time
from common import *
from progress.bar import Bar
from sqlalchemy import Table, Column, Integer, String, Boolean, ForeignKey, Sequence, UniqueConstraint, Index, func, distinct
from sql... | REGOVAR/Sandbox | benchs/db/scripts/poc_006.py | Python | agpl-3.0 | 6,542 | [
"pysam"
] | f2246cf151a1f6f05bf872f01da7b68adee36f6edfb814bc81eaacb9f63f3841 |
from meshparser.stlparser.parser import STLParser
from meshparser.vrmlparser.parser import VRMLParser
from meshparser.vtkparser.parser import VTKParser
class MeshParser(object):
def __init__(self):
self._parser = None
def parse(self, filename, use_parser=None):
if use_parser is None:
... | ABI-Software/MeshParser | src/meshparser/parser.py | Python | apache-2.0 | 2,383 | [
"VTK"
] | 1f4d129be34799e2f5583b2bd7b392b7a628e91f4b4af54ea5a4ab056a709e01 |
""" WMSHistoryCorrector is the implementation class of the BaseHistoryCorrector
which gets resources consumption history data from the WMSHistory Accounting
database
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id$"
import datet... | yujikato/DIRAC | src/DIRAC/WorkloadManagementSystem/private/correctors/WMSHistoryCorrector.py | Python | gpl-3.0 | 1,601 | [
"DIRAC"
] | f8267fbad4c007eeddf4b19dca518093fa54095a891a9058dc0110ffa28086c0 |
import os
from distutils.version import LooseVersion
import numpy as np
import pandas as pd
from shapely.geometry import Point, Polygon, LineString, GeometryCollection, box
from fiona.errors import DriverError
import geopandas
from geopandas import GeoDataFrame, GeoSeries, overlay, read_file
from geopandas import _c... | jorisvandenbossche/geopandas | geopandas/tests/test_overlay.py | Python | bsd-3-clause | 26,223 | [
"Bowtie"
] | 319ef79c7cc646fadd8ddcf2b3b7903cf778ce1c131b848ea889faf590c2eacc |
import argparse
parser = argparse.ArgumentParser(description='Run simulation for nora w 3d layers')
parser.add_argument('t', metavar='threads', type=int,
default=1,
help='number of nest threads')
parser.add_argument('n', metavar='nn',
default=3000,
... | research-team/NEUCOGAR | NEST/cube/noradrenaline/scripts-2/simulation_params.py | Python | gpl-2.0 | 1,185 | [
"NEURON"
] | 9d66eba7a303151e7c4d7e6c009efc480354e9fc16a12ca697ecc42a1c2e6fad |
#!/usr/bin/env python2.6
#
# Copyright (C) 2011 by Brian Weck
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
#
import utils
from cssbot import log, queue
#
utils.usage(1, "usage: %s id")
thing_id = utils.argv(1)
#
log = log.getLogger("cssbot.dequeue")
#
queue = queue.Queue()
... | bweck/cssbot | dequeue-post.py | Python | mit | 592 | [
"Brian"
] | 218cc916e9e98dd8511963fc83e8f724545bb4e633f24ba30b20aefd1514585f |
from director import imageview
from director import consoleapp
import director.vtkAll as vtk
import director.vtkNumpy as vnp
# create a vtkImageData object
s = vtk.vtkRTAnalyticSource()
s.SetWholeExtent(-100, 100, -100, 100, 0, 0)
s.Update()
image = s.GetOutput()
# get image data as a numpy array
w,h,_ = image.GetDi... | patmarion/director | src/python/tests/testImageView.py | Python | bsd-3-clause | 638 | [
"VTK"
] | 87d5b0c4dc5abb564b1574c791abcf4ee034fd12073b905c21416b801848e960 |
"""
=================
flask-geckoboard
=================
Geckoboard_ is a hosted, real-time status board serving up indicators
from web analytics, CRM, support, infrastructure, project management,
sales, etc. It can be connected to virtually any source of quantitative
data. This Flask_ plugin provides view decorator... | neocortex/flask-geckoboard | flask_geckoboard/__init__.py | Python | mit | 12,794 | [
"Amber"
] | 04f4f7055f4c1c39b988822abd8eec48f6e62016697cfea9df32f4e6de91ae04 |
#!/usr/bin/env python
import sys
import os
import tempfile
import optparse
import subprocess
from galaxy.util.json import from_json_string, to_json_string
CHUNK_SIZE = 2**20
DEFAULT_DATA_TABLE_NAME = "bowtie_indexes"
def get_id_name( params, dbkey, fasta_description=None):
#TODO: ensure sequence_id is unique ... | mr-c/tools-iuc | data_managers/data_manager_bowtie_index_builder/data_manager/bowtie_index_builder.py | Python | mit | 4,268 | [
"Bowtie",
"Galaxy"
] | 1a2fcdedacb633814cec11c96e12b27bc1db6ed8e838248a0591149ca7df5626 |
# 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, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY W... | qandak/sumcalc | main.py | Python | gpl-3.0 | 75,477 | [
"VisIt"
] | 0c526833b8c24d1ee523be5ba3f934b7cdad428c3c302ed0556165171c95a7e1 |
#!/usr/bin/python
#pipeline.py
samtoolsString = 'samtools'
bamliquidator_path = 'bamliquidator_batch'
pipelineFolder = '/ark/home/cl512/pipeline/' # need to set this to where this code is stored
fastqDelimiter = '::' #delimiter for pairs in fastqs
'''
The MIT License (MIT)
Copyright (c) 2013 Charles Lin
Permission ... | vangalamaheshh/pipeline | pipeline_dfci.py | Python | mit | 155,441 | [
"BLAST",
"Bowtie"
] | 5f8cb2cdd27f7c04b976ed65570bfbe2471e3035dfd1ccb3764052bfac7a0e61 |
# pylint: disable=missing-docstring
import datetime
import os
import pytz
from django.conf import settings
from mock import patch
from pytz import UTC
from splinter.exceptions import ElementDoesNotExist
from selenium.common.exceptions import NoAlertPresentException
from nose.tools import assert_true, assert_equal, asse... | louyihua/edx-platform | lms/djangoapps/courseware/features/lti.py | Python | agpl-3.0 | 14,189 | [
"VisIt"
] | fcca4b90080e37861e6c8921596c04375027c96c30667987d33e50c36633af1c |
#import urllib
#res=urllib.request.urlopen("https://www.facebook.com/wagnerpyter/friends")
#
#import requests
#from bs4 import BeautifulSoup
#
##url = "http://uswest.ensembl.org/Gallus_gallus/Gene/Summary?db=core;g=ENSGALG00000016955;r=1:165302186-165480795;t=ENSGALT00000027404"
#url="https://www.facebook.com/wagnerpy... | ttm/socialLegacy | tests/reach.py | Python | mit | 1,553 | [
"VisIt"
] | 809ef6b431223d4a3e39053e8a54ddd703d9bfca8b8ebe7698fb7cbe4db5faa4 |
"""
=======================================
Signal processing (:mod:`scipy.signal`)
=======================================
Convolution
===========
.. autosummary::
:toctree: generated/
convolve -- N-dimensional convolution.
correlate -- N-dimensional correlation.
fftconvolve --... | kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/scipy/signal/__init__.py | Python | gpl-3.0 | 15,629 | [
"Gaussian"
] | 773f1b4aaad3cda39faaaf4aa45eefd6e8c0347fd49bbc8a8b559173eb260e82 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides core classes needed by all define electronic structure,
such as the Spin, Orbital, etc.
"""
from enum import Enum, unique
import numpy as np
from monty.json import MSONable
@unique
class Spin(Enum)... | vorwerkc/pymatgen | pymatgen/electronic_structure/core.py | Python | mit | 15,431 | [
"CRYSTAL",
"VASP",
"pymatgen"
] | 617b5723dae2476d88602383c8bcc293b842422139f374c5a15e2c961ab04a3c |
import setuptools
import versioneer
LONG_DESCRIPTION = """
**aospy**: automated gridded climate data analysis and management
A framework that enables automated calculations using gridded climate data.
Following some basic description of where your data lives and defining any
functions of variables stored in that dat... | spencerkclark/aospy | setup.py | Python | apache-2.0 | 2,280 | [
"NetCDF"
] | 4fb9200c077a24a726a9a342f58b131eed917abd3bf0403a446c625996272daf |
# coding: utf-8
from __future__ import division, unicode_literals
"""
This module implements a EnergyModel abstract class and some basic
implementations. Basically, an EnergyModel is any model that returns an
"energy" for any given structure.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The M... | Dioptas/pymatgen | pymatgen/analysis/energy_models.py | Python | mit | 5,556 | [
"GULP",
"pymatgen"
] | 89425ca0cc8771402749b7f96e3b5832744f16795d74053fc382969c70221bea |
from time import time
from distutils.version import LooseVersion
from collections import namedtuple
import warnings
import scipy
from scipy import stats
import numpy as np
from ..base import clone, BaseEstimator, TransformerMixin
from ..exceptions import ConvergenceWarning
from ..preprocessing import normalize
from ... | chrsrds/scikit-learn | sklearn/impute/_iterative.py | Python | bsd-3-clause | 28,197 | [
"Gaussian"
] | 07bd8bdc931b5e1753f7438e54c03a3bd039a24fd40071d43092c09e4e139489 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007 Douglas S. Blank
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2008 Raphael Ackerman
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2011 Tim G L Lyons
#
# This program is free software; you can redi... | prculley/gramps | gramps/plugins/importer/importcsv.py | Python | gpl-2.0 | 44,678 | [
"Brian"
] | 240ae9af900c0c82fadef69c6338497b9846f7976c514fd3933eb1b41034ba97 |
"""
Pyperclip
A cross-platform clipboard module for Python,
with copy & paste functions for plain text.
By Al Sweigart al@inventwithpython.com
BSD License
Usage:
import pyperclip
pyperclip.copy('The text to be copied to the clipboard.')
spam = pyperclip.paste()
if not pyperclip.is_available():
print("Cop... | jreback/pandas | pandas/io/clipboard/__init__.py | Python | bsd-3-clause | 21,542 | [
"VisIt"
] | 317b9de5d271c2b25159f7b03c0b21ac7ea613eb2f4a2a7645e26d3087317d01 |
from typing import cast, Any, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Text
from confirmation.models import Confirmation, create_confirmation_link
from django.conf import settings
from django.template import loader
from django.utils.timezone import now as timezone_now
from zerver.decorator import sta... | Galexrt/zulip | zerver/lib/notifications.py | Python | apache-2.0 | 21,366 | [
"VisIt"
] | 26b214d2e76b54c6be75b49f7fe6446e15dbf31db41361e0ca89f2ae1b1a1ef5 |
# Copyright (c) 2001-2007 Twisted Matrix Laboratories.
# See LICENSE for details.
#
# Maintainer: Jonathan Lange
import sys
import traceback
from zope.interface import implements
from twisted.python import reflect
from twisted.python.failure import Failure
from twisted.trial import util
from twisted.trial.unittest ... | sorenh/cc | vendor/Twisted-10.0.0/twisted/trial/test/test_pyunitcompat.py | Python | apache-2.0 | 6,669 | [
"VisIt"
] | 25243bdaf7fb96c2ebdcc9f1b71730e429782562a715e6ff11e956e00b613a77 |
#!/usr/bin/env python
#
# vmdktool.py - Helper for 'vmdktool'
#
# February 2015, Glenn F. Matthews
# Copyright (c) 2013-2017 the COT project developers.
# See the COPYRIGHT.txt file at the top-level directory of this distribution
# and at https://github.com/glennmatthews/cot/blob/master/COPYRIGHT.txt.
#
# This file is ... | glennmatthews/cot | COT/helpers/vmdktool.py | Python | mit | 4,089 | [
"Brian"
] | 2d808020d342da76a2b31b3cb9c2bacf1d3065ffee849424cff1bb7511c66605 |
import sim_env
import linear_env
from actor import Actor
from replay_buffer import ReplayBuffer
import numpy as np
import tensorflow as tf
import keras.backend as kbck
import json
import time
import matplotlib as mpl
import matplotlib.pylab as plt
import os.path
#import seaborn as sns
#sns.set()
#sns.set_context('talk'... | deot95/Tesis | Proyecto de Grado Ingeniería Electrónica/Workspace/Comparison/Full SWMM/test_ddpg.py | Python | mit | 7,307 | [
"Gaussian"
] | 8e3d9190b1b289114c21abf2efc58b679f0cb54872043637cdb39f52eda97eec |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from pymatgen.util.testing import PymatgenTest
from pymatgen.core.xcfunc import XcFunc
class LibxcFuncTest(PymatgenTest):
def test_xcfunc_api(self):
"""Testing XcFunc API."""
# Aliases sh... | tschaume/pymatgen | pymatgen/core/tests/test_xcfunc.py | Python | mit | 2,616 | [
"ABINIT",
"pymatgen"
] | 24edf01fac2388a1e52faca9913824f2ec85cca01198e1a945205f7dc6c1476e |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | jH0ward/psi4 | psi4/driver/wrapper_database.py | Python | lgpl-3.0 | 35,620 | [
"Psi4"
] | 26471864cfba1f4c17b84c5467772d9c50f73dd6d3326305fc6d0af003925c60 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals, print_function
import json
import glob
import itertools
import logging
import math
import os
import re
import warnings
import xml.etree.cElementTree as ET
fro... | nisse3000/pymatgen | pymatgen/io/vasp/outputs.py | Python | mit | 175,617 | [
"CRYSTAL",
"VASP",
"VisIt",
"pymatgen"
] | 1f725f6f0d8e16493cf58c58c68d10286c3ad596064d562a407ee3e4f5b45dfd |
# -*- coding: utf-8 -*-
"""
Tools for handling the OSU tidal prediction software (OTPS) output data
(http://volkov.oce.orst.edu/tides/)
This software is based on the tide model driver (TMD) matlab code from here:
http://polaris.esr.org/ptm_index.html
Matt Rayson
Stanford University
March 2013
"""
impor... | UT-CWE/Hyospy | Hyospy_ensemble/lib/SUNTANS/DataIO/read_otps.py | Python | mit | 29,289 | [
"Brian"
] | be61587b2565862587efc3ab2705cbe38812d91309d804c838b874e31f77e667 |
#!/usr/bin/env python
#
# $File: help.py $
#
# This file is part of simuPOP, a forward-time population genetics
# simulation environment. Please visit http://simupop.sourceforge.net
# for details.
#
# Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you can redistribute it an... | BoPeng/simuPOP | docs/help.py | Python | gpl-2.0 | 1,136 | [
"VisIt"
] | a677e2d711297d0cc9f92a5d849b7a96a03600e110ebda3b754784b2394abc49 |
__author__ = 'Elahe'
import ephem
import numpy as np
import json
from operator import attrgetter
from numpy import *
import time
''' Constants '''
inf = 1e10
eps = 1e-10
class Data(object):
def __init__(self, date, site):
self.Date = date
self.Site = site
''' Predictable data '''
... | elahesadatnaghib/feature-based-scheduler | Heart.py | Python | mit | 27,411 | [
"VisIt"
] | 906e190261bc6de6a29a52e8e7d40c4dcb084f020a452dfb7fb89fd1a8b67ba5 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Martin Hawlisch, Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2013 Vassilii Khachaturov
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Genera... | jralls/gramps | gramps/plugins/importer/importgeneweb.py | Python | gpl-2.0 | 47,745 | [
"Brian"
] | df1858ff8f22a3607a1c3394d959490726e24c45249db095b59614e3cb434291 |
"""Models a the RHEA fibre feed composed of OpticalElements.
Authors:
Adam Rains
"""
from __future__ import division, print_function
import numpy as np
import optics
import opticstools as optics_tools
import opticstools.utils as utils
import pylab as pl
import time
import multiprocessing as mp
import csv
class Feed:
... | mikeireland/astro-optics | feed.py | Python | mit | 16,159 | [
"Gaussian"
] | 15941e3652e1265844eb08cf6025638cf6a1f13c3537aae615949aad730a018a |
# -*- coding: utf-8 -*-
"""
Acceptance tests for Video.
"""
from __future__ import absolute_import
import os
from unittest import skipIf
from ddt import data, ddt, unpack
from mock import patch
from six.moves import range
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from commo... | ESOedX/edx-platform | common/test/acceptance/tests/video/test_video_module.py | Python | agpl-3.0 | 47,957 | [
"VisIt"
] | 93bed5e03ef3c4de170ad89bff9005f416dee934098c9d4701d161c2228b8213 |
# Copyright 2000 by Jeffrey Chang. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""This provides useful general functions for working with strings.
Functions:
splitany ... | dbmi-pitt/DIKB-Micropublication | scripts/mp-scripts/Bio/stringfns.py | Python | apache-2.0 | 3,156 | [
"Biopython"
] | bade4572a1ca6003f6458c90831e5601df64820198f8a84c5d1c9c3c6657d653 |
import numpy as np
import os
import re
import random
import progressbar
kBasePath = "C:\\Users\\JM\\Desktop\\Data\\ETRIrelated\\BMVC\\"
# kResultVideoBasePath = os.path.join(kBasePath, "point_check")
kActionSampleBasePath = os.path.join(kBasePath, "action_data")
class DataLoader():
def __init__(self, x_data, dat... | neohanju/GarbageDumping | EventEncoder/legacy/data_loader.py | Python | bsd-2-clause | 3,379 | [
"BLAST"
] | 68cc69b4088d8cb75f540a870a4641f4a49c55931f145e0deb4627070e21b200 |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module contains simple functions for model selection.
"""
import numpy as np
__all__ = ['bayesian_info_criterion', 'bayesian_info_criterion_lsq',
'akaike_info_criterion', 'akaike_info_criterion_lsq']
__doctest_requires__ = {'bayesia... | bsipocz/astropy | astropy/stats/info_theory.py | Python | bsd-3-clause | 14,914 | [
"Gaussian"
] | 67a6e45653402e70e5ec0fce50ec43b9aa97f806ecf166e72c7de0bd3b9431f0 |
"""
The :class:`Module` class encapsulates a single Python module,
which corresponds to a single ARTIQ translation unit (one LLVM
bitcode file and one object file, unless LTO is used).
A :class:`Module` can be created from a typed AST.
The :class:`Source` class parses a single source file or
string and infers types fo... | JQIamo/artiq | artiq/compiler/module.py | Python | lgpl-3.0 | 4,539 | [
"VisIt"
] | 5871c80016ad8b201e27df22c4eefcd986621e293e9b90b919d3a7fed6f8004c |
"""
Instructor Dashboard Views
"""
import datetime
import logging
import uuid
from functools import reduce
from unittest.mock import patch
import pytz
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.http import Http404, HttpResponseServerError
from django.urls i... | eduNEXT/edx-platform | lms/djangoapps/instructor/views/instructor_dashboard.py | Python | agpl-3.0 | 34,285 | [
"VisIt"
] | c21a035802443c19ac3d48cba0a216b849a7a7850cedf260c414f35412753040 |
"""
KeepNote
Notebook indexing
"""
#
# KeepNote
# Copyright (c) 2008-2009 Matt Rasmussen
# Author: Matt Rasmussen <rasmus@mit.edu>
#
# 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;... | gemagomez/keepnote | keepnote/notebook/connection/fs/index.py | Python | gpl-2.0 | 23,107 | [
"VisIt"
] | 6900cee4a63dac1002f33df06530e005ea2d687e067ba2e6bfca7a6f34bb585d |
#!/usr/bin/env python
from __future__ import print_function
class EPRFile(object):
"""
"""
def __init__(self, charge=0, xyzfile=""):
self.contents = self.default(charge, xyzfile)
def default(self, charge, xyzfile):
pass
class OptFile(object):
"""
"""
def __init__(self... | berquist/orcaparse | orcaparse/input_file_generators.py | Python | mpl-2.0 | 3,204 | [
"ORCA"
] | 695d5aa4df7259fe2ba2e471a1acdacd0f8022c056271f0d9f18dab2d0b72873 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | thirdwing/mxnet | example/image-classification/common/fit.py | Python | apache-2.0 | 8,383 | [
"Gaussian"
] | c2ccd8bf10117fc05c4968acf201564775735506f1d983c81df7e96e8af91ced |
# Copyright (c) 2003-2016 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
"""Module to add McCabe checker class for pylint. """
from _... | bgris/ODL_bgris | lib/python3.5/site-packages/pylint/extensions/mccabe.py | Python | gpl-3.0 | 5,895 | [
"VisIt"
] | b09618d220671f5b1872e1c0c3aa73b661441f5f6fa69de4a55dcc5edba8163a |
r"""OS routines for NT or Posix depending on what system we're on.
This exports:
- all functions from posix, nt or ce, e.g. unlink, stat, etc.
- os.path is either posixpath or ntpath
- os.name is either 'posix', 'nt' or 'ce'.
- os.curdir is a string representing the current directory ('.' or ':')
- os.pardir... | batermj/algorithm-challenger | code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Lib/os.py | Python | apache-2.0 | 37,033 | [
"VisIt"
] | 7672aa1ec34e432e4304a719bc75a0ec0152f512f37362ba67fd8eb12c93f7c1 |
#-------------------------------------------------------------------------------
#
# Define classes for (uni/multi)-variate kernel density estimation.
#
# Currently, only Gaussian kernels are implemented.
#
# Written by: Robert Kern
#
# Date: 2004-08-09
#
# Modified: 2005-02-10 by Robert Kern.
# Contr... | person142/scipy | scipy/stats/kde.py | Python | bsd-3-clause | 21,800 | [
"Gaussian"
] | 47c03c7e71e7c9147aa7c195104647d45ea26db4c991f460cd66e750f329c329 |
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2007, 2012, 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 it... | rschatz/graal-core | mx.graal-core/sanitycheck.py | Python | gpl-2.0 | 21,513 | [
"VisIt"
] | 2c0cb97b18a0f008f573a3cdea145da13c8099e8dc00ec8c0f48030a2606eea6 |
#!/usr/bin/env python
"""Script for testing the generation of Gaussian profiles by both DFT and photon shooting, for
comparison of the size and ellipticity in the resulting images.
"""
# Basic params of problem that will be consistent across tests:
PIXEL_SCALE = 0.03
IMAGE_SIZE = 512
# Number of objects from the COSM... | mardom/GalSim | devel/external/test_sersic_highn/test_gaussian_basic.py | Python | gpl-3.0 | 6,360 | [
"Galaxy",
"Gaussian"
] | f6b93294d075fef8432626e9a3cb42f8e5af34b1521bd3e09949a51cc656ff86 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module contains objects that are used to describe the environments in a structure. The most detailed object
(StructureEnvironments) contains a very thorough analysis of the environments of a given ato... | tschaume/pymatgen | pymatgen/analysis/chemenv/coordination_environments/structure_environments.py | Python | mit | 88,719 | [
"pymatgen"
] | 22d946af179262fcf09f457de8d96d8d13e897e836f737b275095aa0284dde39 |
from glob import glob
from os.path import *
import os
import sys
import re
from Bio import SeqIO
import gzip
import logging as logger
#logger = log.setup_logger(__name__, log.get_config())
ROCHE_FILE = '\S+?(?:__[0-9]){0,1}__(?:TI|RL)\d+__\d{4}_\d{2}_\d{2}__\w+.(sff|fastq)'
'''
Matches roche sff or fastq files
sample... | VDBWRAIR/miseq_sync | ngs_mapper/data.py | Python | gpl-2.0 | 9,181 | [
"Biopython"
] | 79fb17425686ebf55ec49d78acd9c8c8d2fa24ef84dfbadb8955e97223472b98 |
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | gkc1000/pyscf | pyscf/nao/test/test_0036_cube_nao.py | Python | apache-2.0 | 2,726 | [
"PySCF"
] | f1faa5f6bf58bc915474d8e42c8abfa5f3c3b9c057eff40f6d7edf03ba971a50 |
import datetime
from django.db import models
from django.contrib.auth.models import User
import json
import uuid
from qa import models as qamodels
PROGRAM_MODEL_CHOICES = (
('school_wide', '2+2'),
('fellowship', 'Fellowship Model'),
('ptlt', 'PTLT'),
)
class District(models.Model):
name = models.CharF... | koebbe/homeworks | visit/models.py | Python | mit | 5,342 | [
"VisIt"
] | 7698a70dbc20f4413eb267bb4ef0482424b45ddd6296153907b7846f6b089bd5 |
#!/usr/bin/env python
# CREATED:2013-03-08 15:25:18 by Brian McFee <brm2132@columbia.edu>
# unit tests for librosa.filters
#
# This test suite verifies that librosa core routines match (numerically) the output
# of various DPWE matlab implementations on a broad range of input parameters.
#
# All test data is generated... | bmcfee/librosa | tests/test_filters.py | Python | isc | 14,277 | [
"Brian"
] | 862c5bd0e2c7d785f9e98f96083f6f43505b0c7ca57daef93b24f1e5ffc9e89f |
"""
@name: PyHouse/src/Modules/Computer/Web/_test/test_web_webs.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com>
@copyright: (c) 2014-2017 by D. Brian Kimmel
@license: MIT License
@note: Created on Jun 20, 2014
@Summary:
"""
__updated__ = '2020-02-14'
# Import system type stuff
import ... | DBrianKimmel/PyHouse | Project/src/Modules/Computer/Web/test/test_web_webs.py | Python | mit | 1,268 | [
"Brian"
] | 7887a77196247b5bb202ca2627db705993a92aa9603e601d08de9259b293fafd |
"""Redundancy."""
from proselint.tools import memoize, preferred_forms_check
@memoize
def check(text):
"""Suggest the preferred forms."""
err = "redundancy.wallace"
msg = "Redundancy. Use '{}' instead of '{}'."
redundancies = [
["rectangular", ["rectangular in shape"]],
["audi... | amperser/proselint | proselint/checks/redundancy/misc.py | Python | bsd-3-clause | 25,051 | [
"Galaxy"
] | d2c560615400b02c8b1b4a3e9c6648157aa1263534c375275a7ee64c19065970 |
from splinter import Browser
#import Tkinter
import time
def download_art(title):
browser = Browser()
# Visit URL
url = "http://gen.lib.rus.ec/scimag/index.php"
browser.visit(url)
article_title = browser.find_by_name('s')
article_title.fill(title)
button = browser.find_by_value('Search!'... | Akash1684/ScriptsPy | research_art.py | Python | mit | 854 | [
"VisIt"
] | 30851a7cff237f9de0de90059f49aa29531d909d0126b064d09581989f433820 |
#!/usr/bin/env python
import json
import os
import time
from random import choice
from locust import HttpUser
from locust import task
from locust import TaskSet
try:
import urllib.request as urlrequest
except ImportError:
import urllib as urlrequest
USERNAME = os.getenv("LOCUST_USERNAME") or "a@a.com"
PASSWOR... | DXCanas/content-curation | performance/locustfile.py | Python | mit | 10,501 | [
"VisIt"
] | b37ce932ec7babe16e4aeece44c0d96d96b1104dc63f25df8eed552d1684ce11 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
# ... | SKIRT/PTS | dustpedia/config/get_images.py | Python | agpl-3.0 | 1,134 | [
"Galaxy"
] | c7e2d31bd0bb8c0660d4921f6595e151e5afbbbc896bba17a78de747cf2942c1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.