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 |
|---|---|---|---|---|---|---|---|
"""
Tests on the crosswalk from JPER format to SWORD-supported DC/RIOXX XML
"""
# from octopus.modules.es.testindex import ESTestCase
from unittest import TestCase
from service.tests import fixtures
import sword2
from service import xwalk
from octopus.modules.jper import models
TERMS = "http://purl.org/dc/terms/"
DC ... | JiscPER/jper-sword-out | service/tests/unit/test_xwalk.py | Python | apache-2.0 | 5,607 | [
"Octopus"
] | d573910612f6394d20d633d0e9bae492bff4672cf3411134775e6285f212dd61 |
#_PYTHON_INSERT_SAO_COPYRIGHT_HERE_(2007)_
#_PYTHON_INSERT_GPL_LICENSE_HERE_
import numpy
from sherpa.estmethods import *
from sherpa.utils import SherpaTestCase
# Test data arrays -- together this makes a line best fit with a
# 1D Gaussian function.
x = numpy.array(
[ 758, 759, 760, 761, 762, 763, 764, 765... | brefsdal/sherpa | sherpa/estmethods/tests/test_estmethods.py | Python | gpl-2.0 | 7,198 | [
"Gaussian"
] | d902793c9d3bc4d0688250e2ad834d7dc3ca11962d7a390260edae7240ccad5c |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function
# Import parser
import sys
import argparse
import os
# Importing manupulation packages
from astropy.io import fits
import numpy as np
import glob
from numpy.polynomial import chebyshev
from scipy import interpolate
from sci... | jselsing/XSGRB_reduction_scrips | py/XSHextract.py | Python | gpl-3.0 | 32,141 | [
"Gaussian"
] | 4af09ebc07a36686802e87dcf41aa5f696597f2fe63edf70425f5ba119b65483 |
import helper_functions as hf
from neuron import h
from Network_LFPy import Network
from Ia_LFPy import Ia
from Mn_LFPy import Mn
class Ia_network(Network):
#
def __init__(self, *args, **kwargs):
'''
class initialization
POPULATION_SIZE : int, number of cells
cellParamete... | penguinscontrol/Spinal-Cord-Modeling | Python/Ia_network_LFPy.py | Python | gpl-2.0 | 3,715 | [
"NEURON"
] | 3645a7004f41fa2de4116d00cbaea00eb6021cbacceda80062c3633a45f1b5eb |
'''
'''
from zope.interface import implements
from Interfaces.ThirdPartyWrapper import IThirdPartyWrapper
import os
from StringIO import StringIO
# Unofficial biopython from "kellrott" fork
# branch "hmmer_bsd" (Retrieved June 22, 2012)
import biopython_temp.AlignIO as AlignIO
from biopython_temp._Hmmer import HmmSc... | midnighteuler/PySIFTER | PySIFTER/ThirdPartyWrappers/PfamHMMERQuery.py | Python | gpl-3.0 | 2,861 | [
"Biopython"
] | 418c98674bceb9cff36f12a2e34dd9595447f69abee8c160ae6cfb7836b16779 |
"""Common logging functions."""
from os.path import basename, splitext
import sys
import logging
import tempfile
import subprocess
from . import db
LOGGER = None # Global logger so we can switch between queries & blast DBs
FORMATTER = logging.Formatter('%(asctime)s %(levelname)s: %(message)s',
... | AntonelliLab/seqcap_processor | bin/aTRAM-master/lib/log.py | Python | mit | 2,913 | [
"BLAST"
] | 25c063d5a6fa03644d1ac695ea63842218b4cb0a4b89cf5797058e3d435cf96c |
import os
import sys
PROJECT_DIR = os.path.join(os.path.dirname(__file__), "..")
sys.path.append(PROJECT_DIR)
import classarg
def train(model,
lr=0.0001,
epoch=40,
nthread=1,
batch_size=20):
"""This example comes from a real script, where we want to train a
neuron netw... | PatrickChen83/ClassArg | examples/simple_function.py | Python | mit | 978 | [
"NEURON"
] | e1b499b1e47578967508e3009cfd172fad694cb34944005a50873e1f872f04cb |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | harterj/moose | python/MooseDocs/test/common/test_storage.py | Python | lgpl-2.1 | 4,567 | [
"MOOSE"
] | 48f9977a61946c226f916803a479493373a06ea902ff99f3d63a4f016af1e64c |
# coding: utf-8
from pyelasticsearch import bulk_chunks, ElasticSearch
import csv
import sys
csv.field_size_limit(sys.maxsize)
es = ElasticSearch(urls='http://localhost:9200/', timeout=60, max_retries=2)
def iso_convert(iso2c):
"""
Takes a two character ISO country code and returns the corresponding 3
ch... | johnb30/mordecai | setup/geonames_elasticsearch.py | Python | mit | 5,955 | [
"BWA"
] | d1d6cd1e966eb3110064f0d54904782fc9d674347360498cf5c6e710f3ab057b |
"""
Basic methods common to all matrices to be used
when creating more advanced matrices (e.g., matrices over rings,
etc.).
"""
from __future__ import print_function, division
from sympy.core.add import Add
from sympy.core.basic import Basic, Atom
from sympy.core.expr import Expr
from sympy.core.symbol import Symbol
... | wxgeo/geophar | wxgeometrie/sympy/matrices/common.py | Python | gpl-2.0 | 67,513 | [
"DIRAC"
] | 0be157e2b42498b591bc2dddad699bb6623df181006f788ffc1981cab04abdee |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpat... | nikoladang/cookicutter-django-wagtail | config/urls.py | Python | bsd-3-clause | 1,430 | [
"VisIt"
] | c331e07486b8bd3a36e1533e538d23297b93fa50b00875d271d7fad6610c898a |
#!/usr/bin/python
#
# Copyright 2015 Google Inc. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | google/hyou | tools/generate_oauth2_credentials.py | Python | apache-2.0 | 2,462 | [
"VisIt"
] | 490a4615e4a923f0412b93b4ab30edb9c8866c470816bdba34b1434d7b7179b4 |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Collections of messages and their translations, called cliques. Also
collections of cliques (uber-cliques).
'''
from __future__ import print_functio... | scheib/chromium | tools/grit/grit/clique.py | Python | bsd-3-clause | 18,254 | [
"xTB"
] | 140ca1d3e38af3dbd84a397e6ddd71265192d6424c60c1efe8645e5be5a0d59b |
"""Bayesian Gaussian Mixture Models and
Dirichlet Process Gaussian Mixture Models"""
from __future__ import print_function
# Author: Alexandre Passos (alexandre.tp@gmail.com)
# Bertrand Thirion <bertrand.thirion@inria.fr>
#
# Based on mixture.py by:
# Ron Weiss <ronweiss@gmail.com>
# Fabian Ped... | jjx02230808/project0223 | sklearn/mixture/dpgmm.py | Python | bsd-3-clause | 32,075 | [
"Gaussian"
] | c9fc56003209f231a1cc1e59da1023b379eefabef59deba579cfbd70d1832dc0 |
''' Script to check the correctness of the analysis. The analysis is done on raw data and all results are compared to a recorded analysis.
'''
import os
import shutil
import unittest
from testbeam_analysis import result_analysis
from testbeam_analysis.tools import analysis_utils, test_tools
testing_path = os.path.dir... | YannickDieter/testbeam_analysis | testbeam_analysis/testing/test_result_analysis.py | Python | mit | 4,563 | [
"Gaussian"
] | 1a6c212d65da776bd529f9ea5c3e680675bec54e0e7e1d49798385ac3183363d |
import ShtikerPage
from toontown.toonbase import ToontownGlobals
from direct.showbase import PythonUtil
from toontown.hood import ZoneUtil
from direct.gui.DirectGui import *
from panda3d.core import *
from panda3d.direct import *
from toontown.toonbase import TTLocalizer
class MapPage(ShtikerPage.ShtikerPage):
de... | silly-wacky-3-town-toon/SOURCE-COD | toontown/shtiker/MapPage.py | Python | apache-2.0 | 9,414 | [
"VisIt"
] | ceae833ff41599575266aa747388e03698ef798578fe68a348b46ea274062a84 |
# -*- coding: utf-8 -*-
"""
Statistical measures of spike trains (e.g., Fano factor) and functions to estimate firing rates.
:copyright: Copyright 2014-2016 by the Elephant team, see AUTHORS.txt.
:license: Modified BSD, see LICENSE.txt for details.
"""
from __future__ import division, print_function
import numpy as ... | espenhgn/elephant | elephant/statistics.py | Python | bsd-3-clause | 42,367 | [
"Gaussian",
"NEURON"
] | 6fdda6c9b64c719f4a8ae06bccbc2b9c17d6370fa003a8dcdd54506feb777989 |
"""
.. module:: Pfn
:synopsis: ProcessPool and related classes
ProcessPool
ProcessPool creates a pool of worker subprocesses to handle a queue of tasks
much like the producers/consumers paradigm. Users just need to fill the queue
with tasks to be executed and worker tasks will execute them.
To construct ProcessPool... | yujikato/DIRAC | src/DIRAC/Core/Utilities/ProcessPool.py | Python | gpl-3.0 | 32,804 | [
"DIRAC"
] | 37fdf33579f48add70ec827671089914f7fd20bf24bc5b4235cce89f4aa43285 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sqlite3
con = sqlite3.connect('todo.db') # Warning: This file is created in the current directory
con.execute("CREATE TABLE todo (id INTEGER PRIMARY KEY, task char(100) NOT NULL, status bool NOT NULL)")
con.execute("INSERT INTO todo (task,status) VALUES ('test',0)... | rarewin/my-studies | python/bottle-test/tutorial_todo-list/create_table.py | Python | bsd-2-clause | 754 | [
"VisIt"
] | d92828e74897e208d53005e6f970b2deaf215d1327d8a7708d66f4cbd905c691 |
###########################################################################
#
# Copyright 2020 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
#
# https://www.apache.org/l... | google/starthinker | dags/dv360_editor_dag.py | Python | apache-2.0 | 7,041 | [
"VisIt"
] | 2544aa17c7764d566d2fd39ed7a370f6533697034770781006e7642d183165ac |
"""Optimise the cache."""
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from zeroinstall import _
import os
from logging import warn
def _already_linked(a, b):
ai = os.stat(a)
bi = os.stat(b)
return (ai.st_dev, ai.st_ino) == (bi.st_dev, bi.st_ino)
def _byte... | pombredanne/zero-install | zeroinstall/zerostore/optimise.py | Python | lgpl-2.1 | 3,098 | [
"VisIt"
] | 2f4cb6b8a2c9be7b1066829d390ef1ab4764c0da6c1cb93d527ff574cab1dcc8 |
"""A .. collapse:: directive for sphinx-bootstrap-theme."""
import os.path as op
from docutils import nodes
from docutils.parsers.rst.directives import flag, class_option
from docutils.parsers.rst.roles import set_classes
from docutils.statemachine import StringList
from sphinx.locale import _
from sphinx.util.docuti... | olafhauk/mne-python | doc/sphinxext/sphinx_bootstrap_divs/__init__.py | Python | bsd-3-clause | 6,079 | [
"VisIt"
] | 6e111f80b5e11d1010c6b3de506dc5b728f09d57958051d8c56b5194dc2cdeca |
from neuron.tests import test_all
suite = test_all.suite
| neurodebian/pkg-neuron | share/lib/python/neuron/tests/__init__.py | Python | gpl-2.0 | 59 | [
"NEURON"
] | ec5b2a88aa0072f0c93da06e35b1a83e226cc8f7380611c661b323f94d69ef65 |
########################################################################
# $HeadURL $
# File: Request.py
# Author: Krzysztof.Ciba@NOSPAMgmail.com
# Date: 2012/07/16 13:43:45
########################################################################
"""
:mod: Request
.. module: Request
:synopsis: request implementation... | sposs/DIRAC | RequestManagementSystem/Client/Request.py | Python | gpl-3.0 | 18,616 | [
"DIRAC"
] | 48e1c953ede561b9e1e09dbdb991ed7a874a473006e9ebe0839331be4471494d |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
import os
import json
import numpy as np
import pandas as pd
from pymatgen.io.lammps.outputs import LammpsDump, parse_lammps_dumps,\
parse_lammps_log
test_dir = os.path.join(os.path.dirna... | dongsenfo/pymatgen | pymatgen/io/lammps/tests/test_outputs.py | Python | mit | 6,962 | [
"LAMMPS",
"pymatgen"
] | fb2ccade2a8ba75a59d10dc5f2b829ac9f61b28828e1ab45c3db7d8f75b292c4 |
# Copyright 2008 Brian Boyer, Ryan Mark, Angela Nitzke, Joshua Pollock,
# Stuart Tiffen, Kayla Webley and the Medill School of Journalism, Northwestern
# University.
#
# This file is part of Crunchberry Pie.
#
# Crunchberry Pie is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gene... | brianboyer/newsmixer | pie/urls.py | Python | gpl-3.0 | 1,775 | [
"Brian"
] | be7ee769d7ae22d0a7f1b2ae53bb9a9f140b98acb61374dc4d88f2559e72aec8 |
# Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | KaiSzuttor/espresso | testsuite/python/pressure.py | Python | gpl-3.0 | 15,101 | [
"ESPResSo"
] | 39be44ef37664bb476566f80a2e06b8c95bb5f5f6755e8ae615a7c205b8b6553 |
## http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/364469
import compiler
class Unsafe_Source_Error(Exception):
def __init__(self,error,descr = None,node = None):
self.error = error
self.descr = descr
self.node = node
self.lineno = getattr(node,"lineno",None)
d... | drewm1980/lilypond-an | python/safeeval.py | Python | gpl-2.0 | 2,439 | [
"VisIt"
] | 049528ac45df94a0024b774a4e524b32230edad7c9d5bf1b94fd9a7c7e676395 |
import os
import unittest
from datetime import datetime, timedelta
os.environ['MELANGE_CONFIG_MODULE'] = 'melange.config.TestingConfig'
import melange
from melange import db_session, Item, Tag, User, Log
class MelangeTestCase(unittest.TestCase):
def setUp(self):
self.app = melange.app.test_client()
... | jhoekx/melange | tests/TestModels.py | Python | gpl-3.0 | 7,047 | [
"Firefly"
] | f7b193fc2ca81ca55725d6145f6a2f2109d027b914f4c397fcd46230718f6218 |
#!/usr/bin/env python
# GoodFET Client Library
#
# (C) 2009 Travis Goodspeed <travis at radiantmachines.com>
#
# This code is being rewritten and refactored. You've been warned!
#
# Code modified as part of BadUSB 2.0 Project
# by DK 2016 (@withdk)
import sys, time, string, cStringIO, struct, glob, os, inspect;
impo... | withdk/badusb2-mitm-poc | GoodFET.py | Python | gpl-3.0 | 29,981 | [
"Firefly"
] | 63924bd75b509cf1a275dcbf33bc4927e3b5484f1f0f7d7d15abea27c158a30b |
import sys
import gc
from sparsehc_dm import sparsehc_dm
import random
import time
import mdtraj as md
import numpy
import json
Nk=1
if len(sys.argv)>1:
Nk=int(sys.argv[1])
traj_filename='aMD-148l-first{}k.nc'.format(Nk)
top_filename='aMD-148l-all_1.pdb'
first_frame = md.load_frame(traj_filename, 0,top=top_filename... | Burning-Daylight/sparsehc-dm | examples/sparsehc-dm_load.py | Python | gpl-3.0 | 1,461 | [
"MDTraj"
] | b9c57da759028510d808aead77bd67b94b782a1ac7dc0b9a572f532294579afc |
import os
import sys
import subprocess
from configparser import ConfigParser
from gi.repository import Gtk as gtk
from gi.repository.GdkPixbuf import Pixbuf
from gi.repository import WebKit as webkit
from locale import getdefaultlocale
"""
# Linux Lite Control Center
# Developers - John 'ShaggyTwoDope' Jenkins, Jer... | darthlukan/litecontrolcenter | usr/share/litecc/litecenter.py | Python | gpl-2.0 | 9,309 | [
"Brian"
] | 6baf2d12cbc0ced9592d4fe73b2212ccd1cdba07b52b92b6304e38d3e66df108 |
"""
Stars module, modified to work with crystal class
Classes to generate star sets, double star sets, and vector star sets; a lot of indexing functionality.
NOTE: The naming follows that of stars; the functionality is extremely similar, and this code
was modified as little as possible to translate that functionality... | DallasTrinkle/Onsager | onsager/crystalStars.py | Python | mit | 55,293 | [
"CRYSTAL"
] | bff5f17f4fecb95ff12ab63e61a53b4ac5a27f34193ebc3e4697098da4e47441 |
import os
import sys
import time
import logging
import datetime
import numpy as np
from data import *
from time import clock
from parameters import *
from collections import defaultdict
spike_generators = {} # dict name_part : spikegenerator
spike_detectors = {} # dict name_part : spikedetector
multimeters = {} ... | research-team/NEUCOGAR | NEST/cube/integration/integration-10/func.py | Python | gpl-2.0 | 10,377 | [
"NEURON"
] | 169c5d2f7f0841625bb2899d9451cf71ecd27dc5e472b6fdebcff90df1bebdd1 |
#! /usr/bin/env python
"""
Copyright (c) 2000-2010, David Boddie
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... | BackupTheBerlios/python-adfs | ADF2INF.py | Python | gpl-3.0 | 9,472 | [
"ADF"
] | a8bf5b16204ada68756de84e1348f65fd79eba7c64cc1aa12259d7d6ecf5451a |
import random
from plugin import plugin
from colorama import Fore
def delay(): # method to pause after a series of actions have been completed.
n = input("Press enter to continue")
def wiped_slate(player): # resets all hands and bets
player['hands'] = []
player['suits'] = []
player['bets'] = []
... | sukeesh/Jarvis | jarviscli/plugins/blackjack.py | Python | mit | 12,680 | [
"CASINO"
] | 482f64646282fd984fc6f0aac561259276a782f777174882a1e23b8dcfbd2c4e |
"""
A datastructure for summing over groups of symmetry equivalent reflections.
This module defines a blocked datastructures for summing over groups of
symmetry equivalent reflections, as required for scaling.
"""
from __future__ import annotations
from typing import List, Optional, Union
import numpy as np
import ... | dials/dials | algorithms/scaling/Ih_table.py | Python | bsd-3-clause | 37,339 | [
"CRYSTAL"
] | 7e38c929e44a3053ed92dcf043952a5e62c14f998c054d5d1cd5d28ba1cdecd2 |
# Ubuntu Tweak - Ubuntu Configuration Tool
#
# Copyright (C) 2007-2011 Tualatrix Chou <tualatrix@gmail.com>
#
# Ubuntu Tweak is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
... | 0x7E/ubuntu-tweak | ubuntutweak/admins/appcenter.py | Python | gpl-2.0 | 24,249 | [
"VisIt"
] | 214b8aad5643e604d649f7e2d02ab14c50e1dc82818f73a93b741b8f6b64f8e2 |
# -*- coding: utf-8 -*-
#
# This file is part of cclib (http://cclib.github.io), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2014-2015, the cclib development team
#
# The library is free software, distributed under the terms of
# the GNU Lesser General Pub... | ben-albrecht/cclib | cclib/parser/mopacparser.py | Python | lgpl-2.1 | 61,886 | [
"Gaussian",
"MOPAC",
"cclib"
] | c6194dbc264a91c08397309033d4d1c536c8cd09c70cba35edfdf0310a85685b |
""" DIRAC Workload Management System Client class encapsulates all the
methods necessary to communicate with the Workload Management System
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from six import StringIO
import time
from DIRAC imp... | yujikato/DIRAC | src/DIRAC/WorkloadManagementSystem/Client/WMSClient.py | Python | gpl-3.0 | 8,555 | [
"DIRAC"
] | 02b3f6db07a42e02a54044caa0a7d6845ccc2562a648205c6cadd8fbb8b56f49 |
import py
import pytest
from pkg_resources import parse_version
from xdist.looponfail import RemoteControl
from xdist.looponfail import StatRecorder
class TestStatRecorder:
def test_filechange(self, tmpdir):
tmp = tmpdir
hello = tmp.ensure("hello.py")
sd = StatRecorder([tmp])
chan... | RonnyPfannschmidt/pytest-xdist | testing/test_looponfail.py | Python | mit | 9,111 | [
"VisIt"
] | 3ec204d12650e563a3f04b155504aadcfdeec62ab354231872b32b9cdaa3dd2f |
# Checks all psi4 relevant files for proper boilerplate GNU license.
# This is sold as is with no warrenty-- probably should double check everything
# after running. I am not responsible if you break Psi4.
#
# Do not forget to do share/plugins by hand!
import os
# File type we know how to handle
ftypes = ['cc', 'h', ... | rmcgibbo/psi4public | psi4/share/psi4/scripts/apply_license.py | Python | lgpl-3.0 | 3,497 | [
"Psi4"
] | 85aa70ca94899e5d7e110492f564dd53c771983ee88e79493b4762a8517cdff1 |
#
# Copyright (C) 2013-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | fweik/espresso | samples/wang_landau_reaction_ensemble.py | Python | gpl-3.0 | 4,376 | [
"ESPResSo"
] | 4802e9866178ddbb956e72f82072cd86d7b5abf4050bfc186ef593593749da2b |
#!/usr/bin/python
# ---------------------------------------------------------------------
# ___ ___ _ ____
# / _ \/ _ \(_) __/__ __ __
# / , _/ ___/ /\ \/ _ \/ // /
# /_/|_/_/ /_/___/ .__/\_, /
# /_/ /___/
#
# bh1750.py
# Read data from a BH1750 digital light sensor.
#
# Author : Ma... | ThomasHangstoerfer/pyHomeCtrl | bh1750.py | Python | apache-2.0 | 2,676 | [
"VisIt"
] | 2de8db3fcfb92def9d2415ef5f1612c1846ac311b895db4653098280d68a55f0 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------------------------------------------------
# INFO:
# -----------------------------------------------------------------------------------------------------------------------
"""
Author: Evan Hub... | evhub/coconut | coconut/util.py | Python | apache-2.0 | 8,214 | [
"VisIt"
] | a818fb1c0010e74b14abb9dfcbea036a831a7bd5511e7d59a66d83993157d7f9 |
#!/usr/bin/env python
import sys
from glob import glob
from distutils import log
from distutils.cmd import Command
import numpy as np
# monkey-patch numpy distutils to use Cython instead of Pyrex
from build_helpers import package_check, INFO_VARS
def configuration(parent_package='',top_path=None):
from numpy.dist... | LTS5/connectomeviewer | setup.py | Python | bsd-3-clause | 3,375 | [
"Mayavi"
] | 8e30d157e41386cae95b734e428e2630bf3a369229fc28f351e45a176935559a |
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com>
# Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk>
# Copyright (C) 2007-2009 Stephane Charet... | prculley/gramps | gramps/plugins/webreport/repository.py | Python | gpl-2.0 | 11,391 | [
"Brian"
] | b49cd6f3d43480ad180ab02f4993881fc5b20fe1824bc479d902072d23bcbd15 |
from kfhlog.models import State
def load_fixtures(dbsession):
# Canada
dbsession.add(State(dxcc=1, code='NS', name='Nova Scotia'))
dbsession.add(State(dxcc=1, code='QC', name='Québec'))
dbsession.add(State(dxcc=1, code='ON', name='Ontario'))
dbsession.add(State(dxcc=1, code='MB', name='Manitoba'))... | sq8kfh/kfhlog | kfhlog/models/fixtures/state.py | Python | agpl-3.0 | 121,217 | [
"EPW"
] | 5f4ad8164db55d3aa3e59e8263e0440c9373fe85ee8255216b27fccc159137a1 |
# -*- coding: utf-8 -*-
"""
Wordlist taken from the New General Service List v1.01.
Changes include:
1. Converted from Excel to Python list;
2. Only headwords were retained for clarity;
3. Supplemental words, such as months and numbers were added;
4. Words less than 4 characters were removed.
For more information, s... | petrilli/generalwords | generalwords/generalwords.py | Python | bsd-3-clause | 34,720 | [
"VisIt"
] | de75afc7b955a9ef3d72281be1528fb72faa4dfbeace0f96a62ec6f737cf06ed |
__source__ = 'https://leetcode.com/problems/number-of-distinct-islands/'
# Time: O()
# Space: O()
#
# Description: Leetcode # 694. Number of Distinct Islands
#
# Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land)
# connected 4-directionally (horizontal or vertical.)
# You m... | JulyKikuAkita/PythonPrac | cs15211/NumberOfDistinctIslands.py | Python | apache-2.0 | 7,360 | [
"VisIt"
] | f8f8466f264159250d7523d25a6309836457754b62738c09e67a91191566524e |
#!/usr/bin/env python
"""
Command line interface to the Statistical Downscaling Model (SDM) package.
"""
import os
import sys
from ConfigParser import ConfigParser
import argparse
from sdm import __version__
from sdm.cod import CoD
from sdm.extractor import GriddedExtractor
def read_config(config_file):
if not c... | paolap/cwsl-ctools | sdm/sdmrun.py | Python | apache-2.0 | 6,273 | [
"NetCDF"
] | cf2d2cf248d307cf6dd651b2f933f4bd9dc8a19c70d7f1b01869a6020669cbae |
from __future__ import division, print_function
import os, sys, warnings
def fn_name(): return sys._getframe(1).f_code.co_name
if sys.version_info[0] >= 3:
warnings.warn(
"The gtk* backends have not been tested with Python 3.x",
ImportWarning)
try:
import gobject
import gtk; gdk = gtk.gdk... | cactusbin/nyt | matplotlib/lib/matplotlib/backends/backend_gtk.py | Python | unlicense | 45,322 | [
"FLEUR"
] | 44968a9a39bc78c95de0c165bb785f00ea3761da85e07f85f1c36804b2279968 |
#!/usr/bin/env python
'''
:func:`scf.addons.remove_linear_dep_` discards the small eigenvalues of overlap
matrix. This reduces the number of MOs from 50 to 49. The problem size of
the following CCSD method is 49.
'''
from pyscf import gto, scf, cc
mol = gto.Mole()
mol.atom = [('H', 0, 0, .5*i) for i in range(20)]
m... | gkc1000/pyscf | examples/cc/31-remove_linear_dep.py | Python | apache-2.0 | 489 | [
"PySCF"
] | 587ff0699494cc87f4fdaf2d4f3051af8de3d457c68d1856b93cc0e3ec4d3b0d |
# Copyright 2017 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... | kobejean/tensorflow | tensorflow/python/autograph/pyct/templates.py | Python | apache-2.0 | 10,477 | [
"VisIt"
] | c90af2face5adfe9effa59b473d63682d4c2e0aa60cbb16b5c3cf513e87190e1 |
"""
Read data from ECMWF MACC Reanalysis.
"""
import threading
import pandas as pd
try:
import netCDF4
except ImportError:
class netCDF4:
@staticmethod
def Dataset(*a, **kw):
raise ImportError(
'Reading ECMWF data requires netCDF4 to be installed.')
try:
from e... | mikofski/pvlib-python | pvlib/iotools/ecmwf_macc.py | Python | bsd-3-clause | 11,415 | [
"NetCDF"
] | a8b59e641c4cad915de56d0e48b3c2d6b3c9e1466d3cd4d3d8b811a33bec9d7d |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2015 - 2019 Adam.Dybbroe
# Author(s):
# Adam.Dybbroe <adam.dybbroe@smhi.se>
# 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, ei... | adybbroe/mesan_compositer | mesan_compositer/mesan_composite_runner.py | Python | gpl-3.0 | 21,434 | [
"NetCDF"
] | b8d1a52819e19f630e733f33ff10f0631e046069264e9734fef107e26e91cd9b |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016, Shogun Toolbox Foundation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the... | sanuj/shogun | setup.py | Python | gpl-3.0 | 10,586 | [
"Gaussian"
] | ad90b8b9fbe76b546c602f045604bac73593d616812d438f4b9807145dc82a56 |
# Copyright 2019 the GPflow authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | GPflow/GPflow | tests/integration/test_method_equivalence.py | Python | apache-2.0 | 11,062 | [
"Gaussian"
] | 559c217ce9d53225389b44a46e253c36d211786f5b12adf6ae191f69007ec762 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2012 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundati... | tiagocardosos/stoq | plugins/ecf/test/ecftest.py | Python | gpl-2.0 | 3,344 | [
"VisIt"
] | 802660c0079327404111cd5ab7521b9c774354a224abc8bc337244ba3e84bc65 |
# coding: utf-8
from __future__ import unicode_literals
from six.moves.urllib.parse import urljoin
class Action(object):
""" Base class for all actions """
def run(self, context):
raise NotImplementedError()
class Visit(Action):
""" Visit an URL in browser """
def __init__(self, url=None)... | tricoder42/python-ariadne | ariadne/actions.py | Python | mit | 1,317 | [
"VisIt"
] | 364c03cbe878949d6e748f26b7e2ba215b0d1f97dc86287c53b2bb886447530e |
from CTFd.models import db, WrongKeys, Pages, Config, Tracking, Users, Containers, ip2long, long2ip
from six.moves.urllib.parse import urlparse, urljoin
import six
from werkzeug.utils import secure_filename
from functools import wraps
from flask import current_app as app, g, request, redirect, url_for, session, render... | RITC3/RC3_CTFD | CTFd/utils.py | Python | apache-2.0 | 16,511 | [
"VisIt"
] | 266013318c8f49def494d72724569c64a8b5c449ea0f6770f76d10bd0b635cae |
# -*- coding: utf-8 -*-
# Copyright 2010 Dirk Holtwick, holtwick.it
#
# 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 ... | xhtml2pdf/xhtml2pdf | xhtml2pdf/parser.py | Python | apache-2.0 | 27,875 | [
"VisIt"
] | 6d23f9c64e6e3b8317bd116a45161c26af4060ff86318147b30feadec7d847dd |
#
# Copyright (C) 2010-2018 The ESPResSo project
# Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010
# Max-Planck-Institute for Polymer Research, Theory Group
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public... | mkuron/espresso | doc/tutorials/02-charged_system/scripts/nacl_units_confined_vis.py | Python | gpl-3.0 | 5,739 | [
"ESPResSo"
] | 63c17f425eadc661dd9fd0296680c7f076b14e3bdd0e1d24d9d6bca69775b085 |
#!/opt/local/bin/python
"""
Calculate the total energy as a function of lattice constant,
by altering the lattice constant in POSCAR file.
And if possible, calculate equilibrium lattice size and
bulk modulus, too.
Usage:
energy_vs_size.py [options]
Options:
-h, --help Show this help message and exit.
-n NITER ... | ryokbys/nap | nappy/vasp/energy_vs_size.py | Python | mit | 6,895 | [
"VASP"
] | 01d2a6715dd9228b79fd5e7012f61bb2663e367e659a40c5ea127a58ed1ace9e |
#!/usr/bin/env python
'''
setup board.h for chibios
'''
import argparse, sys, fnmatch, os, dma_resolver, shlex, pickle
parser = argparse.ArgumentParser("chibios_pins.py")
parser.add_argument(
'-D', '--outdir', type=str, default=None, help='Output directory')
parser.add_argument(
'hwdef', type=str, default=Non... | UrusTeam/URUS | libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | Python | gpl-3.0 | 34,026 | [
"CRYSTAL"
] | c193017a99d4219f209065a26d9545d7babe5a111474bdb9f9ba75d60d727056 |
import numpy as np
import uncertainties.unumpy as unp
from uncertainties import ufloat
import math
import latex
from pandas import Series, DataFrame
from scipy.optimize import curve_fit
import matplotlib.pyplot as plt
from pint import UnitRegistry
import scipy.constants as const
u = UnitRegistry()
Q_ = u.Quantity
h = Q... | stefangri/s_s_productions | PHY341/V311_Halleffekt/Messdaten/auswertung.py | Python | mit | 15,668 | [
"Avogadro"
] | ac1a2a32f613c9e05334aa4ef36068a1eec20f58f1b33187b27f31ebd8f82b22 |
"""Utilities for registering objects.
This module contains utility functions to register Python objects as
valid COM Servers. The RegisterServer function provides all information
necessary to allow the COM framework to respond to a request for a COM object,
construct the necessary Python object, and dispatch COM even... | leighpauls/k2cro4 | third_party/python_26/Lib/site-packages/win32com/server/register.py | Python | bsd-3-clause | 20,518 | [
"BLAST"
] | 55ce482ee3ce52083024e82268196baf92f305b85e4558606ec97cad390a578a |
# -*- coding: utf-8 -*-
import dxr.plugins
import re
import cgi
import urllib
""" Regular expression for matching urls
Credits to: http://stackoverflow.com/a/1547940
"""
pat = "\[(https?://[A-Za-z0-9\-\._~:\/\?#[\]@!\$&'()*\+,;=%]+\.[A-Za-z0-9\-\._~:\/\?#[\]@!\$&'()*\+,;=%]+)\]"
pat += "|\((https?://[A-Za-z0-9\-\._~:... | jonasfj/dxr | dxr/plugins/urllink/htmlifier.py | Python | mit | 1,700 | [
"VisIt"
] | 4a6b0ef17af551b9cd22fa21f6f79c7f3ab6aad5d60a0e48d383b66d6a58a58f |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
from pymatgen.analysis.magnetism.jahnteller import *
from pymatgen.io.cif import CifParser
from pymatgen.util.testing import PymatgenTest
class JahnTellerTest(unittest.TestCase):
def setU... | gmatteo/pymatgen | pymatgen/analysis/magnetism/tests/test_jahnteller.py | Python | mit | 5,003 | [
"pymatgen"
] | 8aa44a8671ad185787b45318964ca6ae2a84016d50bb230b1c14fe2ee8b7985a |
#
# A file that opens the neuroConstruct project LarkumEtAl2009 and run multiple simulations stimulating ech terminal apical branch with varying number of synapses.
#
# Author: Matteo Farinella
from sys import *
from java.io import File
from java.lang import System
from java.util import ArrayList
from uc... | pgleeson/TestArea | models/LarkumEtAl2009/pythonScripts/PAP_multibranches_exc.py | Python | gpl-2.0 | 13,721 | [
"NEURON"
] | 2c41b01b202de8a8d3c79d8261d1096007d7803991db216686de12ea08ccedde |
"""
Signal handling functions for use with external commerce service.
"""
import json
import logging
from urlparse import urljoin
from django.conf import settings
from django.contrib.auth.models import AnonymousUser
from django.dispatch import receiver
from django.utils.translation import ugettext as _
from edx_rest_a... | ampax/edx-platform | lms/djangoapps/commerce/signals.py | Python | agpl-3.0 | 8,827 | [
"VisIt"
] | 9d8b3141496388c68e76ed600ecabc7dee8173c8e6da1ce515e5bea5edb74dbe |
# encoding: utf-8
"""
Job and task components for writing .xml files that the Windows HPC Server
2008 can use to start jobs.
Authors:
* Brian Granger
* MinRK
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed u... | noslenfa/tdjangorest | uw/lib/python2.7/site-packages/IPython/parallel/apps/winhpcjob.py | Python | apache-2.0 | 11,701 | [
"Brian"
] | 89e52c45fb6381664c7332c92320b3809261750e9aa8c592a03a75508ee61702 |
"""
Models from Godley & Lavoie text.
[G&L 2012] "Monetary Economics: An Integrated Approach to credit, Money, Income, Production
and Wealth; Second Edition", by Wynne Godley and Marc Lavoie, Palgrave Macmillan, 2012.
ISBN 978-0-230-30184-9
Copyright 2016 Brian Romanchuk
Licensed under the Apache License, Version 2.... | brianr747/SFC_models | sfc_models/gl_book/__init__.py | Python | apache-2.0 | 2,795 | [
"Brian"
] | a76f3ac7d9aa5a0dbf6fcf0db27bec8b955b5a8dd7ecef72eebb46c60fdabf32 |
#
# Adrian Soto
# 22-12-2014
# Stony Brook University
#
################################################
# Plot band structure and DOS from the
# output of the bands.x program in the
# Quantum Espresso package.
#
# Features:
# 1) Allows for scissor correction (band shift)
# 2)
#
###################################... | adrian-soto/QEdark_repo | tools/bandsndos/SiandGe.py | Python | gpl-2.0 | 12,825 | [
"Quantum ESPRESSO"
] | 9b7075029d743404fc0281f561c267125a08fed0b2467bf351c05e46c19cbc53 |
#!/usr/bin/env python
import string, sys
from distutils.core import setup
myVersion = "$Revision: 1.1 $";
# We requre Python 2.0
pyversion = string.split( string.split( sys.version )[0], "." )
if map( int, pyversion ) < [2, 0, 0]:
sys.stderr.write( "Sorry, this library requires at least Python 2.0\n" )
sys.... | hdecreis/netdevicelib | setup.py | Python | lgpl-2.1 | 770 | [
"Brian"
] | bcdadec4ee891d8495f41a5d873aba37dda6c26b2ebe78e69fcbc39cd199ae09 |
"""
The Grid module contains several utilities for grid operations
"""
__RCSID__ = "$Id$"
import os
import types
import re
from DIRAC.Core.Utilities.Os import sourceEnv
from DIRAC.FrameworkSystem.Client.ProxyManagerClient import gProxyManager
from DIRAC.Core.Security.ProxyInfo ... | vmendez/DIRAC | Core/Utilities/Grid.py | Python | gpl-3.0 | 15,561 | [
"DIRAC"
] | eaaa352f68db21f46a769589760b4b43f04dcfe3acea3ad229c7adb9fefd0fd9 |
import os
from ase.io import write
from gpaw import GPAW
calc = GPAW('anti.gpw')
atoms = calc.get_atoms()
up = calc.get_pseudo_density(0)
down = calc.get_pseudo_density(1)
zeta = (up - down) / (up + down)
write('magnetization.cube', atoms, data=zeta)
os.system('vmd -e isosurfaces.vmd magnetization.cube')
| qsnake/gpaw | doc/exercises/dos/viewmag.py | Python | gpl-3.0 | 311 | [
"ASE",
"GPAW",
"VMD"
] | 80f84e2dfe784f6b40eda19a604402d753496358594379242ca128e76173722a |
from __future__ import division
import pytest
import os
from bayesian.gaussian import MeansVector, CovarianceMatrix
from bayesian.gaussian_bayesian_network import *
from bayesian.examples.gaussian_bayesian_networks.river import (
f_a, f_b, f_c, f_d)
def pytest_funcarg__river_graph(request):
g = build_graph(... | kamijawa/ogc_server | bayesian/test/test_gaussian_bayesian_network.py | Python | mit | 2,497 | [
"Gaussian"
] | ac8174ad9ea582b0b2a7aabe0b38a1fa8823b66217d895d89de926658f5e67fa |
import os
import functools
import pytest
import lammps
# Redefine Lammps command-line args so no annoying logs or stdout
Lammps = functools.partial(lammps.Lammps, args=[
'-log', 'none',
'-screen', 'none'
])
# Lammps command line arguments
def test_lammps_init_default_units():
lmp = Lammps()
assert ... | costrouc/lammps-python | lammps/test/test_lammps.py | Python | gpl-3.0 | 2,816 | [
"LAMMPS"
] | 9ee6f20027796ae2f39ea26fd7b08a45c8cc7975bcea595becd6d149ac9dc03c |
'''
Groups.tests.views
'''
from MyPidge.Groups.models import Group, Service, GroupCategory, GroupTag, MembershipInvitation
from MyPidge.Users.models import User, Membership, MembershipClaim
from MyPidge.Events.models import Event, EventTime, EventTag
from django.test import TestCase, Client
from django.core import mail... | fergusrossferrier/mypidge.com | MyPidge/Groups/tests/views.py | Python | agpl-3.0 | 14,355 | [
"exciting"
] | 151eeccbe8b3db79ef8632d52ae006332fd3b3f673ae7594d915dfcb15eb9bb4 |
# #
# Copyright 2009-2020 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 (... | pescobar/easybuild-framework | easybuild/framework/easyconfig/easyconfig.py | Python | gpl-2.0 | 119,828 | [
"NetCDF"
] | 187b7da73b4aa108bb9854f339050054c2e8aeddb69c1454801732b3186c2d68 |
# This file is part of Androguard.
#
# Copyright (c) 2012 Geoffroy Gueguen <geoffroy.gueguen@gmail.com>
# 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://... | yang-guangliang/android_guard | androguard/decompiler/dad/graph.py | Python | apache-2.0 | 17,133 | [
"VisIt"
] | 0c05360024a380d1e1288f41ad69fe0103726c708e57ac62bfa19a24b96f5dc4 |
import numpy as np
from mayavi import mlab
from BDQuaternions import Conventions, EulerAngles
from BDSpace.Coordinates import Cartesian
import BDSpaceVis as Visual
# Create cartesian coordinate system
convention = Conventions().get_convention('Bunge')
# if you don't pass arguments the basis coincide with 'Absolute... | bond-anton/Space_visualization | demo/02_euler_angles_animation.py | Python | apache-2.0 | 3,075 | [
"Mayavi"
] | ac546ab9ba175f299297cc7f0db5d70cba729aebd0f6bcc89d2c0e74abb6074c |
# _*_ coding: utf-8 -*-
import os
import sys
import json
import traceback
import cv2
import caffe
import numpy as np
import selectivesearch as ss
"""
AlpacaDB/selectivesearch
Parameters
----------
im_orig : ndarray
Input image
scale : int
Free parameter. Higher means larg... | AtsushiHashimoto/fujino_mthesis | tools/module/ObjectDetection.py | Python | bsd-2-clause | 3,363 | [
"Gaussian"
] | 0098c53a4da22dc019528ed843b0d7bc51b208da81d495019f41cb4a9205ccbd |
'''Translate operation on globally scoped symbols to
operations on symbol_cell mapping
'''
from __future__ import absolute_import
from __future__ import with_statement
from ..runtime.symbol import get_symbol_cells_map, gensym
from . import ir as I
from . import bind
from .walk import IRWalker, propigate_location
f... | matthagy/Jamenson | jamenson/compiler/Attic/global_trans.py | Python | apache-2.0 | 4,911 | [
"VisIt"
] | e07ab367914a3a50ac87d04d322fc0f19bf4e314ff8e9fa35c3cb219257f8567 |
#!/usr/bin/env python
"""Convert BAM files to BigWig file format in a specified region.
Original version copyright Brad Chapman with revisions from Peter Cock
and ideas from Lance Parsons
Usage:
bam_to_bigwig.py <BAM file> [--outfile=<output file name>] [--split]
The --split argument is passed to bedtools genome... | bgruening/galaxy_tools | tools/bam_to_bigwig/bam_to_bigwig.py | Python | bsd-2-clause | 4,155 | [
"Galaxy",
"pysam"
] | 37c6dbe89578a8b3a5486380b6aec0c94a13a77675fe55e390cca6ed8a769541 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#... | MDAnalysis/mdanalysis | testsuite/MDAnalysisTests/topology/test_fhiaims.py | Python | gpl-2.0 | 2,101 | [
"MDAnalysis"
] | 8e49b566f4cbc627cd0c34d645687d267436ce83ba0b225318a92d0192f3f387 |
"""Core visualization operations."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Eric Larson <larson.eric.d@gmail.com>
# Oleh Kozynets <ok7mailbox@gmail.com>
# Guillaume Favelier <guillaume.favelier@gmail.com>
#
# License: Simplified BSD
from abc import ABCMeta, abstractcl... | cjayb/mne-python | mne/viz/backends/base_renderer.py | Python | bsd-3-clause | 15,252 | [
"Mayavi"
] | b5dae8acc3e6a13d1395fa92dd277f2f79fcc333141e8a23a72c8d6e91360baa |
# -*- coding: utf-8 -*-
__version__ = '0.15.0.dev0'
PROJECT_NAME = "pulsar"
PROJECT_OWNER = PROJECT_USERAME = "galaxyproject"
PROJECT_AUTHOR = 'Galaxy Project and Community'
PROJECT_EMAIL = 'jmchilton@gmail.com'
PROJECT_URL = "https://github.com/%s/%s" % (PROJECT_OWNER, PROJECT_NAME)
RAW_CONTENT_URL = "https://raw.g... | natefoo/pulsar | pulsar/__init__.py | Python | apache-2.0 | 385 | [
"Galaxy"
] | 2d071c9e23c20d86232b5d69b32d8fd7c2671eba4635a01239a6012668b704b7 |
# 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... | zasdfgbnm/tensorflow | tensorflow/contrib/py2tf/converters/asserts.py | Python | apache-2.0 | 1,805 | [
"VisIt"
] | 3cb685afda1ebb456281d5002339ce26bcdef3b07698cff8eb2108034df7374e |
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2015 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... | eustislab/horton | horton/io/vasp.py | Python | gpl-3.0 | 6,647 | [
"VASP"
] | ef0d400490208bea2ac518d969606d82a501ae1beeb33b478c1bc16b113f7eeb |
"""
This module module is used to generate the CAs and CRLs (revoked certificates)
Example::
from DIRAC.Core.Security import Utilities
retVal = Utilities.generateRevokedCertsFile()
if retVal['OK']:
cl = Elasticsearch( self.__url,
timeout = self.__timeout,
us... | yujikato/DIRAC | src/DIRAC/Core/Security/Utilities.py | Python | gpl-3.0 | 4,229 | [
"DIRAC"
] | 7d215b340f298c18048081877e0c14bfcf59ba2ebab536e75bf97df34222d9ca |
#IMPORTANT: if you want to load this script direclty to Paraview, copy it to OSS_Platform/ and load from there
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
# create a new 'CSV Reader'
#get... | andreashorn/lead_dbs | ext_libs/OSS-DBS/OSS_platform/Visualization_files/Paraview_connections_processed.py | Python | gpl-3.0 | 10,179 | [
"ParaView"
] | 908b4e1158eb20e01a74d2d03afdf4b0ee43a6b181e08a86cd1f8ec103ab0308 |
"""
This module adapted ANUGA
https://anuga.anu.edu.au/
"""
#FIXME: Ensure that all attributes of a georef are treated everywhere
#and unit test
import types, sys
import copy
import numpy as num
DEFAULT_ZONE = -1
TITLE = '#geo reference' + "\n" # this title is referred to in the test format
DEFAULT_PROJECTION = ... | mazafrav/JdeRobot | src/drivers/MAVLinkServer/modules/lib/ANUGA/geo_reference.py | Python | gpl-3.0 | 16,869 | [
"NetCDF"
] | d6e8d22904bc66d192ae956b500dae4e137b150144ee82cf6759d0b5df89489e |
#!/usr/bin/env python3
import re
import os
import sys
import json
import argparse
import upload_bot
import download_game
import compare_bots
from json.decoder import JSONDecodeError
"""client.py: Client for interacting with the Halite II servers."""
__author__ = "Two Sigma"
__copyright__ = "Copyright 2017, Two Sig... | AlexandreOuellet/halite-bot | client.py | Python | mit | 9,947 | [
"VisIt"
] | 14df7ebbc9f5e2777688cb4bc4adde708fa76c2f704e224b355b388cdbe2f37b |
from .. import Tractography
from .. import (
tractography_from_trackvis_file, tractography_to_trackvis_file,
tractography_from_files, tractography_to_file
)
try:
VTK = True
from ..vtkInterface import (
tractography_from_vtk_files, tractography_to_vtk_file,
)
except ImportError:
VTK = Fa... | demianw/tract_querier | tract_querier/tractography/tests/test_tractography.py | Python | bsd-3-clause | 7,092 | [
"VTK"
] | af389d7a6a44c0ad8e1e773136c40b3c7651c094afdc3329daaf22964f582159 |
from uuid import uuid4
from Firefly import logging, scheduler
from Firefly.components.virtual_devices import AUTHOR
from Firefly.const import (COMMAND_UPDATE, DEVICE_TYPE_THERMOSTAT, LEVEL)
from Firefly.helpers.action import Command
from Firefly.helpers.device.device import Device
from Firefly.helpers.metadata.metadat... | Firefly-Automation/Firefly | Firefly/components/nest/thermostat.py | Python | apache-2.0 | 7,969 | [
"Firefly"
] | 73cf85cd38f9bd9de57ecb238e578d562262d4a014ba0c365b526003368486e2 |
"""
The cutoffs module gives a few different options for smoothly sending the GP
kernel to zero near the boundary of the cutoff sphere.
"""
from math import cos, sin, pi
from numba import njit
@njit
def hard_cutoff(r_cut: float, ri: float, ci: float):
"""A hard cutoff that assigns a value of 1 to all interatomic ... | mir-group/flare | flare/kernels/cutoffs.py | Python | mit | 3,007 | [
"Gaussian"
] | f389da8e383fff900230b24b957ea1f303b7dae7a3d4ce3b2111c48ac96c08df |
import sys
import sourceM
import argparse
Usage = """
Welcome to MotionMeerkat!
Automated capture of motion frames from a video file.
For help, see the wiki: https://github.com/bw4sz/OpenCV_HummingbirdsMotion/wiki
Default values for parameters are in parenthesis. To select default hit enter.
Affirmative answers t... | bw4sz/MotionMeerkat_Bisque | MotionMeerkat/arguments.py | Python | gpl-3.0 | 14,901 | [
"Gaussian"
] | e33fe71598471f47a383462eb3eeba7df3a8142f83728c8c1e2f21fe904a45a7 |
"""Forest of trees-based ensemble methods
Those methods include random forests and extremely randomized trees.
The module structure is the following:
- The ``BaseForest`` base class implements a common ``fit`` method for all
the estimators in the module. The ``fit`` method of the base ``Forest``
class calls the ... | chrsrds/scikit-learn | sklearn/ensemble/forest.py | Python | bsd-3-clause | 82,923 | [
"Brian"
] | c307c84ea37cd9034ca630280ea1abb1362a85bdacab094e561c3bc9e13cb534 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.