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 |
|---|---|---|---|---|---|---|---|
"""
Geographically weighted regression
"""
import numpy as np
from gwr.base.gwr import GWR as PySAL_GWR
from gwr.base.sel_bw import Sel_BW
import json
from crankshaft.analysis_data_provider import AnalysisDataProvider
import plpy
class GWR:
def __init__(self, data_provider=None):
if data_provider:
... | CartoDB/crankshaft | release/python/0.8.2/crankshaft/crankshaft/regression/gwr_cs.py | Python | bsd-3-clause | 7,513 | [
"Gaussian"
] | e02e6efb61d57a994005e752cbf9750ffd76dd11b740e1bc58bf07c0f94a8d08 |
from pysam.libchtslib import *
from pysam.cutils import *
import pysam.cutils as cutils
import pysam.cfaidx as cfaidx
from pysam.cfaidx import *
import pysam.ctabix as ctabix
from pysam.ctabix import *
import pysam.csamfile as csamfile
from pysam.csamfile import *
import pysam.calignmentfile as calignmentfile
from py... | brendanofallon/pysam | pysam/__init__.py | Python | mit | 6,200 | [
"pysam"
] | 170cd83cff8feb5039108aa8c8bf0a6104f848b043825e6f13be2a50b5a12ab2 |
"""
Recurrent layers.
TODO: write more documentation
"""
__docformat__ = 'restructedtext en'
__authors__ = ("Razvan Pascanu "
"KyungHyun Cho "
"Caglar Gulcehre ")
__contact__ = "Razvan Pascanu <r.pascanu@gmail>"
import numpy
import copy
import theano
import theano.tensor as TT
# Nicer i... | neozhangthe1/coverage_model | groundhog/layers/rec_layers.py | Python | bsd-3-clause | 61,590 | [
"Gaussian"
] | bc1cb6279f1d2c9440b4803403acc8b5cc7d7c29e07eb70b3fbfde0c9e35a872 |
"""
test_NeuronUpdate.py
This file is part of ANNarchy.
Copyright (C) 2016-2018 Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com>
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 Found... | ANNarchy/ANNarchy | tests/Unittests/test_NeuronUpdate.py | Python | gpl-2.0 | 3,984 | [
"NEURON"
] | a83e32c096b4237a37b3848d22c5b3e4f671d31405db8dfbc29dc8ed9b019cc3 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | MrTheodor/espressopp | testsuite/unittest/TestInt3D.py | Python | gpl-3.0 | 3,565 | [
"ESPResSo"
] | 682d21fcbd8b222f16c5a8e1bd10db37713d70c417ea6918ad06278c23ba197c |
from __future__ import print_function
"""A set of filters that is used to determine an emission line ratio
"""
import numpy as np
import pysynphot
AIR_REFRACTIVE_INDEX = 1.000277 # @STP according to Wikipedia
LIGHTSPEED = 2.99792458e5 # c in km/s
class Bandpass(object):
"""A combination of telescope, i... | deprecated/nebulio | nebulio/filterset.py | Python | mit | 11,410 | [
"Gaussian"
] | 52090a8ca79dc9f9f72be5ca082bd808916742da649b4c32a5c51c1bfbc345ef |
import numpy as np
from ase import Atom, Atoms
from gpaw import GPAW, Mixer
from gpaw.test import equal
a = 4.0
n = 20
d = 1.0
x = d / 3**0.5
atoms = Atoms([Atom('C', (0.0, 0.0, 0.0)),
Atom('H', (x, x, x)),
Atom('H', (-x, -x, x)),
Atom('H', (x, -x, -x)),
Atom... | robwarm/gpaw-symm | gpaw/test/CH4.py | Python | gpl-3.0 | 907 | [
"ASE",
"GPAW"
] | 1e667948b3677d591cca6acf3ccc53fe6f3186469cfaf155dd1ce717a02d4ffc |
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from periodic.crystal import Crystal
class DrawLattice(object):
def __init__(self, crystal, size):
'''if only the width is given then choose the height according to the golden ratio'''
fig = plt.figure()
# fig.add_axes(... | danielsjensen1/crystalpy | plot2d/bravais.py | Python | bsd-3-clause | 1,164 | [
"CRYSTAL"
] | 43a6df27193497be56bf79a9b418e085015e286459aa90bc2672172bad8b2226 |
# (c) 2013-2016, Michael DeHaan <michael.dehaan@gmail.com>
# Stephen Fromm <sfromm@gmail.com>
# Brian Coca <briancoca+dev@gmail.com>
# Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under t... | Inspq/ansible | lib/ansible/plugins/action/assemble.py | Python | gpl-3.0 | 6,137 | [
"Brian"
] | 5605958125d30ead8aca2228236cc867027c9b22156029d6ee8e173fa1867ba5 |
#!/usr/bin/python
#
# Copyright 2010 Brian Dolbec <brian.dolbec@gmail.com>
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#
# $Header$
from __future__ import print_function
__version__= "0.0.1"
__author__ = "Brian Dolbec"
__email__ = "brian.dolbec@gmail.com"
# ... | zmedico/gentoolkit | pym/gentoolkit/test/eclean/test_clean.py | Python | gpl-2.0 | 5,029 | [
"Brian"
] | 9d0a5260033c5b38c2dd1028f45a65b128989aac400412331ba034560c095a65 |
from __future__ import absolute_import
from alacrity.mq.celery import celery
import alacrity.mq.celeryconfig as cfg
import alacrity.config as cfg_root
from alacrity.config.db import db, league_db, errorgame_db, userupload_db
import alacrity.config.api as api
#from alacrity.parsers.run_all import process_replays
from a... | grschafer/alacrity | alacrity/mq/tasks.py | Python | mit | 10,434 | [
"VisIt"
] | 0cb943436351cc16c472c9388edb9dd693d4cb3615839b267418d5d8ed9a1c04 |
#!/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.
"""Generates .h and .rc files for installer strings. Run "python
create_string_rc.py" for usage details.
This script generates an ... | mou4e/zirconium | chrome/installer/util/prebuild/create_string_rc.py | Python | bsd-3-clause | 15,482 | [
"xTB"
] | a0b9219199776f4410aa6888c93e2f625558c4a305854c69a46819ad4c842fc8 |
# -*- coding: utf-8 -*-
## config.py
##
## Contributors for this file:
## - Yann Le Boulanger <asterix@lagaule.org>
## - Nikos Kouremenos <kourem@gmail.com>
## - Stéphan Kochen <stephan@kochen.nl>
##
## Copyright (C) 2003-2004 Yann Le Boulanger <asterix@lagaule.org>
## Vincent Hanquez <tab@snarc... | pacoqueen/bbinn | gajim-0.9.1/src/disco.py | Python | gpl-2.0 | 53,621 | [
"VisIt"
] | ee11cf60fca470b8f2bf3b75f6b40b0932569ad87013d822948536f956effc98 |
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsRasterFileWriter.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"... | mhugo/QGIS | tests/src/python/test_qgsrasterfilewriter.py | Python | gpl-2.0 | 9,269 | [
"NetCDF"
] | f65dae18d77f0bbfbaeaf49e66b9581d351d43370865c3b6da52619aa80184eb |
#!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import unittes... | yeyanchao/calibre | src/calibre/web/jsbrowser/test.py | Python | gpl-3.0 | 7,851 | [
"VisIt"
] | b0bcb4b59363664171d4a6e8c123c025d8006669ba4cc6d0dca849fc7731339c |
#
# @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
#... | ashutoshvt/psi4 | psi4/driver/p4util/__init__.py | Python | lgpl-3.0 | 1,230 | [
"Psi4"
] | b6167d5f7880254a4c9d19715bd4ec9e516ca911b410d601044d4bd5a871cd3a |
#!/usr/bin/python
""" Automaticaly unhold holded 'visit reservations' done before given expire time """
import datetime
from django.core.management.base import BaseCommand, CommandError
from djcode.reservations.models import Visit_reservation
class Command(BaseCommand):
help = __doc__
args = "expiretime(MM)"
de... | mmincikova/medobs | djcode/reservations/management/commands/medobsunhold.py | Python | gpl-3.0 | 888 | [
"VisIt"
] | b3e7e12cbfeb61003576d9f1e1b29ca25ba7aec7d5b950e4adde2cc2adeb5d23 |
#!/usr/bin/python
#
# COLOUR PICKER.
# This is a lightly modified version of urwids palette_test.py example script as
# found at https://raw.github.com/wardi/urwid/master/examples/palette_test.py
#
# This version simply omits resetting the screens default colour palette,
# and therefore displays the colour attributes a... | np/alot | extra/colour_picker.py | Python | gpl-3.0 | 9,870 | [
"ADF"
] | a1772f3392d8fcdaf0e3a2e01c65ecc4f392a66ff1ba01d05cf554c712fde785 |
#
# jobClimatology2.py -- mrjob class for computing climatologies by gaussian interpolation
#
from mrjob.job import MRJob
from climatology2 import climByAveragingPeriods
class MRClimatologyByGaussInterp(MRJob):
def mapper(self, _, line):
yield "chars", len(line)
yield "words", len(line.split())
... | dataplumber/nexus | climatology/clim/jobClimatology2.py | Python | apache-2.0 | 474 | [
"Gaussian"
] | f8f3778c16a461426028c8c1721dad509c5a1281aa4428b2f984c674862a2b46 |
#!/usr/bin/env python
#
# $File: run_tests.py $
# $LastChangedDate$
# $Rev$
#
# 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 sof... | BoPeng/simuPOP | test/run_tests.py | Python | gpl-2.0 | 3,003 | [
"VisIt"
] | 57b7bb706a447351fb51f6f401315798b124f2b9da55e456fd543896db852577 |
"""
Unit tests for utils
"""
import unittest
import textwrap
from ddt import ddt, data, unpack
from regression.pages.common.utils import (
get_target_url_from_text,
read_enrollment_codes_from_text,
extract_mmm_dd_yyyy_date_string_from_text,
convert_date_format,
extract_numerical_value_from_price_s... | raeeschachar/edx-e2e-mirror | regression/pages/common/tests/test_utils.py | Python | agpl-3.0 | 13,872 | [
"VisIt"
] | 0b6493d16da0eea4328c07afc627c99985b6d4e6623038f06195b7b338b51262 |
import os
from ase import *
from gpaw import GPAW, restart
from gpaw.atom.generator import Generator
from gpaw.atom.configurations import parameters
from gpaw import setup_paths
from gpaw.mpi import world
from gpaw.test import equal
# This test calculates the derivative discontinuity of Ne-atom
# first on 3D without r... | ajylee/gpaw-rtxs | gpaw/test/ne_disc.py | Python | gpl-3.0 | 1,494 | [
"ASE",
"GPAW"
] | 17a03344962e61f1f87ea11bd1779cbd29bdc173b715d91a925e25aae8c07631 |
# #############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2014 Stanford University and the Authors
#
# Authors: Matthew Harrigan
# Contributors: Carlos Xavier Hernandez
#
# MDTraj i... | rmcgibbo/mdtraj | tests/test_selection.py | Python | lgpl-2.1 | 10,462 | [
"MDTraj"
] | ed3a318d426938fcfaf2f9aa302951c73bfa5087f2c98aec6d887c5310a4c12f |
# utf8
"""
This module contains the core functionality of the CIM to Matpower import tool.
.. note::This module is based partially on the started but never finished open source project Cim2BusBranch https://www.versioneye.com/Python/Cim2BusBranch/0.1
.. seealso:: :py:mod:`Topology_NodeBreaker` and :py:mod:`CIM2Matpo... | kkgerasimov/CIM2Matpower | CIM2Matpower.py | Python | mit | 63,907 | [
"VisIt"
] | c999133aaa93dd0717376c16780b662a5509049b760b748efbd699eae3bea1c0 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import unittest
import pickle
from pymatgen.util.testing import PymatgenTest
from pymatgen.core.periodic_table import Element, Specie, DummySpecie, get_el_sp
... | matk86/pymatgen | pymatgen/core/tests/test_periodic_table.py | Python | mit | 12,021 | [
"pymatgen"
] | 68e02301d017b7a0633063759ae1f2a95c5eef7f0ec1c401921a7efc6f40e3ca |
#!/usr/bin/python
#
# This source file is part of appleseed.
# Visit https://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any... | dictoon/blenderseed | scripts/runtestsuite/runtestsuite.py | Python | mit | 21,252 | [
"VisIt"
] | 2fe6295296f561633c9a1a3c72786a711bc8cb0bd61d58049dc31c80325f37cc |
"""This is the main file that allows a user to interact with the project
via a graphical user interface"""
import tkinter as tk
from tkinter import PhotoImage
from tkinter import font
import Game
import Player
import Board
import Tile
import BoardCanvas
import threading
import Agent
import HumanAgent
import Score
titl... | nicholas-maltbie/Medina | Main.py | Python | mit | 5,660 | [
"Brian"
] | 8f7a7829a03937c3e2fe85d60a1b1731b1eee61ef08e0b9c081f7fda9e0da311 |
import logging
from galaxy import model
from galaxy.jobs.runners import AsynchronousJobState, AsynchronousJobRunner
from galaxy.jobs import ComputeEnvironment
from galaxy.jobs import JobDestination
from galaxy.jobs.command_factory import build_command
from galaxy.tools.deps import dependencies
from galaxy.util import ... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/jobs/runners/lwr.py | Python | gpl-3.0 | 29,684 | [
"Galaxy"
] | 47695005665d45b9a9878f701c3d4efc6ec5f24ec1b89e3d6f6858c20f453a8a |
from math import sqrt, pi
from ase import Atoms
from ase.calculators.emt import EMT
from ase.constraints import FixBondLengths
from ase.optimize import BFGS, QuasiNewton
from ase.neb import SingleCalculatorNEB
from ase.lattice.surface import fcc111, add_adsorbate
from math import sqrt, cos, sin
for mic in [ False, Tr... | askhl/ase | ase/test/CO2_Au111.py | Python | gpl-2.0 | 1,404 | [
"ASE"
] | e74585fdc787e81858fac0cd9d19cef7fb7528571faf864f33813448d1ca9640 |
"""
This file is part of the DiffractionMicroscopy project.
Copyright 2016 David W. Hogg (NYU, SCDA).
This piece of code does nothing related to diffraction.
It only shows that you can reconstruct an image from small numbers of
photons taken in exoposures at unknown orientations.
# issues
- Should we apply the rotati... | davidwhogg/DiffractionMicroscopy | code/toyproblems/twodimage_fourier.py | Python | mit | 15,412 | [
"Gaussian"
] | b127757d85fd868fc3949cfd3199555a8f910e92962c78d7744f130334c34608 |
#
# Copyright (C) 2007-2010 Greg Landrum
# All Rights Reserved
#
from rdkit import Chem
class PropertyMol(Chem.Mol):
""" allows rdkit molecules to be pickled with their properties saved.
>>> import os
>>> import pickle
>>> from rdkit import RDConfig
>>> m = Chem.MolFromMolFile(os.path.join(RD... | bp-kelley/rdkit | rdkit/Chem/PropertyMol.py | Python | bsd-3-clause | 3,261 | [
"RDKit"
] | c4bec85c8357f3f704710da3651aea87468eb87e8f60d1ba4ce6e7b05f487a86 |
'''
Created on 18.12.2013
@author: lbreuer
'''
#!/usr/bin/env python
"""Perform source localization for MEG data"""
# =========================================
# import necessary modules
# =========================================
import mne, os, sys, pdb
import numpy as np
import pylab as pl
import matplotlib.pyplo... | fboers/jumegX | scripts/meg_source_localization.py | Python | bsd-3-clause | 22,117 | [
"Mayavi"
] | c25fe7bbd5a7af6e1762d42f77b685450274e98a2a1a3a148cd75b1ddb883290 |
"""Color module supporting plotting module.
Used code from matplotlib.colors. Thanks for your work!
SUPPORTED COLORS
aliceblue
antiquewhite
aqua
aquamarine
azure
beige
bisque
black
blanchedalmond
blue
blueviolet
brown
burlywood
cadetblue
chartreuse
chocolate
coral
cornflowerblue
cornsilk
crimson
cyan
darkblue
darkc... | akaszynski/vtkInterface | pyvista/plotting/colors.py | Python | mit | 10,565 | [
"ParaView"
] | 7eb6826449c0fec6c8fb89fcdfaf0ebe12947311ba7b7dd77226387781d1ddc5 |
# Copyright (C) 2012 Alex Nitz, Tito Dal Canton
#
#
# 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 is... | cdcapano/pycbc | pycbc/inject/inject.py | Python | gpl-3.0 | 47,550 | [
"Gaussian"
] | 3247a50bfc3f4c19b5ef49b62965d41bbe2f4e8f2bd630fa28fac0a389c377be |
r'''
Plot the results of single vertex example.
'''
if __name__ == '__main__':
from .single_vertex import create_cp
cp = create_cp()
# begin
from mayavi import mlab
cp.plot_mlab(mlab)
mlab.show()
# end
| simvisage/oricreate | docs/howtos/ex01_single_vertex/single_vertex_mlab.py | Python | gpl-3.0 | 233 | [
"Mayavi"
] | 5a28584fde6127f508e1fba21a6782f429ded82c855bc2b9af848da91e1b692e |
#!/usr/bin/env python
import time, sys, random, colorsys, string, db_conf, logger
from phamerator_manage_db import *
#from db import *
class DuplicatePhamError(Exception):
def __init__(self,value):
self.parameter=value
def __str__(self):
print 'Duplicate Pham Error!'
return repr(self.parameter)
class... | byuphamerator/phamerator-dev | phamerator/pham.py | Python | gpl-2.0 | 19,035 | [
"BLAST"
] | 53b045c69505de0e3f055b34e4581be443f3a8823fee5cd4305e834495914c7c |
_base_ = [
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
# model settings
model = dict(
type='SOLO',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
... | open-mmlab/mmdetection | configs/solo/solo_r50_fpn_1x_coco.py | Python | apache-2.0 | 1,523 | [
"Gaussian"
] | 3086b93d05e83bb986a6f6a0ecabb72cc729f755184b470fa45748ef54ddb1d4 |
"""
===========
gaussfitter
===========
.. codeauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com> 3/17/08
Latest version available at <http://code.google.com/p/agpy/source/browse/trunk/agpy/gaussfitter.py>
"""
import numpy
from numpy.ma import median
from numpy import pi
from mpfit import mpfit
"""
Note about mpfit/... | msarahan/analyzarr | analyzarr/lib/cv/gaussfitter.py | Python | bsd-2-clause | 23,685 | [
"Gaussian"
] | 2be623b928a7be411726f3e9a15d81d1a439159284f06337667572dc5bab093e |
from mpp.models import SQLTestCase
from dml.functional import DMLSQLTestCase
import os
'''
Test DML Queries for ORCA
'''
class test_dml(SQLTestCase):
"""
@optimizer_mode on
@tags ORCA
@db_name dmldb
"""
sql_dir = 'sql/'
ans_dir = 'expected/'
out_dir = 'output/'
def get_substitution... | lintzc/gpdb | src/test/tinc/tincrepo/dml/functional/test_dml.py | Python | apache-2.0 | 727 | [
"ORCA"
] | 17af0d0acda5028b4504633f03abd984bd2289bf7b8316d86e437027d8d90ff2 |
# This file is part of Androguard.
#
# Copyright (c) 2012 Geoffroy Gueguen <geoffroy.gueguen@gmail.com>
# 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://... | CZ-NIC/thug | src/Analysis/androguard/decompiler/dad/writer.py | Python | gpl-2.0 | 25,574 | [
"VisIt"
] | c321da69d2f551c1e5c931808500f9dec2165a0b9bf20e192e57fec0391de9b7 |
# Date: August 2017
# Author: Kutay B. Sezginel
"""
Simulation class for reading and initializing Lammps simulations
"""
import os
import yaml
import shutil
import glob
from thermof.parameters import Parameters, plot_parameters
from thermof.read import read_run, read_trial, read_trial_set
from thermof.initialize.lammps... | kbsezginel/tee_mof | thermof/simulation/simulation.py | Python | mit | 8,554 | [
"LAMMPS"
] | a03418dd4e73a5b2034d6e4eb886459fd2b3d2697de684324a11ab30899c0a15 |
# -*- coding: utf-8 -*-
import math
from dependencies.dependency import event
from lims.utils import formatDecimalMark
from dependencies.dependency import ObjectInitializedEvent
from dependencies.dependency import WorkflowException
from dependencies.dependency import _createObjectByType
def create_analysis(context, ... | yasir1brahim/OLiMS | lims/utils/analysis.py | Python | agpl-3.0 | 11,557 | [
"VisIt"
] | 12f7676c13eb4d5ecfbbc63b21587a0f42d1ab16cb1bfc453782b66561cf4d83 |
'''
Classes to wrap up common tasks e.g., 'run a search, visit the urls, add content', or 'remove flagged content'
Class to employ one or more searchers and add returned urls to the database. This is intended to be generic.
The __init__ method to SearchAndAdd is passed an instance of the search module's main search... | pbarton666/buzz_bot | djangoproj/djangoapp/crawler/b_taskWrappers.py | Python | mit | 22,002 | [
"VisIt"
] | 57348526268eeb4fc6ff47bf0447a865340f79f0c66bea373cb8566a4fade6e9 |
"""Atomicpuppy implementation.
Don't import from this module: import from the top-level atomicpuppy package.
Event Store terminology cheat sheet:
Here's the first and last 'page':
head -> event 10000, say (first) ... ...
event 9999 event 1
... ... | madedotcom/atomicpuppy | atomicpuppy/atomicpuppy.py | Python | mit | 29,494 | [
"Amber"
] | 825c2714e02b2f8f161c76fae60516acf2fd37da84522c3969e2fd6f1616e9dd |
print '--------------------------'
print 'Parmec hopper flow example'
print '--------------------------'
from math import pi
# material data
rho = 1000.0
E = 1E6
nu = 0.2
# sphere data
num = 25 # number of spheres along x, y, z
rad = 0.5/num
# contact data
kn = 1E6
da = 1.0
mu = 0.0
# duration and time step ratio
s... | tkoziara/parmec | examples/hopper.py | Python | mit | 2,321 | [
"VTK"
] | 81a8f7c25374136d883d2f6a533aac487f69d0155035df2c85214af47ea16ade |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | sunqm/pyscf | pyscf/mcscf/ucasci.py | Python | apache-2.0 | 20,229 | [
"PySCF"
] | 31bbb0edde46ee075fee5f03862c5d5bdab74acbe69474668310e63e8703502c |
#!/usr/bin/python
import operator
import os
from math import *
import sys
from os.path import isfile
from itertools import *
import numpy as np
import string
from datetime import datetime
#***********************************************************************
#************************** Global Variables ************... | ieguinoa/pastorius | tests/amberViejo.py | Python | mit | 21,173 | [
"Amber"
] | f9f6ab7b2d05fd0570d2590330b2ae1bc16be45c6416285733b9a7203efa740a |
# COMMONSENSE - last updated for NodeBox 1.9.4
# Author: Tom De Smedt <tomdesmedt@organisms.be>
# See LICENSE.txt for details.
import numeral
import tags
import wordnet
import singular
# Connectives from a file somewhere in Darwin:
commonsense_connectives = [
"I", "the", "of", "and", "to", "a", "in", "that",
... | rossgoodwin/musapaedia | musapaedia/en/commonsense.py | Python | mit | 10,431 | [
"exciting"
] | 12c27a68ef0c4b4ba2d6ebf4a270f24acd5d81ef31f6c8ece81639ae2c36f0b4 |
# Copyright: 2005-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Author(s): Brian Harring (ferringb@gentoo.org)
from portage.cache import fs_template
from portage.cache import cache_errors
import errno
import io
import stat
import sys
import os as _os
from portage import os... | clickbeetle/portage-cb | pym/portage/cache/flat_hash.py | Python | gpl-2.0 | 4,474 | [
"Brian"
] | ae4e35999989e0272fa55e3fcfb0efdc263e8a37c11fbccf0c95ce2f18aa8895 |
# (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... | jkettleb/iris | lib/iris/tests/unit/fileformats/netcdf/test_Saver.py | Python | lgpl-3.0 | 11,765 | [
"NetCDF"
] | 300f1b3b037517057dcc22a3e03504197784a6c1b6ac753a6632136d6d3d8f9a |
nomes_list = [
"Aaren"
,
"Aarika"
,
"Abagael"
,
"Abagail"
,
"Abbe"
,
"Abbey"
,
"Abbi"
,
"Abbie"
,
"Abby"
,
"Abbye"
,
"Abigael"
,
"Abigail"
,
"Abigale"
,
"Abra"
,
"Ada"
,
"Adah"
,
"Adaline"
,
"Adan"
,
"Adara"
,
"Adda"
,
"Addi"
,
"Addia"
,
"Addie"
,
"Addy"
,
"Adel"
,
"Adela"
,
"Adelaida"
,
"Adelaide"
,
"Adele"
,
"Adelhei... | Pharaoh00/Pharaoh-Toolkit | 0.0.6/modulos/listas/nomesLista.py | Python | mit | 97,171 | [
"ASE",
"Amber",
"Brian",
"CRYSTAL",
"Dalton",
"Desmond",
"FLEUR",
"MOE"
] | 459bd7bbf4e584c1f8339ba7b3c466485c8c95235034da8ca828d4b60a5d1dfb |
# -*- coding: utf-8 -*-
import bisect
import enum
from collections import namedtuple
import heapq
import itertools
import warnings
import numpy as np
import scipy.signal
import scipy.spatial
import scipy.stats
import scipy.optimize
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d.axes3d import Axes3D
import s... | oliverlee/antlia | python/antlia/trial2.py | Python | bsd-2-clause | 46,706 | [
"Gaussian"
] | 6a0a39ab66087772e06b3edc4e1be6f4a2413f99e5fb99472956c76d92f61d50 |
from safemdp.grid_world import *
from osgeo import gdal
from scipy import interpolate
import numpy as np
import os
import matplotlib.pyplot as plt
import GPy
__all__ = ['mars_map', 'initialize_SafeMDP_object', 'performance_metrics']
def mars_map(plot_map=False, interpolation=False):
"""
Extract the map for ... | befelix/SafeMDP | examples/mars/mars_utilities.py | Python | mit | 8,568 | [
"Gaussian"
] | a72a466fc464bbea3463dc70c33d402a4cbdcf628c72bcc22dea5c6f7c65a15d |
"""
@file inv/api/auth.py
@author Brian Kim
@brief a script that handles the authentication and authorization of a user
for inv
"""
#
# definition methods as bits
# Label: Category, Manufacturer, Building
# Subentity: User, Location, Item
# Entity: Asset, Inventory
LabelView = 1 << 0
Subenti... | briansan/inv | server/inv/auth.py | Python | mit | 5,692 | [
"Brian"
] | 58036b6089c91a0e626c6d76220e94a626899c25c9b660c98c68973cc66c53dc |
# coding=utf-8
# 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 app... | S-YOU/grumpy | compiler/block_test.py | Python | apache-2.0 | 10,738 | [
"VisIt"
] | 2357ea7fc070976bfc517bf52bf6e9a4365f25a89221e25266e686d33d16e91a |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under th... | kain88-de/mdanalysis | package/MDAnalysis/analysis/rdf.py | Python | gpl-2.0 | 5,261 | [
"MDAnalysis"
] | 4592be203e46b020f95efa8375f1e7c03629caed3cf545ecd7eb0ceba545cb59 |
"""
================================
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 the ... | fabioticconi/scikit-learn | examples/mixture/plot_gmm_selection.py | Python | bsd-3-clause | 3,316 | [
"Gaussian"
] | 6b20417414b0592e76046f39f4f2d0a513130444fa411a8beb3d15c58095366f |
# -*- coding: utf-8 -*-
# Copyright 2007-2011 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | pburdet/hyperspy | hyperspy/_components/pes_see.py | Python | gpl-3.0 | 5,094 | [
"Gaussian"
] | 24238cbe24abc39f3aade87cb515b73507a492927a75000f3b2797739f808ee1 |
class Room(object):
def __init__(self, name, description):
self.name = name
self.description = description
self.paths = {}
def go(self, direction):
return self.paths.get(direction, None)
def add_paths(self, paths):
self.paths.update(paths)
central_corridor = Room... | AisakaTiger/Learn-Python-The-Hard-Way | projects/gothonweb/gothonweb/map.py | Python | mit | 4,121 | [
"BLAST"
] | 63b30c2f4554d299f7d37f10615aa484c8fcf41f5247954ee0c5a6b900bce398 |
"""
Tests for grid-based shape features.
"""
import unittest
from rdkit import Chem
from rdkit_utils import conformers
from ..shape_grid import ShapeGrid
class TestShapeGrid(unittest.TestCase):
"""
Tests for ShapeGrid featurizer.
"""
def setUp(self):
"""
Set up tests.
"""
... | rbharath/pande-gas | vs_utils/features/tests/test_shape_grid.py | Python | bsd-3-clause | 1,984 | [
"RDKit"
] | 50976e3479134c452e4615fde2b14b96a0965585a0bdce27b7d9f96935bd0242 |
"""Bias matrix and initial guess function.
"""
from __future__ import division, absolute_import
import numpy as np
from skimage.transform import resize
from skimage.io import imread
from sklearn.datasets import make_checkerboard
from pymanopt.manifolds import FixedRankEmbedded, Euclidean
def guess_func(shape, rank,... | a378ec99/bcn | bcn/bias.py | Python | mit | 6,060 | [
"Gaussian"
] | 32f44297fe161df25eaca64dae9b9494a0570539652af9a31a1c5dd3f2d76922 |
import os
import bs4
import numpy
import scipy
import pandas
import math
import re
import datetime
import collections
import matplotlib.pyplot as plt
import seaborn
import subprocess
import statsmodels.sandbox.stats.multicomp
from Bio.motifs._pwm import calculate as biopython_motif_calculate
from pgtools import toolbo... | phageghost/pg_tools | pgtools/motiftools.py | Python | mit | 45,215 | [
"Biopython",
"Gaussian"
] | a53cbcbeb262a802cd839b465548dd186c1ed9a30df225a58df7b06fdd337ae8 |
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/widgets/eventcal.py
# Event Calendar widget
# author: Andy Robinson
__version__=''' $Id: eventcal.py 3660 2010-02-08 18:17:33Z damian $ '''
__doc__="""This file is a
"""
from reportla... | ejucovy/reportlab | src/reportlab/graphics/widgets/eventcal.py | Python | bsd-3-clause | 13,285 | [
"Brian"
] | 20606e71d115f3fd8371a7ef9b9d6cb6892c7a2d078c28b539cfd554008d04dc |
from custom.bihar.calculations.utils.filters import get_add, get_edd
import datetime
from django.utils.translation import ugettext_noop
from django.utils.translation import ugettext as _
from . import display
from custom.bihar.reports.indicators.display import next_visit_date, days_overdue
from custom.bihar.reports.ind... | gmimano/commcaretest | custom/bihar/reports/indicators/clientlistdisplay.py | Python | bsd-3-clause | 5,914 | [
"VisIt"
] | 29f4d51b378287266ddba7acfc43adae83b590cb567f0a4c0a7065539635c663 |
#!/usr/bin/env python
import numpy as np
import numpy.testing as npt
import generate_strain as gs
def test_cell():
# Should not end up rotates
incell = [[9.1209595 , 0. , -2.65670807],
[ 0. , 8.6 , 0. ],
[ 0. , 0. , 5.2 ]]
a, b, c, al, b... | andreww/elastic-constants | tests/test_cell.py | Python | bsd-3-clause | 3,745 | [
"CASTEP"
] | a97871bc694b7da5fa5d9c129d2037be75ce09364e4ed998e90aa594ad764474 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import json
import os
import tempfile
import unittest
import warnings
import numpy as np
from pymatgen.core.structure import Structure
from pymatgen.electronic_structure.core import Orbital, Spin
from pymatgen.io.lobster impo... | vorwerkc/pymatgen | pymatgen/io/lobster/tests/test_lobster.py | Python | mit | 126,370 | [
"Gaussian",
"VASP",
"pymatgen"
] | 23215f43a39087ed57bbd50ab6d21f21c19a497ad2b7d59a3815dbb013573659 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2018 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
#... | amjames/psi4 | psi4/driver/procrouting/sapt/__init__.py | Python | lgpl-3.0 | 973 | [
"Psi4"
] | 44f33e6b12f5fdf5167f9842309c3ecf4790226bfa06be246f42fdc5664e0cd8 |
# -*- coding: utf-8 -*-
# Copyright 2007-2021 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | erh3cq/hyperspy | hyperspy/tests/model/test_set_parameter_value.py | Python | gpl-3.0 | 3,811 | [
"Gaussian"
] | 771708711cc9a19c002f28aafaa4e48e5fc08365a09d47bc97b4cb3a5c7c0914 |
#!/usr/bin/env python3
from gaussian import GaussianLog
files = [
# "g03_cluster_singlepoint.log",
"g03_cluster_opt.log",
"g03_cluster_scan.log",
# "g09_cluster_singlepoint.log",
# "g09_cluster_pdb_singlepoint.log",
# "g09_cluster_opt.log",
# "g09_cluster_pdb_opt.log",
# "g09_cluster_scan.lo... | eduardoftoliveira/oniomMacGyver | tests/TODO/test_eduardo2.py | Python | gpl-3.0 | 1,037 | [
"Gaussian"
] | c11b2e7347b10e4095b53d9b148578fdd36239186b4647a643505d29e119bec2 |
import os.path
try:
# Python 3.x
import collections.abc as collections
except ImportError:
# Python 2.x
import collections
# Load the native module with the core bindings
from PyScript import *
from PyScriptApp import *
# Load sub-modules (in the right order because there are dependencies between them... | srinath-chakravarthy/ovito | src/plugins/pyscript/python/ovito/__init__.py | Python | gpl-3.0 | 13,022 | [
"OVITO"
] | 9eaf3cbf012598b815b6a986a07bf07a22ce2a98c24cbb8f48c99cb5cb1bbb18 |
# Gaussian process binary classification in 1d
# Code is based on
#https://github.com/aloctavodia/BAP/blob/master/code/Chp7/07_Gaussian%20process.ipynb
import superimport
import pymc3 as pm
import numpy as np
import pandas as pd
from scipy import stats
from scipy.special import expit as logistic
import pyprobml_util... | probml/pyprobml | scripts/gp_classify_iris_1d_pymc3.py | Python | mit | 4,320 | [
"Gaussian"
] | 2c415f8810939efac4cc59bece24ec20c70d8832da3d3cc98c839800c5a60413 |
from ase.md.nptberendsen import NPTBerendsen, Inhomogeneous_NPTBerendsen
| auag92/n2dm | Asap-3.8.4/Python/asap3/md/nptberendsen.py | Python | mit | 73 | [
"ASE"
] | 5caeb6cb9024cf3ba65ff1680b9811ca7e7392647181d159b1eb39896f9e2662 |
from __future__ import print_function
import numpy as np
import msmbuilder.cluster
import mdtraj as md
import mdtraj.testing
import scipy.spatial.distance
X1 = 0.3 * np.random.RandomState(0).randn(1000, 10).astype(np.double)
X2 = 0.3 * np.random.RandomState(1).randn(1000, 10).astype(np.float32)
trj = md.load(md.testin... | rmcgibbo/msmbuilder | msmbuilder/tests/test_clustering.py | Python | lgpl-2.1 | 2,596 | [
"MDTraj"
] | 6b132c07823e6344d9a6fad8a0910cb1bc89f80055c6eaafde438d20a3d87969 |
"""This is a file to test the net.write_to_file method
"""
import numpy as np
import matplotlib.pyplot as plt
import math
import time
from neo import hdf5io
import nengo_theano as nef
build_time_start = time.time()
net = nef.Network('Write Out Test')
net.make_input('in', math.sin)
net.make('A', 50, 1)
net.make('B',... | ctn-waterloo/nengo_theano | nengo_theano/test/test_writeout.py | Python | mit | 1,733 | [
"NEURON"
] | 52094f41a86ddf064de97d4a968c464e244619db5ae3bd11027306a8c0e4b538 |
# $Id$
#
# Copyright (C) 2003-2013 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.
#
from __future__ import print_function
i... | soerendip42/rdkit | rdkit/DataStructs/TopNContainer.py | Python | bsd-3-clause | 1,915 | [
"RDKit"
] | ebcb2994f66d37b388509e67821f13c1088771257fdb2376ee91e0a589e5c00d |
# PCR default values
minPerfect_default = 15
minGood_default = 15
maxSize_default = 2000
# BLAST default values
perc_id_default = 95
culling_default = 5
mismatch_default = 4
align_diff_default = 5
gap_default = 2 | Andre-Tan/EmMAIL | emmail/utilities/__init__.py | Python | gpl-3.0 | 225 | [
"BLAST"
] | 8cb9f5803752aedb869a9a8eaf705fa57a726ec653a3c3d34e74d32dc96ad4cd |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Functions for manipulating PDFs.
"""
from __future__ import (print_function, division)
import six
from six.moves import range
import sys
import os
import warnings
import math
import numpy as np
import warnings
from scipy.special import erf, xlogy, gammaln
__all__ =... | joshspeagle/frankenz | frankenz/pdf.py | Python | mit | 37,539 | [
"Gaussian"
] | a4b6c36d4e8c79f8395a2535ffcf13621d430859a4e9d89b66906d3476762b06 |
# test_nontuftedrs.py ---
#
# Filename: test_nontuftedrs.py
# Description:
# Author:
# Maintainer:
# Created: Mon Jul 16 16:12:55 2012 (+0530)
# Version:
# Last-Updated: Thu Nov 8 18:05:45 2012 (+0530)
# By: subha
# Update #: 504
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
# ... | BhallaLab/moose-examples | traub_2005/py/test_nontuftedrs.py | Python | gpl-2.0 | 1,542 | [
"MOOSE"
] | 173cfd5f4e70c13e300d5adc73c1cf1642582ca0eb6c7306e0d11eee6080da7b |
# Copyright (C) 2015 Henrique Pereira Coutada Miranda
# All rights reserved.
#
# This file is part of yambopy
#
#
from yambopy import *
from yambopy.plot import *
import os
import re
from copy import *
from netCDF4 import Dataset
class YamboOut():
"""
Class to read yambo output files and pack them in a .json ... | henriquemiranda/yambopy | yambopy/io/outputfile.py | Python | bsd-3-clause | 7,374 | [
"Yambo"
] | 2cd3843fbac4b35f9c31343eba04bba33b6781ee48fdfff221627a3d0dd3eb62 |
from domain.neuron import Neuron
from math import e
class SigmoidNeuron(Neuron):
"""Represents a hidden neuron inside the neural network. Aggregates input from synapses, k, and generates a result
based on (1 / ( 1 + e^k )), which will be a number in the range of (0, 1)"""
def __init__(self, synapses)... | hesslink111/neuralnetworknibbles | domain/sigmoidneuron.py | Python | mit | 533 | [
"NEURON"
] | adf525877945154ad9d2bf97ce39345ff0badabc6e5c7039ce93a9d4e6325de0 |
import numpy as np
from bokeh.plotting import output_file, show, figure
from bokeh.models import ColumnDataSource, HoverTool, TapTool
from bokeh.layouts import gridplot
from bokeh.palettes import Spectral6
output_file('multi_line.html')
PLOT_DEFAULTS = dict(plot_width=450, plot_height=300)
from collections import d... | birdsarah/bokeh-miscellany | old/multi_line.py | Python | gpl-2.0 | 1,736 | [
"Gaussian"
] | b995574eda72a18a5442174ec8465f613b99f5d17465307bdc4622f8bb184ada |
import util
np_dw_loop_src = """
def do_while(func, niters, *args, **kwargs):
import sys
i = 0
if niters is None:
niters = sys.maxsize
while i < niters:
cond = func(*args, **kwargs)
if cond is not None and not cond:
break
i += 1
"""
class test_loop_fixed:
... | madsbk/bohrium | test/python/tests/test_loop.py | Python | apache-2.0 | 12,154 | [
"Gaussian"
] | 75eb9c26bb5202edd583ae90787ab2980e1eed0d34c9dfb07eb01b97a3de1a4f |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2010 Brian G. Matherly
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your optio... | pmghalvorsen/gramps_branch | gramps/gen/user.py | Python | gpl-2.0 | 5,421 | [
"Brian"
] | 0f865f54969d838fda593975585544aa309e4cf7dcc87c665bce3d13b81f2ce1 |
from django.conf import settings
from tao.models import Snapshot
from tao.settings import MODULE_INDICES
from tao.tests.integration_tests.helper import LiveServerMGFTest
from tao.tests.support.factories import UserFactory, SimulationFactory, GalaxyModelFactory, DataSetFactory, DataSetPropertyFactory, JobFactory, Stella... | IntersectAustralia/asvo-tao | web/tao/tests/integration_tests/submit_light_cone_tests.py | Python | gpl-3.0 | 12,689 | [
"VisIt"
] | 1195cab8695ed15256dca5aadae29ea5e24fda05ec6c188c63759e922386d286 |
import ckan.lib.base as base
import logging
import ckan.plugins as p
from ckan.lib.helpers import json
import ckan.lib.uploader as uploader
import ckan.lib.munge as munge
from datetime import datetime
import os
import shutil
import httplib
from .. import helpers as uebhelper
tk = p.toolkit
_ = tk._ # translator fu... | CI-WATER/portal | src/ckanext-uebpackage/ckanext/uebpackage/controllers/packagecreate.py | Python | bsd-3-clause | 127,106 | [
"NetCDF"
] | c006777ed75b1b2bfa75e3a2236db516fb1f3cc52a160887a7b2c4d653ceb871 |
# -*- coding: utf-8 -*-
#
# This file is part of Invenio-Query-Parser.
# Copyright (C) 2014, 2015 CERN.
#
# Invenio-Query-Parser 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... | Panos512/invenio-query-parser | invenio_query_parser/walkers/pypeg_to_ast.py | Python | gpl-2.0 | 4,332 | [
"VisIt"
] | d5da2862abc94be5507d4aacb5db5110ed206df48cbef33cf9bc79906799628b |
# Copyright (C) 2013 Oskar Maier
#
# 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 is distributed in ... | loli/medpy | medpy/features/histogram.py | Python | gpl-3.0 | 19,488 | [
"Gaussian"
] | d42a91840c789b431a3fd4e7e54c52d320559c8ed5e88fedbc6d7b819dce0820 |
import sys
from distutils.core import setup
if (sys.version_info.major, sys.version_info.minor) < (3, 4):
sys.exit("Python < 3.4 not supported.")
setup(
name='octopus-tools',
version='0.1',
license='LGPLv3',
url='https://github.com/octopus-platform/octopus-tools',
packages=['octopus', 'octopus... | octopus-platform/joern | projects/octopus/python/octopus-tools/setup.py | Python | lgpl-3.0 | 919 | [
"Octopus"
] | f297eba9a1f0806b679ecd853787f056d1b2634e2ebca9d6da858a85a7b7b595 |
import os
import urllib
import cgi
import datetime
import logging
import sys
from pytz.gae import pytz
from google.appengine.api import users
from google.appengine.ext import ndb
import jinja2
import webapp2
from twilio.rest import TwilioRestClient
# import config file
# this config file defines three functions th... | kurtisharms/ubcexamcram | main.py | Python | gpl-3.0 | 9,829 | [
"VisIt"
] | 500f8ba257e72e43f8e3b8a9a55d32cb1541e3e26ec780ef83153521af09d7d4 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Usage example:
# python comments.py --videoid='<video_id>' --text='<text>'
import httplib2
import os
import sys
import unicodedata
from apiclient.discovery import build_from_document
from apiclient.errors import HttpError
from oauth2client.client import flow_from_clientsecr... | rafahub/SistemasInteligentes | comments.py | Python | gpl-2.0 | 7,147 | [
"VisIt"
] | 25578d2512dfaa9a4a403d2948b459b94547209519064d0390af7f080213d961 |
from gpaw.grid_descriptor import GridDescriptor
gd = GridDescriptor([4, 4, 4])
a = gd.empty(dtype=complex)
a[:] = 1.0
assert gd.integrate(a.real, a.real) == 1.0
| robwarm/gpaw-symm | gpaw/test/gd.py | Python | gpl-3.0 | 161 | [
"GPAW"
] | 8fb057ecf1fe4ea27ce54572f21067241f62cffebdf61591807bccae672df33b |
import ocl
import camvtk
import time
import vtk
import datetime
import math
import random
def drawVertex(myscreen, p, vertexColor, rad=1):
myscreen.addActor( camvtk.Sphere( center=(p.x,p.y,p.z), radius=rad, color=vertexColor ) )
def drawEdge(myscreen, e, edgeColor=camvtk.yellow):
p1 = e[0]
p2 = e[1]
... | AlanZatarain/opencamlib | scripts/voronoi/voronoi_bisectors.py | Python | gpl-3.0 | 8,936 | [
"VTK"
] | 78f20a7682c3f0ad50266ad3197f7d121e6d1e37f739c771595e03eb0e28502b |
#!/usr/bin/env python
"""Application controller for muscle 3.8
"""
from os import remove
from cogent.app.parameters import FlagParameter, ValuedParameter
from cogent.app.util import CommandLineApplication, ResultPath, \
get_tmp_filename, guess_input_handler
from random import choice
from cogent.core.alignment impor... | sauloal/cnidaria | scripts/venv/lib/python2.7/site-packages/cogent/app/muscle_v38.py | Python | mit | 29,116 | [
"BLAST"
] | 516624b7b7b32fe5f5cd9e5f4fb2c8b2be861d5698146ff213d312c67d2512e0 |
from __future__ import print_function
import optparse
import numpy as np
from ase.data import covalent_radii
from ase.io.cube import read_cube_data
from ase.data.colors import cpk_colors
from ase.calculators.calculator import get_calculator
def plot(atoms, data, contours):
"""Plot atoms, unit-cell and iso-surfa... | PHOTOX/fuase | ase/ase/visualize/mlab.py | Python | gpl-2.0 | 4,171 | [
"ASE",
"Mayavi"
] | 85e05b1394d00ce483be721c56dc876d7d48fab76cd4bb23945d702c7d35bb99 |
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class BWAInstaller(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
for node in nodes:
log.info("Installing BWA 0.7.10 on %s" % (node.alias))
node.ssh.execute('wget -c -P /opt/software/bwa http://source... | meissnert/StarCluster-Plugins | BWA_0_7_10.py | Python | mit | 950 | [
"BWA"
] | e9e67799cbc3234ce6910b36c424f882786646723293a994d327cbb918b219b2 |
<<<<<<< HEAD
<<<<<<< HEAD
"""Guess the MIME type of a file.
This module defines two useful functions:
guess_type(url, strict=True) -- guess the MIME type and encoding of a URL.
guess_extension(type, strict=True) -- guess the extension for a given MIME type.
It also contains the following, for tuning the behavior:
... | ArcherSys/ArcherSys | Lib/mimetypes.py | Python | mit | 62,345 | [
"NetCDF"
] | 61ca69dfa1f64a908b78c2c83bbb5134756a2f8dbd08beefa63994e258c57b11 |
"""
test views
"""
import datetime
import json
import re
import pytz
from mock import patch
from nose.plugins.attrib import attr
from capa.tests.response_xml_factory import StringResponseXMLFactory
from courseware.field_overrides import OverrideFieldData # pylint: disable=import-error
from courseware.tests.factories ... | unicri/edx-platform | lms/djangoapps/ccx/tests/test_views.py | Python | agpl-3.0 | 30,539 | [
"VisIt"
] | 6b0eb6905185dbe97be4149533a193d74b65a33863fbe75d71adf08cd6c521b1 |
from django.db import models
from django.apps import apps
from django.core.exceptions import ValidationError
from edc_base.model.validators import (date_not_before_study_start, date_not_future,
datetime_not_future, datetime_not_before_study_start)
from edc_constants.choices impor... | TshepangRas/tshilo-dikotla | td_maternal/models/enrollment_mixin.py | Python | gpl-2.0 | 7,672 | [
"VisIt"
] | 327f965843ce0856d3af7e532aa2559befdc479c2b1426098edc8d47ec54c7f0 |
"""
VTK render model
"""
import logging
from atom.api import Atom, Dict, Str, observe, Value, Int, Tuple, List
from functools import partial
import vtk
logging.basicConfig(format='%(asctime)s: %(levelname)s: %(message)s', level=logging.DEBUG)
INTERACTION_STYLES = {
'TrackBallActor': vtk.vtkInteractorStyleTrac... | viz4biz/PyDataNYC2015 | vtklib/renderers.py | Python | apache-2.0 | 8,681 | [
"VTK"
] | c664fb1afb838b2b6f36b1ad865e94d220b50d05ed461f779ba5946365ee42b7 |
#!/usr/bin/env python
'''
This program takes one mandatory parameter, the VTK base folder, and up to
four optional parameters corresponding to the names of the testing language
subfolders, e.g Cxx, Python, Tcl and, possibly, an optional print option along
with some other optional options.
If no optional para... | hlzz/dotfiles | graphics/VTK-7.0.0/Utilities/Maintenance/VTKTestsByLanguage.py | Python | bsd-3-clause | 18,132 | [
"VTK"
] | cc87aee0c59ea4660f2f0818bed59ec7752dd487a01545e9d3fd7234dc2dd710 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.