text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
# -*- coding: UTF-8 -*-
__revision__ = '$Id$'
# Copyright (c) 2007-2012 Michael Jahn
#
# 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) an... | marcin1j/griffith | lib/plugins/movie/PluginMovieIMDB-de.py | Python | gpl-2.0 | 21,537 | [
"Brian"
] | 652d5e66f0b88bb84df45dfdb35e97fe220e5a177cc19ffea8a304a199977c8e |
"""Example to solve 2D vortex shedding flow
"""
from mayavi.scripts import mayavi2
import foam_controlwrapper as wrapper
from simphony.core.cuba import CUBA
from simphony.api import CUDS, Simulation
from simphony.cuds.meta import api
from simphony.engine import EngineInterface
import vortex_shedding_mesh
import te... | simphony/simphony-openfoam | foam_controlwrapper/examples/vortex_shedding.py | Python | gpl-2.0 | 3,387 | [
"Mayavi"
] | 14cda972850bd549772e00d763aad8d0dfca5cbfed5bbd2f7710569424a315da |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... | hyperhq/hypernetes | hack/boilerplate/boilerplate.py | Python | apache-2.0 | 5,254 | [
"VisIt"
] | ea3599bb3cb23379b17c34e45714d162d8f58160fcf3b88b6042a7b15a787f11 |
import html
import json
import platform
import random
import re
import sys
import time
import urllib.parse
import dateutil.parser
from selenium.webdriver.common.keys import Keys
import splinter
def eprint(*args, **kwargs):
return print(*args, **kwargs, file=sys.stderr)
class YahooBackupScraper:
"""Scrape Y... | csaftoiu/yahoo-groups-backup | yahoo_groups_backup/scraper.py | Python | unlicense | 9,968 | [
"VisIt"
] | f0dd14a55fa76aa609f440626dbd7469b351ef4d40260f2aa3a99eaa76a3e0ce |
#python2.7
#======================== Welcome to CreateInput ==========================#
# CreateInput is a python based program for creating
# the input files for classifier from the
# output of LZIFU (Ho et al. 2016)
# This is not a pretty program
#====================================================================... | EliseHampton/ANN-addon-lzifu | input-code/CreateInput.py | Python | gpl-3.0 | 32,013 | [
"Galaxy"
] | 07a690a9f5f8e22678812c9ff3631e286269811ea595b2c0893d8bc85b62d525 |
"""
################################################################################
#
# SOAPpy - Cayce Ullman (cayce@actzero.com)
# Brian Matthews (blm@actzero.com)
# Gregory Warnes (Gregory.R.Warnes@Pfizer.com)
# Christopher Blunck (blunck@gst.com)
#
##########################... | ruibarreira/linuxtrail | usr/lib/python2.7/dist-packages/SOAPpy/Server.py | Python | gpl-3.0 | 27,006 | [
"Brian"
] | 6dbcfe4a1767fc1fccb8f86439b52e86050628beb71452c5c1c54b8c9ca06a60 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Ruggero Marchei <ruggero.marchei@daemonzone.net>
# (c) 2015, Brian Coca <bcoca@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#... | emersonsoftware/ansiblefork | lib/ansible/modules/files/find.py | Python | gpl-3.0 | 13,494 | [
"Brian"
] | 488ba4574c9ff605755563126108545e8a78aab21b55a75309beec1dc0711bf4 |
# Copyright 2013 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 os
import logging
import unittest
from telemetry.core import util
from telemetry.core.platform.profiler import perf_profiler
from telemetry.unittest i... | TeamEOS/external_chromium_org | tools/telemetry/telemetry/core/platform/profiler/perf_profiler_unittest.py | Python | bsd-3-clause | 2,081 | [
"VisIt"
] | c161ac87dc596dc2f120a966dfc81aee06c66ac8a974ccaadd51793e9f1f2792 |
from ImportDependence import *
from CustomClass import *
#from TableViewer import TableViewer
class MyHist(AppForm):
_df = pd.DataFrame()
_changed = False
xlabel = r'Item Slected'
ylabel = r'Frequency'
reference = 'Yu, Q.-Y., Bagas, L., Yang, P.-H., Zhang, D., GeoPyTool: a cross-platform softwar... | chinageology/GeoPython | geopytool/MyHist.py | Python | gpl-3.0 | 16,133 | [
"Gaussian"
] | f119f8dcac7d6e419adc170f5dd7db06dbc12d3cc65c9c7d80c7d9b59fa6fb21 |
import sys
sys.path.append("../")
from libs.file import netcdf as nc
from libs.console import show
import numpy as np
from datetime import datetime
def rmse(root, index):
times = [ datetime.utcfromtimestamp(int(t)) for t in nc.getvar(root, 'time')[:] ]
days = [ t.date() for t in times ]
days.sort()
days_index = [d... | gersolar/stations | libs/statistics/error.py | Python | mit | 4,968 | [
"NetCDF"
] | 51360a3c53bedc24895d33398a4dd597728acb8c333b1c31c4f732fc0cc8d94e |
#
# Copyright 2014-2015 James Kermode (Warwick U.)
# 2014-2015 Lars Pastewka (U. Freiburg)
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | libAtoms/matscipy | matscipy/visualise.py | Python | lgpl-2.1 | 3,388 | [
"ASE",
"Matscipy"
] | 4df5fd65c27bd80bdfc2bc2bc95112d8fdcc78555d05b6e7427fc63386279c20 |
import pyfastaq
import os
import pysam
from ariba import common
class Error (Exception): pass
class ReadStore:
def __init__(self, infile, outprefix, log_fh=None):
assert infile != outprefix
self.infile = os.path.abspath(infile)
self.outprefix = os.path.abspath(outprefix)
self.outfi... | martinghunt/ariba | ariba/read_store.py | Python | gpl-3.0 | 2,968 | [
"pysam"
] | 73152c0321dc3aa7b804640485676dcfa1fc35a7193e107d92c8c8573d86882c |
#!/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... | alexlo03/ansible | lib/ansible/modules/network/avi/avi_wafpolicy.py | Python | gpl-3.0 | 5,676 | [
"VisIt"
] | 613707b014e4bd7cfbb3bedf9f6e5ea7e46d18da169ee1870cfad605191dae76 |
#!/usr/bin/env priithon
from __future__ import print_function
import os, sys, tempfile
import six
from Priithon.all import Mrc
from PriCommon import priismCommands, ppro26 as ppro #, byteSwap
import imgio
PRINTOUT=False
EXT_BLT='_blt'
EXT_DCN='_decon'
DECON_OPT=['wiener', 'method', 'ncycl', 'smooth', 'sub']
FFT_OPT=[... | macronucleus/chromagnon | Chromagnon/PriCommon/decon.py | Python | mit | 13,529 | [
"Gaussian"
] | 274c6db231995da4ed67f8e5a830e05f3b370ddea168225878e8dd2370f839c6 |
"""A quick demo of oscillation, stimulation, and background noise."""
import numpy as np
from fakespikes import neurons, util, rates
import seaborn as sns
import matplotlib.pyplot as plt
sns.__file__ # pylint
plt.ion()
# -- USER SETTINGS -----------------------------------------------------------
seed = 42
n = 50 # ... | voytekresearch/fakespikes | fakespikes/examples/demo.py | Python | mit | 1,517 | [
"NEURON"
] | a1fd2d04274f44f7b8536e42b0a848bb7db8c24a1e5e251067df2f21e02e362a |
#!/usr/bin/python
#Audio Tools, a module and set of tools for manipulating audio data
#Copyright (C) 2007-2012 Brian Langenberger
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2... | R-a-dio/python-audio-tools | audiotools/m4a.py | Python | gpl-2.0 | 48,930 | [
"Brian"
] | c5a9b9fe4595fc6f009697e6f62ea411de86b75c93d2c0b35584267137abbf25 |
# Author: Samuel Ponc\'e
# Date: 30/04/2013 -- 11/09/2014
# Version 1.3
# Classes needed for the temperature.py script
# Last devel info: Dynamical coding done
import numpy as N
from numpy import zeros
import itertools as Iter
from functools import partial
import multiprocessing
import netCDF4 as nc
import sys
import ... | sponce24/python-scripts | ABINIT/rf_GKK_mode.py | Python | gpl-2.0 | 30,690 | [
"Gaussian",
"NetCDF"
] | 52672388f763b5d974ba8049c9e456f7d33f6f326a841449112fb17f018871e6 |
"""
Object finding and measuring ellipticity
========================================
This script provides a class that can be used to analyse VIS data.
One can either choose to use a Python based source finding algorithm or
give a SExtractor catalog as an input. If an input catalog is provided
then the program assume... | sniemi/EuclidVisibleInstrument | analysis/analyse.py | Python | bsd-2-clause | 10,786 | [
"Galaxy"
] | c6fabdb4e5dafdf139494cbcebee5265ec98d62a51fba8359b3f097444fd9cd5 |
# Token Names
INTEGER = "INTEGER"
FLOAT = "FLOAT"
ADD = "ADD"
SUBTRACT = "SUBTRACT"
MULTIPLY = "MULTIPLY"
DIVIDE = "DIVIDE"
LPAREN = "("
RPAREN = ")"
EOF = "EOF"
class Token:
def __init__(self, type_, value):
self.type = type_
self.value = value
def __str__(self):
return f"Token({self... | roghu/py3_projects | src/Numbers/calculator.py | Python | mit | 6,291 | [
"VisIt"
] | 3988d1e85d01e65d41f94fa71273ba7bd097eb26a2e3ecb6b5c4a28cc1a7be03 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 Async Open Source
##
## 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 yo... | andrebellafronte/stoq | stoqlib/lib/settings.py | Python | gpl-2.0 | 5,708 | [
"VisIt"
] | 4259117025c83217ef2a17f32ec2a2667cbb27f063c7701f7d47683327ee98f4 |
from __future__ import unicode_literals
import os
import datetime
import sys
import getpass
import platform
import atexit
from traceback import format_tb
import uuid
import tempfile
import shutil
from tinydb import Query
import difflib
import warnings
import codecs
import six
from binaryornot.check import is_binary
fr... | recipy/recipy | recipy/log.py | Python | apache-2.0 | 12,446 | [
"NetCDF"
] | 033dd3e1e2e6dcfefb9ce412e2a9a2095aaab8a8534f3c7492b08e369d653da1 |
#!/usr/bin/python
# Copyright(c) 2009, Gentoo Foundation
# Copyright 2010 Brian Dolbec <brian.dolbec@gmail.com>
#
# License: GPL2/BSD
# $Header$
from __future__ import print_function
from tempfile import NamedTemporaryFile, mkdtemp
import unittest
import re
try:
from test import test_support
except ImportError... | bacher09/Gentoolkit | pym/gentoolkit/test/eclean/test_search.py | Python | gpl-2.0 | 25,144 | [
"Brian"
] | 27368396aeb47fc7fb3b2b959a5fc98cacd37e4a002fca862942c6fce3d87749 |
#!/usr/bin/env python
# hands on script to compute the non-empty Lines of Code
# for tests and non-test code
"""\
py.countloc [PATHS]
Count (non-empty) lines of python code and number of python files recursively
starting from a list of paths given on the command line (starting from the
current working directory). Di... | blindroot/pycmd | pycmd/pycountloc.py | Python | mit | 2,738 | [
"VisIt"
] | b6c3a89d1d6974b1a0f5257d4fbf200acbd08d6c4cba413cbd6c0e4b2186151d |
"""
=============================
Ledoit-Wolf vs OAS estimation
=============================
The usual covariance maximum likelihood estimate can be regularized
using shrinkage. Ledoit and Wolf proposed a close formula to compute
the asymptotically optimal shrinkage parameter (minimizing a MSE
criterion), yielding th... | loli/sklearn-ensembletrees | examples/covariance/plot_lw_vs_oas.py | Python | bsd-3-clause | 2,903 | [
"Gaussian"
] | 54f4ba656f90ba58b94be9774392681b5d5f0a9855f493161300929b4ad51eee |
"""
Methods for aligning raw fastq reads to a reference genome.
"""
import copy
from datetime import datetime
import os
import subprocess
from subprocess import PIPE
from subprocess import Popen
from celery import task
from django.conf import settings
from main.models import AlignmentGroup
from main.models import Da... | woodymit/millstone | genome_designer/pipeline/read_alignment.py | Python | mit | 27,969 | [
"BWA"
] | d466245900152b6ed40a06e3c5cc867e4ecc1cd1d02b58305d415dadcda6c18f |
# Copyright 2019 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 re
import test_util
import time
from absl import app
from selenium import webdriver
from pywinauto.application import Application
UnsafePageLink = "h... | ric2b/Vivaldi-browser | chromium/chrome/test/enterprise/e2e/policy/safe_browsing/safe_browsing_ui_test.py | Python | bsd-3-clause | 2,377 | [
"VisIt"
] | 3c1e2cb23af026b21b6073b48959115e8160a54f0377ecf0fda008e5b700431b |
from openzwave.network import ZWaveNode
from Firefly import logging, scheduler
from Firefly.components.zwave.zwave_device import ZwaveDevice
from Firefly.const import ACTION_OFF, ACTION_ON, ACTION_TOGGLE, COMMAND_SET_LIGHT, DEVICE_TYPE_DIMMER, EVENT_ACTION_OFF, EVENT_ACTION_ON, LEVEL, STATE, SWITCH
from Firefly.helper... | Firefly-Automation/Firefly | Firefly/components/zwave/zwave_aeotec_zw111_dimmer.py | Python | apache-2.0 | 4,490 | [
"Firefly"
] | 5a90f3305069ecf223f21f50e693e349bbbc6b76688cfebede7fda370776153a |
from django.db import models
# from edc_base.audit_trail import AuditTrail
from edc_base.model.models import BaseUuidModel
from edc_consent.models import RequiresConsentMixin
from edc_export.models import ExportTrackingFieldsMixin
from edc_meta_data.managers import CrfMetaDataManager
from edc_offstudy.models import Of... | TshepangRas/tshilo-dikotla | td_maternal/models/maternal_off_study.py | Python | gpl-2.0 | 1,018 | [
"VisIt"
] | 2a025105acb413b302361f1ecda02cd45f6c1aee8f94cacb9b7383df6c7ad31c |
#!/usr/bin/env python3
import theano
from theano import tensor as T
import pandas as pd
from tqdm import trange,tqdm
import numpy as np
from sklearn.preprocessing import normalize
import sklearn.svm
import time
import mnist # pip3 install python-mnist
import os
import sys
import lasagne
import math
optimizer = "gpu"
... | stablum/reimplementations | vae.py | Python | gpl-3.0 | 11,956 | [
"Gaussian"
] | 323f57c0e1a68d1f510a1848ad32244fc7247b673e967599679b1fe975495498 |
#!/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.
# Copyright (C) 2008 Evan Martin <martine@danga.com>
"""A git-command for integrating reviews on Rietveld."""
from distutils.vers... | G-P-S/depot_tools | git_cl.py | Python | bsd-3-clause | 112,981 | [
"VisIt"
] | 98377804c7fd5bbf5865e8892df7b5e7ab12afa656a29d8da6b156001f9764de |
"""Script to read NetCDF raster files, process and store as tif
This requires scientific python
"""
import os
import argparse
from safe.storage.vector import Vector
from realtime.netcdf_utilities import convert_netcdf2tif
from safe.storage.core import read_layer
from safe.engine.interpolation import tag_polygons_b... | wonder-sk/inasafe | scripts/netcdf2tif.py | Python | gpl-3.0 | 2,902 | [
"NetCDF"
] | f690f26c68fdbf59f954217b9e699a8a28cd20a7ab6dbcfa236f78256d4ed86a |
#classes centered around processing data taken from the database JSON, storing it, and wriitng it to a JSON for the front end to parse
#written for RPI Incident Map
import sys
import json
import os
#import pytest
#import db_initial
from datetime import date
from datetime import time
import calendar
#class to hold loc... | sschatts/RPI-Incident-Map | incident_generator_class.py | Python | apache-2.0 | 26,612 | [
"MOE"
] | 100e15eca0d12dfdf90ad8aef51411b76ddf87f9ef8e5fcf891cd7aba01ccacf |
#! /usr/bin/env python
"""
Takes hit tables (eg from blast, last, or hmmer) and generates a
table (or tables) of hit counts for gene families, gene
classes, or pathways. Multiple pathway or classification levels can
be given. If they are, multiple output tables will be generated with
the level as a ... | jmeppley/py-metagenomics | count_paths.py | Python | mit | 19,462 | [
"BLAST"
] | 19d9b7a101d155c311fcaa4082b81ddea9c7c476f8d06361a2b13521f584aace |
import numpy as np
from threeML.plugins.gammaln import logfactorial
from math import log
def regularized_log(vector):
"""
A function which is log(vector) where vector > 0, and zero otherwise.
:param vector:
:return:
"""
return np.where(vector > 0, np.log(vector), 0)
def xlogy(x, y):
""... | volodymyrss/3ML | threeML/plugins/OGIP/likelihood_functions.py | Python | bsd-3-clause | 6,305 | [
"Gaussian"
] | 827c9a6794e7f5f845ecd7b5be39f8f46a1207424b335b524abdc4342dc87911 |
"""
The B{0install digest} command-line interface.
"""
# Copyright (C) 2011, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from __future__ import print_function
import os, tempfile
from zeroinstall import SafeException, _
from zeroinstall.zerostore import manifest, unpack
from zero... | dsqmoore/0install | zeroinstall/cmd/digest.py | Python | lgpl-2.1 | 1,865 | [
"VisIt"
] | a931f25413648c8089c45cf67a59ee86dd0999a13165fdb3d980f80c33ac6da9 |
#!/usr/bin/env python
"""
vasprun.py Jeff Doak jeff.w.doak@gmail.com
Tool to read in a vasprun.xml file and extract calculation information from it.
"""
import xml.etree.ElementTree as ET
import numpy as np
def search(node):
"""
Function to list the branches of a node on the xml tree structure.
Useful ... | jeffwdoak/VaspRun | VaspRun/vasprun.py | Python | mit | 8,082 | [
"CRYSTAL"
] | 4aa71f9e009184dbe4f691defa1c8faed3e0670b1bf788fdb1d2133e0efd1287 |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | kdmurray91/scikit-bio | skbio/alignment/_tabular_msa.py | Python | bsd-3-clause | 79,726 | [
"scikit-bio"
] | 96f3043917e3cd8b5f76a1f1cf2626f525511c803ec79b0b4c3bd3d8fc9c3cfc |
from ase import Atom, Atoms
from gpaw import GPAW
a = 4.0
b = a / 2**.5
L = 7.0
al = Atoms([Atom('Al')], cell=(b, b, L), pbc=True)
calc = GPAW(kpts=(4, 4, 1))
al.set_calculator(calc)
al.get_potential_energy()
calc.write('Al100.gpw', 'all')
| JConwayAWT/PGSS14CC | lib/python/multimetallics/ase/examples/Al100.py | Python | gpl-2.0 | 240 | [
"ASE",
"GPAW"
] | f6a040efdd8473285222a599037287080060d53c43fc6771c90fe327bc8a6e89 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2022 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
#... | psi4/psi4 | psi4/driver/p4util/util.py | Python | lgpl-3.0 | 9,715 | [
"Psi4"
] | 661a995d6017d09c71466f476ee5e52c6f27ae3d25755e77951076d61bb9950e |
#!/usr/bin/env python3
# #!/usr/bin/python3
import argparse
import os
import sys
from os.path import dirname
import matplotlib.pyplot as plt
import numpy as np
from matplotlib import gridspec
from scipy import interpolate
from scipy.optimize import fmin
from pystella import velocity
from pystella.rf import band
from... | baklanovp/pystella | scm.py | Python | mit | 12,999 | [
"Galaxy"
] | c6f872d5c6e0f4df35aee40b5e5f504123fe90ee613fc583c8003de4c87196be |
import pymol
from pymol import cmd
import sys,os
from MoleculeUtils import selectPolarProtons
from MoleculeUtils import selectApolarProtons
from MoleculeUtils import colorCPK
from PackingMeasureUtils import loadPackingPDB
def loadInterfacePDB(file,name=None,native=None,wt=None):
print " Loading interface PDB %s"%... | weitzner/Dotfiles | pymol_scripts/InterfaceUtils_try.py | Python | mit | 4,317 | [
"PyMOL"
] | f0eb882b1ef1e1d70fe55b25a46eef8b11f778110d0daf2eabf814fa74b1a88f |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | Stargrazer82301/CAAPR | CAAPR/CAAPR_AstroMagic/PTS/pts/magic/sources/batchfinder.py | Python | mit | 16,061 | [
"Galaxy"
] | b7796107de8a5259286a3bc5913a7899d24106ed325bbc42f068335a81543d75 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Corinne Maufrais
# Institut Pasteur, Centre d'informatique pour les biologistes
# corinne.maufrais@pasteur.fr
#
# version 2.1
import os
import sys
import argparse
#from bsddb3 import db as bdb
from bsddb import db as bdb
class GoldenError:
def __init__(self, err)... | C3BI-pasteur-fr/taxo_pack | src/taxoptimizer.py | Python | gpl-3.0 | 25,669 | [
"BLAST"
] | f000abfda33ca24ce4973785104f1ffafb71f57888c22172c032165ced7526dc |
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | wizmer/NeuroM | neurom/core/__init__.py | Python | bsd-3-clause | 2,023 | [
"NEURON"
] | 9337b67fe28804ed4f52383ff1ec86a332c1486f442501e21382ed236103e417 |
__author__ = 'rico'
from copy import deepcopy
import cv2
import os.path
import cPickle as pickle
import matplotlib.pyplot as plt
import numpy as np
def visualize_color_image(img, title=''):
plt.figure()
plt.title(title)
plt.imshow(cv2.cvtColor(img, cv2.COLOR_HSV2RGB))
def basic_image_check(img, title):... | start-jsk/jsk_apc | jsk_apc2016_common/python/jsk_apc2016_common/rbo_segmentation/utils.py | Python | bsd-3-clause | 10,069 | [
"Gaussian"
] | 3e55311728453775451e876d7d84347a73ef797410ba12a3bf1d5567fb71f3f4 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rdkit
from rdkit.Chem import AllChem
from rdkit import DataStructs
__license__ = "X11"
METADATA = {
"id": "method_rdkit_fcfp2_16384_tanimoto",
"representation": "fcfp2_16384",
"similarity": "tanimoto"
}
def _compute_fingerprint(molecule):
return ... | skodapetr/lbvs-environment | methods/fcfp/fcfp2_16384_tanimoto.py | Python | mit | 1,268 | [
"RDKit"
] | 1ba90c7521dea8cf6049f309004d84fd83755704c46acc25201f0560571fb935 |
#!/usr/bin/python
########################################################################
# Solves problem 166 from projectEuler.net.
# Determines different 4x4 matrix that all columns, rows and diagonals
# sum up the same.
# Copyright (C) 2010 Santiago Alessandri
#
# This program is free software: you can... | sanSS/programming-contests | project-euler/problem166.py | Python | gpl-3.0 | 2,906 | [
"VisIt"
] | e212668e8f87b5cf7a29bd59cad781b8939e292dacb112fe58a0e822a2303ce1 |
# -*- coding: utf-8 -*-
#
# DiracDocs documentation build configuration file, created by
# sphinx-quickstart on Sun Apr 25 17:34:37 2010.
#
# 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
# autogenerated file.
#
# A... | ic-hep/DIRAC | docs/source/conf.py | Python | gpl-3.0 | 10,159 | [
"DIRAC"
] | ce51a44a081ef0fbf550d7604ea5ae8e81bce31d5d5f8309c0d97e8fecbc79da |
# Copyright (C) 2007 - 2009 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.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 Foundation; either version 2 of the License, or (at your
# option)... | rickysarraf/apport | test/test_signal_crashes.py | Python | gpl-2.0 | 37,988 | [
"TINKER"
] | cf91f726067f4da4f1e3b9a5893acd7021cfe5ffb324ba54079c20335a16c58d |
#!/usr/bin/env python
# Take the json in the file given as first argument and convert it to the JSON
# format needed for import. Should do all cleanup of data and removal of
# unneeded entries too.
import sys
import os
import json
import re
import urllib
script_dir = os.path.basename(__file__)
base_dir = os.path.joi... | geoffkilpin/pombola | pombola/south_africa/data/members-interests/convert_to_import_json.py | Python | agpl-3.0 | 19,785 | [
"Brian"
] | 41f8cac7e26e66f4d411bc6a9613455468e0f06db0cee30605533f4c5ee21c4b |
import re
import os
import DIRAC
from DIRAC import gLogger
from DIRAC.Core.Utilities import List, DIRACSingleton
from DIRAC.ConfigurationSystem.Client.Helpers import CSGlobals
from DIRAC.AccountingSystem.Client.Types.BaseAccountingType import BaseAccountingType
class TypeLoader( object ):
__metaclass__ = DIRACSingle... | sposs/DIRAC | AccountingSystem/private/TypeLoader.py | Python | gpl-3.0 | 2,546 | [
"DIRAC"
] | 25ce98c59d3cb7e6c60cf6330efa8d0b60ce43af0f6df1392f5ccd9524221b82 |
__version__ = '3.4.4'
__author__ = "Avinash Kak (kak@purdue.edu)"
__date__ = '2015-July-19'
__url__ = 'https://engineering.purdue.edu/kak/dist/BitVector-3.4.4.html'
__copyright__ = "(C) 2015 Avinash Kak. Python Software Foundation."
__doc__ = '''
BitVector.py
Version: ''' + __version__ + '''
Author: Avin... | platinhom/CADDHom | python/basic/BitVector.py | Python | gpl-2.0 | 167,637 | [
"Brian"
] | f180a60ac076b5f02b1624ea79733568335538cbae5e109dc6f6437aef1f5c81 |
# -*- coding: UTF-8 -*-
"""
``Generic``
-----------------------
:Authors: Liron Levin
:Affiliation: Bioinformatics core facility
:Organization: National Institute of Biotechnology in the Negev, Ben Gurion University.
Short Description
~~~~~~~~~~~~~~~~~~~~~
A generic module that enables the user to design new module... | bioinfo-core-BGU/neatseq-flow_modules | neatseq_flow_modules/main_NSF_classes/Generic_module/3_6_2020_Generic.py | Python | gpl-3.0 | 52,583 | [
"BLAST"
] | a87dc49f4a7840ef912ebe6330e8c34c06920fc0933df8e740728a9bab7482a3 |
"""some more complex examples of actual use cases than found in unit tests"""
from __future__ import absolute_import, division, print_function, unicode_literals
from builtins import *
import matplotlib.pyplot as plt
from numpy_indexed import *
__author__ = "Eelco Hoogendoorn"
__license__ = "LGPL"
__email__ = "hooge... | EelcoHoogendoorn/Numpy_arraysetops_EP | examples.py | Python | mit | 4,053 | [
"Gaussian"
] | 97ce5efe280eab625f030072b252f64e5f6f5f13be1055406ae3a900ff9cd18c |
#!/usr/bin/env python
"""This module provides facilities for loading data as Dataset objects.
The loaders work by first processing data into gensim-style corpora,
then providing access to the serialized corpora using the corpus dataset
classes defined in the :mod:`corpus_dataset` module.
The loaders all expect the da... | hajicj/safire | safire/data/loaders.py | Python | gpl-3.0 | 82,189 | [
"NEURON"
] | 3627eff71a2f292deadb66811f0aa39db54736a1ce51d6c2afc7d6e6b22838d4 |
"""
This module pre-defines several colors.
"""
AERO_BLUE = (201, 255, 229)
AFRICAN_VIOLET = (178, 132, 190)
AIR_FORCE_BLUE = (93, 138, 168)
AIR_SUPERIORITY_BLUE = (114, 160, 193)
ALABAMA_CRIMSON = (175, 0, 42)
ALICE_BLUE = (240, 248, 255)
ALIZARIN_CRIMSON = (227, 38, 54)
ALLOY_ORANGE = (196, 98, 16)
ALMOND = (239, 222... | mikemhenry/arcade | arcade/color/__init__.py | Python | mit | 28,818 | [
"Amber"
] | e323c4f1322d87c9a8f52467787e71abf8af83ca31fbfa66b631a728a6fb8579 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import six
from monty.re import regrep
from collections import defaultdict
"""
This module implements input and output processing from PWSCF.
"""
__author__... | tallakahath/pymatgen | pymatgen/io/pwscf.py | Python | mit | 7,300 | [
"CRYSTAL",
"pymatgen"
] | 5f605e8d5513700c83822d94e0bf0bf70081b9adc056c6436874d8e640dc95b5 |
import numpy as np
from scipy.integrate import odeint, trapz
from scipy import linalg
from scipy.interpolate import interp1d
from scipy.io import savemat, loadmat
from Utils.redirect import stdout_redirected
from Utils.loggingUtils import loggingInit,loggingFinish
loggingInit()
from EntryGuidance.EntryEquations impor... | CDNoyes/EDL-Py | GuidedEntry.py | Python | gpl-3.0 | 7,562 | [
"Gaussian"
] | 36da847b10771e57645a5c21f70494e7af5d583e7e170702f5ceaab892c86cb9 |
import urllib2, json
#
# Ulltrabenosaurus/Updater
#
# check the GitHub API for the latest tag release of a given
# repo and compare with the given version number
#
# can return a simple True/False if there's a newer version
# or give a message to show your users
#
# example:
# import Updater
# upd = Updater.New("Ultra... | Ultrabenosaurus/pupdater | Updater.py | Python | bsd-3-clause | 3,338 | [
"VisIt"
] | b2f98ecc41332b74f56c495c99277d3efd200915881f093b26dbf9e15dcd6647 |
# This file is part of Merlin.
# Merlin is the Copyright (C)2008,2009,2010 of Robin K. Hansen, Elliot Rosemarine, Andreas Jacobsen.
# Individual portions may be copyright by individual contributors, and
# are included in this collective work with permission of the copyright
# owners.
# This program is free software; ... | d7415/merlin | Hooks/lookup.py | Python | gpl-2.0 | 3,044 | [
"Galaxy"
] | cf0b686e3a86c87c76cadac93560b146bf4f3277e32cc245542ff813171fc58d |
#!/usr/bin/env python2.7
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# ... | markorians/pyMonit | main.py | Python | gpl-3.0 | 1,104 | [
"VisIt"
] | 342790f20a893da153719a9a41982623aea0d7d6a4e2cd54f2d9066367e2109d |
#!/usr/bin/python
import threading
from time import sleep
import re
from core.twitterc import TwitterC
from core.voicerecognition import VoiceRecognition
from core.voicesynthetizer import VoiceSynthetizer
from modules.voicemail import VoiceMail
from modules.clock import Clock
from modules.identification import Ident... | xe1gyq/nuupxe | modules/assistant.py | Python | apache-2.0 | 6,944 | [
"SIESTA"
] | f05f0c6cad90539ba19c7e53c4586ba8eed811909ec3a13b3549a33d1ffb53de |
#!/usr/bin/env python
from pyDFTutils.perovskite.frozen_mode import gen_distorted_perovskite
from pyDFTutils.ase_utils import vesta_view
from pyDFTutils.ase_utils import substitute_atoms
from ase.io import write
def gen():
atoms = gen_distorted_perovskite(
name='NdNiO3',
cell=[3.79, 3.79, 3.79],
... | mailhexu/pyDFTutils | pyDFTutils/perovskite/gen_111.py | Python | lgpl-3.0 | 805 | [
"ASE"
] | 24badc4542a99bdda943e0eb08f2f920c45c1d12017d4209762085be0a2b82d6 |
from astropy import log as logger
from astropy.io import fits
import numpy as np
from scipy.ndimage import gaussian_filter
from astropy.convolution import convolve_fft
def convolve_astropy(array, psf, mode='nearest'):
# This does the mode='nearest' option
if mode == 'nearest':
astropy_mode = 'edge'
... | koepferl/FluxCompensator | fluxcompensator/psf.py | Python | bsd-2-clause | 5,592 | [
"Gaussian"
] | 5ee99f18cddcd08f8dd62342cdaa26f53c15c8d82bf4ed62d856ab3140c9d680 |
#
# @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/qcdb/subsetgenerator.py | Python | lgpl-3.0 | 4,294 | [
"Psi4"
] | 87580b12aa9e2540f0de99ae123ed6e62ffc18d2158a13336c7fae0cca388020 |
""" A set of utilities for getting configuration information for the WMS components
"""
from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC.FrameworkSystem.Client.ProxyManagerClient import gProxyManager
from DIRAC.ConfigurationSystem.Client.Helpers import Registry, Operations
def findGenericPilotCredentials(vo=False,... | DIRACGrid/DIRAC | src/DIRAC/WorkloadManagementSystem/private/ConfigHelper.py | Python | gpl-3.0 | 1,987 | [
"DIRAC"
] | 619d51e46a3373e1d1da937f3895046fd3727801a3d4d36259fb77056a5d3e7a |
from __future__ import absolute_import
import copy
import cython
cython.declare(PyrexTypes=object, Naming=object, ExprNodes=object, Nodes=object,
Options=object, UtilNodes=object, LetNode=object,
LetRefNode=object, TreeFragment=object, EncodedString=object,
error=object, w... | slonik-az/cython | Cython/Compiler/ParseTreeTransforms.py | Python | apache-2.0 | 117,666 | [
"VisIt"
] | 4f0286310c677195300d4fec42883627339946603056ed7a9558f866f04aa6ad |
# setuptools installation of GromacsWrapper
# Copyright (c) 2008-2011 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
#
# See the files INSTALL and README for details or visit
# http://sbcb.bioch.ox.ac.uk/oliver/software/GromacsWrapper/
from __future__ import wit... | CTCNano/GromacsWrapper | setup.py | Python | gpl-3.0 | 2,907 | [
"Gromacs",
"VMD",
"VisIt"
] | 85b80ed2154dd079f703c01b74286223621f7bbe3f5cf575f0e36ec03d494d13 |
from __future__ import print_function
# gmsh reader
# neu writer
#
# * handles triangles (2d), tets(3d)
import numpy as np
import scipy.sparse as sparse
import sys
class Mesh:
"""
Store the verts and elements and physical data
attributes
----------
Verts : array
array of 3d coordinates (... | lukeolson/python-mesh-scripts | gmsh.py | Python | apache-2.0 | 21,585 | [
"VTK"
] | e84adea0dd2f2349c8543f43ffa2f7756d08224ab9abe03eaa872e554aee7ae8 |
import os
import shutil
from dem_sim.util import num_utils
def particles_from_files(filename_root):
particles = []
return particles
def particles_to_binary(particles, filename_root, path="", ignore_warnings=False):
if os.path.exists(path) and not ignore_warnings:
ans = input(path + " already exi... | Xorgon/DEMApples | dem_sim/util/file_io.py | Python | gpl-3.0 | 6,302 | [
"ParaView"
] | 1e89e52b1dc0ac067cb70a862fe3582c915c389fffb48c42db2209039ddf3844 |
"""Project module of the psyplot Package
This module contains the :class:`Project` class that serves as the main
part of the psyplot API. One instance of the :class:`Project` class serves as
coordinator of multiple plots and can be distributed into subprojects that
keep reference to the main project without holding al... | Chilipp/psyplot | psyplot/project.py | Python | gpl-2.0 | 102,435 | [
"NetCDF"
] | 42023686b307fe8236f7786bff932dd29203f3ad8e4d4589a4de9e6389e16a81 |
r"""
Spatial Statistics (:mod:`skbio.stats.spatial`)
===============================================
.. currentmodule:: skbio.stats.spatial
This module provides functions for spatial analysis.
Functions
---------
.. autosummary::
:toctree: generated/
procrustes
"""
# ---------------------------------------... | jensreeder/scikit-bio | skbio/stats/spatial.py | Python | bsd-3-clause | 5,674 | [
"scikit-bio"
] | c65d302ffd37a9d967ef4f2bcd7cc2ad1744af77530fc428052d37cbc9bfdbf3 |
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from typi... | Azure/azure-sdk-for-python | sdk/tables/azure-data-tables/azure/data/tables/_authentication.py | Python | mit | 4,684 | [
"VisIt"
] | ed72602b23d3f8e45ddacd1127334c6f172aee8accc63582242792fba193f3ef |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
import os
im... | harterj/moose | python/MooseDocs/extensions/pysyntax.py | Python | lgpl-2.1 | 7,976 | [
"MOOSE"
] | 25aec7621b1dd159d205c2df913113d2875ad3591c28d904e52861b129b7f736 |
"""
Testing for the forest module (sklearn.ensemble.forest).
"""
# Authors: Gilles Louppe,
# Brian Holt,
# Andreas Mueller,
# Arnaud Joly
# License: BSD 3 clause
import pickle
from collections import defaultdict
from itertools import combinations
from itertools import product
import numpy ... | RomainBrault/scikit-learn | sklearn/ensemble/tests/test_forest.py | Python | bsd-3-clause | 43,013 | [
"Brian"
] | b3f1580304c2dbb6b20a26819befac9ed9facf8aa1dbdca23e86c7f7d266f7f7 |
#!/usr/bin/env python
# This example creates a polygonal model of a cone, and then renders
# it to the screen. It also defines an interaction style by creating a
# set of Command/Observers. (Note: it is far more efficient to create
# new styles by subclassing vtkInteractorStyle. This is just an
# illustrative example.... | keithroe/vtkoptix | Examples/GUI/Python/CustomInteraction.py | Python | bsd-3-clause | 7,010 | [
"VTK"
] | 5cdea185568ae544d237d16acdee1fa895731fa7d30bba5340642ff97d8a983f |
"""
Provides classes that take protocol requests, send that request to
the server, and write a particular genomics file type with the results.
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import collections
import pysam
import ga4gh.datamodel.reads... | diekhans/ga4gh-server | ga4gh/converters.py | Python | apache-2.0 | 10,211 | [
"pysam"
] | ab452272e9939036e14acc4332b39b07121816952ab4d4bf23294555fe1134c2 |
from __future__ import division
from __future__ import print_function
from itertools import chain
import ninemlcatalog
import numpy
import sys
from nineml import units as un, Property
from pype9.simulate.neuron import (
CellMetaClass as NeuronCellMetaClass, Network as NeuronNetwork,
Simulation as NeuronSimulati... | tclose/PyPe9 | test/unittests/test_seeding.py | Python | mit | 7,694 | [
"NEURON"
] | c1bb84462e51e6e294e481ba3b41d63ae295ec3e60a7eea8039bad82e81de5e6 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
urlpatterns = [
url(r'^$', TemplateView.as_view(templ... | jhough/django-inform | config/urls.py | Python | bsd-3-clause | 1,364 | [
"VisIt"
] | d3696b503ec08fbbf147347a4abdf906b931c86d4bdd54c237cb7a1f611c45fd |
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Fast R-CNN config system.
This file specifies default config option... | HaydenFaulkner/bottom-up-attention | lib/fast_rcnn/config.py | Python | mit | 10,182 | [
"Gaussian"
] | a18b9f31935904fc4ccb55e263411d8d156e05aa8e321331da356de4b45a3279 |
from builtins import object
from nineml.exceptions import (
NineMLSerializationError, NineMLMissingSerializationError,
NineMLUnexpectedMultipleSerializationError)
from nineml.reference import Reference
from nineml.annotations import Annotations
from nineml.utils import validate_identifier
class BaseNode(objec... | INCF/lib9ML | nineml/serialization/base/nodes.py | Python | bsd-3-clause | 18,803 | [
"VisIt"
] | ab1802c5d1e71bb7b8df9ede2ebddd30d79759b125a30b818178dc48f694dd84 |
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 27 17:29:32 2017
@author: Deborah
"""
import __builtin__
__builtin__.namehtml='D:\\Uk Biobank\\Application 10035\\R8546\\ukb8546.html'
__builtin__.namecsv='D:\\Uk Biobank\\Application 10035\\R8546\\ukb8546.csv'
__builtin__.N = 502641
import BiobankRead2.BiobankRead2 a... | saphir746/BiobankRead | test.py | Python | apache-2.0 | 2,399 | [
"VisIt"
] | 84886c1e64288dd0f836f937eb1253a0652ee5351d355f818c59a7e0a070e24d |
"""
Migration script to add the tool_dependency table.
"""
from sqlalchemy import *
from sqlalchemy.orm import *
from migrate import *
from migrate.changeset import *
import sys, logging
from galaxy.model.custom_types import *
from sqlalchemy.exc import *
import datetime
now = datetime.datetime.utcnow
log = logging.ge... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/model/migrate/versions/0099_add_tool_dependency_table.py | Python | gpl-3.0 | 1,756 | [
"Galaxy"
] | b97e6c82675a8fb21ab9335d3d8abd3e07a523fc5cf8263d742e3dec219b1ea5 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2014 Lucas Lin
#
# 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... | AzurNova/Neuron-Simulation | Theta Neuron/neuron_simulation_double.py | Python | apache-2.0 | 7,023 | [
"NEURON"
] | 7437a0b86c8aecda7e6785150d8ef30bae7b08a42ec22adfaa67f7d210a003d8 |
import ast
import re
import warnings
from operator import attrgetter
from hyperopt import space_eval
class ImportParser(ast.NodeVisitor):
def __init__(self):
self.lines = []
self.line_numbers = []
def visit_Import(self, node):
line = 'import {}'.format(self._import_names(node.names))... | maxpumperla/hyperas | hyperas/utils.py | Python | mit | 7,226 | [
"VisIt"
] | 52a0f65a917a4c5e9caf1865b3c30413c8554da1c3dd31773db36080b52f1a0c |
"""
This is only meant to add docs to objects defined in C-extension modules.
The purpose is to allow easier editing of the docstrings without
requiring a re-compile.
NOTE: Many of the methods of ndarray have corresponding functions.
If you update these docstrings, please keep also the ones in
core/fromnum... | RPGOne/Skynet | numpy-master/numpy/add_newdocs.py | Python | bsd-3-clause | 225,545 | [
"Brian"
] | 966c3628088dfe223b220e2b4f5751b4435f52fca57ad9ae25facc932989d4ac |
# numkit --- observables
# Copyright (c) 2010 Oliver Beckstein <orbeckst@gmail.com>
# Released under the "Modified BSD Licence" (see COPYING).
"""
:mod:`numkit.observables` --- Observables as quantities with errors
===================================================================
Example showing how to use :class:`Q... | CTCNano/GromacsWrapper | numkit/observables.py | Python | gpl-3.0 | 14,733 | [
"Gaussian"
] | 01245f0f714c136ca534c188decb6ce913c0abad8dedb5a2fc3ad80d632e6c08 |
# Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | psci2195/espresso-ffans | testsuite/python/mass-and-rinertia_per_particle.py | Python | gpl-3.0 | 23,000 | [
"ESPResSo"
] | c32d6e94b8e6612d72da786058958315c62b94407b589c3c67307a7a0abead76 |
# -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Utilities and wrappers around inspect module"""
from __future__ import print_function
import inspect
import re
# Local imports:
from spyder.utils ... | bgris/ODL_bgris | lib/python3.5/site-packages/spyder/utils/dochelpers.py | Python | gpl-3.0 | 12,111 | [
"VTK"
] | 96c9816d6a1a21b1461e2288d1d8f0bbc817368485fbe375e3b081cfd568e97a |
#!/usr/bin/env python
#
# 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.
#
# Written (C) 2012-2013 Heiko Strathmann
#
impor... | youssef-emad/shogun | examples/undocumented/python_modular/statistics_hsic.py | Python | gpl-3.0 | 4,120 | [
"Gaussian"
] | 767c8c49fef56eddcf36f6ea2a91d36302ab512c7fb2fac5b4438cb25c4be9df |
import socket
import smtplib
import os
import base64
import werkzeug.security as ws
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA
from Crypto.PublicKey import RSA
from flask import Flask, request, jsonify, abort, json
from simplekv.fs import FilesystemStore
from uuid import UUID
from email.MIMEMul... | Nevtep/omniwallet | api/user_service.py | Python | agpl-3.0 | 18,704 | [
"exciting"
] | de17fe59e07ba6e59d0219f5abd4919c27897160a59e4e2caa33276108a9b21f |
#!/usr/bin/env python
#
# Copyright 2014 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 require... | moyogo/nototools | nototools/test_vertical_extents.py | Python | apache-2.0 | 5,726 | [
"xTB"
] | ee852c4e61d7de81a114f3b40d9828658ac7d9318142fcc4285259c7422de1fc |
#!/usr/bin/env python
# This example demonstrates how to use the vtkPointWidget to probe a
# dataset and then color the probed point (represented as a cone) as
# per the probed value and orient it as per the vector.
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Start by loadi... | Nikea/VisTrails | examples/vtk_examples/GUI/ProbeWithPointWidget.py | Python | bsd-3-clause | 3,034 | [
"VTK"
] | c3f08d68ff7e0250c4045beb1bff752a739acef5c62731a48fe085ab5616ce46 |
#!/usr/bin/env python
__author__ = "waroquiers"
import os
import unittest
from monty.tempfile import ScratchDir
from pymatgen.analysis.chemenv.utils.chemenv_config import ChemEnvConfig
from pymatgen.core import SETTINGS
from pymatgen.util.testing import PymatgenTest
config_file_dir = os.path.join(
PymatgenTes... | materialsproject/pymatgen | pymatgen/analysis/chemenv/utils/tests/test_chemenv_config.py | Python | mit | 1,998 | [
"pymatgen"
] | bd125977881c7c51cca4b263a1cf783cf947510a0df2af2344e1d7ee792968e6 |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | nchammas/spark | python/pyspark/mllib/util.py | Python | apache-2.0 | 21,277 | [
"Gaussian"
] | 5d99245ac239708f5f4df381c407ce43891526b366979b7d01449f87915896e6 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# test_subgraphs.py part of cellery (ceRNAs linking inference)
#
# Copyright 2016 Oscar Bedoya Reina <obedoya@igmm-linux-005>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publish... | oscarcbr/cellery | tests/test_subgraphs.py | Python | gpl-3.0 | 15,730 | [
"Galaxy"
] | 90938739f72b904f8786961bfd51bd5c9adba3a67525a67d6b9cad64865fe00e |
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | google/transperf | metric.py | Python | apache-2.0 | 32,862 | [
"VisIt"
] | f9ffcb4652ad3b7e580c2953e284b8a7d0609b54b190ca281f134e80bbe071c2 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
This module provides classes for calculating the ewald sum of a structure.
"""
__author__ = "Shyue Ping Ong, William Davidson Richard"
__copyright__ = "C... | migueldiascosta/pymatgen | pymatgen/analysis/ewald.py | Python | mit | 23,186 | [
"GULP",
"pymatgen"
] | 5ff21686359347b6572473c7f645b45a8a2bc878085c323e4e44f3d4c0528b6c |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | ctrlaltdel/neutrinator | vendor/openstack/tests/unit/test_proxy.py | Python | gpl-3.0 | 16,388 | [
"Brian"
] | 4f348d1d2897e9b280e6ffcd50861e75df9b63eed669060a91f4dc6be5f40291 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/web/epgservicenow.py | Python | gpl-2.0 | 7,571 | [
"VisIt"
] | 8330afec5c6a6b7a098218ebd783c994db47f54133e0f2f0a85c52e12cbcfc15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.