text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
# -*- coding: utf-8 -*- import numpy as np import kernel as kernels import bandwidths as bw #TODO: should this be a function? class KDE(object): """ Kernel Density Estimator Parameters ---------- x : array-like N-dimensional array from which the density is to be estimated kernel : Ker...
pprett/statsmodels
statsmodels/sandbox/nonparametric/kde2.py
Python
bsd-3-clause
2,549
[ "Gaussian" ]
73b684fb0744f9af968b61621def0f1b1ffe908363e4c7cde94ed115c5644d13
""" DictCache. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import datetime import threading # DIRAC from DIRAC.Core.Utilities.LockRing import LockRing class ThreadLocalDict(threading.local): """This class is just useful t...
ic-hep/DIRAC
src/DIRAC/Core/Utilities/DictCache.py
Python
gpl-3.0
8,639
[ "DIRAC" ]
fdf3a65ef01a4ff4503801fcf7ab1f4fa95f14d9ce9d8ac1d28f14fa6bfbbba5
# The MIT License (MIT) # # Copyright (c) 2016, The MITRE Corporation. All rights reserved. # # Approved for Public Release; Distribution Unlimited 14-1511 # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal ...
awest1339/multiscanner
libs/office_meta.py
Python
mpl-2.0
19,544
[ "FEFF" ]
07946360d888c38b89ee17e862448a3febc91067de8a31f303780ff1cc70135a
import numpy as np import sys import os import time from ase.units import Bohr from ase.structure import bulk from gpaw import GPAW from gpaw.atom.basis import BasisMaker from gpaw.response.df import DF from gpaw.mpi import serial_comm, rank, size from gpaw.utilities import devnull if rank != 0: sys.stdout = devnul...
qsnake/gpaw
gpaw/test/aluminum_EELS_lcao.py
Python
gpl-3.0
1,532
[ "ASE", "GPAW" ]
143d684d8e6b9d0c2b32a94ced3bdbabf880d33bda5e0b88726c5094443dd11f
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007 Donald N. Allingham # Copyright (C) 2008 Brian Matherly # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either versio...
sam-m888/addons-source
AttachSourceTool/AttachSourceTool.py
Python
gpl-2.0
8,173
[ "Brian" ]
e0f8f692013df514b850424f0ff5a239e9d0134f25f2901bbfc481df20b519ce
# -*- coding: utf-8 -*- """Release data for the IPython project.""" #----------------------------------------------------------------------------- # Copyright (c) 2008, IPython Development Team. # Copyright (c) 2001, Fernando Perez <fernando.perez@colorado.edu> # Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>...
lifeinoppo/littlefishlet-scode
RES/REF/python_sourcecode/ipython-master/IPython/core/release.py
Python
gpl-2.0
4,541
[ "Brian" ]
669647d079e44610c3197ea9b6966bd3e44a1ce395dcdd3d95b3ac434a1d5755
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # user - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the ...
heromod/migrid
mig/simulation/user.py
Python
gpl-2.0
2,151
[ "Brian" ]
ffc24f61194ba2be767061999acc146ef1ec5d2e37c2a234cdafa8af94db306b
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
fedepad/espressopp
src/integrator/DPDThermostat.py
Python
gpl-3.0
1,933
[ "ESPResSo" ]
6c1038ca33c767c651c312155feb855a8ab40a53bd292efaad7cf2c4158cca5e
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkSuperquadricSource(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
nagyistoce/devide
modules/vtk_basic/vtkSuperquadricSource.py
Python
bsd-3-clause
483
[ "VTK" ]
8b9980f703d1c687cb0c92ce4ebf4b6beb1a5aaa5af18f80f79f9fe222a4636c
""" """ from abc import ABCMeta, abstractmethod PULSAR_UNKNOWN_RETURN_CODE = '__unknown__' class ManagerInterface: """ Defines the interface to various job managers. """ __metaclass__ = ABCMeta @abstractmethod def setup_job(self, input_job_id, tool_id, tool_version): """ Setu...
galaxyproject/pulsar
pulsar/managers/__init__.py
Python
apache-2.0
3,684
[ "Galaxy" ]
14783136daad42d869d0874d9b80ff17cdce8dcb1e3c4aa6bfa812f5ca89fd2b
# -*- coding: utf-8 -*- # messages.py # Copyright (C) 2013 LEAP # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Th...
laborautonomo/leap_mail
src/leap/mail/imap/messages.py
Python
gpl-3.0
45,339
[ "MOE" ]
a6870f63c8a3e1732264b3df35963350eeaee83198659a5a3210f4d849a577b2
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
kkreis/espressopp
src/storage/__init__.py
Python
gpl-3.0
1,161
[ "ESPResSo" ]
b85769fdbd1c14ea2b6e1b088b84b26ee61046081272e680e846c4605612f0ab
# -*- coding: utf-8 -*- """ Kullback-Leibler divergence functions and klUCB utilities. - Faster implementation can be found in a C file, in ``Policies/C``, and should be compiled to speedup computations. - Cf. http://banditslilian.gforge.inria.fr/docs/Policies.kullback.html for a documentation. - Cf. https://en.wikipe...
Naereen/notebooks
kullback.py
Python
mit
18,923
[ "Gaussian" ]
8395e5257e3a35076f256575657aec1df3732ee95970825c561afd6284f876ff
../../../../../../../../share/pyshared/orca/scripts/apps/yelp/yelp_v2/script_utilities.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/yelp/yelp_v2/script_utilities.py
Python
gpl-3.0
89
[ "ORCA" ]
e38da35131b034912eff2870dbc1c8ef6c4787c7ab354cddfede56b5f6cbcff9
''' Synchronizer Module that keeps the database synchronized with the CS Module that updates the RSS database ( ResourceStatusDB ) with the information in the Resources section. If there are additions in the CS, those are incorporated to the DB. If there are deletions, entries in RSS tables for those elements ...
arrabito/DIRAC
ResourceStatusSystem/Utilities/Synchronizer.py
Python
gpl-3.0
22,548
[ "DIRAC" ]
d569acba742a0f751d6524d7c922ddc3cabccb76d1349ef477f5951d5f2d2347
import matplotlib.pyplot as plt import numpy as np class TweetVisualize(object): def visualize_kde(self, est, min_time, max_time, scale_factor = 1.0): #kde = KernelDensity(kernel='gaussian', bandwidth = bandwidth) n_bins = (max_time - min_time) * 10 x = np.linspace(min_time, m...
vrkrishn/FBHacks
src/reference/TweetVisualize.py
Python
mit
1,843
[ "Gaussian" ]
2303b2769b13b2d6d07a9a21bf2b942c62c37910c4b93bbc1b90a65c11541a76
# Copyright 2017 Canonical Ltd. # Licensed under the LGPLv3, see LICENCE file for details. import json import logging import os import tempfile from datetime import datetime, timedelta from unittest import TestCase import macaroonbakery.bakery as bakery import macaroonbakery.checkers as checkers import macaroonbakery....
go-macaroon-bakery/py-macaroon-bakery
macaroonbakery/tests/test_agent.py
Python
lgpl-3.0
15,700
[ "VisIt" ]
e6c4c80bda3c07900bffe04f0a2f7f4707c1bc06a54e99251f13a256241148e1
"""Kernels""" # Code # Copyright (c) 2013-2016, Massachusetts Institute of Technology # Copyright (c) 2016-2022, Alex Gorodetsky # # This file is part of GPEXP: # Author: Alex Gorodetsky alex@alexgorodetsky # # GPEXP is free software: you can redistribute it and/or modify # it under the terms of the GNU General Publi...
goroda/GPEXP
gpExp/kernels.py
Python
gpl-2.0
11,780
[ "Gaussian" ]
6cefbf80177b0030901f0c3cc04f03b5a65e344904732a0da3cb9bda8af47692
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2022 Stanford University and the Authors # # Authors: Peter Eastman # Contributors: # # MDTraj is free software: you can ...
mdtraj/mdtraj
tests/test_pdbx.py
Python
lgpl-2.1
2,869
[ "MDTraj", "OpenMM" ]
21eda4794db6efdaeaeb652bbbadb0a916dce9d8159c5e432a62bcbeaac081b6
from mpi4py import MPI import pyCore import sys, getopt def main(argv): model = '' mesh = '' try: opts, args = getopt.getopt(argv,"hg:m:",["model=","mesh="]) except getopt.GetoptError: print('test_pytCore.py -g <model> -m <mesh>') sys.exit(2) for opt, arg in opts: if opt == '-h...
SCOREC/core
python_wrappers/test_pyCore.py
Python
bsd-3-clause
1,149
[ "VTK" ]
9f8b396e5cdf7f5d87a168efedfd4f0b8001a1b83100d611098e617993805169
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
anksp21/Community-Zenpacks
ZenPacks.AndreaConsadori.Colubris/setup.py
Python
gpl-2.0
3,300
[ "VisIt" ]
2a6cf42e4ab7cbdbd7bfaadc9785513a0c0524286b8358c9d2957f6da73fe587
#Author: Kevin Boehme #Date: 12-20-2014 #This program is part of a TnSeq analysis pipeline, designed to take raw fastq or fasta reads, and produce tabulated data on hop count occurrence. import sys sys.dont_write_bytecode = True import ConfigParser import logging import gzip import os import glob import subprocess i...
KBoehme/TnSeq-Pipeline
TnSeq-Pipeline.py
Python
mit
28,211
[ "Bowtie" ]
4ffc3269e423218414aba5eed36b7f5c6f489e51d384ab55dde8368913f873fc
# coding: utf-8 import numpy as np from math import ceil from .. import img_as_float from ..restoration._denoise_cy import _denoise_bilateral, _denoise_tv_bregman from .._shared.utils import _mode_deprecations, skimage_deprecation, warn import warnings def denoise_bilateral(image, win_size=None, sigma_color=None, sig...
pratapvardhan/scikit-image
skimage/restoration/_denoise.py
Python
bsd-3-clause
12,531
[ "Gaussian" ]
ed1b7dc1012013744198df3c16b62d2b1cacb8aa8b5b72bc4f45f870330edeb5
import argparse import datetime import shelve import sys from pheme.util.config import Config class TermCache(object): """Persistent cache of terms and their anonymized values Interface to lookup a value (presumably anonymized) from any existing term, so set a term's anonymized value, and persist th...
pbugni/pheme.anonymize
pheme/anonymize/termcache.py
Python
bsd-3-clause
3,154
[ "VisIt" ]
bc96d7bc4a6b60d48054de299045162050671e5eaf11498418b04c665d86ca2c
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.patient_index, name='index'), url(r'^(\d+)/$', views.patient_show), url(r'^get$', views.patient_get), url(r'^create$', views.patient_create), url(r'^(\d+)/appointment/create$', views.appointment_create), url(...
aliakbars/tbdc
patient/urls.py
Python
apache-2.0
1,008
[ "VisIt" ]
90b8173911858f3366b1affca14a859fab463d7df978af02eca65e2d60311dcf
#!/usr/bin/env python # Notes: # - The above pragma line is only required if you plan to run this module as a stand-alone script to run any test harnesses which may occur after "if __name__ == '__main__'". # # - You should run lime with this script in the form # pylime model.py # You will need the location of pylime...
allegroLeiden/lime
example/model.py
Python
gpl-3.0
12,700
[ "Gaussian", "VTK" ]
c652c7ce1f3f4770a623a9bd8eaa4c7d1be7b6ccf6040fe8d6204ed0a9d38244
''' Module for utility functions useful in a variety of GIS programs @author: Jacob Oberman ''' import time import calendar from itertools import izip import numpy import netCDF4 import filetypes def wrap_lon_0_360(lon): '''Wrap a single longitude to the interval [0, 360)''' while lon < 0: lon += 3...
barronh/WHIPS
process_sat/utils.py
Python
mit
9,559
[ "NetCDF" ]
fde2db798e7e40c83fe16bcc86554780cc30411bfcdb20d433596956775b3127
""" PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2020 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Africa. Permission to us...
bgoli/pysces
pysces/kraken/KrakenNET.py
Python
bsd-3-clause
14,998
[ "PySCeS" ]
158694a40eb03d8b8c6352f7d8e2bd78a7db470c3dd40d5fd7ebb2c68b64b172
from GaussianArm import GaussianArm from BernoulliArm import BernoulliArm from BaseBanditArm import BaseBanditArm """ Arm for modelling a customer's purchasing behaviour. The model consists on a binomial distribution to find whether or not a given client makes a purchase and a gaussian distribution from which the rew...
MarcoAlmada/bandit-panda
bandit/arms/RPVArm.py
Python
mit
879
[ "Gaussian" ]
07f4b8815e35854af6e2f209cc4366641bd4d4aa6348c356c2920af1cce397a8
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2017 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...
QuantumElephant/horton
horton/gbasis/test/test_gobasis.py
Python
gpl-3.0
26,297
[ "Gaussian" ]
7d20db00664e5918f46ff9211dfb9e517eef0c1b682569d4e2fd8d27bf0812a7
from tinypy.parser.TinyPyParser import TinyPyParser from tinypy.parser.TinyPyVisitor import TinyPyVisitor from tinypy import AST from tinypy import runtime class StmtVisitorMixin(TinyPyVisitor): # # Base statements # def visitSimple_stmt(self, ctx:TinyPyParser.Simple_stmtContext): statements ...
maxmalysh/tiny-py-interpreter
tinypy/AST/builder/StmtVisitor.py
Python
mit
4,619
[ "VisIt" ]
adff231785622d2f070ea94ef35e1017a0939fe5691caedf3f8f37a80099a68a
"""Defines schema for electromagnetic-related nodes.""" import enum from schematics import types from spins.invdes.problem_graph import optplan from spins.invdes.problem_graph import schema_utils BOUNDARY_CONDITION_TYPES = [] MESH_TYPES = [] class Material(schema_utils.Model): """Defines a material. A mat...
stanfordnqp/spins-b
spins/invdes/problem_graph/optplan/schema_em.py
Python
gpl-3.0
17,659
[ "CRYSTAL", "Gaussian" ]
8781ffd65b2f52097d777f4e3db5e2e427de5b194296017fc2896f02851dbb4d
""" Tests for discussion pages """ import datetime from uuid import uuid4 from nose.plugins.attrib import attr from pytz import UTC from .helpers import BaseDiscussionTestCase from ..helpers import UniqueCourseTest from ...pages.lms.auto_auth import AutoAuthPage from ...pages.lms.courseware import CoursewarePage fro...
10clouds/edx-platform
common/test/acceptance/tests/discussion/test_discussion.py
Python
agpl-3.0
52,662
[ "VisIt" ]
e473f4f94ea9bc2f237f4fca04aef21525e8d5b638dad1212b556026e914da27
# -*- coding: utf-8 -*- """cdk - course development toolkit. Convert asciidoc input to deck.js slidedecks with many code/development oriented features. Usage: cdk [-vbo] [--toc] [--notransition] [--logo=<logo>] [--theme=<theme>] [--custom-css=<cssfile>] FILE cdk --install-theme=<theme> cdk --default-theme=<theme...
twitter/cdk
cdk/__init__.py
Python
apache-2.0
8,826
[ "CDK" ]
d666340f529a3d1fdf82e0192af44aa72a63ccbd803672e158332c7d8213655b
#!/usr/bin/env python ''' GOAL: merge various catalogs to make one catalog for all spirals in LCS - this will enable a much quicker analysis of results than using LCSanalyzeNSA.py USAGE: from w/in ipython %run ~/Dropbox/pythonCode/LCSmergespiralcats.py -r mergedata() s=spirals() # this will append...
rfinn/LCS
paper1code/LCSmergespiralcats.py
Python
gpl-3.0
18,319
[ "Galaxy" ]
704a063e114e71be3c135171e99afdd863ed36adf16335fa103d5b94d0dfc7b2
import re import logging import pybel.constants as pc from collections import defaultdict from pybel.struct import has_protein_modification from pybel.canonicalize import edge_to_bel from pybel.resources import get_bel_resource from indra.statements import * from indra.sources.bel.rdf_processor import bel_to_indra, che...
pvtodorov/indra
indra/sources/bel/processor.py
Python
bsd-2-clause
28,892
[ "Pybel" ]
54b5f0d09faf8570d68e8045c84f32522030e639bb87a2ad1df60e051299b227
# Copyright 2018 The TensorFlow 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 # # Unless required by applica...
alsrgv/tensorflow
tensorflow/python/keras/layers/kernelized_test.py
Python
apache-2.0
16,217
[ "Gaussian" ]
92a3359a2f185e64ab4acd81179fdea6201da82b995b35be2124abfb255eb411
# 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...
pkreissl/espresso
testsuite/python/thole.py
Python
gpl-3.0
3,279
[ "ESPResSo" ]
0be351882f919f94b2a0261acb164bbad5b41f444390a0c9437a55a7daed41a2
""" Test functions for stats module """ from __future__ import division, print_function, absolute_import import warnings import re import sys from numpy.testing import (TestCase, run_module_suite, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_allclose, assert_, asse...
valexandersaulys/airbnb_kaggle_contest
venv/lib/python3.4/site-packages/scipy/stats/tests/test_distributions.py
Python
gpl-2.0
86,559
[ "Gaussian" ]
028b141b0f159c49c34c75f0a764e3e4535d57baf808f56027faff5495486f3d
# -*- coding: iso-8859-15 -*- """This is just here to make pylint happy """ # Copyright (C) 2002-2009 Tobias Klausmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the ...
smulloni/pymetar
pymetar.py
Python
gpl-2.0
39,961
[ "CRYSTAL" ]
c75c07b0a6fffdb8ffdec1764635b8726115ac457917597f941765dbddf90ee2
import os import shutil import struct import tempfile import warnings import shlex import subprocess as sp import numpy as np from . import database from . import anat def get_paths(subject, hemi, type="patch"): base = os.path.join(os.environ['SUBJECTS_DIR'], subject) if type == "patch": return os.pa...
CVML/pycortex
cortex/freesurfer.py
Python
bsd-2-clause
14,249
[ "Mayavi" ]
8b3db23bb2fda8eddae5b32f2568204259a60e9d437daf43683e7fc5bb6cfb88
# -*- 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-spanner
tests/unit/gapic/spanner_v1/test_spanner.py
Python
apache-2.0
151,706
[ "Octopus" ]
8c5a36883a3cdd603c066c79657cba51b6ac347836d6d758d24be4d44552b153
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Run through NCBI vecscreen on a local machine. """ import os.path as op import sys from jcvi.utils.range import range_merge from jcvi.formats.fasta import tidy from jcvi.formats.blast import BlastLine from jcvi.formats.base import must_open from jcvi.apps.align impor...
sgordon007/jcvi_062915
apps/vecscreen.py
Python
bsd-2-clause
3,165
[ "BLAST" ]
239769c4145d9c1aade0096906d3579c34a58b649b59fe1552c938577cd8ec26
"""This module provides a dictionary of rgb values with keys of color names. """ color_table = """Aero #7CB9E8 49% 73% 91% 206° 70% 70% 47% 91% Aero blue #C9FFE5 79% 100% 90% 151° 100% 89% 21% 100% African violet #B284BE 70% 52% 75% 288° 31% 63% 31% 75% Air Force blue (RAF) #5D8AA8 36% 54% 66% 204° 30% 51% 45% 66% Ai...
jkitchin/pycse
pycse/colors.py
Python
gpl-2.0
34,118
[ "Amber", "BLAST" ]
4d7e9fc5be34dcbc7b2d03e8c8c0053bea2076538132da8ab006256f31ef5732
from flask import Flask, render_template, session, request, redirect import random app = Flask(__name__) app.secret_key = 'my_secret_key' @app.route('/') def index(): if not 'gold' in session: session['gold'] = 0 if not 'activities' in session: session['activities'] = [] return render_templ...
jiobert/python
Francisco_Trujillo/Assignments/flaskolympics/olympics6/server.py
Python
mit
777
[ "CASINO" ]
4aa50803f2600695533031e6cc8b7f5ed6955fe2abf84f55153da4d3463d4e52
""" Generate artificial waveforms of weakly electric fish. The two main functions are generate_wavefish() generate_pulsefish() for generating EODs of wave-type and pulse_type electric fish, respectively. The following functions use the two functions to generate waveforms of specific fishes: generate_alepto(): mimi...
jfsehuanes/thunderfish
thunderfish/fakefish.py
Python
gpl-3.0
21,706
[ "Gaussian" ]
acd6a041bff798e3f5bfc8babbd9b5944098ebc40aa2f172886b9b401599738e
# Copyright 2014 Roberto Brian Sarrionandia # # 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 t...
sarrionandia/tournatrack
trackgrid.py
Python
apache-2.0
2,395
[ "Brian" ]
2ca9eab363931ac4c17681ff1cac4fae4e1f15e7bb2a57d66b2027e64503b52d
import espressopp # create default Lennard Jones (WCA) system with 0 particles and cubic box (L=10) system, integrator = espressopp.standard_system.LennardJones(0, (10*1.12, 10*1.12, 10*1.12)) C_FIXED = 1 C_FREE = 0 # fix x,y and z coord axis fixMask = espressopp.Int3D(C_FREE, C_FIXED, C_FREE) # create a particel g...
fedepad/espressopp
examples/fix_particles/fix_particles.py
Python
gpl-3.0
1,157
[ "VMD" ]
bc9f1557deb43c923a039ecd0bfd69e656fbab6288694b805cb25d46c9bc9f56
#!/usr/bin/env python # Copyright 2014-2018 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/fci/test/test_spin0.py
Python
apache-2.0
7,320
[ "PySCF" ]
007e83a4f55a0265d73a21a8ccc8d317db2309aa1cfddc67cc8abd23ddbbc532
# Orca # # Copyright 2005-2008 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...
GNOME/orca
src/orca/scripts/switcher/__init__.py
Python
lgpl-2.1
905
[ "ORCA" ]
39e6edece30263d6d9955eccc37d16b79b7e88407ef5acec630667280fc178fc
# coding=utf-8 # Copyright 2022 The Tensor2Tensor 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...
tensorflow/tensor2tensor
tensor2tensor/models/research/moe_experiments.py
Python
apache-2.0
14,773
[ "MOE" ]
210f8bd437be992eb92be019e94aa50020e798de7fa1306564e9f789fe8b3cc5
# Copyright 2007 by Michiel de Hoon. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """ This module provides code to work with the sprotXX.dat file from SwissProt. http://www.ex...
bryback/quickseq
genescript/Bio/SwissProt/__init__.py
Python
mit
20,735
[ "Biopython" ]
a6862585be8d716ac32860dcc62c3a7192c5a748a04ae520ffa69c43b0a82660
# -*- coding: utf-8 -*- __author__ = 'Sindre Nistad' from pickle import load import neurolab.train as train import Database.connector as conn import Classifier.neural_network as nn def run(): # conn.bind() # conn.disconnect(True, True) conn.connect() # set_norm_points_table(True) # set_extended...
cLupus/neighborhood_classifier
src/test.py
Python
gpl-3.0
1,334
[ "Gaussian" ]
8b0fd0e5270a4d8507de7412912e151f735a5e6b6975b1336561d58df93846c7
#!/usr/bin/python3 # coding=utf-8 """reads barometric pressure sensor and writes it to UDP socket with timestamp available """ import socket from datetime import datetime from struct import pack from time import sleep from time import time from os import _exit as dumbnrun import ms5637 __author__ = 'Moe' __copyright_...
wadda/Bari
udp_spitter.py
Python
mit
1,474
[ "MOE" ]
0088b89d5258863ad1ee29cabd06a78b298f9dffcccdf7688dae167483fa00d6
#!/usr/bin/python # # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
dietrichc/streamline-ppc-reports
examples/adwords/v201406/advanced_operations/add_text_ad_with_upgraded_urls.py
Python
apache-2.0
4,095
[ "VisIt" ]
750e6f1dbd842bb1ecf3b0670e63d685388d5bec0591de731ebea31de1340c88
# Made by Vice - cleanup by DrLecter # this script is part of the Official L2J Datapack Project. # Visit http://forum.l2jdp.com for more details. import sys from com.l2scoria import Config from com.l2scoria.gameserver.model.quest import State from com.l2scoria.gameserver.model.quest import QuestState from com.l2scoria....
zenn1989/scoria-interlude
L2Jscoria-Game/data/scripts/quests/618_IntoTheFlame/__init__.py
Python
gpl-3.0
3,899
[ "VisIt" ]
315a306b995479bf8a0f80197997941e5902999043aaf873916cca387163336a
""" Acceptance tests for the Import and Export pages """ from nose.plugins.attrib import attr from datetime import datetime from flaky import flaky from abc import abstractmethod from bok_choy.promise import EmptyPromise from .base_studio_test import StudioLibraryTest, StudioCourseTest from ...fixtures.course import...
solashirai/edx-platform
common/test/acceptance/tests/studio/test_import_export.py
Python
agpl-3.0
16,957
[ "VisIt" ]
b18909a1b6a0b7740eeca58640823e0a614117caa7bd743d7c57a088b342c752
#! /usr/bin/env python3 ############################################################################### # # # GALORE: Gaussian and Lorentzian broadening for simulated spectra # # ...
SMTG-UCL/galore
galore/cli/galore.py
Python
gpl-3.0
12,020
[ "GPAW", "Gaussian", "VASP", "pymatgen" ]
9f90ef0dc184d384b3beeddb07c23b863cb4c33dbfedb7f3d3b1a94450ddb860
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2006-2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## 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 Fou...
andrebellafronte/stoq
tests/test_interfaces.py
Python
gpl-2.0
1,529
[ "VisIt" ]
574310fbd88d9a96d617b4fa629512e1636aff2318dce6bc3ecf9999b0d1ad1c
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) # create source source = vtk.vtkCylinderSource() source.SetCenter(0,0...
FedericoV/FractalMammaryLobule
tests/cutting.py
Python
gpl-3.0
5,668
[ "VTK" ]
84090628d3a93cbe1734fe29916448065ad50305901d53534f8617b4434c8188
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kratman/psi4public
psi4/driver/qcdb/qchem.py
Python
gpl-2.0
18,510
[ "CFOUR", "Psi4", "Q-Chem" ]
513e2da05f9cda6f9727c043eee91ad00d7b9e9e6b049e22c4eab3410fbadf18
# revlog.py - storage back-end for mercurial # # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. """Storage back-end for Mercurial. This provides efficient delta storage with O(1...
iaddict/mercurial.rb
vendor/mercurial/mercurial/revlog.py
Python
mit
45,735
[ "VisIt" ]
6cc6785e649b4c436d2f607516ef97e501bbefc16ea815d7f5aef30975d2f809
# -*- coding: utf-8 -*- import os import datetime from pysite.lib import load_site_config NAME = "eventlist" TITLE = "Loads a list of events." DESCR = """ ************* The Eventlist ************* Basic Format ============ An eventlist is a YAML mapping. The field ``EVENTS`` contains the list of events. Each e...
dmdm/PySite
pysite/plugins/eventlist/__init__.py
Python
agpl-3.0
4,369
[ "VisIt" ]
48231466f2def6331a423e89f728321cfcda536d7cf1cd43b66f1db1ffa2dda8
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Olivier Grisel <olivier.grisel@ensta.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # License: BSD 3 clause from itertools import chain, combinations import numbers import numpy as np f...
ycaihua/scikit-learn
sklearn/preprocessing/data.py
Python
bsd-3-clause
39,819
[ "Gaussian" ]
b2ced4967ee6f2b90524b880e586d45b961e48da4ab0f9489d89831eea9c7e39
# This file is part of cclib (http://cclib.sf.net), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2007, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Public version 2.1 or later. You shou...
Clyde-fare/cclib_bak
test/testTDun.py
Python
lgpl-2.1
1,911
[ "Gaussian", "cclib" ]
2e26e9a04d571c9bdb934c3b179202dfe1f58ff2d8953b811f32d21c6e22cf6f
import subprocess import os import datetime import wand.image import glob def pnmtopdf(pnmfile, pdffile, resolution=None): with wand.image.Image(filename=pnmfile, resolution=resolution) as pnm: with pnm.convert('pdf') as pdf: pdf.save(filename=pdffile) os.remove(pnmfile) scan_options = { ...
esben/brother-scan
brscan/scanto.py
Python
gpl-3.0
2,260
[ "ADF" ]
bb9d9b8ce9ab33163d346f81043a9877f18eb22734f320139954c89acd4096fe
# Copyright (C) 2001 greg Landrum and Rational Discovery LLC """basic unit testing code for query mols """ from __future__ import print_function from rdkit import RDConfig import unittest,os,sys class TestCase(unittest.TestCase): def setUp(self): print('\n%s: '%self.shortDescription(),end='') # decipher t...
strets123/rdkit
Code/GraphMol/UnitTestQueryMol.py
Python
bsd-3-clause
734
[ "RDKit" ]
df946def9cd1147dd9b287a4e6166c91dbe5b1d2d61763ddd342fbc989fa6d3a
names = [ { "GivenName":"Joe", "Surname":"Schmoe", "EmailAddress":"test@example.com", "TelephoneNumber":"402-427-6916", "StreetAddress":"785 Oak Way", "City":"Kennard", "State":"NE", "ZipCode":68034 }, { "GivenName":"Ethel", "Surname":"Wagner", "EmailAddress":"EthelGWag...
rhefner1/ghidonations
sandbox/individual_names.py
Python
apache-2.0
124,418
[ "Brian", "COLUMBUS", "Elk" ]
2dd7cf48ce75efe4840b151d9b118863b5415c0c01c6924a751a8e920a09f488
# -*- coding: utf-8 -*- # Copyright 2020 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...
sasha-gitg/python-aiplatform
google/cloud/aiplatform_v1beta1/types/explanation.py
Python
apache-2.0
25,492
[ "Gaussian" ]
8d3f086c244608d3cfcf0e313a372315454b55f712b4534fe9b84c148090d17c
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
TheTimmy/spack
var/spack/repos/builtin/packages/r-limma/package.py
Python
lgpl-2.1
1,617
[ "Bioconductor" ]
91e8110b2fbde73bde2429bacfe01882dc6d3318814bb59e5fe8b5dec59661c8
# -*- coding: utf-8 -*- u"""Traits-based GUI for head-MRI coregistration. Hierarchy --------- This is the hierarchy of classes for control. Brackets like [1] denote properties that are set to be equivalent. :: CoregFrame: GUI for head-MRI coregistration. |-- CoregModel (model): Traits object for estimating the h...
kambysese/mne-python
mne/gui/_coreg_gui.py
Python
bsd-3-clause
89,515
[ "Mayavi" ]
f33b1f235b43b0ea0453472bb0dd9435a270841e09afb0cd227a71f7d97df807
#!/usr/bin/env python ######################################################################## # File : dirac-proxy-info.py # Author : Adrian Casajus ######################################################################## """ Print information about the current proxy. Example: $ dirac-proxy-info subject ...
yujikato/DIRAC
src/DIRAC/FrameworkSystem/scripts/dirac_proxy_info.py
Python
gpl-3.0
6,434
[ "DIRAC" ]
26f1a9e3550074fa0a3948fa6ddda6da14d1e6c3157432c150186dd630c0c18d
# -*- coding: utf-8 -*- """ Regression tests for the Test Client, especially the customized assertions. """ import os from django.conf import settings from django.core.exceptions import SuspiciousOperation from django.core.urlresolvers import reverse from django.template import (TemplateDoesNotExist, TemplateSyntaxErr...
350dotorg/Django
tests/regressiontests/test_client_regress/models.py
Python
bsd-3-clause
41,597
[ "VisIt" ]
4346c977581195ed8735f71c2182c68fe61da639aea9713facdb9e7a8597ab7b
# Copyright 2017 The TensorFlow 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 # # Unless required by applica...
gunan/tensorflow
tensorflow/python/autograph/pyct/cfg.py
Python
apache-2.0
32,187
[ "VisIt" ]
ad80f35d12dbbf5eb4f3222b5cb28208caaf65b39bdd565458a68b260c9e12d7
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-15 20:21 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0008_auto_20170906_2108'), ] operations = [...
Gimpneek/exclusive-raid-gym-tracker
app/migrations/0009_auto_20170915_2021.py
Python
gpl-3.0
3,074
[ "VisIt" ]
9c74c2a412f2445aca57c072a96456801ec2d7887b37de0b308f58f9e0460c00
""" API operations on the library datasets. """ import glob import os import os.path import string import sys import tempfile import zipfile from galaxy import exceptions from galaxy import util from galaxy import web from galaxy.exceptions import ObjectNotFound from galaxy.managers import folders, roles from galaxy.to...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/webapps/galaxy/api/lda_datasets.py
Python
gpl-3.0
38,213
[ "Galaxy" ]
e6fb2f0aca517dfac2a217c23284b7b90c93da8a7b4aa665777cfb979c9509ac
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2014-2017 The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this s...
jasperges/blenderseed
render.py
Python
mit
10,160
[ "VisIt" ]
82177af98476ed518a452a483b491c801d6f23fe6d54d14e7c2244a0da78a4ad
# Copyright (C) 2014 # Pierre de Buyl # Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it ...
espressopp/espressopp
src/interaction/MirrorLennardJones.py
Python
gpl-3.0
4,881
[ "ESPResSo" ]
01b20779b4ef5ddc2ff7db2d7e900a1fd82639912f8eb161803ae56199cbc0c4
# Copyright 2009 by Cymon J. Cox. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Command line wrapper for the multiple alignment program PRANK. """ from __future__ import...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/Align/Applications/_Prank.py
Python
gpl-2.0
10,813
[ "Biopython" ]
37217374bb3bc85502a1dae3f0386fa74d65faf932170f4de3fa7fbf27e3f3ea
#!/usr/bin/env python # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 __author__ = "Ole Christian Weidner" __copyright__ = "Copyright 2012, Ole Christian Weidner" __license__ = "MIT" import bliss.saga from bliss.saga.Object import Object from bliss.saga.Attributes import AttributeInterface from bliss....
saga-project/bliss
bliss/saga/job/Job.py
Python
mit
14,254
[ "Galaxy" ]
ae648edcbcb036b6092702cc1fd467e3152d26b37630acb8a101039a2cc44c44
# Written by Lauri Lehtovaara 2008 from gpaw.utilities.blas import axpy from gpaw.utilities.blas import dotc class MultiBlas: def __init__(self, gd): self.gd = gd # Multivector ZAXPY: a x + y => y def multi_zaxpy(self, a,x,y, nvec): if isinstance(a, (float, complex)): for i in...
qsnake/gpaw
gpaw/tddft/utils.py
Python
gpl-3.0
5,250
[ "GPAW" ]
66954687947ed918a02d7d2c564edb86e5a225be3c7c4f60d5e4148ee474a2ff
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # pylint: disable=no-init,invalid-name,too-ma...
mganeva/mantid
Framework/PythonInterface/test/python/mantid/geometry/CrystalStructureTest.py
Python
gpl-3.0
3,785
[ "CRYSTAL" ]
8f9dd6e07fd2725ee7accd92b626bc5840a166eedea3f6fad4c95aba8c473643
import zmq from .back_queue import BackQueue from .front_queue import FrontQueue from multiprocessing import Process import logging from mosquito.messages import DataList class Coordinator(object): """ Coordinator used to keep track of all the URLs seen and what URLs to crawl next """ def __init...
MVilstrup/mosquito_1
mosquito/coordinator/__init__.py
Python
apache-2.0
2,557
[ "VisIt" ]
692afda166860bb7b111fb7c9797377eedcfe4566805fffbffb0170b72a2a759
""" set precomputation parameters ----------------------------- Parameters to set the precomputations in order to facilitate the computation model tasks """ max_r0 = 20. max_r1 = 50. S0 = 3.4105868102821946 S1 = 8.770781287761192 #### Parameters lists pars_qvals = [{'codename': 'porportionaldates', 'p...
tgquintela/Mscthesis
set_precomputationparameters.py
Python
mit
2,240
[ "Gaussian" ]
fb710b481e37660f7f4433c3fd0d2f363293671d6e8c6319c313d336103827ff
#! /usr/bin/env python from MDAnalysis import * from MDAnalysis.analysis.align import rotation_matrix import numpy import math u = Universe("init.pdb", "sampled.pos.pdb") v = Universe("init.pdb") mob1 = u.selectAtoms("segid A and resid 1:176") ref1 = v.selectAtoms("segid A and resid 1:176") f = open('rmsd_mda.dat',...
demharters/git_scripts
rmsd_1mi5.py
Python
apache-2.0
472
[ "MDAnalysis" ]
d10e9acc42d39c0db92bc6c485664af6563f8d1716925579f1b98bfc0b2fc222
#!/usr/bin/env python # -*- coding: latin-1 -*- # # Copyright 2016-2021 Blaise Frederick # # 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/LICEN...
bbfrederick/rapidtide
rapidtide/resample.py
Python
apache-2.0
28,351
[ "Gaussian" ]
507201c93c079d3d8ed4d63a263d5f047df5a57c4b39cb12b72e8ff65e1c69f6
# -*- coding: utf-8 -*- """ Author ------ Bo Zhang Email ----- bozhang@nao.cas.cn Created on ---------- - Fri Nov 25 12:53:24 2016 Modifications ------------- - Aims ---- - utils for apertures """ import numpy as np from joblib import Parallel, delayed from scipy.interpolate import interp1d from scipy.signal imp...
hypergravity/hrs
twodspec/aperture.py
Python
bsd-3-clause
33,739
[ "Gaussian" ]
d25a935d46e7100f293a3e4a9b98f78352260ad778d9e0a5f648022957951496
#!/usr/bin/env python import numpy as np """This module contains MISMIP constants and parameters, as well as functions computing theoretical steady state profiles corresponding to various MISMIP experiments. It should not be cluttered with plotting or NetCDF output code. """ def secpera(): "Number of seconds pe...
talbrecht/pism_pik07
examples/mismip/mismip2d/MISMIP.py
Python
gpl-3.0
9,436
[ "NetCDF" ]
2b067e5b96465f0d5a3894066abc7ef7dc5f3e7dc5fa1bf04761ee8d18e435a0
from functools import partial from logging import getLogger from pogo_async import PGoApi, exceptions as ex from pogo_async.auth_ptc import AuthPtc from pogo_async.utilities import get_cell_ids from pogo_async.hash_server import HashServer from asyncio import sleep, Lock, Semaphore, get_event_loop from random import ch...
Claod44/GokemonReborn
pokeminer/worker.py
Python
mit
50,226
[ "VisIt" ]
d7674be05f6a68ea5f7c4f716fc8db9b0f7a846852c29f8dda258d0619595e7e
import cPickle as pickle from cStringIO import StringIO import numpy as np import scipy.sparse from numpy.testing import (assert_almost_equal, assert_array_equal, assert_array_almost_equal, assert_equal) from ..naive_bayes import GaussianNB, BernoulliNB, MultinomialNB # Data is just 6 separ...
cdegroc/scikit-learn
sklearn/tests/test_naive_bayes.py
Python
bsd-3-clause
4,208
[ "Gaussian" ]
42703ae8d5001c516b46a195072be2ce77ba95390a1977122efebb7001c42ec9
import numpy as np import os import h5py import json from .utils import asymptotic_error_quantile, bootstrap,\ dict_to_margins, margins_to_dict, matrix_to_list from sklearn.utils import check_random_state from scipy.stats import gaussian_kde, norm from .vinecopula import Conversion class ListDependenceResult(li...
NazBen/impact-of-dependence
depimpact/result.py
Python
mit
32,314
[ "Gaussian" ]
88c77e5852a9850c54cb3ba9c219b429fd82df577624b1c8d7fbe7134f469c0b
import numpy as np from numpy.testing import assert_equal, assert_raises, assert_almost_equal from skimage.measure import LineModel, CircleModel, EllipseModel, ransac from skimage.transform import AffineTransform def test_line_model_invalid_input(): assert_raises(ValueError, LineModel().estimate, np.empty((5, 3))...
almarklein/scikit-image
skimage/measure/tests/test_fit.py
Python
bsd-3-clause
6,311
[ "Gaussian" ]
93c6e700c8f357ef140cca9fab43c50f3d82e74a9b66118864e349c205e852c6
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup( name='mongodb-chemistry', version='0.0.1', author='Matt Swain', author_email='m.swain@me.com', license='MIT', url='https://github.com/mcs07/mongodb-chemistry', packages=['mchem'], description='Proof of co...
mcs07/mongodb-chemistry
setup.py
Python
mit
1,197
[ "RDKit" ]
319dfb4adbb580c1c1535ab567acc80a91ccd22b32b7b96283d9fe1db61a12fb
# DFF -- An Open Source Digital Forensics Framework # Copyright (C) 2009-2010 ArxSys # This program is free software, distributed under the terms of # the GNU General Public License Version 2. See the LICENSE file # at the top of the source tree. # # See http://www.digital-forensic.org for more information about this...
elthariel/dff
ui/gui/mainWindow.py
Python
gpl-2.0
9,488
[ "VisIt" ]
180b5bc5613e0950285a4e6e215e012679d61afb808b881711a0de2de3c7a764
# coding=utf-8 # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
AlexEKoren/grumpy
compiler/stmt_test.py
Python
apache-2.0
14,166
[ "VisIt" ]
9e03c61f7bffafe69adc4a6c4517d31e87f81cfc0b4a6ae7cfc5de46253182a1
import math import numpy from chainer import cuda from chainer.functions.connection import deconvolution_2d from chainer import initializers from chainer import link class Deconvolution2D(link.Link): """Two dimensional deconvolution function. This link wraps the :func:`~chainer.functions.deconvolution_2d`...
benob/chainer
chainer/links/connection/deconvolution_2d.py
Python
mit
4,249
[ "Gaussian" ]
92703b7a188aa1c93ada9dd0c546724c30e327dca1dc3d213baf261c4d16942e
""".. module:: Test_DAG Test cases for DIRAC.Core.Utilities.DAG module. """ import unittest # sut from DIRAC.Core.Utilities.DAG import DAG, makeFrozenSet __RCSID__ = "$Id $" ######################################################################## class DAGTestCase( unittest.TestCase ): """ Test case for DIRAC....
Andrew-McNab-UK/DIRAC
Core/Utilities/test/Test_DAG.py
Python
gpl-3.0
8,935
[ "DIRAC" ]
76020908d77c203f0e9b488078d7467c01f1aa0c3ee8bca07e330a0f8d7ccb1b
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
MOA-2011/e2openplugin-OpenWebif
plugin/controllers/views/ajax/timers.py
Python
gpl-2.0
15,817
[ "VisIt" ]
21400610e64287e2435239e8b6e0c57e572d7bbe4626e52389fe66f291b1f0f3
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides conversion between the Atomic Simulation Environment Atoms object and pymatgen Structure objects. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Proje...
gmatteo/pymatgen
pymatgen/io/ase.py
Python
mit
2,883
[ "ASE", "pymatgen" ]
78aa46bb0ae56537598c5db84b4e2a2a93bd0c2c3d668bdfa2fee5ac5d637ae6
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Lenovo, Inc. # # 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 # ...
j00bar/ansible
lib/ansible/modules/network/lenovo/cnos_rollback.py
Python
gpl-3.0
11,138
[ "VisIt" ]
66f078cd7a607af7479e0544c667d65172187d9eb3ba9a54cd5696acd667a52b