text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
# coding: utf-8
from __future__ import unicode_literals
import re
import itertools
from .common import InfoExtractor
from ..utils import (
dict_get,
ExtractorError,
float_or_none,
int_or_none,
parse_duration,
parse_iso8601,
try_get,
unescapeHTML,
)
from ..compat import (
compat_etr... | mxamin/youtube-dl | youtube_dl/extractor/bbc.py | Python | unlicense | 51,627 | [
"VisIt"
] | 851edc54c2c9990944e44a4c751be1e413e286504068fbb6708e31791eefa920 |
#!/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
from Sire.IO import *
from Sire.Mol import *
from Sire.CAS import *
from Sire.System import *
from Sire.Move import *
from Sire.MM import *
from Sire.FF import *
from Sire.Units import *
from Sire.Vol import *
from Sire.Maths import *
from Sire.... | michellab/Sire | wrapper/Tools/AmberLoader.py | Python | gpl-2.0 | 31,281 | [
"Amber"
] | c18abdfbabe8b0dc145159518cd9841b1f9fa00108398559f1270866ecca4cac |
""" This module contain solvers for all kinds of equations:
- algebraic, use solve()
- recurrence, use rsolve()
- differential, use dsolve()
- transcendental, use tsolve()
- nonlinear (numerically), use nsolve()
(you will need a good starting point)
"""
from sympy.core.sympify import s... | mattpap/sympy-polys | sympy/solvers/solvers.py | Python | bsd-3-clause | 28,681 | [
"Gaussian"
] | 56c3b5e662e44b73a97222ded4012441049f8855bf6c849ae032c2abbbdacb72 |
from yade import pack
from yade import export
from yade import timing
from yade import plot
import time
from math import *
num_spheres=1000# number of spheres
young=1e6
compFricDegree = 3 # initial contact friction during the confining phase
finalFricDegree = 30 # contact friction during the deviatoric loadi... | yade/trunk | scripts/checks-and-tests/checks/check_TwoPhaseFlowEngine_PressureInjection.py | Python | gpl-2.0 | 12,575 | [
"VTK"
] | 88d08e812d1c768730339d677cc0731afcc1f71df11f9df1613a8fb7e8ecc7a8 |
# coding=utf8
#
# Copyright 2013 Dreamlab Onet.pl
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation;
# version 3.0.
# This library is distributed in the hope that it will be useful,
# bu... | tikan/rmock | src/rmock/runners/memcache/runner.py | Python | lgpl-3.0 | 3,452 | [
"VisIt"
] | ad478d4ebdec4571bb385adbb83a0dfacc0ea0235492135097d3c409b7abc5ce |
import requests
class HubbleData(object):
def __init__(self, value, column, label):
self.value = value
self.column = column
self.label = label
# TODO
# high
# low
# TODO multiple screen?
# screen
# If poll, not value
# poll_url ... | javaguirre/pyhubble | pyhubble/client.py | Python | gpl-3.0 | 2,143 | [
"VisIt"
] | 3e5f7e14d34ecc9c429dee7d9dbb238648deda1064e1d6500659ab59f959f143 |
# ConnPlotter --- A Tool to Generate Connectivity Pattern Matrices
#
# This file is part of ConnPlotter.
#
# Copyright (C) 2009 Hans Ekkehard Plesser/UMB
#
# ConnPlotter 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 Fou... | gewaltig/cython-neuron | extras/ConnPlotter/build/lib.linux-x86_64-2.7/ConnPlotter/ConnPlotter.py | Python | gpl-2.0 | 80,722 | [
"Gaussian",
"NEURON"
] | 1533e1e6c865a7139f10e94be9d21edacac2276605bc77d8fa3de096073fd201 |
# -*- 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-tpu | tests/unit/gapic/tpu_v2alpha1/test_tpu.py | Python | apache-2.0 | 160,691 | [
"Octopus"
] | cbc3b86a5e853c1e0bd87f52dde996d8fa04653aa1862c098c625f774294acfb |
"""Manages the light shows in a pinball machine."""
# light_controller.py
# Mission Pinball Framework
# Written by Brian Madden & Gabe Knuth
# Released under the MIT License. (See license info at the end of this file.)
# Documentation and more info at http://missionpinball.com/mpf
import logging
import time
from Que... | spierepf/mpf | mpf/system/light_controller.py | Python | mit | 82,673 | [
"Brian"
] | 7b6bdc2eafe8e6150387a3eeec1b954642ce4746b70450defeeb9ed54a35137e |
#!/usr/bin/env python3
#
# Copyright (C) 2018 INRA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is... | geraldinepascal/FROGS | tools/biom_to_stdBiom/biom_to_stdBiom.py | Python | gpl-3.0 | 6,011 | [
"BLAST"
] | 51cea3467f870940623e9bcb2ae1b06b0221932c9e91ee5cd1181077055c8cf1 |
#!/usr/bin/env python
#########################################################################################
#
# Extract spinal levels
#
#
# ---------------------------------------------------------------------------------------
# Copyright (c) 2014 Polytechnique Montreal <www.neuro.polymtl.ca>
# Author: Karun Raju... | 3324fr/spinalcordtoolbox | dev/spinal_level/sct_extract_spinal_levels.py | Python | mit | 12,611 | [
"Gaussian"
] | 8ddeb718242a1be87c7fe734112dea1915dbec4bde1098bb896b212ca9b4c868 |
import os
import subprocess
import sys
def main():
curr_dir = os.getcwd()
####################### setup R language #####################################
# cmd = 'sudo apt-key --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD56CBB651716619EO84DAB9'
# subprocess.call(cmd, shell=True)
# cmd =... | odb9402/OPPA | dependencies/dependencies.py | Python | mit | 4,421 | [
"Bioconductor",
"pysam"
] | 1439b5ba5d324a9b699603d7b75db811849c00c1cb1d5cc102ab5c5f6c92b4b5 |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | BryanCutler/spark | python/pyspark/pandas/generic.py | Python | apache-2.0 | 102,358 | [
"Elk"
] | d79785a5716d04b2f4a4c5f71c3cf8807681fe4184392b47968465992fb27158 |
from .util import get_data_file_path
import logging
from collections import OrderedDict, namedtuple
from operator import itemgetter
import re
import string
import traceback
from vt.object import Object
__all__ = ("SampleInfo",
"LabeledSample",
"AvLabels",)
SampleInfo = namedtuple('SampleInfo',
... | kfinny/avclass-lib | kfinny/avclass/avclass.py | Python | mit | 11,550 | [
"CASINO"
] | 379837d90ed07804d41f2f889b7145e3d2207a20a683cf8d2660d9fb82720930 |
# coding=utf-8
import gettext
import gtk
import misc, ui
translators = '''\
ar - Ahmad Farghal <ahmad.farghal@gmail.com>
be@latin - Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
ca - Franc Rodriguez <franc.rodriguez@tecob.com>
cs - Jakub Adler <jakubadler@gmail.com>
da - Martin Dybdal <dybber@dybber.dk>
de - Paul Joh... | KL-7/sonata | sonata/about.py | Python | gpl-3.0 | 9,768 | [
"Desmond"
] | 0ba036e933a97bee5a13446d3e7370a659bfc5d0393d341b665fbfdd47925de1 |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# 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.
# My Stuff
from Bio.PDB.PDBExceptions import PDBConstructionException
from Bio.PDB.Entit... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/PDB/Residue.py | Python | gpl-2.0 | 4,930 | [
"Biopython"
] | ee4600efa9df912609a96999fe568f92c9df1c0ea588473c239fe4381ceb0197 |
from ast import *
from ast_tools import *
import scala_ast
BOOLOP_SYMBOLS = {
And: 'and',
Or: 'or'
}
BINOP_SYMBOLS = {
Add: '+',
Sub: '-',
Mult: '*',
Div: '/',
FloorDiv: '//',
Mod: '%',
LShift: '<<',
RShift: '>>',
B... | shoaibkamil/asp | asp/codegen/codegen_scala.py | Python | bsd-3-clause | 12,971 | [
"VisIt"
] | 9aecdad214097c199a298ba2dccd10024760eb677420a477763df8599f86510c |
##
# Copyright 2009-2012 Ghent University
# Copyright 2009-2012 Stijn De Weirdt
# Copyright 2010 Dries Verdegem
# Copyright 2010-2012 Kenneth Hoste
# Copyright 2011 Pieter De Baets
# Copyright 2011-2012 Jens Timmerman
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://u... | JensTimmerman/easybuild-easyblocks | easybuild/easyblocks/w/wrf.py | Python | gpl-2.0 | 14,785 | [
"NetCDF"
] | e7b461467925f0b7f4f056fe3bc3cc871332a7b153c32018545e2aba335ed5b3 |
# -*- coding: utf-8 -*-
#
# This file is for use with essm.
# Copyright (C) 2020 ETH Zurich, Swiss Data Science Center.
#
# essm 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
# Licens... | environmentalscience/essm | docs/examples/test_equation_definitions.py | Python | gpl-2.0 | 7,672 | [
"Dalton"
] | e00d5b37b58a8ad1c1759fec00c746293a289852a3f6a7b38aff563c820f547c |
""" DIRAC JobDB class is a front-end to the main WMS database containing
job definitions and status information. It is used in most of the WMS
components
The following methods are provided for public usage:
getJobAttribute()
getJobAttributes()
getAllJobAttributes()
getDistinctJobAttributes... | arrabito/DIRAC | WorkloadManagementSystem/DB/JobDB.py | Python | gpl-3.0 | 71,417 | [
"DIRAC"
] | 0bb6c8fac53b67088ae25aad2c4b9087ef12ab403f1272e5ce8ce6b291a146bb |
"""
linear.py: Linear estimation class
"""
from __future__ import division
import numpy as np
# Import other subpackages in vampyre
import vampyre.common as common
import vampyre.trans as trans
# Import individual classes and methods from the current sub-package
from vampyre.estim.base import BaseEst
class LinEst... | GAMPTeam/vampyre | vampyre/estim/linear.py | Python | mit | 8,695 | [
"Gaussian"
] | 72a9e563c915ccdff306a77caa719e2ad5dfc8e0968b337fdc70b88f0cf727cb |
##
# Script for extracting color words from text files
# Brian Foo (brianfoo.com)
# This file builds the sequence file for use with ChucK from the data supplied
##
import json
import re
# Config
ID = 'wizard_of_oz'
INPUT_FILE = 'txt/'+ID+'.txt'
OUTPUT_FILE = 'json/books/'+ID+'.json'
COLORS = ['beige','bisque','black'... | beefoo/sonic-book-covers | data/generate-colors.py | Python | mit | 1,532 | [
"Brian"
] | 0e56a88ca84c754e45546850f82282623eddc04c974e0b73759109b068aaae71 |
# encoding: utf-8
"""
Tests for IPython.config.configurable
Authors:
* Brian Granger
* Fernando Perez (design help)
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The ful... | cloud9ers/gurumate | environment/lib/python2.7/site-packages/IPython/config/tests/test_configurable.py | Python | lgpl-3.0 | 5,854 | [
"Brian"
] | a5ba18ba47b307f922bc2c63e828ce96959a882af90e841abc852a4ee7a35599 |
#
# Copyright 2018 Analytics Zoo 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... | intel-analytics/analytics-zoo | pyzoo/zoo/orca/learn/pytorch/torch_runner.py | Python | apache-2.0 | 16,748 | [
"ORCA"
] | f7e4dd2d9df9cf8f8b87f8eaaa6b8a35df2f4e4a3325adcd732563dd8495f255 |
#
# Author: Henrique Pereira Coutada Miranda
# Run a GW calculation using yambo
#
from __future__ import print_function
from yambopy import *
from qepy import *
import subprocess
if not os.path.isdir('database'):
os.mkdir('database')
#check if the nscf data is present
if os.path.isdir('nscf/si.save'):
print('... | henriquemiranda/yambopy | tutorial/si/bse_conv_si.py | Python | bsd-3-clause | 1,519 | [
"Yambo"
] | e868b07610c63420eaa8a3e1e25fde0cd17444ff0771eb5f87533b2e8559fce9 |
# Copyright Anne M. Archibald 2008
# Released under the scipy license
import os
from numpy.testing import (assert_equal, assert_array_equal, assert_,
assert_almost_equal, assert_array_almost_equal,
assert_allclose)
from pytest import raises as assert_raises
import ... | WarrenWeckesser/scipy | scipy/spatial/tests/test_kdtree.py | Python | bsd-3-clause | 48,876 | [
"VisIt"
] | 515247ab014718bffa29558fc9816608e632d0e7c9c50ffe1a4de621c5bd48af |
"""
Classes for mass-unvariate tuning analyses
"""
from numpy import array, sum, inner, dot, angle, abs, exp, asarray
from thunder.rdds.series import Series
from thunder.utils.common import loadMatVar
class TuningModel(object):
"""
Base class for loading and fitting tuning models.
Parameters
-------... | oliverhuangchao/thunder | thunder/regression/nonlinear/tuning.py | Python | apache-2.0 | 3,541 | [
"Gaussian"
] | f410e7a250c418a155a8ea648d0b96e0145a831217cd0a0618835772c2efd3ae |
"""Example using an overly complex MLP to learn the XOR function.
The point of this is to demonstrate and test some of the more advanced
functions, like normalization and dropout layers, which don't really make
sense with a network this simple.
"""
import numpy as np
import theano
from theano import tensor as T
from... | robertostling/bnas | examples/xor.py | Python | gpl-3.0 | 1,812 | [
"Gaussian"
] | a2a940f4168eaa8f9ca4af2f6ed63248d878e53f48305f5b2a54626a275ceb4c |
import sys
import os
import tempfile
import gzip
import pysam
import numpy as np
from nose.tools import *
from vase.vase_runner import VaseRunner
from argparse import Namespace
dir_path = os.path.dirname(os.path.realpath(__file__))
input_prefix = os.path.join(dir_path, 'test_data', 'ex1')
vcf_filter = os.path.join(dir... | gantzgraf/vape | test/utils.py | Python | gpl-3.0 | 4,873 | [
"pysam"
] | 7ac47e6f58d6b930bbfa1c99cb3a608dc6fb8cbe28054629f6fc78cfbf28ef1b |
"""
Unit tests for reads objects. This is used for all tests
that can be performed in isolation from input data.
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import unittest
import ga4gh.datamodel.reads as reads
import ga4gh.protocol as protocol
c... | macieksmuga/server | tests/unit/test_reads.py | Python | apache-2.0 | 9,336 | [
"BWA"
] | 13526ad169c45798f72b2349638801c7a2e7d24f1a5986ce69917b3181ab9857 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
from pymatgen.analysis.local_env import CrystalNN
from pymatgen.analysis.structure_prediction.dopant_predictor import (
get_dopants_from_shannon_radii,
get_dopants_from_substitution_pr... | gmatteo/pymatgen | pymatgen/analysis/structure_prediction/tests/test_dopant_predictor.py | Python | mit | 3,241 | [
"pymatgen"
] | ce14480ccfe3734f12027c83a20564bb05630c4a9ccd6b8b7b4d8c1d238a6442 |
"""
Utilities module.
@author Tomas Lazauskas, 2017
@web www.lazauskas.net
@email tomas.lazauskas[a]gmail.com
"""
import copy
import math
import os
import random
import string
import sys
import subprocess
try:
import vtk
vtk_imported = True
except:
vtk_imported = False
_systems_stats_file = "Stats.csv"
#imp... | tomaslaz/Analysis-Toolkit | source/Utilities.py | Python | gpl-3.0 | 8,571 | [
"FHI-aims",
"VTK"
] | 96210a52e62571083fb47d3edf72fd15393aaf877232e4cdcaf5038d8904cd08 |
#
# Copyright 2015 VTT Technical Research Center of Finland
#
# 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... | ollitapa/MMP-TracerApi | Tests/InterpolationTest/interpolationTest.py | Python | apache-2.0 | 5,429 | [
"VTK"
] | 85cd2ef6c1aa4636ebb12d307aab4616f846f02cfdb95715ca3ba260656643a3 |
"""
Version 2012/08/20, Torsten Kerber
Contributors:
Torsten Kerber, Ecole normale superieure de Lyon:
Paul Fleurat-Lessard, Ecole normale superieure de Lyon
based on a script by Rosa Bulo, Ecole normale superieure de Lyon
This work is supported by Award No. UK-C0017, made by King Abdullah
University of Science... | grhawk/ASE | ase/calculators/mopac.py | Python | gpl-2.0 | 7,460 | [
"ASE",
"MOPAC"
] | de32f972b5c063b374e322a324f50154a1ebfba326c4653003b064bc5459d46b |
""" DIRAC FileCatalog Security Manager mix-in class with no access checks
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id$"
from DIRAC import S_OK
from DIRAC.DataManagementSystem.DB.FileCatalogComponents.SecurityManager.SecurityManagerB... | yujikato/DIRAC | src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/SecurityManager/NoSecurityManager.py | Python | gpl-3.0 | 951 | [
"DIRAC"
] | ab55fccf6f544a4d62ec8939d994c390d48bb2f6c3a539d72f0c45c75090cd1c |
# Copyright 2014-2018 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
#
# Unless required by appl... | gkc1000/pyscf | pyscf/icmpspt/__init__.py | Python | apache-2.0 | 646 | [
"PySCF"
] | c0fe353e0ddde97cec836bf1b552542173d65e74efd87a5f9dae3530309290e5 |
# -*- coding: utf-8 -*-#
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from openerp import models, fields
class ExperimentVersion(models.Model):
""" Allow to define the versions contained in an experiment.
The frequency is a ponderation to determine the probability to visit
a version in... | nicolas-petit/website | website_version_ce/models/experiment_version.py | Python | agpl-3.0 | 1,072 | [
"VisIt"
] | a3db739201f4a809b902261ba9448f50b83de75ede981718eaa1f3ac4bb0aed7 |
"""Types used to describe fields as values at selected points in space
Attributes
----------
"""
from repESP.types import Coords, Dist
from abc import ABC, abstractmethod
from dataclasses import dataclass, field, InitVar
from typing import Any, cast, Collection, Generic, Iterable, Iterator, List, NewType, Tuple, Typ... | jszopi/repESP | repESP/fields.py | Python | gpl-3.0 | 10,573 | [
"Gaussian"
] | 0fa78ff913e02e43781f0c2c91d511a707595234ce7718dbd8dbeee75098706a |
"""A notebook manager that uses the local file system for storage.
Authors:
* Brian Granger
* Zach Sailer
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in... | WillisXChen/django-oscar | oscar/lib/python2.7/site-packages/IPython/html/services/notebooks/filenbmanager.py | Python | bsd-3-clause | 18,279 | [
"Brian"
] | 1963e5c9beb9e5c3b1a893229e5763d4226af7591ebbf709d6ecc970903a6fce |
from time import sleep
from lettuce import world, step
from datetime import datetime
from nose.tools import assert_false
from questionnaire.features.pages.home import HomePage
from questionnaire.features.pages.manage import ManageJrfPage
from questionnaire.models import Questionnaire, Section, Organization, Region, Su... | eJRF/ejrf | questionnaire/features/manage_jrf_global_steps.py | Python | bsd-3-clause | 22,032 | [
"VisIt"
] | 8a9d2717c5d1fa8e910a11e13ff89f76889f987bdc0fe8bbe7bd0ef66d3de51b |
"""Example using some ring features from the Tutorial"""
from brigD3 import *
# CDS ring DAR4145, default setting CDS
ring_gen = AnnotationRing()
ring_gen.setOptions(color='#565051', name='DAR4145', height=20)
ring_gen.readGenbank('dar4145.gbk')
# Misc Feature ring DAR4145
ring_misc = AnnotationRing()
ring_misc.setO... | esteinig/brigD3 | examples/example.py | Python | gpl-2.0 | 1,400 | [
"BLAST"
] | d5d561ce8865519943bb13d34115c053a0143bacf85a42c86ba3738f4493f857 |
# -*- coding: utf-8 -*-
# Author: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
# Vincent Dubourg <vincent.dubourg@gmail.com>
# (mostly translation, see implementation details)
# Licence: BSD 3 clause
"""
The :mod:`sklearn.gaussian_process` module implements Gaussian Process
based regression and c... | vermouthmjl/scikit-learn | sklearn/gaussian_process/__init__.py | Python | bsd-3-clause | 723 | [
"Gaussian"
] | 8773198b950a04580a725fbeb3615885d9a4290fbc9d933431fb96cb6533eea8 |
import sys
sys.path.insert(1, "../../../")
import h2o, tests
def offsets_and_distributions():
# cars
cars = h2o.upload_file(tests.locate("smalldata/junit/cars_20mpg.csv"))
cars = cars[cars["economy_20mpg"].isna() == 0]
cars["economy_20mpg"] = cars["economy_20mpg"].asfactor()
offset = h2o.H2OFrame(... | kyoren/https-github.com-h2oai-h2o-3 | h2o-py/tests/testdir_algos/deeplearning/pyunit_offsets_and_distributionsDeeplearning.py | Python | apache-2.0 | 1,666 | [
"Gaussian"
] | 95611ba0f9451702c0283b5bc07db8eef7603eaf9b9080eb7af9122f7db7720d |
#
#@BEGIN LICENSE
#
# PSI4: an ab initio quantum chemistry software package
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later ver... | spring01/libPSI | lib/databases/NBC10.py | Python | gpl-2.0 | 98,340 | [
"Psi4"
] | 87034315cb0ff63bb16939e111f716f4a7a30ed2017294728cde0c0e48b64c5b |
#!/usr/bin/env python
##
## Copyright 2017 SRI International
## See COPYING file distributed along with the package for the copyright and license terms
##
from __future__ import print_function
from __future__ import division
from builtins import next
from builtins import str
from past.utils import old_div
import os... | sibis-platform/sibispy | tests/test_redcap_to_casesdir.py | Python | bsd-3-clause | 10,375 | [
"VisIt"
] | d23fc224f8857a05d49c1b52c81333209bdf6786f8b7d8f7d888c6cf56ec0e38 |
import ddapp.vtkAll as vtk
import ddapp.objectmodel as om
from ddapp import lcmUtils
# if bot_lcmgl cannot be important than this module will not be able to
# support lcmgl, but it can still be imported in a disabled state
try:
import bot_lcmgl
LCMGL_AVAILABLE = True
except ImportError:
LCMGL_AVAILABLE = F... | gizatt/director | src/python/ddapp/lcmgl.py | Python | bsd-3-clause | 3,178 | [
"VTK"
] | 5da9646d09a04cf4c93c2a9ac29bcb5168389dde34f6787364840c80b27c5ba8 |
#!/usr/bin/env python2
#
# import_aemo.py: import AEMO dispatch data into a CDF file.
#
# Copyright (c) 2014 Cameron Patrick <cameron@largestprime.net>
#
# This file is part of AusEnergyViz. AusEnergyViz is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as ... | cmrnp/ausenergyviz | python/import_aemo.py | Python | gpl-2.0 | 15,518 | [
"NetCDF"
] | 919d3788231adad3827ea5356d4afaa1f5e81de13c0c22f244d1558e2bf1bec1 |
"""
"""
__RCSID__ = "$Id$"
from DIRAC import S_OK, S_ERROR, gConfig
from DIRAC.ConfigurationSystem.Client.PathFinder import getAgentSection
from DIRAC.Core.Utilities.CFG import CFG
from DIRAC.Core.Utilities import List
from DIRAC.Core.Utilities.JDL import loadJDLAsCFG, dumpCFGAsJDL
from DIRAC.ConfigurationSystem.Clie... | calancha/DIRAC | WorkloadManagementSystem/Client/JobDescription.py | Python | gpl-3.0 | 6,588 | [
"DIRAC"
] | b8f58118997769a2f3da246998e9f69f9619def68650527073ebc348d03f262e |
#!/usr/bin/env python
#
# $File: importData.py $
#
# This file is part of simuPOP, a forward-time population genetics
# simulation environment. Please visit http://simupop.sourceforge.net
# for details.
#
# Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org)
#
# This program is free software: you can redistribute... | BoPeng/simuPOP | docs/importData.py | Python | gpl-2.0 | 2,825 | [
"VisIt"
] | 905774d35054ec4fce6500bb600a39f209898550a31b03b10ac3a3574d354909 |
from ase import Atoms
from gpaw import GPAW
atoms = Atoms('H2', [(0.0, 0.0, 0.0),
(0.0, 0.0, 3.7)],
cell=(4, 4, 4), pbc=True)
calc = GPAW(txt=None)
atoms.set_calculator(calc)
calc.initialize(atoms)
try:
calc.set_positions(atoms)
except RuntimeError:
pass
else:
assert ... | ajylee/gpaw-rtxs | gpaw/test/atoms_too_close.py | Python | gpl-3.0 | 331 | [
"ASE",
"GPAW"
] | d42c1d443bcb7424c14bf9d1044ad9d0bdf8eac6ea9b8a8479b466fe57a0fabb |
#!/usr/bin/python
#
# This source file is part of appleseed.
# Visit https://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any... | est77/appleseed | scripts/updatetestsuiterefimages.py | Python | mit | 3,860 | [
"VisIt"
] | 76ef45af5defa07f4690aebd7c112f043716b4df6e04e75189bf58e648db519d |
"""
Potential function derivative definitions.
In this code potentials are defined as closures.
This allows one to instantate a parameterized potential once and pass around the
resulting function as a closure without needing to thread the potential parameters
through the code.
"""
from math import exp, pi
#
# equatio... | mjsottile/PyOpinionGame | opiniongame/potentials.py | Python | gpl-3.0 | 1,495 | [
"Gaussian"
] | 7c23af07513c22f726813d9b08a0e0092a001196fc2695a686f9fd7d3c72cf29 |
#! /usr/bin/env python
"""
Get Pilots Logging for specific Pilot UUID or Job ID.
Usage:
dirac-admin-pilot-loggin-info <option value>
WARNING: Only one option (either uuid or jobid) should be used.
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
__RC... | yujikato/DIRAC | src/DIRAC/WorkloadManagementSystem/scripts/dirac_admin_pilot_logging_info.py | Python | gpl-3.0 | 1,517 | [
"DIRAC"
] | 740d1036d227ce324b393a5787414c6054b06fc859d60ebcb9e32dfd3f958835 |
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, sof... | mark-friedman/app-inventor-from-google-code | app_inv_game_server/custom_modules/androids_to_androids/decks.py | Python | apache-2.0 | 22,560 | [
"exciting"
] | 9d2a00f4e801d947cf526e3a3b165180f384914ef3da55356aa463e426453347 |
"""
This plugin so far calculates the minimum of of multiple NetCDF file layers using gdrmath. It needs to be extended to mesh the resulting NetCDF created or the user-sepcified file. From the UI none of the radio buttons or check boxes are functional other than those relating to Calculate Minimum as getting the min f... | janhui/test_engine | dev/plugins/mesh_netcdf/meshnetcdf.py | Python | lgpl-2.1 | 16,795 | [
"NetCDF"
] | acba696ef31ad8fd5c8b89bbcd418ec0fe0c77094c218ad99f16cf7816fcb18c |
# this is the meta-gameplay for both the play and edit classes.
#
# ddrstyle : notes fly from top of screen to bottom onto piano keyboard
# : hit the note when it hits the keyboard to get the points
#
from metagame import *
from backdrops import *
from iomidi import *
from piece import *
import config
#... | lowagner/pyanoh3ro | ddr.py | Python | gpl-2.0 | 71,726 | [
"VisIt"
] | 5620ec7182a19798298c892328c1583763628e5fbd76a5dc7fc7070d0bb55dd1 |
import logging
import re
import cgi
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.exceptions import ImproperlyConfigured
from django.shortcuts import redirect
from wiki.core.exceptions import NoRootURL
from wiki.models import URLPath, Article
from courseware.courses im... | PepperPD/edx-pepper-platform | lms/djangoapps/course_wiki/views.py | Python | agpl-3.0 | 4,580 | [
"VisIt"
] | 0c4335450d9d723c7b234af5e54fd92e34c0294f69dfdd5d2da415d88209a01b |
# !/bin/python
# -*- coding: latin-1 -*-
# Copyright (C) 2009-2014 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your opt... | FedoraScientific/salome-hexablock | src/TEST_PY/cas_2013/make_pave.py | Python | lgpl-2.1 | 6,753 | [
"VTK"
] | 8321e7b831d985925a760b6029346875382056527afe019bc7d7447bf1848ccd |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2006 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 License as publi... | Forage/Gramps | gramps/plugins/tool/eval.py | Python | gpl-2.0 | 3,873 | [
"Brian"
] | 5e829a77c0112e888e06f080e58fc50178d63622fb5c8ffd8f42deebb593c69f |
# proxy module
from __future__ import absolute_import
from mayavi.tools.pipeline import *
| enthought/etsproxy | enthought/mayavi/tools/pipeline.py | Python | bsd-3-clause | 90 | [
"Mayavi"
] | b57a0afe0beb9e4f22547439a544103aa48cdd7df50bd41a081fe39ee93aac8e |
### Mail to user
#PBS -m ae
### Queue name (small, medium, long, verylong)
#PBS -q verylong
### Number of nodes
#PBS -l nodes=1:opteron
"""Runs a very long EMT Verlet dynamics on a small system.
Usage:
python LongEMTsmall.py EMT
or
python LongEMTsmall.py EMT2013
"""
from asap3 import *
from asap3.EMT2013Par... | auag92/n2dm | Asap-3.8.4/Test/Special/LongEMTsmall.py | Python | mit | 1,324 | [
"ASE"
] | fc988768f556bbbba420f8d92ed2594a39addb8096863804c09b5d5fb0a4c386 |
# 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... | tqchen/tvm | python/tvm/te/hybrid/module.py | Python | apache-2.0 | 3,859 | [
"VisIt"
] | 74cceae24b5a44992af920ee6309e28860ba90af38fe75b1454c897c0a2f64a4 |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2014 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you ca... | odoo-turkiye/odoo | openerp/tools/misc.py | Python | agpl-3.0 | 45,981 | [
"VisIt"
] | d46f14ec9623bba12c77fadd96f281c28aba061f95b2ce0155013bae32380141 |
# Bob build tool
# Copyright (C) 2016 TechniSat Digital GmbH
#
# SPDX-License-Identifier: GPL-3.0-or-later
from .. import BOB_VERSION
from ..archive import getArchiver
from ..errors import ParseError, BuildError
from ..input import RecipeSet
from ..languages import StepSpec
from ..state import BobState
from ..stringp... | stefanreuther/bob | pym/bob/cmds/jenkins.py | Python | gpl-3.0 | 97,466 | [
"VisIt"
] | 7ba3e3525a74caedfa8f483361ec4a107a50d457d801d487eb4be78ea653268b |
"""
session = episode of remixcast
section = contiguous portion of a session using same source
play_stmt = clip
//TODO some renaming
"""
import sys
from parsimonious.grammar import Grammar
from parsimonious.nodes import NodeVisitor
from .remix import Remix, Query, Clip, parse_time
grammar = Grammar(
r"""
... | thomasballinger/remixcast | remixcast/fastparser.py | Python | mit | 4,413 | [
"VisIt"
] | 68e8b92a4b91a017af56f1b0f2b3e54b263c2967c0edca22b28ec9fed9913b6c |
#!/usr/bin/env python
#
# Scripted used to transform a ParaView source tree into a Catalyst source tree.
#
# Usage: python catalyze.py -r <paraview_repo> -i <input_dir> -o <output_dir>
#
# paraview_repo - The ParaView repository to use as the source.
# input_dir - The directory containing the manifest.json describing... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/Catalyst/catalyze.py | Python | gpl-3.0 | 13,182 | [
"ParaView",
"VTK"
] | 79f4f38cf83c0c4bcd968ea6ea3781d80cfb6563de5d5899f555297e4e3c1166 |
import os
import subprocess
import sys
import time
from typing import List
import py.path
import _pytest.pytester as pytester
import pytest
from _pytest.config import ExitCode
from _pytest.config import PytestPluginManager
from _pytest.pytester import CwdSnapshot
from _pytest.pytester import HookRecorder
from _pytest... | pexip/os-pytest | testing/test_pytester.py | Python | mit | 26,037 | [
"Brian"
] | 19e4cab39cc3db9445860afca47b0e665f9f38a6abff9c3966670f63b4e7aa18 |
from __future__ import division, absolute_import, print_function
import warnings
import sys
import collections
import operator
import numpy as np
import numpy.core.numeric as _nx
from numpy.core import linspace, atleast_1d, atleast_2d
from numpy.core.numeric import (
ones, zeros, arange, concatenate, array, asarr... | argriffing/numpy | numpy/lib/function_base.py | Python | bsd-3-clause | 152,302 | [
"Gaussian"
] | d6dbde4be2013acc9c72d997acc636270c0f81e50c7fcf7163e985a528599db0 |
"""
Acceptance tests for adding components in Studio.
"""
import ddt
from common.test.acceptance.tests.studio.base_studio_test import ContainerBase
from common.test.acceptance.fixtures.course import XBlockFixtureDesc
from common.test.acceptance.pages.studio.container import ContainerPage
from common.test.acceptance.pa... | louyihua/edx-platform | common/test/acceptance/tests/studio/test_studio_components.py | Python | agpl-3.0 | 7,119 | [
"VisIt"
] | c8e182f99bafbb3a18ac11cd94232da795b93d619dca4f9605de9a853ec0a89d |
#!/usr/bin/env python
"""Extract reads overlapping variant positions and tag them according
to whether they support a variant or the reference.
Output SAM with extra tag key:Z:chr:pos:ref>alt where chr, pos, ref
and alt correspond to the variant of question. For reads supporting
variants key is 'vv', for those support... | isovic/test-scripts | src/vcf_read_support.py | Python | mit | 8,851 | [
"pysam"
] | 7f87460460b9877e4e05aada45a0d0103b05e114150be93686234e744f0d529f |
# 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... | ppwwyyxx/tensorflow | tensorflow/python/ops/gradients_util.py | Python | apache-2.0 | 38,921 | [
"VisIt"
] | 3c3d03d4b96f41d03093b035c00afbededb830f28870a9f19db95dcdc1f3ca56 |
import inspect
import imp
import os
import re
from DIRAC import S_OK, S_ERROR, rootPath, gLogger
from DIRAC.Core.Utilities.ObjectLoader import ObjectLoader
from DIRAC.Core.Utilities.DIRACSingleton import DIRACSingleton
from DIRAC.ConfigurationSystem.Client.Helpers import CSGlobals
import WebAppDIRAC
from WebAppDIRAC.L... | zmathe/WebAppDIRAC | Core/HandlerMgr.py | Python | gpl-3.0 | 6,030 | [
"DIRAC"
] | df20bf5b69fffe3478f135a886a5ae70c6ca5e101cfd930a808d889f43442e89 |
""" This is a test of the chain
DataStoreClient -> DataStoreHandler -> AccountingDB
It supposes that the DB is present, and that the service is running
this is pytest!
"""
# pylint: disable=invalid-name,wrong-import-position
import DIRAC
DIRAC.initialize() # Initialize configuration
from DIRAC import ... | DIRACGrid/DIRAC | tests/Integration/AccountingSystem/Test_DataStoreClient.py | Python | gpl-3.0 | 1,387 | [
"DIRAC"
] | b3c8533ecdb4b5fe3be47f21e9f8532882df88e9df6284086701f5c2e410adf3 |
# 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 | ravens/ravens/models/mdn_utils.py | Python | apache-2.0 | 4,950 | [
"Gaussian"
] | a5c1de98f5419d4ab34709a69917889b5c70ef0b57e75b998225ecde9de25f9c |
"""Module cma implements the CMA-ES, Covariance Matrix Adaptation Evolution
Strategy, a stochastic optimizer for robust non-linear non-convex
derivative-free function minimization for Python versions 2.6 and 2.7
(for Python 2.5 class SolutionDict would need to be re-implemented, because
it depends on collections.Mu... | nushio3/cmaes | cma.py | Python | mit | 261,879 | [
"exciting"
] | 0312f9a048495e07a165336a2ad8b75193061411bd8ca3d389a7a4c82b8f3a7c |
""" Class defining a production step """
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id$"
import json
from DIRAC import S_OK, S_ERROR
class ProductionStep(object):
""" Define the Production Step object
"""
def __init__(self, **k... | yujikato/DIRAC | src/DIRAC/ProductionSystem/Client/ProductionStep.py | Python | gpl-3.0 | 2,186 | [
"DIRAC"
] | 10241c79c93e2815c8062f0b4572c1aba9a7c2acc705ca31ac491127f85571f7 |
#!/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... | pli3/Openwebif | plugin/controllers/views/web/servicelistreload.py | Python | gpl-2.0 | 5,284 | [
"VisIt"
] | 2555527505b49e39a42216894f9ec07e520499dacb4c33db51e241a372162138 |
# 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 Cmor(AutotoolsPackage):
"""Climate Model Output Rewriter is used to produce CF-compliant n... | LLNL/spack | var/spack/repos/builtin/packages/cmor/package.py | Python | lgpl-2.1 | 2,906 | [
"NetCDF"
] | 2bb749632a860d2f8db67a9d6c501c02207c5aeb48aa289c5cf48f8a1d9bc799 |
'''
Created on 8/03/2010
@author: Brian Thorne
'''
from scipysim.actors import Actor, Channel, Siso, Event, LastEvent
class CTIntegrator(Siso):
'''
Abstract base class for continuous-time integrator blocks.
'''
input_domains = ("CT",)
output_domains = ("CT",)
def __init__(self, input_channel... | mm318/scipysim-nogui | scipysim/actors/math/ct_integrator.py | Python | gpl-3.0 | 3,874 | [
"Brian"
] | 195a0267c1863a8f5abf4b8222863a0a94d577169bba3092f4bb22bf63390ebf |
# 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... | vikingMei/mxnet | python/mxnet/contrib/text/embedding.py | Python | apache-2.0 | 26,924 | [
"VisIt"
] | 6f1bb80a54765fafa66e2c37de90e272eb99282edfdff15b27472daf2c4574d4 |
#!/bin/env python
"""
Module simtk.unit.unit_definitions
This is part of the OpenMM molecular simulation toolkit originating from
Simbios, the NIH National Center for Physics-Based Simulation of
Biological Structures at Stanford, funded under the NIH Roadmap for
Medical Research, grant U54 GM072970. See https://simtk.... | tcmoore3/mdtraj | mdtraj/utils/unit/unit_definitions.py | Python | lgpl-2.1 | 13,287 | [
"Dalton",
"OpenMM"
] | 1ebd28ae421216966acd2ece75e2f1bd3cceb1493a0fbe1561d85c5a5b5ef8f7 |
#!/usr/bin/python
#Audio Tools, a module and set of tools for manipulating audio data
#Copyright (C) 2007-2012 Brian Langenberger
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2... | R-a-dio/python-audio-tools | audiotools/py_encoders/alac.py | Python | gpl-2.0 | 21,420 | [
"Brian"
] | c946d127eb778e1a4f9618682f3a23f594ecc43af45d2ae9b2ff95dbd19d9b0e |
# encoding: utf-8
"""
Tests for IPython.config.configurable
Authors:
* Brian Granger
* Fernando Perez (design help)
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The ful... | noslenfa/tdjangorest | uw/lib/python2.7/site-packages/IPython/config/tests/test_configurable.py | Python | apache-2.0 | 8,560 | [
"Brian"
] | 41b5a6867ded8e5f8104f82541c8e191ed1e7aa6903ec4c8bdea3e75d083a379 |
# Hooks for HPC2N site changes.
#
# Author: Ake Sandgren, HPC2N
import os
from distutils.version import LooseVersion
from easybuild.framework.easyconfig.format.format import DEPENDENCY_PARAMETERS
from easybuild.tools.filetools import apply_regex_substitutions
from easybuild.tools.build_log import EasyBuildError
from ... | hpcugent/easybuild-framework | contrib/hooks/hpc2n_hooks.py | Python | gpl-2.0 | 9,929 | [
"Gromacs"
] | 5671ab60d921ee36272df6a335b1edb1f7213e7380712bd206362328ecda3a72 |
from __future__ import division, print_function, unicode_literals
__author__ = 'setten'
import numpy
from pymatgen.util.testing import PymatgenTest
from pymatgen.util.convergence import determine_convergence
class ConvergenceTest(PymatgenTest):
def test_determine_convergence(self):
self.maxDiff = None
... | matk86/pymatgen | pymatgen/util/tests/test_convergence.py | Python | mit | 1,656 | [
"pymatgen"
] | 06df49de9914961cdaf818f11a77bcfb6ff3be733cdd96175ad050ca6a2a82b5 |
"""
Job Base Class
This class provides generic job definition functionality suitable for any VO.
Helper functions are documented with example usage for the DIRAC API. An example
script (for a simple executable) would be::
from DIRAC.Interfaces.API.Dirac import Dirac
from DIRAC.Interfaces.API.J... | vmendez/DIRAC | Interfaces/API/Job.py | Python | gpl-3.0 | 47,996 | [
"DIRAC"
] | db2165d3da0d4dcadfb4baf639a4cff8862cdf55c70859c72b529f8e89bbb07c |
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
import os
import pytest
from django.core.urlresolvers import reve... | suutari/shoop | shuup_tests/browser/front/test_search_view.py | Python | agpl-3.0 | 5,710 | [
"VisIt"
] | ef576882d021b379a753bb9d6b0fcad00aa8dc03624da364d85a9002c40896d8 |
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2022, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | qiime2/qiime2 | qiime2/sdk/tests/test_plugin_manager.py | Python | bsd-3-clause | 14,271 | [
"Octopus"
] | 3f0ff2e26e68403414a63c0c738d00d67088acbae034156ba25f4d38f7bcc4f0 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe.model import rename_field
from frappe.modules import scrub, get_doctype_module
rename_map = {
"Opportunity": [
["enquiry_details", "items"]
],
"Quotation": [
... | indictranstech/internal-erpnext | erpnext/patches/v5_0/rename_table_fieldnames.py | Python | agpl-3.0 | 6,526 | [
"VisIt"
] | 3ab7721614efb6744d986bd59a5e52b9b7ba09396570c656ff622f8f86f46d38 |
# This work is dedicated to the public domain.
"""unicode_to_latex - what it says
Provides unicode_to_latex(u) and unicode_to_latex_string(u).
unicode_to_latex returns ASCII bytes that can be fed to LaTeX to reproduce the
Unicode string 'u' as closely as possible.
unicode_to_latex_string returns a Unicode string ra... | pkgw/bibtools | bibtools/unicode_to_latex.py | Python | mit | 80,339 | [
"Bowtie"
] | 7c3b990ccfd85f5bed656cc84328a91112f02220deee4faecdb5df8225b11f6e |
from ddapp import vtkAll as vtk
from ddapp import vtkNumpy as vnp
from ddapp.shallowCopy import shallowCopy
import numpy as np
def encodePolyData(polyData):
'''Given a vtkPolyData, returns a numpy int8 array that contains
the serialization of the data. This array can be passed to the
decodePolyData functi... | gizatt/director | src/python/ddapp/geometryencoder.py | Python | bsd-3-clause | 1,423 | [
"VTK"
] | 5bbae7a07b626c22e023087fe3dcddb93cf5c5924cc05aeb881df1ebb2ada32a |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
math = vtk.vtkMath()
math.RandomSeed(22)
sphere = vtk.vtkSphereSource()
sphere.SetPhiResolution(32)
sphere.SetThetaResolution(32)
extract = vtk.vtkExtractPolyDataPiece(... | hlzz/dotfiles | graphics/VTK-7.0.0/Parallel/Core/Testing/Python/TestPolyDataPieces.py | Python | bsd-3-clause | 3,059 | [
"VTK"
] | 5ee625e939f6e0bc71b7657b9447c3c0eded43384370ce8b6b3c8820f44d4990 |
import json
from datetime import datetime
from flask import request, Response, Blueprint, jsonify
from flask_login import current_user
from c3bottles import app, db
from c3bottles.model.drop_point import DropPoint
from c3bottles.model.report import Report
from c3bottles.model.visit import Visit
bp = Blueprint("api"... | der-michik/c3bottles | c3bottles/views/api.py | Python | mit | 3,909 | [
"VisIt"
] | 7067fa9b0115751ea29cdec480d5fd7a95d97ba5a62f06312355efe2ea902158 |
# -*- coding: utf-8; mode: python -*-
# pylint: disable=C0103, R0903, R0912, R0915
u"""
scalable figure and image handling
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sphinx extension which implements scalable image handling.
:copyright: Copyright (C) 2016 Markus Heiser
:license: GPL Version 2, June 1... | iamyooon/study_linux | translate/kerneldoc/Documentation/sphinx/kfigure.py | Python | apache-2.0 | 18,600 | [
"VisIt"
] | 8a1ba2e5723f0bb2cc3730dce98d5fc481e55b602152e43578ead5f86128c7f8 |
# -*- coding: utf8
"""Random Projection transformers
Random Projections are a simple and computationally efficient way to
reduce the dimensionality of the data by trading a controlled amount
of accuracy (as additional variance) for faster processing times and
smaller model sizes.
The dimensions and distribution of Ra... | ningchi/scikit-learn | sklearn/random_projection.py | Python | bsd-3-clause | 21,773 | [
"Gaussian"
] | d81ffa88a6a5cb8e574ba9793498b074247ce79b3093de2eaf5df6de14e0d28b |
#!/usr/bin/env python
#
# Copyright 2008 Jose Fonseca
#
# 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 Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This ... | fabricehong/zim-desktop | zim/inc/xdot.py | Python | gpl-2.0 | 49,700 | [
"FLEUR"
] | 021cc244a6d98c0c97d23362a0a1060ce016f896147268b6aa90845dce2e4cce |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | kain88-de/mdanalysis | testsuite/MDAnalysisTests/analysis/test_diffusionmap.py | Python | gpl-2.0 | 3,264 | [
"MDAnalysis"
] | f05c03e952cf9d7aeca11a79a62908fbd59bc34c476a18665e8d443a9387d734 |
# Principal Component Analysis Code :
from numpy import mean,cov,double,cumsum,dot,linalg,array,rank,size,flipud
from pylab import *
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import ro... | tapomayukh/projects_in_python | sandbox_tapo/src/skin_related/BMED_8813_HAP/Features/multiple_features/results/cross_validate_categories_BMED_8813_HAP_scaled_method_II_area_force.py | Python | mit | 4,065 | [
"Mayavi"
] | f7a48bd397567e8e524602fad58667526fb644b345c5c423199413d789da57ba |
#!/usr/bin/env python
################################################################################
# Copyright (C) 2014, 2015 GenAP, McGill University and Genome Quebec Innovation Centre
#
# This file is part of MUGQIC Pipelines.
#
# MUGQIC Pipelines is free software: you can redistribute it and/or modify
# it und... | ccmbioinfo/mugqic_pipelines | pipelines/common.py | Python | lgpl-3.0 | 15,592 | [
"VisIt"
] | 8080a04c9cabc3649aded4422409f0650d6d314ddd16cfbc73c26514f0ef8fc1 |
from WebAppDIRAC.Lib.WebHandler import WebHandler, asyncGen
from DIRAC.Core.DISET.RPCClient import RPCClient
from DIRAC.Core.DISET.TransferClient import TransferClient
from DIRAC.Core.Utilities import Time, DEncode
from DIRAC import gConfig
import tempfile
import json
import tornado
class ActivityMonitorHandler( WebHa... | zmathe/WebAppDIRAC | WebApp/handler/ActivityMonitorHandler.py | Python | gpl-3.0 | 9,689 | [
"DIRAC"
] | 4fddfaed69b18eb682d8f003a819dd7f1e5254ce56f7c4096174ea7cbd67a548 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.