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
######################################################################## # $HeadURL$ # File : JobSanityAgent.py # Author : Stuart Paterson ######################################################################## """ The Job Sanity Agent accepts all jobs from the Job receiver and screens them for the following pro...
sposs/DIRAC
WorkloadManagementSystem/Agent/JobSanityAgent.py
Python
gpl-3.0
10,350
[ "DIRAC" ]
2d3c95f6e04374ea0b8a8e9171b5fab97b256fc2b7b9bd07839f286f67ca9971
## # Copyright (C) 2012 Jasper Snoek, Hugo Larochelle and Ryan P. Adams # # This code is written for research and educational purposes only to # supplement the paper entitled # "Practical Bayesian Optimization of Machine Learning Algorithms" # by Snoek, Larochelle and Adams # Advances in Neural Information Processing...
KEggensperger/SurrogateBenchmarks
Surrogates/RegressionModels/GaussianProcess_src/spearmint/gp.py
Python
gpl-3.0
10,747
[ "Gaussian" ]
42971232e36c8569dcdb2444a23d393eb5c20cbedc32ec722aea4aea1a4c8d84
#!/bin/env python import sys, os, math, types, time, datetime from urllib import urlopen from urllib import urlretrieve from urlparse import urlparse #import Numeric as N import numpy as N import numpy.ma as MA #import matplotlib.numerix.ma as MA import matplotlib matplotlib.use('Agg') import matplotlib.pylab as M fro...
dataplumber/nexus
climatology/clim/plotlib.py
Python
apache-2.0
33,780
[ "NetCDF" ]
2e33e66740240932edbad7f65cac8af679dbc8ed619f7b95d9c350cd42cb7cda
''' Created on Apr 13, 2015 @author: markus ''' from copy import deepcopy import random class SpectrumSmearer(object): ''' Simple smearing utility ''' def __init__(self, spectrum): ''' Constructor ''' self.__inputspectrum = spectrum self.__niterations = 1000 ...
mfasDa/raadev
analysis/model/SpectrumSmearer.py
Python
gpl-3.0
2,646
[ "Gaussian" ]
e459ca58712caf45d63843313663013dbc1ae001f9dd03e39c4239657db9359e
# $Id$ # # Copyright (c) 2003-2006 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. # """ utility functionality for fingerpri...
jandom/rdkit
rdkit/Chem/Fingerprints/FingerprintMols.py
Python
bsd-3-clause
17,861
[ "RDKit" ]
65f22c90e2ef24e6e951e3c64907a1d99e883600b5ba376d3718c8c6c8b182d8
import itertools as it import numpy as np import pytest from pysisyphus.benchmarks import Benchmark from pysisyphus.calculators import XTB from pysisyphus.irc.IRCDummy import IRCDummy from pysisyphus.run import run_endopt from pysisyphus.testing import using @pytest.fixture def ts(): b = Benchmark("xtb_rx", cal...
eljost/pysisyphus
tests/test_endopt/test_endopt.py
Python
gpl-3.0
1,379
[ "xTB" ]
3febd95a4d324eec827e09cf72be2d0390fb8838db91254dcf91832710606686
# # Copyright (C) 2008, Brian Tanner # #http://rl-glue-ext.googlecode.com/ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
okkhoy/mo-rlglue-python-codec
tests/test_speed_environment.py
Python
mit
2,144
[ "Brian" ]
56369ba3095d2799f49fc63b30cf7d52dc41fb06637fea8998e7c04fb984c0d6
#!/usr/bin/env python ######################################################################## # $HeadURL$ ######################################################################## """ Get the list of all the user files. """ __RCSID__ = "$Id$" from DIRAC.Core.Base import Script days = 0 months = 0 years = 0 wildcard = ...
Andrew-McNab-UK/DIRAC
DataManagementSystem/scripts/dirac-dms-user-lfns.py
Python
gpl-3.0
5,368
[ "DIRAC" ]
dbd1cb2d5b76965c8e555a8feed3a2f06b5efd12401be7a571683b8b0a6d21f2
""" SpaceTokenOccupancyPolicy SpaceTokenOccupancyPolicy.__bases__: DIRAC.ResourceStatusSystem.PolicySystem.PolicyBase.PolicyBase """ from DIRAC import S_OK from DIRAC.ResourceStatusSystem.PolicySystem.PolicyBase import PolicyBase __RCSID__ = '$Id$' class Space...
vmendez/DIRAC
ResourceStatusSystem/Policy/SpaceTokenOccupancyPolicy.py
Python
gpl-3.0
2,170
[ "DIRAC" ]
69b121e392960d3b6a620eeb0f139816a80200a23ad9fca06ff9f0f4ac1e0c8b
#!/usr/bin/env python # Copyright 2015 The Kubernetes 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 appli...
w9n/cri-containerd
hack/boilerplate/boilerplate.py
Python
apache-2.0
6,450
[ "VisIt" ]
87f6e3f2062544588ae774ffe15a50f69bcd8e92e5b4ff1da517ce45608c941b
############################################################################## # adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD) # Simulations on HPC Resources # Copyright 2017 FU Berlin and the Authors # # Authors: Jan-Hendrik Prinz # Contributors: # # `adaptiveMD` is free software: ...
markovmodel/adaptivemd
adaptivemd/analysis/pyemma/__init__.py
Python
lgpl-2.1
1,126
[ "MDTraj" ]
112a00eeba69bfdad9194c34f9c5cfbc810cf637c1dc495df63c52e98ab4025b
import sys import requests from pkgparse import settings class BaseRegistry: def __init__(self): """ This function is called whenever a new BaseRegistry class is created and these variables also pass onto inheriting classes. Inheriting classes need to create a definition for th...
marcus-crane/pkgparse
pkgparse/registry/base.py
Python
mit
6,362
[ "VisIt" ]
79440beb660daa96c344b4fd43f63c166a7a399cc15ec5e67ff4b2df120401f3
# pylint: disable=missing-docstring """ Pattern calculator for Drakor. Woefully incomplete. No UI; to use, load into console (IDLE works well), call the function for the desired pattern, and then print the pattern tree. See also pattern-ui.py. Pattern naming rules: drop all non-alphanumeric characters; replace space...
belisama/drakor-patterns
pattern.py
Python
mit
29,917
[ "Amber" ]
e640c5f77e6f0a095b78d1d23ac13dfdb1f0f106bd65975dd02d80acee5beb26
# -*- coding: utf-8 -*- # # File is part of the Prometheus Project # # Copyright (C) 2012-2015 Roger Pereira Boff <roger@gmail.com> # 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 Fo...
rogerboff/djsourceview
djsourceview/__init__.py
Python
mit
983
[ "VisIt" ]
80c3e1dcba7260ba4df6ea1176fced0b448fce521166ef91e5aaba139d5dc7bd
""" Dummy Service is a service for testing new dirac protocol This file must be copied in FrameworkSystem/Service to run tests """ import six from DIRAC import S_OK from DIRAC.Core.DISET.RequestHandler import RequestHandler # You need to copy ../DB/UserDB in DIRAC/FrameworkSystem/DB from DIRAC.FrameworkSystem.DB.Us...
DIRACGrid/DIRAC
tests/Integration/TornadoServices/Services/UserDiracHandler.py
Python
gpl-3.0
1,828
[ "DIRAC" ]
9b400778611df44910c72b2e0406c935d0725ce4efb953cc22154bbb2bdfc897
# This file is a part of the "SuMPF" package # Copyright (C) 2018-2021 Jonas Schulte-Coerne # # This program 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 3 of the License, or (at your ...
JonasSC/SuMPF
tests/tests/_data/_signals/test_noise.py
Python
lgpl-3.0
17,376
[ "Gaussian" ]
5b6969ccc4c6cde54b7de62ed3ab339bb1137fe55f6551793cbf39325fc8bb6b
""" Filename: plot_water_budget.py Author: Damien Irving, irving.damien@gmail.com Description: Plot climatology and trends in precipitation and evaporation Input: List of netCDF files to plot Output: An image in either bitmap (e.g. .png) or vector (e.g. .svg, .eps) format """ # Import gener...
DamienIrving/ocean-analysis
visualisation/water_cycle/plot_water_budget.py
Python
mit
7,344
[ "NetCDF" ]
0b493c3b3b44543a19aebd0ad068b7f39d1662161fad87b242fc20c279c9c572
''' *** SHED SKIN Python-to-C++ Compiler *** Copyright 2005-2013 Mark Dufour; License GNU GPL version 3 (See LICENSE) extmod.py: extension module support ''' from infer import called from python import Class, def_class, Module from typestr import ExtmodError, nodetypestr, singletype2 OVERLOAD_SINGLE = ['__neg__', '...
kirbyfan64/shedskin
shedskin/extmod.py
Python
gpl-3.0
21,649
[ "VisIt" ]
ade536c84ce449a5354594a8082f10e7d386c5d3bd8d94d0e0856d678f598412
"""Dirac notation for states.""" from __future__ import print_function, division from sympy import (cacheit, conjugate, Expr, Function, integrate, oo, sqrt, Tuple) from sympy.core.compatibility import u, range from sympy.printing.pretty.stringpict import stringPict from sympy.physics.quantum.qexpr ...
drufat/sympy
sympy/physics/quantum/state.py
Python
bsd-3-clause
29,159
[ "DIRAC" ]
99f5ca539b0b8ee1a8573f8da57d60c5fa0bdf9327fa5f51578b173bfc34ec78
import ocl import camvtk import time import datetime import vtk def drawTree(myscreen,t,color=camvtk.red,opacity=0.2, offset=(0,0,0)): nodes = t.get_nodes() nmax=len(nodes) i=0 for n in nodes: cen = n.point() #print "cen=",cen.str() scale = n.get_scale() #print "col=",...
AlanZatarain/opencamlib
scripts/ocode/ocode_cylcutter_volume.py
Python
gpl-3.0
10,982
[ "VTK" ]
e0e59399403a37c7fa3342bbf4f28f2abf8430cf62dfd0cd74aea2e09b1b5119
""" Module for EM calculations """ from __future__ import print_function, absolute_import, division, unicode_literals import numpy as np from astropy import units from astropy import constants def em_from_halpha(sb_obs, z, T=1e4*units.K): """ Estimate EM from the observed Halpha surface brightness Foll...
FRBs/FRB
frb/em.py
Python
bsd-3-clause
1,731
[ "Galaxy" ]
2450e8e5fe2855b32edbff03e21f4f509161d3d2d34c0efa4a9414a003d40734
import os from os.path import join, getsize for root, dirs, files in os.walk('python/Lib/email'): print root, "consumes", print sum([getsize(join(root, name)) for name in files]), print "bytes in", len(files), "non-directory files" if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS director...
lichengshuang/createvhost
python/others/System/osos.py
Python
apache-2.0
324
[ "VisIt" ]
68891c434069c6accff6c73f079974228949ed9173b65ac40fc859a01558a1cc
from typing import Optional # Zulip Settings intended to be set by a system administrator. # # See http://zulip.readthedocs.io/en/latest/settings.html for # detailed technical documentation on the Zulip settings system. # ### MANDATORY SETTINGS # # These settings MUST be set in production. In a development environment...
vabs22/zulip
zproject/prod_settings_template.py
Python
apache-2.0
18,303
[ "VisIt" ]
9c5285ef7b09b2fe6f2d6a4b79fc5e10c0c03a66b6d8c284e82eadcd051c6161
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/songs/forms/editversedialog.py
Python
gpl-2.0
5,782
[ "Brian" ]
d5a31712d6db462d8d552ca43f6a21089db83295ecf412594bea4ad928a40fd0
# coding: utf-8 """ Vericred API Vericred's API allows you to search for Health Plans that a specific doctor accepts. ## Getting Started Visit our [Developer Portal](https://developers.vericred.com) to create an account. Once you have created an account, you can create one Application for Production and an...
vericred/vericred-python
vericred_client/models/service_area.py
Python
apache-2.0
13,185
[ "VisIt" ]
9c29b7481cdf98f90b5aa57a1e236964c7f8d92685c25219689825436342bda7
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
modeling/build/models/galaxy.py
Python
agpl-3.0
47,528
[ "Galaxy" ]
f85e37d9cf0a4f381d85f0b812d3694a0491f6c84cd33c61f25b069aa4cb5fa2
# 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 * class Transposome(PerlPackage): """A toolkit for annotation of transposable element families fro...
iulian787/spack
var/spack/repos/builtin/packages/transposome/package.py
Python
lgpl-2.1
626
[ "BLAST" ]
cc9ba24193bdf5005a926b62a88409f1ca3d62fd0951d4d305bc4b1923a51132
# 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/block.py
Python
apache-2.0
13,851
[ "VisIt" ]
df5bb12fbfa9dfb52ab47ae76351243a152cc9ee6c765b86bc87f8f917936892
# -*- coding: utf-8 -*- """ Created on Mon Apr 7 12:08:03 2014 Visualized data, imported from PAM for NEST @author: martin """ import numpy as np import matplotlib.pyplot as mp import os def save(path, ext='svg', close=False, verbose=True): """Save a figure from pyplot. Parameters ---------- path...
MartinPyka/Pam-Utils
pamutils/nest_vis.py
Python
gpl-2.0
5,728
[ "NEURON" ]
a842e06b77e0508ff93e780b8608c843568695cc216ca4d02d1c072cbe11ec81
#!/usr/bin/env python """ Used to setup ESP calculations. Some MM partial charges can't be fit by the FF. Examples: 1. Charges that you are not optimizing. In other words, the atom may be present in your reference structure, but you are not optimizing a bond dipole that affects this atom. 2. MM3* makes all alip...
Q2MM/q2mm
q2mm/setup_esp.py
Python
mit
7,907
[ "Gaussian", "Jaguar", "MacroModel" ]
5e66bcbc86ccb346b35b489b0847a68819c98c64bb18ef3b388bfd7155e461d6
from __future__ import print_function from ase.data import atomic_masses, chemical_symbols from ase.db.core import float_to_time_string, now, dict2constraint import numpy as np all_columns = ['id', 'age', 'user', 'formula', 'calculator', 'energy', 'fmax', 'pbc', 'volume', #'keywords', ...
PHOTOX/fuase
ase/ase/db/table.py
Python
gpl-2.0
6,929
[ "ASE" ]
9c1d9516521bf62dac45f71d1bb29a93160840588cd1530ed1007340659277b6
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2013, 2015 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any...
jirikuncar/invenio-deposit
invenio_deposit/form.py
Python
gpl-2.0
12,186
[ "VisIt" ]
1c8e249b0449adab663ad329c684fb2a31716334529aed73a656fb9b3ff6cb9b
# # @BEGIN LICENSE # # QCDB: quantum chemistry common driver and databases # # Copyright (c) 2011-2017 The QCDB Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of QCDB. # # QCDB is free software; you can redistribute it and/or modify # it ...
cdsgroup/qcdb
qcdb/cfour.py
Python
lgpl-3.0
46,027
[ "CFOUR", "Psi4" ]
4919157ad4aa582f29d3622265309d9f60023e6641f7c316475f3a25b425badd
import os import re import uuid import requests import json import logging logging.basicConfig(level=logging.DEBUG) logging.getLogger("urllib3").setLevel(logging.WARNING) from django.core.management.base import BaseCommand from account.models import Team from django.conf import settings from django.utils import timezo...
galaxy-ctf/milky-way
milkyway/management/commands/admin_pw.py
Python
agpl-3.0
1,350
[ "Galaxy" ]
9c730efb9e391c2eef5236e39937fcacf1d0d953d915762d5aa318e1f91e863b
__all__ = ['fixed_quad','quadrature','romberg','trapz','simps','romb', 'cumtrapz','newton_cotes','composite'] from scipy.special.orthogonal import p_roots from scipy.special import gammaln from numpy import sum, ones, add, diff, isinf, isscalar, \ asarray, real, trapz, arange, empty import numpy as np...
stefanv/scipy3
scipy/integrate/quadrature.py
Python
bsd-3-clause
23,524
[ "Gaussian" ]
03b6b9397f713bb8ba460737addca8aaaf449bf7ab41c81765ba2ac373470676
""":mod:`wand.image` --- Image objects ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Opens and manipulates images. Image objects can be used in :keyword:`with` statement, and these resources will be automatically managed (even if any error happened):: with Image(filename='pikachu.png') as i: print('width =', i.w...
bpc/wand
wand/image.py
Python
mit
131,431
[ "Gaussian" ]
ef8e288dbeac5e152cc14784e963578ce2d825c97a03c1308cbf8a614defa4d2
import numpy as np import os.path, re, sys import scipy.io as scio from scipy.linalg import det import cv2 import itertools from js.data.rgbd.rgbdframe import * import mayavi.mlab as mlab import matplotlib.pyplot as plt def plotMF(fig,R,col=None): mfColor = [] mfColor.append((232/255.0,65/255.0,32/255.0)) # red ...
jstraub/rtmf
python/evaluateGravityOrientation.py
Python
mit
5,661
[ "Mayavi" ]
e41c9ab1fbef6389ee8ea8f9b04ef9f627520ab7dcf95b5615bc1688d4597bd2
from sympy.core import sympify, Lambda, Dummy, Integer, Rational, oo, Float, pi from sympy.functions import sqrt, exp, erf from sympy.printing import sstr import random class Sample(tuple): """ Sample([x1, x2, x3, ...]) represents a collection of samples. Sample parameters like mean, variance and stddev c...
lidavidm/mathics-heroku
venv/lib/python2.7/site-packages/sympy/statistics/distributions.py
Python
gpl-3.0
14,656
[ "Gaussian" ]
082b00bcb99cf5447e723d6ed7d9f23cb8a12c38f3774e07ef16863da42feaba
""" ============================= Ledoit-Wolf vs OAS estimation ============================= The usual covariance maximum likelihood estimate can be regularized using shrinkage. Ledoit and Wolf proposed a close formula to compute the asymptotically optimal shrinkage parameter (minimizing a MSE criterion), yielding th...
RPGOne/Skynet
scikit-learn-0.18.1/examples/covariance/plot_lw_vs_oas.py
Python
bsd-3-clause
2,951
[ "Gaussian" ]
2967b8f6674d5f91c45f5c74af0b2bc330eb8404754c127433ba53cd34dda95b
# system configuration generated and used by the sysconfig module build_time_vars = {'ABIFLAGS': '', 'AC_APPLE_UNIVERSAL_BUILD': 0, 'AIX_GENUINE_CPLUSPLUS': 0, 'AR': 'x86_64-linux-gnu-ar', 'ARFLAGS': 'rc', 'ASDLGEN': 'python3.4 ./Parser/asdl_c.py', 'ASDLGEN_FILES': './Parser/asdl.py ./Parser/asdl_c.py', 'AST_ASD...
michalliu/OpenWrt-Firefly-Libraries
staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/lib/python3.4/_sysconfigdata.py
Python
gpl-2.0
26,507
[ "Firefly" ]
394a7cf512d999fd3e306df08ef06fa549698c7438d6533fc28b50017c7b29c2
# $Id$ # # Copyright (C) 2001-2008 greg Landrum # # @@ 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. # """utility functions for clustering """ def Get...
rdkit/rdkit-orig
rdkit/ML/Cluster/ClusterUtils.py
Python
bsd-3-clause
4,314
[ "RDKit" ]
9eaaf70068e39979e4e4eb0c4790a48e292a1d3c514a1cf02facc195bb070cc6
import unittest from test import support from itertools import * import weakref from decimal import Decimal from fractions import Fraction import sys import operator import random import copy import pickle from functools import reduce import sys import struct maxsize = support.MAX_Py_ssize_t minsize = -maxsize-1 def l...
zhjunlang/kbengine
kbe/src/lib/python/Lib/test/test_itertools.py
Python
lgpl-3.0
86,335
[ "GULP" ]
0b4ccbcea80dc290524d05cd54fc0aee2866f5021f0d9897649ab6ff659e058b
# Copyright 2017 Battelle Energy Alliance, 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 agreed t...
idaholab/raven
doc/user_manual/generated/generateRomDoc.py
Python
apache-2.0
25,727
[ "Gaussian" ]
7e6110baf1bb1c1a958e8cc9f5d93306ee9140b9988a8c1c79f75699359405e6
""" This is the Proxy storage element client """ import os from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Resources.Storage.Utilities import checkArgumentFormat from DIRAC.Resources.Storage.StorageBase import StorageBase from DIRAC.Core.Tornado.Client.ClientSelector import TransferClientSelector as TransferClient...
DIRACGrid/DIRAC
src/DIRAC/Resources/Storage/ProxyStorage.py
Python
gpl-3.0
8,333
[ "DIRAC" ]
33aaeaae6cb3716208ada52d8a30f74bd282bf4b2b34080d13f2488991238014
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from moebot import MwApi import json import re import datetime from shutil import copyfile import requests import schedule import time import argparse import sys import traceback import copy import yaml config = yaml....
kcwikizh/kcwiki-scripts
deprecated/update_subtitle.py
Python
mit
10,518
[ "MOE" ]
ee5f88dc0b36cbda8ec0b733333f970a59045503c1365dc219c27fa16b27f819
""" Provides analysis of site symmetries. """ import numpy as np from pymatgen.core.operations import SymmOp from pymatgen.symmetry.analyzer import SpacegroupAnalyzer as sga def get_site_symmetries(struc, precision=0.1): """ Get all the point group operations centered on each atomic site in the form [[p...
vorwerkc/pymatgen
pymatgen/symmetry/site_symmetries.py
Python
mit
2,752
[ "pymatgen" ]
9c6d8724afbf7e4d9f51b8338ee3f7e1ccd2498d8a62bf85f8a4e67328e688fb
# -*- coding: utf-8 -*- # # # TheVirtualBrain-Scientific Package. This package holds all simulators, and # analysers necessary to run brain-simulations. You can use it stand alone or # in conjunction with TheVirtualBrain-Framework Package. See content of the # documentation-folder for more details. See also http://ww...
stuart-knock/tvb-library
tvb/simulator/plot/mayavi_tools.py
Python
gpl-2.0
15,801
[ "Mayavi" ]
500bd6d4649edbb63d2d6971c301683e8619f5e71b7f04ca6b304d9e9268fe16
# pylint: disable-msg=W0142,C0103,E0201 # Copyright (C) 2003 CAMP # Please see the accompanying LICENSE file for further information. """ASE-calculator interface.""" import numpy as np from ase.units import Bohr, Hartree from gpaw.xc import XC from gpaw.paw import PAW from gpaw.stress import stress from gpaw.occup...
robwarm/gpaw-symm
gpaw/aseinterface.py
Python
gpl-3.0
26,918
[ "ASE", "GPAW", "Gaussian" ]
4fbc6cece4b9addd37fe9cc4152b90ae870311b09e4b2bbf2369155811919de5
# # 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
operators/__init__.py
Python
mit
4,337
[ "VisIt" ]
4f9a1f135fcd90343508b14f6f9fc76cb94956542d2c0e18abdc1cdfd22fb3b8
from __future__ import division from __future__ import print_function """Loader for DEM (topography) in netcdf format. """ from mpop import CONFIG_PATH import os from netCDF4 import Dataset import numpy.ma as ma from glob import glob from mpop.projector import get_area_def def read_dem(): """Read digital elevatio...
meteoswiss-mdr/monti-pytroll
scripts/read_dem.py
Python
lgpl-3.0
697
[ "NetCDF" ]
221aae26c0232b4c2f653821188a8e631b7cdac8fc4ad183c62b84bde3ec1a18
import vtk import math import pyximport import numpy as np pyximport.install(setup_args={'include_dirs':[np.get_include()]}, inplace=True) from _maximum_3d_distance import _maximum_3d_distance import profiling_tools """ Group 2 : Shape and size based features polydata : VOI as a vtkPolydata V : Volume A : Surface ...
wakita-ncch/Radiomics
src/Radiomics/group2_features.py
Python
mit
2,117
[ "VTK" ]
1c482bee90a23104e10aa11b0e5a91c2eb551f27da238cd076b3b492d13ca74a
#!/usr/bin/python """Test of Orca's presentation of Writer word navigation.""" from macaroon.playback import * import utils sequence = MacroSequence() sequence.append(TypeAction("This is a test.")) sequence.append(KeyComboAction("Return")) sequence.append(TypeAction("So is this.")) sequence.append(KeyComboAction("R...
GNOME/orca
test/keystrokes/oowriter/selection_word.py
Python
lgpl-2.1
9,981
[ "ORCA" ]
a6a933cbb20172a4a5ddb2f7573e21e854c96bf8b829aa568115a8d91e43f263
r""" Finite difference solution of the 2D wave equation for isotropic media. Solutions are implemented as simulation classes taking advantage of Object Orientation. They have Rich Display features of IPython Notebook and use the HDF5 file format to store and persist the simulation objects. **Sources** * :class:`~fat...
eusoubrasileiro/fatiando_seismic
fatiando/seismic/wavefd.py
Python
bsd-3-clause
68,755
[ "BLAST", "Gaussian" ]
0a5616ec6cb82ea75e5a1acabde866fd87bbf901ac335195617c45493ad393b9
# Copyright (C) 2015 Hydriz Scholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in ...
Hydriz/DBReports
dbr.py
Python
gpl-3.0
2,353
[ "VisIt" ]
08ba12829e61504a05dc6b7439b1f1f1ce1bb7f0a2b4c69ef899fdc764fac76e
# -*- coding: utf-8 -*- """ Created on Mon Mar 06 14:25:40 2017 @author: Zhenqin Wu """ import os import time import csv import numpy as np import deepchem import pickle from deepchem.molnet.run_benchmark_models import benchmark_classification, benchmark_regression from deepchem.molnet.check_availability import CheckF...
deepchem/deepchem
deepchem/molnet/run_benchmark.py
Python
mit
12,400
[ "Gaussian" ]
ca8e01a362eb541d7123f7ed424fc845de52c8b450beee12a40597b38d6dcf33
# MIDI Hex Keys as discribed in the MagPi magizine number 109 by Mike Cook # Save in the Pico USB file window as code.py to run automatically import time import random import board import digitalio import os import busio import displayio import terminalio import adafruit_displayio_ssd1306 from adafruit_display_text imp...
Grumpy-Mike/Mikes-Pi-Bakery
Hex-Keys Part 2/Final software/midi_hex_keys.py
Python
gpl-2.0
21,152
[ "CRYSTAL" ]
4831d530569ceaf8010253f87a7c6376e38b9f3cf8548727bacf2bd0836e1c82
# # 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/chronos/src/bigdl/chronos/autots/model/base_automodel.py
Python
apache-2.0
15,786
[ "ORCA" ]
5c6c844bfc425bcdd3b2d629e92aee6d71508bd15089a624d6a70bc1c295b2fb
# # Project: MXCuBE # https://github.com/mxcube # # This file is part of MXCuBE software. # # MXCuBE 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 3 of the License, or # (at your...
IvarsKarpics/mxcube
gui/bricks/SampleDetailsBrick.py
Python
lgpl-3.0
5,075
[ "CRYSTAL" ]
b16a61afcaa4fda24bdbff3353e15bb8068d8394c8ccca6a47560ea050c3bbd4
#!/usr/bin/env python """ Caffe network visualization: draw the NetParameter protobuffer. NOTE: this requires pydot>=1.0.2, which is not included in requirements.txt since it requires graphviz and other prerequisites outside the scope of the Caffe. """ from caffe.proto import caffe_pb2 from google.protobuf import tex...
pcoving/caffe
python/caffe/drawnet.py
Python
bsd-2-clause
3,116
[ "NEURON" ]
4de27bd921d9075a8af5f1375bcf98e7a7c1864b47a087c263b96795133eeeec
""" TaskManager contains WorkflowsTasks and RequestTasks modules, for managing jobs and requests tasks """ __RCSID__ = "$Id$" COMPONENT_NAME = 'TaskManager' import time import StringIO from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.Core.Security.ProxyInfo ...
vmendez/DIRAC
TransformationSystem/Client/TaskManager.py
Python
gpl-3.0
24,063
[ "DIRAC" ]
eff9ab14766854381e46257c92d9e10cd5dd01ed2e29ffdb4d9944c554eb01d6
#!/usr/bin/env python from setuptools import setup, find_packages import kademlia setup( name="kademlia", version=kademlia.__version__, description="Kademlia is a distributed hash table for decentralized peer-to-peer computer networks.", long_description=open("README.md", encoding='utf-8').read(), ...
bmuller/kademlia
setup.py
Python
mit
1,095
[ "Brian" ]
37c9370ba21bad2d55cc458b027f1591416cf5ffcb7ef2c97089b62c264c1155
import logging from nestedbasinsampling import ( NBS_manager, LOG_CONFIG, SamplingError, combineAllRuns, Replica) from gaussian_system import get_system, system_kws, Ecut import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm plt.ion() if __name__ == '__main__': logging.basi...
matthewghgriffiths/nestedbasinsampling
examples/Gaussian/read_db.py
Python
gpl-3.0
786
[ "Gaussian" ]
68e8101231a854260eabed1ad4350afe5e10508d341cc053f732e38457f71515
# Copyright (c) 2014-2021, Simon Percivall and Spack Project Developers. # # SPDX-License-Identifier: Python-2.0 # coding: utf-8 from __future__ import absolute_import from six.moves import cStringIO from .unparser import Unparser __version__ = '1.6.3' def unparse(tree, py_ver_consistent=False): v = cStringIO...
LLNL/spack
lib/spack/spack/util/unparse/__init__.py
Python
lgpl-2.1
451
[ "VisIt" ]
140c1252a2e3061a4d36a2a0404fc2778580d18bbae4ff758b00314ed6c32747
""" ===================================== Inference for Linear-Gaussian Systems ===================================== This module implements the Kalman Filter, Kalman Smoother, and EM Algorithm for Linear-Gaussian state space models Copied from https://github.com/pykalman/pykalman since installing with conda didn't w...
bramjochems/BJFinanceLib
BJFinanceLib/math/kalman/standard.py
Python
gpl-3.0
60,968
[ "Gaussian" ]
1893b78df61b272b49f73de0c7217e02a1c81698f8dee99bdd97af4b93c6ca80
import cv2 import numpy as np from dnfpy.core.funcMap2D import FuncMap2D from dnfpy.model.inputMap import InputMap from dnfpy.model.fieldMap import FieldMap from dnfpy.model.activationMap import ActivationMap from dnfpy.model.lateralWeightsMap import LateralWeightsMap from dnfpy.model.webcamMap import WebcamMap from dn...
bchappet/dnfpy
src/dnfpyUtils/models/modelWMCam.py
Python
gpl-2.0
4,856
[ "Gaussian" ]
b703b9df49f65b7f9949b5bf5c015245999dad512b2bc9b7285fc11a61ee6109
#!/usr/bin/env python # -*- coding: utf-8 -*- # Cinder -- C++ Single Spiking Neuron Simulator # Copyright (C) 2015, 2016 Andreas Stoeckel, Christoph Jenzen # # 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...
hbp-sanncs/cinder
scripts/plot_izhikevich_cond_alpha.py
Python
gpl-3.0
1,753
[ "NEURON" ]
5641b5618acabcb4ec605555d26fc94193d6864377fc78470a5a6d9a4e98cb79
# # Copyright 2020 Johannes Hoermann (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software F...
libAtoms/matscipy
examples/electrochemistry/samples_stericify.py
Python
lgpl-2.1
16,964
[ "ASE", "LAMMPS", "Matscipy", "OVITO" ]
cdc63dfdd96c6147dd77d8f1c940e396f11e17467a69767a6b780ea4c27b3232
#!/usr/bin/env python from __future__ import print_function import vtk class MyInteractorStyle(vtk.vtkInteractorStyleTrackballCamera): def __init__(self, parent=None): self.AddObserver("MiddleButtonPressEvent", self.middle_button_press_event) self.AddObserver("MiddleButtonReleaseEvent", self.mid...
lorensen/VTKExamples
src/Python/Interaction/MouseEvents.py
Python
apache-2.0
1,446
[ "VTK" ]
82a2f3f3e1aeef1bf5d92db8dbf1c6affa5fcace59436dd9a99fca4a35509a71
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'NeuronEphysLink' db.create_table('neuroelectro_neuronephyslink', ( ...
neuroelectro/neuroelectro_org
neuroelectro/south_migrations/0014_auto__add_neuronephyslink__add_ephyspropsyn__add_ephysprop__add_datata.py
Python
gpl-2.0
12,599
[ "NEURON" ]
abf27e6e274de2c7076918eb3e46074a06efc765db5e9cf361767e79bdbe9060
from ethereum import utils def mk_forwarder(address): code = b'\x36\x60\x00\x60\x00\x37' # CALLDATACOPY 0 0 (CALLDATASIZE) code += b'\x61\x10\x00\x60\x00\x36\x60\x00' # 4096 0 CALLDATASIZE 0 code += b'\x73' + utils.normalize_address(address) + b'\x5a' # address gas code += b'\xf4' # delegatecall co...
NedYork/viper
scripts/forwarder.py
Python
mit
1,435
[ "MOOSE" ]
610a6f9b86f89d73eb83bda403a56368952adef0d3d4d9a1f03cbb6f49808a74
""" Test class for Job Cleaning Agent """ # imports from __future__ import absolute_import from __future__ import division from __future__ import print_function import pytest from mock import MagicMock # DIRAC Components from DIRAC.WorkloadManagementSystem.Agent.JobCleaningAgent import JobCleaningAgent from DIRAC imp...
yujikato/DIRAC
src/DIRAC/WorkloadManagementSystem/Agent/test/Test_Agent_JobCleaningAgent.py
Python
gpl-3.0
6,717
[ "DIRAC" ]
ebdbba0d2ababfa3f9b355975de71f284112b3fa5bdc200952461a36cec15338
# # Copyright (C) 2013-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...
fweik/espresso
testsuite/python/brownian_dynamics_stats.py
Python
gpl-3.0
4,992
[ "ESPResSo" ]
c9da2672e9fa70beef7d9dd77cb9206976492f3f668019c7e1483af7ab48a610
import ANNarchy import ANNarchy.core.Global as Global from ANNarchy.core.Neuron import Neuron from ANNarchy.core.Synapse import Synapse from ANNarchy.core.PopulationView import PopulationView import ANNarchy.parser.report.LatexParser as LatexParser from ANNarchy.parser.AnalyseNeuron import analyse_neuron from ANNarchy....
vitay/ANNarchy
ANNarchy/parser/report/MarkdownReport.py
Python
gpl-2.0
15,846
[ "NEURON" ]
969942c152c8144214815d714bd50a6e7e7f299af4aa56161abffa0df9a270fc
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Author: Jean-Luc Auge # @Date: 2018-02-02 14:06:55 from numpy import zeros, array from gnpy.core.elements import Transceiver, Edfa from gnpy.core.utils import automatic_fmax, lin2db, db2lin, merge_amplifier_restrictions from gnpy.core.info import create_input_spectra...
Telecominfraproject/gnpy
tests/test_amplifier.py
Python
bsd-3-clause
7,912
[ "ASE" ]
1b075e58b923e3bf187c425d35372534d6381b5a34fb23f9d9bb8a79431201cf
###################################################################### # Copyright (C) 2011-2014 Jaakko Luttinen # # This file is licensed under Version 3.0 of the GNU General Public # License. See LICENSE for a text of the license. ###################################################################### ###############...
nipunbatra/bayespy
bayespy/inference/vmp/nodes/dot.py
Python
gpl-3.0
18,959
[ "Gaussian" ]
40d0c0d10c89b05134223ccff4c4311025dc3cf95d73d32b4222616635c277b9
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The initial version of this module was based on a similar implementation present in FireWorks (https://pypi.python.org/pypi/FireWorks). Work done by D. Waroquiers, A. Jain, and M. Kocher. The main differenc...
dongsenfo/pymatgen
pymatgen/io/abinit/qadapters.py
Python
mit
87,078
[ "ABINIT", "pymatgen" ]
6d4ed0bc91c912c44795c9c0431d85868725542e1c02c7f516a2eeb5b4f400ad
#!/usr/bin/env python # coding: utf-8 """ Web Interface ============= Goals: * show web interface ---- First, start scheduler in the background. $ luigid --background Simple command line integration. $ python x01.py MyTask Screenies: * http://i.imgur.com/OTgMTZP.png """ import time import luigi c...
miku/siskin
docs/btag-2017/byoi/code/x01.py
Python
gpl-3.0
754
[ "VisIt" ]
a5634325f24080e3c9ce142b6a12b7ec67e67fe01eba5647756cb3f56d8ef049
# -*- coding: utf-8 -*- """Payload system for IPython. Authors: * Fernando Perez * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in...
wolfram74/numerical_methods_iserles_notes
venv/lib/python2.7/site-packages/IPython/core/payload.py
Python
mit
1,770
[ "Brian" ]
09b3e3f151429d878ef81c79d4f7580ac500225fbe07aece5eeade9acb2db7e5
# The command file for every external command not specifically for running # the bot. Even more relevant commands like broadcast options and whitelists # are treated as such. # # Every command in here should follow the basic structure of: # elif cmd == 'commandHere': # doYourThings(lots, of, variables) # return...
awesomarcus/PokemonShowdownBot-1
commands.py
Python
mit
23,893
[ "BLAST" ]
8f91387ad8849e7fefed8194dd951e5f1aac7eeaf84045a84908964700d84a31
""" What's this...? """ __RCSID__ = "$Id" import datetime from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.WorkloadManagementSystem.Client.JobState.JobManifest import JobManifest from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC.WorkloadManagementSystem.Service.JobPolicy import RIGHT_GET_INFO, RIGHT_RESC...
hgiemza/DIRAC
WorkloadManagementSystem/Client/JobState/JobState.py
Python
gpl-3.0
19,151
[ "DIRAC" ]
b95333a12e4f8fb23b8b0499bd62c8298656ba6db14b8c03bf215ac3dd2104b1
# 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 # # Unless required by appl...
gkc1000/pyscf
examples/local_orb/ulocal.py
Python
apache-2.0
4,746
[ "PySCF" ]
ca837b223cac72866e1df6082b866a5f8efb463f6fe0401ec2d8c02ae85d97b7
######################################################################## # # (C) 2015, Chris Houseknecht <chouse@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Fo...
grimmjow8/ansible
lib/ansible/galaxy/login.py
Python
gpl-3.0
4,488
[ "Galaxy" ]
9bf05bef8ed51cae902cc72f47497e5f3b0f85ac23514aebc122f181ad645813
# http://bugs.python.org/issue15881#msg170215 from setuptools import find_packages, setup with open('requirements.txt') as f: requires = f.read().splitlines() setup( name="chado", version='2.3.3', description="Chado library", author="Anthony Bretaudeau", author_email="anthony.bretaudeau@inrae....
abretaud/python-chado
setup.py
Python
mit
1,095
[ "Galaxy" ]
678d1e26aefb33d8352a25e14c9bb0731820baa75d9af56d686d3591faee2614
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Brian Coca <brian.coca+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...
caphrim007/ansible-modules-extras
system/getent.py
Python
gpl-3.0
4,192
[ "Brian" ]
593ce56e3abe5f837bdc1f2b8ed9bc6779a150eb19fcac15aa1bad9e57eadf7b
import ddapp.objectmodel as om from ddapp.asynctaskqueue import AsyncTaskQueue class GraspSearchPlanner(object): def __init__(self, ikPlanner, robotModel, jointController, sensorJointController, planPlaybackFunction, showPoseFunction, playbackRobotModel): self.ikPlanner = ikServer self.robotMode...
gizatt/director
src/python/ddapp/debrisdemo.py
Python
bsd-3-clause
32,370
[ "VTK" ]
eeeef198f087222dbbb3e1ad80f30e1dcd4b9600d7ae67a9abb0a80da321abc0
from __future__ import annotations import math from dials.algorithms.profile_model.modeller import EmpiricalProfileModeller def evaluate_gaussian(x, a, x0, sx): assert len(x) == len(x0) assert len(x) == len(sx) g = 0.0 for xi, x0i, sxi in zip(x, x0, sx): g += (xi - x0i) ** 2 / (2.0 * sxi**2...
dials/dials
tests/algorithms/integration/profile/test_empirical_modeller.py
Python
bsd-3-clause
5,054
[ "Gaussian" ]
01e28f9e293d07b2f3fbf33cc98a4201498ed36607b31c89abd27913711f68be
#!/usr/bin/env python ######################################################################## # File : dirac-dms-pfn-accessURL # Author : Stuart Paterson ######################################################################## """ Retrieve an access URL for a PFN given a valid DIRAC SE """ import DIRAC from DIRAC....
DIRACGrid/DIRAC
src/DIRAC/Interfaces/scripts/dirac_dms_pfn_accessURL.py
Python
gpl-3.0
1,262
[ "DIRAC" ]
beac139c6cf673d762cc3c3510924ed51141ee0b0a7694ac44ba62c95d2de6c9
""" Bok choy acceptance and a11y tests for problem types in the LMS See also lettuce tests in lms/djangoapps/courseware/features/problems.feature """ import random import textwrap from abc import ABCMeta, abstractmethod import ddt import pytest from selenium.webdriver import ActionChains from capa.tests.response_xml...
ahmedaljazzar/edx-platform
common/test/acceptance/tests/lms/test_problem_types.py
Python
agpl-3.0
44,423
[ "VisIt" ]
ad3a5f14de750114edd774f218e8d4c7b5bea756f6563c25624353d0d33af727
# Author: Prabhu Ramachandran # License: BSD style # Copyright (c) 2004, Enthought, Inc. """Tests for vtk_parser.py. Note that the `test_parse_all` parses every single class in VTK-Python. It organizes the methods and also tries to obtain the method signature for every method in every class. If this runs without cr...
liulion/mayavi
tvtk/tests/test_vtk_parser.py
Python
bsd-3-clause
12,803
[ "VTK" ]
5acdaaffd5f876a4aaf00193f05506e5579af1e10b39002bbb38490ba7612703
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Low-level objects providing an abstraction for the objects involved in the calculation. """ from __future__ import unicode_literals, division, print_function import collections import abc import six import ...
migueldiascosta/pymatgen
pymatgen/io/abinit/abiobjects.py
Python
mit
42,955
[ "ABINIT", "CRYSTAL", "Gaussian", "pymatgen" ]
37c15e7fc49c29fcf013046cbac243a24f960feb45cf53f298e407b7b9f24aa1
# -*- coding: utf-8 -*- # Copyright 2011 Fanficdownloader team, 2016 FanFicFare team # # 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 # # Un...
PlushBeaver/FanFicFare
fanficfare/story.py
Python
gpl-3.0
48,193
[ "Galaxy" ]
0ed23102cc2bf0091bdee3962e99233c62f71aad2960f5a87ccf57617ade9474
from __future__ import print_function, division # Imports import numpy as np from scipy.misc import ascent, face import cv2 import os from numpy.fft import fftn, ifftn, fft2, ifft2 import timeit import sys ############################################################################### # Implementations supported ####...
comp-imaging/ProxImaL
proximal/utils/utils.py
Python
mit
9,019
[ "Gaussian" ]
36d0dfd6e88e474a36e0ab4335a1d9d6baa15efc4bf2e41194448a5b6d746dcc
# -*- coding: utf-8 -*- """ Select2 Widgets based on https://github.com/applegrew/django-select2. These components are responsible for rendering the necessary HTML data markups. Since this whole package is to render choices using Select2 JavaScript library, hence these components are meant to be used with choice field...
DMOJ/site
judge/widgets/select2.py
Python
agpl-3.0
8,379
[ "VisIt" ]
4050bbe0296afd22f9b62cbfe9b94f71fbad5476a0645426d9e496880a4f39c6
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (C) 2017-2018 CIRCL Computer Incident Response Center Luxembourg (smile gie) # Copyright (C) 2017-2018 Christian Studer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Li...
FloatingGhost/MISP
app/files/scripts/stix2/misp2stix2.py
Python
agpl-3.0
63,756
[ "Galaxy" ]
8829a6e3603ffe466e767c9c6e62970ceb97a7fa612c040c708e73fb285319e7
# piddlePIL.py -- a Python Imaging Library backend for PIDDLE # Copyright (C) 1999 Joseph J. Strout # # 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 of the License, ...
adalke/rdkit
rdkit/sping/PIL/pidPIL.py
Python
bsd-3-clause
14,086
[ "RDKit" ]
0b1bcb2ce0869798d635df057798eea9267e24a53ba631426955a53d1c36c089
#!/usr/bin/python # Main source: http://docs.opencv.org/3.2.0/d7/d4d/tutorial_py_thresholding.html import glob,sys,os import cv2 import numpy as np from matplotlib import pyplot as plt import argparse ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required = True, help = "Image path.") args = vars(...
gustavovaliati/ci724-finalwork-ppginfufpr-2016
util/check_otsu_cv2_py2.py
Python
apache-2.0
1,441
[ "Gaussian" ]
2849168385c62d271b62f41863053031f238816890cdc43f4e452b6fbfec3a2c
../../../../../../../share/pyshared/orca/scripts/apps/ubiquity/__init__.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/ubiquity/__init__.py
Python
gpl-3.0
74
[ "ORCA" ]
183368821c7ad88b9fc9a3bf268b530be96b77c8c81fa66702a072cfabc98fe1
""" Course catalog page """ import re from bok_choy.page_object import PageObject from common.test.acceptance.pages.lms import BASE_URL class CacheProgramsPage(PageObject): """ Visit this page to call the cache_programs management command. This page makes a GET request to a view which is only meant t...
edx-solutions/edx-platform
common/test/acceptance/pages/lms/catalog.py
Python
agpl-3.0
718
[ "VisIt" ]
1fadc24ffc46dd4995da14454f0e4af645dac39de9de2cbd8fc2df8dd3ead2db
# -*- coding: utf-8 -*- import math from .util import unify_types class Vector(object): """Provides a basic vector""" @classmethod def zero(cls): """Returns the zero vector (0 | 0 | 0)""" return cls(0, 0, 0) def __init__(self, *args): """Vector(x, y, z) Vector([x, y, z...
Kingdread/sgl
sgl/vector.py
Python
gpl-3.0
5,556
[ "VTK" ]
d30f2056bf621fef0eabc5ea8b7dd97e9f8c6f9d9885f248e8d3815e56d9fadf
############################################################################# # Code for managing and training a variational Iterative Refinement Model. # ############################################################################# # basic python import cPickle import numpy as np import numpy.random as npr from coll...
Philip-Bachman/Sequential-Generation
GPSImputer.py
Python
mit
28,684
[ "Gaussian" ]
eb1f25fc5255ffc291b8312298b910e254175dfa988711104e7dfdf2a7d7c3b6