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 |
|---|---|---|---|---|---|---|---|
from MafiaBot.MafiaRole import MafiaRole
from MafiaBot.MafiaAction import MafiaAction
from MafiaBot.Items.Probe import Probe
class Alien(MafiaRole):
def GetRolePM(self):
return 'You are an Alien. You may secretly probe other players during the night. Once you have probed all other remaining living player... | LLCoolDave/MafiaBot | MafiaBot/Roles/Alien.py | Python | mit | 2,721 | [
"VisIt"
] | 7b48eeeede40fd0002a6a94e709a1eaa1bc9322f3542cb69118e608b890da978 |
#
# Copyright (C) 2016-2017 University of Oxford
#
# This file is part of msprime.
#
# msprime is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | ashander/msprime | tests/test_hdf5.py | Python | gpl-3.0 | 22,558 | [
"VisIt"
] | 7b56cf5b60556328aa21066254fa4d83374d5861562e1242320a54e528d0b7b0 |
#!/usr/bin/env python
#from sumatra.projects import load_project
#from sumatra.parameters import build_parameters
#from sumatra.decorators import capture
from ruffus import *
import sys
import os
import time
import datetime
import drmaa
from omics_pipe.utils import *
from omics_pipe.modules.fastqc import... | adammaikai/OmicsPipe2.0 | omics_pipe/RNAseq_TCGA_counts.py | Python | mit | 3,015 | [
"HTSeq"
] | a27177d0cdb0e1a647540e58b7807ee566474371a5f069d788ccf9989c7be16b |
#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Makes sure files have the right permissions.
Some developers have broken SCM configurations that flip the executable
permission... | krieger-od/nwjs_chromium.src | tools/checkperms/checkperms.py | Python | bsd-3-clause | 13,637 | [
"Galaxy",
"xTB"
] | 8bb3268aaa7e8e5b4bb78ffb792304636638f2ed9e3116bce7bf1464ccfaa317 |
# pl.po
val = {"" : "Project-Id-Version: sheltermanager\nReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\nPOT-Creation-Date: 2013-01-24 10:55+0000\nPO-Revision-Date: 2013-09-03 16:08+0000\nLast-Translator: Michal Dziczkowski <Unknown>\nLanguage-Team: Polish <pl@li.org>\nMIME-Version: 1.0\nContent-Type: text/plain; cha... | aubzen/sheltermanager | src/locale/locale_pl.py | Python | gpl-3.0 | 97,806 | [
"Amber",
"VisIt"
] | 12cbd999faaf7b1fd342a6e70a4101ae52d4b4863849992a447f0c9efacd0d4e |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | python/MooseDocs/test/base/test_components.py | Python | lgpl-2.1 | 3,009 | [
"MOOSE"
] | 83757a4645dd12b00878e17410db7d429364fb4fa3db6c2dde1395416dcd427b |
# Copyright: (c) 2008, Jarek Zgoda <jarek.zgoda@gmail.com>
__revision__ = "$Id: models.py 28 2009-10-22 15:03:02Z jarek.zgoda $"
import datetime
import secrets
from base64 import b32encode
from typing import Mapping, Optional, Union
from urllib.parse import urljoin
from django.conf import settings
from django.contrib... | punchagan/zulip | confirmation/models.py | Python | apache-2.0 | 7,752 | [
"VisIt"
] | 600476bba4e6af3ddadb8c6da573ff8b76ce9121a3424ca352619ee7a849d1fb |
"""Computes GC content vs coverage from a BAM.
The reference is split up into sections say 10 kb long. For each chunk we compute the GC content and
the average coverage. We return this as an array spanning the reference with GC and coverage values.
This array can be further processed to get metrics useful for modeling... | sbg/Mitty | mitty/empirical/gc.py | Python | apache-2.0 | 4,328 | [
"pysam"
] | 162d9f7d534d46a8dff77613783ed30953832c2e9eabd8f0a95fa2228d2378ec |
from __future__ import print_function, division
import platform
WIN32= platform.system() == 'Windows'
import pytest
import numpy
from scipy import interpolate, integrate
from galpy.util import coords
sdf_bovy14= None #so we can set this up and then use in other tests
sdft_bovy14= None #so we can set this up and then us... | jobovy/galpy | tests/test_streamdf.py | Python | bsd-3-clause | 96,406 | [
"Gaussian"
] | b5a381d79d701df5d76c6c1cfc7d7aee5fe924c7e34673803860d04e92615720 |
"""Managed reflection prediction for refinement.
* ScansRayPredictor adapts DIALS prediction for use in refinement, by keeping
up to date with the current model geometry
* StillsRayPredictor predicts reflections without a goniometer, under
the naive assumption that the relp is already in reflecting position
"""
... | dials/dials | algorithms/refinement/prediction/managed_predictors.py | Python | bsd-3-clause | 6,402 | [
"CRYSTAL"
] | 10d57937928f5b05583d00acf80890f5b9973f826a749da5fcfadbd9cc016bfa |
#!/usr/bin/python
import numpy as np
res = 0.2
size = 100
half = res*size/2
def dSquared(x, y, z):
return np.sqrt((x-half)**2 + (y-half)**2 + (z-pos)**2)
for t in range(10):
print t
filename = 'density%04i.cub'%(t*1000)
pos = half + (t - 5)/10.0*half
header = '''Qbox wavefunction in VMD CUBE format
electron... | quells/ElectronDensityIntegration | Example/gen_sphere_cub.py | Python | mit | 989 | [
"VMD"
] | c912228faf3f1a18874392b31f13bbfe6d621a7a36339d93ec7d29d7fa3fa9aa |
import numpy
import scipy
from matplotlib import pyplot
import lmfit
import nmrglue
import numbers
from scipy.optimize import leastsq
from multiprocessing import Pool, cpu_count
from nmrpy.plotting import *
import os
import pickle
class Base():
_complex_dtypes = [
numpy.dtype('csingle'),
... | jeicher/NMRPy | nmrpy/data_objects.py | Python | bsd-3-clause | 75,088 | [
"Gaussian"
] | 70f7c5c4573c16ae4dada21c4eb2ffaff1a1ea17b82b7e7620bd8f22adb855bb |
#!/usr/bin/env python
from __future__ import print_function
import sys
import os
import argparse
import netCDF4 as nc
import numpy as np
from lib_mean import create_output_file, calc_overall_mean
"""
What this script does:
Calculate overall means.
How to run this script:
./overall_mean.py 01/ocean.nc 02/ocean.nc ... | CWSL/access-cm-tools | analyse/overall_mean.py | Python | apache-2.0 | 1,945 | [
"NetCDF"
] | c2044890d02c11930b3a9d3c792221362b6493bb5eee8146ce4eff5f8d3fa6bb |
# coding: utf-8
"""
Abinit Task classes for Fireworks.
"""
import inspect
import subprocess
import logging
import time
import shutil
import json
import threading
import glob
import os
import errno
import numpy as np
import abipy.abio.input_tags as atags
from collections import namedtuple, defaultdict
from monty.json i... | davidwaroquiers/abiflows | abiflows/fireworks/tasks/abinit_tasks.py | Python | gpl-2.0 | 132,258 | [
"ABINIT",
"NetCDF",
"pymatgen"
] | 4e15b4cf92b56abcea531c0985cb98838cd64f004b1f653e6cb383111d3f82d3 |
#! /usr/bin/env python
"""
print FileCatalog file or directory disk usage
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import getopt
from signal import signal, SIGPIPE, SIG_DFL
from DIRAC import S_OK
from DIRAC.Core.Utilities.DIRACScript i... | DIRACGrid/COMDIRAC | src/COMDIRAC/Interfaces/scripts/dsize.py | Python | gpl-3.0 | 2,137 | [
"DIRAC"
] | f1a15e471775007a5dd60dd7a0e0930f7e73d54c9cbb6358c8906a5a4d866caa |
#!/usr/bin/python
#
# @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... | rmcgibbo/psi4public | doc/sphinxman/document_plugins.py | Python | lgpl-3.0 | 15,221 | [
"Psi4"
] | b226e1c2d2baa147b9c67f07bdd38fa02ce2747e7c97c2cab7f5c37aee553607 |
'''
The concept of gid has two uses. One is administrative so that, given a
gid, one can determine the (pieces that exist) on this machine. The other
is for purposes of spike exchange and is associated with the spike output.
The overall design is to have the necessary ParallelContext.gid_exist(mgid)
associated the mitr... | JustasB/MitralSuite | Models/Migliore2014/split.py | Python | mit | 5,438 | [
"MCell",
"NEURON"
] | a926dfbd8d644c10bd95cb53af55cdc066ab94f3db23efa3a37cbffd32c3ca54 |
"""
========================================================================================================================
Analysis Module
========================================================================================================================
Collection of analysis and utility functions that are used... | rcfduarte/nmsat | modules/analysis.py | Python | gpl-2.0 | 117,677 | [
"NEURON"
] | f18bbdc10f3053172382a6ba69b933792a2495db1ab8460e15f9779ee98f1eb9 |
#!/usr/bin/env python
#
# $File: SavePopulation.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 redistri... | BoPeng/simuPOP | docs/SavePopulation.py | Python | gpl-2.0 | 1,423 | [
"VisIt"
] | 25ac3073e52b19e67c853a0cbae85e8494d59df7dc05b09582ee2f816bfe60f9 |
import aeropy.CST_3D as cst
from aeropy.filehandling.vtk import generate_surface
import aeropy.CST_3D.mesh_tools as meshtools
from aeropy.geometry.fitting import fitting
from scipy.spatial.distance import directed_hausdorff
from scipy.optimize import minimize
import matplotlib.pyplot as plt
from multiprocessing import... | leal26/AeroPy | examples/3D_fitting/fitting_edges.py | Python | mit | 3,086 | [
"VTK"
] | 41e64269898d755714549cafd8bbc24151ef6a8f52402679d00773187ada3ff6 |
from setuptools import setup, find_packages
with open('pyreact/version.py') as f:
exec(f.read())
setup(
name="pyreact",
version=__version__,
description="Flask + React",
author="Brian Zhou",
author_email="b88zhou@gmail.com",
packages=find_packages(),
include... | bzhou/pyreact | setup.py | Python | apache-2.0 | 467 | [
"Brian"
] | e8327b4d452b7f052ea74ccec8b31895424ce56fb6db6e9ec72e8412db5af431 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Calculation methods related to volume based on cclib data."""
import copy
import numpy
from cclib.parse... | cclib/cclib | cclib/method/volume.py | Python | bsd-3-clause | 16,606 | [
"Gaussian",
"PyMOL",
"VTK",
"cclib"
] | da277eea2d02754533e0f279aea519fbafa67b778d5fa25cfa721bed7c592d00 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python toolkit for generating and analyzing nanostructure data"""
from __future__ import absolute_import, division, print_function, \
unicode_literals
__docformat__ = 'restructuredtext en'
import os
import sys
import shutil
import subprocess
from distutils.command... | scikit-nano/scikit-nano | setup.py | Python | bsd-2-clause | 10,936 | [
"LAMMPS",
"pymatgen"
] | 87eeb2fb4c0acf1b85887bc6243974361b5fe52f3b1661f107ddc14c6eca70d6 |
"""
Module responsible for translating reference sequence data into GA4GH native
objects.
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import random
import hashlib
import pysam
import ga4gh.datamodel as datamodel
import ga4gh.protocol as ... | UMMS-Biocore/ga4gh-server | ga4gh/datamodel/references.py | Python | apache-2.0 | 6,632 | [
"pysam"
] | 162de552fcbd4646f1048e00f61a0598002cb66f2fb97fb14d1028800272e809 |
#Script to parse Plain text output from HMMER 3.1b2, using the Biopython SerachIO library
#Date: 28 Jul 2015 IST
#Author: Prakhar Gaur
from Bio import SearchIO
import os, glob
#import argparse
#parser = argparse.ArgumentParser()
#parser.add_argument('HMMOutputFilename', metavar='f', help='name of hmmer3 plain text ou... | gprakhar/scripts-biopython | hmmer-SearchIO-text-parser.py | Python | gpl-3.0 | 1,452 | [
"Biopython"
] | fab4c484681398415d9e2ef1b7acb0ea7f55896e4ad7bc4d95d69c6a2de6c57c |
# IPython log file
from skimage.external import tifffile
import napari
import zipfile
#napari.view_image(arr, contrast_limits=[0, 2**16-1], is_pyramid=False)
f = zipfile.ZipFile('/home/jni/data/francois/SENTINEL2B_20180806-001625-547_L2A_T55HCU_C_V1-0.zip')
# print(f.filelist)
tiff_zip = f.open('SENTINEL2B_20180806... | jni/useful-histories | read-sentinel-data-napari.py | Python | bsd-3-clause | 856 | [
"Napari"
] | 79e11e2ebfd2bdab1f118c9c01846e7c1aa15658516282da660ec5c510f9c2f7 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import logging
from fractions import Fraction
from numpy import around, array
from pymatgen.analysis.bond_valence import BVAnalyzer
from pymatgen.analysis.structure_matcher import StructureMatcher
from pymat... | dongsenfo/pymatgen | pymatgen/transformations/standard_transformations.py | Python | mit | 31,837 | [
"CRYSTAL",
"pymatgen"
] | ae07b1f3a500e9282cc399fd01596d31d5e38ad627e8ea4ce1e7755c5e001dbf |
""" Class for the LCG File Catalog Client
"""
import DIRAC
from DIRAC import S_OK, S_ERROR, gLogger, gConfig
from DIRAC.Resources.Utilities import checkArgumentFormat
from DIRAC.Resources.Catalog.FileCatalogueBase import F... | coberger/DIRAC | Resources/Catalog/LcgFileCatalogClient.py | Python | gpl-3.0 | 67,015 | [
"DIRAC"
] | c15d1ffb61845d389f321f57894ff47e757e1c4cca924e590e574d63bca1c1de |
r"""server is a module that enables using VTK through a web-server. This
module implments a Wamp v2 Server Protocol that provides the core RPC-API needed to
place interactive visualization in web-pages. Developers can extent
ServerProtocol to provide additional RPC callbacks for their web-applications.
This module can... | mspark93/VTK | Web/Python/vtk/web/server.py | Python | bsd-3-clause | 11,505 | [
"VTK"
] | 0dbe9ae51185a0f1a514d8f6f1a8a050374397956fb86b53419c58bf27a6fa8a |
########################################################################
# File: FTSDB.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/04/02 15:13:51
########################################################################
""" :mod: FTSDB
===========
.. module: FTSDB
:synopsis: FTS DB
.. mo... | andresailer/DIRAC | DataManagementSystem/DB/FTSDB.py | Python | gpl-3.0 | 19,717 | [
"DIRAC"
] | 62867bb5b94bdc124e92f3db4bde6774a4202fba22ca06772d5e905e8bfbbc49 |
# This file is part of wger Workout Manager.
#
# wger Workout Manager is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# wger W... | DeveloperMal/wger | wger/manager/tests/test_weight_log.py | Python | agpl-3.0 | 18,453 | [
"VisIt"
] | fe002d0f2c6d997b900eff772952c918b82d514773cd70a356ee1bedb6985824 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2021 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
#... | lothian/psi4 | psi4/driver/procrouting/proc.py | Python | lgpl-3.0 | 196,593 | [
"Psi4"
] | a308ee75239f55cd54a6e1f0883f988325bc7ecdb468aa04212f72257f28a042 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module creates an interface to the JHU kpoints servlet,
see http://muellergroup.jhu.edu/K-Points.html.
"""
import os
import shutil
import tempfile
import requests
from pymatgen.io.vasp.inputs import Kpoints
__auth... | vorwerkc/pymatgen | pymatgen/ext/jhu.py | Python | mit | 2,919 | [
"VASP",
"pymatgen"
] | 26fdf7ab367a350e0bc4a027e60bcda76c67382f4dc0b407893804e22eebf677 |
########################################################################
# $HeadURL$
########################################################################
"""
The Job Sanity Agent accepts all jobs from the Job
receiver and screens them for the following problems:
- Output data already exists
- Problematic ... | calancha/DIRAC | WorkloadManagementSystem/Executor/JobSanity.py | Python | gpl-3.0 | 7,489 | [
"DIRAC"
] | 90b47008501e5454029699f234ce3f72ea3e04c526e788414669502ab22cb7db |
#!/usr/bin/env python
""" This script instantiate a DFC client against a given service,
and hammers it with read request (listDirectory) for a given time.
It produces two files : time.txt and clock.txt which contain time measurement,
using time.time and time.clock (see respective doc)
It assumes that th... | ic-hep/DIRAC | tests/Performance/DFCPerformance/readPerf.py | Python | gpl-3.0 | 2,530 | [
"DIRAC"
] | c3596c58e955071158adda2375eab7e571d5576c90cb2c2f784ec133b1bec798 |
# pylint: disable=missing-docstring, useless-object-inheritance
from __future__ import print_function
from enum import Enum
class Aaaa(object): # [too-few-public-methods]
def __init__(self):
pass
def meth1(self):
print(self)
def _dontcount(self):
print(self)
# Don't emit for... | ruchee/vimrc | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/t/too/too_few_public_methods.py | Python | mit | 934 | [
"Octopus"
] | 8af5edc108fe06def47a4e4241bf5e987f302f0217140cc5eae73dd59add4f1a |
#!/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/colorbar/precision_with_wrong_notation.py | Python | lgpl-2.1 | 706 | [
"MOOSE"
] | e722701037e2dc5a3d6d778c4c4562a9b894f4d01b5bab2d9e0f5ad8a35b668d |
#! /usr/bin/env python
from distutils.core import setup, Extension
from glimmrAccessories import *
version = """\nsetup.py, version %s
GlimmrHet: genomic locus identification using multiply maped reads and a diploid (heterozygous) reference genome
Requires Unix/Mac OS X/CYGWIN with Python 2.5+, bowtie v1 or v2
... | dfsimola/glimmr | setup.py | Python | gpl-3.0 | 1,056 | [
"Bowtie"
] | 8dae7d13cfbd70a0480e3e0ae98d6e6ef203032f0888f37cbe7dafd23afe5c38 |
"""Manage external data directories mounted to a docker container.
"""
from __future__ import print_function
import os
import six
from bcbiovm.docker import remap
def prepare_system(datadir, docker_biodata_dir):
"""Create set of system mountpoints to link into Docker container.
"""
mounts = []
for d ... | brainstorm/bcbio-nextgen-vm | bcbiovm/docker/mounts.py | Python | mit | 4,877 | [
"Galaxy"
] | 9d8a2e04b330feb5d942a70eb48314ba52e29fd959ca79764b909fc4e6a8acb6 |
# -*- coding: utf-8 -*-
'''
zen Add-on
Copyright (C) 2016 zen
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 License, or
(at your option) any later v... | repotvsupertuga/repo | plugin.video.zen/resources/lib/sources/crazy_mv_tv.py | Python | gpl-2.0 | 5,612 | [
"ADF"
] | e183be957fab4aa93a7e44cf86ebcb7fed65b290f547375be3e3800ba786cc65 |
"""An NNTP client class based on RFC 977: Network News Transfer Protocol.
Example:
>>> from nntplib import NNTP
>>> s = NNTP('news')
>>> resp, count, first, last, name = s.group('comp.lang.python')
>>> print 'Group', name, 'has', count, 'articles, range', first, 'to', last
Group comp.lang.python has 51 articl... | ktan2020/legacy-automation | win/Lib/nntplib.py | Python | mit | 21,762 | [
"Brian"
] | 523a18bbfe9ce07549e02ca0c1d24afedceca305f3bb7b51ded2cb7cf1713115 |
""" DIPStorage class is the client of the DIRAC Storage Element.
The following methods are available in the Service interface
getMetadata()
get()
getDir()
put()
putDir()
remove()
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_functi... | ic-hep/DIRAC | src/DIRAC/Resources/Storage/DIPStorage.py | Python | gpl-3.0 | 20,182 | [
"DIRAC"
] | 025255d074bec4872c6bf740d3daa61f24102f7a652584a7a4b094c3f17b87db |
import itertools
import random
import mixins
import dice
class Character(object):
def __init__(self, *args, **kwargs):
super(Character, self).__init__(*args, **kwargs)
# Attributes
self.STR, self.DEX, self.WILL = self.attributes()
self.health = 4 # Everyone starts with 4 hitpo... | funkaoshi/randomcharacter | mazerats.py | Python | mit | 14,560 | [
"Amber",
"BLAST",
"CRYSTAL"
] | dc8c0b97d4a097b63f5d49fb841e77319d5dcf877d65e02e60554a0a1bbd8cd0 |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | ravibhure/ansible | lib/ansible/modules/network/avi/avi_pool.py | Python | gpl-3.0 | 20,125 | [
"VisIt"
] | e87ddcf1d8bcfe34bf7ecaf954f97af83d80e0949ed1494c6f3fddb723cf5941 |
#
# @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 program is free software; you can redistribute it and/or modify
# it under the terms of ... | andysim/psi4 | psi4/driver/procrouting/mcscf/augmented_hessian.py | Python | gpl-2.0 | 5,873 | [
"Psi4"
] | 8be07c1157785bdf12242aa8b4d5137294a0eb19301eff1aced8116a66734b53 |
#!/usr/bin/env python
import sys
import os
import getopt
import numpy as np
import lcg
import time
import subprocess as sub
class ColorFactory:
RED = '\033[91m'
GREEN = '\033[92m'
BLUE = '\033[94m'
YELLOW = '\033[93m'
ENDC = '\033[0m'
def __init__(self):
pass
def __color__(self, co... | danielelinaro/dynclamp | python/correlations_old.py | Python | gpl-3.0 | 17,861 | [
"Gaussian"
] | dcdefba295365a7f37fcb4c68de99f6a7fce07b5721142f26e7c0f40d6320b2d |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-retail | tests/unit/gapic/retail_v2/test_catalog_service.py | Python | apache-2.0 | 86,628 | [
"Octopus"
] | 435fdbb5403014461f8b04eb3ba6c860ad7dd3dddf7a87b7fc0d59e04dcd1a7b |
"""
A module of classification schemes for choropleth mapping.
"""
__author__ = "Sergio J. Rey"
__all__ = ['Map_Classifier', 'quantile', 'Box_Plot', 'Equal_Interval',
'Fisher_Jenks', 'Fisher_Jenks_Sampled', 'Jenks_Caspall',
'Jenks_Caspall_Forced', 'Jenks_Caspall_Sampled',
'Max_P_Clas... | lanselin/pysal | pysal/esda/mapclassify.py | Python | bsd-3-clause | 70,104 | [
"COLUMBUS"
] | cb9d2b10f2a8233cadcd52c65cc8f62436bfb2532a6a03c0756086145d8aa748 |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RGdsfmt(RPackage):
"""R Interface to CoreArray Genomic Data Structure (GDS) Files.
... | iulian787/spack | var/spack/repos/builtin/packages/r-gdsfmt/package.py | Python | lgpl-2.1 | 1,729 | [
"Bioconductor"
] | d4b1e8788cbf52b3918b4f62d6ae016bd4059163dce3ba102b00f14fd5c5c34e |
# -*- encoding: utf-8 -*-
import urllib
import hashlib
import logging
import choices
from pytz import all_timezones
from scielomanager import tools
import datetime
from uuid import uuid4
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from django.db import (
... | gustavofonseca/scielo-manager | scielomanager/journalmanager/models.py | Python | bsd-2-clause | 62,562 | [
"VisIt"
] | 298cf42f601343bfbac14cbdd208ba72a0309bc976d70ed8839a0ddf459173d8 |
# 05.10.2007, c
# last revision: 25.02.2008
from __future__ import absolute_import
from sfepy import data_dir
from sfepy.mechanics.matcoefs import stiffness_from_lame
filename_mesh = data_dir + '/meshes/3d/special/cube_sphere.mesh'
# Whole domain $Y$.
region_1000 = {
'name' : 'Y',
'select' : 'all',
}
# Domai... | rc/sfepy | tests/test_lcbc_3d.py | Python | bsd-3-clause | 1,935 | [
"VTK"
] | 1b824899cd372f059f7e3cd6060c0fcaaf434cf9c1ffc84ae28f1bc66a9a3116 |
"""
=================================
Gaussian Mixture Model Selection
=================================
This example shows that model selection can be performed with
Gaussian Mixture Models using information-theoretic criteria (BIC).
Model selection concerns both the covariance type
and the number of components in th... | RPGOne/Skynet | scikit-learn-c604ac39ad0e5b066d964df3e8f31ba7ebda1e0e/examples/mixture/plot_gmm_selection.py | Python | bsd-3-clause | 3,223 | [
"Gaussian"
] | ba5c1aa805ae4a39d57dcc617d6494a28c401817c06f935ca68f021d2c93844e |
""" Example showing a dialog with multiple embedded scenes.
When using several embedded scenes with mlab, you should be very careful
always to pass the scene you want to use for plotting to the mlab
function used, elsewhere it uses the current scene. In this example,
failing to do so would result in only one scene bei... | dmsurti/mayavi | examples/mayavi/interactive/multiple_mlab_scene_models.py | Python | bsd-3-clause | 2,311 | [
"Mayavi"
] | 3410f8c407cdb9e24c1f0f2be6d154691869d49c9c49f81f1465decbadff498a |
"""A collection of bits that can be set, cleared, and toggled by number.
Based on code from https://wiki.python.org/moin/BitArrays and converted to
a class-based version for ease of use.
"""
__author__ = 'Brian Landers <brian@packetslave.com>'
import array
class BitField(object):
"""A collection of bits that c... | Packetslave/bitfield | bitfield.py | Python | apache-2.0 | 1,627 | [
"Brian"
] | 6b8428c5c65ba216ec07c0966694d280e131787967bd15aa069fae534cccdf73 |
# coding=utf-8
import ast
class RewriteAddToSub(ast.NodeVisitor):
def visit_Add(self, node):
node = ast.Sub()
return node
node = ast.parse('2 + 6', mode='eval')
node = RewriteAddToSub().visit(node)
print eval(compile(node, '<string>', 'eval'))
| dongweiming/web_develop | chapter15/section2/ast_visitor.py | Python | gpl-3.0 | 269 | [
"VisIt"
] | 6489c273b40c2102fcf4b3a45e14a1364917819800c5c16ea9b1a4d3972f7ad8 |
"""
Deployment file to facilitate releases of custodian.
"""
from __future__ import division
import glob
from invoke import task
from monty.os import cd
from custodian import __version__ as ver
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ =... | xhqu1981/custodian | tasks.py | Python | mit | 2,574 | [
"pymatgen"
] | aacd330d395ad03e809b354eb42582020414909d2cfa8cdd182bffdce67f9976 |
# 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... | drpngx/tensorflow | tensorflow/contrib/distributions/python/ops/mvn_diag.py | Python | apache-2.0 | 8,814 | [
"Gaussian"
] | d4463d18f6ba073330d180fc75eb7eae5c004c83da8df433439117ab56953608 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/core/lib/listwidgetwithdnd.py | Python | gpl-2.0 | 4,953 | [
"Brian"
] | beb45771bd0a3468ba061e136c714d008aef89a067a0c14339d9bbb87be3f1df |
from __future__ import print_function
from __future__ import absolute_import
import sys
from six.moves import range
sys.path.append('.')
import numpy as nm
from sfepy.base.base import Struct
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Poly3DCollection... | rc/sfepy | sfepy/mesh/bspline.py | Python | bsd-3-clause | 24,238 | [
"VTK"
] | d9a6ed038105faad03868d5be2713a94c56a1a8239e4455aa15da3978f92a93c |
#!/usr/bin/env python2.7
import pysam, sys
if sys.argv[-1] =="-h" or len(sys.argv)<3:
print """
Simple script to pull all reads matching specified contigs from SAM file
Usage: sam_reads.py <input.sam> <contigs.txt>
Output: input.sliced.sam
Notes: contigs are separated by line and are formatted identically to con... | alexherns/biotite-scripts | sam_reads.py | Python | mit | 860 | [
"pysam"
] | a7699bcf4a8434a5861fde2cab32fefa4a4efa05762b119610cf5cbc91611b21 |
#!/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2014 Mathias Teulé <mathias.te@googlemail.com>
import netCDF4
from netCDF4 import Dataset
class Spoutnik(object):
ncfile_url = None
ncfile = None
point = dict({'lat': 48.29793167114258, 'lon': -4.976805686950684})
point_indexes = dict({'lat... | mteule/Spoutnik-I | spoutnik/spoutnik.py | Python | gpl-3.0 | 4,052 | [
"NetCDF"
] | d47a099a9b812fba95ecbf4978cc6a1c727299effe179a0f8c3cdaeb14b1ee65 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
urlpatterns = [
url(r'^$', TemplateView.as_view(templ... | powersjcb/two_scoops_project | config/urls.py | Python | bsd-3-clause | 1,328 | [
"VisIt"
] | c303d20c3a69f8cc07553a380b65bb4d26ab379a92eeb365f5b8fe00a66e0ee4 |
import argparse
import copy
import cProfile
import distance
import math
import numpy as np
import os
import re
import sys
import time
import xml.etree.ElementTree as ET
def confirm_input(fname):
while True:
choice = input("delete previous '{}' ?[y/n]: ".format(fname)).lower()
if choice == 'y':
... | OPU-Surveillance-System/monitoring | master/scripts/planner/solvers/vrp_firefly.py | Python | mit | 22,681 | [
"Firefly"
] | e626eeb5e27bb2d5f489dc9c907d23cde97d1d76463cd5e6ec3359f5528984c5 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | ened/scancode-toolkit | tests/licensedcode/test_models.py | Python | apache-2.0 | 6,001 | [
"VisIt"
] | 10759e994c97ef057dcfb23b3c69b81ff00dae67f8762c0865f34d2b760ec17c |
# Copyright (C) 2020 Collin Capano and Shilpa Kastha
# 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 License, or (at your
# option) any later version.
#
# This program i... | cdcapano/pycbc | pycbc/inference/models/gated_gaussian_noise.py | Python | gpl-3.0 | 28,778 | [
"Gaussian"
] | 211b56374cd950e7da98a0438a048b67ac6f78ddefccbe6fb7c822b0b7df2b8a |
"""0MQ Constants."""
#-----------------------------------------------------------------------------
# Copyright (c) 2013 Brian E. Granger & Min Ragan-Kelley
#
# This file is part of pyzmq
#
# Distributed under the terms of the New BSD License. The full license is in
# the file COPYING.BSD, distributed as part of ... | ellisonbg/pyzmq | zmq/sugar/constants.py | Python | lgpl-3.0 | 2,619 | [
"Brian"
] | a4409e40e9ea9bc51b42907474f4b23995228ac52e9edcd3a539837b0151db30 |
from __future__ import print_function
import numpy as np
import fitsio
from astrometry.util.fits import fits_table
from astrometry.util.resample import resample_with_wcs, OverlapError
from legacypipe.bits import DQ_BITS
from legacypipe.survey import tim_get_resamp
from legacypipe.utils import copy_header_with_wcs
impo... | legacysurvey/pipeline | py/legacypipe/coadds.py | Python | gpl-2.0 | 44,117 | [
"Galaxy",
"Gaussian"
] | b1611801f82033a56ac18305610eec1309fa443a9ddfd50226b43f9ac2065af4 |
#!/usr/bin/env python
#-*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from builtins import input
from builtins import zip
from builtins import range
from builtins import object
import sys
from typing import cast, Dict, List, Iterable
... | kjyv/FloBaRoID | identify.py | Python | lgpl-3.0 | 49,757 | [
"Gaussian"
] | 8c1257328f8bd19308c9a4aa66cbc4a97e58e2e328079d222384036415b3c639 |
"""
Simple example datasets for OT
"""
# Author: Remi Flamary <remi.flamary@unice.fr>
#
# License: MIT License
import numpy as np
import scipy as sp
from .utils import check_random_state, deprecated
def make_1D_gauss(n, m, s):
"""return a 1D histogram for a gaussian distribution (n bins, mean m and std s)
... | rflamary/POT | ot/datasets.py | Python | mit | 5,259 | [
"Gaussian"
] | 5fd422ef50bc0a3ec573d06a292b919240884f49e724ef88eebd601fb8380ebc |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import datetime
import json
import os
import pytz
from datetime import timedelta
from decimal import Decimal
from django.conf import settings
from django.core import mail
from django.core.urlresolvers import reverse
from django.utils imp... | Thapelo-Tsotetsi/rapidpro | temba/flows/tests.py | Python | agpl-3.0 | 143,975 | [
"VisIt"
] | 2d87a0fae781c38d006678e2040ae26529d3a9bb3b91a2329dc5a3cc54a31f1f |
#!/usr/bin/env python3
import pandas as pd
import os, numpy, argparse, sys, warnings
from tuba_seq.fastq import MasterRead
from tuba_seq.shared import logPrint, smart_open
from rpy2.robjects.packages import importr
from rpy2.robjects import pandas2ri
pandas2ri.activate()
fastq_ext = '.fastq'
histogram_filename = 'alig... | petrov-lab/tuba-seq | bin/preprocess.py | Python | mit | 9,353 | [
"BLAST"
] | 2d30279b241f597f68ca53a66e5a8416546aa017adc63f02e7b98499d0636d6c |
import os
import sys
import optparse
import traceback
from time import time
import numpy as np
from ase.parallel import world
from ase.visualize import view
from ase.io import read, write
from ase.io import string2index
from ase.constraints import FixAtoms
import ase.optimize
from ase.utils import Lock, devnull, prnt... | suttond/MODOI | ase/tasks/task.py | Python | lgpl-3.0 | 17,234 | [
"ASE"
] | c455e7c3f7ba4c5ae63aad76baa74217d884ae3f6e22d7d767b252d781b58455 |
# -*- coding: utf-8 -*-
"""
Created on Sat Jul 2 14:02:06 2016
@author: devil
"""
### The program to find the possible gene symbol based on sequences
#import recipy
from Bio import SeqIO,Entrez
from os import system,remove
import click
import time
import sys
@click.command()
@click.option("--infile",type=str,help="I... | codemeleon/PyScripts | GeneSymbolFinder.py | Python | gpl-2.0 | 2,554 | [
"BLAST"
] | 3cd1be5e1b346bbe058e09fbed19152bb98ecc2ee0c643448774a5c401995aaa |
# THIS SCRIPT WAS PRODUCED VIA THE NCBI HACKATHON IN AUGUST 2015
# WRITTEN (INITIALLY) BY PAUL CANTALUPO, HIROKO OHMIYA, ALLISSA DILLMAN, AND RUSSELL DURRETT
# TO DO - UPDATE TO SUBREAD PACKAGE (for counting) INSTEAD OF HTSEQ (TOO SLOW, SUBREAD SUPER FAST)
#HISATREF="/home/ubuntu/resources/ensembl/hisat_indexes/H... | DCGenomics/HASSL_Homogeneous_Analysis_of_SRA_rnaSequencing_Libraries | legacy/rattlesnake.py | Python | cc0-1.0 | 5,093 | [
"HTSeq"
] | 738b142dc293da2645842b77681610f286a5f596d2ffc5568e24fb5f89b43b6c |
from datetime import (
datetime,
timedelta,
)
import numpy as np
import pytest
import pandas.util._test_decorators as td
from pandas import (
DataFrame,
Series,
bdate_range,
to_datetime,
)
@pytest.fixture(params=[True, False])
def raw(request):
"""raw keyword argument for rolling.apply"... | jorisvandenbossche/pandas | pandas/tests/window/conftest.py | Python | bsd-3-clause | 6,063 | [
"Gaussian"
] | a9b4a2c5fb7c7b1d79ff3445c03bed7f22b2601bfbe53c554401909d7c0cabd0 |
#!/usr/bin/env python
#cluster reads if consective reads have start position difference of less than 300bp regardless of strand
import pysam
import argparse
from time import clock
from collections import defaultdict, Counter
from sets import Set
import re
import hg19util as hg
parser = argpar... | namphuon/ViFi | scripts/cluster_trans_new.py | Python | gpl-3.0 | 12,774 | [
"pysam"
] | d9d5e02e9f8af420277b78c01cd972e93f9ba5740cc31e4093f2f4cacfa0e17f |
# Audio Tools, a module and set of tools for manipulating audio data
# Copyright (C) 2007-2016 Brian Langenberger
# 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 Licens... | tuffy/python-audio-tools | audiotools/cue/yaccrules.py | Python | gpl-2.0 | 4,866 | [
"Brian"
] | bffdb4297da152d1d9653cb976b1c07d77982c37004f5a070c1e1e010c94e904 |
from ase import Atom, Atoms
from gpaw import GPAW
from gpaw.test import equal
a = 4.05
d = a / 2**0.5
bulk = Atoms([Atom('Al', (0, 0, 0)),
Atom('Al', (0, 0, d))],
cell=(4*d, 4*d, 2*d),
pbc=1)
n = 16
calc = GPAW(gpts=(2*n, 2*n, 1*n),
nbands=1*8,
kpts=(1, 1... | robwarm/gpaw-symm | gpaw/test/2Al.py | Python | gpl-3.0 | 858 | [
"ASE",
"GPAW"
] | ac9fcd686761978a02915c82279154590b3288870a766a5dc17c82f46019206a |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | MDAnalysis/mdanalysis | package/MDAnalysis/lib/correlations.py | Python | gpl-2.0 | 11,596 | [
"MDAnalysis"
] | f5442598384fa223641cf209d6a9fc80e9cb1320224b4db6438664c10f95417d |
#
# @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 program is free software; you can redistribute it and/or modify
# it under the terms of ... | kratman/psi4public | psi4/driver/__init__.py | Python | gpl-2.0 | 1,638 | [
"Psi4"
] | 7da89eeab53c733fe697fa5f62c5d15b128eafa6e3227f22c5e70eb6af170eca |
"""
This module stores all the default setting of ToFu
Including in particular computing parameters, dictionnaries and figures
"""
#import matplotlib
#matplotlib.use('WxAgg')
#matplotlib.interactive(True)
import matplotlib.pyplot as plt
from matplotlib.path import Path
from mpl_toolkits.mplot3d import Axes3D
import n... | ToFuProject/tofu | tofu/defaults.py | Python | mit | 58,540 | [
"Mayavi"
] | 8bd5f1e837ccf736a0fd48e9322622f2fb1071c03312437f306ad9f88268e484 |
''' <h1> Library for specular and off-specular x-ray reflectivity</h1>
interdiff is a model for specular and off specular simulations including
the effects of interdiffusion in hte calculations. The specular simulations
is conducted with Parrats recursion formula. The off-specular, diffuse
calculations are done with th... | haozhangphd/genx-py3 | genx/models/interdiff.py | Python | gpl-3.0 | 14,480 | [
"Gaussian"
] | 4af667cfe6ff8c2ad39b766db245855669fa4f7a3df9c3068c551494412e1a0d |
import re
from MarkdownTable import MarkdownTable
class MooseObjectParameterTable(MarkdownTable):
"""
A class for creating markdown tables from parameter data parsed from MOOSE yaml data.
"""
PARAMETER_TABLE_COLUMNS = ['name', 'cpp_type', 'default', 'description']
PARAMETER_TABLE_COLUMN_NAMES = [... | katyhuff/moose | python/MooseDocs/MooseObjectParameterTable.py | Python | lgpl-2.1 | 2,178 | [
"MOOSE"
] | f85dc615b8c998ad5255d9586f0762cb0016a9ca65141edb8478c6355addb74f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Release information"""
version = '0.5'
author = 'ericsk'
email = 'ericsk@gmail.com'
copyright = 'Copyright 2010 ericsk and contributors'
license = \
'Apache License 2.0 <http://www.apache.org/licenses/LICENSE-2.0>'
url = 'http://gaeo.org/'
download_url = 'http://co... | ericsk/google-app-engine-oil | bin/release.py | Python | apache-2.0 | 1,387 | [
"VisIt"
] | e64f5b3da798784648ba389a4b98615650821efde3d6582475b7ef61f54c1765 |
import numpy as np
import sys
import helperFunctions
import copy
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
try:
import mpl_toolkits.mplot3d.axes3d as p3
except ImportError:
print()
pass
class chromophore:
def __init__(self, chromoID, chromophoreCGSites, CGMorphologyDict, ... | matty-jones/MorphCT | tests/assets/update_pickle/MCT2.0_pickle/obtainChromophores.py | Python | gpl-3.0 | 16,164 | [
"ORCA"
] | 1eb827502a1ab74065ab93427b7c672cf9bf9da471e1ddae331b8b9be082e1fc |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | corburn/scikit-bio | skbio/io/format/_base.py | Python | bsd-3-clause | 7,588 | [
"scikit-bio"
] | f85a89d8739ae036a02c1e32de2090818aa4dcb385fed47c911e544738bd0310 |
# Copyright (C) 2016 The ESPResSo project
# Copyright (C) 2014 Olaf Lenz
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (a... | KonradBreitsprecher/espresso | src/python/espressomd/__init__.py | Python | gpl-3.0 | 1,756 | [
"ESPResSo"
] | 7e3a3690bbf807998ab427086cd201aaf06510c6d24a40d0ffb778d856ac1dea |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-recommendations-ai | tests/unit/gapic/recommendationengine_v1beta1/test_prediction_api_key_registry.py | Python | apache-2.0 | 89,945 | [
"Octopus"
] | afa328961cfb3ede76b85e2abdec0f94101d97f8500430a51b30996f919daf02 |
# Natural Language Toolkit: Conditional Random Fields
#
# Copyright (C) 2001-2011 NLTK Project
# Author: Edward Loper <edloper@gradient.cis.upenn.edu>
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
#
# $Id: hmm.py 5994 2008-06-02 12:07:07Z stevenbird $
"""
An interface to U{Mallet <http://ma... | tadgh/ArgoRevisit | third_party/nltk/tag/crf.py | Python | apache-2.0 | 31,850 | [
"Gaussian"
] | 32250e1ec9cbb5293d79ce08df35d20c4706484351b83ac9f25970bf26c072c1 |
#!/usr/bin/env python3
from os import path
import sys
from numpy import *
from scipy.optimize import curve_fit
import h5py
hbarc = 0.19733
eps = 1e-15
def gaussian_3d(q_arr, lambda_, R_out, R_side, R_long, R_os, R_ol):
""" the fit function is according to arXiv: 1403.4972v1 """
(q_out, q_side, q_long) = q_a... | chunshen1987/hadronic_afterburner_toolkit | ebe_scripts/fit_HBT_radii.py | Python | mit | 3,485 | [
"Gaussian"
] | 932d5a51d8d22f2dab4208b27d4e09e7949cab181b53598e08079bb924938c34 |
"""
@Name: Modules/Computer/Internet/inet_update_dyn_dns.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2012-2018 by D. Brian Kimmel
@license: MIT License
@note: Created on Mar 20, 2012
@summary: This module sends our external IP to freedns.
"""
__updated__ = '2020-01... | DBrianKimmel/PyHouse | Project/src/Modules/Computer/Internet/inet_update_dyn_dns.py | Python | mit | 6,109 | [
"Brian"
] | a38316c404cbf6ef826bb6b0a2e04487f3d0a29cff12b30406f6da73a8913607 |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2017 Romain Boman
#
# 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
#
... | rboman/progs | sandbox/vtk/vtkqt.py | Python | apache-2.0 | 3,107 | [
"VTK"
] | 2dcaf5e06afb2786f3523ead1c5d0ed5053b7ec52df4cd6218fc7c8e0d8f42eb |
"""
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.
def gettext_noop(s):
return s
####... | freakboy3742/django | django/conf/global_settings.py | Python | bsd-3-clause | 22,365 | [
"VisIt"
] | 7ac04d10d49f2e91582ee00179bd0c6f1e502292da88631156be347c986a92cc |
INDICATORS_DATA = [
{"created": "2019-07-30T09:29:07.724Z", "id": "indicator--0025039e-f0b5-4ad2-aaab-5374fe3734be",
"labels": ["malicious-activity"], "modified": "2020-05-12T13:02:30.000000Z",
"name": "c1ec28bc82500bd70f95edcbdf9306746198bbc04a09793ca69bb87f2abdb839",
"pattern": "[file:hashes.'SHA-2... | VirusTotal/content | Packs/FeedUnit42/Integrations/FeedUnit42/test_data/feed_data.py | Python | mit | 14,883 | [
"Amber"
] | b709b8dea21faae5bbb5049d5a3813bcbddccbad47e1f23257a5353ee9ed62f6 |
"""A more stable successor to TD3.
By default, this uses a near-identical configuration to that reported in the
TD3 paper.
"""
from ray.rllib.agents.ddpg.ddpg import DDPGTrainer, \
DEFAULT_CONFIG as DDPG_CONFIG
TD3_DEFAULT_CONFIG = DDPGTrainer.merge_trainer_configs(
DDPG_CONFIG,
{
# largest change... | richardliaw/ray | rllib/agents/ddpg/td3.py | Python | apache-2.0 | 2,261 | [
"Gaussian"
] | 6647e71f29dc8f2e08d465f15be55390ddf4653d2bab059fe27d25410cae5d95 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
'''
Created on Oct 24, 2012
@author: shyue
'''
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "0.1"
__m... | matk86/pymatgen | pymatgen/analysis/tests/test_bond_valence.py | Python | mit | 2,543 | [
"pymatgen"
] | 6d1b158ede6b67266d393795a7c1b28041bc6c447445ea2c60dedcf51134ac0d |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Project 2, Bioinformatics II (BYS602) Spring 2017
This project is the result of a collborative effort divided into separate tasks.
Each task assigned by way of mutual agreement among the team members as follows.
-- Read FASTA file using BioPython (Jared)
... | bgossage/BioTunes | src/Group_Project.py | Python | gpl-3.0 | 11,926 | [
"BLAST",
"Biopython"
] | c95ebdf564862574a34a506de97e5225f0c1da3b5b3fbde412540e2dd5df0cb6 |
import math
#
def linearK(x, y):
s = 1;
for i in range(2):
s+= (x[i] * y[i])
return s
def polyK(x,y,p=2):
return pow(linearK(x,y),p)
def radialK(x,y,sigma=12):
diff = range(2)
for i in range(2):
diff[i] = x[i] - y[i]
val = 0
for i in range(2):
val += diff[i] * ... | zedoul/AnomalyDetection | docs/kernels/test.py | Python | mit | 867 | [
"Gaussian"
] | b98b51d2de6a1fce9b09070fa6398c53cde40531d8b3a2c8f504fc071d227cf1 |
"""OpenCVUtils module."""
# -*- coding: UTF-8 -*-
__author__ = "Victor Augusto"
__version__ = "1.0"
__copyright__ = "Copyright (c) 2017 - Victor Augusto Alves Catanante"
__license__ = "GPLv3"
import cv2
import numpy as np
import math
from Image import Image, ComplexImage, BwImage
"""Constants."""
RED_CHANNEL = 1
GREE... | vaugusto92/rvs-mwt | src/OpenCVUtils.py | Python | gpl-3.0 | 15,879 | [
"Gaussian"
] | 5ed5ada1d70fe5270af2a326e2bf87b3885d1b61d2c0dc4286ada6bcbfbe9cd1 |
import numpy
import multiprocessing
from sandbox.util.Parameter import Parameter
from sandbox.util.Evaluator import Evaluator
from apgl.predictors.LibSVM import LibSVM
def computeIdealPenalty(args):
"""
Find the complete penalty.
"""
(X, y, fullX, C, gamma, gridPoints, pdfX, pdfY1X, pdfYminus1X) = ar... | charanpald/wallhack | wallhack/modelselect/ModelSelectUtils.py | Python | gpl-3.0 | 7,360 | [
"Gaussian"
] | 6ae5d3e0f3384c7c1423e5465dc5ccdd93f22aab79343effc2024847e7e206ab |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.