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 |
|---|---|---|---|---|---|---|---|
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2015 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors: Kyle A Beauchamp, Jason Swails... | leeping/mdtraj | mdtraj/geometry/distance.py | Python | lgpl-2.1 | 11,690 | [
"MDTraj"
] | 94127413b1ff4c931bcbbc85671c4ce4e16214f25ef4a283c6ffec327e2f62a8 |
#!/usr/bin/env python
from datetime import date, time, datetime
import os.path
from django.test import TestCase
from panda import utils
from panda.exceptions import TypeCoercionError
from panda.tests import utils as test_utils
class TestCSV(TestCase):
def setUp(self):
self.path = os.path.join(test_utils... | ibrahimcesar/panda | panda/tests/test_utils.py | Python | mit | 7,154 | [
"Brian"
] | f8d9d71a5e19d6bf0cde47a60a104d773c0be745c6f70b9a892bc008148ae95b |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
description = """
Octopus is a Python framework for microservices.
"""
requirements = [
# TODO: ... | OctopusProject/octopus | setup.py | Python | isc | 1,452 | [
"Octopus"
] | c81d7d9aa82dbde53921519b5f2dbf3b220115f87ddb44c18e12faed316adbcc |
#!/usr/bin/python
# wpa-shoot
#WPAShoot Adalah Tools Untuk Audit Keamanan Jaringan Wireless Yang Berbasis aircrack-ng suite
#Jika Anda Ingin Mengedit Source Code Tolong Sertakan Nama Code Writernya.
#
#Version: 1.0 Beta
#Code Writer: HardGhost
#Web Page : Hardghost-sec.blogspot.com
#
#Jika Terjadi Error Pada File WPASh... | hardghost07/wpa-shoot | wpashot2.py | Python | gpl-3.0 | 6,958 | [
"VisIt"
] | eeca1f5bff1d61b4c22e6c9910049f2c3fa8fddbf3cbef1416a115c2af4bef1a |
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
from organizations.views import (OrganizationList, OrganizationDetail,
OrganizationUpdate, OrganizationDelete, OrganizationCreate,
OrganizationUserList, OrganizationUserDetail, OrganizationUserUpdate,
... | meletakis/collato | esn/organizations/urls.py | Python | gpl-2.0 | 2,503 | [
"VisIt"
] | 88c4f05c2c3b5a958f67677d79ab9343c393623ea80128628ffd755cdb1434aa |
from __future__ import absolute_import
import unittest
import numpy as np
import warnings
from pymatgen.analysis.elasticity.stress import Stress
from pymatgen.analysis.elasticity.strain import Deformation
from pymatgen.util.testing import PymatgenTest
class StressTest(PymatgenTest):
def setUp(self):
se... | matk86/pymatgen | pymatgen/analysis/elasticity/tests/test_stress.py | Python | mit | 2,805 | [
"pymatgen"
] | 6a9f6ece8188eec30c8cb8b42d350c5a40d9d90b254faaa45b4e91d4359218df |
##############################################################################
# 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... | EmreAtes/spack | var/spack/repos/builtin/packages/r-bumphunter/package.py | Python | lgpl-2.1 | 2,364 | [
"Bioconductor"
] | 6e25faf6c438423acac7c984b9d6af54e6be9ee639382d51e81bfcd88f1b8c32 |
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2016 Haggi Krey, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of... | haggi/appleseed-maya | module/scripts/appleseed_maya/appleseedmenu.py | Python | mit | 9,798 | [
"VisIt"
] | bed8f80995a39499f5b88afdfae0f3d164ec303a8ab1ebcf5b60dcf983263fc5 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Mimesis documentation build configuration file, created by
# sphinx-quickstart on Tue Oct 18 14:11:49 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# au... | lk-geimfari/church | docs/conf.py | Python | mit | 10,495 | [
"Octopus"
] | a8ac8692248f7d64ae4fbc3fca9331fbc7b8e84b723a828f97bad627b039dd0e |
# The OARN Relief Nursery Database
# Copyright (C) 2015 Oregon Association of Relief Nurseries
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at... | wire-rabbit/oarn-database | oarndb/tests/test_ref_models.py | Python | agpl-3.0 | 11,411 | [
"VisIt"
] | 714f38ca9070b0ac26380776ee4f16c2e2507077f7b20b7443b90487c508b505 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import sys
import os
from .lib.common import BASE_DIR
fro... | F5Networks/f5-ansible-modules | tasks/test.py | Python | mit | 2,665 | [
"Galaxy"
] | b8e34e2525132c885b3c9ac24d39243f538beccc034b755df6a752c1c310960c |
# -*- coding: utf-8 -*-
from __future__ import print_function
from pandas.compat import map, reduce, range, lrange
from pandas.io.common import urlopen
from pandas.io import json
import pandas
import numpy as np
import warnings
# This list of country codes was pulled from wikipedia during October 2014.
# While some ... | bdh1011/wau | venv/lib/python2.7/site-packages/pandas/io/wb.py | Python | mit | 12,305 | [
"BWA"
] | e397c12e962c7eb047dee62932353f6b9faa7e5ee752ba2ee1e2acec6555871d |
"""
Generate samples of synthetic data sets.
"""
# Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel,
# G. Louppe, J. Nothman
# License: BSD 3 clause
import numbers
import array
import numpy as np
from scipy import linalg
import scipy.sparse as sp
from ..preprocessing import MultiLabelBin... | herilalaina/scikit-learn | sklearn/datasets/samples_generator.py | Python | bsd-3-clause | 57,939 | [
"Gaussian"
] | d4d49723851e5ac5d4c6512485227c6392c91102e31fa82c54d9ba1879ad1bd1 |
# -*- coding: utf-8 -*-
"""Tests for collapse functions."""
import unittest
from pybel import BELGraph
from pybel.constants import (
ASSOCIATION, DECREASES, DIRECTLY_INCREASES, INCREASES, POSITIVE_CORRELATION,
)
from pybel.dsl import Abundance, Gene, MicroRna, Pathology, Protein, Rna
from pybel.testing.utils imp... | pybel/pybel-tools | tests/test_mutation/test_collapse.py | Python | mit | 2,708 | [
"Pybel"
] | d568fe63f2a3fd6e85e047d7b517397c26ef8f10839e6bf923cb771de190d505 |
import time
import argparse
import numpy as np
import tensorflow as tf
import reader
import model
import pickle
import os
def parsing_args():
parser = argparse.ArgumentParser()
parser.add_argument('--mode', type=str, default='train',
help='train or test')
parser.add_argument('--i... | darongliu/Lstm_Turing_LM_tf | exp_model_composition/all/lstm+attention_all+pretrained+entropy/run.py | Python | mit | 13,196 | [
"NEURON"
] | 39cedf39a81b40a725c3c0a0d2022316a0110e28e355a8b815cd57b2aa7c9493 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# care_restart_protein_extractor.py
#
# Copyright 2015 Carlos Eduardo Sequeiros Borja <casebor@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 So... | casebor/labioscripts | python/restartProteinExtractor.py | Python | gpl-3.0 | 6,673 | [
"Amber"
] | e035bed6904fd31dccb9cd57d76364523b225f63331d54947654fea6ffd96190 |
# Orca
#
# Copyright 2006-2009 Sun Microsystems Inc.
#
# 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 version.
#
# This... | ruibarreira/linuxtrail | usr/lib/python3/dist-packages/orca/scripts/apps/gnome-window-properties/formatting.py | Python | gpl-3.0 | 1,366 | [
"ORCA"
] | 1e5047a32253c900e2f77db2f1a611cb0630161d79eaac3742dcae27c9a992c6 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Michal Kalewski <mkalewski at cs.put.poznan.pl>
#
# This file is a part of the Simple Network Simulator (sim2net) project.
# USE, MODIFICATION, COPYING AND DISTRIBUTION OF THIS SOFTWARE IS SUBJECT TO
# THE TERMS AND CONDITIONS OF THE MIT LICENSE. YOU SHOULD H... | mkalewski/sim2net | sim2net/area/__init__.py | Python | mit | 827 | [
"VisIt"
] | 3c8f86467f21eaa3d0fdce5504445fd87b291c116bfc0c98ac972c9d97ed15c9 |
"""Each ElkM1 area will be created as a separate alarm_control_panel."""
from elkm1_lib.const import AlarmState, ArmedStatus, ArmLevel, ArmUpState
import voluptuous as vol
import homeassistant.components.alarm_control_panel as alarm
from homeassistant.components.alarm_control_panel.const import (
SUPPORT_ALARM_ARM... | qedi-r/home-assistant | homeassistant/components/elkm1/alarm_control_panel.py | Python | apache-2.0 | 7,985 | [
"Elk"
] | 5392f6cc8ba476e01a24c34f7b908b4aba8b630af2fff3645943dbb99dc58380 |
#
# This file is part of Healpy.
#
# Healpy 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.
#
# Healpy is distributed in the hope... | mreineck/healpy | healpy/sphtfunc.py | Python | gpl-2.0 | 41,753 | [
"Gaussian"
] | a98aa78a676d52908fa13003e1d77b0acdc685e581258ab7b9d579f925e13e04 |
import tensorflow as tf # neural network for function approximation
import gym # environment
import numpy as np # matrix operation and math functions
from gym import wrappers
import gym_morph # customized environment for cart-pole
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import time
star... | GitYiheng/reinforcement_learning_test | test03_monte_carlo/t32_rlvps01.py | Python | mit | 7,662 | [
"NEURON"
] | 4d05da6ea713db7c4019965c915b8435e6caa066ef1d50b2c4951ac0fb3b8593 |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013 Red Hat, Inc.
# Copyright (c) 2010 Ville Skyttä
# Copyright (c) 2009 Tim Lauridsen
# Copyright (c) 2007 Marcus Kuhn
#
# kitchen 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
# ... | fedora-infra/kitchen | kitchen3/kitchen/text/display.py | Python | lgpl-2.1 | 40,377 | [
"NetCDF"
] | 6c4ed66d038ba7ba83d0fa33426ceb7b9df4230d33ff19d6f4098f977a6de8ab |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Demonstrate automatic resampling of textures (i.e., OpenGL only handles
# power of two texture maps. This examples exercise's vtk's automatic
# power of two resampling).
#
... | timkrentz/SunTracker | IMU/VTK-6.2.0/Imaging/Core/Testing/Python/resampledTexture.py | Python | mit | 1,665 | [
"VTK"
] | 3eec580c133de96ccb22decc4b5d3b7a6a08a2fa4a3e47e1e559a95843dea6a4 |
# -*- coding: utf-8 -*-
# ***********************************************************************
# Copyright (C) 2014 - 2019 Oscar Gerardo Lazo Arjona *
# <oscar.lazoarjona@physics.ox.ac.uk> *
# *
... | oscarlazoarjona/fast | fast/evolution.py | Python | gpl-3.0 | 19,273 | [
"NetCDF"
] | 030c0f58ef3fef2802d0455e4bc7591e5d67d7c8e9c31f972612808cb03ae10f |
from skimage.draw import ellipse, polygon, circle, line, bezier_curve
from skimage.filters import gabor_kernel
import numpy as np
ADD = 'add'
COMPOSITE = 'composite'
COLOR_FROM_TARGET = None
def image_error(image, target):
return ((image - target) ** 2).mean()
def rot2d(th):
return np.array([[ np.cos... | dyf/primopt | primitive.py | Python | bsd-2-clause | 12,393 | [
"Gaussian"
] | 92029e1df58ee29204737eacf5bde12bbd1b3be1e21bdd0cac1a028236da275a |
# Copyright (c) Charl P. Botha, TU Delft
# All rights reserved.
# See COPYRIGHT for details.
# NOTES:
# you can't put the RWI in a StaticBox, it never manages to appear.
# mode: add / subtract
# tool: new region growing, level set (with existing mask), draw
# closed polygon, delete
# ARGH. region growing results in... | nagyistoce/devide | modules/viewers/Slicinator.py | Python | bsd-3-clause | 7,693 | [
"VTK"
] | 6f77d780b9a214e60819bfe969bfc7fcd95f09eb1764b5645dc0720020cf9227 |
##############################################################################
# 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... | krafczyk/spack | var/spack/repos/builtin/packages/grib-api/package.py | Python | lgpl-2.1 | 6,738 | [
"NetCDF"
] | 1b6f1435b7c37a629f0a86c85cb35e5ed8b443da2622f70235dabf8958febb3c |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
The widget is called from web2py.
"""
import datetime
import sys
import cStringIO
import time
import threa... | jefftc/changlab | web2py/gluon/widget.py | Python | mit | 41,575 | [
"VisIt"
] | 6130ee6fb0f181b032c09b1a84ce346ef0b752a75a7e9682235ea91498d03550 |
#-*- coding: utf-8 -*-
#
# Copyright (c) 2015 blackPanther OS - Charles Barcza
# GPL
#
from smart.transaction import INSTALL, REMOVE, UPGRADE, REINSTALL, KEEP, FIX
from smart.transaction import Transaction, ChangeSet, checkPackagesSimple
from smart.transaction import PolicyInstall, PolicyRemove, PolicyUpgrade
from smar... | blackPantherOS/packagemanagement | smartpm/smart/interfaces/qt5/interactive.py | Python | apache-2.0 | 38,881 | [
"CRYSTAL"
] | 561a5756b47efa1eea82d60064aed3721ddfc52cc10dd7f4fa0385bb47049d42 |
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License
# is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | artemsok/sockeye | test/common.py | Python | apache-2.0 | 32,490 | [
"Gaussian"
] | 86266c93ef257561fa2ba24aec210857fddb4bd943b3ec699cfb1aec7376a156 |
"""
Courseware views functions
"""
import logging
import json
import textwrap
import urllib
from collections import OrderedDict
from datetime import datetime
from django.utils.translation import ugettext as _
from django.conf import settings
from django.core.context_processors import csrf
from django.core.exceptions... | simbs/edx-platform | lms/djangoapps/courseware/views.py | Python | agpl-3.0 | 66,022 | [
"VisIt"
] | c54207a15a326f705375a77517bdf08c708ad12b560ecb82eabcf3a04fe13455 |
# Copyright (C) 2015-2018 Hydriz Scholz
#
# 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 distribute... | Hydriz/Balchivist | balchivist/__init__.py | Python | gpl-3.0 | 1,058 | [
"VisIt"
] | 73f176d872e6a428f287f3ea9dc54584cf650453e26c682d420076e0425fb928 |
# * *************************************************************
# *
# * Soft Active Mater on Surfaces (SAMoS)
# *
# * Author: Rastko Sknepnek
# *
# * Division of Physics
# * School of Engineering, Physics and Mathematics
# * University of Dundee
# *
# * (c) 2013, 2014
# *
# * School of Scienc... | sknepneklab/SAMoS | utils/RastkoVisu/dat2vtp.py | Python | gpl-3.0 | 10,485 | [
"ParaView",
"VTK"
] | 56486a0d697d5abd744faa3707a8f75cc37ed4059b600aef05e81c5138c77b3d |
# coding: utf-8
from __future__ import division, unicode_literals
"""
Created on Jul 16, 2012
"""
__author__ = "Shyue Ping Ong, Stephen Dacek"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyue@mit.edu"
__date__ = "Jul 16, 2012"
import u... | rousseab/pymatgen | pymatgen/io/vasp/tests/test_outputs.py | Python | mit | 25,574 | [
"VASP",
"pymatgen"
] | 26eeeef9b126bf35b93207b1d0662ddcb0792f300078d7e57fc12c47b43e76b8 |
# /polysquarecmakelinter/check_correctness.py
#
# Linter checks for potentially buggy behavior
#
# See /LICENCE.md for Copyright information
"""Linter checks for potentially buggy behavior."""
import re
from collections import namedtuple
from cmakeast import ast_visitor
from cmakeast.ast import WordType
from polys... | polysquare/polysquare-cmake-linter | polysquarecmakelinter/check_correctness.py | Python | mit | 2,748 | [
"VisIt"
] | 4477d44c85c0ab621ca5428b100da933e9973583a0da57281cfe9da1645af843 |
import tensorflow as tf
class VariationalAutoencoder(object):
def __init__(self, n_input, n_hidden, optimizer = tf.train.AdamOptimizer()):
self.n_input = n_input
self.n_hidden = n_hidden
network_weights = self._initialize_weights()
self.weights = network_weights
# model
... | unnikrishnankgs/va | venv/lib/python3.5/site-packages/tensorflow/models/autoencoder/autoencoder_models/VariationalAutoencoder.py | Python | bsd-2-clause | 3,068 | [
"Gaussian"
] | c061d4542b89171198333e1b6bc581ab1fd4fd32535990772baffd5e67c72cd4 |
# -*- coding: utf-8 -*-
'''
Module for gathering and managing information about MooseFS
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils
def __virtual__():
'''
Only load if the mfs commands are installed
'''
if salt.utils.which('mfsgetgoal'):
return 'moosefs'
... | stephane-martin/salt-debian-packaging | salt-2016.3.3/salt/modules/moosefs.py | Python | apache-2.0 | 4,033 | [
"MOOSE"
] | 0c1e1cd3ff2e86764a0602d61fa4d256a7e58333f6308e7ff24642224bc02e98 |
#!/usr/bin/env python
#coding=utf-8
# Nathive (and this file) 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 newer.
#
# You should have received a copy of the GNU General ... | johnnyLadders/Nathive_CITA | nathive/gui/cursor.py | Python | gpl-3.0 | 2,111 | [
"FLEUR"
] | a058f569a289afdc5991ce943be762b506a94c6e75bd08b8b7f13ca060fed8c5 |
"""
========================================================================
Concentration Prior Type Analysis of Variation Bayesian Gaussian Mixture
========================================================================
This example plots the ellipsoids obtained from a toy dataset (mixture of three
Gaussians) fitte... | manhhomienbienthuy/scikit-learn | examples/mixture/plot_concentration_prior.py | Python | bsd-3-clause | 5,879 | [
"Gaussian"
] | f0061bfcd1c24e8e5fcf8f7a6d0ffef3a72b3e636e1e53a3bb253c66e524e4fe |
from lib_spm import *
from scipy.stats import norm
#out_dir = os.path.join('/data42s/comparat/firefly/v1_1_0/figures', 'mass-redshift-presentation')
out_dir = os.path.join(os.environ['HOME'], 'wwwDir', 'firefly', 'fixed_lib')
def plotDIFF(imf_ref, imf_1, imf_2, m_bins = n.arange(-10., 10., 0.1)):
print('eboss')
stel... | JohanComparat/pySU | spm/bin_SMF/plot_distribution_masses_imf_diff.py | Python | cc0-1.0 | 6,291 | [
"Firefly",
"Galaxy"
] | 87d3c0e134ba754f73680e562769708c57be7baa067887b2a63da6799e855aaa |
"""
Copyright (C) 2014, Jaguar Land Rover
This program is licensed under the terms and conditions of the
Mozilla Public License, version 2.0. The full text of the
Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
Rudolf Streif (rstreif@jaguarlandrover.com)
"""
from django.db import models
from django.... | PDXostc/rvi_backend | web/vehicles/models.py | Python | mpl-2.0 | 3,049 | [
"Jaguar"
] | 0e069f33f1bc42ee4567c002b89fdbce29aa395a3098f6b2e18bdc1d67958b56 |
import threading
import time
from amber.common import runtime
from navi.web.page import run_flask, stop_flask
from navi.web.push import run_tornado, stop_tornado
from navi.app.main import run_main, stop_main
_registry = dict()
def stop():
_registry['alive'] = False
if __name__ == '__main__':
_tornado_th... | project-capo/app-drive-and-visualize | src/navi/main.py | Python | unlicense | 856 | [
"Amber"
] | 4376908258a34030798aa6d2e30e5111c6d2cb79f02911938a5a8f4887365153 |
#
# @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/qcdb/molpro2.py | Python | lgpl-3.0 | 27,439 | [
"CFOUR",
"Psi4"
] | 2c6f5ac3253f8c071047268583b3d7221b0dbf4e78984862ded9810a0712e394 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This script implements the Double Metaphone algorythm (c) 1998, 1999 by Lawrence Philips
# it was translated to Python from the C source written by Kevin Atkinson (http://aspell.net/metaphone/)
# By Andrew Collins - January 12, 2007 who claims no rights to this work
# http://... | nwinter/bantling | scripts/metaphone2.py | Python | mit | 15,153 | [
"Brian"
] | e514dfa280348a6648e613e9a105558b85a985641d6bafdbef525ad29eecd181 |
#!/usr/bin/env python2
from __future__ import print_function
import os, subprocess, re
from distutils.core import setup, Command
from distutils.command.sdist import sdist as _sdist
from distutils.command.build import build as _build
# The following code is taken from
# https://github.com/warner/python-ecdsa/blob/f03ab... | jeffweeksio/sir | setup.py | Python | mit | 3,576 | [
"Brian"
] | 94afdb7a96ba81816407c4dd1a493b2d7c9cf2f0623c2d156d8ca7e33771f452 |
import sys
import tempfile
import shutil
import time
import os
import pandas
sys.path.insert(1, "../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.gbm import H2OGradientBoostingEstimator
genmodel_name = "h2o-genmodel.jar"
def download_mojo(model, mojo_zip_path, genmodel_path=None):
mojo_z... | h2oai/h2o-dev | h2o-py/tests/testdir_misc/pyunit_mojo_predict.py | Python | apache-2.0 | 10,869 | [
"Gaussian"
] | 69bfddb0e378e83f69c71fc7637276abe3425d73c45be80885c1b921a98cad2d |
#!/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.
import copy
import os
import pyauto_functional # Must be imported before pyauto
import pyauto
import test_utils
class NTPTest(p... | ropik/chromium | chrome/test/functional/ntp.py | Python | bsd-3-clause | 19,920 | [
"VisIt"
] | 373376575f0bdf047e0d8a44d7b6d23b42876193777684b78c6ca484ccc784cb |
import fnmatch
import os,sys
import tinctest
from mpp.lib.PSQL import PSQL
from partitioning.partitionindexes import PartitionIndexesSQLTestCase
class PartitionIndexesTests(PartitionIndexesSQLTestCase):
'''
These tests are designed to validate that index scans are being used and the SQL returns correct results... | cjcjameson/gpdb | src/test/tinc/tincrepo/partitioning/partitionindexes/test_partitionindexes.py | Python | apache-2.0 | 415 | [
"ORCA"
] | fadb8e77e6a3db7d75d7e063205eede205375f76837a9c96c1d69dea302ad039 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Plot Vertical loss of Ox by family. Function can also print budget to csv.
This is an example script to use AC_tools KPP mechanism parsing/tagging functions. The
python AC_tools/Scripts/analyse_vertical_Ox_loss_by_route_in_KPP_mech.py <working directory with NetCDF of GEO... | tsherwen/AC_tools | scripts/KPP_analyse_vertical_Ox_loss_by_route_NetCDF.py | Python | mit | 3,802 | [
"NetCDF"
] | ec790084b3f0767d58434f8a8ba14e01d19d70bb2e9e3ec0f8292e8e78b29d00 |
from pyml.maths import Clinear_algebra
from pyml.maths.math_utils import argsort
def dot_product(u, v):
"""
Matrix/matrix, matrix/vector and vector/vector dot product
:param u:
:param v:
:return:
Example:
--------
>>> from pyml.maths.linear_algebra import dot_product
>>> u = [1,... | gf712/PyML | pyml/maths/linear_algebra.py | Python | mit | 8,018 | [
"Gaussian"
] | 63f5274abad12c573528851e547bad73120333c66b393d5c5f05bb4a5f4a4e3c |
"""cpassdb - GPG
This module serves as subprocess bridge to the GnuPG CLI tools.
"""
__author__ = "Brian Wiborg <baccenfutter@c-base.org>"
__license__ = "GNU/GPLv2"
import os
import re
import gnupg
import commands
from .config import GNUPG_PATH, GNUPG_CONF, ADMIN_GROUP
gpg_group_regex = re.compile(r'^group\s*?(?P<na... | baccenfutter/cpassdb | cpassdb/gpg.py | Python | gpl-2.0 | 10,591 | [
"Brian"
] | c3435dc7c0081d49f59416792a4ee67bb9732b3151e271d7f7bbe3626e58b28a |
import json
from coalib.bearlib import deprecate_settings
from coalib.bearlib.abstractions.Linter import linter
from dependency_management.requirements.NpmRequirement import NpmRequirement
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
from coalib.results.Result import Result
from coala_utils.param_convers... | IPMITMO/statan | coala-bears/bears/coffee_script/CoffeeLintBear.py | Python | mit | 15,115 | [
"VisIt"
] | 5e8a41340351c5380fb15e3d12420dbf5213972a6fb348be8bbc0587826a0299 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import numpy as np
import warnings
import scipy.constants as const
from monty.json import MSONable
from pymatgen.analysis.structure_matcher import StructureMatcher, \
OrderDisorderElementComparator
from p... | dongsenfo/pymatgen | pymatgen/analysis/diffusion_analyzer.py | Python | mit | 37,786 | [
"VASP",
"pymatgen"
] | a3158512224b5045145d9c0ced9a451eaad1e2787ccf7f051f45119dd273ccfd |
#!/usr/bin/env python
__author__ = "Will Van Treuren"
__copyright__ = "Copyright 2013, The QIIME Project"
__credits__ = ["Will Van Treuren, Julia Goodrich"]
__license__ = "GPL"
__version__ = "1.8.0-dev"
__maintainer__ = "Will Van Treuren"
__email__ = "wdwvt1@gmail.com"
from numpy import asarray
from qiime.parse impor... | wasade/qiime | qiime/make_bipartite_network.py | Python | gpl-2.0 | 11,260 | [
"Cytoscape"
] | 880aed7f03c1af2e8bb9d9a1aa8ce059543cb3779a5c7cfbdcf7b7e6fddfd9d7 |
# -*- coding: utf-8 -*-
"""This file contains a plugin for parsing Google Analytics cookies."""
from __future__ import unicode_literals
from urllib import parse as urlparse
from dfdatetime import posix_time as dfdatetime_posix_time
from dfdatetime import semantic_time as dfdatetime_semantic_time
from plaso.containe... | rgayon/plaso | plaso/parsers/cookie_plugins/ganalytics.py | Python | apache-2.0 | 13,196 | [
"VisIt"
] | e608c9620c0362580528dd51e61d82a173acb6f3e5d58a851a10d79d96d7f25d |
from datetime import datetime, timedelta
from couchdbkit import ResourceNotFound
from django.utils.translation import ugettext_noop
from sqlagg.base import AliasColumn
from sqlagg.columns import SimpleColumn
from sqlagg.filters import EQ, IN
from corehq.apps.groups.models import Group
from corehq.apps.reports.datatable... | qedsoftware/commcare-hq | custom/succeed/reports/all_patients.py | Python | bsd-3-clause | 8,698 | [
"VisIt"
] | 66b616381464a16f01aa62bdbcfeb0a029cd43be1b969685df765e06adb37a72 |
"""A kernel manager for multiple kernels.
Authors:
* Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed ... | cloud9ers/gurumate | environment/lib/python2.7/site-packages/IPython/frontend/html/notebook/kernelmanager.py | Python | lgpl-3.0 | 12,221 | [
"Brian"
] | 411abc104894c78beac1531f9afdb2d73f30461f48f268f07650a2eef759704f |
from __future__ import (absolute_import, division, print_function)
from mantid.kernel import logger
import AbinsModules
import six
from mantid.kernel import Atom
class GeneralAbInitioProgramName(type):
def __str__(self):
return self.__name__
# noinspection PyMethodMayBeStatic
@six.add_metaclass(GeneralA... | ScreamingUdder/mantid | scripts/AbinsModules/GeneralAbInitioProgram.py | Python | gpl-3.0 | 10,789 | [
"CASTEP"
] | fdfa7d2d2925924d0acfb1f0b8d1f3e405446ab8de9a7614c53f96e4ca894683 |
# 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... | BackupTheBerlios/espressopp | src/tools/convert/lammps.py | Python | gpl-3.0 | 16,080 | [
"ESPResSo",
"LAMMPS"
] | 4b0cbdf15f75b7f7eb5f6e1b40261b5085decd19599cd43e55ab26a8ed478e38 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# refunctions - runtime environment functions
# Copyright (C) 2003-2014 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public ... | heromod/migrid | mig/shared/refunctions.py | Python | gpl-2.0 | 6,280 | [
"Brian"
] | 8fa9e7f673af6201b86eb6b6152df28a7ddfe160ad4bbbf7886fb7677839ab20 |
'''
Created on Jul 21, 2011
@author: mkiyer
'''
'''
Created on Jun 11, 2011
@author: mkiyer
'''
import logging
import os
import collections
from chimerascan import pysam
from chimerascan.lib import config
from chimerascan.lib.breakpoint import Breakpoint
from chimerascan.lib.chimera import Chimera
DEFAULT_HOMOLOG... | tectronics/chimerascan | chimerascan/deprecated/chimeras_to_breakpoints_v1.py | Python | gpl-3.0 | 7,438 | [
"pysam"
] | 475b670969232af727bc7884342e70714cc2db2f3664dd3164b39d9dcad19394 |
# Copyright 2019 Arie Bregman
#
# 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 agree... | bregman-arie/rhoci | rhoci/main/routes.py | Python | apache-2.0 | 8,336 | [
"Elk"
] | 015de7f4b7cba33a67f6f6c8ee2f93036981530514f8deb355b7ebeea9864882 |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008-2010 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://genshi.edgewall.org/wiki/License.
#
# This software consist... | retif/stealthpage | genshi/template/astutil.py | Python | gpl-3.0 | 23,689 | [
"VisIt"
] | 86ac31f278ef5344569ed73504af8845d1ed1642450bc97c5583994aca377e35 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
This module defines classes for point defects.
"""
__author__ = "Bharat Medasani, Nils E. R. Zimmermann"
__copyright__ = "Copyright 2011, The Materials Pr... | czhengsci/pymatgen | pymatgen/analysis/defects/point_defects.py | Python | mit | 78,267 | [
"CRYSTAL",
"GULP",
"VTK",
"pymatgen"
] | 028821f8c8bdce42fb8063e310a4a627e4391e347e3ccb35d2017a17cdfe145f |
from cis.data_io.products.AProduct import AProduct
from cis.data_io.Coord import Coord, CoordList
from cis.data_io.ungridded_data import UngriddedData,UngriddedCoordinates
from cis.data_io.ungridded_data import Metadata
import iris
import numpy as np
import cf_units
import netCDF4
class IPSL_daily(AProduct):
def ... | duncanwp/cis_plugins | CIS_plugin_IPSL_daily.py | Python | lgpl-3.0 | 3,140 | [
"NetCDF"
] | 7147ccfed22a207835e12ab171a8e4a408a53c65fa31df277f0672739de924db |
"""Utility functions for plotting M/EEG data
"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# ... | jmontoyam/mne-python | mne/viz/utils.py | Python | bsd-3-clause | 58,984 | [
"Mayavi"
] | bb6fb71b88f6eea154a42215d7318e7b6d2179f10f57a597f5023a39d8a16c45 |
######
# Copyright 2007-2009 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#
# This code is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# only, as published by the Free Software... | SunLabsAST/AURA | Bridge/pyaura/bridge.py | Python | gpl-2.0 | 8,406 | [
"VisIt"
] | 1213561c9a9389582bed2e5f35b933e5087743285e2759dee7c9c511d2bc860c |
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'DataTable.needs_expert'
db.add_column('neuroelectro_datatable', 'needs_expert',... | neuroelectro/neuroelectro_org | neuroelectro/south_migrations/0026_auto__add_field_datatable_needs_expert.py | Python | gpl-2.0 | 16,078 | [
"NEURON"
] | 1990e86c179e1964a8da588b95dc33a0d1648f028eb3eef53616a5dde1f4197b |
"""Collection of functions to visualization generated samples."""
# Imports
import numpy as np
import numpy.linalg as LA
import matplotlib.pyplot as plt
# Local imports
import data_transforms
import Neuron
import visualization
def plot_example_neuron_from_parent(X_locations, X_parent):
"""
Show an example n... | tree-gan/BonsaiNet | plot_utils.py | Python | mit | 3,034 | [
"NEURON"
] | 7752193e7e51492bf9665b7d90e783c59124385c9e6d1a3d6601b788ca375a0b |
import unicodedata
import numpy as np
import pandas as pd
from datetime import datetime
import indexing
import utils
import variable
# Special characters that are permitted in netCDF names except in the
# 0th position of the string
_specialchars = '_.@+- !"#$%&\()*,:;<=>?[]^`{|}~'
# The following are reserved name... | takluyver/xray | xray/conventions.py | Python | apache-2.0 | 19,097 | [
"NetCDF"
] | d6e9c649d8a319a30ecf1a4e97560ac5ab1d01d6497be9a70e3846bbc520dce5 |
"""
Find phase singularities, i.e. spiral tips
"""
import sys, os
import numpy as np
from scipy import ndimage
from skimage.draw import circle_perimeter
from skimage.restoration import unwrap_phase
import matplotlib.pylab as plt
import matplotlib.cm as cm
from mpl_toolkits.axes_grid1 import make_axes_locatable
fro... | kpj/PyWave | singularity_finder.py | Python | mit | 9,279 | [
"Gaussian"
] | 883befbbc4651e9a00b36578060279149ba1c72491e1e5b2b2d20142bf84b1fc |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
# Based on Copyright (C) 2016 Radim Rehurek <radimrehurek@seznam.cz>
"""Lda Sequence model, inspired by `David M. Blei, John D. Lafferty: "Dynamic Topic Models"
<https://mimno.infosci.cornell.edu/... | gojomo/gensim | gensim/models/ldaseqmodel.py | Python | lgpl-2.1 | 62,170 | [
"Gaussian"
] | 9fa51f38e2ae8487ab387619123f52ae2552a9875d16caec50f03f1ee1c89159 |
#!/usr/bin/python
import sys
from os import path
# hack to allow this script to run directly
sys.path.append(path.dirname(path.dirname(path.dirname(path.abspath(__file__)))))
from src.environment.Environment import Environment
from src.environment.Polygon import Polygon
from src.environment.location import Location2D
... | obi1kenobi/pyrrot | src/scripts/route_exporter.py | Python | mit | 3,073 | [
"VisIt"
] | cd232fc078ab88590d76d1c09aa2fdd86a8f55b0d2651c7e31cbc6a581375fbb |
# Copyright (c) 2015, 2014 Computational Molecular Biology Group, Free University
# Berlin, 14195 Berlin, Germany.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | trendelkampschroer/PyEMMA | pyemma/coordinates/tests/test_featurizer.py | Python | bsd-2-clause | 29,276 | [
"MDTraj"
] | fb65533b5cdcf123ac0461613e7475f70723202380a478c0914008534b532d00 |
#! /usr/bin/env pvpython
import os
import sys
import fileinput
import string
from paraview import servermanager
# loop
# be sure to have called :
# > ls -1 AVS_movie_0*.inp | gawk '{print "sed -e \"s/AVS_movie_0001000.inp/"$1"/g\"< paraview_movie.pvsm > "$1".pvsm"}' | sh
# > ls -1 AVS_movie_0*.inp.pvsm > tmp.in
f... | QuLogic/specfem3d_globe | utils/Visualization/VTK_ParaView/paraview-run.py | Python | gpl-2.0 | 723 | [
"ParaView"
] | 2bece3793306188a643b72937e2dd58f3f24d87c103933e44165c847c6bd0288 |
# coding: utf-8
"""
Vericred API
Vericred's API allows you to search for Health Plans that a specific doctor
accepts.
## Getting Started
Visit our [Developer Portal](https://developers.vericred.com) to
create an account.
Once you have created an account, you can create one Application for
Production and an... | vericred/vericred-python | test/test_zip_county_bulk.py | Python | apache-2.0 | 10,015 | [
"VisIt"
] | 2afb2f68f65d7e532bc53a782b2623057e293042560c89449810fc3f4efd9384 |
__author__ = "Nicolo' Navarin"
__date__ = "13/feb/2015"
from graphKernel import GraphKernel
from scipy.sparse import csr_matrix
from ..graph import graph
from ..graph.GraphTools import generateDAG
import numpy as np
import sys
#from dependencies.pythontk import tree_kernels_new
from ..tree import tree_kernels_STonlyr... | nickgentoo/scikit-learn-graph | skgraph/kernel/ODDCLSTApproxRBFGraphKernel.py | Python | gpl-3.0 | 7,637 | [
"Gaussian"
] | 3e1fe13c3810e5da93b687e0f8cc3adf584d56141969b8bf6f4d7a7eb0111d0c |
__author__ = 'aniket'
import freenect
import cv2
import numpy as np
import time
import serial
import math
import matplotlib.mlab as lab
global flag
flag = False
global count
count = 0
global z
ser = serial.Serial('/dev/ttyUSB0') # initialization of serial communication
test_cases = [True, True, True]
def filter_n... | amirajdhawan/eYSIP_2015_Depth_Mapping_Kinect | Research/MyProjects/depth.py | Python | cc0-1.0 | 31,662 | [
"Gaussian"
] | 47664dcf7f99b5ecd7c3092c0893af9f5d5ccdec73dac916ecee24d6170aa07a |
#!/usr/bin/python
# Begin stats.py
"""Module for statistics.
Written by Jesse Bloom."""
#
import re, math, os, string, random
try:
import numarray.fft
except ImportError:
pass
#----------------------------------------------------------------------------
class StatsError(Exception):
"""Statistics error.""... | jbloom/latticeproteins | src/stats.py | Python | gpl-3.0 | 47,359 | [
"Gaussian"
] | 168fc2b1b9fdeafbfd6f005a59b3f6b2b76e287985dd33d3f0ec2520554361fa |
""" test run for DFTB+ calculator
the tolerance is extremely loose, beause different sk files
give different results
"""
from ase.test.dftb import installed
assert installed()
from ase.calculators.dftb import Dftb
import os
from ase.optimize import QuasiNewton
from ase.structure import molecule
test = mol... | askhl/ase | ase/test/dftb/test_simple.py | Python | gpl-2.0 | 1,014 | [
"ASE"
] | 39a77628d241d82c5701d7b190f084c37b264a94edebd4f3fdcb22f48bbd93b4 |
'''
Created on Dec 3, 2015
@author: rch
'''
import os.path
from mayavi import mlab
from traits.api import \
HasTraits, Array, Tuple, Property, List,\
cached_property
from tvtk.api import tvtk
import matplotlib.pyplot as pl
import numpy as np
from oricreate.util.eulerangles import mat2euler, rotation_to_vtk
... | simvisage/oricreate | apps/folded_figures/folded_figures_viz3d.py | Python | gpl-3.0 | 16,928 | [
"Mayavi"
] | a3449508970d124d79215b134ce6d35ec0f5bb4cac8dc96653fcfd767acc5ac5 |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-sys-sendmail
# Author : Matvey Sapunov
########################################################################
"""
Utility to send an e-mail using DIRAC notification service.
Arguments:
... | petricm/DIRAC | FrameworkSystem/scripts/dirac-sys-sendmail.py | Python | gpl-3.0 | 2,584 | [
"DIRAC"
] | 4dda1e24e7a4775cf9951decf6944326e665171bd33f006d4553540eecf252de |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
ANSIB... | Dhivyap/ansible | lib/ansible/modules/network/avi/avi_customipamdnsprofile.py | Python | gpl-3.0 | 3,932 | [
"VisIt"
] | 83b08187384c552d47cbe5b0311279233cd2781a180194c0ff924e0e350cdb20 |
from __future__ import print_function
import unittest as ut
import espressomd
import numpy as np
from espressomd.electrostatics import *
from espressomd import electrostatic_extensions
@ut.skipIf(not espressomd.has_features(["ELECTROSTATICS"]),
"Features not available, skipping test!")
class ELC_vs_MMM2D_n... | KonradBreitsprecher/espresso | testsuite/elc_vs_mmm2d_nonneutral.py | Python | gpl-3.0 | 4,233 | [
"ESPResSo"
] | 1e677aa457ac13e7ccf546f317a0a8b55bddf03efae97a6d1698342a2f30896b |
"""
A collection of back end subroutines (mostly SQL queries).
In this module we collect together various routines
that don't fit into a more specific collection.
"""
import itertools
import logging
import math
import tkp.db
from datetime import datetime
from tkp.db.alchemy.image import insert_dataset as alchemy_ins... | transientskp/tkp | tkp/db/general.py | Python | bsd-2-clause | 11,652 | [
"Gaussian"
] | cc56df299d62fbd644d582616cd83d73c30e30cde84a865a9d62a0bb71fb6afd |
"""
Container page in Studio
"""
from bok_choy.page_object import PageObject
from bok_choy.promise import EmptyPromise, Promise
from common.test.acceptance.pages.common.utils import click_css, confirm_prompt
from common.test.acceptance.pages.studio import BASE_URL
from common.test.acceptance.pages.studio.utils impor... | eduNEXT/edunext-platform | common/test/acceptance/pages/studio/container.py | Python | agpl-3.0 | 25,896 | [
"VisIt"
] | 1e5104b1e8c42b677828c8ca57eec687c94ab9e2e151c3eda9aeeb403a720e8e |
#
# Brian C. Lane <bcl@redhat.com>
#
# Copyright 2012 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
# General Public License v.2. This program is distributed in the hope that it
# will be useful,... | tradej/pykickstart-old | tests/commands/reboot.py | Python | gpl-2.0 | 2,218 | [
"Brian"
] | d982c37165baa87359e11ad9defcc238f369d45e5e6b6ffd89c2d57a6a068e91 |
r"""
:mod:`~matplotlib.mathtext` is a module for parsing a subset of the
TeX math syntax and drawing them to a matplotlib backend.
For a tutorial of its usage see :ref:`mathtext-tutorial`. This
document is primarily concerned with implementation details.
The module uses pyparsing_ to parse the TeX expression.
.. _p... | yavalvas/yav_com | build/matplotlib/lib/matplotlib/mathtext.py | Python | mit | 111,273 | [
"Bowtie"
] | 41b355c5747af76f524d1da5570e2d55cced49b1d5e422787ab8b6568cfcb302 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import numpy as np
import warnings
import functools
from monty.json import MSONable
from pymatgen.electronic_structure.core import Spin, Orbital
from pymatgen.core.periodic_table import get_el_sp
from pymatgen.... | dongsenfo/pymatgen | pymatgen/electronic_structure/dos.py | Python | mit | 37,219 | [
"DIRAC",
"Gaussian",
"VASP",
"pymatgen"
] | e3255d58644f84b30bb1a7f36bcbd8ce3d0fa06a2070f1a71ca081ee39f7e9f7 |
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
import os
import pytest
from django.core.urlresolvers import reverse
from ... | hrayr-artunyan/shuup | shuup_tests/browser/admin/test_product_detail.py | Python | agpl-3.0 | 1,816 | [
"VisIt"
] | 3f9851c6756f81e88299d450be87c4af51ce87360274f177dde523a9b0d4a6a8 |
###########################################################
# $HeadURL$
# File: CloudEndpoint.py
# Original author: Victor Mendez
# Modified: A.T.
###########################################################
"""
CloudEndpoint is a base class for the clients used to connect to different
cloud providers
"""
__RCSI... | atsareg/VMDIRAC | VMDIRAC/Resources/Cloud/CloudEndpoint.py | Python | gpl-3.0 | 16,638 | [
"DIRAC"
] | b744d0f711255576ad35d244b5a4f674760156fdbd1e2985e6a880513829a50d |
from diskgraph.diskgraph import DiskGraph
from diskgraph.sysinfo import *
import unittest
class dummy(object):
pass
class Setup(object):
def setUp(self):
sysinfo = dummy()
sysinfo.objects = []
self.sysinfo = sysinfo
def assertListEquivalent(self, l1, l2):
self.assertEqual... | provegard/diskgraph | test/test_diskgraph.py | Python | bsd-3-clause | 7,346 | [
"VisIt"
] | f8604196fbd3bbc8300ce770a16d3418a628df5e6fe536b54297ad91e3524564 |
########################################################################
# File : CPUNormalization.py
# Author : Ricardo Graciani
########################################################################
""" DIRAC Workload Management System Client module that encapsulates all the
methods necessary to handle CPU... | yujikato/DIRAC | src/DIRAC/WorkloadManagementSystem/Client/CPUNormalization.py | Python | gpl-3.0 | 10,485 | [
"DIRAC"
] | 4f8a63c2f95ac6e4e99d3097f25431d358baf3453ae4ff2d4945e5aee5225472 |
"""
Visit the Fanfou open platform and create a new application:
http://fanfou.com/apps.new
This will get you a CONSUMER_KEY and CONSUMER_SECRET.
When users run your application they have to authenticate your app
with their Fanfou account. A few HTTP calls to Fanfou are required
to do this. Please see the fanpy.... | mookrs/fanpy | fanpy/oauth.py | Python | mit | 4,949 | [
"VisIt"
] | 8704c135ff6f98c7f81a3a994e3120b34497dc0d0609b101f94397e80e1b5341 |
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 28 15:56:27 2015
@author: mdzikowski
"""
import vtk
import vtk.util.numpy_support as VN
class VTIFile:
def __init__(self, vtifname, parallel=False):
if parallel:
self.reader = vtk.vtkXMLPImageDataReader()
else:
self.re... | shkodm/bearded-octo-wookie | CLB/VTIFile.py | Python | apache-2.0 | 1,180 | [
"VTK"
] | fb4aae35522f00c4c08a88900bc6ad19da78cda31bc0af6c754282c2b3695536 |
"""
Author: Jon Ander Gomez Adrian (jon@dsic.upv.es, http://personales.upv.es/jon)
Version: 1.0
Date: November 2015
Universitat Politecnica de Valencia
Technical University of Valencia TU.VLC
Auxiliar code for generating samples
"""
import numpy
#from matplotlib import pyplot
# -------------... | jonandergomez/machine_learning_for_students | machine_learning/generate_datasets.py | Python | mit | 2,990 | [
"Gaussian"
] | 7596ff0f3778b5b28a1e833c2a1719fb24779b78404f8e80a936e366faf5daf3 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2017 Bitergia
#
# 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 l... | sduenas/perceval | tests/test_mbox.py | Python | gpl-3.0 | 22,424 | [
"Brian"
] | 995d86fb43b130d22300f9289b98ec2fb3d58237eb9e12a979048cede66d7c37 |
# This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | rkashapov/buildbot | master/buildbot/changes/svnpoller.py | Python | gpl-2.0 | 18,027 | [
"Brian"
] | 6095c85e8af1e22651e358ed7c29b18e30566a7ca75a3b9a0434cb29c0213a0b |
#!/usr/bin/env python
#
# Appcelerator Titanium Module Packager
#
#
import os, subprocess, sys, glob, string
import zipfile
from datetime import date
cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename))
os.chdir(cwd)
required_module_keys = ['name','version','moduleid','description','copyright','... | armincifuentes/TiKeyboardListener | build.py | Python | apache-2.0 | 6,828 | [
"VisIt"
] | 688d8d7d29f365f63c64c3ed5ede09af656f246fe0352dfb7ad22de9522b1985 |
from django.urls import path
from blastplus.views import blastn, tblastn, blastn, blastp, blastx
urlpatterns = [
path('blastn', blastn, name='blastn'),
path('tblastn', tblastn, name='tblastn'),
path('blast', blastn, name='blastn'),
path('blastp', blastp, name='blastp'),
path('blastx', blastx, name... | michal-stuglik/django-blastplus | blastplus/urls.py | Python | mit | 335 | [
"BLAST"
] | db5dc8f3aff8c61b6ebec223f3a7576bd23cb45eb2bef977d14f091dc07ee24d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.