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 -*- import argparse import numpy as np parser = argparse.ArgumentParser(description='Configuration file') arg_lists = [] def add_argument_group(name): arg = parser.add_argument_group(name) arg_lists.append(arg) return arg def str2bool(v): return v.lower() in ('true', '1') # Network net...
MichelDeudon/neural-combinatorial-optimization-rl-tensorflow
Ptr_Net_TSPTW/config.py
Python
mit
4,073
[ "Gaussian" ]
52eeb4b3449caa4cedb36953c6a4d14d8d7f837659cd96fd5b8d065a11b5912e
"""Module of objects that resemble or contain a profile, i.e. a 1 or 2-D f(x) representation.""" import enum import warnings from typing import Union, Tuple, Sequence, List, Optional import argue import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Circle as mpl_Circle from scipy import nd...
jrkerns/pylinac
pylinac/core/profile.py
Python
mit
53,985
[ "Gaussian" ]
1a615432a1bf113da6b49fad0f6e32588b7bb33630330c178a40ebe2e14ef00f
# We only import librairies needed for plotting # Other librairies are imported in the class definition file, G3D_class.py, # which contains all process and variables function definition. import matplotlib matplotlib.use('pdf') import matplotlib.pyplot as plt import matplotlib.dates as mdates import datetime as dt im...
acapet/GHER-POSTPROC
Examples/EasyExample_NEMO.py
Python
gpl-3.0
3,415
[ "NetCDF" ]
25460f5334317ac28dfa294510e63a83d3d429e10942e6f3d7a0e53c860a687b
import csv import heapq import numpy as np from ase.tasks.io import read_json ann_fontsize = 'small' label_fontsize = 12 def most_common_value(values, precision=None): import heapq # find the most common value if precision is not None: vs = [round(v, precision) for v in values] else: ...
suttond/MODOI
ase/test/tasks/analyse.py
Python
lgpl-3.0
14,864
[ "ASE" ]
86bf563d491deaa2e2132ca7f99bb2c85705a0380a78d111d19aa1f706cee115
#!/usr/bin/env python # Copyright 2014-2019 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...
sunqm/pyscf
pyscf/grad/uks.py
Python
apache-2.0
11,261
[ "PySCF" ]
cdac03c2803fc929ec2d3e4e6a776019ce51ddb4e0dd5104356e16ef608363af
"""Analyze python import statements.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import ast import os from . import types as t from .util import ( display, ApplicationError, ) from .data import ( data_context, ) VIRTUAL_PACKAGES = set([ 'ansible.module...
amenonsen/ansible
test/lib/ansible_test/_internal/import_analysis.py
Python
gpl-3.0
8,975
[ "VisIt" ]
b8e6b9b184ce5b9b03135e2d6801267641ec69d9be9c8e76cc47d49cd3384a9a
# Copyright 2012, 2013 The GalSim developers: # https://github.com/GalSim-developers # # This file is part of GalSim: The modular galaxy image simulation toolkit. # # GalSim 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...
mardom/GalSim
examples/demo6.py
Python
gpl-3.0
9,206
[ "Galaxy", "Gaussian" ]
7c09d9d4f68a7f12f22e361f4cd949ee176ea743c2a524ea35bfebcd99d6d92b
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # upload - Plain and efficient file upload back end # Copyright (C) 2003-2012 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU General P...
heromod/migrid
mig/shared/functionality/upload.py
Python
gpl-2.0
8,294
[ "Brian" ]
d02dd8dae12413090518d3f33aceabe96be9f49c2c19bcf5b06319dd87bc96c8
#!/usr/bin/python import sys import numpy as np from scipy import linalg as li from numpy import float_ from numpy import absolute as abs from numpy import random as ran import matplotlib from scipy.signal.signaltools import convolve2d from scipy.interpolate.interpolate import interp1d import ssp_Hector_Fit3D_my as my...
Delosari/dazer
bin/lib/ssp_functions/ssp_Hector_Fit3D_tools.py
Python
mit
81,907
[ "Gaussian" ]
d794bd23aa7d7265097dc2c20c511ef5e16fd44f7d49a8d272b096a7694b34a1
from setuptools import setup, find_packages import imp version = imp.load_source('muda.version', 'muda/version.py') setup( name='muda', version=version.version, description='Musical data augmentation', author='Brian McFee', author_email='brian.mcfee@nyu.edu', url='http://github.com/bmcfee/mud...
bmcfee/muda
setup.py
Python
isc
1,475
[ "Brian" ]
751dfb95adc4937059153d408bf197a8dbcd74e44a276bffcdaa0296a6d077f2
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
lib/spack/docs/tutorial/examples/Makefile/1.package.py
Python
lgpl-2.1
2,011
[ "Bowtie" ]
79d62789cb99a8588c840d07523dc8c10406f2d947348c8c9836a0a798fabf01
import sys import getopt import random import time import numpy import math import arcpy import csv from arcpy import env import my_tools as tools # Efficiency: 0' 10'' importing packages # 6' 17'' retrieving day data for January 2010 (500,000 rows read, 1,326 rows/sec), assembly of shapefile...
blt2589/Chicago
Exercise3.py
Python
mit
9,303
[ "Gaussian" ]
cbbd00799368ead8a823dbe076a1e72ef54c4ea16754540b7e37542060d2ff04
# -*- coding: utf-8 -*- """ Created on Fri Aug 3 02:55:49 2018 @author: Yongsoo Yang, UCLA Physics & Astronomy yongsoo.ysyang@gmail.com """ from .fparameters_python import fparameters_python import numpy as np # main function for calculating R1 factor def calc_R1_function_python(atomPos,atomType,Projection...
OpenChemistry/materialsdatabank
materialsdatabank/r1/calc_R1_function_python_GEN.py
Python
bsd-3-clause
15,663
[ "Gaussian" ]
a55af264c2cd3ba2773de5fff7acba6e98b216576b7641b62804a6df27e38988
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
wizmer/NeuroM
neurom/features/tests/test_neuritefunc.py
Python
bsd-3-clause
13,695
[ "NEURON" ]
cce9861850de4f6a40aad8310aa0794a08fb020518abd1686e979752c4b9bd75
#-------------------------------------------------------------------------- # Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas # Copyright: (C) 2001 Centro de Pesquisas Renato Archer # Homepage: http://www.softwarepublico.gov.br # Contact: invesalius@cti.gov.br # License: GNU ...
paulojamorim/invesalius3
invesalius/gui/task_exporter.py
Python
gpl-2.0
15,185
[ "VTK" ]
25a971f96db04cfb7147ae7025b61be257b12e7582d86b0920f7051d6b848711
# vim: set expandtab shiftwidth=2 softtabstop=2: # difmap # "genmap" - generate a new map model # from TEMPy.MapParser import MapParser from TEMPy.ScoringFunctions import ScoringFunctions from TEMPy.StructureParser import PDBParser from TEMPy.StructureBlurrer import StructureBlurrer from TEMPy.class_arg import Temp...
OniDaito/ChimeraXTempy
src/difmap.py
Python
mit
4,685
[ "ChimeraX" ]
6677ba5aae17d597ec350413e85da0bd6b694dacb137c22c6480cdc213585aaa
# This file is part of PyEMMA. # # Copyright (c) 2015, 2014 Computational Molecular Biology Group, Freie Universitaet Berlin (GER) # # PyEMMA 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 vers...
gph82/PyEMMA
pyemma/coordinates/tests/test_assign.py
Python
lgpl-3.0
10,159
[ "Gaussian" ]
02daaa38178e82cdc85f44f89c15c54d7c93c6bfbb20933c67d9d1bd72c1ffb1
# -*- coding: utf-8 -*- import itertools import os import re import urllib import logging import datetime import urlparse from collections import OrderedDict import warnings import pytz from flask import request from django.core.urlresolvers import reverse from modularodm import Q from modularodm import fields from m...
lyndsysimon/osf.io
website/project/model.py
Python
apache-2.0
125,565
[ "VisIt" ]
f0cdb8af770b57e8d8aeecaa5878b397b22e6439052e64c0efdc88dc21679d68
from lost_visions import models __author__ = 'ubuntu' def add_irish_life_linked_images(): to_link = { "11126612333": [ { "name": "The Meeting Of Ned And Kathleen", "file": "PAGE 182 The Meeting Of Ned And Kathleen.jpg" }...
CSCSI/Lost-Visions
lost_visions/utils/data_import.py
Python
apache-2.0
6,758
[ "VisIt" ]
06d4628aa4617a576aed063629788f654abcc5dd49f2f6e024e24904d4756a4b
import dendropy import numpy as np from io_util import * def delimit_newick(infile_name): from Bio import Phylo from cStringIO import StringIO tmp_tree = Phylo.read(infile_name, 'newick') for t in tmp_tree.get_terminals(): t.name = "'"+t.name+"'" tree_string = StringIO() Phylo.write(tmp_tree, tree_string, f...
doerlbh/Indie-nextflu
augur/src/tree_util.py
Python
agpl-3.0
6,886
[ "Biopython" ]
b89b9b3551af570bb8aff51948358a34019db49604c5dfd85f337fcee1f9adda
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google/data-driven-discretization-1d
pde_superresolution/scripts/create_exact_data.py
Python
apache-2.0
4,584
[ "NetCDF" ]
2b50f4c302a6688f81f674664d2b11c92d4565ece864ba15b8e1530ed59dd504
import vtk import matplotlib.cm as cm import sys LABEL_NAMES = [\ 'olfactory bulb', 'cerebral cortex', 'lateral septal nuclei', 'striatum', 'globus pallidus', 'thalamus', 'hypothalamus', 'hippocampal formation', 'superior colliculus', 'inferior colliculus', 'cerebellum', 'fimbria', 'internal capsule', 'ventricle', 've...
neuroinformatics/bah2015_registration
vtk_test/draw_intensity.py
Python
mit
5,528
[ "VTK" ]
783f6480409e7dcd7577eedfb8a56d6e6f92480752222c3f52d8139a00438eb8
# # 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...
jasonkuster/incubator-beam
sdks/python/apache_beam/typehints/typehints.py
Python
apache-2.0
35,929
[ "VisIt" ]
90e1131fa6dc4bb4c1dddfb6f885a483178b2f1fad50ef53088c7aa35e2c4091
import numpy as np import util from datetime import datetime from scipy.stats import norm import better_exceptions from scipy.stats import multivariate_normal as mvn class NaiveBayers(object): def __init__(self): # Gaussian deviation self.gaussians = dict() # Class priors self.prio...
adexin/Python-Machine-Learning-Samples
Naive_bayes_mnist/nb_covariance.py
Python
mit
2,425
[ "Gaussian" ]
f785d783acb2128b123318dac52775847c9d3e88b6334b27218a00de1d0aa9c5
"""Check that reading and writing masses in .con files is consistent.""" import tempfile import os import shutil from numpy import asarray import ase.lattice.compounds import ase.data import ase.io # Error tolerance. TOL = 1e-8 data = ase.lattice.compounds.B2(['Cs', 'Cl'], latticeconstant=4.123, ...
misdoro/python-ase
ase/test/eon/eon_masses.py
Python
gpl-2.0
959
[ "ASE" ]
868d2ae5d1a62ef44224aa3ab3b4053a12f477ef46350f46493d8bb7c4799e66
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # # 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...
fernandezcuesta/ansible
lib/ansible/modules/network/avi/avi_webhook.py
Python
gpl-3.0
3,761
[ "VisIt" ]
6d999573cd83d665cf9ba5cc0c12bafb27e74626358d4f39d813293a29e844fa
#!/usr/bin/env python3 import argparse import io import zipfile from collections import defaultdict from datetime import date oboInOwl = { "SynonymTypeProperty": "synonym_type_property", "hasAlternativeId": "has_alternative_id", "hasBroadSynonym": "has_broad_synonym", "hasDbXref": "database_cross_ref...
obophenotype/ncbitaxon
src/ncbitaxon.py
Python
bsd-3-clause
12,475
[ "BLAST" ]
6150c014a6ee6362518c025ef996ec42563f9e973ca63052c45af4cf4cd06b30
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <headingcell level=1> # Design of Primers for Functional Genes # <markdowncell> # Author: Teotonio Soares de Carvalho # <markdowncell> # Please contact me at teotonio@msu.edu if you have any suggestions or questions. # <headingcell level=2> # Setup for Parall...
teodecarvalho/PrimerDesign
functions_definition.py
Python
mit
110,886
[ "BLAST", "Biopython" ]
284db1ec8f630f46d2591d49f412376ebf942ec1af8be11f4136ee3864d356ab
""" Retrieve logging information for a DIRAC job """ import DIRAC from DIRAC.Core.Base import Script from DIRAC.Core.DISET.RPCClient import RPCClient import os, shutil, datetime from COMDIRAC.Interfaces import DSession from COMDIRAC.Interfaces.Utilities.DCommands import ArrayFormatter class Params: def __init__...
pigay/COMDIRAC
Interfaces/scripts/dlogging.py
Python
gpl-3.0
1,579
[ "DIRAC" ]
b5b089e9888e3ddabbe5b98db0e226cc61a9c6e339693d40a8677ebb0e65f867
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
ChristinaZografou/sympy
sympy/utilities/runtests.py
Python
bsd-3-clause
82,022
[ "VisIt" ]
0d76da0d99f8725281a65afa6194d7517feecb8d75389043a19c99345256f535
# Copyright (c) 2012, CyberPoint International, LLC # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this lis...
CyberPoint/libpgm
libpgm/nodedata.py
Python
bsd-3-clause
7,041
[ "Gaussian" ]
1d1c5195f77606b774ad3835db2a6fd7582a85d9068b69b550f2f28098c6c997
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # ssh - remote command wrappers using ssh/scp # Copyright (C) 2003-2014 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public ...
heromod/migrid
mig/shared/ssh.py
Python
gpl-2.0
13,910
[ "Brian" ]
0401efa85e799c95071b6cbfb21bae770c81b8f2964469c93ae28c96b79d2409
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import uuid class Migration(migrations.Migration): dependencies = [ ('visit', '0029_caregiver_key'), ] operations = [ migrations.AlterField( model_name='caregiver', ...
koebbe/homeworks
visit/migrations/0030_auto_20150614_1814.py
Python
mit
441
[ "VisIt" ]
551e61ebbf67e90f7280e88e852109feda384eb9b7093907fff806d74f4eee9e
#!/usr/bin/env python ################################################################################ # Copyright (C) 2014, 2015 GenAP, McGill University and Genome Quebec Innovation Centre # # This file is part of MUGQIC Pipelines. # # MUGQIC Pipelines is free software: you can redistribute it and/or modify # it und...
ccmbioinfo/mugqic_pipelines
pipelines/chipseq/chipseq.py
Python
lgpl-3.0
34,986
[ "BWA" ]
2aa7e664a96c7c2550af13a7f5ccdbdba44233b37519a6b2e2c6646df098b4f1
#!/usr/bin/env python # multimeter-file.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, o...
gewaltig/cython-neuron
pynest/examples/multimeter_file.py
Python
gpl-2.0
2,695
[ "NEURON" ]
d6d705bf1a9b73ac5a80eca95edbe3bd9d0b0b483677a688348554eca1e0ee50
""" ========================================== Symmetric Diffeomorphic Registration in 2D ========================================== This example explains how to register 2D images using the Symmetric Normalization (SyN) algorithm proposed by Avants et al. [Avants09]_ (also implemented in the ANTS software [Avants11]_...
StongeEtienne/dipy
doc/examples/syn_registration_2d.py
Python
bsd-3-clause
7,049
[ "Gaussian" ]
0bd45ddf9aeaf5b9cd83930be2f4e18d6d40df533075b323ff919b3c55179909
from __future__ import division import numpy as np import matplotlib.pyplot as plt from matplotlib.pyplot import cm import string from neuron import h import numbers # a helper library, included with NEURON h.load_file('stdlib.hoc') h.load_file('import3d.hoc') class Cell: def __init__(self,name='neuron',soma=None...
ahwillia/PyNeuron-Toolbox
PyNeuronToolbox/morphology.py
Python
mit
18,827
[ "NEURON" ]
12c1ed2e80852774686ae6e0b8e5ac8453e36173ef6d9c55c2e8138e4b552e03
from pylab import figure,scatter,contour,show,legend,connect from numpy import array, append, arange, reshape, empty, exp from modshogun import Gaussian, GMM from modshogun import RealFeatures import util util.set_title('EM for 2d GMM example') #set the parameters min_cov=1e-9 max_iter=1000 min_change=1e-9 cov_type=0...
AzamYahya/shogun
examples/undocumented/python_modular/graphical/em_2d_gmm.py
Python
gpl-3.0
2,425
[ "Gaussian" ]
7ddde398afcde55d0a6ccb2e30c70acc01dc5cb59b4cb4ce8919e1c80dbfee7f
#!/usr/bin/env python import os import sys sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print("Ansible now needs setuptools in order to build. Install it using" " your package manager (us...
attakei/ansible
setup.py
Python
gpl-3.0
1,864
[ "Galaxy" ]
b4cba7ac75d0565816750d28c2f7a12193e2cde154710432f43bef36d71cbb96
# read statistics from ASCII files and put them in netCDF # Chiel van Heerwaarden, 2012 -- created # Cedrick.Ansorge@gmail.com, 2013 -- Some generalizations # import gzip as gz import netCDF4 import subprocess import array as arr import os from pylab import * def addGroup(gDict,gLine,ig): garr=gLine.split(...
turbulencia/tlab
scripts/python/stats2nc.py
Python
gpl-3.0
10,004
[ "NetCDF" ]
505ed66996e05a1153439bc248fdc75f3aab8385d32b351a54a10634d38d0dc8
from . import core, utils import cgt import ctypes, os.path as osp, hashlib, numpy as np, sys, subprocess, string, os, time, traceback, cPickle from collections import defaultdict, namedtuple from StringIO import StringIO import logging def function(inputs, outputs, dbg=None, updates=None, givens=None): assert isi...
davmre/cgt
cgt/compilation.py
Python
mit
36,421
[ "VisIt" ]
07f7da77f43b4250c7cc964af8a11cb4c31681135420fbf5d0532c8c19066ed0
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/interaction/unittest/PTestLennardJones.py
Python
gpl-3.0
2,362
[ "ESPResSo" ]
e9033c84cfb14882f65be528885ef8219ee646cf462fa7c173640544b2404eca
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
The-OpenROAD-Project/OpenROAD
docs/conf.py
Python
bsd-3-clause
4,852
[ "Amber" ]
2be1317051a9237454b07f1c7074c2350eaa505f078d985fec32a0f1fb483f48
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 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...
pmghalvorsen/gramps_branch
gramps/plugins/tool/verify.py
Python
gpl-2.0
56,750
[ "Brian" ]
298c9a8825171555ed34b6be6657999ac126b6477b5181fa5b3d1e3cc9dd16d7
""" Utility functions. @author J. Chiang <jchiang@slac.stanford.edu> """ # # $Id: utilities.py,v 1.2 2003/10/05 16:30:40 jchiang Exp $ # import math, numarray def locate(x, xx): """ Binary search algorithm. usage: indx = locate(x, xx) x = input array; it must be in ascending order. xx = the searc...
plasmodic/hippodraw
python/utilities.py
Python
gpl-2.0
3,773
[ "Gaussian" ]
ae69458df92e4e994d905f934c3a30b4d5de34d70704c5a10203eaf89dc7eba6
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
mfherbst/spack
var/spack/repos/builtin/packages/r-biovizbase/package.py
Python
lgpl-2.1
2,832
[ "Bioconductor" ]
eb8707e5a037e07ab64d4b3c5fbd9f81c8dd91da9885903235bcc986498da96e
"""scandir, a better directory iterator and faster os.walk(), now in the Python 3.5 stdlib scandir() is a generator version of os.listdir() that returns an iterator over files in a directory, and also exposes the extra information most OSes provide while iterating files in a directory (such as type and stat informatio...
NixaSoftware/CVis
venv/lib/python2.7/site-packages/scandir.py
Python
apache-2.0
23,805
[ "VisIt" ]
bbf0b064748b93a19a61cf7c9b17f00b9473d21f30036b19bc9a58e5caa01592
from django.db import models from django.contrib.auth.models import User class ParamDict(models.Model): name = models.CharField(max_length=50) def __unicode__(self): return self.name class KeyVal(models.Model): container = models.ForeignKey(ParamDict, db_index=True) key = models.CharField(ma...
gsarma/ChannelWorm
channelworm/ion_channel/models.py
Python
mit
14,099
[ "NEURON" ]
a65f5aa98625d38b60e89306bfbf4ad2fa6ed1080e71a6ebc506a48041ddccce
# Copyright (c) 2013-2016, Massachusetts Institute of Technology # Copyright (c) 2016-2022, Alex Gorodetsky # # This file is part of GPEXP: # Author: Alex Gorodetsky alex@alexgorodetsky # # GPEXP is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published ...
goroda/GPEXP
gpExp/utilities.py
Python
gpl-2.0
8,224
[ "Gaussian" ]
9eb88a3f679b321bb038f444cef1669c2c3e21367ee0d83ce02a0f414b852362
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2012 Prof. Richard H. West (r.west@neu.edu), # Prof. William H. Green (whgreen@mit.edu) # ...
pierrelb/RMG-Py
rmgpy/qm/main.py
Python
mit
11,154
[ "Gaussian", "MOPAC" ]
cad6e1c7ea391babd8dcbf68002f8ca6cca07f1fdeea71a963ac3f5699065f77
import sys import re import subprocess as sp # This script complements autoDefine.py. # # Its member functions determine what input to print and # then print that input to the define.input file # # FOR THOSE WHO MODIFY/ADD FUNCTIONALITY: # # All functions in commandWriters.py must have at least the following argum...
magee256/TurbomoleScripts
SetUp/autoDefine/commandWriters.py
Python
mit
25,318
[ "TURBOMOLE" ]
fd6a237503e8c3607bd55313a92fdbf47bef4356d07570364195cb235c3ad257
#!/usr/bin/env python import rospkg import cv2 import datetime import numpy as np import pandas as pd from imblearn.under_sampling import RandomUnderSampler from sklearn.ensemble import GradientBoostingClassifier # from sklearn.gaussian_process import GaussianProcessClassifier from sklearn.linear_model import SGDCla...
buckbaskin/stopsign
src/v1/sgd_optimize.py
Python
mit
9,137
[ "Gaussian" ]
3338a06b23906085bfa4069f9eec53d947c99056aa02a719ef31f35793ec466a
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Tests/Examples for sloth.inst.rowland (pantograph movements part) """ __author__ = "Mauro Rovezzi" __email__ = "mauro.rovezzi@gmail.com" __license__ = "BSD license <http://opensource.org/licenses/BSD-3-Clause>" import os, sys import math import numpy as np import m...
maurov/xraysloth
examples/rowland_pantograph_tests.py
Python
bsd-3-clause
9,042
[ "CRYSTAL" ]
03922a2645ffcbd0e6d00f4e9f61a47728479a830c28a973419ffcea608cfe47
import datetime from django.core.management.base import NoArgsCommand from django.core.urlresolvers import reverse from django.db import connection from django.db.models import Q, F from askbot.models import User, Post, PostRevision, Thread from askbot.models import Activity, EmailFeedSetting from django.utils.translat...
erichegt/askbot-devel
askbot/management/commands/send_email_alerts.py
Python
gpl-3.0
21,850
[ "VisIt" ]
b3e29ab0c2f73128870d5fb28551b852e3e81d18ab0af5f6dcbab4bcd1fa3eac
from django.views.generic.base import TemplateView from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.contrib.auth.mixins import LoginRequiredMixin from .models import Client, Dependent, Visit class ClientSummaryView(TemplateView): template_name = "client...
tomp/food_pantry
clients/views.py
Python
mit
1,071
[ "VisIt" ]
01390ca403d3c99fd33bb13d813261f95dd2b5b36c4835bfb3ee7c3d90eefc90
# Made by Mr. - Version 0.3 by kmarty and DrLecter # Shadow Weapon Coupons contributed by BiTi for the Official L2J Datapack Project # Visit http://forum.l2jdp.com for more details import sys from com.l2scoria.gameserver.model.quest import State from com.l2scoria.gameserver.model.quest import QuestState from com.l2scor...
zenn1989/scoria-interlude
L2Jscoria-Game/data/scripts/quests/406_PathToElvenKnight/__init__.py
Python
gpl-3.0
5,385
[ "VisIt" ]
11c1cd1042aff3e0860ba8f954937684714521e808c3839f4cdb3272a7356cd3
# Copyright 2018 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, s...
blowmage/gcloud-ruby
google-cloud-speech/synth.py
Python
apache-2.0
9,603
[ "VisIt" ]
777a72e5352e79b68d4b4b171d96f25fbaf3fa27ad42dfe45e6d5831f55000b5
r"""OS routines for NT or Posix depending on what system we're on. This exports: - all functions from posix, nt, os2, or ce, e.g. unlink, stat, etc. - os.path is one of the modules posixpath, or ntpath - os.name is 'posix', 'nt', 'os2', 'ce' or 'riscos' - os.curdir is a string representing the current di...
zwChan/VATEC
~/eb-virt/Lib/os.py
Python
apache-2.0
26,652
[ "VisIt" ]
c8e67622df3b0e6455038a21fb0e25f1ed1071ee841fc745a54d4be2b7d88391
""" This helper looks in the /Operations section of the CS, considering its specific nature: the /Operations section is designed in a way that each configuration can be specific to a Setup, while maintaining a default. So, for example, given the following /Operations section:: Operations/ Defa...
vmendez/DIRAC
ConfigurationSystem/Client/Helpers/Operations.py
Python
gpl-3.0
6,272
[ "DIRAC" ]
f6ea30143ede85534e59148171eb8c1821decb31173b524de2e3d59e5fdc9347
import pickle from io import BytesIO import numpy as np import scipy.sparse from sklearn.datasets import load_digits, load_iris from sklearn.cross_validation import cross_val_score, train_test_split from sklearn.externals.six.moves import zip from sklearn.utils.testing import assert_almost_equal from sklearn.utils.te...
mehdidc/scikit-learn
sklearn/tests/test_naive_bayes.py
Python
bsd-3-clause
16,330
[ "Gaussian" ]
9d9c7e394b38a5852b17cdeb8672a272765da120447ecdbbe6eb7c30aba06514
# ----------------------------------------------------------------------------- # User configuration # ----------------------------------------------------------------------------- dataset_destination_path = '/Users/seb/Desktop/vtk_volume_v2' # -------------------------------------------------------------------------...
Kitware/tonic-data-generator
scripts/vtk/samples/syntax-evolution-volume_v2.py
Python
bsd-3-clause
4,351
[ "VTK" ]
6e155dc389015478b1c3de2abfd650caf01e3743c7e137dd92c64d2786a6646d
# -*- coding: utf-8 -*- """ R specifics checks """ # Let's disable the complain about how short R is # pylint: disable=C0103 import re import os import urllib import rpm from FedoraReview import CheckBase, RegistryBase class Registry(RegistryBase): ''' Register all check in this file in group 'R' ''' gr...
timlau/FedoraReview
plugins/R.py
Python
gpl-2.0
8,530
[ "Bioconductor" ]
d64e8ccb8275514c8f0ebb9ad14a21f5af1b23080c4020ad943123d4e79c5f97
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import add_days, getdate, cint, cstr from frappe import throw, _ from erpnext.utilities.transaction_base import Transa...
neilLasrado/erpnext
erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.py
Python
gpl-3.0
9,352
[ "VisIt" ]
2c47640d9d5c5e3b68a344859c2212c2a1f885095390d72951f2693a0c4409cc
""" Tests for `flask_openapi.utils`. """ import pytest from flask_openapi import utils @pytest.mark.parametrize('data,key,value,expected', [ ({}, 'foo', None, {}), ({}, 'foo', {}, {}), ({}, 'foo', 'bar', {'foo': 'bar'}) ]) def test_add_optional(data, key, value, expected): """ Test if a value is...
remcohaszing/flask-openapi
flask_openapi/utils_test.py
Python
mit
2,724
[ "Galaxy" ]
be1d38b5b59a43478d64e2ceb31ef3f1a40d73f74141c4293536cf77fb71eb10
#!/usr/bin/python # -*- coding: UTF-8 -*- # This file is part of pyAlienFX. # # pyAlienFX 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...
jrobeson/pyalienfx
install.py
Python
gpl-3.0
6,691
[ "VisIt" ]
555dfac393013a15bc5de530c8f331113d4eac8cbc8d5606a59af2f753b54a4d
""" :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> """ import pytest import salt.modules.random_org as random_org from salt.ext.tornado.httpclient import HTTPClient from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import TestCase, skipIf def check_status(): """ Check the...
saltstack/salt
tests/unit/modules/test_random_org.py
Python
apache-2.0
12,483
[ "Gaussian" ]
10d38055fc3d90de780a9016398464d687205cd094ce004685dd252565fc24f3
#!/usr/bin/env python """A simple example demonstrating TVTK. This example is basically a translation of the VTK tutorial demo available in VTK/Examples/Tutorial/Step6/Python/Cone6.py. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2004-2006, Enthought, Inc. # License: BSD Style. from tvtk...
dmsurti/mayavi
examples/tvtk/simple.py
Python
bsd-3-clause
2,042
[ "VTK" ]
014d7204ff683037858739a2c1b5e23e1a2d959ab6921292996a629f25253d07
''' ============================= EM for Linear-Gaussian Models ============================= This example shows how one may use the EM algorithm to estimate model parameters with a Kalman Filter. The EM algorithm is a meta-algorithm for learning parameters in probabilistic models. The algorithm works by first fixing...
PierrotLC/pykalman
examples/standard/plot_em.py
Python
bsd-3-clause
4,699
[ "Gaussian" ]
4e0f90ab5ba93bdef5bf8406bf89b4088a74a44b8e9d2ab1f21bf5fd80a025ff
r""" This model provides the form factor, $P(q)$, for a micelle with a spherical core and Gaussian polymer chains attached to the surface, thus may be applied to block copolymer micelles. To work well the Gaussian chains must be much smaller than the core, which is often not the case. Please study the reference caref...
SasView/sasmodels
sasmodels/models/polymer_micelle.py
Python
bsd-3-clause
5,987
[ "Gaussian" ]
a95c720023ea8f5249fc196bd1faea38646ed6cef622d6c2b39f097edc580612
from ase import * from hotbit import * from hotbit import fixpar import os calc=Hotbit(SCC=True,width=0.05,txt='test.cal',parameters=fixpar) atoms=Atoms('CO',positions=[(0,0,0),(1.13,0,0)],pbc=False) atoms.center(vacuum=3) atoms.set_calculator(calc) atoms.get_potential_energy() wf=calc.get_grid_wf(0,spacing=0.5) wri...
pekkosk/hotbit
hotbit/doc/examples/CO_wf.py
Python
gpl-2.0
349
[ "ASE" ]
43cdf27b477e6578d36c3b9625b79b16c4b2e7736e628799f50cab8c497f9dcd
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
menghsuann/Tensorflow-Study-Group
partial_diff/cifar10.py
Python
gpl-3.0
14,534
[ "Gaussian" ]
a3f06c128a9d599be4fb9da10866c4730f1a23b7bb436e35216226bb51fe1cfd
# /usr/bin/python3 # coding=utf-8 # Point Of No Return """ The game file, contains the game and the interface to the players. @author: anon-42 @version: beta """ import tkinter as tk import numpy as np import ann import act_func import trainer class Dot: """ Class for tdhe points the player can visit. ...
anon-42/ANN-PONR-Python3
PointOfNoReturn.py
Python
mit
12,028
[ "VisIt" ]
8211d9fe39b238d4ff9e3e0ec005e39150186f469966a79ad6a7368561199a5f
#-*. coding: utf-8 -*- ## Copyright (c) 2012, Adrià Cereto-Massagué, Noel O'Boyle ## All rights reserved. ## ## This file is part of Cinfony. ## The contents are covered by the terms of the BSD license ## which is included in the file LICENSE_BSD.txt. """ jchem - A Cinfony module for accessing ChemAxon's JChem from...
cinfony/cinfony
cinfony/jchem.py
Python
bsd-2-clause
21,832
[ "Gaussian" ]
9776a61cc5949909335424856b84f416ba16fb8270960ec74ce7addc34e0ae96
import numpy as np import theano import theano.tensor as T import unittest import tempfile from numpy.testing import assert_array_equal from smartlearner import views, stopping_criteria, Trainer, tasks from smartlearner.direction_modifiers import DecreasingLearningRate from smartlearner.optimizers import SGD from sma...
ASalvail/smartlearner
tests/direction_modifiers/test_decreasing_learning_rate.py
Python
bsd-3-clause
4,346
[ "Gaussian" ]
a632bbe68981a5b0af09e1c80d224ab3832950039f6fe7079818af8a1d8965f9
# -*- coding: utf-8 -*- # pylint: disable=E1103,C0103 """ Copyright 2013-2014 Olivier Cortès <oc@1flow.io> This file is part of the 1flow project. 1flow 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 Soft...
1flow/1flow
oneflow/core/tests/test_models.py
Python
agpl-3.0
42,072
[ "Galaxy" ]
8122f5256e763709a0a12bcfe3cfea86b6ff2effeca3bfb2630d5362ef0b9263
# Copyright (C) 2016 # Max Planck Institute for Polymer Research & JGU Mainz # # 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 th...
acfogarty/espressopp
testsuite/FileIOTests/dump_gromacs_adress/test_dump_gromacs_adress.py
Python
gpl-3.0
6,768
[ "ESPResSo" ]
b802a7e8c2932d8bbf9690133f697ced8d01075967411b6e41ee447ef6122167
# Copyright 2008 Brian Boyer, Ryan Mark, Angela Nitzke, Joshua Pollock, # Stuart Tiffen, Kayla Webley and the Medill School of Journalism, Northwestern # University. # # This file is part of Crunchberry Pie. # # Crunchberry Pie is free software: you can redistribute it and/or modify # it under the terms of the GNU Gene...
brianboyer/newsmixer
social/quips/views.py
Python
gpl-3.0
5,451
[ "Brian" ]
1ed41ce136afab82671ffc12d26fe0830ac208c7c0337b58662e9608d3db3597
from __future__ import annotations from xml.etree import ElementTree as ET import numpy as np from .._exceptions import WriteError from .._helpers import register_format def write( filename, mesh, float_fmt: str = ".3f", stroke_width: str | None = None, # Use a default image_width (not None). I...
nschloe/meshio
src/meshio/svg/_svg.py
Python
mit
3,363
[ "ParaView" ]
54ee540090d2fcc88eaf4b8d40127eb6aaee9a642e1f32439d61978f8eeaa982
# Copyright (c) 2012 OpenStack Foundation. # # 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...
alexandrucoman/vbox-neutron-agent
neutron/tests/unit/test_policy.py
Python
apache-2.0
28,958
[ "BLAST" ]
812fb7a3556be763b5da236e5d051087eb78853232f11358f9bb09a7e12268fb
""" Utility functions to mimic the template support functions for vtkVariant """ import vtk _variant_type_map = { 'void' : vtk.VTK_VOID, 'char' : vtk.VTK_CHAR, 'unsigned char' : vtk.VTK_UNSIGNED_CHAR, 'signed char' : vtk.VTK_SIGNED_CHAR, 'short' : vtk.VTK_SHORT, 'unsigned short' : ...
timkrentz/SunTracker
IMU/VTK-6.2.0/Wrapping/Python/vtk/util/vtkVariant.py
Python
mit
6,022
[ "VTK" ]
d220b9d728b792a734e1153aee5d755a4caa79c779b7a5a96fadc2c81da9635c
import threading import time import sys import hashlib import requests unuseful_codes = [404] strict_codes = [100, 200, 300, 301, 302, 401, 403, 405, 500] class Visitor(threading.Thread): auth = None banned_location = None banned_md5 = None cookies = None delay = None discriminator = None ...
deibit/cansina
core/visitor.py
Python
gpl-3.0
7,285
[ "VisIt" ]
b14ed097cd38b1bd9e25efa8791337dfa04840b15ff8d1c22bb8035b8ea89caf
# -*- coding: utf-8 -*- import ast import base64 import csv import functools import glob import itertools import jinja2 import logging import operator import datetime import hashlib import os import re import simplejson import sys import time import urllib2 import zlib from xml.etree import ElementTree from cStringIO ...
dkodnik/arp
addons/web/controllers/main.py
Python
agpl-3.0
69,202
[ "VisIt" ]
4669968e882b1204aca877bebbb82e44d034580ef434c3b0ec06cf787494517d
# Copyright (C) 2013 by Ben Morris (ben@bendmorris.com) # based on code by Eric Talevich (eric.talevich@gmail.com) # 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. """Classes corresponding to CDAO tree...
zjuchenyuan/BioWeb
Lib/Bio/Phylo/CDAO.py
Python
mit
1,443
[ "Biopython" ]
8463c8288bdd3c2360461a6951b5acc8b9daea75a25175ae204d1f0d2afa080d
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides plotting capabilities for battery related applications. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ =...
dongsenfo/pymatgen
pymatgen/apps/battery/plotter.py
Python
mit
3,385
[ "pymatgen" ]
1ce1aa60b9991d7ac99fcb533282e96d105d7b2395b3483ec4fbbe003affcd92
# Copyright 2016-2017 Capital One Services, 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 ...
ewbankkit/cloud-custodian
tests/test_resolver.py
Python
apache-2.0
6,165
[ "Galaxy", "MOOSE" ]
370085f1a61bbebe38d4f99497215c30e883f24953f7ef3a90efdaa2ecad2a94
# standard modules import os import re # custom modules import Reader class Parser(object): def __init__(self): self._readers = dict() self.path = None self.runmatch = dict() self._runcache = None def get_atom_indices(self, selector): """ :param selector: Valid selection string. :return: List of 0-b...
ferchault/iago
src/iago/Parser.py
Python
mit
3,093
[ "CP2K", "NAMD" ]
4e15c861e6bfcfeaea60a93e22477786b866ccd2d6a224bc62da3a5fb1222b56
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('visit', '0083_auto_20150828_2346'), ] operations = [ migrations.AlterModelOptions( name='involvementtype', ...
koebbe/homeworks
visit/migrations/0084_auto_20150829_2034.py
Python
mit
954
[ "VisIt" ]
5e3f1df1b6e52d277d6ef26f899b2b9a1ec923a405d39871826dbbe79bdf8b01
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Interfaces to assorted Freesurfer utility programs. Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname( os.path.realpath( __file__ ) ) >>> d...
mick-d/nipype_source
nipype/interfaces/freesurfer/utils.py
Python
bsd-3-clause
49,356
[ "Gaussian", "VTK" ]
54fdd4fb003cc8369075b35c4f4d6520e0d2fd633b681b46497f51cd523ebe09
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + # ICConvoluted.py # # Defines the IPeakFuncti...
mganeva/mantid
Framework/PythonInterface/plugins/functions/ICConvoluted.py
Python
gpl-3.0
5,350
[ "Gaussian" ]
fdbab072a9adede867d189fe4a01e6dcfbb556b93d7aab197ee0d6579a409be7
#!/usr/bin/env python from __future__ import with_statement import threading, time, sys, os import Queue import motmot.utils.config import traceback import warnings import socket import pkg_resources # from setuptools import wx import motmot.wxvalidatedtext.wxvalidatedtext as wxvt from optparse import OptionParser im...
motmot/fview
motmot/fview/fview.py
Python
bsd-3-clause
81,270
[ "Firefly" ]
536f28aeaefbc2dc55ecc2fa3de8e74780f021946fb0d6324c0b14ef0480aca6
from .album import AlbumGenerator, Album from .band import BandGenerator, Band """ <li><a href="http://www.fantasynamegenerators.com/afterlife-names.php">Afterlife Names</a></li> <li><a href="http://www.fantasynamegenerators.com/alliance-names.php">Alliance Names</a></li> <li><a href="htt...
d2emon/generator-pack
src/genesys/generator/fng/name/other/__init__.py
Python
gpl-3.0
19,197
[ "Galaxy" ]
a863fc6bae069cd60dd18b53895d13632349ef1cee9f09a01f5d006d90bb029a
# Twisted Imports from twisted.internet import reactor, defer, task from twisted.python import log from twisted.logger import Logger # Octopus Imports from octopus.sequence.util import Runnable, Pausable, Cancellable, BaseStep from octopus.sequence.error import NotRunning, AlreadyRunning, NotPaused from octopus.consta...
richardingham/octopus
octopus/blocktopus/workspace.py
Python
mit
37,321
[ "Octopus" ]
84041f8c004d410018c6985417f5c5001fce34de307dd93d366003d72744a866
""" merged implementation of the cache provider the name cache was not chosen to ensure pluggy automatically ignores the external pytest-cache """ import py import pytest import json from os.path import sep as _sep, altsep as _altsep class Cache(object): def __init__(self, config): self.config = config ...
tgoodlet/pytest
_pytest/cacheprovider.py
Python
mit
8,938
[ "VisIt" ]
b0504b7bd28d91e4629d35ecc492a768dba474d8314b9850a3611a8724259bdc
import numpy as np from ase import Atom, Atoms from gpaw import GPAW, Mixer from gpaw.eigensolvers import RMM_DIIS from gpaw.test import equal a = 4.0 n = 20 d = 1.0 x = d / 3**0.5 atoms = Atoms([Atom('C', (0.0, 0.0, 0.0)), Atom('H', (x, x, x)), Atom('H', (-x, -x, x)), Atom...
qsnake/gpaw
gpaw/test/blocked_rmm_diis.py
Python
gpl-3.0
893
[ "ASE", "GPAW" ]
709602fa6be698d4954572391d0cd213c7a7e3cf7cbafc879fccbcef201a83e0
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Copyright (c) 2015 Eric Pascual # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software w...
ensonic/ev3dev-lang-python-1
ev3dev/brickpi.py
Python
mit
2,738
[ "Amber" ]
c802d3c17867e180f85fcf69259ee175b03dc98b385ecf87c84b6546126358fe
""" Copyright (C) 2007-2010 Martin Laprise (mlaprise@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 2 dated June, 1991. This software is distributed in the hope that it will be ...
mlaprise/PyOFTK
PyOFTK/amplifier.py
Python
gpl-2.0
18,207
[ "ASE" ]
452350b10b98cd499878422443b947c1b6c46a3acf23540d289aaeadbfff9748
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems 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 # # ...
dongjoon-hyun/neon
examples/convnet-benchmarks/vgg_a.py
Python
apache-2.0
3,040
[ "Gaussian" ]
f0637605b8234d29b393431ee49a120b8a838a5c8568999fc099c294a6e74128
from collections import OrderedDict from .. import Provider as PersonProvider class Provider(PersonProvider): formats_female = OrderedDict( ( ("{{first_name_female}} {{last_name}}", 0.97), ("{{prefix_female}} {{first_name_female}} {{last_name}}", 0.015), ("{{first_name...
joke2k/faker
faker/providers/person/en_US/__init__.py
Python
mit
66,194
[ "Amber", "Brian", "CRYSTAL", "Dalton" ]
6f8e0ea280dd8875f06c804c1855c7da01df8db04d51f16be1877aa11c3bfe58
## @example surface_extraction_gui_with_pyside2.py # This example demonstrates how to use FAST together with Qt Python GUI with PySide2. # The GUI application performs Gaussian smoothing and marching cubes surface extraction on a CT thorax volume. # # @m_class{m-block m-warning} @par PySide2 Qt Version # @parblock # ...
smistad/FAST
source/FAST/Examples/Python/surface_extraction_gui_with_pyside2.py
Python
bsd-2-clause
2,553
[ "Gaussian" ]
781c459231a304177c3cba4b42b750dd4515a72c90e95d561f0b396a0619b40d
# -*- coding: utf-8 -*- # # Copyright (C) 2014 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in ...
maxamillion/anaconda
tests/pyanaconda_tests/dataholder_test.py
Python
gpl-2.0
1,964
[ "Brian" ]
650adb753fbbedf8ebc7b678a25bd2c1cd092957899489e6a30fd7da34f83fc0