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 |
|---|---|---|---|---|---|---|---|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
import json
import frappe.utils
from frappe.utils import cstr, flt, getdate, comma_and, cint
from frappe import _
from frappe.model.mapper... | anandpdoshi/erpnext | erpnext/selling/doctype/sales_order/sales_order.py | Python | agpl-3.0 | 22,495 | [
"VisIt"
] | 4a46243070b9fdd73b7a07d779ed1e65732512816699a7a2d7bd969b46e35eb9 |
import numpy as np
from numpy.random import multivariate_normal as multi_norm
from scipy.spatial import cKDTree as ckdt
from collections import defaultdict
from scipy.stats import norm
import warnings
class GMM: # gaussian mixture model
def __init__(self, pis, params):
self.params = params # [[mu1, sig1... | mathnathan/notebooks | dissertation/OldBrain.py | Python | mit | 6,236 | [
"Gaussian",
"NEURON"
] | 2d1fb61808df0a8a72fbac68b027a8dfe05a0039b83fd6117eec603c47fd01e8 |
"""
Django settings for pyconuk project.
Generated by 'django-admin startproject' using Django 1.9.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
#... | PyconUK/2016.pyconuk.org | pyconuk/settings.py | Python | mit | 3,166 | [
"Amber"
] | 739b5bdedcd0de95c3894aa780c76b02d387306ae999ba5b9eecc9473761e831 |
import numpy as np; import os
from scipy import ndimage
import matplotlib.image as img
import matplotlib.pyplot as plt
import sys; import Queue
import dicom
# Constants.
PLATEAU = 0
INFINITE = 9e10
# Gets the neighbours of (j,i)
def neighbours(j,i):
return [(j-1,i-1),(j-1,i),(j-1,i+1),(j,i+1),
(j+1,i+1),(j+1,i),(... | yunfanz/ReionBub | ws_utils.py | Python | mit | 3,339 | [
"Gaussian"
] | 97fb900d0830c367b138482e197c9e6b8d25125eba3bd15cfbf5ad5e4c5efebf |
# -*- coding: utf-8 -*-
from Visitor.CNodeVisitor import *
from CNode import *
class ToStringVisitor(CNodeVisitor):
def __init__(self, with_types=False):
self.str = ""
self.with_types = with_types
self.indent = 0
def visit_any(self, o, indent=0):
if self.with_types:
... | orbekk/erebus | Visitor/ToStringVisitor.py | Python | gpl-2.0 | 1,164 | [
"VisIt"
] | 3ff36f046a7f75fd41714a275ca6f296234701d73552a789a205a85d7b9133ce |
from bs4 import BeautifulSoup
import os
import pickle
import random
datadir = '../../Data/'
inputdir = datadir + 'Generator_Data/'
metadatadir = datadir + 'Metadata/'
inputfiles = os.listdir(inputdir)
inputfiles = [x for x in inputfiles if '.kml' in x]
def coordinate_string_to_latlon_pair(x):
return map(float, x... | DTU-ELMA/European_Dataset | Scripts/Generator_Handling/1-Extract_GEO_Files.py | Python | apache-2.0 | 11,254 | [
"BLAST"
] | cb51100070a5ed40cc6944c017b9a8a567b027df25de43b93f77f58400b76df3 |
from django_extensions.management.commands.runserver_plus import (
Command as DjangoExtensionsRunserverCommand)
from .runserver_mixin import RunserverMixin
class Command(RunserverMixin, DjangoExtensionsRunserverCommand):
"""
Subclass the DjangoExtensionsRunserverCommand from django-extensions to set
... | beaugunderson/django-gulp | django_gulp/management/commands/runserver_plus.py | Python | mit | 363 | [
"GULP"
] | a67126464dc48186326028c560dc6c2b311905ddd9ab53ecefbdf158b624a380 |
# -*- coding: utf-8 -*-
""" Tests for student account views. """
import re
from nose.plugins.attrib import attr
from unittest import skipUnless
from urllib import urlencode
import mock
import ddt
from django.conf import settings
from django.core import mail
from django.core.files.uploadedfile import SimpleUploadedFil... | zhenzhai/edx-platform | lms/djangoapps/student_account/test/test_views.py | Python | agpl-3.0 | 26,045 | [
"VisIt"
] | 5ad7dabc20f2488222734f1a622f303ede7ad1039ab3b6f1bd00c2825e4e3a47 |
import numpy as np
import pandas as pd
import sys,os,re,multiprocessing,netCDF4
from netCDF4 import Dataset
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
#netcdf file path
ncfile = sys.argv[1]
netCDF_data = Dataset(ncfile, mode='r')
for group in netCDF_data.groups:
print '... | wolfiex/ropacode | PDF_concentration.py | Python | cc0-1.0 | 1,202 | [
"NetCDF"
] | 1a25b6b2e3884b877285aa25886b9706d8753999156dc0cd566666856f54e7a1 |
import sys
sys.path.insert(0, '../../')
import numpy as np
from jax.experimental import optimizers
import matplotlib.pyplot as plt
import time
from sde_gp import SDEGP
import approximate_inference as approx_inf
import priors
import likelihoods
from utils import plot
import pickle
import pandas as pd
pi = 3.141592653589... | AaltoML/kalman-jax | kalmanjax/experiments/electricity/electricity.py | Python | apache-2.0 | 4,548 | [
"Gaussian"
] | dbb9550363a9e2282937e9fc727495b11671642469a4662058d832a55d21b0c7 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
from petl.compat import PY2
if PY2:
from urllib import unquote_plus
else:
from urllib.parse import unquote_plus
import petl as etl
# activate tabix extension
import petlx.bio.tabix
def gff3_parse_attributes(attributes... | alimanfoo/petlx | petlx/bio/gff3.py | Python | mit | 5,386 | [
"pysam"
] | 75bcafb9b631b3d4a5e028f253cb5887a64040ef2ef9df3f2ef251ae40d38714 |
""" This is a test of the creation of the json dump file
"""
import unittest
import os
from DIRAC.WorkloadManagementSystem.Utilities.PilotCStoJSONSynchronizer import PilotCStoJSONSynchronizer
from DIRAC.ConfigurationSystem.private.ConfigurationClient import ConfigurationClient
from DIRAC.ConfigurationSystem.Client.Co... | chaen/DIRAC | WorkloadManagementSystem/Utilities/test/Test_PilotCStoJSONSynchronizer.py | Python | gpl-3.0 | 3,675 | [
"DIRAC"
] | 0e571fc6f82ca0a856018ca1a610dde10009d6a55f249a86b00b339fb34839b4 |
# -*- coding: utf-8 -*-
"""OpenERP community orm.Model checker"""
import re
try:
import ast
from ast import NodeVisitor
except ImportError:
from flake8.util import ast
from ast import NodeVisitor
from common_checker.base_checker import BaseChecker
# To improve manage spaces
INVALID_MODEL_CLASS = ['os... | nbessi/openerp-conventions | v7/model_checker.py | Python | mit | 2,572 | [
"VisIt"
] | d1a31fb5b5c9884a992983191866b1c6b289189bedf38cd8d9bdd696a14dbdeb |
from copy import deepcopy
from scipy import fftpack
from lib2.Measurement import *
from lib2.IQPulseSequence import IQPulseBuilder
class DigitizerWithPowerSweepMeasurementBase(Measurement):
"""
Class for measurements with a Spectrum digitizer and power sweep
This one must do:
create Measurement ... | vdrhtc/Measurement-automation | lib2/powerSweepMeasurementBase.py | Python | gpl-3.0 | 12,393 | [
"Gaussian"
] | 26b8d21de225c8f6d3d67ae66c85c36fec6d24148f9e5cb12a92220f93a17374 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2009 Douglas S. Blank
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as p... | SNoiraud/gramps | gramps/plugins/quickview/ageondate.py | Python | gpl-2.0 | 3,562 | [
"Brian"
] | d76b70c4e32dec6fa30f313288302a84f627880b061834f7175e7d8997c94f1c |
from src.preprocess import DataPreprocessing
import numpy as np
from src.NaiveBayesClassifier import NaiveBayesClassifier
import pandas as pd
import time
def preprocess_data(filepath, rmv_missing_values=True):
"""
This function loads the data from 'filepath' and handles the missing value in the data.
"""
... | Prateek-Gupta1/NaiveBayesianPython | src/main.py | Python | mit | 5,308 | [
"Gaussian"
] | 81e734db7c01d0f2c2410d33bc2820a00455f7464ab60559c397e73e6579db73 |
from MakeData import full_path
from MakeData import write_synapses
from MakeData import write_neurons
from MakeData import make_neurons
from MakeData import make_synapses
from MakeData import make_centers
from MakeData import make_bounds
import unittest as ut
import logging as log
import numpy as np
import bfly
import ... | Rhoana/butterfly | tests/TestDatabase.py | Python | mit | 8,555 | [
"NEURON"
] | 48f87650f3e5e6298cf3cbb86ecf3dd90c74408381e652c727e5f1d0dff893a0 |
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Robert Hammelrath
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, cop... | peterhinch/micropython-tft-gui | tft/driver/tft.py | Python | mit | 32,591 | [
"CRYSTAL"
] | 083ddf46420f374671208a27021762413c03daf956275e6ab4190eb2e2923be4 |
# test_radl - Test for module ``radl``.
# Copyright (C) 2014 - GRyCAP - Universitat Politecnica de Valencia
#
# 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
... | grycap/ec3 | test/test_ec3.py | Python | apache-2.0 | 23,952 | [
"Galaxy"
] | 5d1599a894c00e9a7bb2d789995c2aa436cdc68f962e385e9218197103b23948 |
from collections import Sequence
from distutils.version import LooseVersion
import logging
import warnings
import sys
import os
from os import path as op
import inspect
from functools import wraps
import mayavi
from mayavi import mlab
from mayavi.filters.api import Threshold
import numpy as np
import nibabel as nib
fr... | nipy/PySurfer | surfer/utils.py | Python | bsd-3-clause | 26,535 | [
"Mayavi"
] | f1ca8eee25ff7f6ad7acc320dbd96be0fe6a3ce96010b00bd5a6ccb71e75b396 |
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2011 Daniele Simonetti
#
# 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 option) any later version.
#
... | KukojinOyama/l5rcm | l5rcm.py | Python | gpl-3.0 | 106,819 | [
"VisIt"
] | 32c0a9db7671aae9325fea7280e1b3dd25ff371204652ba0ec2459c70b7efec0 |
# Copyright 2008-2015 Nokia Solutions and Networks
#
# 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 l... | henriqueguchi/SikuliServer | new/Lib/robot/model/stats.py | Python | mit | 6,359 | [
"VisIt"
] | 989e136326445eca54405dcef76a55a68ebb536163eb76509b613d724961197d |
from fontbakery.checkrunner import Section
from fontbakery.fonts_profile import profile_factory
def check_filter(item_type, item_id, item):
# Filter out external tool checks for testing purposes.
if item_type == "check" and item_id in (
"com.google.fonts/check/ftxvalidator",
"com.google.fonts/... | graphicore/fontbakery | tests/profiles/external_profile_test.py | Python | apache-2.0 | 7,478 | [
"Dalton"
] | ffe0e0b27b5a7577bf146d5c51754a4a865849b1fddf2d144ea6d6e771b0e96c |
# -*- 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 | stoqlib/gui/test/test_deliverysearch.py | Python | gpl-2.0 | 2,977 | [
"VisIt"
] | 21c51b7a7b1205ee2e3c680717eefada28ad2a83cb6b99c163f5cae132ec822a |
"""Convolutional/Variational autoencoder, including demonstration of
training such a network on MNIST, CelebNet and the film, "Sita Sings The Blues"
using an image pipeline.
Copyright Parag K. Mital, January 2016
"""
import tensorflow as tf
import numpy as np
import os
from libs.dataset_utils import create_input_pipel... | alvaroing12/CADL | session-5/libs/vae.py | Python | apache-2.0 | 19,303 | [
"Gaussian"
] | 5783ea54ceeec7c8a07e8c53e698abb8fd5626745801153631bd295a1b5592fe |
#!/usr/bin/env python
# add paths
import os, sys
for p in os.environ['PATH'].split(':'): sys.path.append(p)
# import modules
from re import findall
from os.path import split
from itertools import product
from optparse import OptionParser
from netCDF4 import Dataset as nc
from numpy.ma import masked_array
from metrics... | RDCEP/ggcmi | bin/multimetrics/multimetrics.py | Python | agpl-3.0 | 4,428 | [
"NetCDF"
] | 9186cdf95c4802523b4b73aef43a15ae56143750a5bd7d589f9c972d64f6d097 |
from lya_vm import VirtualMachine
import lexer as lex
from parser import Parser
from semantic import *
import sys
def main():
if len(sys.argv) < 2 or len(sys.argv) > 4:
print("Usage: python3 compile.py file.lya <-d> <-o>")
print("-d: debug mode")
print("-o: generate lvm code only")
... | gmCrivelli/Lya-Compiler | compile.py | Python | mit | 1,161 | [
"VisIt"
] | cd683322858188f2b982feb0e45be3f54b34c8eed769bec3de5653287c2f137b |
#!/usr/bin/env python
###############################################################################
# $Id: ogr_shape_qix.py 32118 2015-12-11 00:40:44Z goatbar $
#
# Project: GDAL/OGR Test Suite
# Purpose: Test shapefile spatial index mechanism (.qix files). This can serve
# as a test for the functionality... | nextgis-extra/tests | lib_gdal/ogr/ogr_shape_qix.py | Python | gpl-2.0 | 9,477 | [
"GULP"
] | de9a87e6007930ca4640d29f03562be4b3e95113c69e5d9248cfd738ba7a14e7 |
#! /usr/bin/env python
from __pyosshell__ import *
from __lxml__ import *
from ctp__options__ import *
from ctp__cluster__ import *
from ctp__jobfile__ import *
from momo import osio, endl, flush
def safe_remove(path):
cdx = raw_input("Remove '%s' ? (yes/no)" % path)
if cdx == 'yes':
os.system('rm -rf %s' % path)
... | 12AngryMen/votca-scripts | Jobadmin/4_partition_pewald3d.py | Python | apache-2.0 | 6,819 | [
"Gaussian"
] | bab81c2d19924441d2b3bf473eca6a865ac73f93667ed3c5bd1984c1b46c9b9e |
#!/usr/bin/env python
#
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Provides an interface to start and stop Android emulator.
Assumes system environment ANDROID_NDK_ROOT has been set.
Emulat... | plxaye/chromium | src/build/android/pylib/utils/emulator.py | Python | apache-2.0 | 12,430 | [
"Galaxy"
] | 47e4469629c290080981b51e2408c81175b1145d856530879c4ef196ecaaa3e0 |
# -*- coding: utf-8 -*-
import unittest
from typing import Set, Tuple
from pybel import BELGraph
from pybel.constants import ANNOTATIONS
from pybel.dsl import BaseEntity, Protein
from pybel.struct.filters import (
and_edge_predicates,
concatenate_node_predicates,
count_passed_edge_filter,
count_passed... | pybel/pybel | tests/test_struct/test_filters/test_struct_filters.py | Python | mit | 12,140 | [
"Pybel"
] | c1bbd4e1c52881e07317c288a3d14de44f66b2bf72cb827f877cf26af5bb3205 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
__author__ = "Bharat Medasani"
__copyright__ = "Copyright 2013, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "bkmed... | aykol/pymatgen | pymatgen/io/tests/test_zeopp.py | Python | mit | 11,117 | [
"VASP",
"pymatgen"
] | bf221d85bd21f53e047be24a26c10b954cc36c93392d29b055ab5351f3843c72 |
#!/usr/bin/env python
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import sys
from DIRAC.Core.Utilities.DIRACScript import DIRACScript as Script
__RCSID__ = "$Id$"
@Script()
def main():
Script.parseCommandLine(ignoreErrors=True)
fieldsToShow =... | ic-hep/DIRAC | src/DIRAC/FrameworkSystem/scripts/dirac_monitoring_get_components_status.py | Python | gpl-3.0 | 1,689 | [
"DIRAC"
] | 2565a9217776fcd95d9cfb26be605484d849e1298ae13ac055a5ebc96fe8e573 |
"""MSMBuilder: Statistical models for Biomolecular Dynamics
"""
from __future__ import print_function, absolute_import
DOCLINES = __doc__.split("\n")
import sys
import traceback
import numpy as np
from os.path import join as pjoin
from setuptools import setup, Extension, find_packages
try:
sys.dont_write_byteco... | Eigenstate/msmbuilder | setup.py | Python | lgpl-2.1 | 7,661 | [
"Gaussian",
"MDTraj"
] | 4c565611c6ff4ddf97a4731171141e859a52ab00400aaede0f5a00f272cdbde6 |
from django.contrib import admin
from django.db.models.signals import pre_save
from django.dispatch import receiver
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from django.core.mail import send_mail
from django.template.loader import get_template
from django.template impo... | CantemoInternal/django-knowledge | knowledge/admin.py | Python | isc | 4,571 | [
"VisIt"
] | d53c3d68e05318d55fa70072d013d05a1fce60150a3b7b531d2482481a0ff3b8 |
from math import sqrt
import numpy as np
from scipy import stats
from matplotlib import pyplot
#(0) Set parameters:
np.random.seed(0)
nResponses = 6
nIterations = 10000
### derived parameters:
df = nResponses - 1
sqrtN = sqrt(nResponses)
#(1) Generate Gaussian data and compute test statist... | 0todd0000/spm1d | spm1d/rft1d/examples/val_max_1_onesample_t_0d.py | Python | gpl-3.0 | 1,113 | [
"Gaussian"
] | f981bcf01833d427fefcd482cf1dd298b87f8bb33ed93e48e0143cd46af69b63 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# xmlrpcsslclient - XMLRPC client with HTTPS user certificate support
# Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of... | heromod/migrid | mig/user/xmlrpctriggers.py | Python | gpl-2.0 | 3,816 | [
"Brian"
] | 0b7fe7ce55996246a4dc1d8339d96aafa596443cff3ee484352d52757ce113bd |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import glob
from spack import *
class Autofact(Package):
"""An Automatic Functional Annotation and Classification T... | LLNL/spack | var/spack/repos/builtin/packages/autofact/package.py | Python | lgpl-2.1 | 1,257 | [
"BLAST",
"BioPerl"
] | 9ac901740b1161b666a5b512963596e60ea67fea456c56650c684d169c01b741 |
##
# Copyright 2009-2015 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (htt... | valtandor/easybuild-easyblocks | easybuild/easyblocks/d/dirac.py | Python | gpl-2.0 | 5,751 | [
"DIRAC"
] | 5d5b98998ddc75160a1e02fdfb605f59399d41b5b5eb99849d81829454ed92ab |
# $Id: importsym.py 5148 2015-08-06 06:37:49Z ming $
#
# importsym.py: Import C symbol decls (structs, enums, etc) and write them
# to another file
#
# Copyright (C)2013 Teluu Inc. (http://www.teluu.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the ... | StrikeForceZero/PJSip-CSharp | pjsip-apps/src/swig/importsym.py | Python | gpl-2.0 | 5,109 | [
"VisIt"
] | 868cfe009cbb37e83a51ca0db8afa1d23ebcb200087f83712a668b693321198d |
# -*- coding: utf-8 -*-
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2003-2007 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
#
# 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 Soft... | sam-m888/gprime | gprime/plugins/rel/rel_sk.py | Python | gpl-2.0 | 24,614 | [
"Brian"
] | dd773bf0f274203e61d42015b26ac00bdc59c00a6a25fe8ab31b0bd0296fe703 |
# Orca
#
# Copyright 2004-2008 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This... | h4ck3rm1k3/orca-sonar | src/orca/scripts/apps/soffice/script_settings.py | Python | lgpl-2.1 | 1,269 | [
"ORCA"
] | 20218ab9751dbaa0109c772ab8d01f729252cc30f7f66e87bfdc39e2d0f43a89 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) Philipp Wagner. All rights reserved.
# Licensed under the BSD license. See LICENSE file in the project root for full license information.
import numpy as np
from scipy import ndimage
import os
import sys
sys.path.append("../..")
# try to import the PIL I... | dashmoment/facerecognition | py/apps/scripts/lpq_experiment.py | Python | bsd-3-clause | 10,667 | [
"Gaussian"
] | cba7bdfd8de70a9ea82d4d582369e7327373c7cb4626049996b014aec8954967 |
#
# CPM modulation and demodulation.
#
#
# Copyright 2005,2006,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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 ve... | UpYou/relay | my_gnuradio/blks2impl/cpm.py | Python | gpl-3.0 | 8,851 | [
"Gaussian"
] | d5fed84ef220418afe4f24aabcb361617d3f3de18b9a242d61655825326b826d |
# Twisted Imports
from twisted.internet import reactor, defer
from twisted.web.client import Agent
from twisted.web.http_headers import Headers
from twisted.internet.ssl import ClientContextFactory
from twisted.python import log
# System Imports
from urllib import urlencode
# Sibling Imports
import util as notifier_u... | rasata/octopus | octopus/notifier/sms.py | Python | mit | 1,283 | [
"Octopus"
] | 0f1955b39f22b7f83b2fb2e9cb70803af1de69bc7b7fe8cfee4e0ab41f817e4c |
# 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 ... | KaiSzuttor/espresso | testsuite/python/dipolar_mdlc_p3m_scafacos_p2nfft.py | Python | gpl-3.0 | 7,493 | [
"ESPResSo"
] | 32554cdbc6c629793b25159a250711fad3a4f38717e6ee9500dac74b3c103dba |
#!/usr/bin/python2.4
# Copyright (c) 2006-2008 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.
"""Utility to use a browser to visit multiple URLs.
Prerequisites:
1. The command_line package from tools/site_compare
2. ... | Crystalnix/house-of-life-chromium | tools/site_compare/utils/browser_iterate.py | Python | bsd-3-clause | 5,863 | [
"VisIt"
] | 3e968f7877f9e27935ee8e846f3fd8c9d8e3365667f16b06c7d90d590b8f6f05 |
#!/usr/bin/env python3
"""
========================================================
Extract info on reads that align to a given region
in draft genome assembly.
========================================================
"""
try:
from Bio.SeqIO.FastaIO import SimpleFastaParser
from Bio.SeqIO.QualityIO import FastqGene... | jts/nanopolish | scripts/extract_reads_aligned_to_region.py | Python | mit | 13,206 | [
"pysam"
] | 8687627950c26c6ff708f4b6d6804f6c8e00cd648cc0a7c58cb266b3cecb6ccf |
#!/usr/bin/python
from setuptools import setup
setup(
name = "dhcpz",
version = "0.2.0",
author = [
"Nicholas VonHollen",
"Brian Lamar"
],
author_email = [
"nicholas.vonhollen@rackspace.com",
"brian.lamar@rackspace.com",
],
... | blamarvt/dhcpz | setup.py | Python | apache-2.0 | 662 | [
"Brian"
] | 82b684532296d0ccefbe13232e6a63e8651a50c83c2f525ebb13d9faa9920db5 |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Provides an interface to communicate with the device via the adb command.
Assumes adb binary is currently on system path.
"""
# pylint: skip-file
im... | fujunwei/chromium-crosswalk | build/android/pylib/android_commands.py | Python | bsd-3-clause | 73,159 | [
"Galaxy"
] | c1d1136a115c3a126fcb2ed48756ae143f8790707fa50fb617aaacd173554275 |
# Copyright 1999-2000 by Jeffrey Chang. 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.
"""Record classes to hold BLAST output.
Classes:
Blast Holds all the inform... | asherkhb/coge | bin/last_wrapper/Bio/Blast/Record.py | Python | bsd-2-clause | 14,321 | [
"BLAST",
"Biopython"
] | 80e23844c751a9cfe5110ed7b249df5e8e34c015c70096170f72992b25515b53 |
#!/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 | python/peacock/tests/peacock_app/check_exodus_state/test_exodus_state.py | Python | lgpl-2.1 | 3,691 | [
"MOOSE"
] | 7869e22abee6f72deaa6756c687ab858b3c2135aab02feef5c1d762e66e01490 |
# Lint as: python3
# Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | tensorflow/probability | spinoffs/inference_gym/inference_gym/tools/stan/probit_regression.py | Python | apache-2.0 | 4,360 | [
"Gaussian"
] | 2dd3cf80fa9ef3464b5453ce2c7a5b693940f012e30dc883796576c73ed03b65 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2019 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | dgasmith/psi4 | psi4/driver/procrouting/scf_proc/scf_iterator.py | Python | lgpl-3.0 | 36,666 | [
"Psi4"
] | 10e41ca001be2b637fdc2d1d9fe2248073d6ef7f2188926f8b76ffd095f56d6b |
"""
Upload class
"""
import os
import logging
import galaxy.util
from galaxy import web
from galaxy.tools import DefaultToolState
from galaxy.tools import DataSourceTool
from galaxy.tools.actions import upload_common
from galaxy.tools.parameters import params_to_incoming
from galaxy.tools.parameters import visit_input_... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/webapps/galaxy/controllers/tool_runner.py | Python | gpl-3.0 | 23,144 | [
"Galaxy"
] | 3c99175881226a7b06d27f823fa66eca361145ecbaf71568e6b3e23a99342897 |
''' Significant lifting from https://jmetzen.github.io/2015-11-27/vae.html '''
import time
import numpy as np
import tensorflow as tf
from tensorflow.python.ops import rnn
import random
import matplotlib.pyplot as plt
import re, string
from sklearn.feature_extraction.text import CountVectorizer
from collections impo... | dricciardelli/vae2vec | def_VAE.py | Python | mit | 28,459 | [
"Gaussian"
] | 81ba15b5b19b29cc9395d488d68286b7ed8b7f7a8b136d95277271d83951d2a6 |
#!/usr/bin/python
"""Test of line navigation output of Firefox on the Orca wiki."""
from macaroon.playback import *
import utils
sequence = MacroSequence()
#sequence.append(WaitForDocLoad())
sequence.append(PauseAction(5000))
# Work around some new quirk in Gecko that causes this test to fail if
# run via the test... | GNOME/orca | test/keystrokes/firefox/line_nav_wiki_up.py | Python | lgpl-2.1 | 43,250 | [
"ORCA"
] | 472398a0f25dc079efa6b64edade0dec1fb19e3efe2f8d9384971e5764a8ac2e |
from django.http import HttpResponse
import datetime
from api.models import Citation, Violation
from dateutil import parser
from django.db.models import Q
from django.contrib.auth import logout
from custom_decorators import print_errors
@print_errors
def sms_received(request):
#Automatically reset user's sessions... | emeth-/the-foot-globalhack5 | api/views/text.py | Python | mit | 9,578 | [
"VisIt"
] | ba856582178beee5a2b03c5a3660da18946176ab45591d0178620ac8690565ad |
# Copyright 2019 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... | karllessard/tensorflow | tensorflow/python/keras/layers/preprocessing/image_preprocessing.py | Python | apache-2.0 | 54,907 | [
"Gaussian"
] | e572344b24224c337f46896795b8f6c70f4c259b47683fb753d698253db32953 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
import multiselectfield.db.fields
import re
class Migration(migrations.Migration):
dependencies = [
('main', '0033_auto_20141204_1041'),
]
operations = [
... | MaximeBiset/care4care | main/migrations/0034_auto_20141204_1122.py | Python | agpl-3.0 | 12,435 | [
"VisIt"
] | 9bdd869efd10c0e320e2462adbcb55752b17dd66d6d668216196f6b23bfbee50 |
#
# Copyright 2017-2021 European Centre for Medium-Range Weather Forecasts (ECMWF).
#
# 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... | ecmwf/cfgrib | cfgrib/dataset.py | Python | apache-2.0 | 28,814 | [
"NetCDF"
] | 64cddddc8036141919e096ecded5b750630119cee3d35c9ac3609d88bb46f8f8 |
# coding=utf-8
# (The line above is necessary so that I can use 世界 in the
# *comment* below without Python getting all bent out of shape.)
# Copyright 2007-2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may o... | tav/go | lib/codereview/codereview.py | Python | bsd-3-clause | 105,552 | [
"VisIt"
] | 798df0a2134e63ca368d4b945fdf7bf4174152bd8e46b6ffc82dd0eb542c313d |
# Copyright 2021 The TensorFlow Ranking 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 ag... | tensorflow/ranking | tensorflow_ranking/research/dasalc.py | Python | apache-2.0 | 12,510 | [
"Gaussian"
] | b9f8e151ff4d8c957778b2f51937637b7b262bd6c1e26aba4b74d1b9aab3cd5a |
import numpy as np
import glob
import deepdish as dd
import os
#
# This may win awards for quickest-dirtiest scripts I've made
# recently......
#
# compute averages:
# convert to loading factors - compute averages
file_list = np.sort(glob.glob('loading_factors*.dat'))
data_list = [None] * len(file_list)
i = 0
fo... | aemerick/galaxy_analysis | notebooks/loading_table.py | Python | mit | 4,045 | [
"Galaxy"
] | 46c0c81beb192c803a444f54a9bb38d44e16880ea05fd51b6309d7941888c985 |
import optparse
import datetime
import random
import sys
#import numpy
from itertools import groupby
from operator import itemgetter
from rosetta import *
from rosetta.protocols.loops.loop_mover.refine import *
from rosetta.protocols.loops.loop_closure.ccd import *
import cheshift as cs
init()
#init(extra_options = "-c... | pgerramirez/13Ca-and-13Cb-CS-driven-refinement | protocolo_refinamiento_R.py | Python | gpl-3.0 | 22,781 | [
"PyMOL"
] | 45d794463c60696424c7cf666907b42ea9aaba7f4f88b6667fa2727ec3129bd3 |
# ----------------------------------------------------------------------------
# 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 software.
# --------------------------------------------... | jensreeder/scikit-bio | skbio/sequence/tests/test_sequence.py | Python | bsd-3-clause | 60,998 | [
"scikit-bio"
] | 0bd97d8db480ff2bb48a9f21e506a65377695d7b9d0a1684f9fca3ef20df5ab7 |
import pandas as pd
import numpy as np
from elephant.utils import smooth, norm
# discard neuron 130 (spikes and calcium uncorrelated)
neurons = np.delete(neurons, 129, 0)
datasets = np.delete(datasets, 129, 0)
alldata2 = {}
for i in range(len(neurons)):
dataset_index = int(datasets[i])
neuron_index =... | PTRRupprecht/Spikefinder-Elephant | elephant/1_load_data.py | Python | mit | 1,881 | [
"NEURON"
] | e6f40310e6b1572e7e1647961c16f4e9ec039b5e58f07ef94f7c12470c3868f5 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# OpenNest, an open source thermostat
# Copyright (C) 2014 Brian Gregg
# 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 versi... | baritonehands/opennest | thermostat.py | Python | gpl-3.0 | 7,132 | [
"Brian"
] | e1fc2d43298808741809faef9fe2df40c6530a834f17b779bb87cb9c6c91559a |
import datetime
from datetime import timedelta
from unittest import skip
from unittest.mock import patch
from django.core import mail
from django.utils import timezone
from django.test import TestCase
from attivita.forms import ModuloOrganizzaAttivitaReferente
from attivita.models import Attivita, Area, Turno, Parteci... | CroceRossaItaliana/jorvik | attivita/tests.py | Python | gpl-3.0 | 25,417 | [
"VisIt"
] | 38bff532ce8dfcbe656ddd4ff994ffb1700c704cbafc6eac84029c99d40e755d |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class AtomDft(MakefilePackage):
"""ATOM is a program for DFT calculations in atoms and pseudopot... | iulian787/spack | var/spack/repos/builtin/packages/atom-dft/package.py | Python | lgpl-2.1 | 1,050 | [
"SIESTA"
] | a582db82d30f57337c9f0a898ecf2367d475052d9042e2223a2570833bb6e5b4 |
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | gkc1000/pyscf | pyscf/pbc/df/test/test_mdf_ao2mo.py | Python | apache-2.0 | 4,940 | [
"PySCF"
] | 709a77549b42e6013c46e61eb8a4e5e7d160ffa0f3186b0de6004108c2682109 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.3 on Thu Feb 11 04:08:55 2010
import wx
import webbrowser
import wx.lib.iewin_old as iewin
import wx.lib.sized_controls as sc
import config
import update
import time
import httplib
import os
# begin wxGlade: extracode
# end wxGlade
class Upda... | ptphp/PyLib | src/wx/desktop.py | Python | apache-2.0 | 17,345 | [
"VisIt"
] | 3e991806301b424b59d34a891b20bd73c686382a714552e2a3178df41853af03 |
# -*- coding: utf-8 -*-
"""
Smoothers.
:copyright: 2015 Agile Geoscience
:license: Apache 2.0
"""
import numpy as np
import scipy.ndimage
from bruges.bruges import BrugesError
from bruges.util import nearest
from bruges.util import rms as rms_
# TODO:
# - 1D and 2D Gaussian (or, better, n-D)
# - See how thes... | agile-geoscience/agilegeo | bruges/filters/filters.py | Python | apache-2.0 | 7,285 | [
"Gaussian"
] | fb141f4bcb3f81a50b51f47d3510500623fabb3380fbb6fa20c946f9ecb40bbc |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Magnetic space groups.
"""
import os
import sqlite3
import textwrap
from array import array
from fractions import Fraction
import numpy as np
from monty.design_patterns import cached_class
from pymatgen.core.operations ... | materialsproject/pymatgen | pymatgen/symmetry/maggroups.py | Python | mit | 23,343 | [
"CRYSTAL",
"pymatgen"
] | 5724b69ee77335c97d5ba6dadb2be9a29ec1ee6168dbb2b69329a706e54e205b |
#!/usr/bin/env python
########################################################################
# File : dirac-admin-proxy-upload.py
# Author : Adrian Casajus
###########################################################from DIRAC.Core.Base import Script#############
import sys
from DIRAC.Core.Base import Script
from... | Andrew-McNab-UK/DIRAC | FrameworkSystem/scripts/dirac-admin-proxy-upload.py | Python | gpl-3.0 | 655 | [
"DIRAC"
] | 2a49f6d73155507aa58b04d528fe81d865c4407d14e6413a3b06d8bbeebe8166 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014, 2015 Adam.Dybbroe
# Author(s):
# Adam.Dybbroe <a000680@c14526.ad.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... | adybbroe/mesan_compositer | nwcsaf_formats/ppsv2014_to_oldformat.py | Python | gpl-3.0 | 14,534 | [
"NetCDF"
] | 72c49d2d76d9ead795377aa7bf46984ee7b9298e38f4fc60b5f0ca39614f599f |
"""
Bayesian hidden Markov models.
"""
import numpy as np
import copy
import time
#from scipy.misc import logsumexp
import bhmm.hidden as hidden
from bhmm.util.logger import logger
from bhmm.util import config
import msmtools.estimation as msmest
#from bhmm.msm.transition_matrix_sampling_rev import TransitionMatrixS... | marscher/bhmm | bhmm/estimators/bayesian_sampling.py | Python | lgpl-3.0 | 11,187 | [
"Gaussian"
] | 82402be73878c411cc53f331f09b5fefa0682939315717fa22f159aab25fe1b8 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | pli3/e2-openwbif | plugin/controllers/views/web/getcurrlocation.py | Python | gpl-2.0 | 5,000 | [
"VisIt"
] | 85be7c3803b551428ecfa0c45bfe79d8be8b28fc0d2ebe88839481033a9d2976 |
#!/usr/bin/env python
# HTSeq_QA.py
#
# (c) Simon Anders, European Molecular Biology Laboratory, 2010
# released under GNU General Public License
import sys, time, os.path, optparse
from itertools import *
import numpy
import HTSeq
def main():
try:
import matplotlib
except ImportError:
sys.stderr.... | detrout/python-htseq | HTSeq/scripts/qa.py | Python | gpl-3.0 | 7,729 | [
"HTSeq"
] | ddc96d5d63a273387489e1292a7365b8d55fc4a59f384fca3d52e1fae5fc72a1 |
# this is from https://github.com/mledoze/countries
countries_info = [
{
"name": {
"common": "Afghanistan",
"official": "Islamic Republic of Afghanistan",
"native": {
"common": "\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646",
"offi... | Impactstory/total-impact-core | totalimpact/providers/countries_info.py | Python | mit | 322,055 | [
"BWA"
] | f4c641649b9d91853f12e25e6e6dfdf712824bb97bcce418506fc2a0a96f8183 |
# This file is part of Merlin.
# Merlin is the Copyright (C)2008,2009,2010 of Robin K. Hansen, Elliot Rosemarine, Andreas Jacobsen.
# Individual portions may be copyright by individual contributors, and
# are included in this collective work with permission of the copyright
# owners.
# This program is free software; ... | d7415/merlin | Hooks/ships/rprod.py | Python | gpl-2.0 | 4,276 | [
"CRYSTAL"
] | ec7aac24ebcd86ed69d1e48cd5676288a96ae88767a5ad74949a3515ec835122 |
"""
Tests for molecule_database.py.
"""
import shutil
import tempfile
import unittest
from rdkit import Chem
from rdkit_utils import conformers, serial
from vs_utils.scripts.molecule_database import main, parse_args
from vs_utils.utils.dataset_utils import MoleculeDatabase
class TestMoleculeDatabase(unittest.TestC... | rbharath/pande-gas | vs_utils/scripts/tests/test_molecule_database.py | Python | bsd-3-clause | 3,701 | [
"RDKit"
] | fa56fb155421639de2e9ebe3144694f66349072dda87febfad04644b360701ed |
# -*- coding:iso-8859-10 -*-
__docformat__ = 'restructuredtext'
'''
Doc...
:Author: kmu
:Created: 28. jan. 2011
'''
# Built-in
import os
execfile("../themes/set_pysenorge_path.py") # Adds folder containing the "pysenorge" package to the PYTHONPATH @UnusedImport
# Additional
from netCDF4 import Dataset, num... | kmunve/pysenorge | pysenorge/tools/netCDF2PNG.py | Python | gpl-3.0 | 1,893 | [
"NetCDF"
] | 5e7614eb26a92e7f10aa2cf062f923b1f8accf334158b8fb03ca898c1b9401f3 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of the G... | kkreis/espressopp | src/analysis/Autocorrelation.py | Python | gpl-3.0 | 2,187 | [
"ESPResSo"
] | 86a7a63dadf36d26d9194e118b99d00f91562fe825ce02093990e072ba255645 |
"""
Implementation of Bilateral filter
Inputs:
img: A 2d image with values in between 0 and 1
varS: variance in space dimension.
varI: variance in Intensity.
N: Kernel size(Must be an odd number)
Output:
img:A 2d zero padded image with values in between 0 and 1
"""
import math
import sys
import cv... | TheAlgorithms/Python | digital_image_processing/filters/bilateral_filter.py | Python | mit | 2,875 | [
"Gaussian"
] | 92b088386a96c31178d9dd8faa35d33071a3bd422c9420a8a03465da21aa3200 |
import numpy as np
np.seterr(divide='ignore') #ignore errors in log division
np.seterr(all='ignore') #ignore errors in log division
import sys
import time
##########################################################################################
def MCMC(LogPosterior,gp,post_args,ch_len,ep,chain_filenames=['MCMC_cha... | nealegibson/Infer | src/MCMC.py | Python | gpl-3.0 | 6,930 | [
"Gaussian"
] | 9de6f09f33d952bc948d754a22361023e1bbc0a1553d44a5dc1202a29ecfb747 |
# !/usr/local/bin/python3.4.2
# ----Copyright (c) 2017 Carnegie Hall | The MIT License (MIT)----
# ----For the full license terms, please visit https://github.com/CarnegieHall/quality-control/blob/master/LICENSE----
# run script with 3 or more arguments:
# argument 0 is the script name
# argument 1 is the path to the d... | CarnegieHall/quality-control | matchvaluesfromlists.py | Python | mit | 1,562 | [
"VisIt"
] | ebee1d9b6dca2041d63554abaa438e759308571c8877e36a744313bc81311148 |
from __future__ import print_function
#import sys
import os
import os.path as op
import traceback
#from os import listdir
#from os.path import isfile, join
import re
import logging
from seqcluster.libs.classes import sequence_unique
from seqcluster.libs.classes import quality
from seqcluster.libs.fastq import is_fastq,... | lpantano/seqcluster | seqcluster/prepare_data.py | Python | mit | 7,124 | [
"Bowtie"
] | 94570b0ade20ef68b030c29a6bfeb52abb2ff78d344a40ed7577b8efe093f7d9 |
from __future__ import print_function
from .diagnostic import unitroot_adf
import statsmodels.datasets.macrodata.data as macro
macrod = macro.load().data
print(macro.NOTE)
print(macrod.dtype.names)
datatrendli = [
('realgdp', 1),
('realcons', 1),
('realinv', 1),
... | hlin117/statsmodels | statsmodels/sandbox/stats/ex_newtests.py | Python | bsd-3-clause | 815 | [
"ADF"
] | e093b0b3fa766ca4cf014bb27767dc50abe89ac0930d60cf07bf886e12f49d76 |
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'NeuronEphysDataMap'
db.create_table('neuroelectro_neuronephysdatamap', (
... | neuroelectro/neuroelectro_org | neuroelectro/south_migrations/0025_auto__add_neuronephysdatamap.py | Python | gpl-2.0 | 17,158 | [
"NEURON"
] | 6851f43e0bebfa77218e7702b947b2c56b9e89493d185d6869865a304d057949 |
# mako/codegen.py
# Copyright (C) 2006-2012 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""provides functionality for rendering a parsetree constructing into module
source code."""
impo... | swangui/ggrid | mako/codegen.py | Python | mit | 48,628 | [
"VisIt"
] | ac2eb0be8e907fd886a929404bbab903d178bfab358bcf065345fea2d68d1d1c |
# Portions Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
# dagutil.py - dag utilities for mercurial
#
# Copyright 2010 Benoit Boissinot <bboissin@gmail.com>
# and Peter Arrenbrecht <peter@arrenbrecht.... | facebookexperimental/eden | eden/hg-server/edenscm/mercurial/dagutil.py | Python | gpl-2.0 | 8,602 | [
"VisIt"
] | af0cb044e157bfc7f4cd1d6113af8f8ecb7646f29a5c86afab8778d0243ea36c |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | krafczyk/spack | var/spack/repos/builtin/packages/bowtie/package.py | Python | lgpl-2.1 | 2,175 | [
"Bowtie"
] | dcb113dd82707fb7d17f1eceeb9a190fffeb671912704551e0285160ea4a18a9 |
# -*- coding: utf-8 -*-
"""
Models used to implement SAML SSO support in third_party_auth
(inlcuding Shibboleth support)
"""
import json
import logging
import re
from config_models.models import ConfigurationModel, cache
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.e... | msegado/edx-platform | common/djangoapps/third_party_auth/models.py | Python | agpl-3.0 | 38,532 | [
"VisIt"
] | 5b2a64639869a8468fef76144c2c232a4e3facba06e2774a35e80f3340c28a52 |
__author__ = 'Christoph Heindl'
__copyright__ = 'Copyright 2017, Profactor GmbH'
__license__ = 'BSD'
import numpy as np
from sklearn.gaussian_process import GaussianProcessRegressor
from sklearn.gaussian_process.kernels import RBF, ConstantKernel, WhiteKernel
from sklearn.externals import joblib
class GPRegressor:
... | cheind/rgbd-correction | sensor_correction/gp_cpu.py | Python | bsd-3-clause | 5,241 | [
"Gaussian"
] | 60c42b9bb146400e8fe176500eb8caa94537e7902dfade37ef5e2180ab9640c2 |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... | thica/ORCA-Remote | src/ORCA/scripttemplates/Template_System.py | Python | gpl-3.0 | 1,717 | [
"ORCA"
] | 0e9e2fa26e3cac0218f8860d7c94ea4141370dce472027f8ed0e63c867a1c461 |
#this reviews Single Dish weblog
# --------------------------------------------------------------------------------------------------
def ReadDataFromWeb(mousid):
# --------------------------------------------------------------------------------------------------
"""
This function reads the metadata about th... | bmarshallk/NAASC | totalpower_scripts/ProcessSingleDish.py | Python | gpl-3.0 | 30,986 | [
"VisIt"
] | ab4249957abc175717f565e6fffdcab3493e10b68ef9841137285ab3b0cadbfe |
"""
Contains Experiment and Injection classes.
"""
import os
import logging
import numpy
from pint import DimensionalityError
from bitc.units import ureg, Quantity
# Use logger with name of module
logger = logging.getLogger(__name__)
class Injection(object):
"""
Data from a single injection.
Severa... | MehtapIsik/bayesian-itc | bitc/experiments.py | Python | gpl-3.0 | 36,275 | [
"Gaussian"
] | da6ca78cf8da2254630e5eaa4a820e523bf061dde68993f58a234a94ea363b8c |
'''
Helper to perform MMD tests.
Assumes you have the feature/bigtest branch of shogun installed (including the
modular Python bindings).
'''
from __future__ import division, print_function
import os
import numpy as np
from scipy import linalg, stats
try:
import modshogun as sg
except ImportError: # new versions... | dougalsutherland/opt-mmd | two_sample/mmd_test.py | Python | bsd-3-clause | 3,458 | [
"Gaussian"
] | 8c71c8972d2e9cc5a0f5ba77a219ac52d49b55da4cbfde6e3e1cc71a693899f0 |
from __future__ import unicode_literals
import logging
import warnings
from django.contrib.auth.models import User
from django.core.cache import cache
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
from django.db.models import Count, Q
from django.utils import six, timezone
from dj... | brennie/reviewboard | reviewboard/reviews/models/review_request.py | Python | mit | 44,587 | [
"VisIt"
] | 6296e94cd4225f58ece44f187fbe65bf7f2c7097d41a35658a9661b3d6d9ffea |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.