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 |
|---|---|---|---|---|---|---|---|
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | szha/mxnet | python/mxnet/ndarray/random.py | Python | apache-2.0 | 30,169 | [
"Gaussian"
] | 8faef5cc4fc9ca8f13556f84c80bf2f1fe1adf67792c29da769a58f8d10ed24a |
import sympy
from sympy.functions import DiracDelta, Heaviside
from sympy.solvers import solve
def change_mul(node,x):
"""change_mul(node,x)
Rearranges the operands of a product, bringing to front any simple
DiracDelta expression.
If no simple DiracDelta expression was found, then all the Di... | mattpap/sympy-polys | sympy/integrals/deltafunctions.py | Python | bsd-3-clause | 4,414 | [
"DIRAC"
] | f602c328652087f9ee634dfaf47269cf58cdc3b2f2ca7f6eb0dcb3065f24f311 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module defines the events signaled by abinit during the execution. It also
provides a parser to extract these events form the main output file and the log file.
"""
import sys
import os.path
import dat... | dongsenfo/pymatgen | pymatgen/io/abinit/events.py | Python | mit | 28,778 | [
"ABINIT",
"NetCDF",
"pymatgen"
] | ecce0cbcaee6c9e573c630db008db8b02d290b6793fe5790ca166b716f93f4f4 |
import numpy as np
import scipy.stats as ss
import scipy.special as sp
from .family import Family
from .flat import Flat
from .gas_recursions import gas_recursion_normal_orderone, gas_recursion_normal_ordertwo
from .gas_recursions import gasx_recursion_normal_orderone, gasx_recursion_normal_ordertwo
from .gas_recursi... | RJT1990/pyflux | pyflux/families/normal.py | Python | bsd-3-clause | 15,629 | [
"Gaussian"
] | 7c4b8d8563e8adbe888ade37e34be1d2ff125bc894afac11b5964fc4238839f0 |
from __future__ import print_function
"""This module defines an ASE interface to SIESTA.
http://www.uam.es/departamentos/ciencias/fismateriac/siesta
"""
import os
from os.path import join, isfile, islink, getmtime
from cmath import exp
import array
import numpy as np
from ase.data import chemical_symbols
from ase.u... | suttond/MODOI | ase/calculators/siesta.py | Python | lgpl-3.0 | 31,261 | [
"ASE",
"SIESTA",
"VASP"
] | 69c7858da9e71d66479df16ee6fbdcf546c1ef4cc2e21bbaef298c1b28022024 |
# -*- coding: utf-8 -*-
"""
End-to-end tests for the LMS Instructor Dashboard.
"""
import ddt
from nose.plugins.attrib import attr
from bok_choy.promise import EmptyPromise
from flaky import flaky
from common.test.acceptance.tests.helpers import UniqueCourseTest, get_modal_alert, EventsTestMixin
from common.test.acc... | caesar2164/edx-platform | common/test/acceptance/tests/lms/test_lms_instructor_dashboard.py | Python | agpl-3.0 | 56,702 | [
"VisIt"
] | d3d382b29d0bbc8cf9d5f6553742d65950f289c9265861d968e3689dde78e4d9 |
import numpy as np # numpy for numerical code (arrays, etc.)
from read_in_ascii import read_in_ascii #from filename import function
from make_ERDASimg import generate_ERDASimg_grid
#Degree day base for boreal forest photosynthesis 5.0 degrees C
ddbase = 5.0
##########################################################... | SIBBORK/SIBBORK | source/weather.py | Python | gpl-2.0 | 22,080 | [
"Gaussian"
] | 923cd8be7b8c176dfbe63aba84a3f79a206995eaab03e05e6d82492dbc472db8 |
# 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... | tongwang01/tensorflow | tensorflow/contrib/distributions/python/ops/mvn.py | Python | apache-2.0 | 29,127 | [
"Gaussian"
] | e65478ffce617b26f0937ae5a225cc3ad3d5cb412c4cd0a285d37eac747782f4 |
# -*- 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-dataproc | tests/unit/gapic/dataproc_v1/test_autoscaling_policy_service.py | Python | apache-2.0 | 101,910 | [
"Octopus"
] | 79ce229ee9d8674682d7cff23cb8c71b0eff8a76da647ff58d9c8bdde63a25c5 |
'''
Created on Oct 2, 2013
@author: olehlong
'''
import numpy as np
import hashlib
import json
class TreeParityMachine:
'''
Tree parity machine class
'''
def __init__(self, iK, iN, iL):
'''
Constructor
'''
self.K = iK # hidden layer size
self.N = iN ... | olehlong/xmpp-neural-cryptography | nc/TreeParityMachine.py | Python | mit | 8,572 | [
"NEURON"
] | 7de79540b21450a28009bcd8afefd2559028fc8e5a9b12a31fda4e68c9de5a88 |
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# Mainak Jas <mainak@neuro.hut.fi>
# Mark Wronkiewicz <wronk.mark@gmail.com>
#
# Lice... | olafhauk/mne-python | mne/viz/tests/test_3d.py | Python | bsd-3-clause | 34,878 | [
"Mayavi"
] | 4c538668e2134356ac43f052cc6628053114714cc2fae5e0387b4f24b713d11d |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Martin Hawlisch, Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public... | SNoiraud/gramps | gramps/plugins/tool/dumpgenderstats.py | Python | gpl-2.0 | 4,674 | [
"Brian"
] | ad87542c0ce3c2af0fd6cf260edda64d0a8d4f35c813ba322b03111e48e389ed |
#! python3
import argparse
import pandas
import numpy as np
import matplotlib.pyplot as plt
import math
import itertools
def parseArguments(args):
parser = argparse.ArgumentParser(description="Creates convergence plots from gathered stats")
parser.add_argument('-f', '--file', type=argparse.FileType('r'), d... | precice/aste | contrib/mapping-tester/plots/paperplot.py | Python | gpl-3.0 | 5,620 | [
"Gaussian"
] | fa18f1c656ed3d9befe826e3448530cab58190238f6be478ae8ad61d41b8df12 |
import socialite.engine.LocalEngine as LocalEngine
import socialite.engine.ClientEngine as ClientEngine
import socialite.engine.Config as Config
import socialite.tables.QueryVisitor as QueryVisitor
import socialite.tables.Tuple as Tuple
import socialite.util.SociaLiteException as SociaLiteException
import socialite.typ... | ofermend/medicare-demo | socialite/src/pysocialite/SociaLite.py | Python | apache-2.0 | 13,436 | [
"VisIt"
] | e8eefd028e3187949a9d15a360511244c0250649c7ce2f0846ce347a31c8a6e4 |
# Copyright 2018 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 applicab... | cshallue/models | research/fivo/fivo/models/ghmm.py | Python | apache-2.0 | 20,795 | [
"Gaussian"
] | 6a33f18078cfe0dd30fe3f6022bb6ae4d6adbecd8602069d09c62992224c891a |
# mako/codegen.py
# Copyright (C) 2006-2011 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""provides functionality for rendering a parsetree constructing into module source code."""
impo... | sfstpala/Victory-Chat | mako/codegen.py | Python | isc | 43,410 | [
"VisIt"
] | eb0c0b6bdc257761e2c42e38c5a44d9f9bcab2882fae124fe4e0c4a164431577 |
""" Test Encoding function of DIRAC
It contains tests for DISET and JSON.
Some tests can be passed by both, while some can only be passed by one.
Typically, we know JSON cannot serialize tuples, or integers as dictionary keys.
On the other hand, it can serialize some objects, while DISET cannot.
"""
from string imp... | arrabito/DIRAC | Core/Utilities/test/Test_Encode.py | Python | gpl-3.0 | 8,118 | [
"DIRAC"
] | b82ec2e27a9af2546405e6894e3d5e47fc5b0e6c7b7855204de4a7e009f2a3c5 |
""" :mod: DMSRequestOperationsBase
====================
Just a collector of common functions
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id $"
from DIRAC import S_OK, S_ERROR
from DIRAC.RequestManagementSystem.Client.Operati... | yujikato/DIRAC | src/DIRAC/DataManagementSystem/Agent/RequestOperations/DMSRequestOperationsBase.py | Python | gpl-3.0 | 3,888 | [
"DIRAC"
] | 57ae4a8e38aba21bc38eb561bdcd54d37287d9db81f165022592b0d7e806ec84 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Functional tests using WebTest."""
import datetime as dt
import httplib as http
import logging
import unittest
import markupsafe
import mock
from nose.tools import * # flake8: noqa (PEP8 asserts)
import re
from addons.wiki.utils import to_mongo_key
from framework.auth... | chennan47/osf.io | tests/test_webtests.py | Python | apache-2.0 | 46,576 | [
"VisIt"
] | 7d6db6b8c4256c5c2291a67180dbf653ef8c3b636bdf846eca4ff32ed1b6a107 |
"""Mayavi/traits GUI for converting data from KIT systems."""
# Authors: Christian Brodbeck <christianbrodbeck@nyu.edu>
#
# License: BSD (3-clause)
from collections import Counter
import os
import queue
import sys
import numpy as np
from scipy.linalg import inv
from threading import Thread
from mayavi.core.ui.mayav... | olafhauk/mne-python | mne/gui/_kit2fiff_gui.py | Python | bsd-3-clause | 28,812 | [
"Mayavi"
] | ef763681321d70bfc693025f82de315e59030ede6b9c2b52d5cd0116bf3c6f6a |
from __future__ import print_function
__author__ = """Alex "O." Holcombe, Charles Ludowici, """ ## double-quotes will be silently removed, single quotes will be left, eg, O'Connor
import time, sys, platform, os
from math import atan, atan2, pi, cos, sin, sqrt, ceil, radians, degrees
import numpy as np
import psychopy, ... | alexholcombe/dot-jump | dataRaw/Fixed Cue/test_dot-jump25Oct2016_11-18.py | Python | gpl-3.0 | 25,110 | [
"Gaussian"
] | bf1976f0faca87a05999bf287fe09c7154972287a7f54603aa88b81d087c0f65 |
"""
weatherBot keys
Copyright 2015-2019 Brian Mitchell under the MIT license
See the GitHub repository: https://github.com/BrianMitchL/weatherBot
"""
import os
KEYS = {
'consumer_key': 'xxx',
'consumer_secret': 'xxx',
'access_token': 'xxx',
'access_token_secret': 'xxx',
'darksky_key': 'xxx'
}
... | bman4789/weatherBot | keys.py | Python | mit | 1,221 | [
"Brian"
] | 31f748995cfa77d8a4f5981dcac60ea5ab547fc68926aab9cbf09b8e9248529b |
import simtk.openmm.app.element as elem
class Element(elem.Element):
"""An Element represents a chemical element.
The simtk.openmm.app.element module contains objects for all the standard chemical elements,
such as element.hydrogen or element.carbon. You can also call the static method Element.getBySymbo... | ctk3b/foyer | foyer/element.py | Python | mit | 1,431 | [
"OpenMM"
] | 3e2bfaa2dd02d0f9dc255373a13c3e15c64a2a59afe7bcb745d1f7a15859018e |
from django.db import connection
from django.template import RequestContext, loader
from django.utils.html import mark_safe
from django.shortcuts import render_to_response
from django.core import urlresolvers
from django.http import HttpResponseNotFound
from zerver.decorator import has_request_variables, REQ, zulip_in... | JanzTam/zulip | analytics/views.py | Python | apache-2.0 | 25,440 | [
"VisIt"
] | de23814dd9fa70dc1ccd6cb468d1d1d5470cda14b2d123c7ad9977e2cbf22b3a |
from collections import defaultdict
from .utils_test import add, inc # noqa: F401
no_default = "__no_default__"
def ishashable(x):
"""Is x hashable?
Examples
--------
>>> ishashable(1)
True
>>> ishashable([1])
False
"""
try:
hash(x)
return True
except TypeE... | jakirkham/dask | dask/core.py | Python | bsd-3-clause | 13,069 | [
"VisIt"
] | 218fa8d4808a450e931041228152031519f29ba26a44f30e59ae37448b9d66c5 |
# -*- coding: utf-8 -*-
r"""Testing of the resolution library - TAS
"""
from copy import deepcopy
import numpy as np
import pytest
from matplotlib import use
from mock import patch
from neutronpy import Sample, instrument
from neutronpy.instrument.exceptions import *
use('Agg')
def angle2(x, y, z, h, k, l, lattice... | granrothge/neutronpy | tests/test_resolution_tas.py | Python | mit | 12,645 | [
"CRYSTAL"
] | ee2891225512f760f6dbe49754a7247a74f5d283d196cd36f341596e0c02f2a3 |
import typing
from itertools import chain
from typing import *
from typing import Callable, ForwardRef, Union, _GenericAlias
import astroid
import astroid.inference
from astroid import nodes
from astroid.transforms import TransformVisitor
from ..typecheck.base import (
Environment,
NoType,
TypeConstraints... | pyta-uoft/pyta | python_ta/transforms/type_inference_visitor.py | Python | gpl-3.0 | 43,708 | [
"VisIt"
] | 4c7afdc78c36b180e5a620ed003782491ac7b76a08fe67be3b1e20e840a2c598 |
import os
from os.path import join
import numpy as n
def writeScript(rootName, plate):
f=open(rootName+".sh",'w')
f.write("#!/bin/bash \n")
f.write("#PBS -l walltime=20:00:00 \n")
f.write("#PBS -o "+plate+".o.$PBS_JOBID \n")
f.write("#PBS -e "+plate+".e$PBS_JOBID \n")
f.write("#PBS -M johan.comparat@gmail.com \n"... | JohanComparat/pySU | galaxy/bin_SDSS/write_run_scripts_master_table_kr.py | Python | cc0-1.0 | 1,201 | [
"Galaxy"
] | 7a0d1af1088e2235f751ac81f38e4f810af3b98866f52c35287c090c7cfb76a0 |
from eularian_magnification.base import eulerian_magnification, show_frequencies
import sys
#whats the frequency kenneth
# fix the output /usr/local/lib/python3.5/dist-packages/eularian_magnification
def main(filename):
show_frequencies(filename)
eulerian_magnification(filename, image_processing='gaussi... | squeakus/motiontracker | eulerian.py | Python | bsd-2-clause | 798 | [
"Gaussian"
] | da8e9306cadfb60a96ddd7465145ddfb6c532acee6c8a95717a72cae369451e4 |
# -*- encoding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 6
_modified_time = 1417441813.18923
_template_filename='templates/webapps/galaxy/workflow/editor_tool_form.mako'
_template_uri='workflow/editor_tool_form.ma... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/database/compiled_templates/workflow/editor_tool_form.mako.py | Python | gpl-3.0 | 14,508 | [
"Galaxy"
] | d6f8128780d8aa1e2dfad34685fc1208fd343cea855586f9a28ec901d03438be |
#!/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/dft/kroks.py | Python | apache-2.0 | 2,630 | [
"PySCF"
] | 47da4dbc6b3ef2ff5a66b3be3deb893a012cd12bc1d010ea63f570ca0e289557 |
from __future__ import print_function
from os.path import exists, join, dirname
try:
from simtk.openmm.app import *
from simtk.openmm import *
from simtk.unit import *
except ImportError as err:
print("Failed to import OpenMM packages:", err.message)
print("Make sure OpenMM is installed and the libr... | rmcgibbo/tungsten | examples/buildTungstenXML.py | Python | lgpl-2.1 | 1,929 | [
"OpenMM"
] | a611b3f8d872c141e6ea8a91afdf5fbf15977674c0f39eee687526007d799e8b |
from utils import any
import warnings
import traceback
from typehandlers.base import Parameter, ReturnValue, \
join_ctype_and_name, CodeGenerationError, \
param_type_matcher, return_type_matcher, CodegenErrorBase, \
DeclarationsScope, CodeBlock
from typehandlers.codesink import NullCodeSink, MemoryCodeSin... | diedthreetimes/VCrash | pybindgen-0.15.0.795/pybindgen/cppclass.py | Python | gpl-2.0 | 102,925 | [
"VisIt"
] | 1a334837eb1aed57e849cdf2965320ff5f4ea4c21415ce38807b8d796208ba51 |
#!/usr/bin/env python
#
#
# FreeType 2 glyph name builder
#
# Copyright 1996-2000, 2003, 2005, 2007, 2008, 2011 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LI... | jiayaoqijia/apv | pdfview/jni/freetype/src/tools/glnames.py | Python | gpl-3.0 | 103,316 | [
"FEFF"
] | 2aff82b00959211e4ef7debff224c261364d5414208a57422643010a3b4217de |
# -*- coding: utf-8 -*-
try:
import configparser
except ImportError:
# Due to PY27 compatibility
import ConfigParser as configparser
import os
from warnings import warn
from chemopt.utilities._decorators import Substitution
values = {}
values['hamiltonian'] = {'SCF', 'MP2', 'B3LYP', 'CCSD', 'CCSD(T)',
... | mcocdawc/chemopt | src/chemopt/configuration.py | Python | lgpl-3.0 | 7,007 | [
"MOLCAS",
"Molpro"
] | 1c1c404b785325ecb07a17e4d7be7e1e8fa8822f80190e2c63af5895533e94ff |
"""
simple, elegant templating
(part of web.py)
Template design:
Template string is split into tokens and the tokens are combined into nodes.
Parse tree is a nodelist. TextNode and ExpressionNode are simple nodes and
for-loop, if-loop etc are block nodes, which contain multiple child nodes.
Each node can emit some p... | bobintetley/asm3 | src/web062/template.py | Python | gpl-3.0 | 49,781 | [
"VisIt"
] | a43b4279a394d5b4579dbf043b09120d9dd97ba7d26dd01487a8802ae438f2fb |
##
# Copyright 2009-2021 Ghent University
# Copyright 2015-2021 Stanford 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... | akesandgren/easybuild-easyblocks | easybuild/easyblocks/v/vmd.py | Python | gpl-2.0 | 10,493 | [
"LAMMPS",
"NAMD",
"NetCDF",
"VMD"
] | 3b9f390127f20a61ce85057ac5f4674d8d0d82e5eedd44b3a2a656fc15ca0397 |
"""
==========================================
Statistical functions (:mod:`scipy.stats`)
==========================================
.. module:: scipy.stats
This module contains a large number of probability distributions as
well as a growing library of statistical functions.
Each univariate distribution is an insta... | jakevdp/scipy | scipy/stats/__init__.py | Python | bsd-3-clause | 9,236 | [
"Gaussian"
] | 4d69eabed7f103fcea32f00b7e7c3c79c90e5dc990425e32ada0fb0ce4be7d12 |
"""
Layer.
Copyright 2014 Stanford University
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 writi... | skearnes/neural-network | neural_network/layer.py | Python | apache-2.0 | 4,272 | [
"NEURON"
] | f997bf80c7d3fcf50cef0562e8c356e687427672e35d29388aba92b816e999d7 |
#!/usr/bin/env python
# Copyright (c) 2015 Chris Olstrom <chris@olstrom.com>
#
# 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
# ... | killerwails/forge | bootstrap.py | Python | mit | 9,110 | [
"Galaxy"
] | ff5b6880d31a44cc4833bc8d847c31eaf6ebf8fa3d2ed9616cfbc0c73cd10859 |
# Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
gettext_noop = lambda s: s
#################... | Shrews/PyGerrit | webapp/django/conf/global_settings.py | Python | apache-2.0 | 14,357 | [
"VisIt"
] | 2f3cac9f8d58abec13c89481dae77703b83954982ad78a65ebfa4fbb782c81c1 |
"""
Read/write functions for Gaussian.
Written by:
Glen R. Jenness
University of Wisconsin - Madison
See accompanying license files for details.
"""
import numpy as np
import ase.units
from ase.atoms import Atoms
from ase.atom import Atom
from ase.calculators.singlepoint import SinglePointCalculator
from ase.... | alexei-matveev/ase-local | ase/io/gaussian.py | Python | gpl-2.0 | 3,514 | [
"ASE",
"Gaussian"
] | 38e470d851beba09218a0ed3c13f2ea324b3a1ca86069421121debe07686b356 |
# Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import scipy.io
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
imp... | tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/simulation_results/Combined/object_training/hmm_crossvalidation_motion_10_states_object_training_all_testing.py | Python | mit | 11,241 | [
"Gaussian",
"Mayavi"
] | 1ec5fe69573c562174d6e2ed15a3e29c5723652aac9283e44e9ab264d7298b5f |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | szha/mxnet | python/mxnet/symbol/numpy/random.py | Python | apache-2.0 | 39,064 | [
"Gaussian"
] | f40fce0bb84be32e588f5aac98187ea060c1e6d03a581edba3feb2be8e3d0cb8 |
# Copyright (c) 2020 PaddlePaddle 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 app... | luotao1/Paddle | python/paddle/nn/functional/common.py | Python | apache-2.0 | 83,880 | [
"NEURON"
] | d895c6ab3164f60ddb2314296bb3a09cb13772498a402e4b36c3602d54555975 |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkOutlineFilter(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
vtk.... | chrisidefix/devide | modules/vtk_basic/vtkOutlineFilter.py | Python | bsd-3-clause | 486 | [
"VTK"
] | 4121a7e5c811ba0ad2311e867bc0192cfc2be401f239ac81e317635ecfc89b5e |
#!/usr/bin/env python
#
# Tools for working with bowtie2-build
#
# http://bowtie-bio.sourceforge.net/bowtie2/
#
# (c) The James Hutton Institute 2016
# Author: Leighton Pritchard and Peter Thorpe
import subprocess
from collections import namedtuple
from .tools import is_exe, NotExecutableError
# factor... | widdowquinn/THAPBI-pycits | pycits/bowtie2_build.py | Python | mit | 2,017 | [
"Bowtie"
] | 70b1248a575a8d040039cc5614cdbb2adc434a8d9155d3890f3a73182b37d63b |
'''This example uses a convolutional stack followed by a recurrent stack
and a CTC logloss function to perform optical character recognition
of generated text images. I have no evidence of whether it actually
learns general shapes of text, or just is able to recognize all
the different fonts thrown at it...the purpose ... | kitstar/DNNConvert | example/keras/image_ocr.py | Python | apache-2.0 | 21,106 | [
"Gaussian"
] | 704ed9fd3b1ae9cfe265c11eee5ec764c299ab047df281450870d5377835b6ae |
"""Oral Argument Audio Scraper for Eighth Circuit Court of Appeals
CourtID: ca8
Court Short Name: 8th Cir.
Author: Brian W. Carver
Date created: 2014-06-21
History:
- 2014-07-22: download_url fixed by mlr
"""
from datetime import datetime
from juriscraper.OralArgumentSite import OralArgumentSite
class Site(OralArgu... | brianwc/juriscraper | oral_args/united_states/federal_appellate/ca8.py | Python | bsd-2-clause | 2,081 | [
"Brian"
] | 7fe67df0671bdda66f587f86fb09de7e6ae8e75ff2c7da81e56c6929e17f6905 |
# 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... | drpngx/tensorflow | tensorflow/contrib/autograph/converters/slices.py | Python | apache-2.0 | 2,807 | [
"VisIt"
] | a52aa732ea8ddae0ee1224c0064f574435442324cf7d2fc532fd6c596ff989ab |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | BackupTheBerlios/espressopp | src/tools/init_cfg/lattice.py | Python | gpl-3.0 | 3,712 | [
"ESPResSo"
] | 0a0ab7585d02de9b216d3f413119f6f51d2d321a1c87ccdf07aed48dd0b9b857 |
# Orca
#
# Copyright 2005-2008 Sun Microsystems Inc.
# Copyright 2011 Igalia, S.L.
#
# 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 optio... | pvagner/orca | src/orca/input_event.py | Python | lgpl-2.1 | 15,640 | [
"ORCA"
] | 6fcfa6af1d08b814fa09ec84bdc1b6fac1b684f484b749a5cf0080e8384b4d6b |
#
# tsne.py
#
# Implementation of t-SNE in Python. The implementation was tested on Python 2.5.1, and it requires a working
# installation of NumPy. The implementation comes with an example on the MNIST dataset. In order to plot the
# results of this example, a working installation of matplotlib is required.
# The ... | agartland/utils | pytsne.py | Python | mit | 5,162 | [
"Gaussian"
] | 4fa097dc6b75e35ea97ac428f2b8f9ec290bdef7edcb94254dfebd378d14332c |
""" JobLoggingDB class is a front-end to the Job Logging Database.
The following methods are provided
addLoggingRecord()
getJobLoggingInfo()
getWMSTimeStamps()
"""
import time
from types import StringTypes, IntType, LongType
from DIRAC import gLogger, S_OK, S_ERROR
from ... | vmendez/DIRAC | WorkloadManagementSystem/DB/JobLoggingDB.py | Python | gpl-3.0 | 5,906 | [
"DIRAC"
] | d87ff246335be4da140374494106dd7b43eff534ac3853dd59d2ca6d8075d0c4 |
"""
tint.tracks
===========
Cell_tracks class.
"""
import copy
import datetime
import numpy as np
import pandas as pd
from .grid_utils import get_grid_size, get_radar_info, extract_grid_data
from .helpers import Record, Counter
from .phase_correlation import get_global_shift
from .matching import get_pairs
from .o... | openradar/TINT | tint/tracks.py | Python | bsd-2-clause | 8,579 | [
"Gaussian"
] | 99f8237cfecb3b704f4fc66693eeda3e0fd3797ad0aff30d17c774bdd569dcc1 |
# Copyright Yair Benita Y.Benita@pharm.uu.nl
# Biopython (http://biopython.org) license applies
"""Simple protein analysis.
Example::
X = ProteinAnalysis("MAEGEITTFTALTEKFNLPPGNYKKPKLLYCSNGGHFLRILPDGTVDGTRDRSDQHIQLQLSAESVGEVYIKSTETGQYLAMDTSGLLYGSQTPSEECLFLERLEENHYNTYTSKKHAEKNWFVGLKKNGSCKRGPRTHYGQKAILFLPLPV")
... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/SeqUtils/ProtParam.py | Python | gpl-2.0 | 11,022 | [
"Biopython"
] | 85640ac63a7b3686959c9c55841257c9bad72f9880f11bcc9dc2515aed72ca88 |
import Bio.SubsMat.MatrixInfo
from Bio import pairwise2
import KmerUtil
from Bio.pairwise2 import format_alignment
DEF_MATCH = 1
DEF_MISMATCH = -1
DEF_GAP = -1
# idt evidentally uses -2 for opening a gap or mismatching
IDT_DEF_GAP_MIS = -2
# Parameters from European Bioinformatics Institute,
# http://www.ebi.ac.uk/To... | prheenan/Research | Perkins/Projects/Primers/Util/AlignUtil.py | Python | gpl-3.0 | 6,532 | [
"Biopython"
] | a5a6f67fabb4ae7d2b162ddc8fccaabb2354738a5a1b39bec899955bd1dd09d6 |
# Copyright (c) 2012 OpenStack Foundation
# 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 ... | thomasem/nova | nova/tests/unit/compute/test_resource_tracker.py | Python | apache-2.0 | 61,844 | [
"exciting"
] | fe1c87fa27df8cceea4838d6116d0abfa3f56761a1a848e88c9f979cb8901463 |
##
# Copyright 2013-2021 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://www.vscentrum.be),
# Flemish Research Foundation (F... | akesandgren/easybuild-easyblocks | easybuild/easyblocks/b/bowtie.py | Python | gpl-2.0 | 3,637 | [
"Bowtie"
] | ee2bfae2a1050aab8ed9943224b21565ef9e54eaf54ad913e67dea306f26f6f7 |
# -*- coding: utf-8 -*-
import datetime
from email.utils import parseaddr
import re
import django_otp
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.models import Site
from django.http import HttpResponse, HttpRequest
from django.test import TestCa... | jackrzhang/zulip | zerver/tests/test_signup.py | Python | apache-2.0 | 145,030 | [
"VisIt"
] | d3e59bfd555fb0af11531a2113d077a0a03966e9734d9251a81a0db20c0962c8 |
############################################################
# $HeadURL$
############################################################
"""
DIRAC.WorkloadManagementSystem.private package
"""
__RCSID__ = "$Id$" | avedaee/DIRAC | WorkloadManagementSystem/private/__init__.py | Python | gpl-3.0 | 212 | [
"DIRAC"
] | f1ceb5a4ca23071f09ad53d540f697208a752c69bf7566e8629787722705ec4b |
# Copyright (c) 2012 OpenStack Foundation
# 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 ... | bgxavier/nova | nova/tests/unit/compute/test_resource_tracker.py | Python | apache-2.0 | 57,477 | [
"exciting"
] | 282cfe5ff93d918306143e0467dc73a61c1ec1b7369e79ed5e538128e823816e |
'''
compile_test.py - check pyximport
=================================
test script for checking if compilation against
pysam and tabix works.
'''
# clean up previous compilation
import os
try:
os.unlink('_compile_test.c')
os.unlink('_compile_test.pyxbldc')
except OSError:
pass
import pyximport
pyximport... | daler/pysam | tests/compile_test.py | Python | mit | 928 | [
"pysam"
] | 6c4520ae597c34e6b4a78cbd0fc33a73cca2bc7daab43faef16e7242657864a7 |
# -*- 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-cx | tests/unit/gapic/dialogflowcx_v3beta1/test_security_settings_service.py | Python | apache-2.0 | 110,511 | [
"Octopus"
] | 4ff647ab626a33e181ec4f0329a07049d5468a009e966172415aa3307274a926 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2019, 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
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | rosmo/ansible | lib/ansible/modules/cloud/kubevirt/kubevirt_vm.py | Python | gpl-3.0 | 16,102 | [
"Galaxy"
] | 2d97f54e1c9d9a7aa6fc71a049c57d3a2d975b697ad3f88956410400060d1691 |
"""
TornadoServer create a web server and load services.
It may work better with TornadoClient but as it accepts HTTPS you can create your own client
"""
import time
import datetime
import os
import asyncio
import M2Crypto
import tornado.iostream
tornado.iostream.SSLIOStream.configure(
"tornado_m2crypto.m2iostr... | DIRACGrid/DIRAC | src/DIRAC/Core/Tornado/Server/TornadoServer.py | Python | gpl-3.0 | 11,231 | [
"DIRAC"
] | 7d6697015c9a384105fc17c1f1a628c8111cc4626b4d4ebf534f98cab43c472e |
#
# @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
#... | jH0ward/psi4 | psi4/driver/procrouting/roa.py | Python | lgpl-3.0 | 6,539 | [
"Psi4"
] | d8a5d4626986adcb1631e1ae2ae4d854dc43510e187f8b8ea815be069e6d304d |
#
# Restriction Analysis Libraries.
# Copyright (C) 2004. Frederic Sohm.
#
# 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.
#
import os
#####################################################... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/Restriction/RanaConfig.py | Python | gpl-2.0 | 3,234 | [
"Biopython"
] | 206efce6c7882f515b41afcf09d136db9e08069423216b5df31a72aaa64e6fa6 |
# Copyright (C) 2012 Alex Nitz
#
# 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 program is distributed in the... | bema-ligo/pycbc | pycbc/waveform/waveform.py | Python | gpl-3.0 | 36,965 | [
"Gaussian"
] | b5fe14d11ac272d52c12399a8f3ab980280bb58f73d9f8db6789e4cdb6984140 |
"""
Parameterizes molecules for molecular dynamics simulations
"""
__version__ = '2.5.2'
__author__ = 'Robin Betz'
from Dabble.param.moleculematcher import MoleculeMatcher
from Dabble.param.charmmmatcher import CharmmMatcher
from Dabble.param.ambermatcher import AmberMatcher
from Dabble.param.charmm import CharmmWrit... | drorlab/dabble | Dabble/param/__init__.py | Python | gpl-2.0 | 367 | [
"Amber",
"CHARMM"
] | b994dd3c817f38471b028aacfda3690fe6853d6db78078041d7e37430c2a5c58 |
# This module implements classes that represent atoms, molecules, and
# complexes. They are made as copies from blueprints in the database.
#
# Written by Konrad Hinsen
# last revision: 2002-6-3
#
import Bonds, Collection, ConfigIO, Database, Units, Utility, Visualization
from Scientific.Geometry import Vector, Tensor... | fxia22/ASM_xf | PythonD/site_python/MMTK/ChemicalObjects.py | Python | gpl-2.0 | 32,290 | [
"CRYSTAL"
] | dc8ca632734b31245e7396201a1ef4ace0c87625e330e24547a417bf38c7989b |
#!/usr/bin/python
#
# check-aacraid.py
#
# Grabs the output from "/usr/StorMan/arcconf GETCONFIG 1 LD" then
# determines the health of the Logical Devices.
#
# Grabs the output from "/usr/StorMan/arcconf GETCONFIG 1 AL" then
# determines the health of various status indicators from the card
# and drives.
#
# After the ... | zorkian/nagios-plugins | check_aacraid.py | Python | bsd-3-clause | 5,847 | [
"Desmond"
] | 5563571260cb81e5830f8b9c8b6cc346d26727a55af1b5c405e712e61b5747da |
import pyspeckit
import numpy as np
from pyspeckit.spectrum.models import inherited_voigtfitter
# This example uses scipy
try:
import scipy
except ImportError:
exit
# technically, the voigt fitter works as a singlefitter (i.e., you can fit the
# background level and the peak simultaneously)
# in practice, how... | vlas-sokolov/pyspeckit | examples/voigt.py | Python | mit | 2,458 | [
"Gaussian"
] | 409c71dc24529dc829c0ffe1f6acd40d11b21da3e34e258e1c76557decbdf8da |
"""Functionality for representing data on disk of individual models."""
import logging
import numpy as np
import xarray as xr
from ._constants import RADIUS_EARTH
from . import internal_names
from . import utils
def _get_grid_attr(grid_objs, attr_name):
"""Get attribute from the grid_objs file(s)."""
for xd... | spencerahill/aospy | aospy/model.py | Python | apache-2.0 | 11,711 | [
"NetCDF"
] | e57f4e5ec9013b0de570caff049821d17872719c9097d355cc89bd716f88c43d |
# -*- coding: utf-8 -*-
#
# libmemcached documentation build configuration file, created by
# sphinx-quickstart on Sun Mar 6 12:05:53 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | crazyhuaer/netbeanscode | C/example/libmemcached-1.0.18/docs/conf.py | Python | cc0-1.0 | 21,258 | [
"Brian"
] | 548f2d2713bcc3df78c640b9455d097b075e1a02de3c1e79c0b2d39baf0eaa61 |
"""Serve pre-compressed static content from GridFS with aiohttp.
Requires Python 3.5 or later and aiohttp 3.0 or later.
Start a MongoDB server on its default port, run this script, and visit:
http://localhost:8080/fs/my_file
"""
# -- include-start --
import asyncio
import gzip
import tempfile
import aiohttp.web
fr... | wujuguang/motor | doc/examples/aiohttp_gridfs_example.py | Python | apache-2.0 | 1,705 | [
"VisIt"
] | 672f492ffb677484814e34088fc6f69e92d9a4e0071a804db1a6ca5254c3d644 |
""" ModuleBase - contains the base class for workflow modules. Defines several common utility methods.
The modules defined within this package are developed in a way to be executed by a DIRAC.Core.Worfklow.Worfklow.
In particular, a DIRAC.Core.Workflow.Worfklow object will only call the "execute" function, tha... | sposs/DIRAC | Workflow/Modules/ModuleBase.py | Python | gpl-3.0 | 21,525 | [
"DIRAC"
] | e6e58b9a38cac051314163f828e30a789846222284f589ffc6d7129317340c2f |
# -*- coding: utf-8 -*-
# enzyme - Video metadata parser
# Copyright 2011-2012 Antoine Bertin <diaoulael@gmail.com>
# Copyright 2003-2006 Dirk Meyer <dischi@freevo.org>
#
# This file is part of enzyme.
#
# enzyme is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public Lice... | seppi91/CouchPotatoServer | libs/enzyme/fourcc.py | Python | gpl-3.0 | 31,592 | [
"CRYSTAL"
] | 707d0207034a608eae0f5c09dfd202b7352f3008327f86fb676b197c31e091ff |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import warnings
import numpy as np
from pymatgen.core.structure import Specie, Structure
from pymatgen.electronic_structure.core import Magmom
from pymatgen.sym... | Bismarrck/pymatgen | pymatgen/analysis/magnetism/analyzer.py | Python | mit | 17,193 | [
"pymatgen"
] | 4f4bf31bec0e27100d0fcbab5830a1bf4d187befe44cde789c811297a6b8b99b |
import pytest
from django.contrib.auth.models import User
from graphapi.tests.utils import populate_db
from openstates.data.models import Person
from profiles.models import Subscription
COMPLEX_STR = (
"Bills matching 'topic' from AK, upper chamber, "
"classified as bill, including subjects 'MOOSE, WILDLIFE', ... | openstates/openstates.org | profiles/tests/test_models.py | Python | mit | 1,878 | [
"MOOSE"
] | 78c312201877001bbc803141170fd821520d93dbc9f78d5db7889e0d3146ac45 |
# Copyright (C) 2017, Jaguar Land Rover
#
# This program is licensed under the terms and conditions of the
# Mozilla Public License, version 2.0. The full text of the
# Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
#
import inspect
import importlib
class LoaderError(Exception):
"""Base exce... | shanefagan/vehicle_signal_manager | ipc/loader.py | Python | mpl-2.0 | 1,553 | [
"Jaguar"
] | 9cbe420d762edd5292e33ac4982fda090990e249ccbd32604d11a531d9699e9c |
# FILE COPIED FROM conf.orig.py; DO NOT CHANGE
# -*- coding: utf-8 -*-
# Copyright 2010, 2014-2015 VPAC
#
# Karaage documentation build configuration file, created by
# sphinx-quickstart on Thu Jan 16 14:28:57 2014.
#
# This file is execfile()d with the current directory set to its containing
# dir.
#
# Note that not a... | Karaage-Cluster/karaage-debian | docs/admin/conf.py | Python | gpl-3.0 | 9,316 | [
"Brian"
] | 613d252646b29d0b542fafc3ab11d8c1478a3be8b76c319ee2c49622fa3aa7ee |
"""Guess the MIME type of a file.
This module defines two useful functions:
guess_type(url) -- guess the MIME type and encoding of a URL.
guess_extension(type) -- guess the extension for a given MIME type.
It also contains the following, for tuning the behavior:
Data:
knownfiles -- list of files to pa... | ai-ku/langvis | jython-2.1/Lib/mimetypes.py | Python | mit | 7,593 | [
"NetCDF"
] | de25ba44837f167a88917f98e15e3c73dbb26dba90fd5ac0226e5905d085d1c2 |
#build list of available data
import sys
builds= []
try:
#read db names from file, this file is also used in galaxy/util.py
for line in open("static/ucsc/builds.txt"):
if line[0:1] == "#": continue
try:
fields = line.replace("\r","").replace("\n","").split("\t")
... | jmchilton/galaxy-central | tools/data_source/upload_code.py | Python | mit | 772 | [
"Galaxy"
] | 36ca2c697622f9c8ca94c98f773da6d1b62c0bb791b79f4d6b5702bd2ffe8aa0 |
import tkSimpleDialog
import tkMessageBox
from pymol.wizard import Wizard
from pymol import cmd, preset
import os,sys
cwd = os.getcwd() #ensure pymol can find libraries
sys.path.append(cwd)
import selector
import p3d.protein
import p3d.geo
cmd.set_wizard(selector.selector('{name}','{chain}','{resid}','{resid}'))
cmd... | tmorrell/SamStruct | inputs/pymol_view.py | Python | gpl-2.0 | 650 | [
"PyMOL"
] | 22594e0485746121bab77cdd311286f3a91e90ea6a78c2fe66bde54a4bdc4c52 |
import numpy as np
import tensorflow as tf
import argparse
import time
import os
import cPickle
from utils import DataLoader
from model import Model
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--rnn_size', type=int, default=256,
help='size of RNN hidden state')
pars... | ruohoruotsi/Wavelet-Tree-Synth | nnet/write-rnn-tensorflow-master/train.py | Python | gpl-2.0 | 3,320 | [
"Gaussian"
] | 8a9fd8c1ba1cea6016b260be140739c1bbea03b907cd14f5c44cf68578ae432a |
# -*- coding: utf-8 -*-
#
# crud_fusion documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values ha... | BCriswell/crud-fusion | docs/conf.py | Python | bsd-3-clause | 7,863 | [
"Brian"
] | 8e1cc737b3955d0b40644bdfc5986f2ae6d16db5cbce72bb09f85125c43dfb1d |
import warnings
import mdtraj as md
import numpy as np
from msmbuilder.featurizer import LigandContactFeaturizer
from msmbuilder.featurizer import BinaryLigandContactFeaturizer
from msmbuilder.featurizer import LigandRMSDFeaturizer
def _random_trajs():
top = md.Topology()
c = top.add_chain()
r = top.add... | mpharrigan/mixtape | msmbuilder/tests/test_ligandfeaturizers.py | Python | lgpl-2.1 | 3,659 | [
"MDTraj"
] | f7c55832c929604f8d1e1bce93d728df5b8b42345684d5c14a1c6ab9504855ab |
# Orca
#
# Copyright 2005-2009 Sun Microsystems Inc.
# Copyright 2010 Joanmarie Diggs, Mesar Hameed
#
# 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, ... | GNOME/orca | src/orca/orca_state.py | Python | lgpl-2.1 | 2,456 | [
"ORCA"
] | 4281e87108050eea5f560bbcbecccb8552173dfd2be31efffaf581d27f641500 |
from neuron import Neuron
from inputprocessor import InputProcessor
import numpy as np
import pickle
class NeuralNetwork:
def __init__(self,num_dim,num_hidden,num_out):
self.num_hidden = num_hidden
self.num_out = num_out
self.hidden_layer = [Neuron(num_dim) for i in xrange(num_hidden)]
... | SahilC/NeuralNetworks | neuralnetwork.py | Python | mit | 4,595 | [
"NEURON"
] | 8e1a5b9726ffe4e47922a7732e17bfc9760d55bc0a398727d0562fe450a73c2b |
#!/usr/bin/env python
#
# This sctipts reads a json file and output a csv file
# Note: Does not decompose lower level objects
# Brian McKean
#
import fileinput
import json
import csv
import sys
lines = []
for line in fileinput.input():
lines.append(line)
myjson = json.loads(''.join(lines))
keys = {}
for i in myjs... | co-bri/book | hackathons/fcq/json2csv1.py | Python | mit | 540 | [
"Brian"
] | 4ede9ac15cfafa9590ef2115c197de21c9c0ce740c30a1d2f7c1910d02ab1fc8 |
'''
@file : testFile6.py
@author (A) : Madhu Kumar Dadi.
@project : Social List
@function :
test6(postags) : checks for presence of nouns in the hashtag
@postags : a list containing pos tags for a hashtag
return : count of nouns
@Licence :
This work is licensed under the
Creative Commons Attribution-NonCo... | SummerProject16/project | CMUTweetTagger/testFile6.py | Python | cc0-1.0 | 650 | [
"VisIt"
] | f6602d4230d1c80fc3ae451d6c9001bee8364dec87200c0353f3ca45d67ebaa6 |
#!/usr/bin/python2.6
#
# Copyright 2009 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 require... | rec/echomesh | code/python/external/fake/fake_filesystem_test.py | Python | mit | 107,596 | [
"VisIt"
] | 95635fc61138c1f3a36a159f016e978bca4a60bf5641d5436666863293f2af1c |
import time
import urllib2
import sys
"""
next step: make it create new file each time, run cleanup op
"""
def cc_pull(x):
try:
iteration = x[1] + 1
url = x[0]
callsign = x[2]
filename = callsign + str(iteration).rjust(3,'0') + ".txt"
record = open(filename,"w")
last_song = x[3]
response = urllib2.urlo... | shamindrasorg/eda_play | data/classic-rock/radio.py | Python | mit | 11,402 | [
"VisIt"
] | 91786eb2f74c422412ebb079922c30c867c590db28db2b40d300d5121921c229 |
from chiplotle.core.visitor import Visitor
class TransformVisitor(Visitor):
'''"Crawler" pattern encapsulation for transformations applied to _Shapes.
Separates the "what it does" (action) from "how it does it" (traversal).'''
def __init__(self, transform):
self.transform = transform
def visi... | drepetto/chiplotle | chiplotle/geometry/transforms/transformvisitor.py | Python | gpl-3.0 | 1,114 | [
"VisIt"
] | cc1a156674a910aa3e2224a405ce080885ccf95019cdd2a6ebb4da03c68f1075 |
## This file is part of PyANTLR. See LICENSE.txt for license
## details..........Copyright (C) Wolfgang Haefelinger, 2004.
## get sys module
import sys
version = sys.version.split()[0]
if version < '2.2.1':
False = 0
if version < '2.3':
True = not False
###xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx... | edisonlz/fruit | web_project/base/site-packages/pyExcelerator/antlr.py | Python | apache-2.0 | 81,931 | [
"VisIt"
] | 42dfbc6ecc65418f090b184af99188e8017f0f110eadd9793b3b4fea98cdb741 |
#!/usr/bin/env python
from keras.models import Sequential, model_from_json, model_from_yaml
from keras.layers import Dense, Dropout, Activation, Merge, Flatten, \
Convolution2D, MaxPooling2D, ZeroPadding2D
from keras.layers.normalization import BatchNormalization
from keras.layers.advanced_activations import PReLU... | waynezv/ANN | ANN_large_v2.py | Python | mit | 20,943 | [
"VisIt"
] | c3d7ebd5cdea116d2c4a825bce4a9a1a23bd54240e43d67ce69f1d951b83df19 |
"""TransformationInfo class to be used by ILCTransformation System"""
from collections import OrderedDict, defaultdict
from itertools import zip_longest
from DIRAC import gLogger, S_OK
from DIRAC.Core.Utilities.List import breakListIntoChunks
from DIRAC.Core.Utilities.Proxy import UserProxy
from DIRAC.DataManagementSy... | DIRACGrid/DIRAC | src/DIRAC/TransformationSystem/Utilities/TransformationInfo.py | Python | gpl-3.0 | 8,549 | [
"DIRAC"
] | 762d47be9eddd0d72c9ec6e1b2ad37b50c9ffebc4f02062b7f2542e1d91f75f6 |
#!/usr/bin/python
#----------------------------------------------------------------------------#
# #
# ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation #
# and distributed under the MIT License (MIT). ... | dgu123/ozz-animation-1 | build-helper.py | Python | mit | 12,044 | [
"VisIt"
] | 9aabbfa7170bce167cf7b7fced2d48a24bfd6d979390631c011101426b4b2071 |
import types
import terrain_modifiers
import numpy as np
import terrainblocks
from game import *
import random
def get_modifiers():
"""
Obtains a reference to all the modifier functions.
:return:
"""
return [terrain_modifiers.__dict__.get(a) for a in dir(terrain_modifiers) if isinstance(getattr(... | AndrewJamesTurner/Every-Womans-Ground | terrain_utils.py | Python | gpl-3.0 | 7,057 | [
"CRYSTAL"
] | a4ae09b89ab1eaac32b337b3da57e6ee1b058fcb7af92af4bd70ea93c09a8ccf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.