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
# -*- coding: utf-8 -*- #! \file ./doit/text/pgen/utils/cfgtools.py #! \author Jiří Kučera, <sanczes@gmail.com> #! \stamp 2016-01-12 21:31:16 (UTC+01:00, DST+00:00) #! \project DoIt!: Tools and Libraries for Building DSLs #! \license MIT #! \version 0.0.0 #!...
i386x/doit
doit/text/pgen/utils/cfgtools.py
Python
mit
8,402
[ "VisIt" ]
b8af3bb7d2fa80c80f9306d32f5e399074aab935a9b25ae96c3d12a98d08caf7
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/utilities.py # # 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 l...
securestate/king-phisher
king_phisher/utilities.py
Python
bsd-3-clause
18,144
[ "VisIt" ]
42f5e4a20c931bb154880d0456038b615fe75145b35882a097aedc9786a48615
# DIALS_ENABLE_COMMAND_LINE_COMPLETION """ Refine the diffraction geometry of input experiments against the input indexed reflections. For rotation scans, the model may be either static (the same for all reflections) or scan-varying (dependent on image number in the scan). Other basic parameters include control over ou...
dials/dials
command_line/refine.py
Python
bsd-3-clause
15,684
[ "CRYSTAL" ]
2f15d66b7ee8c3ad2a2367f16303a6bc9c52f4607e2ed7ec73f880f12d891537
# Version: 0.15 + modifications to avoid the need for setup.cfg to exist. """ The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, and pypy * [![Latest Version] (http...
matplotlib/freetypy
versioneer.py
Python
bsd-2-clause
62,712
[ "Brian" ]
5b220cd769b66348f93961bca718970abcf84a50ddb2d1e6c60f07fa018f311a
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
intel-analytics/analytics-zoo
pyzoo/zoo/examples/friesian/dlrm/dlrm_preprocessing.py
Python
apache-2.0
6,053
[ "ORCA" ]
936bde22e7929cd974bb2300811c3573215004c967fd12a5ace9993dc209598c
"""Functions to make 3D plots with M/EEG data """ from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # ...
wronk/mne-python
mne/viz/_3d.py
Python
bsd-3-clause
40,857
[ "Mayavi" ]
d10368f7c1ab924c54106bf969624ce54f8ba57b46263e7ef635781d724fd842
''' Basic PointCloud Server. Just reads in a file from data. ie: chappes.json and sends that data over a websocket when requested by the client ''' import jsonpickle from read_octopus import read_octree from tornado import websocket, web, ioloop from json import load, loads, dumps from os import listdir from t...
dayo7116/PointMan-Renderer
server/pointcloud_server.py
Python
gpl-3.0
5,110
[ "Octopus" ]
d8c488c050546708708c95c30a9d45e46ee478fd0d7008b478ef13d658427577
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView urlpatterns = [ url(r'^$', TemplateView.as_view(templ...
amenasse/grindstone
config/urls.py
Python
bsd-3-clause
1,306
[ "VisIt" ]
876d1367f9ba5a40bf2c0eabdc877d1576e51f472ea97e6dac58d9bc86ca952e
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.conf.urls.i18n import i18n_patterns from iwgk...
juliancantillo/iwgk
config/urls.py
Python
bsd-3-clause
1,527
[ "VisIt" ]
0361ae8a7481cdb513ecdc4d9c805e944a2f5cb92a8f1b327b7dea074584d850
"""Implementation of the WebSocket protocol. `WebSockets <http://dev.w3.org/html5/websockets/>`_ allow for bidirectional communication between the browser and server. WebSockets are supported in the current versions of all major browsers, although older versions that do not support WebSockets are still in use (refer ...
wujuguang/tornado
tornado/websocket.py
Python
apache-2.0
61,464
[ "VisIt" ]
2516be2ce39ec0e78d88f70a7f0fedd8104b03ef2d1272780eea5392ab7dbb89
#!/usr/bin/python # 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 # # Unles...
gkc1000/pyscf
pyscf/pbc/gto/basis/split_GTH_BASIS_SETS.py
Python
apache-2.0
1,588
[ "PySCF" ]
2821712eb444aaa621f6c4e949f0835935358f72155ae96c0ee44aad24d3f26a
# disable missing docstring # pylint: disable=C0111 import json from lettuce import world, step from nose.tools import assert_equal, assert_true # pylint: disable=E0611 from common import type_in_codemirror, open_new_course from advanced_settings import change_value, ADVANCED_MODULES_KEY from course_import import imp...
xiandiancloud/edxplaltfom-xusong
cms/djangoapps/contentstore/features/problem-editor.py
Python
agpl-3.0
12,050
[ "VisIt" ]
c6134f014a94091d9385289826d8dd08110a17ff29f113bc8e5aa917ae39746f
import numpy as np from pics import PrintBinayImage import random from utils import PrintMatrix def NeuralMap(neurons: np.ndarray, n: int, m:int): """Print out neural activity""" L = neurons.reshape(n,m) PrintBinayImage(L) def learn_pattern(pat: np.ndarray, n: int ,m: int, connections) -> np.ndarray: ...
janiskuehn/component-based-recognition
basicHopfield/neural.py
Python
gpl-3.0
1,394
[ "NEURON" ]
1b4d992f7407a169aa8fa300ddaff71445bf4ffac7ce9287fb4902d05497868e
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Xeralux/tensorflow
tensorflow/contrib/py2tf/pyct/static_analysis/live_values.py
Python
apache-2.0
4,891
[ "VisIt" ]
e90c05bb84712d21c5abaf9ce9d5c0b6766ff4fe44e0667d33c650866edd6d8a
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
tensor-tang/Paddle
python/paddle/fluid/initializer.py
Python
apache-2.0
31,934
[ "Gaussian" ]
bd7224ad1132fbd580343f68db9a9099b892330160e159ad080d9191486eb4cb
import random import unittest from hearthbreaker.constants import MINION_TYPE from tests.agents.testing_agents import PlayAndAttackAgent, OneCardPlayingAgent, CardTestingAgent, \ HeroPowerAndCardPlayingAgent from tests.testing_utils import generate_game_for from hearthbreaker.cards import * from hearthbreaker.agen...
slaymaker1907/hearthbreaker
tests/card_tests/rogue_tests.py
Python
mit
32,167
[ "TINKER" ]
39157c965ce4b6395c631fbbc94d7c256fdbb9d55fee7840ad76395fa62f73ea
import chempy from chempy import io path = chempy.path + 'fragments/' def get(name): return io.pkl.fromFile(path+name+'.pkl')
gratefulfrog/lib
python/chempy/fragments/__init__.py
Python
gpl-2.0
134
[ "ChemPy" ]
e33b0417ce206cfdd8a2c3d09edaa5746c60be5c245ba722735eb2e7d146dc4d
# Modified to work with Exaile - Brian Parma # # Copyright (C) 2008 Erik Hetzner # This file is part of Spydaap. Spydaap 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 (...
exaile/exaile
plugins/daapserver/server.py
Python
gpl-2.0
6,350
[ "Brian" ]
c737c2a7581db6cd85646a6df2d21bc0d0f919bcca1e17b24e6b7a450822adf1
# Lint as: python3 # Copyright 2022 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 ...
google/CFU-Playground
third_party/tflite-micro/tensorflow/lite/micro/examples/hello_world/train/train_hello_world_model.py
Python
apache-2.0
24,205
[ "NEURON", "exciting" ]
3034af5cf78ccb6fb23eeed235ec44b1ff50955e9c34b59a1452031efd8a0858
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2010 (ita) """ Classes and functions required for waf commands """ import os, re, imp, sys from waflib import Utils, Errors, Logs import waflib.Node # the following 3 constants are updated on each new release (do not touch) HEXVERSION=0x1080c00 """Constant updat...
RoyalTS/econ-project-templates
.mywaflib/waflib/Context.py
Python
bsd-3-clause
18,094
[ "VisIt" ]
1ee2cbec777a15417c5e8681dd99181d34b58e680364bb8fad7dadda964d9f1d
# coding: utf-8 """A tornado based IPython notebook server. Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2013 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, ...
noslenfa/tdjangorest
uw/lib/python2.7/site-packages/IPython/html/notebookapp.py
Python
apache-2.0
29,152
[ "Brian" ]
7526b8ba73d3d5d4f0ef7d68c2e666ab11b283f46f15069d21ad9186b6c093cd
# $Id$ # # Copyright (C) 2002-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """unit testing code ...
rvianello/rdkit
rdkit/Chem/EState/UnitTestTypes.py
Python
bsd-3-clause
2,125
[ "RDKit" ]
16877555c07ac107c665c43f2b6a32526bd2ecd8127c3464cff32ef1b2fddcf1
#!/usr/bin/python """ SUNTANS NetCDF plotting GUI """ import os import wx # The recommended way to use wx with mpl is with the WXAgg # backend. # import matplotlib matplotlib.use('WXAgg') # Set some default parameters matplotlib.rcParams['text.color']='white' matplotlib.rcParams['savefig.facecolor']='black' matplotl...
UT-CWE/Hyospy
Hyospy_ensemble/lib/SUNTANS/DataIO/romsplotpy.py
Python
mit
21,904
[ "NetCDF" ]
94c6e65c1a066d72c75728292f3f67c159cc29ce5419c943f5b902e176f31b77
import os from netCDF4 import Dataset as NCDataset from dateutil import parser as dateparser from datetime import datetime from birdfeeder.utils import humanize_filesize import logging logger = logging.getLogger(__name__) SPATIAL_VARIABLES = [ 'longitude', 'lon', 'latitude', 'lat', 'altitude', 'alt', 'l...
bird-house/bird-feeder
birdfeeder/walker.py
Python
apache-2.0
5,030
[ "NetCDF" ]
298619684decea8d407047f51f572d0cf445ba1b2f57c39f6f0b5358f38245a6
# -*- coding: utf-8 -*- """ Created on Thu Aug 10 13:22:54 2017 @author: eduardo """ from matplotlib import pyplot as plt import dicom as dcm import pickle as pkl import read_inbreast as readin import scipy import scipy.ndimage import cnn_models as models import tensorflow as tf import numpy as np import utils as ut ...
edux300/research
script_full_images_view.py
Python
apache-2.0
16,557
[ "Gaussian" ]
b142dd16814aa5994a470eac469bfb1b51170adb5c5012ed2791570314920805
#!/usr/bin/env python """decoder_cells.py: Implementation of RNNSearch in Chainer""" from __future__ import (absolute_import, division, print_function, unicode_literals) import logging import random import sys import chainer import chainer.functions as F import chainer.links as L import chaine...
fabiencro/knmt
nmt_chainer/models/decoder_cells.py
Python
gpl-3.0
18,977
[ "Gaussian" ]
1564e0f56c271cdb44f89b1c3db8341b085fd8fc18f56af1f60da0a0fd01f70e
""" FASTA/QUAL format (:mod:`skbio.io.fasta`) ========================================= .. currentmodule:: skbio.io.fasta The FASTA file format (``fasta``) stores biological (i.e., nucleotide or protein) sequences in a simple plain text format that is both human-readable and easy to parse. The file format was first i...
johnchase/scikit-bio
skbio/io/fasta.py
Python
bsd-3-clause
36,062
[ "BLAST", "scikit-bio" ]
4e7934d6b2402a2c2505cb1bfcde0b3eb4fcff1c3afa6ef97d4091d0b8923f49
# -*- coding: utf-8 -*- emojis = { '+1', '+1_tone1', '+1_tone2', '+1_tone3', '+1_tone4', '+1_tone5', '-1', '-1_tone1', '-1_tone2', '-1_tone3', '-1_tone4', '-1_tone5', '100', '1234', '8ball', 'a', 'ab', 'abc', 'abcd', 'ac', 'accept', ...
nitely/Spirit
spirit/core/utils/markdown/utils/emoji.py
Python
mit
36,630
[ "FLEUR", "Octopus" ]
ca7b245708df2c134b5e4284f182ed1c99ef895afaf4f196c7741056ca3f0206
# Scheduling and web server and all sorts of fancy things! import configparser import web.serv import schedule import time import main import os import threading global dashdayjob global configfile def start(): global dashdayjob print("Dashday started at " + time.strftime("%d/%m/%y %H:%M:%S")) main.st...
mashedkeyboard/Dashday
dashday/dashday.py
Python
mit
2,458
[ "VisIt" ]
588ad5081f86724f046593054fea63bbaa4678c62f5700e9ec54eaf3d99c721c
''' Script that shuffles the alleles in a vcf file using multiprocessing and converts phased genotype calls to unphased Ordered command-line arguments: input file path - vcf format +/- gzip, e.g. (/path/to/in.vcf.gz) output file path - vcf format +/- gzip, e.g. (/path/to/target_dir/out.vcf) subset file path - newline ...
erscott/Wellderly
SWGR_v1.0/wellderly_shuffle_multiprocess.py
Python
bsd-3-clause
4,290
[ "pysam" ]
6de480bc29a93214515ec9cc4e8d1a6792b46e8297b9d1116aa4dec5074e9b10
from __future__ import unicode_literals import xml.etree.ElementTree from .common import InfoExtractor from ..utils import ( ExtractorError, int_or_none, ) from ..compat import compat_HTTPError class BBCCoUkIE(InfoExtractor): IE_NAME = 'bbc.co.uk' IE_DESC = 'BBC iPlayer' _VALID_URL = r'https?://...
apllicationCOM/youtube-dl-api-server
youtube_dl_server/youtube_dl/extractor/bbccouk.py
Python
unlicense
15,797
[ "VisIt" ]
84ae0c665d6282179615e90d1af65d2bd9db6910c4604846a468e0169a8f3470
############################################################################ ## ## Copyright (C) 2006-2007 University of Utah. All rights reserved. ## ## This file is part of VisTrails. ## ## This file may be used under the terms of the GNU General Public ## License version 2.0 as published by the Free Software Foundat...
VisTrails/vistrails-contrib-legacy
itk/ImageReader.py
Python
bsd-3-clause
6,390
[ "VTK" ]
149b9bb37e50dc3066a808e316545ae397c9bd396e500e493d83a0ee7349128c
# -*- coding: utf-8 -*- """ @package Blast @brief **Wrapper for Blastn from NCBI Blast** Please see the Blast+ user manual document for further details [MANUAL](http://www.ncbi.nlm.nih.gov/books/NBK1762/) Basically the top level function Blastn.align processes sequences as follow: * If a blastn database is provided it...
a-slide/pyDNA
Blast/__init__.py
Python
gpl-2.0
1,397
[ "BLAST" ]
4f0e77abf12cff73275b432eca7e0477f478d5b300c2b0ab833160cd6b366ebd
# Copyright 2021 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 agreed to in writing, ...
google-research/DBAP-algorithm
third_party/rlkit_library/rlkit/exploration_strategies/gaussian_and_epsilon_strategy.py
Python
apache-2.0
1,817
[ "Gaussian" ]
c94502a91375e35f5215dfaa1272e97d36c55a5e93a341d8e4ea13266aaff1f4
from __future__ import absolute_import import os.path as op import numpy as nm from sfepy.base.conf import transform_variables from sfepy.base.testing import TestCommon import six from six.moves import range variables = { 'u' : ('unknown field', 'f', 0), 'v' : ('test field', 'f', 'u'), } def ...
BubuLK/sfepy
tests/test_mesh_interp.py
Python
bsd-3-clause
12,513
[ "VTK" ]
95125bdf159a0bd565033302097eca08f62eb9afdb7a6bc188ada5bc3af3c0b7
# -*- coding: utf-8 -*- """ Tests for student account views. """ import re from unittest import skipUnless from urllib import urlencode import json import mock import ddt from django.conf import settings from django.core.urlresolvers import reverse from django.core import mail from django.contrib import messages from...
nttks/edx-platform
lms/djangoapps/student_account/test/test_views.py
Python
agpl-3.0
27,368
[ "VisIt" ]
61d54b5e628a17bad8e95aace9fe82c152b7be8582057bf0fe8725007944daa2
""" ============= DON'T MODIFY THIS FILE ============ This is the boilerplate default configuration file. Changes and additions to settings should be done in /bp_content/themes/<YOUR_THEME>/config/ rather than this config. """ import os config = { # webapp2 sessions 'webapp2_extras.sessions': {'secret_key': ...
roninio/gae-shopify-python-boilerplate
bp_includes/config.py
Python
lgpl-3.0
4,881
[ "VisIt" ]
db0cd91639dd96705903f5861c92f1bfe3efba4f0e3a47fb31b203ec0237fe89
#!/usr/bin/env python -Es """Run an automated analysis pipeline for high throughput sequencing data. Handles runs in local or distributed mode based on the command line or configured parameters. The <config file> is a global YAML configuration file specifying details about the system. An example configuration file is...
a113n/bcbio-nextgen
scripts/bcbio_nextgen.py
Python
mit
11,186
[ "Galaxy" ]
e3d2959fe834498edd6eb7db90796d0c17e4da8d0b45fce0e402def2968afc24
from __future__ import absolute_import from django.utils.translation import ugettext_lazy as _ from sentry import http, options from sentry.identity.pipeline import IdentityProviderPipeline from sentry.identity.github import get_user_info from sentry.integrations import Integration, IntegrationFeatures, IntegrationPr...
ifduyue/sentry
src/sentry/integrations/github/integration.py
Python
bsd-3-clause
9,395
[ "VisIt" ]
3183928b4e9c02104d303b33581f740874db929eff79b27064dd3e7340e89ba2
# -*- coding: utf-8 -*- """ This module defines functions to generate predefined completions for PyDev by introspection of module objects. """ from __future__ import absolute_import, print_function, division, unicode_literals import collections import inspect import io import os import ast import astor PYPREDEF_...
khalim19/pydev-gimp-predefined-completions
pypredefgen_gimp/pypredefgen.py
Python
mit
19,911
[ "VisIt" ]
0af4d30c21637fdcaf30522dee29b5cec8c5d5acf1fc7a2137d01bd261518e8c
# pylint: disable=missing-docstring # pylint: disable=redefined-outer-name import os from lettuce import world, step from nose.tools import assert_true, assert_in from django.conf import settings from student.roles import CourseStaffRole, CourseInstructorRole, GlobalStaff from student.models import get_user from sel...
MakeHer/edx-platform
cms/djangoapps/contentstore/features/common.py
Python
agpl-3.0
12,732
[ "VisIt" ]
1f80c71be765b52f1a0253b1e0a8462b3222174255e9f0d58f78194f329e40b2
# pylint: disable=C0111 # pylint: disable=W0621 from lettuce import world, step from common import * from terrain.steps import reload_the_page from selenium.common.exceptions import InvalidElementStateException from xmodule.modulestore.locations import SlashSeparatedCourseKey from contentstore.utils import reverse_cou...
nanolearning/edx-platform
cms/djangoapps/contentstore/features/grading.py
Python
agpl-3.0
7,206
[ "VisIt" ]
c70a0cc227e20097514a62d89453af1fc3771aa2aaa3382eca9e52a76dd8805f
""" This class is used to define the plot using the plot attributes. """ from DIRAC import S_OK, gLogger from DIRAC.MonitoringSystem.Client.Types.RMSMonitoring import RMSMonitoring from DIRAC.MonitoringSystem.private.Plotters.BasePlotter import BasePlotter __RCSID__ = "$Id$" class RMSMonitoringPlotter(BasePlotter)...
yujikato/DIRAC
src/DIRAC/MonitoringSystem/private/Plotters/RMSMonitoringPlotter.py
Python
gpl-3.0
3,244
[ "DIRAC" ]
36f508c94be9ceb86be69c418d038a6e0816ec439e126ae29beb6172eccb3fb3
from lettuce import * from survey.features.page_objects.root import AboutPage, EditAboutUsPage from survey.models import AboutUs @step(u'And I visit the about us page') def and_i_visit_the_about_us_page(step): world.page = AboutPage(world.browser) world.page.visit() @step(u'And I have about us content') def ...
antsmc2/mics
survey/features/about_us_steps.py
Python
bsd-3-clause
1,563
[ "VisIt" ]
39f288ddef02e4371ff133f6b5af1a0fc22a39e9baae2c7dff2f1e318ddd0717
# -*- coding: utf-8 -*- """ AONX Server - Pequeño servidor de Argentum Online. Copyright (C) 2011 Alejandro Santos <alejolp@alejolp.com.ar> 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 Fo...
alejolp/argentum-py-server
argentumserver/aoprotocol.py
Python
gpl-3.0
14,132
[ "ASE" ]
ced65370a034379c79bad95c6862ed30f996cac4fbffef2d932afb4e656d2535
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import unittest2 as unittest from pymatgen.command_line.aconvasp_caller import get_num_division_kpoints, \ get_minkowski_red, get_vasp_kpoint_file_sym from pymatgen...
aykol/pymatgen
pymatgen/command_line/tests/test_aconvasp_caller.py
Python
mit
1,894
[ "pymatgen" ]
6e30c8d5db6bda61a466d9dffd6470d935913a8387b322d3ffa8e221c8c37217
#!/usr/bin/python3 # -*- coding: utf-8 -*- #******************************************************************** # ZYNTHIAN PROJECT: Zynseq Python Wrapper # # A Python wrapper for zynseq library # # Copyright (C) 2021 Brian Walton <brian@riban.co.uk> # #******************************************************************...
zynthian/zynthian-ui
zynlibs/zynseq/zynseq.py
Python
gpl-3.0
3,797
[ "Brian" ]
1952c2a5a64920b56f6a7dd7e10a955b63dc3a2b397d813f8f77acdebfce49cf
#!/usr/bin/env python # # Dance Marathon Assassins # Copyright 2012 Dance Marathon at the University of Florida # # This product includes software developed by the Dance Marathon at the University of Florida 2013 Technology Team. # The following developers contributed to this project: # Matthew Gerstman # # Dan...
smith1302/DM-Assassins
users.py
Python
apache-2.0
2,887
[ "VisIt" ]
a02561b4b31d579bd469f69490957e2dcac1059ad7f1b8f738ff63c29783fc38
""" This module contains generic generator functions for traversing tree (and DAG) structures. It is agnostic to the underlying data structure and implementation of the tree object. It does this through dependency injection of the tree's accessor functions: get_parents and get_children. The following depth-first tra...
ESOedX/edx-platform
openedx/core/lib/graph_traversals.py
Python
agpl-3.0
12,979
[ "VisIt" ]
bc5b44ba3241e5512932b5e7b66ca8f6a387d5ac1d3ed10bdcd45be34b0d65c1
#! /usr/bin/python3 import sys from lxml import etree as ET import xml.etree.cElementTree as ET import pdb import random import logging import xml.dom.minidom import argparse import os import datetime import requests import csv import sqlite3 from xml.dom import minidom from copy import deepcopy from collections impor...
hypraptive/bearid
tools/xml_utils.py
Python
mit
199,254
[ "Amber" ]
e5a679f6263321d923e4be2a760fcfbf0730335d9355498c07595a2b8404768b
""" cclib (http://cclib.sf.net) is (c) 2006, the cclib development team and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html). """ __revision__ = "$Revision: 238 $" import random # For sometimes running the progress updater import numpy numpy.inv = numpy.linalg.inv from calculationmethod import * cl...
faribas/RMG-Java
source/cclib/method/fragments.py
Python
mit
5,107
[ "cclib" ]
cf98f96b0392e25943139c541dd1eff3e579ff74b9f489741491462552a84f58
#!/usr/bin/env python """Extract n random sequences from a fasta file. Usage: %program <input_file> n <output_file>""" # Importing modules import sys import re import random try: from Bio import SeqIO except: print "This program requires the Biopython library" sys.exit(0) # Parsing user input try: ...
enormandeau/ngs_genotyping
scripts/fasta_reservoir_sampling.py
Python
gpl-3.0
1,001
[ "Biopython" ]
ec2dc3fc33ac97c04c617476c719a27442a6f099fd9125e5f0fe7a2c329a3008
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (...
yoer/hue
apps/useradmin/src/useradmin/tests.py
Python
apache-2.0
40,425
[ "MOE" ]
01ba2559d9b49193d03ec6a41b426115983c3407f289cafc1dd82f4baa85ac59
from django.core.urlresolvers import reverse from django.db import models # from edc_base.audit_trail import AuditTrail from edc_base.model.models import BaseUuidModel from edc_export.models import ExportTrackingFieldsMixin from edc_sync.models import SyncModelMixin, SyncHistoricalRecords from lis.specimen.lab_aliquot...
TshepangRas/tshilo-dikotla
td_lab/models/aliquot.py
Python
gpl-2.0
3,168
[ "VisIt" ]
249494f25ffd0f8cb1a4d9d5b513ee85850be3ad1a9925f91985c17082d43c8a
#!/usr/bin/env python __version__ = '3.3.2' __author__ = "Avinash Kak (kak@purdue.edu)" __date__ = '2014-March-12' __url__ = 'https://engineering.purdue.edu/kak/dist/BitVector-3.3.2.html' __copyright__ = "(C) 2014 Avinash Kak. Python Software Foundation." __doc__ = ''' BitVector.py Version: ''' + __...
felipet/crip
src/BitVector.py
Python
apache-2.0
146,371
[ "Brian" ]
b14ac5430f8e7fbb82dbfc854da61715e4e1cd2fa55fd1840cdabe21bc5e258a
""" Authors: Tim Bedin (Tim.Bedin@csiro.au) Tim Erwin (Tim.Erwin@csiro.au) Damien Irving (irving.damien@gmail.com) Craig Heady (craig.heady@csiro.au) Copyright 2015 CSIRO Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
taerwin/cwsl-mas
cwsl/vt_modules/vt_clim_statistics.py
Python
apache-2.0
8,174
[ "NetCDF" ]
3da63868c7076121d604b39ebfa7d6b03186d3e73d3ea3964f4959cbe5646591
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011 Paul Franklin # # This program is free software; you can redistribute it and/or modify # it under the terms o...
SNoiraud/gramps
gramps/gui/plug/_windows.py
Python
gpl-2.0
51,290
[ "Brian" ]
9d2607c1f7c6b736bf6700baaf0af0e8a8378459fad5007fcd5f1edeebdab9cd
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import random from collections import namedtuple import pytest from marshmallow import Schema, fields, utils, MarshalResult, UnmarshalResult from marshmallow.exceptions import ValidationError from marshmallow.compat import unicode, OrderedDict from tests.bas...
VladimirPal/marshmallow
tests/test_schema.py
Python
mit
72,460
[ "Brian" ]
79870a0eaa1c508f6d7e629e67be6822ac502eb5d8feb351372773df31cd3edc
""" Artificial Intelligence for Humans Volume 2: Nature-Inspired Algorithms Python Version http://www.aifh.org http://www.jeffheaton.com Code repository: https://github.com/jeffheaton/aifh Copyright 2014 by Jeff Heaton Licensed under the Apache License, Version 2.0 (the "License")...
PeterLauris/aifh
vol2/vol2-python-examples/lib/aifh/error.py
Python
apache-2.0
1,422
[ "VisIt" ]
d2732bb2c5cdceab5857feee3f82ead433877e86633bda3ab6352062ee5c570c
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 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 #...
lothian/psi4
psi4/driver/qcdb/util/mpl.py
Python
lgpl-3.0
2,303
[ "Psi4" ]
e0ff6c98f4377e826deb701d7c932961914fbb0ba503953b235dfaa1591d8ad6
# mako/_ast_util.py # Copyright (C) 2006-2013 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 """ ast ~~~ The `ast` module helps Python applications to process trees of the Pyth...
akuchling/book-diary-tools
books.d/mako/_ast_util.py
Python
bsd-3-clause
25,676
[ "VisIt" ]
6a26ae3704c6079db23a0c566f76073bc139ec3bf8691a91ee016086a87c9162
# proxy module from __future__ import absolute_import from mayavi.filters.triangle_filter import *
enthought/etsproxy
enthought/mayavi/filters/triangle_filter.py
Python
bsd-3-clause
99
[ "Mayavi" ]
594b635c99c5a6518de22ef48c5d6747fe76069d7471fdc8a2f4f93d2892db5d
# Orca # # Copyright 2006-2009 Sun Microsystems Inc. # Copyright 2010 Joanmarie Diggs # # 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 op...
GNOME/orca
src/orca/scripts/toolkits/J2SE-access-bridge/script.py
Python
lgpl-2.1
8,702
[ "ORCA" ]
c51f43bc47e9d087720035705304c3b17c874249a1618a5814e716f1ff3a45aa
# Copyright 2001 by Tarjei Mikkelsen. All rights reserved. # Copyright 2007 by Michiel de Hoon. 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 to work with the KEGG En...
poojavade/Genomics_Docker
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Bio/KEGG/Enzyme/__init__.py
Python
apache-2.0
10,978
[ "Biopython" ]
76c648c536bd4b02f4ccc8b8afd7be743c00440dc037523fe3f354d2ca23e85f
""" Helper functions for Poisson processes """ import numpy as np import logging log = logging.getLogger("global_log") def sampleInhomogeneousPoissonProc(tt, lam): """ Sample an inhomogeneous Poisson process with rate lam and times tt using the time-rescaling theorem. Integrate the rate from [0,t) to get ...
slinderman/pyhawkes
pyhawkes/utils/poisson_process.py
Python
mit
4,125
[ "Gaussian" ]
e2fc574afa87f26d9e58214bddfbbd1caa38ad6c97df66023bdbff42d1b10847
''' 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
vae_def_gen.py
Python
mit
28,216
[ "Gaussian" ]
dc47b55f1fe554c69d02c7a735457bb15054e49167c2f453bcbfb88d306b634a
import numpy as np import matplotlib.pylab as plt import h5py fl=h5py.File('test.h5'); k=fl['/fields/k'].value[0] u=fl['/fields/u'].value u=u['real']+1j*u['imag'] fid = open ("out68.vtk", "w"); fid.write("# vtk DataFile Version 3.0\n"); fid.write("patates\n"); fid.write("ASCII\nDATASET UNSTRUCTURED_GRID\n"); fid.writ...
gurcani/dins
vtkgen.py
Python
gpl-2.0
1,152
[ "VTK" ]
5dbdc916951937a16c76738175246aa58394ed6b17fd8c216e23ccd31dc7ae7d
""" :mod: OperationTests ==================== .. module: OperationTests :synopsis: Operation test cases .. moduleauthor:: Krzysztof.Ciba@NOSPAMgmail.com Operation test cases """ import pytest from DIRAC.RequestManagementSystem.Client.File import File from DIRAC.RequestManagementSystem.Client.Oper...
DIRACGrid/DIRAC
src/DIRAC/RequestManagementSystem/Client/test/Test_Operation.py
Python
gpl-3.0
3,804
[ "DIRAC" ]
b8575351bfe5eb5d9892bb040f74db8f929671403b84d3e45ff3972142cf081a
# -*- coding: utf-8 -*- """ Created on Sun Jun 02 12:33:54 2013 @author: Shreejoy """ # code to import shawn's annotation of OB data from xml.etree.ElementTree import XML from urllib import quote_plus, quote from urllib2 import Request, urlopen, URLError, HTTPError import neuroelectro.models as m fr...
neuroelectro/neuroelectro_org
db_functions/shawn_ephys_annotation_import.py
Python
gpl-2.0
12,414
[ "NEURON" ]
d4df8ed281bb2c80424efeae34201738093bf8ca4c6a9731ccea0071ef83f1fa
#=============================================================================== # LICENSE XOT-Framework - CC BY-NC-ND #=============================================================================== # This work is licenced under the Creative Commons # Attribution-Non-Commercial-No Derivative Works 3.0 Unported Li...
SMALLplayer/smallplayer-image-creator
storage/.xbmc/addons/net.rieter.xot.smallplayer/resources/libs/helpers/prefixhelper.py
Python
gpl-2.0
2,486
[ "VisIt" ]
03c7a34d7c3f958da61e148b3bc288b038c1c443e34d6d407ef2f1931522f2b3
# -*- coding: utf-8 -*- # # BrodyHopfield.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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, ...
espenhgn/nest-simulator
pynest/examples/BrodyHopfield.py
Python
gpl-2.0
4,218
[ "Gaussian", "NEURON" ]
632fab85197141c7580bcad383a4216f4052dec92ebe884b26b09e8396b75fcb
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
rabipanda/tensorflow
tensorflow/python/ops/distributions/distribution.py
Python
apache-2.0
41,704
[ "Gaussian" ]
21b6ff26432f712093dd5fd160bbd3098669cb5020b970a8482e237cce4ae093
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com> # Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk> # Copyright (C) 2007-2009 Stephane Charet...
prculley/gramps
gramps/plugins/webreport/source.py
Python
gpl-2.0
12,153
[ "Brian" ]
940a50b0563548415921c5188707204f544ade634cacf7cd76a956074ffc2489
#!/usr/bin/env python import sys, re, os, string, exceptions, os.path, argparse from collections import defaultdict #better option processing parser = argparse.ArgumentParser(description="Read a directory of OMA output and a directory of parsed GFF files and extract missing proteins.") parser.add_argument('hog', help...
tsackton/ratite-genomics
03_homology/00_gff_parsing/oma_output_parser.py
Python
gpl-3.0
4,571
[ "Biopython" ]
d6c2b2c0ef36ecb5f3127206d6cb9622342c83b72529c65f85944015e347645d
# -*- coding: utf-8 -*- import math from ..eyring import eyring_equation, EyringParam, EyringParamWithUnits from chempy.util.testing import requires from chempy.units import allclose, units_library, default_units as u _kB_over_h = 2.083664399411865234375e10 _R = 8.314472 def test_eyring_equation(): dH, dS = ...
bjodah/aqchem
chempy/kinetics/tests/test_eyring.py
Python
bsd-2-clause
1,007
[ "ChemPy" ]
c213b7a8e32a8a96776642ebf59bdce4542f1289f6dd894f9f7cc46ab7a1d4dd
#!/usr/bin/env python # coding: utf-8 # In[1]: import sys def download(url, file): import urllib3 import shutil import os if os.path.isfile(file): return True try: urllib3.disable_warnings() http = urllib3.PoolManager() print('downloading {:} ...'.format(file)) ...
skuschel/postpic
examples/kspace-test-2d.py
Python
gpl-3.0
9,839
[ "Gaussian" ]
2993bc47f07f3f355435366ef1020237871312120a566ebfb46f4e97a3a7e5a1
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
jH0ward/psi4
psi4/driver/procrouting/sapt/__init__.py
Python
lgpl-3.0
950
[ "Psi4" ]
5e3719d05f63c10abb885cbfb100cd70fdeeb4b50cc7a1281dc192adffb3415c
import sugartensor as tf import matplotlib.pyplot as plt __author__ = 'namju.kim@kakaobrain.com' # set log level to debug tf.sg_verbosity(10) # # hyper parameters # batch_size = 100 # batch size num_dim = 50 # latent dimension # # inputs # # # Computational graph # # random gaussian seed z = tf.random_n...
buriburisuri/sugartensor
sugartensor/example/mnist_vae_eval.py
Python
mit
1,252
[ "Gaussian" ]
0f65d0a6ce81e292c4ec778e36063fa1d52a0b0b3f77e3bd8a2da846c32a4f97
from __future__ import division from sklearn.utils.extmath import logsumexp from sklearn.utils import check_random_state from sklearn.base import BaseEstimator import numpy as np import random, collections import scipy.sparse # Author: Gustav Larsson # Mark Stoehr <stoehr.mark@gmail.com> # EPS = np.finfo(...
jiajunshen/partsNet
pnet/bernoullimm.py
Python
bsd-3-clause
27,285
[ "Gaussian" ]
7f5cae05355142e9bf24559538b39ea8a23ff7bced6920f5c10e34281cbf3236
"""Utils for data input/output""" import glob import itertools import math import os from collections import defaultdict import numpy as np import tensorflow as tf def gaussian_mixture(num_clusters=5, scale=1.0, stddev=0.2, batch_size=64, ...
shaform/DeepNetworks
deep_networks/data_util.py
Python
apache-2.0
8,021
[ "Gaussian" ]
0a51b75ce3ede4cccc4526a6b4d20981e074c4c829156520430f3617948897a7
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides classes for calculating the ewald sum of a structure. """ from math import pi, sqrt, log from datetime import datetime from copy import deepcopy, copy from warnings import warn import ...
mbkumar/pymatgen
pymatgen/analysis/ewald.py
Python
mit
25,344
[ "GULP", "pymatgen" ]
e2dd5fc193321a888e54e0cd91fe1557519f53089286916956a558f9e7b6f284
""" refcounting ~~~~~~~~~~~ Reference count annotations for C API functions. Has the same result as the sphinx.ext.refcounting extension but works for all functions regardless of the signature, and the reference counting information is written inline with the documentation instead of a sepa...
karakurihiden/mariadb-udf-zmq
third_party/jansson/doc/ext/refcounting.py
Python
mit
1,715
[ "VisIt" ]
132868c404eb3183dfa9297ea92deb45332e271d55b1aaaf051edf5719c8de4e
import numpy as np import mdtraj as md from mdtraj.testing import eq, get_fn random = np.random.RandomState(0) def compute_neighbors_reference(traj, cutoff, query_indices, haystack_indices=None): if haystack_indices is None: haystack_indices = range(traj.n_atoms) # explicitly enumerate the pairs of que...
mpharrigan/mdtraj
mdtraj/geometry/tests/test_neighbors.py
Python
lgpl-2.1
1,408
[ "MDTraj" ]
8d13c18bab186088a61d67e639943ff4892b6fd1cb6efe9b1327d4a99649c3b0
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals """ This module provides classes to define everything related to band structures. """ __author__ = "Geoffroy Hautier, Shyue Ping Ong, Michael Kocher" __copyright__ = "C...
migueldiascosta/pymatgen
pymatgen/electronic_structure/bandstructure.py
Python
mit
41,234
[ "CRYSTAL", "pymatgen" ]
5aa6055d06a6354fcbf931e926bc0f9cd50c11611db1e45c5535a6d73785c80c
# Version: 0.12 """ The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner (modified by Florian Wilhelm and Felix Wick) * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, and pypy [![Build Status](https://travis-ci.org...
freemindhv/tq-python
versioneer.py
Python
gpl-2.0
38,214
[ "Brian" ]
2da8c3f1796dd64aa5c91e05bc296041677972dad7bbfda327e5a7392874aa1d
import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm import os print(os.getcwd()) # Part 1: Load the data and separate it into three arrays; one for each class data = np.loadtxt("MLE1_iris.data") data0 = data[0:50,:] data1 = data[50:100,:] data2 = d...
orhaneee/machineLearning
MLE1.py
Python
gpl-3.0
7,728
[ "Gaussian" ]
2585f72cc62c5f52362ba5efc4a29455952881fbb60ef0e8e7658063494deb5c
""" This is a DIRAC WMS administrator interface. It exposes the following methods: Site mask related methods: setMask(<site mask>) getMask() Access to the pilot data: getWMSStats() """ __RCSID__ = "$Id$" from types import DictType, ListType, IntType, LongType, StringTypes, StringType, FloatType from D...
Sbalbp/DIRAC
WorkloadManagementSystem/Service/WMSAdministratorHandler.py
Python
gpl-3.0
20,982
[ "DIRAC" ]
67d3a4ebc132715cc9e3d7e5ddf3e9cd5bd64a8a34fe8c7d2ff444624dc11b5d
#!/usr/bin/env python # Copyright 2014-2020 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/solvent/test/test_ddpcm.py
Python
apache-2.0
1,402
[ "PySCF" ]
52c4e144eb83520cb3236bbe4fa79787c23ea4ec413f08b586b60d3fba0444c7
from __future__ import unicode_literals from arpeggio import PTNodeVisitor, visit_parse_tree from arpeggio import Optional, EOF from arpeggio import ZeroOrMore as ArpeggioZeroOrMore from arpeggio import RegExMatch as _ from textx.six import string_types def rrel_id(): return _(r'[^\d\W]\w*\b') # from lang.py d...
igordejanovic/textX
textx/scoping/rrel.py
Python
mit
19,117
[ "VisIt" ]
c4294bc02a63b8ca29b749c3b552da45e8546ac7d8e9749feca4098aa664fbdd
import os import re from .svg import Svg MARGIN_X = 50 MARGIN_Y = 50 MAGNIFICATION = 500 MIN_D = 1 MAX_D = 4 DIMMEST_MAG = 6 BRIGHTEST_MAG = -1.5 MAPPING = { "677": "Alpheratz", "5447": "Mirach", "7719": "And Chi-52", "3092": "And Delta-31", "3031": "And Epsilo-30", "4463": "And Eta-38", ...
ogun/starmap
starcharts/diagram.py
Python
mit
82,077
[ "Psi4" ]
39c6af5de48974a9e6e63e9be4a53ce2e644838d8aedf99712119901fa210d65
from testlink.testlinkerrors import TLResponseError class TestReporter(dict): def __init__(self, tls, testcases, *args, **kwargs): """This can be given one or more testcases, but they all must have the same project, plan, and platform.""" super(TestReporter, self).__init__(*args, **kwargs) ...
Brian-Williams/TestLink-API-Python-client
src/testlink/testreporter.py
Python
apache-2.0
9,446
[ "Brian" ]
78e38fd6787ebcb82b308272498e9d8e7fc3b6626ea4f05e888abdaf65a4bdbc
# -*- coding: utf-8 -*- # Copyright 2015-TODAY LasLabs Inc. # License MIT (https://opensource.org/licenses/MIT). from carepoint import Carepoint from sqlalchemy import (Column, Integer, String, DateTime, Boolean, ...
laslabs/Python-Carepoint
carepoint/models/cph/doctor.py
Python
mit
2,547
[ "CPMD" ]
7d3b893657cf943a2ed42cef59c1c5acec64580de6fe543dc0d2c4649c791724
######################################################################## # $HeadURL $ # File: FileCatalogHandler.py ######################################################################## """ :mod: FileCatalogHandler .. module: FileCatalogHandler :synopsis: FileCatalogHandler is a simple Replica and Metadata Cat...
calancha/DIRAC
DataManagementSystem/Service/FileCatalogHandler.py
Python
gpl-3.0
27,411
[ "DIRAC" ]
cbd05252fba4b8101cc6e85daf75ab97db77f4c139b67cfc97d319914fb4b58d
from nose.tools import assert_equal from data_tracking import files_recording from data_tracking import connection import os if 'DB_URL' in os.environ: DB_URL = os.environ['DB_URL'] else: DB_URL = 'postgresql://postgres:postgres@localhost:5433/postgres' class TestFilesRecording: def __init__(self): ...
LREN-CHUV/mri-meta-extract
tests/unit_test.py
Python
apache-2.0
7,544
[ "VisIt" ]
1649fbb3e8ab073aaffc6d6d95e3e3ddb1609e48a18da21bedf0cc8c87756586
# # GFSK modulation and demodulation. # # # Copyright 2005-2007,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # # See gnuradio-examples/python/digital for examples from math import log as ln import numpy from gnuradio import gr from gnuradio i...
dl1ksv/gnuradio
gr-digital/python/digital/gfsk.py
Python
gpl-3.0
12,225
[ "Gaussian" ]
9120dad65ef49605cf0fa7e0e191dae84d5711ecd41bb7b585a9345a9968342d
# coding: utf-8 """ PyKrige ======= Code by Benjamin S. Murphy and the PyKrige Developers bscott.murphy@gmail.com Summary ------- Contains class UniversalKriging3D. References ---------- .. [1] P.K. Kitanidis, Introduction to Geostatistcs: Applications in Hydrogeology, (Cambridge University Press, 1997) 272 p. ....
bsmurphy/PyKrige
pykrige/uk3d.py
Python
bsd-3-clause
49,090
[ "Gaussian" ]
8fab263ecbae9a6c3d5299c0e03b8149fc605fb38fbabe51247044a8db9c9a05
################################################################## # Code for networks and whatnot to use in variationalish stuff. # ################################################################## # basic python import numpy as np import numpy.random as npr from collections import OrderedDict import cPickle # the...
capybaralet/Sequential-Generation
InfNet.py
Python
mit
29,149
[ "Gaussian" ]
8e182ce08c99536f9f54e4200767a813b512af9c7f7f671318e127933529296d
# # Copyright (C) University College London, 2007-2012, all rights reserved. # # This file is part of HemeLB and is provided to you under the terms of # the GNU LGPL. Please see LICENSE in the top level directory for full # details. # from math import sqrt from vtk import vtkProgrammableFilter, vtkPoints, vtkFloatA...
jenshnielsen/hemelb
Tools/setuptool/HemeLbSetupTool/Model/SideLengthCalculator.py
Python
lgpl-3.0
1,756
[ "VTK" ]
7d3483a3547b70f402cb9afbff931bee2323ac394eeda8a4db673eaa57186862
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* Copyright (c) Schrodinger, LLC. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove this copyright notice. #F* -------...
gratefulfrog/lib
python/pymol/invocation.py
Python
gpl-2.0
17,379
[ "PyMOL" ]
b01fd0aa398abbaf21c2dadee7aff0d3b69b902331ff72783616247769e3ad75
# Copyright (c) 2012, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from ..core.sparse_gp_mpi import SparseGP_MPI from .. import kern from ..core.parameterization import Param from ..likelihoods import Gaussian from ..core.parameterization.variational im...
ptonner/GPy
GPy/models/ss_gplvm.py
Python
bsd-3-clause
9,690
[ "Gaussian" ]
0133ec438ebff55343ed0b690830c74c76078acc19dedf5883e0b0937180888c