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 |
|---|---|---|---|---|---|---|---|
"""
Trains a CNN on fake and real galaxy images using TensorFlow.
Adapted from https://github.com/ageron/handson-ml
"""
import numpy as np
import os
from datetime import datetime
from glob import glob
import tensorflow as tf
def get_indir(nersc=False):
'''Returns path to dr5_testtrain directory'''
if nersc:... | legacysurvey/obiwan | py/obiwan/dplearn/cnn.py | Python | bsd-3-clause | 8,038 | [
"Galaxy"
] | 458512b878c916ee38724d6c17065a90896471416446a828b3ebeb936d3e9151 |
#!/usr/bin/env python3
""" Computer-based immigration office for Kanadia """
__author__ = 'Susan Sim, Sasa Milic'
__email__ = "ses@drsusansim.org, milic@cs.toronto.edu"
__copyright__ = "2014 Susan Sim"
__license__ = "MIT License"
__status__ = "Prototype"
# imports one per line
import re
import datetime
import json... | zavidovici/inf1340_2014_asst2_sample_solution | papers.py | Python | mit | 8,773 | [
"VisIt",
"exciting"
] | 401870b6338911b3e7406e5495ad72ad72baa07b67d4029f227ff69eb32d481d |
# -*- encoding: utf-8 -*-
"""
flask.ext.espresso
------------------
:copyright: (c) 2013 by Morgan Delahaye-Prat.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from __future__ import unicode_literals
import flask_espresso.coffeescript
import slimit
import e... | morgan-del/flask-espresso | flask_espresso/espresso.py | Python | bsd-2-clause | 3,342 | [
"ESPResSo"
] | e49fb007572de3fc303c1f24983f8bfde52e1d8eec04e4bb8f2f1edc1ab61915 |
import glob
import logging
import os
import sys
import traceback
from urllib import pathname2url, unquote
import urlparse
import signal
import time
from PyQt5 import uic
from PyQt5.QtCore import QDir
from PyQt5.QtCore import Qt, pyqtSignal, QStringListModel, QSettings, QPoint, QCoreApplication, pyqtSlot, QUrl, \
Q... | Captain-Coder/tribler | TriblerGUI/tribler_window.py | Python | lgpl-3.0 | 43,205 | [
"VisIt"
] | 83b7c13519cb6b211dde2ef79f6282f840504d1fdcc87d0ed1bbfd321cfdcba5 |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-admin-get-job-pilot-output
# Author : Stuart Paterson
########################################################################
"""
Retrieve the output of the pilot that executed a given job
""... | fstagni/DIRAC | Interfaces/scripts/dirac-admin-get-job-pilot-output.py | Python | gpl-3.0 | 1,425 | [
"DIRAC"
] | e5a795f69b43785280c48852d6efdd465e5895c3f54e1bb192c69347c66eb99f |
# coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | google-research/google-research | smu/query_sqlite.py | Python | apache-2.0 | 17,566 | [
"RDKit"
] | 4cf1cd014aea796920df185e6a2c223cab90964cd8823812560dc6dedf72131c |
# Copyright (c) 2014 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this list
# of conditions and the following disclaimer.... | qiuzhong/crosswalk-test-suite | tools/atip/atip/web/web.py | Python | bsd-3-clause | 31,944 | [
"VisIt"
] | 06936f93045f56944fbf1b655344a28a509f0c4fc8894a8dc3cd735e69c7c106 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module defines the FeffInputSet abstract base class and a concrete
implementation for the Materials Project. The basic concept behind an input
set is to specify a scheme to generate a consistent set of Feff inputs fr... | vorwerkc/pymatgen | pymatgen/io/feff/sets.py | Python | mit | 19,267 | [
"FEFF",
"pymatgen"
] | 0726940a8cc3b6c1b4f6bba5c8bba2ea4e71d814956123a14f3c5e38b6e4f384 |
#coding: utf-8
# 2006/02 Will Holcomb <wholcomb@gmail.com>
#
# 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.
... | lemori/pyrequest | pyrequest.py | Python | gpl-2.0 | 7,555 | [
"Brian"
] | 415e2eaae7cca524e577fc8d6e53a42f821bae7f43e2efdbfd21d5dcad0df3a0 |
import numpy as np
import numpy.lib.recfunctions as rec
from astropy.io import ascii, fits
from astropy.wcs import WCS
from astropy.coordinates import SkyCoord
from astropy import units as u
from os import listdir
from os.path import isfile, join
import scipy.stats as stats
import scipy.optimize as opt
import matplo... | jaekor91/xd-elg-scripts | xd_elg_utils.py | Python | gpl-3.0 | 81,633 | [
"Galaxy",
"Gaussian"
] | 6c0d30f2c539cb1dee2eecba5148a8b3c49b3fac50ae791c2201ed34f84e65cd |
"""
sphinx.ext.apidoc
~~~~~~~~~~~~~~~~~
Parses a directory tree looking for Python modules and packages and creates
ReST files appropriately to create code documentation with Sphinx. It also
creates a modules index (named modules.<suffix>).
This is derived from the "sphinx-autopackage" script... | sonntagsgesicht/regtest | .aux/venv/lib/python3.9/site-packages/sphinx/ext/apidoc.py | Python | apache-2.0 | 19,381 | [
"VisIt"
] | c7962a7de784139ff934c13c4c91fd0095976167ef6cfd00e93477fd9a68e13e |
"""Gaussian processes regression. """
# Authors: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
#
# License: BSD 3 clause
import warnings
from operator import itemgetter
import numpy as np
from scipy.linalg import cholesky, cho_solve, solve_triangular
from scipy.optimize import fmin_l_bfgs_b
from sklearn.base im... | Titan-C/scikit-learn | sklearn/gaussian_process/gpr.py | Python | bsd-3-clause | 20,061 | [
"Gaussian"
] | 1e0e7c8b7f4c73023d6e5b8fd86f8a67465ef6abbda827afbbafa048866f2a4f |
from __future__ import annotations
import logging
logger = logging.getLogger(__name__)
class MaskerBase:
"""A root class to that does overlap masking"""
def __init__(self, experiment):
"""Initialise the overlap masking algorithm
Params:
experiment The experiment data
""... | dials/dials | algorithms/shoebox/masker.py | Python | bsd-3-clause | 3,387 | [
"CRYSTAL"
] | 12db23c9762b9969923aade169d8b8379c1e7e8498954f06665ca3843347aa47 |
#!/usr/bin/env python
#
# Copyright 2008,2009,2011,2012 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at ... | katsikas/gnuradio | gr-uhd/apps/uhd_siggen_base.py | Python | gpl-3.0 | 16,762 | [
"Gaussian"
] | f224f14ed378e2b6fba8d1590f85666d6582c2971bc22a880da928f105e01f0b |
# 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.
"""Codon tables based on those from the NCBI.
These tables are based on parsing the NCBI file:
ftp://ftp.ncbi.nih.gov/entrez/misc/data/gc.prt
Last upd... | bryback/quickseq | genescript/Bio/Data/CodonTable.py | Python | mit | 40,803 | [
"Biopython"
] | b4bb149a7146c1c872c58ac0d1302db75d5b3c3ad83103a577374a2e497a34b4 |
../../../../../share/pyshared/orca/scripts/default.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/default.py | Python | gpl-3.0 | 53 | [
"ORCA"
] | aced1360333ea38ab250a38c83ff239d6ead8aa7a95afb444427051fed96a6f5 |
# -*- coding: utf-8 -*-
from __future__ import division
import skimage.io
import skimage.feature
import skimage.color
import skimage.transform
import skimage.util
import skimage.segmentation
import numpy
# "Selective Search for Object Recognition" by J.R.R. Uijlings et al.
#
# - Modified version with LBP extractor ... | AlpacaDB/selectivesearch | selectivesearch/selectivesearch.py | Python | mit | 8,841 | [
"Gaussian"
] | 5c5626969ed98229b08ecc4a4b319992ebe8bb1ac37a3420c66f9f9938cc4354 |
# import_export_maplight/views_admin.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
from .controllers import import_maplight_from_json
from .models import MapLightCandidate
from candidate.models import CandidateCampaignManager
from django.contrib import messages
from django.contrib.messages import ge... | wevote/WebAppPublic | import_export_maplight/views_admin.py | Python | bsd-3-clause | 6,159 | [
"VisIt"
] | 0edbb521653d44470fda32929129c5383ad4f5de04d9221c35ae6925eabdfc75 |
"""
It is used to load classes from a specific system.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import re
import os
import six
import DIRAC
from DIRAC import gLogger
from DIRAC.Core.Utilities import List
from DIRAC.Core.Utilities.Extensions import ... | yujikato/DIRAC | src/DIRAC/Core/Utilities/Plotting/ObjectLoader.py | Python | gpl-3.0 | 2,494 | [
"DIRAC"
] | 744c81c407b1798f8b6f4297946f1d7bfb0b55194e241fe0d85023ea43109cb7 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pylid
from collections import Counter
hu = pylid.PyLID(3)
hu.total_ngrams = 91731180
hu.lang = 'hu'
hu.ngrams = Counter({
u'#a#': 938412,
u'#az': 582709,
u'az#': 531824,
u'\xe9s#': 497619,
u'#sz': 477375,
u'gy#': 468392,
u'en#': 453228,
... | dmort27/pylid | pylid/langs/hu.py | Python | mit | 343,717 | [
"ADF",
"ASE",
"BWA",
"CDK",
"EPW",
"Elk",
"MOE"
] | c9e1924a5a7360af8959b2f846210771f152624e4dbedfc89551dcd4b2a3facf |
__author__ = "Dr. Lapis"
langversion = 1
langname = "Русский"
##updater
# text construct: "Version "+version+available+changelog
#example: Version 3 available, click here to download, or for changelog click here
available = " доступна, нажмите здесь, чтобы скачать"
changelog = ", или нажмите здесь, чтобы посмотреть сп... | Berserker66/omnitool | omnitool/Language/russian.py | Python | mit | 4,942 | [
"VisIt"
] | b180fd96bdc70c428cc02e2dc1ec8ec6de551826584c81e49bb6870fe5954eb5 |
# -*- coding: utf-8 -*-
from kivy.lang import Builder
from kivy.properties import BoundedNumericProperty, ReferenceListProperty
from kivy.properties import OptionProperty, ListProperty
from kivy.uix.widget import Widget
from kivy.utils import get_color_from_hex
from kivymd.color_definitions import text_colors
from kivy... | cruor99/KivyMD | kivymd/backgroundcolorbehavior.py | Python | mit | 3,479 | [
"Amber"
] | 5e492ebafd9f6882d6d554debe1d0cd97e49482f8416f025e60b806105addfaa |
# Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013
# Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
from __future__ import absolute_import, division, print_function
SIZE_RANGES = ... | caphrim007/ansible | lib/ansible/module_utils/basic.py | Python | gpl-3.0 | 117,324 | [
"VisIt"
] | 75bd1c2413fa79d6d6c5f3149aee2674a0d637844c397ed448b60ba9a6d07cce |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module implements Compatibility corrections for mixing runs of different
functionals.
"""
import abc
import os
import warnings
from collections import defaultdict
from typing import List, Optional, Seq... | davidwaroquiers/pymatgen | pymatgen/entries/compatibility.py | Python | mit | 58,757 | [
"VASP",
"pymatgen"
] | 5c39fddbce67dedd197c6e20f500b11a82d04e29a17098136984e332113a7ff2 |
from django import forms
from django.conf import settings
from django.db import connection
from django.shortcuts import render_to_response
from formtools.wizard.views import SessionWizardView
from catmaid.models import Class, ClassInstance, ClassInstanceClassInstance
from catmaid.models import Connector, Project, Rel... | catsop/CATMAID | django/applications/catmaid/control/annotationadmin.py | Python | gpl-3.0 | 13,443 | [
"NEURON"
] | 867e3bb29c10b49abae4bcb1936a5502c1c413ed7ecdf05ef6861ea369cc25f1 |
# -*- coding: utf-8 -*-
""" Module for converting various mesh formats."""
# Copyright (C) 2006 Anders Logg
#
# This file is part of DOLFIN.
#
# DOLFIN 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, e... | FEniCS/dolfin | site-packages/dolfin_utils/meshconvert/meshconvert.py | Python | lgpl-3.0 | 50,178 | [
"NetCDF"
] | c1a64de7d069d4078f28e0d5238873f138a0f8cf411f66d9cb0fc9a388f485db |
#!/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 | python/peacock/Input/ExecutableInfo.py | Python | lgpl-2.1 | 7,023 | [
"MOOSE"
] | f14f852c91f6a72de093a39580849ffd730a0ec59bf02c6868c0acd3c73834b3 |
# $HeadURL$
"""
DIRAC Times module
Support for basic Date and Time operations
based on system datetime module.
It provides common interface to UTC timestamps,
converter to string types and back.
The following datetime classes are used in the returned objects:
- dateTime = datetime.datetime
- date = datetim... | Sbalbp/DIRAC | Core/Utilities/Time.py | Python | gpl-3.0 | 7,370 | [
"DIRAC"
] | 85b8234d039ef8f11eed988325269e2d794bfb6ac8dc14cbb216d22c6ff6410f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Get z axis position of spherical markers from 3D image stacks (tiff z-stack)
import beadPos.py and call z = beadPos.getz(x,y,img,n=None,optimize=False) to get z position
at the given x and y pixel coordinate or call x,y,z = beadPos.getz(x,y,img,n=None,optimize=True)
to ... | Splo0sh/3DCT | tdct/beadPos.py | Python | gpl-3.0 | 15,029 | [
"Gaussian"
] | 78170c164443fb05e637930d3b56d354b0c64ae14bb7e95c83866f28fbea2240 |
#########################################################################
## This program is part of 'MOOSE', the
## Messaging Object Oriented Simulation Environment.
## Copyright (C) 2014 Upinder S. Bhalla. and NCBS
## It is made available under the terms of the
## GNU Lesser General Public License version 2... | dilawar/moose-core | tests/core/test_switch_solvers.py | Python | gpl-3.0 | 5,055 | [
"MOOSE"
] | 295d6d3337c7eb5dab1b5352013643537bf9ea9d41eee6f283278c0cc618c9d9 |
'''
Created on Jul 19, 2011
@author: sean
'''
from __future__ import print_function
from ...asttools import Visitor
import sys
import _ast
from warnings import warn
if sys.version_info.major < 3:
from StringIO import StringIO
else:
from io import StringIO
class Indentor(object):
def __init__(self, prin... | jasonyaw/SFrame | oss_src/unity/python/sframe/meta/asttools/visitors/print_visitor.py | Python | bsd-3-clause | 5,046 | [
"VisIt"
] | 433f13db91178e2a6f49808d68b96347cca12ce07747eea086db8c1ed9657c34 |
import m5
from m5.objects import *
alpha_suffix = '_base.amd64-m64-gcc43-nn'
#400.perlbench
perlbench = LiveProcess()
perlbench.executable = 'perlbench' + alpha_suffix
perlbench.cmd = [perlbench.executable] + ['-I./lib', 'checkspam.pl', '2500',
'5', '25', '11', '150', '1', '1', '1', '1']
#401.bzip2
bzip2 = L... | nilmini20s/gem5-2016-08-13 | configs/example/spec06_benchmarks.py | Python | bsd-3-clause | 4,359 | [
"GAMESS",
"Gromacs",
"NAMD"
] | 46c1a483098191944469fd2251663feb2e02928bbdcc26d5583eb6b081bc605d |
#!/usr/bin/env python
# The contents of this file are subject to the BitTorrent Open Source License
# Version 1.1 (the License). You may not copy or use this file, in either
# source code or executable form, except in compliance with the License. You
# may obtain a copy of the License at http://www.bittorrent.com/li... | joshovi/fossology | src/nomos/agent_tests/testdata/NomosTestfiles/Bittorrent/bittorrent.py | Python | gpl-2.0 | 145,532 | [
"VisIt"
] | 999a8ec3ca580dca27e2ef9c9d9350cd3d42a877e4b89a5dd0d99c6d7a6551ea |
template = """<div class="w3-card-2 w3-quarter w3-margin cast-card bloody">
<header class="w3-container">
<h3>{name}</h3>
</header>
<div class="w3-container">
<p> {role}</p>
</div>
</div>
"""
cast_positions = """Margo
Mingus
Samantha
Parker
Carla
Luna"""
cast_names = """Brenda Wooley
Aldo B.
Nikki Gre... | asteroidb612/night-skies | cast.py | Python | mit | 1,438 | [
"Brian"
] | 54ae7cd7638a7fb42709e2c45db313b4ef6ea721861640e2dd4b24526af00c1e |
# Copyright (c) 2014, Andre Severo Pereira Gomes
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of condi... | aspgomes/dirac-tools | table-maker/src/reader.py | Python | bsd-3-clause | 12,591 | [
"DIRAC"
] | 644b919b5ef836c62d312fae9dc8b7ec1936dd49a2b63274c8725d7a29b459f8 |
import ambgmin_ as GMIN
import pele.potentials.gminpotential as gminpot
import numpy as np
import pele.basinhopping as bh
from pele.optimize import _quench as quench
from pele.takestep import displace
# export PYTHONPATH=/home/ss2029/svn/GMIN/bin:$PWD/../..
GMIN.initialize()
pot = gminpot.GMINPotental(GMIN)
coord... | smcantab/pele | playground/amber/metenk/amber.py | Python | gpl-3.0 | 788 | [
"PyMOL"
] | 7d728c87bc7aeaf8316a322dc2c0b443c7bebfcad123e1ff39fe001e6383aa4e |
################################################################################
#
# Author: Christopher Helmes
# Date: August 2015
#
# Copyright (C) 2015 Christopher Helmes
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published ... | chjost/analysis-code | analysis/interpol.py | Python | gpl-3.0 | 7,303 | [
"Gaussian"
] | b6f6c6199fba5bb606d49827f9d526ddfa121ed8052a451966630cddd5ce834f |
from twisted.internet import reactor
from twisted.python import log
from octopus.sequence.shortcuts import *
from octopus.experiment import Experiment
s = wait(2)
e = Experiment(s)
reactor.callLater(0.5, e.pause)
reactor.callLater(1, e.resume)
reactor.callLater(1.5, e.stop)
reactor.callLater(0, e.run)
s1 = wait(2)
e1... | rasata/octopus | examples/test_abort.py | Python | mit | 547 | [
"Octopus"
] | 1c94b9db0ff1831946b15850840c5913375a54dcad3d076bc2c2254d8b8f2c33 |
# Copyright 2008, 2009 CAMd
# (see accompanying license files for details).
"""Definition of the Atoms class.
This module defines the central object in the ASE package: the Atoms
object.
"""
import warnings
from math import cos, sin
import numpy as np
import ase.units as units
from ase.atom import Atom
from ase.da... | suttond/MODOI | ase/atoms.py | Python | lgpl-3.0 | 58,731 | [
"ASE"
] | bd85d4cdfb883ead8f79a17ad9174419161eae81ef95c763ebd5f119e562bd14 |
'''
Created on Jun 6, 2013
@author: dusenberrymw
'''
import random
class Network(object):
"""A class for the overall network"""
def __init__(self):
"""Constructor"""
self.layers = []
def forward(self, input_vector):
"""
Given an input vector, forward propagate it through... | dusenberrymw/Pine | pine/network.py | Python | mit | 10,126 | [
"NEURON"
] | 102f0aff476e600d950d958cf5a4cf78745466ece70df2afec1c21ea85b79629 |
# !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2018-08-04 20:09:38
# @Last modified by: Brian Cherinka
# @Last modified time: 2018-11-22 13:11:86
from __future__ import print_function, division, absolute_import, unicode_literals
import... | sdss/marvin | python/marvin/tools/query.py | Python | bsd-3-clause | 67,552 | [
"Brian"
] | 80b46f41bfa03cecbcbbd4d951ed987aa8209e104bab5e490ded88e35a4191bc |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
box = vtk.vtkBox()
box.SetXMin(0,2,4)
box.SetXMax(2,4,6)
sample = vtk.vtkSampleFunction()
sample.SetSampleDimensions(30,30,30)
sample.SetImplicitFunction(box)
sample.SetMo... | hlzz/dotfiles | graphics/VTK-7.0.0/Filters/Modeling/Testing/Python/TestBoxFunction.py | Python | bsd-3-clause | 1,761 | [
"VTK"
] | 903714c590757a88a5eefa643ab110839f4ce58879a195c94834975ba97b1af9 |
#wonLottery = True
#bigWin = True
#if wonLottery and bigWin :
# print("you can retire! ")
#team = input("enter your favourite hockey team; ").upper()
#sport = input("enter your favourite sport: ").upper()
#if sport == "football" and team == "barcelona":
# print("putu amo")
#elif team == "madrid" or team =="atl... | aesquis/Introduccion-a-la-programacion-con-Python | 07-Decisiones-complejas-con-codigo/examplesAndOr.py | Python | gpl-2.0 | 1,576 | [
"MOOSE"
] | e65d5fdd040809cfcc815ec3789f68e7e57d9f36451a7f7fa7df576942452ba5 |
import sys
tests = [
("testExecs/itertest.exe", "", {}),
("testExecs/MolOpsTest.exe", "", {}),
("testExecs/testCanon.exe", "C1OCCC1 C1CCOC1", {}),
("testExecs/testPickler.exe", "", {}),
("testExecs/test1.exe", "", {}),
("testExecs/testChirality.exe", "", {}),
("python", "test_list.py", {'dir': 'Depictor'... | jandom/rdkit | Code/GraphMol/test_list.py | Python | bsd-3-clause | 1,960 | [
"RDKit"
] | f0748cf3952d991a17edf1a05b0999b8037d5eb6e2014c19c69834dbed3d22ed |
##############################################################################
# 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... | krafczyk/spack | var/spack/repos/builtin/packages/r-agilp/package.py | Python | lgpl-2.1 | 1,580 | [
"Bioconductor"
] | 58f2468bb4afa8222de4568a6c6790545cf810cf9fd7aa52691ca4853f27754d |
# -*- coding: utf-8 -*-
"""
Write EC and SMC Meshes in legacy VTK format as .vtk.
"""
import os
import sys
# Run in current directory.
os.chdir(os.path.dirname(os.path.abspath(__file__)))
# Relative import path for the DumpMeshToLegacyFormat script.
importPath = os.path.abspath(os.path.join(os.path.dirname(__file__)... | BlueFern/DBiharMesher | meshes/c2000f/Dump2000MeshLegacyFormat.py | Python | gpl-2.0 | 890 | [
"VTK"
] | 037c4c3b1cdf0887656fad0a134242712604563a7ecf2dea47f6eb215e4a9d38 |
#from distutils.core import setup
from setuptools import find_packages, setup
from PePr import __version__
setup(name="PePr",
version=__version__, # change the version info in the PePr.__init__ file
author="Yanxiao Zhang",
author_email="troublezhang@gmail.com",
url="https://github.com/shawnzhang... | shawnzhangyx/PePr | setup.py | Python | gpl-3.0 | 1,435 | [
"pysam"
] | 3ac51d1f7673e9d9e59df3e6356edd23ce6be1268e6cf80373cc412c7070b185 |
# -*- coding: utf-8 -*-
"""Copyright 2015 Roger R Labbe Jr.
Code supporting the book
Kalman and Bayesian Filters in Python
https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python
This is licensed under an MIT license. See the LICENSE.txt file
for more information.
"""
from __future__ import (absolute_imp... | zaqwes8811/micro-apps | self_driving/deps/Kalman_and_Bayesian_Filters_in_Python_master/kf_book/nonlinear_plots.py | Python | mit | 9,116 | [
"Gaussian"
] | 194acb67e58d35fb38f0e200be949e9ae083e6ee39a6517f5d3a94e52c8175b5 |
# 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... | Acehaidrey/incubator-airflow | tests/build_provider_packages_dependencies.py | Python | apache-2.0 | 9,855 | [
"VisIt"
] | 25ada2cfb74a3d2a098dcbefdbfe028c60e804ce262ca66b8283b51c96ffc3b1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (... | vmanoria/bluemix-hue-filebrowser | hue-3.8.1-bluemix/apps/useradmin/src/useradmin/test_ldap.py | Python | gpl-2.0 | 35,547 | [
"MOE"
] | c33ab627701585b45c63c0b4d6504205e60044299ce6b2f4782b28d5d5f5f0b4 |
# Copyright 2021, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | tensorflow/federated | tensorflow_federated/python/analytics/hierarchical_histogram/hierarchical_histogram_factory.py | Python | apache-2.0 | 13,326 | [
"Gaussian"
] | 83b37f8430da559e26489d96b131d4a891eba41ec8c80da9d14e40c51f5af6ca |
from __future__ import (absolute_import, division, print_function)
import math
from mantid.kernel import *
from mantid.api import *
import mantid.simpleapi as mantid
class EnggFitPeaks(PythonAlgorithm):
EXPECTED_DIM_TYPE = 'Time-of-flight'
PEAK_TYPE = 'BackToBackExponential'
# Max limit on the estimated... | ScreamingUdder/mantid | Framework/PythonInterface/plugins/algorithms/EnggFitPeaks.py | Python | gpl-3.0 | 27,897 | [
"Gaussian"
] | b7a43afe1452872c5a19e319c83f8dc82372846d4312f9fc722a7f166368bd8e |
"""Security service, manages roles and permissions."""
from __future__ import annotations
from functools import wraps
from itertools import chain
from typing import (
TYPE_CHECKING,
Any,
Callable,
Collection,
Dict,
FrozenSet,
List,
Optional,
Set,
Type,
Union,
)
import sqlal... | abilian/abilian-core | src/abilian/services/security/service.py | Python | lgpl-2.1 | 30,275 | [
"VisIt"
] | b4ba3c1adba584ba0faec697ef3425f8bbb165c1426c4dd19e5a9bfbd764e49b |
import neuroml as N
from owmeta_core.data import DataUser
from .neuron import Neuron
class NeuroML(DataUser):
@classmethod
def generate(cls, o, t=2):
"""
Get a NeuroML object that represents the given object. The ``type``
determines what content is included in the NeuroML object:
... | openworm/PyOpenWorm | owmeta/my_neuroml.py | Python | mit | 1,367 | [
"NEURON"
] | c484c8c1d31784dab516e21844452b9a38d1faf3cff663de735f5330d7d45cc4 |
"""
This is only meant to add docs to objects defined in C-extension modules.
The purpose is to allow easier editing of the docstrings without
requiring a re-compile.
NOTE: Many of the methods of ndarray have corresponding functions.
If you update these docstrings, please keep also the ones in
core/fromnum... | bertrand-l/numpy | numpy/add_newdocs.py | Python | bsd-3-clause | 226,717 | [
"Brian"
] | 47c72371d87d86f8e7a086bfbed168b68b25f787b4f5230e54e0527913e95dea |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | Jorge-C/bipy | skbio/maths/stats/ordination/utils.py | Python | bsd-3-clause | 6,312 | [
"scikit-bio"
] | 7ba1f2b67a1aafb3f3ee68c085e8a98edfe3a3b9101b333e9257e9153ae00e61 |
#!/usr/bin/python
from datetime import date,datetime
import sqlalchemy
import json
import pprint
import uuid
import logging
import os
import utils
from config import ComicStreamerConfig
from folders import AppFolders
from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker
from sqlalchemy.... | Tristan79/ComicStreamer | comicstreamerlib/database.py | Python | apache-2.0 | 30,152 | [
"VisIt"
] | ce3e824e34a838e72e92a3c05eecf82e2031ff6b38535af33b5c0373c0e27f91 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | npuichigo/ttsflow | third_party/tensorflow/tensorflow/contrib/bayesflow/python/kernel_tests/monte_carlo_test.py | Python | apache-2.0 | 9,026 | [
"Gaussian"
] | b1095b113edff02a82c3da4039a4e418f488fb009919611ff6fcefe92aafa6ba |
"""
Student Views
"""
import datetime
import logging
import uuid
import json
import warnings
from collections import defaultdict
from urlparse import urljoin, urlsplit, parse_qs, urlunsplit
from django.views.generic import TemplateView
from pytz import UTC
from requests import HTTPError
from ipware.ip import get_ip
i... | tanmaykm/edx-platform | common/djangoapps/student/views.py | Python | agpl-3.0 | 105,433 | [
"VisIt"
] | c767c95b49a1b65dcfc8d4da66b20fedf67a37d6fd024eca2a408a0acab9c849 |
""" RPCClient object is used to create RPC connection to services
"""
__RCSID__ = "$Id$"
from DIRAC.Core.DISET.private.InnerRPCClient import InnerRPCClient
class _MagicMethod( object ):
""" This object allows to bundle together a function calling
an RPC and the remote function name.
When this object i... | fstagni/DIRAC | Core/DISET/RPCClient.py | Python | gpl-3.0 | 3,753 | [
"DIRAC"
] | 7d7e3057a801fb3ea252802c162718f78fc712e6e9a7d8ac1fbac65d6a46fb99 |
from __future__ import division, print_function
from hscom import __common__
print, print_, print_on, print_off, rrr, profile, printDBG =\
__common__.init(__name__, '[cov]', DEBUG=False)
# Standard
from itertools import izip
from itertools import product as iprod
import math
# Science
import cv2
import numpy as np
... | Erotemic/hotspotter | hotspotter/coverage.py | Python | apache-2.0 | 6,933 | [
"Gaussian"
] | 1007ef80336d79844fdd56e99672bdac1edd757bc6247f79c973ca9a9250b0b7 |
#!/usr/bin/env python
from __future__ import division
__author__ = "Rob Knight, Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME Project"
__credits__ = ["Rob Knight", "Greg Caporaso", "Kyle Bittinger",
"Antonio Gonzalez Pena", "David Soergel", "Jai Ram Rideout"]
__license__ = "GPL"
__version__... | wasade/qiime | qiime/assign_taxonomy.py | Python | gpl-2.0 | 56,210 | [
"BLAST"
] | fcfc83d0a138bb303154b4d51232d550e4a15de8c2331eaa76ea8436bbdc50bc |
# coding: utf8
{
' (leave empty to detach account)': ' (leave empty to detach account)',
' Module is the main communications hub of the Sahana system. It is used to send alerts and/or messages using SMS & Email to various groups and individuals before, during and after a disaster.': ' Module is the main communicatio... | ptressel/sahana-eden-madpub | languages/fr.py | Python | mit | 226,541 | [
"VisIt"
] | 255c6f6210877c9de2c75aabc08590fd95c65590dd5300f289acdcb14c7c24f5 |
# -*- encoding: utf-8 -*-
"""
Haiku.py
Based on Twitter REST API
(Japanese) http://watcher.moe-nifty.com/memo/docs/twitterAPI13.txt
(Original) http://apiwiki.twitter.com/REST+API+Documentation
Also Twitter Search API
(Original) http://apiwiki.twitter.com/Search+API+Documentation
"""
__author__="ymotongpo... | ymotongpoo/restroom | 0x7d8/APIs/Haiku.py | Python | apache-2.0 | 12,200 | [
"MOE"
] | bf29418033eaed5fb50092595fe7e5d287bc7944f190c1215f8335b07ac987f7 |
#
#@BEGIN LICENSE
#
# PSI4: an ab initio quantum chemistry software package
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later ver... | spring01/libPSI | lib/python/psiexceptions.py | Python | gpl-2.0 | 1,262 | [
"Psi4"
] | 7482475cdceb9c133f9fdd1d02685f4614ff9dc08ec8a4173c5cd7fea9e2a2d7 |
import unittest
import json
from tests.base import Base
class TestWhoAmIResource(Base):
""" This class tests the whoami resources by making a get request
to /whoami with token set in the header
"""
def test_returns_user_info(self):
""" Get user info by making a request with a valid token ... | brayoh/bucket-list-api | tests/test_whoami_resource.py | Python | mit | 1,106 | [
"Brian"
] | 67190ddf897631ca96ebe5c6cb73a3c0615686424fbbc355bca98885452846d7 |
# -*- Mode: python; coding: utf-8 -*-
from __future__ import division
#from __future__ import with_statement
LAYOUT_ALGORITHM = 'neato' # ['neato'|'dot'|'twopi'|'circo'|'fdp'|'nop']
REPRESENT_CHANNELS_AS_NODES = 1
DEFAULT_NODE_SIZE = 3.0 # default node size in meters
DEFAULT_TRANSMISSIONS_MEMORY = 5 # default number o... | dnlove/ns3 | src/visualizer/visualizer/core.py | Python | gpl-2.0 | 60,240 | [
"FLEUR"
] | ee93d09659b796df72c6114535a052deb6daeb56db6d82fcd897a29853f3cc65 |
#! /usr/bin/env python
##############################################################################
## pyvolve: Python platform for simulating evolutionary sequences.
##
## Written by Stephanie J. Spielman (stephanie.spielman@gmail.com)
#############################################################################... | SimonGreenhill/pyvolve | src/state_freqs.py | Python | bsd-2-clause | 24,738 | [
"Biopython"
] | a2dc6ba1203c090eeece3684a6409c54831d195b692f68e06dc1186de4aad84a |
import numpy as np
try:
import netCDF4 as netCDF
except:
import netCDF3 as netCDF
import pyroms
def remap(src_array, remap_file, src_grad1=None, src_grad2=None, \
src_grad3=None, spval=1e37, verbose=False):
'''
remap based on addresses and weights computed in a setup phase
'''
# ... | kshedstrom/pyroms | pyroms/pyroms/remapping/remap.py | Python | bsd-3-clause | 5,852 | [
"NetCDF"
] | 8c5b593d4b245b95596b29f0a5a9517417942380b5958225b337e57ea26708cd |
# ============================================================================
#
# Copyright (C) 2007-2012 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... | jeroendierckx/Camelot | camelot/model/i18n.py | Python | gpl-2.0 | 5,504 | [
"VisIt"
] | 87505c75580e12c005bce15a76d0b3b5a87bcd05667c74c6ecdfcc63442ba0f1 |
############################################################
#Example 3: Saving the coordinates as an xyz file
############################################################
import numpy as np
import pygmin.potentials.lj as lj
import pygmin.basinhopping as bh
from pygmin.takestep import displace
from pygmin.storage.saven... | js850/PyGMIN | examples/basinhopping_no_system_class/3_savelowest.py | Python | gpl-3.0 | 1,334 | [
"PyMOL"
] | 23358169c7900adf68587cc677031c4b6c7b2676777d7fdb5f8503801507c424 |
import asyncore
import socket
import struct
from markovobfuscate.obfuscation import MarkovKeyState
import logging
import threading
import zlib
BUFFER_SIZE = 4096
class LocalProxy(asyncore.dispatcher):
"""Listens for new client connections and creates new ToClient
objects for each one."""
def __init__(se... | bwall/markovobfuscate | mtunnel.py | Python | mit | 13,030 | [
"Brian"
] | e53edc6f13ac0b1e61c62b8691a1192ad2b1f117f64f5cd74381a0a7b3d8272b |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010, 2011, 2012, 2014.
# SMHI,
# Folkborgsvägen 1,
# Norrköping,
# Sweden
# Author(s):
# Martin Raspaud <martin.raspaud@smhi.se>
# Adam Dybbroe <adam.dybbroe@smhi.se>
# This file is part of mpop.
# mpop is free software: you can redistribute it a... | mraspaud/mpop | mpop/satin/nc_reader.py | Python | gpl-3.0 | 18,241 | [
"NetCDF"
] | 5f263669bbc13a05190480b5ae9cadf103b5a00ded92ff0b157965d98cdc3cb9 |
import pytest
from pysisyphus.calculators import ORCA
from pysisyphus.calculators.PySCF import PySCF
from pysisyphus.helpers import geom_loader
from pysisyphus.io import geom_from_hessian
from pysisyphus.testing import using
from pysisyphus.thermo import (
print_thermoanalysis,
get_thermoanalysis_from_hess_h5,... | eljost/pysisyphus | tests/test_thermo/test_thermo.py | Python | gpl-3.0 | 2,710 | [
"ORCA",
"PySCF"
] | 04a2a3b948a3a0ea72da31373ed01a030de78ff972eb1540fbdcd2aed4b67b73 |
# This software is distributed under BSD 3-clause license (see LICENSE file).
#
# Authors: Heiko Strathmann
#
from numpy import *
from pylab import *
from scipy import *
from shogun import RealFeatures
from shogun import MeanShiftDataGenerator
from shogun import LinearTimeMMD, MMDKernelSelectionOpt
from shogun import ... | lambday/shogun | examples/undocumented/python/graphical/statistics_linear_time_mmd.py | Python | bsd-3-clause | 6,089 | [
"Gaussian"
] | 398d85b41d75303d53542b93e69e524365503fc1e94248b06fb4be6a6187b47e |
"""
======================================
Decision Tree Regression with AdaBoost
======================================
A decision tree is boosted using the AdaBoost.R2 [1] algorithm on a 1D
sinusoidal dataset with a small amount of Gaussian noise.
299 boosts (300 decision trees) is compared with a single decision tr... | DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/examples/ensemble/plot_adaboost_regression.py | Python | mit | 1,530 | [
"Gaussian"
] | e7e1a5889d7b71af401eac4f89d397d816a048c5fce4eeb51bf731fa7291de5b |
"""Utility modules for the VTK-Python wrappers."""
__all__ = ['algorithms', 'dataset_adapter']
| hlzz/dotfiles | graphics/VTK-7.0.0/Wrapping/Python/vtk/numpy_interface/__init__.py | Python | bsd-3-clause | 99 | [
"VTK"
] | 8ef711391b56e94900510260c1b494fb8cbde65d6227c39a24ca3f1c82eab280 |
# -*- encoding: utf-8 -*-
import random
import string
from django.contrib.auth.models import User, Group, Permission
from django.core.management.base import BaseCommand, CommandError
import click
from event.models import *
class Command(BaseCommand):
help = 'Creates new Make Things event'
def create_group(se... | Makerland/makethings.io | core/management/commands/newevent.py | Python | gpl-3.0 | 4,726 | [
"exciting"
] | 94893bf593f6dc750f91485f767bfd520451e2c4cf11a7320bd8a1925a82f48b |
#!/usr/bin/python
"""
A simple routine to load in a LIGGGHTS hybrid dump file containing
contact and contact force data and convert into a .vtk unstructured
grid which can be used to visualise the force network.
evtk is used to write binary VTK files:
https://bitbucket.org/pauloh/pyevtk
The pizza.py bdump command is ... | msbentley/liggghts-utils | liggghts_utils/dump2force.py | Python | mit | 11,953 | [
"LAMMPS",
"ParaView",
"VTK"
] | 5df25101551e692e34769deb6a50faed2e3378135cfd9d5ba5453045339cb5bf |
# cycle through NaturalReaderSpeech voices
# with i2c connected jaw servo
# Author: Acapulco Rolf
# Date: December 4th 2017
# Build: myrobotlab development build version 2645
from time import sleep
from org.myrobotlab.service import Speech
lang="EN" #for NaturalReaderSpeech
Voice="Ryan"
voiceType = Voice
speech = Ru... | MyRobotLab/pyrobotlab | home/CheekyMonkey/naturalreaderspeech-v2-test.py | Python | apache-2.0 | 2,574 | [
"CRYSTAL"
] | 2402c8a00cd0d8b4eaceab45189d4e22dbeb64399281b2adaa8a332c2d8c6400 |
#Standard imports
import os
import inspect
#Non-standard imports
import catmap
from catmap import ReactionModelWrapper
from catmap.model import ReactionModel
from ase.atoms import string2symbols
class ParserBase(ReactionModelWrapper):
def __init__(self,reaction_model=ReactionModel()):
"""Class for `parsi... | rybrogaard/catmap | catmap/parsers/parser_base.py | Python | gpl-3.0 | 6,160 | [
"ASE"
] | cc8e5ba47cebfd4b87ac2eff0dc7afebc6cb737efe82385be3d7cfa2a5616ef3 |
#!/usr/local/sci/bin/python
# PYTHON3
#
# Author: Kate Willett
# Created: 24 January 2018 (based on IDL create_monthseriesJAN2015.pro 1 Feb 2013)
# Last update: 3 August 2021
# Location: home/h04/hadkw/HadISDH_Code/HADISDH_BUILD/
# GitHub: https://github.com/Kate-Willett/HadISDH_Build
# -----------------------
#... | Kate-Willett/HadISDH_Build | F4_CreateMonthSeriesfromHadISD.py | Python | cc0-1.0 | 101,019 | [
"NetCDF"
] | 222b8ca5a8a9fa6741b237468e615b370d007647bd53757f56d3ed489265baa1 |
__author__ = 'tom.bailey'
'''TB Animation Tools is a toolset for animators
*******************************************************************************
License and Copyright
Copyright 2015-Tom Bailey
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU L... | tb-animator/tbtools | apps/tb_playblast.py | Python | mit | 2,309 | [
"VisIt"
] | 226ae3bf4463dd93c1cae0392305b51dd0aa299121d092a1667d8901bdc72e0c |
from OpenGL.GLUT import *
from OpenGL.GLU import *
from OpenGL.GL import *
from math import *
import numpy as np
import os
import time
class openGLLive:
def __init__(self, system, specs={}):
#TODO: COMPLETE DESCRIPTION FOR SPECS
# 'particle_coloring': 'auto', 'charge', 'type'
# 'part... | lahnerml/espresso | src/python/espressomd/visualizationOpenGL.py | Python | gpl-3.0 | 35,178 | [
"ESPResSo"
] | a634bd7795547f9750f2ad0218d446380a910f3905e340edc69193791bbefddc |
# -*- coding: utf-8 -*-
"""Multivariate Normal and t distributions
Created on Sat May 28 15:38:23 2011
@author: Josef Perktold
TODO:
* renaming,
- after adding t distribution, cov doesn't make sense for Sigma DONE
- should mean also be renamed to mu, if there will be distributions
with mean != mu
... | hlin117/statsmodels | statsmodels/sandbox/distributions/mv_normal.py | Python | bsd-3-clause | 38,702 | [
"Gaussian"
] | 5f5bcf977f8207d718699c539673cdd96f79aafaa59ed8d5c0f9335bb0d1e07c |
#!/usr/bin/env python
"""
Uses the mat3 and vec3 classes from Python Computer Graphics Kit v1.2.0
module by Matthias Baas (see http://cgkit.sourceforge.net).
License: http://www.opensource.org/licenses/bsd-license.php
"""
__author__ = "Pierre Legrand (pierre.legrand \at synchrotron-soleil.fr)"
__d... | RAPD/RAPD | src/plugins/subcontractors/xdsme/new/xdsme-0.4.9/XOconv/dnz2mos.py | Python | agpl-3.0 | 4,805 | [
"CRYSTAL"
] | df309ff6df833839e3e70a63d3bc895353e65bb29ce89eb5b032cd9b13c967f1 |
#!/usr/bin/env python
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
"class": "ei",
"dataset": "interim",
"date": "1979-01-01/to/2017-05-31",
"expver": "1",
"grid": "0.75/0.75",
"levelist": "500",
"levtype": "pl",
"param": "129.12... | stevenjoelbrey/PMFutures | sh/get_all_era_interim_z.py | Python | mit | 532 | [
"NetCDF"
] | 057df6ffa01b5df87391478bcf1ce323b5546d86fd1161f7baf4d002a74ac18a |
"""
Test the Studio help links.
"""
from nose.plugins.attrib import attr
from unittest import skip
from common.test.acceptance.fixtures.course import XBlockFixtureDesc
from common.test.acceptance.tests.studio.base_studio_test import StudioCourseTest, ContainerBase
from common.test.acceptance.pages.studio.index import... | romain-li/edx-platform | common/test/acceptance/tests/studio/test_studio_help.py | Python | agpl-3.0 | 43,599 | [
"VisIt"
] | cadce52701f2abf94995632ed6d7d959aa45df0bca3f12844489d5bc2a0c4331 |
# 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
import json
from io import open
import warnings
from pymatgen.electronic_structure.bandstructure import Kpoint
from pymatgen import Lattice
fr... | czhengsci/pymatgen | pymatgen/electronic_structure/tests/test_bandstructure.py | Python | mit | 11,404 | [
"pymatgen"
] | dccf036d21ca29d699f5aba963f3a2cae655e0d779f10ed4b122405493401eee |
#
# This file is part of the Connection-Set Algebra (CSA).
# Copyright (C) 2010,2011,2012,2019,2020 Mikael Djurfeldt
#
# CSA 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... | INCF/csa | csa/_misc.py | Python | gpl-3.0 | 10,587 | [
"Gaussian"
] | ed49bea707c2bbe068719ae318938b045b9ff4efc25c63e898de594fd7957b0f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Version 3 splits Order into Order and OrderItem,
Shipment into Shipment and ShipmentItem.
Just as Invoice was split from version 1 to 2.
InvoiceItem and ShipmentItem now reference each other.
Invoice number is removed as primary key and placed with integer.
NOTE: Cla... | Ripley6811/TAIMAU | src/db_tools/TM2014_tables_v3.py | Python | gpl-2.0 | 20,670 | [
"ASE"
] | dd6cf2316c68df086370384db9924d61515efce52a9ab7ed076411fc48844603 |
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
import warnings
from setuptools import find_packages
from setuptools import setup
from setuptools import Extension
# Try to use Cython to compile .pyx files.
# If Cython it not availa... | bnoi/scikit-tracker | setup.py | Python | bsd-3-clause | 4,846 | [
"Gaussian",
"VisIt"
] | 76314a5270f3f93d45cd22a9ace0aca97e342e69ef35756100a45d819729fdea |
#!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This script generates an rc file and header (setup_strings.{rc,h}) to be
included in setup.exe. The rc file includes translations fo... | rwatson/chromium-capsicum | chrome/installer/util/prebuild/create_string_rc.py | Python | bsd-3-clause | 7,669 | [
"xTB"
] | 0966a4ea9d4b7698a8d5581bf5f291d6a4bb41e8403fe368102a23f0411f35ed |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import unittest
import os
from pymatgen import Molecule
from pymatgen.io.gaussian import GaussianInput, GaussianOutput
from pymatgen.electronic_structure.core ... | gpetretto/pymatgen | pymatgen/io/tests/test_gaussian.py | Python | mit | 13,950 | [
"Gaussian",
"pymatgen"
] | b2bd46e477681092840b1d52ab7c3f8de549297f7374798c12eb39bfdf871453 |
# Copyright (C) 2011 by Brandon Invergo (b.invergo@gmail.com)
# 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.
from __future__ import print_function
import os
import subprocess
try:
from os.path ... | poojavade/Genomics_Docker | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Bio/Phylo/PAML/_paml.py | Python | apache-2.0 | 6,379 | [
"Biopython"
] | a9c4e220b9368d195e9534146f7ff681a365d937233ce0428dc403fe86281687 |
# -*- coding: UTF-8 -*-
# File: imgproc.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
from .base import ImageAugmentor
from ...utils import logger
import numpy as np
import cv2
__all__ = ['Hue', 'Brightness', 'Contrast', 'MeanVarianceNormalize',
'GaussianBlur', 'Gamma', 'Clip', 'Saturation', 'Lighting', 'MinM... | haamoon/tensorpack | tensorpack/dataflow/imgaug/imgproc.py | Python | apache-2.0 | 8,688 | [
"Gaussian"
] | 7878da5fd759547c84dbd749439995eda94563b0bf5f80fd7a045256a0ee1b80 |
#
# Copyright (C) 2006 Stefan Seefeld
# All rights reserved.
# Licensed to the public under the terms of the GNU LGPL (>= 2),
# see the file COPYING for details.
#
from Synopsis.Processor import Processor, Parameter
from Synopsis import ASG
class Formatter(Processor, ASG.Visitor):
"""Generate a high-level list of... | stefanseefeld/synopsis | Synopsis/Formatters/List.py | Python | lgpl-2.1 | 2,082 | [
"VisIt"
] | 9e27d8206cc948aca4e82f0e74bc76962d795535433c3cdeade2a92c0275aef0 |
# Copyright 2008-2013 Nokia Siemens Networks Oyj
#
# 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... | yamateh/robotframework | src/robot/model/testsuite.py | Python | apache-2.0 | 5,519 | [
"VisIt"
] | c6263625a05394b022cb7ae5d2880fd73ec53d1a15a13d81302e71876c185d9f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Michal Kalewski <mkalewski at cs.put.poznan.pl>
#
# This file is a part of the Simple Network Simulator (sim2net) project.
# USE, MODIFICATION, COPYING AND DISTRIBUTION OF THIS SOFTWARE IS SUBJECT TO
# THE TERMS AND CONDITIONS OF THE MIT LICENSE. YOU SHOULD H... | mkalewski/sim2net | sim2net/placement/__init__.py | Python | mit | 941 | [
"VisIt"
] | 1397556fd2253eac49ca233f0096ddfc75d2227b0e148e15895eb36884735f0e |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import h5py
import scipy
from scipy import cos, exp, pi, sin, sqrt
from scipy.interpolate import interp1d
from scipy.optimize import curve_fit
import sys
from tools import parse_range, tag_hdf5_object_with_git_version
def find_mean(W):
Wn = W/W.sum()
... | tomohowk/tomohowk | src/fit_gaussians.py | Python | mit | 3,909 | [
"Gaussian"
] | c98ce528e173779503d556a5824b6eeb7ac91ece5216d9a39e8a3ecef220fcea |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.