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 |
|---|---|---|---|---|---|---|---|
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2009 Brian G. Matherly
# Copyright (C) 2009 Gary Burton
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | sam-m888/gramps | gramps/cli/clidbman.py | Python | gpl-2.0 | 19,431 | [
"Brian"
] | 1e7c98bd10d7982df7105303e6c8ee3699615b38fd52a99b3c768296ab663c70 |
# Copyright (C) 2010-2018 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | mkuron/espresso | testsuite/python/lb_thermo_virtual.py | Python | gpl-3.0 | 3,053 | [
"ESPResSo"
] | 6d0d23ff13f5424042d6ce1e0a0e30e5f3e918eeb73c9d4502f1a242814c04dc |
''' This is a test of the chain
ResourceManagementClient -> ResourceManagementHandler -> ResourceManagementDB
It supposes that the DB is present, and that the service is running
The DB is supposed to be empty when the test starts
'''
#pylint: disable=invalid-name,wrong-import-position,missing-docstring
i... | hgiemza/DIRAC | tests/Integration/ResourceStatusSystem/Test_ResourceManagement.py | Python | gpl-3.0 | 12,495 | [
"DIRAC"
] | 9ab7a5e11148981f2f95e0155292670e240bd2c1531e72a82763cec03a892132 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides classes for the Piezoelectric tensor
"""
import warnings
import numpy as np
from pymatgen.core.tensors import Tensor
__author__ = "Shyam Dwaraknath"
__copyright__ = "Copyright 2016,... | gmatteo/pymatgen | pymatgen/analysis/piezo.py | Python | mit | 1,973 | [
"pymatgen"
] | 1ba028aeed591dfb9a4c52e0ffc1e641c487624faf128a2808944058123777f2 |
from __future__ import absolute_import, division, print_function
import os
import tensorflow as tf
from builtins import range
from collections import OrderedDict, defaultdict
import numpy as np
import random
import dill as pickle
from organ.data_loaders import Gen_Dataloader, Dis_Dataloader
from organ.generator import ... | gablg1/ORGAN | organ/__init__.py | Python | gpl-2.0 | 31,451 | [
"RDKit"
] | 2655e041dd0c3945f4ad70cdf4d2432afe313be1fed90d7e8279197086fd2891 |
# Docstrings for generated ufuncs
#
# The syntax is designed to look like the function add_newdoc is being
# called from numpy.lib, but in this file add_newdoc puts the
# docstrings in a dictionary. This dictionary is used in
# generate_ufuncs.py to generate the docstrings for the ufuncs in
# scipy.special at the C lev... | yuanagain/seniorthesis | venv/lib/python2.7/site-packages/scipy/special/add_newdocs.py | Python | mit | 137,472 | [
"Gaussian"
] | f121065762278d252f2c259c428ad1b02d0957ab9c1bd615e38ea400db700c2c |
"""
Internal implementation of a SAT solver, used by L{solver.SATSolver}.
This is not part of the public API.
"""
from __future__ import print_function
# Copyright (C) 2010, Thomas Leonard
# See the README file for details, or visit http://0install.net.
# The design of this solver is very heavily based on the one de... | tomspur/shedskin | examples/sat.py | Python | gpl-3.0 | 16,409 | [
"VisIt"
] | fe635c6a2ccaee29b70b2b76fe18366e7f2cb79a2624b30dc8c487e0001121da |
from django.contrib.admin import AdminSite as DjangoAdminSite
class AdminSite(DjangoAdminSite):
site_title = 'Edc Visit Schedule'
site_header = 'Edc Visit Schedule'
index_title = 'Edc Visit Schedule'
site_url = '/edc_visit_schedule/'
edc_visit_schedule_admin = AdminSite(name='edc_visit_schedule_admi... | botswana-harvard/edc-visit-schedule | edc_visit_schedule/admin_site.py | Python | gpl-2.0 | 324 | [
"VisIt"
] | b291a079c4b377cf53b7a6fd841c98356efe49d879ba62296182e7615cd3b0b9 |
import shutil
import pytest
from pysisyphus.benchmarks import Benchmark
from pysisyphus.calculators import XTB
from pysisyphus.helpers import geom_loader, align_geoms
from pysisyphus.optimizers.RFOptimizer import RFOptimizer
from pysisyphus.testing import using
from pysisyphus.tsoptimizers import RSPRFOptimizer
from ... | eljost/pysisyphus | tests/test_zimmerman/test_zimmerman.py | Python | gpl-3.0 | 2,946 | [
"xTB"
] | 8d23d5a2db8b210e9fb6dc6264efa1108b392046e5337c99f55d97b91bca30f0 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2018 David Arroyo Menéndez
# Author: David Arroyo Menéndez <davidam@gnu.org>
# Maintainer: David Arroyo Menéndez <davidam@gnu.org>
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as p... | davidam/python-examples | poo/node-example.py | Python | gpl-3.0 | 5,145 | [
"Brian"
] | a5adb9cb20a4f7679424bec1b850a5f788ac484823d03c7d5436727f1581a7d3 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Scoary - Microbial Pan-GWAS GUI
By Ola Brynildsrud
Norwegian Institute of Public Health
olbb@fhi.no
"""
import sys, os
import threading
try:
import Tkinter
except ImportError:
#Python 3 issues
try:
import tkinter as Tkinter
except:
sys... | AdmiralenOla/Scoary | scoary/GUI.py | Python | gpl-3.0 | 42,412 | [
"EPW",
"VisIt"
] | 0cb1b881ba6d6a6de05acf679e8d43b10d4be403710a3e972cd261d7396912f4 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Name : modular_theory.py
Author : David Freestone (david.freestone@bucknell.edu)
Date : 01.01.2016
This time_event module is covered under the modified BSD license
Copyright (c) 2015, David M. Freestone
All rights reserved.
Description:
"""
# What we need:
# [1] ... | freestone-lab/modular_theory | simulation/modular_theory.py | Python | bsd-3-clause | 21,364 | [
"Gaussian"
] | 1d40b384b2aab62663bae95be8cb42a89d2f0718a963c2c568defd559b0b6deb |
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 23 16:31:33 2015
@author: Rick Berg, University of Washington, School of Oceanography
Script for modeling reaction rates in marine sediments.
Starts with existing sediment column, sediment column building upward is
modeled as a downward flow of porewater.
Bottom bounda... | rickdberg/mgmodel | centraldiff_dmg.py | Python | mit | 28,922 | [
"Gaussian"
] | b734d0278f5172bfbd017ebf00fde56b96c7f9323e9471d4d234cb9181d348dd |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('visit', '0002_auto_20150428_0204'),
]
operations = [
migrations.AlterModelOptions(
name='staffstatus',
... | koebbe/homeworks | visit/migrations/0003_auto_20150428_0215.py | Python | mit | 629 | [
"VisIt"
] | 4e08e09a04f9342f353e1495363ba4ce5c93473456c928f219eac7ad121caf26 |
""" VOMSService class encapsulates connection to the VOMS service for a given VO
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id$"
import requests
from DIRAC import gConfig, gLogger, S_OK, S_ERROR
from DIRAC.Core.Utilities import DErrn... | ic-hep/DIRAC | src/DIRAC/Core/Security/VOMSService.py | Python | gpl-3.0 | 4,823 | [
"DIRAC"
] | 6fc99133a0ad2f019bb8104fe7ba989f27226bacabf04afd17dc3453a22ad0e0 |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime, date
from lxml import etree
import time
from openerp import api
from openerp import SUPERUSER_ID
from openerp import tools
from openerp.osv import fields, osv
from openerp.tools.translate ... | be-cloud-be/horizon-addons | server/addons/project/project.py | Python | agpl-3.0 | 53,981 | [
"VisIt"
] | 1c35e37bc00732d29862e81ed0a6237fcebfcabd958e7419dd5f19bfc83547b1 |
# Neural Network
#
# Author: Luke Munro
import numpy as np
import time
class Neuron:
"""Neuron for logistic regression.s"""
def __init__(self, inputSize, seed):
np.random.seed(seed)
# Initialize weights randomly with mean 0
self.weights = 2*np.random.random((int(inputSize)))-1
de... | lmunro0402/ShallowBlue | sigNeuron.py | Python | mit | 426 | [
"NEURON"
] | c8c81b8b8e3eb4bc22b5f93e7f2230a6d330f33108f55cae4159067b49d9e518 |
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetTempDir
VTK_TEMP_DIR = vtkGetTempDir()
contr = vtk.vtkMultiProcessController.GetGlobalController()
if not contr:
nranks = 1
rank = 0
else:
nranks = contr.GetNumberOfProcesses()
rank = contr.GetLocalProcessId()
def GetSource(dataTy... | keithroe/vtkoptix | Filters/Parallel/Testing/Python/testTransmit.py | Python | bsd-3-clause | 3,694 | [
"VTK"
] | bb20518844933d3f3210d507c0a06235c922166ae02b8ed37857409772fa336e |
# -*- coding: utf-8 -*-
# MD-Tracks is a trajectory analysis toolkit for molecular dynamics
# and monte carlo simulations.
# Copyright (C) 2007 - 2012 Toon Verstraelen <Toon.Verstraelen@UGent.be>, Center
# for Molecular Modeling (CMM), Ghent University, Ghent, Belgium; all rights
# reserved unless otherwise stated.
#
#... | molmod/md-tracks | tracks/wrappers.py | Python | gpl-3.0 | 3,933 | [
"CP2K",
"CPMD",
"LAMMPS"
] | c6727aa44d1f51d01fa33f8d0e913096f30281300b82dae0c0c520c80a4fde5c |
# -*- coding: utf-8 -*-
# Copyright 2007-2020 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | dnjohnstone/hyperspy | hyperspy/_components/pes_voigt.py | Python | gpl-3.0 | 10,662 | [
"Gaussian"
] | 1e3705666329228a978bf4619ef595f6514f2c0c447b6f3116fae5ad77a0a114 |
# Copyright 2017 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, ... | jiaphuan/models | research/domain_adaptation/pixel_domain_adaptation/hparams.py | Python | apache-2.0 | 8,232 | [
"Gaussian"
] | fd69afb6d9aaf56de5217bc9a99776670395474503dd6b8edc97e23a9cf29e3a |
# Copyright 2004-2010 PyTom <pytom@bishoujo.us>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, mer... | MSEMJEJME/ReAlistair | renpy/display/layout.py | Python | gpl-2.0 | 41,453 | [
"VisIt"
] | 1664dcf0396f7422df087fdca9015a245d9a758980a1f046b919ab96e028a35f |
import unittest
import os
from vasppy import procar
import numpy as np
from unittest.mock import patch, call
import warnings
from copy import deepcopy
test_data_dir = 'test_data'
test_procar_filename = os.path.join( os.path.dirname( __file__ ), test_data_dir, 'PROCAR_test' )
test_procar_spin_polarised_filename = os.pa... | bjmorgan/vasppy | tests/test_procar.py | Python | mit | 11,296 | [
"VASP"
] | 10c54e3d863ff5178e9bd12ada6f8e7570f749aa4813eae384e43282d6027587 |
# Sample module in the public domain. Feel free to use this as a template
# for your modules (and you can remove this header and take complete credit
# and liability)
#
# Contact: Brian Carrier [carrier <at> sleuthkit [dot] org]
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is f... | rcordovano/autopsy | pythonExamples/dataSourceIngestModule.py | Python | apache-2.0 | 8,271 | [
"Brian"
] | b829715cf6bdfbb353ea909dcf5e61ce13ea37574ec9efb75fb9ac40dccedf8e |
"""
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... | petricm/DIRAC | Interfaces/API/Job.py | Python | gpl-3.0 | 46,093 | [
"DIRAC"
] | d15005a3e5791fe4f6babf862d6f9810af76240d8cbcf408f0f762fae6eebca0 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import os
import random
import unittest
import json
import six
import warnings
from monty.os.path import which
from pymatgen import Lattice, PeriodicSite, Elem... | nisse3000/pymatgen | pymatgen/transformations/tests/test_standard_transformations.py | Python | mit | 21,641 | [
"VASP",
"pymatgen"
] | 252ea6b98993347980ab195b987a36e52ca467b18e81ace7efed68ca2c4535a6 |
# -*- 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... | jianhuashao/WebDownloadJobsManage | dbs/google_drive/sample.py | Python | apache-2.0 | 5,603 | [
"VisIt"
] | cc5584d129afe534fb9b7395c16bd043029f55e8742dc687eaada5320435284c |
"""
Simple utils to save and load from disk.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
# TODO(rbharath): Use standard joblib once old-data has been regenerated.
import joblib
from sklearn.externals import joblib as old_joblib
import gzip
import pi... | bowenliu16/deepchem | deepchem/utils/save.py | Python | gpl-3.0 | 4,968 | [
"RDKit"
] | 110b298d378210467a33b995f671c7a41726730cbc020e7042947cc2b16831e7 |
"""Please Not Another Compiler Compiler -- LR parser generator library.
"""
from collections import namedtuple
from operator import methodcaller
from functools import partial
import sys
import re
_str_type = globals().get("basestring", str)
def identity(x):
"""Identity functions, useful as semantic action for ru... | stephanh42/pnacc | pnacc.py | Python | mit | 18,957 | [
"VisIt"
] | b97f7415b9f479eacef4c4540e2e3764eb14d3df2a91200fafe6394467a081f0 |
from nanopore.metaAnalyses.abstractMetaAnalysis import AbstractMetaAnalysis
from sonLib.bioio import system
import os, sys, glob
from nanopore.analyses.utils import samToBamFile
import pysam
class Fastaseq():
"""
fasta reader
"""
def __init__(self):
self.id = None
self.seq = ''
self.length = ''
@staticm... | mitenjain/nanopore | nanopore/metaAnalyses/customTrackAssemblyHub.py | Python | mit | 4,927 | [
"pysam"
] | 02adb1f05f6edef60b9367af13d714e8332c7112b30d4a8502c7b5d08a27da40 |
# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
from scipy import ndimage
from scipy.interpolate import UnivariateSpline
from scipy.optimize import leastsq
import abel
#########################################################################
# circularize.py
#
# Image circularization by fol... | DhrubajyotiDas/PyAbel | abel/tools/circularize.py | Python | mit | 12,239 | [
"Gaussian"
] | 5999bc3de847a0daa1478105f00f53faead5af810b8144da46201526256b36b2 |
import pytest
from blitzdb.backends.sql.queryset import QuerySet
from ..helpers.movie_data import Actor, Director, Movie
def test_basics(backend):
backend.init_schema()
backend.create_schema()
francis_coppola = Director({'name' : 'Francis Coppola'})
stanley_kubrick = Director({'name' : 'Stanley Ku... | adewes/blitzdb | tests/sql/test_one_to_many.py | Python | mit | 2,945 | [
"Brian"
] | f7630bd50f6a4576ef37768ae811539a9232a8669b4dda449cf747f7973626ac |
# Copyright (C) 2010-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 option) any later version.
#
# This library ... | FedoraScientific/salome-paravis | test/VisuPrs/dump_study/B3.py | Python | lgpl-2.1 | 2,553 | [
"VTK"
] | ecdb2e920690ef10ea057b74ae2dee80e3435f957d102b5f6db070700af5fb01 |
# This file is part of Munin.
# Munin 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 version.
# Munin is distributed in the hope that it will... | munin/munin | munin/custom/scan.py | Python | gpl-2.0 | 29,078 | [
"CRYSTAL"
] | 9bc3760ae6d1ba18469b836311756f98c5a54e18aaa3619f04055db550dfed6b |
# 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... | anilmuthineni/tensorflow | tensorflow/tools/common/traverse.py | Python | apache-2.0 | 3,429 | [
"VisIt"
] | aa1d2ff2868e80e7faa48deaecac871591ee2caa9bc4e81b7a27fc3ebae8906b |
#
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# 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
# ... | libAtoms/matscipy | maintenance/replace_header.py | Python | lgpl-2.1 | 1,124 | [
"Matscipy"
] | 139e61f0d25601eb7c55571e72a887d40085dfefe02b71e48339d1492959ea08 |
import math
import bio
import features
import helpers
# describes evidence for a variation in terms of read depth, etc
class LinearShapeDifference (object):
'''
look for a specified, absolute linear shape
'''
def __init__( self, start_pos, start_depth, end_pos, end_depth, log=bio.log_quiet ):
self.sta... | supernifty/mgsa | mgsa/bio/evidence.py | Python | mit | 6,113 | [
"BWA"
] | 65deb089265b6f04bd52ae1c8a160842afa3dcb5ca1d154f16dfcbc90c78c883 |
import numpy as np
import random as rand
import sys, os
import copy
import pickle
from mpi4py import MPI
from pymatgen import Lattice, Structure, Element, PeriodicSite
from pymatgen.io.vasp import Poscar, VaspInput
from pymatgen.analysis.structure_matcher import StructureMatcher, FrameworkComparator
from py_mc.mc impo... | skasamatsu/py_mc | examples/latgas-YSZ/YSZ.py | Python | gpl-3.0 | 4,982 | [
"VASP",
"pymatgen"
] | 1c3a9263dffbd0d808ec6e5d9e83d72005e330d73cd1cb7c9b5b22b10f48a7f2 |
import abc
import logging
import json
import math
import mimetypes
import multiprocessing
import multiprocessing.pool
import os
import os.path as osp
import subprocess
import sys
import tempfile
import numpy
import sklearn.cluster
from smqtk.algorithms.descriptor_generator import DescriptorGenerator
from smqtk.repres... | Purg/SMQTK | python/smqtk/algorithms/descriptor_generator/colordescriptor/colordescriptor.py | Python | bsd-3-clause | 50,447 | [
"VMD"
] | 2b4b5ce34d5a6680f172cea4890778af9a3ac1ff46f2e678b8067c5303fd5cf0 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""nk_exectuable will store a single executable experiment, designed in SpineML
SpineML is a declaratice Spiking neuron modelling language.
"""
from neurokernel.core_gpu import Manager
from neurokernel.tools.logging import setup_logger
from libSpineML2NK.LPU import LPU
... | AdamRTomkins/libSpineML2NK | libSpineML2NK/nk_manager.py | Python | gpl-3.0 | 1,045 | [
"NEURON"
] | 6a26b29a4a4ec80bda9fe85bace65594f7649ce096ba45aba4218dad38067e12 |
from collections import deque
class DAG(object):
"""Directed Acyclic Graph"""
def __init__(self, nodes = None):
"""
Init the graph.
If nodes is given, it should be a mapping {node_id: {children}}
"""
self._nodes = nodes if nodes else {}
self._properties = {n: {}... | chamibuddhika/cnc-framework | tools/cncframework/events/dag.py | Python | bsd-3-clause | 13,138 | [
"VisIt"
] | bf249ffd76c59ae2c90a6f5121516f35d906e9148513ca22789526a3b9dfa3f4 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""A canvas for drawing things on it"""
import platform
import sys
import gtk
if platform.system() != 'Windows':
gtk.threads_init()
import cairo
from objects.document import Document
from objects.page import Page
from objects.origin import Origin
from objects.grid imp... | jaliste/sanaviron | sanaviron/ui/canvas.py | Python | apache-2.0 | 23,041 | [
"FLEUR"
] | 18b2b6e9944252e9b1eb40ac58b85b1c59911c8efe39dc98eeefc91a8d96f4d6 |
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2017 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | FarnazH/horton | horton/io/cube.py | Python | gpl-3.0 | 5,383 | [
"Gaussian"
] | 12c1f68c4242c0ba8a8ed630781c5663f82c1d5854cb07869e79395590c3449b |
"""
Augmenters that don't apply augmentations themselves, but are needed
for meta usage.
List of augmenters:
* :class:`Augmenter` (base class for all augmenters)
* :class:`Sequential`
* :class:`SomeOf`
* :class:`OneOf`
* :class:`Sometimes`
* :class:`WithChannels`
* :class:`Identity`
* ... | aleju/ImageAugmenter | imgaug/augmenters/meta.py | Python | mit | 220,967 | [
"Gaussian"
] | 86f5090a8f1f5e25f005d5e1536675385971945585be5d61981d628d40481a9c |
# Copyright 2017 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... | caisq/tensorflow | tensorflow/contrib/autograph/converters/single_return.py | Python | apache-2.0 | 11,034 | [
"VisIt"
] | e13a11b67e991170e20f00227e29b0e51f6109d8979fe07f470306981f458cb4 |
# -*- encoding: utf-8 -*-
import urllib
import hashlib
import logging
import choices
from pytz import all_timezones
from scielomanager import tools
import datetime
from uuid import uuid4
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from django.db import (
... | fabiobatalha/SciELO-Manager | scielomanager/journalmanager/models.py | Python | bsd-2-clause | 62,299 | [
"VisIt"
] | 9ea45f6b4aef1a4e3586df80151665921c0ee264317541d64df3f64f680c49a6 |
# -*- coding: utf-8 -*-
'''Django settings for amber project'''
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
MONGO_DB = {
'connection': None,
'database_name': 'amber',
}
# Local time zone for this installation. Choices can be fo... | yl3dy/amber | amber/settings.py | Python | bsd-3-clause | 5,694 | [
"Amber"
] | 89edc2e4841053fbfa46da494121a2c24a801259490f33bdc6f03a679f0f29d7 |
'''Convenience functions for use in package hooks.'''
# Copyright (C) 2008 - 2011 Canonical Ltd.
# Authors:
# Matt Zimmerman <mdz@canonical.com>
# Brian Murray <brian@ubuntu.com>
# Martin Pitt <martin.pitt@ubuntu.com>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms... | thecrackofdawn/Peach2.3 | tools/peach-apport/apport/hookutils.py | Python | mit | 19,543 | [
"Brian"
] | 11892a4a94809ea22879a5d49aa656543debbf96bc74ae67ccc986dd4db475e6 |
# Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | espressomd/espresso | testsuite/scripts/samples/test_gibbs_ensemble.py | Python | gpl-3.0 | 1,074 | [
"ESPResSo"
] | 0da7ffc2ef43f4ccb41f993b9de8883b7fed583a9571319c5caed4c57fc3c078 |
""" (deprecated) generate a single-file self-contained version of pytest """
import os
import sys
import pkgutil
import py
import _pytest
def find_toplevel(name):
for syspath in sys.path:
base = py.path.local(syspath)
lib = base/name
if lib.check(dir=1):
return lib
mo... | mdboom/pytest | _pytest/genscript.py | Python | mit | 4,369 | [
"VisIt"
] | 4b45449ef679c0d95024089425ba5896b0aa732b9033fd4680dae1de2ca86fc6 |
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# ---------------------... | Jorge-C/bipy | skbio/maths/stats/special.py | Python | bsd-3-clause | 18,873 | [
"scikit-bio"
] | f56182b546ae7f3d6f31acc3e05095441c793cec941c19d02eff4d4c08a35641 |
# Allien Blaster
# Demonstrates object interaction
class Player(object):
""" A player in a shooter game. """
def blast(self, enemy):
print("The player blasts an enemy.\n")
enemy.die()
class Alien(object):
"""An alien in a shooter game."""
def die(self):
print("The alien gasps and says. 'Oh, this is it. This... | rob-nn/python | first_book/alien_blaster.py | Python | gpl-2.0 | 590 | [
"BLAST"
] | d50c675d79806045dc423f25482b11f39b5fe4ae6e2da6f06cae362f88e6c2cb |
from __future__ import print_function
from rdkit import RDConfig
import unittest
from rdkit import Chem
from rdkit.Chem import rdMMPA
def natoms(tpl):
return tuple(x.GetNumAtoms() if x is not None else 0 for x in tpl)
class TestCase(unittest.TestCase):
def setUp(self):
pass
def test1(self):
m = Chem... | rvianello/rdkit | Code/GraphMol/MMPA/Wrap/testMMPA.py | Python | bsd-3-clause | 6,444 | [
"RDKit"
] | 93012d322e33a7729e405b174d95fcabfe5559bc0b79a394e9c46b68e6ca582a |
#!/usr/bin/env python
"""
find files in the FileCatalog
"""
import os
import DIRAC
from COMDIRAC.Interfaces import critical
from COMDIRAC.Interfaces import DSession
from COMDIRAC.Interfaces import DCatalog
from COMDIRAC.Interfaces import pathFromArgument
if __name__ == "__main__":
import sys
from DIRAC.Core.B... | pigay/COMDIRAC | Interfaces/scripts/dfind.py | Python | gpl-3.0 | 1,553 | [
"DIRAC"
] | cf7de6e74a0d101d78c1197176b24d81a8b7d207d093be3c8fc9b332dd4f08e3 |
# ============================================================================
#
# Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | kurtraschke/camelot | camelot/view/controls/editors/labeleditor.py | Python | gpl-2.0 | 1,806 | [
"VisIt"
] | ca64ba5b507054290c757e43fd5772bcccd212d8cf3e889a05d9584bf6c6d8a1 |
#!/usr/bin/env python
########################################################################
# File : dirac-configuration-cli
# Author : Adria Casajus
########################################################################
"""
Dump DIRAC Configuration data
"""
__RCSID__ = "$Id$"
import sys
import DIRAC
from DIR... | andresailer/DIRAC | ConfigurationSystem/scripts/dirac-configuration-dump-local-cache.py | Python | gpl-3.0 | 1,191 | [
"DIRAC"
] | b939c8da9f3e1e16b546603ab9300762850143acfcd2b19c06dca9d26a09ca4d |
import json
import pickle
from django.contrib import messages
from django.core import serializers
from django.core.urlresolvers import resolve, reverse
from django.http import HttpResponse, Http404
from django.shortcuts import render, redirect
from django.template.loader import render_to_string
from rdkit import Chem
... | martin-sicho/MI_ADM | MI_ADM_website/compound_db/views.py | Python | gpl-3.0 | 5,600 | [
"RDKit"
] | 4b9af24481a4414bc796bf4fbff18a3fb40068c477ccff96dd526aabd430a29b |
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# Mainak Jas <mainak@neuro.hut.fi>
# Mark Wronkiewicz <wronk.mark@gmail.com>
#
# Lice... | kambysese/mne-python | mne/viz/tests/test_3d.py | Python | bsd-3-clause | 36,089 | [
"Mayavi"
] | e714089cb56145645b4f7d2ca43301cc97084b24e63fcc2a94840000fb362d52 |
"""
Utilities to write data to NetCDF files.
@author Umma Zannat
"""
import os
from netCDF4 import Dataset
import numpy as np
from scipy import spatial
#Not work import scipy.spatial.cKDTree as KDTree
from pyproj import transform, Proj
from mtpy.utils import gis_tools
def IDW(source_points, source_values, query_po... | MTgeophysics/mtpy | mtpy/contrib/netcdf/nc.py | Python | gpl-3.0 | 5,366 | [
"NetCDF"
] | 5b954adbc5f5c0cc46d3ed2b43d3b702755551dbe46fc90727bc9f7d70216bc0 |
# This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
#
# MAUS is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | mice-software/maus | src/map/MapPyBeamMaker/test_beam.py | Python | gpl-3.0 | 32,548 | [
"Gaussian"
] | ccb4b9d78c32611a9607ea13f0d09037f7fcc3aa87eee8ca8afc8d364e693260 |
from itertools import product
import numpy as np
from sympy import And
import pytest
from conftest import skipif, opts_tiling
from devito import (ConditionalDimension, Grid, Function, TimeFunction, SparseFunction, # noqa
Eq, Operator, Constant, Dimension, SubDimension, switchconfig,
... | opesci/devito | tests/test_dimension.py | Python | mit | 47,982 | [
"VisIt"
] | 5619460fc6784b1e3e456c333d18f73c12ae0954801669238009b6f7d8ff1daa |
# filename: EPIC2Datetime.py
r'''Module to convert PMEL-EPIC timeword to a python datetime
Modifications
-------------
'''
import datetime
from netCDF4 import date2num, num2date
__author__ = 'Shaun Bell'
__email__ = 'shaun.bell@noaa.gov'
__created__ = datetime.datetime(2016, 07, 21)
__modified__ ... | shaunwbell/FOCI_Analysis | calc/EPIC2Datetime.py | Python | mit | 7,151 | [
"NetCDF"
] | 527fc1e29d3111820f4947131f6a04d94be2822a5812a6cff2ea4ccfce5e4615 |
#-------------------------------------------------------------------------------
# Cloud-COPASI
# Copyright (c) 2013 Edward Kent.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0
# which accompanies this distribution, and is available... | edkent/cloud-copasi | cloud_copasi/web_interface/task_plugins/plugins/parameter_estimation_repeat/copasi_model.py | Python | gpl-3.0 | 5,038 | [
"COPASI"
] | 03f063d95032f5eed8f7193e1dabab9b4c3c2ae7139436052e0eb51af0b078b4 |
"""
This module defines export functions for decision trees.
"""
# Authors: Gilles Louppe <g.louppe@gmail.com>
# Peter Prettenhofer <peter.prettenhofer@gmail.com>
# Brian Holt <bdholt1@gmail.com>
# Noel Dawe <noel@dawe.me>
# Satrajit Gosh <satrajit.ghosh@gmail.com>
# Trevor... | RPGOne/scikit-learn | sklearn/tree/export.py | Python | bsd-3-clause | 16,873 | [
"Brian"
] | 694b6bad99398091b1e946e55c18c34b62b8618ecdf3f61d09348b1270a08ebe |
from __future__ import annotations
from xia2.Wrappers.XDS.XDSIntegrateHelpers import parse_integrate_lp
def test_parse_integrate_lp(tmpdir):
integrate_lp = tmpdir.join("INTEGRATE.LP")
with integrate_lp.open("w") as fh:
fh.write(integrate_lp_example_1)
per_image_stats = parse_integrate_lp(integrat... | xia2/xia2 | tests/Wrappers/XDS/test_XDSIntegrateHelpers.py | Python | bsd-3-clause | 6,383 | [
"CRYSTAL"
] | 1ebf91c5dc4116ab3673468a231a77bdfd029240c8b507c153fa94b9d60873e1 |
##########################################################################
#
# Copyright (c) 2019, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | lucienfostier/gaffer | python/GafferUI/SpreadsheetUI.py | Python | bsd-3-clause | 73,135 | [
"VisIt"
] | 8c89f28982389e406776626a69f8148c29693ac07f3128e779c1453b70bca2bf |
# -*- coding: utf-8 -*-
from gluon.tools import Auth, Crud, Service, PluginManager, Mail, prettydate
db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
response.generic_patterns = ['*'] if request.is_local else []
response.optimize_css = 'concat,minify,inline'
response.optimize_js = 'concat,minify... | alatar-/iwm-project | models/db.py | Python | mit | 8,519 | [
"VisIt"
] | 4bf213f7932bf36a618948359f218bef24730b1a4e0601da468cade8e84bd11b |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | kkreis/espressopp | src/esutil/GammaVariate.py | Python | gpl-3.0 | 1,686 | [
"ESPResSo"
] | c1d18abe388ad3acb620932fa33fb9ee451c9e4b5bd0cb56769915e496cc54bc |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, print_function, unicode_literals, \
absolute_import
from scipy.linalg import polar
import numpy as np
import itertools
import warnings
import collections
import string
from... | nisse3000/pymatgen | pymatgen/analysis/elasticity/tensors.py | Python | mit | 30,050 | [
"CRYSTAL",
"pymatgen"
] | af7e01d87ce7dc6abfe8d238cf547694f24f78c3372c44b4a345a589ee8c78e9 |
# encoding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
class MailRuIE(InfoExtractor):
IE_NAME = 'mailru'
IE_DESC = 'Видео@Mail.Ru'
_VALID_URL = r'http://(?:www\.)?my\.mail\.ru/(?:video/.*#video=/?(?P<idv1>(?:[^/]+/){3}\d+)|(?:(?P<idv2prefix>(?:[^/]+/){2})vi... | riking/youtube-dl | youtube_dl/extractor/mailru.py | Python | unlicense | 2,873 | [
"Galaxy"
] | e9a74134115c59d6a5ecfd705d2d0326da8804ada0ea873b019bd1a4ab771d16 |
import json
import logging
from datetime import datetime
import ddt
from django.core.urlresolvers import reverse
from django.http import Http404
from django.test.client import Client, RequestFactory
from django.test.utils import override_settings
from django.utils import translation
from mock import ANY, Mock, call, p... | procangroup/edx-platform | lms/djangoapps/discussion/tests/test_views.py | Python | agpl-3.0 | 81,828 | [
"VisIt"
] | 8f894d79728c23dc284f78555f1ebe98cacd5687827b97a12d524b725ce2b07e |
#!/usr/bin/env python
"""
This is not a parallel version!
"""
import math
import random
import sys
class UniformLongDist:
"""
This class generates uniform longitudinal distribution coordinates
"""
def __init__(self, zmin, zmax, sp, eoffset, deltaEfrac):
self.name = "JohoLongitudinal"
self.zmin = zmin
se... | PyORBIT-Collaboration/py-orbit | py/orbit/injection/distributions.py | Python | mit | 14,564 | [
"Gaussian"
] | e9086a08117e98495662293a6094d257b3fcda1d06634f0e6026ff732904d623 |
import os
import sys
import time
from math import log
from math import sqrt
import numpy as np
import ase
from ase.version import version as ase_version
from ase.data import chemical_symbols
from ase.units import Bohr, Hartree
from gpaw.utilities import devnull
from gpaw.mpi import size, parallel
from gpaw.version im... | qsnake/gpaw | gpaw/output.py | Python | gpl-3.0 | 19,612 | [
"ASE",
"GPAW"
] | b871bdb964418ad0d078f88eaa90961a5c51f1875204bbcf35920b1a420fb5b7 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-05 18:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reports', '0007_auto_20170505_1438'),
]
operations = [
migrations.AlterField(... | johnobrien/edmw | reports/migrations/0008_auto_20170505_1459.py | Python | mit | 2,273 | [
"ORCA"
] | d52d4e7ea601cd66bb5583d37ca166045a8150205c66ba14fa7513a7c7c10701 |
# -*- coding: utf-8 -*-
# Copyright 2009 James Hensman
# Licensed under the Gnu General Public license, see COPYING
import numpy as np
from scipy import optimize
class MLP:
"""A multiplayer perceptron neural network. Used in the Back Consterained GPLVM (GPLVMBC)"""
def __init__(self,structure,output='linear',alpha=1... | jameshensman/pyGP | src/pyGP/LVM/MLP.py | Python | gpl-3.0 | 3,975 | [
"Gaussian"
] | 13bcb5b6c5db99b1894123d0a4b8fa3b32dd73ef77252eeda997ebcf24871f55 |
from test_topographic import test_topo
import unittest
from parametrized_test_case import ParametrizedTestCase
"""
.. module:: run_all
:synopsis: Initiates Characterisation Test Suite for all Wind Multipliers
.. moduleauthor:: Daniel Wild <daniel.wild@ga.gov.au>
"""
def run():
"""
Used to initiate te... | dynaryu/Wind_multipliers | tests_characterisation/run_all.py | Python | gpl-3.0 | 1,172 | [
"NetCDF"
] | 017044ecfcbe6e10b5ab36b059454547258c6262e067295917427b431ddd901f |
# coding: utf-8
from __future__ import division, unicode_literals
"""
This module provides classes for plotting PhaseDiagram objects.
"""
from six.moves import zip
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "1.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = ... | Dioptas/pymatgen | pymatgen/phasediagram/plotter.py | Python | mit | 30,401 | [
"pymatgen"
] | 44f5aaa0a848939b578c4815fc360f40130da4e2e9d4cc68f4e377949821bf65 |
from mjhmc.search.objective import obj_func
from mjhmc.samplers.markov_jump_hmc import ControlHMC
from mjhmc.misc.distributions import Gaussian
def main(job_id, params):
print "job id: {}, params: {}".format(job_id, params)
return obj_func(ControlHMC, Gaussian(ndims=10, nbatch=200), job_id, **params) | rueberger/MJHMC | mjhmc/search/control_log_gauss/control_objective.py | Python | gpl-2.0 | 311 | [
"Gaussian"
] | aed2e5250472dcc1a3e7a6394d2c2111faf9595386189c5ebab7ed4f60ab88a8 |
# Copyright (c) 2018 PaddlePaddle 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 app... | luotao1/Paddle | python/paddle/fluid/tests/unittests/test_cuda_random_seed.py | Python | apache-2.0 | 5,777 | [
"Gaussian"
] | b6aece5e61a5c0d4ece0186a2a204f85f05135f423072483d1120142e0fb5a36 |
# Copyright (c) 2020 PaddlePaddle 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 app... | PaddlePaddle/Paddle | python/paddle/fluid/dygraph/dygraph_to_static/cast_transformer.py | Python | apache-2.0 | 1,796 | [
"VisIt"
] | 87bb1925d601fdd344b6b7afb50f4bfee35a7f7a6d53cfe89bcd3e43c842f24c |
# -*- 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-dialogflow-cx | tests/unit/gapic/dialogflowcx_v3/test_security_settings_service.py | Python | apache-2.0 | 110,452 | [
"Octopus"
] | 673ef1bee6fc3321c7c8d5f4679231ef14ba1b1983daeaaa1e3fd9c0d8491175 |
# (c) 2017, Brian Coca <bcoca@ansible.com>
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in th... | konstruktoid/ansible-upstream | lib/ansible/cli/inventory.py | Python | gpl-3.0 | 14,468 | [
"Brian"
] | e112fad16d82964dbbacc2bf262297d7b4968b2db9edb3395536e1e2eace39af |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import abc
import six
from monty.json import MSONable
from pymatgen.analysis.ewald import EwaldSummation
from pymatgen.symmetry.analyzer import SpacegroupAnal... | Bismarrck/pymatgen | pymatgen/analysis/energy_models.py | Python | mit | 5,733 | [
"GULP",
"pymatgen"
] | 35b30e4efd9ca6255ae90185a9bea6312e59ebe0f12ee777af7a643848bc9c12 |
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | tensorflow/compression | tensorflow_compression/python/entropy_models/continuous_batched.py | Python | apache-2.0 | 20,319 | [
"Gaussian"
] | e8b3cbcf2bafbda6ae1d505a73253835b15a2dc641b957d8fc3c772e29631fd4 |
from unittest import TestCase
from dark.hsp import HSP, LSP
class TestHSP(TestCase):
"""
Tests of the L{dark.hsp.HSP} class.
"""
def testExpectedAttributes(self):
"""
An HSP must have the expected attributes.
"""
hsp = HSP(7, readStart=1, readEnd=2,
... | terrycojones/dark-matter | test/test_hsp.py | Python | mit | 5,801 | [
"BLAST"
] | a243e44de31e6197fb5afa30fcd765da8a9af8079e68a3a8993b29cf548bd7f6 |
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com>
# Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk>
# Copyright (C) 2007-2009 Stephane Charet... | SNoiraud/gramps | gramps/plugins/webreport/addressbooklist.py | Python | gpl-2.0 | 6,549 | [
"Brian"
] | 74042af8dda196bfc1835283d4624043e0790033c59b6d6e9cc5ed4ec197c20a |
""" Module for Bessel function calculations """
import numpy as np
from scipy.special import jv, jn_zeros
import matplotlib.pyplot as plt
class Bessel(object):
@staticmethod
def coeffs_impulse(m, ncount, r_0, a, G):
""" Calculate the coefficients for the Bessel function `m`, `n`
with an i... | ThatSnail/drummer | bessel.py | Python | mit | 1,835 | [
"DIRAC"
] | 8a72b07d455538874da31dbfdec2efbf5bae4191db0e45b7077b11663538fc69 |
# -*- coding: utf-8 -*-
from csirtg_indicator.format.zsnort import Snort, get_lines
from csirtg_indicator.indicator import Indicator
import pytest
import re
RULE_PATTERN = r'^alert (TCP|UDP|IP) (\S+) (\S+) -> ([^,]+)\s(\S+)\s\([^.]+\)'
@pytest.fixture
def indicator():
i = {
'indicator': "example.com",
... | csirtgadgets/csirtg-indicator-py | test/format/test_snort.py | Python | mpl-2.0 | 884 | [
"Amber"
] | b7f9a576b2aa4e0862dc75c24a82a2fa2dda078d2319feabccf5359ad2f1f605 |
# Orca
#
# Copyright 2011. Orca Team.
# Author: Joanmarie Diggs <joanmarie.diggs@gmail.com>
#
# 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 y... | ruibarreira/linuxtrail | usr/lib/python3/dist-packages/orca/script_manager.py | Python | gpl-3.0 | 10,712 | [
"ORCA"
] | 3dfd523ad5b69b96e91254565475d8787459f4aad723caf408780a5373e41b14 |
# Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | psci2195/espresso-ffans | testsuite/scripts/tutorials/test_04-lattice_boltzmann_part4.py | Python | gpl-3.0 | 1,043 | [
"ESPResSo"
] | ecbdcb29262423cdb5eee0d4a22db65aee4b54f113d30950879052c390511a12 |
#! /usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-stager-show-stats
# Author : Daniela Remenska
########################################################################
"""
Reports breakdown of file(s) number/size in different staging states a... | fstagni/DIRAC | StorageManagementSystem/scripts/dirac-stager-show-stats.py | Python | gpl-3.0 | 3,030 | [
"DIRAC"
] | 23d4273568fd88b79d33c0cfcd8b2b7884bcdff91eb3fbd86309673028846b38 |
"""
Acceptance tests for Studio related to the textbooks.
"""
from common.test.acceptance.tests.studio.base_studio_test import StudioCourseTest
from ...pages.studio.textbooks import TextbooksPage
from ...tests.helpers import disable_animations
from nose.plugins.attrib import attr
@attr('shard_2')
class TextbooksTest(... | jazztpt/edx-platform | common/test/acceptance/tests/studio/test_studio_textbooks.py | Python | agpl-3.0 | 2,159 | [
"VisIt"
] | 4d783e6291b86ab474e4de5d2605f8ea927f64fe8ef87a0808b533cc92112b79 |
# -*- coding: utf-8 -*-
"""Factories for the OSF models, including an abstract ModularOdmFactory.
Example usage: ::
>>> from tests.factories import UserFactory
>>> user1 = UserFactory()
>>> user1.username
fred0@example.com
>>> user2 = UserFactory()
fred1@example.com
Factory boy docs: http://f... | abought/osf.io | tests/factories.py | Python | apache-2.0 | 26,518 | [
"Brian"
] | ee05fe4fee6dc7f5353e582060e034528300a759a22fc71b0c3ff9a5ff250ad3 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2022 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | susilehtola/psi4 | psi4/driver/procrouting/dft/gga_functionals.py | Python | lgpl-3.0 | 8,702 | [
"Psi4"
] | 7c925e6a827d1c84f36833c18e2e81078386598658f8a8ce70f59d8de4eabf3d |
from __future__ import print_function
import sys
import requests
from datetime import date
from bokeh.widgetobjects import HBox, VBox, TableColumn, HandsonTable, ObjectExplorer
from bokeh.objects import Plot, ColumnDataSource, DataRange1d, Glyph, LinearAxis, DatetimeAxis, Grid, HoverTool
from bokeh.glyphs import Line... | the13fools/Bokeh_Examples | glyphs/widgets_server.py | Python | bsd-3-clause | 2,344 | [
"VisIt"
] | e3954f8cf6a723964c9de6e206e8c3a19eb11426ff682360fec83ca02f7b3fda |
from director import vtkAll as vtk
import PythonQt
class ImageView(object):
def __init__(self):
self.view = PythonQt.dd.ddQVTKWidgetView()
self.view.setWindowTitle('Image View')
self.imageActor = vtk.vtkImageActor()
self.setImage(vtk.vtkImageData())
self.view.renderer().Add... | mitdrc/director | src/python/director/imageview.py | Python | bsd-3-clause | 1,368 | [
"VTK"
] | 0f7b27d229a1bdb69fad54c15e8bae64043d874bf6d1afb1c7ab8adaef8b6472 |
from lexer import Lexer
from parser import Parser
from semantic_analyzer import SemanticAnalyzer
from instruction_generator import InstructionGenerator
from instruction_interpreter import InstructionInterpreter
sample_text = """
var x, y, z : int;
function foo (p, q, n, m : int) {
p = p + 5;
q = q * 10;
n... | doubledherin/my_compiler | compile_sample_text.py | Python | mit | 3,500 | [
"VisIt"
] | 27b8f81a7aeeac08c42265cf981c17a106994ac5035b5262ddc8157023b0f11d |
# - Coding UTF8 -
#
# Networked Decision Making
# Site: http://code.google.com/p/global-decision-making-system/
#
# License Code: GPL, General Public License v. 2.0
# License Content: Creative Commons Attribution 3.0
#
# Also visit: www.web2py.com
# or Groups: http://groups.google.com/group/web2py
# For details on the... | NewGlobalStrategy/NetDecisionMaking | modules/netx2py.py | Python | mit | 1,248 | [
"VisIt"
] | c30be864126b91ef1c8c33bb5e7ccb236c13f4de0809d42a28a2e481052daa74 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import logging
from numbers import Number
import numpy as np
from sisl.io import get_sile
from sisl.utils import direct... | zerothi/sisl | toolbox/siesta/minimizer/_metric_siesta.py | Python | mpl-2.0 | 8,826 | [
"SIESTA"
] | 8932ad80a7bf05a7dde26871e1956e76c2a188b53b6d15ac31c19fc79894f8f5 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
LFPs from a population of cells relying on MPI (Message Passing Interface)
Execution:
<mpiexec> -n <processes> python example_mpi_2.py
Notes:
- on certain platforms and with mpirun, the --oversubscribe argument is needed
to get more processes than the number of... | LFPy/LFPy | examples/example_mpi_2.py | Python | gpl-3.0 | 11,266 | [
"NEURON"
] | 0ec0a59cd052b119b46d3f6e7078ebbc5e14811031da7cbaf53e4de68d5c6228 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.