text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
import json
from django.conf import settings
from django.test import TestCase
from django.utils.importlib import import_module
from funfactory.urlresolvers import reverse
import mock
from nose.tools import ok_, eq_
from airmozilla.authentication.browserid_mock import mock_browserid
from airmozilla.base import mozil... | chirilo/airmozilla | airmozilla/authentication/tests/test_views.py | Python | bsd-3-clause | 10,650 | [
"CASINO"
] | 309d73bea5791f11a2b8166e18ea93c0cb84c064e6ea176ddbf37ab799bde94c |
#!/usr/bin/env python
from pymatgen.analysis.chemenv.utils.scripts_utils import compute_environments, welcome, thankyou
from pymatgen.analysis.chemenv.utils.chemenv_config import ChemEnvConfig
from argparse import ArgumentParser
import logging
__author__ = 'waroquiers'
def main():
m_description = 'Welcome to t... | fraricci/pymatgen | pymatgen/cli/get_environment.py | Python | mit | 1,341 | [
"pymatgen"
] | e72d5f7d965d7646bf5bbe14b0c4f60d3a0baac34039673357bca32fa15d3884 |
# coding: utf-8
from __future__ import division, unicode_literals
"""
Some reimplementation of Henkelman's Transition State Analysis utilities,
which are originally in Perl. Additional features beyond those offered by
Henkelman's utilities will be added.
This allows the usage and customization in Python.
"""
__auth... | ctoher/pymatgen | pymatgen/analysis/transition_state.py | Python | mit | 9,167 | [
"pymatgen"
] | 982cfe976f9b5670bac18a30a2244ea1a15c72afc95fe99a40eff9c5880b79c8 |
# Copyright 2013 anthony cantor
# This file is part of pyc.
#
# pyc 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.
#
# pyc is distr... | cantora/pyc | pyc_heapify.py | Python | gpl-3.0 | 4,434 | [
"VisIt"
] | efe340f231109733176adba4eafee03700dc52aab580bdd2023e06de69b1fd96 |
#!/usr/bin/env python
# This file is part of the Printrun suite.
#
# Printrun 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.
#
# Prin... | pintubigfoot/pinturun | pronsole.py | Python | gpl-3.0 | 61,093 | [
"Firefly"
] | 83e21a2bf9f6f516dd50f43eb9a23d44f6b57abdfa841c444263c3fa33bdd1b4 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import os
from pymatgen.core.structure import Structure
from pymatgen.io.atat import Mcsqs
from pymatgen.util.testing import PymatgenTest
test_dir = os.path.join(PymatgenTest.TEST_FILES_DIR, "mcsqs")
class AtatTest(Pymatge... | materialsproject/pymatgen | pymatgen/io/tests/test_atat.py | Python | mit | 3,733 | [
"pymatgen"
] | d960c73cd098d43ad9fd1fbc229086a293bda5c4a893b80fc2448dde768c8690 |
""" This tests only need the JobDB, and connects directly to it
"""
import unittest
from DIRAC.Core.Base.Script import parseCommandLine
parseCommandLine()
from DIRAC import gLogger
from DIRAC.WorkloadManagementSystem.DB.JobDB import JobDB
jdl = """
[
Origin = "DIRAC";
Executable = "$DIRACROOT/scripts/dirac-... | Andrew-McNab-UK/DIRAC | tests/Integration/WorkloadManagementSystem/Test_JobDB.py | Python | gpl-3.0 | 3,391 | [
"DIRAC"
] | 4caf2650c8474cd6e57520efdff8f4a6c93e47fe39c57e5595df427eecdf946e |
# -*- coding: utf-8 -*-
"""
.. _tut-artifact-ica:
Repairing artifacts with ICA
============================
This tutorial covers the basics of independent components analysis (ICA) and
shows how ICA can be used for artifact repair; an extended example illustrates
repair of ocular and heartbeat artifacts.
.. contents... | mne-tools/mne-tools.github.io | 0.20/_downloads/7e29f93bd4df8429aa43c25d9f1ede6c/plot_40_artifact_correction_ica.py | Python | bsd-3-clause | 29,979 | [
"Gaussian"
] | f14b5ac97ad444cb13e87db6f5b57c27f53d95e5588e36ac77a7775fd938a702 |
"""
simulate the stochastic dynamics of Hopfield-like networks. We study the
problem of memory retrieval and memory navigation. This means the exploration
of memory states by non-equilibrium dynamics. To do so we use two models, one
is the Kanter model, the other is the dynamic energy model.
"""
import numpy as np
im... | pablosv/memexp | memories/memexp.py | Python | gpl-3.0 | 14,995 | [
"NEURON"
] | 6b408b7f7c7077418046961083b0895df37a0f9959b382e26539b4c6b516a36e |
#########################################################################
# Ryuretic: A Modular Framework for RYU #
# !/ryu/ryu/app/Ryuretic/Ryuretic_Intf.py #
# Authors: #
# Jacob Cox (jcox70@gatech.edu) ... | Ryuretic/RAP | ryu/ryu/app/Ryuretic/Ryuretic_Intf_v6.py | Python | apache-2.0 | 24,311 | [
"VisIt"
] | fecfe8ce0c73947411afeee6bb503842134871626e8d9a26d336b0b3bc8fcae7 |
# -*- coding: utf-8 -*-
# Copyright: (c) 2020-2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""Dependency structs."""
# FIXME: add caching all over the place
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
imp... | bcoca/ansible | lib/ansible/galaxy/dependency_resolution/dataclasses.py | Python | gpl-3.0 | 20,285 | [
"Galaxy"
] | fa3c308f94de854d8ce63fdd294807aa7bd0375d15b5a2ef34c0790c0d4d6263 |
#!/usr/bin/env python
#
# $File: funcform.py $
#
# This file is part of simuPOP, a forward-time population genetics
# simulation environment. Please visit http://simupop.sourceforge.net
# for details.
#
# Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you can redistribute i... | BoPeng/simuPOP | docs/funcform.py | Python | gpl-2.0 | 1,286 | [
"VisIt"
] | f01664b85abc2abe592d106e1ea5603e0497a0c94d008f2ee07faa76046f9380 |
from __future__ import absolute_import, unicode_literals
from bs4 import BeautifulSoup
from django.test import TestCase
from wagtail.core import hooks
class TestHooks(TestCase):
fixtures = ['test.json']
def test_menus_modify_primed_menu_items(self):
# NOTE: Positional args used to ensure supplied a... | rkhleics/wagtailmenus | wagtailmenus/tests/test_hooks.py | Python | mit | 7,924 | [
"VisIt"
] | 19566b0850e48f7ecf9c1a5632498bc56d1c07fc1a8af0ebaedd13a5fc756dc2 |
"""
Calculating a custom statistic
==============================
This example shows how to define and use a custom
:class:`iris.analysis.Aggregator`, that provides a new statistical operator for
use with cube aggregation functions such as :meth:`~iris.cube.Cube.collapsed`,
:meth:`~iris.cube.Cube.aggregated_by` or
:me... | SusanJL/iris | docs/iris/example_code/General/custom_aggregation.py | Python | gpl-3.0 | 3,397 | [
"NetCDF"
] | 9cb321376c0349ebc24cf968b862a13b58035d652408e86c326060d02b8f78f5 |
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2017 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | theochem/horton | horton/io/molpro.py | Python | gpl-3.0 | 5,497 | [
"Molpro"
] | 07da429d104771050babe8c8686bcf9e89b35ba733a22f210d8dd359aed6b292 |
"""HTSeq is a package to process high-throughput sequencing data.
See http://www-huber.embl.de/users/anders/HTSeq for documentation.
"""
import itertools, warnings, os, shlex
try:
from _HTSeq import *
except ImportError:
if os.path.isfile( "setup.py" ):
raise ImportError( "Cannot import 'HTSeq' when work... | rasilab/htseq | HTSeq/__init__.py | Python | gpl-3.0 | 39,493 | [
"Bowtie",
"HTSeq",
"pysam"
] | 4dd731709d9c6e8d8cb64967bd29391cc1719f426d4ee7e4b748582c7de67350 |
"""Utilities to assist with commerce tasks."""
import json
import logging
from urllib.parse import urlencode, urljoin
import requests
import waffle # lint-amnesty, pylint: disable=invalid-django-waffle-import
from django.conf import settings
from django.contrib.auth import get_user_model
from django.urls import rev... | edx/edx-platform | lms/djangoapps/commerce/utils.py | Python | agpl-3.0 | 15,662 | [
"VisIt"
] | 6a13d6b72f0f863bddbee0c16090e59496c43d0816be6d6c033b47a48a82dd2d |
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2016 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the h... | dholbach/snapcraft | snapcraft/tests/test_plugin_gulp.py | Python | gpl-3.0 | 5,630 | [
"GULP"
] | 987f618bbdd079c4f4090a606a928cb6b953694dae90d04581e2c2606ccc18fc |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible 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) an... | domibarton/ansible | lib/ansible/constants.py | Python | gpl-3.0 | 20,345 | [
"Galaxy",
"MOOSE"
] | 9435a139eef702f7e3847ab5c94835ed572a044ac95bf8841981659ab0aff2a3 |
# -*- 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)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import copy
import json
import os
import py... | Fale/ansible | test/units/galaxy/test_collection_install.py | Python | gpl-3.0 | 35,033 | [
"Galaxy"
] | 1eb02215ada37c180c54959633605c62688d7ea8b1bb9ce18ae38c97aec847d5 |
import matplotlib.pyplot as plt
import os
from astropy.table import Table
import numpy as np
# setup information sources
degas = Table.read(os.path.join(os.environ['SCRIPTDIR'],'degas_base.fits'))
stack = Table.read('/lustre/cv/users/akepley/degas/stack_test/stack_IR6p0_mom1.fits')
plotDir = os.path.join(os.environ['... | low-sky/degas | scripts/plot_fdense_vs_mstar_combined.py | Python | gpl-3.0 | 2,305 | [
"Galaxy"
] | 0bde8cff7f6f6b9ecb03fdcbc11f42fa6af7369dafe66444b93c2a1bf8063a91 |
# -*- coding: utf-8 -*-
"""
Interpolate sounding data onto a regular grid
"""
import gzip
from scipy import spatial
import numpy as np
from maptools import ll2utm, readShpBathy, readDEM
from kriging import kriging
from netCDF4 import Dataset
from scipy.sparse import coo_matrix
from scipy.interpolate ... | UT-CWE/Hyospy | Hyospy_ensemble/lib/SUNTANS/GIS/demBuilder.py | Python | mit | 19,965 | [
"NetCDF"
] | fa428ca03c3b5b9e600f3fa0fcd7b01fea10aa1fea0480a64febfd24a31da8c5 |
"""Mission Pinball Framework Media Controller (mpf-mc) setup.py.
Notes:
This setup script is a modified/customized version of the Kivy setup.py script.
"""
import sys
import re
from copy import deepcopy
import os
from os.path import join, dirname, sep, exists, isdir
from os import walk, environ
from distutils.ve... | missionpinball/mpf-mc | setup.py | Python | mit | 27,376 | [
"Brian"
] | c3987cc750ae6fd5b2ea59d02ce596b60386123756e3c60ae31ba4e297dd5d96 |
# APRP.py: module containing functions, etc. related to the Approximate Partial Radiation Perturbation method
# (Taylor et al., 2007). Based on Matlab code written by Yen-Ting Hwang.
#
# To run, import this module into an outside script and then run "aprp_main" for
# the desired model
import numpy as np
import netC... | rdrussotto/pyAPRP | APRP.py | Python | mit | 25,480 | [
"NetCDF"
] | c24da678e781e645e808195b677218d9187deaba88bb088af075b896df63b41b |
#!/usr/bin/env python
import pysam
import sys
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
import argparse
ap = argparse.ArgumentParser(description="Plot a histogram of subreads based on alignments.")
ap.add_argument("bam", help="Alignments of reads.")
ap.add_argument("--image"... | yunlongliukm/chm1_scripts | PlotSubreadHist.py | Python | mit | 1,458 | [
"pysam"
] | e05785a8c622acb71c1fe2b99ac6f24553093bbb0003ad686ac41f46fc09e565 |
import os.path
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.dirname(__file__))
README_PATH = os.path.join(HERE, 'README.rst')
try:
README = open(README_PATH).read()
except IOError:
README = ''
setup(
name='rollbar',
packages=find_packages(),
version='0.5.7',
entr... | Stackdriver/pyrollbar | setup.py | Python | mit | 1,412 | [
"Brian"
] | 1cea3c90a3cab7c59a8ffca290b63b26009f1346c570ccce304438d01c6f4cb2 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Wrapper classes for Cif input and output from Structures.
"""
import math
import os
import re
import textwrap
import warnings
from collections import OrderedDict, deque
from functools import partial
from inspect import ge... | vorwerkc/pymatgen | pymatgen/io/cif.py | Python | mit | 60,831 | [
"Avogadro",
"CRYSTAL",
"pymatgen"
] | 808044bb29c0f2c24a80d1c08fd57b5824d758d490f0e562071adc371116a56b |
################################################################################
# The Neural Network (NN) based Speech Synthesis System
# https://svn.ecdf.ed.ac.uk/repo/inf/dnn_tts/
#
# Centre for Speech Technology Research
# University of Edinburgh, UK
# ... | bajibabu/merlin | src/work_in_progress/run_mdn.py | Python | apache-2.0 | 52,440 | [
"Gaussian",
"NEURON"
] | 931e4367d0572626937fa97e0f9d7488eadeb39309c89cf63ed3286ea01f62f5 |
########################################################################
# $HeadURL $
# File: RemoveFile.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2013/03/25 07:44:19
########################################################################
""" :mod: RemoveFile
================
.. module: RemoveFile... | andresailer/DIRAC | DataManagementSystem/Agent/RequestOperations/RemoveFile.py | Python | gpl-3.0 | 8,695 | [
"DIRAC"
] | db26bdacb31b262a8f45f28369329b573b224a0d105c3f87a1a44f0f40b07519 |
#!/usr/bin/env python
#pylint: disable=missing-docstring
####################################################################################################
# DO NOT MODIFY THIS HEADER #
# MOOSE - Multiphysics Object Oriented Simu... | yipenggao/moose | python/MooseDocs/tests/misc/test_misc.py | Python | lgpl-2.1 | 1,803 | [
"MOOSE"
] | dcd9c0affe9d869cd76026adc01b4dd855435d86f317b3de962c7e844bf28d0e |
import numpy as np
import datetime as dt
import matplotlib
import matplotlib.pyplot as plt
import os
#import smooth_2d as s2d
from scipy import signal
from scipy import misc
import warnings #To supress certain warnings.
from mpl_toolkits.basemap import Basemap
#Some module constant section.
default_figure_si... | gustfrontar/LETKF_WRF | common_python/scale_modules/bred_vector_functions.py | Python | gpl-3.0 | 26,147 | [
"Gaussian"
] | 6035b2de52b5177b6848cc8d1fe7648a085dae0b1b867693e68aa111ae8d5cb7 |
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2008-2010, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License ... | NetNow/wmi-samba | pysamba/test/watcher.py | Python | gpl-2.0 | 3,267 | [
"VisIt"
] | 921f34958df220e8ec26658c952046e0fb430625549c54b6086775975db69205 |
#!/usr/bin/env python
"""on_off_problem.py
This example compares Z values from various hypothesis tests performed
when incorporating a systematic uncertainty into a test of the
background-only hypothesis for a Poisson process.
The on/off problem, the different statistical tests and the input/output values
are describe... | bruneli/statspy | examples/on_off_problem.py | Python | bsd-3-clause | 3,533 | [
"Gaussian"
] | f75eb87d0ddd25d62ccff8f0d1870ff235638392e2f9951f9840f2047126c214 |
"""
One electron integrals.
"""
from numpy import pi,exp,floor,array,isclose
from math import factorial
from pyquante2.utils import binomial, fact2, Fgamma, norm2
# Notes:
# The versions S,T,V include the normalization constants
# The version overlap,kinetic,nuclear_attraction do not.
# This is so, for example, the k... | berquist/pyquante2 | pyquante2/ints/one.py | Python | bsd-3-clause | 7,247 | [
"Gaussian"
] | 78ceb423b8f66c4a4feb86ff3489d286f04aa496447faec823410c6d0efcd84c |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
import pytest # type: ignore
from _pytest.monkeypatch import MonkeyPatch # type: ignore
import os
import tempfile
import hashlib
from zipfile import ZipFile
from monty.json import MontyDecode... | gVallverdu/pymatgen | pymatgen/io/vasp/tests/test_sets.py | Python | mit | 57,559 | [
"BoltzTrap",
"VASP",
"pymatgen"
] | aa7830256581503b6342cbe05c9df7f1ed684837a6570f896cb14dcae617d0c0 |
# (C) British Crown Copyright 2017, Met Office
#
# This file is part of Iris.
#
# Iris 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) any later ve... | QuLogic/iris | lib/iris/_lazy_data.py | Python | gpl-3.0 | 5,137 | [
"NetCDF"
] | 9ffd1a7480a5437110aac5be9e26f22dcffd66c9200926df58e7e386a0d573e6 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import branch_bound
np = branch_bound.np
MAX_BRANCHES = 10000
# This could be used if more splits are wanted than are possible
infState = branch_bound.InfState()
class OTSPstate:
def __init__(self,d,order,nagents,visit2agent=[0],time=[0.],lastat=None,):
'''
... | encolpe/maxfield | lib/orderedTSP.py | Python | gpl-3.0 | 5,855 | [
"VisIt"
] | d5d1fea3aca3a8e1acebb6bab3247ab06a6fc8b782c489a69596f5f5b2707223 |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
"""
Miscellaneous tools used by OpenERP.
"""
from functools import wraps
import cProfile
from contextlib import contextmanager
import subprocess
import logging
import os
import passlib.utils
import socket
import sys
im... | QinerTech/QinerApps | openerp/tools/misc.py | Python | gpl-3.0 | 38,349 | [
"VisIt"
] | a3816179c2f10ecab6cd3dacb593410597fb833a6aa8540505c7b410ec293d5d |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2002-2007 Donald N. Allingham
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2008 Jerome Rapinat
# Copyright (C) 2008 Benny Malengier
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the ... | arunkgupta/gramps | gramps/gen/filters/rules/person/_hassourcecount.py | Python | gpl-2.0 | 1,763 | [
"Brian"
] | 298a8e4e73ea29dd5c9977a9a9438b5ae60fa5cbabe920543d48897c8279b187 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License... | sparkslabs/kamaelia | Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Experimental/Chassis.py | Python | apache-2.0 | 8,048 | [
"DIRAC"
] | fb3d7b8a9b87aad8f01353c098cbd2082fcf85e10309739433e583f8a3fea047 |
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | gkc1000/pyscf | pyscf/nao/test/test_0043_h2_vh_gto_vs_nao_nao.py | Python | apache-2.0 | 3,194 | [
"PySCF"
] | e60067f0e48ef84146b25df9d03768f5666af324f6b45eac73c6777a1ff859c5 |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#******************************************************************************
# ZYNTHIAN PROJECT: Zynthian GUI
#
# Zynthian GUI Touchscreen Calibration Class
#
# Copyright (C) 2020 Brian Walton <brian@riban.co.uk>
#
#********************************************************... | zynthian/zynthian-ui | zyngui/zynthian_gui_touchscreen_calibration.py | Python | gpl-3.0 | 16,339 | [
"Brian"
] | 38893a018b6c7618bff81f630371fc1bab9916e53003fc120d757dd54f166e7d |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
"""
This class provides read and write functions of VASP POSCAR file.
"""
import numpy as np
import copy
class POSCAR(object):
"""
POSCAR class enables POSCAR read/write functions.
"""
def __init__(self,fname="POSCAR"):
self.fname = fname
... | ryokbys/nap | nappy/vasp/poscar.py | Python | mit | 3,936 | [
"VASP"
] | 5b91441cbad8676ca2a4954e7c18243c7ee7adbf8ef3700d525f5085e65a7f7f |
"""Soundex algorithm
This program is part of "Dive Into Python", a free Python book for
experienced programmers. Visit http://diveintopython.org/ for the
latest version.
"""
__author__ = "Mark Pilgrim (mark@diveintopython.org)"
__version__ = "$Revision: 1.3 $"
__date__ = "$Date: 2004/05/11 19:11:21 $"
__copyright__ ... | tapomayukh/projects_in_python | sandbox_tapo/src/refs/diveintopython-pdf-5.4/diveintopython-5.4/py/soundex/stage4/soundex4a.py | Python | mit | 1,688 | [
"VisIt"
] | 8504f8e73d7efed5b5f9edb8ab6be4b1147ae1d280fa6b7ebf6a542863e4ff12 |
# Author : Arda ICMEZ
# Date : 04.10.15
import numpy as np
import matplotlib.pyplot as plt
def populate(arr):
"""
Rounding up numbers from the given gaussian array, adding them into
the dictionary with the calculated index
arr : list<double>
"""
roundedArr = {}
for item in arr:
... | ArdaIcmez/dagitik | odev01/odev01.py | Python | gpl-2.0 | 3,013 | [
"Gaussian"
] | dc45ed3de60bfd3c43056379f12b96224e428c4713b1391af8b6a6de37f0627f |
# -*- coding: utf-8 -*-
"""IPython Shell classes.
All the matplotlib support code was co-developed with John Hunter,
matplotlib's author.
"""
#*****************************************************************************
# Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
#
# Distributed under the t... | toomoresuch/pysonengine | eggs/ipython-0.10.1-py2.6.egg/IPython/Shell.py | Python | mit | 46,259 | [
"Brian"
] | 7ab733639f07b9dd9ee15b0003a9cce73ce01c276f95d43ecfbc13b31a4867fe |
# -*- coding: utf-8 -*-
# Copyright 2012 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import io
import os
import re
import tempfile
import time
from contextlib import contextmanager
import warnings
from selenium.webdriver... | cobrateam/splinter | splinter/driver/webdriver/__init__.py | Python | bsd-3-clause | 32,153 | [
"VisIt"
] | 0e2042aad155b8683c48c9b540afc306b07f2e84ed11cf9646f3495c613997b9 |
#
# Copyright (c) 2016 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... | yasharmaster/scancode-toolkit | src/scancode/__init__.py | Python | apache-2.0 | 2,135 | [
"VisIt"
] | 057d3c12ba3258952d1c4df7cd11121b7d82d1f6e19f0c33afa6efce8b09e954 |
#!/usr/bin/env python2
#
# cmladvent.py -- CML2 configurator adventure-game front end
# by Eric S. Raymond, <esr@thyrsus.com>
#
# This illustrates how easy it is to wrap a front end around cmlsystem.
# Purely in the interests of science, of course...
#
import sys
if sys.version[0] < '2':
print "Python 2.0 or later... | jserv/codezero | tools/cml2-tools/cmladvent.py | Python | gpl-3.0 | 31,343 | [
"VisIt"
] | 115acb0acbeec54135d376d561f8b07a1f96808b6177d23015856a3dab703663 |
""" StorageManagerHandler is the implementation of the StorageManagementDB in the DISET framework """
__RCSID__ = "$Id$"
from types import IntType, DictType, ListType, StringType, LongType
from DIRAC import gLogger, S_OK
from DIRAC.Core.DISET.RequestHandler ... | avedaee/DIRAC | StorageManagementSystem/Service/StorageManagerHandler.py | Python | gpl-3.0 | 14,253 | [
"DIRAC"
] | ed9bb57304f526753a9454383900ca953d5df83723ad7d7a1d674c3fbc5dc147 |
# Copyright(c) 2009, Gentoo Foundation
# Copyright: 2006-2008 Brian Harring <ferringb@gmail.com>
#
# License: GPL2/BSD
# $Header$
import unittest
try:
from test import test_support
except ImportError:
from test import support as test_support
from gentoolkit.atom import *
from gentoolkit.test import cmp
"""Atom te... | djanderson/equery | pym/gentoolkit/test/test_atom.py | Python | gpl-2.0 | 5,622 | [
"Brian"
] | eb5b9d43137d566a54b35b3676dbab6bc05be4757249a77ddd1b7f02cbcbe03a |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RGtrellis(RPackage):
"""Genome Level Trellis Layout
Genome level Trellis graph vis... | LLNL/spack | var/spack/repos/builtin/packages/r-gtrellis/package.py | Python | lgpl-2.1 | 1,599 | [
"Bioconductor"
] | f186c07b023420e00f484bfcd2ffb0c5622ae4a2ba7c49ac8a7de0aae39bd2cd |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008-2014 Jonathan F. Donges
# Author: Jonathan F. Donges <donges@pik-potsdam.de>
# URL: <http://www.pik-potsdam.de/members/donges/software>
"""
Computes auto-correlation function for irregularly sampled time series.
Uses the method proposed in:
Rehfeld, K., Marwan, N., Heit... | pik-copan/pyregimeshifts | scripts/auto_correlation_function/auto_correlation_irregular_sampling.py | Python | mit | 5,228 | [
"Gaussian"
] | 132a64eb261032bd9b39e90e0fd7b7096162b5cecb94901950a8bbc1be1fb86d |
# (C) British Crown Copyright 2010 - 2016, Met Office
#
# This file is part of Iris.
#
# Iris 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) any l... | ehogan/iris | lib/iris/__init__.py | Python | lgpl-3.0 | 15,619 | [
"NetCDF"
] | 6aed8871275c245f4eb26310fdc54701373494c354cbbb7fda6e5bd961cc1ebc |
""" Class Distribution
This class implements a distribution object that is defined by its pdf
(probability density function)
Interestingly, I could not find in numpy/scipy a class that could implement a
distribution just from its pdf. The idea of such object is to be able to
compute statistics of this distribution w... | mfouesneau/faststats | faststats/distrib.py | Python | mit | 11,868 | [
"Gaussian"
] | 6444b9c3303f10b23f2caa297b41b30627449c59f173ca61fb8691af3c3573f3 |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | Senseg/robotframework | src/robot/result/executionerrors.py | Python | apache-2.0 | 1,189 | [
"VisIt"
] | 27fff73773db7f0350c191cd58b91403184702e58d8d1892e68e9b6a78512979 |
# Copyright 2013 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 requ... | dims/glance | glance/api/v2/image_members.py | Python | apache-2.0 | 14,091 | [
"Brian"
] | 37f66c4f73ae38c0dab42a3a69df6e9fc1eaafcdd57d1a869a9b664e132ed8a1 |
import numpy as np
from ..fileio import FileIO as psopen
from ...common import pandas
#import pysal_examples
from ... import examples as pysal_examples
import unittest as ut
PANDAS_EXTINCT = pandas is None
class Test_Table(ut.TestCase):
def setUp(self):
self.filehandler = psopen(pysal_examples.get_path('... | lixun910/pysal | pysal/lib/io/tests/test_Tables.py | Python | bsd-3-clause | 1,188 | [
"COLUMBUS"
] | 2698fa1f9fd669e80fd2d5a816bf0008442c144cffc00f713d1059af3af5d537 |
# Copyright (C) 2013, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from __future__ import print_function
import os
from xml.dom import minidom
from zeroinstall.injector import namespaces
from __main__ import die
mydir = os.path.dirname(__file__)
def get_choice(msg, options):
pri... | 0install/0template | create.py | Python | lgpl-2.1 | 2,453 | [
"VisIt"
] | 02b30b8c5ed374d6d2c725e649515a9547cdb7ddd7a5d0448476fed233405988 |
#
# Copyright (c) 2010 Brian E. Granger
#
# This file is part of pyzmq.
#
# pyzmq is free software; you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option)... | takluyver/pyzmq | zmq/tests/test_pubsub.py | Python | lgpl-3.0 | 1,980 | [
"Brian"
] | cf07775f3455792897568c004622c20cc5b9c55139f54962965cef2ce19abdb4 |
#
# Copyright 2015, 2017, 2020-2021 Lars Pastewka (U. Freiburg)
# 2014-2015, 2017-2018 James Kermode (Warwick U.)
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# This program is free software: you can redistribute it and/or modify
# it under the term... | libAtoms/matscipy | matscipy/fracture_mechanics/idealbrittlesolid.py | Python | lgpl-2.1 | 12,355 | [
"ASE",
"CRYSTAL",
"Matscipy"
] | d3808d97d12a4f0e349c22d1026dd27f140ba0dfc31bb4cc8f17abc6f9edabd4 |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | mattpap/sympy-polys | sympy/thirdparty/pyglet/pyglet/graphics/__init__.py | Python | bsd-3-clause | 25,420 | [
"VisIt"
] | 2580bc3b0951beb4901d985af73dfea0a4830157a094845654548839c6e4d8f5 |
from types import ModuleType
from typing import List
from cypyler import TMPCypyler
from jinja2 import Template
from .TemplateManager import TemplateManagerBase
from .Context import Context
from .Expression import Expression
NODEGROUP_TEMPLATE = ("{% for node in node_templates %}"
"{{ node }}"
... | padmec-reservoir/ELLIPTIc | elliptic/Kernel/TreeBuilder.py | Python | mit | 2,437 | [
"VisIt"
] | 195310eea6888ca5b2cda2a047fad239f63ce1a338b21a826dd77ef5b4041ede |
#!/usr/bin/env python
# -*- coding: utf8 -*-
#
# Copyright (c) 2010 Brian E. Granger
#
# This file is part of pyzmq.
#
# pyzmq is free software; you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free Software Foundation; either versi... | takluyver/pyzmq | zmq/tests/test_socket.py | Python | lgpl-3.0 | 5,832 | [
"Brian"
] | ce0c44d4109a9c74859ee9c2f0987b25be98921c8b01122e9172a1aab0b24e8d |
# -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, 2017, 2018, 2019 Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "So... | CalebBell/thermo | thermo/chemical.py | Python | mit | 123,245 | [
"RDKit"
] | b12635671646bbba45297cfdbe044d96539e862e23a31e22fb80af73a589a046 |
# Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | tensorflow/probability | tensorflow_probability/python/distributions/autoregressive.py | Python | apache-2.0 | 12,954 | [
"Gaussian"
] | cdedec84836812b95c6bb753b1b83db4c21ab45d547d1c2c094b0dd7933291a6 |
import json
from django.conf import settings
from django.test import TestCase
from django.core.cache import cache
import mock
from nose.tools import ok_, eq_
from airmozilla.base import mozillians
from airmozilla.base.tests.testbase import Response
VOUCHED_FOR_USERS = """
{
"count": 1,
"next": null,
"results... | kenrick95/airmozilla | airmozilla/base/tests/test_mozillians.py | Python | bsd-3-clause | 10,869 | [
"CASINO"
] | db5f89a5d3080c8357f73870bb1eadd2006486affa3aca514b8d506cd4ae55c7 |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | octavioturra/aritial | google_appengine/google/appengine/tools/appcfg.py | Python | apache-2.0 | 99,353 | [
"VisIt"
] | a20f62a2a485d8d8b7192fd998b806a0b43c834a25db22865e4d3b0bf2a5cc32 |
import numpy as np
import math
import sys
sys.path.insert(0,'../..')
import os
import classifier_eval_simplified
from sklearn import tree
from sklearn.ensemble import AdaBoostClassifier
from sklearn.svm import SVC
for dim in range(2,11):
comp_file_list=[]
######################################################... | weissercn/MLTools | Dalitz_simplified/evaluation_of_optimised_classifiers/bdt_gaussian_same_projection/bdt_Gaussian_same_projection_evaluation_of_optimised_classifiers.py | Python | mit | 1,785 | [
"Gaussian"
] | 387511534cbb5a05fae5c274a05fc5ea3617d7f181a48b18a1c7393f42e40666 |
# -*- coding:utf-8 -*-
# Copyright (c) 2015, Galaxy Authors. All Rights Reserved
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Author: wangtaize@baidu.com
# Date: 2015-03-30
import logging
from common import http
LOG = logging.getLogger("console")
def user_req... | fxsjy/galaxy | console/backend/src/console/service/decorator.py | Python | bsd-3-clause | 1,734 | [
"Galaxy"
] | e1c7f0589c9f2b5c9435401f8cf79c1606b56f02ee3c735fb9cf9d904c8dd7ed |
# -*- coding: utf-8 -*-
"""Jupyter Notebook Helpers"""
from IPython.display import display, HTML
import datetime
# from time import time
import time
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import os
from collections import OrderedDict
import operator
def show_graph(graph_def, frame... | pligor/predicting-future-product-prices | 04_time_series_prediction/mylibs/jupyter_notebook_helper.py | Python | agpl-3.0 | 15,367 | [
"Gaussian"
] | d4258146a4df5a2b5fc502bab1a9a11b5b2700af2fe8607c57c14e71af73c9c3 |
from parsimonious import Grammar
from grammar_dev.grammars.CustomNodeVisitorFactory import CustomVisitorFactory
def test_custom_visitor_factory():
text = """Hi there, partner"""
grammar = r"""
text = greeting punctuation identifier
greeting = hi_there?
punctuation = comma?
identifier = partner?
hi_ther... | NateV/GrammarDev | tests/test_CustomNodeVisitorFactory.py | Python | gpl-2.0 | 950 | [
"VisIt"
] | 4cec37dcfbabe2713a7ce5aebe3b9b07ff58f148800f83d6667edd87b54042cc |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# rekeywords - [insert a few words of module description on this line]
# Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms o... | heromod/migrid | mig/shared/rekeywords.py | Python | gpl-2.0 | 4,262 | [
"Brian"
] | 13f8efe80cc84196c7438ba724aab234492657915807e24460005d25c1ddfa3f |
import os
import re
import json
import time
import math
import random
import logging
import argparse
import operator
import functools
from collections import Counter, OrderedDict
import asyncio
import numpy as np
import pandas as pd
from aiohttp import ClientSession
from angular_flask import app
from angular_flask im... | code247/FPL_FFC | manage.py | Python | mit | 40,595 | [
"CRYSTAL"
] | 14b179dd74048bac8220e2360736d4cb72ce3b7f5e84864bbbb058e18c3df552 |
"""
Generalized Recommender models.
This module contains matrix factorization recommender interfaces
used throughout the whole scikit-crab package.
The interfaces are realized as abstract base classes (ie., some optional
functionality is provided in the interface itself, so that the interfaces
can be subclassed).
""... | tadejs/crab | scikits/crab/recommenders/svd/classes.py | Python | bsd-3-clause | 14,222 | [
"Gaussian"
] | be52eb15643dd9eb1cd7ea7bcb4869074c8a5588009573874d8fb3293a14c616 |
from __future__ import unicode_literals, division, absolute_import
import pytest
from flexget.manager import Session
from flexget.plugins.api_trakt import ApiTrakt, TraktActor, TraktMovieSearchResult, TraktShowSearchResult, TraktShow
lookup_series = ApiTrakt.lookup_series
@pytest.mark.online
class TestTraktShowLo... | antivirtel/Flexget | tests/test_trakt.py | Python | mit | 18,401 | [
"CRYSTAL"
] | 38cd89026ec645e428a0ee92de212f7b5d11392ed0b375673c009a655fae83f4 |
"""
It is used to compile the web framework
"""
from __future__ import print_function
import os
import tempfile
import shutil
import subprocess
import gzip
import sys
from DIRAC import gLogger, gConfig, rootPath, S_OK, S_ERROR
from DIRAC.Core.Utilities.CFG import CFG
__RCSID__ = "$Id$"
class WebAppCompiler(object)... | chaen/DIRAC | FrameworkSystem/Client/WebAppCompiler.py | Python | gpl-3.0 | 14,043 | [
"DIRAC"
] | a448dd50fa6c7292e121c59ceededd464c039df5b829241d4d8d49ba8417bec5 |
#!/usr/bin/python
import os
import sys
import cPickle
import argparse
import traceback
from urlparse import urlparse
from collections import defaultdict
import random
H2 = 'h2'
H1 = 'http/1.1'
SPDY = 'spdy'
PROTOCOLS = { H2, H1, SPDY }
class Fetch(object):
def __init__(self, url, request_time, new_connection, pu... | scoky/node-http2 | example/phase3_matteo.py | Python | mit | 5,484 | [
"VisIt"
] | b448ee833b993db512b97a5996650e2f3e30ab23709742d7ddabfdd577e68b89 |
from functions.functionProperty import FunctionPropertySQLTestCase
class FunctionPropertyTestCase(FunctionPropertySQLTestCase):
"""
@db_name functionproperty
@optimizer_mode on
@tags ORCA
"""
sql_dir = 'sql/'
ans_dir = 'expected/'
out_dir = 'output/'
| lintzc/gpdb | src/test/tinc/tincrepo/functions/functionProperty/test_functionproperty.py | Python | apache-2.0 | 285 | [
"ORCA"
] | 1f3a2905fa5f4c14fb14474031db8487ffa0ebecf15927a54fbd942f38c32de8 |
# 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... | govarguz/espressopp | src/integrator/LangevinThermostatHybrid.py | Python | gpl-3.0 | 3,363 | [
"ESPResSo"
] | 78aab5cdbe3cf189b7fee38f6c66b44ba99d4fd70a9a5aa46a1386230cb386e2 |
"""
history.py
Summary:
This is the core history file module for the rvic model.
The core of the module is the Tape class. The basic procedure is as
follows:
- initialization: sets tape options, determines filenames, etc.
- update: method that incorporates new fluxes into the history tape... | bartnijssen/RVIC | rvic/core/history.py | Python | gpl-3.0 | 35,223 | [
"NetCDF"
] | c1a6ccd36962b10919e720896439af3c434d22dcec468a930e78935df7507900 |
#
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | intel-analytics/analytics-zoo | pyzoo/test/zoo/orca/learn/spark/test_estimator_for_bigdl.py | Python | apache-2.0 | 17,513 | [
"ORCA"
] | da2ac2ffcfb3cb445576acb939034d9dca59f47924992ad7372361f78c5be417 |
#
# Copyright (c) 2009-2015, Jack Poulson
# All rights reserved.
#
# This file is part of Elemental and is under the BSD 2-Clause License,
# which can be found in the LICENSE file in the root directory, or at
# http://opensource.org/licenses/BSD-2-Clause
#
from El.core import *
from ctypes import CFUNCTYPE
# S... | birm/Elemental | python/matrices.py | Python | bsd-3-clause | 86,117 | [
"Gaussian"
] | 1765a0323359313cb902d098d06171dd765796910581a9aff4231c72c08ba322 |
# Created by DrLecter, based on DraX' scripts,
# this script is part of the L2J Official Datapack Project
# Visit us at http://www.l2jdp.com/
# See readme-dp.txt and gpl.txt for license and distribution details
# Let us know if you did not receive a copy of such files.
import sys
from com.l2scoria.gameserver.model.que... | zenn1989/scoria-interlude | L2Jscoria-Game/data/scripts/village_master/dark_elven_change_1/__init__.py | Python | gpl-3.0 | 3,627 | [
"VisIt"
] | 015d45cda848397ad6fae0cef454da37059879593e29e9be0424273919211c62 |
"""Checker for E9973 missing-space-in-doctest"""
import re
from typing import Match, Optional, Union
from astroid import nodes
from pylint.checkers import BaseChecker
from pylint.checkers.utils import check_messages
from pylint.interfaces import IAstroidChecker
DOCTEST = ">>>"
class MissingSpaceInDoctestChecker(Bas... | pyta-uoft/pyta | python_ta/checkers/missing_space_in_doctest_checker.py | Python | gpl-3.0 | 1,983 | [
"VisIt"
] | cd1b1b750a077ea4dc89490c0ab8cf615892120b9445efd38702345856a879bf |
###############################
# This file is part of PyLaDa.
#
# Copyright (C) 2013 National Renewable Energy Lab
#
# PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to submit
# large numbers of jobs on supercomputers. It provides a python interface to physical input, suc... | pylada/pylada-light | tests/process/globalcomm.py | Python | gpl-3.0 | 1,830 | [
"CRYSTAL",
"VASP"
] | 8e4988aa6f3f17224d0158f57b1445184e9d1fd181c3b7c74a581eac1874b379 |
# encoding: utf-8
"""
Global exception classes for IPython.core.
Authors:
* Brian Granger
* Fernando Perez
* Min Ragan-Kelley
Notes
-----
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of th... | cloud9ers/gurumate | environment/lib/python2.7/site-packages/IPython/core/error.py | Python | lgpl-3.0 | 1,540 | [
"Brian"
] | 9c17665f4a8ab779925922de238ea8ae5eda1e7ae7c70adb72772ad09d064660 |
# coding=utf-8
#------------------------------------------------------------------------------
# Name: test_mapper_opendap.py
# Purpose: Test the Opendap class
#
# Author: Artem Moiseev
#
# Created: 15.08.2018
# Copyright: (c) NERSC
# Licence: This file is part of NANSAT. You can redistr... | nansencenter/nansat | nansat/tests/mappers/test_mapper_opendap.py | Python | gpl-3.0 | 8,767 | [
"NetCDF"
] | a44a8092bec453e713abf14a14371b7933b99eab5c3332756d095c1ed6c0b48a |
############################################################################
##
## Copyright (C) 2006-2007 University of Utah. All rights reserved.
##
## This file is part of VisTrails.
##
## This file may be used under the terms of the GNU General Public
## License version 2.0 as published by the Free Software Foundat... | VisTrails/VisTrails | contrib/SciPy/MatrixConvert.py | Python | bsd-3-clause | 5,350 | [
"VTK"
] | 0c7aa0eaf20f6e9557c2c50c4e1236759ca3f273639f6ef6fe2a0fc17d4dc82e |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2002-2007 Donald N. Allingham
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2008 Jerome Rapinat
# Copyright (C) 2008 Benny Malengier
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the ... | pmghalvorsen/gramps_branch | gramps/gen/filters/rules/event/_hasnote.py | Python | gpl-2.0 | 1,754 | [
"Brian"
] | da44df409f100a960affd664ce9e252e4bff5ad18c791fd61e3df2f048038801 |
#
# PyEarthScience: read_netCDF_with_PyNIO.py
#
# Description:
# Demonstrate the use of PyNIO to open and read the content of
# a netCDF file.
#
# Author:
# Karin Meier-Fleischer
#
# Date of initial publication:
# August, 2019
#
'''
PyEarthScience: read_netCDF_with_PyNIO.py
Description:
... | KMFleischer/PyEarthScience | IO/read_netCDF_with_PyNIO.py | Python | mit | 7,732 | [
"NetCDF"
] | 4e25ddab667bc948b7e7ec31f2f1d391069900e565b5d1ab1569ffc8da4c0d05 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
import json
import frappe.utils
from frappe.utils import cstr, flt, getdate, comma_and, cint
from frappe import _
from frappe.model.mapper... | mbauskar/helpdesk-erpnext | erpnext/selling/doctype/sales_order/sales_order.py | Python | agpl-3.0 | 21,507 | [
"VisIt"
] | db1c290b400d807e6703ee3167ca9015148b4e8775db73c095cedea3529081b4 |
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2017 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors:
#
# MDTraj is free software: y... | leeping/mdtraj | tests/test_reporter.py | Python | lgpl-2.1 | 7,439 | [
"MDTraj",
"OpenMM"
] | 633eafe8843b95bfa8c4355eb28f2262dc29f8f815afa42cd83803039e0beb13 |
# Copyright 2008, 2009 CAMd
# (see accompanying license files for details).
"""Definition of the Atoms class.
This module defines the central object in the ASE package: the Atoms
object.
"""
import warnings
from math import cos, sin
import numpy as np
from ase.atom import Atom
from ase.data import atomic_numbers, ... | PHOTOX/fuase | ase/ase/atoms.py | Python | gpl-2.0 | 58,186 | [
"ASE"
] | 2bf6dee1748a27cbcbf31813c694ce2d2fc7f17593e8331643768eb065bed7c9 |
'''
*******************************************************************
* File: readSBML.py
* Description:
* Author: HarshaRani
* E-mail: hrani@ncbs.res.in
********************************************************************/
/**********************************************************... | subhacom/moose-core | python/moose/SBML/readSBML.py | Python | gpl-3.0 | 51,504 | [
"Avogadro",
"MOOSE"
] | f639bd911504baac1337cff9df43e2e749f9278ae86490f7016f467c7acdf53f |
from wand import image
from boxmath import *
FILTER="gaussian"
def load():
return image.Image(filename="chrysanthemum.jpg")
def chained():
i = load()
i.resize(629, 483, filter=FILTER)
i.crop(0, 0, 480, 480)
i.resize(1000, 1000, filter=FILTER)
i.save(filename="flower-chained.jpg")
def mb():... | ericmoritz/boxmath | demo.py | Python | bsd-2-clause | 829 | [
"Gaussian"
] | 4fc93fa87faacdde111139873b38f49ba94a8bf1565571d453bad054da84e0a4 |
import numpy as np
import tensorflow as tf
import random
import matplotlib.pyplot as plt
from gm_generate import *
class ToyExample1(object):
"""
Class implementing variational inference for 1D gaussian data
"""
def __init__(self, mu_p=0.0, sigma_p=1.0, alpha_p=3.5, beta_p=0.5, learning_rate=1e-4):
"""
__i... | sh-gupta/VariationalInference | toy_example_1.py | Python | mit | 4,681 | [
"Gaussian"
] | 28a83cee7dfa3ca5beded2872988b9d0623ea60d9627916dc73ab879548947ec |
#
# Copyright (c) 2008--2010 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a c... | colloquium/spacewalk | backend/server/rhnServer/server_class.py | Python | gpl-2.0 | 32,634 | [
"CDK"
] | 647bf0caa82ec1e8e907e4e918021cc9833946f90d2172dfe6f08ed96a950949 |
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys
import BioClasses
import cPickle
import pysam
import scipy
def main():
# load data from the GTF pic
with open( "/home/paul/Resources/H_sapiens/test.hg19.chr.pic" ) as f:
genes = cPickle.load( f )
# iterate over a few Transcript objects
c = 0
for gene_... | polarise/python-bioclasses | test/test_Exon.py | Python | gpl-2.0 | 664 | [
"pysam"
] | d8c8b754584b68a6c8d44362c09d989727de7823c7ff2d856ce89756432f5c81 |
# Copyright 2015, 2017 IBM Corp.
#
# 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... | klmitch/nova | nova/tests/unit/virt/powervm/test_media.py | Python | apache-2.0 | 9,125 | [
"FEFF"
] | 646138093def824b82764dd42a8d9d7f55b5ecce3c515dc9f27e924b843f8568 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.