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 |
|---|---|---|---|---|---|---|---|
from __future__ import annotations
import math
import warnings
from collections import namedtuple
import numpy as np
from numpy import (isscalar, r_, log, around, unique, asarray, zeros,
arange, sort, amin, amax, atleast_1d, sqrt, array,
compress, pi, exp, ravel, count_nonzero, si... | grlee77/scipy | scipy/stats/_morestats.py | Python | bsd-3-clause | 129,046 | [
"Gaussian"
] | f640fb487a44eb759cafcc5ddfceec0c91a85c8999db419e7963608403c46c32 |
##
# Copyright 2013 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# Flemish Research Foundation (FWO)... | wpoely86/easybuild-easyblocks | easybuild/easyblocks/c/cblas.py | Python | gpl-2.0 | 3,584 | [
"GPAW"
] | 59c9f3b135f9cbad268579c7b79d415517b3184a5e04216f030e1bd2f3cbdce6 |
#!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 1: Fundamental Algorithms
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2013 by Jeff Heaton
Licensed under the Apache License, Version 2... | PeterLauris/aifh | vol1/python-examples/examples/example_anneal_disc_knapsack.py | Python | apache-2.0 | 5,367 | [
"VisIt"
] | ba0f4d4b123c2470aefc4fe728495644ede0e736c9d67ae41e21a7c8542c3cf4 |
# pylint: disable=C0111
# pylint: disable=W0621
from __future__ import absolute_import
import time
from lettuce import world, step
from lettuce.django import django_url
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from student.models import CourseEnrollment
from xmodule.mo... | carsongee/edx-platform | lms/djangoapps/courseware/features/common.py | Python | agpl-3.0 | 7,839 | [
"VisIt"
] | 96dffe379bc23a1e0c82553cd55f98d69b130e6debf402d87f996c788bd052f8 |
# Copied and modified from DLWP-CS/DLWP/remap
#
# Copyright (c) 2019 Jonathan Weyn <jweyn@uw.edu>
#
# See the file LICENSE for your rights.
#
"""Tools for remapping on cubed-sphere coordinates from DLWP-CS.
Modified slightly to work inside Google's infrastructure.
"""
import os
import subprocess
from typing import Dic... | google-research/heatnet | remap/cubed_sphere.py | Python | gpl-3.0 | 15,874 | [
"NetCDF"
] | f1336ab681353ef02fc2b693395f07f5d32e7dd2544b309bfc9f376c7b4ab4b0 |
<<<<<<< HEAD
<<<<<<< HEAD
import unittest
from test.support import (verbose, refcount_test, run_unittest,
strip_python_stderr, cpython_only)
from test.script_helper import assert_python_ok, make_script, temp_dir
import sys
import time
import gc
import weakref
try:
import threading
exce... | ArcherSys/ArcherSys | Lib/test/test_gc.py | Python | mit | 100,469 | [
"VisIt"
] | ef04e25224655cb17b51f9dfa038ec9e79568fdcb3fd8d087b7a5e919c6994f1 |
from scipy.ndimage import filters
from PIL import Image
#from numpy import *
from pylab import *
def Gausian_response(img,sigma=1):
""" Compute Gaussian response function
for each pixel in a graylevel image. """
# Gausian response
img_sigma = zeros(img.shape)
filters.gaussian_filter(img, (... | wasit7/cs634 | 2016/lab3_graffiti.py | Python | bsd-2-clause | 1,111 | [
"Gaussian"
] | 1cfcefc31d06f72d9886f61f50a11512f25ce6750f5b788a8ccfae7c7f112910 |
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
import decimal
import os
import pytest
from django.core.urlresolve... | suutari/shoop | shuup_tests/browser/admin/test_order_creator.py | Python | agpl-3.0 | 11,794 | [
"VisIt"
] | 533ae93dae99aee74e21546f59b326e2a80520e64e4fbd478681ba90be8cd10e |
# (C) British Crown Copyright 2011 - 2018, Met Office
#
# This file is part of cartopy.
#
# cartopy is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option)... | pelson/cartopy | setup.py | Python | lgpl-3.0 | 15,098 | [
"NetCDF"
] | e9500fdef5cb9ae4373bdf10bd64651c6c816f5d379fa7aed16de634364eaf8b |
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
ImageAppendComponents()
| jeromevelut/Peavip | Testing/ImageAppendComponents.py | Python | gpl-3.0 | 134 | [
"ParaView"
] | 6276bbac8d99bdd0dcc59c4ddc5a77dff227426fe812af31ab7528588127f60a |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | pli3/e2-openwbif | plugin/controllers/views/ajax/providers.py | Python | gpl-2.0 | 5,482 | [
"VisIt"
] | 7112a0902984d2c67d4b5c9d3180b8cc5fb7722e6d732af23ec9d8c52168db08 |
from setuptools import setup
setup(
name = "cd_perf_promotion",
version = "1.0.0",
description = "Evaluate and promote builds on a CI/CD platform based on performance",
author = "Jared Petersen",
author_email = "Jared.Petersen@cdk.com",
url = "https://github.com/CDKGlobal/cd-perform... | CDKGlobal/cd-performance-promotion | setup.py | Python | mit | 697 | [
"CDK"
] | 2441516248d2b22a283728da4de99416075e3e4b9f606e445104afa635da6efe |
#
# Copyright (C) 2013-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | fweik/espresso | testsuite/python/dpd.py | Python | gpl-3.0 | 13,128 | [
"ESPResSo"
] | 0d4ec0e3f10f478b7ffd270bba84590b2fae8050014b4c2e81c87656e6f3e371 |
# fig)a2.py ---
#
# Filename: fig)a2.py
# Description:
# Author:
# Maintainer:
# Created: Thu Jun 27 12:06:52 2013 (+0530)
# Version:
# Last-Updated: Sun Jun 25 15:09:51 2017 (-0400)
# By: subha
# Update #: 31
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
# ... | BhallaLab/moose | moose-examples/traub_2005/py/fig_a2_fs.py | Python | gpl-3.0 | 3,458 | [
"MOOSE"
] | a68d92a6aa9f34ba7dc3d41dec2c6f085acc6da0fb7fa5c91fc6d66bb99df657 |
import tensorflow as tf
import numpy as np
from abc import ABCMeta, abstractmethod, abstractproperty
class LayerBase(object, metaclass=ABCMeta):
@abstractmethod
def forward_op(self, a):
'''Must be implemented in base classes; a single feedforward step'''
pass
@property
def weights(sel... | davidroeca/kaggle | tf_utils/network_defs.py | Python | gpl-3.0 | 8,751 | [
"NEURON"
] | 87c8491e5795ae4d83de8ee36a54363ff294ca9b871793f752e6a47d62adf5b1 |
import sys
sys.path.append("../")
import numpy as np
from netcdf import netcdf as nc
from core import show
from datetime import datetime
def rmse(root, index):
times = [ datetime.utcfromtimestamp(int(t)) for t in nc.getvar(root, 'time')[:] ]
days = [ t.date() for t in times ]
days.sort()
days_index = [d.day for d ... | ahMarrone/solar_radiation_model | models/error.py | Python | mit | 4,967 | [
"NetCDF"
] | 8bc739092a6f340e4bf64ead9bab40b0d9e1757fd8f08dca42f8190b039aa136 |
"""
Test for arithmetic simplifier module.
Right now this part is done by sympy, which we relatively trust.
"""
import unittest
import ast
from sspam import arithm_simpl
from sspam.tools import asttools
class TestArithSimplifier(unittest.TestCase):
"""
Tests for arithm_simplifier function.
"""
def... | quarkslab/sspam | tests/test_arithm_simpl.py | Python | bsd-3-clause | 1,804 | [
"VisIt"
] | 02d627d949fd85a44ef328c1fe8f15553572bb06704d3c29f9b4fae5f9379fa5 |
""" DIRAC.ResourceStatusSystem.PolicySystem package
"""
| DIRACGrid/DIRAC | src/DIRAC/ResourceStatusSystem/PolicySystem/__init__.py | Python | gpl-3.0 | 56 | [
"DIRAC"
] | bfc8c36029e16d69fda8750d62bc5aae42c747e481f1e52c30d00432ec7c5cb5 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | kain88-de/mdanalysis | testsuite/MDAnalysisTests/test_units.py | Python | gpl-2.0 | 4,670 | [
"Gromacs",
"MDAnalysis"
] | 6a212b55573340e183ed19c674494edccc42e05346411655618774e6f4d5b697 |
import sys
from ase import Atoms, Atom
from ase.parallel import parprint
from gpaw import GPAW
from gpaw.test import equal
from gpaw.utilities.timing import Timer
from gpaw.xc.hybrid import HybridXC
timer = Timer()
loa = Atoms('Be2',
[(0, 0, 0), (2.45, 0, 0)],
cell=[5.9, 4.8, 5.0])
loa.cente... | robwarm/gpaw-symm | gpaw/test/exx_unocc.py | Python | gpl-3.0 | 1,732 | [
"ASE",
"GPAW"
] | 085d67ef94e762171b31d48b9eeb7dd4fb4522fb04f6c51da8d2a1640151f43a |
from java.util import HashMap
def setupFilters():
filters = ['u','g','r','i','z','y']
vars = HashMap()
i = 0
for filter in filters:
vars.put("FILTER",filter)
visits = []
f = open(SLAC_SCRIPT_LOCATION+"/"+VISIT_FILE)
for line in f.readlines():
dir,visit,f = line.split()
... | LSSTDESC/ReprocessingTaskForce | workflows/CFHT/SN/CFHTLSWorkflow.py | Python | gpl-2.0 | 1,233 | [
"VisIt"
] | ffb43ccb8f8a54f4477788e28bfa78bbb5f64a073971fc9a847bb6c0e8584275 |
#!/usr/bin/env python3.4
##
## ONE-TIME SYNC
## ==============
## (A one-time pad encryption for cloud services)
##
## By Nicolai Lang
## Run as >> python3 ./otpsync.py
## Modules
import sys
import os.path
import os
import imp
import re
from subprocess import call
import datetime
from os.path import expanduser
import ... | NcLang/OTPsync | otpsync.py | Python | mit | 23,583 | [
"VisIt"
] | 97e6161e88c5aa54215c5b22ba250902741ab359eb9b7ae59cbb58584c8d2003 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | pli3/Openwebif | plugin/controllers/views/web/currenttime.py | Python | gpl-2.0 | 4,988 | [
"VisIt"
] | 4ac6cdb94b8a0132bd643a41702484c77f87c94364543f7fd16f8c5f497b5bb9 |
# import numpy as np
import pandas as pd
from sklearn import mixture
print("gmm test start")
if __name__ == '__main__':
# 读取excel数据
dataframe = pd.read_excel("fengsu.xlsx")
# dataArray = np.array(dataArray).reshape(1, -1)
# dataArray = dataframe[["风速", "功率"]]
dataArray = dataframe[["风速"]]
pri... | 286897655/xhh_data_process | xhhPython/gmmxhh.py | Python | mit | 904 | [
"Gaussian"
] | bcde116bd9a20e87c22b2c80633515e7538e7be419990018ad455fe3943b1e6f |
import ast
class CodeAnalyzer(ast.NodeVisitor):
def __init__(self):
self.loaded = set()
self.stored = set()
self.deleted = set()
def visit_Name(self, node):
if isinstance(node.ctx, ast.Load):
self.loaded.add(node.id)
elif isinstance(node.ctx, ast.Store):
... | tuanavu/python-cookbook-3rd | src/9/parsing_and_analyzing_python_source/example1.py | Python | mit | 800 | [
"VisIt"
] | 72a800c72d3a59f4ad911672d2259539f3e70b75a5d49dc89b070be5bcdf1239 |
# forms.py
from django import forms
from .models import Client
class ClientForm(forms.ModelForm):
startdate = forms.DateField(required=False)
enddate = forms.DateField(required=False)
def clean_duration(self):
data = self.cleaned_data['duration']
if data <= 0:
raise forms.Vali... | dwagon/Scheduler | scheduler/client/forms.py | Python | gpl-2.0 | 1,340 | [
"VisIt"
] | e9282ca9b71f46c76266c155d40943bd239ebfe6f97ac0c082d8037de7158878 |
#
# 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 us... | RyanSkraba/beam | sdks/python/apache_beam/transforms/ptransform.py | Python | apache-2.0 | 35,767 | [
"VisIt"
] | 963a63b8c95b1d8cad9c42c1764cd8559cd73d9d3d3306a90e124451bb130a27 |
# Orca
#
# Copyright 2016 Igalia, S.L.
# Author: Joanmarie Diggs <jdiggs@igalia.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 opt... | GNOME/orca | src/orca/scripts/terminal/braille_generator.py | Python | lgpl-2.1 | 1,339 | [
"ORCA"
] | ef17c6123298baf659b1fb6d3a8a2a608b9a7127cb150e23818f476d92e101c7 |
# Copyright (c) 2012 Spotify AB
#
# 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 writing, s... | linearregression/luigi | setup.py | Python | apache-2.0 | 2,810 | [
"VisIt"
] | a882dbd1868e10620d312e1c9262e4848d0c8fcf359d1f7ef09a47b850f10a7d |
# -*- coding: utf-8 -*-
"""
sphinx.writers.manpage
~~~~~~~~~~~~~~~~~~~~~~
Manual page writer, extended for Sphinx custom nodes.
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import warnings
from docutils import nodes
from docutils.wr... | neerajvashistha/pa-dude | lib/python2.7/site-packages/sphinx/writers/manpage.py | Python | mit | 13,326 | [
"VisIt"
] | 7c3af8cdac7794de09442ada08bab5e7d2925fcc3d362c992b0c90ca7e1f6fe5 |
from ooiui.core.app import app
from flask import request, render_template, Response, jsonify, session, make_response, redirect, url_for
from werkzeug.exceptions import Unauthorized
from ooiui.core.routes.decorators import login_required, get_login, scope_required
import requests
import json
from uuid import uuid4
impor... | asascience-open/ooi-ui | ooiui/core/routes/common.py | Python | mit | 34,468 | [
"VisIt"
] | 7d319494c23ff438ffc69b4b3ff87de82100f7edc46d44238bef315d17cf4d58 |
'''
* Author: Lukasz Jachym
* Date: 9/15/13
* Time: 5:40 PM
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/.
'''
import string
import itertools
import operator
... | b1r3k/recruitment-challanges | data-hacking/src/task1/exchange/converter.py | Python | mit | 1,055 | [
"VisIt"
] | 5b8693b3cd879b79111894b031f02607ca91b91cae744d3805aa1ef8130e723a |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from node import NodeVisitor, ValueNode, ListNode, BinaryExpressionNode
from parser import atoms, precedence
atom_names... | akumar21NCSU/servo | tests/wpt/harness/wptrunner/wptmanifest/serializer.py | Python | mpl-2.0 | 4,457 | [
"VisIt"
] | 88ed29e4eff30f1753c55dddfa659ac45707d7c395f5f72a22b0b134a9f5c2f2 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import re
import abc
from abc import ABCMeta, abstractmethod
"""
Error handlers for errors originating from the Submission systems.
"""
__author__ = "Michiel van Setten"
__copyright__ = " "
__version__ = "0.9... | dongsenfo/pymatgen | pymatgen/io/abinit/scheduler_error_parsers.py | Python | mit | 13,879 | [
"pymatgen"
] | 751782e0b905d717a3040219dc16fa98034fe90075deca60fe112736055df495 |
#!python
"""\
Easy Install
------------
A tool for doing automatic download/extract/build of distutils-based Python
packages. For detailed documentation, see the accompanying EasyInstall.txt
file, or visit the `EasyInstall home page`__.
__ http://peak.telecommunity.com/DevCenter/EasyInstall
"""
import sys, os.path, ... | igoralmeida/tahoe-lafs | setuptools-0.6c16dev6.egg/setuptools/command/easy_install.py | Python | gpl-2.0 | 65,859 | [
"VisIt"
] | 1cb7568f9c1daff1644b46cd021f81e2c6f6040531aa9d2d14e0e33926e55482 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Copyright (C) 2012 Computational Neuroscience Group, NMBU.
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 you... | LFPy/LFPy | LFPy/pointprocess.py | Python | gpl-3.0 | 11,719 | [
"NEURON"
] | a43777215ca44d29ab9c148693c26d6c4b9ef699c7c36b6929ed878e3ce67195 |
# Copyright (c) 2015 William Lees
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribut... | williamdlees/BioTools | Alignment.py | Python | mit | 18,837 | [
"Biopython"
] | f3b190e4c3c8689c48e5b8722e5235fa371b43edee594571daa319cddb4fc0ed |
#!/router/bin/python
import os
import sys
import subprocess
import misc_methods
import re
import signal
import time
from CProgressDisp import TimedProgressBar
from stateful_tests.tests_exceptions import TRexInUseError
import datetime
import copy
import outer_packages
import yaml
class CTRexScenario:
modes ... | dimagol/trex-core | scripts/automation/regression/trex.py | Python | apache-2.0 | 1,915 | [
"Elk"
] | 51a241585de06caad00da4e7a7ee780b79fb407eed9cfd41ec3fc341ecfdeba0 |
from eyvind.lib.base import *
from formencode import Schema, Invalid
from formencode.validators import *
from pylons.decorators import validate
from pylons.decorators.rest import dispatch_on
from paste.wsgiwrappers import WSGIResponse
import re
class UniqueUsername(String):
messages = {
'in_use': 'T... | socialplanning/eyvind | eyvind/controllers/user.py | Python | gpl-3.0 | 10,123 | [
"VisIt"
] | e3c18bef3ac10832a65e0cc221d4d51022d4110c10db9247578904d8a97f2f29 |
# Copyright 2017 Max Planck Society
# Distributed under the BSD-3 Software license,
# (See accompanying file ./LICENSE.txt or copy at
# https://opensource.org/licenses/BSD-3-Clause)
"""This class implements POT training.
"""
import collections
import logging
import os
import time
import tensorflow as tf
import utils
f... | tolstikhin/adagan | pot.py | Python | bsd-3-clause | 92,925 | [
"Gaussian"
] | bc0d93834a9e6936a46078a8df590c10e316086a0f38cd566edf28ed12e910c9 |
import numpy as np
from scipy.ndimage import map_coordinates
import scipy.ndimage as ndimage
from scipy.interpolate import interp1d, LinearNDInterpolator
from .interpolators import Nearest2DInterpolator, fill_NaN_towards_seafloor, horizontal_interpolation_methods, vertical_interpolation_methods
from opendrift.readers.... | OpenDrift/opendrift | opendrift/readers/interpolation/structured.py | Python | gpl-2.0 | 6,500 | [
"NetCDF"
] | 4a3601b5a57a26caf5b0e2963f5b4f298941ba563dc7482288790c99df79eb7d |
#geneaTD - A multi-touch tower defense game.
#Copyright (C) 2010-2011 Frederic Kerber, Pascal Lessel, Michael Mauderer
#
#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 Lic... | libavg/mtc-geneatd | geneatd/item.py | Python | gpl-3.0 | 6,988 | [
"CRYSTAL"
] | 800750d81e5cbb67167fe5116f208b2e1041c3126852105096f1c1fba7b8f6f9 |
#!/usr/bin/env/python
"""
Script to perform a focal mechanism smoothing.
Kernel implementation is based on the Zechar (2010) isotropic Gaussian
approach to kernel smoothing - adapted for application to the whole Earth
"""
import numpy as np
from scipy.special import erf
from math import fabs, floor, log10, sqrt, atan... | g-weatherill/gcmt_tools | gcmt/gcmt_smoothing_v1.py | Python | agpl-3.0 | 15,241 | [
"Gaussian"
] | d1ff286293ec2211560c1adf38d416c0696ff22c368089d68248053548880be7 |
"""
Sheet classes.
A Sheet is a two-dimensional arrangement of processing units,
typically modeling a neural region or a subset of cells in a neural
region. Any new Sheet classes added to this directory will
automatically become available for any model.
"""
# Imported here so that all Sheets will be in the same pack... | Tasignotas/topographica_mirror | topo/sheet/__init__.py | Python | bsd-3-clause | 14,337 | [
"NEURON"
] | ea1a0f6652fdb9d7e5940360289834f525a6f9a797c012ed359253ab98ab5e23 |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | hryamzik/ansible | lib/ansible/modules/network/avi/avi_sslprofile.py | Python | gpl-3.0 | 8,496 | [
"VisIt"
] | b514d0139e638d673fb3b3a74d15712a293c735eb4d499a029f7f1224a51c72b |
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
#pylint: disable=invalid-name
#
# TUBE CALIBR... | mganeva/mantid | scripts/Calibration/Examples/TubeCalibDemoMaps_D4.py | Python | gpl-3.0 | 2,829 | [
"Gaussian"
] | d2519ee1aff5be05f32a60a6be3eb6bca3f5c9ea2bcf6da8822d7628da3ed363 |
#! python 3
"""Random quiz generator
Creates quizzes with questions and answers in random order, along with the answer key.
"""
def main() -> None:
"""P1_randomQuizGenerator.py
Uses given dictionary with US states and their capitals to create 35 randomly generated
quizzes with answer keys.
Returns... | JoseALermaIII/python-tutorials | pythontutorials/books/AutomateTheBoringStuff/Ch08/P1_randomQuizGenerator.py | Python | mit | 3,638 | [
"COLUMBUS"
] | ab8650e8156266ab0018461af3d7e354cc19243c706fb03cfce87a9a61b17895 |
#!/usr/bin/env python
################################################################################
##
## Copyright 2013 Stefan Ellmauthaler, ellmauthaler@informatik.uni-leipzig.de
## Joerg Puehrer, puehrer@informatik.uni-leipzig.de
## This file is part of diamond.
##
## diamond is free software... | tillmo/diamond-adf-code | lib/adf2dadf/adf2dadf_adm.py | Python | gpl-3.0 | 2,511 | [
"ADF"
] | 9866417287cdde9f8e7bf78670cdde72f38dd268f6d7838ff72af52ba361bd47 |
"""
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... | bringingheavendown/numpy | numpy/add_newdocs.py | Python | bsd-3-clause | 228,118 | [
"Brian"
] | ee1f9a08986cfcdebca527d6d065692bc659b2438b05279a4e9e3c444ef874f6 |
# pylint: skip-file
import sys, os
import argparse
import mxnet as mx
import numpy as np
import logging
import seg_carv_7_init_from_cls
from symbols.irnext_v2_deeplab_v3_dcn_w_hypers import *
from symbols.unet_dcn_w_hypers import *
from symbols.fcdense_tiramisu import *
from seg_carv_1_data_loader import FileIter
from... | deepinsight/Deformable-ConvNets | deeplab/runs_carv/seg_carv_4_train_densenet.py | Python | apache-2.0 | 7,975 | [
"Gaussian"
] | 33a4ab074881e7123f119f1502e972bd94e2e7e837a841c1b18501539f4ea8b5 |
# -*- coding:utf-8; python-indent:2; indent-tabs-mode:nil -*-
# Copyright 2013 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/... | pombredanne/pytype | pytype/pytd/parse/visitors.py | Python | apache-2.0 | 33,153 | [
"VisIt"
] | 2a15a5d0bb3b6b638b187584a9184117a0a7cdc507ea4cd34f6e556713fb0957 |
#!/usr/bin/env python
##
## \file addModelHistory.py
## \brief adds Model History to a model
## \author Sarah Keating
##
## This file is part of libSBML. Please visit http://sbml.org for more
## information about SBML, and the latest version of libSBML.
##
import sys
import os.path
from libsbml import *
de... | dilawar/moose-full | dependencies/libsbml-5.9.0/examples/python/addModelHistory.py | Python | gpl-2.0 | 1,872 | [
"VisIt"
] | a953dd8bec4a18dbb87b3803758c9ae8a10b9e78eef88ea4d676de15212b5985 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
import unittest
import frappe
from frappe.utils.data import today
# test_records = frappe.get_test_records('Maintenance Visit')
class TestMaintenanceVisit(unittest.TestCase):
pass
def make_maintenance_visit():
mv = frappe.new_... | frappe/erpnext | erpnext/maintenance/doctype/maintenance_visit/test_maintenance_visit.py | Python | gpl-3.0 | 965 | [
"VisIt"
] | 37a090c542e47883e34234da2ca623f984e3076b65c076ad124e87c074c54693 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import warnings
"""
Created on Mar 19, 2012
"""
__author__ = "Shyue Ping Ong, Stephen Dacek"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__ema... | dongsenfo/pymatgen | pymatgen/entries/tests/test_compatibility.py | Python | mit | 38,206 | [
"pymatgen"
] | 15f7651af5f965f0a34e4da10f4ad76c1335a132fd53064733d020d8695012c8 |
# 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... | nburn42/tensorflow | tensorflow/python/ops/distributions/normal.py | Python | apache-2.0 | 9,263 | [
"Gaussian"
] | 06610df214e73de037e361850924e791ca10d8dbf715a29603c6d9ab08317eb3 |
from gpaw.xc.gllb.contribution import Contribution
from gpaw.xc import XC
from gpaw.xc.pawcorrection import rnablaY_nLv
from gpaw.sphere.lebedev import weight_n
import numpy as np
from numpy import dot as dot3 # Avoid dotblas bug!
from math import pi, sqrt
class C_XC(Contribution):
def __init__(self, nlfunc, weig... | qsnake/gpaw | gpaw/xc/gllb/c_xc.py | Python | gpl-3.0 | 6,818 | [
"GPAW"
] | 2bc77096bf2e3410bf7663625d4bd9e3db58740c3f11b2c5e1f4d802c0b35f06 |
from pycuda import gpuarray, driver
from striate import util, layer
from striate.fastnet import FastNet, AdaptiveFastNet
from striate.layer import TRAIN, TEST
from striate.parser import parse_config_file
from striate.scheduler import Scheduler
from striate.util import divup, timer, load
from data import DataProvider, I... | iskandr/striate | striate/trainer.py | Python | gpl-3.0 | 26,564 | [
"NEURON"
] | 646e35b5ec69c0857f542eabbd1cd1c0483aff643524acdb00eab601bb2832b8 |
import copy
import gym
import numpy as np
from gym import spaces
DEFAULT_CONFIG_LINEAR = {
"feature_dim": 8,
"num_actions": 4,
"reward_noise_std": 0.01
}
class LinearDiscreteEnv(gym.Env):
"""Samples data from linearly parameterized arms.
The reward for context X and arm i is given by X^T * thet... | richardliaw/ray | rllib/contrib/bandits/envs/discrete.py | Python | apache-2.0 | 5,097 | [
"Gaussian"
] | 4f59ead514661fd545b399959fe4a521e68a976b3a98b675a15b45e92700a984 |
from __future__ import unicode_literals
import re
try:
from collections import OrderedDict
except ImportError:
OrderedDict = None
from django import forms
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _
from django.contrib import auth
from django.contrib.... | galaxy-ctf/milky-way | account/forms.py | Python | agpl-3.0 | 8,393 | [
"Galaxy"
] | 42412473a711655f2c71829a4b21e3ac183987f73f7b78208eafc0b1d5d18989 |
"""
Recursively scans the argument directory for f90 files with `namelist`
declarations.
The default values of those are then found from the surrounding file and
all compiled and written to output `defaults.nml`.
e.g. Running from this directory on the src tree:
````
$ python get_namelist_defaults.py ../../../../src
... | jamesp/Isca | src/extra/python/scripts/get_namelist_defaults.py | Python | gpl-3.0 | 3,026 | [
"NetCDF"
] | e16f7b68cee89a23e8e485f1ca8b149087dcbcfa1dce3322850877232d105c97 |
#!/usr/bin/python
__author__ = 'ToFran'
__site__ = 'http://tofran.com/'
__description__ = 'Main UI to the gyazoCrawler.py class'
####### VARS ########
#files and folders
#the databse file, will overwrite
DATABASE_FILE_PATH = "database.json"
#the path where images will be downloaded (must exist) [@todo cerate the dir... | drobune/gyazoCrawler | main.py | Python | mit | 2,574 | [
"VisIt"
] | 2d1983d8c774eb940fddc38f423186f3b543953662a71aedfc433fdfed552d14 |
################################################################################################
# Test Functions
################################################################################################
from lib import coin_types
from lib.base import *
coin = coin_types.ltc
class bip32_tests:
def __init_... | gcnaccount/pywallet | test/ltc_test_vectors.py | Python | mit | 23,106 | [
"CASINO"
] | c4e4a6cfcee8f4c7799aa2067fabd2a9eee2b499405905399e66f1538d4ca038 |
"""
sys_tests.py: Contains the class definitions of the Stile systematics tests.
"""
"""
This file contains some code from the AstroML package (http://github.com/astroML/astroML).
For that code:
Copyright (c) 2012-2013, Jacob Vanderplas
All rights reserved.
Redistribution and use in source and binary forms, with or ... | msimet/Stile | stile/sys_tests.py | Python | bsd-3-clause | 122,908 | [
"Galaxy"
] | 6f43e1bc47873af49e4bb2c18a996fd4206a906959c6a6ad044cd89849dfe5c9 |
# Copyright (c) Charl P. Botha, TU Delft.
# All rights reserved.
# See COPYRIGHT for details.
import wx # todo: this should go away...
import string
import sys
import traceback
# todo: remove all VTK dependencies from this file!!
def clampVariable(v, min, max):
"""Make sure variable is on the range [min,max]. R... | chrisidefix/devide | gen_utils.py | Python | bsd-3-clause | 4,499 | [
"VTK"
] | 7c3b638a6a69ec37b453625ea3b850194a07fd87f05bc4fe6efb52addd296ce2 |
#! Check for correctness of ESP values. The ESP values are calculated using one or four threads
#! The one thread values are checked against the four thread values. The one thread values are
#! also checked against the reference values (1 thread values computed, when generating this test).
#! Caution: The reference va... | dgasmith/psi4 | tests/python/mints14/input.py | Python | lgpl-3.0 | 4,375 | [
"Psi4"
] | 591a89129333e26555105b914cfbfec2ba0d4706e82e6c92b2e56eb2c52e93a2 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2012 Hans Ulrich Frink
#
# This program is free software; you can redistribute it and/or modify
# it unde... | gramps-project/addons-source | SourcesCitationsReport/SourcesCitationsReport.py | Python | gpl-2.0 | 25,757 | [
"Brian"
] | 0eff63061154a407afb83f7f56310790d5f66aeb02e5da589eaadba14848fd8d |
# -*- coding: utf-8 -*-
from .base import FunctionalTestCase
from .pages import game
class CompanyTests(FunctionalTestCase):
def test_can_create_company(self):
self.story('Alice is a user who starts a game')
self.browser.get(self.server_url)
homepage = game.Homepage(self.browser)
ho... | XeryusTC/18xx-accountant | accountant/functional_tests/test_company.py | Python | mit | 31,546 | [
"Amber"
] | 9e34ccb089a452ccd2b800c89aa379b0b4deb29235867f5511f5fdd4c619ef7d |
from __future__ import unicode_literals
import base64
import datetime
import hashlib
import json
import netrc
import os
import re
import socket
import sys
import time
import xml.etree.ElementTree
from ..compat import (
compat_cookiejar,
compat_HTTPError,
compat_http_client,
compat_urllib_error,
co... | mtp1376/youtube-dl | youtube_dl/extractor/common.py | Python | unlicense | 46,914 | [
"VisIt"
] | c406d8ec796a24be1b904b48b8c30ca20bc1a6e145c5a94122dbf39e34737d75 |
#
# Copyright (C) 2013,2014,2015,2016 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your opt... | richter-t/espresso | samples/python/h5md_ReadFile.py | Python | gpl-3.0 | 4,257 | [
"ESPResSo"
] | 49be7bc08cab45c289e3ca02fa5aad66cfc77c3521be9445cb4c6bb022cbc234 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Abinit Post Process Application
author: Martin Alexandre
last edited: May 2013
"""
import sys,os,commands,threading
import string, math, re
#GUI
import gui.graph as Graph
import gui.md as MD
import gui.gs as GS
import gui.elasticConstant as ElasticConstant
import g... | jmbeuken/abinit | scripts/post_processing/appa/gui/main_frame.py | Python | gpl-3.0 | 11,294 | [
"ABINIT",
"NetCDF"
] | af9fea271eab08ad3b3e14050720b0605b02a5131889010240bbfac9922d18d5 |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | gkc1000/pyscf | pyscf/pbc/scf/khf.py | Python | apache-2.0 | 27,873 | [
"PySCF"
] | 3b89a8d18924514cf5b70a9f0c6177e00130c3ef3b86029bc9ae4e40915c04a3 |
# Copyright 2018 Mark Chilenski
# This program is distributed under the terms of the GNU General Purpose
# License (GPL).
# Refer to http://www.gnu.org/licenses/gpl.txt
#
# 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 F... | markchil/plottools | plottools.py | Python | gpl-3.0 | 39,859 | [
"Gaussian"
] | b257a7011c9117a2fc2631f457335b17f6c4a53ee3abfa131bec6b4f41f8f5b8 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | rmcgibbo/psi4public | psi4/driver/constants/psifiles.py | Python | lgpl-3.0 | 10,767 | [
"Psi4"
] | 81819668ad375ce7b5d184b5d1855abbf3021aeec1193b62de5eec2f4704c0d6 |
"""
==================================================
Automatic Relevance Determination Regression (ARD)
==================================================
Fit regression model with Bayesian Ridge Regression.
See :ref:`bayesian_ridge_regression` for more information on the regressor.
Compared to the OLS (ordinary l... | chenyyx/scikit-learn-doc-zh | examples/zh/linear_model/plot_ard.py | Python | gpl-3.0 | 3,912 | [
"Gaussian"
] | 7626ff980aea800fc22563973c70790a1d5848b508f69d18862cdb54792bce8b |
#!/usr/bin/env python
# ======================================================================
# == Python script replacing "unallowed" access to standard output ==
# == or standard error in ABINIT source files by statements using ==
# == "std_out" or "std_err" global variables. ==
# == ... | qsnake/abinit | util/maintainers/replace_write6.py | Python | gpl-3.0 | 6,875 | [
"ABINIT"
] | 63159ada965ea236033dcfd3cbfba72e35f259d9a8218b20dd44bb20874ebeb3 |
# Fragment shaders, filters, Frame Buffer Object (FBO)
# Authors: Tom De Smedt, Frederik De Bleser
# License: BSD (see LICENSE.txt for details).
# Copyright (c) 2008-2012 City In A Bottle (cityinabottle.org)
# http://cityinabottle.org/nodebox
from pyglet.gl import *
from pyglet.image import Texture, SolidColorImag... | nodebox/nodebox-opengl | nodebox/graphics/shader.py | Python | bsd-3-clause | 60,243 | [
"Gaussian"
] | 57b3392f2c5a8fe0d441ed409c36a656375ae96472c793fa174bfed25db73563 |
import os
import copy
import math
import functools
import numpy as np
from ddapp import transformUtils
from ddapp.asynctaskqueue import AsyncTaskQueue
from ddapp import objectmodel as om
from ddapp import visualization as vis
from ddapp import robotstate
from ddapp import segmentation
from ddapp import planplayback
f... | empireryan/director | src/python/ddapp/tabledemo.py | Python | bsd-3-clause | 58,561 | [
"VTK"
] | 72176ccfdbd6668aa62ba19740632b0fa1fa8fed9aaa698d720c3bb4a82374c0 |
../../../../share/pyshared/orca/gsmag.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/gsmag.py | Python | gpl-3.0 | 40 | [
"ORCA"
] | 269248486272e24feb7d3fa5c7794bc732cc02baf83180b444411e2b7ff05552 |
#!/usr/bin/env python
########################################################################
# File : dirac-setup-site
# Author : Ricardo Graciani
########################################################################
"""
Initial installation and configuration of a new DIRAC server (DBs, Services, Agents, Web P... | andresailer/DIRAC | Core/scripts/dirac-setup-site.py | Python | gpl-3.0 | 1,978 | [
"DIRAC"
] | 5e8064c242a5dcbadc9316ab1af5dad1fedb7e92ad6561cb9223f23d962c8534 |
# Copyright (c) 2012 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.
"""Provides an interface to start and stop Android emulator.
Emulator: The class provides the methods to launch/shutdown the emulator with
... | ds-hwang/chromium-crosswalk | build/android/pylib/utils/emulator.py | Python | bsd-3-clause | 17,411 | [
"Galaxy"
] | ab668f0fbd778ba6fd506f8833245da523f55091097fe7bf7ceeccf43e3aaaac |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import vtk
def main():
filenames = list()
uGrids = list()
uGrids.append(MakeUnstructuredGrid(vtk.vtkVertex()))
filenames.append("Vertex.vtu")
uGrids.append(MakePolyVertex())
filenames.append("PolyVertex.vtu")
uGrids.append(MakeUnstructuredG... | lorensen/VTKExamples | src/Python/IO/WriteXMLLinearCells.py | Python | apache-2.0 | 5,179 | [
"VTK"
] | 900824dd44a98119ef426082368ad944b50a2e18b6f87c28253f090499320df1 |
from aces.materials import Material
from aces.modify import get_unique_atoms
from ase import Atoms,Atom
from math import pi,sqrt
from ase.dft.kpoints import ibz_points
from aces import config
from ase.lattice import bulk
import numpy as np
from aces.tools import *
class structure(Material):
def set_parameters(self):
... | vanceeasleaf/aces | aces/materials/SiC.py | Python | gpl-2.0 | 877 | [
"ASE"
] | e96f19b8b7774a583bd4fef30ff04169835fc1cb296e526accc5abf98d0cbd3a |
# -*- coding: utf-8 -*-
"""
Copyright (c) 2018 by Tobias Houska
This file is part of Statistical Parameter Optimization Tool for Python(SPOTPY).
:author: Tobias Houska
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literal... | thouska/spotpy | spotpy/algorithms/mc.py | Python | mit | 2,885 | [
"Gaussian"
] | e3c3198ace52968bfd0cc12f8f3328d6fc03fc3006f6b2e989fbb0d1fb8fc057 |
"""Helper functions for creating the most common surfaces and related tasks.
The helper functions can create the most common low-index surfaces,
add vacuum layers and add adsorbates.
"""
from math import sqrt
import numpy as np
from ase.atom import Atom
from ase.atoms import Atoms
from ase.data import reference_st... | freephys/python_ase | ase/lattice/surface.py | Python | gpl-3.0 | 10,639 | [
"ASE"
] | c4ab5ab0dcdc461ae81cdd350cb0d6916efa520a620614008ff2d322cbb9fb16 |
# Sqlite3 DB configuration
SQLITE_DB = '/opt/mhn/server/mhn.db'
# Mongo DB configuration
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
# MySQL DB configuration
MYSQL_HOST = 'localhost'
MYSQL_PORT = 3306
MYSQL_USER = 'root'
MYSQL_PWD = 'password'
# Kippo sql file path
KIPPO_SQL = '/opt/mhn/scripts/kippo_mysql.sql'
# G... | mercolino/mhn_kippo_graphs | kippo_update_config.py | Python | mit | 752 | [
"VisIt"
] | 4bc535accb3eb80827638c7f3feb8e1cb3e95d61da064c5eec579501dd03c09a |
from pypers.core.step import Step
import os
import shutil
class reapr(Step):
spec = {
"version": "2015.06.24",
"descr": [
"Run reapr assembly evaluation and contig break pipeline on an assembled contig and the source fastq read pairs",
"Implemeted from kbase module",
... | frankosan/pypers | pypers/steps/assembly/reapr.py | Python | gpl-3.0 | 8,965 | [
"BWA"
] | a20c1dd2d261d763eeb84f24462472d099b140768b4bc37f188ea050981b0eb4 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-dialogflow | tests/unit/gapic/dialogflow_v2/test_conversation_profiles.py | Python | apache-2.0 | 128,729 | [
"Octopus"
] | 40130b0af2c97a1d5543b4d22eb6905e3aafac7d52b34070ffe319959120b7b1 |
#
# 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... | retrography/scancode-toolkit | src/commoncode/fileutils.py | Python | apache-2.0 | 15,089 | [
"VisIt"
] | 6d916eb4ee2c5a4e1ed4a483ca827045411f7637c976631b8fd062473429b208 |
#!/usr/bin/env python
import vtk
def main():
fileName = get_program_parameters()
importer = vtk.vtk3DSImporter()
importer.SetFileName(fileName)
importer.ComputeNormalsOn()
colors = vtk.vtkNamedColors()
renderer = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
iren = vtk.vtkRender... | lorensen/VTKExamples | src/Python/IO/3DSImporter.py | Python | apache-2.0 | 1,531 | [
"VTK"
] | 21ca97d0686aeec4950b054b69aef663c32cf4b3e1f25d38487ca019901477ec |
#!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
import tempfile
import h5py
from pyscf import gto, scf, mcscf
from pyscf import lib
'''
chkfile is an HDF5 file which store MCSCF and SCF results and intermediates in
key:value format. Keys in chkfile are the same to the attributes of SCF and
MCSC... | gkc1000/pyscf | examples/mcscf/13-load_chkfile.py | Python | apache-2.0 | 1,148 | [
"PySCF"
] | f16f3e42b9ad719aaa441dd93acdab3f642381e6f8dd00115a136081c5203dfc |
#!/usr/bin/env python
# This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
#
# MAUS 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 ... | mice-software/maus | src/common_py/analysis/tools.py | Python | gpl-3.0 | 7,595 | [
"Gaussian"
] | 89da119c556eb3835155b199e112f2489a2444d794b3f8eff55bb93d9a25ad18 |
# Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | pkreissl/espresso | testsuite/python/integrator_steepest_descent.py | Python | gpl-3.0 | 9,305 | [
"ESPResSo"
] | d3c178ef28922ff2e25750c99c6df926a1d308f78e0cac6a656eba4e7e32fea8 |
# (originally from https://github.com/tensorflow/models/tree/master/research/differential_privacy,
# possibly with some small edits by @corcra)
# 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 complia... | ratschlab/RGAN | differential_privacy/dp_sgd/dp_optimizer/utils.py | Python | mit | 10,974 | [
"Gaussian"
] | bfb72bbea4be23f987c9852c21567cfcae15cf703e2c1cbc5bfa07f49c2144bd |
# pylint: disable=missing-docstring
import datetime
import os
import pytz
from django.conf import settings
from mock import patch
from pytz import UTC
from splinter.exceptions import ElementDoesNotExist
from selenium.common.exceptions import NoAlertPresentException
from nose.tools import assert_true, assert_equal, asse... | tanmaykm/edx-platform | lms/djangoapps/courseware/features/lti.py | Python | agpl-3.0 | 14,297 | [
"VisIt"
] | 537342ef4a52b630508b8951dfd905e7a67b5072eb9bcbfc5a0f650aa9d5748b |
from __future__ import print_function
import unittest as ut
import tests_common
import os
import numpy as np
import espressomd
from espressomd import lb
vtk_found=True
try:
import vtk
except:
vtk_found=False
if "ENGINE" in espressomd.features() and "LB" in espressomd.features():
class SwimmerTest(ut.TestCa... | lahnerml/espresso | testsuite/python/engine_lb.py | Python | gpl-3.0 | 2,965 | [
"VTK"
] | 34671857f8d9a6b5b4cc2ae0eff545348ef90c595c27be8fdf8dc26877014194 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 Async Open Source
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or ... | tiagocardosos/stoq | stoqlib/reporting/booklet.py | Python | gpl-2.0 | 6,417 | [
"VisIt"
] | f6c97d8394f689c64c432421470d024149297be95772e7c129d4bb4f88e25481 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
from os.path import getmtime, exists
import time
import types
import __builtin__
from Cheetah.Version import MinCompatibleVersion as RequiredCheetahVersion
from Cheetah.Version import MinComp... | kunwon1/kunwon1-evecentral | web/templates/basebase.py | Python | agpl-3.0 | 15,066 | [
"VisIt"
] | 825cddd411016ae35c34bea2166a9eee1e86046f09e479ee240805e005f6821d |
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import session, _
from frappe.utils import today
from erpnext.utilities.transaction_base import TransactionBase
class ... | gangadhar-kadam/hrerp | erpnext/support/doctype/customer_issue/customer_issue.py | Python | agpl-3.0 | 1,786 | [
"VisIt"
] | a3e5286682cd073488bdc528ac0900d5f337cea2e948fb991359ddc8628f38d7 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | pli3/Openwebif | plugin/controllers/views/web/timerlistwrite.py | Python | gpl-2.0 | 5,261 | [
"VisIt"
] | e962caeb2d7b1544edf0e7b11d47f8e56f1035bbaac52f896159e96a6edb8678 |
"""
Usage: baidulocation [options] <date>
baidulocation <username> <password> <date>
baidulocation <username> <password> <site_id> <date>
Options:
-u --username=<username> baidu tongji username (required)
-p --password=<password> baidu tongji password (required)
-s --siteid=<site_id> ... | TylerTemp/baidutongji | baidutongji.py | Python | mit | 22,196 | [
"VisIt"
] | 0d73b57fde6a96b4ee5bbe9e9ad2516862f34c51e15831cfe5635e8c8b531570 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.