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
""" A mock of the DataManager, used for testing purposes """ from __future__ import absolute_import from __future__ import division from __future__ import print_function # pylint: disable=protected-access, missing-docstring, invalid-name, line-too-long from mock import MagicMock from DIRAC import S_OK dm_mock = Mag...
yujikato/DIRAC
src/DIRAC/DataManagementSystem/Client/test/mock_DM.py
Python
gpl-3.0
1,432
[ "DIRAC" ]
a18e56712ca34aa96f1dea3cc2ff0074fe1cbe752ffa1564b183227c32974ca9
from rdkit import Chem from rdkit import RDConfig import time, sys, gzip import pickle from rdkit.RDLogger import logger logger = logger() logger.info('reading smarts') qs = [] smas = [] for line in file(RDConfig.RDDataDir + '/SmartsLib/RLewis_smarts.txt', 'r').readlines(): if line[0] == '#': continue line = ...
bp-kelley/rdkit
Data/SmartsLib/tests/bench2.py
Python
bsd-3-clause
1,271
[ "RDKit" ]
5b7d79b54e6beb848824cc652d6b79ae47794df2b3e2850feef3a289e3e72851
# Copyright (C) 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 versio...
mkuron/espresso
testsuite/python/rotational-diffusion-aniso.py
Python
gpl-3.0
14,255
[ "ESPResSo" ]
2fe72aae6c9e82b66db6d98c5100ae99325e54e559e4d9c582e497ea0667c493
# Copyright 2014 Google Inc. 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 applicable law or ...
CSCI1200Course/csci1200OnlineCourse
modules/notifications/cron.py
Python
apache-2.0
5,927
[ "VisIt" ]
e6cdeb4a2f57fa2801b2e7a963e011057ba022f54aae60014d377a8e86c9356e
#!/usr/bin/env python # -*- coding: utf-8 -*- """ PURPOSE: Create a new post AUTHOR: Dylan Gregersen DATE: Wed Oct 29 11:03:40 2014 """ # ########################################################################### # # import modules from __future__ import print_function, division, unicode_literals import os import io i...
bkimmig/personal_webpage_pelican
output/blog/create_post.py
Python
gpl-2.0
943
[ "Brian" ]
4b1d8f05bd14f100802a904367440f02f90ed07843fe8dff4a4c6a324cb7a502
# Copyright (C) 2012 C. R. Leavett-Brown # You may distribute under the terms of either the GNU General Public # License or the Apache v2 License, as specified in the README file. import WhoZwho as Z from UserLogin import GoLogout import logging logger = logging.getLogger('WhoZwho.update') import os.path from django...
ColinLB/WhoZwho
DirectoryAddName.py
Python
gpl-3.0
4,209
[ "VisIt" ]
93f40839be17532bc8865a8bb3a09183402fa9828c0e4544fb00ff9950d576ca
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
resources/pyinstaller/hook-openlp.py
Python
gpl-2.0
2,553
[ "Brian" ]
b58c4e57fdfafa1652aef0af17ef5abc4629490fb9e1330a770ea70973adac97
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham, A. Roitman # Copyright (C) 2007-2009 B. Malengier # Copyright (C) 2008 Lukasz Rymarczyk # Copyright (C) 2008 Raphael Ackermann # Copyright (C) 2008 Brian G. Matherly # # This program is free soft...
rdp/legado
src/cli/argparser.py
Python
gpl-2.0
14,684
[ "Brian" ]
c9f2b0c71d4b465ebec95acbe651d7f494485706d3cd986c2e9a936fa5f64bb5
# RPi Meteor Station # Copyright (C) 2016 Dario Zubovic, Denis Vida # # 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. ...
CroatianMeteorNetwork/RMS
RMS/ConfigReader.py
Python
gpl-3.0
47,048
[ "Gaussian" ]
ddc4517ae0bd688f198202e5fed69c02c914ba1d9af36c8af59e880d8c92b172
import pathlib import pytest from util import full from loprop.core import penalty_function, AU2ANG, pairs from loprop.dalton import MolFragDalton from .common import LoPropTestCase from . import h2o_dyn_data as ref from . import h2o_data thisdir = pathlib.Path(__file__).parent case = "h2o_dyn" tmpdir = thisdir / c...
vahtras/loprop
tests/test_h2o_dyn.py
Python
gpl-3.0
7,700
[ "Dalton" ]
bfb10ef80389add911e37379cd1c84d3c8c6d3332884258ef0ed90c83bb8f1d3
# # mainTab # tab = self.notebook.mainTab tab.settings['Program'] = 'experiment' tab.settings['Output file name'] = 'constant.exp' # # Change the first scenario tab to single crystal # tab = self.notebook tab.switchScenario(0,scenarioType='Single crystal') # tab = self.notebook.mainTab tab.settings['Program'] = 'experi...
JohnKendrick/PDielec
Examples/Experiment/constant/script.py
Python
mit
1,463
[ "CRYSTAL" ]
c69286ef38fc05e719a071b9383c6cbebd80e299b9e5840c200d26e1d7672b94
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # climactic documentation build configuration file, created by # sphinx-quickstart on Thu Jun 18 00:14:22 2015. # # 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 # ...
b33j0r/climactic
docs/source/conf.py
Python
gpl-2.0
6,476
[ "Brian" ]
7ee975bcc5ebc0d4f96d94ab926d18fb5134c85fe817d98775e18c90ceedf969
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
Suwmlee/XX-Net
gae_proxy/server/lib/google/appengine/tools/sdk_update_checker.py
Python
bsd-2-clause
14,750
[ "VisIt" ]
737b17dda9c790e983dba88c5ee0a22646953d8f1bfd04905dd136b38bc6af02
#!/usr/bin/python import os, sys # low level handling, such as command line stuff import string # string methods available import re # regular expressions import getopt # comand line argument handling from low import * # custom functions, written by myself import anydbm # index databases (file ...
lotharwissler/bioinformatics
python/kegg/kegg-parser.py
Python
mit
3,139
[ "Biopython" ]
09146523cc609890eef2c2b1e4ba8c544fd55f9c9ce71cf208c69dee4c4a076a
# -*- coding: utf-8 -*- from statsmodels.compat.pandas import Appender, Substitution, to_numpy from collections.abc import Iterable import datetime as dt from types import SimpleNamespace import warnings import numpy as np import pandas as pd from scipy.stats import gaussian_kde, norm from statsmodels.tsa.base.predi...
jseabold/statsmodels
statsmodels/tsa/ar_model.py
Python
bsd-3-clause
64,241
[ "Gaussian" ]
4d0a5b3f72b500dd6fc10e9f6db44968eb38b70a08552c271eb64f2f0f5918e7
#!/usr/bin/env python # Author: Samuel Ponc\'e # Date: 30/04/2013 -- 11/09/2014 # Version: 1.3 # Script to compute the ZPR import sys import os import copy try: from rf_mods import system except ImportError: import warnings warnings.warn("The system module is missing!") raise from rf_mods import zpm import mul...
jmbeuken/abinit
scripts/deprecated/temperature_para.py
Python
gpl-3.0
22,400
[ "ABINIT" ]
c75eda13caf61f77f0900f1a050ec5e23c0cafae75b5c16b515056de078e972b
""" This module is for writing files that summarize the results of the pipeline. """ """ Copyright 2010 Jarl Haggerty 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...
jarl-haggerty/profelis
src/main/jython/profelis/report.py
Python
apache-2.0
5,991
[ "BLAST" ]
f54a559fb6c7d638ff7eddd5b1270df7cf00d06c266224df640a78050d4b8bd2
from __future__ import division, absolute_import, print_function import numpy as np from numpy.matrixlib.defmatrix import matrix, asmatrix # need * as we're copying the numpy namespace (FIXME: this makes little sense) from numpy import * __version__ = np.__version__ __all__ = np.__all__[:] # copy numpy namespace __a...
jorisvandenbossche/numpy
numpy/matlib.py
Python
bsd-3-clause
9,757
[ "Gaussian" ]
0a09c0fdd3589f114ca9fc327288a63201b38c80890b5bba5d1a703c4c8fbd72
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2019 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
CDSherrill/psi4
psi4/driver/gaussian_n.py
Python
lgpl-3.0
7,056
[ "Gaussian", "Psi4" ]
60e4b68e6a427a196cbcbbdf3cae0d9ea3e3bc2dd6aeee64eba6b56c54691b4f
import requests def find_a_movie(form): if form.is_valid(): search_key = form.cleaned_data.get('search', '') choice = form.cleaned_data.get('choice', '') # The requests package will generate a request with the required data: # The URL looks like : # https://www.omdbapi.com/?t=Firefly...
rish4bhn/movieclue
movieclue/services.py
Python
mit
2,756
[ "Firefly" ]
622b20d7b0b0c1dfc2f42a268f9efa200b53d42773d8e9bb7a5cc94f90205c58
# -*- coding: utf-8 -*- """ Sahana Eden Incident Reporting Model @copyright: 2009-2015 (c) Sahana Software Foundation @license: MIT 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 Sof...
anurag-ks/eden
modules/s3db/irs.py
Python
mit
56,604
[ "VisIt" ]
3e7075e1ec93cc9985a196f6910dff41dbe8324ce2b05056e5f09ec9f6c8bed3
'''Various extensions to distributions * skew normal and skew t distribution by Azzalini, A. & Capitanio, A. * Gram-Charlier expansion distribution (using 4 moments), * distributions based on non-linear transformation - Transf_gen - ExpTransf_gen, LogTransf_gen - TransfTwo_gen (defines as examples: square, n...
wesm/statsmodels
scikits/statsmodels/sandbox/distributions/extras.py
Python
bsd-3-clause
42,340
[ "Gaussian" ]
c0cad9ba97dac3ca167add44300458d03d96d5241cd4ecbb86ff233ac924a4a0
#!/bin/env python3 import numpy as np import os, sys, warnings import ase import copy from time import time from pyneb_structureformat import supercell import warnings def deprecate(fun): warnings.warn("This function ({} > {}) will be removed in future updates!".format(fun.__module__,fun.__name__),Depr...
andrew031191/pyneb
pyneb_parser_castep.py
Python
lgpl-3.0
33,759
[ "ASE", "CASTEP", "CRYSTAL" ]
5b7226f9575645f822bddd0ce6355f849d46b3572e23e4e1982ec504deda9ed5
# -*-python-*- # # Copyright (C) 1999-2006 The ViewCVS Group. All Rights Reserved. # # By using this file, you agree to the terms and conditions set forth in # the LICENSE.html file which can be found at the top level of the ViewVC # distribution or at http://viewvc.org/license-1.html. # # For more information, visit h...
foresthz/fusion5.1
www/scm/viewvc/lib/viewvc.py
Python
gpl-2.0
127,915
[ "VisIt" ]
96318994243912764b7e909f02caa007467fddc67b69a939de91ea8948e5c246
# coding=utf-8 import logging import etcd import gevent from octopus import constant from octopus import err from octopus.proto import config_proto from octopus.util.stoppable import Stoppable log = logging.getLogger(constant.LOGGER_NAME) class OctpConfig(Stoppable): def __init__(self, etcd_options, service_nam...
ideascf/octopus
config/octp_config.py
Python
mit
2,721
[ "Octopus" ]
86efd50bc332cbcd6e89ca4e00c72eefb1d9c8f9ccda9d1e1f1b77747efbc3d9
from sympy.core.basic import S, C from sympy.core.function import Function from sympy.core.evalf import get_integer_part, PrecisionExhausted ############################################################################### ######################### FLOOR and CEILING FUNCTIONS ######################### #################...
mattpap/sympy-polys
sympy/functions/elementary/integers.py
Python
bsd-3-clause
4,952
[ "VisIt" ]
242fc2012f6ce61b976148376b33a54c392c4ba1964b2e45433c6b00ff404f0a
#!/usr/bin/python -tt # -*- coding: utf-8 -*- # vim: set et ts=2 sw=2 sts=2: # # Usage: # python mk_cred.py < copy_paste_credential.txt # python mk_cred.py update # python mk_cred.py new | init # python mk_cred.py update_key CONSUMER_KEY # python mk_cred.py bash_export # # actions: # # stdin parser # copy_p...
opensource-expert/ovh-tools
mk_cred.py
Python
gpl-3.0
4,696
[ "VisIt" ]
2642c879a96416ad24ec475b7dfaf3f9c46870de6679a3c63c7e376231031485
import os from netCDF4 import Dataset from pyproj import Proj import numpy import rasterio from trefoil.netcdf.crs import PROJ4_GEOGRAPHIC from trefoil.netcdf.conversion import netcdf_to_raster # TODO: need 3d test file # TODO: need better test fixtures to fabricate data def test_netcdf_to_raster(tmpdir): outfil...
consbio/clover
trefoil/netcdf/tests/test_conversion.py
Python
bsd-3-clause
1,065
[ "NetCDF" ]
6441376f1fbff47795cf036f1d431dfa0a7791613bda24465cfce95b77df8ac8
""" Global average annual temperature plot ====================================== Produces a time-series plot of North American temperature forecasts for 2 different emission scenarios. Constraining data to a limited spatial area also features in this example. The data used comes from the HadGEM2-AO model simulations...
davidnmurray/iris
docs/iris/example_code/Meteorology/COP_1d_plot.py
Python
gpl-3.0
4,323
[ "NetCDF" ]
85787f6fbe0ad18a8db63f06893fecda8e656b75f7e8313e6019d8ad5f1753f3
#!/usr/bin/env python import sys import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib import ticker, gridspec import util as u eV2wn = u.energy_conversion['wn'] / u.energy_conversion['eV'] # # Lorentzian gamma : FWHM # Gaussian sigma : Std Dev # def lorentzian(SpecRange, fr...
dpadula85/VAISD
stable/Spec.py
Python
gpl-3.0
5,744
[ "Gaussian" ]
2dbb13c359d7f90bf7ab590489e5a47692b231038a3d532a3eb38b5ac6866b23
"""module for simple .fits image tasks (rotation, clipping out sections, making .pngs etc.) (c) 2007-2014 Matt Hilton U{http://astlib.sourceforge.net} Some routines in this module will fail if, e.g., asked to clip a section from a .fits image at a position not found within the image (as determined using the WCS). Wh...
boada/astlib_dev
astLib/astImages.py
Python
lgpl-2.1
50,443
[ "Gaussian" ]
58a990412f6053110ac73fd6b6ce55e543750f2ef573d78c3beaa58d37874419
import io import os import re gems = [ 'ruby', 'garnet', 'topaz', 'amber', 'heliodor', 'peridot', 'green_sapphire', 'phosphophyllite', 'aquamarine', 'sapphire', 'tanzanite', 'amethyst', 'agate', 'morganite', 'onyx', 'opal', 'carnelian', 'spinel', ...
SilentChaos512/SilentGems
scripts/update_texture_names.py
Python
lgpl-3.0
1,476
[ "Amber" ]
5383d6a4f5f71d9171157bcce77ada176533df5722561bd4f7a202260cb2b325
# Copyright (C) 2010-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
mkuron/espresso
samples/object_in_fluid/motivation.py
Python
gpl-3.0
5,900
[ "ESPResSo", "VTK" ]
2a0868ec6b772d513b2c68d9536aeef98fa344551645ef35a25728a31e59e7e1
"""Random variable generators. integers -------- uniform within range sequences --------- pick random element pick random sample generate random permutation distributions on the real line: ------------------------------ uniform ...
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-2.3/Lib/random.py
Python
mit
27,634
[ "Gaussian" ]
0305d48dcdfc63d6522668ecce2471ee33e45a579ff53204f01a65d1ece5229f
#!/usr/bin/env python3 import os import sys import random import time from random import seed, randint import argparse import platform from datetime import datetime import imp from time import sleep # from run_parameter import * parser = argparse.ArgumentParser( description="This is a python3 script to\ automa...
luwei0917/awsemmd_script
run_mpi.py
Python
mit
5,257
[ "LAMMPS" ]
bd419bf3680a0afd86179ec5739dcee34a9405882516b3a5ec4684cce6ae803f
""" C helper for Miasm: * raw C to Miasm expression * Miasm expression to raw C * Miasm expression to C type """ from pycparser import c_parser, c_ast from miasm2.expression.expression_reduce import ExprReducer from miasm2.expression.expression import ExprInt, ExprId, ExprOp, ExprMem from miasm2.core.ctypesmngr imp...
chubbymaggie/miasm
miasm2/core/objc.py
Python
gpl-2.0
52,826
[ "VisIt" ]
55c475c1f324b7a76d090daa32e25173322ecbbc896847efe73ab9673e9b06e1
""" Commonly used fit functions (and some utility functions) meant to be used with :py:meth:`scipy.optimize.curve_fit`. """ import numpy as np # Fit functions # ------------- def gaussian(t, A, B, t0, sigma): r""" Computes the Gaussian profile .. math:: f(t; A, B, t_0, \sigma) = A \exp \le...
mivade/mvdlib
mvdlib/fit_functions.py
Python
gpl-3.0
3,073
[ "Gaussian" ]
88de80d2c1f21ec3de38cf8761fc91136539abc5d4315ef81a788f53ac62dfd1
#!/usr/bin/env python import unittest import validate_header class UtilTests(unittest.TestCase): def test_create_field_dict(self): test_line = '@SQ\tSN:T:G\tSL:2\n' self.assertEqual(validate_header.create_field_dict(test_line), { 'SN': 'T:G', 'SL': '2' }) def test_create_field_set(self): ...
ernfrid/oneoffs
ccdg_synch/test_validate_header.py
Python
mit
4,331
[ "BWA" ]
cdd353641374ec8f2e3424dbef0108bdd945c8df0d985e7641eff72ef182716d
#pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # # # (c) 2010...
yipenggao/moose
python/chigger/annotations/ImageAnnotation.py
Python
lgpl-2.1
4,654
[ "MOOSE", "VTK" ]
f31f1c3ec138936c64ae8e5c4c08c648a00dcc12083b0bd63b64a0ea263044bc
#!usr/bin/python # Copyright 2016, Rohan Dandage <rraadd_8@hotmail.com,rohan@igib.in> # This program is distributed under General Public License v. 3. import sys from os.path import splitext, exists, basename import logging from multiprocessing import Pool import pandas as pd import subprocess import logging loggin...
rraadd88/dms2dfe
dms2dfe/ana0_fastq2sbam.py
Python
gpl-3.0
2,822
[ "Bowtie" ]
48be8dfb3c9d48ee2058d5b74e83b19d79d3e9bd5ab9aba451fe4ed420003c5c
############################################################################### ## ## Copyright (C) 2014-2015, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
hjanime/VisTrails
scripts/gen_vtk_examples/convert_to_vt.py
Python
bsd-3-clause
4,382
[ "VTK" ]
03d843ac4e2bcabb0fbad6949d4bc8c2c00c018a162ac55e6aed05a64d7009e4
from __future__ import unicode_literals import logging import time from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.core.exceptions import MultipleObjectsReturned, ObjectDoesN...
1tush/reviewboard
reviewboard/reviews/views.py
Python
mit
62,005
[ "VisIt" ]
d22797d4d6370e8bfc4adb7ea2508a11cb0bdd4160d690cf843969a9332f277a
# -*- coding: utf-8 -*- import pandas as pd import time import string import numpy as np import datetime import math # define my stopwords list sw_oj = open("D:\\Manuscript 5\\1 Original Data (download on 2016.10.26)\\stopwords from google history and MySQL.txt", 'r') sw_oj = list(sw_oj) MySW = '' for i ...
albertwang21/LoanSelect
NeuralBased/1 FeatureExtraction.py
Python
mit
24,792
[ "Jaguar" ]
19ae2527ba00fc07cd7aa21a7fab9c0849b20348108e6cbe680436ad476df48d
# Copyright (c) 2010-12, Pierre-Antoine Delsart, Kurtis Geerlings, Joey Huston, # Brian Martin, and Christopher Vermilion # #---------------------------------------------------------------------- # This file is part of SpartyJet. # # SpartyJet is free software; you can redistribute it and/or modify # ...
mickypaganini/SSI2016-jet-clustering
spartyjet-4.0.2_mac/python/spartyjet/gui/JetRetrieverLive.py
Python
mit
2,906
[ "Brian" ]
9b8738dff72e508428ec9786fe0265de49cf4953a0c2dda5068225b3fb85a9ea
#This file is the GUI layout for the Contact Tab and Bug Submission page. from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): return s try: _encoding = QtGui.QApplication.UnicodeUTF8 def _translate(context, text, disambig): ...
CPSC491FileMaker/project
About.py
Python
gpl-2.0
5,072
[ "VisIt" ]
80a56a7f402492bb3bd650ebc8f495d7a0161e40923c9c2e112536f51797ec8f
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 ...
2013Commons/HUE-SHARK
apps/useradmin/src/useradmin/tests.py
Python
apache-2.0
39,307
[ "MOE" ]
e30e39cc3447f144aac6778f55a5cf40495f381c9d8e73fd8c02dc56c7f90cc7
'''NetworkManager mock template This creates the expected methods and properties of the main org.freedesktop.NetworkManager object, but no devices. You can specify any property such as 'NetworkingEnabled', or 'WirelessEnabled' etc. in "parameters". ''' # This program is free software; you can redistribute it and/or m...
semafor/python-dbusmock
dbusmock/templates/networkmanager.py
Python
lgpl-3.0
11,716
[ "VisIt" ]
8c2ff77d7352a9b13c68617d4659d0e4cdf25fa9ef3172dc568509227e7ed846
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkTreeReader(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk.vtk...
chrisidefix/devide
modules/vtk_basic/vtkTreeReader.py
Python
bsd-3-clause
468
[ "VTK" ]
3352a9ae100ca90ad83c75bae6ee189c08eb075b5bad6a6d37fb0dbade8388a9
__author__ = 'Brian Nguyen' def greeting(msg): print("We would like to say: " + msg)
b-nguyen/cs3240-labdemo
helper.py
Python
mit
90
[ "Brian" ]
73c0f6efe73bf52da1019024ff993953389375ee3820a43a19b098f9f0194915
# -*- coding: utf-8 -*- ''' Observations: Open access archive app for Las Cumbres Observatory Global Telescope Network Copyright (C) 2014-2015 LCOGT 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, ...
LCOGT/observations
app/images/views.py
Python
gpl-3.0
60,945
[ "Firefly", "Galaxy", "Gaussian" ]
67338285dbf84350baf613f9c8d966381c0af14b61b5338f1e48dbde302b688d
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' Use BLOCK program as the DMRG solver and parallel DMRGSCF on different nodes. BLOCK is invoked through system call. Different settings.MPIPREFIX needs to be specified for PBS and SLURM systems. ''' from pyscf import gto from pyscf import scf ...
gkc1000/pyscf
examples/mcscf/50-dmrgscf_with_block.py
Python
apache-2.0
956
[ "PySCF" ]
2aac11a840d04a962f8a6f9759bcad04f9227e76023d282758e746eae71bd437
# ============================================================================ # # Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
kurtraschke/camelot
camelot/view/controls/editors/embeddedmany2oneeditor.py
Python
gpl-2.0
5,328
[ "VisIt" ]
f53b25cb2524051c027a4811a4766667e6e8fc2c4354dbbd2e2e7c4192c2b452
# # 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...
aosagie/spark
python/pyspark/mllib/clustering.py
Python
apache-2.0
37,048
[ "Gaussian" ]
4d57a06b8bf8811df4497c0caa52d127f0df24239492e3c32c28fccfa2e39dfc
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # jobqueue - [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 ...
heromod/migrid
mig/server/jobqueue.py
Python
gpl-2.0
5,844
[ "Brian" ]
f5759302bd1b4987d0dfe67931ef75d620c5ccb903f1d8dced1912eb82d5c436
#! /usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-admin-bdii-cluster # Author : Adria Casajus ######################################################################## """ Check info on BDII for Cluster """ __RCSID__ = "$Id$" from DIRAC.Core...
avedaee/DIRAC
Core/scripts/dirac-admin-bdii-cluster.py
Python
gpl-3.0
1,471
[ "DIRAC" ]
86653b836f807763060b859656f702796fa95592176e7de831676d7de39b75e5
#!/usr/bin/env python ''' Description: OWTF imap agent daemon plugin, to emulate user clicks via email ''' import re import subprocess # TODO: Play with below and see if it is better or not # http://daringfireball.net/2009/11/liberal_regex_for_matching_urls # url_regex = re.compile(r'\b(([\w-]+://?|www[.])[^\s()<>]+(...
DarKnight--/owtf
agents/imap/payloads/link_clicker.py
Python
bsd-3-clause
791
[ "VisIt" ]
deb62b2c08caf2d660bf71a43a2d9cba4b73d452196fd891843e291d0649842e
# # # Copyright 2009-2018 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (...
bartoldeman/easybuild-framework
easybuild/tools/filetools.py
Python
gpl-2.0
62,468
[ "NetCDF" ]
bf32370ac163d330aed602d13b874ef7a28891574d4baded601656801c544124
""" DIRAC.RequestManagementSystem.Agent package """ from __future__ import absolute_import from __future__ import division from __future__ import print_function
yujikato/DIRAC
src/DIRAC/RequestManagementSystem/Agent/__init__.py
Python
gpl-3.0
164
[ "DIRAC" ]
ec79539fe3df13d026645fc986a7c61b21d359254579140d1ffa241a57d5cb24
''' Created on 4 Sep 2015 @author: maxz ''' import unittest import numpy as np import GPy class BGPLVMTest(unittest.TestCase): def setUp(self): np.random.seed(12345) X, W = np.random.normal(0,1,(100,6)), np.random.normal(0,1,(6,13)) Y = X.dot(W) + np.random.normal(0, .1, (X.shape[0], W.s...
befelix/GPy
GPy/testing/minibatch_tests.py
Python
bsd-3-clause
13,260
[ "Gaussian" ]
8d8d1f3434ba397d51f7c0bd48cef93d3a6810eb13128b2a4f10f8f1d1972858
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
fweik/espresso
samples/visualization_cellsystem.py
Python
gpl-3.0
2,500
[ "ESPResSo" ]
301e0607feab7f50916cd58a85e84b5c6429031eabd14945c7634de4e0f3f704
from __future__ import annotations import logging import math import os import xml.dom.minidom from xia2.Decorators.DecoratorFactory import DecoratorFactory from xia2.Driver.DriverFactory import DriverFactory from xia2.Handlers.Phil import PhilIndex # this was rather complicated - now simpler! from xia2.lib.Symmetry...
xia2/xia2
src/xia2/Wrappers/CCP4/Pointless.py
Python
bsd-3-clause
23,965
[ "CRYSTAL" ]
838b98444993ca56435ce77d33cc6a218a7eff55e793f40390b4675ec26f79cd
from pygments.lexer import RegexLexer, bygroups, include from pygments.token import * class BlogLexer(RegexLexer): name = 'BLOG' aliases = ['blog'] filenames = ['*.blog', '*.dblog'] operators = ['\\-\\>', ':', '\\+', '\\-', '\\*', '/', '\\[', ']', '\\{', '}', '!', '\\<', '\\>', '\\<=', '\\>=', '==', ...
BayesianLogic/blog
tools/blog_py_lexer/blog/lexer.py
Python
bsd-3-clause
3,373
[ "Gaussian" ]
3be2766fa44a2c858eda6d343a76e2435d04f69e183264595fd65485e03a4808
import sys import time import numpy as np import multiprocessing class BayesianRegress: def __init__(self, lambda_=0.1, sigma_=2.5, coef_=None, intercept_=None, fitsigma=True, fitlambda=False): """Initialize a Bayesian regressor. _lambda: L2 constrains of weights _sigma: ...
huangyh09/brie
brie/version1/model_brie.py
Python
apache-2.0
15,651
[ "Gaussian" ]
1fd02fdd0af4ab19befeb54fbdadc71adb96adc094b065bac7dd20fab0939e95
import six from parsimonious.nodes import NodeVisitor from collections import OrderedDict import operator class WhereVisitor(NodeVisitor): def __init__(self, parser): self.db = parser.db self.columns = parser.columns self.from_tables = parser.from_tables def collection_to_table(sel...
sapetnioc/doqapy
doqapy/backends/sqlite/ast_to_sqlite.py
Python
mit
7,055
[ "VisIt" ]
5e6ce76b94cb9a679a97a68830bf779bbfc32eb87a07869b225afe0e152d1216
#!/usr/bin/env python import time import fiona import multiprocessing from rasterio.plot import show import math import os import pandas import click #import matlibplot.pyplot as plt import numpy as np import numpy.ma as ma import rasterio from rasterio.plot import show, show_hist from projections.rasterset import Ra...
ricardog/raster-project
user-scripts/adrid/projections-02-cs.py
Python
apache-2.0
10,128
[ "ADF" ]
c4e831ba7167368c08f5c2fb76501b486beb024fe410d66d38f48fa43520627f
import matplotlib.pyplot as plt import argparse import collections import matplotlib.mlab as mlab import numpy as np from scipy.optimize import curve_fit from scipy.stats import linregress import math def main(args_dict): def gauss_function(x, a, x0, sigma): return a*np.exp(-(x-x0)**2/(2*sigma**2)) def wavelength...
chuck-knox/compton-scattering-experiment
compton/plot_ascii_data.py
Python
apache-2.0
15,546
[ "Gaussian" ]
eadf4ba384335f7c56912ac70f8a8387ae5f46f2c5fb4a004caa389a79aaa98d
#!/usr/bin/env python3 # @package create_timeline # \author Andy Aschwanden, University of Alaska Fairbanks, USA # \brief Script creates a timeline for enviornmental forcing. # \details Script creates a timeline file that can be used with # the -time_file option and -*_given_file to control the applicaton # of forcing...
pism/pism
util/create_timeline.py
Python
gpl-3.0
5,436
[ "NetCDF" ]
725cc77a9743863d4f1f6a16761c25ab6b21b2241cf14f6cd9ce8a85aa96fb45
""" Histogram-related functions """ from __future__ import division, absolute_import, print_function import operator import warnings import numpy as np from numpy.compat.py3k import basestring __all__ = ['histogram', 'histogramdd', 'histogram_bin_edges'] # range is a keyword argument to many functions, so save the ...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/numpy/lib/histograms.py
Python
gpl-3.0
36,413
[ "Gaussian" ]
9c1e10c4e2f7d70ffc1c872514bb5ae41cc3e9b58aafc42f0413575f70459e8a
from .. import Provider as PersonProvider class Provider(PersonProvider): # conforming to http://nl.wikipedia.org/wiki/Achternaam#Naamswijziging and # http://en.wikipedia.org/wiki/Dutch_name#Dutch_naming_law_.28surnames.29 # by adding a "-" between the two last names when someone is married formats = ...
joke2k/faker
faker/providers/person/nl_NL/__init__.py
Python
mit
32,776
[ "Amber", "Brian", "FLEUR" ]
054ba4b04f4d9c40c58315c689d5b3c2f9a529de136678672bf240ef5924a4aa
def parse_inner_window(win_path): '''Return inner_win = (inner_window_min, inner_window_max) given in the Wannier90 input file and win_path. ''' lines = None with open(win_path, 'r') as fp: lines = fp.readlines() inner_win = [None, None] for line in lines: lsp = line.strip()...
tflovorn/tmd
tmd/wannier/parseWin.py
Python
mit
654
[ "Wannier90" ]
793cfa22da63be07979bf447515a9e4b27eef22619744e07bf82ae76ba3e6090
""" Implementation of Harwell-Boeing read/write. At the moment not the full Harwell-Boeing format is supported. Supported features are: - assembled, non-symmetric, real matrices - integer for pointer/indices - exponential format for float values, and int format """ from __future__ import division, print_...
lhilt/scipy
scipy/io/harwell_boeing/hb.py
Python
bsd-3-clause
18,472
[ "exciting" ]
12278794b787d74cbf24733202d7088cf21ea88875c417068f7a18b376f38a52
#!/usr/bin/env python # coding=utf-8 """ Unit tests for the Python port of SMAZ Copyright (c) 2014 Max Smith except for portions of Moby Dick which are in the public domain Public domain """ from unittest import TestCase import bz2 import zlib import datetime import itertools import random import sys import os from s...
CordySmith/PySmaz
tests/test_smaz.py
Python
bsd-3-clause
37,731
[ "VisIt" ]
0deb74b8fb7a1bd07ba70ac48719aa57705d0422b2532bc2351d3ca7077564ca
"""gro.py: Used for loading Gromacs GRO files. """ ############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2015 Stanford University and the Authors # # Authors: Robert McGi...
swails/mdtraj
mdtraj/formats/gro.py
Python
lgpl-2.1
19,924
[ "Gromacs", "MDTraj", "OpenMM" ]
c10d18b243353a4a8c8d3be33074ee5860bffa266725ab0baa65729f29bf1978
#!/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...
AdamISZ/joinmarket_core
joinmarket_core/old_mnemonic.py
Python
gpl-3.0
17,925
[ "CRYSTAL", "VisIt" ]
551763fa8402ff301d340c8980140e13b4b6bd9001593ead03624198a9f7c308
# -*- coding: UTF-8 -*- # @author: xuyong # @file: 104_network-programming_2_server.py # @time: 2017/9/8 上午9:59 # @desc: 服务端 import socket # 导入 socket 模块 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # 创建 socket 对象 host = ''; # host = socket.gethostname() # 获取本地主机名 port = 18110; # 设置端口 s.bind((host, p...
xiaoyong0312/Python-dev
Python2.x/Python2.x-1-high/104_network-programming_2_server.py
Python
mit
627
[ "VisIt" ]
d268ac7c7c111dd8edaa46807c2f64702a22d66e7bc30f0796a5cdd52e602fe5
#!/usr/bin/env python # # $File: recRate.py $ # # This file is part of simuPOP, a forward-time population genetics # simulation environment. Please visit http://simupop.sourceforge.net # for details. # # Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org) # # This program is free software: you can redistribute it...
BoPeng/simuPOP
docs/recRate.py
Python
gpl-2.0
1,656
[ "VisIt" ]
23aa47e37ee90cfc208c98bbe8546b783076dbaf56c6b7699d0b96e8c11e1039
#!/usr/bin/python # -*- coding: utf-8 -*- # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # ...
haad/ansible-modules-core
files/acl.py
Python
gpl-3.0
10,359
[ "Brian" ]
a6e1327535a3364a8fff33e9ce024010a914f53ea39c5c5e6310336ae5b906fd
#!/usr/bin/env python # generate peak set complete files, binding region files, and report files! import sys import time import optparse import general import numpy import pickle import pdb import metrn import modencode import os print "Command:", " ".join(sys.argv) print "Timestamp:", time.asctime(time.localtime()) ...
claraya/meTRN
python/mapPeaks.py
Python
mit
15,001
[ "BWA", "Bowtie" ]
4f32c0ac70be2aca3cab489155197c07f4fafb1c9058ff947d5530486b96e79a
# # Copyright (C) 2003 Rational Discovery LLC # All rights are reserved. # from __future__ import print_function # from elementtree.ElementTree import ElementTree, Element, SubElement import time from xml.etree.ElementTree import ElementTree, Element, SubElement def _ConvertModelPerformance(perf, modelPerf): if len...
rvianello/rdkit
rdkit/ML/ModelPackage/PackageUtils.py
Python
bsd-3-clause
4,647
[ "RDKit" ]
0639bc9a6350fc65a63198e2480940c3e36c71eba62e82f23d91ca31569e0ecb
# # Copyright (C) 2013,2014 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 l...
mgusenbauer/espresso
tools/blockfile.py
Python
gpl-3.0
6,178
[ "ESPResSo" ]
a10b2079e1402bf25258afe31bbc3f58965450b5699e95704c8e9ef57bc4fde0
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under th...
kain88-de/mdanalysis
package/MDAnalysis/analysis/encore/dimensionality_reduction/DimensionalityReductionMethod.py
Python
gpl-2.0
5,948
[ "MDAnalysis" ]
7c6777108fe979b9073d9abb31248ccdb039f6cffea5872fe72d443f4dce849e
""" Plots the 2D velocity magnitude from a IBAMR simulation at saved time-steps using the visualization software VisIt. """ from snake.ibamr.simulation import IBAMRSimulation simulation = IBAMRSimulation() body_name = 'flyingSnake2dAoA35ds004filledInside' # file name (no extension) simulation.plot_field_contours_v...
barbagroup/cuIBM
external/snake-0.3/examples/ibamr/plotVelocityMagnitude.py
Python
mit
602
[ "VisIt" ]
eaa8bbe3b3fd0b51652acf8d7c57c0e0c26f83a3e0c92000a624593ad322c885
from collections import defaultdict from itertools import count from operator import attrgetter from os import path as op import matplotlib.pyplot as plt import pandas as pd import numpy as np from tqdm import tqdm import pickle from ..exceptions import PipelineException try: import cv2 except ImportError: pr...
fabiansinz/pipeline
python/pipeline/utils/eye_tracking.py
Python
lgpl-3.0
41,016
[ "Gaussian" ]
66f029ca889b8dcbc4cd46eadee15ad1d1574dc3a2edd90ad3b5f0f73eb6b631
import arcpy, common, loaders from modeling import GaussianOptimizer REPORT_TEMPLATE = u'''Interaction Gaussian modelling analysis Input interactions: %s Interaction strength field: %s Interaction length field (d): %s Output decayed strength field: %s Interactions found: %i Using Gaussian model in form G * e^(-d^2 /...
simberaj/interactions
gaussian_distance_decay.py
Python
mit
2,492
[ "Gaussian" ]
2f96bbfcc9f81adaeff5f04e84a76cee559240342793174126bebf834e555cda
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2012 Brian G. Matherly # Copyright (C) 2009 Gary Burton # Copyright (C) 2010 Jakim Friant # Copyright (C) 2010 Nick Hall # Copyright (C) 2013-2014 Paul Franklin # # This program is free software; you can redistribute it and/or modif...
ennoborg/gramps
gramps/plugins/textreport/tagreport.py
Python
gpl-2.0
34,915
[ "Brian" ]
a4a96712a8398e50d0223613540c49f1ef53155d63093913df17d90db11ae04b
''' Conversion of basis sets to Molcas format ''' from .. import lut, manip, printing, misc, sort def write_molcas(basis): '''Converts a basis set to Molcas format ''' basis = manip.make_general(basis, False, True) basis = sort.sort_basis(basis, False) s = '' for z, data in basis['elements...
MOLSSI-BSE/basis_set_exchange
basis_set_exchange/writers/molcas.py
Python
bsd-3-clause
3,456
[ "MOLCAS" ]
d5a8f1be7d05f1bde46f341295287e0aaadc4f3c53c1ea6686f297827bb9392b
#pylint: disable=missing-docstring #################################################################################################### # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment ...
Chuban/moose
python/MooseDocs/extensions/devel.py
Python
lgpl-2.1
12,878
[ "MOOSE" ]
15b9f63eb60b8f91fb5516e82bc7f2548d9e7230edeb3887625c4076b2defa3f
# coding: utf-8 """ Vericred API Vericred's API allows you to search for Health Plans that a specific doctor accepts. ## Getting Started Visit our [Developer Portal](https://developers.vericred.com) to create an account. Once you have created an account, you can create one Application for Production and an...
vericred/vericred-python
vericred_client/models/state_network_size_request.py
Python
apache-2.0
12,954
[ "VisIt" ]
00907a9c02d2e18d538b00f99791864ee34ae518af702a4e7bb34e6fc3684cf9
#!/usr/bin/env python import glob, os, os.path, shutil, socket, struct, sys, time, tarfile import numpy, psr_utils, presto, sifting, sigproc # Calling convention: # # PALFA_presto_search.py fil_file working_dir # # fil_file is the filterbank file name # working_dir is the scratch directory where the work should be...
pscholz/presto
bin/PALFA_presto_search.py
Python
gpl-2.0
27,457
[ "Gaussian" ]
6228f7e25e418e22f974bd13fe1adbfbdcedb5475ae4aa5f2a435a79ce2833ae
# (c) 2012-2018, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
chouseknecht/galaxy
galaxy/accounts/views.py
Python
apache-2.0
706
[ "Galaxy" ]
4dbd5cd82636ec8b20ab3a7d691a6a9dbebddd6e4a6a85589b736fe4609c848c
# -*- coding: utf-8 -*- # # # File to preform some standard tasks on a neuroConstruct project # # Author: Padraig Gleeson # # This file has been developed as part of the neuroConstruct project # This work has been funded by the Medical Research Council and the # Wellcome Trust # # import sys im...
pgleeson/TestArea
pythonNeuroML/nCUtils/ncutils.py
Python
gpl-2.0
58,658
[ "Brian", "MOOSE", "NEURON" ]
2bdc2125546b32eafbdadc1153987357306f8380fc73d514b0fa817fab052bd5
""" Tornado-based HTTPs WMSAdministrator service. """ from DIRAC import gLogger from DIRAC.Core.Tornado.Server.TornadoService import TornadoService from DIRAC.WorkloadManagementSystem.Service.WMSAdministratorHandler import WMSAdministratorHandlerMixin sLog = gLogger.getSubLogger(__name__) class TornadoWMSAdministra...
DIRACGrid/DIRAC
src/DIRAC/WorkloadManagementSystem/Service/TornadoWMSAdministratorHandler.py
Python
gpl-3.0
393
[ "DIRAC" ]
b20af1dc1b2e9bf296f0be24957bd36e13d53ff28efbdd429e9b212d51ce4ae5
# -*- coding: utf-8 -*- """ This file contains methods for hyperbolic saturation fitting, these methods are imported by class FitLogic. Qudi 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...
childresslab/MicrocavityExp1
logic/fitmethods/hyperbolicsaturationmethods.py
Python
gpl-3.0
5,401
[ "Gaussian" ]
e03f2c3fc094c4c2f82cfb5e5648c2431dcc9f4452f3f8a12de819ddd448cf45
# timetable.py --- # # Filename: timetable.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Wed Jun 19 19:37:00 2013 (+0530) # Version: # Last-Updated: Thu Oct 02 # By: Upi # Update #: ? # URL: # Keywords: # Compatibility: # # # Commentary: # # # # # Change log: # # # # # This program i...
BhallaLab/moose-examples
snippets/timetable.py
Python
gpl-2.0
5,633
[ "MOOSE" ]
cbe8810dc06a2f8f9218a546767ba8fe2a3072a9a08bdbcc5725c313dc809b5a
# -*- coding: utf-8 -*- # @Author: J. Alejandro Cardona Valdes """ Proyecto 3 : Chequeo del Programa ================================= Aquí está una lista completa de todo lo que debera comprobar: 1. Nombres y símbolos: Todos los identificadores deben ser definidos antes de ser usados. Esto incluye variables, ...
Alecardv/College-projects
MiniPascal/mpascheck.py
Python
gpl-3.0
12,881
[ "VisIt" ]
5efc037c104b909dfb34d4842cae95101195e0a59ce6c569ad4b7a446304fdfa
#!/usr/bin/env python # encoding: utf-8 """ vcf2phylip.py Created by Nick Crawford on 2011-11-18. Copyright (c) 2011 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, ...
ngcrawford/pypgen
scripts/vcf2phylip.py
Python
bsd-3-clause
10,087
[ "pysam" ]
eec13108ec08238cfcd257ac2ea5640dcc66804f7775aae6b9fb6e4600d3fafb
#!/usr/bin/python2.7 # -*- coding: utf-8; mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vim: fileencoding=utf-8 tabstop=4 expandtab shiftwidth=4 # Module : generate_gcoos_nc_timeseries_atm.py # Author : Felimon Gayanilo (felimon.gayanilo@gcoos.org) # Last update : 23 May 2016 # ...
GCOOS/csv2nc
bin/generate_gcoos_nc_timeseries_atm.py
Python
gpl-3.0
14,769
[ "NetCDF" ]
758bd2b71db65cc542fcab5635bdad1ff6e3f879271bc393948c578765225a4e
from datetime import date, time, timedelta from decimal import Decimal import itertools from django.utils import timezone from six.moves import xrange from .models import Person def get_fixtures(n=None): """ Returns `n` dictionaries of `Person` objects. If `n` is not specified it defaults to 6. "...
aykut/django-bulk-update
tests/fixtures.py
Python
mit
4,567
[ "CRYSTAL" ]
4f56f5b5c5c62b9af2fa169fb6db8e27a6de87c88945d6bac2c1edd177554ab2
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from pymatgen.analysis.defects.core import Vacancy from pymatgen.transformations.defect_transformations import DefectTransformation from pymatgen.util.testing import PymatgenTest class DefectTransformationTe...
materialsproject/pymatgen
pymatgen/transformations/tests/test_defect_transformations.py
Python
mit
1,254
[ "pymatgen" ]
c7c99d88fd9883b4da8ef3a431fafdd53a9487c2b984c74109dddbf053068360
#!/usr/bin/env python """ Export a history to an archive file using attribute files. usage: %prog history_attrs dataset_attrs job_attrs out_file -G, --gzip: gzip archive file """ from galaxy import eggs from galaxy.util.json import * import optparse, sys, os, tempfile, tarfile def get_dataset_filename( name, ext...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/tools/imp_exp/export_history.py
Python
gpl-3.0
3,497
[ "Galaxy" ]
f1ac98684b42a918a95c6f29b90aef124e8a992a6c7c4bc352c84e120a9c1072