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 pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.ensemble import BaggingClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.neural_network import MLPClassifie... | rupakc/Kaggle-Compendium | Credit Card Fraud Detection/credit-baseline.py | Python | mit | 2,876 | [
"Gaussian"
] | 993c5d69436c91b6d6b638fe616b3afb5e3dd15be23ef48d27ae8aaeed868367 |
#!/usr/bin/env python
from tempfile import TemporaryFile
import os, sys, re, socket, time, pickle, csv, uuid, subprocess, argparse, decimal, select
class Server:
def __init__(self, arguments):
self.arguments = arguments
self.arguments.cwd = os.getcwd()
# Test to see if we are starting as a server
if ... | amburan/moose | framework/scripts/memory_logger.py | Python | lgpl-2.1 | 39,394 | [
"MOOSE"
] | 4fc9cfafcd7f7deebe68e96dde869a365ff635175106d269464050e28140559f |
# Source: https://github.com/willwhite/freemail/
# Copyright (c) 2015, Will White <will@mapbox.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
... | comic/comic-django | app/grandchallenge/verifications/resources/free_email_domains.py | Python | apache-2.0 | 113,408 | [
"CASINO",
"COLUMBUS",
"Galaxy",
"MOOSE"
] | 12aefa23d81b7279af6a8749e8985d40ab38f9b1de1b0e8af508226923bef3f9 |
from deepchem.feat.base_classes import MolecularFeaturizer
from deepchem.utils.molecule_feature_utils import one_hot_encode
from deepchem.utils.typing import RDKitMol, RDKitAtom
import numpy as np
from typing import Tuple, Any
from dataclasses import dataclass
@dataclass
class MATEncoding:
"""
Dataclass specific ... | peastman/deepchem | deepchem/feat/molecule_featurizers/mat_featurizer.py | Python | mit | 7,629 | [
"RDKit"
] | 35a6c39048a82607984ddd615a5c10e6ea599138923823687ad681c907dea356 |
import unittest
from test import support
import sys
import random
import math
import array
# Used for lazy formatting of failure messages
class Frm(object):
def __init__(self, format, *args):
self.format = format
self.args = args
def __str__(self):
return self.format % self.args
# S... | MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-3.5.0/Lib/test/test_long.py | Python | mit | 50,991 | [
"Brian"
] | 96a8697971b8e436d63f10791f86109ea0717ee7f5881e7a0dfbf7cb812c3edc |
#!/usr/bin/env python
#
# Copyright 2004,2005,2007,2008 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (a... | ffu/DSA-3.2.2 | gr-utils/src/python/usrp_siggen.py | Python | gpl-3.0 | 8,258 | [
"Gaussian"
] | 5cd48a1d967452ebc1639192806aeda79249fab707f622333a15505b3442423d |
########################################################################
# $HeadURL$
########################################################################
""" A set of utilities used in the WMS services
"""
__RCSID__ = "$Id$"
from tempfile import mkdtemp
import shutil, os
from DIRAC.Core.Utilities.Grid import exe... | coberger/DIRAC | WorkloadManagementSystem/Service/WMSUtilities.py | Python | gpl-3.0 | 6,407 | [
"DIRAC"
] | 127f96ddc14ef5689ee54581b2c4f42cbf28056e2868d0ad7e0c874cb06abc80 |
# coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | shaz13/oppia | core/domain/email_manager.py | Python | apache-2.0 | 36,969 | [
"VisIt"
] | f29aa1aa33b65db07382c3add597b5f92f4678e010c78e21be66ce0c8f24b51c |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Sensei(CMakePackage):
"""SENSEI is a platform for scalable in-situ analysis and visualizat... | LLNL/spack | var/spack/repos/builtin/packages/sensei/package.py | Python | lgpl-2.1 | 6,119 | [
"ParaView",
"VTK",
"VisIt"
] | c56dd98e608042b1a0b9516205e49a665f7e6dbc5ee12bdb24b9e99ab63ea018 |
# -*- coding: utf-8 -*-
from __future__ import division, print_function
__all__ = ["DEMove"]
import numpy as np
from ..compat import xrange
from .red_blue import RedBlueMove
class DEMove(RedBlueMove):
"""
A `differential evolution
<http://www.stat.columbia.edu/~gelman/stuff_for_blog/cajo.pdf>`_ proposa... | jellis18/emcee3 | emcee3/moves/de.py | Python | mit | 1,460 | [
"Gaussian"
] | ef105c7b2eeee667bf739ab9b29af94c18f5b612745104d15a4d2844ea81e29f |
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2002 Gary Shao
# Copyright (C) 2007 Brian G. Matherly
# Copyright (C) 2009 Benny Malengier
# Copyright (C) 2009 Gary Burton
#
# This program is free software; you can redistribute it and/o... | sam-m888/gprime | gprime/plug/docgen/basedoc.py | Python | gpl-2.0 | 3,812 | [
"Brian"
] | ff1ff8c5958beb517e5b7e4b9161a99a517b49904a384f0b675a3b748d00c673 |
# coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | google-research/google-research | graph_sampler/setup.py | Python | apache-2.0 | 1,757 | [
"RDKit"
] | 04c79b61fba87e6333436837aab5298c301d84b3fa022b73f6c4078bd49cff53 |
#!/usr/bin/env python
import sys
import numpy as np
import argparse
import matplotlib.pyplot as plt
from plotTools import addContourf
from analysisTools import sensibleIds, groundOffset, quadrantAnalysis
from netcdfTools import read3dDataFromNetCDF, netcdfOutputDataset, \
createNetcdfVariable, netcdfWriteAndClose
fro... | saskartt/P4UL | pyNetCDF/quadrantAnalysisProfile.py | Python | mit | 7,547 | [
"NetCDF"
] | 8d1846dad55b0fe46c71648bfa66f684b7368e818551f3d602e1c06270a3a70d |
#! /usr/bin/env python
#
# The purpose of this script is to create a moltemplate lt file for the oplsaa.
# forcefield. This will assist researchers in building complex simulations using
# this OPLS-UA and the OPLS-AA forcefields.
__author__="Jason Lambert"
# (some additional corrections by Miguel Gonzalez and Andrew ... | ganzenmg/lammps_current | tools/moltemplate/src/oplsaa_moltemplate.py | Python | gpl-2.0 | 15,174 | [
"LAMMPS",
"TINKER"
] | 276c18952b4971adffa17c2802c24f933d745bb189c7394a351081914ce1f7d3 |
#!/usr/bin/python
import argparse
import sys
import os
import subprocess
import signal
import getpass
import simplejson
from termcolor import colored
import ConfigParser
import StringIO
import functools
import time
import random
import string
from configobj import ConfigObj
import tempfile
import pwd, grp
import trace... | mrwangxc/zstack-utility | zstackctl/zstackctl/ctl.py | Python | apache-2.0 | 302,359 | [
"VisIt"
] | 0d8df46bd2b206cb7a9dbf1bf4401cdc8a5cddd559e8e365b2b00bc9eafdf862 |
'''
PartsGenie (c) University of Manchester 2017
PartsGenie is licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>.
@author: neilswainston
'''
# pylint: disable=attribute-defined-outside-init
# pylint: disable=no-self-use
import json
import os
import time
impo... | synbiochem/PathwayGenie | parts_genie/test/test_parts.py | Python | mit | 1,982 | [
"VisIt"
] | 0fdfa0aac8a3236da9676585d193c44d3f89601c68113ba0eb675177d330687b |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
#!/usr/bin/env python
from __future__ import division, unicode_literals
"""
#TODO: Write module doc.
"""
__author__ = 'Shyue Ping Ong'
__copyright__ = 'Copyright 2013, The Materials Virtual Lab'
__version__ =... | sonium0/pymatgen | pymatgen/io/qchemio.py | Python | mit | 580 | [
"pymatgen"
] | 0770086aabca0dd4408181111b8299a96dc28df994071836aaed843b3cf329a5 |
# -*- coding: utf-8 -*-
# Copyright 2007-2020 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | dnjohnstone/hyperspy | hyperspy/_components/pes_see.py | Python | gpl-3.0 | 5,307 | [
"Gaussian"
] | 91758a9b7af446dbae125d1e91523cc2c2e849a5e07bf5e6c627428274904d81 |
#
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify ... | graalvm/mx | mx_downstream.py | Python | gpl-2.0 | 16,701 | [
"VisIt"
] | 85cb154d272884cd3e0cebfe1f87ab0f7b8dfdaddacf4ff0f9d3b8d73b1babe2 |
# Copyright 2016 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 a... | panmari/tensorflow | tensorflow/contrib/distributions/__init__.py | Python | apache-2.0 | 1,342 | [
"Gaussian"
] | 4d2b80c4a409b0287f8bc46d3048bdca4ab13961b6dc158903787d77e0c4940a |
#!/usr/bin/env python
"""Application controller for BLAT v34"""
from cogent.app.parameters import FlagParameter, ValuedParameter, \
MixedParameter, FilePath
from cogent.app.util import CommandLineApplication, ResultPath, \
ApplicationError, get_tmp_filenam... | sauloal/cnidaria | scripts/venv/lib/python2.7/site-packages/cogent/app/blat.py | Python | mit | 16,472 | [
"BLAST"
] | 0ef1bd7a520ca7718abc53487a9d43b636ae07ae7d4628d96d9b1c544be90061 |
#!/usr/bin/env python
import sys
import os
import numpy as np
from datetime import datetime
"""
Obtain a tight binding Hamiltonian of Haldane model with Wannier90 format
How to run
python haldane_hr_gen.py
This will generate the tight binding hamiltonian Haldane_hr.dat
LATTICE
Angstrom
2.1377110 -1.2342080 0.00... | quanshengwu/wannier_tools | examples/Haldane_model/haldane_hr_gen-chern-insulator.py | Python | gpl-3.0 | 3,154 | [
"Wannier90"
] | 5629fe50c831325b48f44168a77c39947e7269365c537d1f2303b19534da91ed |
# -*- coding: utf8 -*-
import json
import os
import socket
from datetime import datetime, timedelta
from decimal import Decimal
from collections import namedtuple
from django.conf import settings
from django.utils.http import urlencode
import jingo
import mock
from nose.tools import eq_, assert_not_equal, assert_rais... | jbalogh/zamboni | apps/devhub/tests/test_views.py | Python | bsd-3-clause | 117,790 | [
"exciting"
] | bbb677792e09105531c76f0741f11182ab4f9249e8918b409d501853fcbc1e8c |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
from odoo import api, fields, models, tools
from odoo.http import request
_logger = logging.getLogger(__name__)
class Website(models.Model):
_inherit = 'website'
pricelist_id = fields.Many2on... | Aravinthu/odoo | addons/website_sale/models/website.py | Python | agpl-3.0 | 17,304 | [
"VisIt"
] | 35adacfffd6c373f226a9377f858f89b22c16b5041baffc74d5a2bc85f10133b |
from django.test import LiveServerTestCase
from splinter.browser import _DRIVERS
from django.conf import settings
import time
class TrackerBrowser(_DRIVERS[settings.SELENIUM_DRIVER]):
def __init__(self, test_case, *args, **kwargs):
self.test_case = test_case
super(TrackerBrowser, self).__init__(*... | danielward/health-tracker | tracker/tracker/tests.py | Python | gpl-2.0 | 1,932 | [
"VisIt"
] | c3ec4c78505c63ef702953641d99c017424ab7f253c6371d7df09d0352264c0d |
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import webnotes
from webnotes.utils import add_days, cstr, getdate
from webnotes.model.doc import addchild
from webnotes.model.bean import getlist
f... | saurabh6790/test-med-app | support/doctype/maintenance_schedule/maintenance_schedule.py | Python | agpl-3.0 | 11,570 | [
"VisIt"
] | 94704ff42f9e01f2f4f0f16da8f674b515ef01b288da7be9ef13ff92bc6b73a1 |
import json
import os
import re
import sys
import maya.cmds as cmds
import maya.mel as mel
current_user = None
asset_size = 100
child_entries_margin = 5
child_assets_column = 3
asset_store_window = "houdiniEngineAssetStoreWindow"
change_user_menu_item = "houdiniEngineAssetStoreChangeUserMenuItem"
asset_entries_scro... | sideeffects/HoudiniEngineForMaya | scripts/houdini_engine_for_maya/asset_store.py | Python | mit | 9,396 | [
"VisIt"
] | 12755086fe0927d4a7d4651aee26a1e9fcb8fbaebbb732948cdf9669d75bb0f1 |
# encoding=utf-8
import gzip
import hashlib
import io
import unittest
import zlib
from wpull.decompression import DeflateDecompressor, GzipDecompressor, \
gzip_uncompress
class TestDecompression(unittest.TestCase):
def test_deflate_decompressor(self):
input_list = []
hash_obj = hashlib.sha1(b... | chfoo/wpull | wpull/decompression_test.py | Python | gpl-3.0 | 2,423 | [
"MOOSE"
] | d048f92117d94ce086e28789f4db7ff5fdec7249ce55ed2d83a53fad2822610f |
# $Id$
#
# Copyright (c) 2011, Novartis Institutes for BioMedical Research Inc.
# 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... | rvianello/rdkit | External/INCHI-API/python/inchi.py | Python | bsd-3-clause | 6,003 | [
"RDKit"
] | 510d2170b98f089cfd1cdb52bacdd3756cb0ef7530fb82eef9527497dba572b3 |
# -*- coding: utf-8 -*-
'''Stages
===========
The stages of the experiment.
'''
from functools import partial
import traceback
from time import clock, strftime
from re import match, compile
from os.path import join, isfile
from math import ceil
import csv
from random import choice, randint, random, shuffle, uniform
f... | matham/forced_choice | forced_choice/stages.py | Python | mit | 54,994 | [
"VisIt"
] | 69caefbb9aa4271cff367eacb8f38e6c2df450b17ab7726703da194aade4ed33 |
## This file is part of Invenio.
## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your ... | pamoakoy/invenio | modules/websession/lib/websession_templates.py | Python | gpl-2.0 | 103,547 | [
"VisIt"
] | 7307e1b8108d6a51a344936eb0f401269775ef0ff08803d2ccbf1a7f22fd7f5f |
#!/usr/bin/env python
"""
Easy Install
------------
A tool for doing automatic download/extract/build of distutils-based Python
packages. For detailed documentation, see the accompanying EasyInstall.txt
file, or visit the `EasyInstall home page`__.
__ https://setuptools.readthedocs.io/en/latest/easy_install.html
""... | google/material-design-icons | update/venv/lib/python3.9/site-packages/setuptools/command/easy_install.py | Python | apache-2.0 | 89,907 | [
"VisIt"
] | 414e68c5b642d423aa7e2064de6dfdc81fff6c6e18c03b56a0d102f06285c87a |
"""
simple, elegant templating
(part of web.py)
Template design:
Template string is split into tokens and the tokens are combined into nodes.
Parse tree is a nodelist. TextNode and ExpressionNode are simple nodes and
for-loop, if-loop etc are block nodes, which contain multiple child nodes.
Each node can emit som... | xupingmao/xnote | lib/web/template.py | Python | gpl-3.0 | 49,601 | [
"VisIt"
] | 617af036527f8ba64ae4d7bb4ce022247e2ea96a9ce6cdd9af67241b06b415e1 |
#!/usr/bin/env python
# encoding: utf-8
import pytest
import datetime
from tbone.data.fields import *
from tbone.data.models import Model
from tbone.testing.fixtures import event_loop
def test_list_field():
data = ['one', 'two', 'three']
class M(Model):
numbers = ListField(StringField, required=True... | 475Cumulus/TBone | tests/data/test_composite_fields.py | Python | mit | 6,546 | [
"Brian"
] | c4e339b366c26aa3e2dff7213d6028bdbed9cc4dcf80fc97608c739ef8bc4340 |
# -*- coding: utf-8 -*-
"""Performs concordance analysis."""
from __future__ import annotations
import enum
import logging
from collections import Counter
from dataclasses import dataclass
from functools import partial
from typing import List, Mapping, Optional, Tuple
from pybel import BELGraph, BaseEntity
from pyb... | pybel/pybel-tools | src/pybel_tools/analysis/concordance.py | Python | mit | 10,549 | [
"Pybel"
] | 64459562be6f1c7e9a2a8d8bf19b482b4ae8d995e22f506e0593a72b751077ca |
# coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | google-research/google-research | optimizing_interpretability/regularizers.py | Python | apache-2.0 | 8,586 | [
"Gaussian"
] | 85fd5efc617480ee65c482a350d48c342575d3641835d4d535d880b8b06d6ad7 |
"""Tests for core.groups.requires decorator
"""
import numpy as np
import pytest
from MDAnalysis.core.groups import requires
from MDAnalysis import NoDataError
from MDAnalysisTests import make_Universe
class TestRequires(object):
def test_requires_failure_singular(self):
@requires('masses')
def... | MDAnalysis/mdanalysis | testsuite/MDAnalysisTests/core/test_requires.py | Python | gpl-2.0 | 1,919 | [
"MDAnalysis"
] | b1a46797542c1491ef785ff79936bb05d47c4dfe610b415eea71068840fcb1ba |
#
# Python External Attribute Library
#
# Copyright (C) 2016 Wayne Mogg All rights reserved.
#
# This file may be used under the terms of the MIT License
# (https://github.com/waynegm/OpendTect-External-Attributes/blob/master/LICENSE)
#
# Author: Wayne Mogg
# Date: March, 2016
# Homepage: http://waynegm.github.io/O... | waynegm/OpendTect-Plugins | bin/python/wmpy/extlib.py | Python | gpl-3.0 | 30,071 | [
"Gaussian"
] | d9ec56b50874e75d90eb700e42641d6d2e831fe6285cd20d4d71f26f07465c7b |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# PCR-GLOBWB (PCRaster Global Water Balance) Global Hydrological Model
#
# Copyright (C) 2016, Ludovicus P. H. (Rens) van Beek, Edwin H. Sutanudjaja, Yoshihide Wada,
# Joyce H. C. Bosmans, Niels Drost, Inge E. M. de Graaf, Kor de Jong, Patricia Lopez Lopez,
# Stefanie Pes... | UU-Hydro/PCR-GLOBWB_model | modflow/scripts/virtualOS.py | Python | gpl-3.0 | 62,157 | [
"NetCDF"
] | 7ab7f4083b321f0bc51a92c056f25827777dff6c0a7a01b6e8b14e230e1611ee |
#!/usr/bin/env python
########################################################################
# File : dirac-admin-modify-user
# Author : Adrian Casajus
########################################################################
"""
Modify a user in the CS.
Example:
$ dirac-admin-modify-user vhamar /C=FR/O=Org/CN=... | DIRACGrid/DIRAC | src/DIRAC/Interfaces/scripts/dirac_admin_modify_user.py | Python | gpl-3.0 | 2,319 | [
"DIRAC"
] | 7b1741e4df3600e3d60bf1cf034431e1c6acdf526b74aedbd5407ad2bc4cf0b4 |
__author__ = "Ian Goodfellow"
import numpy as np
from theano import config
from theano import function
from theano import tensor as T
from pylearn2.sandbox.lisa_rl.bandit.environment import Environment
from pylearn2.utils import sharedX
from pylearn2.utils.rng import make_np_rng, make_theano_rng
class GaussianBand... | fyffyt/pylearn2 | pylearn2/sandbox/lisa_rl/bandit/gaussian_bandit.py | Python | bsd-3-clause | 1,542 | [
"Gaussian"
] | d34262dd012daa39150a623aaa672b5ac0418403406efd986b1679d5296270bd |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | BackupTheBerlios/espressopp | src/MultiSystem.py | Python | gpl-3.0 | 3,280 | [
"ESPResSo"
] | b2db42df41eeb493c2163ac39366dbfc706e2337959fba06378122088cdfa784 |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/chronos/example/auto_model/autoprophet_nyc_taxi.py | Python | apache-2.0 | 4,160 | [
"ORCA"
] | 3667537e57ad0abf630c917792ca02384faf0a69dab4d1d0b52b991c5dc74a61 |
# change sigma precs to sigma_E_kmin precs
import matplotlib
matplotlib.rcParams.update({'font.size': 18,'legend.fontsize':18, 'lines.markersize': 14})
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import os
import sys
powerlaws_file = ''#'v4_PowerLawPairs_test_all.csv'
counter = 0
codes... | joshgabriel/dft-crossfilter | benchmark-view/ShinyApps/Numerical_Precs_Methods_Scripts/transform_sigma_kpoints_min.py | Python | mit | 17,056 | [
"VASP"
] | ab6556d8a2acf84dca3dd1e95fa6b2679781770df7a0eacec4c7d860bfa5fc04 |
#!/usr/bin/env python
import argparse
import logging
logging.basicConfig(level=logging.INFO)
log = logging.getLogger(name="blasttab2gff3")
__doc__ = """
Blast TSV files, when transformed to GFF3, do not normally show gaps in the
blast hits. This tool aims to fill that "gap".
"""
def blasttsv2gff3(blasttsv, min_dice... | TAMU-CPT/galaxy-tools | tools/blast/blasttab_dice_filter.py | Python | gpl-3.0 | 1,896 | [
"BLAST"
] | 316100958730c0ed5b63633025dde9a449e9e24af8c6f73bebbd99e05a810c50 |
import sys
import webbrowser
from PyQt4 import QtGui
from PyQt4 import QtCore
from buildnotifylib.core.distance_of_time import DistanceOfTime
from preferences import PreferencesDialog
from version import VERSION
class AppMenu:
def __init__(self, app, tray, widget, conf, build_icons):
self.menu = QtGui.QM... | rwilsonncsa/buildnotify | buildnotifylib/app_menu.py | Python | mit | 2,774 | [
"VisIt"
] | 961f2a703289f636a3527f12ccc3540dd1428a734f78be11a0db0e4ea4b94cd7 |
# -*- coding: utf-8 -*-
import itertools
import functools
import os
import re
import logging
import pymongo
import datetime
from dateutil.parser import parse as parse_date
import urlparse
from collections import OrderedDict
import warnings
import pytz
from flask import request
from django.core.urlresolvers import reve... | samanehsan/osf.io | website/project/model.py | Python | apache-2.0 | 148,232 | [
"VisIt"
] | 4d2381a9a93a9d72962c743131640a3f28d1ecdbd39ec8263f38fcfd26189278 |
"""The strategy for choosing arms"""
import random
from math import log
import scipy.stats
import kullback
class Policy:
"""Class that implements a generic index policy class."""
def __init__(self, num_arms, amplitude=1., lower=0.):
self.num_arms = num_arms
self.num_draws = dict()
sel... | charmasaur/digbeta | python/digbeta/policy.py | Python | gpl-3.0 | 3,492 | [
"Gaussian"
] | 3b537b103614928cd17cb2dda564d3365ae5c0b31d48992d2e3ce8c30ab0e61d |
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>
# Denis Engemann <denis.engemann@gmail.com>
# Andrew Dykstra <andrew.r.dykstra@gmail.com>
# Teon Brooks <teon.brooks@gmail.com>
# Daniel McCloy <dan.mccloy@gmail.com>
#
#... | cjayb/mne-python | mne/channels/channels.py | Python | bsd-3-clause | 65,505 | [
"Mayavi"
] | 842d9a0096e18efe3b0472a7d7ba333f04ca6ab97f6c6a83969176190628f8ab |
__RCSID__ = "$Id $"
import datetime
# Requires at least version 3.3.3
import fts3.rest.client.easy as fts3
from fts3.rest.client.exceptions import FTS3ClientException
from DIRAC.Resources.Storage.StorageElement import StorageElement
from DIRAC.DataManagementSystem.Client.FTS3File import FTS3File
from DIRAC.Framew... | Andrew-McNab-UK/DIRAC | DataManagementSystem/Client/FTS3Job.py | Python | gpl-3.0 | 16,177 | [
"DIRAC"
] | fbd3288fc91286cd2e6931973c2a48e44166c8e64af5e7f1811f136fb5921867 |
# ICE Revision: $Id$
"""Reads configuration-files that define defaults for various PyFoam-Settings
Also hardcodes defaults for the settings"""
from PyFoam.ThirdParty.six.moves import configparser
from PyFoam.ThirdParty.six import iteritems,PY3
from PyFoam.Infrastructure.Hardcoded import globalConfigFile,userConfigF... | mortbauer/openfoam-extend-Breeder-other-scripting-PyFoam | PyFoam/Infrastructure/Configuration.py | Python | gpl-2.0 | 13,518 | [
"ParaView"
] | a0dd087ff893abbae4c3be6819fd6d91d1c5965d04a53108bceb8cee35e68792 |
from ase.dft.wannier import Wannier
from gpaw import GPAW
from gpaw.mpi import world
calc = GPAW('Si-PBE.gpw', txt=None,
parallel={'domain': world.size})
calc.wfs.ibz2bz(calc.atoms)
initial = [[(0.125, 0.125, 0.125), 0, 1.5],
[(0.125, 0.625, 0.125), 0, 1.5],
[(0.125, 0.125, 0.625), 0, ... | robwarm/gpaw-symm | doc/tutorials/pbe0/wannier.py | Python | gpl-3.0 | 540 | [
"ASE",
"GPAW"
] | 4e5e597d93ea2dc050b71a27d82acca8e9667c4027e6e4d70d6f418ac9ca0c12 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module defines an excitation spectrum class.
"""
from pymatgen.core.spectrum import Spectrum
class ExcitationSpectrum(Spectrum):
"""
Basic excitation spectrum object.
.. attribute: x
... | gmatteo/pymatgen | pymatgen/analysis/excitation.py | Python | mit | 660 | [
"pymatgen"
] | 16d05e1b7850369a480b7bcb3e4b8e15fa9f7aff07de903087a545c6071cd599 |
import os
import subprocess
import pysam
try:
import cyvcf2
except ImportError:
pass
from TestUtils import CBCF_DATADIR, force_str
def build_filter_from_vcf_with_samtoolsshell(fn):
retval = os.popen(
"bcftools filter -e \"N_ALT != 1 || QUAL < 20 || maf[0]>0.05\" {} | grep -cv ^# ".format(fn)... | kyleabeauchamp/pysam | tests/VariantFileFetchTestUtils.py | Python | mit | 1,899 | [
"pysam"
] | bc1cbd8c43007e1a54a35607ecc722658f191d6f23e53ee23df18782d9b938a5 |
"""
Tests for `remove_social_auth_users` management command
"""
from __future__ import absolute_import
import sys
import unittest
from contextlib import contextmanager
from six import StringIO
from uuid import uuid4
from django.conf import settings
from django.core.management import call_command
from django.core.mana... | ESOedX/edx-platform | common/djangoapps/third_party_auth/management/commands/tests/test_remove_social_auth_users.py | Python | agpl-3.0 | 4,774 | [
"FLEUR"
] | 383b5da824020b6bed9b823ffc9474d50fe672e9daa37f4f71cfa0c6b5e0a607 |
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | strint/tensorflow | tensorflow/python/ops/gradients_impl.py | Python | apache-2.0 | 37,872 | [
"VisIt"
] | db066a79cb29050860268cf5c6f921f1cbdcdf5e77c2e4b9c1eda68988024724 |
"""
FindCompactGroups.py
Search a file from the mini-millenium survey for compact groups
v1.0.0 - Trey Wenger - 20 January 2015
v1.0.1 - Trey Wenger - 04 February 2015
Added progress indicators
Re-calculate separation ratio after throwing out bad groups
v1.0.2 - Sophia Xiao - 04 February 2015
... | lx8ad/compactgroups | FindCompactGroups.py | Python | mit | 10,850 | [
"Galaxy"
] | 38a65b200e0b54fe24c696ad8efbe0882eef46f750366b8d5153303cb0d854fe |
"""
Module for managing the installation of DIRAC components:
MySQL, DB's, NoSQL DBs, Services, Agents, Executors and Consumers
It only makes use of defaults in LocalInstallation Section in dirac.cfg
The Following Options are used::
/DIRAC/Setup: Setup to be used for any operation
/LocalInstallation/... | petricm/DIRAC | FrameworkSystem/Client/ComponentInstaller.py | Python | gpl-3.0 | 105,665 | [
"DIRAC"
] | 1bf315ec08034345ffdc0cfb537fc083e2318e4340fa4eece7a5d08d353b249e |
#!/usr/bin/env python
from ase.io import read
from ase.io import write
from pyDFTutils.ase_utils.geometry import find_primitive
import sys
def gen(src_file ,des_file):
atoms=read(src_file)
new_atoms=find_primitive(atoms, symprec=1e-4)
write(des_file, new_atoms)
return atoms
if __name__=='__main__':
... | mailhexu/pyDFTutils | scripts/gen_primitive.py | Python | lgpl-3.0 | 350 | [
"ASE"
] | b55f5ed21fa31985c1d4e0e9eaf1d8e63af53f302f5c218db1ad0c426635e4a1 |
import os
import re
import shutil
import sys
if sys.version_info[:2] < (2, 6):
sys.exit('virtualenv requires Python 2.6 or higher.')
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Argu... | bildzeitung/pyadventure-bot | virtualenv/setup.py | Python | gpl-3.0 | 4,043 | [
"Brian"
] | 063be55a39ada706e7ac0ec84d842e5a4564d67a301f00b7c535aaa286cd1a0e |
import os
def move_wannier_files(parent=None, orig='.', dest='Wannier'):
fnames=['POSCAR','OUTCAR', 'basis.txt', 'wannier90.*']
if parent is not None:
orig=os.path.join(parent, orig)
dest=os.path.join(parent, dest)
if not os.path.exists(dest):
os.makedirs(dest)
for fname in fname... | mailhexu/pyDFTutils | pyDFTutils/wannier90/move_wannier.py | Python | lgpl-3.0 | 476 | [
"Wannier90"
] | c3c23c39175d637edfdef53431790f13cc118bfb9c9184cfb031440288aec785 |
###############################
# This file is part of PyLaDa.
#
# Copyright (C) 2013 National Renewable Energy Lab
#
# PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to submit
# large numbers of jobs on supercomputers. It provides a python interface to physical input, suc... | pylada/pylada-light | src/pylada/onexit.py | Python | gpl-3.0 | 3,507 | [
"CRYSTAL",
"VASP"
] | 09b99c82c28f5819e70f335ec5eecda88295ec835b9586b486c6794567d33d52 |
"""Checks that writing and reading of NWChem input files is consistent."""
from ase.structure import molecule
from ase.calculators.nwchem import NWChem
from ase import io
atoms = molecule('CH3COOH')
calc = NWChem()
calc.write_input(atoms)
atoms2 = io.read('nwchem.nw')
tol = 1e-8
check = sum(abs((atoms.positions -... | askhl/ase | ase/test/fio/nwchem.py | Python | gpl-2.0 | 373 | [
"ASE",
"NWChem"
] | 3df14c9ad5f435be2465dae50227b4998270dd26f1bcb53a55b3fe501cb800ee |
# Copyright (C) 2015-2021 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from collections import defaultdict
import datetime
import functools... | SoftwareHeritage/swh-storage | swh/storage/in_memory.py | Python | gpl-3.0 | 28,868 | [
"VisIt"
] | bd808c91316629355062be954770d1b0d81a34615ffee315145634b192bdb865 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007-2008 Brian G. Matherly
# Copyright (C) 2008 Gary Burton
# Copyright (C) 2008 Robert Cheramy <robert@cheramy.net>
# Copyright (C) 2011 Tim G L Lyons
#
# This program is free software; you can redistribute it and/or... | beernarrd/gramps | gramps/gen/proxy/filter.py | Python | gpl-2.0 | 25,212 | [
"Brian"
] | 4791a5ef820db1b7af2dddd9a2dbb1f0db3f9b9ddb7b1072fb888fc423baa645 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import logging
from monty.json import MSONable
from pymatgen.core.structure import Molecule
from pymatgen.analysis.graphs import MoleculeGraph, MolGraphSplitError
from pymatgen.analysis.local_env import Open... | dongsenfo/pymatgen | pymatgen/analysis/bond_dissociation.py | Python | mit | 19,457 | [
"pymatgen"
] | eb45eff576fe30c07227635a137704bae547d0514e57921b215770ef05425452 |
"""
Class to represent MITgcm mds file storage format.
"""
# python 3 compatiblity
from __future__ import print_function, division
from glob import glob
import os
import re
import numpy as np
import warnings
from io import StringIO
import inspect
import xarray as xr
import dask.array as da
import sys
# we keep the me... | rabernat/xmitgcm | xmitgcm/mds_store.py | Python | mit | 38,539 | [
"NetCDF"
] | 7974e64ac37957cb9eddd2d3d7a14568023e955b777a056b2a728af1d81b3634 |
#!/usr/bin/env python
"""
Install.py tool to download, compile, and setup the kim-api library
used to automate the steps described in the README file in this dir
"""
from __future__ import print_function
import sys, os, subprocess, shutil
from argparse import ArgumentParser
sys.path.append('..')
from install_helpers... | timattox/lammps_USER-DPD | lib/kim/Install.py | Python | gpl-2.0 | 6,451 | [
"LAMMPS",
"OpenKIM"
] | 0725d83b1b8b451548a5fb993f1feaf2b9d5d3ff43ace0b2d44b83172893adb2 |
# -*- coding: utf-8 -*-
# ------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para unsoloclic
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
# ------------------------------------------------------------
import re
import urlparse
from core import logger
from cor... | neno1978/pelisalacarta | python/main-classic/channels/unsoloclic.py | Python | gpl-3.0 | 7,085 | [
"ADF"
] | fd4a4f8ca69ab1a4c51fe1ad679c27c12163a11577c0819b35d1d2176eef3bcc |
import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
# The purpose of this test is to detect a change in the _metric_json of MetricsBase objects. Many of the metric
# accessors require _metric_json to have a particular form.
def metric_json_check():
df = h2o.import_file(path=py... | nilbody/h2o-3 | h2o-py/tests/testdir_misc/pyunit_metric_json_check.py | Python | apache-2.0 | 10,652 | [
"Gaussian"
] | 7eefa55c4e1fb10d8e6a09fe8e876fdcc372317e228fc127a4c0c36d8672d394 |
########################################################################
# File : CLI.py
# Author : Andrei Tsaregorodtsev
########################################################################
""" CLI is the base class for all the DIRAC consoles ( CLIs ). It contains
several utilities and signal handlers of ge... | fstagni/DIRAC | Core/Base/CLI.py | Python | gpl-3.0 | 3,662 | [
"DIRAC"
] | 6636a723f59b0bf9c776da70964dd08dd3cace4d6dac939e4812d11964424c5c |
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Mads Jensen <mje.mads@gmail.com>
#
# License: BSD (3-clause)
import contextlib
import copy
import os.path as op
from types import Generator... | cjayb/mne-python | mne/source_estimate.py | Python | bsd-3-clause | 123,691 | [
"Mayavi"
] | 18f6c0b0ca1456e92325a4bb9da855d80258d82e4947b106b48c6edb1cce8422 |
import ocl
import camvtk
import time
import vtk
import datetime
import math
def drawPoints(myscreen, clpoints, ccpoints):
c=camvtk.PointCloud( pointlist=clpoints, collist=ccpoints)
c.SetPoints()
myscreen.addActor(c )
def drawFiber(myscreen, f, fibercolor=camvtk.red):
inter = f.getInts()
for i in ... | aewallin/opencamlib | examples/python/fiber/fiber_04_stl.py | Python | lgpl-2.1 | 4,815 | [
"VTK"
] | 4edb7e6d3fec217b2a8027977252611ff6aa34578ff21e0b15fa7705c7d75fd9 |
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | juanchopanza/NeuroM | neurom/core/__init__.py | Python | bsd-3-clause | 2,011 | [
"NEURON"
] | 5e46037c3c1a0e7f97bef4a65af2018138a961edc1a6963c214d92484e703743 |
# Copyright (c) 2015-2016 Cisco Systems, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge... | rgreinho/molecule | test/unit/conftest.py | Python | mit | 10,037 | [
"Galaxy"
] | a25f2aa63fec78068f44629bbbac9db58f6c3355d5721ae1741983d99339a7e4 |
from sqlalchemy import util
class ClauseVisitor(object):
"""Traverses and visits ``ClauseElement`` structures.
Calls visit_XXX() methods for each particular
``ClauseElement`` subclass encountered. Traversal of a
hierarchy of ``ClauseElements`` is achieved via the
``traverse()`` method, which ... | chirpradio/chirpradio-volunteers | site-packages/sqlalchemy/sql/visitors.py | Python | mit | 6,529 | [
"VisIt"
] | 9729861b9b98c099a228fa9a42faf0b5abeb2fc0212935b20ec567c734d2ecec |
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 30 10:54:21 2017
@author: ishort
"""
#plotting:
import matplotlib
import matplotlib.pyplot as plt
#%matplotlib inline
import pylab
from astropy.io import fits
import numpy
import Gauss2
#General file for printing ad hoc quantities
#dbgHandle = open(... | sevenian3/ChromaStarPy | vegatest.py | Python | mit | 8,824 | [
"Gaussian"
] | 88285e35db0e3c95a0773fae44ec4fd0a4f3d78a30cbc9fad7f375e11bbd0797 |
# -*- coding: utf-8 -*-
"""
End-to-end tests for Student's Profile Page.
"""
from contextlib import contextmanager
from datetime import datetime
from bok_choy.web_app_test import WebAppTest
from nose.plugins.attrib import attr
from ...pages.common.logout import LogoutPage
from ...pages.lms.account_settings import Acc... | antoviaque/edx-platform | common/test/acceptance/tests/lms/test_learner_profile.py | Python | agpl-3.0 | 34,174 | [
"VisIt"
] | bb7703eedfb817597eb6a08c7603c955c2198b608de18aa7419a9e9225bc65fa |
# -*- coding: utf-8 -*-
from gettext import gettext as _
ACTIVITY_NAME = _('I know Uruguay')
PRESENTATION = [
_("What a beautiful world!\nI will explore that territory.\nThere I go!"),
_("Oh, no!\nThe ship has problems,\nI'm going to crash!"),
_("Luckily I was saved!\nNow I have to rebuild my ship.\nNeed... | AlanJAS/iknowUruguay | recursos/comun/datos/commons.py | Python | gpl-3.0 | 2,120 | [
"VisIt"
] | 6963c2b2c7373134fc9aa8c59ae0cec9638fc5ad7f40869ca3d6fda14535a2a0 |
# (c) 2015, Brian Coca <bcoca@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 by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | kaarolch/ansible | lib/ansible/plugins/lookup/url.py | Python | gpl-3.0 | 2,181 | [
"Brian"
] | baf4d40bd3f730ba3a091762aa6565c3c78c7147e736b48e267c811fa7f2884a |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# docs - online documentation front end
# 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 GNU General Public Licens... | heromod/migrid | mig/cgi-bin/docs.py | Python | gpl-2.0 | 1,109 | [
"Brian"
] | 034093a24dc814ac213b280bb9c8f25cdf0319e7bb927882c6dad74e0bbc7b03 |
"""
Methods related to aligning reads.
This module was created because of a circular import issue with celery.
...
File "/home/glebk/Projects/churchlab/genome-designer-v2/genome_designer/pipeline/read_alignment.py", line 9, in <module>
from main.models import clean_filesystem_location
File "/home/glebk/Proje... | churchlab/millstone | genome_designer/pipeline/read_alignment_util.py | Python | mit | 5,281 | [
"BWA"
] | f3c3c61d0b0afbb1adb643e21473aaedc328f425165463c955f6f6a15bb6bcb4 |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | gkc1000/pyscf | pyscf/prop/nsr/rks.py | Python | apache-2.0 | 2,352 | [
"PySCF"
] | dcc0a25408beb48164932e3f21a03f4e4a4bd38bb83d6fd7f1046288e4068f1e |
# -*- coding: utf-8 -*-
import Base
import VS
import GUI
import ShowProgress
import computer_lib
import dj_lib
# No good reason to disable it...
# dj_lib.disable()
def DoStartNewGame(self,params):
global starting_new_game
ShowProgress.activateProgressScreen('loading',3)
VS.loadGame(VS.getNewGameSaveName(... | vinni-au/vega-strike | data/bases/main_menu.py | Python | gpl-2.0 | 9,821 | [
"Brian",
"CRYSTAL"
] | c8269913aeb30518237314059215f4ef0b1b7eacffb88de7a907206c43291a5e |
#pylint: disable=missing-docstring
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/... | nuclear-wizard/moose | python/chigger/filters/__init__.py | Python | lgpl-2.1 | 1,437 | [
"MOOSE",
"VTK"
] | 63181c5b2f1f5687529b669c35786458cfc46e35f0fdc8c3864c2269560225f2 |
#!/usr/bin/env python
"""
draw.py
Author: Tony Papenfuss
Date: Sat Jul 22 11:45:06 EST 2006
"""
import os, sys, glob
import hmmer, blast, blat
from useful import DSU
from reportlab.graphics import renderPDF
from reportlab.lib import colors
from reportlab.graphics.shapes import *
from reportlab.graphics.charts.text... | PapenfussLab/Mungo | mungo/diagram/snippets/draw_orig.py | Python | artistic-2.0 | 7,016 | [
"BLAST"
] | 8b5f33c6d07e560d29b62ee1c2ffe6fb177fd172db0f99aa9fc548c8cf796086 |
"""
This class is used to insert data to a db (currently elasticsearch).
It uses an internal list which is used to keep messages in the memory.
addRecord is used to insert messages to the internal queue. commit is used
to insert the acumulated messages to elasticsearch.
It provides two failover mechanism:
1.) If the da... | hgiemza/DIRAC | MonitoringSystem/Client/MonitoringReporter.py | Python | gpl-3.0 | 5,991 | [
"DIRAC"
] | 8be80bdd55e24f668ef2edc7009a05074e5781d18dccb7e73e84a5537986506c |
# Copyright (C) 2013, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import sys
from repo import cmd
from zeroinstall import SafeException
version = '0.13'
try:
cmd.main(sys.argv)
except SafeException as ex:
import logging
if logging.getLogger().isEnabledFor(logging.INFO):
raise
... | 0install/0repo | 0repo.py | Python | lgpl-2.1 | 345 | [
"VisIt"
] | 197358c6ad577d9a1c2453c04054c184c79bd70ed07018fd740cb7283103f826 |
#!/usr/bin/env python
from __future__ import print_function
from vtk import *
import sys
import os
import time
myProcId = 0
numProcs = 1
compManager = vtkCompositeRenderManager()
if compManager.GetController():
myProcId = compManager.GetController().GetLocalProcessId()
numProcs = compManager.GetController().G... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Examples/ParallelProcessing/MPI/Python/ParallelCone.py | Python | gpl-3.0 | 2,244 | [
"VTK"
] | dd9f7eab72d6a743e9bdfc2502dfdf27af396ce899454195f2f1721e6ca248cd |
import matplotlib.pyplot as plt
from pycalphad import Database, Model, binplot
from pycalphad.core.utils import make_callable
import pycalphad.variables as v
db = Database('Fe-C_Fei_Brosh_2014_09.TDB')
fig = binplot(db, ['FE', 'C', 'VA'], list(db.phases.keys()), 'X(C)', 300.0, 2000.0, P=1e10)
plt.savefig('FeC.png')
| richardotis/pycalphad-sandbox | FeC-Diagram.py | Python | mit | 318 | [
"pycalphad"
] | 7ada71250409000da673b66e75fedfe9f152b7c4cbac44e9a6a798de3a31be66 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/e2openplugin-OpenWebif | plugin/controllers/views/web/getaudiotracks.py | Python | gpl-2.0 | 6,008 | [
"VisIt"
] | d86d195069ecfc9ba2975d7442747331e4661fe20b88e5af7aaabf402891782c |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework
Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
The widget is called from web2py.
"""
import sys
import cStringIO
import time
import thread
import re
impo... | SEA000/uw-empathica | empathica/gluon/widget.py | Python | mit | 32,382 | [
"VisIt"
] | 872af4968b1112633f9392684e2b6235ce210ffab37c08272a4d38528422d9f8 |
# fbdata.management.commands.anonymize
# DJANGO
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.management.base import BaseCommand, CommandError
# BLOG
from fbdata.models import AnonName
class Command(BaseCommand):
help = 'Commands for anonymizing data.'
de... | valuesandvalue/valuesandvalue | vavs_project/fbdata/management/commands/anonymize.py | Python | mit | 18,105 | [
"COLUMBUS"
] | fb3905b8125de5e91c894fbe80e8f3f891fb58b5b3e161d849dfe3254d886d49 |
#!/usr/bin/env python
"""
Add an existing transformation to an existing production.
Transformations already belonging to another production cannot be added.
"""
__RCSID__ = "$Id$"
import DIRAC
from DIRAC.Core.Base import Script
Script.setUsageMessage('\n'.join([__doc__.split('\n')[1],
... | fstagni/DIRAC | ProductionSystem/scripts/dirac-prod-add-trans.py | Python | gpl-3.0 | 2,345 | [
"DIRAC"
] | e41df946f35c63b3a89f503d1d0dc95a2b71ae6a3cf5b59aff3d01480c494423 |
# coding=utf-8
# Copyright 2016 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 app... | S-YOU/grumpy | compiler/imputil_test.py | Python | apache-2.0 | 9,385 | [
"VisIt"
] | ea8f57d8ce8c9b7993be8db46b43234fad046e528346c21a69c3921d9d1381c8 |
"""
An example for using gromacs calculator in ase.
Atom positions are relaxed.
If qm atoms are found in index file, they are kept fixed in the relaxation.
QM atoms are defined in index file (numbering from 1)
in sets containing QM or Qm or qm in their name.
A sample call:
./gromacs_exampl... | grhawk/ASE | tools/doc/ase/calculators/gromacs_example_mm_relax2.py | Python | gpl-2.0 | 1,243 | [
"ASE",
"Gromacs"
] | f3d91dacb9ee51ba9c9272d3ff24d17b83beade28648f74ed704b50ead02315c |
#!/usr/bin/env python
""" Test region reports w/o loading any static data in db.
"""
import os
import unittest
from pheme.util.config import Config, configure_logging
from pheme.util.pg_access import db_connection, db_params
from pheme.longitudinal.generate_daily_essence_report import GenerateReport
from pheme.longit... | pbugni/pheme.longitudinal | pheme/longitudinal/tests/test_region_report_no_static_data.py | Python | bsd-3-clause | 5,221 | [
"VisIt"
] | 0f1cde66e7161b9f6e58e45fa9c19a6e67ddd152a2c05d9397d9a8063df31197 |
########################################################################
#
# (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 by
# the Free Software ... | Mic92/ansible | lib/ansible/cli/galaxy.py | Python | gpl-3.0 | 30,358 | [
"Galaxy"
] | 02ec7f067a3fd24624b30d2bea222c7a94e05383794c2a6c4a05f4b312e9b3be |
#!/usr/bin/env python
## INFO ########################################################################
## ##
## formbuilder ##
## =========== ... | petervaro/formbuilder | main.py | Python | gpl-3.0 | 3,225 | [
"VisIt"
] | 12563c154f7addec7229108a30efc8f3c23fa239c19861642e07aa151f9f1a29 |
"""
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | CraigHarris/gpdb | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_dml/test_uaodml.py | Python | apache-2.0 | 985 | [
"ORCA"
] | 1e77185117b37a95cecdca544b03d2a5724de0115f5794885b33661e525d27e6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.