text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
import functools import types import re ################# CORE ################# def this(obj): """Basic type converter. Convert given object to the flowp type object with type which is consistent with flowp types. Examples: class SomeClass: pass some_obj = SomeClass() ...
localmed/flowp
flowp/ftypes.py
Python
bsd-3-clause
7,366
[ "VisIt" ]
36e00fdafc08109f8c0c3b4023df8b3725b2f91f764cfdb1bee5813870deeed3
# -*- coding: utf-8 -*- """ This is a deprecated backend. :mod:`~xrt.backends.raycing` is much more functional. Module :mod:`~xrt.backends.shadow` works with shadow input files, starts the ray-tracing and gets its output. Description of shadow --------------------- ... can be found in the manual pages of your shadow...
PanTomaszRoszczynialski/XRayTracer
backends/shadow.py
Python
mit
15,965
[ "CRYSTAL" ]
35b16a731d57256393dce200ea0c7dec4d84705e7e01132746ce24a268210e34
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
leezu/mxnet
python/mxnet/numpy/random.py
Python
apache-2.0
40,839
[ "Gaussian" ]
825604ba568d1313e276eb617ffbbd3ff76ce8e9a78d0828da6b2608098fa14c
""" Bayes Decision Boundary ----------------------- Figure 9.1 An illustration of a decision boundary between two Gaussian distributions. """ # Author: Jake VanderPlas # License: BSD # The figure produced by this code is published in the textbook # "Statistics, Data Mining, and Machine Learning in Astronomy" (2013...
eramirem/astroML
book_figures/chapter9/fig_bayes_DB.py
Python
bsd-2-clause
1,907
[ "Gaussian" ]
517b44455b4f4cbb249be47eeb9a140f6477996bd0bffa652111d672dc622eff
# coding=utf-8 from decimal import Decimal from .. import BaseProvider localized = True class Provider(BaseProvider): """ land_coords data extracted from geonames.org, under the Creative Commons Attribution 3.0 License. Coordinates are in decimal format for mapping purposes. Country code is in Alpha...
deanishe/alfred-fakeum
src/libs/faker/providers/geo/__init__.py
Python
mit
70,121
[ "CRYSTAL" ]
e3876d638398fe461ffa99e6f5110e2253692b459be0f68ad5937a4358f4027b
""" MPF plugin for a score controller which handles all scoring and bonus tracking.""" # score_controller.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf i...
jabdoa2/mpf
mpf/system/scoring.py
Python
mit
8,826
[ "Brian" ]
1a1f6f8b105f045e3b1ac3e579e233e3eccb105c32748fde3860b325c6b322e7
# # Copyright (c) 2008--2010 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a c...
colloquium/spacewalk
backend/server/rhnChannel.py
Python
gpl-2.0
68,601
[ "VisIt" ]
f470e2b1471134b394aeb186fa20b9268b27cc6b7ade73349de345c1229a9e9d
""" Frontend to FTS3 MySQL DB. Written using sqlalchemy """ from __future__ import absolute_import from __future__ import division from __future__ import print_function # We disable the no-member error because # they are constructed by SQLAlchemy for all # the objects mapped to a table. # pylint: disable=no-member im...
ic-hep/DIRAC
src/DIRAC/DataManagementSystem/DB/FTS3DB.py
Python
gpl-3.0
27,545
[ "DIRAC" ]
c61100bb8d0627f3c638178f3ec80bad2a0352a059d72fe1446b6ad0abe5372f
#!/usr/bin/env python from scipy.version import version as SciPyVersion if tuple(int(x) for x in SciPyVersion.split('.')) < (0, 9, 0): from Scientific.IO.NetCDF import NetCDFFile as netcdf_file else: from scipy.io.netcdf import netcdf_file from numpy import arange, zeros import height f = netcdf_file('heigh...
jjo31/ATHAM-Fluidity
tests/netcdf_read_free_surface/createnetcdf.py
Python
lgpl-2.1
853
[ "NetCDF" ]
1bcb74b6029699d5b950acc58c138eca403b5cb043d4e22439c48fb0c36d6703
""" Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>, Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>. See LICENSE.txt for licensing details (MIT License). """ from pycsp_import import * import time @process def Prefix(cin, cout, prefixItem=None): t = prefixItem while...
runefriborg/pycsp
examples/Commstime_Io.py
Python
mit
1,749
[ "Brian" ]
ec06d75d366767c5dfdc7c31f9d9327777bd393401f69308393174884d11feb6
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
WCCCEDU/twitter-commons
src/python/twitter/common/contextutil/__init__.py
Python
apache-2.0
6,700
[ "Brian" ]
6dedc58004f0b09c46c63088d14066e337aa341fe6b16854fef3dede0a6746fe
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' A simple example to run DOCI-CASCI and DOCI-CASSCF calculation. ''' from pyscf import gto from pyscf import doci mol = gto.M(atom='N 0 0 0; N 0 0 2.', basis='6-31g') mf = mol.RHF().run() mc = doci.CASSCF(mf, 18, 14) mc.verbose = 4 mc.kernel() ...
gkc1000/pyscf
examples/doci/00-simple_doci_casscf.py
Python
apache-2.0
361
[ "PySCF" ]
490eaa6b4bf1fec2cc863ebe0e2915264c62672ea218450466596740875c6065
__author__ = 'sebastians' # PyMOL Animation Tutorials -- 04 - Animation # This tutorial will show you how to connect the scenes and thus animate the movie. # Import all necessary modules import pymol from pymol import cmd # The custom viewpoint closeup = ''' -0.775189936, 0.267432511, -0.572329581,\ 0....
ssalentin/pymol-animations
tutorials/basics/04-animation.py
Python
mit
2,972
[ "PyMOL" ]
7fecd8a9b70a45643575a889308e55e38aefec12b50c4856427e2b93bbe8b7a8
#!/usr/bin/env python3 # # Copyright (C) 2020 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...
pkreissl/espresso
maintainer/CI/jupyter_warnings.py
Python
gpl-3.0
4,064
[ "ESPResSo" ]
957c16a8e2d1d5ae3afba1ad922bcc1603dc87079c721efefef34b4231491dbb
#!/usr/bin/env python # encoding: utf-8 from core.utils.string_utils.random_string import random_string from core.utils.string_utils.list2string import list2string from core.utils.http.build_url import build_url from core.utils.http.get_domain import get_domain from core.utils.hash.file import hash_file from core.log ...
WangYihang/Webshell-Sniper
core/webshell/WebShell.py
Python
gpl-3.0
27,121
[ "VisIt" ]
e7fcdd327b4588c7665c1cfbfe35acac6e44c8196291ebbfd3e55e6c8640efc2
# elif myclass == "Barbarian": # #Barbarian strength build #Human Bonus Feat) Toughness #1) Power Attack #3) Improved Initiative #5) Endurance #7) Diehard #9) Improved Critical (main weapon) #11) Sickening Critical #13) Staggering Critical #15) Blinding Critical #17) Stunning Critical ...
laisrael/Game-Tools-NPC-Generator
saved_code_snippets/saved_featgen_code.py
Python
mit
1,742
[ "BLAST" ]
f6059dbc0e13a06ed16774e52fa21ec6bc3da5c02c2d5abd975a4a516f6fb07e
""" Utility functions for testing """ import atexit import glob import os import random import re import shutil import sys import threading import time import unittest import warnings import tempfile as tempfile_mod from unittest_extensions import SkipTest import pathfix from pygr import logger, classutil try: ...
cjlee112/pygr
tests/testlib/testutil.py
Python
bsd-3-clause
11,416
[ "BLAST" ]
09af1eb43c12efd2c0ce6085669d03ed67a506d7640622070defa0c2e6618e48
#!/usr/bin/env python # _*_ coding: UTF8 _*_ """ network.py ~~~~~~~~~~ A module to implement the stochastic gradient descent learning algorithm for a feedforward neural network. Gradients are calculated using backpropagation. Note that I have focused on making the code simple, easily readable, and easily mo...
tianqichongzhen/ProgramPrac
ML/DL/ann_simple/src/network.py
Python
apache-2.0
9,393
[ "Gaussian", "NEURON" ]
cd2c0c1df4d11a4d317ba56ef9264eb66a3557ccbf49152a8d4a28c46fa76a3b
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'DisplayLabel' db.create_table(u'survey_displaylabel', ( ...
myvoice-nigeria/myvoice
myvoice/survey/migrations/0009_auto__add_displaylabel__add_field_surveyquestion_display_label.py
Python
bsd-2-clause
13,056
[ "VisIt" ]
b2813a36113e2675d6be640ba1b917e3e748b1aa6bf77f80abc1847e255816ff
"""Install next gen sequencing analysis tools not currently packaged. """ import os import re from fabric.api import * from fabric.contrib.files import * import yaml from shared import (_if_not_installed, _make_tmp_dir, _get_install, _get_install_local, _make_copy, _configure_make, ...
kdaily/cloudbiolinux
cloudbio/custom/bio_nextgen.py
Python
mit
33,357
[ "Bowtie" ]
316a5ec6f95ca674a52d96aa55705366592206839bd377c5e2af1bea91763a8a
from setuptools import setup readme = open('./README.rst').read() classifiers = [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries", "Topic :: Security :: Cryptography" ] url = 'http...
deginner/bitjws
setup.py
Python
mit
1,078
[ "VisIt" ]
d32ba0d76f9145a5188c3da6a9ba676f469f5ca61b4211aa62eb92cb51d79234
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
Achuth17/scikit-bio
skbio/sequence/_rna.py
Python
bsd-3-clause
3,889
[ "scikit-bio" ]
992f2d2b4648f55c43e2133fe15c3902ea24af4ccae02b2212b31b186212240c
# This file is part of the Minecraft Overviewer. # # Minecraft Overviewer is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 3 of the License, or (at # your option) any later version...
Rycieos/Minecraft-Overviewer
overviewer_core/textures.py
Python
gpl-3.0
197,614
[ "CRYSTAL" ]
d1f782b69d6adc33ae61abe78019e596cb181e7478951d103c7b05b914dd520e
#!/usr/bin/env python """ DragonPy - Dragon 32 emulator in Python ======================================= http://www.6809.org.uk/dragon/hardware.shtml#sam $ffc0-ffdf SAM (Synchronous Address Multiplexer) register bits - use even address to clear, odd address to set $ffc0-...
jedie/DragonPy
dragonpy/Dragon32/MC6883_SAM.py
Python
gpl-3.0
8,435
[ "FEFF" ]
fe8513ecc9bdd75f9749120b5a1dedf4f2fc16c18219fd4aef1a6dbe4fff7a37
#!/usr/bin/env python3 # # Copyright (C) 2018 INRA # # 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 version. # # This program is...
geraldinepascal/FROGS
tools/phyloseq_import/phyloseq_import_data.py
Python
gpl-3.0
10,956
[ "BLAST" ]
0855f5251bca5719c9d13191cb4d009405d46a40e66777a045622509cf62012f
from django.utils.translation import ugettext_lazy as _ from crystal_dashboard.dashboards.crystal import dashboard import horizon class Policies(horizon.Panel): name = _("Policies") slug = "policies" dashboard.CrystalController.register(Policies)
Crystal-SDS/dashboard
crystal_dashboard/dashboards/crystal/policies/panel.py
Python
gpl-3.0
259
[ "CRYSTAL" ]
2e91e33e49b1695272f31c6d78953fbed989274584f335261e51bb6f980577c4
#!/usr/bin/env python import sys, re, time import getopt, os, urllib, subprocess as sub import urllib2 import json import nltk import pprint from weathercom import get_weathercom from tree import traverse from google_api import get_google_asr from tts import tts # city? idk wut is this whole dame things. lol lo = ""...
linnnh/Tenkiba
one.py
Python
mit
13,688
[ "VisIt" ]
18c38e6cb3cdf10dcc48dcaad9d1b581fd6941bb7ef51e71521c8aade3bdf4e3
import scipy.signal hdfshell_findname='' hdfshell_findlist = [] hdfshell_searchattr=False hdfshell_searchpath = '' hdfshell_getvals=False #callback for visit in groups.called each time a group/dataset is vidited. for finding. #creates a list of found things. also looks at attributes. def hdfshell_find(name): ...
argonnexraydetector/RoachFirmPy
Roach2DevelopmentTree/pyfiles/resView.py
Python
gpl-2.0
51,075
[ "VisIt" ]
5f7994d3749a556ae9496cfd61ace70857c4211266e503344662b1a9eee9c570
# -*- coding: utf-8 -*- # # lin_rate_ipn_network.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 Li...
lekshmideepu/nest-simulator
pynest/examples/lin_rate_ipn_network.py
Python
gpl-2.0
5,702
[ "NEURON" ]
6c2543c836e5e3d955ad2c10c6a01c6ea00efcd335b8cc69d67127e844272015
#!/usr/bin/env python """random_assignment_of_nucleotides.py - Random assignment of nucleotides for non-typical characters in the sequence alignment (arg --alignfn or fasta file with sequneces (arg --seqfn) :: R = G A (purine) Y = U C (pyrimidine) K = G U (keto) M = A C (amino) S = G C (strong bon...
mmagnus/rna-pdb-tools
rna_tools/tools/rna_alignment/random_assignment_of_nucleotides.py
Python
gpl-3.0
10,159
[ "Biopython" ]
f5bc654af7d96399775ac516ab6f01a9751369b276ddac29cd020b0025747d9b
import unittest import time import logging import sys import os import mock from DIRAC.Resources.MessageQueue.MQCommunication import createProducer import DIRAC.Resources.MessageQueue.MQCommunication as MQComm from DIRAC.Resources.MessageQueue.StompMQConnector import StompMQConnector as MyStompConnector from DIRAC impo...
fstagni/DIRAC
tests/Integration/Resources/MessageQueue/Test_ActiveClose.py
Python
gpl-3.0
9,652
[ "DIRAC" ]
6d131f1b49c8baa252faa54d8e230d3c7cc94264822dd60df48c04ba84351756
__author__ = 'jchugh' import uuid import time from requests.models import Response import requests import copy import oauth_utils from simple_oauth.oauth_request import Request from oauth_token import Token """ A library to help with oAuth1 requests """ class Oauth(object): """ oAuth1 provides easy to use en...
joychugh/learning-kafka
simple_oauth/oauth.py
Python
mit
10,790
[ "VisIt" ]
416465cfa1c3d1591bfaa4618847a365085ddf34ea8b69faf280b99ed37cc823
#!/usr/bin/env python ######################################################################## # # (C) 2013, James Cammarata <jcammarata@ansible.com> # # 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 ...
tjanez/ansible
lib/ansible/galaxy/api.py
Python
gpl-3.0
11,035
[ "Galaxy" ]
f90e24b8966dd2055313b7a930407f365ac944b5276d3e6776025436706b5bde
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # 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...
bitxbay/BitXBay
lib/mnemonic.py
Python
gpl-3.0
17,283
[ "CRYSTAL", "VisIt" ]
78a0c12ce7bb5f256d1678b20e492a3baf13994ede252c56d5ee63441d2f3b28
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from pyaxiom.netcdf import EnhancedDataset, EnhancedMFDataset def forward(apps, schema_editor): Layer = apps.get_model('wms', 'Layer') Dataset = apps.get_model('wms', 'Dataset') for d in Dataset.obj...
brianmckenna/sci-wms
wms/migrations/0028_auto_20150710_1637.py
Python
gpl-3.0
1,589
[ "NetCDF" ]
11bc645fe566e754993669f0821af2f059e3187d231d56969c4cfbc63603f1f1
# -*- coding: utf-8 -*- # # brunel_siegert_nest.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 Lic...
tobikausk/nest-simulator
pynest/examples/brunel_siegert_nest.py
Python
gpl-2.0
7,181
[ "NEURON" ]
1a00d53933eda5d8b046cb166795083688d21a1b635e2c1c9d6c16495e67a1ff
# Copyright 2013-2017, Brian May # # This file is part of python-alogger. # # python-alogger 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 ver...
Karaage-Cluster/python-alogger
alogger/base.py
Python
gpl-3.0
2,249
[ "Brian" ]
1f24a38c28dc96e557b40c5141b5b8705988d22642d64032f022bff67f7c525b
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # fredpy documentation build configuration file, created by # sphinx-quickstart on Wed Apr 19 09:16:19 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # aut...
letsgoexploring/fredpy-package
docs/source/conf.py
Python
mit
5,957
[ "Brian" ]
b397fa59bbae4a2cf4ad1ba6fd4ce574d13a82ba9236810cd94ece3bfc5a01bd
# encoding: utf-8 """colors.py - select how to color the atoms in the GUI.""" import gtk from gettext import gettext as _ from ase.gui.widgets import pack, cancel_apply_ok, oops, help import ase from ase.data.colors import jmol_colors import numpy as np import colorsys named_colors = ('Green', 'Yellow', 'Blue', 'Red...
JConwayAWT/PGSS14CC
lib/python/multimetallics/ase/gui/colors.py
Python
gpl-2.0
25,098
[ "ASE", "Jmol" ]
fd0831f589fed9d6061ca09d16b0c0e40a8d61e950b13ed798ce71be41213f31
"""Tests for reporting.views.""" # pylint: disable=invalid-name from django.conf import settings from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse from django.test import Client from django.test.utils import override_settings from model_mommy import mommy from tablib import imp...
lpatmo/actionify_the_news
open_connect/reporting/tests/test_views.py
Python
mit
6,185
[ "VisIt" ]
fc5c82ba7c7cb4b91d74ba830f2cd83930555bdb8239771c15975c372dc0eafe
import subprocess as sp tests = [ {'call': [ 'htseq-count', '-m', 'intersection-nonempty', '--nonunique', 'none', '--secondary-alignments', 'score', '--supplementary-alignments', 'score', 'example_data/yeast_RNASeq_excerpt_withNH.sam', 'example_data/Saccharom...
simon-anders/htseq
python2/test/test_htseq-count.py
Python
gpl-3.0
2,889
[ "HTSeq" ]
7dcc65f08880d74cec74e3c9db05c2ed16349fa845cc9aad606ec2d8b1c13696
#!/usr/local/bin/python # rfc1751.py : Converts between 128-bit strings and a human-readable # sequence of words, as defined in RFC1751: "A Convention for # Human-Readable 128-bit Keys", by Daniel L. McDonald. # # Part of the Python Cryptography Toolkit # # Written by Andrew M. Kuchling and others # # =================...
cipicip/appengine
test_crypto/Crypto/Util/RFC1751.py
Python
apache-2.0
21,136
[ "Elk", "MOE" ]
016cf07475fc1d6b807d01b0e2f418fe40e750616034c5318d5639d276282376
from __future__ import absolute_import, division, print_function import types from numbers import Number from typing import List, Tuple, Union, Sequence, Optional import numpy as np import tensorflow as tf from sklearn.mixture import GaussianMixture from sklearn.preprocessing import KBinsDiscretizer from tensorflow i...
imito/odin
odin/bay/vi/utils.py
Python
mit
13,483
[ "Gaussian" ]
d511fb48cacb1ba622b081122160b02c968a2e6eae3ef066f6242583c93bbdbc
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Unit tests for TEM calculator. """ import unittest from pymatgen.core.lattice import Lattice from pymatgen.core.structure import Structure from pymatgen.analysis.diffraction.tem import TEMCalculator from p...
mbkumar/pymatgen
pymatgen/analysis/diffraction/tests/test_tem.py
Python
mit
11,775
[ "pymatgen" ]
51d68b9fa65b86f756e147cf5cc15e813bee59dc61880fbb7b28fecc3d345410
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import sys, os import hashlib import base64 from datetime import datetime, timedelta import requests from requests.exceptions import ConnectionError from github import Github, UnknownObjectException, GithubException import click from jinja2...
mattfleaydaly/newstatuslive
statuspage/statuspage.py
Python
mit
16,868
[ "VisIt" ]
6f191d2e5d9b382ed14bd53a56257b21e813becbdf86bd0403a78f71d3330d18
try: paraview.simple except: from paraview.simple import * import numpy as np from mpi4py import MPI import os import csv from scipy import interpolate comm = MPI.COMM_WORLD label = 'm_50_7' label = label+'_2Db_particles' basename = 'mli_checkpoint' dayi = 0 dayf = 50 days = 1 time = range(dayi,dayf,days) ## REA...
jungla/ICOM-fluidity-toolbox
Detectors/slice_simple.py
Python
gpl-2.0
3,120
[ "ParaView" ]
910887eeb6cbeb7f858e5b89d5185ccde347fb0a998ad770a54ef11990b5a7c0
__all__ = [ 'OMFReader', ] import omf import omfvista import vtk from .. import _helpers from ..base import ReaderBaseBase class OMFReader(ReaderBaseBase): """Handles reading an OMF Project""" __displayname__ = 'OMF Project Reader' __category__ = 'reader' extensions = 'omf' description = 'P...
banesullivan/ParaViewGeophysics
PVGeo/gmggroup/reader.py
Python
bsd-3-clause
3,555
[ "VTK" ]
e816352f61a0a3afdb6005e8e3fc7b5282e4a79813c79be3c7e76415219a6ad1
# Copyright 2009-2012 Ram Rachum. # This program is distributed under the MIT license. ''' This module defines CamelCase-selecting scripts. See their documentation for more information. ''' from __future__ import with_statement import re import _ast import os.path, sys sys.path += [ os.path.dirname(__file__), ...
cool-RR/cute-wing-stuff
scripts/selecting_camelcase.py
Python
mit
3,224
[ "VisIt" ]
94490fde1163a1fadeb8da74244f53f3411c63babefbf2e7db5cc535970d302f
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
MDAnalysis/mdanalysis
package/MDAnalysis/coordinates/core.py
Python
gpl-2.0
4,245
[ "MDAnalysis" ]
ef2717333933004b6fa53c4c5936e2620febca6b1070d4f7618a587774824e9a
# slicer imports from __main__ import vtk, slicer # python includes import sys import time class Helper( object ): ''' classdocs ''' @staticmethod def Info( message ): ''' ''' print "[CMRToolkitPy " + time.strftime( "%m/%d/%Y %H:%M:%S" ) + "]: " + str( message ) sys.stdout.flush() ...
carma-center/carma_slicer_extension
LASegmentationWorkflow/LASegmentationResources/Helper.py
Python
bsd-2-clause
3,485
[ "VTK" ]
942b427db924e6f47c35ba90f0368719eff8fd2be49fed94e90dff9c8ccaa194
# takes cleaned ClickStreamData.csv file and turns it into a transaction file from datetime import datetime as DT import re fi = open("ClickStreamData.csv", "r") fo = open("TransactionData.csv", "w") FMT = "%d-%m-%Y %H:%M" header = ["BOOK", "MOVIE", "VGAME", "ELEC", "COMP", "H&G", "HANDBG", "CLOTH", "SHOE", "OUTDRS",...
kylekanos/AffinityAnalysis
transactions.py
Python
mit
2,681
[ "VisIt" ]
eeba2388646f44c8dc6125412b9ac64bf82d204f37bd4ed801d9de2fbbb2cb5f
#!/usr/local/bin/python # Translated from walkCow.tcl import vtk def walk_cow(file_name, figure): figure = abs(figure) if figure > 2: figure = 0 colors = vtk.vtkNamedColors() # Set the background color. colors.SetColor("BkgColor1", [60, 93, 144, 255]) colors.SetColor("BkgColor2", [2...
lorensen/VTKExamples
src/Python/Rendering/WalkCow.py
Python
apache-2.0
12,890
[ "VTK" ]
c72b2b433617ab8bef7794d5eeb9d58d6db6c443d78bfa5f5a61d61ebbcb2ee2
# pylint: disable=missing-docstring # pylint: disable=redefined-outer-name from lettuce import world, step from nose.tools import assert_true, assert_equal # pylint: disable=no-name-in-module from selenium.common.exceptions import StaleElementReferenceException ############### ACTIONS #################### @step('I ...
ahmadiga/min_edx
cms/djangoapps/contentstore/features/checklists.py
Python
agpl-3.0
4,762
[ "VisIt" ]
f5831d791a05b9f4b0aa97d40562e75ac94e0a4d0f07d156d90feba050d2c673
# -*- coding: utf-8 -*- # # Copyright (c) 2010-2011, Monash e-Research Centre # (Monash University, Australia) # Copyright (c) 2010-2011, VeRSI Consortium # (Victorian eResearch Strategic Initiative, Australia) # All rights reserved. # Redistribution and use in source and binary forms, with or without # modificatio...
iiman/mytardis
tardis/tardis_portal/metsparser.py
Python
bsd-3-clause
36,465
[ "VisIt" ]
9759839c860e06388597c1bf9ae7d042145b20fd65c6fb6c3dbf9868437bbdfb
from sklearn.covariance import EllipticEnvelope import sklearn.neighbors from sklearn.svm import OneClassSVM import os from msmbuilder import example_datasets, cluster, msm, featurizer, lumping, utils, dataset, decomposition sysname = os.path.split(os.getcwd())[-1] dt = 0.25 tica_lagtime = 400 regularization_string = ...
hainm/MSMs
code/sandbox/tica_kde_svm.py
Python
gpl-2.0
2,319
[ "MDTraj" ]
5eb182d376d336bdf16dc57a2497765d898b50e5b5073353b3116b8cdda2c126
from __future__ import print_function, absolute_import import subprocess from Bio.Blast import NCBIXML import numpy import cryptosite.config def run_blast(pdb): ''' Run blast of a given sequence ''' cmd = ["blastp", "-query", "test.seq", "-db", cryptosite.config.uniprot, "-evalue", "0.0000...
salilab/cryptosite
lib/cryptosite/seq_conservation.py
Python
lgpl-2.1
4,350
[ "BLAST" ]
8fc27de6ff80268427575d8fe5be1302219631c982a01640709220e3626d5c5b
""" .. _tut_compute_covariance: Computing covariance matrix =========================== """ import os.path as op import mne from mne.datasets import sample ############################################################################### # Source estimation method such as MNE require a noise estimations from the # rec...
jniediek/mne-python
tutorials/plot_compute_covariance.py
Python
bsd-3-clause
6,805
[ "Gaussian" ]
0a4214231c05058ad9a4c18c6b38d2ab6975444be9b394fcae549ff52781da2f
"""Notebook related utilities Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this s...
WillisXChen/django-oscar
oscar/lib/python2.7/site-packages/IPython/html/utils.py
Python
bsd-3-clause
4,145
[ "Brian" ]
29f1fbb3243236dd9a63624aeb27fa8a223cc51efdef01d4b8e203fed03aa28a
#!/usr/bin/env ipython from pylab import * import numpy as np import console_colors as ccl from scipy.io.netcdf import netcdf_file import os import matplotlib.patches as patches import matplotlib.transforms as transforms class gral: def __init__(self): self.name='name' #+++++++++++++++++++++++++++++++++++...
jimsrc/seatos
mixed/figs/sheaths.paper/src/gg2.py
Python
mit
6,501
[ "NetCDF" ]
a7297a4e130c0099cdc1abf0eefe5dec38ab3af442224aef1448a4f59d2ed1d1
from freki.serialize import FrekiDoc, FrekiBlock, FrekiLine import codecs import re import chardet import logging import argparse def run(args): frek = read_and_convert(args.infile, args.igtfile, args.encoding, args.detect) out = open(args.outfile, 'w', encoding='utf8') out.write(str(frek)) def convert_...
xigt/freki
freki/text2freki.py
Python
mit
6,059
[ "VisIt" ]
0cb865e5bb4397f0d852342dc4e5d43811d6054c39a479942e8d2dddd8e69cad
from __future__ import (absolute_import, division, print_function) import math import numpy as np from scipy import constants # Parameters in this bloc shouldn't be changed by a user. They should be treated as constants. # Changing these parameters may lead to non-functional Abins. # power expansion in terms of FUNDA...
wdzhou/mantid
scripts/AbinsModules/AbinsConstants.py
Python
gpl-3.0
6,826
[ "CASTEP", "CRYSTAL", "Gaussian" ]
89668eed66f6508706d766292e03e40919b1176225112768ffa4a0723af3a498
# # Copyright (C) 2013-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
psci2195/espresso-ffans
testsuite/python/electrostaticInteractions.py
Python
gpl-3.0
6,868
[ "ESPResSo" ]
82d3f30c10f02a1add32e2c51d12971dd0d1535f1b4ea4cec51803c4ecfdacc1
#!/usr/bin/env python __description__ = \ """ A set of objects and functions for blasting sequences against local and remote servers. Also functions for filtering sequences. Uses Biopython. It also requires ncbi's blast+ tools and cdhit to be installed and visible in the path. """ __author__ = "Michael J. Harms" ...
harmsm/phylo_tools
blastTools.py
Python
unlicense
23,000
[ "BLAST", "Biopython", "VisIt" ]
020a4e1c564ab076adf650ae776522dbe2c107756593986664bce43d2537bf39
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # spell - [insert a few words of module description on this line] # Copyright (C) 2003-2009 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...
heromod/migrid
mig/cgi-bin/spell.py
Python
gpl-2.0
1,098
[ "Brian" ]
247801e0ef84fbe6c0a992e8bb66396cd64df31cab7633e4aea514849c9cd0bb
from django.db import models from django.contrib.auth.models import User from VetApp.translate import g_count_type_list import VetApp from datetime import datetime __all__ = ['Vet', 'PostOffice', 'Animal', 'Operation', 'VisitAnimal', 'Visit', 'VisitItems', 'Owner', 'Bill', 'Color', 'Sex', 'Specie', 'Race', 'Item', 'It...
mape90/VetAppDjango
VetApp/models.py
Python
mit
8,337
[ "VisIt" ]
71001d77c4417f149121711c3c0d70c12b3bf1f7e7216e78c4287ee878ef47df
# -*- encoding: utf-8 -*- # # Copyright (c) 2013-2014, OVH SAS. # 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, t...
NicolasLM/python-ovh
ovh/client.py
Python
bsd-3-clause
16,077
[ "VisIt" ]
2380cae06a9e8a117532418fb8545e87151f9ff18b72b2fcd0432d3659ca44f7
#!/usr/bin/env python # # This driver code reads a DS3231 based Real Time Clock (RTC) chip. # The DS3231 is a clock chip with a buildin crystal, which simplifies the design # of an RTC and makes it more accurate (Accuracy +/-2ppm from 0C to +40C) # See the datasheet. # # To see if the DS3231 is available on the bus exe...
mholtrop/Phys605
Python/DevLib/DS3231.py
Python
gpl-3.0
9,985
[ "CRYSTAL" ]
a95fb0fd35aa19bc43316cdd5dec76c4b4e1c528974bb06dea98b539efd731f4
# -*- coding: utf-8 -*- # # Copyright (c) 2016, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Generic output file parser and related tools""" import bz2 import fileinput import gzip import inspect import io impor...
Schamnad/cclib
src/cclib/parser/logfileparser.py
Python
bsd-3-clause
18,118
[ "ADF", "Avogadro", "Dalton", "GAMESS", "Gaussian", "Jaguar", "MOPAC", "Molpro", "NWChem", "ORCA", "Q-Chem", "cclib" ]
f237bee7ad5942fdde6210e7294c0a8bf01264f2499c4f021a831e99cf9c19bf
# This file is pulled direclty from multi-mechanize # https://github.com/cgoldberg/multi-mechanize #!/usr/bin/env python # # Copyright (c) 2010 Brian Knox (taotetek@gmail.com) # License: GNU LGPLv3 # # This file is part of Multi-Mechanize # """a collection of functions and classes for multi-mechanize results files...
puttarajubr/commcare-hq
corehq/apps/hqadmin/multimech.py
Python
bsd-3-clause
7,233
[ "Brian" ]
39dd883d384f477bb057a7b2cfb0aa9411799dcac69b89abf5ff4fb83b4bd90d
""" 18 Nov 2014 """ from __future__ import print_function from warnings import warn, catch_warnings, simplefilter from collections import OrderedDict from pysam import AlignmentFile from scipy.stats import norm as sc_norm, skew, kurtosis fro...
3DGenomes/tadbit
_pytadbit/mapping/analyze.py
Python
gpl-3.0
69,182
[ "pysam" ]
29c7552155c9898c7eb08d913ddce62c6bd3cee48a414c279f42f43210e24415
""" Views related to the Custom Courses feature. """ import csv import datetime import functools import json import logging import pytz from contextlib import contextmanager from copy import deepcopy from cStringIO import StringIO from django.conf import settings from django.core.urlresolvers import reverse from djan...
mcgachey/edx-platform
lms/djangoapps/ccx/views.py
Python
agpl-3.0
22,731
[ "VisIt" ]
32645576cde7e1bd2a599c128c2e66516b5fe139a525ada015df47c4a7780659
# -*- coding: utf-8 -*- """Benchmarks.""" from time import time import numpy as np from pykrige.ok import OrdinaryKriging np.random.seed(19999) VARIOGRAM_MODELS = ["power", "gaussian", "spherical", "exponential", "linear"] BACKENDS = ["vectorized", "loop", "C"] N_MOVING_WINDOW = [None, 10, 50, 100] def make_benchar...
bsmurphy/PyKrige
benchmarks/kriging_benchmarks.py
Python
bsd-3-clause
3,471
[ "Gaussian" ]
1a4eaa511077e2a6910a93fedd79a45b685caebde7ffe93e4a432e06ac68c284
from django.shortcuts import render from django.contrib import messages from django.views.generic import ListView, DetailView from django.views.generic import CreateView, UpdateView # from django.shortcuts import render # from django.shortcuts import get_object_or_404 # from django.shortcuts import get_list_or_404 # fr...
robjordan/unesco_project
unesco/visits/views.py
Python
apache-2.0
1,634
[ "VisIt" ]
141085ac5d760fc9862dc80d19fd2b30a374159fa6a8990aa674b3a771717b58
import os import unittest import pysal import numpy as np class TestDistanceWeights(unittest.TestCase): def setUp(self): np.random.seed(1234) self.polyShp = pysal.examples.get_path('columbus.shp') self.arcShp = pysal.examples.get_path('stl_hom.shp') self.points = [( 10,...
chhao91/pysal
pysal/weights/tests/test_Distance.py
Python
bsd-3-clause
6,542
[ "COLUMBUS", "Gaussian" ]
bbd390486193c83aaa1ef6de5e4f74cf87a422bb0b59b99b3c4f329d1cfc19a5
__author__ = 'AT' import logging from data_source import DataSource from data_transformation import IdentityTransformation from model_learn import ModelLearn from plot_results import PlotOutput from savigp_diag import SAVIGP_Diag from savigp_single_comp import SAVIGP_SingleComponent from copy import deepcopy import GP...
adezfouli/savigp
GP/savigp_test.py
Python
apache-2.0
10,059
[ "Gaussian" ]
f67e1139f0fbd585fd28061ddc17704a5764ceb689889babfdf12be88c14b8a8
from electrum_ltc.i18n import _ fullname = _('Revealer Backup Utility') description = ''.join(["<br/>", "<b>"+_("Do you have something to hide ?")+"</b>", '<br/>', '<br/>', _("This plug-in allows you to create a visually encrypted backup of your wallet seeds, or of custom alphanumeric secrets."), '<br/>', '<br...
vialectrum/vialectrum
electrum_ltc/plugins/revealer/__init__.py
Python
mit
473
[ "VisIt" ]
86406b840b144bd2f3aef1a37fc6e3b065702cf763bb9244e273c59a844dc31e
import ast import logging from . import AstChecker l = logging.getLogger(__name__) def _is_derived_from_listener(node): interesting = ("EventListener",) for base in node.bases: if isinstance(base, ast.Attribute): # something of the form module_name.BaseClassName if isinstance...
packagecontrol/package_reviewer
st_package_reviewer/check/file/ast/check_initialized_api.py
Python
mit
3,398
[ "VisIt" ]
6ea747ac0ea556fa54d6ac1b028ab928b11c093d5f745a6a2157b2761f08b97e
# -*- coding: utf-8 -*- # # Copyright © 2012 Pierre Raybaut # Licensed under the terms of the MIT License # (see winpython/__init__.py for details) """ WinPython Package Manager Created on Fri Aug 03 14:32:26 2012 """ # pypy3 to patch from 'python' to 'pypy3': 379 493 497 627 692 696 743 767 785 from __fu...
stonebig/winpython
winpython/wppm.py
Python
mit
32,079
[ "VTK" ]
81f99bba7ad081f4fc4b2f02ab853b68f33a6aceea886412758c5cdb2e091a8b
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-06-05 05:20 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('rte', '0002_auto_20180601_045...
sauli6692/ibc-server
rte/migrations/0003_auto_20180605_0520.py
Python
mit
4,243
[ "VisIt" ]
4a1c9891ed9645ec0c59be0f839109a0054a582350eb2e722a8fa7adb7b1194f
bad_list = [ "123456", "password", "12345678", "1234", "pussy", "12345", "dragon", "qwerty", "696969", "mustang", "letmein", "baseball", "master", "michael", "football", "shadow", "monkey", "abc123", "pass", "fuckme", "6969", "jordan", "harley", "ranger", "iwantu", "jennifer", "hunter", "fuck", "2000", "test", "batman"...
MLTSHP/mltshp
lib/badpasswords.py
Python
mpl-2.0
5,002
[ "Brian", "CRYSTAL", "Jaguar" ]
e12fca2fa210598dc1d429c06ea86762e102f12f3cb811a2237cef24a64dcd7c
import json from requests.models import RequestEncodingMixin from config import API from datausa.utils.format import param_format class Viz(object): """A visualization object to be built using D3plus. Attributes: config (dict): Configuration for D3plus data (List[dict]): A list of da...
tgarland1/datausa-site
datausa/visualize/models.py
Python
agpl-3.0
5,846
[ "MOE" ]
7afd1e45d65f56d50cd16fb3897a892995810fe331d160312d20447c2f823363
from ovito import * from ovito.io import * from ovito.modifiers import BondAngleAnalysisModifier import numpy node = import_file("../../files/CFG/fcc_coherent_twin.0.cfg") modifier = BondAngleAnalysisModifier() node.modifiers.append(modifier) modifier.structures[BondAngleAnalysisModifier.Type.FCC].color = (1,0,0) n...
srinath-chakravarthy/ovito
tests/scripts/test_suite/bond_angle_analysis_modifier.py
Python
gpl-3.0
906
[ "OVITO" ]
bb97bd179bc8648aa42b1daf51c78809b9fea0e28f73875dfe702e7dae1dddae
'''Term pattern matching.''' from aterm import visitor from aterm import parser class Match(object): '''Match object. Collects matched wildcards and vars as a term is matched against. ''' def __init__(self): self.args = [] self.kargs = {} def __iter__(self): '''Iterate over the wildcards.''' return i...
mewbak/idc
aterm/match.py
Python
lgpl-2.1
3,802
[ "VisIt" ]
7214db7c3dffdb768e9635fe9eb6b14f35887577e293c90fc926458fedd30e96
# # @file TestXMLError.py # @brief XMLError unit tests, C++ version # # @author Akiya Jouraku (Python conversion) # @author Michael Hucka # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by converting the file...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/xml/TestXMLError.py
Python
bsd-3-clause
4,409
[ "VisIt" ]
9e3ca5053c904a0a19581e2c921b96a51f93a9d88bb0cba5d0ce69042426db60
import numpy as np import scipy.stats #Note no longe resi 0 but resi 1 import ALA3, experiment_loader import mdtraj ff = "amber96" prior = "maxent" bayesian_bootstrap_run_list = [0,1] regularization_strength = ALA3.regularization_strength_dict[prior][ff] predictions, measurements, uncertainties = experiment_loader....
kyleabeauchamp/EnsemblePaper
code/info_graphic/save_observable.py
Python
gpl-3.0
667
[ "MDTraj" ]
3a57aa87522c90f80434dbe2bf8de8954a29fd7d2beb956f805fc40b72725bc1
#!/usr/bin/env python # Copyright (c) 2014, the GREAT3 executive committee (http://www.great3challenge.info/?q=contacts) # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted # provided that the following conditions are met: # # 1. Redistributions of ...
barnabytprowe/great3-public
validation/test_variable.py
Python
bsd-3-clause
13,359
[ "Galaxy" ]
c15f36a8d8a233939efc156f9902d0d6f91b22a5c0b38f16faeedc9394142a4d
import json import queue import time import websocket from nxtools import logging, log_traceback from firefly.core.common import config from firefly.common import CLIENT_ID from firefly.qt import QThread if config.get("debug"): websocket.enableTrace(True) def readlines(f): buff = b"" for ch in f.iter_...
immstudios/firefly
firefly/listener.py
Python
gpl-3.0
2,604
[ "Firefly" ]
da8bba539e1404289aca6ee01284cc1b827634a0b979cc9b0c172bcadcf27889
#!/usr/bin/env python # -*- coding: utf-8 -*- # gpload - load file(s) into Greenplum Database # Copyright Greenplum 2008 '''gpload [options] -f configuration file Options: -h hostname: host to connect to -p port: port to connect to -U username: user to connect as -d database: database to connect to ...
zhangh43/incubator-hawq
tools/bin/gpload.py
Python
apache-2.0
94,770
[ "ADF" ]
24af80c8046525da0866ec8699dd713d359aee26f0d6481f8bb45289b31b0176
import pytest from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine def pytest_addoption(parser): parser.addoption( '--sqlalchemy_url', action='store', default='sqlite:///:memory:', help='SQLAlchemy connection url to database under test.' ) @pytest.fixt...
koenedaele/skosprovider_sqlalchemy
tests/conftest.py
Python
mit
4,826
[ "VisIt" ]
fb2de44e3a7a5535fe07580858ed4b1684cfa472cebdb5bca01cf01b3ac8062b
# # Solution to Project Euler problem 185 # Philippe Legault # # https://github.com/Bathlamos/Project-Euler-Solutions import re from collections import deque # Definitely not the most efficient implementation def compute(): data = re.findall(r"\d+", DATA) num_digits = len(data[0]) hints = tuple(data[i] for i i...
Bathlamos/Project-Euler-Solutions
solutions/p185.py
Python
mit
2,268
[ "VisIt" ]
0655754903bb37b9ad85eef52ee0d3bb53d91aa4adb42043faced7ca4b48314d
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkMetaImageWriter(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vt...
chrisidefix/devide
modules/vtk_basic/vtkMetaImageWriter.py
Python
bsd-3-clause
488
[ "VTK" ]
10ae7d50b0dd2b07ca7290b40c69bd5ccfcfe83cee809cecc322a366ef51ec47
artifact = u"Artifact" creature = u"Creature" enchantment = u"Enchantment" land = u"Land" planeswalker = u"Planeswalker" instant = u"Instant" sorcery = u"Sorcery" permanents = frozenset({artifact, creature, enchantment, land, planeswalker}) nonpermanents = frozenset({instant, sorcery}) all = permanents | nonpermanen...
Julian/cardboard
cardboard/types.py
Python
mit
4,144
[ "Elk", "Octopus" ]
70c0a6ecd220f0aa55201325201b99c1ed19008ea89d2c3cfb3ea2326b632219
""" Unit test for ConsistencyInspector """ import unittest import datetime from mock import MagicMock from DIRAC import gLogger from DIRAC.Resources.Catalog.test.mock_FC import fc_mock # sut from DIRAC.DataManagementSystem.Client.ConsistencyInspector import ConsistencyInspector class UtilitiesTestCase( unittest.Tes...
petricm/DIRAC
DataManagementSystem/Client/test/Test_Client_DataManagementSystem.py
Python
gpl-3.0
9,178
[ "DIRAC" ]
683d5888d38730774c5eb38ae5d53d58b9c133d7cece617fb5d7a66e5b02c945
# (c) 2014, Brian Coca, Josh Drake, et al # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' cache: memcached short_description: Use ...
hryamzik/ansible
lib/ansible/plugins/cache/memcached.py
Python
gpl-3.0
6,858
[ "Brian" ]
3c2c155b56b0d1cfc47464f329f2360117b01a8781d6eff5cbbc0c00e25034c4
# TODO: Determine which tests are valid for GLSAR, and under what conditions # TODO: Fix issue with constant and GLS # TODO: GLS: add options Iterative GLS, for iterative fgls if sigma is None # TODO: GLS: default if sigma is none should be two-step GLS # TODO: Check nesting when performing model based tests, lr, wald,...
phobson/statsmodels
statsmodels/regression/linear_model.py
Python
bsd-3-clause
97,462
[ "Gaussian" ]
aec3f2dcf23bb1a2b4a6c81d91e08981f9fe6a5cb9bfa4baa77221a0370b8f00
#!/usr/bin/env python # @(#)root/tmva $Id$ # ------------------------------------------------------------------------------ # # Project : TMVA - a Root-integrated toolkit for multivariate data analysis # # Package : TMVA # # Python script: TMVAClassif...
dawehner/root
tmva/test/TMVAClassification.py
Python
lgpl-2.1
22,352
[ "Gaussian" ]
0d4616b78d689a50b73bdd0246963f2a76d36860d99403c2c2508f522fcfe8c4
#!/usr/bin/env python ''' setup board.h for chibios ''' import argparse import sys import fnmatch import os import dma_resolver import shlex import pickle import re import shutil parser = argparse.ArgumentParser("chibios_pins.py") parser.add_argument( '-D', '--outdir', type=str, default=None, help='Output directo...
tridge/ardupilot
libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py
Python
gpl-3.0
79,234
[ "CRYSTAL" ]
9c7c75af59d50b3c90b7bcc3b4ba302a96898b8e3124519527927f119bd12c30
# proxy module from __future__ import absolute_import from mayavi.modules.contour_grid_plane import *
enthought/etsproxy
enthought/mayavi/modules/contour_grid_plane.py
Python
bsd-3-clause
102
[ "Mayavi" ]
2fd3a803275b6e00e2e003816d05daa5edf1a574eeeca6cf1e9d8d63cea18713
import wx import wx.grid import wx.lib.scrolledpanel import os import os.path import platform import webbrowser from tools import resizeTextControlForUNIX from tools import logInfo class EnsembleBrowserPanel(wx.lib.scrolledpanel.ScrolledPanel): def __init__(self, parent, W, H): if (platform.system() == "Wi...
schenc3/InteractiveROSETTA
InteractiveROSETTA/scripts/ensemblebrowser.py
Python
gpl-2.0
11,301
[ "PyMOL" ]
dcedce87656dc7546bbfdf69b81e6912c83fe928d5d338a6b435b447fd106110
import vtk meta_image_filename = 'labels.mhd' # Prepare to read the file reader_volume = vtk.vtkMetaImageReader() reader_volume.SetFileName(meta_image_filename) reader_volume.Update() # Extract the region of interest voi = vtk.vtkExtractVOI() if vtk.VTK_MAJOR_VERSION <= 5: voi.SetInput(reader_volume.GetOutput(...
saullocastro/pyNastran
pyNastran/gui/vtk_examples/mesh_label_image.py
Python
lgpl-3.0
3,353
[ "VTK" ]
97024a41799e97c9e9ee53066695ee8ec4dcc022bdb872e9c72bab52988c6128