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 -*-
import datetime
import json
import os
import shutil
from django.conf import settings
from django.core.files.storage import default_storage as storage
import mock
from nose.tools import eq_, ok_
from pyquery import PyQuery as pq
import amo
import amo.tests
from amo.tests import formset, initia... | Joergen/zamboni | mkt/submit/tests/test_views.py | Python | bsd-3-clause | 39,321 | [
"exciting"
] | 8c6249b835bf73d49758947fc27ffabfa978d88b63ac849af9cd49d626cb638f |
"""
Acceptance Tests for Course Information
"""
from flaky import flaky
from common.test.acceptance.pages.studio.course_info import CourseUpdatesPage
from common.test.acceptance.tests.studio.base_studio_test import StudioCourseTest
from ...pages.studio.auto_auth import AutoAuthPage
from ...pages.studio.index import D... | tanmaykm/edx-platform | common/test/acceptance/tests/studio/test_studio_course_info.py | Python | agpl-3.0 | 6,819 | [
"VisIt"
] | 0ed943be008cc94540d811fd715b7073ac46d75b60cac9e59c1712b4530c9e7c |
#!/usr/bin/env python
# Author: Junjun Zhang
import sys
import os
import re
import glob
import xmltodict
import json
import yaml
import copy
import logging
from argparse import ArgumentParser
from argparse import RawDescriptionHelpFormatter
from elasticsearch import Elasticsearch
from collections import OrderedDict
i... | ICGC-TCGA-PanCancer/pancancer-sandbox | pcawg_metadata_parser/parse_gnos_xml.py | Python | gpl-2.0 | 97,470 | [
"BWA"
] | 5c330fb5ec4c04f6ac6cb0e71fd5465a96dba66b476539bbabe17ec2650ed5b7 |
#!/usr/bin/env python3
### VERY MUCH PYTHON 3 !!!
"""
Serve up static web pages
For Magnus Flora Demo
(Said static web pages then make ajax requests to jarvis and the simulator. All UI logic resides
on the client)
Made available under the MIT license as follows:
Copyright 2017 Brian Bulkowski brian@bulkowski.org... | bbulkow/MagnusFlora | web/static_web.py | Python | mit | 3,922 | [
"Brian"
] | 80e395e2b3364ec458fc356df3e429840db6d98281eddb66cacd6a42d3eedb01 |
from lib.exception import MissingException
from lib.sitkaAPI import latestMetricInstance
from lib.exception import DataException, MissingException
from lib.metrics import CHaMPMetric
class UndercutMetrics(CHaMPMetric):
TEMPLATE = {
'VisitMetrics': {
'Length' : 0.0,
'LengthPercent' ... | SouthForkResearch/CHaMP_Metrics | tools/topoauxmetrics/methods/undercut.py | Python | gpl-3.0 | 2,827 | [
"VisIt"
] | 10a43c755157082be384c955f466bf1c354152dd44b05a5a0d048ce9ce0e5f6f |
""" DIRAC FileCatalog mix-in class to manage directory metadata
"""
# pylint: disable=protected-access
import six
import os
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Utilities.Time import queryTime
class DirectoryMetadata(object):
def __init__(self, database=None):
self.db = database
def setDa... | DIRACGrid/DIRAC | src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DirectoryMetadata/DirectoryMetadata.py | Python | gpl-3.0 | 37,350 | [
"DIRAC"
] | e0b8d2061ed43035a9a41477971c8391f050a01d3db7261f82b520ee62ae1adf |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2018 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
#... | amjames/psi4 | psi4/share/psi4/databases/CORE.py | Python | lgpl-3.0 | 23,802 | [
"Psi4"
] | 1f4057949ef7bf0c5680884b69bc7dc90658d2897abe29ac61371a00b37b3a79 |
from setuptools import setup
setup(
name='lazyweb',
version='0.1',
description='A lightweight jinja template compiler',
author='Brian McFee',
author_email='brm2132@columbia.edu',
url='http://github.com/bmcfee/lazyweb',
download_url='http://github.com/bmcfee/lazyweb/releases',
long_descr... | bmcfee/lazyweb | setup.py | Python | gpl-3.0 | 880 | [
"Brian"
] | abe59e76146dcbb555a542fbf3ee569c06feecc6c7358c6b8eb2d18a72487d28 |
import vtk
from vtk.test import Testing
# Data from our friends at Sandia
points = vtk.vtkPoints()
points.InsertNextPoint(0,0,0)
points.InsertNextPoint(1,0,0)
points.InsertNextPoint(1,1,0)
points.InsertNextPoint(0,1,0)
points.InsertNextPoint(0,0,5)
points.InsertNextPoint(1,0,4)
points.InsertNextPoint(1,1,4)... | hlzz/dotfiles | graphics/VTK-7.0.0/Filters/Core/Testing/Python/Delaunay3DAlphaTest.py | Python | bsd-3-clause | 1,751 | [
"VTK"
] | d2c79d02b761a0b48dcc34d3e3e48765effa079075f91d2fedc4395758fc21f4 |
import re
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from .utils import get_seq
class DatasetBlock(object):
"""
By default, the data sequences block generated is NEXUS and we use BioPython
tools to convert it to other formats such as FASTA.
... | carlosp420/dataset-creator | dataset_creator/base_dataset.py | Python | bsd-2-clause | 23,206 | [
"Biopython"
] | 06caef9966f3fd2a0162bc0e86fe5980586c764486981a0f2546c16261bc6d70 |
"""Silly data generator (Faker (https://github.com/joke2k/faker) and others
are much better, but we just need something simple"""
from __future__ import print_function
import string
# Third Party
import pandas as pd
import numpy as np
def df_random(num_numeric=3, num_categorical=3, num_rows=100):
"""Generate ... | jzadeh/Aktaion | python/parserDev/brothon/analysis/data_generator.py | Python | apache-2.0 | 3,478 | [
"Gaussian"
] | b4921ceb077fe5a33728002d0bcbfe5819ee30439d73a1cbd3c466142b8c5348 |
# coding=utf-8
from distutils.version import LooseVersion
from itertools import chain
import tempfile
import os
import logging
import hashlib
import random
import json
import types
import re
from collections import defaultdict
from datetime import datetime
from functools import wraps
from copy import deepcopy
from urll... | puttarajubr/commcare-hq | corehq/apps/app_manager/models.py | Python | bsd-3-clause | 170,846 | [
"VisIt"
] | 4a8b2f22fb893ef4019eb5fa4ce75fb962a41bb94b06844497b7054e0a713fd0 |
#!/usr/bin/env python
# Author: Andrew Jewett (jewett.aij at g mail)
# http://www.moltemplate.org
# http://www.chem.ucsb.edu/~sheagroup
# License: 3-clause BSD License (See LICENSE.TXT)
# Copyright (c) 2011, Regents of the University of California
# All rights reserved.
"""
lttree.py
lttree.py is an... | quang-ha/lammps | tools/moltemplate/moltemplate/lttree.py | Python | gpl-2.0 | 39,725 | [
"LAMMPS"
] | c122886a1454027a4d598337134a31f24e04536e6bf9a65a5b3d6e35c7fb8405 |
#
# Test executable #1 to exercise the beam space charge calculations.
# Here, we calculate the free-space wakefield of a relativistic beam.
#
# Copyright (c) 2013 UCLA and RadiaBeam Technologies. All rights reserved
# SciPy imports
import numpy as np
import matplotlib.pyplot as plt
# RadiaBeam imports
import radtr... | radiasoft/radtrack | experimental/selfFields/testWake01.py | Python | apache-2.0 | 2,518 | [
"Gaussian"
] | 9955cca455a072a0fcdbe446d059ee078f567a640c40e8ca0fbacc947ae3048e |
import numpy as np
import os
try:
import matplotlib
if not os.environ.get('DISPLAY'):
# Use non-interactive Agg backend
matplotlib.use('Agg')
from matplotlib import pyplot as plt
except ImportError:
import platform
if platform.python_implementation() == 'PyPy':
# PyPy doesn'... | terrycojones/dark-matter | dark/features.py | Python | mit | 12,233 | [
"BLAST",
"Biopython"
] | 672ab430470e3d4c29148e716fde4db5a605a8ffae48cc63b59ad0c8814b48ae |
import tensorflow as tf
import numpy as np
import pickle
# HiddenLayer_dict[layer] = Number of hidden neurons in this layer, start from 1 !!!
def Hidden_layer_shape(l,n):
hidden_layer_shape = {}
# Modify hidden layer number "l" and neuron number "n" in each layer.
for layer in range(1,l+1):
hidden_layer_shape[lay... | PassiveVision/Feature-Net-Learn | TrainingFeatureNetInf.py | Python | gpl-3.0 | 4,180 | [
"NEURON"
] | 9dbc8226aa34432edd5616137d40b7a82cab7bb605cb446b49a81e60b0a0ad45 |
"""Alignment with SNAP: http://snap.cs.berkeley.edu/
"""
import os
from bcbio import utils
from bcbio.pipeline import config_utils
from bcbio.pipeline import datadict as dd
from bcbio.ngsalign import alignprep, novoalign, postalign
from bcbio.provenance import do
def align(fastq_file, pair_file, index_dir, names, ali... | Cyberbio-Lab/bcbio-nextgen | bcbio/ngsalign/snap.py | Python | mit | 2,929 | [
"Galaxy"
] | c513a9166e78b7e0c68bfa32b966a7bd42080e53fbb329249db010091aae6c34 |
#!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2012-2016 CNRS
# 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 limita... | pyannote/pyannote-algorithms | pyannote/algorithms/segmentation/sliding_window.py | Python | mit | 5,318 | [
"Gaussian"
] | d1d3fb29c39fae5815e9d727a453f0ea751a1fda362ca04cf39f0a6b40b24bf7 |
# -*- coding: utf-8 -*-
# LaTeX math to Unicode symbols translation dictionaries.
# Generated with ``write_tex2unichar.py`` from the data in
# http://milde.users.sourceforge.net/LUCR/Math/
# Includes commands from: wasysym, stmaryrd, mathdots, mathabx, esint, bbold, amsxtra, amsmath, amssymb, standard LaTeX
mathacce... | JulienMcJay/eclock | windows/Python27/Lib/site-packages/docutils/utils/math/tex2unichar.py | Python | gpl-2.0 | 35,109 | [
"Bowtie"
] | d2d5d5dbdb5ab4610273acc357bf32bf1fbabdce67a5f3b51ae919af36c8e69b |
#!/usr/bin/env python
"""
This script prints out how great is it, shows raw queries and sets the
number of pings.
Example:
$ dirac-my-great-script detail Bob MyService
Your name is: Bob
This is the servicesList: MyService
We are done with detail report.
"""
from DIRAC import S_OK, S_ERROR, gLogger, exit as DIR... | ic-hep/DIRAC | docs/source/DeveloperGuide/AddingNewComponents/DevelopingCommands/dirac_my_great_script.py | Python | gpl-3.0 | 3,791 | [
"DIRAC"
] | d2ac4a876f9fac7d91dadbbe9790206cf291e901dbd33d8b8a461bd9867ae272 |
import pytest
@pytest.mark.requires("js")
class TestGoBack:
def test_fetches_a_response_from_the_driver_from_the_previous_page(self, session):
session.visit("/")
assert session.has_text("Hello world!")
session.visit("/foo")
assert session.has_text("Another World")
session.g... | elliterate/capybara.py | capybara/tests/session/test_go_back.py | Python | mit | 377 | [
"VisIt"
] | 8e4e2b9bc73a320f3a9c00e2dec4a9dce8bc66ccd465f8d2933cde0c1c7495df |
import os
import os.path as op
try:
from conda_build.metadata import MetaData
except Exception as e:
import traceback
traceback.print_exc()
raise e
from distutils.version import LooseVersion
#import matplotlib
#matplotlib.use("agg")
#import matplotlib.pyplot as plt
#from wordcloud import WordCloud
BAS... | ThomasWollmann/bioconda-recipes | docs/generate_docs.py | Python | mit | 4,571 | [
"Bioconda"
] | 516d345db70d9c297e91da1f83e3be790bf32c2b80e4498de152353a06a92cd1 |
#!/usr/bin/python
import scipy
import scipy.interpolate
import scipy.optimize
import sys
import os
import subprocess
from astropy.io import fits as pyfits
import pylab
import numpy as np
import MakeModel
import DataStructures
import FitTellurics as utils
import FitsUtils
import Units
import RotBroad
# Get stellar... | kgullikson88/TS23-Scripts | ImproveWavelengthSolutionGUI.py | Python | gpl-3.0 | 19,329 | [
"Gaussian"
] | a3f968a45f2ccbd9268ea7a5288db2a37dc802ad7ec21bfab5580b4b541ceff1 |
import math
import numpy as np
import pandas as pd
SIGMA = 0.1
N = 40
def radial_kernel(x0, X, sigma):
return np.exp(np.sum((X - x0) ** 2, axis=1) / (-2 * sigma * sigma))
def gaussian(sigma):
f = 1 / (math.sqrt(2*math.pi) * sigma)
def kernel(x, X):
return f * np.exp(np.sum((X - x) ** 2, axis=1... | yarden-livnat/regulus | regulus/models/inv_reg.py | Python | bsd-3-clause | 3,790 | [
"Gaussian"
] | 0e262f17cdd7e3364a1636aa90ef1d9db2133148c1f9e798e336435af65e79b6 |
#!/usr/bin/env python
"""
This is a simple tool to simulate mock stream catalog
for image generation with imSim.
Need ugali and dsphsim to run the code (see README.md)
The stream is generated as a stack of a line of dwarf galaxies
with Gaussian density profile. It is close to uniform along the
stream except for edges... | LSSTDESC/LSSTDarkMatter | streamsim/generateInstCat.py | Python | mit | 13,024 | [
"Galaxy",
"Gaussian"
] | 5ad413472a110c3d76155f74df1f3004c7fa2cb44e3ca5980254b5860f205924 |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | modules/geochemistry/python/tests/test_eq36reader.py | Python | lgpl-2.1 | 6,784 | [
"MOOSE"
] | ee12521360120d4a0f1100dc5691320fdf58521553b7f8b0ad8d3c41afc3c20b |
from pyaxiom.netcdf.sensors.timeseries import TimeSeries, get_dataframe_from_variable
from pyaxiom.netcdf.sensors.profile import Profile, IncompleteProfile
| axiom-data-science/pyaxiom | pyaxiom/netcdf/sensors/__init__.py | Python | mit | 156 | [
"NetCDF"
] | 7a55a5f58e0f5d9134fafdf7fece512bbfb80cf3e80bdb26d6a96093d9874d3c |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2019 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | CDSherrill/psi4 | psi4/driver/qcdb/psivardefs.py | Python | lgpl-3.0 | 15,690 | [
"Psi4"
] | 971d2bce5ec9bb345072d1a6c828b863960582b8d4ec12a60b2d84585e7f12a5 |
# Copyright 2009 by Cymon J. Cox. All rights reserved.
# 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.
"""Command line wrapper for the multiple alignment program PROBCONS.
"""
from __future__ import... | poojavade/Genomics_Docker | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Bio/Align/Applications/_Probcons.py | Python | apache-2.0 | 5,219 | [
"Biopython"
] | 26f459efd7b05e8328931d9a8a24af78100aa974f0784126f3fa6a00051b7839 |
import ctypes
import sys
sys.setdlopenflags((sys.getdlopenflags() | ctypes.RTLD_GLOBAL ))
import espresso as es
import numpy
es._espressoHandle.Tcl_Eval("thermostat langevin 1. 1.")
N=100
es.glob.time_step=0.01
es.glob.skin=1.
es.glob.box_l=[10., 10., 10.]
es.lb["cpu"].dens=1
print es.lb["cpu"].dens
for i in range(N... | roehm/cython | cython/examples/hello_parallel_world.py | Python | gpl-3.0 | 555 | [
"ESPResSo"
] | df8989fff2fa2025ad836bb1606b32f9e2de1052dcbda16990f8024b06de0f7c |
import unittest
from DIRAC.Core.Workflow.Module import ModuleDefinition
from DIRAC.Core.Workflow.Step import StepDefinition
from DIRAC.Interfaces.API.Job import Job
from DIRAC.Workflow.Utilities.Utils import getStepDefinition, getStepCPUTimes
###########################################################################... | andresailer/DIRAC | Workflow/Utilities/test/Test_Utilities.py | Python | gpl-3.0 | 2,818 | [
"DIRAC"
] | f31a82a5141f13162900e4ffcc8c1a84307b9d2ffe6fce05d648733b503e150b |
"""
Module to set up run time parameters for Clawpack.
The values set in the function setrun are then written out to data files
that will be read in by the Fortran code.
"""
import os
import numpy as np
#-----------------------------------------------
# Set these parameters for adjoint flagging....
# location... | clawpack/adjoint | examples/acoustics_2d_radial_mixed/compare/setrun.py | Python | bsd-2-clause | 13,991 | [
"NetCDF"
] | 5df9174f5ba044600028e0ed7a0a11cf9e9a4ae934e8f0c000fd34aa18b6326c |
from __future__ import division
import numpy as np
from scipy import optimize
def d4s(data):
"""
Beam parameter calculation according to the ISO standard D4sigma integrals
input: 2D array of intensity values (pixels)
output:
xx, yy: x and y centres
dx, dy: 4 sigma widths for x and y
angle... | imrehg/labhardware | projects/beamprofile/fastfit.py | Python | mit | 4,052 | [
"Gaussian"
] | 493b5b1655983a25531da67e9fe3024bdc2b2b7df771283731f02ded01e9b8ee |
""" Implementation of Module
"""
#pylint: disable=unused-wildcard-import,wildcard-import
import copy
import os
#try: # this part to import as part of the DIRAC framework
from DIRAC.Core.Workflow.Parameter import *
__RCSID__ = "$Id$"
class ModuleDefinition( AttributeCollection ):
def __init__( self, type = None,... | Andrew-McNab-UK/DIRAC | Core/Workflow/Module.py | Python | gpl-3.0 | 11,481 | [
"DIRAC"
] | 4d325aab3803cb770394b4a06789555ef6e9d1ccebfcdccf233e42e0f08ae79c |
"""
siesta module for sids
======================
Enables access to siesta DFT output files.
Currently supported files are:
*.HSX
"""
| zerothi/siesta-es | sids/siesta/__init__.py | Python | gpl-3.0 | 138 | [
"SIESTA"
] | 96a2947a96c594db4ac30a72916bea674eb6144bf0ab07279512fa75b383e592 |
"""
Student Views
"""
import datetime
import logging
import uuid
import json
import warnings
from collections import defaultdict
from urlparse import urljoin
from pytz import UTC
from requests import HTTPError
from ipware.ip import get_ip
from django.conf import settings
from django.contrib.auth import logout, authen... | devs1991/test_edx_docmode | common/djangoapps/student/views.py | Python | agpl-3.0 | 102,710 | [
"VisIt"
] | 11352420e5e61de0119e58706be28db89a08db175473b0e0663160d615b843df |
""" :mod: TransformationCleaningAgent
=================================
.. module: TransformationCleaningAgent
:synopsis: clean up of finalised transformations
"""
__RCSID__ = "$Id$"
# # imports
import re
from datetime import datetime, timedelta
# # from DIRAC
from DIRAC import S_OK, S_ERROR
from DIRAC.C... | fibbo/DIRAC | TransformationSystem/Agent/TransformationCleaningAgent.py | Python | gpl-3.0 | 24,704 | [
"DIRAC"
] | f1dd4740045224448ed2391e6f69b0dab211475e03d19f22240e8e54a181aa9b |
#!/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 ... | glaudsonml/kurgan-ai | tools/sqlmap/thirdparty/xdot/xdot.py | Python | apache-2.0 | 96,496 | [
"FLEUR"
] | aa158ee7357055a222880a0fcedc16694e51329fe6b48b9985abcd08c61d2c94 |
#! /usr/bin/env python
#
# Copyright (C) 2003-2021 ABINIT group
#
# Written by Gabriel Antonius in python (compatible v2.7).
# This is free software, and you are welcome to redistribute it
# under certain conditions (GNU General Public License,
# see ~abinit/COPYING or http://www.gnu.org/copyleft/gpl.tx... | abinit/abinit | scripts/post_processing/merge_gkk_nc.py | Python | gpl-3.0 | 4,641 | [
"ABINIT"
] | 67a6093a1c446430310689a22e0adaa0d47ad91136ff1591721a90ba6a59ea13 |
"""Utilities
The module contains some commonly functions and classes.
"""
from __future__ import division
from bisect import bisect_right
from distutils.spawn import find_executable
from functools import wraps
from os import environ
from numpy import arcsin, ceil, floor, pi, round, sin, sqrt
from progressbar import... | HiSPARC/sapphire | sapphire/utils.py | Python | gpl-3.0 | 5,252 | [
"Gaussian"
] | 5c23de6623d1ff12995c7b266c60656d8eceb6c5a0d88d70b92313de27a7c294 |
"""
Gaussian calculator for ASE written by:
Glen R. Jenness
University of Wisconsin - Madison
Based off of code written by:
Glen R. Jenness
Kuang Yu
Torsten Kerber, Ecole normale superieure de Lyon (*)
Paul Fleurat-Lessard, Ecole normale superieure de Lyon (*)
Martin Krupicka
(*) This wo... | alexei-matveev/ase-local | ase/calculators/gaussian.py | Python | gpl-2.0 | 15,357 | [
"ASE",
"Gaussian"
] | f856539b795fb08fa60b21cd91cea868aac6f0050870eaf9d0175dfb6cc540fb |
# -*- coding:utf-8 -*-
# ##### BEGIN LGPL LICENSE BLOCK #####
# GEOS - Geometry Engine Open Source
# http:#geos.osgeo.org
#
# Copyright (C) 2011 Sandro Santilli <strk@kbt.io>
# Copyright (C) 2005 2006 Refractions Research Inc.
# Copyright (C) 2001-2002 Vivid Solutions Inc.
# Copyright (C) 1995 Olivier Deville... | s-leger/archipack | pygeos/simplify.py | Python | gpl-3.0 | 20,253 | [
"VisIt"
] | e29930827cff6727d443f5060786094c4bf48eaca2b20cdbc9c22ecdebb085be |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 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
#... | jH0ward/psi4 | psi4/driver/procrouting/mcscf/mcscf_solver.py | Python | lgpl-3.0 | 14,155 | [
"Psi4"
] | f8a425e3ae4a2442245ac2b2945f8eb8831be03f63a5552cea7e2f1d1012db9b |
import bpy, sys, os, time, tempfile
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from splinter import Browser
bl_info = {
"name": "sheepit",
"description": "Addon for uploading your project to sheepIt",
"author": "maximmaxim345",
"version": (0, 1),
"blender": (2, 78, 0),
"location": "Propertys > R... | maximmaxim345/Sheep-it-blender-plugin | __init__.py | Python | gpl-3.0 | 8,315 | [
"VisIt"
] | b35b86c7840531ed1af8605867dcba7c9c4af3b1a84ccf14adb009e655cbd7a3 |
from DIRAC import gLogger
from DIRAC.Core.Tornado.Server.TornadoService import TornadoService
from DIRAC.DataManagementSystem.Service.FTS3ManagerHandler import FTS3ManagerHandlerMixin
sLog = gLogger.getSubLogger(__name__)
class TornadoFTS3ManagerHandler(FTS3ManagerHandlerMixin, TornadoService):
"""Tornado handle... | DIRACGrid/DIRAC | src/DIRAC/DataManagementSystem/Service/TornadoFTS3ManagerHandler.py | Python | gpl-3.0 | 361 | [
"DIRAC"
] | e64bbe6670e45a6562c22705900dfd31c33f9ebb3cfa3430ce1e22f2c280a76a |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-dms-add-file
# Author : Stuart Paterson
########################################################################
"""
Upload a file to the grid storage and register it in the File Catalog
"""
_... | Andrew-McNab-UK/DIRAC | DataManagementSystem/scripts/dirac-dms-add-file.py | Python | gpl-3.0 | 3,489 | [
"DIRAC"
] | a679714fb5f30187e9d9c636126431a4e445b44db12ed9fbac647b545a175aec |
# 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 | flare_removal/python/utils.py | Python | apache-2.0 | 11,734 | [
"Gaussian"
] | 53c81dc3f5519a0cd8bd6be80c3e31c0c1cc00df73d0a31f16ec83edd56be040 |
# -*- coding: utf-8 -*-
# Copyright (c) 2006-2007, 2009-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
# Copyright (c) 2009 Mads Kiilerich <mads@kiilerich.com>
# Copyright (c) 2010 Daniel Harding <dharding@gmail.com>
# Copyright (c) 2012-2014 Google, Inc.
# Copyright (c) 2012 FELD Boris <lothiraldan@gmail.com>
... | ekwoodrich/python-dvrip | env/lib/python3.5/site-packages/pylint/checkers/utils.py | Python | mit | 40,766 | [
"Brian"
] | 99a5f551295bd0e25068629318c28eb6cd451bad8079c5ccecf2df2883aad9bf |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
import os
import copy
from monty.serialization import loadfn # , dumpfn
from pymatgen.command_line.critic2_caller import Critic2Output
from pymatgen.core.structure import Molecule, Structure... | gVallverdu/pymatgen | pymatgen/analysis/tests/test_graphs.py | Python | mit | 38,581 | [
"pymatgen"
] | 7e0f07b41c5a286ba8ea0a790fc8c194140ccec8c85408e8ff4eba8301f0ef87 |
import numpy as np
import ipdb
import matplotlib.pylab as plt
from os import system
plt.ioff()
# some global distances and RA/Dec's.
klyr_to_center = 27.2
lyr_per_pc = 3.2616
ra_gal_center = 266.4
dec_gal_center = -28.94
ra_gal_npole = 192.85
dec_gal_npole = 27.13
ra_ecl_npole = 270.0
dec_ecl_npole = 66.561
# some gl... | rkeisler/nakedeye | nakedeye.py | Python | bsd-3-clause | 12,337 | [
"Galaxy"
] | 509bf435535011591f48bfdffe866e2061eb0af824d747b329be5662d401f56e |
# !/usr/bin/python
# -*- coding: utf-8 -*-
#
##################################################################################
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ... | i3visio/osrframework | osrframework/domains/email_providers.py | Python | agpl-3.0 | 128,746 | [
"CASINO",
"COLUMBUS",
"Galaxy",
"MOOSE"
] | 7497036ab9e537ed822d73d8e4beb196ae9f63203e74077135d36c17d9f0dfd2 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# edituser - Edit a MiG user
# Copyright (C) 2003-2013 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | heromod/migrid | mig/server/edituser.py | Python | gpl-2.0 | 4,234 | [
"Brian"
] | bba20b3abf94b59ce0d5abfdb1619fcbe51eb5aea11b23332fd8874af2504e51 |
#!/usr/bin/env python
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
from __future__ import print_function # Python 2/3 compatibility
__doc__ = """
This example simulates a number of pure Gaussian white noise signals, then fits
each one in terms of two ... | bthirion/nipy | examples/labs/glm_lowlevel.py | Python | bsd-3-clause | 1,211 | [
"Gaussian"
] | d76db03bd8464efd252b21ddad8eb4d0227b4d12bf465e9de2f20edefa829fd4 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under th... | kain88-de/mdanalysis | package/MDAnalysis/analysis/leaflet.py | Python | gpl-2.0 | 11,897 | [
"Gromacs",
"MDAnalysis",
"PyMOL",
"VMD"
] | bf55c4d5e6bedecfd972e495b7d8b602b6fe764e0c103b579c8ba94ef34efdba |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This program does an image search.
Image search. Use histogram similarity functions.
"""
from __future__ import absolute_import, division, \
print_function, unicode_literals
# import ipdb; ipdb.set_trace() ; # debugging-------
import sys
import logging
import os... | neilhan/python_cv_learning | 04-similar_images/run_me.py | Python | bsd-3-clause | 5,260 | [
"MOOSE"
] | de0815bca999d55c913c710b73498379894cf57e9209d8e77cd0153005521a6f |
# encoding: utf-8
import json
from vapory import *
from random import choice
from ase.io import read
from aces.input import getboxrange
import numpy as np
def drawRegions():
xlo,xhi,ylo,yhi,zlo,zhi=getboxrange()
f=open('regions.txt')
regions=json.loads(f.read())
f.close()
objs=[]
a=[1.0]
colors=np.array([
[0,0,... | vanceeasleaf/aces | aces/io/lammps/region.py | Python | gpl-2.0 | 2,626 | [
"ASE",
"LAMMPS"
] | a53e3998c506f2b2f05ec5debe18caa249fc11c98138c7d74bbe92b3edff7e6d |
# Copyright (C) 2004-2008 Paul Cochrane
#
# 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 version.
#
# This program is distribut... | paultcochrane/pyvisi | examples/offsetPlot.py | Python | gpl-2.0 | 2,577 | [
"VTK"
] | 79b2c9b814dac5fa718086f13e07a3a94560ee21faaeed72b45f8308e81e5fa6 |
# Regular Scripted module import
from __main__ import vtk, qt, ctk, slicer
#
# SimpleWorkflow
#
class SimpleWorkflow:
def __init__(self, parent):
import string
parent.title = "Bender Simple Workflow"
parent.categories = ["", "Segmentation.Bender"]
parent.contributors = ["Julien Finet (Kitware), Joha... | ricortiz/BenderCraniosynostosis | Modules/Scripted/SimpleWorkflow/SimpleWorkflow.py | Python | apache-2.0 | 91,206 | [
"VTK"
] | e2bfdc45c4a2468b60ac0e3a31fc1263f77c071c0dcf143f270d2c137b4a087c |
# coding: utf-8
# In[1]:
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import quandl as Quandl
import wbdata as wb
from scipy import stats
import runProcs
# get_ipython().magic('matplotlib inline')
# # Preliminaries
#
# Import country codes and country lists by income
# In[ ]:
# 1. Impo... | letsgoexploring/data | quantitytheory/python/quantityTheoryData.py | Python | mit | 16,452 | [
"BWA"
] | 40fc3e9fb838c952eb547d542efe394d7cdd34494161a60a406bcc69e2c3209a |
#!/usr/bin/env python
"""
TextureCoordinates
"""
"""
Copyright 2001 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the LGPL. See http://www.fsf.org
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT ... | ddempsey/PyFEHM | pyvtk/TextureCoordinates.py | Python | lgpl-2.1 | 2,047 | [
"VTK"
] | 1abad3043a12c9e2bdb1e9c9f7e8751b07b507463b5140451e8f38807fd6a4e4 |
#! /usr/bin/env python
import sys, os
from mpi4py import MPI
import subprocess as sub
import cPickle as pickle
import MDAnalysis as mda
import ShiftPred as sp
import md2nmr
simPath = '/local/jubio/oschill/iGRASP/IL-6/IL-6_ffcomp'
runName = '04_prod01_protein'
expDatFile = simPath + '/' + 'common_... | schilli/md2nmr | predict_shifts.py | Python | gpl-2.0 | 3,675 | [
"MDAnalysis"
] | c6ad1b279b62ce4bfe342545a7fa2aeabe62063cf97ca9f926f859570865da43 |
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
# Input
from signals.aux_functions import gaussian_bump
from inputs.sensors import Sensor, PerceptualSpace
from inputs.lag_structure import LagStructure
# nexa
from nexa.nexa import Nexa
# Visualization libraries
from visualization.sensor_clus... | h-mayorquin/time_series_basic | parameter_exploration/parameter_swep.py | Python | bsd-3-clause | 6,887 | [
"Gaussian"
] | ab92b454b17bbcdd43f4eb9de117bc20da10b9be6e4964b77042e759ac228b1c |
from paraview.simple import *
import glob
import re
#liste = glob.glob('/home/bruno/CFDEM/bruno-PUBLIC-2.2.1/runv2-6/particle_only/loadingSquare/post/cylinder*.vtk')
liste = glob.glob('./post/couette*.vtk')
#liste.sort()
def natural_sort(l):
convert = lambda text: int(text) if text.isdigit() else text.lower() ... | blaisb/cfdemUtilities | paraview/couetteParticles.py | Python | lgpl-3.0 | 2,318 | [
"ParaView",
"VTK"
] | 3eef35a793f00378f8afb759211c59de4029afce6571f2bfb905e36f9ecd39e0 |
#!/usr/bin/env python
import fileinput
import sys
import os
import re
import math
import json
import numpy as np
import subprocess
from optparse import OptionParser
# These kernels have guaranteed correct Jacobians
whitelisted_kernels = ['Diffusion', 'TimeDerivative']
# regular expressions to parse the PETSc debug... | jhbradley/moose | python/jacobiandebug/analyzejacobian.py | Python | lgpl-2.1 | 12,369 | [
"MOOSE"
] | 40b5ad1a1bf2fbd9dd9bd477bc4b95961848960166a35a8f89e334be2d8d3a26 |
#: cX:decorator:compromise:CoffeeShop.py
# Coffee example with a compromise of basic
# combinations and decorators
class DrinkComponent:
def getDescription(self):
return self.__class__.__name__
def getTotalCost(self):
return self.__class__.cost
class Espresso(DrinkComponent):
cost = 0.75
class Espresso... | tapomayukh/projects_in_python | sandbox_tapo/src/refs/TIPython/code/cX/decorator/compromise/CoffeeShop.py | Python | mit | 1,746 | [
"ESPResSo"
] | 28e8b5c75ac1a127eade8ba3ea5423b39dcd9b0b20117212390d220b83b0c5c8 |
# -*- coding: utf-8 -*-
"""Vendorized, partial version of scipy.constants which does not implement the
full codata formulations.
This was implemented to provide a consistent set of constants across scipy
versions; and to prevent the tests from failing when new CODATA formulations
come out.
"""
import math as _math
#... | CalebBell/fluids | fluids/constants/constants.py | Python | mit | 4,181 | [
"Avogadro"
] | c6030e45da9ac1b7d7d77d2747516eb8ffa931513e7355413a76ec372cef7af1 |
"""
A setuptools based setup module. This file originally came from
https://github.com/pypa/sampleproject/blob/master/setup.py
See these pages for more details:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
To use this file to install this project as an e... | carlsapp/RepoTemplate | Python/setup.py | Python | lgpl-3.0 | 6,761 | [
"VisIt"
] | 08a7fe143881c59f8891c4c7688ba71e7c62c666ffc4abf252cee13b50cc5dd0 |
#######################################################################################
# Python-code: SAINT pre-processing from MaxQuant "Samples Report" output
# Author: Brent Kuenzi
#######################################################################################
# This program reads in a raw MaxQuant "Sam... | bornea/APOSTL | SAINT_preprocessing/SAINT_preprocessing_v6_mq_pep.py | Python | gpl-2.0 | 9,916 | [
"Galaxy"
] | c969135747f6893dec7e1253b31793e6410ae982a531a594243133ad4fcf6f1a |
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2016 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the h... | stgraber/snapcraft | snapcraft/plugins/gulp.py | Python | gpl-3.0 | 3,643 | [
"GULP"
] | 9830f04ceca4d8d645872ddd3c58e86f46e0f8689ef7c73c4e561f3321862657 |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | vinodpanicker/scancode-toolkit | src/commoncode/filetype.py | Python | apache-2.0 | 7,643 | [
"VisIt"
] | 2c1fc5eede266e5bca6bc8632a1f6245a6be9f3feacb2c8cd0ecba2f5cb169d2 |
"""
Petrophysically guided inversion (PGI): Linear example
======================================================
We do a comparison between the classic Tikhonov inversion
and our formulation of a petrophysically constrained inversion.
We explore it through the UBC linear example.
"""
#####################
# Tikhono... | simpeg/simpeg | examples/10-pgi/plot_inv_0_PGI_Linear_1D.py | Python | mit | 4,423 | [
"Gaussian"
] | e80dd7cbc3318b0b0f040d35269b0b74e14b0922d79454e957633779ad5862a4 |
import neuroelectro.models as m
__author__ = 'shreejoy'
def update_data_table_stat(data_table_object):
"""adds intermediate fields to data table stat object based on concept map objects associated
with data table"""
data_table_stat = m.DataTableStat.objects.get_or_create(data_table = data_table_... | neuroelectro/neuroelectro_org | db_functions/update_data_table_stats.py | Python | gpl-2.0 | 2,245 | [
"NEURON"
] | e830493beb130315d002a603b8c5c8a17684e96474d4e89ce3588866223b2197 |
# !usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2017-06-12 18:20:03
# @Last modified by: Brian Cherinka
# @Last Modified time: 2017-07-05 14:22:58
from __future__ import print_function, division, absolute_import
from marvin import confi... | sdss/marvin | tests/misc/test_misc.py | Python | bsd-3-clause | 895 | [
"Brian",
"Galaxy"
] | 864b684f8cb1fe3eddd0b0f05726b588e419268a10618db0d6b2dfc231ababe8 |
import os
import unittest
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
import numpy as np
from spglib import (get_ir_reciprocal_mesh,
get_stabilized_reciprocal_mesh,
get_symmetry_dataset)
from vasp import read_vasp
data_dir = os.path.dir... | jochym/spglib | python/test/test_reciprocal_mesh.py | Python | bsd-3-clause | 7,402 | [
"VASP"
] | 39a2198e40d40e152b2ef42536c083420a550ee901cfccecd7173c17b674dd7f |
from __future__ import (absolute_import, division, print_function)
import os
import sys
import netCDF4
import ruamel.yaml as yaml
from six import raise_from
from docopt import docopt
__all__ = [
'main',
'build'
]
__doc__ = """
Generate ncml based on a yaml file.
Usage:
yaml2ncml INFILE [--output=O... | ocefpaf/yaml2ncml | yaml2ncml/yaml2ncml.py | Python | mit | 8,605 | [
"NetCDF"
] | 06a61d9b087b2ff67419f923182aeb141c803e59d60d5d859bea1628645ab587 |
"""
Setup Pylp.
Copyright (C) 2017 The Pylp Authors.
This file is under the MIT License.
"""
from setuptools import setup, find_packages
from pylp import __version__ as version
setup(
name = "pylp",
version = version,
author = "Guillaume Gonnet",
author_email = "gonnet.guillaume97@gmail.com",
description = "... | pylp/pylp | setup.py | Python | mit | 1,014 | [
"GULP"
] | 8b605b7360f6766975fe59f0eb6e304b46f61b0b5087d2fd6082b4fa5ef887e2 |
#
# @file TestSBase.py
# @brief SBase unit tests
#
# @author Akiya Jouraku (Python conversion)
# @author Ben Bornstein
#
# $Id$
# $HeadURL$
#
# ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ======
#
# DO NOT EDIT THIS FILE.
#
# This file was generated automatically by converting the fil... | alexholehouse/SBMLIntegrator | libsbml-5.0.0/src/bindings/python/test/sbml/TestSBase.py | Python | gpl-3.0 | 60,557 | [
"VisIt"
] | 85bd37fb9491d506e9e8673753796e110592856e7364876c0fa29ca4b7c3486b |
#!/usr/bin/env python
#pylint: disable=missing-docstring
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#... | harterj/moose | python/parameters/test/test_Parameter.py | Python | lgpl-2.1 | 10,414 | [
"MOOSE"
] | 1583e514367d1e6627cdfc6ad7ad13c986380571189c20d4ee8209fafbf1dfc1 |
# pylint: disable=missing-docstring
# pylint: disable=no-member
import datetime
import os
import pytz
from django.conf import settings
from lettuce import step, world
from mock import patch
from pytz import UTC
from splinter.exceptions import ElementDoesNotExist
from common import visit_scenario_item
from courseware.... | ahmedaljazzar/edx-platform | lms/djangoapps/courseware/features/lti.py | Python | agpl-3.0 | 12,199 | [
"VisIt"
] | 60e4c95ab4dfa03ae8a8a5b3bca8b146e1ff633210022b85fec4ec1ab0d5d215 |
#!/usr/bin/env python
import vtk
def main():
colors = vtk.vtkNamedColors()
lines = vtk.vtkLineSource()
# Create two points, P0 and P1
p0 = [1.0, 0.0, 0.0]
p1 = [5.0, 0.0, 0.0]
lines.SetResolution(11)
lines.SetPoint1(p0)
lines.SetPoint2(p1)
lines.Update()
mapper = vtk.vtkPoly... | lorensen/VTKExamples | src/Python/Rendering/StippledLine.py | Python | apache-2.0 | 2,771 | [
"VTK"
] | 0ec2a3f3007c7eb21584b9b79b4edcccd8aa0f5f214084fb9dea0e812c9c04a6 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# EHS (20 March 2013): This is the list of general functions.
# The list is continuation from Rens's and Dominik's.
import shutil
import subprocess
import datetime
import random
import os
import gc
import re
import math
import sys
import types
import net... | edwinkost/edwin_simple_tools | netcdf_to_pcraster/virtualOS.py | Python | gpl-2.0 | 59,924 | [
"NetCDF"
] | 69d45ccdff610b741bab2e7f3ed858c57c3943c195ff6760e707e5ab89d8d4fe |
from director import asynctaskqueue as atq
from director import segmentation
from director import visualization as vis
import director.objectmodel as om
from director import propertyset
from director import pointpicker
from director import planplayback
from director.timercallback import TimerCallback
from director.simp... | patmarion/director | src/python/director/tasks/robottasks.py | Python | bsd-3-clause | 42,912 | [
"VTK"
] | ebb08f08eadfdb58dc72a51aeae36caebbaa182cd756f3c9bfe5abb81122e622 |
#!/usr/bin/env python
'''
Input a XC functional which was not implemented in pyscf.
See also
* The definition of define_xc_ function in pyscf/dft/libxc.py
* pyscf/dft/libxc.py for API of function eval_xc;
* dft.numint.NumInt class for its methods eval_xc, hybrid_coeff and _xc_type.
These methods controls the XC fun... | gkc1000/pyscf | examples/dft/24-define_xc_functional.py | Python | apache-2.0 | 1,864 | [
"PySCF"
] | b11d352174c4be3e9408095ed6df91dbbc5f0ed6ce1738c96458d0e3e00bc947 |
# -*- 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... | jralls/gramps | gramps/plugins/webreport/family.py | Python | gpl-2.0 | 17,649 | [
"Brian"
] | cb938532f3568714a2fd14de0b6507398946ef6bba36a22ff16b1f338a69ad73 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Simple test file to load voxel data.
"""
import re
import os
import numpy
def read_itk_metaimage(filename, order=[2, 1, 0]):
"""
Read voxel data saved as a pair of .mhd/.raw files.
Assume the binary data is stored as uint8.
Additional documentation:
... | jdumas/geotools | voxmesh/visualize.py | Python | gpl-3.0 | 2,120 | [
"Mayavi"
] | 387ef27e9934c33f63946a1ae53129cffeb5b2a48b55522b33b1638ca4d13090 |
"""
This script computes projected correlation function from given files of
galalxy and random catalgues
python3 compute_corr_projected.py
Args:
n: index of lightcone
Options:
--igalaxies=1:1
--irandoms=1:1
Input:
mocks/mock_<n>.txt
randoms/random_<n>.txt
File format is:
x y z
i... | junkoda/mockgallib | script/compute_corr_projected.py | Python | gpl-3.0 | 3,057 | [
"Galaxy"
] | e8f9675438e45557e3d3063c8559262426da43fedfad8ed22aa6cac350fc4fc2 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Rackspace
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of t... | sileht/deb-openstack-nova | nova/tests/network/test_manager.py | Python | apache-2.0 | 72,549 | [
"FEFF"
] | fc7adf3351b5726d79fad4f165024a3b8c4f76388539b95f1bb4aad60616e970 |
__author__ = "Amaral LAN"
__copyright__ = "Copyright 2017-2018, Amaral LAN"
__credits__ = ["Amaral LAN"]
__license__ = "GPL"
__version__ = "1.1"
__maintainer__ = "Amaral LAN"
__email__ = "amaral@northwestern.edu"
__status__ = "Production"
from bs4 import BeautifulSoup
from splinter import Browser
import pymongo
from ... | lamaral1968/maintaining_latex_cv | scrape_doi.py | Python | mit | 4,816 | [
"VisIt"
] | 0986f9917465f93195cbd63afa7298ae20995bf9f0cef509d8f6cedca9706fc9 |
# -*- coding: utf-8 -*-
# Vahid Moosavi 2014 10 23 9:04 pm
#sevamoo@gmail.com
#Chair For Computer Aided Architectural Design, ETH Zurich
# Future Cities Lab
#www.vahidmoosavi.com
import numpy as np
from matplotlib import pyplot as plt
import matplotlib.gridspec as gridspec
import numexpr as ne
from time import time... | sniemi/EuclidVisibleInstrument | sandbox/SOMPY.py | Python | bsd-2-clause | 41,421 | [
"Gaussian"
] | d6c7c3723c9c63a8260d005a760ae540266a10ae782cf86171d0de0acd978d9f |
# from the Python Standard Library
import os, re, socket, sys, subprocess
# from Twisted
from twisted.internet import defer, threads, reactor
from twisted.internet.protocol import DatagramProtocol
from twisted.python.procutils import which
from twisted.python import log
try:
import resource
def increase_rlimi... | drewp/tahoe-lafs | src/allmydata/util/iputil.py | Python | gpl-2.0 | 9,668 | [
"Brian"
] | 5a0de7e4228e40fbe5420b1006eb15a87b3211582cdc4ecaa4946ab45bdb316d |
# Orca
#
# Copyright 2005-2009 Sun Microsystems Inc.
#
# 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... | h4ck3rm1k3/orca-sonar | src/orca/speech_generator.py | Python | lgpl-2.1 | 74,935 | [
"ORCA"
] | 7354eadaff2365e72a5aa8133f57b0b61b1e1501bb09abf4fca460f94d4d494d |
# Copyright 2022 the GPflow authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | GPflow/GPflow | tests/gpflow/models/test_vgp.py | Python | apache-2.0 | 1,991 | [
"Gaussian"
] | b6ae1c9a69267ede599cd4e928840ec20cc2b954c8e0790707fd083e608f3dee |
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import unittest
from telemetry import decorators
from telemetry.core import util
from core import find_dependencies
class FindDependenciesTest(... | chromium/chromium | tools/perf/core/find_dependencies_unittest.py | Python | bsd-3-clause | 2,010 | [
"MOOSE"
] | 59d04bc3e366849d95df9e603ff08ddb5425b3152ce6f4c3532d1ec7eedfe0e6 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2019 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | CDSherrill/psi4 | psi4/driver/procrouting/sapt/sapt_util.py | Python | lgpl-3.0 | 6,071 | [
"Psi4"
] | 8ae0dd1d8928dcd2ae5b5b8f3358595888cfc7a7c5d7b3c68f02903e41ceba2b |
# pywws - Python software for USB Wireless Weather Stations
# http://github.com/jim-easterbrook/pywws
# Copyright (C) 2018 pywws contributors
# 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; ei... | 3v1n0/pywws | src/pywws/service/openweathermap.py | Python | gpl-2.0 | 8,542 | [
"VisIt"
] | 6fe38a1ad2223c71eb97933ba81c7fc2c689ee2830fb7780c4a1162e80c205c0 |
"""Example implementation of using a marshmallow Schema for both request input
and output with a `use_schema` decorator.
Run the app:
$ python examples/schema_example.py
Try the following with httpie (a cURL-like utility, http://httpie.org):
$ pip install httpie
$ http GET :5001/users/
$ http GET :50... | Basis/webargs | examples/schema_example.py | Python | mit | 3,583 | [
"Brian"
] | ed39a6955109eba558ca00e6a35a0159c336a049f8bb99ce37b97f670d04acc4 |
from dateutil.relativedelta import relativedelta
from django.test import TestCase, tag
from edc_appointment.models import Appointment
from edc_base import get_utcnow
from edc_facility.import_holidays import import_holidays
from edc_visit_schedule.site_visit_schedules import site_visit_schedules
from ..constants import... | botswana-harvard/edc-visit-tracking | edc_visit_tracking/tests/test_visit_sequence.py | Python | gpl-2.0 | 3,499 | [
"VisIt"
] | bb2c0b5bd144f535502a4e9d2404c2d270b95dc806328d3861771679a9ad9d62 |
""" WMSHistory corrector for the group and ingroup shares
"""
__RCSID__ = "$Id$"
import datetime
import time as nativetime
from DIRAC import gLogger, S_OK, S_ERROR
from DIRAC.WorkloadManagementSystem.private.correctors.BaseCorrector import BaseCorrector
from DIRAC.Core.Utilities import Time
from DIRAC.AccountingSys... | vmendez/DIRAC | WorkloadManagementSystem/private/correctors/WMSHistoryCorrector.py | Python | gpl-3.0 | 9,228 | [
"DIRAC"
] | dc2b4983e0c033e5ea8062053105302e5125b3f71df26f91f250659edd29438d |
# 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)
import glob
import os
from spack import *
class SspaceStandard(Package):
"""SSPACE standard is a stand-alone progra... | LLNL/spack | var/spack/repos/builtin/packages/sspace-standard/package.py | Python | lgpl-2.1 | 2,017 | [
"BWA",
"Bowtie"
] | 7a9dd9f7aade51773ae5ec11ef35a9445f5e1da432b7cd4ff64e4743f3728460 |
from __future__ import (absolute_import, division, print_function)
import unittest
from paraview.simple import *
class PVPythonTest(unittest.TestCase):
def test_PVPython(self):
self.assertEqual(GetParaViewVersion().major, 5)
if __name__ == '__main__':
unittest.main()
| ScreamingUdder/mantid | Framework/PythonInterface/test/python/mantid/PVPythonTest.py | Python | gpl-3.0 | 288 | [
"ParaView"
] | 4a3d2d69b96ff6f80e5370d5cc7a1d8d9a95b102b612d870842ea1f32b173f3f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.