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 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/env python
#Directory Rescue Crawler, direscraw v1.43
#Copyright (c) 2014 by Brian Mikolajczyk, brianm12@gmail.com
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of... | bmikolaj/direscraw | direscraw.py | Python | gpl-3.0 | 8,305 | [
"Brian"
] | 44e6ae2c2feaa9b95eed9a47d389e72e6f6a9f55808e02fa8d8db3b12aac4e50 |
# Copyright (C) 2017
# Jakub Krajniak (jkrajniak at gmail.com)
#
# 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
... | espressopp/espressopp | testsuite/FileIOTests/dump_xtc_adress/test_dump_xtc_adress.py | Python | gpl-3.0 | 2,615 | [
"ESPResSo"
] | e8e0e33d0e35f22b76126f36aee3aa1674cefc39df71ede6f79c49b745446ea4 |
# Copyright (C) 2019-2021 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import functools
import logging
from unittest.mock import patch
impo... | SoftwareHeritage/swh-storage | swh/storage/tests/test_backfill.py | Python | gpl-3.0 | 8,545 | [
"VisIt"
] | d8155cf31f8ba6a9035c8384c9968b13a48fc5b0ee17f45aa52fe47b1bd14f3f |
# Orca
#
# Copyright 2008-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... | pvagner/orca | src/orca/tutorialgenerator.py | Python | lgpl-2.1 | 30,615 | [
"ORCA"
] | 95a58604b9b93745f2698b4cde69f1532fdd7a6950c92878a640b9be72ad3cfa |
# -*- coding: utf-8 -*-
"""Test sequences for graphiness.
"""
# Copyright (C) 2004-2015 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
from collections import defaultdict
import heapq
import networkx as nx
_... | LumPenPacK/NetworkExtractionFromImages | win_build/nefi2_win_amd64_msvc_2015/site-packages/networkx/algorithms/graphical.py | Python | bsd-2-clause | 12,990 | [
"Brian"
] | 2898b48f50c02d053711ddcc3b19ede7d122f77f979a2fa333d50d7c0c142951 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# List of types and corresponding file extensions.
types = [[ 'ImageData', 'vti'],
['RectilinearGrid', 'vtr'],
['StructuredGrid', 'vts'],
[... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/IO/XML/Testing/Python/TestEmptyXML.py | Python | gpl-3.0 | 3,957 | [
"VTK"
] | 888e688ecead5c71af00b9540e35f4037d5c94fa9856e3ad5ddc5a28b8cd6a6e |
from distutils.core import setup
import clumpy
packages = ['clumpy']
install_requires = ['numpy>=1.8']
ext_modules = []
setup(
name='clumpy',
author="Brian Kimmig",
author_email='brian.kimmig@gmail.com',
url="https://github.com/bkimmig/clumpy",
license="",
description="Python Expectation Maxim... | bkimmig/clumpy | setup.py | Python | mit | 1,055 | [
"Brian"
] | f0382517148fdbedec06edfb19ea0a4e03e6125ace026ed8d277451f91d1b246 |
"""
Implementation of a language model class.
TODO: write more documentation
"""
__docformat__ = 'restructedtext en'
__authors__ = ("Razvan Pascanu "
"KyungHyun Cho "
"Caglar Gulcehre ")
__contact__ = "Razvan Pascanu <r.pascanu@gmail>"
import numpy
import itertools
import logging
impo... | neozhangthe1/coverage_model | build/lib/groundhog/models/LM_model.py | Python | bsd-3-clause | 10,546 | [
"Gaussian"
] | 5e74658376eea16ff81dc31b9ba9dd609c4670a357a89a76859b9ee9c6ce17fb |
# Simple program to call pyqrcode to generate a URL based QR code image
# and save the generated image to disk
# The generated QR image was tested with a Samsung Galaxy II running the
# Norton Snap QR Code Reader from the Android Play Store
import os, sys, inspect
#
# Much ugly bother to work with a lo... | astokes/SynVinQR | etude/generate_QR_image.py | Python | bsd-2-clause | 1,119 | [
"Galaxy"
] | 16a8712638a063e80e882bed01703ffcb64288d2d3e6e9b47dd0b3c63442ce58 |
# Copyright 2017 Hugh Salimbeni
#
# 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, s... | ICL-SML/Doubly-Stochastic-DGP | doubly_stochastic_dgp/utils.py | Python | apache-2.0 | 5,060 | [
"Gaussian"
] | 2f7c07f57bcf2a00ec86798a0d0768e3e0343451bf7bddcdfee40fa9f394e92b |
# -*- coding: utf-8 -*-
# Tokyo Cabinet Python ctypes binding.
from ctypes import CDLL, CFUNCTYPE, POINTER
from ctypes import c_int, c_int8, c_int32, c_int64
from ctypes import c_uint, c_uint8, c_uint32, c_uint64
from ctypes import c_bool, c_size_t
from ctypes import c_double
from ctypes import c_char_p, c_void_p
from... | aplanas/py-tcdb | tcdb/tc.py | Python | lgpl-3.0 | 308,185 | [
"BLAST"
] | 685e047142d93420c27c11fcc222ca2789171b7b5dbcf24e8ba0ef4f3e81b19e |
# coding=utf-8
# Copyright 2018 The Dopamine Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | google/dopamine | dopamine/jax/networks.py | Python | apache-2.0 | 14,867 | [
"Gaussian"
] | 307f91a26b91a383741adaeb69cfda2423cf43f6232b9ac409bb9b672442e5d7 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
"""
Define a common GULP Sile
"""
from sisl._internal import set_module
from ..sile import Sile, SileCDF
__all__ = ['Si... | zerothi/sisl | sisl/io/gulp/sile.py | Python | mpl-2.0 | 472 | [
"GULP"
] | 650374e65ecc58155b8453405eabf1c0df0851229c8b6440f6b2a1b0657e84e2 |
REF= "/home/ubuntu/refs/bwa_index/GCF_000001405.30_GRCh38.p4_genomic.fna"
BWA="/opt/biobuilds/bin/bwa"
SAMTOOLS="/opt/biobuilds/bin/samtools"
FREEBAYES="/home/ubuntu/freebayes/bin/freebayes"
VCFILTER="/home/ubuntu/vcflib/bin/vcffilter"
| DCGenomics/vcf_parsing_hackathon_v002 | scripts/snake_env.py | Python | cc0-1.0 | 236 | [
"BWA"
] | a26a56b70c6d7a3e03ae4be601dc341f7e5dd55da8bf666877bedcf0e83f2d40 |
# coding=utf-8
# Copyright 2022 The Uncertainty Baselines Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | google/uncertainty-baselines | baselines/jft/batchensemble_utils.py | Python | apache-2.0 | 13,638 | [
"VisIt"
] | 2f74dfcd647a0e2354f5509c9dfe53d22f6e6f5721d60f18edfe7bc45c806cdd |
#!/usr/bin/env python3
# - * -coding: utf - 8 - * -
import argparse
import logging
import os
import sys
import pysam
from tqdm import tqdm
def file_len(fname):
with open(fname) as f:
for i, l in enumerate(f):
pass
return i + 1
def mean(list_of_quals):
"""
Naive function for det... | AlgoLab/HapCol | utils/bam_to_wif.py | Python | gpl-2.0 | 6,312 | [
"pysam"
] | a46d9927731968f5faa83392f55fedbf52a588ddca3171f022bd9ed4c7909361 |
#lint:disable
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ----------------------------------------... | marmyshev/item_title | openlp/plugins/custom/forms/editcustomslideform.py | Python | gpl-2.0 | 4,133 | [
"Brian"
] | a83175d8f11d12bf6d8ff8c11ec73d91f5b0069085ce3d0fb4fd3d604699cc0d |
from __init__ import *
# writing data
def writ_maps_rec7_back():
gdat = tdpy.util.gdatstrt()
gdat.recotype = ['rec7']
gdat.enertype = ['back']
tdpy.util.writ_fdfm()
tdpy.util.writ_maps_main(gdat, os.environ["FERM_IGAL_DATA_PATH"])
tdpy.util.prep_maps('rec7', 'back', 'igal', os.environ["FER... | tdaylan/tdgu | ferm_igal_oldd.py | Python | mit | 26,094 | [
"Gaussian"
] | c1671ac77c4b98c8bd3688a9081caac1dfc17c7ea40b3e588ee60e3982bc8591 |
from ase.optimize import BFGS
from ase.structure import molecule
from ase.parallel import paropen
from gpaw import GPAW, PW
from gpaw.xc.exx import EXX
# N -------------------------------------------
N = molecule('N')
N.cell = (6, 6, 7)
calc = GPAW(mode=PW(600),
dtype=complex,
nbands=8,
... | robwarm/gpaw-symm | doc/tutorials/rpa/gs_N2.py | Python | gpl-3.0 | 1,300 | [
"ASE",
"GPAW"
] | d2d5993c516cb67be4a0d2b078e1ed4734d8cc1f884e8f4a56035429b71fc356 |
"""
========================
Random Number Generation
========================
==================== =========================================================
Utility functions
==============================================================================
random Uniformly distributed values of a given sha... | DailyActie/Surrogate-Model | 01-codes/numpy-master/numpy/random/__init__.py | Python | mit | 5,485 | [
"Gaussian"
] | f9ca8ea8e20608ebc864347e830e8a5b866887fa9e2b21ea5d72134e1f8092e5 |
########################################################################
# $HeadURL $
# File: FTSAgent.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/05/31 10:00:13
########################################################################
""" :mod: FTSAgent
==============
.. module: FTSAgent
:syno... | miloszz/DIRAC | DataManagementSystem/Agent/FTSAgent.py | Python | gpl-3.0 | 45,763 | [
"DIRAC"
] | ce0eff82dade205007fa27ddcbe54b0167f9caf6b9d4db492fa8bb8d53e48147 |
import csv
stockDict = {
'MIIIU': 'M III Acquisition Corp.',
'ORC': 'Orchid Island Capital, Inc.',
'GRBK': 'Green Brick Partners, Inc.',
'GAS': 'AGL Resources, Inc.',
'THG': 'The Hanover Insurance Group, Inc.',
'USLM': 'United States Lime & Minerals, Inc.',
'NSEC': 'National Security... | ardasahiner/StockTrade | vendor/StockTickerData/makeSearchTerms.py | Python | gpl-3.0 | 281,883 | [
"Amber",
"BLAST",
"BWA",
"CASINO",
"CDK",
"COLUMBUS",
"CRYSTAL",
"Jaguar"
] | b3ef27769baa81afb71fb576a6850ac167cfe0ef220bd7ecd8fd85b5672e490f |
# -*- coding: utf-8 -*-
"""
.. _tut-artifact-ica:
Repairing artifacts with ICA
============================
This tutorial covers the basics of independent components analysis (ICA) and
shows how ICA can be used for artifact repair; an extended example illustrates
repair of ocular and heartbeat artifacts.
.. contents... | Eric89GXL/mne-python | tutorials/preprocessing/plot_40_artifact_correction_ica.py | Python | bsd-3-clause | 30,767 | [
"Gaussian"
] | 28c4c9976d7dba5a3017d740d2049b2060f6372777549845ff01a35873fc1154 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase, override_settings
from django.utils.encoding import force_str
from django.views.generic.base import View
from .models import Artist, Auth... | yephper/django | tests/generic_views/test_list.py | Python | bsd-3-clause | 12,393 | [
"MOOSE"
] | 5c7895301157d015a8272211c9ba3ab51d6af14ee57ee5661f30136aa59e0538 |
# -*- coding: utf-8 -*-
from flask import abort, Blueprint, g, jsonify, render_template, request, redirect, url_for
from config import CROSSWALKS, PROFILES
from datausa.profile.profile import Profile
from datausa.utils.data import attr_cache, acs_crosswalk
from datausa.utils.manip import stat
from datausa.search.... | tgarland1/datausa-site | datausa/profile/views.py | Python | agpl-3.0 | 3,921 | [
"MOE"
] | 2efcbb6959a2f48f5c1b77bc30467af0a2368ee41e6ac0c78a83179fceda8c7c |
import sys
import time
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Base import Script
from DIRAC.Core.DISET.MessageClient import MessageClient
Script.parseCommandLine()
def sendPingMsg( msgClient, pingid = 0 ):
"""
Send Ping message to the server
"""
result = msgClient.createMessage( "Ping" )
if not res... | fstagni/DIRACDocs | source/DeveloperGuide/Framework/stableconns/client.py | Python | gpl-3.0 | 1,425 | [
"DIRAC"
] | 48d23e902469970437eb21fc070bdb12d3b7038eea4c0ef2f54955582cd60549 |
########################################################################
# $HeadURL$
# File : VirtualMachineDB.py
# Author : Ricardo Graciani
# occi and multi endpoint author : Victor Mendez
########################################################################
""" VirtualMachineDB class is a front-end to the virtu... | xianghuzhao/VMDIRAC | VMDIRAC/WorkloadManagementSystem/DB/VirtualMachineDB.py | Python | gpl-3.0 | 54,667 | [
"DIRAC"
] | 196a74ff517dd62b556832517470b8628b07f5e32b2986f17079b8d345088056 |
#!/usr/bin/env python
# Author: Andrew Jewett (jewett.aij at g mail)
# License: 3-clause BSD License (See LICENSE.TXT)
# Copyright (c) 2017, California Institute of Technology
# All rights reserved.
"""
Reorder the integer arguments to the commands in a LAMMPS input
file if these arguments violate LAMMPS order ... | yidongxiainl/lammps | tools/moltemplate/moltemplate/postprocess_input_script.py | Python | gpl-2.0 | 6,865 | [
"LAMMPS"
] | 52df4c6323ad593d94121dd3f805473e2128c2fc13570d8f5357be2970872555 |
# Author: Travis Oliphant
# 1999 -- 2002
from __future__ import division, print_function, absolute_import
import operator
import threading
import sys
import timeit
from . import sigtools, dlti
from ._upfirdn import upfirdn, _output_len
from scipy._lib.six import callable
from scipy._lib._version import NumpyVersion
... | kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/scipy/signal/signaltools.py | Python | gpl-3.0 | 117,882 | [
"Gaussian"
] | b79c72eb22e7ad053e569fd975681191fcc9b0ed587cd2697e3e1ac42e0b4b8d |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
#
# Author: Matteo Giantomassi <matteo.giantomassiNOSPAM AT uclouvain.be>
# Date: October 11, 2016
from spack import *
c... | rspavel/spack | var/spack/repos/builtin/packages/abinit/package.py | Python | lgpl-2.1 | 7,283 | [
"ABINIT",
"NetCDF",
"Wannier90"
] | 0c1909e6ca70759ca3e0afd231cf7708f9655828f023611fabc52a246714eb18 |
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2015 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | eustislab/horton | horton/part/test/common.py | Python | gpl-3.0 | 3,891 | [
"CP2K"
] | 11713e4b833f78fdbdd0387e404a217ea0943ed453b4402c76d244e799613286 |
#!/usr/bin/env python3
from setuptools import setup
with open('README.rst') as fh:
long_description = fh.read()
setup(name='tacl',
version='2.2.0',
description='Text analyser for corpus linguistics',
long_description=long_description,
author='Jamie Norrish',
author_email='jamie@art... | cwittern/tacl | setup.py | Python | gpl-3.0 | 1,108 | [
"Biopython"
] | 7f173b0357cf565ce4f1c341ad83cd98b61e0650ece34175562fe490259e01b5 |
import sys
import numpy as np
lsun, pc = 3.846e33, 3.085677581467192e18
lightspeed = 2.998e18 #AA/s
#value to go from L_sun/AA to erg/s/cm^2/AA at 10pc
to_cgs = lsun/(4.0 * np.pi * (pc*10)**2 )
def burst_sfh(fwhm_burst=0.05, f_burst=0.5, contrast=5,
sfh=None, bin_res=20., **extras):
"""
Given a ... | bd-j/magellanic | magellanic/sfhs/sputils.py | Python | gpl-2.0 | 13,757 | [
"Gaussian"
] | e6cc3a6a9bbb52834eadbf82d40b0006a8c243760a7226a3f99bf84360baa0e2 |
"""
NetCDF reader/writer module.
This module is used to read and create NetCDF files. NetCDF files are
accessed through the `netcdf_file` object. Data written to and from NetCDF
files are contained in `netcdf_variable` objects. Attributes are given
as member variables of the `netcdf_file` and `netcdf_variable` objects... | gfyoung/scipy | scipy/io/netcdf.py | Python | bsd-3-clause | 39,528 | [
"NetCDF"
] | 626167d2c971a30cba626ac1e2caa8f616b8f957459a7d798a5c1f2b3465d019 |
# zh_TW.po
val = {" days." : " 天。",
"(all)" : "",
"(any)" : "",
"(anyone)" : "",
"(available)" : "",
"(blank)" : "",
"(both)" : "",
"(everyone)" : "",
"(master user, not editable)" : "",
"(no change)" : "",
"(no deduction)" : "",
"(none)" : "",
"(unknown)" : "",
"(use system)" : "",
"({0} given, {1} remaining)" : "",
... | bobintetley/asm3 | src/asm3/locales/locale_zh_TW.py | Python | gpl-3.0 | 108,725 | [
"Amber",
"VisIt"
] | 0fbf12331a1479e068bb70a0c54b44adb1723bd01d3442164bbcd874eddbaee5 |
################################################################################
# $HeadURL $
################################################################################
__RCSID__ = "$Id$"
"""
fake AgentModule class. Every function can simply return S_OK()
"""
from DIRAC import S_OK
class AgentModule:
... | Sbalbp/DIRAC | ResourceStatusSystem/test/fake_AgentModule.py | Python | gpl-3.0 | 1,080 | [
"DIRAC"
] | 5561db7979856109c012a4f9902b38b60cd5e3025be79fd2facca5a3cdb69b81 |
"""
Unix-like Command style parent
Evennia contribution, Vincent Le Geoff 2017
This module contains a command class that allows for unix-style command syntax in-game, using
--options, positional arguments and stuff like -n 10 etc similarly to a unix command. It might not
the best syntax for the average player but can... | feend78/evennia | evennia/contrib/unixcommand.py | Python | bsd-3-clause | 10,008 | [
"VisIt"
] | 380beca81fe1a30ed898ce93b4b97c3ae4b1a26f0288e5d729908104fecec4a6 |
import numpy as np
import os
try:
import netCDF4 as netCDF
except:
import netCDF3 as netCDF
import matplotlib.pyplot as plt
import time
from datetime import datetime
from matplotlib.dates import date2num, num2date
import pyroms
import pyroms_toolbox
import _remapping
class nctime(object):
pass
def remap(src_... | kshedstrom/pyroms | examples/Arctic2/remap.py | Python | bsd-3-clause | 5,296 | [
"NetCDF"
] | c262c2beb95b92629cab84bf907f46fa575c1cea10e04a2547a5f9203923f83c |
#!/usr/bin/env python
"""
Psty HTTP Server. The P is silent, as in Psmith.
Psty does three things:
- Exposes local FS to pigshell.
- Proxy HTTP(s) server for pigshell's Ajax requests to jump the same-origin
barrier
- Websocket server to let pigshell pipe data through Unix commands
Psty is deliberat... | pigshell/pigshell | psty.py | Python | gpl-3.0 | 42,770 | [
"VisIt"
] | cb5b702aadeb5164f77b7165c648903c04572d9dadc421589a16dfcec9fb5437 |
# proxy module
from __future__ import absolute_import
from mayavi.modules.ui.surface import *
| enthought/etsproxy | enthought/mayavi/modules/ui/surface.py | Python | bsd-3-clause | 94 | [
"Mayavi"
] | 447bbf4358a564ea5d3e070b6379d77c8b002605c44b2a1492a4d2c43d027388 |
"""
Numerical python functions written for compatibility with MATLAB
commands with the same names. Most numerical python functions can be found in
the `numpy` and `scipy` libraries. What remains here is code for performing
spectral computations.
Spectral functions
-------------------
`cohere`
Coherence (normalize... | iproduct/course-social-robotics | 11-dnn-keras/venv/Lib/site-packages/matplotlib/mlab.py | Python | gpl-2.0 | 35,666 | [
"Gaussian"
] | ebc929d6c1c6a99c2cf48b4f5495e47fa1ea58df16d6ff423f5702ab05b9a74b |
# 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... | fweik/espresso | testsuite/python/analyze_energy.py | Python | gpl-3.0 | 7,925 | [
"ESPResSo"
] | ee79f8626ee6bb05ccb180812eeaa7ae6f664f199b2cdffbb584e2c8e0b5bb0d |
"""
This file tests electric_field_value and induction_operator
agains the canonical electric_field integral evaluation
"""
import numpy as np
import pytest
import psi4
pytestmark = pytest.mark.quick
def test_elec_fields():
mol = psi4.geometry("""
units bohr
0 1
O1 0.000000000000 0.000000000... | CDSherrill/psi4 | tests/pytests/test_elec_fields.py | Python | lgpl-3.0 | 2,272 | [
"Psi4"
] | 96d66e8f3982b74957185b25f6756f9ae69fb4bdcafc72ccfa51e78884b00209 |
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------
# Filename: multitaper.py
# Purpose: Python wrapper for multitaper `mtspec` f90 library of
# German A. Prieto
# Author: Moritz Beyreuther, Lion Krischer
# Email: beyreuth@geophysik.uni-muenchen.de
# License: GP... | luca-penasa/mtspec-python3 | mtspec/multitaper.py | Python | gpl-2.0 | 23,632 | [
"Gaussian"
] | aa49c012e1e9c7244e2d3192e2b4115f738d4354b802afa693e5144e2e107202 |
# Copyright (c) Mathias Kaerlev 2013-2017.
#
# This file is part of cuwo.
#
# cuwo 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.
#
# ... | matpow2/cuwo | cuwo/strings.py | Python | gpl-3.0 | 94,588 | [
"CRYSTAL"
] | 8293c9a5ac318d43f9bb84080a6ad63a88be09599c0155256a351a8f58f4ccd2 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
freeseer - vga/presentation capture software
Copyright (C) 2011 Free and Open Source Software Learning Centre
http://fosslc.org
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 ... | Freeseer/freeseer | src/freeseer/frontend/configtool/ConfigToolWidget.py | Python | gpl-3.0 | 3,246 | [
"VisIt"
] | 3bfddbbf32698ddfb9f0faa63c0dffa88292714207a17d329800625edfb4c5d3 |
"""Contains the drivers and interface code for pinball machines which
use the Multimorphic P3-ROC hardware controllers.
This code can be used with P-ROC driver boards, or with Stern SAM, Stern
Whitestar, Williams WPC, or Williams WPC95 driver boards.
Much of this code is from the P-ROC drivers section of the pyprocg... | jabdoa2/mpf | mpf/platform/p3_roc.py | Python | mit | 53,581 | [
"Brian"
] | 490fabd3d35d33da0d16f1e5e9941a3094248bcf0721b8e38760ba5b84cef0f4 |
# This file is part of Bioy
#
# Bioy 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.
#
# Bioy is distributed in the hope... | crosenth/bioy | bioy_pkg/subcommands/plot_sequence_length.py | Python | gpl-3.0 | 2,686 | [
"BLAST"
] | 3ed82286c7633c5f90a0e46a7518f10be3c59e2384e5ee19cfaf1a834668c51c |
import six
from json import dumps
from unittest import TestCase
try:
from unittest.mock import patch, mock_open
except ImportError:
from mock import patch
from six.moves import builtins
from .sample_data import PARAMS, RECORD0, RECORD1, RECORD2, RECORD3, RECORD4
from dark.reads import Read, Reads
from dark.... | terrycojones/dark-matter | test/blast/test_titles.py | Python | mit | 55,975 | [
"BLAST"
] | b9c32ff5fd825683500a4cf341854cfdbc91b945eff5d7469115f84ddb103871 |
"""
Python interface to GnuPG.
This module is used to invoke GnuPG to check the digital signatures on interfaces.
@see: L{iface_cache.PendingFeed}
"""
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from zeroinstall import _
import subprocess
import base64, re
i... | dabrahams/zeroinstall | zeroinstall/injector/gpg.py | Python | lgpl-2.1 | 10,404 | [
"VisIt"
] | fedca3cf9e893cb558c21148e2d164a4a941c6a1bb505abe80a2df21bc3358eb |
from collections import defaultdict
from .block import Block
from .common import fail
from .errors import Errors
from .ir import *
from .irvisitor import IRVisitor, IRTransformer
from .loop import Loop
from .scope import SymbolReplacer
from .type import Type
from logging import getLogger
logger = getLogger(__name__)
... | ktok07b6/polyphony | polyphony/compiler/unroll.py | Python | mit | 18,901 | [
"VisIt"
] | fa3706410eb8b32e42d43466e62e2a267ed90b19601fd3f51c4aa9e84afb20a5 |
#!/usr/bin/env python
"""
Easy Install
------------
A tool for doing automatic download/extract/build of distutils-based Python
packages. For detailed documentation, see the accompanying EasyInstall.txt
file, or visit the `EasyInstall home page`__.
__ https://pythonhosted.org/setuptools/easy_install.html
"""
from... | victor-prado/broker-manager | environment/lib/python3.5/site-packages/setuptools/command/easy_install.py | Python | mit | 88,265 | [
"VisIt"
] | 779aba165031ea23a9ef5009ac8640534d0451df4c03e060e6b52d10a4570d83 |
#!/usr/local/bin/python-2.5/bin/python
import sys, os
from getopt import gnu_getopt as getopt
Info="""
Module name: VMD-input.py
Author: (c) Andres Jaramillo-Botero
California Institute of Technology
ajaramil@wag.caltech.edu
Project: pEFF
Version: August 2009
Usage: python VMD-input.py lammps_dump_filename radii_c... | quang-ha/lammps | tools/eff/VMD-input.py | Python | gpl-2.0 | 2,599 | [
"LAMMPS",
"VMD"
] | 73c1eb92806b166e28e8ac7d6451d325b52a55d6f879d0d32db63638f2866c92 |
import Scientific.IO.NetCDF as nc
import numpy as np
import sys
import math
import pylab as pl
import matplotlib.colors as colors
from numpy import floor, sqrt, sin, cos, arccos, arctan2, pi
class gth_hemisphere:
"""Class implementing the gathering hemisphere."""
def __init__(self, resTheta=1, nThetaI=1, nDataL... | dronir/EM | python/gather.py | Python | gpl-3.0 | 10,232 | [
"NetCDF"
] | b73e4d75c9305bc3662d3c7c2b90c6a5da82ffb6f08c032dae3bf398c88ea65b |
#!/usr/bin/env python3
# Copyright 2016-2018 Brian Warner
#
# 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... | OSSHealth/ghdata | workers/facade_worker/facade_worker/facade07rebuildcache.py | Python | mit | 30,270 | [
"Brian"
] | ccaaeaf285d7112cfb978abf1e68dffbf124acac10c46ac713730b7fc58c7708 |
# 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 u... | mrkm4ntr/incubator-airflow | docs/exts/docs_build/lint_checks.py | Python | apache-2.0 | 8,575 | [
"VisIt"
] | 8b0919461d57d0a9d24f9ac39ae7e6a25a7d37a8fb5f1d643435c78fba4d9a5b |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | gkc1000/pyscf | pyscf/dft/gen_grid.py | Python | apache-2.0 | 23,081 | [
"NWChem",
"PySCF"
] | b98505e05799e7b2d48caee526b6d2c49b1dcc10587fe5cbe337bed018d4b3f8 |
# -*- coding: utf-8 -*-
from sympy.matrices import Matrix
from sympy.core import Add, diff, Symbol
from sympy.simplify import simplify
from sympy.tensor.arraypy import Arraypy, TensorArray, matrix2arraypy, \
matrix2tensor, list2arraypy, list2tensor
from sympy.tensor.tensor_methods import is_symmetric
from sympy.te... | AunShiLord/sympy | sympy/tensor/riemannian_geometry.py | Python | bsd-3-clause | 62,324 | [
"Gaussian"
] | 6bb54ece550277899e01b38e2abfd6379d637fb25089c44b2fa911958c629958 |
# -*- 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, RedirectView
from django.views import defaults as default... | show0k/ressources_management_django | config/urls.py | Python | gpl-3.0 | 1,471 | [
"VisIt"
] | f80344a47fe3d5bd3130f039008a29e010090faa6948d17abf586d670ffd7c7a |
"""
Collection of DIRAC useful operating system related modules
by default on Error they return None
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import six
import os
import distutils.spawn # pylint: disable=no-name-in-module,import-error
imp... | yujikato/DIRAC | src/DIRAC/Core/Utilities/Os.py | Python | gpl-3.0 | 4,515 | [
"DIRAC"
] | 0fd4c2404a206d2dbb7e15d19f246936b2e8dea37d7f32d21ec5d42ed9c81207 |
from __future__ import print_function, division
from sympy import (degree_list, Poly, igcd, divisors, sign, symbols, S, Integer, Wild, Symbol, factorint,
Add, Mul, solve, ceiling, floor, sqrt, sympify, Subs, ilcm, Matrix, factor_list, perfect_power,
isprime, nextprime, integer_nthroot, Expr, Pow)
from sympy.c... | Cuuuurzel/KiPyCalc | sympy/solvers/diophantine.py | Python | mit | 79,458 | [
"Gaussian"
] | a08df6247d78663f8b6c61a727f59aa22009ad9ebff5d3693bf7294df8ee8f03 |
"""
========================================
Create 2D bar graphs in different planes
========================================
Demonstrates making a 3D plot which has 2D bar graphs projected onto
planes y=0, y=1, etc.
"""
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
impor... | jgphpc/linux | python/bars3d_demo.py | Python | gpl-2.0 | 1,620 | [
"LAMMPS"
] | 9ff9bd67ca074e72b88ad9d9a94cf726cae1377c96cbbed57d142d9a8269ae69 |
# -*- coding: utf-8 -*-
'''
Copyright (c) 2015 by Tobias Houska
This file is part of Statistical Parameter Estimation Tool (SPOTPY).
:author: Tobias Houska
Holds functions to analyse results out of the database.
Note: This part of SPOTPY is in alpha status and not yet ready for production use.
'''
import numpy as n... | thouska/spotpy | spotpy/analyser.py | Python | mit | 38,375 | [
"Gaussian"
] | 9c0e7da62a3e9436c231ad00e3c37c29fa534b07898a73191409a523c7f77343 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Views tests for the OSF."""
from __future__ import absolute_import
import datetime as dt
from rest_framework import status as http_status
import json
import time
import unittest
from future.moves.urllib.parse import quote
from flask import request
import mock
import ... | felliott/osf.io | tests/test_views.py | Python | apache-2.0 | 219,975 | [
"Brian",
"VisIt"
] | 3172ce4aaf5ccf4e3a97c87e81a2b9f9faee81e12cd6fe92fb38b1ed1617c8ce |
##
# Copyright 2009-2020 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | pescobar/easybuild-easyblocks | easybuild/easyblocks/d/dirac.py | Python | gpl-2.0 | 5,938 | [
"DIRAC"
] | 2626a15799a59fe2c06aab332f672510fcc0bbebfa46c7427d7d0768c1f587b1 |
#!/usr/bin/python
import getopt
import sys
from Bio import SeqIO
from Bio.SeqUtils import GC
import time# import time, gmtime, strftime
import os
import shutil
import pandas
from Bio.SeqRecord import SeqRecord
from Bio.Seq import Seq
import csv
from datetime import datetime
import numpy as np
from scipy import stats
... | nyirock/mg_blast_wrapper | mg_blast_wrapper_v1.11.py | Python | mit | 22,600 | [
"BLAST"
] | 7467dc4faee4e4886ab5ac5338f0f49e5fe6e6ed22c41393b38fd056143d89df |
tests=[
("python","UnitTestChem.py",{}),
("python","UnitTestChemv2.py",{}),
("python","UnitTestChemAtom.py",{}),
("python","UnitTestChemBond.py",{}),
("python","UnitTestChemSmarts.py",{}),
("python","UnitTestFragmentDescriptors.py",{}),
("python","UnitTestGraphDescriptors.2.py",{}),
("python","UnitTest... | adalke/rdkit | rdkit/Chem/test_list.py | Python | bsd-3-clause | 2,335 | [
"RDKit"
] | 63ce74eb24328bda5c656769989de8026261cbb61abb1cfbc5d74583a7d247b1 |
# Copyright 2018 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/data-driven-discretization-1d | pde_superresolution/scripts/run_evaluation.py | Python | apache-2.0 | 7,931 | [
"NetCDF"
] | a41a5eca4fcc6850dd6b05f6cbcc7f09aed4bf8f13f487708f296012a3c9793d |
"""
Test waiting for elements to appear after requesting via ajax.
"""
from bok_choy.promise import BrokenPromise
from bok_choy.web_app_test import WebAppTest
from .pages import AjaxPage, AjaxNoJQueryPage
class AjaxTest(WebAppTest):
"""
Test waiting for an ajax call to return.
"""
def setUp(self):
... | edx/bok-choy | tests/test_ajax.py | Python | apache-2.0 | 1,832 | [
"VisIt"
] | 8ab217c610a3795b7f034cd814c218536bcf07e6626e65c4dc28c7d2bee27f70 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# rfxcom documentation build configuration file, created by
# sphinx-quickstart on Fri Mar 28 08:27:53 2014.
#
# 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
# aut... | kalfa/python-rfxcom | docs/source/conf.py | Python | bsd-3-clause | 10,681 | [
"VisIt"
] | becc134668ae1c65be1ffcc27028ee619f8b467cff96d9f32341f50e071dfb90 |
#!/usr/bin/env python
"""
Script that facilitates the modification of a element through the command line.
However, the usage of this script will set the element token to the command
issuer with a duration of 1 day.
"""
from datetime import datetime, timedelta
from DIRAC import gLogger, exit as DIRACExit, S_OK, version... | ic-hep/DIRAC | src/DIRAC/ResourceStatusSystem/scripts/dirac_rss_set_status.py | Python | gpl-3.0 | 8,341 | [
"DIRAC"
] | 72e89bd6a5ede14c7a7c956fa62c09f073b9a7a7b23b8c856606337f90158cc0 |
import re
from nxtools import format_time
from firefly.core.metadata import meta_types
from firefly.qt import Qt, QColor, QPen, QFontMetrics
COLOR_CALENDAR_BACKGROUND = QColor("#161616")
COLOR_DAY_BACKGROUND = QColor("#323232")
TIME_PENS = [
(60, QPen(QColor("#999999"), 2, Qt.SolidLine)),
(15, QPen(QColor("... | immstudios/firefly | firefly/modules/scheduler_utils.py | Python | gpl-3.0 | 2,372 | [
"Firefly"
] | 07a3d23b4dfa23316e9c5377d3da8ced4dfd259f8dda289601742e1d0a3aa821 |
import pysam
import os
import sys
import re
Locations = sys.argv[1]
Fasta = sys.argv[2]
OutFile = sys.argv[3]
Size = sys.argv[4]
#Locations = "/lustre/mib-cri/carrol09/Work/PipelinePracticeSet/20111109_RossAdams_DN_HNF1bChIP/Peaks/Macs_Peaks/SLX-4497.739.s_2.bwa.homo_sapiens_Processed_summits.bed"
#Fasta = "/lustre/... | hjanime/mrcchip | extractSequenceUnderPeak.py | Python | gpl-2.0 | 1,396 | [
"BWA",
"pysam"
] | d24633d1e812fcb27d8b8d417c6325978c3dca0c80913931c28d6a501b8b22ce |
# Copyright (c) 2012 Spotify AB
#
# 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, s... | republic-analytics/luigi | setup.py | Python | apache-2.0 | 3,092 | [
"VisIt"
] | 6a9e76e9b78cdb744ae03e128ee1a9a3640b359e34876f4f7f3ede0f7b318664 |
# -*- coding: utf-8 -*-
##
# TRACK 8
# BODY LANGUAGE
# Brian Foo (brianfoo.com)
# This file builds the sequence file for use with ChucK from the data supplied
##
# Library dependancies
import csv
import json
import math
import os
from pprint import pprint
import sys
import time
# Config
BPM = 100 # Beats per minute, ... | beefoo/music-lab-scripts | 08_body/body.py | Python | mit | 12,943 | [
"Brian"
] | 26614904bae1d09bcb585508801324f5dfb77ccad576ba34f12415db359abb86 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#... | MDAnalysis/mdanalysis | testsuite/MDAnalysisTests/topology/test_tprparser.py | Python | gpl-2.0 | 11,188 | [
"Gromacs",
"MDAnalysis"
] | 1a33136598350bad4c5740d8477f72b970160ac3cc25848cfc3c4c07fe427d37 |
#
# Copyright 2001 - 2006 Ludek Smid [http://www.ospace.net/]
#
# This file is part of IGE - Outer Space.
#
# IGE - Outer Space 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 t... | mozts2005/OuterSpace | server/lib/ige/ospace/IPlanet.py | Python | gpl-2.0 | 45,601 | [
"Galaxy"
] | 506020f7e27b07348091614f5ee4f6831e902dfff8b525aa3bd69be4fafd8a69 |
#!/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... | lvlv/kubernetes | hack/verify-flags-underscore.py | Python | apache-2.0 | 8,102 | [
"VisIt"
] | 8600a5e33e24c430b6bbf8e13da1471eb1f68d4c5edd4f403f022678cbc7cebf |
import Avogadro
import unittest
from numpy import *
#
# Rings are Fragments...
#
class TestFragment(unittest.TestCase):
def setUp(self):
self.molecule = Avogadro.molecules.addMolecule()
def test_name(self):
fragment = self.molecule.addRing() # Ring = Fragment
fragment.name = "testing"
self.assertE... | rcplane/periodicdisplay | reference/avogadro/libavogadro/src/python/unittest/fragment.py | Python | gpl-2.0 | 1,357 | [
"Avogadro"
] | 48b433017ae130ab540bf9abe42245f58318d7507782c309c33b3efe8b38da1f |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
from __future__ import print_function
from abc import abstractproperty
import MDAnalysis
import importlib
import numpy as np
from .atoms_maps import atoms_maps
from difflib import get_close_ma... | balazsfabian/pytim | pytim/properties.py | Python | gpl-3.0 | 8,110 | [
"LAMMPS",
"MDAnalysis"
] | f4e252862e013868a3d4a26baa1508892afbef1e5f92a12bf3793d44830f3fc8 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from erpnext.utilities.transaction_base import TransactionBase
class MaintenanceVisit(TransactionBase):
def get_fe... | treejames/erpnext | erpnext/support/doctype/maintenance_visit/maintenance_visit.py | Python | agpl-3.0 | 3,196 | [
"VisIt"
] | 90b3e8d71ba6776937d8100a16beddb63de18d51d7ab73bf48732a23f90e3f9f |
#
# Honeybee: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Honeybee.
#
# Copyright (c) 2013-2020, Mostapha Sadeghipour Roudsari <mostapha@ladybug.tools>
# Honeybee is free software; you can redistribute it and/or modify
# it under the terms of the GNU G... | mostaphaRoudsari/Honeybee | src/Honeybee_Apply OpenStudio Measure.py | Python | gpl-3.0 | 14,079 | [
"EPW"
] | 994c4eb0a627cf132ae71ec05f70fc724c64550f3191b163617dbc0b0366956b |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
import warnings
import numpy as np
from pymatgen.io.cif import CifParser, CifWriter, CifBlock
from pymatgen.io.vasp.inputs import Poscar
from pymatgen import Element, Specie, Lattice, Structu... | montoyjh/pymatgen | pymatgen/io/tests/test_cif.py | Python | mit | 42,896 | [
"VASP",
"pymatgen"
] | 7bbefb60d82e1d69519dfb29de43a698a6c141e53e9c98a78c45eebdc1f27b77 |
from splinter import Browser
# with Browser() as br:
# br.visit('http://www.baidu.com/')
br = Browser();
br.visit('http://www.baidu.com/')
br.fill("wd", "haha")
bt = br.find_by_id(u"su")
bt.click()
br.quit()
| jypeitao/pythontools | splinterlearn.py | Python | apache-2.0 | 212 | [
"VisIt"
] | 736b7d42f39a0fb60671d2e48267b732516a88223dc3101731dc43480b68a164 |
class Module(object):
def __init__(self, declarations):
self._declarations = declarations
def visit(self, visitor, arg):
return visitor.visit_module(self, arg)
class Class(object):
def __init__(self, name, declarations):
self._name = name
self._declarations = declarations
... | alex/bagel | bagel/ast.py | Python | bsd-3-clause | 3,066 | [
"VisIt"
] | 0cfbe7de70d0261763566d3df1026286fabc2ba42b3a5b07941eb3ef40929c96 |
"""
This module contains all the functions needed for smoothing or filtering a
time-serie.
"""
import numpy as np
from scipy import signal
########################## Wrapper to all functions ###########################
###############################################################################
def general_filte... | tgquintela/TimeSeriesTools | TimeSeriesTools/Transformation/filtering.py | Python | mit | 25,860 | [
"Gaussian"
] | ff412af14a93572812377d2a737e65eec4561ccfa9f66f46565f410817f8fff8 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publi... | SNoiraud/gramps | gramps/plugins/tool/rebuildrefmap.py | Python | gpl-2.0 | 3,424 | [
"Brian"
] | c9ca6b486c13181ca089bcc8442c2e4b32abdb22b14c2efb48a3158b61a8872a |
from Module import AbstractModule
class Module(AbstractModule):
def __init__(self):
AbstractModule.__init__(self)
def run(
self, network, in_data, out_attributes, user_options, num_cores,
out_path):
from genomicode import config
from genomicode import filelib
fr... | jefftc/changlab | Betsy/Betsy/modules/index_reference_bwa.py | Python | mit | 1,180 | [
"BWA"
] | 567f77c10ca57ed927243bb297cc69bca3df785bf482fb69a528a2ef820c280c |
#!/usr/bin/env python
import os
import sys
import pandas as pd
import numpy as np
import netCDF4 as nc
#import tables
# adjust the paths here, where your files are located
wfd_base_dir = "/data/external/global/Climate/WFD"
lpj_soil_data = "/data/LPJ/input/soils_lpj.dat"
# spatial resolution in degree
res = 0.5
# g... | joergsteinkamp/wfd4lpj | convert4lpj.py | Python | gpl-3.0 | 10,152 | [
"NetCDF"
] | b3f4234774be9b363af7ac4776cfcb20a4eb87fb89f8fdcb78a42ac571986e75 |
import ocl
import camvtk
import time
import vtk
import datetime
import math
def waterline_time(zheights, diam, length,s,sampling):
t_total = time.time()
for zh in zheights:
cutter = ocl.BallCutter( diam , length )
wl = ocl.Waterline()
wl.setSTL(s)
wl.setCutter(cutter)
w... | aewallin/opencamlib | examples/python/waterline/waterline_6_weave2.py | Python | lgpl-2.1 | 1,756 | [
"VTK"
] | b20b0bf08a1dd6313be49926293da8327137d840ac7e96f2eccefc9271b7dbf5 |
"""
WikiLinks Extension for Python-Markdown
======================================
Converts [[WikiLinks]] to relative links.
See <https://pythonhosted.org/Markdown/extensions/wikilinks.html>
for documentation.
Original code Copyright [Waylan Limberg](http://achinghead.com/).
All changes Copyright The Python Markdow... | abinit/abinit | abimkdocs/wikilinks.py | Python | gpl-3.0 | 3,827 | [
"ABINIT"
] | 63efa69b3808c10586054775017f88b1b84a5ac5b8a777465e7d28eb04623461 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-securitycenter | tests/unit/gapic/securitycenter_v1/test_security_center.py | Python | apache-2.0 | 435,450 | [
"Octopus"
] | 96640d2b3c35ae3f44383149a8eefdf8fc709e19a8ddec5f6f7313b37d1632da |
# (c) 2013-2016, Michael DeHaan <michael.dehaan@gmail.com>
# Stephen Fromm <sfromm@gmail.com>
# Brian Coca <briancoca+dev@gmail.com>
# Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under t... | s-hertel/ansible | lib/ansible/plugins/action/assemble.py | Python | gpl-3.0 | 6,573 | [
"Brian"
] | 625815df36c1fe03ad545c9c4c1f5e0b5bb5e9eb2c311a9830385beaeaf85158 |
# Author: Travis Oliphant 2001
# Author: Nathan Woods 2013 (nquad &c)
import sys
import warnings
from functools import partial
from . import _quadpack
import numpy
from numpy import Inf
__all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain',
'IntegrationWarning']
error = _quadpack.error
class ... | WarrenWeckesser/scipy | scipy/integrate/quadpack.py | Python | bsd-3-clause | 37,343 | [
"Gaussian"
] | 0392816bc66527b464631ed46dcc151bdc2b33e8aaccf1ad4a6d08d6077d74ce |
## Generate plots of quantities from a measurment set
##
## $Id: plotiterator.py,v 1.25 2017-02-21 09:10:05 jive_cc Exp $
##
## $Log: plotiterator.py,v $
## Revision 1.25 2017-02-21 09:10:05 jive_cc
## HV: * DesS requests normalized vector averaging - complex numbers are first
## normalized before being average... | haavee/jiveplot | plotiterator.py | Python | gpl-3.0 | 196,516 | [
"GULP"
] | 0b71803d5a1c8c4d053e7ab95ba8cbcf4e3526bd22e60f06404f819ab488394c |
# Copyright (C) 2016
# Max Planck Institute for Polymer Research & JGU Mainz
# 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 ... | fedepad/espressopp | src/Particle.py | Python | gpl-3.0 | 5,901 | [
"ESPResSo"
] | 69024fa25c3dba28ada3401938dcc5675f6ff5c9f8392a1cb62ec7cecdbe8bb3 |
import Avogadro
import unittest
from numpy import *
class TestMolecule(unittest.TestCase):
def setUp(self):
self.molecule = Avogadro.molecules.addMolecule()
def test_fileName(self):
self.molecule.fileName = "somefile.ext"
self.assertEqual(self.molecule.fileName, "somefile.ext")
def test_addAtom(sel... | rcplane/periodicdisplay | reference/avogadro/libavogadro/src/python/unittest/molecule.py | Python | gpl-2.0 | 10,475 | [
"Avogadro"
] | d73e105372494c913ce3430d327decdb9d8dacf05070eaad00d69f5e33395aee |
#
# Copyright (C) 2007, Mark Lee
#
#http://rl-glue-ext.googlecode.com/
#
# 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... | shiwalimohan/RLInfiniteMario | system/codecs/Python/src/rlglue/agent/AgentLoader.py | Python | gpl-2.0 | 1,942 | [
"Brian"
] | 4e3b828370ef1a88d134d3b75594bdf94c3c30304156bfbbf19f6cb91e75644d |
"""
Copyright 2021 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, software
d... | google-research/DBAP-simulation | adept_envs/utils/resources.py | Python | apache-2.0 | 6,407 | [
"VisIt"
] | 3fe1cce580a038f6acfadfde6a69b23859388f1cb7dd41353165f0c554b1bf87 |
# .. coding: utf-8
# $Id: __init__.py 7971 2016-09-13 19:11:48Z milde $
# Author: Engelbert Gruber, Günter Milde
# Maintainer: docutils-develop@lists.sourceforge.net
# Copyright: This module has been placed in the public domain.
"""LaTeX2e document tree Writer."""
__docformat__ = 'reStructuredText'
# code contributi... | axbaretto/beam | sdks/python/.tox/docs/lib/python2.7/site-packages/docutils/writers/latex2e/__init__.py | Python | apache-2.0 | 124,941 | [
"VisIt"
] | 0f81e1b18f62ff70571352f174ae0e7dc4085a110c621ad1808e6253022c5bc7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.