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
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # This file contains code for reading metadata from the build system into # data structures. r"""Read build frontend fi...
cstipkovic/spidermonkey-research
python/mozbuild/mozbuild/frontend/reader.py
Python
mpl-2.0
53,577
[ "VisIt" ]
6ff21f755fae8ada32348f28a8799f112632492e8152cc7929ca70bd91f072bc
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2010 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Software F...
andrebellafronte/stoq
plugins/books/bookssearch.py
Python
gpl-2.0
4,597
[ "VisIt" ]
ee0d42f2799c06696176b4aa1f9f7772c457ab18063544245bbcdea5a9dad907
type_bodies = { 'Human': 'Human', 'Muffalo': 'QuadrupedAnimalWithHooves', 'Gazelle': 'QuadrupedAnimalWithHooves', 'Iguana': 'QuadrupedAnimalWithClawsTailAndJowl', 'Rhinoceros': 'QuadrupedAnimalWithHoovesAndHorn', 'Dromedary': 'QuadrupedAnimalWithHoovesAndHump', 'Chicken': 'Bird', 'Pig': ...
afit/rimworld-save-migrator
versions/b18tables.py
Python
mit
14,784
[ "Elk" ]
337bda573c143d8ea314a4c05e35f01c36dda3c5a3531c1811d4555006687a39
import king_phisher.plugins as plugin_opts import king_phisher.server.database.manager as db_manager import king_phisher.server.database.models as db_models import king_phisher.server.plugins as plugins import king_phisher.server.signals as signals import king_phisher.utilities as utilities try: import pushbullet exc...
securestate/king-phisher-plugins
server/pushbullet_notifications.py
Python
bsd-3-clause
3,533
[ "VisIt" ]
18feb5ea07b219d3b604dbc0b9ea7b555ccd240935e1f48f1fe05cc3519e5f04
# -*- coding: utf-8 -*- from copy import deepcopy import numpy as np from crystals import Crystal from skued import powdersim def test_powdersim_return_shape(): """Test that the return shape of powdersim() is as expected""" q = np.linspace(2, 10, 200) pattern = powdersim(Crystal.from_database("C"), q) ...
LaurentRDC/scikit-ued
skued/simulation/tests/test_powdersim.py
Python
gpl-3.0
992
[ "CRYSTAL" ]
3dbe720ca9be957f8d1d0768dca75c52a8254b5e639c8511f11b64f8799f5d93
""" Gaussian Mixture Models. This implementation corresponds to frequentist (non-Bayesian) formulation of Gaussian Mixture Models. """ # Author: Ron Weiss <ronweiss@gmail.com> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Bertrand Thirion <bertrand.thirion@inria.fr> import warnings import numpy as...
costypetrisor/scikit-learn
sklearn/mixture/gmm.py
Python
bsd-3-clause
30,996
[ "Gaussian" ]
0bfb302854614ae2dd6465fa9aef51c8883de0ecd93106e5b15425046c269d19
# ---------------------------------------------------------------------------- # Copyright 2015-2016 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
Jokeren/neon
tests/test_recurrent.py
Python
apache-2.0
11,602
[ "Gaussian" ]
5334f7e4d8cdae33c34c7c6846c745785eae730382dfedbe963562d06247ef7c
data = """<?xml version="1.0" encoding="utf-8"?> <!-- Created with PySCeS CBM (0.7.0) on Thu, 20 Feb 2014 14:43:49 by timo --> <sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:fbc="http://www.sbml.org/sbml/level3/version1/fbc/version1" xmlns:html="http://www.w3.org/1999/xhtml" level="3" version="1" fbc...
SystemsBioinformatics/vonda
vonda/models/Ecoli_Carlson2003_sbml3.py
Python
gpl-3.0
56,465
[ "PySCeS" ]
443e0c047fbdacbe221c50f67d90ea28e9edb34cea69186f1ab9e8615135d9be
""" Test the API for Gyms """ from app.tests.api.personalised.gym_gym_visit_resource.gym_visit_common \ import GymVisitAPICommonCase class TestGymVisitResourceHttpVerbs(GymVisitAPICommonCase): """ Test the API methods for the Gym """ def test_not_logged_in(self): """ Test that when user ...
Gimpneek/exclusive-raid-gym-tracker
app/tests/api/personalised/gym_gym_visit_resource/test_http_verbs.py
Python
gpl-3.0
1,640
[ "VisIt" ]
60061520a067cf823ab83bcde9082a2063c42caa19f2035d422a2429b96b9280
# -*- coding: utf-8 -*- from __future__ import absolute_import from spark.node import Neuron class Accumulator(Neuron): ''' TODO. ''' def transfer(self, potential): ''' TODO. ''' return potential def __repr__(self): return "Accumulator()"
CtrlC-Root/cse5526
spark/rbf/accumulator.py
Python
mit
306
[ "NEURON" ]
1037c4eb394514f56617e6fbe65bcb4ffc3baa81d119560307eec7cf8e0a9892
import math import numpy as np from numpy import linalg from pymol.cgo import BEGIN, COLOR, TRIANGLES, VERTEX, NORMAL, END from pymol import cmd def vertex(a1, a2, a3, u, v, M, r0): vrtx = M.dot(np.array([ a1 * math.cos(u) * math.cos(v), a2 * math.cos(u) * math.sin(v), a3 * ma...
vlasenkov/pymol-iellipsoid
iellipsoid.py
Python
mit
3,747
[ "PyMOL" ]
0dbdde549139fdf0735617f93c8863893990d78c6792cc753f65a5d844069f55
#!/usr/bin/env python # -*- coding=utf-8 -*- import sys import os import numpy as np from numpy import array as npa import matplotlib as mpl import matplotlib.pyplot as plt import pymatgen as mg from pymatgen.io.vasp.outputs import Vasprun, Procar, BSVasprun from pymatgen.symmetry.bandstructure import HighSymmK...
neelravi/vasp
bandplotting-orbital-resolved-pymatgen.py
Python
gpl-3.0
1,885
[ "VASP", "pymatgen" ]
b9f40727bea1579833da80fb6197eec026b35eeec5dbfa8af63be302b4ee73eb
#from distutils.core import setup #from distutils.extension import Extension #from distutils.command.sdist import sdist as _sdist from setuptools import setup from setuptools import Extension from setuptools.command.sdist import sdist as _sdist from fmrc import util #borrowed from online code: http://stackoverflow.co...
sgreenstein/fmrc
setup.py
Python
mit
1,681
[ "pysam" ]
b63f988379ea40f0236ae398b11eb78d92ffb0d73ac64954e477e888aa727dad
# -*- coding: utf-8 -*- """ Integration test cases for ACMEv2 as implemented by boulder-wfe2. """ import subprocess import requests import datetime import time import os import json import re import OpenSSL from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat...
bmw/boulder
test/v2_integration.py
Python
mpl-2.0
67,383
[ "BLAST" ]
95e8d57974bb19b51f32cd427a9e6c753a2942a19d69fb0f91a8481375cd6c52
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Views tests for the OSF.''' from __future__ import absolute_import import unittest import json import datetime as dt import mock import httplib as http import math import time from nose.tools import * # noqa PEP8 asserts from tests.test_features import requires_search...
petermalcolm/osf.io
tests/test_views.py
Python
apache-2.0
181,333
[ "Brian" ]
9773c1bb947162ee8610426319a27b2cfdee80bca35652be87e9ea7e63eaa3aa
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utility classes for string operations. """ from __future__ import unicode_literals import re from fractions import Fraction __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2011...
matk86/pymatgen
pymatgen/util/string.py
Python
mit
4,957
[ "pymatgen" ]
741ee09085c309df94a42d45ce99ba193ed9d9c1bc7f2a4a1034c0f104947aed
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- """ multiple clustering algorithms """ import numpy as np import matplotlib.pyplot as plt from .HelperFunctions import get_colors from mpl_toolkits.mplot3d import Axes3D from random import shuffle class Cluster: def __init__(self, points): # Attributes ...
hotator/python-clustering
cluster/base/Cluster.py
Python
gpl-2.0
3,165
[ "exciting" ]
74d334e6509799c8bbfc1481c4946e25dec0e0ef498d78c395ed22dc4a4b0877
#!/usr/bin/env python import vtk def main(): value = 2.0 colors = vtk.vtkNamedColors() implicitFunction = vtk.vtkSuperquadric() implicitFunction.SetPhiRoundness(2.5) implicitFunction.SetThetaRoundness(.5) # Sample the function. sample = vtk.vtkSampleFunction() sample.SetSampl...
lorensen/VTKExamples
src/Python/ImplicitFunctions/SampleFunction.py
Python
apache-2.0
2,027
[ "VTK" ]
b6e31cadf92e06166b9442c370871dbf93c7a6d99cd9ae25b0628ba062573954
"""Useful fitting functions.""" from scipy.optimize import curve_fit from scipy.signal import medfilt import numpy as np import traceback import warnings from collections.abc import Iterable from .utils import mad, HAS_MPL __all__ = [ "contiguous_regions", "ref_std", "ref_mad", "linear_fun", "lin...
matteobachetti/srt-single-dish-tools
srttools/fit.py
Python
bsd-3-clause
19,985
[ "Gaussian" ]
4daa215e5dae3a583cf9f014ac442ac1ca35c933556ef1477b64ec7cfd6b009a
# Copyright 2015 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 applicable law or a...
panmari/tensorflow
tensorflow/python/ops/control_flow_grad.py
Python
apache-2.0
7,949
[ "VisIt" ]
213f3a1793a4c85c72e86ab01d250b3201155fa493ea883e52971a85b67f63de
import sys, logging, os, time, re,json,hashlib import xml.dom.minidom SPLUNK_HOME = os.environ.get("SPLUNK_HOME") RESPONSE_HANDLER_INSTANCE = None SPLUNK_PORT = 8089 STANZA = None SESSION_TOKEN = None REGEX_PATTERN = None #dynamically load in any eggs in /etc/apps/tesla_ta/bin EGG_DIR = SPLUNK_HOME + "/etc/apps/tesl...
damiendallimore/SplunkModularInputsPythonFramework
implementations/tesla/bin/tesla.py
Python
apache-2.0
18,139
[ "VisIt" ]
a5b184244d0ff4a1a6b8e2958c82a712d151f884de191ee4089d54215bab5d84
''' ResourceStatusDB: This module provides definition of the DB tables, and methods to access them. Written using sqlalchemy declarative_base For extending the ResourceStatusDB tables: 1) In the extended module, call: from DIRAC.ResourceStatusSystem.DB.ResourceStatusDB import rmsBase, TABLESLIS...
Andrew-McNab-UK/DIRAC
ResourceStatusSystem/DB/ResourceStatusDB.py
Python
gpl-3.0
23,417
[ "DIRAC" ]
e12fc84da539fb5ea452d86df8f587bcb0cc649964f0cd0572fd4052f150c005
# Copyright 2020 DeepMind Technologies Limited. 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 ...
deepmind/dm-haiku
examples/vae.py
Python
apache-2.0
6,886
[ "Gaussian" ]
04d385b381d8393c3872400c991a697c483593da5d5b454f0029bdc31ccb48cb
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2018 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
amjames/psi4
psi4/driver/qcdb/vecutil.py
Python
lgpl-3.0
11,468
[ "Psi4" ]
e1b4fc95e4236dc3c6202d63ff8242167c7b323965c99a46fbb34dac61b91d6a
# # ColorHandPose3DNetwork - Network for estimating 3D Hand Pose from a single RGB Image # Copyright (C) 2017 Christian Zimmermann # # 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 ...
dedoogong/asrada
HandPose_Detector/BinaryDbReader.py
Python
apache-2.0
22,576
[ "Gaussian" ]
58082ed0a31619217dac6eba097fcec6a8b6f8abfa38710b0e1bd4f4ca9c29d2
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 """ Example: Neural Transport ========================= This example illustrates how to use a trained AutoBNAFNormal autoguide to transform a posterior to a Gaussian-like one. The transform will be used to get better mixing rate for N...
pyro-ppl/numpyro
examples/neutra.py
Python
apache-2.0
6,722
[ "Gaussian" ]
9c99d80de19b086330a038f5bc28aebdf28436764dc44a11f0115c67e1346f13
""" Handler for CAs + CRLs bundles """ import tarfile import os import io from DIRAC.Core.DISET.RequestHandler import RequestHandler from DIRAC import gLogger, S_OK, S_ERROR, gConfig from DIRAC.Core.Utilities.ThreadScheduler import gThreadScheduler from DIRAC.Core.Utilities import File, List from DIRAC.Core.Security i...
DIRACGrid/DIRAC
src/DIRAC/FrameworkSystem/Service/BundleDeliveryHandler.py
Python
gpl-3.0
6,375
[ "DIRAC" ]
cf12afc6f3476faad0e612d1cca7609e7ab0852af9ed055b7be9b15e7c4e877f
# (C) 2016, Markus Wildi, wildi.markus@bluewin.ch # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distr...
jerryjiahaha/rts2
scripts/u_point/transform/u_libnova.py
Python
lgpl-3.0
8,916
[ "VisIt" ]
40c700d3a07515f4dd8599098ef9ca1fdfc6268f1aa64399283a8862ee4e778c
#!/usr/bin/python """ This script asks cdash to give it a summary of all of the failing tests on the nightly expected section. It presents the tests ranked by the number of failing machines. From this view you can more easily see what is in the greatest need of fixing. """ import sys import time import datetime import...
ashray/VTK-EVM
Utilities/Maintenance/vtk_fail_summary.py
Python
bsd-3-clause
2,767
[ "VTK" ]
72241e64e00fefd13ceaba86fa07af8bffe6dea0045fceedad8572fd63b54688
#\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\# '''Application handler for Bender applications in LHCb.''' import os import tempfile import pprint import shutil from os.path import split, join from GangaCore.GPIDev.Schema.Schema import FileItem, SimpleItem import GangaCore.Utility.loggi...
ganga-devs/ganga
ganga/GangaLHCb/Lib/Applications/Bender.py
Python
gpl-3.0
8,804
[ "DIRAC" ]
ff84bb75c41e534288f40972612d0197a636d3e0ebdd1f056e3e7b68d0de679e
# Version: 0.15 """ The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, and pypy * [![Latest Version] (https://pypip.in/version/versioneer/badge.svg?style=flat) ](ht...
chen0031/rekall
rekall-core/versioneer.py
Python
gpl-2.0
62,487
[ "Brian" ]
827f92a2c1571b1bb2d14ba5cbfc2c05497636f9ea0fc1102416cac35da913f0
from django.db import models from .general_models import ScenarioSpecificBase from django.forms.models import model_to_dict class Feed(ScenarioSpecificBase): me = models.FloatField() fme = models.FloatField() erdp = models.FloatField() dup = models.FloatField() adf = models.FloatField() price ...
BenLatham/FLOSS-Agricultural-Simulation
simulation/models/diet_models.py
Python
mit
2,117
[ "ADF" ]
fe74b5218afbc69c7916a2488ef69d4373cf9242ad3c7e6c42bf8158014bcb4a
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Gary Burton # Copyright (C) 2010 Jakim Friant # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
Forage/Gramps
gramps/plugins/tool/relcalc.py
Python
gpl-2.0
10,241
[ "Brian" ]
9e3d49ea7536dddc95c9a4de0479b03733cb204653a2c9fd4fb5a51f46862f66
# ============================================================================ # # Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
kurtraschke/camelot
camelot/view/plugins/dateeditorplugin.py
Python
gpl-2.0
1,490
[ "VisIt" ]
9bd6d219f639060155aa743d14e18d5bf7574be6ddf406ddf331664999310cc1
""" TESTS is a dict with all you tests. Keys for this will be categories' names. Each test is dict with "input" -- input data for user function "answer" -- your right answer "explanation" -- not necessary key, it's using for additional info in animation. """ WORDS = {'act', 'age', 'air', 'arm', 'art', 'ask...
Bryukh-Checkio-Tasks/checkio-mission-crossword-solver
verification/tests.py
Python
mit
18,045
[ "VisIt" ]
4872706271c7f24231de294db343e1a0526d4ee0d9eaf03fed3d1aab13f60c8d
import director, random from constants import * OUTSIDE_CHANNEL = "left"; INSIDE_CHANNEL = "right"; switch_sound = director.load_sound("scenes/p2/audio/switch.ogg") ghost_story_sound = director.load_sound("scenes/p2/audio/ghost_story.ogg") def reset(): director.set_on(WELCOME_SIGN_RELAY) director.set_on(CHAIR_SPOT...
smdvdsn/hauntedpi
scenes/p2/scene_chair.py
Python
mit
2,794
[ "BLAST" ]
9e9f569fc5ca9799ffd55c7df8cee28f940822fa179bdad33e964bac20c9cd22
''' Tests for pyleoclim.core.ui.PSD Naming rules: 1. class: Test{filename}{Class}{method} with appropriate camel case 2. function: test_{method}_t{test_id} Notes on how to test: 0. Make sure [pytest](https://docs.pytest.org) has been installed: `pip install pytest` 1. execute `pytest {directory_path}` in terminal to ...
LinkedEarth/Pyleoclim_util
pyleoclim/tests/test_ui_PSD.py
Python
gpl-3.0
2,249
[ "Gaussian" ]
02eabcbb6dcd39cae290178659bd43558ca3f7b85e29b7b9c4a48028268f5a9a
"""Additional dataset classes.""" from __future__ import (division, print_function, ) from collections import OrderedDict from scipy.stats import multivariate_normal import numpy as np import numpy.random as npr from fuel import config from fuel.datasets import H5PYDataset, IndexableDataset from fuel.transformers.def...
IshmaelBelghazi/ALI
ali/datasets.py
Python
mit
5,781
[ "Gaussian" ]
1c2fa22ad5bbef6d190fc130092d6546faba74875dff9dedcc9ad37a2085b252
from django.db import models from edc_constants.choices import HIV_RESULT class Subject(models.Model): subject_identifier = models.CharField(max_length=25, unique=True) class Meta: app_label = 'hiv_status' class Visit(models.Model): subject = models.ForeignKey(Subject) visit_datetime = ...
botswana-harvard/hiv-status
hiv_status/models.py
Python
gpl-2.0
2,277
[ "VisIt" ]
27ee6de4d9ee4fcdd61489b91be878d8da2e23b8047b16ff58c5722c57260ca0
#!/usr/bin/python """Test of navigation to same page links.""" from macaroon.playback import * import utils sequence = MacroSequence() sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("<Control>Home")) sequence.append(utils.AssertPresentationAction( "1. Top of file", ["BRAILLE LI...
pvagner/orca
test/keystrokes/firefox/line_nav_follow_same_page_link.py
Python
lgpl-2.1
1,993
[ "ORCA" ]
b7aa3fea4ec2126b14496995a898e9d895be79b4904138ae02774b6aa72f0a0a
# -*- coding: utf-8 -*- # # inhibitory_network.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the Lice...
HBPNeurorobotics/nest-simulator
examples/nest/gap_junction/inhibitory_network.py
Python
gpl-2.0
4,472
[ "NEURON" ]
1428ff1e1e83755c4def5ba1aac0d456e17a11630bbc4ea60d1eec719d9cc1b2
""" Copyright (c) 2016 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import logging import numpy as np from nexustiles.nexustiles import NexusTileService # from time import time from webservice.NexusHandler import nexus_handler, SparkHandler, DEFAULT_PARAMETERS_SPEC from webs...
dataplumber/nexus
analysis/webservice/algorithms_spark/TimeAvgMapSpark.py
Python
apache-2.0
12,355
[ "NetCDF" ]
8783f1aead194206aff4c6a38a38844bdfb96b51998d705cfb247b5763ebaf94
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage 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...
brianmay/karaage
karaage/people/urls/__init__.py
Python
gpl-3.0
2,144
[ "Brian" ]
486d61bc448fae492eae5b29b6e71376b6daad9b10ddca56b2b7232a0f532733
#!/usr/bin/env python # -*- coding: utf-8 -*- import pycuda.driver as cuda import pycuda.autoinit import pycuda.gpuarray as gpuarray from pycuda.compiler import SourceModule from scipy.sparse import * import numpy import random import sys INPUT_VECTOR_SIZE = 2 # inputs of one neuron SYNAPSES_VECTOR_SIZE = 2 # sy...
4martin/snn-simulator-example
snn-simulator.py
Python
mit
21,162
[ "NEURON" ]
14b0e72d1c89f029ffc93340c1212dc8c145f556244502ba4f7c11ed923710c7
# -*- coding: utf-8 -*- from shop.models.cartmodel import Cart from django.contrib.auth.models import AnonymousUser def get_cart_from_database(request): database_cart = Cart.objects.filter(user=request.user) if database_cart: database_cart = database_cart[0] else: database_cart = None r...
thenewguy/django-shop
shop/util/cart.py
Python
bsd-3-clause
3,146
[ "VisIt" ]
6e92981a91c9f83c0dcb28ae2c493fe62d00585d71bcb7f3b9c9429e334db4ea
#!/usr/bin/env python import os import sys import subprocess as sp import argparse if sys.version_info.major == 3: PY3 = True from urllib.request import urlretrieve else: PY3 = True from urllib import urlretrieve usage = """ The easy way to test recipes is by using `circleci build`. However this doe...
joachimwolff/bioconda-recipes
bootstrap.py
Python
mit
4,242
[ "Bioconda" ]
cce566f72f95064aa918ea4705f1a0a6a70adaa942773dfdc9ecc0280d58523b
# Copyright (C) 2015 Alejandro Molina-Sanchez, Henrique Pereira Coutada Miranda # All rights reserved. # # This file is part of yambopy # import xml.etree.ElementTree as ET from qepy.auxiliary import * from numpy import array, zeros import re RytoeV = 13.605698066 class ProjwfcXML(): """ Class to read da...
henriquemiranda/yambopy
qepy/projwfcxml.py
Python
bsd-3-clause
7,487
[ "Quantum ESPRESSO" ]
6eb482d2b94cca4fe5a530fe07a96185a85782877d640bc80285f1cde4f1a40f
# Copyright 2001 by Katharine Lindner. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """ This module is deprecated; its functions are now available from Bio.InterPro. This m...
dbmi-pitt/DIKB-Micropublication
scripts/mp-scripts/Bio/WWW/InterPro.py
Python
apache-2.0
651
[ "Biopython" ]
4c38e99b5e4ec2b8cf0510452d8c76a1b4b9e364bf5f771fbe530a80f1a312b7
#!/usr/bin/python # -*- coding: utf-8 -*- from argparse import Namespace import datetime, openpyxl as xl, os import code import operator, collections import unicodecsv as csv import re # Django Imports from django.core.management.base import BaseCommand, CommandError from django.db import models from django.utils imp...
I-TECH-UW/mwachx
utils/management/commands/reports.py
Python
apache-2.0
63,592
[ "VisIt" ]
d7d85a4d6805fe8d4e4db8af2adb48b05f33f5d084d7b00f5879c06c1f9362c4
# -*- coding: utf-8 -*- """ Acceptance tests for Video. """ import os from mock import patch from nose.plugins.attrib import attr from unittest import skipIf, skip from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from ..helpers import UniqueCourseTest, is_yo...
devs1991/test_edx_docmode
common/test/acceptance/tests/video/test_video_module.py
Python
agpl-3.0
50,731
[ "VisIt" ]
9bc56e48470ff3300ff48e2a0b26828f755ff43fac52d9878f952728bed4da4d
## # This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild # # Copyright:: Copyright 2012-2015 Uni.Lu/LCSB, NTUA # Authors:: Josh Berryman <the.real.josh.berryman@gmail.com>, Fotis Georgatos <fotis@cern.ch>, Kenneth Hoste # License:: MIT/GPL # $Id$ # # This work implements a part of the HPCB...
ULHPC/modules
easybuild/easybuild-easyblocks/easybuild/easyblocks/e/espresso.py
Python
mit
2,912
[ "ESPResSo" ]
ef851ca6d331b4920b86a5822ceea216cd5509ecf984a7d6307a063ebd1d88bf
# # Copyright 2014, 2020-2021 Lars Pastewka (U. Freiburg) # 2014 James Kermode (Warwick U.) # # 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 P...
libAtoms/matscipy
tests/test_full_to_Voigt.py
Python
lgpl-2.1
3,278
[ "Matscipy" ]
7bd95c442a9e6e7c996bdbf18dd5676abbb7809270cdafc00903bda8248db427
# Copyright 2001 Brad Chapman. # Revisions copyright 2009-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. """Definitions for interacting with BLAST related a...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/Blast/Applications.py
Python
gpl-2.0
56,839
[ "BLAST", "Biopython" ]
3c94e4ef9b5752660f00d10e5c48fca5652a5839bb3699fbc6af641d13fec023
# This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2006-2014, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Public version 2.1 or later. ...
Clyde-fare/cclib
src/cclib/parser/gaussianparser.py
Python
lgpl-2.1
62,712
[ "Gaussian", "cclib" ]
d1151e501edad8ed2a60e117f03b11dcb4f8a2d3a2d73a98e7094c546bead158
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2011-2015 Slack # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
Slack06/yadg
descgen/visitor/base.py
Python
mit
1,695
[ "VisIt" ]
dd97e04896eb51a337244df177afbfdb09d97ba1d418aba3c3458948db934e0a
#!/usr/bin/env python # # Copyright (c) 2013 Martin Abente Lahaye. - tch@sugarlabs.org # # 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 o...
tchx84/twitter-gobject
tests/test_twr_oauth.py
Python
lgpl-2.1
2,627
[ "VisIt" ]
2fc04d455cd71016cada41a1c963c1038f73b5417e2f6d1e12d7ddaf8b37cdef
#!/usr/bin/env python """ Commands related to syncing copytext from Google Docs. """ import app_config import logging from fabric.api import task from oauth import get_document, get_credentials, get_doc logging.basicConfig(format=app_config.LOG_FORMAT) logger = logging.getLogger(__name__) logger.setLevel(app_config...
nprapps/debates
fabfile/text.py
Python
mit
1,148
[ "VisIt" ]
ba0ba4ebc8b1f81806ff1142131b985ead2401753de186a0e380a2a672b0d5ff
# -*- coding: utf-8 -*- """ The :mod:`sklearn.naive_bayes` module implements Naive Bayes algorithms. These are supervised learning methods based on applying Bayes' theorem with strong (naive) feature independence assumptions. """ # Author: Vincent Michel <vincent.michel@inria.fr> # Minor fixes by Fabian Pedre...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/sklearn/naive_bayes.py
Python
agpl-3.0
14,400
[ "Gaussian" ]
52767f0638096530d82819ca1b3c8a3f5dc426fa336decc3ec9742dbedbffc8f
import gc import logging import traceback from collections import defaultdict from datetime import datetime, timedelta from multiprocessing import Process, Queue import numpy as np import pandas as pd import xarray as xr from typhon.geodesy import great_circle_distance from typhon.geographical import GeoIndex from ty...
atmtools/typhon
typhon/collocations/collocator.py
Python
mit
60,801
[ "DIRAC", "Dalton" ]
2335e4f07f2dc7420c411dc8853be877a06397c0f062d77385fbf4010f6f8025
#!/usr/bin/python3 #This program produces temperature vs density, and pressure vs temperature phase diagrams #from data stored in *best.dat (or *best_tensor.dat) data files generated by figs/new-melting.cpp #and found in deft/papers/fuzzy-fmt/data/phase-diagram (edit later - currently files in newdata/phase-diagram a...
droundy/deft
papers/fuzzy-fmt/plot-phasediagram.py
Python
gpl-2.0
15,275
[ "CRYSTAL" ]
5d046e8659fb2f0f707c39ea4bfc6dd01cdedf95645233897b2878682198f594
#!/usr/bin/env python __author__ = 'Mike McCann,Duane Edgington,Reiko Michisaki' __copyright__ = '2013' __license__ = 'GPL v3' __contact__ = 'duane at mbari.org' __doc__ = ''' cron loader for CANON wave gliders slocum, OA and TEX in September 2013 Mike McCann; Modified by Duane Edgington and Reiko Michisaki...
duane-edgington/stoqs
stoqs/loaders/CANON/puck_loadsep2013.py
Python
gpl-3.0
2,446
[ "NetCDF" ]
e74e8dacb0294ee32dbd964aba797a61bb4086ef4a76d493de434ee9d67d6898
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that ...
hradec/gaffer
python/GafferSceneTest/SceneTestCase.py
Python
bsd-3-clause
14,718
[ "VisIt" ]
9e08638f210db588ae5e41baff10a6f5be2b84499aa7431f8f23be43060e951c
#! compare MemJK and DiskJK import psi4 import numpy as np import random psi4.set_output_file("output.dat", False) mol = psi4.geometry(""" O H 1 1.00 H 1 1.00 2 103.1 """) psi4.set_num_threads(6) memory = 50000 primary = psi4.core.BasisSet.build(mol, "ORBITAL", "cc-pVDZ") aux = psi4.core.BasisSet.build(mol, "ORBITA...
amjames/psi4
tests/python/memdfjk/input.py
Python
lgpl-3.0
1,603
[ "Psi4" ]
79e65da11b4b0ecfe94bdb479cf2e1480a445c3a725d155c8c13e7dbe5eb5d6a
#!/usr/bin/env python #=============================================================================# # # # NAME: do_RMsynth_1D.py # # ...
crpurcell/RM-tools
RMtools_1D/do_RMsynth_1D.py
Python
mit
21,366
[ "Gaussian" ]
fe2cb15dd6caf83f4c66bb678766bee34d7ee450be32bbd2fde08bfd71cdd7b6
# # AtHomePowerlineServer - networked server for various controllers # Copyright © 2019 Dave Hocker # # 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, version 3 of the License. # # See the LICENS...
dhocker/athomepowerlineserver
drivers/device_driver_manager.py
Python
gpl-3.0
7,405
[ "xTB" ]
2e55cf28b9cff8f90e817e1afa67a9efaffc9b134ff301664066516cdfb08f05
# -*- coding: utf-8 -*- # FAO Translators: # First of all thank you for your interest in translating this game, # I will be grateful if you could share it with the community - # if possible please send it back to my email, and I'll add it to the next version. # The translation does not have to be exact as long as it ...
imiolek-ireneusz/pysiogame
i18n/custom/fi.py
Python
gpl-3.0
12,144
[ "Elk", "Jaguar", "MOOSE" ]
33edd52863eeb1c7511ca5917b98f5a0b637d48fa484d9b9e3d8751f019d02ea
import os from time import sleep from django.core.files import File from lettuce import world, step, after from mock import mock_open, patch from questionnaire.features.pages.questionnaires import QuestionnairePage from questionnaire.features.pages.uploads import UploadDocumentPage, DeleteDocumentPage from questionnair...
eJRF/ejrf
questionnaire/features/upload_steps.py
Python
bsd-3-clause
4,524
[ "VisIt" ]
50fd0865727b34dba779fea69a7319162c5f658fff3ab6dba6491f829448f5d7
#!/usr/bin/env python """ Script to update pilot version in CS """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import DIRAC from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script @Script() def main(): Script.register...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/scripts/dirac_admin_update_pilot.py
Python
gpl-3.0
2,636
[ "DIRAC" ]
bb489b95da890a596069d04fc31b750f49ab583f28a77773f7ff36f06d9a5146
# -*- coding:utf-8 -*- # Copyright (c) 2015, Galaxy Authors. All Rights Reserved # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Author: wangtaize@baidu.com # Date: 2015-03-30 import logging from common import shell from galaxy import sdk LOG = logging.getLogger...
fxsjy/galaxy
console/backend/src/galaxy/wrapper.py
Python
bsd-3-clause
3,231
[ "Galaxy" ]
696cbf9386eea94346fc55f662bd5441e288b87bc744496ad8d04d8deb414a6f
# coding: utf-8 from __future__ import unicode_literals, division import json from monty.json import MontyEncoder, MontyDecoder """ Created on Dec 6, 2012 """ import os import shutil from unittest import TestCase import unittest from pkg_resources import parse_version import pymatgen from custodian.qchem.handler...
alberthxf/custodian
custodian/qchem/tests/test_handlers.py
Python
mit
35,404
[ "pymatgen" ]
31004221fec859387c4da13664e9bcdf16a4ce8094203cb9667bf34f6bdeb996
#!/usr/bin/python #Audio Tools, a module and set of tools for manipulating audio data #Copyright (C) 2007-2012 Brian Langenberger #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...
Excito/audiotools
src/huffman.py
Python
gpl-2.0
7,440
[ "Brian" ]
28e4dd289c986813a3a147fb2591abf93abcc56e1686aa3a28a67645ab2a9ecc
# Author: Prabhu Ramachandran <prabhu_r at users dot sf dot net> # Copyright (c) 2006, Enthought, Inc. # License: BSD Style. # Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.poly_data_normals import PolyDataNormals from mayavi.core.pipeline_inf...
dmsurti/mayavi
mayavi/filters/warp_scalar.py
Python
bsd-3-clause
1,273
[ "Mayavi" ]
05da72f2e57930b3b1601acf6485d58159e3d8751f1f612f2eb000f764e7f0cd
"""Reads the RCV1-v2 dataset for Multi-label Classification Important: Train and test sets are _switched_, since the original split leaves the sides unbalanced. Visit: http://www.ai.mit.edu/projects/jmlr/papers/volume5/lewis04a/lyrl2004_rcv1v2_README.htm""" # noqa import os import gzip import collections import anna...
jpbottaro/anna
anna/data/dataset/rcv1.py
Python
mit
5,033
[ "VisIt" ]
f47f2dbb2f70a69f13f8fcb3860e60b5eebdba85a18e7f51578ab08a37c15879
from __future__ import (absolute_import, division, print_function) # pylint: disable=no-init,invalid-name,too-few-public-methods,unused-import from mantid.kernel import * from mantid.simpleapi import * from mantid.api import * from mantid.geometry import * import os class PoldiCompound(object): """Small helper ...
ScreamingUdder/mantid
Framework/PythonInterface/plugins/algorithms/PoldiCreatePeaksFromFile.py
Python
gpl-3.0
8,381
[ "CRYSTAL" ]
c241b862f4ceef9515afd0ba8fa9259dd2ef3a0127185e94a8cbec455e7e0f4c
#!/usr/bin/python # -*- coding: utf-8 -*- import sys from collections import OrderedDict from gkeys.action_map import Action_Map, Available_Actions __version__ = '0.3' __license__ = 'GPLv2' if sys.version_info[0] >= 3: py_input = input _unicode = str else: py_input = raw_input _unicode = unicode ...
gentoo/gentoo-keys
gkeys/gkeys/__init__.py
Python
gpl-2.0
1,017
[ "Brian" ]
9c30bd39a2593dc5d5d6706be2bbe56894b6bd1d53fc6c356abf5b50540baf5c
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
viz4biz/PyDataNYC2015
enaml/vtk_canvas.py
Python
apache-2.0
2,430
[ "VTK" ]
c998fe959591398dc24a93ae7fca24331ffc852f94e4369c2072a2a42bd5cb82
#! /usr/bin/env python3 # -*- 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 requi...
googleapis/gapic-generator-python
tests/integration/goldens/redis/scripts/fixup_redis_v1_keywords.py
Python
apache-2.0
6,396
[ "VisIt" ]
f811e72e1894296dd9b9e9c6ddf4d8d09eb24be8fc4e16fb4c41ac7cacfd91f2
#!/usr/bin/env python ############################################################################## # # Usage example for the procedure PPXF, which # implements the Penalized Pixel-Fitting (pPXF) method by # Cappellari M., & Emsellem E., 2004, PASP, 116, 138. # The example also shows how to include a library of templa...
zpace/SparsePak-SFH
ppxf_kinematics_example_sdss.py
Python
mit
8,349
[ "Galaxy", "Gaussian" ]
7072d4b7b26f651920ec558004b811e257901a3098bc23ac32472bb8587b242e
from chainkey.util import print_error import httplib, urllib import socket import threading import hashlib import json from urlparse import urlparse, parse_qs try: import PyQt4 except Exception: sys.exit("Error: Could not import PyQt4 on Linux systems, you may try 'sudo apt-get install python-qt4'") from PyQt...
Kefkius/encompass
plugins/labels.py
Python
gpl-3.0
9,203
[ "VisIt" ]
985cd2d9e9a9f39e1fcb880c680bdde15fbc912de9d02638eb411cb12c792916
""" RKS via SGM (squared gradient minimization) """ import numpy as np from frankenstein.sgscf import rks, sgrhf """ Methods for output """ def update_sghf(mf): pass class SGRKS(rks.RKS): # methods for output print_info = sgrhf.print_info # methods for SCF update_sghf = update_sghf get_g...
hongzhouye/frankenstein
sgscf/sgrks.py
Python
bsd-3-clause
1,750
[ "PyMOL" ]
8b69430a6a8aeef66da1163b20f1c85e2883a9071a33719ac0eed887c529dbc3
import sys file1=sys.argv[1] file2=sys.argv[2] file3=sys.argv[3] def file_len_fasta(fname): with open(fname) as f: for i, l in enumerate(f): pass return (i + 1)/2 from Bio import SeqIO from Bio.SeqIO.FastaIO import FastaWriter records_r = SeqIO.parse(file2, "fasta") records_f = SeqIO.p...
jooolia/phylo_temporal_jericho
sequence_processing/concatenate_R1_and_R2_for_translated_non_merging_primers.py
Python
mit
5,052
[ "Biopython" ]
93989c77af869caa86a98fec5f865dacd443c44f1f034f5bb9448ab27e9f5079
from ..utils import type_from_ast, is_valid_literal_value from ..error import GraphQLError from ..type.definition import is_composite_type, is_input_type, is_leaf_type, GraphQLNonNull from ..language import ast from ..language.visitor import Visitor, visit from ..language.printer import print_ast class ValidationRule...
woodb/graphql-py
graphql/core/validation/rules.py
Python
mit
21,570
[ "VisIt" ]
53bea2f2f3f052c3a8afa4c34fe6e8ad278d33059fc5f1297d13d5408d383edb
#!/usr/bin/env python # -*- coding: utf-8 -*- import vtk def main(): colors = vtk.vtkNamedColors() points = vtk.vtkPoints() points.InsertNextPoint(0, 0, 0) vertex = vtk.vtkVertex() vertex.GetPointIds().SetId(0, 0) vertices = vtk.vtkCellArray() vertices.InsertNextCell(vertex) polyd...
lorensen/VTKExamples
src/Python/GeometricObjects/Vertex.py
Python
apache-2.0
1,179
[ "VTK" ]
ec4ad03c7ee49bc060d8dae4d47f1fdff420c8c2aa6de5e7b9d020a310079d6d
#!/usr/bin/env python ############################################################################################## # # # regrid_emissions_N96e.py # # # Requirements: # Iris 1.10, time, cf_units, numpy # # # This Python script has been written by N.L. Abraham as part of the UKCA Tutorials: # http://www.ukca.ac.u...
acsis-project/emissions
emissions/python/timeseries_1960-2020/regrid_HCHO_emissions_n96e_greg.py
Python
gpl-3.0
19,014
[ "NetCDF" ]
81d6e534051cfcc1d019a3c0900e5391a37f9a81b35e5110d54cbf574e33a77c
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/r-affycontam/package.py
Python
lgpl-2.1
1,838
[ "Bioconductor" ]
b70dabd3f1a5202396ed9075d376caba73f48bd6c6adf288e7001659c349e631
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit # function to model and create data: Two-Gaussian def func(x, a0, b0, c0, a1, b1, c1): return a0 * np.exp(-(x - b0)**2 / (2 * c0**2)) \ + a1 * np.exp(-(x - b1)**2 / (2 * c1**2)) # clean data x = n...
casep/Molido
fitting-two-gaussians.py
Python
gpl-2.0
947
[ "Gaussian" ]
5035bba5b8014e3c977369c97fd6cfab5862332cf284ed4fcca5b24fac724663
from __future__ import annotations import inspect import json import logging import os import pathlib from xia2.Handlers.Streams import banner logger = logging.getLogger("xia2.Schema.Interfaces.Scaler") class Scaler: """An interface to present scaling functionality in a similar way to the integrater interf...
xia2/xia2
src/xia2/Schema/Interfaces/Scaler.py
Python
bsd-3-clause
13,708
[ "CRYSTAL" ]
945f82418b4e804707d962adc206153c48a01d44ec159905c482194a6a559e78
# # Handle the special case of the first scenario # self.notebook.switchScenario(0,scenarioType="Powder") # # # tab = self.notebook.mainTab tab.settings['Program'] = 'castep' tab.settings['Output file name'] = 'phonon.castep' tab.settings['Excel file name'] = 'application_note_br_permittivity.xlsx' tab.settings['Script...
JohnKendrick/PDielec
Examples/Castep/MgO/application_note_br_permittivity.py
Python
mit
8,612
[ "CASTEP" ]
eab1705bc45bed66699ae78b4c2190c9135f2ccb59a16743ae31b61f393331cf
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # sssadmin - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of ...
heromod/migrid
mig/cgi-bin/sssadmin.py
Python
gpl-2.0
1,142
[ "Brian" ]
ca145dd893a6e4f0c9a3b15f9787e1954e36f116fe126d41fa43b7324cd8f49d
# coding: utf-8 import io import struct from .. import common from .. import vmd def write(ios, motion): """ """ assert(isinstance(ios, io.IOBase)) assert(isinstance(motion, vmd.Motion)) writer=common.BinaryWriter(ios) # 30 bytes writer.write_bytes(b"Vocaloid Motion Data 0002", 30) # 2...
GRGSIBERIA/mmd-transporter
mmd-transporter/pymeshio/vmd/writer.py
Python
gpl-2.0
1,015
[ "VMD" ]
259d2fdb4fb57f30ee3419a54fb74de886ad724002537568d9e0490b3677a849
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
modules/tensor_mechanics/doc/tests/yf.py
Python
lgpl-2.1
4,579
[ "MOOSE", "VTK" ]
831739af17ea65b5c5eaf99e07ec2f0d25cf6f6ef4372777327604267d04434a
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
lgarren/spack
var/spack/repos/builtin/packages/r-summarizedexperiment/package.py
Python
lgpl-2.1
2,232
[ "Bioconductor" ]
669b9ca4534699b1d86bbd14bbec9c20b1efb81660180ea181410ef855ce2706
from PIL import Image, ImageFilter import scipy from scipy import ndimage import numpy from skimage import filter import numpy as np import matplotlib.pyplot as plt from scipy import ndimage import gdalnumeric from skimage.io import imread from skimage.segmentation import quickshift, slic, felzenszwalb from skimage.fil...
geobricks/Playground
playground/clustering/image_processing_landsat_example/threshold_detection.py
Python
gpl-2.0
7,725
[ "Gaussian" ]
44274212033e157c3f23a9ee1af490a6e7b7b8ffc0b5f7a825e3bf3b02a8ae5a
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 - 2013 Daniel Reis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free S...
hugosdsantos/project-service
project_issue_task/__openerp__.py
Python
agpl-3.0
2,012
[ "VisIt" ]
490298e55440db8dad0c6b76c5291170dd5aded5c683e238e7e64def0630f8e7
# Copyright (C) 2010-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
hmenke/espresso
testsuite/python/analyze_distribution.py
Python
gpl-3.0
6,990
[ "ESPResSo" ]
aff717b1dc2da7738807ca9e1721f94ddf29e4e2d8065f4953a4f0b69f0e6514
#!/usr/bin/env python # # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistri...
ashutoshvt/psi4
psi4/share/psi4/fsapt/copy_pymol.py
Python
lgpl-3.0
1,338
[ "Psi4", "PyMOL" ]
427a8e2665a29bdea65ef4bf6cfc3ba59289545c65ec5f6f1b14e6da274117be
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Created on Nov 10, 2012 @author: shyue """ from __future__ import division, unicode_literals from pymatgen.util.testing import PymatgenTest __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2011, ...
matk86/pymatgen
pymatgen/core/tests/test_composition.py
Python
mit
20,378
[ "pymatgen" ]
12695ce21e6663a81f05589e33c11d5a7c63f3e3cbbf2d230dfc9f5ef77ee86c
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
e-gob/plataforma-kioscos-autoatencion
scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/modules/network/avi/avi_stringgroup.py
Python
bsd-3-clause
4,045
[ "VisIt" ]
0e1b0db9cd05bfccca73c6b2eae76f2f8a233df7dc048561f8b5119ac328cde3
# # Copyright (C) 2009, 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 requi...
mguzdial3/MineCode
python-codec/examples/mines-sarsa-example/sample_mines_environment.py
Python
apache-2.0
7,414
[ "Brian" ]
78be8f7c6935577125118e3a51d7873b626f227e90b19802b1436b2168115b41
# -*- coding: utf-8 -*- import sys from math import pi, log import numpy as np from numpy.linalg import eigh from scipy.special import gamma from scipy.linalg import solve_banded import ase.units as units from ase.utils import devnull, prnt from ase.data import atomic_numbers, atomic_names, chemical_symbols from gpa...
robwarm/gpaw-symm
gpaw/atom/aeatom.py
Python
gpl-3.0
26,539
[ "ASE", "DIRAC", "GPAW", "Gaussian" ]
a1a25c1ab4839aef558a099f07516fc4d8d9907124c3791e6874f7b6cb5164ba