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: latin-1 -*-
# Copyright (C) 2009-2014 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later ... | FedoraScientific/salome-hexablock | src/TEST_PY/test_unit/test_cylinders.py | Python | lgpl-2.1 | 3,479 | [
"VTK"
] | 31debf599cb4d83834abaf33473bf0cbb52adab7abfb600c5ba6995e808cddad |
"""Module polarisation.
This module finds the Q, U, and V fluxes, the total, linear, and circular
polarisation fractions and the linear polarisation angle of each source identified
by gaul2srl. The position angle is defined from North, with positive angles
towards East.
"""
from image import *
from islands import *
... | jjdmol/LOFAR | CEP/PyBDSM/src/python/polarisation.py | Python | gpl-3.0 | 29,488 | [
"Gaussian"
] | 1bf2160776dd418e89b50067d1a0bb2ce175e5c8d04ce247d2056a6c6e769abc |
from edc_constants.constants import (
NOT_APPLICABLE, UNKNOWN, OTHER, UNSCHEDULED, SCHEDULED, MISSED_VISIT, LOST_VISIT,
OFF_STUDY, ON_STUDY, COMPLETED_PROTOCOL_VISIT, FAILED_ELIGIBILITY, PARTICIPANT)
from .constants import NO_MODIFICATIONS, START, BREASTFEED_ONLY, DISCONTINUED, NEVER_STARTED, MODIFIED
STUDY_S... | TshepangRas/tshilo-dikotla | tshilo_dikotla/choices.py | Python | gpl-2.0 | 35,105 | [
"VisIt"
] | 9d811e5432be5597e94363520034dae382370d532784ca9b9289f418b1e3d426 |
<<<<<<< HEAD
<<<<<<< HEAD
"""HTML character entity references."""
# maps the HTML entity name to the Unicode code point
name2codepoint = {
'AElig': 0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
'Aacute': 0x00c1, # latin capital letter A with acute, U+00C1 ISOlat1
'Acirc... | ArcherSys/ArcherSys | Lib/html/entities.py | Python | mit | 225,866 | [
"Bowtie"
] | 104ac910082664008dfef6879d35d09a6fad001ab29231c1687b2e9e5c519b10 |
#!/usr/bin/env python
#
# Author: Hung Pham <pqh3.14@gmail.com>
#
"""
This example shows how to construct MLWFs from the pywannier90 tool.
The MLWFs are then used to interpolate the k-space hamiltonian, hence the band structure
"""
import numpy as np
from pyscf.pbc import gto, scf, cc, df
from pyscf.pbc.tools import p... | sunqm/pyscf | examples/pbc/47-pywannier90.py | Python | apache-2.0 | 2,799 | [
"PySCF",
"Wannier90"
] | 409b2932db6a971e68fea64d224b883c4dfe71de6416e3246f26acf0dbaf3c6d |
from ..cg.kdtree import KDTree
from .weights import W
from .util import isKDTree, get_ids, get_points_array_from_shapefile, get_points_array
import copy
from warnings import warn as Warn
import numpy as np
__all__ = ["KNN", "Kernel", "DistanceBand"]
__author__ = "Sergio J. Rey <srey@asu.edu>, Levi John Wolf <levi.john... | jlaura/pysal | pysal/weights/Distance.py | Python | bsd-3-clause | 29,746 | [
"COLUMBUS",
"Gaussian"
] | dde551fb8cf98d86a14eee3bcd3c9987bd40d8fea40ca2949b399133627d5c51 |
#!/usr/bin/python
import sys
def readTable(fn):
table = dict()
f = open(fn)
header = f.readline().rstrip().split("\t")
for i in f:
fields = i.rstrip().split()
for col in range(1, len(fields)):
if fields[0] not in table:
table[fields[0]] = dict()
table[fields[0]][header[col - 1]] = fields[col]
f.clo... | TravisCG/SI_scripts | sameorder_3.py | Python | gpl-3.0 | 1,186 | [
"HTSeq"
] | 9b955ca3fbcc39c72e1c8861c4b5287801707d188616a0c75276c4aa6ee4cb65 |
"""
Channel module
Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>,
Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>.
See LICENSE.txt for licensing details (MIT License).
"""
# Imports
import uuid
import pickle
from pycsp.parallel import protocol
from pycsp.parallel.exceptio... | runefriborg/pycsp | pycsp/parallel/channel.py | Python | mit | 18,581 | [
"Brian"
] | 743fd837aedc6f750f435d6add917cef1ad57a21aeb1f9fdc6b1af93c9efdd41 |
import numpy as np
import pandas as pd
import holoviews as hv
from functools import partial
import pickle
import tempfile
import os, shutil
import fastparquet
import dask.dataframe as dd
from holoviews.operation.datashader import dynspread, datashade
from .functors import Functor, CompositeFunctor, Column, RAColumn, ... | timothydmorton/qa_explorer | explorer/dataset.py | Python | mit | 30,548 | [
"Galaxy",
"VisIt"
] | 47243b8d0c137fe110f37f22f52a5dc84582d6ed5f689c3096dd5e56619389f1 |
from MuVisitor import MuVisitor
from MuParser import MuParser
# Visitor to *interpret* Mu files
class MuRuntimeError(Exception):
pass
class MuSyntaxError(Exception):
pass
class MyMuVisitor(MuVisitor):
def __init__(self):
self._memory = dict() # store all variable ids and values.
# visi... | lauregonnord/cap-labs | TP04/Mu-evalntype/MyMuVisitor.py | Python | gpl-3.0 | 4,150 | [
"VisIt"
] | 0400ff1cdade2f5232684b25a1823506d694980154eaf2b0c0df506e6e2a3375 |
#!/usr/bin/env python -Es
"""
Script to set up a custom genome for bcbio-nextgen
"""
from __future__ import print_function
from argparse import ArgumentParser
import collections
import gzip
import os
from Bio import SeqIO
import toolz as tz
from bcbio.utils import safe_makedir, file_exists, chdir, is_gzipped
from bcb... | lbeltrame/bcbio-nextgen | scripts/bcbio_setup_genome.py | Python | mit | 15,268 | [
"Galaxy"
] | 1c89221483c59d7093ff62c2521553b907a3a203f97a478ed3101cddaf4888c6 |
import numpy as np
from numpy.testing import assert_equal, assert_almost_equal
import skimage
from skimage import data
from skimage.filters.thresholding import (threshold_adaptive,
threshold_otsu,
threshold_li,
... | Britefury/scikit-image | skimage/filters/tests/test_thresholding.py | Python | bsd-3-clause | 8,824 | [
"Gaussian"
] | e0aa44f34c2da098ef1b8e8f3e7efb9474d2a17fa1a1ef7f4a2656227bc4a179 |
from datetime import datetime
from urllib import urlencode
from jinja2 import Environment, FileSystemLoader
import cherrypy
from libbe import storage
from libbe import bugdir
from libbe.command.depend import get_blocked_by, get_blocks
from libbe.command.target import add_target, remove_target
from libbe.command.targe... | ned14/Bugs-Everywhere-for-BEurtle | interfaces/web/web.py | Python | gpl-2.0 | 7,938 | [
"VisIt"
] | 935b70282cf76028927cfc45e564ba3dbb0d9955e70e73cef3daa719bf4e423f |
# revlog.py - storage back-end for mercurial
#
# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
"""Storage back-end for Mercurial.
This provides efficient delta storage with O(1... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/eggs/mercurial-2.2.3-py2.7-linux-x86_64-ucs4.egg/mercurial/revlog.py | Python | gpl-3.0 | 44,332 | [
"VisIt"
] | 10fbdd63e7f30791fb30d8cbc3ec07828e3ae51a3c20c27a28f4155d9ec3305e |
"""Random variable generators.
integers
--------
uniform within range
sequences
---------
pick random element
pick random sample
pick weighted random sample
generate random permutation
distributions on the real line:
---------------------... | momm3/WelcomeBot | welcomebot/Lib/random.py | Python | mit | 27,238 | [
"Gaussian"
] | 51b702fdd1bb738c720b9aeb5dd555a661a042f10ad07b1bae85c9cb170a3744 |
from itcc.mopac._mopac import (geteldens, getesp, getorb,
lm7_call_compfg, lm7_get_atom_count, lm7_get_atom_grad,
lm7_get_electron_count, lm7_get_orbital_count,
lm7_get_orbital_energy, lm7_get_val_potesp, lm7_ini_full_xyz,
lm7_set_atom_crd, lm7_set_crd_potesp, lm7_set_num_potesp,
... | lidaobing/itcc | itcc/mopac/__init__.py | Python | gpl-3.0 | 380 | [
"MOPAC"
] | 686f06efcef5d3590a1e456764085056153e7f15d0d51f0bcabaf3530af7775c |
# -*- coding: utf-8 -*-
import random
import openerp
from openerp import SUPERUSER_ID, tools
import openerp.addons.decimal_precision as dp
from openerp.osv import osv, orm, fields
from openerp.addons.web.http import request
from openerp.tools.translate import _
from openerp.exceptions import UserError
class sale_ord... | laslabs/odoo | addons/website_sale/models/sale_order.py | Python | agpl-3.0 | 25,063 | [
"VisIt"
] | 9bd35e8177b992b4a27637fcda4e8d169111b78bdfac610302f73d1c2d9aacb1 |
"""
Acceptance tests for the Import and Export pages
"""
from nose.plugins.attrib import attr
from datetime import datetime
from abc import abstractmethod
from bok_choy.promise import EmptyPromise
from .base_studio_test import StudioLibraryTest, StudioCourseTest
from ...fixtures.course import XBlockFixtureDesc
from .... | hamzehd/edx-platform | common/test/acceptance/tests/studio/test_import_export.py | Python | agpl-3.0 | 15,705 | [
"VisIt"
] | bff046de8319e0a4b758acb65667d99b25febd80e257438069adbbdaa831601c |
from itertools import product
import numpy as np
import nose.tools as nt
from ..convenience import lasso, step, threshold
from ..lasso import selected_targets
from ...tests.instance import (gaussian_instance,
logistic_instance,
poisson_instance)
from ...tes... | selective-inference/selective-inference | selectinf/randomized/tests/sandbox/test_convenience.py | Python | bsd-3-clause | 6,486 | [
"Gaussian"
] | b30f8558b01524f29df7f6c9850f971ac11a08ff0d705eee17b120c941514f03 |
# Wind Rose
#
# Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Ladybug.
#
# Copyright (c) 2013-2015, Mostapha Sadeghipour Roudsari <Sadeghipour@gmail.com>
# Ladybug is free software; you can redistribute it and/or modify
# it under the terms of t... | boris-p/ladybug | src/Ladybug_Wind Rose.py | Python | gpl-3.0 | 37,860 | [
"EPW"
] | e1c01c763faf779b02b5d17f87aac8acff651b3359e78ff4aa2d25152ed136f3 |
"""
==============================
Probability Calibration curves
==============================
When performing classification one often wants to predict not only the class
label, but also the associated probability. This probability gives some
kind of confidence on the prediction. This example demonstrates how to di... | beepee14/scikit-learn | examples/calibration/plot_calibration_curve.py | Python | bsd-3-clause | 5,903 | [
"Gaussian"
] | e81d61499f63235a2bd9e427ff22c43deb5ef5c2ab876e64141a9bed63ab41ed |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This is a self-generating script that contains all of the iso3166-1 data.
To regenerate, a CSV file must be created that contains the latest data. Here's
how to do that:
1. Visit https://www.iso.org/obp
2. Click the "Country Codes" radio option and click the search bu... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/django_countries/data.py | Python | agpl-3.0 | 17,795 | [
"BWA",
"VisIt"
] | 17b6a29ffe4d0e27cc2357f231e07ccf72dec7e8d48a483865965e5c09b43d15 |
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | juanchopanza/NeuroM | neurom/geom/tests/test_transform.py | Python | bsd-3-clause | 11,362 | [
"NEURON"
] | d4176349f87cf8509cd8d2812bb4cd57544e102163e0ce466b07fd210ecbe93a |
# (C) British Crown Copyright 2013 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | mo-g/iris | lib/iris/fileformats/pp_rules.py | Python | gpl-3.0 | 45,573 | [
"NetCDF"
] | f0566da4686d826ddb80ec71a2ec02805e5576f4a0da6c64b1fb5522201aaac6 |
from miasm2.expression.expression import *
from pdb import pm
import os
filename = os.environ.get('PYTHONSTARTUP')
if filename and os.path.isfile(filename):
execfile(filename)
print """
Expression simplification demo.
(and regression test)
"""
a = ExprId('a')
b = ExprId('b')
c = ExprId('c')
d = ExprId('d')
e = ... | rom1sqr/miasm | example/expression/simplification_tools.py | Python | gpl-2.0 | 1,304 | [
"VisIt"
] | bb57e21247ac088c28e299762eeea4f7cc3f28403dab953a6c47bbac64e3dc5c |
import operator
import aColors
__author__ = 'boris'
"""
Intended for processing of toeprint-seq data from defined RNA pools
Based on Alex Robertson's original RBNS pipeline, available on github
"""
import sys
import matplotlib
import matplotlib.pyplot as plt
plt.rcParams['pdf.fonttype'] = 42 #leaves most text as actua... | borisz264/toeprint_seq | toeprint_seq_main.py | Python | mit | 26,010 | [
"Bowtie"
] | c33184362ca485e1cda39cf30e919c5fe34e7d609880810bdae00f7600f088ea |
#!/usr/bin/python3
import gi
gi.require_version('Cvc', '1.0')
gi.require_version('Gtk', '3.0')
from gi.repository import GLib, Gtk, Gdk, Cvc, GdkPixbuf, Gio
from GSettingsWidgets import *
import dbus
CINNAMON_SOUNDS = "org.cinnamon.sounds"
CINNAMON_DESKTOP_SOUNDS = "org.cinnamon.desktop.sound"
MAXIMUM_VOLUME_KEY = "m... | linuxmint/Cinnamon | files/usr/share/cinnamon/cinnamon-settings/modules/cs_sound.py | Python | gpl-2.0 | 32,143 | [
"ORCA"
] | 525d80443807002318ff62c929ed4749a7d3561c554878eaf9259770800b78cb |
"""
Various bayesian regression
"""
from __future__ import print_function
# Authors: V. Michel, F. Pedregosa, A. Gramfort
# License: BSD 3 clause
from math import log
import numpy as np
from scipy import linalg
from .base import LinearModel
from ..base import RegressorMixin
from ..utils.extmath import fast_logdet, p... | thilbern/scikit-learn | sklearn/linear_model/bayes.py | Python | bsd-3-clause | 15,086 | [
"Gaussian"
] | 27b38914be70f8c1af90be37ab36171f765522410b663d9065373ae292fd2342 |
# sql/compiler.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Base SQL and DDL compiler implementations.
Classes provided include:
:class:`.c... | pcu4dros/pandora-core | workspace/lib/python3.5/site-packages/sqlalchemy/sql/compiler.py | Python | mit | 107,328 | [
"VisIt"
] | b649a86ed903bfdab59bbb8e85d1fff9a46df6575fed9906874465d5294c750c |
# -*- coding: utf-8 -*-
# #START_LICENSE###########################################################
#
#
# This file is part of the Environment for Tree Exploration program
# (ETE). http://ete.cgenomics.org
#
# ETE is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public ... | csc8630Spring2014/Clusterizer | ete2/treeview/qt4_render.py | Python | mit | 44,454 | [
"VisIt"
] | bf11361dad6452346c5f0aa24d8798a865a1cfad23bfce238e45fd7f307fe24b |
from cifsdk.format.cifsnort import Snort
import re
RULE_PATTERN = r'^alert (TCP|UDP|IP) (\S+) (\S+) -> ([^,]+)\s(\S+)\s\([^.]+\)'
def test_format_snort():
data = [
{
'observable': "example.com",
'provider': "me.com",
'tlp': "amber",
'confidence': "85",
... | csirtgadgets/cif-sdk-py | test/test_snort.py | Python | lgpl-3.0 | 1,467 | [
"Amber"
] | 12c668552b9701868ef7d233c51bab01ddab8696c56c4d26b3b7d498456cb2da |
# Author: David Goodger
# Contact: goodger@users.sourceforge.net
# Revision: $Revision: 21817 $
# Date: $Date: 2005-07-21 22:39:57 +0200 (Thu, 21 Jul 2005) $
# Copyright: This module has been placed in the public domain.
"""
Docutils document tree element class library.
Classes in CamelCase are abstract base classes ... | baoboa/Crystal-Space | docs/support/docutils/nodes.py | Python | lgpl-2.1 | 57,112 | [
"VisIt"
] | 4187f3f45744a4b7aa27aac86a274031f82d07b68649f3b9c97f602d5574fd77 |
# encoding: utf-8
"""Classes and functions for kernel related errors and exceptions.
Inheritance diagram:
.. inheritance-diagram:: IPython.parallel.error
:parts: 3
Authors:
* Brian Granger
* Min RK
"""
from __future__ import print_function
import sys
import traceback
from IPython.utils.py3compat import unicod... | wolfram74/numerical_methods_iserles_notes | venv/lib/python2.7/site-packages/IPython/parallel/error.py | Python | mit | 7,919 | [
"Brian"
] | 5a6107be247d2a0957bccf7cf2fd3567e95e381b9a6894ce4413ef99ca855f35 |
# Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz ... | tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/Variable_Stiffness_Variable_Velocity/HMM/with 2s/hmm_crossvalidation_force_10_states.py | Python | mit | 27,432 | [
"Mayavi"
] | e13baf90c2a7737ff4410b032dda9a4d8128a2af6d380a4e4894cbc7c0421253 |
# 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 RIlluminahumanmethylation450kannoIlmn12Hg19(RPackage):
"""Manifests and annotation for Ill... | rspavel/spack | var/spack/repos/builtin/packages/r-illuminahumanmethylation450kanno-ilmn12-hg19/package.py | Python | lgpl-2.1 | 927 | [
"Bioconductor"
] | efb5597275e97bd69434f8905eb10c8d469db6e4e7b89b6b3d7f04474b44eb97 |
#!/usr/bin/env python
"""plot_utils.py: Some utility function for plotting data in moose.
Last modified: Mon May 26, 2014 10:18AM
"""
__author__ = "Dilawar Singh"
__copyright__ = "Copyright 2013, NCBS Bangalore"
__credits__ = ["NCBS Bangalore", "Bhalla Lab"]
__license__ = "GP... | dilawar/moose-full | moose-core/python/moose/plot_utils.py | Python | gpl-2.0 | 10,173 | [
"MOOSE"
] | f919d06bc2179aa45ff49fed85c0e4f2863bffc63a9122bcb0363f7cdc0adca8 |
import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dimension
of D, a hidden dimension of H, and perform classific... | watsonyanghx/CS231n | assignment2/cs231n/classifiers/fc_net.py | Python | mit | 16,149 | [
"Gaussian"
] | 50e9f2b9d7ea612f65fbb6e6af1019b95ad9e65097b6a400b0159c51209146cd |
import re
import unittest
from unittest.mock import Mock, sentinel
from morelia.decorators import tags
from morelia.grammar import Step
from morelia.visitors import TestVisitor
@tags(["unit"])
class TestVisitorVisitTestCase(unittest.TestCase):
""" Test :py:meth:`TestVisitor.visit`. """
def test_should_catch... | kidosoft/Morelia | tests/test_visitors.py | Python | mit | 606 | [
"VisIt"
] | 2199977811902c8f3e81d07647989a9169412c1c7a350322555ce77f53d5e964 |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | mfherbst/spack | var/spack/repos/builtin/packages/r-interactivedisplaybase/package.py | Python | lgpl-2.1 | 1,859 | [
"Bioconductor"
] | ef66ede84c4a16756b0725726cfee8af6b887425cee7dfd8c8af74c885f2ad6d |
import sys
import numpy as np
import matplotlib.pyplot as plt
import scipy.io as sio
from ex8_utility import *
from sklearn.preprocessing import StandardScaler
from sklearn import grid_search
from sklearn import svm
from sklearn.metrics import f1_score
from scipy import stats
## Machine Learning Online Class - Exercis... | cameronlai/ml-class-python | solutions/ex8/ex8_sklearn.py | Python | mit | 4,142 | [
"Gaussian"
] | afe672c0ca8eb204d553234b81b1475676ba7fd12f9bdfb33b2a3d7d11aff971 |
from rdkit import Chem
import dimorphite_dl
#suppl = [Chem.MolFromSmiles(s) for s in ["C[C@](F)(Br)CC(O)=O", "CCCCCN"]]
suppl = Chem.SDMolSupplier('Kinase_inhibs.sdf')
#suppl = Chem.SDMolSupplier('dhfr_standardized.sdf')
print(suppl)
protonated_mols = dimorphite_dl.run_with_mol_list(
suppl,
min_ph=5.0,
m... | InformaticsMatters/pipelines | src/python/pipelines/dimorphite/run.py | Python | apache-2.0 | 513 | [
"RDKit"
] | ba2b8b65374524728d0dc9899a2cd57b60a8e5238ecc1bf5aec88eba5d0691d2 |
# coding=utf-8
from __future__ import division
import pytest
from ladybug.datatype.speed import Speed
from ladybug.datatype.generic import GenericType
from ladybug.analysisperiod import AnalysisPeriod
from ladybug.header import Header
from ladybug.datacollection import HourlyDiscontinuousCollection
from ladybug.dt im... | ladybug-analysis-tools/ladybug-core | tests/windrose_test.py | Python | gpl-3.0 | 26,020 | [
"EPW"
] | d6ce4f7896cadcba527e0998f1b66c4c478e6987d32e9d508c87999ae8068585 |
# This is the instrument-specific file for the PS3000a series of instruments.
#
# pico-python is Copyright (c) 2013-2014 By:
# Colin O'Flynn <coflynn@newae.com>
# Mark Harfouche <mark.harfouche@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are p... | haymeister/pico-python | picoscope/ps4000a.py | Python | bsd-2-clause | 18,418 | [
"Gaussian"
] | ec74550a2320f0a086ed1dc85236fc27d5725650f882bf98b22206bac44e2a78 |
# Copyright 2015 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.
import contextlib
import json
from recipe_engine import recipe_api
from recipe_engine import util as recipe_util
class AmpApi(recipe_api.RecipeApi):
def... | eunchong/build | scripts/slave/recipe_modules/amp/api.py | Python | bsd-3-clause | 12,448 | [
"Galaxy"
] | 23f80fe0172bbb7bb4c19b022af1444afaa16ee52970d1c8c9fedb19d326e056 |
#!/opt/local/bin/python
# a sample script to create different forcing and depth file for a shoreface like
import os,sys
from netCDF4 import Dataset as netcdf
import numpy as np
import matplotlib.pyplot as plt
import datetime
from matplotlib import rcParams
from random import randrange
import scipy.io
from math import ... | rblod/OPTIBAT | PREPRO/make_shoreface.py | Python | gpl-3.0 | 3,432 | [
"NetCDF"
] | 2d49b276af08ce5aec145d0a80a521c5464800e7f89015a6622d71ff1c1f5c95 |
"""
build_SIM_model.py
Build the classic SIM model (G&L Chapter 3) using sfc_model classes.
Copyright 2016 Brian Romanchuk
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.or... | brianr747/SFC_models | sfc_models/examples/scripts/build_SIM_model.py | Python | apache-2.0 | 2,280 | [
"Brian"
] | ee59316433b04e45ebafdc2bed4aec94ebdcf9b9053737849f76c77ae2754903 |
"""James-Stein"""
import numpy as np
import pandas as pd
import scipy
from scipy import optimize
from sklearn.base import BaseEstimator
from category_encoders.ordinal import OrdinalEncoder
import category_encoders.utils as util
from sklearn.utils.random import check_random_state
__author__ = 'Jan Motl'
class JamesSt... | wdm0006/categorical_encoding | category_encoders/james_stein.py | Python | bsd-3-clause | 24,424 | [
"Gaussian"
] | 8138f442c091a83cbdd571ca7541be33108286f18edfc4e5141af4506ea3f661 |
'''
interface definitions for AST visitors
@see QueryVisitor
@see ExpressionVisitor
@see LogicVisitor
'''
from taj.parser.base import SyntaxError
import logging
class ExpressionVisitor(object):
'''
an instance of this can visit a full MFQL Expression.
'''
def __init__(self):
super(ExpressionV... | david-furminieux/movingForest | src/taj/parser/visitor.py | Python | lgpl-3.0 | 12,631 | [
"VisIt"
] | 7a3e4da9e1eeaa0e6d835d2ccf24b31e8c3b8d4195bfa9837e644c653bf90fa3 |
#!/usr/bin/env python
from singleton import Singleton
from StringIO import StringIO
import re
import os
import logging
import incell
import sys
import subprocess
#
# THESE MUST INCLUDE DEPRECATED FIELDS (shown side-by-side)
#
# Plate formats
supported_plate_types = {'6' : [2, 3],
'24' : ... | afraser/CellProfiler-Analyst | cpa/properties.py | Python | gpl-2.0 | 32,660 | [
"COLUMBUS"
] | b8afed329f2f45872cb4cec43f7a104de4ef1246b1d3daf9ed9a46d78cd6a763 |
"""The dct module provide helpers functions to work with experimental diffraction contrast tomography data.
"""
import os
import h5py
import numpy as np
from scipy import ndimage
from matplotlib import pyplot as plt, cm
from pymicro.xray.experiment import ForwardSimulation
from pymicro.crystal.lattice import HklPlane
f... | heprom/pymicro | pymicro/xray/dct.py | Python | mit | 31,465 | [
"CRYSTAL"
] | b3e9115da4cb800980c762df6d944e7bc9297523abf534348aec75513894f56f |
#!/usr/bin/env python3
# Copyright (c) 2008-10 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 2 of the License, or
# version 3 of the Li... | paradiseOffice/Bash_and_Cplus-plus | CPP/full_examples/pyqt/mkpyqt.py | Python | gpl-2.0 | 9,282 | [
"Brian"
] | 253e9d9539902cec423ee5f9a46a221feefd1943abd8ed2c676057f5609875d7 |
#!/usr/bin/env python3
"""
This module contains generic-purpose utilities to deal with BLAST XML files.
"""
import os
import subprocess
import gzip
import io
from ..exceptions import InvalidParsingFormat
from .parser import HeaderError
from operator import itemgetter
from Bio.SearchIO import parse as bio_parser
impor... | lucventurini/mikado | Mikado/parsers/blast_utils.py | Python | lgpl-3.0 | 9,073 | [
"BLAST"
] | 0d182de154f2016f585872aac62be1ad029ede2a54cdae71af17f4c679eb0c11 |
# -*- coding: utf-8 -*-
"""Test sequences for graphiness.
"""
# Copyright (C) 2004-2016 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
from collections import defaultdict
import heapq
import networkx as nx
_... | JamesClough/networkx | networkx/algorithms/graphical.py | Python | bsd-3-clause | 12,987 | [
"Brian"
] | 03b188e286db2d06a7dfdfeb3acb451e7eb1e6d9444faf9ee45270d7565bdd8c |
# 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/m_pack2den.py | Python | apache-2.0 | 2,670 | [
"PySCF"
] | df740168a3c34757cf3ad26b50f90f14b5f8635d9b9511bf4409f646ab86a4bf |
## INFO ########################################################################
## ##
## cutils ##
## ====== ... | matt-hayden/cutils | internal/unit_testing.py | Python | gpl-3.0 | 3,189 | [
"VisIt"
] | 6cb3d678f2d214e11a7e573141b574cc478d180683dda588a0ce99063ca92585 |
# -*- coding: utf-8 -*-
# python-holidays
# ---------------
# A fast, efficient Python library for generating country, province and state
# specific sets of holidays on the fly. It aims to make determining whether a
# specific date is a holiday as fast and flexible as possible.
#
# Authors: dr-prodigy <maurizio.... | ryanss/holidays.py | holidays/countries/argentina.py | Python | mit | 5,918 | [
"COLUMBUS"
] | f6d5a07c1d4bce45414221e51f535f3d94f5b3b362dab8d12d62273acc4e2660 |
## This file is part of Invenio.
## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, ... | chokribr/inveniocnudst | modules/websearch/lib/websearch_webcoll.py | Python | gpl-2.0 | 56,937 | [
"VisIt"
] | 8afb236e85316eaa0b5f4316e6f59cfad5e3cd363a3e0b2ed1859fbb73c448bd |
from six.moves import builtins
from unittest import TestCase
try:
from unittest.mock import patch
except ImportError:
from mock import patch
from ..mocking import mockOpen
from json import dumps
from dark.blast.conversion import XMLRecordsReader, JSONRecordsReader
from dark.reads import Reads, DNARead
REC... | bamueh/dark-matter | test/blast/test_conversion.py | Python | mit | 17,630 | [
"BLAST"
] | 8a57e4ff6487a6b6b746ad373456afba8dcb4bea0d9576f888bbd76266918395 |
#
# The Python Imaging Library.
# $Id$
#
# the Image class wrapper
#
# partial release history:
# 1995-09-09 fl Created
# 1996-03-11 fl PIL release 0.0 (proof of concept)
# 1996-04-30 fl PIL release 0.1b1
# 1999-07-28 fl PIL release 1.0 final
# 2000-06-07 fl PIL release 1.1
# 2000-10-20 fl PIL release 1.1.1... | DanteOnline/free-art | venv/lib/python3.4/site-packages/PIL/Image.py | Python | gpl-3.0 | 82,367 | [
"Gaussian"
] | 01a8a23b585ff7d764b3addee08232116d997e0527ec9b7bb164ee96321e4600 |
# -*- coding: utf-8 -*-
"""
Optical elements
----------------
Module :mod:`~xrt.backends.raycing.oes` defines a generic optical element in
class :class:`OE`. Its methods serve mainly for propagating the beam downstream
the beamline. This is done in the following sequence: for each ray transform
the beam from global to... | PanTomaszRoszczynialski/XRayTracer | backends/raycing/oes.py | Python | mit | 148,642 | [
"CRYSTAL"
] | d4b64bffacf36880e4607626e2d3329474d7827ce97a9d9b66e0210092849c07 |
from ase.data.molecules import molecule
from gpaw import GPAW
atoms = molecule('C6H6')
atoms.center(vacuum=3.5)
calc = GPAW(h=.21, xc='PBE', txt='benzene.txt', nbands=18)
atoms.set_calculator(calc)
atoms.get_potential_energy()
calc.set(fixdensity=True, txt='benzene-harris.txt',
nbands=40, eigensolver='cg', ... | grhawk/ASE | tools/doc/tutorials/wannier/benzene.py | Python | gpl-2.0 | 415 | [
"ASE",
"GPAW"
] | dbb371e6d365d0a5d022efca88296b3c157b9bd2e9b3be8a71fde868782e6f2f |
"""
Here we show an example of using the greedy algorithm to perform feature
selection for Naive Bayes. We use two lists from the 20newsgroups dataset and
select k << D features to use for a NB classifier.
==============
Copyright Info
==============
This program is free software: you can redistribute it and/or modify... | bdol/bdol-ml | submodularity/feature_selection/submodular_feature_selection.py | Python | lgpl-3.0 | 2,386 | [
"Brian"
] | 2735aba67906dfa289c4b4eeaf059618570851d475ca041ce11d28fa6e664530 |
# -*- coding: utf-8 -*-
#
# multimeter_file.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License... | sanjayankur31/nest-simulator | pynest/examples/multimeter_file.py | Python | gpl-2.0 | 5,974 | [
"NEURON"
] | 577bb151d804cba32a7725cb1f93196712145fb477f3b6eac3d1405e2347ac64 |
# -*- coding:Utf-8 -*-
"""
.. currentmodule:: pylayers.network.network
Node Class
==========
.. autoclass:: Node
:members:
Network Class
==============
.. autoclass: Network
:members:
PNetwork Class
==============
SimPy Process compliant version of the Network class
.. autoclass:: PNetwork
:members... | dialounke/pylayers | pylayers/network/network.py | Python | mit | 63,165 | [
"Mayavi"
] | 5487e2bd5ef4c1b7955d50f2ef90d931ca7ccb6053ced8b55b4c7bd1f3fa47e6 |
# coding: utf-8
from __future__ import unicode_literals, division
import logging
import subprocess
import sys
import datetime
import time
from glob import glob
import tarfile
import os
from abc import ABCMeta, abstractmethod
from itertools import islice
import warnings
from pprint import pformat
import six
from .ut... | specter119/custodian | custodian/custodian.py | Python | mit | 36,290 | [
"VASP"
] | 422a51b2a3530a6a2e7835ba703b03b0d386ccdf4d782386d6d3b6c6bf1d9493 |
'''
Created on Nov, 2016
@author: hugo
'''
from __future__ import absolute_import
import timeit
import argparse
from os import path
import numpy as np
from autoencoder.core.ae import AutoEncoder, load_ae_model, save_ae_model
from autoencoder.preprocessing.preprocessing import load_corpus, doc2vec
from autoencoder.ut... | hugochan/KATE | train.py | Python | bsd-3-clause | 3,916 | [
"Gaussian"
] | fe68ce23f97d9b0aff959285915f18c34e6033392e0da8f614a310d7a30fb0a4 |
#
# 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/test/bigdl/orca/automl/model/test_base_keras_model.py | Python | apache-2.0 | 4,521 | [
"ORCA"
] | b6e7cd045cb40e1fafa730da2a21f17ca33c29de8de5f595f1519700c47af712 |
# Copyright 2016 Brian Innes
#
# 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 writing, ... | brianinnes/pycupi | python/vPiP/serialHandler.py | Python | apache-2.0 | 6,553 | [
"Brian"
] | 70868610c1bad9a65a98667c1f2e10906fb1a1b5e64999add8ef3fa9261c8007 |
# Copyright 2016 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | amboutin/GCP | appengine/standard/mail/send_mail.py | Python | apache-2.0 | 1,596 | [
"VisIt"
] | a4f2d113fc9e39441a164f1bbf4e93878d431d49fbb33875f2094309e81e86f9 |
#!/usr/bin/python
#
# Copyright (c) 2017 Ansible Project
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = """
---
mod... | mheap/ansible | lib/ansible/modules/cloud/amazon/elasticache.py | Python | gpl-3.0 | 20,436 | [
"Dalton"
] | dbe561a53b7d495b2da2e42fff9adfd6efedd8f1f60d97977e751c72c08787a7 |
from typing import (
AbstractSet, Any, Callable, Dict, Iterable, List, Mapping, MutableMapping,
Optional, Sequence, Set, Tuple, Union, cast
)
from mypy_extensions import TypedDict
import django.db.utils
from django.db.models import Count
from django.contrib.contenttypes.models import ContentType
from django.ut... | rishig/zulip | zerver/lib/actions.py | Python | apache-2.0 | 250,194 | [
"Octopus"
] | 489adeec43aeabb6a789a14cebc4d10b0af7830e9f1e092e3bce3eb21422ee3e |
#!/usr/bin/env python
# generate Python Manifest for the OpenEmbedded build system
# (C) 2002-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
# (C) 2007 Jeremy Laine
# licensed under MIT, see COPYING.MIT
#
# June 22, 2011 -- Mark Hatle <mark.hatle@windriver.com>
# * Updated to no longer generate special -dbg pa... | wwright2/dcim3-angstrom1 | sources/openembedded-core/scripts/contrib/python/generate-manifest-3.3.py | Python | mit | 16,252 | [
"VisIt"
] | c178f291562af236cc7bfff38dd902aec1b180c287106e5177d6e947917e6272 |
# Copyright (c) Charl P. Botha, TU Delft
# All rights reserved.
# See COPYRIGHT for details.
# Random development notes:
# * SetFileDimensionality(2) if you want multiple slices written from
# a single volume
# * just generate im%05d.dcm filenames, as many as there are slices
# * study / series UIDs are auto generat... | chrisidefix/devide | modules/writers/DICOMWriter.py | Python | bsd-3-clause | 6,671 | [
"VTK"
] | 1ce6c52266afca6bf64c1dbb81c1fa64db698a759cbd1d4949b1574b48edf184 |
#!/usr/bin/env python
"""
Cluster regions of intervals.
usage: %prog in_file out_file
-1, --cols1=N,N,N,N: Columns for start, end, strand in file
-d, --distance=N: Maximum distance between clustered intervals
-v, --overlap=N: Minimum overlap require (negative distance)
-m, --minregions=N: Minimum regio... | volpino/Yeps-EURAC | tools/new_operations/gops_cluster.py | Python | mit | 5,114 | [
"Galaxy"
] | 6915b1653842f2aab69f55c16cc485a9e34e819028f0800f85dc90884799e1ef |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 The GraphicsFuzz Project 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
#
# https://www.apache.org/licenses/LICEN... | google/graphicsfuzz | gfauto/gfauto/generate_cts_test_template.py | Python | apache-2.0 | 2,942 | [
"Amber"
] | 44926b1d098aa7c616405860fbf84c432ca369d4c0d5b09e96e41195d216a9a9 |
#!/usr/bin/env python3
"""
pynpuzzle - Solve n-puzzle with Python
Version : 1.0.0
Author : Hamidreza Mahdavipanah
Repository: http://github.com/mahdavipanah/pynpuzzle
License : MIT License
"""
import math
import random
import re
import webbrowser
import sys
import traceback
from os import listdir
from os.path import i... | mahdavipanah/pynpuzzle | pynpuzzle.py | Python | mit | 48,426 | [
"FLEUR"
] | 4c1171b664a3cd8f87041d6756029950cb168820b57b9b79920bdf14e44a2f7a |
# $Id$
#
# Copyright (C) 2000-2008 greg Landrum and Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
""" command line utili... | adalke/rdkit | rdkit/ML/ScreenComposite.py | Python | bsd-3-clause | 54,916 | [
"RDKit"
] | 68c30a16cc7d14a1b8cdea174b08e93858329c918eb8e3584e20aa94fd0cca8c |
# -*- coding: utf-8 -*-
"""
LR(1) parser generator
Here you have a parser generator that's fairly easy to use and small.
It produces canonical parser tables so the resulting parsers are fairly large.
How to use:
from lr import rule, build_canonical, Parser
* create bunch of rules like thi... | cheery/language | pad/lr.py | Python | gpl-3.0 | 10,141 | [
"VisIt"
] | 563276f5c3099c7aa52ee122e36401feff6f2d0dc4e424fdccd96b61c4891e08 |
import parasail,statistics,sys
from multiprocessing import set_start_method, Pool
from . import genomes,blast,trees,Score
#### Global variables for use with multithreading
sharedScoresO = Score.sharedScore()
#### raw similarity scores
def calcRawScores(paramD,scoresO):
'''Get a global alignment based raw score ... | ecbush/xtrans | xenoGI/scores.py | Python | gpl-3.0 | 21,517 | [
"BLAST"
] | 374ae78db95aa508adb0ab11ef687da4f62276ddd515396e8c50a2966142bab3 |
'''
Created on 2013-09-09
This module contains meta data and access functions for the GPCC climatology and time-series.
@author: Andre R. Erler, GPL v3
'''
# external imports
import numpy as np
import netCDF4 as nc # netcdf python module
import os # check if files are present
#import types # to add prec... | aerler/GeoPy | src/datasets/GPCC.py | Python | gpl-3.0 | 21,253 | [
"NetCDF"
] | 8c3d0a2ede49114382266b93ba79f3a79297cf6f45a13ccda037fdd5100c1e8f |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2018 David Arroyo Menéndez
# Author: David Arroyo Menéndez <davidam@gnu.org>
# Maintainer: David Arroyo Menéndez <davidam@gnu.org>
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as p... | davidam/python-examples | netcdf/netcdf-example.py | Python | gpl-3.0 | 1,063 | [
"NetCDF"
] | 3bae580a87d045d4ac83fed402d05f6e1e3e261eb84c55e286c20c0fe0629a55 |
# -*- 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/exceptions.py | Python | gpl-2.0 | 2,879 | [
"MDAnalysis"
] | b908ba0ab489def937a667e7bd6083c40eec35f5b65deefdcefb2c95cae51f0d |
# Author: Travis Oliphant
# 2003
#
# Feb. 2010: Updated by Warren Weckesser:
# Rewrote much of chirp()
# Added sweep_poly()
from __future__ import division, print_function, absolute_import
import numpy as np
from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \
exp, cos, sin, polyval, po... | chaluemwut/fbserver | venv/lib/python2.7/site-packages/scipy/signal/waveforms.py | Python | apache-2.0 | 14,814 | [
"Gaussian"
] | 39829d95599f7003ef03bed69a7e93843c724ce85b4a1243143e686de086aef1 |
#!/usr/bin/python
from __future__ import division
import numpy as np
from Tkinter import *
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
from matplotlib.figure import Figure
from matplotlib import pyplot as plt
from PIL import Image
import PngImagePlugin
import ttk
i... | mompiou/stereo-inter | stereo-inter.py | Python | gpl-2.0 | 56,509 | [
"CRYSTAL",
"FLEUR"
] | 051b481e81df5ea106a41d5300faf37fad9bc3927476f024624e695bfe78ab8d |
# Minimal support for git commands on an hg repository
#
# Copyright 2005, 2006 Chris Mason <mason@suse.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
'''browse the repository in a graphical way
The hgk extension allows bro... | iaddict/mercurial.rb | vendor/mercurial/hgext/hgk.py | Python | mit | 11,930 | [
"VisIt"
] | 5b6593cb337ae43a482a0130295383f2f7b2fd3775c94dbbcb49ad8255dbf2f1 |
"""
Validator project
urls.py
Created by b on 2009-06-17.
Copyright (c) 2009 Brian Shumate. All rights reserved.
"""
from django.views.generic.list_detail import object_list
from django.conf.urls.defaults import *
from surfbot.validator.models import Website
# Uncomment the next two lines to enable the admin:
from ... | brianshumate/uniweb | surfbot/urls.py | Python | bsd-2-clause | 1,011 | [
"Brian"
] | d77ed9d0e346cdcf0261c5c091669a65ad90f7a2f9c4ac824296fb4079f72033 |
import time
import os
import re
import copy
import shutil
import traceback
import logging
from typing import Optional, TYPE_CHECKING
from appdirs import user_data_dir
from hyo2.abc.lib.progress.abstract_progress import AbstractProgress
from hyo2.abc.lib.progress.cli_progress import CliProgress
from hyo2.abc.lib.gdal_a... | hydroffice/hyo_soundspeed | hyo2/soundspeed/soundspeed.py | Python | lgpl-2.1 | 76,267 | [
"NetCDF"
] | e617d939a0a815d325129d273a30789d416e0e521dd97751528b64ff530cd60d |
from volatility.renderers.basic import Renderer, Bytes
from volatility import debug
import sqlite3
__author__ = 'mike'
class SqliteRenderer(Renderer):
def __init__(self, plugin_name, config):
self._plugin_name = plugin_name
self._config = config
self._db = None
column_types = [(str, ... | thaskell1/volatility | volatility/renderers/sqlite.py | Python | gpl-2.0 | 1,857 | [
"VisIt"
] | 53b05adbafad1690b87aa0c4ec7b89bfe977accbaf2218bc55413f5bf0136fe2 |
"""
Copyright (C) 2015-2017 Jakub Krajniak <jkrajniak@gmail.com>
This file is distributed under free software licence:
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 ... | MrTheodor/bakery | src/tools.py | Python | gpl-3.0 | 7,973 | [
"Gromacs"
] | 2671afcde4d48a366e55aa000ac65d7dc4ef2b4065635b82c2c5899078775c56 |
#!/usr/bin/env python
import argparse
import json
import logging
import os
import eutils
logging.basicConfig(level=logging.INFO)
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='ESummary', epilog='')
parser.add_argument('db', help='Database to use')
parser.add_argument('--user_... | nekrut/tools-iuc | tools/ncbi_entrez_eutils/esummary.py | Python | mit | 4,234 | [
"Biopython"
] | 2a2df8d69b8c501337da3a6a5a54c5ad74d7749ff721fe336623e54be5b71c08 |
from twilio.rest import TwilioRestClient
def action(sms):
# To find these visit https://www.twilio.com/user/account
ACCOUNT_SID = "{{account_sid}}"
AUTH_TOKEN = "{{auth_token}}"
from_ = "{{from}}"
to = "{{to}}"
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
message = client.me... | obulpathi/cloudcron | templates/action/sms.py | Python | apache-2.0 | 397 | [
"VisIt"
] | a5ad19e2483ffea64897bdc5ca1df8c54eafd333f2cb01d87151cbe7e5a0d6e4 |
from turtle import *
from random import *
#a function for moving the turtle to a random location
def moveToRandomLocation():
penup()
setpos( randint(-400,400) , randint(-400,400) )
pendown()
#a function for drawing a star of a particular size
def drawStar(starSize, starColour):
color(starColour)
p... | arve0/example_lessons | src/python/lessons/Teaching Turtles/Club Leader Resources/ConstellationFinished.py | Python | cc0-1.0 | 1,758 | [
"Galaxy"
] | 0345de2137af230c8d5e5f7ae596d7b06e88399f99b137275bb07841e1db6349 |
'''
The 'forecast' module contains class definitions for
retreiving forecasted data from UNIDATA Thredd servers.
'''
import datetime
from netCDF4 import num2date
import numpy as np
import pandas as pd
from requests.exceptions import HTTPError
from xml.etree.ElementTree import ParseError
from pvlib.location import Loc... | MoonRaker/pvlib-python | pvlib/forecast.py | Python | bsd-3-clause | 26,344 | [
"NetCDF"
] | de153bab4052aea6902dec73233bacfc3bfa69f599f1f4a2b892866f90072e64 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import sys
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
from django.contrib.contenttypes.models import ContentType
from django.contrib... | vlfedotov/django-business-logic | business_logic/models/node.py | Python | mit | 9,553 | [
"VisIt"
] | 23b057264b8cd2f9c50fb6a08c45c75bdd3f4b8ccb13ffd66060b17b47136776 |
from __future__ import absolute_import
from typing import Any, Dict, List, Set, Tuple, TypeVar, \
Union, Optional, Sequence, AbstractSet, Pattern, AnyStr
from typing.re import Match
from zerver.lib.str_utils import NonBinaryStr
from django.db import models
from django.db.models.query import QuerySet
from django.db... | vikas-parashar/zulip | zerver/models.py | Python | apache-2.0 | 56,337 | [
"VisIt"
] | 3f54121db4ba81937baeb6904b5323c2187c2c5ab61800d23ecb4cc5575f2196 |
import os, sys
import numpy as np
import argparse
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import tensorflow as tf
import data
import model
from MulticoreTSNE import MulticoreTSNE as TSNE
def plot_tsne(ld, ld_name, mdl):
## l... | googleinterns/intern2020_cocal | uncertainty/plots/plot_tsne.py | Python | apache-2.0 | 3,312 | [
"Gaussian"
] | 4764d5f5c5f64a0ff32aefcd4d7bed70c9d074adefe244ff7db0d76d014a85be |
r"""protocols is a module that contains a set of VTK Web related
protocols that can be combined together to provide a flexible way to define
very specific web application.
"""
from time import time
import os, sys, logging, types, inspect, traceback, logging, re
try:
from vtk.vtkWebCore import vtkWebApplication, v... | SimVascular/VTK | Web/Python/vtk/web/protocols.py | Python | bsd-3-clause | 11,301 | [
"VTK"
] | 4b08afcae9d3a7d55743b27c060d25dcc753215e88576f3b767197544643db1a |
"""
EMmix.py - cluster data using a mixture of Gaussians generative model.
Marcus Frean
Expects to read a datafile consisting of a matrix in which each row is
a training item.
"""
import sys, math
import pylab as pl
import numpy as np
import numpy.random as rng
import numpy.linalg as linalg
from matplotlib.patches im... | utunga/hashmapd | EM_clustering/EMmix.py | Python | agpl-3.0 | 7,077 | [
"Gaussian"
] | e64ec1747dfc65cbba75e0eb9c657eb1e862a6521ca1d6d4d13dbe2379255698 |
from brian import *
duration = 1*second
N_sims = 1
lif_eq = ['dV/dt = (V_rest-V)/tau_mem : volt']
V_rest = -70*mV
V_reset = -60*mV
V_th = -50*mV
t_refr = 2*ms
tau_mem = 10*msecond
N_in = 1
f_in = 50*Hz
DV_s = 2.5*mV
excinp = PoissonGroup(N_in, f_in)
inhinp = PoissonGroup(N_in, f_in)
nrns = NeuronGroup(N_sims, lif_eq,... | achilleas-k/brian-scripts | lif_template_inh.py | Python | apache-2.0 | 1,007 | [
"Brian",
"NEURON"
] | bd338ad202a61669eb11f06595662244eed3037ca586b8375af895005d443e21 |
"""The basic dict based notebook format.
The Python representation of a notebook is a nested structure of
dictionary subclasses that support attribute access
(ipython_genutils.ipstruct.Struct). The functions in this module are merely
helpers to build the structs in the right form.
Authors:
* Brian Granger
"""
#----... | unnikrishnankgs/va | venv/lib/python3.5/site-packages/nbformat/v2/nbbase.py | Python | bsd-2-clause | 5,743 | [
"Brian"
] | f8423e159cfbc50cf9684a7d2a90c26f4a9d1e12bc246cdd918f6182d49d0bf7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.