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
# Copyright 2000-2002 Andrew Dalke. # Copyright 2002-2004 Brad Chapman. # Copyright 2006-2010 by Peter Cock. # 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. """Represent a Seque...
bryback/quickseq
genescript/Bio/SeqRecord.py
Python
mit
47,663
[ "BioPerl", "Biopython" ]
96343ae9842a1bfacfd9bfbb8338348672006c0c6db84d73ac436dbd850e6071
# TODO: # * Deal with hot plugging / unplugging of sticks # * Can I get a unique ID for a model / instance of a stick? import pyglet from direct.showbase.ShowBase import ShowBase from panda3d.core import WindowProperties from panda3d.core import Filename class World(ShowBase): def __init__(self): Show...
TurBoss/HostilGalaxy
test_joystick.py
Python
gpl-3.0
1,858
[ "Galaxy" ]
3b6fa0f76bc6ce92ab69cb65bc18eb73cfb5f42945d3473c4170a2baed2e1595
# -*- coding: utf-8 -*- """ weight.py RAPIDpy Created by Alan D Snow, 2016. Based on RAPID_Toolbox for ArcMap License: BSD 3-Clause """ import csv from datetime import datetime from functools import partial from netCDF4 import Dataset import numpy as np from pyproj import Proj, transform from shap...
erdc-cm/RAPIDpy
RAPIDpy/gis/weight.py
Python
bsd-3-clause
16,840
[ "NetCDF" ]
c1ece6667c019943d3abac4edf98fea5463e415dce05f26ddd1916e6006935f7
# Copyright 2004 by James Casbon. 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. """ Code to deal with COMPASS output, a program for profile/profile comparison. Compass is des...
bryback/quickseq
genescript/Bio/Compass/__init__.py
Python
mit
6,865
[ "Biopython" ]
0af25a39727bab8e50d425ec5539f4c1bcc6ae59387747548e4b85752a25d5f7
# # Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
pyzoo/zoo/chronos/autots/model/__init__.py
Python
apache-2.0
4,918
[ "ORCA" ]
61fd979659cc231a436976a228d7d6a2cfce7b0f2bb758623c1b4f41fc85bddb
# This script is part of pymaid (http://www.github.com/schlegelp/pymaid). # Copyright (C) 2017 Philipp Schlegel # # 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 ...
schlegelp/pymaid
pymaid/morpho.py
Python
gpl-3.0
32,509
[ "NEURON" ]
09009e49388c6cbf2ff3dd6b72d70990b739d92eb6dd4e23eb704e39e4c8fbc8
############################### # This file is part of PyLaDa. # # Copyright (C) 2013 National Renewable Energy Lab # # PyLaDa is vasp high throughput computational platform for Physics. It aims to make it easier to submit # large numbers of jobs on supercomputers. It provides vasp python interface to physical inpu...
pylada/pylada-light
tests/vasp/test_relax_attribute.py
Python
gpl-3.0
4,113
[ "CRYSTAL", "VASP" ]
79df7f9421d9df74ad7e4c16e70e4af2c0c8ab1cb26fa8714e1b64787661ada5
"""Reads the fasttext word embeddings Visit: https://fasttext.cc/docs/en/english-vectors.html#format""" import os import numpy as np import anna.data.utils as utils DESTINATION = "fasttext" NAME = "wiki-news-300d-1M-subword.vec" ZIP_NAME = NAME + ".zip" URL = "https://s3-us-west-1.amazonaws.com/fasttext-vectors/" + ...
jpbottaro/anna
anna/data/dataset/fasttext.py
Python
mit
2,392
[ "VisIt" ]
d8c105f0c04e60db873cc1518de087528650276dcbb06d87f4007c117bc24c2f
import director import math import textwrap import drc as lcmdrc import bot_core as lcmbotcore import vtkAll as vtk from director import transformUtils from director import visualization as vis from director import objectmodel as om from director import lcmUtils from director import ikconstraints from director import c...
patmarion/director
src/python/director/drivingplanner.py
Python
bsd-3-clause
69,117
[ "VTK" ]
4f8f466808d21e6b04dae7be8140f3fccd15f348b28280d37a56c46af5065893
# # QAPI command marshaller generator # # Copyright IBM, Corp. 2011 # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # Michael Roth <mdroth@linux.vnet.ibm.com> # # This work is licensed under the terms of the GNU GPLv2. # See the COPYING.LIB file in the top-level directory. from ordereddict import OrderedDict...
AVEx-6502/qemu-6502
scripts/qapi-commands.py
Python
gpl-2.0
11,725
[ "VisIt" ]
9ef06d25e1e0841402fbba24ab7f2ecfd762bf08f8ed2cad206891b6a50cde71
""" This module defines export functions for decision trees. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Dawe <noel@dawe.me> # Satrajit Gosh <satrajit.ghosh@gmail.com> # Trevor...
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/sklearn/tree/export.py
Python
mit
15,893
[ "Brian" ]
04e67b23ec938c124123f8f014d45560b5e45b74a75dc4e49d69b597cb9a5359
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """Utilities.""" import io from collections.abc import Iterable, Mapping from copy import deepcopy def _to_camel_case(string): """Switch from snake to cam...
joaander/hoomd-blue
hoomd/util.py
Python
bsd-3-clause
8,115
[ "HOOMD-blue" ]
406371437ff2b7a8bdf446b204e8c801629d34f5540f8baabc4f5e361bdc26bd
# Copyright 2010 Hakan Kjellerstrand hakank@bonetmail.com # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
petesburgh/or-tools
examples/python/mr_smith.py
Python
apache-2.0
3,319
[ "VisIt" ]
0fae9d07b268003cc73813a6712a7d10141a4bb1e4a28b4fb7b4371c614ef7c8
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Deep learning via word2vec's "skip-gram and CBOW models", using either hierarchical softmax or negative sampling [1]_ [2]_. The train...
vvw/gensim
gensim/models/word2vec.py
Python
gpl-3.0
66,200
[ "VisIt" ]
c41e074070927a4de121356ffc2e8701d849f3a25411cae9c3fcc7d6fc007b66
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # import El n0=15 n1=15 output = False display = True wor...
mcopik/Elemental
examples/interface/BPComplexDense.py
Python
bsd-3-clause
2,569
[ "Gaussian" ]
6b28c9fcd2f537decb9d0deb51cbd7628fc31827d97d9c899300491876f72621
#!/usr/bin/env python # Copyright 2017-2021 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...
sunqm/pyscf
pyscf/pbc/cc/kccsd_uhf.py
Python
apache-2.0
59,554
[ "PySCF" ]
7b6e496c0a496783998630a4051d1ef0e670073481a2404aa53a7de2b1648c30
''' Description To adapt Brian T's regressions stats code to our new plotting interface, we revise his _NeStatsHelper funcion to deliver a Table string that we can write to a GUI object. ''' from __future__ import division from __future__ import print_function #created by Brian Trethewey # #neGrapher is primary interfa...
popgengui/negui
agestrucne/pgregressionstats.py
Python
agpl-3.0
11,240
[ "Brian" ]
12c5059f81f1a805f40d30e7149978699068b460968956c65cb3976e8ef93ac3
""" usage: scramble.py [egg_name] With no arguments, scrambles all eggs necessary according to the settings in universe_wsgi.ini. egg_name - Scramble only this egg (as defined in eggs.ini) or 'all' for all eggs (even those not required by your settings). """ import os, sys, logging root = logging.getLogg...
volpino/Yeps-EURAC
scripts/scramble.py
Python
mit
1,050
[ "Galaxy" ]
8af5e0a8df0427bbd38ecf3449ff3ed4c251f4592bc0a0eb920ac61f566de15a
# Copyright (c) 2008-2009 Participatory Culture Foundation # See LICENSE for details. from datetime import datetime, timedelta from django.core import mail from django.conf import settings from django.contrib.auth.models import User from channelguide.channels.models import Channel from channelguide.user_profile.mode...
kmshi/miroguide
channelguide/notes/tests.py
Python
agpl-3.0
14,380
[ "Brian" ]
43fd3d5c16b50b4d7d00e4b15055c92073a6ddcba09161f92a0463b7bec0efaf
""" This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Written (W) 2013 Heiko Strathmann """ from kameleon_mcmc.distribution.Gauss...
karlnapf/kameleon-mcmc
kameleon_mcmc/gp/scripts/circle_rect_hybrid_gaussian_ard.py
Python
bsd-2-clause
3,207
[ "Gaussian" ]
351c11575f48e262acfe34a0ae9845283f25a88ccf5752e4241f12f7da5f291a
from gpaw.utilities import unpack from ase.units import Hartree import cPickle import numpy as np from gpaw.mpi import world, rank, send_string, receive_string, broadcast_string from gpaw.utilities.blas import gemm from gpaw.utilities.timing import Timer from gpaw.utilities.lapack import inverse_general import copy imp...
robwarm/gpaw-symm
gpaw/transport/tools.py
Python
gpl-3.0
37,300
[ "ASE", "GPAW" ]
6ee265ad7b12f873ec5bb4b379a7303b68dae70337ee8c1d7b12bee40e325f9b
# # Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
pyzoo/test/zoo/orca/learn/jep/test_pytorch_estimator_for_save_load.py
Python
apache-2.0
4,255
[ "ORCA" ]
1ff1f86b3d4095a34d590c60e67de71aa8baee328b9aa954a45feaee52f82c85
# Copyright 1999-2000 by Jeffrey Chang. 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. # Patches by Mike Poidinger to support multiple databases. # Updated by Peter Cock in 2007...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/Blast/NCBIStandalone.py
Python
gpl-2.0
90,826
[ "BLAST", "Biopython" ]
2dcfbedda805ea22753f5e57052c964a26a032fad93a731d3ce61a726a1a9c12
#!/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...
sakshamsharma/kubernetes
cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py
Python
apache-2.0
32,928
[ "CDK" ]
a54a01d99ceeae8f70dbc163c92b11f048f1f7fc258ba9b4410711e19e161879
# # This program is free software you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation either version 3 of the License, or # (at your option) any later version. # # Written (C) 2012 Heiko Strathmann # from numpy import * from pylab i...
yorkerlin/shogun
examples/undocumented/python_modular/graphical/statistics_hsic.py
Python
gpl-3.0
6,117
[ "Gaussian" ]
dce09f55c434f7f03fbc66924140699b64dc122453727e3e35e4b0759ddcadcf
#!/usr/bin/env python # -*- Mode: Python; py-indent-offset: 4 -*- # vim: tabstop=4 shiftwidth=4 expandtab # # Copyright (C) 2010 Red Hat, Inc., John (J5) Palmieri <johnp@redhat.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License a...
Distrotech/pygobject
demos/gtk-demo/demos/combobox.py
Python
lgpl-2.1
12,076
[ "COLUMBUS" ]
aad498639762daeb5c13114f33ce8eab384ea2c10d5969eb62483ca69b032506
from os import path from colorsys import hsv_to_rgb, rgb_to_hsv from collections import OrderedDict from random import shuffle import numpy from pysces.PyscesModelMap import ModelMap from pysces import Scanner import pysces from matplotlib.pyplot import get_cmap from .. import modeltools from ..latextools import Late...
exe0cdc/PyscesToolbox
psctb/analyse/_ratechar.py
Python
bsd-3-clause
41,049
[ "PySCeS" ]
fa3c55ca935d9514055a8b62cecff11946d8f79dd31c542aa15dcfccce5fc9b6
""" test StoragElement """ import os import tempfile import mock import unittest import itertools from diraccfg import CFG from DIRAC import S_OK from DIRAC.Resources.Storage.StorageElement import StorageElementItem from DIRAC.Resources.Storage.StorageBase import StorageBase from DIRAC.ConfigurationSystem.Client.Co...
DIRACGrid/DIRAC
src/DIRAC/Resources/Storage/test/Test_StorageElement.py
Python
gpl-3.0
32,184
[ "DIRAC" ]
a954429f68b61684610aab253310565cef1d15d0bcf1d4607949892f2d462a98
# -*- coding: utf-8 -*- # # This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2006-2015, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Pub...
ghutchis/cclib
src/cclib/parser/daltonparser.py
Python
lgpl-2.1
47,748
[ "Dalton", "Gaussian", "cclib" ]
548d856f582363c2ba8397bd5f6308d6efc9be92c5c08dca6e303db16b9e5eb7
# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes) # pep8-disable:E128 """Linter that warns against files that aren't following frontend best practices. At the moment this checks for handlebars, less, and css files and complains if any attempts are made to add new...
Khan/khan-linter
contrib/frontend_best_practices_lint.py
Python
apache-2.0
25,800
[ "VisIt" ]
7cf3e92482212dfe590724d30a3c1d21528e8b79cfca6d574185d174fc667054
# sql/compiler.py # Copyright (C) 2005-2012 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Base SQL and DDL compiler implementations. Classes provided include: :class:`~sql...
SohKai/ChronoLogger
web/flask/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py
Python
mit
79,310
[ "VisIt" ]
9a53a7bb12b759843f6730d1a356855625f8225bdb9b2e22cc500af168f4c1c7
""" Testing the CTI Correction Algorithm ==================================== This script can be used to test the CTI correction algorithm performance. :requires: NumPy :requires: PyFITS :requires: matplotlib :version: 0.3 :author: Sami-Matias Niemi :contact: s.niemi@ucl.ac.uk """ import matplotlib matplotlib.rc('t...
sniemi/EuclidVisibleInstrument
analysis/testCTIcorrection.py
Python
bsd-2-clause
28,754
[ "Galaxy", "Gaussian" ]
73e25729dbd3de9c0b65244593cf394c81770fac74d4522c2806b55dc9ee496b
#!/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/web/serviceplayable.py
Python
gpl-2.0
5,379
[ "VisIt" ]
58b2127ec3db821aae3c20d46ce04ea644ba3cda8a196eb6c487142fe784abc6
# (C) British Crown Copyright 2010 - 2014, Met Office # # This file is part of Iris. # # Iris 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 option) any l...
Jozhogg/iris
lib/iris/tests/system_test.py
Python
lgpl-3.0
3,527
[ "NetCDF" ]
de35cdec596c11954e2360eeed958049b60bd69ad13279d25364875748943847
""" This migration script adds the request_event table and removes the state field in the request table """ from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.exc import * from migrate import * from migrate.changeset import * import datetime now = datetime.datetime.utcnow import sys, logging log =...
volpino/Yeps-EURAC
lib/galaxy/model/migrate/versions/0027_request_events.py
Python
mit
3,386
[ "Galaxy" ]
fdbcc446519700c62f916b7818304db4ddd8810809b8975fd1cbbcce0b6c2b91
# Copyright (c) 2003-2013 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # Copyright (c) 2009-2010 Arista Networks, Inc. # # 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 ...
HackFisher/depot_tools
third_party/pylint/checkers/base.py
Python
bsd-3-clause
54,520
[ "VisIt" ]
1d6ae847730414cffc429642b371d19a760af0ea20d5826b06182d9774dbc4df
# (c) 2015, Brian Coca <bcoca@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version....
bootswithdefer/ansible
v2/ansible/plugins/lookup/url.py
Python
gpl-3.0
1,545
[ "Brian" ]
37072a7781c1159e9dab917e1e4480e497c982cf327ed253ee8a40dde5c872ef
######################################################################## # $HeadURL$ # File : DIRACPilotDirector.py # Author : Ricardo Graciani ######################################################################## """ Dirac PilotDirector class, it uses DIRAC CE backends to submit and monitor pilots. It include...
sposs/DIRAC
WorkloadManagementSystem/private/DIRACPilotDirector.py
Python
gpl-3.0
13,504
[ "DIRAC" ]
ec9061551a2ca155f946deabb775244e96f838d1739d5a963d3b26ac759bb4d4
#!/usr/bin/env python # -*- coding: utf-8 -*- # freeseer - vga/presentation capture software # # Copyright (C) 2011, 2013 Free and Open Source Software Learning Centre # http://fosslc.org # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licens...
Freeseer/freeseer
src/freeseer/tests/framework/config/persist/__init__.py
Python
gpl-3.0
2,620
[ "VisIt" ]
ccb36ba990715e4eef9050d50a9c6360d1db55c6159361fbfc6dc760e59f174f
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2010 Prof. William H. Green (whgreen@mit.edu) and the # RMG Team (rmg_dev@mit.edu) # # Permission is hereby granted, free of c...
pierrelb/RMG-Py
rmgpy/data/solvation.py
Python
mit
39,130
[ "VisIt" ]
393324c4d67a5b6fa12b15b11c8e51bdc021ba379b9c01daa1eb59d0d20bf084
import numpy as np from numpy.lib.stride_tricks import as_strided from fft_correlator import FFTCorrelator from grid_spec import GridSpec class DirectPIV(object): """ Class for the initial Piv. The images are error checked and padded if needed. After initialization a GridSpec is set and a grid is crea...
jr7/pypiv
pypiv/piv/direct_piv.py
Python
bsd-3-clause
4,514
[ "Gaussian" ]
5a2099efdde778e41d57668c28272393be4bed20cea539d2068ebba92d52cf9a
from __future__ import print_function from __future__ import division from builtins import range from past.utils import old_div # the Scientific Python netCDF 3 interface # http://dirac.cnrs-orleans.fr/ScientificPython/ #from Scientific.IO.NetCDF import NetCDFFile as Dataset # the 'classic' version of the netCDF4 pytho...
kevinpetersavage/BOUT-dev
examples/orszag-tang/generate.py
Python
gpl-3.0
3,675
[ "DIRAC", "NetCDF" ]
02e13a1c177fd3cc8519dbe0b33c86752bdf50d8e204b23dad3a0cf340eff9ba
# # GA-Parser v1.1 # This program carves and parses Google Analytic vales (utma utmb, utmz) # from a file (unallocated, memory dump, pagefile, etc.) # and outputs them into a tsv form. # # To read more about it, visit my blog at http://az4n6.blogspot.com/ # # Copyright (C) 2014 Mari DeGrazia (arizona4n6@gmail.com) # #...
mantarayforensics/mantaray
Tools/Python/ga_parser.py
Python
gpl-3.0
41,010
[ "VisIt" ]
ac7db979c30d5b7892b562a5e350d3661354934f94c86792b5bd08768d3f9f7d
"""Support for package tracking sensors from 17track.net.""" import logging from datetime import timedelta import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( ATTR_ATTRIBUTION, ATTR_LOCATION, CONF_PASSWORD, CONF_SCAN_INTERVAL, CONF_USERNAME) f...
jnewland/home-assistant
homeassistant/components/seventeentrack/sensor.py
Python
apache-2.0
10,914
[ "VisIt" ]
a71dd8af7f48f77e7c4dea91934a1b0f44b2d4ab1639ae4a2c23c8747cce7e13
#!/usr/bin/env python # Copyright 2014-2018,2021 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 ...
sunqm/pyscf
pyscf/pbc/gto/basis/parse_cp2k.py
Python
apache-2.0
3,189
[ "CP2K", "PySCF" ]
e65d282fb1bf60b4ec82fc2dd09a99557ea1426c70c8a5c59ca42afd6eb46531
## Without order, everything goes to chaos ## Some applicatons that can be made much easier by pre-sorting import math ## INTERVALS PROBLEM ## Suppose that n closed intervals [a[i], b[i]] on the real line are given. ## Find the maximal k such that there exists a point covered by k intervals, ## i.e., the maximal numb...
bharcode/Coursera
python_algorithms/sorting/sort_applications.py
Python
gpl-2.0
9,440
[ "VisIt" ]
4a0513f3853ce9d0562766ba4fbcf4b7e996328c7a0a828a182869c591b57da9
# 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 RFdbInfiniummethylationHg18(RPackage): """Compiled HumanMethylation27 and HumanMethylation...
iulian787/spack
var/spack/repos/builtin/packages/r-fdb-infiniummethylation-hg18/package.py
Python
lgpl-2.1
1,117
[ "Bioconductor" ]
e53e32de0fca6aa374f9018d3c1b4e733d9302fe09bd96ec48b961678012e856
# Copyright (c) 2010 OpenStack Foundation # # 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 ...
openstack/swift
test/unit/common/middleware/test_staticweb.py
Python
apache-2.0
41,104
[ "VisIt" ]
5c0183dcc69bb7b1b0c5fcbc2a9cfabd66473b68a6b5ebd298edd9ea0842fa17
""" Testing for Gaussian Process module (sklearn.gaussian_process) """ # Author: Vincent Dubourg <vincent.dubourg@gmail.com> # Licence: BSD 3 clause from nose.tools import raises from nose.tools import assert_true import numpy as np from sklearn.gaussian_process import GaussianProcess from sklearn.gaussian_process ...
valexandersaulys/airbnb_kaggle_contest
venv/lib/python3.4/site-packages/sklearn/gaussian_process/tests/test_gaussian_process.py
Python
gpl-2.0
6,813
[ "Gaussian" ]
292232045670d8ed7f9502cf6f01ffee4c2a7cd26d2d31650593f82309b75d0c
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2014 Sławek Piotrowski <sentinel@atteo.org> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of ...
sigrokproject/libsigrokdecode
decoders/rfm12/pd.py
Python
gpl-3.0
18,375
[ "CRYSTAL" ]
ce4a9d8a02c39a20ab479038056b416344cdc31841ad092097b6941e512b3028
import numpy as np import logging from collections import namedtuple #from bfgs import lineSearch, BFGS from optimization_exceptions import LineSearchError from pele.optimize import Result __all__ = ["LBFGS"] _logger = logging.getLogger("pele.optimize") class LBFGS(object): """ minimize a function using th...
js850/pele
pele/optimize/_lbfgs_py.py
Python
gpl-3.0
21,527
[ "PyMOL" ]
9516779a76e5c83ec2385dc2719a4bd6f81fb119d5742b9a0910245a8cbe2879
import numpy as np def logsumexp(arr, axis=0): """Computes the sum of arr assuming arr is in the log domain. Returns log(sum(exp(arr))) while minimizing the possibility of over/underflow. """ arr = np.rollaxis(arr, axis) # Use the max to normalize, as with the log this is what accumulates #...
rendanim/HMM_Speech_Recognition
tools2.py
Python
gpl-3.0
1,326
[ "Gaussian" ]
aeb6928440d0df3748b4051a70438288ecb6d43a7faaac0703afbb8d5623fe0d
# -*- coding: utf-8 -*- from __future__ import division import os from collections import Counter import numpy as np from scipy import sparse from pygsp import utils from .fourier import FourierMixIn from .difference import DifferenceMixIn from ._io import IOMixIn from ._layout import LayoutMixIn class Graph(Four...
epfl-lts2/pygsp
pygsp/graphs/graph.py
Python
bsd-3-clause
33,936
[ "VisIt" ]
0fe2e54541059b29bec126a4f1af267f1461ebb7f79d96ad0b21b3c52f4b43f3
'''This script demonstrates how to build a variational autoencoder with Keras. Reference: "Auto-Encoding Variational Bayes" https://arxiv.org/abs/1312.6114 ''' import numpy as np import matplotlib.pyplot as plt from scipy.stats import norm from keras.layers import Input, Dense, Lambda, Layer, concatenate from keras.mo...
Fuchai/Philosophy-Machine
vae_mining/vae.py
Python
apache-2.0
5,617
[ "Gaussian" ]
38d9b7d099bd4b1b9e306b9b2c49762ad81cdf05241429636936c4b161c87c23
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
chirino/proton
tests/proton_tests/messenger.py
Python
apache-2.0
6,448
[ "Galaxy" ]
2d88ac23dce00a72f55b57d9e9cc69717e9deb54573a84a16e108d70d042bb63
#!/usr/bin/env python """ Script to run the generation of phoSim instance catalogs """ from __future__ import with_statement, absolute_import, division, print_function import time import os import argparse import pandas as pd from sqlalchemy import create_engine from lsst.utils import getPackageDir from lsst.sims.catUt...
LSSTDESC/Twinkles
bin/generatePhosimInput.py
Python
mit
6,329
[ "VisIt" ]
759a1a2b4378017131df9bf2015047640eaa497630def147d0509db7db69f23a
#!/nfs/farm/g/lsst/u1/software/redhat6-x86_64-64bit-gcc44/anaconda/2.3.0/bin/python ## runPhoSim.py - Run phoSim (one visit) import os,sys import subprocess,shlex print '\n\n=====================================================================\n Entering runPhoSim.py\n================================================...
LSSTDESC/Twinkles
workflows/TW-phoSim-r3/runPhoSim.py
Python
mit
7,723
[ "VisIt" ]
3a8ed1dd5be67cf2d541ecb9ef6a70345913bd9ab13ccf2390172f90ee87ed3c
# Copyright 2000 by Bertrand Frottier . All rights reserved. # Revisions 2005-2006 copyright Michiel de Hoon # Revisions 2006-2009 copyright Peter Cock # 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....
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/Blast/NCBIXML.py
Python
gpl-2.0
24,483
[ "BLAST", "Biopython" ]
679e8a53711004d0e58ed46a986b15f827ec19cdf7a6d4673ee93b07dbcbd30d
from simtk.openmm import app import simtk.openmm as mm from simtk import unit as u integrator_type = "langevin2fs_barostat12" #integrator_type = "langevin2fs" #integrator_type = "langevin1fs" #integrator_type = "langevin0.5fs" n_steps = 500000000 output_frequency = 500 dcd_frequency = 5000 friction = 1.0 / u.picosec...
kyleabeauchamp/DensityTest
src/production_water.py
Python
gpl-2.0
1,884
[ "OpenMM" ]
d167e8cf206a9dc873d5bbf568f77bc3ee2335b7b5eb4cc2c8956e109820d585
import os import orca import pandas as pd from activitysim import activitysim as asim from activitysim.cdap import cdap """ CDAP stands for Coordinated Daily Activity Pattern, which is a choice of high-level activity pattern for each person, in a coordinated way with other members of a person's household. Because P...
bhargavasana/activitysim
activitysim/defaults/models/cdap.py
Python
agpl-3.0
2,056
[ "ORCA" ]
db454916a3ec8ef7e89a70bce736dad2843d080c64e00baffda92bb6d794a54b
''' Implementation of Gaussian Mixture Models. Author : Aleyna Kara(@karalleyna) ''' import superimport import jax.numpy as jnp from jax import vmap, value_and_grad, jit from jax.lax import scan from jax.random import PRNGKey, uniform, split, permutation from jax.nn import softmax import distrax from distrax._src.ut...
probml/pyprobml
scripts/mix_gauss_lib.py
Python
mit
15,633
[ "Gaussian" ]
abf803323380e234efdb55b0c18ecf3913c64313e6082298fceb5cd63c1453ed
# -*- coding: utf-8 -*- """ ========================================== Brainstorm Elekta phantom dataset tutorial ========================================== Here we compute the evoked from raw for the Brainstorm Elekta phantom tutorial dataset. For comparison, see [1]_ and: http://neuroimage.usc.edu/brainstorm/Tu...
mne-tools/mne-tools.github.io
0.16/_downloads/plot_brainstorm_phantom_elekta.py
Python
bsd-3-clause
6,071
[ "Mayavi" ]
efa27c4664cfbabdfb045036e8d164abbbb8c3b23f546b83efc7c55d6a6f866a
# encoding: utf-8 """nanotube.py - Window for setting up Graphene sheets and ribbons. """ import gtk from ase.gui.widgets import pack, cancel_apply_ok, oops from ase.gui.setupwindow import SetupWindow from ase.gui.pybutton import PyButton from ase.structure import graphene_nanoribbon import ase import numpy as np in...
slabanja/ase
ase/gui/graphene.py
Python
gpl-2.0
8,902
[ "ASE" ]
c6337de2338bc929da7331488ded07b5283d9dff9e4038b6363d3981e48dea55
import os srcdir = os.path.dirname(os.path.abspath(__file__)) import sys sys.path.append(os.path.join(srcdir, '..', '..', 'python', 'lib')) import copy import numpy as np from giss import giutil import icebin from icebin import ibgrid from giss.ncutil import copy_nc import netCDF4 import argparse #from modele.constant...
citibeth/twoway
landice2/update_topo.py
Python
gpl-3.0
3,677
[ "NetCDF" ]
6522b94645a30d2d639df92d93bbf39f55b0a9c32d59c7d911f3258fdd45cd64
#!/usr/bin/env """ BS_Winds_NARR_6hr.py Compare NARR Winds with NCEP V2 (with Mooring Winds) for 6hr intervals. Uses 3hr NARR and 6hr NCEP Using Anaconda packaged Python """ #System Stack import datetime #Science Stack import numpy as np from scipy import stats from netCDF4 import Dataset # User Stack import...
shaunwbell/FOCI_Analysis
ReanalysisRetreival_orig/BS_Winds/BS_Winds_NARR_hr.py
Python
mit
24,994
[ "NetCDF" ]
4569c938372743afa91a882f0f51391f9cc5dfc5ba0e33bda9cc6fe896026091
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
MJJoyce/climate
examples/simple_model_to_model_bias.py
Python
apache-2.0
5,505
[ "NetCDF" ]
db7f988b55ff47a0019edbe9908d9c888c192d9daa9400867dc1d49fe2cd0e2e
# coding=utf-8 # Copyright 2019 The SEED 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 agre...
google-research/seed_rl
agents/policy_gradient/modules/continuous_control_agent.py
Python
apache-2.0
16,457
[ "Gaussian" ]
e15272a448d20e67f9d278cfe318424e2791ec6c77cb8327691e2505dbaf1024
from brian.stdunits import * from brian.units import * F = 1 N_SUBPOP = 2 INTERCO_RATE = 0 INTERCO_STRENGTH = 0 PARAMETERS = { 'Common': {'simu_dt' : 0.05*msecond, 'simu_length' : 3000*msecond, 'resample_dt' : 0.5*msecond, 'N_subpop' : N_SUBPOP, 'N_mitral' : N_SUBPOP*100*F, 'inte...
neuro-lyon/multiglom-model
src/paramsets/std_beta.py
Python
mit
1,687
[ "Brian" ]
0b18935355d98fd9861b61ff817626d4bc83b15701fafea31acd6a451546606a
import os import pytest import abipy.abilab as abilab import abiflows.fireworks.tasks.abinit_common import abiflows.fireworks.tasks.abinit_tasks as abinit_tasks from abipy.electrons.gsr import GsrFile from abipy.flowtk.utils import Directory from fireworks.core.rocket_launcher import rapidfire from abiflows.fireworks....
davidwaroquiers/abiflows
abiflows/fireworks/integration_tests/itest_check_abiflow.py
Python
gpl-2.0
3,224
[ "ABINIT" ]
36d10e17efc23b5390b59daf15b9ae482bc76cb03a4557a64cd3fdb23c28973c
############################################################################### # Copyright (c) 2007-2018, National Research Foundation (Square Kilometre Array) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the ...
ludwigschwardt/scikits.fitting
scikits/fitting/utils.py
Python
bsd-3-clause
15,230
[ "Gaussian" ]
66d8c54002586874aa878501c4c1171280efcfcf458981fb9fa7d127492d350b
""" Unit tests for masquerade. """ import json import pickle from datetime import datetime from importlib import import_module from unittest.mock import patch import pytest import ddt from operator import itemgetter # lint-amnesty, pylint: disable=wrong-import-order from django.conf import settings from django.test i...
edx/edx-platform
lms/djangoapps/courseware/tests/test_masquerade.py
Python
agpl-3.0
25,701
[ "VisIt" ]
51188aa43e75640a10a311628a19e668746617bec89f5cb60503334c2a3a0e74
import sys import os import glob import inspect import pylab as pl from numpy import * from scipy import optimize import pickle import time import copy cmd_folder = os.path.realpath(os.path.abspath(os.path.split(inspect.getfile(inspect.currentframe()))[0]) + "/templates") if cmd_folder not in sys.path: sys.path.in...
fedhere/SESNCfAlib
vaccaleibundgut.py
Python
mit
4,704
[ "Gaussian" ]
12b14804cfcfca5dbb99858a37a48a8b6d499eef48f94492f0082b5585cc8696
import argparse from director.consoleapp import ConsoleApp from director import cameraview from director import vtkAll as vtk def parseChannelArgument(defaultChannel='CAMERA_LEFT'): parser = argparse.ArgumentParser() parser.add_argument('-c', '--channel', type=str, help='image channel', default=defaultChanne...
RobotLocomotion/director
src/python/tests/testImageView.py
Python
bsd-3-clause
1,098
[ "VTK" ]
8af9faa6c9cc148b7327c30584a4a0b1285c0f21cd0b0f23fccaee2917886f65
import os import theano import theano.tensor as T import numpy from experimentation.experiments import run_theano_experiments, run_experiments_sklearn from models.regression.deep_models.mlp import MLP from models.regression.deep_models.dbn import DBN from datasets import DatasetManager from models.regression.sklearn_...
gdl-civestav-localization/cinvestav_location_fingerprinting
projects/cinvestav_fingerprinting/accuracy_experiment.py
Python
gpl-3.0
7,298
[ "Gaussian" ]
3274e93347ca3e81b892d7b7f1417d65a429acc60d4c7c35d998608038ae2814
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkSplineFilter(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk.v...
chrisidefix/devide
modules/vtk_basic/vtkSplineFilter.py
Python
bsd-3-clause
485
[ "VTK" ]
68cfb17f491741b7676ce43ec3b79cc5639095f695fe5beef457996f822c62f5
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import unittest import os from pymatgen.phasediagram.entries import PDEntryIO, PDEntry, \ GrandPotPDEntry, TransformedPDEntry from pymatgen.core.periodic_table impo...
xhqu1981/pymatgen
pymatgen/phasediagram/tests/test_entries.py
Python
mit
4,533
[ "pymatgen" ]
99ed04cdb8dd3004e519aba333baa85aaacd86058f527e45efb35e5a461bf388
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Configuration file for template documentation.""" import os import sys try: import sphinx_rtd_theme except ImportError: sphinx_rtd_theme = None try: from sphinxcontrib import spelling except ImportError as e: print(e) spelling = None # If extensi...
kallimachos/template
doc/conf.py
Python
gpl-3.0
7,434
[ "Brian" ]
3c0bb312345a25ff21f9160d5f4d383a7ff3f00f26f44e139a296da830025587
""" ElasticDB is a base class used to connect an Elasticsearch database and manages queries. """ from DIRAC import gLogger from DIRAC.Core.Utilities.ElasticSearchDB import ElasticSearchDB from DIRAC.ConfigurationSystem.Client.Utilities import getElasticDBParameters __RCSID__ = "$Id$" class ElasticDB( ElasticSearchD...
hgiemza/DIRAC
Core/Base/ElasticDB.py
Python
gpl-3.0
3,107
[ "DIRAC" ]
8f4410cfc970f2dc0a60a91abc8854e9e1534f02f5a652243bc13a4ed7620a91
from django.conf import settings from django.core.management.base import BaseCommand, CommandError from optparse import make_option import os import sys try: from django.contrib.staticfiles.handlers import StaticFilesHandler USE_STATICFILES = 'django.contrib.staticfiles' in settings.INSTALLED_APPS except Impor...
waseem18/oh-mainline
vendor/packages/django-extensions/django_extensions/management/commands/runserver_plus.py
Python
agpl-3.0
4,501
[ "VisIt" ]
a0ee537e5f874dfb7cd7596a74f07e6e1d814713bb823658b402718b8117c7c4
# -*- coding: cp1252 -*- """ ######################################################################### Author: Shalin Shah, Vijay Dhameliya, Madhav Khakhar Project: DNA Cloud Graduate Mentor: Dixita Limbachya Mentor: Prof. Manish K Gupta Date: 5 November 2013 Website: www.guptalab.org/dnacloud This module contains code...
guptalab/dnacloud
source/MainFrame.py
Python
mit
57,098
[ "VisIt" ]
385a6b6f9958a2a936a80fb270fa5addcca36e4040853c6aa175a94a2bf79bbc
''' Created on Nov. 07, 2020 A module to read ERA5 data; this includes converting GRIB files to NetCDF-4, as well as functions to load the converted and aggregated data. @author: Andre R. Erler, GPL v3 ''' # external imports import os.path as osp import pandas as pd import numpy as np import netCDF4 as...
aerler/GeoPy
src/datasets/ERA5.py
Python
gpl-3.0
20,429
[ "NetCDF" ]
1b3ce7cadde96b79178bdefa5baa83bbfc6edb5a90cf808de20bd0c814509cb0
# -*- coding: utf-8 -*- # YAFF is yet another force-field code. # Copyright (C) 2011 Toon Verstraelen <Toon.Verstraelen@UGent.be>, # Louis Vanduyfhuys <Louis.Vanduyfhuys@UGent.be>, Center for Molecular Modeling # (CMM), Ghent University, Ghent, Belgium; all rights reserved unless otherwise # stated. # # This file is pa...
molmod/yaff
yaff/conversion/test/test_gaussian.py
Python
gpl-3.0
5,408
[ "Gaussian" ]
d31fe1992090ab5461b3d69a7a45d958b109984d9f6f434c34a1267f3777e22e
from django import template import markdown from let_me_app import models from django.utils.translation import gettext from django.utils import timezone register = template.Library() @register.filter def markdownify(text): # safe_mode governs how the function handles raw HTML return markdown.markdown(text, ...
oleg-chubin/let_me_play
let_me_app/templatetags/let_me_app.py
Python
apache-2.0
1,165
[ "VisIt" ]
22dfb174cdb861cbc5d4ddf32c15364e1d92b7288ecc41857417e17781080f75
#!/usr/bin/env python # ============================================================================================= # MODULE DOCSTRING # ============================================================================================= """ Test YAML functions. """ # ====================================================...
pgrinaway/yank
Yank/tests/test_yaml.py
Python
lgpl-3.0
90,008
[ "Gromacs", "MDTraj", "OpenMM" ]
fc9da92d5d97e536a788d9e54dbd9d295aa4e8ee6a2017b13a6f0a5d6280bffc
# This file is generated by /galaxy/home/mgehrin/test/tmp/numexpr-2.4.3/setup.py # It contains system_info results at the time of building this package. __all__ = ["get_info","show"] def get_info(name): g = globals() return g.get(name, g.get(name + "_info", {})) def show(): for name,info_dict in globals(...
bxlab/HiFive_Paper
Scripts/HiCLib/numexpr-2.4.3/build/src.linux-x86_64-2.7/numexpr/__config__.py
Python
bsd-3-clause
697
[ "Galaxy" ]
812d5e639263ad5230126f541a7847d2ac450cd43da41d47136797fcdce728be
import pytest from .addons import using from .utils import * import math import numpy as np import qcelemental as qcel import psi4 from psi4.driver import qcdb pytestmark = pytest.mark.quick def hide_test_xtpl_fn_fn_error(): psi4.geometry('He') with pytest.raises(psi4.UpgradeHelper) as e: psi4.en...
ashutoshvt/psi4
tests/pytests/test_misc.py
Python
lgpl-3.0
3,652
[ "Psi4" ]
41b003cba25b983fad005d9d457a9d1b9f6e6877414f525c4b0b48a05717d412
import ast import logging from sqlalchemy import and_, not_, or_ from sqlalchemy.sql.operators import ColumnOperators as operator COMPARE_OPERATORS = { ast.Eq: operator.__eq__, ast.NotEq: operator.__ne__, ast.Lt: operator.__lt__, ast.LtE: operator.__le__, ast.Gt: operator.__gt__, ast.GtE: oper...
pegasus-isi/pegasus
packages/pegasus-python/src/Pegasus/service/_query.py
Python
apache-2.0
6,134
[ "VisIt" ]
c246d4ec9cae31685cc27b609e6e9a9c459b86c36ec44199ee8db0d2d85b77e8
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================= ## @file ostap/fitting/transform_pdf.py # PDF for transformed variables # @author Vanya BELYAEV Ivan.Belyaeve@itep.ru # @date 2020-05-11 # ===========================================...
OstapHEP/ostap
ostap/fitting/transform_pdf.py
Python
bsd-3-clause
5,716
[ "Gaussian" ]
08d1e63ca94b1239ea66593f0cc5d13fc691f621dadd06604a4738927317bd6f
#!/usr/bin/env python """ """ from __future__ import division, absolute_import import logging import numpy as np import scipy as sp import scipy.interpolate as spinterp import time import datetime as dt import matplotlib.pyplot as plt try: from mayavi import mlab except ImportError: mlab = None except (Value...
jswoboda/GeoDataPython
GeoData/plottingmayavi.py
Python
mit
6,180
[ "Mayavi" ]
1ecec12e1eebe2d6ebd1457613dcdb86564c2108acbe94275a88cadb68740368
""" Collection of utilities for locating certs, proxy, CAs """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import os import DIRAC from DIRAC import gConfig g_SecurityConfPath = "/DIRAC/Security" def getProxyLocation(): """Get t...
ic-hep/DIRAC
src/DIRAC/Core/Security/Locations.py
Python
gpl-3.0
6,026
[ "DIRAC" ]
0a3a502e238b26a2b8b6ddaba30a4cfba111a311a8633767914a27f3aa03efb6
#!/usr/bin/env python import numpy as np import sys, subprocess import os """ This is a python program which creates a box of acn for use in lammps simulations. """ if len(sys.argv) != 4: print("Usage python build_acn.py numacns numco2s type") exit() numacns=int(sys.argv[1]) numco2s=int(sys.argv[2]) type=int...
piskuliche/Python-Code-Collection
system_builds/acn/cxl/build_acn_cxl.py
Python
gpl-3.0
4,654
[ "LAMMPS" ]
6e084a72e570d3fef660dccfe15bf4825936ed5b22380d374342afd4c37937ad
# -*- coding: utf-8 -*- # # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # import warnings from collections.abc import Iterable from functools import wraps import ctypes import numpy as np from scipy._lib.doccer import (extend_notes_in_docstring, ...
rgommers/scipy
scipy/stats/_continuous_distns.py
Python
bsd-3-clause
280,760
[ "CRYSTAL", "DIRAC", "Gaussian" ]
369c968aa68b38dbc2ea9c15d6c48f542b442637ade3d97f11b1398f0c88b9cd
"""scandir, a better directory iterator and faster os.walk(), now in the Python 3.5 stdlib scandir() is a generator version of os.listdir() that returns an iterator over files in a directory, and also exposes the extra information most OSes provide while iterating files in a directory (such as type and stat informatio...
benhoyt/scandir
scandir.py
Python
bsd-3-clause
24,828
[ "VisIt" ]
3d52067007c851dedff29a37f28e192fdb0406cf742ade8533c39bc1701dbf01
"""K-means clustering""" # Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Thomas Rueckstiess <ruecksti@in.tum.de> # James Bergstra <james.bergstra@umontreal.ca> # Jan Schlueter <scikit-learn@jan-schlueter.de> # Nelle Varoquaux # Peter Prettenhofer <peter.prettenh...
abhishekkrthakur/scikit-learn
sklearn/cluster/k_means_.py
Python
bsd-3-clause
54,798
[ "Gaussian" ]
0d20162d9c61ca1630814ba3b178130628c6bb8d8bfb88481f21591a42f06925
''' Created on Aug 3, 2011 @author: sean ''' import _ast from ..visitors import Visitor class Replacer(Visitor): ''' Visitor to replace nodes. ''' def __init__(self, old, new): self.old = old self.new = new def visitDefault(self, node): for field in node._fields: ...
diana-hep/femtocode
lang/femtocode/thirdparty/meta/asttools/mutators/replace_mutator.py
Python
apache-2.0
2,046
[ "VisIt" ]
a43d27460faee020e73b52bd72063422bc5e851cc1c0732ca0b9665f2d0e4c48
""" A simple VTK widget for PyQt v4, the Qt v4 bindings for Python. See http://www.trolltech.com for Qt documentation, and http://www.riverbankcomputing.co.uk for PyQt. This class is based on the vtkGenericRenderWindowInteractor and is therefore fairly powerful. It should also play nicely with the vtk3DWidget code. ...
liulion/mayavi
tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py
Python
bsd-3-clause
19,019
[ "CRYSTAL", "VTK" ]
6a06837374a88618e107c4ef3850bfa3dcd4e3fa80a158b75ecb0e591b389ca7
# Copyright (C) 2009-2014 CEA/DEN, EDF R&D # # 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 library ...
FedoraScientific/salome-hexablock
doc/pyplots/test_make_cyl_grid.py
Python
lgpl-2.1
1,958
[ "VTK" ]
54fa41155232989d63eea9719f9b7294d978ad5f491aa70805cdb4ad41fbcec0
# -*- 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-asset
tests/unit/gapic/asset_v1p2beta1/test_asset_service.py
Python
apache-2.0
86,657
[ "Octopus" ]
fc4ba40f3cbe3325bee34dfb1e41ded5bd92e1bf6ee6fe37067fc51b1c5a43a9
# coding=utf-8 # from types import UnicodeType from django.db import IntegrityError from django.test import TestCase, TransactionTestCase from django.utils.timezone import now from freezegun import freeze_time from feedback.models import get_model, Semester, Person, Veranstaltung, Einstellung, Mailvorlage from feedb...
TheMangalex/pyfeedback
src/feedback/tests/test_models.py
Python
agpl-3.0
26,577
[ "Brian" ]
53033f3c03ecc039cd657ba04ad2819904fa8426484231730ee11074e8b58cf3
# -*- 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-dialogflow
tests/unit/gapic/dialogflow_v2beta1/test_agents.py
Python
apache-2.0
117,955
[ "Octopus" ]
b616ea875ea31649fedc2a395555b8dfdbe66f35a1bcba138e55b4277ed9d7a2