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 # 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. '''Unit tests for misc.GritNode''' import os import sys if __name__ == '__main__': sys.path.append(os.path.join(os.path.dirname...
JoKaWare/WTL-DUI
tools/grit/grit/node/misc_unittest.py
Python
bsd-3-clause
13,740
[ "xTB" ]
35eee2f6d1b22d4a9e5a62f92dbf89a87e44a24d1c782b85563f818f03a1e7f9
""" A context manager for managing things injected into :mod:`__builtin__`. Authors: * Brian Granger * Fernando Perez """ #----------------------------------------------------------------------------- # Copyright (C) 2010-2011 The IPython Development Team. # # Distributed under the terms of the BSD License. # # C...
noslenfa/tdjangorest
uw/lib/python2.7/site-packages/IPython/core/builtin_trap.py
Python
apache-2.0
3,953
[ "Brian" ]
e81178ea89ee64025c4769522c8152bacc0b2a20a1762e3cdff59eed0b13dffa
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Simple volume rendering example. reader = vtk.vtkImageReader() reader.SetDataByteOrderToLittleEndian() reader.SetDataExtent(0, 63, 0, 63, 1, 93) reader.SetFilePrefix(VTK_DATA_ROOT +...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Rendering/Volume/Testing/Python/volTM3DRotateClip.py
Python
gpl-3.0
4,408
[ "VTK" ]
243c5178a35781e1378f824789e411bf374ee5fe722bbd6de13f48baeaaf1ab3
# -*- coding: utf-8 -*- # # pulsepacket.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or...
lekshmideepu/nest-simulator
pynest/examples/pulsepacket.py
Python
gpl-2.0
11,262
[ "Gaussian", "NEURON" ]
1d88ecd5d97d73c531034c544af29d9ca6e2dac2b3674d5a9edf582c3d5a2944
# (C) 2013, Markus Wildi, markus.wildi@bluewin.ch # # 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, or (at your option) # any later version. # # This program is distr...
jstrobl/rts2
scripts/rts2saf/unittest/test_sextractor.py
Python
lgpl-3.0
2,762
[ "VisIt" ]
cbf0e81e5dff77fb05da35fd63b73058fdae269e8ec8a13eeb1497741c32dd5f
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script helps to create a new branch for a new Odoo version from the another existing branch, making the needed changes on contents. Installation ============ For using this utility, you need to install these dependencies: * github3.py library for handling Githu...
gurneyalex/maintainers-tools
tools/migrate_branch.py
Python
agpl-3.0
15,041
[ "VisIt" ]
4ab60ec091c4b2bc919cc69a727f2d7986a6cc7fc12bbe081ce9b7c552f207f4
""" Handles testing of the script files # Written By: Matthew Stadelman Date Written: 2017/04/09 Last Modifed: 2017/04/23 # """ from glob import glob import os import pytest import re from subprocess import Popen, PIPE, check_output import sys import yaml import apmapflow as apm def check_path(*args): r""" ru...
stadelmanma/netl-ap-map-flow
test/integration/TestScripts.py
Python
gpl-3.0
10,323
[ "ParaView" ]
a199ce706da7335050b8aa237ba927121e8efff2c79ce0c12ec428ff24d7dc75
#!/usr/bin/python3 """Script to check *.so for GCC or LLVM compilation. Extracts .comment section and examines for proper vintage. """ from collections import defaultdict import getopt import os import re import sys import script_utils as u # Files to look at flag_infiles = [] # Summarize version usage flag_summ...
thanm/devel-scripts
solib-flavor.py
Python
apache-2.0
2,916
[ "VisIt" ]
00cb875f9e38728190679b8e9e8dd9f7cb365de9eefebcc8ab75c05fa1dbac44
import numpy as np import cv2 #getting the video from webcam cap = cv2.VideoCapture(0) while True: _, frame = cap.read() hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) #threshold values lower_red1 = np.array([150,120,60]) upper_red1 = np.array([180,255,255]) lower_red2 = np.array([0,140,60]) ...
olafplacha/OpenCV-intro
Color_filtering_&_smoothing_kernels.py
Python
mit
1,702
[ "Gaussian" ]
d35bc39cccac4894e76fd922dc435fad79fa5029649e3e91f2cd14efeebc0708
def load_microbial_data( GALAXY_DATA_INDEX_DIR, sep='\t' ): # FIXME: this function is duplicated in the DynamicOptions class. It is used here only to # set data.name in exec_after_process(). microbe_info= {} orgs = {} filename = "%s/microbial_data.loc" % GALAXY_DATA_INDEX_DIR for...
dbcls/dbcls-galaxy
tools/data_source/microbial_import_code.py
Python
mit
7,219
[ "Galaxy" ]
80b0b83c12697508429bc5a34b3983211ac06c9f9e2ad645f5d2006c41778288
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import platform class Bwa(Package): """Burrow-Wheeler Aligner for pairwise alignment between DNA...
iulian787/spack
var/spack/repos/builtin/packages/bwa/package.py
Python
lgpl-2.1
2,146
[ "BWA" ]
9afa16ed8f6bf59217d11066e35cd864dba61bf5651e6444386d9986f4cada3f
# Copyright (c) 2012 OpenStack Foundation # 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 ...
silenceli/nova
nova/tests/unit/compute/test_resource_tracker.py
Python
apache-2.0
64,108
[ "exciting" ]
82c6680b14f30cd57a4b6abfc24f964318390c94aa8e3bc226bfbf130e796fa3
# 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...
jeffknupp/arrow
python/pyarrow/parquet.py
Python
apache-2.0
28,949
[ "VisIt" ]
1b921b566baecb2bceabc5e4f89c2fa6064734f53dfff67fb0554bd043995387
import bpy from io_scene_cs.utilities import rnaType, rnaOperator, B2CS, BoolProperty from io_scene_cs.utilities import RemovePanels, RestorePanels def active_node_mat(mat): if mat is not None: mat_node = mat.active_node_material if mat_node: return mat_node else: return mat ...
baoboa/Crystal-Space
scripts/blender/io_scene_cs/ui/image.py
Python
lgpl-2.1
2,684
[ "CRYSTAL" ]
5a621f13c2eef531649debf4ea12272cfa3460a8034c7c9d34177cfde24cd8c9
import numpy as np import pyworld as pw # import soundfile as sf import tensorflow as tf import os, shutil import glob def get_speakers(trainset: str = './data/fourspeakers'): '''return current selected speakers for training eg. ['SF2', 'TM1', 'SF1', 'TM2'] ''' p = os.path.join(trainset, "*") ...
hujinsen/StarGAN-Voice-Conversion
utility.py
Python
mit
5,941
[ "Gaussian" ]
3099764193fbc30c780e40a83382e2a9e3b3726cf2ce970e804d2771284b7462
""" .. _sfm-track: ======================================= Tracking with the Sparse Fascicle Model ======================================= Tracking requires a per-voxel model. Here, the model is the Sparse Fascicle Model (SFM), described in [Rokem2015]_. This model reconstructs the diffusion signal as a combination o...
FrancoisRheaultUS/dipy
doc/examples/tracking_sfm.py
Python
bsd-3-clause
5,688
[ "Brian" ]
88f9a1b7d94a73a88ab4763c032feb272e20060f4dad1d64eb088277df4eb9a1
import numpy as np from ase.atoms import Atoms from ase.calculators.singlepoint import SinglePointDFTCalculator from ase.calculators.singlepoint import SinglePointKPoint def read_gpaw_text(fileobj, index=-1): if isinstance(fileobj, str): fileobj = open(fileobj, 'rU') notfound = [] def index_...
askhl/ase
ase/io/gpawtext.py
Python
gpl-2.0
6,137
[ "ASE", "GPAW" ]
ccfc98ebc5913ee1f30268b84719a964d0af61fa2cc1402761fe34cf82a1f18f
""" vtk surface runner """ import enaml from enaml.qt.qt_application import QtApplication def run(): with enaml.imports(): from vtk_surface_view import Main app = QtApplication() view = Main(custom_title='VTK Surface Example') view.show() # Start the application event loop app.star...
viz4biz/PyDataNYC2015
tutorial/vtk_surface_run.py
Python
apache-2.0
332
[ "VTK" ]
493e8fe79dc8133a2af58a5f8a70718e3070a495d247ba92022d69402c60c193
#!/usr/bin/env python # -*- encoding: utf-8 -*- # CREATED:2015-02-02 10:08:46 by Brian McFee <brian.mcfee@nyu.edu> '''Implementations of augmentation classes''' from .time import * from .pitch import * from .background import * from .ir import * from .effects import * from .sox import * from .util import *
silky/muda
muda/deformers/__init__.py
Python
apache-2.0
309
[ "Brian" ]
a0b63770899dec359243ffa41c69d1dc343b39b1a1d2e52c329a24f5319445db
# # LSST Data Management System # Copyright 2012-2016 LSST Corporation. # # This product includes software developed by the # LSST Project (http://www.lsst.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 Free So...
yalsayyad/obs_decam
python/lsst/obs/decam/decamMapper.py
Python
gpl-3.0
14,828
[ "VisIt" ]
7a65f8fe6967e99e22ef3f421fcfff6be58b75fe035e74142fc05946775993a1
# ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems Inc. # 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.o...
DougFirErickson/neon
tests/test_mergebroadcast_layer.py
Python
apache-2.0
10,406
[ "Gaussian" ]
1f63d93b178d2690253af7816d1d1988fdff64ed83110b03cdd6ee19fa9fe6bc
# -*- 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-artifact-registry
tests/unit/gapic/artifactregistry_v1/test_artifact_registry.py
Python
apache-2.0
86,313
[ "Octopus" ]
cffffc76e78cd75be066fb5b164cfc41f4ef0b7aa4fee154ca2f24ea7c78b008
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
retrography/scancode-toolkit
src/typecode/magic2.py
Python
apache-2.0
8,462
[ "VisIt" ]
118c8050b00cd2e505dc6aa6d22652d173a2b993c38735addec5f7f98ab532ef
import matplotlib.pyplot as plt import numpy as np def gaussian(x,x0,xsig): ''' function to calculate the gaussian probability INPUT: x = where is the data point or parameter value x0 = mu xsig = sigma ''' factor = 1. / (np.sqrt(xsig * xsig * 2. * np.pi)) exponent = -np.divide((x - x0) * (x - x0)...
jan-rybizki/Chempy
Chempy/data_to_test.py
Python
mit
64,446
[ "ChemPy", "Galaxy", "Gaussian" ]
6d15e32c293fdf8e6ac4692b9415eef54a4ea290670b60b0679687fd329e62f0
import unittest import mock from kalliope.core.NeuronModule import NeuronModule from kalliope.neurons.systemdate import Systemdate class TestSystemdate(unittest.TestCase): def setUp(self): pass def test_date_is_returned(self): """ Check that the neuron return consistent values ...
kalliope-project/kalliope
kalliope/neurons/systemdate/tests/test_systemdate.py
Python
gpl-3.0
1,004
[ "NEURON" ]
0a80d6c4e47665b76bf34cd52f24ce995c42a90e8ac4f48c2e76c337d0f13ddf
from __future__ import absolute_import from __future__ import division from __future__ import print_function from DIRAC.AccountingSystem.Client.Types.BaseAccountingType import BaseAccountingType import DIRAC __RCSID__ = "$Id$" class DataOperation(BaseAccountingType): def __init__(self): super(DataOperati...
ic-hep/DIRAC
src/DIRAC/AccountingSystem/Client/Types/DataOperation.py
Python
gpl-3.0
1,372
[ "DIRAC" ]
5628278544bb7f699bff32be54dc2e4e0d4d3a6f1af5d747ca4d68c333cb68df
# Copyright 2009-2014 Ram Rachum. # This program is distributed under the MIT license. from __future__ import with_statement import os.path, sys sys.path += [ os.path.dirname(__file__), os.path.join(os.path.dirname(__file__), 'third_party.zip'), ] import sys import inspect import wingapi import shared ...
cool-RR/cute-wing-stuff
scripts/reverse_selection.py
Python
mit
855
[ "VisIt" ]
d0ac45ae6de1429df155fad64c1b2468dd2ee588428120f05c31d688fd897815
# -*- coding: utf-8 -*- # Authors: Yücel Kılıç, Murat Kaplan, Nurdan Karapınar, Tolga Atay. # This is an open-source software licensed under GPLv3. from os import path try: import numpy as np except ImportError: print('Python cannot import numpy. Make sure numpy is installed.') raise SystemExit try: i...
akdeniz-uzay/A-Track
sources.py
Python
gpl-3.0
11,219
[ "Galaxy" ]
1de085ce6b6167ba27ef5541877198ed2bc1fabcd5059576fb07dbedf7303627
../../../../../../share/pyshared/orca/scripts/apps/__init__.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/__init__.py
Python
gpl-3.0
62
[ "ORCA" ]
df7fc3d9ee3537c8b052c54a7766525bdbfe4a1f5462fef24a4e125115104126
# # @file TestAssignmentRule.py # @brief AssignmentRule unit tests # # @author Akiya Jouraku (Python conversion) # @author Ben Bornstein # # $Id$ # $HeadURL$ # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by ...
alexholehouse/SBMLIntegrator
libsbml-5.0.0/src/bindings/python/test/sbml/TestAssignmentRule.py
Python
gpl-3.0
4,938
[ "VisIt" ]
6a2c92557a51fe36a1ed49363eea423b787ef77d94134e556551c59ab70e97c4
#!/share/apps/local/anacondaz/bin/python import sys,os sys.path.append(".") import numpy as np import multiprocessing import sassie.interface.input_filter as input_filter import bayesian_ensemble_estimator as ensemble_fit from mpi4py import MPI svariables = {} #### MPI Environment #### comm=MPI.COMM_WORLD rank=comm.G...
madscatt/zazzie
src_2.7/sassie/analyze/bayesian_ensemble_estimator/gui_mimic_quick_with_aux.py
Python
gpl-3.0
2,970
[ "Gaussian" ]
23eeb5021e84a9b5175e1beb809fef4a6b9283696380b2a40a9f3c3da92cd98e
from behave import * import operator from django.db.models import Q use_step_matcher("parse") @given('Exists artist at group "{group_name}" by "{username}"') def step_impl(context, group_name, username): from django.contrib.auth.models import User user = User.objects.get(username=username) from musicseaap...
julio77nz/MusicSea
musicsea/features/steps/register_artist.py
Python
gpl-3.0
2,467
[ "VisIt" ]
34380161676be46273bd984913b35c24df2551e782c6f2a9ea84d361a2760d16
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Image pipeline reader = vtk.vtkImageReader() reader.ReleaseDataFlagOff() reader.SetDataByteOrderToLittleEndian() reader.SetDataExtent(0, 63, 0, 63, 1, 93) reader.SetFilePrefix(VTK_D...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Imaging/Core/Testing/Python/TestImageWeightedSum.py
Python
gpl-3.0
1,288
[ "VTK" ]
95065df558dc0e757b030c7f0a370b616d2db7e5a46d8abbe4b4f20c56ddccec
import json from django.apps import apps as django_apps from django.core.exceptions import MultipleObjectsReturned from edc_base.model_mixins import ListModelMixin from unittest.case import TestCase from ..models import OutgoingTransaction from ..transaction import deserialize class SyncTestHelperError(Exception): ...
botswana-harvard/edc-sync
edc_sync/tests/sync_test_helper.py
Python
gpl-2.0
5,148
[ "VisIt" ]
30b3fa8320f039e04e61e1d2bd97ee30eacc3681bb71693b7daf89653b7f1c63
from collections import defaultdict ''' Created on Aug 29, 2011 @authors: Serena, Kyle ''' def iter_fasta(fasta_lines): """Yield sequences as (name, value) pairs from a FASTA file.""" seq = "" seq_name = None for line in fasta_lines: line = line.strip() if line.startswith(">"): ...
kylebittinger/brocc
brocclib/parse.py
Python
gpl-3.0
1,992
[ "BLAST" ]
690fda110b4035c68930d5566b97ee46c41e58afe9d852a28369864eac4bb2ae
# -*- coding: utf-8 -*- # # Copyright (c) 2020, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Test the DDEC6 in cclib""" import os import unittest import numpy from cclib.method import DDEC6, volume from cclib....
cclib/cclib
test/method/testddec.py
Python
bsd-3-clause
8,461
[ "Psi4", "cclib" ]
8c2976e0b0ec743848fe8b1ccfbe830480f7542e4e753e72d872ae1efaee249e
""" Fit Gaussian scale mixture to van Hateren patches. """ import sys sys.path.append('./code') from tools import Experiment, preprocess from models import GSM, StackedModel, ConcatModel, MoGaussian from transforms import LinearTransform, WhiteningTransform from numpy import load, mean, std, sqrt, log parameters = ...
lucastheis/isa
code/experiments/vanhateren_gsm.py
Python
mit
2,642
[ "Gaussian" ]
89e08312e70f78f9868712fc0b74e87b475ba8b94ada9c707421e80f931acefa
""" This module contains tests for tofu.geom in its structured version """ # External modules import os import itertools as itt import numpy as np import matplotlib.pyplot as plt import warnings as warn # Importing package tofu.gem import tofu as tf from tofu import __version__ import tofu.defaults as tfd import tofu...
Didou09/tofu
tofu/tests/tests01_geom/test_04_core_optics.py
Python
mit
12,965
[ "CRYSTAL" ]
e3bea78236ef97ba71b5dcad31dc5ad0c9e0b11efa28a565ded512f1e72d29c6
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: # # MDTraj is free software: y...
marscher/mdtraj
MDTraj/formats/pdb/tests/test_pdb.py
Python
lgpl-2.1
6,394
[ "MDTraj" ]
d07316e12c1ef5811b8dd9e2748855a8e96d5f3dae86ae811a66e73976ad3f84
""" This is a test of the chain FTS3Client -> FTS3ManagerHandler -> FTS3DB It supposes that the DB is present, and that the service is running """ from DIRAC.Core.Base.Script import parseCommandLine parseCommandLine() import unittest import time from DIRAC import gLogger from DIRAC.DataManagementSystem.Cl...
Andrew-McNab-UK/DIRAC
tests/Integration/DataManagementSystem/Test_Client_FTS3.py
Python
gpl-3.0
6,872
[ "DIRAC" ]
e3345e6ca3929a092413556bfd089deead90b2333bc13a875e08ff8bb2377881
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
intel-analytics/BigDL
python/orca/test/bigdl/orca/data/test_write_parquet.py
Python
apache-2.0
9,142
[ "ORCA" ]
7a6c8ee41e1842ac11b5e98392aad41b3f3dce149f1dea9c27a07c6c35886dd5
#!/usr/bin/env python3 import datetime import enum from pycaching import errors from pycaching.util import parse_date # prefix _type() function to avoid colisions with log type _type = type class Log(object): """Represents a log record with its properties.""" def __init__(self, *, uuid=None, type=None, te...
tomasbedrich/pycaching
pycaching/log.py
Python
lgpl-3.0
3,757
[ "VisIt" ]
c972ba9f55f1d37ed8bfc0b049f34cd0aa760cd7b98618d1be476393157bf82c
#!/usr/bin/env python ## \file tools.py # \brief file i/o functions # \author T. Lukaczyk, F. Palacios # \version 7.0.3 "Blackbird" # # SU2 Project Website: https://su2code.github.io # # The SU2 Project is maintained by the SU2 Foundation # (http://su2foundation.org) # # Copyright 2012-2020, SU2 Contributors (cf....
EduardoMolina/SU2
SU2_PY/SU2/io/tools.py
Python
lgpl-2.1
40,661
[ "ParaView" ]
4a7ab235eca77d638844882c94b0481f8169de5101a64bdcb04e21e8bb839328
#pylint: disable=missing-docstring #################################################################################################### # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment ...
liuwenf/moose
python/MooseDocs/MooseMarkdown.py
Python
lgpl-2.1
7,204
[ "MOOSE" ]
1ac09c3a6930cf9c1394dfdffac79003cd23a4f2435a5c0394195a720b2e6e76
# -*- coding: utf-8 -*- """ Regression tests for the Test Client, especially the customized assertions. """ from __future__ import unicode_literals import datetime import itertools import os from django.contrib.auth.models import User from django.contrib.auth.signals import user_logged_in, user_logged_out from django...
mcrowson/django
tests/test_client_regress/tests.py
Python
bsd-3-clause
68,309
[ "VisIt" ]
768b22d8c9e7e8dbd1e61d3f6e158de00b58913b4cdd529120adeb9869d3dab1
# Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. import gtk from dialog import Template from zeroinstall import _ from zeroinstall.gtkui import help_box from zeroinstall.injector.model import network_levels from zeroinstall.injector import trust, gpg from freshness ...
timdiels/zeroinstall
zeroinstall/0launch-gui/preferences.py
Python
lgpl-2.1
7,143
[ "VisIt" ]
326ef7f3dcd5e455aa86ae8feb9c215646b2c5704afce10e01fce62e8ebf7026
# Copyright 2020, The TensorFlow Federated 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 o...
google-research/federated
shrink_unshrink/simple_fedavg_tf.py
Python
apache-2.0
38,102
[ "Gaussian" ]
a19f5c48096d1e9fb8c7cfb1794535d66fbd8433552666d8709322d906d4354c
################################################################################ # header_operations expanded v.1.0.0 # ################################################################################ # TABLE OF CONTENTS #########################################################...
Ikaguia/LWBR-WarForge
headers/header_operations.py
Python
unlicense
292,424
[ "VisIt" ]
06b1a0c866afb65614df2a87570b068064e400c593af256a93567779c40215eb
#!/usr/bin/env python # -*- coding:UTF-8 -*- # Copyright (c) 2018 Nicolas Iooss # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
fishilico/shared
python/cpu_model.py
Python
mit
116,099
[ "Amber", "CRYSTAL" ]
7df2ec41c87b7fc86cf04a19b8648269bb42c0bd4fe847a3a6cee415e1336af2
# $Id: nodes.py 5033 2007-03-21 19:51:22Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ Docutils document tree element class library. Classes in CamelCase are abstract base classes or auxiliary classes. The one exception is `Text`, for a text...
PatrickKennedy/Sybil
docutils/nodes.py
Python
bsd-2-clause
60,239
[ "VisIt" ]
588961082101fed0e11f8fcf35dada9b50bbf16ff5d858152ddf51a11d91f047
#!/usr/bin/env python # Author: Andrew Jewett (jewett.aij at g mail) # http://www.chem.ucsb.edu/~sheagroup # License: 3-clause BSD License (See LICENSE.TXT) # Copyright (c) 2011, Regents of the University of California # All rights reserved. """ bonds_by_type.py reads a LAMMPS data file (or an excerpt of...
ganzenmg/lammps_current
tools/moltemplate/src/bonds_by_type.py
Python
gpl-2.0
16,093
[ "LAMMPS" ]
05e7f914df0bce449ffbb985a57d94efc4427eadd45ea2a507f7c3a0ee24e55d
#!/usr/bin/env python """Fetch GenBank entries for given accessions. Adapted from https://www.biostars.org/p/66921/ USAGE: cat <file> | python acc2gb.py <email> > <output> where: <file> is the name of a file containing accession numbers to download <email> is the email address associated with your NCBI account <out...
arlissc/phageParser
acc2gb.py
Python
mit
1,018
[ "Biopython" ]
afe51a7926eb670d216e0d7c020b88df40270450653dfda0897686824aa95285
# (c) 2015, Brian Coca <briancoca+dev@gmail.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 # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
e-gob/plataforma-kioscos-autoatencion
scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/plugins/action/patch.py
Python
bsd-3-clause
2,527
[ "Brian" ]
3d9212ed188f7e277fef7f0969f8f115c162d7d5d86e7e82acaf9401f602724f
""" network.py ~~~~~~~~~~ A module to implement the stochastic gradient descent learning algorithm for a feedforward neural network. Gradients are calculated using backpropagation. """ #### Libraries # Standard library import random import json import sys # Third-party libraries import numpy as np class Network(ob...
nilabja10201992/NeuralNettoDetectHandWrittenDigits
src/network1.py
Python
gpl-3.0
7,573
[ "Gaussian", "NEURON" ]
7ea986d871a1999aba0a1c45d9abda958d034799c464be2b49584f0303f37acf
from datetime import timedelta from django.test import TestCase from django.utils import timezone from model_mommy import mommy from core.models import Visit from registration.models import Member from registration.utils import signin_member, AlreadySignedInError, member_signed_in, get_signed_in_members class GetSi...
BridgeCityBicycleCoop/workstand
registration/tests/test_utils.py
Python
mit
2,638
[ "VisIt" ]
d7c409cd431c5cc745783662b772fcdcd964ff4d9b9f83cbd3634706aa83eb1c
#!/usr/bin/env python reader = vtk.vtkImageReader() reader.ReleaseDataFlagOff() reader.SetDataByteOrderToLittleEndian() reader.SetDataExtent(0,63,0,63,1,93) reader.SetFilePrefix("" + str(VTK_DATA_ROOT) + "/Data/headsq/quarter") reader.SetDataMask(0x7fff) rangeStart = 0.0 rangeEnd = 0.2 LUT = vtk.vtkLookupTab...
hlzz/dotfiles
graphics/VTK-7.0.0/Filters/Parallel/Testing/Python/TestImageStreamer.py
Python
bsd-3-clause
1,595
[ "VTK" ]
183b9dff8b75632dd5bf61a71b6dea2f434ea7f3a20b393fa820221c3a5ee8ff
#!/usr/bin/env python2 import os import re import natsort import string import netCDF4 as nc import numpy as np import pandas as pd import cPickle as pickle import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from matplotlib.cm import get_cmap from matplotlib import style from scipy import stats fro...
rhyswhitley/savanna_iav
src/figures/trends/gpp_annual_trend_2alt.py
Python
cc0-1.0
9,771
[ "NetCDF" ]
3a8f1c7abd8d7e48f1bccaa2d5b1e77017cbc565ef1021c2518927533fcbafd9
import sys import warnings import numpy as np from scipy import stats from sklearn.covariance import EmpiricalCovariance from sklearn.datasets.samples_generator import make_spd_matrix from sklearn.externals.six.moves import cStringIO as StringIO from sklearn.metrics.cluster import adjusted_rand_score from sklearn.mi...
fabioticconi/scikit-learn
sklearn/mixture/tests/test_gaussian_mixture.py
Python
bsd-3-clause
33,730
[ "Gaussian" ]
a60e30c36bf4a169b837d6101148edc8c152ad6d256b91e4c425a58f4526accc
tests=[ ("python","Utils.py",{}), ("python","Torsions.py",{}), ("python","Pairs.py",{}), ("python","UnitTestDescriptors.py",{}), ] longTests=[ ] if __name__=='__main__': import sys from rdkit import TestRunner failed,tests = TestRunner.RunScript('test_list.py',0,1) sys.exit(len(failed))
strets123/rdkit
rdkit/Chem/AtomPairs/test_list.py
Python
bsd-3-clause
313
[ "RDKit" ]
515e84f6fc253927eed2e84b14a137c571600071840a41e7e39b0e5dd97076cd
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines the abstract base classes for battery-related classes. Regardless of the kind of electrode, conversion or insertion, there are many common definitions and properties, e.g., average voltage, capacity, e...
vorwerkc/pymatgen
pymatgen/apps/battery/battery_abc.py
Python
mit
16,541
[ "pymatgen" ]
26af1b9523282d2ef915d0e5ee841b0e2adc7ae6e71d3eac90c6114bd81d4d5a
import numpy as np import ase from pyemto.utilities import distort, rotation_matrix from pyemto.examples.emto_input_generator import * from pymatgen import Lattice from ase.visualize import view from ase.build import cut, make_supercell import sys find_primitive = False make_supercell = None coords_are_cart...
hpleva/pyemto
example_projects/hcp_equilibrium_volume/input.py
Python
mit
3,359
[ "ASE", "pymatgen" ]
ef11a7c29fc13fd123043b6725d64b14d18d6f7e364c975c19d449ce61748e5e
# # 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 n...
pwcberry/climate
ocw/dataset_processor.py
Python
apache-2.0
44,758
[ "NetCDF" ]
e6592ee5e38b66e4450fee81aad2bff0c0c850bfab1ca16662ec905414d6e9b4
# Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import _ from zeroinstall.support import tasks from zeroinstall.injector import handler, download gobject = tasks.get_loop().gobject glib = tasks.get_loop().glib version = '2.5-rc1-post' class GUIH...
pombredanne/0install
zeroinstall/gui/gui.py
Python
lgpl-2.1
3,024
[ "VisIt" ]
4ae8e68f1507c90842e064750e6c64571d5c2fd2134ac258da1df476f7a1b8d1
import threading import select import time import types import socket from DIRAC import gConfig, gMonitor, gLogger, S_OK, S_ERROR from DIRAC.Core.DISET.private.TransportPool import getGlobalTransportPool from DIRAC.Core.Utilities.ThreadPool import getGlobalThreadPool from DIRAC.Core.Utilities.ReturnValues import isRe...
calancha/DIRAC
Core/DISET/private/MessageBroker.py
Python
gpl-3.0
15,381
[ "DIRAC" ]
a892e18ac8a4668e7a32cc4a2b708c730db69074e3de008f22c95b7226da2af4
# -*- coding: utf-8 -*- __author__ = 'Brian Rossa' __email__ = 'br@f0cal.com' __version__ = '0.0.1' from .decorators import * from .parserfactory import ParserFactory def scan_and_run(package_name, base_parser=None): parser = base_parser or __import__('argparse').ArgumentParser() factory = ParserFactory(base...
brianthelion/plugnparse
plugnparse/__init__.py
Python
mit
475
[ "Brian" ]
83a925487a67a461aa2ce35490dac207e756aeb73baa2600bd3537f700a65037
""" Acceptance tests for the teams feature. """ import json import random import time from dateutil.parser import parse import ddt from flaky import flaky from nose.plugins.attrib import attr from selenium.common.exceptions import TimeoutException from uuid import uuid4 from ..helpers import get_modal_alert, EventsTe...
jbzdak/edx-platform
common/test/acceptance/tests/lms/test_teams.py
Python
agpl-3.0
82,519
[ "VisIt" ]
a0ccbdb4f38dfab5744611f4166393fa1bd3ccd81a9a1ca14ba8446e6744443c
#!/usr/bin/env python from setuptools import setup readme = open('README.rst').read() setup(name='RPLCD', version='1.3.0', description='A Raspberry Pi LCD library for the widely used Hitachi HD44780 controller.', long_description=readme, author='Danilo Bargen', author_email='mail@dbrgn....
dbrgn/RPLCD
setup.py
Python
mit
1,367
[ "CRYSTAL" ]
401f887a2005c683bb88d5ee6b21b64a4bf883c1b9ca85f447956028f96bc555
#! /usr/bin/env python # # IM - Infrastructure Manager # Copyright (C) 2011 - GRyCAP - Universitat Politecnica de Valencia # # 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 t...
indigo-dc/im
test/unit/test_ctxt_agent.py
Python
gpl-3.0
11,044
[ "Galaxy" ]
bda31c0a10baec4c736e39874aa716cc070af7a9b0d523689e304c62a15c5034
"""Make sure all the describe features are putting the right features in the right place """ import mdtraj as md import numpy as np import pandas as pd from mdtraj.testing import eq from scipy.stats import vonmises as vm import itertools from msmbuilder.example_datasets import MinimalFsPeptide from msmbuilder.feature_...
mpharrigan/mixtape
msmbuilder/tests/test_feature_descriptor.py
Python
lgpl-2.1
7,632
[ "MDTraj" ]
73423cbf71183fb21f14870bb5a5fc9be76102c1db4f5fe72d1007b9d592fe44
#!/usr/bin/env python ######################################################################## # File : dirac-admin-get-site-mask # Author : Stuart Paterson ######################################################################## """ Get the list of sites enabled in the mask for job submission Example: $ dirac-a...
DIRACGrid/DIRAC
src/DIRAC/Interfaces/scripts/dirac_admin_get_site_mask.py
Python
gpl-3.0
930
[ "DIRAC" ]
9ccacabe2159f6277432cb9d3def1056e2db295f4fe576b60a9ac38c8ed43809
#!/usr/bin/env python3 """Test the deast module on short snippets of code.""" # Copyright © 2017 Timothy Pederick # # 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.o...
perey/deast
tests/test_snippets.py
Python
apache-2.0
2,540
[ "VisIt" ]
b15baa00239b07e5bef778dddf8c07ed14c636694a00036f05a9a180dda0e905
# -*- 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'^f4add8918802.html$', Temp...
flipjack/tecnoservicio
config/urls.py
Python
bsd-3-clause
5,780
[ "VisIt" ]
ec548c2bd75c33753920a70f627393a4a828b688298bb06ced02c23f0e9f2df9
# encoding: utf-8 #! /usr/bin/env python import logging import io from datetime import datetime import unittest from collections import namedtuple import uuid from opcua import ua from opcua.ua.ua_binary import extensionobject_from_binary from opcua.ua.ua_binary import extensionobject_to_binary from opcua.ua.ua_binary...
iirob/python-opcua
tests/tests_unit.py
Python
lgpl-3.0
25,183
[ "ASE" ]
214b5373324e9d5ea64f11077096a84fe1252a631318cb2a06da430e8800a4de
# -*- coding: utf-8 -*- import os import types from os.path import join from sys import executable from stat import ST_MTIME from docutils import nodes, utils from docutils.parsers.rst.roles import set_classes def mol_role(role, rawtext, text, lineno, inliner, options={}, content=[]): n = [] t = '' while ...
slabanja/ase
doc/ext.py
Python
gpl-2.0
4,281
[ "ASE" ]
6a08a06943a6576b16bf201df4514639745617e3ae41d65acf433e9ceeab1bb4
# -*- coding: utf-8 -*- # # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from __future__ import division, print_function, absolute_import import warnings import numpy as np from scipy._lib.doccer import (extend_notes_in_docstring, ...
gertingold/scipy
scipy/stats/_continuous_distns.py
Python
bsd-3-clause
220,936
[ "CRYSTAL", "Gaussian" ]
caf685e6cf5ced60e2519079c316c0081509a2212b90a4012bff5df451fc36da
# disable missing docstring #pylint: disable=C0111 import json from lettuce import world, step from nose.tools import assert_equal, assert_true # pylint: disable=E0611 from common import type_in_codemirror, open_new_course from advanced_settings import change_value from course_import import import_file, go_to_import ...
pelikanchik/edx-platform
cms/djangoapps/contentstore/features/problem-editor.py
Python
agpl-3.0
9,986
[ "VisIt" ]
196f7b2602c7b3383915b3bc84c593f33825c71aa669cad393562296373f81a0
# 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 http://mozilla.org/MPL/2.0/. import sys import traceback from StringIO import StringIO import re import datetime from urllib import urlencode from co...
mozilla/pto
pto/apps/dates/views.py
Python
mpl-2.0
37,380
[ "VisIt" ]
ad87e37f89d3fc11d485bb76593e1e26f97c1e5d9a11d58b7eb63d325785d2bc
import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit as cf time_type = "$T_1$" data_dir = "../Data/" prefix = "2017-11-28-" suffix = "-pulse-NMR-data" T1_files = ["190345", "194315", "193909", "191139", "191848", "192518", "193141"] sample_names = ["0.1M $CuSO_4$", "0.09M $CuSO_4$...
nathawkins/PHY451_FS_2017
Pulsed_NMR/Analysis/20171128_plotting_tool_T1.py
Python
gpl-3.0
2,692
[ "Gaussian" ]
986c99ffd449cd63ff994b46808417b6d0cb939980cfca6f24adf0eb2076813f
import pandas as pd from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.ensemble import BaggingClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.ensemble import ExtraTreesClassifier from sklearn.neural_network import MLPClassifie...
rupakc/Kaggle-Compendium
Amazon Employee Access Challenge/access-baseline.py
Python
mit
2,630
[ "Gaussian" ]
a495f2be1957b1f1d3eecf1fe94fca0ea26f27f8ec194a6d3d7e113bd4cf1d1d
""" This module contains various functions that are special cases of incomplete gamma functions. It should probably be renamed. """ from __future__ import print_function, division from sympy.core import Add, S, sympify, cacheit, pi, I from sympy.core.function import Function, ArgumentIndexError from sympy.core.sy...
Arafatk/sympy
sympy/functions/special/error_functions.py
Python
bsd-3-clause
68,534
[ "Gaussian" ]
e2ba20b09806fa72e1fe28e277748643ab759fe7422b043cf6612322b12c30ad
from itertools import product import numpy as np from numpy.testing import assert_array_almost_equal import pytest from nPDyn.models import Model, Parameters, Component from nPDyn.models.presets import lorentzian, gaussian, linear, delta from nPDyn.models.builtins import ( modelPVoigt, modelLorentzianSum, ...
kpounot/nPDyn
nPDyn/tests/models/test_convolutions.py
Python
gpl-3.0
1,413
[ "Gaussian" ]
e9033bb102fbaaa7ae015d2664cdde2c9de7d5192fc3fb875b15155bd10db75d
# force floating point division. Can still use integer with // from __future__ import division # other good compatibility recquirements for python3 from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals # This file is used for importing the common utilities ...
prheenan/BioModel
EnergyLandscapes/Inverse_Boltzmann/Python/Code/InverseBoltzmann.py
Python
gpl-2.0
6,876
[ "Gaussian" ]
a3a3d6b83c40eac82b617479ec1a188debcd89d2a5e40f178a3591e02c0d6b15
############################### # This file is part of PyLaDa. # # Copyright (C) 2013 National Renewable Energy Lab # # PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to submit # large numbers of jobs on supercomputers. It provides a python interface to physical input, suc...
pylada/pylada-light
src/pylada/physics/__init__.py
Python
gpl-3.0
3,041
[ "CRYSTAL", "VASP" ]
d266a17d18863bc7205072a52c7fef19b4acc2b36ca67ab3ccf51558cfbb2cec
#!/usr/bin/env python __author__ = 'Duane Edgington' __copyright__ = '2013' __license__ = 'GPL v3' __contact__ = 'duane at mbari.org' __doc__ = ''' Master loader for all CANON activities in September 2011 and beyound Mike McCann and Duane Edgington and Reiko MBARI 15 August 2013 @var __date__: Date of last s...
google-code-export/stoqs
loaders/CANON/loadCANON_september2011.py
Python
gpl-3.0
4,775
[ "NetCDF" ]
14c2583b242ec1c3d795e5e07357acd4cc968f0514a16e866c169ec84b98d029
import logging import warnings from Bio.pairwise2 import align, format_alignment from Bio.Seq import Seq from seqseek import Chromosome from .exceptions import (MissingReferenceFlank, InconsistentAlignment, Unstrandable, FlanksTooShort) LOG...
23andMe/stranding
stranding/stranding.py
Python
mit
8,519
[ "BLAST", "Biopython" ]
973b7f82fa6076a5b794f77ba4cf2971d229e85c3a63dcf70a55ed3c3ab307b9
#!/usr/bin/env python import os from twython import Twython CONSUMER_KEY = os.environ.get('CONSUMER_KEY') CONSUMER_SECRET = os.environ.get('CONSUMER_SECRET') if CONSUMER_KEY is None or CONSUMER_SECRET is None: raise ValueError( "You must pass CONSUMER_KEY and CONSUMER_SECRET in the env") twitter = Twyth...
rshk/ardomino-api
utils/twitter_auth.py
Python
bsd-3-clause
1,329
[ "VisIt" ]
89779cc41b8cc39c27b80abc5c69a58517bd0bb4a015090ba7d3aa9b126fdf29
# $Id$ # # Copyright (C) 2005-2006 greg landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from rdkit import Data...
rdkit/rdkit-orig
rdkit/DataStructs/VectCollection.py
Python
bsd-3-clause
6,099
[ "RDKit" ]
7ed0ecea003c675d33a588830172ca1e16ecf0001a2bf4be9bbaa123fe202150
import time import numpy as np import scipy as scipy # try: # import qutip as qt # except ImportError as e: # import logging # logging.warning('Could not import qutip, tomo code will not work') import qutip as qtp from pycqed.analysis_v2 import pytomo as csdp_tomo comp_projectors = [qtp.ket2dm(qtp.tensor(...
DiCarloLab-Delft/PycQED_py3
pycqed/analysis_v2/tomography_V2.py
Python
mit
25,084
[ "Gaussian" ]
eecc5275a7b9f06877cc09c6441749a79e5257a46406cee6316573576129a75b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides some useful functions for dealing with magnetic Structures (e.g. Structures with associated magmom tags). """ import warnings import numpy as np import os import logging from enum imp...
mbkumar/pymatgen
pymatgen/analysis/magnetism/analyzer.py
Python
mit
48,744
[ "VASP", "pymatgen" ]
3908ac757b62b3784544dcad5a9cf33992b626350a11a908dbe74846b223cafd
"""VTK output functions. Use the XML VTK format for unstructured meshes (.vtu) See here for a guide: http://www.vtk.org/pdf/file-formats.pdf Luke Olson 20090309 http://www.cs.uiuc.edu/homes/lukeo """ __docformat__ = "restructuredtext en" __all__ = ['write_vtu','write_basic_mesh'] import xml.dom.minidom import nu...
lukeolson/lukeo.cs.illinois.edu
files/vtk_writer.py
Python
mit
16,276
[ "ParaView", "VTK" ]
12ac0308e2e4298ca53d07099d10b79d24478038e6bc999c32edf3b45aa0129d
from __future__ import print_function import numpy as np #1) Run dev-tools/mem_counter inside EPW/src #2) compile UtilXlib/mem_counter.f90 with -D__DEBUG flag #3) Run EPW #4) grep ' allocating' epw1.out > alloc.txt #5) grep 'deallocating' epw1.out > dealloc.txt #6) Run this script after having changed the correct all...
QEF/q-e_schrodinger
dev-tools/mem_analyse.py
Python
gpl-2.0
1,780
[ "EPW" ]
8ccb93aca6fab241f83a154fdbef3571ab452a9e93eca77b4eb6fefe0eb4a39d
"""Fabric deployment file to install genomic data on remote instances. Designed to automatically download and manage biologically associated data on cloud instances like Amazon EC2. Fabric (http://docs.fabfile.org) manages automation of remote servers. Usage: fab -i key_file -H servername -f data_fabfile.py inst...
lpantano/cloudbiolinux
data_fabfile.py
Python
mit
2,539
[ "Galaxy" ]
401105f9cfdafad08bcc03af023a5ae32804b0c52ffeb3769eef2a6a73d3618d
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS. """ from datetime import datetime from flaky import flaky from textwrap import dedent from unittest import skip from nose.plugins.attrib import attr from bok_choy.promise import EmptyPromise from ..helpers import ( UniqueCourseTest, EventsTestMixin, ...
MakeHer/edx-platform
common/test/acceptance/tests/lms/test_lms.py
Python
agpl-3.0
44,711
[ "VisIt" ]
ab05e8d53d71421c4d9512e4023c89e5fd7421692dc8cb5b7be802a96e665289
# This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2006-2014, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Public version 2.1 or l...
Clyde-fare/cclib
src/cclib/method/calculationmethod.py
Python
lgpl-2.1
1,708
[ "cclib" ]
e8149cd858cc1d8830f0a351bb5337858f43b627c5ad20b5e309a747b9f60379
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/media/lib/mediatab.py
Python
gpl-2.0
4,916
[ "Brian" ]
98efe9d462936c3aaf4022fe5b2b7bf16b3815ee626633b4658e986019c77edc
#!/usr/bin/python # -*- coding: utf-8 -*- """ H. Déjean copyright Naver Labs Europe 2018 READ project mine a document (itemset generation) """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import sys, os.path sys.path.append(o...
Transkribus/TranskribusDU
TranskribusDU/spm/spmPageVerticalZones.py
Python
bsd-3-clause
81,199
[ "Gaussian" ]
651e1b6cac8972aab8cc85da50fb894c7212bfc63114f265ad9ed7a3dba0c243
#!/usr/bin/env python # -* coding: utf-8 -* """ This python script use Blue Obelisk's elements.xml file to create the corresponding C++ header with atomic information. The elements.xml file can be found at the official SVN repo: http://svn.code.sf.net/p/bodr/code/trunk/bodr """ import sys from xml.etree import E...
Luthaf/Chemharp
scripts/generate/periodic_table.py
Python
mpl-2.0
2,674
[ "Chemfiles" ]
0f08a927a26492f32736f5b3bfe1535ed36b647ebbe3fd13f4606cda9011d663
# -*- coding: utf-8 -*- import scrapy import urlparse import re from refly_scraper.items import ReferenceItem class JsSpider(scrapy.Spider): name = 'JavaScript' excluded_path = ['MDN', 'Web technology for developers'] allowed_domains = ['mozilla.org'] visited = [] start_urls = ( 'https://d...
Xuaps/refly_scraper
refly_scraper/spiders/js.py
Python
gpl-2.0
2,442
[ "VisIt" ]
31fda3f7be6f5501dce20cb93bb073fb1d546e776f2af484096e866d7d0064bc
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/bibles/lib/__init__.py
Python
gpl-2.0
18,849
[ "Brian" ]
eaf4c9ee230b85277e5b00c748f664394f9876aee12fb8feb6c30ff88e85c3c1
import os import sys import tempfile import yaml import zlib import numpy as np import pandas as pa import simplejson as js import subprocess as sb from time import time,sleep from os import path from scipy.stats.mstats import mquantiles from sklearn.feature_selection import SelectKBest, f_classif from sklearn.lda imp...
binarybana/samcnet
exps/karen.py
Python
mit
9,872
[ "Gaussian" ]
7e6d3c3e6a7a3074b95364a6963f9d66a9f5bb0452964a356b66a1c5e541a0f5