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 |
|---|---|---|---|---|---|---|---|
# Copyright (c) 2007 The Regents of The University of Michigan
# Copyright (c) 2010 The Hewlett-Packard Development Company
# 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 sou... | cancro7/gem5 | src/python/m5/stats/__init__.py | Python | bsd-3-clause | 4,897 | [
"VisIt"
] | 1450a70bf7865b0ce522f3b8cbf766d5bea3a63f2c5b1c0dcbd076aeead88a04 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2005-2007 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Softw... | tiagocardosos/stoq | stoqlib/gui/editors/serviceeditor.py | Python | gpl-2.0 | 3,639 | [
"VisIt"
] | 131983d7257fe23b01e3a3ee6e827cdd019ea6744a4d7d6028b3bbc17dc1924c |
"""
A test of the Gaussian elimination kernel used for the BoundaryRecoverer.
"""
from firedrake import (IntervalMesh, FunctionSpace, Function, RectangleMesh,
VectorFunctionSpace, FiniteElement)
from gusto import kernels
import pytest
@pytest.fixture
def mesh(geometry):
L = 3.0
n = 3... | firedrakeproject/dcore | tests/kernel_tests/test_gauss_elim_kernel.py | Python | mit | 3,802 | [
"Gaussian"
] | c72181b2973ee348f232c844a38859668b759605dfee0e66ef77dd66c001b218 |
# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""I/O function wrappers for phylogenetic tree formats.
This API follows the same seman... | zjuchenyuan/BioWeb | Lib/Bio/Phylo/_io.py | Python | mit | 2,574 | [
"Biopython"
] | 8be6d101cfa01cb0fba585982b9ab9e75955a6cb65a7a15a88a8176194cc4121 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Introduction to the Bioinformatics Armory
Usage:
INI.py <input> [--compare]
INI.py (--help | --version)
Options:
--compare run a speed comparison of various methods
-h --help show this help message and exit
-v --version show version and exit
"... | SavinaRoja/challenges | Rosalind/Bioinformatics_Tools/INI.py | Python | unlicense | 3,484 | [
"Biopython"
] | e46566c9fcb7d437ebcf837d5a7d1f7a9a5841a4e983f5c0e32f6f82d2c3fa89 |
from skimage.feature import corner_harris, corner_peaks
from skimage.filters import gaussian
from skimage import img_as_ubyte
import cv2
import numpy as np
from classes import Point
# heuristic to find the best corner, given its position relative to the pupil center
def corner_measure(corner, center, leftness=1):
... | michele-mada/cv-eyetracking-project-2017 | py_eyetracker_v1.0/utils/eyecorners.py | Python | mit | 1,761 | [
"Gaussian"
] | d5b69b0e711c068905ad94cc6350b01374a931e30f2c393c731586b183791f0d |
'''
inflect.py: correctly generate plurals, ordinals, indefinite articles;
convert numbers to words
Copyright (C) 2010 Paul Dyson
Based upon the Perl module Lingua::EN::Inflect by Damian Conway.
This program is free software: you can redistribute it and/or modify
it under the terms... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/inflect.py | Python | agpl-3.0 | 100,739 | [
"CASINO",
"ESPResSo",
"Elk",
"MOOSE",
"Octopus"
] | ab16ec1aa7292142c9c363ea2a424269d9d521642ced66aaad16fe018a416358 |
# -*- coding: utf-8 -*-
"""
This file contains the Qudi Logic to control Nuclear Operations.
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 License, or
(at your option) any later ve... | tobiasgehring/qudi | logic/nuclear_operations_logic.py | Python | gpl-3.0 | 50,364 | [
"Gaussian"
] | b8183ffb3f25ba4144a1e092da45ef26c5b72d76429185e06980eb2ac016c3f1 |
#!/usr/bin/env ganga
import getpass
from distutils.util import strtobool
polarity='MagDown'
datatype='MC'
substitution='None'
channel='lbpketa'
b=Job()
b.application=DaVinci(version="v36r5")
if datatype=='MC':
b.application.optsfile='NTupleMaker_{0}.py'.format(polarity)
print 'NTupleMaker_{0}.py'.format(pol... | Williams224/davinci-scripts | lbpketa/JobSubmit.py | Python | mit | 2,163 | [
"DIRAC"
] | 27a6581cfd4ea1942f0d40e49e2062398879adf8444d30d214e7a865e68a1078 |
"""``base`` module of ``dataql.parsers``.
It provides the base parser each subclass should inherit from, and the metaclass used
to manage the creation of the grammar using the ones from all parent classes.
"""
# pylint: disable=no-self-use
from abc import ABCMeta
from inspect import isfunction
import re
import sys
... | twidi/py-dataql | dataql/parsers/base.py | Python | bsd-2-clause | 20,809 | [
"VisIt"
] | cea2bdac097f0139cb6c762158c470170597016da17fe2bc7df5769cacf39cd2 |
from __future__ import print_function
from contextlib import contextmanager
from distutils.core import Command
from distutils.util import convert_path
import os
from shutil import copyfile
import sys
import textwrap
from setuptools import setup
from setuptools.command.develop import develop as develop_cmd
from setupt... | QuLogic/iris | setup.py | Python | gpl-3.0 | 7,704 | [
"NetCDF"
] | 7a0af73861c69e0b747c408441385e6865a3cdc2cf6519fbea43972ddebe0734 |
# Copyright (c) 2015
# Jakub Krajniak (jkrajniak at gmail.com)
#
# 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
... | capoe/espressopp.soap | src/analysis/SystemMonitor.py | Python | gpl-3.0 | 4,632 | [
"ESPResSo"
] | bfb43c58fb418a19ae2d234b201377a5dc3a07164c3e291881770696d02a7836 |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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) an... | sean-/ansible | lib/ansible/constants.py | Python | gpl-3.0 | 15,737 | [
"Galaxy"
] | 24dd0f8f2b747373fa8223bb5043f62d013a9f6a2e7d594146675152e1c6bc25 |
# # #
# Current implementation of the cru ts31 (ts32) delta downscaling procedure
#
# Author: Michael Lindgren (malindgren@alaska.edu)
# # #
import numpy as np
def write_gtiff( output_arr, template_meta, output_filename, compress=True ):
'''
DESCRIPTION:
------------
output a GeoTiff given a numpy ndarray, rasterio... | ua-snap/downscale | old/old_bin/old/hur_vap_cru_ts31_to_cl20_downscaling.py | Python | mit | 20,140 | [
"NetCDF"
] | 78298aca4a6f46074a045c37806e1975a33424bdf487a5b0d44540105999d81a |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# --------------------------------... | marmyshev/item_title | scripts/check_dependencies.py | Python | gpl-2.0 | 6,418 | [
"Brian"
] | 562884c4209ebea5ee405a29ad7349af701584c2b1e15794d0c79131c5d1c06b |
"""
/******************************************************************************
This source file is part of the Avogadro project.
Copyright 2013 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
di... | cjh1/mongochemweb-avogadrolibs | avogadro/qtplugins/quantuminput/inputGenerators/inputgeneratortest.py | Python | bsd-3-clause | 5,340 | [
"Avogadro",
"NWChem"
] | 8e9f134e9b6bfe6e3f69017c2800c2aab1b0e30c2232bbfcf3cc2b157295eeb0 |
'''
% -------------------------------------------------------------------------
% Function: [class,type, Eps]=dbscan(x,k,Eps)
% -------------------------------------------------------------------------
% Aim:
% Clustering the data with Density-Based Scan Algorithm with Noise (DBSCAN)
% -------------------------... | crosvera/visualdep | src/dbscan.py | Python | gpl-2.0 | 6,971 | [
"Brian"
] | 424106c6e9daf9ee0e200c495b78c248f5cd4892cd826fbd8c81af9d29ec11d3 |
#!/usr/bin/env python
#
# MIMEHandler.py
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANT... | buffer/thug | thug/DOM/MIMEHandler.py | Python | gpl-2.0 | 18,801 | [
"NetCDF"
] | b52fb56e5390cbc9f5531d9b3381b74e4c448d97a23f0a4e01b7a5520caff11e |
# -*- coding: utf-8 -*-
import time
from datetime import datetime, timedelta
from typing import List
from dateutil.parser import parse as dateutil_parse
from loguru import logger
from sqlalchemy import Column, Date, DateTime, Integer, String, Table, Time, Unicode, and_, or_
from sqlalchemy.orm import relation
from s... | ianstalk/Flexget | flexget/components/trakt/db.py | Python | mit | 42,324 | [
"VisIt"
] | 21830bf153dcfecc60ec991f1fe717e46df8b54bb66bbcecdecbe083bf33ebbf |
# FIXME: Unused right now
# FIXME: should move to use InstalledComponentsDB (or better ComponentMonitoring Service) instead of ComponentMonitoringDB
# """ ComponentSynchronizer
#
# Module that reads ComponentMonitoringDB.compmon_Components table and copies it
# to a RSS-like family of status tables to make everyth... | vmendez/DIRAC | ResourceStatusSystem/Utilities/ComponentSynchronizer.py | Python | gpl-3.0 | 3,388 | [
"DIRAC"
] | f2bfe2368b18c9cecc418bb429f5fb69465b7e7746de0b6b72c5addbb13bbb55 |
''' DIRAC.ResourceStatusSystem.Utilities package
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = '$Id$'
| yujikato/DIRAC | src/DIRAC/ResourceStatusSystem/Utilities/__init__.py | Python | gpl-3.0 | 182 | [
"DIRAC"
] | ec475d048fd000803d437528024d197c5ac2fc5355f2f12949ab1b7359973745 |
# $Id$
#
# Copyright (C) 2004-2006 Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
from __future__ import division
from r... | rvianello/rdkit | rdkit/DataStructs/__init__.py | Python | bsd-3-clause | 1,625 | [
"RDKit"
] | ebd204753ae84d9053958e2d5ae3c94444e836912572d7f04a912a252727f024 |
# $Id$
#
# Copyright (C) 2003-2013 Greg Landrum and Rational Discovery LLC
# All Rights Reserved
#
""" This is a rough coverage test of the python wrapper
it's intended to be shallow, but broad
"""
from __future__ import print_function
import os,sys,tempfile,gzip
import unittest
from rdkit import RDConfig,r... | soerendip42/rdkit | Code/GraphMol/Wrap/rough_test.py | Python | bsd-3-clause | 108,798 | [
"RDKit"
] | 15f0951c132d7881e662d719ee1f53288c1cc9c56badf741f4b447e24373402e |
#* 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/licenses/lgpl-2.1.html
import os
im... | harterj/moose | python/MooseDocs/extensions/gitutils.py | Python | lgpl-2.1 | 2,926 | [
"MOOSE"
] | f69e46935fb9fe51a646b49c8a993fb601b210c864def43d026e05e80e55194f |
#!/usr/bin/env python
"""
Reorder the integer arguments to the commands in a LAMMPS input
file if these arguments violate LAMMPS order requirements.
We have to do this because the moltemplate.sh script will automatically
assign these integers in a way which may violate these restrictions
and the user ... | andeplane/lammps | tools/moltemplate/src/postprocess_input_script.py | Python | gpl-2.0 | 5,958 | [
"LAMMPS"
] | d3027bfd686c36d36b81c018541cbc6934ff0f129138e907f873a9362878b0fd |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import pytest
import numpy as np
from numpy.testing import assert_array_equal
from astropy.nddata import NDData, NDSlicingMixin
from astropy.nddata import _testing as nd_testing
from astropy.nddata.nduncertainty import NDUncertainty, StdDevUncertainty
f... | aleksandr-bakanov/astropy | astropy/nddata/mixins/tests/test_ndslicing.py | Python | bsd-3-clause | 5,997 | [
"Brian"
] | 133458ee7233f6941186d8fdd512fd95d86e88c73b3ac033e42b318ccbdacc64 |
from __future__ import print_function
__author__ = """Alex "O." Holcombe, Charles Ludowici, """ ## double-quotes will be silently removed, single quotes will be left, eg, O'Connor
import time, sys, platform, os
from math import atan, atan2, pi, cos, sin, sqrt, ceil, radians, degrees
import numpy as np
import psychopy, ... | alexholcombe/dot-jump | dataRaw/Fixed Cue/test_dot-jump21Nov2016_13-42.py | Python | gpl-3.0 | 26,078 | [
"Gaussian"
] | 21cdaa05da67f6b05c23e05039391316e3a0c73bd463d4d3ed3a4b1c5f4d1c26 |
from django.db import models
from edc_base.model_fields import OtherCharField
from edc_base.model_validators import datetime_not_future, date_not_future
from edc_base.utils import get_utcnow
from edc_constants.choices import YES_NO, ALIVE_DEAD_UNKNOWN
from edc_constants.constants import YES, ALIVE, NOT_APPLICABLE
from ... | botswana-harvard/edc-visit-tracking | edc_visit_tracking/model_mixins/visit_model_mixin/visit_model_fields_mixin.py | Python | gpl-2.0 | 2,976 | [
"VisIt"
] | 6bb5efc1e0fb11e9f242147d2713b642514799e59f9f7836ea5dc225062632bd |
"""
============================================================
Sparse recovery: feature selection for sparse linear models
============================================================
Given a small number of observations, we want to recover which features
of X are relevant to explain y. For this :ref:`sparse linear ... | RPGOne/Skynet | scikit-learn-0.18.1/examples/linear_model/plot_sparse_recovery.py | Python | bsd-3-clause | 7,486 | [
"Gaussian"
] | fa04df2e48022cd847d04c66b6a51bc53e34893c112e241406cf5bd47661cad4 |
# Load python packages
import re, sys, math
from collections import OrderedDict
# Load Moose packages
from FactorySystem import MooseObject
from ..slides import RemarkSlide, SlideWarehouse
##
# Base class for markdown slide generation
class RemarkSlideSet(MooseObject):
##
# Defines the available properties for t... | jinmm1992/moose | python/PresentationBuilder/slidesets/RemarkSlideSet.py | Python | lgpl-2.1 | 9,693 | [
"MOOSE"
] | e95780245a2a7d4c70657d310ae158a9448d7f73c63690ab6ffa306ecf43baf3 |
#!/usr/bin/env python
#Dan Blankenberg
"""
BACKUP YOUR DATABASE BEFORE RUNNING THIS SCRIPT!
This script has been tested with Postgres, SQLite, and MySQL databases.
This script updates a pre-security/library database with necessary schema changes and sets default roles/permissions
for users and their histories and dat... | dbcls/dbcls-galaxy | scripts/update_database/update_database_with_security_libraries.py | Python | mit | 11,784 | [
"Galaxy"
] | 00fb5de011f88fbe9abf9574c6339ff41f2825f93833b40b1c738da099161742 |
# Mutation Reporter Tool, Fragment Merger Tool
# Copyright (C) 2015 University of the Witwatersrand, Johannesburg, South Africa
# Author: Dr Trevor G. Bell, TrevorGrahamBell@gmail.com
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | DrTrevorBell/FragmentMerger | cgi-bin/climb.py | Python | gpl-2.0 | 62,495 | [
"Biopython"
] | 7dfa76136c41105df88be2f2686c86c63feb62c7eec8f42f3a11e6a2c26141ce |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-install-executor
# Author : Ricardo Graciani
########################################################################
"""
Do the initial installation and configuration of a DIRAC service
"""
__R... | Sbalbp/DIRAC | Core/scripts/dirac-install-executor.py | Python | gpl-3.0 | 3,539 | [
"DIRAC"
] | c5c3cb6294ff22867054a9cf14f81cda1526d04e6a8e5416137bcb4317220c5f |
import sys
import unittest
import numpy as np
from scipy import integrate,stats
import cpnest
import cpnest.model
import matplotlib as mpl
mpl.use('Agg')
from matplotlib import pyplot as plt
class HalfGaussianModel(cpnest.model.Model):
"""
A simple gaussian model with parameters mean and sigma
"""
def ... | johnveitch/cpnest | tests/test_half_gaussian.py | Python | mit | 2,273 | [
"Gaussian"
] | 87fea778e6462e45eb62dfe58c022b51e130a7df014f9f829eb13bdf17cf238d |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-talent | tests/unit/gapic/talent_v4/test_job_service.py | Python | apache-2.0 | 142,090 | [
"Octopus"
] | 91a7c55c06882481da8ff5399373f7c2459ac008d052056fa5e547f5b0bd1153 |
# -*- coding: utf-8 -*-
# rc19.py ---
#
# Filename: rc19.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Sat May 24 14:10:22 2014 (+0530)
# Version:
# Last-Updated:
# By:
# Update #: 0
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
#
#
#
#
# This program is... | dharmasam9/moose-core | tests/python/mus/rc19.py | Python | gpl-3.0 | 9,791 | [
"MOOSE",
"NEURON"
] | 47cbb004fd3d50b8524a982838f7ff41babe938e08839c29bf011f7273fd8081 |
# ----------------------------------------------------------------------------
# Copyright (c) 2015--, biocore development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# -----------------------------------------------... | biocore/burrito-fillings | bfillings/mafft_v7.py | Python | bsd-3-clause | 13,706 | [
"BLAST"
] | b13d6b681609143987aef322e288c92850c88f5fdb6e159bdda528eded84824c |
import json
from django import http
from django.core.urlresolvers import reverse
from django.core.urlresolvers import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from horizon import exceptions
from horizon import forms
from horizon.utils import memoized
from crystal_dashboard.api import filte... | Crystal-SDS/dashboard | crystal_dashboard/dashboards/crystal/filters/filters/views.py | Python | gpl-3.0 | 3,815 | [
"CRYSTAL"
] | 71d0d9be1866e0eafc73eb02981dd650b519acae93579e8e6ebc59ac437993be |
# -*-coding:utf-8 -*
try: #If needed, the _path module must add the path to the Narro directory to sys.path so that the Narro Engine can be imported as a package
import _path
except:
pass
from constantes import *
from narro.evenement import *
from narro.boiteOutils import *
from narro.interrupteur import *
from... | Rastagong/A-Scholar-In-The-Woods | Trunk/listeEvenements.py | Python | mit | 31,574 | [
"FLEUR"
] | 8bb12fd875514cf389bd3c2b8bc6fa03d0c9d635b30583cfaf9d0fba1ba0aab5 |
#
# Copyright (C) 2022 Kevin Burk
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
"""
unit testing code for various logging schemes
"""
import c... | rdkit/rdkit | rdkit/UnitTestLogging.py | Python | bsd-3-clause | 11,618 | [
"RDKit"
] | bad76b1efefb37ff96fd37b7245faa743785891ac49171c245019c96da580421 |
# -*- coding: utf-8
from yade import ymport,utils,pack,export,qt,bodiesHandling
import gts,os
# for plotting
from math import *
from yade import plot
############################
### DEFINING PARAMETERS ###
############################
#GEOMETRIC :dimension of the rectangular box
a=400e-3 # side dimension
h=150... | anna-effeindzourou/trunk | examples/anna_scripts/tilt/tilttest_m2box.py | Python | gpl-2.0 | 9,719 | [
"ParaView"
] | 5b6b2609bb93d110e832d093d3e29ad231009e3e11f76cbda408a7ada5545174 |
from math import pi
import numpy as np
from gpaw import debug, extra_parameters
from gpaw.spherical_harmonics import Y
from gpaw.grid_descriptor import GridDescriptor
from gpaw.mpi import serial_comm
import _gpaw
"""
=== =================================================
M Global localized function number.
W ... | qsnake/gpaw | gpaw/lfc.py | Python | gpl-3.0 | 41,808 | [
"GPAW"
] | fb0ea0b6aafd2373327b132fd73cce6d7191e2c75442f51dd0563df2fbdbdb5f |
from netCDF4 import Dataset
import numpy as np
import pickle
import scipy.interpolate as interp
import multiprocessing as mp
import os
import sys
import psutil
import time
#Define the correspondence between pyteos variable names and CMIP5 naming convention:
CMIP5_pyteos_equivalence={'A':'hus',
... | laliberte/pyteos_nc | pyteos_nc/netcdf_interface.py | Python | gpl-3.0 | 10,227 | [
"NetCDF"
] | 6db2cb338c19bbbce390df9e85afe8400ee5dd466df554e00b705901e5e18e9d |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module implements an interface to enumlib, Gus Hart"s excellent Fortran
code for enumerating derivative structures.
This module depends on a compiled enumlib with the executables enum.x and
makestr.x ... | gVallverdu/pymatgen | pymatgen/command_line/enumlib_caller.py | Python | mit | 17,799 | [
"VASP",
"pymatgen"
] | 40a00006727425bd752b285719a41da4ba75be120d63df5d5ff8efa7becc4fb2 |
#
# This file is part of postpic.
#
# postpic 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.
#
# postpic is distributed in the hope th... | skuschel/postpic | postpic/datareader/epochsdf.py | Python | gpl-3.0 | 8,978 | [
"VisIt"
] | 136f791b7ad289e5a3025bcbef03563ee92cf82b001e298c3b1b8260db1c2e9f |
import urllib
def safebrowse(target_url, check_reason):
"""This will submit the URL to Google Safe browsing. Since they have Captcha
protection on the page, you'll need to manually visit this URL. It should
autopopulate what it can through the url."""
enc_url = urllib.parse.quote_plus(target_url)
e... | remotephone/phishinabarrel | sb.py | Python | gpl-3.0 | 661 | [
"VisIt"
] | 0a3fc6730054da1c45843f52e16a65741b0cedfd1130b6f67e2578aa4ced7ce5 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-functions | tests/unit/gapic/functions_v1/test_cloud_functions_service.py | Python | apache-2.0 | 138,874 | [
"Octopus"
] | 08173e361c1e92b2ac64133bba581a82ce79d0526c4aecba9202c53317f019b6 |
#!/usr/bin/env python
"""
Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
class PRIORITY:
LOWEST = -100
LOWER = -50
LOW = -10
NORMAL = 0
HIGH = 10
HIGHER = 50
HIGHEST = 100
class SORT_ORDER:
FIRST = 0
SECOND = 1
... | zhinaonet/sqlmap-z | lib/core/enums.py | Python | gpl-3.0 | 10,150 | [
"Galaxy"
] | 26b34701738dfc4a93e60899af3a2aae329f6d8271e8ccdd14cbde9ac06aeae3 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/e2openplugin-OpenWebif | plugin/controllers/views/ajax/about.py | Python | gpl-2.0 | 8,757 | [
"VisIt"
] | e9d067a9c8334a7e73b630980e0350f0a1531bddc7fe7ae4bab38a2ca58d1788 |
from os.path import join as pjoin
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
_version_major = 0
_version_minor = 1
_version_micro = '' # use '' for first of series, number for 1 and above
_version_extra = 'dev'
# _version_extra = '' # Uncomment this for full releases
# Construct fu... | ritviksahajpal/pygeoutil | pygeoutil/version.py | Python | mit | 2,473 | [
"NetCDF"
] | 8acecc7da16c07d19232c12278347f83cf80d61e23dbc326a390570f99415c91 |
#!/usr/bin/env python
#
# Copyright (C) 2014
# Brian Caswell <bmc@lungetech.com>
# Narf Industries <info@narfindustries.com>
#
# 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 res... | f0rki/cb-multios | original-challenges/SIGSEGV/support/multi/multi.py | Python | mit | 3,120 | [
"Brian"
] | 05c16bb2650bc1e869a3e81cf247af54989a662d4fc9ab341b7429bb40cea1fc |
# -*- coding: utf-8 -*-
#
# CatMAP documentation build configuration file, created by
# sphinx-quickstart on Tue Nov 25 08:51:50 2014.
#
# 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
# autogenerated file.
#
# Al... | charlietsai/catmap | docs/source/conf.py | Python | gpl-3.0 | 11,641 | [
"ASE"
] | 042681781986ebe0ba34245d1116b69ddd5aadcea6c8e8958e62e43e7e46820e |
# -*- coding: latin1 -*-
# $Id: CNCCanvas.py,v 1.7 2014/10/15 15:04:06 bnv Exp $
#
# Author: vvlachoudis@gmail.com
# Date: 24-Aug-2014
import math
import bmath
try:
from Tkinter import *
except ImportError:
from tkinter import *
from CNC import CNC
import tkExtra
import Utils
# Probe mapping we need PIL and ... | aht1972/1st-CNC | CNCCanvas.py | Python | gpl-2.0 | 46,567 | [
"FLEUR"
] | 5af4a485412f14117ac6cbde78547fb1ff7d4307138aa0794c1a5ba83f6d6e0f |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | dmlc/tvm | tests/python/relay/test_expr_functor.py | Python | apache-2.0 | 3,495 | [
"VisIt"
] | 3ab07d81e5338ff0b0b068f4287f2f30ed5a803786ed1fd6b12b2a02a93a742a |
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | simonpatrick/bite-project | deps/mrtaskman/server/handlers/dash.py | Python | apache-2.0 | 2,820 | [
"Galaxy"
] | b5809e7d4f7603479719b016888f39e90a473504f4c256e32e7475a47e29c4fc |
# ref 1: https://lammps.sandia.gov/doc/99/data_format.html
# ref 2: ase/io/lammpsdata.py
import numpy as np
units = 'metal'
line_formats = {
# atype mass
'mass': '\n%3d %.6f',
# id group atype q x y z
'atoms_full': '\n%5d %5d %3d %.6f %.16e %.16e %.16e',
# id atype ... | Paul-St-Young/solid_hydrogen | qharv_db/lmp_data.py | Python | mit | 7,077 | [
"ASE",
"LAMMPS"
] | f32420b0aac39b9aaecec965eb6a75a001111f826b914f840f06155516a15fc9 |
"""
============================================
SNR estimation for Diffusion-Weighted Images
============================================
Computing the Signal-to-Noise-Ratio (SNR) of DW images is still an open
question, as SNR depends on the white matter structure of interest as well as
the gradient direction corres... | FrancoisRheaultUS/dipy | doc/examples/snr_in_cc.py | Python | bsd-3-clause | 6,726 | [
"Gaussian"
] | 0e0c3dbfb956f683741bb8d2f9f122e8d45f92b5aecc3580589b849f9ec34c0e |
''' file name : houghlines.py
Description : This sample shows how to detect lines using Hough Transform
This is Python version of this tutorial : http://opencv.itseez.com/doc/tutorials/imgproc/imgtrans/hough_lines/hough_lines.html
Level : Beginner
Benefits : Learn to find lines in an image and draw them
Usage : py... | asrob-uc3m/rpc_rpi | src/python/opencv_python_tutorials/Official_Tutorial_Python_Codes/3_imgproc/houghlines.py | Python | gpl-3.0 | 2,018 | [
"VisIt"
] | c7cf475e1f5722d968b1bc021427bc79da643955ef897e979b13f6b5868aa6c4 |
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2015 Toshio Kuratomi <tkuratomi@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... | roadmapper/ansible | lib/ansible/executor/module_common.py | Python | gpl-3.0 | 60,682 | [
"VisIt"
] | 9ceb81a09ef817b865d690074b6633d4fc06b72486e68694db0faaa2abfdb4d2 |
"""SQLite3 backend.
Versions:
1) Added 3 more columns.
2) Changec "user" to "username".
3) Now adding keys to keyword table and added an "information" table containing
a version number.
"""
from __future__ import absolute_import, print_function
import sqlite3
import numpy as np
from ase.db.core import Database,... | askhl/ase | ase/db/sqlite.py | Python | gpl-2.0 | 15,204 | [
"ASE"
] | c798b2dee7eaa9e3be0242a04db112f1a951376989c87636e9c31c1422614c33 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | retrography/scancode-toolkit | src/commoncode/codec.py | Python | apache-2.0 | 5,449 | [
"VisIt"
] | 15198fec16c8c0dfe0916bd67bb5e588992a975b37bec82e16a1da3878362dfe |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
Development script to test the algorithms of all the model coordination environments
"""
__author__ = "David Waroquiers"
__copyright__ = "Copyright 2012, ... | gVallverdu/pymatgen | dev_scripts/chemenv/test_algos_all_geoms.py | Python | mit | 4,867 | [
"pymatgen"
] | 596b0c34ec49a62c4f2e7b08dbebc5e8b9e54950181ffd29e8d2e1bbcb44ae5c |
import soundcloud as sc
from soundcloud.resource import Resource
import sys
import os
import urllib2
import re
class downloader:
def __init__(self, UserURL, PATH):
try:
self.client = sc.Client(client_id='',
client_secret='',
)
self.user = self.c... | alex4108/scLikesDownloader | scLikesDownloader.py | Python | gpl-2.0 | 12,232 | [
"VisIt"
] | 538a01a65d229261136d404966c66c276b32ce6097030ff6bc4d37fb210c1044 |
"""
Test LMS Notes
"""
import random
from datetime import datetime
from unittest import skip
from uuid import uuid4
from nose.plugins.attrib import attr
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from common.test.acceptance.fixtures.edxnotes import EdxNotesFixture, Note, Range... | kmoocdev2/edx-platform | common/test/acceptance/tests/lms/test_lms_edxnotes.py | Python | agpl-3.0 | 59,857 | [
"VisIt"
] | 65425b2648a6dbc83cd0075cab533ba9dcb059ce7dfb3f25b222b5ffa0b13876 |
import numpy as np
from ase.data.molecules import molecule
from gpaw import GPAW, setup_paths
setup_paths.insert(0, '.')
atoms = molecule('H2O')
h = 0.2
for L in np.arange(4, 14, 2) * 8 * h:
atoms.set_cell((L, L, L))
atoms.center()
calc = GPAW(xc='PBE',
h=h,
nbands=-40,
... | qsnake/gpaw | doc/tutorials/xas/h2o_xas_box1.py | Python | gpl-3.0 | 500 | [
"ASE",
"GPAW"
] | 810520a693cf99040ba0c34f39f55b2895c51033e172c97676e5920f5fbd3ef1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# **************************************************************************
# Copyright © 2017-2020 jianglin
# File Name: setup.py
# Author: jianglin
# Email: mail@honmaple.com
# Created: 2017-04-16 15:18:54 (CST)
# Last Update: Friday 2021-06-04 10:14:45 (CST)
# ... | honmaple/flask-msearch | setup.py | Python | bsd-3-clause | 1,309 | [
"VisIt"
] | b2443c150f3eeee33cdc0fb58f780da163e7e8f3b66e87d66c93d4b4025403e9 |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | googleapis/python-iam | scripts/fixup_iam_credentials_v1_keywords.py | Python | apache-2.0 | 6,200 | [
"VisIt"
] | b9bba09aa05ea4b0520bb2d11bd8e1628712c34e7bf5e1acacbfcbe0e9a6894c |
"""
Factory used by mayavi to import csv-like files into datasets.
"""
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Copyright (c) 2008, Enthought, Inc.
# License: BSD Style.
from traits.api import HasTraits, Callable
from mayavi.tools.data_wizards.data_source_wizard import \
DataSourceWizardVie... | dmsurti/mayavi | mayavi/tools/data_wizards/csv_source_factory.py | Python | bsd-3-clause | 1,701 | [
"Mayavi"
] | 56040b33fe7459b06918923dfd75ec4b010560e7905c9e5400ab779641c211ed |
from builtins import range
import numpy as np
def affine_forward(x, w, b):
"""
Computes the forward pass for an affine (fully-connected) layer.
The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N
examples, where each example x[i] has shape (d_1, ..., d_k). We will
reshape each ... | ThyrixYang/LearningNotes | MOOC/stanford_cnn_cs231n/assignment2/cs231n/layers.py | Python | gpl-3.0 | 28,227 | [
"NEURON"
] | 9310544db910a3d6fbfc6568e00930869ec89da809098b094aec12d9e66d41ce |
''' Some tests for filters '''
from __future__ import division, print_function, absolute_import
import sys
import numpy as np
from numpy.testing import (assert_equal, assert_raises, assert_allclose,
assert_array_equal, TestCase, run_module_suite)
import scipy.ndimage as sndi
def test_tic... | jlcarmic/producthunt_simulator | venv/lib/python2.7/site-packages/scipy/ndimage/tests/test_filters.py | Python | mit | 8,304 | [
"Gaussian"
] | 1ede183b77fe97bb44320be000640c0c1595ec2142546968bfab2d0119c89356 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
########################################################################
# File : dirac-distribution
# Author : Adria Casajus
########################################################################
"""
Create tarballs for a given DIRAC release
"""
__RCSID__ = "$Id$"... | petricm/DIRAC | Core/scripts/dirac-distribution.py | Python | gpl-3.0 | 15,241 | [
"DIRAC"
] | 0e27587ad43a699924c60464f7393ab370a13d101c17ebf02ee9db7c65542f84 |
# pylint: disable-msg=C0302
import logging
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from django.core.validators import RegexValidator
from django.db import models
from django.template.defaultfilters import slugify
from metashare.bcp47 import iana
from metashare.euro... | MiltosD/CEF-ELRC | metashare/repository/models.py | Python | bsd-3-clause | 374,772 | [
"VisIt"
] | fbabdccec09eac075c49186ed4d6454349235f30c87a863b0aa587ed101b1eda |
"""
Navigation page of biz.
"""
from bok_choy.page_object import PageObject, unguarded
from . import BASE_URL
NO_SELECTED = '--'
class BizNavPage(PageObject):
url = "{base}/biz/".format(base=BASE_URL)
def is_browser_on_page(self):
return self.q(css='div.change-role>a.change-role-button').present
... | nttks/edx-platform | common/test/acceptance/pages/biz/ga_navigation.py | Python | agpl-3.0 | 8,474 | [
"VisIt"
] | 3745d976dfed46f16175506085c85213d6edcff717801c0b42621dd660f804ef |
# -*- coding: utf-8; Mode: Python; indent-tabs-mode: nil; tab-width: 4 -*-
#
# «gtk_ui» - GTK user interface
#
# Copyright (C) 2005 Junta de Andalucía
# Copyright (C) 2005, 2006, 2007, 2008, 2009 Canonical Ltd.
#
# Authors:
#
# - Javier Carranza <javier.carranza#interactors._coop>
# - Juan Jesús Ojeda Croissier <juanje... | yolanother/ubuntumobidev_ubiquity | ubiquity/frontend/gtk_ui.py | Python | gpl-3.0 | 70,888 | [
"ORCA"
] | e32b735686aa7f2f66ab95ba158f1268836541f0ecbac2777f91f14ba0088109 |
"""
Just a selector for X509Certificate
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id$"
from pkgutil import extend_path
#####
# SUPER DISGUSTING HACK
# We define these variables, and then remove them immediately.
# it is to allow s... | yujikato/DIRAC | src/DIRAC/Core/Security/__init__.py | Python | gpl-3.0 | 975 | [
"DIRAC"
] | 55d908a81e07b5cd3e91a5d3fcb4ed21bad166f6f3b62983719656d6008daec4 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2011-2015 Slack
#
# 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
... | Slack06/yadg | descgen/views/misc.py | Python | mit | 5,798 | [
"VisIt"
] | 92afa0c4baea0c16ebbbb1f9393ea4e8fe07b3f41de64c45335474b5c596efe3 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Parameters for debugging
res = 500
math = vtk.vtkMath()
# create pipeline: use terrain dataset. Just for kicks we'll treat the elevations
# as a "point cloud" and interpolate the e... | sumedhasingla/VTK | Filters/Points/Testing/Python/TestPointInterpolator2D2.py | Python | bsd-3-clause | 2,941 | [
"Gaussian",
"VTK"
] | d5c68c194642f1e1f36ec0ff57e51a4fbc2311726b3f8e4ea7edc394c2b9b2b8 |
"""
Test courseware search
"""
from __future__ import absolute_import
import json
import uuid
from common.test.acceptance.fixtures.course import XBlockFixtureDesc
from common.test.acceptance.pages.common.auto_auth import AutoAuthPage
from common.test.acceptance.pages.common.logout import LogoutPage
from common.test.a... | jolyonb/edx-platform | common/test/acceptance/tests/lms/test_lms_cohorted_courseware_search.py | Python | agpl-3.0 | 12,243 | [
"VisIt"
] | 710a7dcee674ef88b2f37c24620448ebf491a17d001c411827e270781a613810 |
# -*- coding: utf-8 -*-
"""Language constants for BEL.
This module contains mappings between PyBEL's internal constants and BEL language keywords.
"""
import warnings
from typing import Optional
from .constants import (
ABUNDANCE,
BIOPROCESS,
CELL_SURFACE,
COMPLEX,
COMPOSITE,
EXTRACELLULAR,
... | pybel/pybel | src/pybel/language.py | Python | mit | 21,226 | [
"Pybel"
] | 5bad16cab9e4b7eb9667e02c8c3585f13d64e4169070316e5d4f846c501a15cc |
# Copyright 2015 maximumG
#
# 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 ... | maximumG/pitop | pitop.py | Python | apache-2.0 | 7,170 | [
"VisIt"
] | af565a3b43b5b4a1114ad19c77c1c7025aee1baf2653a676e7d1440cfe8d3bca |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | kobejean/tensorflow | tensorflow/python/ops/distributions/distribution.py | Python | apache-2.0 | 45,958 | [
"Gaussian"
] | 129fe730ce4cd136e507b44a0d41ee4bc1965b6bb74957bd569e893b7ef0e7e6 |
#############################################################################################
# #
# This class is part of the MLB-Galaxy package, adding some sequence analysis #
# functionality to PSU's Galaxy fra... | vipints/oqtans | oqtans_tools/EasySVM/0.3.3/scripts/parse.py | Python | bsd-3-clause | 9,820 | [
"Galaxy"
] | acd573d663a3dacce131017f564f8ec66fa3e6696167c657fc74265056bfa14a |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Martin Hawlisch, Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public... | arunkgupta/gramps | gramps/plugins/tool/dumpgenderstats.py | Python | gpl-2.0 | 3,444 | [
"Brian"
] | 31647fab538fd01249bfa1b34d532964e49485fea3e8e817ac84793ef6e667a0 |
##
# Copyright 2009-2021 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 (F... | boegel/easybuild-easyblocks | easybuild/easyblocks/s/siesta.py | Python | gpl-2.0 | 20,827 | [
"NetCDF",
"SIESTA"
] | 6acd6e549d2b0aa3208761d73183aa2a81a0414054aaba29f65447d85f0083e2 |
"""Status enums for use in SQL tables."""
from enum import unique, Enum, IntEnum
__all__ = ('SERVICESTATUS', 'DIRACSTATUS', 'LOCALSTATUS')
@unique
class SERVICESTATUS(Enum):
"""Service Status Enum."""
Unknown = 'lightgrey'
Down = 'red'
Up = 'brightgreen' # pylint: disable=invalid-name
@unique
cl... | alexanderrichards/LZProduction | lzproduction/sql/statuses.py | Python | mit | 1,751 | [
"DIRAC"
] | 1e400ce45652c7aae19eed574054a112431ff423bbf845e26e03bab404e54cb2 |
"""Options manager for :class:`Poly` and public API functions. """
from sympy.core import S, Basic, sympify
from sympy.utilities import any, all, numbered_symbols
from sympy.polys.polyerrors import (
GeneratorsError,
OptionError,
FlagError,
)
import sympy.polys
import re
class Option(object):
"""Ba... | pernici/sympy | sympy/polys/polyoptions.py | Python | bsd-3-clause | 17,715 | [
"Gaussian"
] | 78a87fdc040839bca5f0a3301087e18f65d49f9fe10c46be38241b1c593157c2 |
"""
Base class for Gaussian process latent variable models
This is really not ready for release yet but is used by the gpasso model
"""
import sys
sys.path.append('./..')
from pygp.gpr import GP,_solve_chol,optHyper
import scipy as SP
import numpy.linalg as linalg
import pdb
import copy
def grad_checkK(K,logtheta,x1... | PMBio/pygp | misc/gplvm.py | Python | gpl-2.0 | 7,960 | [
"Gaussian"
] | 94b5ea1e24cd0848c274eafb6fb895bff15f380973084914582fadbf6d9fdbb4 |
#!/usr/bin/env
"""
Based on waveletanalysis.py
For P. Stabeno
Using Anaconda packaged Python
modifications for confidence intervals based on wave_matlab at
http://paos.colorado.edu/research/wavelets/
### License ###
The MIT License (MIT)
Copyright (c) 2013 Aaron O'Leary (dev@aaren.me)
Permission... | jeepsterboy/waveletanalysis | wavelet_analy_GOA.py | Python | mit | 7,260 | [
"NetCDF"
] | 556822893805a7be2f6a8abfd43827aff632017c5cf8335dfc6fbeebc4ee03b5 |
import os
import glob
import warnings
import logging
import re
import atexit
logger = logging.getLogger(__name__)
@atexit.register
def cleanup():
for f in glob.glob('/sys/class/tacho-motor/motor*/command'):
with open(f, 'w') as f:
f.write('stop')
for f in glob.glob('/sys/class/leds/*/trig... | topikachu/python-ev3 | ev3/ev3dev.py | Python | apache-2.0 | 20,810 | [
"Amber"
] | c3a3173639bff9414b352a84e7311450ce0d49634c0ceb99c5531cd33d2028b8 |
#!/usr/bin/python
"""
Run VASP tests to ensure that relaxation with the VASP calculator works.
This is conditional on the existence of the VASP_COMMAND or VASP_SCRIPT
environment variables.
"""
from ase.test.vasp import installed
assert installed()
import numpy as np
from ase import io
# QuasiNewton nowadays is an... | conwayje/ase-python | ase/test/vasp/vasp_Al_volrelax.py | Python | gpl-2.0 | 2,229 | [
"ASE",
"VASP"
] | eb3dbc174419c5161714cf201d7e9ada34b4eae3426bedbd93e24edded4e6362 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
"""
Interface with command line aconvasp. http://aflowlib.org/
Only tested on Linux. Inspired by Shyue"s qhull_caller
WARNING: you need to have a convasp in your path fo... | matk86/pymatgen | pymatgen/command_line/aconvasp_caller.py | Python | mit | 3,605 | [
"VASP",
"pymatgen"
] | 89db19dd7893225f7e4877b176ed246130ddf0c7eb1e0dd4a0c29e32aecda5cd |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 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 applicabl... | cloudmesh/reservation | deprecated/google/Main.py | Python | apache-2.0 | 6,231 | [
"VisIt"
] | e4a6bbbe59ccbcce484768dff1805e74097e7cf535cd0003f880d7cacc40a166 |
# -*- coding: utf-8 -*-
'''
history.py
Summary:
This is the core history file module for the rvic model.
The core of the module is the Tape class. The basic procedure is as
follows:
- initialization: sets tape options, determines filenames, etc.
- update: method that incorporates new flux... | UW-Hydro/RVIC | rvic/core/history.py | Python | gpl-3.0 | 31,411 | [
"NetCDF"
] | 0591bbd63cddbfe43c94c936cae14477c8c1b64088684563b384ec0844627357 |
""" SlackAction
This action posts the status change to a Slack channel
It uses Slack Webhooks.
Also compatible with Mattermost, which is an open source alternative to Slack.
To create a webhook URL refer the following :
* Slack : https://api.slack.com/incoming-webhooks
* Mattermost : https://docs.mattermo... | chaen/DIRAC | ResourceStatusSystem/PolicySystem/Actions/SlackAction.py | Python | gpl-3.0 | 4,185 | [
"DIRAC"
] | 933af26f87009a500218bd57b51f0f8ee06c96900a241bacd25db7c3c5b85f25 |
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 27 10:06:27 2012
@author: Shreejoy
"""
from bs4 import BeautifulSoup
from django.core.exceptions import ObjectDoesNotExist
from article_text_mining.rep_html_table_struct import rep_html_table_struct
from article_text_mining.resolve_data_float import resolve_d... | lessc0de/neuroelectro_org | article_text_mining/assign_table_ephys_data.py | Python | gpl-2.0 | 10,929 | [
"NEURON"
] | d82205b78e954b4a4da6dc2635393e8bc746f92c680a955f74112c446a7f6eb2 |
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2015 Toshio Kuratomi <tkuratomi@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... | Inspq/ansible | lib/ansible/executor/module_common.py | Python | gpl-3.0 | 38,938 | [
"VisIt"
] | 2f9be133f7e7892766a1e7df6c15e3062577b62269cfe568296526d58f12a9b4 |
import sys
import os
import re
import subprocess
import tempfile
from PIL import Image, ImageEnhance, ImageOps
import numpy as np
from splinter import Browser
import time
from selenium.webdriver.common.keys import Keys
import ipdb as pdb
bro = Browser()
bro.visit('http://rupdae.superintendenciadepreciosjustos.gob.ve/u... | urkh/rupdae | rupdae.py | Python | unlicense | 4,208 | [
"VisIt"
] | 4e0a0bc0d5b59232c29ebdb386dbba1000450394e7861bb4ef8d6093fb998871 |
###############################################################################
##
## Copyright 2011,2012 Tavendo GmbH
##
## 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
##
## ... | gijs/AutobahnPython | autobahn/autobahn/websocket.py | Python | apache-2.0 | 145,368 | [
"VisIt"
] | abcd921fad540253ba241d04d9770928ffcdd50a72eb38770db2c9119ffba56d |
#!/usr/bin/python
# script for outputing pairABLE reads from a bowtie output
# version 1 version 3-12-2012
# Usage pairable.py <bowtie input> <minsize query> <maxsize query> <minsize target> <maxsize target> <output> <bowtie index>
import sys, subprocess
from collections import defaultdict
from smRtools import get_fas... | drosofff/tools-artbio | unstable/development/pairable/pairable.py | Python | mit | 1,042 | [
"Bowtie"
] | b76eae0601841fbea5af23122b61dbadb255db03a51bddce3765a54ffea6bf06 |
from __future__ import unicode_literals
from datetime import datetime
import re
import threading
# from django.conf import settings
from django.contrib import comments
from django.contrib.comments.signals import comment_was_posted
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.mo... | CantemoInternal/django-comments-xtd | django_comments_xtd/tests/views.py | Python | bsd-2-clause | 9,462 | [
"VisIt"
] | b0132d424f562764754f5938e905ab255c3633596c01049c5f89f19dd0c51189 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.