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 |
|---|---|---|---|---|---|---|---|
import vtk
def main():
colors = vtk.vtkNamedColors()
# Set the background color.
colors.SetColor("BkgColor", [0.3, 0.2, 0.1, 1.0])
input1 = vtk.vtkPolyData()
input2 = vtk.vtkPolyData()
sphereSource = vtk.vtkSphereSource()
sphereSource.SetCenter(5, 0, 0)
sphereSource.Update()
in... | lorensen/VTKExamples | src/Python/Filtering/CombinePolyData.py | Python | apache-2.0 | 1,645 | [
"VTK"
] | 67b897da9c75130f240f33fe721f3faf84c63dddf5259492161bcbbf3964e1b4 |
"""
New version of bioconductor? This script goes through each current Bioconductor
recipe, finds the corresponding dependencies that are also in this repo, and
reports the [reverse toplogically sorted] set of Bioconductor packages that
should be updated using bioconductor-scraper.py.
In other words, the first items i... | instituteofpathologyheidelberg/bioconda-recipes | scripts/bioconductor/update_bioconductor_packages.py | Python | mit | 2,111 | [
"Bioconda",
"Bioconductor"
] | 6f804daf2de13699e634708c64c85e11717001ada1e536f77be331e8671accab |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides classes used to enumerate surface sites
and to find adsorption sites on slabs
"""
import itertools
import os
import numpy as np
from matplotlib import patches
from matplotlib.path import Path
from m... | vorwerkc/pymatgen | pymatgen/analysis/adsorption.py | Python | mit | 31,188 | [
"Jmol",
"pymatgen"
] | 8b16062df9b0cba8adc2eb60fccc8aae0b0905251e4a17153852a265f6051e5b |
#!/usr/bin/env python
########################################################################
# $HeadURL$
########################################################################
"""
Get the list of all the user files.
"""
__RCSID__ = "$Id$"
from DIRAC.Core.Base import Script
days = 0
months = 0
years = 0
wildcard = ... | vmendez/DIRAC | DataManagementSystem/scripts/dirac-dms-user-lfns.py | Python | gpl-3.0 | 5,259 | [
"DIRAC"
] | 6f3950ff1a29dd4ed22ab56a7398d08e8f9848cc1213827b934f7d644e905601 |
import sys,os,hashlib,time
import json
SPLUNK_HOME = os.environ.get("SPLUNK_HOME")
#dynamically load in any eggs
EGG_DIR = SPLUNK_HOME + "/etc/apps/pubnub_alert/bin/"
for filename in os.listdir(EGG_DIR):
if filename.endswith(".egg"):
sys.path.append(EGG_DIR + filename)
from pubnubsdk import Pub... | damiendallimore/SplunkModularInputsPythonFramework | implementations/pubnub_alert/bin/pubnub.py | Python | apache-2.0 | 2,957 | [
"VisIt"
] | 5c867adcf3372f9b7117cbefb99f0f9ce011e65e77eded11491ca6edfb9f197f |
import os
import sys
import json
import numpy as np
# For python 2
import urllib2 as urllib
# For python 3
#from urllib import request as urllib
def format_url(server, full_size, group_list):
# Format the URL for butterfly
query_fmt = 'feature={}&id={}'
shape_fmt = 'depth={}&height={}&width={}&x=0&y=0&z... | Rhoana/butterfly | scripts/api_test/apiTest.py | Python | mit | 7,118 | [
"NEURON"
] | dbb4fb2066db3b03a9ea5cbb76732aeeece18034f22d8d6c7573c96ee1540167 |
# Exercise 43: Basic Object-Oriented Analysis and Design
from sys import exit
from random import randint
class Scene(object):
def enter(self):
print "This scene is not yet configured. Subclass it and implement enter()."
exit(1)
class Engine(object):
def __init__(self, scene_map):
... | paulcarroty/Learn-Python-The-Hard-Way | ex43.py | Python | gpl-3.0 | 8,942 | [
"BLAST"
] | 7c2fbaca882244d5c6eeffeb6c1637f1f3b8b88b7b5acce2a772ed0d766da2e1 |
# -*- coding: utf-8 -*-
"""
rigol.py
University of Oregon - Advanced Physics Lab
Built on top of rigolSkeleton.py to control the rigol ds 1000d/e
series oscilloscopes
Using this programming guide -> http://www.batronix.com/pdf/Rigol/ProgrammingGuide/DS1000DE_ProgrammingGuide_EN.pdf
sources I used
- http://scruss.c... | aplstudent/Rigol-DS1000DE | rigolds1000de/rigol.py | Python | mit | 48,629 | [
"Brian"
] | bb088b7d5bfead89cbe95f29c3c13ec40916d66747ab089228f9ba94e32a6ae3 |
# start by importing version, because for some weird reason, I sometimes get
# networkx as over-riding the version here (no idea why...)
try:
# should work if installed through normal means: setup.py-based with
# pip, conda, easy_install, etc.
from . import version
except ImportError: # pragma: no cover
... | jhprinz/openpathsampling | openpathsampling/__init__.py | Python | lgpl-2.1 | 6,195 | [
"OpenMM"
] | f9a59ee3a9e8ca185d970da5257735d18f877aedd26803061826e2a228fdba84 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | vinodpanicker/scancode-toolkit | src/scancode/api.py | Python | apache-2.0 | 5,688 | [
"VisIt"
] | 14846e062a5419937875e0cb898b23e1c1644cbc9093ab09e4017a4f5884fe2a |
""" PDP
PDP ( PolicyDecisionPoint ) is the back-end for the PolicySystem. It discovers
the policies, finds the best match, evaluates them, merges their results taking
the most penalizing one, computes the set of actions to be triggered and returns
all the information to the PEP which will enforce the actions.
... | yujikato/DIRAC | src/DIRAC/ResourceStatusSystem/PolicySystem/PDP.py | Python | gpl-3.0 | 15,481 | [
"DIRAC"
] | 2950b7d94663e224bb6714c27a9356b9032a23c617ff958f3f4d94b0867d3653 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import warnings
import os
import numpy as np
from monty.serialization import loadfn
from pymatgen.analysis.bond_valence import BVAnalyzer
from pymatgen.analysis.structure_matcher import StructureMatcher
from... | dongsenfo/pymatgen | pymatgen/analysis/structure_prediction/volume_predictor.py | Python | mit | 10,138 | [
"CRYSTAL",
"pymatgen"
] | 6043741e6e50bf53a928d0ceaf22323a0e61e299aeccdf527f93c82225ce9f99 |
import numpy as np
from scipy.optimize import curve_fit
from scipy import asarray as ar,exp
from datetime import datetime
import matplotlib.pyplot as plt
import time
def gauss(x, A, mu, sigma):
'''Evaluates point on Gaussian Curve'''
return A*np.exp(-(x-mu)**2/(2.*sigma**2))
def _n64_to_string(... | ceos-seo/data_cube_notebooks | notebooks/demo/curve_fit_gaussian.py | Python | apache-2.0 | 2,230 | [
"Gaussian"
] | 065d8be4551ff5c69a54e80b528bea1ba379ac6e5d3d3d641bb656a0d78942df |
import numpy as np
def affine_forward(x, w, b):
"""
Computes the forward pass for an affine (fully-connected) layer.
The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N
examples, where each example x[i] has shape (d_1, ..., d_k). We will
reshape each input into a vector of dimension D = ... | hanezu/cs231n-assignment | assignment2/cs231n/layers.py | Python | mit | 27,957 | [
"NEURON"
] | 2888afcf0e9d3098aa92bce602bd655db3c14dac356173048c1586ed41480eeb |
# -*- coding: utf-8 -*-
# Copyright JS Foundation and other contributors, https://js.foundation/
#
# 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
# ... | mp-coder/translate-dev-tools | esprima/visitor.py | Python | mit | 3,761 | [
"VisIt"
] | 1c1de72ffc6346f98883cd2a63aaa64d1acb70ec085a8bf9bbef25acfe7b69c4 |
#!/usr/bin/env python
#
# denss.align_by_principal_axes.py
# A tool for aligning an electron density map to another electron density
# map based only on alignment of principal axes (no minimization).
#
# Part of DENSS
# DENSS: DENsity from Solution Scattering
# A tool for calculating an electron densi... | tdgrant1/denss | bin/denss.align_by_principal_axes.py | Python | gpl-3.0 | 5,070 | [
"Gaussian"
] | 1e7a5cc6892568a505a319764b00e7b214654bdc78f5b253c19347f8f46c92d1 |
# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-common.
#
# logilab-common is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as publ... | dbbhattacharya/kitsune | vendor/packages/logilab-common/visitor.py | Python | bsd-3-clause | 3,421 | [
"VisIt"
] | e24208c208f4c36ac94a6f47252a2f71f020f7a45254f5b7bf40eb14f6e6abc7 |
#!/usr/bin/env python
__author__ = 'waroquiers'
import unittest
import os
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometry_finder import LocalGeometryFinder
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometries import AllCoordinationGeometries
# from pymatgen.... | xhqu1981/pymatgen | pymatgen/analysis/chemenv/coordination_environments/tests/test_coordination_geometry_finder.py | Python | mit | 5,197 | [
"pymatgen"
] | ed88fa8488d0d1b0995947bf33a8d91a0b533cdd302a8d289c5e8929deba3f94 |
# Copyright 2016-2020 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
#
# or in the "license" f... | Drudenhaus/aws-ec2rescue-linux | ec2rlcore/main.py | Python | apache-2.0 | 64,856 | [
"VisIt"
] | a8c4cdf3e978deaa8407539eacd5d4d9a30e46033f5144162045d49463ffc5ba |
import os
import configparser
import io #We need to emulate a dummy [section] header for
#configparesr to underdstand our config.txt file.
#Some lists of options
options = ['arm_freq', 'gpu_freq', 'core_freq', 'h264_freq',
'isp_freq', 'v3d_freq', 'sdram_freq', 'over_voltage',
'over_voltage_sdram', 'over_v... | Huulivoide/rpiconf | rpiconf.py | Python | bsd-2-clause | 8,518 | [
"VisIt"
] | 707fda4352d4a7abb7df804f9b5bc389fa5656e96c1d5f1110a43b863444c8f2 |
'''
Created on Aug 31, 2012
@author: eric
'''
import unittest
import os.path
import logging
import databundles.util
from testbundle.bundle import Bundle
from databundles.run import RunConfig
from test_base import TestBase
from databundles.client.rest import Rest #@UnresolvedImport
from databundles.library import ... | treyhunner/databundles | test/test_client.py | Python | bsd-3-clause | 4,373 | [
"SIESTA"
] | 60c876ba3cee9f1b6b8db989a6ddfdbb2b30c4c4b040998b10667bc99f47ce86 |
#!/usr/bin/env python
#python 2.7.5
#catcount.py
#Version 1. Adam Taranto, Feb 2017
#Contact, Adam Taranto, adam.taranto@anu.edu.au
#############################################
# Concatenate count tables from HTSeq-count #
#############################################
import csv
import sys
import os
import copy
impo... | Adamtaranto/catcount | catcount.py | Python | mit | 3,773 | [
"HTSeq"
] | 73104eed5d8f2d7b56ebc295193628cdb52828a4b7c9079ef8a1d36c94f80790 |
"""Display the contents of the implementation cache."""
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from __future__ import print_function
from zeroinstall import _
import os
import gtk
from zeroinstall.injector import namespaces, model
from zeroinstall.zerost... | dabrahams/zeroinstall | zeroinstall/gtkui/cache.py | Python | lgpl-2.1 | 22,281 | [
"VisIt"
] | 456ae1542a96329ad93007e8a01cb23c38e781ff8b8a8170b5a05ac754c1fd2d |
# Orca
#
# Copyright 2011. Orca Team.
# Author: Joanmarie Diggs <joanmarie.diggs@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 y... | h4ck3rm1k3/orca-sonar | src/orca/event_manager.py | Python | lgpl-2.1 | 21,739 | [
"ORCA"
] | d9ecf13d9f532c2e4bdee3d649c3e9f69e626769fbc2a128d30dd46bb64e10ba |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RRrblup(RPackage):
"""Ridge Regression and Other Kernels for Genomic Selection
Softwa... | LLNL/spack | var/spack/repos/builtin/packages/r-rrblup/package.py | Python | lgpl-2.1 | 1,071 | [
"Gaussian"
] | 8d4f25a4864477d81a78b50d90c793b08efa84855e9aa87455e7ecbdd591dba7 |
from __future__ import division
import numpy as np
import scipy
from scipy.spatial.distance import cdist
from DensityEstimator import DensityEstimator
from VectorGaussianKernel import VectorGaussianKernel
from multi_flatten import multi_flatten
class WeightedKDE(DensityEstimator):
def __init__(self, d_points, num_... | george-montanez/LICORScabinet | WeightedKDE.py | Python | gpl-2.0 | 5,589 | [
"Gaussian"
] | e9064b6add4878ca582c7096f8f4715f1ed485dedf8e928af4dde312ef214cbf |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/orca/example/learn/bigdl/imageInference/imageInference.py | Python | apache-2.0 | 3,803 | [
"ORCA"
] | 3fe07f7426220306186b252c4c6fe6a9299901f651d217ba05d5dee361e0dcf6 |
#
# Copyright (c) 2008--2017 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | jdobes/spacewalk | backend/server/rhnChannel.py | Python | gpl-2.0 | 70,185 | [
"VisIt"
] | 6a3c6c3f315290e57b96510f06bc517e12dd8fcfa9292953e2cf561fb42b7de6 |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RPreprocesscore(RPackage):
"""A collection of pre-processing functions.
A library ... | rspavel/spack | var/spack/repos/builtin/packages/r-preprocesscore/package.py | Python | lgpl-2.1 | 862 | [
"Bioconductor"
] | 8cb4ce6a35c50e9799afdeb26a37a52c8654c8bb2ac97a693a4be33468811dd8 |
#! /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/python-dataplex | scripts/fixup_dataplex_v1_keywords.py | Python | apache-2.0 | 8,657 | [
"VisIt"
] | ab01d10f87fd5f1074ebfb29a03c15ad3f115fb7714c533e8e7427e393d4adb2 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2013 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundati... | andrebellafronte/stoq | stoqlib/gui/test/test_invoicedialog.py | Python | gpl-2.0 | 2,237 | [
"VisIt"
] | 2e26b290b98470c454a45db5add3d29d950817c3f78cd00564cdad1c5a755dc7 |
#coding=utf-8
import os
import io
import ast
import sys
import logging
import textwrap
import traceback
import collections
from opster import command, dispatch, Dispatcher
AUTO_PRINT = '#+'
def get_markup():
try:
return globals()['__MARKUP__']
except:
return None
def is_interactive():
if... | mortbauer/pylitter | pylitter/__init__.py | Python | mit | 20,027 | [
"VisIt"
] | 77e916c364918e164fcd86532190f1241977de98ebd69f2e16d568d0a67e7783 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import json
import os
import unittest
import numpy as np
import pandas as pd
from pymatgen.io.lammps.outputs import LammpsDump, parse_lammps_dumps, parse_lammps_log
from pymatgen.util.testing import PymatgenTe... | richardtran415/pymatgen | pymatgen/io/lammps/tests/test_outputs.py | Python | mit | 6,719 | [
"LAMMPS",
"pymatgen"
] | 86da33fc1176a08608be3689f01a28fa98b7a9c812b404bdbd22cf31f905c59f |
"""
@name: Modules/House/Lighting/utility.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2019-2020 by D. Brian Kimmel
@note: Created on Jan 20, 2019
@license: MIT License
@summary:
"""
__updated__ = '2020-01-18'
# Import system type stuff
# Import PyMh files
from Mod... | DBrianKimmel/PyHouse | Project/src/Modules/House/Lighting/utility.py | Python | mit | 4,060 | [
"Brian"
] | d48672ce5483e0f3fa2f010608a108f2a317d343a50a2208de9a4aac776bbd57 |
import logging
import cgi
from dirac.lib.base import *
from pylons.controllers.util import redirect_to
import dirac.lib.helpers as helpers
import dirac.lib.credentials as credentials
from dirac.lib.webconfig import gWebConfig
from dirac.lib.webBase import defaultRedirect
from DIRAC import gLogger
log = logging.getLo... | DIRACGrid/DIRACWeb | dirac/controllers/web/userdata.py | Python | gpl-3.0 | 2,381 | [
"DIRAC"
] | 0bf9ddd28356633f4fcfbbd72f502bc13b688be81d299078cb589b2638e1ec21 |
import xmlrpclib
import numpy as np
class ServerProxy(object):
def __init__(self, url):
self._xmlrpc_server_proxy = xmlrpclib.ServerProxy(url)
def __getattr__(self, name):
call_proxy = getattr(self._xmlrpc_server_proxy, name)
def _call(*args, **kwargs):
return call_proxy(arg... | zxjzxj9/MDTools | svrtest/PIclient.py | Python | bsd-3-clause | 1,239 | [
"SIESTA"
] | 189ad5288fcb169da4b32816ad8c8ff067b47fca4e1ddadc9645e4414e1b37c5 |
#!/usr/bin/env python
import unittest
from src.files import File
class TestFile(unittest.TestCase):
def setUp(self):
self.parentfile = File(name="/", parent=None)
self.childfile = File(name="home", parent=self.parentfile)
self.grandchildfile = File(name="brian", parent=self.childfile)
... | bruab/Bashy_Prototype | test/files_tests.py | Python | mit | 807 | [
"Brian"
] | 9780debe73d8e9d77f5ca9e30a5d9cb9b05509a454a877a07a719e00de4f3931 |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/orca/src/bigdl/orca/learn/bigdl/estimator.py | Python | apache-2.0 | 26,477 | [
"ORCA"
] | 6f411a6236de019529d478ec75d478b1cfe8ff3484a9c0f6919ea19963d5dcd2 |
#!/usr/bin/python
#
# 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 b... | wubr2000/googleads-python-lib | examples/adwords/v201506/remarketing/add_rule_based_user_lists.py | Python | apache-2.0 | 5,714 | [
"VisIt"
] | 77cf0ef5c4c8d3c3f468257530d24506f3599df0bc9fdc589d64b0d642da6b23 |
# -*- coding: utf-8 -*-
#from django.shortcuts import render
#from django.views.generic import ListView
from django.utils import timezone
from django.http import HttpResponseRedirect
from django.contrib.auth.decorators import login_required
#from django.utils.translation import ugettext_lazy as _
from feincms.content.a... | indexofire/gork | src/gork/application/ask/views/main.py | Python | mit | 8,076 | [
"Galaxy"
] | 300ab7aede24e3bce6237325b603eef2c55f0d92771fb1feeddbae6701b9496e |
from operator import *
import AST
from Exceptions import *
from Memory import *
from visit import *
operators = {}
operators['+'] = add
operators['-'] = sub
operators['*'] = mul
operators['/'] = div
operators['%'] = mod
operators['|'] = or_
operators['&'] = and_
operators['&&'] = and_
operators['||'] = or_
operators... | PrzemekBurczyk/dalvik-compiler | src/Interpreter.py | Python | mit | 8,180 | [
"VisIt"
] | 354f2853b3eaa265314c685f5edaa67472e5e0144936807547b5843cac8bdda9 |
"""
Set of tools to analyse IRIS spectra.
"""
import numpy as np
import scipy.constants as const
from scipy import interpolate as interp
from scipy import ndimage
from pytp.math.utilsmath import peakdetect_lcl
from pytp.math.utilsfast import peakdetect, replace_nans
# pylint: disable=E1101
def iris_get_spec_features(... | tiagopereira/pytp | pytp/spec/iris_spec.py | Python | bsd-3-clause | 14,352 | [
"Gaussian"
] | 941447a8f228567bf55c91dfd8b9e434e96bdaf154b99548b71e945aaff93d29 |
"""Testing for Gaussian process regression """
# Author: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
# Licence: BSD 3 clause
import numpy as np
from scipy.optimize import approx_fprime
from sklearn.gaussian_process import GaussianProcessRegressor
from sklearn.gaussian_process.kernels \
import RBF, Constan... | kjung/scikit-learn | sklearn/gaussian_process/tests/test_gpr.py | Python | bsd-3-clause | 11,913 | [
"Gaussian"
] | 6e2683ca4cd9aaeac738037d737e76ce18d694de13c521466143f88fba932f6f |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'settings_layout.ui'
#
# Created: Tue Mar 26 12:40:37 2013
# by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Dialog(object):
def setupUi(self, Dial... | singleswitch/ticker | settings_layout.py | Python | mit | 17,669 | [
"Gaussian"
] | eb2db13ebb4447ba262fc260043b7fe3e870ff571649be720a4516271397986f |
'''
* Created by Zhenia Syryanyy (Yevgen Syryanyy)
* e-mail: yuginboy@gmail.com
* License: this code is under GPL license
* Last modified: 2017-08-24
'''
from feff.libs.class_Spectrum import Spectrum, GraphElement, TableData, BaseData
from feff.libs.class_for_parallel_comparison import Model_for_spectra, FTR_gulp_to_f... | yuginboy/from_GULP_to_FEFF | feff/libs/class_FTR_Spectrum_Compare_3_type_Models.py | Python | gpl-3.0 | 10,188 | [
"FEFF"
] | 9bd4ac75f4c3c04c1c211661e4373cc274e0a0a79fec369c48ae0d5711ce9dff |
import os
from uuid import uuid4
from datetime import datetime
from ..helpers import UniqueCourseTest
from ...fixtures.course import CourseFixture, XBlockFixtureDesc
from ...pages.lms.auto_auth import AutoAuthPage
from ...pages.lms.course_nav import CourseNavPage
from ...pages.lms.courseware import CoursewarePage
from ... | antonve/s4-project-mooc | common/test/acceptance/tests/lms/test_lms_edxnotes.py | Python | agpl-3.0 | 40,727 | [
"VisIt"
] | c75a6b5cce2e109b453418bb75fa36c1760a92927d4e61b50b5ceacccb7f0b5a |
# Copyright 2016 CERN. This software is distributed under the
# terms of the GNU General Public Licence version 3 (GPL Version 3),
# copied verbatim in the file LICENCE.md.
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Or... | dquartul/BLonD | blond/plots/plot.py | Python | gpl-3.0 | 11,025 | [
"Gaussian"
] | 400fc717ac5d793d46be28d96ebb3d57b6618bce5d8b6a9a65d9ae6eca506d93 |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# 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.
"""mmCIF parsers"""
from __future__ import print_function
from string import ascii_lette... | zjuchenyuan/BioWeb | Lib/Bio/PDB/MMCIFParser.py | Python | mit | 17,902 | [
"Biopython"
] | a76b937f6c862ce1456ba1eeca1b358ce983829b85b3c711c5036291385e6ea1 |
"""
API operations on annotations.
"""
import logging
from galaxy import web
from galaxy.web.base.controller import BaseAPIController, UsesHistoryMixin, UsesLibraryMixinItems, UsesHistoryDatasetAssociationMixin, UsesStoredWorkflowMixin, UsesExtendedMetadataMixin, HTTPNotImplemented
log = logging.getLogger( __name__ )... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/webapps/galaxy/api/extended_metadata.py | Python | gpl-3.0 | 3,233 | [
"Galaxy"
] | c373dd034fe55b9b79c0e36a80133279cb02e4283d3c3dcdd34b49562a7bc3bf |
"""
Created on Mon Dec 02 2019
@author: Pedram Tavadze
"""
#import pychemia
import xml.etree.ElementTree as ET
from numpy import array
def text_to_bool(text):
"""boolians in vaspxml are stores as T or F in str format, this function coverts them to python boolians """
text = text.str... | MaterialsDiscovery/PyChemia | pychemia/code/vasp/xml_output.py | Python | mit | 12,302 | [
"CRYSTAL",
"VASP"
] | 32bd72a3063cafe51d1fb40c1b6fbf453ae88d6a9aec434a566b7f88afaf5949 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | resources/pyinstaller/hook-openlp.plugins.presentations.presentationplugin.py | Python | gpl-2.0 | 2,323 | [
"Brian"
] | b59c3b7b9e19365caa2e6d4c4329a526f86ab6b6a42e993095acf61fedb5a43e |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkExtractSelectedLocations(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | nagyistoce/devide | modules/vtk_basic/vtkExtractSelectedLocations.py | Python | bsd-3-clause | 522 | [
"VTK"
] | 54f0acfe8f227c79306ef5270c6b40ddc205f0b86110a4e53b92641aa128edc8 |
r"""
The transient advection-diffusion equation with a given divergence-free
advection velocity.
Find :math:`u` such that:
.. math::
\int_{\Omega} s \pdiff{u}{t}
+ \int_{\Omega} s \nabla \cdot \left(\ul{v} u \right)
+ \int_{\Omega} D \nabla s \cdot \nabla u
= 0
\;, \quad \forall s \;.
View the re... | vlukes/sfepy | examples/diffusion/time_advection_diffusion.py | Python | bsd-3-clause | 1,739 | [
"VTK"
] | a8d82a42cf1404fe43963ab216337898f3784d9445ef3e2973eb58672dc0a722 |
# Copyright 2012-2014 Brian May
#
# This file is part of python-tldap.
#
# python-tldap is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | brianmay/python-tldap-debian | tldap/django.py | Python | gpl-3.0 | 1,882 | [
"Brian"
] | 40513e6f35b75487d223367a4d70cd78c86c83f32995375ad9abdfc5056d4ebe |
# 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 | mol_dqn/chemgraph/dqn/py/molecules_test.py | Python | apache-2.0 | 3,310 | [
"RDKit"
] | 21ad5963c7cebee1abd41a02fbd965051d797e0a2326c9622fdee61a9a935fdf |
#!/usr/bin/env python
__author__ = 'Danelle Cline'
__copyright__ = '2016'
__license__ = 'GPL v3'
__contact__ = 'dcline at mbari.org'
__doc__ = '''
Utility class to convert netCDF4 to netCDFs in a format compatible with STOQs loading.
This basically captures the independently sampled variables captured in the L... | danellecline/stoqs | stoqs/loaders/CANON/toNetCDF/lrauvNc4ToNetcdf.py | Python | gpl-3.0 | 33,496 | [
"NetCDF"
] | d9ecb3a9184d916a13bd751a47fbde9dd9a12ffc965d90d8145df743d10727d0 |
#!/usr/bin/env python
"""droplet.py: Routines for working with the CO2-IL droplet XYZ
files."""
from __future__ import print_function
import os
from glob import glob
from itertools import count
from itertools import cycle
from math import sqrt
import numpy as np
from sympy import S
import periodictable
import mbe
... | berquist/mbe | mbe/examples/droplet.py | Python | mpl-2.0 | 30,616 | [
"Open Babel",
"Q-Chem",
"cclib"
] | adcb802eb9804799cd31a38c856aec683666498092d355f12c5b49e437375f5d |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
# Legal Notice
# ------------
# OPENFOAM is a trademark owned by OpenCFD Ltd
# (producer and distributor of the OpenFOAM s... | rspavel/spack | var/spack/repos/builtin/packages/openfoam-org/package.py | Python | lgpl-2.1 | 15,258 | [
"ParaView"
] | ac1f0bc4fe7a1eed2ad7a0aab3e9d216353230dac11cdd2bfe7da2513853cea4 |
# This file contains waf optimisations for Samba
# most of these optimisations are possible because of the restricted build environment
# that Samba has. For example, Samba doesn't attempt to cope with Win32 paths during the
# build, and Samba doesn't need build varients
# overall this makes some build tasks quite a ... | abartlet/samba | buildtools/wafsamba/samba_optimisation.py | Python | gpl-3.0 | 8,773 | [
"VisIt"
] | 79422bf253a09d6311564f526c1982118aaae58d69ed63d5a859f16ef420717d |
"""
================================
Workshop: Dartmouth College 2010
================================
First lets go to the directory with the data we'll be working on and start the interactive python interpreter
(with some nipype specific configuration). Note that nipype does not need to be run through ipython - it i... | rameshvs/nipype | examples/workshop_dartmouth_2010.py | Python | bsd-3-clause | 9,842 | [
"VTK"
] | 0792ebc0c2ff6e387fa9f3771deebaac8e0fd843d12f65a9bbc7ea37e46c2a1c |
# coding=utf-8
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | google/grumpy | compiler/stmt.py | Python | apache-2.0 | 31,128 | [
"VisIt"
] | 2cd12362085a37d8a4ef8f24c7b3ddd62cfb87784be368d780f35a1f4b6e47e2 |
#!/usr/bin/env python
###
### Animation example: http://matplotlib.org/examples/animation/dynamic_image.html
###
from pylab import *
import matplotlib.animation as animation
interpolation='nearest'
#interpolation='gaussian'
#interpolation=None
#cmap=plt.get_cmap('bwr')
#cmap=plt.get_cmap('seismic_r')
cmap=plt.get_cma... | drgulevich/microLLG | anim.py | Python | gpl-3.0 | 2,478 | [
"Gaussian"
] | 4abafcf0038528cc8ceaf61552023ac3d28cedcadf3e9fc29d65198419d19449 |
# -*- coding: utf-8 -*-
# 已知bug 必须先行引入这两个库,否则会报错
import numpy
import matplotlib.image as mpimg
import sys
import tensorflow as tf
from tensorflow.python import control_flow_ops
import math
import os
import csv
from tqdm import tqdm
# 读取数据
import input_data
# 设置gpu使用数量
tf.app.flags.DEFINE_integer("num_gpus", 2, "How... | ryukinkou/ladder_customized | ladder_customized_tf/ladder.py | Python | mit | 15,125 | [
"Gaussian"
] | d1d24febed9b80a8a816c39ff063ef296bb6a7d852e83416e8448c22f7cdfd5a |
#!/usr/bin/env python3
# ver 0.1 - copy from rdf_itf.py (v0.1) and modify codes on 2/3/2018
import argparse
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
description='calculation scaling of Ree of single chain')
## args
parser.add_argument('-i', '--input', default... | jht0664/Utility_python_gromacs | python/scaling_ree.py | Python | mit | 5,304 | [
"MDAnalysis"
] | 838a8cfc14ef2527f4effc43c8374f96f6e98ebafe4ea6356e4536cde80f7092 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# create tensor ellipsoids
# Create the RenderWindow, Renderer and interactive renderer
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
iren = vtk.v... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Filters/Extraction/Testing/Python/ExtractTensors.py | Python | gpl-3.0 | 2,970 | [
"VTK"
] | a9b1bd7514a719514a6ca78d6ee3fb2817ecf785ef56cb3f3408e792972f6cf0 |
#!/usr/bin/env python
# This simple example shows how to render a very large image (i.e.
# one that cannot fit on the screen).
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# We'll import some data to start. Since we are using an importer,
# we've got to give it a render window... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Examples/Rendering/Python/RenderLargeImage.py | Python | gpl-3.0 | 1,468 | [
"VTK"
] | dc782529f10359979983681dd4120215d7590300d9770b4fc91c25dcc666ac65 |
# flake8: noqa E122
# 2^16 English wordlist. Derived from
# https://github.com/diracdeltas/niceware/blob/master/lib/wordlist.js
# which in turn, is derived from
# http://www-01.sil.org/linguistics/wordlists/english/.
# Originally compiled for the Yahoo End-to-End project.
# https://github.com/yahoo/end-to-end
WORD_LI... | moreati/python-niceware | niceware/wordlist.py | Python | mit | 804,814 | [
"Amber",
"Avogadro",
"BLAST",
"Brian",
"CASINO",
"CRYSTAL",
"ESPResSo",
"Elk",
"Firefly",
"GULP",
"Galaxy",
"Jaguar",
"MOOSE",
"NEURON",
"ORCA",
"SIESTA",
"TINKER",
"VisIt",
"exciting"
] | 6c5806b51e4462817039ca71152344bd830075075873fa551bfa7107db58cc29 |
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""The fsl module provides classes for interfacing with the `FSL
<http://www.fmrib.ox.ac.uk/fsl/index.html>`_ command line tools. This
was written to work with FSL version 4.1.4.
E... | carolFrohlich/nipype | nipype/interfaces/fsl/utils.py | Python | bsd-3-clause | 85,154 | [
"Gaussian",
"VTK"
] | 24919461526849a1b87fe0c6317a522faec6dce847069e6d0460c374f3be3d36 |
"""
Copyright (c) 2013-2014 Benedicte Ofstad
Distributed under the GNU Lesser General Public License v3.0.
For full terms see the file LICENSE.md.
"""
"""
Module for reading DALTON input
The functions of this module is:
read_mol_quad(filename, nm)
read_magnet(filename, nm)
def read_polari(filename, nm)
def read_s... | Benedicte/vibrational_motion | read_input.py | Python | lgpl-3.0 | 37,852 | [
"Dalton"
] | 9b77c9196cd22c7c87ebfdff5f71dc30347047b2a417049fb2c5a6aa89614139 |
# Copyright 2020 The GPflow Contributors. 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... | GPflow/GPflow | gpflow/quadrature/base.py | Python | apache-2.0 | 5,025 | [
"Gaussian"
] | ff662a36d0e0ad6f53bdd65677d0eec79f1eec9f617a186a17329f98b886e0d1 |
# Copyright (c) Charl P. Botha, TU Delft.
# All rights reserved.
# See COPYRIGHT for details.
import cStringIO
from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor
import wx
# wxPython 2.8.8.1 wx.aui bugs severely on GTK. See:
# http://trac.wxwidgets.org/ticket/9716
# Until this is fixed, use th... | chrisidefix/devide | modules/viewers/SkeletonAUIViewerFrame.py | Python | bsd-3-clause | 6,877 | [
"VTK"
] | 356263091d9c466fe11e79ef6f969b48e9be1c0fd8e43a0fe7717bddd9b8ad9c |
#!/usr/bin/python
from multiprocessing import Pool
import time
import os
import sys
import argparse
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.Alphabet import IUPAC
from Bio.SeqUtils import GC
from Bio.SeqRecord import SeqRecord
#from Bio.Seq import Seq
#from Bio.Alphabet import generic_dna
# Copyright(C)... | nguyenngochuy91/Ancestral-Blocks-Reconstruction | format_db1.py | Python | gpl-3.0 | 12,782 | [
"BLAST"
] | 71a91fd3ffb64e6654087a4aeb3618a0f4a4e60f8a3694e36fd11b29234dfc9d |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# TAMkin is a post-processing toolkit for normal mode analysis, thermochemistry
# and reaction kinetics.
# Copyright (C) 2008-2012 Toon Verstraelen <Toon.Verstraelen@UGent.be>, An Ghysels
# <An.Ghysels@UGent.be> and Matthias Vandichel <Matthias.Vandichel@UGent.be>
# Center ... | molmod/tamkin | tamkin/examples/014_pentane_mbh/thermo.py | Python | gpl-3.0 | 3,015 | [
"Gaussian"
] | 7dbf4d37873a5e42d6125b9d1c32b499fc68ec485e1f7dfadcd2ec65d68921ab |
"""Group velocity calculation."""
# Copyright (C) 2013 Atsushi Togo
# All rights reserved.
#
# This file is part of phonopy.
#
# 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 re... | atztogo/phonopy | phonopy/phonon/group_velocity.py | Python | bsd-3-clause | 10,970 | [
"phonopy"
] | 472bdc52deb07e1756b2fa0026bfa7407d24e7ba62113ddba7fbb09ccc1fbb9f |
# Copyright (C) 2003-2005 Peter J. Verveer
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following d... | person142/scipy | scipy/ndimage/filters.py | Python | bsd-3-clause | 51,486 | [
"Gaussian"
] | d999dcdaed3be1df9c8145b456797327cc03685ca2f34c42f774bd9692a3acc3 |
import unittest
from util import meanclip
import numpy as np
class TestMeanclip(unittest.TestCase):
"""
Generate 1000 gaussian normal numbers with three outliers. Check
that meanclip does the right thing
"""
def testSimple(self):
mu = 100
sig = 10
s = np.random.normal(mu, s... | bmazin/ARCONS-pipeline | util/test/TestMeanClip.py | Python | gpl-2.0 | 893 | [
"Gaussian"
] | 71355dd4f86e891fd330cc800d7fda8351c64545bc1b4ed6ea2a8b00654216e7 |
"""
A script to convert the drosophila connectome into SpineML
This build upon the pure data to add in the required infered network components:
# Install libSpineML from source
# https://github.com/AdamRTomkins/libSpineML
"""
from __future__ import division
from libSpineML import smlExperiment as exp
from libSpine... | AdamRTomkins/libSpineML | libSpineML/examples/neuroarch_example/spineml/create_executable_drosophila_network.py | Python | gpl-3.0 | 6,554 | [
"NEURON"
] | 741e20e246750cf6b60209c2b81850194f83025f9fb66db43881d7000a29d1b5 |
"""
Implementation of logistic regression for chapter 3 of "Python Machine Learning".
This is adapted from chapter 2's implementation of ADAptive LInear NEuron (Adaline).
"""
import numpy as np
def homegrown_lr(observations, labels, learning_rate=0.02, max_training_iterations=100):
"""
Trains a (binary) perce... | krosaen/ml-study | python-ml-book/ch03/homegrown_lr.py | Python | mit | 2,141 | [
"NEURON"
] | f25898b6da31d97d48a12ce8d10fd388171cf3eb4fa5c8f69b601676765a4461 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
setup.py
~~~~~~~~
installation script
:copyright: (c) 2013-2015 by Jauhien Piatlicki
:copyright: (c) 2014 by Brian Dolbec
(code for conditional module installation
is taken from the layman project)
:lice... | jauhien/g-sorcery | setup.py | Python | gpl-2.0 | 1,194 | [
"Brian"
] | 171ad94183d6f77c4f252d0a117df54a65dc38732026058b1207fb325ef09b96 |
""" Helper for /Registry section
"""
import errno
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Utilities import DErrno
from DIRAC.ConfigurationSystem.Client.Config import gConfig
from DIRAC.ConfigurationSystem.Client.Helpers.CSGlobals import getVO
__RCSID__ = "$Id$"
# pylint: disable=missing-docstring
gBaseRegis... | chaen/DIRAC | ConfigurationSystem/Client/Helpers/Registry.py | Python | gpl-3.0 | 13,634 | [
"DIRAC"
] | 2692948660ac2b5035ee06fd09aa995f53b1cf5239bcff722bdc24f2ba573a1c |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# For UTF-8 see: http://www.python.org/dev/peps/pep-0263/
# PYTHONIOENCODING=utf_8
# Copyright 2015 Actian Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You m... | ActianCorp/dbmv | bin/dbmv.py | Python | apache-2.0 | 94,490 | [
"ASE"
] | 8adc3f3a4ebee99cfd8f71beb6c988c911bf0ec81aeb6af5d79898395ee72e88 |
# -*- coding: utf-8 -*-
#
# test_growth_curves.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... | drodarie/nest-simulator | pynest/nest/tests/test_sp/test_growth_curves.py | Python | gpl-2.0 | 15,637 | [
"Gaussian"
] | aedfd719f48eeb3a45d962da39d8383653c89334b1345a85e5188cf70ba1380e |
"""Standalone Python tool which lets you preview TrueType fonts as they would be
rendered on a pinball DMD."""
# font_tester.py
# Mission Pinball Framework
# Written by Brian Madden & Gabe Knuth
# Released under the MIT License. (See license info at the end of this file.)
# Documentation and more info at http://missi... | jabdoa2/mpf | tools/font_tester.py | Python | mit | 12,828 | [
"Brian"
] | d1e1eb0b3913ce29ac84b6d3d68901154b17867e9db869d2f5cda9faf99a18cf |
#!/usr/bin/env python2.6
"""
Tue Nov 27 14:50:38 PST 2012
Parse blastclust output files and call the different cluster types.
This is applied in searching for similar (but not identical) clones to the expanded clones.
The input blast was done on the top clones of each patients:
For each V-J recombination:
Blast t... | ngannguyen/immunoseq | src/clusterType_blastclust.py | Python | mit | 11,873 | [
"BLAST"
] | 025d794255e063730197be7f95a0862d4cde7bc303f0c20d532aadb4d17912b0 |
##############################################################################
# adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD)
# Simulations on HPC Resources
# Copyright 2017 FU Berlin and the Authors
#
# Authors: Jan-Hendrik Prinz
# Contributors:
#
# `adaptiveMD` is free software: ... | jrossyra/adaptivemd | adaptivemd/event.py | Python | lgpl-2.1 | 7,626 | [
"MDTraj"
] | 9f48d4024470ac5837641f40aed5d5fa802df74824d19fd5e85d869631d7985b |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016-2017 Bitergia
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This ... | sduenas/perceval | perceval/backends/core/stackexchange.py | Python | gpl-3.0 | 10,117 | [
"VisIt"
] | b14796107d139f6004e53cf3ea093d13b3ac24b4a77c7fd0ed85550eb28be465 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Brian Coca <bcoca@ansible.com>
# (c) 2017, Adam Miller <admiller@redhat.com>
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__m... | pilou-/ansible | lib/ansible/modules/system/sysvinit.py | Python | gpl-3.0 | 13,409 | [
"Brian"
] | 8540b1cb277ef6b9b2e28f5add608acfcdb3030a210d8d84c64ec02c235b4c12 |
import threading
import os
import functools
import sublime
from .show_error import show_error
from .console_write import console_write
from .unicode import unicode_from_os
from .clear_directory import clear_directory, delete_directory, clean_old_files
from .automatic_upgrader import AutomaticUpgrader
from .package_ma... | herove/dotfiles | sublime/Packages/Package Control/package_control/package_cleanup.py | Python | mit | 19,285 | [
"VisIt"
] | dc618a8624443b86f3d27d7d53fe2aecd1a1c4bf7b5adf171838a0f3d5d3289c |
# Copyright 2019 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/rlax | rlax/_src/distributions.py | Python | apache-2.0 | 15,076 | [
"Gaussian"
] | a66f2686fa5e409200901f0c1312acd4486b321621ebd2718c6b429281034085 |
#!/usr/bin/env python
#20-11-2017
#Authors:Sebastian ECHEVERRI RESTREPO,
# sebastian.echeverri.restrepo@skf.com, sebastianecheverrir@gmail.com
# James EWEN
# j.ewen14@imperial.ac.uk, jimmyewen@gmail.com
#################################################################################3
# This file generates all... | JE1314/LAMMPS_builder | root/lopls.py | Python | gpl-3.0 | 49,103 | [
"LAMMPS"
] | 0ec2fb3f638777031ebe17f36b365ec3737c51531c424070bff25b9d6e27e5cc |
#
# QAPI event generator
#
# Copyright (c) 2014 Wenchao Xia
# Copyright (c) 2015-2016 Red Hat Inc.
#
# Authors:
# Wenchao Xia <wenchaoqemu@gmail.com>
# Markus Armbruster <armbru@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2.
# See the COPYING file in the top-level directory.
from qa... | J-Liu/qemu | scripts/qapi-event.py | Python | gpl-2.0 | 5,702 | [
"VisIt"
] | 7bd96bb70a7612c2a038313157e2aa106d3a09c693ffb122437185358ffc2acd |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'vizParasDialogue.ui'
#
# Created: Thu May 19 00:20:13 2011
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!
#Author:Chaitanya CH
#FileName: vizParasDialogue.py
#This program is free software... | BhallaLab/moose-thalamocortical | pymoose/gui/qt/vizParasDialogue.py | Python | lgpl-2.1 | 15,864 | [
"MOOSE"
] | 372a06d645755aa6a21437babda06d43ffb405950590e1f343c0767cae1a3a5c |
from __future__ import annotations
import copy
import logging
import os
import dxtbx.model
import libtbx.phil
from cctbx.miller import map_to_asu
from rstbx.cftbx.coordinate_frame_helpers import align_reference_frame
from scitbx import matrix
from dials.array_family import flex
from dials.util import Sorry
from dial... | dials/dials | util/export_xds_ascii.py | Python | bsd-3-clause | 9,243 | [
"CRYSTAL"
] | 953540117dfdf41ca2a0723315204fd237531004f396eb7b143500660f265f29 |
#!/usr/bin/env python
"""
register DCommands session environment variables
"""
import os
from COMDIRAC.Interfaces import critical
from COMDIRAC.Interfaces import DSession
if __name__ == "__main__":
import sys
from DIRAC.Core.Base import Script
Script.setUsageMessage( '\n'.join( [ __doc__.split( '\n' )[1],
... | pigay/COMDIRAC | Interfaces/scripts/dsetenv.py | Python | gpl-3.0 | 1,274 | [
"DIRAC"
] | ccda6e737735efd0a5dd9271a1f3fec1f67ce97ff113c7d562e2a304906e4d80 |
"""HTML character entity references."""
# maps the HTML entity name to the Unicode code point
name2codepoint = {
'AElig': 0x00c6, # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
'Aacute': 0x00c1, # latin capital letter A with acute, U+00C1 ISOlat1
'Acirc': 0x00c2, # latin capi... | technologiescollege/Blockly-rduino-communication | scripts_XP/Lib/html/entities.py | Python | gpl-3.0 | 75,243 | [
"Bowtie"
] | 2e10df5a59f46c50814d424f21e20512e3430bb40af1576a688c6c83776c3b70 |
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | gkc1000/pyscf | pyscf/df/test/test_addons.py | Python | apache-2.0 | 2,911 | [
"PySCF"
] | 93d1b56f5607b666df616251e670170c848d7449d5d46e0b293f160c48f8486c |
"""
PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net)
Copyright (C) 2004-2020 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved,
Brett G. Olivier (bgoli@users.sourceforge.net)
Triple-J Group for Molecular Cell Physiology
Stellenbosch University, South Africa.
Permission to us... | bgoli/pysces | pysces/core2/PyscesCore2Modules.py | Python | bsd-3-clause | 24,562 | [
"PySCeS"
] | 20b409d0ebeb896d21427019e1054a7356c2c3b01d7aca1cb4f9cc0a77cdb39e |
# -*- coding: utf-8 -*-
# Copyright 2014 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from __future__ import with_statement
import os.path
import re
import time
import sys
import lxml.etree
import lxml.html
from lxml.csss... | bmcculley/splinter | splinter/driver/lxmldriver.py | Python | bsd-3-clause | 14,070 | [
"VisIt"
] | e6ac5a9621967f465e6c91f25eb6524d555c274d941c441402b7341727544350 |
from ase.md.velocitydistribution import MaxwellBoltzmannDistribution
from ase.lattice.cubic import FaceCenteredCubic
atoms = FaceCenteredCubic(size=(50,50,50), symbol="Cu", pbc=False)
print "Number of atoms:", len(atoms)
MaxwellBoltzmannDistribution(atoms, 0.1)
temp = atoms.get_kinetic_energy() / (1.5 * len(atoms))
p... | grhawk/ASE | tools/ase/test/maxwellboltzmann.py | Python | gpl-2.0 | 395 | [
"ASE"
] | b3c0690aee2569dee290559ff4bbaafc49581ae77da8382e7f3371fbc8aab0cd |
# region gplv3preamble
# The Medical Simulation Markup Language (MSML) - Simplifying the biomechanical modeling workflow
#
# MSML has been developed in the framework of 'SFB TRR 125 Cognition-Guided Surgery'
#
# If you use this software in academic work, please cite the paper:
# S. Suwelack, M. Stoll, S. Schalck, N.Sch... | CognitionGuidedSurgery/msml | examples/BunnyExample/bunny.py | Python | gpl-3.0 | 2,784 | [
"VTK"
] | 293316364fb1860f729b3252acb5b7dc8f658c2ed4de72f6b5ac67692a396de8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.