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 -*- #to kill python processes use -- pkill python from __future__ import print_function from builtins import str from builtins import range from builtins import object import time import datetime import sys,os import serial import logging # variable below is a flag to avoid send procedure to run...
Hydrosys4/Master
serialcmdmod.py
Python
gpl-3.0
10,085
[ "CRYSTAL" ]
508a5321edc44e1777e1b73e16cfbfa60c9c994826de18bcf22633d5968f62fd
bbox = 'bbox' centroid = 'out meta center qt;' all_requests = { 'missing_cuisine': [ 'node["name"~".*"]["amenity"~"restaurant|fast_food"]["cuisine"!~".*"]'+bbox+';', 'way["name"~".*"]["amenity"~"restaurant|fast_food"]["cuisine"!~".*"]' + bbox + ';'+centroid ], 'opening_hours': [ ...
kort/kort-core
database/mission_creator/overpass_queries.py
Python
mit
1,980
[ "CASINO" ]
ebbcd72ea09413ef7e311cf6bf7f897bc397f7bf364b2fa38ff991e19b360d0c
''' rewrite on 14/09/16: W is only a vector ''' from numpy import * import theano import theano.tensor as T import gzip import cPickle import numpy import time class neuron(object): def __init__(self, rng, input, n_in = None, n_out = None, activation = T.nnet.sigmoid, W = None, b...
PiscesDream/Ideas
ML/single_ann/single_ann.py
Python
apache-2.0
9,652
[ "NEURON" ]
066e7d20bfff8c9cb4c1e4922f123f87ff8eccd4194e1779f501a415379be492
import json import sys def get_root(body) : for part in body["part"] : if part["root"] : return part def get_part(id_, body) : for part in body["part"] : if part["id"] == id_ : return part #def fix_param(val) : # return round(val * 10000)/10000.0 def write_pa...
jauerb/robogen
python/json_converter.py
Python
gpl-3.0
3,816
[ "NEURON" ]
9967d8d7f9054e44cdd9a1295a732a5fb1481028b7aec98536c40adff414c542
__all__ = [ 'AddPdfNorm', 'AddPdf', 'BinnedChi2', 'BinnedLH', 'BlindFunc', 'Chi2Regression', 'Convolve', 'Extended', 'Normalized', 'Polynomial', 'HistogramPdf', 'UnbinnedLH', 'argus', 'cruijff', 'cauchy', 'rtv_breitwigner', 'crystalball', 'describe...
mtresch/probfit
probfit/__init__.py
Python
mit
1,415
[ "Gaussian" ]
946f6cddc54a9b06a87b7298bec19c1dce3f49f3fef5bac19f14868d7b741ce7
""" Interacts with sqlite3 db """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import six import sqlite3 import os import hashlib import time import DIRAC from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.FrameworkSystem.private.monitoring.Activity imp...
yujikato/DIRAC
src/DIRAC/FrameworkSystem/private/monitoring/MonitoringCatalog.py
Python
gpl-3.0
17,613
[ "DIRAC" ]
53efde2635152ce4536fcab42c17db11128c6d3fa167b43f72c4a66fc6668fe4
"""Module for parsing and representing dates in gedcom format. """ __all__ = [ "DateValueTypes", "DateValue", "DateValueAbout", "DateValueAfter", "DateValueBefore", "DateValueCalculated", "DateValueEstimated", "DateValueFrom", "DateValueInterpreted", "DateValuePeriod", "DateValuePhrase", "DateValueRang...
andy-z/ged4py
ged4py/date.py
Python
mit
27,727
[ "VisIt" ]
b35bd7d52700c00f67cb3a39aeaec65c6d3c75b610842b486c57a5bbc7c6c975
#!/bin/python3 # coding: utf-8 """chios setup file.""" # To use a consistent encoding from codecs import open from os import path from setuptools import find_packages, setup from chios import __version__ here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join...
kallimachos/chios
setup.py
Python
gpl-3.0
1,395
[ "Brian" ]
8eefb263a9fb2a466349dcdb352f205780c5400fdba6476518998c4b9fdd4b50
def SubmitMCDec( eventNumber, prod_filter = "*", batch_submit = False): from fnmatch import fnmatch Application = DaVinci() Application.version = 'v38r1p1' JobName = "" datafiles = [] DSTs = [] nfiles = 5 if len( eventNumber ) == 8: try: eventType = int( eventNumber ) except: print "Invalid eve...
iwansmith/FutureLHCb
GridJobs/Ganga_Submit.py
Python
gpl-3.0
2,848
[ "DIRAC" ]
6e0526dbf1c5f90545a8e31d392990937c5c6db8312e23e07dd70565111d0c50
from __future__ import unicode_literals from django.utils.encoding import python_2_unicode_compatible from django.conf import settings try: from django.contrib.contenttypes.fields import GenericForeignKey except ImportError: from django.contrib.contenttypes.generic import GenericForeignKey from django.contrib.c...
selwin/Django-facebook
django_facebook/models.py
Python
bsd-3-clause
23,939
[ "VisIt" ]
a66fcc5798396ac8b85f7050f5c567d8bc171e37ded4f1851c77ca0c1d51cb72
# version code ef5291f09f60+ # pass = ZzBcTmfdMK coursera = 1 # Please fill out this stencil and submit using the provided submission script. ## 1: (Task 1) Minutes in a Week minutes_in_week = 7*24*60 ## 2: (Task 2) Remainder #For this task, your expression must use // remainder_without_mod = 2304811 // 47 #...
baocongchen/Coding-the-Matrix-Linear-Algebra-through-Computer-Science-Applications
python_lab.py
Python
mit
7,211
[ "MOE" ]
7e18dea3458aec8e14d447b28566507e69a2ed2c21316365135136ba0932c2bc
from __future__ import absolute_import from __future__ import print_function import numpy as nm from .bspline import BSpline from sfepy.base.base import Struct from six.moves import range class SplineBox(Struct): """ B-spline geometry parametrization. The geometry can be modified by moving spline control ...
lokik/sfepy
sfepy/mesh/splinebox.py
Python
bsd-3-clause
15,678
[ "VTK" ]
41c7913cc632c137e88df9d644cf45c24b45dd7c99e0720999cea6f4c9a079ef
# # @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 #...
rmcgibbo/psi4public
psi4/driver/qcdb/p4regex.py
Python
lgpl-3.0
1,282
[ "Psi4" ]
b0cfa83be82c0302d63c335632f776bf45b91674250f65a43dea158a39e86b26
"""Functions to plot M/EEG data on topo (one axes per channel).""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # # License: Simplified BSD from c...
kambysese/mne-python
mne/viz/topo.py
Python
bsd-3-clause
39,324
[ "Gaussian" ]
387fb01e46154ba59a7482bc2fb59f3a9a9c5c6cc851e94ff6bbda68472e63f4
#!/usr/bin/python # -*- coding: utf-8 -*- """ ======================================================================== Gaussian Processes regression: goodness-of-fit on the 'diabetes' dataset ======================================================================== This example consists in fitting a Gaussian Process m...
flightgong/scikit-learn
examples/gaussian_process/gp_diabetes_dataset.py
Python
bsd-3-clause
2,020
[ "Gaussian" ]
2cb667fc95bb3b4d4d49c7a307968532877d4024b145e243f64d456a466c86d5
# (c) 2017 Gregor Mitscha-Baude """Generic framework to define, fit, sample, and plot statistical models; especially suited for compound models, models which include complicated machinery, and generally models that are not analytically tractable. Uses simulated annealing as generic parameter search (fitting) procedure....
mitschabaude/nanopores
nanopores/tools/statistics.py
Python
mit
25,823
[ "Gaussian" ]
bc31ee9190ca85f9fdcc8f2f2b15d60a436fa90aa5dcddece755e6726f51bee8
""" Test of lpi.blast module """ from __future__ import division, absolute_import, print_function from nose.tools import assert_raises from nose import tools as nt import json from lpi import blast from . import helpers def test_seqid_type(): '''Test that the SeqID type behaves as expected.''' def _do_seqid(...
kdmurray91/lpipy
lpi/tests/test_blast.py
Python
lgpl-3.0
3,187
[ "BLAST" ]
1d8c3f8e792003387aac6720061638ce2b25ea34856f11b727e16dde78e1e28f
# ----------------------------------------------------------------------------- # User configuration # ----------------------------------------------------------------------------- outputDir = '/Users/seb/Desktop/Geometry-can/' inputFile = '/Users/seb/Downloads/ParaViewData-3.10.1/Data/can.ex2' # --------------------...
Kitware/arctic-viewer
scripts/examples/paraview/samples/Geometry-can.py
Python
bsd-3-clause
1,857
[ "ParaView" ]
bb68cd4a30a5082cb8f693ff62711c77365ba5e4037932d6dd4532fbf3500c8b
""" Contains the ShotGroup base class.""" # shot_group.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf from collections import deque from mpf.system.devic...
qcapen/mpf
mpf/devices/shot_group.py
Python
mit
15,787
[ "Brian" ]
d5b20fbdd87691208a1654a2a05a7961e692c3cf2c38d6fb74f6934b8eb11384
""" Usage of ThreadPool ThreadPool creates a pool of worker threads to process a queue of tasks much like the producers/consumers paradigm. Users just need to fill the queue with tasks to be executed and worker threads will execute them To start working with the ThreadPool first it has to be instanced:: threadPo...
DIRACGrid/DIRAC
src/DIRAC/Core/Utilities/ThreadPool.py
Python
gpl-3.0
11,510
[ "DIRAC" ]
011155c5c54fe9f19c166fb23bfd16c75ceb1d8844035862addd5f89221307f9
#!/usr/bin/env python # -*- coding: utf-8 -*- """ A wrapper for Google's Places API. See: http://code.google.com/apis/maps/documentation/places/ Based on python-googlegeocoder by The Los Angeles Times Data Desk / Ben Welsh https://github.com/datadesk/python-googlegeocoder """ import urllib import urllib2 from decimal...
kerin/python-googleplaces
googleplaces/api.py
Python
bsd-3-clause
10,868
[ "CASINO" ]
07f581fc96a9be30add38fca582dfc042b3c1d7bfe3a52a4ed537fdbc05df797
"""Read and write ASE2's netCDF trajectory files.""" from scipy.io.netcdf import NetCDFFile from ase.atoms import Atoms from ase.calculators.singlepoint import SinglePointCalculator def read_netcdf(filename, index=-1): nc = NetCDFFile(filename) dims = nc.dimensions vars = nc.variables positions = v...
suttond/MODOI
ase/io/netcdf.py
Python
lgpl-3.0
2,937
[ "ASE", "NetCDF" ]
9e67ad3a3c38ce502a90ac1a4fe3b1c5d94ab60b00fc26d1d578d74558f7d3e2
#!/usr/bin/env python # # texttable - module for creating simple ASCII tables # Copyright (C) 2003-2015 Gerome Fournier <jef(at)foutaise.org> # # 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 Foundat...
chenhsiu/texttable
texttable.py
Python
lgpl-3.0
18,898
[ "Brian" ]
728d1668f22f861cd57cda626caac9b353bbadc3d1de0533c1f6c41bf2443a41
# -*- coding: utf-8 -*- # # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB ...
pombredanne/scancode-toolkit
tests/cluecode/test_copyrights.py
Python
apache-2.0
179,302
[ "Brian", "VisIt" ]
9f4e373ad6c2ed3542353b19973b8dc857f5905a10babf9cb187575b584c8b56
from __future__ import division,print_function import numpy as np import sys def error(message,errortype): print(message) exit(errortype) periodic_table = [ "h","he","li","be","b","c","n","o","f","ne","na","mg","al","si","p","s","cl","ar", "k","ca","sc","ti","v","cr","mn","fe","co","ni","cu","zn","ga","ge","a...
bbusemeyer/mainline
utils/autogen/crystal2qmc.py
Python
gpl-2.0
28,230
[ "CRYSTAL", "GAMESS", "Gaussian" ]
948749493ea728a35330ff983454b50e28e87436286b02a764950e19465721cc
from ase.test import NotAvailable from ase.lattice import bulk from ase.calculators.calculator import get_calculator required = {'abinit': dict(ecut=200, toldfe=0.0001, chksymbreak=0), 'aims': dict(sc_accuracy_eev=5.e-3), 'elk': dict(tasks=0, rgkmax=5.0), 'gpaw': dict(mode='pw')} ...
grhawk/ASE
tools/ase/test/al.py
Python
gpl-2.0
1,194
[ "ABINIT", "ASE", "Elk", "GPAW" ]
f0fd09fbd932f4ca66e64e56eb23ccdd1b1292bf60cd0f1ed79ddd5ec9b6b080
# -*- coding: utf-8 -*- from wms.models.style import Style from wms.models.group import Group from wms.models.server import Server from wms.models.variable import Variable from wms.models.layer import Layer, VirtualLayer from wms.models.datasets.netcdf import NetCDFDataset from wms.models.datasets.base import Dataset ...
ayan-usgs/sci-wms
wms/models/__init__.py
Python
gpl-3.0
473
[ "NetCDF" ]
49bbb6d861a3b7727699b236ff9e93ded2eb6f9c799429d33c0448605a2ace85
from typing import Callable, List, Sequence, Tuple import numpy as np import pytest import scipy import tensorflow as tf from _pytest.fixtures import SubRequest import gpflow import gpflow.inducing_variables.multioutput as mf import gpflow.kernels.multioutput as mk from gpflow import set_trainable from gpflow.base im...
GPflow/GPflow
tests/gpflow/conditionals/test_multioutput.py
Python
apache-2.0
31,704
[ "Gaussian" ]
ab34ef8c60d9f6ede8a12ec873bccf99d99d68e2405684e4ba68afc98b3403cb
class Solution(object): def findWords(self, board, words): """ :type board: List[List[str]] :type words: List[str] :rtype: List[str] """ def dfs(i, j, prefix, trie): if board[i][j] not in trie: return if None in trie[board[i][j]...
zqfan/leetcode
algorithms/212. Word Search II/solution.py
Python
gpl-3.0
1,297
[ "VisIt" ]
b3b82e6923c28ad79bd9679c28e13f5d287fee6a2c7975c9839ec5af0380e1d7
""" Mousemat class """ from razer_daemon.hardware.device_base import RazerDeviceBrightnessSuspend as __RazerDeviceBrightnessSuspend class RazerFireFly(__RazerDeviceBrightnessSuspend): """ Class for the Razer Firefly (2013) """ USB_VID = 0x1532 USB_PID = 0x0C00 HAS_MATRIX = True MATRIX_DIMS...
z3ntu/razer-drivers
daemon/razer_daemon/hardware/mouse_mat.py
Python
gpl-2.0
1,184
[ "Firefly" ]
2983c54039df2347bd2b78ade4be81860849a9708f21b9e1b02a2f03cb50da6a
import nengo.nef_theano as nef net=nef.Network('Two Neurons') # Create the network net.make_input('input',[-0.45]) # Create a controllable input # with a starting value of -.45 net.make('neuron',neurons=2,dimensions=1, # Make 2 neurons representing max_rat...
ctn-waterloo/nengo_theano
examples/twoneurons.py
Python
mit
1,036
[ "NEURON" ]
002ab1ed8ee02258349756a947b1f6e9f181e1ce2ddb5397cbe8d1b01c6af790
#!/usr/bin/env python import os import sys import numpy as np import matplotlib.pyplot as plt def expected_nc01(): # these data were generated by Mathematica data = [ [1, 1.9987388658953044e6], [2, 1.997473003356622e6], [3, 1.9961992552635241e6], [4, 1.9949144459053434e6], ...
katyhuff/moose
modules/porous_flow/doc/tests/newton_cooling.py
Python
lgpl-2.1
8,446
[ "MOOSE" ]
e854c7915f020d71389381484334fc14207d72b607bb9c5e3bfeacbacfa00571
from django.test import TestCase from django.test.client import Client from hq.tests.util import create_user_and_domain from hq.models import ExtUser, Domain from graphing.models import * class ViewsTestCase(TestCase): def setUp(self): create_user_and_domain() self.client.login(username='brian...
commtrack/commtrack-old-to-del
apps/graphing/tests/views.py
Python
bsd-3-clause
2,039
[ "Brian" ]
a6b19bf8a79358df7bd3bd199de04819a0fa27a75212093f23df22d9c5dcb43d
#!/usr/bin/env python3 #============================================================================== # author : Pavel Polishchuk # date : 26-06-2019 # version : # python_version : # copyright : Pavel Polishchuk 2019 # license : #===========================================...
DrrDom/crem
crem/guacamol_crem_test.py
Python
bsd-3-clause
12,411
[ "RDKit" ]
5b110a153252d482205e303a3812b572c7f95afe5be95d8612047b65a67d23af
# -*- coding: utf-8 -*- """ Created on Tue Apr 29 15:42:37 2014 @author: benschneider - creates a 3d matrix. """ import scipy.ndimage import scipy.signal as signal from scipy.optimize import curve_fit import equations as eq import numpy as np def get_ringdown_X(w_array, w_res, t, Q): X = np.zeros([len(w_array),...
benschneider/dephasing_ringdown_sim
simulation_functions.py
Python
gpl-2.0
10,869
[ "Gaussian" ]
9c787e56f40ffd311490869a863d098f59e58da971d672fa4bc4a0eeead43af9
""" This is used to test the MySQLDB module. """ import time import pytest import DIRAC from DIRAC import gLogger, gConfig from DIRAC.Core.Utilities import Time from DIRAC.Core.Utilities.MySQL import MySQL # Useful methods def setupDB(): """Get configuration from a cfg file and instantiate a DB""" gLogger....
DIRACGrid/DIRAC
tests/Integration/Core/Test_MySQLDB.py
Python
gpl-3.0
9,729
[ "DIRAC" ]
c94ba230b89dee6551e25416695ee9bd4afc38af4680fbb847a75a8d016d2c07
""" An efficient implementation of the triple-plane view showing 3 cut planes on volumetric data, and side views showing each cut, with a cursor to move the other cuts. This is an example of complex callback interaction. It builds on the :ref:`example_volume_slicer` but has more complex logic. You should try to unders...
liulion/mayavi
examples/mayavi/interactive/volume_slicer_advanced.py
Python
bsd-3-clause
11,552
[ "Mayavi", "VTK" ]
a2b5ea4350993514b3276a6b97c7f7acea1bf91412d21c93eb010287491c1bc5
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################################### # # # ESPResSo++ Python script for tabulated GROMACS simulation # # ...
capoe/espressopp.soap
examples/simpleGromacs/simpleGromacs.py
Python
gpl-3.0
7,452
[ "ESPResSo", "Gromacs" ]
77e138ca97a76371a9670b634154c04ea6e8947483a40e7bed5de0688d7256ae
# -*- coding: utf-8 -*- # pybec v0.1.0 Copyright © 2012 # Kevin C. Wright # Licensed under the terms of the GNU Public License v 3.0 (see LICENSE.txt) # pylint: disable-msg=C0103 """ pybec.fit1D v0.1 Kevin C. Wright - May 2011 1D curve fitting functions """ from __future__ import division from numpy impo...
kevincwright/quagmire
fit1D.py
Python
gpl-3.0
8,468
[ "Gaussian" ]
69ff5884ddf60c4c8af247a32d69e028e7ab9c20ff38b57e93250e8e9cfd3903
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-dms-pfn-accessURL # Author : Stuart Paterson ######################################################################## """ Retrieve an access URL for a PFN given a valid DIRAC SE """ from __fut...
chaen/DIRAC
Interfaces/scripts/dirac-dms-pfn-accessURL.py
Python
gpl-3.0
1,455
[ "DIRAC" ]
ef1405cdbaaa5f2efc130c4dae9cd88be4cf7a804656fdd850e824389f37f336
""" any DFT interface can be added here, as long as two functions listed below are implemented * parse_dft_input(dft_input) * dft_module.run_dft_par(dft_input, structure, dft_loc, no_cpus) """ from flare.dft_interface import qe_util, cp2k_util dft_software = {"qe": qe_util, "cp2k": cp2k_util} try: import pymatg...
mir-group/flare
flare/dft_interface/__init__.py
Python
mit
436
[ "CP2K", "VASP", "pymatgen" ]
694ac4a54288ab3419bd12e9f0eb4a4b62f1090ff9d432e64067abf701503eba
"""This module defines an ASE interface to FHI-aims. Felix Hanke hanke@liverpool.ac.uk Jonas Bjork j.bjork@liverpool.ac.uk """ from general import Calculator import os import sys from os.path import join, isfile, islink import numpy as np import ase float_keys = [ 'charge', 'charge_mix_param', 'default...
slabanja/ase
ase/calculators/aims.py
Python
gpl-2.0
19,481
[ "ASE", "FHI-aims" ]
38b1f6eaa685ec9c640291ffeb3f74f5e6d1230bb8106f1fefc532fc8b0599be
# Copyright (C) 2010-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
hmenke/espresso
src/python/espressomd/constraints.py
Python
gpl-3.0
14,033
[ "ESPResSo" ]
f452ba73e61a82eed4f3181585669c1307fac41681ca21636e91e81f00e24416
#!/usr/bin/python3 from Bio import SearchIO import os # fetch files in current working directory files = [f for f in os.listdir('.') if os.path.isfile(f)] #print(files) def convert_to_tab(): for f in files: if f.endswith('.xml'): # print(f) # print(f.replace('.xml', '.xml.tab') print("converting ", f, " to...
manasb/genomics
469/RESULTS/3_DEC_2015/xml-to-tab.py
Python
gpl-3.0
820
[ "BLAST" ]
b595f667238d74871c827b170d83cd6c65cc91b0b6ee4e3416abf0b02cf39530
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Olivier Grisel <olivier.grisel@ensta.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # License: BSD 3 clause from itertools import chain, combinations import numbers import numpy as np f...
flightgong/scikit-learn
sklearn/preprocessing/data.py
Python
bsd-3-clause
38,683
[ "Gaussian" ]
f596c877e0c6464ba2f944353d5a809fefeaebd6496fc05358e801872ef0eec0
# coding: utf-8 from __future__ import unicode_literals import itertools import json import re from .common import InfoExtractor from ..compat import compat_urllib_parse_unquote from ..utils import ( int_or_none, parse_duration, remove_end, try_get, ) class MailRuIE(InfoExtractor): IE_NAME = 'ma...
vinegret/youtube-dl
youtube_dl/extractor/mailru.py
Python
unlicense
11,526
[ "Galaxy" ]
6560e65b49918d76f83e84c4c774805675764bb1b08fd6187d54065019752fe3
#------------------------------------------------------------------------------- # Cloud-COPASI # Copyright (c) 2013 Edward Kent. # All rights reserved. This program and the accompanying materials # are made available under the terms of the GNU Public License v3.0 # which accompanies this distribution, and is available...
edkent/cloud-copasi
cloud_copasi/web_interface/aws/ec2_tools.py
Python
gpl-3.0
36,502
[ "COPASI" ]
75ba59b178275d264e17c7ec7e23603c1ad7e9e928ec2ba1711474dd94f63c79
from sklearn.datasets import make_classification from sklearn.feature_extraction import FeatureHasher from sklearn import svm, discriminant_analysis from sklearn.linear_model import LogisticRegression, Perceptron from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier from sklearn.naive_bayes im...
mlrequest/sklearn-json
test/test_classification.py
Python
mit
7,605
[ "Gaussian" ]
3c428b6e3fc672d96045f6ccdc4ddb349690081c5b1b6e478e82cda4f5d0e3cb
""" Russell Richie 2016 github.com/drussellmrichie drussellmrichie@gmail.com This allows evaluation of students' answers for excitatory and inhibitory weights such that an output neuron does and doesn't fire given certain conditions. Can easily be modified according to those conditions. """ import pandas as pd impo...
drussellmrichie/TATools
COGSTools/brainAndHebbPSTool.py
Python
gpl-3.0
3,617
[ "NEURON" ]
7c8ed97eda8fd24885059aec9f31ce98024a8d603f0cfa46753cc72f543adb02
#!/usr/bin/env python import sys import os def runfail(cmd): print "Running : %s" % cmd if not 0 == os.system(cmd): sys.exit("Failed : %s " % cmd) if not len(sys.argv) >= 2: sys.exit("blast.py query.fa reference.fa") if len(sys.argv) == 3: query_file, ref_file = sys.argv[1:3] no_ref = Fa...
jgurtowski/nanocorr
nanocorr.py
Python
lgpl-3.0
2,480
[ "BLAST" ]
401319ff1a604393ce0741b178a44787781b5fe66f12608b4c7354e8dde3f246
from aiida import load_dbenv load_dbenv() from aiida.orm import load_node, load_workflow from aiida.orm import Code, DataFactory import matplotlib.pyplot as plt StructureData = DataFactory('structure') ParameterData = DataFactory('parameter') ArrayData = DataFactory('array') KpointsData = DataFactory('array.kpoints'...
abelcarreras/aiida_extensions
workflows/tools/plot_qha.py
Python
mit
9,447
[ "phonopy" ]
6aba646e76a20a3cf4a2c633fdf34545cc7a93b7a08b1dddf7035d69e5343077
#!/usr/bin/env python #filename: pyMODE_TASK.py import matplotlib matplotlib.use('Agg') import Tkinter from Tkinter import * import subprocess from ttk import Separator, Style import ttk import Pmw import tkMessageBox, tkFileDialog import os import webbrowser import pymol from pymol import cmd import sys,os,math,re, f...
nizamibilal/pyMODE-TASK
pyMODE_TASK.py
Python
gpl-3.0
83,547
[ "Amber", "Gromacs", "PyMOL" ]
ffb3b8cc5467113b3968a275915c335cac2ce6c931df25a2aa13d7ba5a8c1e66
# -*- coding: utf-8 -*- """ Unit tests for instructor.api methods. """ # pylint: disable=E1111 import unittest import json import requests import datetime import ddt import random from urllib import quote from django.test import TestCase from nose.tools import raises from mock import Mock, patch from django.conf import...
LearnEra/LearnEraPlaftform
lms/djangoapps/instructor/tests/test_api.py
Python
agpl-3.0
131,361
[ "VisIt" ]
4948b21e2549e38eeb1762f4f6107ebd454b1414af712d31818aaad9e8f0e2ea
from __future__ import division __author__ = 'Zack Gainsforth' __copyright__ = 'Copyright 2016, Zack Gainsforth' __email__ = 'zsg@gainsforth.com' #numpy.set_printoptions(threshold=numpy.nan) # Makes arrays print fully when they are large. from collections import OrderedDict # Planck's constant [eV-s] h = 4.135667517...
ZGainsforth/StoichiometryFitter
PhysicsBasics.py
Python
epl-1.0
4,670
[ "Avogadro" ]
0c1fa2a6e4b8fd9e6299e1c14d3d3a71c036843a114c5542cfcb641dc2a73e34
# 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...
yanchen036/tensorflow
tensorflow/contrib/autograph/converters/builtin_functions.py
Python
apache-2.0
2,553
[ "VisIt" ]
d0cca033f10b35f28b4d8a19b2d5b7be90238ef8c6a14841844dd0aa5cc16f80
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Ve...
sparkslabs/kamaelia_
Code/Python/Kamaelia/Kamaelia/Codec/Dirac.py
Python
apache-2.0
10,580
[ "DIRAC" ]
4e9e3a7b5af888dd90eba776204e859ce22e8eb2e659497e74ca482abfdae406
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function) __metaclass__ = type # # Copyright (C) 2017 Lenovo, Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licens...
tsdmgz/ansible
lib/ansible/modules/network/cnos/cnos_bgp.py
Python
gpl-3.0
19,494
[ "VisIt" ]
e8bf792d4279e93328764d4c4808538febf51c8fa07ce67f90afd01ddb8d0154
# Generated from SQLite.g4 by ANTLR 4.5.1 from antlr4 import * if __name__ is not None and "." in __name__: from .SQLiteParser import SQLiteParser else: from SQLiteParser import SQLiteParser # This class defines a complete generic visitor for a parse tree produced by SQLiteParser. class SQLiteVisitor(ParseTre...
ZoomerAnalytics/catalyst
catalyst/json_dbapi/sqlparser/SQLiteVisitor.py
Python
mit
14,953
[ "VisIt" ]
31eb9d3b07a15fd1d8db00693ee9797a2d97299d50b4db434e905302a6413e9b
#!/usr/bin/env python # Setup script """Description Setup script for seriesoftubes Copyright (c) 2010-2013 Benjamin Schiller <benjamin.schiller@ucsf.edu>, University of California, San Francisco All rights reserved. """ import os import sys from setuptools import setup, Extension try: ...
benjschiller/seriesoftubes
setup.py
Python
artistic-2.0
2,466
[ "Biopython", "pysam" ]
46b068bc19215d623d9316327cc772408cf38a09a628fab0e018cbfcf956bf0c
# Copyright 2019 Brian Quinlan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
brianquinlan/learn-machine-learning
well_bouncer/well_bouncer_game.py
Python
mit
5,000
[ "Brian" ]
7644ceb8b63c9865b9d33ff3368b5bc800bf3a3e9e225c27212c07245ce96dc2
from . import tempdir as td import os.path import pybol from gromacs.utilities import in_dir from mdpow.run import equilibrium_simulation from mdpow.config import get_configuration from . import RESOURCES class TestEquilibriumScript(object): def setup(self): self.tmpdir = td.TempDir() self.old_...
Becksteinlab/MDPOW
mdpow/tests/test_equilibration_script.py
Python
gpl-3.0
1,546
[ "Gromacs" ]
8c356e7e9757f8032b3a81426e7253baf2ce84660eee9d86fcab7c18f65b36de
"""Openbabel conformer generation wrapper - Maybe use Pybel someday""" # TODO - sometimes obabel conformation generation bugs out # consider converting to zmatrix prior to conformer generation from subprocess import check_output import os import shlex try: import six except ImportError: raise ImportErro...
ben-albrecht/qcl
qcl/obconformers.py
Python
mit
3,438
[ "Pybel" ]
3fcb5fcfa3aee70db0d7dac2e5a068f4999f347bd82f7990d83cde6aefb52082
""" Module for generating random pet names from a large set. call get_random_name() """ import random NAMES = """ Abbey Moon Abby Abel Abigail Abigale Abihu Able Abner Aboo Abster ACDC Ace Achak Acorn Acrobat Adam Ant Adamall Adele Adelheid Hildegard Adelor Adia Adoc Adoc Peregrin Adora Adrie...
bobintetley/asm3
src/asm3/animalname.py
Python
gpl-3.0
44,867
[ "Amber", "Brian", "CRYSTAL", "FLEUR", "MOE", "MOOSE", "TINKER" ]
a2710e7a632c8fb941a9eed7781e544e259362a317564c1c0fa6b046af4ca727
# Copyright 2017 Autodesk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
Autodesk/molecular-design-toolkit
setup.py
Python
apache-2.0
3,184
[ "VisIt" ]
a4a8490917a36b1e1266f207062c79e7b57add148aa25202e79a412abff669cf
######################################################################## # Creates a Machine Learning Problem Dataset # Suitable for assigning to a student for a homework assignment # Mostly convenience code for sklearn's make_classification routines # # ################################################################...
mbernico/snape
snape/make_dataset.py
Python
apache-2.0
18,731
[ "Gaussian" ]
379492cb64b4251411e0c2144e26a035c501d88e18000c76120f802973630e42
#!/usr/bin/python """ Copyright 2016 Paul Willworth <ioscode@gmail.com> This file is part of Galaxy Harvester. Galaxy Harvester is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of th...
druss316/G-Harvestor
html/udPassword.py
Python
gpl-3.0
2,697
[ "Galaxy" ]
07838402209e369ffd57d14f0fa871ac4a5f0c3448bc107c17858aac583989c4
import numpy as np def affine_forward(x, w, b): """ Computes the forward pass for an affine (fully-connected) layer. The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N examples, where each example x[i] has shape (d_1, ..., d_k). We will reshape each input into a vector of dimension D = ...
halexan/cs231n
assignment2/cs231n/layers.py
Python
mit
22,996
[ "NEURON" ]
61119aa15a4201f94e18a0e32fa76e6f35826b9a0b8517c5fb8efb136ef2b75d
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-05 10:12 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0001_initial'), ('place...
anhelus/emw-museum-output
visit/migrations/0001_initial.py
Python
gpl-3.0
1,316
[ "VisIt" ]
4b75177d993e4ae32a8a0ce77fc84a914b5db06939e37c6cefc19451eb7f0ea0
import numpy as np import matplotlib.pyplot as plt from scipy.signal import argrelextrema def analytical_gravity(z0, v0, t0, t): g = 9.81 return z0 + v0*(t-t0) - 0.5*g*(t-t0)**2 def read_data(logfile='./log.lammps', datafile='./thermo_output.txt'): #Get data from file with open(logfil...
Crompulence/cpl-library
test/lammps/single/wall_force/constant_force/bouncing.py
Python
gpl-3.0
1,297
[ "LAMMPS" ]
5f802cb5bbba02516d893c16840168841b89897982e72ca027236818b853c613
""" K-means Clustering and Vector Quantization Module Provides routines for k-means clustering, generating code books from k-means models, and quantizing vectors by comparing them with centroids in a code book. The k-means algorithm takes as input the number of clusters to generate, k, and a set o...
stefanv/scipy3
scipy/cluster/vq.py
Python
bsd-3-clause
25,932
[ "Gaussian" ]
a6562af476cd93048f2636edef7eeefb5dcb6fe9a976bb959ff2c211cbaa1391
# Microcosmos: an antsy game # Copyright (C) 2010 Cyril ADRIAN <cyril.adrian@gmail.com> # # 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, version 3 exclusively. # # This program is distrib...
cadrian/microcosmos
src/net/cadrian/microcosmos/model/grid/object.py
Python
gpl-3.0
1,931
[ "VisIt" ]
5a5e494e8d4d8e2361b2950d6904be9eb4911c1ba4ffc65acd33f7279582b6e5
#!/usr/bin/python # (c) 2013, Cove Schneider # (c) 2014, Joshua Conner <joshua.conner@gmail.com> # (c) 2014, Pavel Antonov <antonov@adwz.ru> # # This file is part of Ansible, # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the...
dataxu/ansible-modules-core
cloud/docker/docker.py
Python
gpl-3.0
74,853
[ "VisIt" ]
dafb7fd5d2bd62bcd0961f3356e35073409d1d1191bfafdb2763f6f06fa78ae7
""" Gaussian calculator for ASE written by: Glen R. Jenness University of Wisconsin - Madison Based off of code written by: Glen R. Jenness Kuang Yu Torsten Kerber, Ecole normale superieure de Lyon (*) Paul Fleurat-Lessard, Ecole normale superieure de Lyon (*) Martin Krupicka (*) This wo...
grhawk/ASE
ase/calculators/gaussian.py
Python
gpl-2.0
8,568
[ "ASE", "Gaussian" ]
d07d01280bc986c832166075de6ab0ad30d44b4a2b396bde37e54b7c8ef38a75
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
BryanCutler/spark
python/pyspark/pandas/tests/test_dataframe.py
Python
apache-2.0
220,991
[ "Elk" ]
2b7aea4ec988fa29bdec44b35641da0250bb5b77987b7cf90ea1686949527b78
""" pyLDAvis Prepare =============== Main transformation functions for preparing LDAdata to the visualization's data structures """ from collections import namedtuple import json import logging from joblib import Parallel, delayed, cpu_count import numpy as np import pandas as pd import scipy.spatial.distance as dist ...
bloody76/pyLDAvis
pyLDAvis/_prepare.py
Python
bsd-3-clause
15,281
[ "scikit-bio" ]
cf955417be36f054d27bbb363703a21ea0add7dc0ed9805adef6c29663ee8064
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2011 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...
andrebellafronte/stoq
stoqlib/lib/appinfo.py
Python
gpl-2.0
1,144
[ "VisIt" ]
088c4f23c9cf85e987a33a596aed6012da5c42c7282a23b0436e815c715ed9b4
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. import numpy as np from os import path as op from ..util import load_data_file # This is the package data dir, not the dir for config, etc. DATA_DIR = op.join(op.dirname(__f...
dchilds7/Deysha-Star-Formation
vispy/io/datasets.py
Python
bsd-3-clause
2,327
[ "Gaussian" ]
319af9f2d3e9874de7a8e4723bc35df91e1bd5446634c4a2521cc93e89b6bc4d
#! /usr/bin/env python # need to get this library from Bio.Blast import NCBIXML # this is the direction to the blast results result_handle = open("meth_staph.xml") # initiate the parser blast_records = NCBIXML.parse(result_handle) E_VALUE_THRESH = 0.04 # this instruction is for a looping task for blast_record in bla...
fernan9/RBH
script_BioBlastExploration.py
Python
mit
1,063
[ "BLAST" ]
b7f4550c6d482b670da687963892ccd034a8f8afaaa978844273aa2811bcf313
# CrystalDock is released under the GNU General Public License (see http://www.gnu.org/licenses/gpl.html). # If you have any questions, comments, or suggestions, please don't hesitate to contact me, # Jacob Durrant, at jdurrant [at] ucsd [dot] edu. # # If you use CrystalDock in your work, please cite [REFERENCE HERE] ...
platinhom/CADDHom
python/program/crystal_dock.py
Python
gpl-2.0
67,828
[ "MOOSE" ]
d52d3dc22f67f1b0a1c6dc6a788fddcfb2939c80d8f6e5b3e966a18bf3a71f38
""" sphinx.ext.autosummary.generate ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Usable as a library or script to generate automatic RST source files for items referred to in autosummary:: directives. Each generated RST file contains a single auto*:: directive which extracts the docstring of the referred i...
sonntagsgesicht/regtest
.aux/venv/lib/python3.9/site-packages/sphinx/ext/autosummary/generate.py
Python
apache-2.0
24,783
[ "VisIt" ]
694c82bc3e344d0fc1ebd464078312e1b67ed2e8a34803012d715c905e88d90a
# Copyright (C) 2021 Massachusetts Institute of Technology # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
hamogu/ARCUS
arcus/instrument/ccd.py
Python
gpl-3.0
3,271
[ "Gaussian" ]
4a8dec89968b4def671e21e300cf66c50f0b4aabf2908d9260e117eb9cdf22bc
# Collection of nouns # September 19 2014 # Christian Bauer d = { } drev = { } num = 0 def ins(x): global num,d,drev d[num] = x drev[x] = num num = num + 1 ins('history') ins('way') ins('art') ins('money') ins('world') ins('information') ins('map') ins('family') ins('government') ins('health') ins('s...
cjbauer/brainphrase
nouns.py
Python
agpl-3.0
21,439
[ "VisIt" ]
ff1f75e3f52bbaf6eef8f234eb4774a60d8064d16891afbbe0a1822f0658d4d3
# coding: utf-8 # In[1]: import numpy as np from scipy.fftpack import fft #, ifft import scipy.optimize as opt from sys import exit # Wave functions definitions # ------------------------------------------------------------------------------------- # In[2]: def gaussian(x,n,x0,s0,w,v): # Gaussian wf in K3 ...
brunojulia/ultracoldUB
brightsolitons/Alejandro/wave_functions.py
Python
gpl-3.0
3,214
[ "Gaussian" ]
3e917f678a8390a1a9d6de90a5b5df34c4f8d1d687984e08e32dfb8650954e0d
""" Test functions for models.GLM """ from __future__ import division from statsmodels.compat import range import os import numpy as np from numpy.testing import (assert_almost_equal, assert_equal, assert_raises, assert_allclose, assert_, assert_array_less, dec) from scipy import stats impor...
yl565/statsmodels
statsmodels/genmod/tests/test_glm.py
Python
bsd-3-clause
70,857
[ "Gaussian" ]
d7aab52cb5b4e8a43d2dcb82137b11e8e0fbb5bdb266cd85ff37ecb080d2c3ed
""".""" import glob import logging import os import shutil import tarfile from os.path import expanduser from Pegasus.command import CompoundCommand, LoggingCommand from Pegasus.db import connection from Pegasus.db.schema import ( EnsembleWorkflow, MasterWorkflow, MasterWorkflowstate, Workflow, Wo...
pegasus-isi/pegasus
packages/pegasus-python/src/Pegasus/submitdir.py
Python
apache-2.0
21,734
[ "VisIt" ]
dc2e5b9503418e42639b3ff8d6e42eeb9cea03db880f6551710734ede8054b98
""" Check that pandas/core imports pandas.array as pd_array. This makes it easier to grep for usage of pandas array. This is meant to be run as a pre-commit hook - to run it manually, you can do: pre-commit run use-pd_array-in-core --all-files """ from __future__ import annotations import argparse import ast ...
rs2/pandas
scripts/use_pd_array_in_core.py
Python
bsd-3-clause
2,104
[ "VisIt" ]
be50c1b7ea0628b68e570dcef84b3ecd455b7bf3e4f3d91a9d9ccad2a3a41093
# Copyright 2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
ros2/launch
launch/test/launch/actions/test_set_and_unset_environment_variable.py
Python
apache-2.0
3,149
[ "VisIt" ]
a8b9c755f0b64e39f637bd0deb648a511db060cf0728b028c71bde4ead4cb902
import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib import cm import matplotlib as mpl from scipy import sparse import itertools def quasi_sharing(mdf, pwmat, index_col, groupby_cols, radius=0): """Count number of shared clones among all pairs of groups defined by the unique ...
agartland/utils
tcr_sharing.py
Python
mit
5,830
[ "PWmat" ]
bbb6db42f5d38f30a3d2d7901c0e56df77b1275f83b40a0c5cf1d037a5e73080
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
MOA-2011/e2openplugin-OpenWebif
plugin/controllers/views/ajax/rebootdialog.py
Python
gpl-2.0
4,763
[ "VisIt" ]
26e0185f829a8cb9648831d4c032a1d29b513daabbbb6300a67dfdc7f39b22bc
''' Created on 2017. 5. 10 @author: Byoungho Kang ''' import numpy as np import tensorflow as tf import matplotlib.pyplot as plt ''' Training Set np.random.normal(평균, 표준편차) : Draw random samples from a normal (Gaussian) distribution. ''' xPoint = [] yPoint = [] for idx in range(200): x = np.r...
medit74/DeepLearning
MyTensorflow/MyBasicModel/linearRegression.py
Python
apache-2.0
1,695
[ "Gaussian" ]
6a26c6e10773c22839c5fbefde679b38ce5e4e8d0dc04069219da97862a37796
######################################################################## # File : SSHComputingElement.py # Author : Dumitru Laurentiu, A.T. ######################################################################## """ SSH (Virtual) Computing Element: For a given IP/host it will send jobs directly through ssh """ imp...
Andrew-McNab-UK/DIRAC
Resources/Computing/SSHComputingElement.py
Python
gpl-3.0
27,363
[ "DIRAC" ]
8d0288dcd0a286a839278dd92cc21c03eda02e0547cf48a3502ac7780cc32bd8
#!/usr/bin/python import HTSeq import sys from Bio.Seq import Seq from Bio.Alphabet import generic_dna from Bio.Blast import NCBIXML from Bio.Blast.Applications import NcbiblastnCommandline from Bio.Blast.Applications import NcbiblastpCommandline from Counter import Counter # --- Counter.py from python3 is needed to ...
mickaelsilva/pythonscripts
AlleleCalling/cluster_versions/callAlleles_protein.py
Python
gpl-2.0
18,246
[ "BLAST", "HTSeq" ]
9754ed75e013cbf12b2c2044755c20491e8fe572ae44830e429f56d86c0a62ee
# Copyright (c) 2012 - 2014, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from scipy.special import gammaln, digamma from ...util.linalg import pdinv from .domains import _REAL, _POSITIVE import warnings import weakref class Prior(object): domain ...
TianpeiLuke/GPy
GPy/core/parameterization/priors.py
Python
bsd-3-clause
45,897
[ "Gaussian" ]
11c88158ce4352497816918d606606ca524a9472a0e8ef83395d89e4c4bbc580
import pytest import re import capybara class TestHaveNoneOfSelectors: @pytest.fixture(autouse=True) def setup_session(self, session): session.visit("/with_html") def test_is_false_if_any_of_the_given_locators_are_on_the_page(self, session): assert session.has_none_of_selectors("xpath", ...
elliterate/capybara.py
capybara/tests/session/test_has_none_of_selectors.py
Python
mit
2,205
[ "VisIt" ]
2f5b65beefaf70180e7acd1219b2d6be01a4aef70339e2eb0d7cb65f5704c844
from setuptools import setup setup(name='LAMMPS Documentation Utilities', version='2.0.0', description='Utilities to convert existing LAMMPS documentation text files into ReStructured Text', url='https://github.com/rbberger/lammps-doc-utils', author='Richard Berger', author_email='richard...
pdebuyl/lammps
doc/utils/converters/setup.py
Python
gpl-2.0
712
[ "LAMMPS" ]
df6af860f7ce56577058ff8c7f2143138fd4ae00bb74e362d89ef3bd4c8ecf88
# with reference to: https://www.amazon.com/Make-Your-Own-Neural-Network-ebook/dp/B01EER4Z4G import numpy as np from numpy import random as rand import scipy.special from time import sleep def main(): print('\nTesting 3 bit binary encoding classification') # (out: [onehot], in: [binary]) binary_encodi...
deo1/deo1
NaiveNet/NaiveNet.py
Python
mit
5,324
[ "Gaussian" ]
063f913f28986de966b0d8227c84a030727fc98971c15f1aca5fda2441b3c736
# -*- coding: utf-8 -*- # Copyright (c) 2006-2016 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2010 Daniel Harding <dharding@gmail.com> # Copyright (c) 2012-2014 Google, Inc. # Copyright (c) 2013-2018 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Brett Cannon <brett@python.org> # Copyri...
ekwoodrich/python-dvrip
env/lib/python3.5/site-packages/pylint/checkers/base.py
Python
mit
84,988
[ "VisIt" ]
f1f82b5b3fb67198e46c291f72e473d70007afec0442c2de64e92a9e8b6a0c8f
import unittest import math import torch import pyprob from pyprob import util, Model from pyprob.distributions import Normal, Uniform import pyprob.diagnostics class DiagnosticsTestCase(unittest.TestCase): def __init__(self, *args, **kwargs): # http://www.robots.ox.ac.uk/~fwood/assets/pdf/Wood-AISTATS-2...
probprog/pyprob
tests/test_diagnostics.py
Python
bsd-2-clause
3,920
[ "Gaussian" ]
ebe4ad1d3ed632846ebbdf560afecdae98bf10ef54da56b7e3850cc3c2427523
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # this script tests vtkImageReslice with different interpolation modes, # with the wrap-pad feature turned on and with a rotation # Image pipeline reader = vtk.vtkImageReader() reader...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Imaging/Core/Testing/Python/ResliceWrapOblique.py
Python
gpl-3.0
3,383
[ "VTK" ]
e786a1cb15a3212fd237d86df1be95478b6eb82d208cff1e6a7a373682530ff0
import json try: from urllib.request import urlopen except ImportError: from urllib2 import urlopen from mdtraj import version if not version.release: print("This is not a release.") exit(0) URL = 'http://www.mdtraj.org' data = urlopen(URL + '/versions.json').read().decode() versions = json.loads(dat...
mattwthompson/mdtraj
devtools/travis-ci/update_versions_json.py
Python
lgpl-2.1
889
[ "MDTraj" ]
09300b5cbc8d77977f337a6392bc00ca356a5b01bc40b73c1234f926705ac4c1