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 sys
import os
import pylab
import numpy
import math
import moose
print( '[INFO] Using moose from %s' % moose.__file__ )
import moose.utils
EREST_ACT = -70e-3
# Gate equations have the form:
#
# y(x) = (A + B * x) / (C + exp((x + D) / F))
#
# where x is membrane voltage and y is the rate constant for gate
# clo... | BhallaLab/moose | moose-examples/cuda/testHsolve.py | Python | gpl-3.0 | 9,868 | [
"MOOSE"
] | 4c69dcfc062d33e40925c8970454f4db35e2efdcd10fb6b150736dca66eb7235 |
# Todd Miller jmiller@stsci.edu
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from six.moves import tkinter as Tk
from six.moves import tkinter_filedialog as FileDialog
import os, sys, math
import os.path
# Paint image to Tk photo blitter ex... | yavalvas/yav_com | build/matplotlib/lib/matplotlib/backends/backend_tkagg.py | Python | mit | 31,746 | [
"FLEUR"
] | 382f9b70c427212930af593e7559fea074bf4c840b3ffb29d05048b8a7159513 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/e2openplugin-OpenWebif | plugin/controllers/views/web/moviedelete.py | Python | gpl-2.0 | 5,203 | [
"VisIt"
] | 1b90cf87db22ff3be073497cd3281084b008e1ccb1feb2a9664eda9521a8e14f |
'''
HashtagK9.py
Simple toy dataset of 9 Gaussian components with diagonal covariance structure.
Generated data form a "hashtag"-like shapes when plotted in 2D.
'''
from __future__ import division
import scipy.linalg
import numpy as np
from bnpy.data import XData, MinibatchIterator
###############################... | daeilkim/refinery | refinery/bnpy/bnpy-dev/demodata/HashtagK9.py | Python | mit | 4,672 | [
"Gaussian"
] | 3d38e9ce7524ba7bf365cf86fb469fcc0218ab0279059eb500c3723f2c2ef8ca |
#!/usr/bin/env python
########################################################################
# File : dirac-utils-file-md5
# Author :
########################################################################
"""
Calculate md5 of the supplied file
Usage:
dirac-utils-file-md5 [options] ... File ...
Arguments:
F... | yujikato/DIRAC | src/DIRAC/Interfaces/scripts/dirac_utils_file_md5.py | Python | gpl-3.0 | 1,269 | [
"DIRAC"
] | 15da64d1e428e93d947a316cc06501c05836758210254ac90327f02aac51e9f4 |
# proxy module
from __future__ import absolute_import
from mayavi.modules.generic_module import *
| enthought/etsproxy | enthought/mayavi/modules/generic_module.py | Python | bsd-3-clause | 98 | [
"Mayavi"
] | 8e133c1040a02458999148e1d80f4c1e4ec0004f2159c1dd25de2329841651f7 |
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
import os
import gyp
import gyp.common
import gyp.msvs_emulation
import json
import sys
generator_supports_multiple_toolsets = True
generator_... | migua1204/jikexueyuan | 极客学院/BusStopBoard/node_modules/.3.4.0@node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py | Python | apache-2.0 | 3,426 | [
"VisIt"
] | cc5ececb6805ac364300496f028429bd3725040a053186cba78b5439b9c3ee7c |
"""Manages the show effects in a pinball machine."""
# show_controller.py
# Mission Pinball Framework
# Written by Brian Madden & Gabe Knuth
# Released under the MIT License. (See license info at the end of this file.)
# Documentation and more info at http://missionpinball.com/mpf
import logging
import time
from mpf... | spierepf/mpf | mpf/media_controller/core/show_controller.py | Python | mit | 25,915 | [
"Brian"
] | 709f6af8fec8692d6e330e386690a67651a3745906182c111e4df8154bc56c5d |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | mlperf/training_results_v0.7 | Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/tvm/python/tvm/relay/_parser.py | Python | apache-2.0 | 18,536 | [
"VisIt"
] | 46fa5dc923f56d3ef38af310a3ff739ddc37df9df724afabaa57d14e375861cc |
# vmd remote control --- client/server scripts to run VMD from python
# Copyright (c) 2007-2009 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Lesser Public License, version 3 or later.
# See COPYING and COPYING.LESSER.
"""
=============
VMD control
=============
Simple client to transmit Tcl commands... | jandom/GromacsWrapper | vmd/__init__.py | Python | gpl-3.0 | 1,160 | [
"VMD"
] | fb29e548f2c8f022922d5c6ecdd0000599c793f27ac253ab948c22325085db29 |
# coding: utf-8
from __future__ import division, unicode_literals
"""
This module implements input and output processing from PWSCF.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Virtual Lab"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "ongsp@ucsd.edu"
__date_... | Dioptas/pymatgen | pymatgen/io/pwscfio.py | Python | mit | 5,015 | [
"CRYSTAL",
"pymatgen"
] | 2fc8798efbaf6301fbb254586882b51d1c0340e96005594e10761e243d7157d0 |
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | Acehaidrey/incubator-airflow | airflow/settings.py | Python | apache-2.0 | 22,828 | [
"VisIt"
] | f45a433a6f3733c38d9e08e9cb64da41738c68b9ba3cb973d95dc5f2d127dca3 |
# -*- coding: utf-8 -*-
#
# samtools documentation build configuration file, created by
# sphinx-quickstart on Wed Aug 12 14:43:42 2009.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | nlhepler/pysam | doc/conf.py | Python | mit | 7,201 | [
"pysam"
] | 741c6720c7132819bc965e5f2b833b587347e4c8cc366c1a58126fed5a7a9b48 |
from random import uniform
import numpy as np
from collections import OrderedDict
from lxml import etree
from abc import ABCMeta, abstractmethod, abstractproperty
class Neuron(object):
__metaclass__ = ABCMeta
_default_attr_dict = OrderedDict((
('model','string'),
('name','str... | neurokernel/antennal_lobe | examples/data/neuron.py | Python | bsd-3-clause | 6,838 | [
"NEURON"
] | 7de0325d74635659b83534697d053156407f22e576ab0c5a207254258533481d |
# -*- 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/coordinates/test_dms.py | Python | gpl-2.0 | 3,032 | [
"MDAnalysis",
"VMD"
] | a9e8ff13d41c4f6529e32ae641c5c38660fb5a09d288b1dfd5cae1cf2329af50 |
# -*- coding: utf-8 -*-
""" Tests for user authn views. """
from http.cookies import SimpleCookie
import logging
import re
from unittest import skipUnless
from urllib import urlencode
import ddt
import mock
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import get_user_m... | a-parhom/edx-platform | openedx/core/djangoapps/user_authn/views/tests/test_views.py | Python | agpl-3.0 | 37,066 | [
"VisIt"
] | 081cbb4e4edc586e9a24a4db94e50cfb608fc5b86685d48281d48cb156b6f391 |
import k3d
import numpy as np
import pytest
from .plot_compare import *
import vtk
from vtk.util import numpy_support
def test_volume():
prepare()
reader = vtk.vtkXMLImageDataReader()
reader.SetFileName('./test/assets/volume.vti')
reader.Update()
vti = reader.GetOutput()
x, y, z = vti.GetDim... | K3D-tools/K3D-jupyter | k3d/test/test_visual_volume.py | Python | mit | 1,558 | [
"VTK"
] | a91c34a5a7c4a524c152b437880f9d60229c59f3fb8788f58021e7b7794a30d2 |
"""
Testing geospatial data resampler using matplotlib basemap interp.
"""
import xarray as xr
import os
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits import basemap
import time
# This is just a prototype, hence the hard coded paths
CLOUD_ECV_PATH = '/home/ccitbx/cci_data/cloud/2008/'
AEROSOL_... | CCI-Tools/sandbox | notebooks/Janis/resample_basemap.py | Python | gpl-3.0 | 5,561 | [
"NetCDF"
] | 84a675cfe48348fda48ba74db04c3014219ebef20ba5fab6d471b05737516c5a |
"""
User policy settings
"""
from askbot.conf.settings_wrapper import settings
from askbot.conf.super_groups import LOGIN_USERS_COMMUNICATION
from askbot.deps import livesettings
from django.conf import settings as django_settings
from askbot.skins import utils as skin_utils
from django.utils.translation import ugettex... | jesonyang001/qarepo | askbot/conf/user_settings.py | Python | gpl-3.0 | 4,874 | [
"VisIt"
] | d61522424d596c1105f531797f6209db5ed14b5242cbe6aa494c72ff41880c1e |
""" This module exposes the BaseClient class,
which serves as base for InnerRPCClient and TransferClient.
"""
__RCSID__ = "$Id$"
import time
import thread
import DIRAC
from DIRAC.Core.DISET.private.Protocols import gProtocolDict
from DIRAC.FrameworkSystem.Client.Logger import gLogger
from DIRAC.Core.Utilities imp... | chaen/DIRAC | Core/DISET/private/BaseClient.py | Python | gpl-3.0 | 25,147 | [
"DIRAC"
] | 1eb842ddc592298e52314f10342fb85c6b95640e44aa9599ce5cd5eee27273dd |
# h10.CNG.moose.py ---
#
# Filename: h10.CNG.moose.py
# Description:
# Author: subha
# Maintainer:
# Created: Sat Apr 30 02:10:09 2016 (-0400)
# Version:
# Last-Updated: Sat Apr 30 03:12:18 2016 (-0400)
# By: subha
# Update #: 95
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#... | subhacom/moose-core | tests/issues/hsolve/h10.CNG.moose.py | Python | gpl-3.0 | 3,103 | [
"MOOSE",
"NEURON"
] | 1ac6a8da860db82bc9dcc401ef9e352cc99684f23ea99cc575d4add5206b5b86 |
"""
Django settings for mwach project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# This is the name of the application shown in the title and on login and va... | I-TECH-UW/mwachx | mwach/settings_base.py | Python | apache-2.0 | 5,905 | [
"VisIt"
] | 994d633594f6df37d533176c798ff86d50a7f7e625bdfcc1e85ef6e0918b18c5 |
"""
Script to determine NFR positions!
@author: Alicia Schep
"""
##### IMPORT MODULES #####
# import necessary python modules
import multiprocessing as mp
import numpy as np
import os
import traceback
import itertools
import pysam
from pyatac.utils import shell_command, read_chrom_sizes_from_fasta, read_chrom_sizes_f... | GreenleafLab/NucleoATAC | nucleoatac/run_nfr.py | Python | mit | 4,323 | [
"pysam"
] | 98e6d1bbe08118bc395312509dcf52f38d589243300ba8dd084274ca46c6f41e |
#! /usr/bin/env python3
"""
Lab 6 Main File. Code Generation with Smart IRs.
Usage:
python3 Main.py <filename>
"""
from MuLexer import MuLexer
from MuParser import MuParser
from MyMuCodeGen3AVisitor import MyMuCodeGen3AVisitor
from Allocations import smart_alloc
from ExpandJump import replace_jump
import argparse
... | lauregonnord/cap-labs | TP06/MuSmartCodeGen/Main.py | Python | gpl-3.0 | 2,112 | [
"VisIt"
] | d71d6e92743bbb31b2ee032c3681cddb8acb3300c47558da7e5697d7b12a51d0 |
#!/usr/bin/python
# (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# most of it copied from AWX's scan_packages module
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': ... | SergeyCherepanov/ansible | ansible/ansible/modules/packaging/os/package_facts.py | Python | mit | 9,952 | [
"Brian"
] | fffeeb94b49904250697c39767aec7ce4793f12fb6f2d67ef46ff2ad9c240105 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Lenovo, Inc.
#
# 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
# ... | adityacs/ansible | lib/ansible/modules/network/lenovo/cnos_vlan.py | Python | gpl-3.0 | 11,411 | [
"VisIt"
] | 26b0c07189d16f50efa7b4dbec146cdbb66c7b94a3dbcbcdeee2982039c2f698 |
# Copyright 2014 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.
"""Environment setup and teardown for remote devices."""
import distutils.version
import json
import logging
import os
import random
import sys
from pylib ... | sgraham/nope | build/android/pylib/remote/device/remote_device_environment.py | Python | bsd-3-clause | 13,196 | [
"Galaxy"
] | 1399e3aa4e738dfe5012d1ebad082079631fb5c2e6b3baa5ecb85bc683cee213 |
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 7 18:07:32 2015
A script to analyze motion data from single worm track data
Accepts: WormTracker data. But be warned! You must manually re-write all NaNs
because the script that generates the files inserts random spaces in there.
Outputs: Bunch of graphs and summary of... | dangeles/WormFiles | useful_scripts/src/worm_motion_analysis.py | Python | mit | 2,330 | [
"Gaussian"
] | dbbc25358626dab56e60ff22e76babd3733f8ffc927ffdc48f05e9d6c2ad19a6 |
import pdb
import numpy as np
import math
import time
import chainer
import chainer.functions as F
import chainer.links as L
from chainer import cuda
from util import gaussian_kl_divergence_standard
from util import gaussian_logp0
from util import gaussian_logp
class VAE(chainer.Chain):
def __init__(self, dim_i... | ashwindcruz/dgm | iaf_pose/model.py | Python | mit | 5,534 | [
"Gaussian"
] | 5cfc184a606761eb4c983da6a18fd6e215f671ea4b11bff13db7917685c5ae4e |
"""This scripts produces the VASP style POSCAR."""
from __future__ import print_function
import warnings
import numpy as np
import os
try:
from termcolor import cprint
except ImportError:
cprint = print
# The dictionary of all the elements on the periodic table
element_volume ={"H":37.2958,"He":32.1789,"Li":2... | msg-byu/enumlib | aux_src/makeStr.py | Python | mit | 46,913 | [
"CRYSTAL",
"Gaussian",
"VASP"
] | fd28898aa1f243bbcdd78a996d68c082677e76a6293f9dc796fad9e2cdebc095 |
from clld.web.assets import environment
from clldutils.path import Path
import cdk
environment.append_path(
Path(cdk.__file__).parent.joinpath('static').as_posix(), url='/cdk:static/')
environment.load_path = list(reversed(environment.load_path))
| clld/cdk | cdk/assets.py | Python | apache-2.0 | 254 | [
"CDK"
] | 8b945454498f1dba288a19cc853df43f815a1781c866d59bdd5d1e110133fc5f |
# -*- coding: utf-8 -*-
{
'!langcode!': 'nl',
'!langname!': 'Nederlands',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN',
'%(nrows)s rec... | DaytonGarcia/quizmodule | languages/nl.py | Python | gpl-3.0 | 17,632 | [
"Elk"
] | 9c4d23e14f84ae13dcbcbfbb9a8ed6cedf60b4acc7208656238e971a3ff2576d |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-23 21:55
from __future__ import unicode_literals
import core.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('questionnaire', '0001... | acesonl/remotecare | remotecare/apps/questionnaire/rheumatism/migrations/0001_initial.py | Python | gpl-3.0 | 41,210 | [
"Elk",
"MOE"
] | 0d7b55c008458cbaf954dee871c225c3eae107f3de274df24aa582dfb00d39df |
# singlemsgcross.py ---
#
# Filename: singlemsgcross.py
# Description:
# Author:Subhasis Ray
# Maintainer:
# Created: Wed May 1 11:05:30 2013 (+0530)
# Version:
# Last-Updated: Wed May 1 12:16:14 2013 (+0530)
# By: subha
# Update #: 43
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Ch... | BhallaLab/moose-examples | snippets/singlemsgcross.py | Python | gpl-2.0 | 2,547 | [
"MOOSE"
] | 47b0ae81d5a0fa5215b201b5b82b0082a8b90815f10f27ad74361b9a664c8b1a |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import webapp2
import jinja2
import re
from google.appengine.ext import ndb
from google.appengine.ext import blobstore
from google.appengine.api import users
from google.appengine.ext.webapp import blobstore_handlers
import logging
import parsers
import headers
import os
... | Dataliberate/bibschemaorg | api.py | Python | apache-2.0 | 57,795 | [
"VisIt"
] | 510f4afca8a2fafd30c68c2452b457b7555d996eb5265947c0f1b861828f7498 |
# -*- coding: utf-8 -*-
# (c) 2015, Brian Coca <briancoca+dev@gmail.com>
# (c) 2018, Matt Martz <matt@sivel.net>
# 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__... | j-carl/ansible | lib/ansible/plugins/action/uri.py | Python | gpl-3.0 | 4,069 | [
"Brian"
] | 6b288933b2c7b02bf05a7e5daffbee6817914748bf8d42f8fa2fb3b7d8cc28b1 |
import numpy as np
from ase import Atoms
from gpaw import GPAW
from gpaw.wavefunctions.pw import PW
from gpaw.test import equal
from gpaw.mpi import world
a = 2.65
bulk = Atoms('Li', cell=(a, a, 3 * a), pbc=True)
k = 4
calc = GPAW(mode=PW(200),
parallel={'band': min(world.size, 4)},
idiotproof=... | ajylee/gpaw-rtxs | gpaw/test/pw/slab.py | Python | gpl-3.0 | 405 | [
"ASE",
"GPAW"
] | bfc3324f3ca710b79dafeb25a727cfe4def234f2259a6e906e73db4427b68c19 |
from os.path import join
import utilities
import pytest
import commands
from ..automation import TaskManager
class OpenWPMTest(object):
NUM_BROWSERS = 1
@pytest.fixture(autouse=True)
def set_tmpdir(self, tmpdir):
"""Create a tmpdir fixture to be used in `get_test_config`.
Based on:
... | natasasdj/OpenWPM | test/openwpmtest.py | Python | gpl-3.0 | 2,565 | [
"VisIt"
] | acbce2e313f4f5710a6d8672481454d1d229b7ad315f7acf9f91cfd53c461142 |
# -*- coding: utf-8 -*-
## Aditya Gilra, NCBS, Bangalore, 2012
## Dilawar Singh, NCBS, 2015
import os
os.environ['NUMPTHREADS'] = '1'
import sys
import moose
from moose.utils import *
import moose.utils as mu
from . import count
import numpy as np
from moose.neuroml.NeuroML import NeuroML
import unittest
simdt = 1... | BhallaLab/moose-core | tests/support/_neuroml/CA1.py | Python | gpl-3.0 | 1,042 | [
"MOOSE"
] | ad5a4edf094db6047585057c4cd86c66d7937e601c3a10519fa3f35e913e78ab |
import collections
import itertools
import os
import urllib
import urllib2
import re
import cStringIO
import StringIO
from dulwich.errors import HangupException, GitProtocolError
from dulwich.objects import Blob, Commit, Tag, Tree, parse_timezone
from dulwich.pack import create_delta, apply_delta
from dulwich.repo imp... | seewindcn/tortoisehg | src/ext/hggit/git_handler.py | Python | gpl-2.0 | 65,592 | [
"Octopus"
] | 601f741eb32bc869cc43ccdaa7038b19ead1001eec2195c902b530a410ee75a6 |
"""
Acceptance tests for course creation.
"""
import uuid
from nose.plugins.attrib import attr
from common.test.acceptance.pages.common.auto_auth import AutoAuthPage
from common.test.acceptance.pages.studio.index import DashboardPage
from common.test.acceptance.pages.studio.overview import CourseOutlinePage
from comm... | Lektorium-LLC/edx-platform | common/test/acceptance/tests/studio/test_studio_course_create.py | Python | agpl-3.0 | 6,056 | [
"VisIt"
] | 5f7c07c266a954957847621a3ceddc2e7d90fcc838734c3dfa345fce282b911b |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
"""
"""
__author__ = "Aviral Goel"
__credits__ = ["Upi Lab"]
__license__ = "GPL3"
__version__ = "1.0.0"
__maintainer__ = "Aviral Goel"
__email__ = "goel.aviral@gmail.com"
__status__ = "Develo... | dilawar/moose-full | moose-gui/PlotWidgetContainer.py | Python | gpl-2.0 | 5,317 | [
"MOOSE"
] | aff21e5979a6f589984b384899b4eae54dacd450043e6ee55bf454fdc7dc4c5a |
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2007-2014 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License.
#
# This library is distri... | FedoraScientific/salome-paravis | src/Plugins/MEDReader/Test/testMEDReader13.py | Python | lgpl-2.1 | 3,399 | [
"ParaView"
] | 0c9eb545f8cce26a75bc4aeb6d8dfd8e382652e7cd35a486225e3328e0e84513 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2009 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 Lesser General Public License as published by
## the Free Software F... | tiagocardosos/stoq | plugins/nfe/__init__.py | Python | gpl-2.0 | 905 | [
"VisIt"
] | 905275f5aa1ecb23f9e1dbbe391f16267c6edfb40ab54dfabc8353282e3d0f39 |
import atexit
import functools
import os
import shutil
import tempfile
import warnings
from copy import deepcopy as _deepcopy
from taichi._lib import core as _ti_core
from taichi._lib.utils import locale_encode
from taichi.lang import impl
from taichi.lang.expr import Expr
from taichi.lang.impl import axes, get_runtim... | yuanming-hu/taichi | python/taichi/lang/misc.py | Python | mit | 20,325 | [
"VisIt"
] | 1600da8f40a1e4c5f540d08c4e1aa24faaf9c3d730ab45b8fb4a1c6618d22f60 |
"""Coders for individual Variable objects."""
import warnings
from functools import partial
from typing import Any, Hashable
import numpy as np
import pandas as pd
from ..core import dtypes, duck_array_ops, indexing
from ..core.pycompat import is_duck_dask_array
from ..core.variable import Variable
class Serializat... | pydata/xarray | xarray/coding/variables.py | Python | apache-2.0 | 12,507 | [
"NetCDF"
] | e924d2040c2771ecd6a6e2c63befa772475d88de1b5a4dda6062cd25eae23aa1 |
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 28 20:30:11 2018
@author: danielgodinez
"""
import numpy as np
import random
from astropy.io import fits
from sklearn import decomposition
import os
from LIA import simulate
from LIA import noise_models
from LIA import quality_check
from LIA import extract_features
... | dg7541/MicrolensingLCOGT | LIA/training_set.py | Python | gpl-3.0 | 12,474 | [
"Gaussian"
] | b3b103759210a23b90a1c9af255410b9d200fc90b8ae140049ef138128aeaab9 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-compute | tests/unit/gapic/compute_v1/test_public_advertised_prefixes.py | Python | apache-2.0 | 95,211 | [
"Octopus"
] | 69d5de0b6e615b987780006cde4dbd7d2bb308b32f19718795eb10b546fd16ce |
"""
usbcon.py
Brian Perrett
Advanced Projects Lab, University of Oregon
January 12, 2016
to be used on top of other classes as the means of writing commands
to and retrieving from the Rigol DS1102E, or other usb devices.
Add more classes to add more backends.
Written and tested in python2.7 on Ubuntu 15.10
"""
im... | aplstudent/Rigol-DS1000DE | rigolds1000de/usbcon.py | Python | mit | 3,146 | [
"Brian"
] | 188302c8985577003cf26e6c01384f9a29d52589be61e1565d8e68f0ef067eec |
import os
from .job import Job
class DALTONJob(Job):
""" Base class for all DALTON calculations
Subclasses are responsible for setting the correct parameters
in the calculation.
"""
def __init__(self, basename, **kwargs):
Job.__init__(self, basename, **kwargs)
self.program... | cstein/calcit | calcit/dalton.py | Python | mit | 3,108 | [
"Dalton"
] | 4f6913da785b08d964fb8ac001b9bafa884ad34245e5e87f885e5aa0a1c94197 |
import os
import pysam
from bcbio.pipeline import datadict as dd
from bcbio.pipeline import config_utils
from bcbio.provenance import do
from bcbio.distributed.transaction import file_transaction
from bcbio.utils import file_exists, splitext_plus
from bcbio import bam
from bcbio.log import logger
def fix_umi_dragen_b... | chapmanb/bcbio-nextgen | bcbio/dragen/dragen.py | Python | mit | 2,002 | [
"pysam"
] | 88e804c8f900f027c60ffe6a7dbf8e8481d19efc7b0bdc483ff3d56fd9409c62 |
#!/usr/bin/env python
# Copyright (C) 2007, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import unittest, os, sys
import doctest
sys.path.insert(0, '..')
import support
main_dir = os.path.join(os.path.dirname(__file__), '..')
suite = unittest.TestSuite()
for x in [support]:
suit... | gfxmonk/0release | tests/testdocs.py | Python | lgpl-2.1 | 451 | [
"VisIt"
] | 839fbff2654fd3cae211013c78b37e937f72907f628730294570d9eef588e0f8 |
from __future__ import absolute_import
from .import _lifted_multicut as __lifted_multicut
from ._lifted_multicut import *
from functools import partial
from ..multicut import ilpSettings
from .. import Configuration
import numpy
__all__ = []
for key in __lifted_multicut.__dict__.keys():
__all__.append(key)
tr... | DerThorsten/nifty | src/python/module/nifty/graph/opt/lifted_multicut/__init__.py | Python | mit | 11,427 | [
"Gaussian"
] | 8d005900a0e378293c30cf49056a035b97071c35e720c0607911a3cf39833de4 |
# Audio Tools, a module and set of tools for manipulating audio data
# Copyright (C) 2007-2016 Brian Langenberger
# 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 2 of the Licens... | tuffy/python-audio-tools | audiotools/toc/tokrules.py | Python | gpl-2.0 | 3,434 | [
"Brian"
] | 3eb3b677f19bd7f83762883c7ea0adc49b9d09dad444fb10d65cb5cad6faa8cb |
from __future__ import print_function
############################################################################
# PyBrain Tutorial "Classification with Feed-Forward Neural Networks"
#
# Author: Martin Felder, felder@in.tum.de
############################################################################
""" This tut... | pybrain/pybrain | docs/tutorials/fnn.py | Python | bsd-3-clause | 5,749 | [
"NEURON"
] | 9142ae219704b6d7387faa365202ecc776625f94dd4ea892aa2935da2604c6ae |
import datetime
from unittest import mock
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase, override_settings, skipUnlessDBFeature
from django.test.utils import requires_tz_support
from django.utils import timezone
from .models import Artist, Author, Book, BookSigning, Page
d... | wkschwartz/django | tests/generic_views/test_dates.py | Python | bsd-3-clause | 38,883 | [
"MOOSE"
] | adf32922bfb9c4952567176b7420d4dc5604efe57d41f4fc73cd39b693643d9f |
# -*- coding: utf-8 -*-
#
# (c) Copyright 2001-2009 Hewlett-Packard Development Company, L.P.
#
# 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 2 of the License, or
# (at your opt... | Alberto-Beralix/Beralix | i386-squashfs-root/usr/share/hplip/ui4/setupdialog.py | Python | gpl-3.0 | 49,502 | [
"VisIt"
] | 0f6154b5e94c9d51aceabbd332b02d571eb4d6140bfde06aa5b1de31b9edc47a |
#!/usr/bin/python
'''
look up sequence info for SSCexome.txt coordinates using pysam, write as headerless vcf.
'''
import pysam, sys
#if len(sys.argv) != 4:
# print 'usage:'
# print sys.argv[0], '/pathto.ref.fa /path/to/input.bed /path/to/output.vcf'
# sys.exit(1)
#
#genref, iosfile, outvcf = sys.argv[1:]
ge... | asalomatov/variants | variants/work/ios2vcf.py | Python | mit | 3,514 | [
"pysam"
] | 22bf4abe36e0aedc53de606bb9caae9462f4f67e08d1b21cf7db538ca989354f |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import
"""####################################################################
# GoodVibes.py #
# Evaluation of quasi-harmonic thermochemistry from Gaussian. #
# Par... | bobbypaton/GoodVibes | goodvibes/GoodVibes.py | Python | mit | 103,807 | [
"Dalton",
"Gaussian",
"ORCA"
] | a6fdbcaca695baf387cf4903964e7a5b8950de8a50cbde8568c0a6f126fba33b |
#!/usr/bin/env python
# Copyright 2002 Google Inc. All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of c... | dslomov/bazel | third_party/py/gflags/gflags/flagvalues.py | Python | apache-2.0 | 46,414 | [
"MOE"
] | 31ec77a57ca8b5024846820a114fa9c16b478a87c5386665f5d7d947e89c7fb1 |
import os
import subprocess
import multiprocessing
import tempfile
import shlex
import pysam
import pybedtools
import atg
BIGWIG_COMMAND = 'bedGraphToBigWig {bedgraph} {chrom_sizes} {bigwig}'
RPMM_SCALE_FACTOR = 10**6 # reads per million mapped reads
# TODO: add ChIP-Seq style
# TODO: parse ChIP-Seq/RNA-Seq from SAM... | BennerLab/atg | atg/quantification/coverage.py | Python | gpl-3.0 | 13,106 | [
"pysam"
] | e4d5fa87ad2b6728503918a1139a73c41c09143be1fbc08f36a0779bb967f89a |
# Author: Suyog Dutt Jain <suyog.jain@aero.iitb.ac.in>
# Prabhu Ramachandran <prabhu_r@users.sf.net>
# Copyright (c) 2008-2015, Enthought, Inc.
# License: BSD Style.
# Standard library imports.
from os.path import abspath
from io import BytesIO
import copy
import numpy
import unittest
# Enthought library im... | dmsurti/mayavi | mayavi/tests/test_image_plane_widget.py | Python | bsd-3-clause | 4,506 | [
"Mayavi"
] | 3e4d7de6459951ccfa2de526cfac3a792c12f992cf9441cf698f18e103b6bd9d |
"""Utilities used in the Kadenze Academy Course on Deep Learning w/ Tensorflow.
Creative Applications of Deep Learning w/ Tensorflow.
Kadenze, Inc.
Parag K. Mital
Copyright Parag K. Mital, June 2016.
"""
import matplotlib.pyplot as plt
import tensorflow as tf
import urllib
import numpy as np
import zipfile
import os
... | dariox2/CADL | session-1/libs/utils.py | Python | apache-2.0 | 7,382 | [
"Gaussian"
] | 9be235de36228e2f1b2f4d7bb9a958a72cdd0d8e95cfede6250382392997e585 |
'''
Created on Apr 8, 2010
@author: Drew Roos
'''
title = "Circumcision"
tab_link = "/circumcision"
incoming_tz = 'Africa/Nairobi'
server_tz = 'America/New_York' #todo: should find a way to set this automatically;
#actually not needed at all if scheduler were able to run off UTC
... | dimagi/rapidsms-old | apps/circumcision/config.py | Python | lgpl-3.0 | 8,880 | [
"VisIt"
] | fabf01c256915fb6e61c5afe271855677c16f38780ab84dffd6e10d900ff8668 |
"""
The B{0install digest} command-line interface.
"""
# Copyright (C) 2011, Thomas Leonard
# See the README file for details, or visit http://0install.net.
from __future__ import print_function
import os, tempfile
from zeroinstall import SafeException, _
from zeroinstall.zerostore import manifest, unpack
from zero... | dabrahams/0install | zeroinstall/cmd/digest.py | Python | lgpl-2.1 | 1,771 | [
"VisIt"
] | aada287732d527424e9d3cb98881a82a17352b74583b2340fbbe6f24d2f73f61 |
from dominate import tags
from dominate.util import raw
from flask import current_app
from markupsafe import Markup
from visitor import Visitor
def render_form(form, **kwargs):
r = WTFormsRenderer(**kwargs)
return Markup(r.visit(form))
class WTFormsRenderer(Visitor):
def __init__(self,
... | znoland3/zachdemo | venvdir/lib/python3.4/site-packages/flask_bootstrap/forms.py | Python | mit | 4,476 | [
"VisIt"
] | bd46ea52da2ed9f0a9c7aee0ce39cebc5e2901d410728255d7d919009ccb5969 |
"""Provide functions to modify model components."""
from ast import NodeTransformer
from itertools import chain
from typing import TYPE_CHECKING, Dict
if TYPE_CHECKING:
from cobra import Gene, Model
# Set of tuples of operators and their corresponding textual form
_renames = (
(".", "_DOT_"),
("(", "_LP... | opencobra/cobrapy | src/cobra/manipulation/modify.py | Python | gpl-2.0 | 5,046 | [
"VisIt"
] | cab1b1b3573bf8fb1bd3387edb732f1badb3fb2360186c7c8f78c13765b8d1eb |
from __future__ import annotations
import logging
import math
logger = logging.getLogger(__name__)
def write_background_file(file_name, imageset, n_bins):
from dials.command_line.background import background
d, I, sig = background(imageset, imageset.indices()[0], n_bins=n_bins)
logger.info("Saving bac... | dials/dials | util/best.py | Python | bsd-3-clause | 7,006 | [
"CRYSTAL"
] | 5197cf0c9a5326ec7be5edabb4946b0259a5a532d8db09303919c88d6226bc2d |
import os
import sys
import numpy as np
from numpy import vectorize
from scipy import interpolate, integrate
from scipy import special
from scipy.interpolate import UnivariateSpline, InterpolatedUnivariateSpline
from scipy.ndimage.filters import gaussian_filter
import pylab as pl
from numba import double, float64, floa... | vvinuv/HaloModel | halowlsz/convert_NFW_RadMass.py | Python | gpl-3.0 | 14,413 | [
"TINKER"
] | c8bfe48b0a62a9e111ebd725c14feddfa72952c86a2910775e8498f92db72c49 |
# Copyright 2013 by Zheng Ruan (zruan1991@gmail.com).
# All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Code for dealing with Codon Alignment.
"""
from __future__ import print... | zjuchenyuan/BioWeb | Lib/Bio/codonalign/__init__.py | Python | mit | 33,225 | [
"Biopython"
] | 5c9d18153e890705f2ff8a94edd8d44c768fb89a7208d752100288ccce4704b3 |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2017 University of Westminster. 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.ap... | mesgarpour/T-CARER | Stats/Plots.py | Python | apache-2.0 | 24,519 | [
"Gaussian"
] | 1d04d44bdb7648dcaa90bba0f6a1f5bc196a75636fd39dc6ca83ef1113a2468c |
#eva_vid.py
# keras c3d eva_model
# !/usr/bin/env python
import matplotlib
matplotlib.use('Agg')
from keras.models import model_from_json
import os
import cv2
import numpy as np
import matplotlib.pyplot as plt
import c3d_keras_model as c3d_model
import sys
import keras.backend as K
import time
# import gizeh
##########... | bbcdli/xuexi | vid_ana_k/eva_vid.py | Python | apache-2.0 | 28,269 | [
"BLAST"
] | 03a93fa1611ab49649f606f862af5f5bbff8ce4fbde5a8094c204ab95b9be4ea |
# Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | pkreissl/espresso | testsuite/python/particle_slice.py | Python | gpl-3.0 | 14,377 | [
"ESPResSo"
] | 9203804614e62d99fa8765da84e1b5fe0b465ac18faab885e1b9ff99c20a571c |
"""
Fixtures for testing packages
"""
from service.packages import PackageHandler
from octopus.lib import paths
from octopus.modules.store import store
import uuid
import zipfile, os, codecs
from StringIO import StringIO
RESOURCES = paths.rel2abs(__file__, "..", "resources")
"""Path to the test resources directory, ... | JiscPER/jper | service/tests/fixtures/packages.py | Python | apache-2.0 | 5,973 | [
"Octopus"
] | 2b0d8672b3b737cc12534cb2cb5976cc1bab064ec54d0d460b57b35816217c42 |
# -*- coding: utf8 -*-
#-----------------------------------------------------------------------------
# Copyright (c) 2010-2012 Brian Granger, Min Ragan-Kelley
#
# This file is part of pyzmq
#
# Distributed under the terms of the New BSD License. The full license is in
# the file COPYING.BSD, distributed as part o... | IsCoolEntertainment/debpkg_python-pyzmq | zmq/tests/test_error.py | Python | lgpl-3.0 | 1,702 | [
"Brian"
] | 24e58147212110297ce13ed6b5cf6dc2502090f20c6180a7015bb7544ecc5407 |
"""
MtGoxHMAC v0.01
Copyright 2011 Brian Monkaba
This file is part of ga-bitbot.
ga-bitbot 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... | enikesha/ga-bitbot | MtGoxHMAC.py | Python | gpl-3.0 | 11,252 | [
"Brian"
] | 9bf5ccbccd7cedc8c8371d080215a583b86d432d29c8e4baf1cf7791fa682e1f |
# Whisper of Dreams, part 1 version 0.1
# by DrLecter
import sys
from com.l2scoria import Config
from com.l2scoria.gameserver.model.quest import State
from com.l2scoria.gameserver.model.quest import QuestState
from com.l2scoria.gameserver.model.quest.jython import QuestJython as JQuest
#Quest info
QUEST_NUMBER,QUEST_N... | zenn1989/scoria-interlude | L2Jscoria-Game/data/scripts/quests/374_WhisperOfDreams1/__init__.py | Python | gpl-3.0 | 6,182 | [
"CRYSTAL"
] | b9595262fa38061d9cfd189d18314c7a73cf8b96cf50ecdbbead3e1c067cb8b9 |
########################################################################
# $Id$
########################################################################
""" A set of common tools to be used in pilot commands
"""
import sys
import time
import os
import pickle
import getopt
import imp
import types
import urllib2
import... | rajanandakumar/DIRAC | WorkloadManagementSystem/PilotAgent/pilotTools.py | Python | gpl-3.0 | 16,707 | [
"DIRAC"
] | f5c013d86154280150f66593e3f07f5b3a62cb5ef0d211fb177b065465f3c1c6 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-resource-manager | tests/unit/gapic/resourcemanager_v3/test_folders.py | Python | apache-2.0 | 141,618 | [
"Octopus"
] | dd101f6b60418c65e787c6ec93bd60a3fb9b61dc7bdbb73e729c4b0a0a30207d |
#!/usr/bin/env python
from __future__ import division
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this s... | Jorge-C/bipy | skbio/draw/tests/test_distributions.py | Python | bsd-3-clause | 27,400 | [
"scikit-bio"
] | ab237251a33921d40e630056ca1a83bdc034a4a3111f6028758f272a89142ff1 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of ... | andysim/psi4 | psi4/extras.py | Python | gpl-2.0 | 4,235 | [
"CFOUR",
"Psi4"
] | ef1e82089e336d83d4645baed811e318a6b524e670e0a7b0f894297f7129b04b |
#!/usr/bin/env python
"""
Software tests for the SortMeRNA
================================
"""
from unittest import TestCase, main
import re
from subprocess import Popen, PIPE
from os import close, remove, environ
from os.path import abspath, exists, join, dirname
from tempfile import mkstemp, mkdtemp
from shutil im... | ekopylova/sortmerna | tests/test_sortmerna.py | Python | gpl-3.0 | 61,340 | [
"BLAST"
] | cbcba2c99aa7dac1eebe0eedf002748206dc70830b14adfba5effe4f6d5d8f80 |
#!/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... | nuclear-wizard/moose | modules/doc/moosedocs.py | Python | lgpl-2.1 | 953 | [
"MOOSE"
] | 5183c66d0d0715c6cff80e89844f3b296e4c653db89250fcf37f1c9bc8c41a3a |
# Copyright 2015 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... | gojira/tensorflow | tensorflow/python/ops/gradients_impl.py | Python | apache-2.0 | 45,313 | [
"VisIt"
] | b692107b581d305f3c7f5014fc07aae13c09a1f88ac4adeb1537a588a1cd7cb7 |
"""
Copyright (c) 2016 Jet Propulsion Laboratory,
California Institute of Technology. All rights reserved
"""
import datetime
import urllib2
from collections import OrderedDict
from contextlib import contextmanager
from os import environ, sep, path, remove
import nexusproto.NexusContent_pb2 as nexusproto
import numpy... | dataplumber/nexus | nexus-ingest/nexus-xd-python-modules/nexusxd/tilereadingprocessor.py | Python | apache-2.0 | 9,072 | [
"NetCDF"
] | bbabf90f979fef608eebda662e9ac1fb606a9213aa25c3907c4d850aa5fe9e56 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache/incubator-superset | superset/examples/countries.py | Python | apache-2.0 | 52,491 | [
"BWA"
] | 8d9f2a259414282b6f675f10be56de3f96871e60d05a31b5484cb23d314ceffe |
from time import sleep
from lettuce import step, world
from nose.tools import assert_true, assert_false
from questionnaire.features.pages.step_utils import assign, create_user_with_no_permissions, \
create_regional_admin_with_no_permissions
from questionnaire.features.pages.users import LoginPage
from questionnaire... | eJRF/ejrf | questionnaire/features/assign_regional_steps.py | Python | bsd-3-clause | 9,222 | [
"VisIt"
] | 23632643a0d5451906aff52a8fd8300bd6cc468dc877d5d49c2d0569350d05b1 |
# -*- coding: utf-8 -*-
# Unit tests for cache framework
# Uses whatever cache backend is set in the test settings file.
from __future__ import unicode_literals
import copy
import os
import re
import shutil
import tempfile
import threading
import time
import unittest
import warnings
from django.conf import settings
... | yephper/django | tests/cache/tests.py | Python | bsd-3-clause | 86,345 | [
"Brian"
] | ae8a9688c1a39e6d737eb966b87299887e30026a74473fe87bd931b4e948f90f |
#!/usr/bin/env python3
from __future__ import print_function
import datetime
import json
import click
import phe
__author__ = 'brian'
def log(m, color='red'):
click.echo(click.style(m, fg=color), err=True)
@click.group("pheutil")
@click.version_option('1.0-alpha')
@click.option('--verbose', '-v', is_flag=True... | NICTA/python-paillier | phe/command_line.py | Python | gpl-3.0 | 8,578 | [
"Brian"
] | 0268ac8614ac2d28fa2a99b2bef8c2eb16eb08381e7e518b50f6bf04cd4351fb |
# -*- coding: UTF-8 -*-
"""
weblogin
by Anarchintosh @ xbmcforums
Copyleft (GNU GPL v3) 2011 onwards
this example is configured for Fantasti.cc login
See for the full guide please visit:
http://forum.xbmc.org/showthread.php?p=772597#post772597
USAGE:
in your default.py put:
import weblogin
logged_in = we... | Gujal00/xbmc-adult | plugin.video.fantasticc/resources/lib/weblogin.py | Python | gpl-3.0 | 4,263 | [
"VisIt"
] | e495a44ffe7d0c8ba1233658ee8e29abb01ea3643afbdfb1f29ed049262a94b9 |
import copy
import datetime
import functools
import sys
import warnings
from collections import defaultdict
from html import escape
from numbers import Number
from operator import methodcaller
from pathlib import Path
from typing import (
TYPE_CHECKING,
Any,
Callable,
DefaultDict,
Dict,
Hashable... | xray/xray | xarray/core/dataset.py | Python | apache-2.0 | 246,385 | [
"NetCDF"
] | 9936a8a093692143bb36408c15fd4498fec35eb1dd8db7195ad34218462d17e8 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/core/lib/ui.py | Python | gpl-2.0 | 13,597 | [
"Brian"
] | a63e3741e6f464e42e3a1d6d52241a20ad3b89b01f97c9848d5e66ca12e2c9a8 |
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
# pylint: disable=invalid-name
#
# TUBE CALIB... | mganeva/mantid | scripts/Calibration/Examples/TubeCalibDemoMaps_D2.py | Python | gpl-3.0 | 2,853 | [
"Gaussian"
] | f7fdadc8290de3722327c43369a8fd338e60ebe7bc73baa488d289647c0cdd12 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | kaiping/incubator-singa | examples/imagenet/vgg/model.py | Python | apache-2.0 | 3,650 | [
"Gaussian"
] | c79783061a6351aaea3e27d110ed8249be88997d5330c1f4c05e58ea9b79efbe |
# 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_closure.py | Python | gpl-3.0 | 4,488 | [
"VisIt"
] | 14c4e91607faaeb13ccb86bdb797367dc8aa54c5d5705f43e2aff997acdf4ceb |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/core/test_residuegroup.py | Python | gpl-2.0 | 10,038 | [
"MDAnalysis"
] | d3e64d383b2a4e05ef4dc672fc4abf40fedc763025a0d6dfdb3736a4132bddb4 |
import utils
import numpy as np
import matplotlib.pyplot as plt
# Global parameters
dataset_name = 'standard'
patch_size = (32, 32) # (patch_height, patch_width)
compression_percent = 60
# Data acquisition
# Generate original images
utils.generate_original_images(dataset_name)
# Generate training set
utils.gene... | mdeff/ntds_2016 | project/reports/compressed_sensing/transform_exploration.py | Python | mit | 5,629 | [
"DIRAC",
"Gaussian"
] | 467f52f8dfb9a2fd624f5833a3bc4db62325f107f5a2cf18bc5cadd13529558b |
"""
GenBank format (:mod:`skbio.io.format.genbank`)
===============================================
.. currentmodule:: skbio.io.format.genbank
GenBank format (GenBank Flat File Format) stores sequence and its annotation
together. The start of the annotation section is marked by a line beginning
with the word "LOCUS".... | corburn/scikit-bio | skbio/io/format/genbank.py | Python | bsd-3-clause | 28,763 | [
"scikit-bio"
] | 6a662cfe85679f7490c108b0cfadc41a0baa81c6d1d0d2520ae649eea71a982c |
import pytest
import numpy as np
import itertools
from scipy.special import laguerre
from numpy.random import rand
from numpy.testing import assert_, run_module_suite, assert_equal, \
assert_almost_equal, assert_allclose
import qutip
from qutip.states import coherent, fock, ket, bell_state
from qutip.wigner import... | qutip/qutip | qutip/tests/test_wigner.py | Python | bsd-3-clause | 25,274 | [
"Psi4"
] | 8867321460d5f09c4eb7a481cb0707ba70f8d774353056f274d3550dd462d92d |
# This file is part of Invenio.
# Copyright (C) 2006, 2007, 2008, 2010, 2011 CERN.
#
# Invenio 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 (at your option) any later v... | crepererum/invenio | invenio/legacy/elmsubmit/config.py | Python | gpl-2.0 | 4,339 | [
"VisIt"
] | b783d610863916013e3052ed4aab9cc334e48a17c087b1ddd20e94a66c91b56b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.