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 |
|---|---|---|---|---|---|---|---|
from redbot.core import commands
from redbot.core.bot import Red
import tracemoepy
from tracemoepy.errors import EmptyImage, EntityTooLarge, ServerError, TooManyRequests
import logging
def messageBuilder(titleEnglish: str, anilistID: str, episode: str, similarity: int):
"""Builds the message that is sent in respo... | ARG-TLQ/Red-DiscordBot | cogs/source/source.py | Python | gpl-3.0 | 3,759 | [
"MOE"
] | 9750314e08caddf082ebd64a413acc95a42077e2939624dca815f505e9dea421 |
../../../../../../../share/pyshared/orca/scripts/apps/gnome-window-properties/formatting.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/gnome-window-properties/formatting.py | Python | gpl-3.0 | 91 | [
"ORCA"
] | c43d058381a22556096b0ff9d70feae95f361b322fd660054bf94740ace19796 |
# -*- coding: utf-8 -*-
# @Author: Zachary Priddy
# @Date: 2016-10-13 00:36:33
# @Last Modified by: Zachary Priddy
# @Last Modified time: 2016-10-13 02:56:55
import difflib
import json
import logging
from core import ffCommand
from core.database.device_db import getDeviceList
from core.database.routine_db import ... | zpriddy/Firefly | Firefly/core/api/alexa.py | Python | apache-2.0 | 4,263 | [
"Firefly"
] | 0d72cee68eb2a58bf06af060325ee3503ffc643a9b8d2738b9f6689f926bb0a1 |
# -*- coding: utf-8 -*-
from __future__ import print_function
"""CLI scripts."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import argparse
import os
import os.path as op
import glob
import ... | bollwyvl/ipymd | ipymd/core/scripts.py | Python | bsd-3-clause | 5,954 | [
"VisIt"
] | f320b427af0693a5f0a8fa32324ee89ef7508bcb5e1567c7eb89ee1efbeafa88 |
"""
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... | joegomes/deepchem | deepchem/utils/save.py | Python | mit | 5,030 | [
"RDKit"
] | e32937be05365f526403b6f94d3c0797a87b7c4ff3ea0ef72f863ed78b505eb0 |
# encoding: utf-8
"""
Facilities for launching IPython processes asynchronously.
Authors:
* Brian Granger
* MinRK
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full ... | cloud9ers/gurumate | environment/lib/python2.7/site-packages/IPython/parallel/apps/launcher.py | Python | lgpl-3.0 | 47,189 | [
"Brian"
] | 0d7806dfecbecd8d548ba3797700360004b70fab80ed5949c08080d858797f65 |
#!/usr/bin/env python
"""File: utils.py
Module defining classes and functions that may come in handy throughout the
package
"""
# Copyright 2015 Daniel Wennberg
#
# 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 cop... | danielwe/gridcell | gridcell/utils.py | Python | apache-2.0 | 27,950 | [
"Gaussian"
] | 55866f5bcce3861daa3257d732b8d42a959faece1ea79782a4810f2712cea38f |
#!/bin/python
import requests
from bs4 import BeautifulSoup
from urllib.parse import urlencode, parse_qs
def get_endpoints(url):
r = requests.get(url)
soup = BeautifulSoup(r.text)
return [
soup.find(None, attrs={'rel': rel})['href']
for rel in ('authorization_endpoint', 'token_endpoint',... | kylewm/feverdream | scripts/do_get_micropub_access_token.py | Python | bsd-2-clause | 1,030 | [
"VisIt"
] | 48c96e6118d77366e5bfda500b236b76665437db215c49c1789367a02dc45092 |
# LAMMPS Documentation Utilities
#
# Copyright (C) 2015 Richard Berger
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... | ovilab/atomify-lammps | libs/lammps/doc/utils/converters/lammpsdoc/lammps_filters.py | Python | gpl-3.0 | 4,413 | [
"LAMMPS"
] | e205911ee4c51ec727db0d59c3a340142a034477634ca416b5288c0a87afd975 |
#!/usr/bin/env python
################################################################################
#
# qnex_combine.py
#
# QE NEXAFS post-processor.
#
################################################################################
#
# Copyright 2015 Kane O'Donnell
#
# This library is free software: you can red... | kaneod/physics | python/qnex_combine.py | Python | gpl-3.0 | 20,836 | [
"CRYSTAL",
"Quantum ESPRESSO"
] | dc17d09ffb2800f5e4c5c7327165134ad01bd0dee2b5dafee7ebe8dcbb01fa90 |
""" Utility routines
"""
from __future__ import (print_function, absolute_import, division, unicode_literals)
import numpy as np
import os
import glob
import pdb
from matplotlib import pyplot as plt
from astropy.table import Table
from astropy.io import fits
from xastropy.xutils import xdebug as xdb
from cosredux ... | PYPIT/COS_REDUX | cosredux/darks.py | Python | bsd-2-clause | 17,883 | [
"VisIt"
] | edd530f5065292949e04b8c34c5cd94c93863fbe87290a201d1d5bffd345c4c4 |
# Copied from LMC documentation
# Modified to use MPI, to increase the parameter degeneracy, and to disperse the start points
# Here is a simple example. As shown it will run in non-parallel mode; comments indicate what to do for parallelization.
from lmc import *
## for MPI
from mpi4py import MPI
mpi_rank = MPI.COMM... | drphilmarshall/StatisticalMethods | lessons/graphics/parallel_chain_fit.py | Python | gpl-2.0 | 3,270 | [
"Gaussian"
] | 5a0f0aca2b1223c5d4209aaa71743d4f78e4fce7c0482ce3f763b0998f187009 |
#
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | intel-analytics/analytics-zoo | pyzoo/zoo/chronos/data/experimental/xshards_tsdataset.py | Python | apache-2.0 | 8,833 | [
"ORCA"
] | f389cd76d47072b85854d0fdabcc0fa8d4fb55e956fa1c7812c1f2ce75baa574 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import Numeric as num
from gpaw import GPAW
from gpaw.spherical_harmonics import Y
a = 6.0
c = a / 2
d = 1.13
paw = GPAW('co.gpw', txt=None)
import pylab as p
dpi = 2*80
p.figure(figsize=(4, 3), dpi=dpi)
p.axes([0.15, 0.15, 0.8, 0.8])
import sys
if len(sys.argv) == 1:
... | qsnake/gpaw | doc/co_wavefunctions.py | Python | gpl-3.0 | 1,943 | [
"GPAW"
] | 484a789a19028a7dcacd77aa721d2d7a0fa4a873e43e9007ff26cf7cd7aa0c83 |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | gkc1000/pyscf | pyscf/hci/hci.py | Python | apache-2.0 | 30,560 | [
"PySCF"
] | 38b52264718b05d7c555dccb61041a94817e46523b8d17a4efbd89b14bf24bd7 |
# -*- coding: utf-8 -*-
#
# hl_api_spatial.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST 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,... | alberto-antonietti/nest-simulator | pynest/nest/lib/hl_api_spatial.py | Python | gpl-2.0 | 44,262 | [
"NEURON"
] | cad22e638e1f14f5c0018c383dcd6da356cfec0b12ac08f919e79e7ead82fb07 |
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2018, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
"""
Parser for 'A D F' Calculations
######################################
This module provides the main parser (user facing) for parsing 'A D F' output
files. Although there are som... | avmarchenko/exatomic | exatomic/adf/adf/output.py | Python | apache-2.0 | 1,054 | [
"ADF"
] | 5fe7a91d941ed7c9a8c92247a9af94186394a436447ddb34b6125fce9b982d0b |
# coding=utf-8
# Copyright 2022 RigL 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 agree... | google-research/rigl | rigl/experimental/jax/random_mask_test.py | Python | apache-2.0 | 3,677 | [
"NEURON"
] | 78b02ee4f7d32eb2fbec2f4966b114628ac7ab5e3cc84dd6bceb9a560bd4fb16 |
"""Processing of implementation manifests.
A manifest is a string representing a directory tree, with the property
that two trees will generate identical manifest strings if and only if:
- They have extactly the same set of files, directories and symlinks.
- For each pair of corresponding directories in the two se... | linuxmidhun/0install | zeroinstall/zerostore/manifest.py | Python | lgpl-2.1 | 19,771 | [
"VisIt"
] | 5f218525e583c13e356e147a8a5b4b77fea7250482012fd1a9580fc676482d39 |
import os
import math
import unittest
from cosmic.Cosmic import Cosmic
import matplotlib.pyplot as plt
from util import FileName
from interval import interval, inf, imath
import inspect
import numpy as np
import pylab as P
from util import hgPlot
from scipy import optimize
from scipy.optimize import curve_fit
from scip... | bmazin/ARCONS-pipeline | cosmic/test/TestExpon.py | Python | gpl-2.0 | 15,529 | [
"Gaussian"
] | e6f754587c8720fb4a8b5647f87d8d0d2415939594ae58ccf6b7750851fdcae5 |
# Copyright 2012, Nachi Ueno, NTT MCL, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | igor-toga/local-snat | neutron/tests/unit/agent/linux/test_iptables_firewall.py | Python | apache-2.0 | 86,232 | [
"FEFF"
] | c08a5f58ab0b7621cf80803a55166d5e2899c8f5c8bd3146fe82b19908b92ece |
from gotmtext import *
from netcdf import *
from hdf4 import *
def open(paths):
store = None
try:
store = xmlplot.data.NetCDFStore.loadUnknownConvention(paths)
except xmlplot.data.NetCDFError,e:
try:
store = xmlplot.data.HDF4Store(paths)
except:
raise e
r... | BoldingBruggeman/gotm | gui.py/xmlplot/data/__init__.py | Python | gpl-2.0 | 332 | [
"NetCDF"
] | 318a019a67cc4f6c74d932f1328c1979636775215b22311a0bccf569c667616a |
import sys, time, threading, os
from DIRAC import gLogger
from DIRAC import S_OK, S_ERROR, gConfig, gLogger, gMonitor, rootPath
from DIRAC.ConfigurationSystem.Client import PathFinder
from DIRAC.FrameworkSystem.Client.MonitoringClient import MonitoringClient
from DIRAC.Core.Utilities.Shifter import setupShifterProxyInE... | sposs/DIRAC | Core/Base/ExecutorModule.py | Python | gpl-3.0 | 7,140 | [
"DIRAC"
] | b07b8c1d0f72e5e13d2cdf937271e870d24171a7438093c323ec12fb62d498e8 |
from ase import Atom, Atoms
import numpy as np
_mc_err = "Cannot access the position(s) and atomic_number(s) attribute of MC optimized atoms."
class MC_Atom(Atom):
"""A single atom in a Monte Carlo optimized Atoms object."""
#__slots__ = Atom.__slots__
def get_position(self):
p = self.get('p... | auag92/n2dm | Asap-3.8.4/Python/asap3/Internal/MonteCarloAtoms.py | Python | mit | 2,438 | [
"ASE"
] | bc65c3b0cc62b1c3a436832c497b8236e8dcf8053022de5cfc0a484b31b03c22 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import os.path as op
import sys
import numpy as np
from string import Template
from colorama import init, Fore, Back, Style
import pysam
def run_ase(dirw, ilist, olist, jobpre, diro,
paired, f_fas, target_vcf, gene_bed,
samtools, bcftools, paral... | orionzhou/robin | old/rnaseq.ase.py | Python | gpl-2.0 | 12,783 | [
"ASE",
"pysam"
] | fcf44fab6dbca8961a0f88299b1eda45300ff35994a1cb6d698b1e977960f58d |
# -*- coding: utf-8 -*-
# MolMod is a collection of molecular modelling tools for python.
# Copyright (C) 2007 - 2019 Toon Verstraelen <Toon.Verstraelen@UGent.be>, Center
# for Molecular Modeling (CMM), Ghent University, Ghent, Belgium; all rights
# reserved unless otherwise stated.
#
# This file is part of MolMod.
#
#... | molmod/molmod | molmod/io/cml.py | Python | gpl-3.0 | 8,340 | [
"VisIt"
] | 6aa0eaa54a819972e11effeb6181c302f65a461f9c0a08e3768a6a8f7943f0ec |
"""Install or upgrade a bcbio-nextgen installation.
"""
from __future__ import print_function
import os
import subprocess
import sys
import yaml
from bcbiovm.docker import manage, mounts
DEFAULT_IMAGE = "quay.io/bcbio/bcbio-vc"
def full(args, dockerconf):
"""Full installaction of docker image and data.
"""... | chapmanb/bcbio-nextgen-vm | bcbiovm/docker/install.py | Python | mit | 6,208 | [
"Bioconda",
"Galaxy"
] | c510a89401050af83d5c5eec34c0f58cb4f6f3732d28afe3b835a28d0778cd0e |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# graph_tool -- a general graph manipulation python module
#
# Copyright (C) 2006-2015 Tiago de Paula Peixoto <tiago@skewed.de>
#
# 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... | johankaito/fufuka | graph-tool/src/graph_tool/community/blockmodel.py | Python | apache-2.0 | 122,072 | [
"Brian"
] | 951ac81928ef4a807eef2e0effe57c30cef18be0ec39761d5f98c9c6334824f2 |
# -*- coding: utf-8 -*-
###################################################
## Definitions of the different midi events
###################################################
## Midi channel events (The most usual events)
## also called "Channel Voice Messages" or "Voice Category messages" (ie, Status is 0x80 t... | maxmcorp/mxm.midifile | mxm/midifile/src/constants.py | Python | mit | 10,154 | [
"CRYSTAL"
] | 00a4b952b817ca389b5c2aac4c6208ef72ae8ddfdd98808f5c50f47bf2b40051 |
# -*- coding: utf-8; Mode: Python; indent-tabs-mode: nil; tab-width: 4 -*-
# Copyright (C) 2006, 2007, 2008 Canonical Ltd.
# Written by Colin Watson <cjwatson@ubuntu.com>.
#
# 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
# t... | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/ubiquity/plugins/ubi-partman.py | Python | gpl-3.0 | 130,306 | [
"VisIt"
] | c39884a77bc2eba31a33b066eb30aa13addcc38cda951c6998c16904dde8e033 |
# -*- coding: utf-8 -*-
import os
from pathlib import Path
from pybel import BELGraph, Manager
from pybel.constants import ANNOTATIONS
from pybel.resources import HGNC_URL
from pybel.testing.cases import TemporaryCacheClsMixin
from pybel.testing.constants import belns_dir_path
from pybel.testing.mocks import mock_bel... | pybel/pybel | tests/test_manager/test_manager_definitions.py | Python | mit | 4,462 | [
"Pybel"
] | 7d3ff3a96eb973ee1b8065dba5716198f04123f173d8fc12704a475979164e7b |
#!/usr/bin/env python
import argparse
import os
import time
import subprocess
from functools import partial
from breakseq_pre import print_candidate_reads
import logging
import multiprocessing
import traceback
import shutil
def add_options(main_parser):
local_parser = main_parser.add_argument_group("Read alignme... | bioinform/breakseq2 | breakseq2/preprocess_and_align.py | Python | bsd-2-clause | 4,754 | [
"BWA"
] | 510cc8d7113b0dc6b35167038a0d926fc1af47707fc0e33cebabf67a08b30352 |
# $Id$
from module_base import ModuleBase
from module_mixins import FilenameViewModuleMixin
import module_utils
import vtk
class cptBrepWRT(FilenameViewModuleMixin, ModuleBase):
def __init__(self, module_manager):
# call parent constructor
ModuleBase.__init__(self, module_manager)
self... | nagyistoce/devide | modules/writers/cptBrepWRT.py | Python | bsd-3-clause | 3,656 | [
"VTK"
] | d599367060f1a7e2bdbcb8287520f68ed33cc69ae21b14bbfa088166632aaf4a |
#!/usr/bin/env python
# Copyright 2004, Magnus Hagdorn
#
# This file is part of GLIMMER.
#
# GLIMMER 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) an... | glimmer-cism/PyCF | progs/construct_field.py | Python | gpl-2.0 | 6,377 | [
"NetCDF"
] | d26ad43afbf7371ff0f0bf5e5fbbda81402b0e87f91f53f2e31e0116e1c9a89c |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | sunqm/pyscf | pyscf/grad/rohf.py | Python | apache-2.0 | 2,869 | [
"PySCF"
] | 52f4d484e74d4fd06e3c11214e294723dc7160fb8753a45d2f86785574e84d4f |
# -*- coding: utf-8 -*-
import logging
import copy
import ntpath
import egads
import os
from PyQt5 import QtWidgets, QtCore, QtGui
from Ui_mainwindow import Ui_MainWindow
from functions.metadata_window_functions import MyGlobalAttributes
from functions.metadata_window_functions import MyVariableAttributes
from functio... | eufarn7sp/egads-gui | ui/mainwindow.py | Python | gpl-3.0 | 35,283 | [
"NetCDF"
] | a9c5399c492dcc6c79144e0cd9071b82916899b41a00fe159424542ad77e0dd0 |
#!/usr/bin/python3
########################################################################
# Solves Google CodeJam 2009 Qualification Round's problem A
# Copyright (C) 2011 Santiago Alessandri
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pub... | sanSS/programming-contests | codejam/2009/Qualification/B.py | Python | gpl-3.0 | 2,749 | [
"VisIt"
] | 4c25c3a29caaa261961f5dd1780799f6528247b28f13bfe044a00d72535c4909 |
# -*- coding: latin-1 -*-
"""
Hydrogen Models
---------------
Hydrogen in HII regions is typically assumed to follow Case B recombination
theory.
The values for the Case B recombination coefficients are given by `Hummer &
Storey (1987)
<http://adsabs.harvard.edu/cgi-bin/nph-bib_query?bibcode=1987MNRAS.224..801H&db_ke... | keflavich/pyspeckit-obsolete | pyspeckit/spectrum/models/hydrogen.py | Python | mit | 10,722 | [
"Gaussian"
] | d32eb80506a8f1e6cc8227412b4c45fed7937781abcec2eab82114ab24b797a0 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/plugins/alerts/forms/alertform.py | Python | gpl-2.0 | 10,022 | [
"Brian"
] | 4ddef75eb54855715c8b16f38eccfde2b39826476bd519d77882aa825379ecd8 |
## To Do:
## Test, test, test (in particular, check div - can't tell if output is correct)
## More descriptive description and use correct terminology
## Disable UI when calculating
## Assuming UnstructuredGrid (input and saving) - make this general
## Only works with PointData at present
## Nicer to check ALL precondi... | FluidityProject/multifluids | mayavi/mayavi_amcg/filters/field_operations.py | Python | lgpl-2.1 | 16,309 | [
"Mayavi"
] | 103e4a10a0a60fe62c170fe809167dd849ea02bd6514f3e379b72ee60fbcdc74 |
#! /usr/bin/env python
#
# Copyright (C) 2011-2014 Alexandre Gramfort
# Michael Waskom
# Scott Burns
# Martin Luessi
# Eric Larson
import os
from setuptools import setup
descr = """PySurfer: cortical surface visualization ... | nipy/PySurfer | setup.py | Python | bsd-3-clause | 2,693 | [
"Mayavi"
] | 3ef61ae72ba6bf8c2eb930af94dff8586868a125d3bce6c39b6b00f9de21af3e |
# $Id$
#
# Copyright (C) 2001-2006 greg Landrum and Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
""" periodic table data... | rvianello/rdkit | rdkit/Chem/PeriodicTable.py | Python | bsd-3-clause | 5,775 | [
"RDKit"
] | e8d8f3978aae4cfc392edcca1bb8e9ee80d1f9c7eae6223fb08f41ddd4dc7160 |
# Blender rock creation tool
#
# Based on BlenderGuru's asteroid tutorial and personal experimentation.
# Tutorial: http://www.blenderguru.com/how-to-make-a-realistic-asteroid/
# Update with another tutorial shared by "rusted" of BlenderArtists:
# Tutorial: http://saschahenrichs.blogspot.com/2010/03/3dsmax-environm... | Microvellum/Fluid-Designer | win64-vc/2.78/Python/bin/2.78/scripts/addons_contrib/add_mesh_rocks/rockgen.py | Python | gpl-3.0 | 69,264 | [
"Gaussian"
] | b3a064852960f0a2f70ade3713b5d3236d22dd1f41ba9e62ad27185423752401 |
import os
import sys
import math
import argparse
import config
import shutil
from turkic.cli import handler, importparser, Command, LoadCommand
from turkic.database import session
import sqlalchemy
import random
from vision import Box
from vision import ffmpeg
import vision.visualize
import vision.track.interpolation
i... | dingnigefei/vatic | cli.py | Python | mit | 45,624 | [
"VisIt"
] | aba0b35617a1696d461ddacc2505a6ca027771db1aa8b139e60c5ad66f161609 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/core/__init__.py | Python | gpl-2.0 | 13,675 | [
"Brian"
] | e8d91618cf069cb3844d079f5dd2ecbd4b1087df3a4a3be245b4bdf7a5df4f79 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import unittest
import os
from pymatgen.core.operations import SymmOp
from pymatgen.core.structure import Molecule
try:
import openbabel as ob
from pymatgen.analysis.molecule_matcher import MoleculeM... | gVallverdu/pymatgen | pymatgen/analysis/tests/test_molecule_matcher.py | Python | mit | 6,203 | [
"pymatgen"
] | 65bb5c43c99ccf868a10498243c7ac2b40673f07d280e39780c9b06d46ddc2ce |
import pandas as pd
import numpy as np
import os.path as op
import operator
from functools import partial
import matplotlib.pyplot as plt
from Bio import pairwise2
try:
from HLAPredCache import hlaPredCache
import statsmodels.api as sm
import palettable
except ImportError:
pass
DATA_FOLDER = op.join(o... | agartland/HIVABlist | HIVABlist.py | Python | mit | 8,837 | [
"ADF"
] | 5daf850df416f03ecfb2328455c1e34df4a93907dd9097d244a272ddf5c33785 |
# Copyright (c) 2012 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.
'''Collections of messages and their translations, called cliques. Also
collections of cliques (uber-cliques).
'''
from __future__ import print_functio... | endlessm/chromium-browser | tools/grit/grit/clique.py | Python | bsd-3-clause | 18,082 | [
"xTB"
] | 7ef34d22c1fad3496d019869692c987e8e942bf2b1afafc68161268fa2c622a7 |
import urllib2, json
url = 'http://localhost:5000/locations'
data = {
'trip_id' : '547735 CTTransit- Meriden',
'locations' :
[
{
'x' : 1,
'y' : 2,
'timestamp' : 'Nov 30 2010 9:20:37AM',
'location_technology' : 'Samsung Galaxy S6'
},
{
'x' : 4,
'y' : 10,
'timestamp' : 'Jun 1 2015 10:00:00... | foss-transportationmodeling/rettina-server | post_test.py | Python | apache-2.0 | 641 | [
"Galaxy"
] | c4fd525df6123d3bae96d8324d1630b203ed59419a997a750fd9d3d90d359a77 |
from __future__ import annotations
import math
import pytest
def test():
from cctbx.sgtbx import space_group, space_group_symbols
from dxtbx.model.experiment_list import Experiment, ExperimentList
from libtbx.phil import parse
from scitbx.array_family import flex
from dials.algorithms.refinemen... | dials/dials | tests/algorithms/refinement/test_prediction_parameters.py | Python | bsd-3-clause | 6,333 | [
"CRYSTAL"
] | 415b6f0fede2fa4ef2d38e32b2c7721af36855ea94c0ccdea83356cf744a8c2f |
"""
Helpers for creating ChainLinks from standard protocols of objects
Tools of this module allow writing simpler code by reusing functionality
of existing protocol interfaces and builtins. The interface to other `chainlet` objects is automatically
built around the objects. Using protocol interfaces in chains allows t... | maxfischer2781/chainlet | chainlet/protolink.py | Python | mit | 6,314 | [
"Brian"
] | 0d4d552c61afccd3666f2513a05842fe156b3468221aa3c140f30bebb2068ee0 |
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | skosukhin/spack | var/spack/repos/builtin/packages/openbabel/package.py | Python | lgpl-2.1 | 3,330 | [
"Open Babel",
"Pybel"
] | f09482107aa46863d7d1d7d915c9f41d946b82d240e630a28d367df8b7737296 |
import mdtraj as md
import h5py
import westpa
import StringIO
import tempfile
import os
def pcoord_loader(fieldname, pcoord_return_filename, segment, single_point, trajectory, restart):
"""Read progress coordinate data into the ``pcoord`` field on ``destobj``.
An exception will be raised if the data is malfo... | ajoshpratt/westpa | lib/examples/nacl_amb_trajrst/system.py | Python | gpl-3.0 | 1,720 | [
"MDTraj"
] | 0281d3228a37ba3eb457f71b93752712f177dd273e0b5d1bb604989009e66c33 |
#
# Copyright (c) 2017 Intel Corporation
#
# 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... | NervanaSystems/coach | rl_coach/architectures/tensorflow_components/layers.py | Python | apache-2.0 | 10,755 | [
"Gaussian"
] | ab5846c9c72cf009f5d7c50da65a57bef695bfffee128a48c5712f473896acb9 |
../../../../share/pyshared/orca/where_am_I.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/where_am_I.py | Python | gpl-3.0 | 45 | [
"ORCA"
] | 866d7d144d65bd3fc03af3d235e83093e232be1a6517c44f5705135a8608cf5a |
''' Significant lifting from https://jmetzen.github.io/2015-11-27/vae.html '''
import time
import numpy as np
import tensorflow as tf
from tensorflow.python.ops import rnn
import random
import matplotlib.pyplot as plt
import re, string
from sklearn.feature_extraction.text import CountVectorizer
from collections impo... | dricciardelli/vae2vec | def_def_oh.py | Python | mit | 36,658 | [
"Gaussian"
] | bbe8fd3e446ea86f830d7311b2b19941e534e549efbf78b94f50cab631b6840e |
import _testcapi
import codecs
import io
import locale
import sys
import unittest
import warnings
from test import support
if sys.platform == 'win32':
VISTA_OR_LATER = (sys.getwindowsversion().major >= 6)
else:
VISTA_OR_LATER = False
try:
import ctypes
except ImportError:
ctypes = None
SIZEOF_WCH... | firmlyjin/brython | www/tests/unittests/test/test_codecs.py | Python | bsd-3-clause | 92,642 | [
"FEFF"
] | 57190c0f3890603943a5f62cdbe3e25cd4d63476bf175d92d200de322b498239 |
import numpy as np
from sklearn.utils.testing import (assert_allclose, assert_raises,
assert_equal)
from sklearn.neighbors import KernelDensity, KDTree, NearestNeighbors
from sklearn.neighbors.ball_tree import kernel_norm
from sklearn.pipeline import make_pipeline
from sklearn.dataset... | ashhher3/scikit-learn | sklearn/neighbors/tests/test_kde.py | Python | bsd-3-clause | 5,626 | [
"Gaussian"
] | 5a08276d3f61304eecfa2d0f9ec39faa25660758f6521a0bad2956d188f5f334 |
# -*- coding: utf-8 -*-
#! \file ./doit/support/cmd/commands.py
#! \author Jiří Kučera, <sanczes@gmail.com>
#! \stamp 2016-02-14 15:36:02 (UTC+01:00, DST+00:00)
#! \project DoIt!: Tools and Libraries for Building DSLs
#! \license MIT
#! \version 0.0.0
#! \fd... | i386x/doit | doit/support/cmd/commands.py | Python | mit | 104,610 | [
"VisIt"
] | 623080f67614a61b0bda52d91af001b9653a33db12e054dd4b3a9fe5009882b7 |
"""
Migration script to create tables for disk quotas.
"""
from sqlalchemy import *
from sqlalchemy.orm import *
from migrate import *
from migrate.changeset import *
# from galaxy.model.orm.ext.assignmapper import *
# from galaxy.model.custom_types import *
import datetime
now = datetime.datetime.utcnow
import logg... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/model/migrate/versions/0080_quota_tables.py | Python | gpl-3.0 | 4,231 | [
"Galaxy"
] | da3edf7dbd91a95edb01b2015d00f60a3a47af64879c2e73619ef72e4c7f1ec6 |
"""
Data-driven tests for reads
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import collections
import glob
import os
import ga4gh.datamodel as datamodel
import ga4gh.datamodel.datasets as datasets
import ga4gh.datamodel.reads as reads
import ga4gh.... | hjellinek/server | tests/datadriven/test_reads.py | Python | apache-2.0 | 10,357 | [
"pysam"
] | b3f3b708131dbbb8980496309edaaa9a46d15c7c5c944781868d1e0b4af313be |
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import googlemaps
import unittest
import base64
from cartodb_services.google.client_factory import GoogleMapsClientFactory
from cartodb_services.google.exceptions import InvalidGoogleCredentials
class GoogleMapsClientFactoryTestCase(unittest.TestCase):
def setUp(s... | CartoDB/dataservices-api | server/lib/python/cartodb_services/test/test_google_client_factory.py | Python | bsd-3-clause | 2,701 | [
"ASE"
] | 93741db9bd8fb9c9d5242b4016c3abccd8c0cbd5ec23a04eea94921e39a7d8dc |
import sys; import os.path; sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from gaepsi2.cosmology import WMAP7 as cosmology
from bigfile import BigFile
from mpi4py import MPI
from pypm.particlemesh import ParticleMesh
import numpy
from pypm.transfer import TransferFunction
def strain_tensor(Pos, ... | rainwoodman/pmesh | utils/strain.py | Python | gpl-3.0 | 4,214 | [
"Gaussian"
] | 192f0f82fe9032b56c613f2a50a3fca1cbb1a763b554718f53390eb2168037aa |
"""
.. _statsrefmanual:
==========================================
Statistical functions (:mod:`scipy.stats`)
==========================================
.. currentmodule:: scipy.stats
This module contains a large number of probability distributions as
well as a growing library of statistical functions.
Each univari... | aeklant/scipy | scipy/stats/__init__.py | Python | bsd-3-clause | 10,156 | [
"Gaussian"
] | 12aaf3496ace8652d01cf679fe22d78017ae9e3d976c4c8781dabdb900a4ed58 |
from __future__ import print_function
import time
from contextlib import contextmanager
from hmmlearn.hmm import GaussianHMM
@contextmanager
def timed_step(title):
print(title, end="... ", flush=True)
start_time = time.clock()
yield
end_time = time.clock()
print("done in {0:.2f}s".format(end_tim... | sagunb/hmmlearn | bench/speed.py | Python | bsd-3-clause | 871 | [
"Gaussian"
] | 6bb3cf42bdb88e6fec0e35d6790c005a0a75831df01003bc37dedeefce08e4d7 |
# -*- coding: utf-8 -*-
{
"'Cancel' will indicate an asset log entry did not occur": "' 취소 ' 자산 로그 항목이 발생하지 않았음을 나타냅니다.",
"A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for the area.": "이 지역의... | flavour/eden | languages/ko.py | Python | mit | 244,888 | [
"VisIt"
] | 94dfccdbeee864b12e27196d4e10bbe316dcff21b81502d2bee893277826f72b |
"""
Functions and classes for generating Excel spreadsheets.
Originally created by Anna Nachesa + StarterSquad
Version: 2017feb10
"""
import xlsxwriter
from xlsxwriter.utility import xl_rowcol_to_cell
from numpy import isnan
from optima import printv, isnumber, version, odict, getdate, today, loaddatapars, Settings
... | optimamodel/Optima | optima/makespreadsheet.py | Python | lgpl-3.0 | 36,459 | [
"VisIt"
] | b0db8fb9d8d82a2c1c479348ba86efddc98a07db33fe3bb09c93716dcbe3e4ee |
#!/usr/bin/env python3
# Copyright (C) 2020-2021 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
"""This is an executable script to migrate e... | SoftwareHeritage/swh-storage | swh/storage/migrate_extrinsic_metadata.py | Python | gpl-3.0 | 47,987 | [
"VisIt"
] | 174a7a47c9cac0bfa54c19c3ccb34a20062d65c6f2638cf94e399179026b44c2 |
"""
test_relu.py: Test suite for the ReLU estimator class :class:ReLUEstim`
"""
from __future__ import print_function
from __future__ import division
import unittest
import numpy as np
# Add the path to the vampyre package and import it
import env
env.add_vp_path()
import vampyre as vp
def relu_test(zshape=(1000,1... | GAMPTeam/vampyre | test/test_estim/test_relu.py | Python | mit | 2,949 | [
"Gaussian"
] | de8c12481ca10db7c0136f364ec49df54940aaac58f6d1e8b60ad91f2d347e62 |
import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dimension
of D, a hidden dimension of H, and perform classific... | machinelearningnanodegree/stanford-cs231 | assignments/assignment2/cs231n/classifiers/fc_net.py | Python | mit | 12,339 | [
"Gaussian"
] | a05fbcf93ab2c4be749699a47688f5546ab396da7df7897c4439d4cb4e479f3c |
"""
Support for creating videos.
"""
# Copyright (C) 2009-2011 University of Edinburgh
#
# This file is part of IMUSim.
#
# IMUSim 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 Licens... | spaghetti-/imusim | imusim/visualisation/video.py | Python | gpl-3.0 | 2,793 | [
"Mayavi"
] | 1d0da1942d4eb9ceeb54d4cedcd9ae6f9834c04f66df5bc34f7c6d47208337cc |
# The Elements of Statistical Learning
# Section 2, Overview of Supervised Learning
# author: songsuoyuan
# require: numpy, scipy, matplotlib, sklearn
# http://xcoffee.me/about
import matplotlib.pyplot as plt
import numpy as np
data = np.loadtxt('./Data/mixture_simulation_data.txt', skiprows=1)
means = np.loadtxt('./D... | songsuoyuan/The-Element-of-Statistical-Learning-Python-Implements | section2.py | Python | mit | 4,457 | [
"Gaussian"
] | 7513c18fecb733de3e5f790a3d2d49408307df06d6e47cf6dad151c68cb14ee4 |
from redbot.core import commands, checks, Config, data_manager
from redbot.core.utils.chat_formatting import pagify
import discord
import random
import aiohttp
import re
import enum
import urllib
import flickrapi
import concurrent.futures
from bs4 import BeautifulSoup
from .pastebin import PasteBin
from .constants impo... | baiumbg/useless-cogs | mxl/mxl.py | Python | mit | 35,503 | [
"CRYSTAL"
] | 4cbb6105a3f91e716bfbd09ca707440089fffde1dcd8db8ab9e9b6335af66582 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#... | MDAnalysis/mdanalysis | testsuite/MDAnalysisTests/core/test_residuegroup.py | Python | gpl-2.0 | 11,088 | [
"MDAnalysis"
] | b7281d96aa2bde1401e5b4ea41a9a955a985a2505a05c0fc2d8ee2eef8eaa1a6 |
#!/usr/bin/python
#
# Copyright Google 2007-2008, 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 ... | google-code-export/django-hotclub | libs/external_libs/gdata.py-1.0.13/src/gdata/spreadsheet/text_db.py | Python | mit | 21,235 | [
"VisIt"
] | 9931374ccdfac83d5611a98e41c2b9e1439a674c2eb884d8b5c6d91989daf797 |
vis = []
def dfs(g, s):
global vis
print ('visiting ', s)
vis[s] = True # mark s visited
# for all adjacent vertex of s
for u in g[s]:
if not vis[u]:
dfs(g, u) # visit a neighboor of s
n = int(input()) # number of vertex
m = int(input()) # number of edges
g = [[] for _ in ... | manikTharaka/al-go-rithms | graphsearch/depth-first-search/python/dfs.py | Python | mit | 715 | [
"VisIt"
] | 8fdc234049f3cd6ccab3c1d7bb6b462803f499930d7c51d97ed06d97d449346e |
import time,gzip,random,os,sys
from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit.Chem import Recap
from rdkit.RDLogger import logger
logger = logger()
tests=[1]*1001
if len(sys.argv)>1:
tests=[0]*1001
tests[1]=1
for x in sys.argv[1:]:
x = int(x)
tests[x] = 1
ts = []
sdData =... | rdkit/rdkit-orig | Regress/Scripts/timings.py | Python | bsd-3-clause | 5,362 | [
"RDKit"
] | f9671f3712bcf3e0c3634350a85b099d54574aee40910bbf063c0b46e37f32d8 |
# Will download data from Huffington Post and save it as data.csv
# Run once before trying predict.py, but you shouldn't need to run it frequently.
from csv import DictWriter
import re
from pollster import Pollster
pollster = Pollster()
kDATE = re.compile("[0-9]*-[0-9][0-9]-[0-9][0-9]")
kFIELDS = ['YEAR', 'DATE', 'T... | Pinafore/ds-hw | regression/get_data.py | Python | mit | 1,672 | [
"MOE"
] | e4e126f60459b140567fb682be4b2fe5ae2fe2f1582656dc72f8d966c51efa04 |
#!/usr/bin/python
# Sam2Wig-BFR.py
# Eric Johannsen Jan 2013
#
#
# Take a bwa .sam output file (sorted with unmapped reads removed), parse each line, and write it as new file in wiggle format.
#
# The overall strategy here is to step through the reads mapped by bwa (which are sorted in order along the chromosome) an... | mbiokyle29/bioinformatics | misc/python/Sam2Wig-BFR.py | Python | mit | 5,903 | [
"BWA"
] | c66f182e7a9d033dad333bd3e193f03bffac3b5fcef02bb3b5d5c926d003b298 |
################################################################
# Code for managing and training a generator/inferencer pair. #
################################################################
# basic python
import numpy as np
import numpy.random as npr
from collections import OrderedDict
# theano business
import t... | capybaralet/Sequential-Generation | OneStageModel.py | Python | mit | 16,774 | [
"Gaussian"
] | 07b88dc1bcf9a58b821f27cd1a957e86fbbb3b69462c70664a2f7d18c1f2afb3 |
# coding: utf-8
from __future__ import unicode_literals, division
"""
This module implements error handlers for Nwchem runs. Currently tested only
for B3LYP DFT jobs.
"""
__author__ = "Shyue Ping Ong"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "ongsp@ucsd.edu"
__status__ = "Beta"
__date__ = "... | specter119/custodian | custodian/nwchem/handlers.py | Python | mit | 3,443 | [
"NWChem",
"pymatgen"
] | f5ec62f15bc1754461bf0fdb091af0d1242e87d1f1ee8af89f1b373efbaefa84 |
#!/usr/bin/env python
#Python 2.7+
import sys, getopt
def main(argv):
input_dir = ''
fasta_file = ''
output_aper_file = ''
cores = 1
output_dir = 'temp_HTML_dir'
recurse = False
bwa_index = False
keep = False
try:
opts, args = getopt.getopt(argv,"rhikd:f:c:o:n:",["recursive","help","b... | ibest/APER | scripts/python_APER_wrapper.py | Python | apache-2.0 | 6,109 | [
"BWA"
] | eaf89ddbabd0be67441bc3dae1b1f0af73805108033c6ce7b152fe9768d7d1ba |
import numpy as np
import pandas as pd
# from matplotlib.pyplot import plot,show,draw
import scipy.io
import sys
sys.path.append("../")
from functions import *
from pylab import *
from sklearn.decomposition import PCA
import _pickle as cPickle
import matplotlib.cm as cm
import os
#####################################... | gviejo/ThalamusPhysio | python/figure_article_v2/main_article_fig_supp_7.py | Python | gpl-3.0 | 17,294 | [
"Gaussian"
] | 3b21d1271b1fa8d90293ef916ef858c62eb1256ec5c6286b87ef13732c1c0939 |
"""
Project
FPGA-Imaging-Library
Design
RowsGenerator
Function
Generate rows cache.
The lowest "color_width" bits of "out_data" is the top left corner pixel of the window!
Module
Software simulation.
Version
1.0
Modified
2015-05-17
Copyright (C) 2015 Tianyu Dai (dtysky) <dtysky@outlook.com>
This library is fr... | jaechoon2/FPGA-Imaging-Library | Generator/WindowGenerator/SoftwareSim/sim.py | Python | lgpl-2.1 | 3,148 | [
"MOE"
] | 45a3105b0cd25a07371891a19b361b10582c6162e90ad6ca3491ed27a14337ff |
# -*- coding: utf-8 -*-
"""
End-to-end tests for contract of biz feature
"""
from bok_choy.web_app_test import WebAppTest
from nose.plugins.attrib import attr
from common.test.acceptance.fixtures.course import CourseFixture
from common.test.acceptance.pages.biz.ga_contract import BizContractPage, BizContractDetailPage... | nttks/edx-platform | common/test/acceptance/tests/biz/test_ga_contract.py | Python | agpl-3.0 | 20,261 | [
"VisIt"
] | 945f87681a58f46255ca0dcccd65a358823e5c99968b2480227063151cbee0ab |
# The MIT License (MIT)
#
# Copyright (c) 2015 Numenta, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mod... | chetan51/cortipy | tests/integration/get_context_from_text_test.py | Python | mit | 3,880 | [
"Jaguar"
] | 14127bc9187982371470cdb85b212d66e919cd524c1319db0186894ea49e0034 |
import os
import warnings
import nibabel
import numpy as np
from scipy import sparse
warnings.simplefilter('ignore', sparse.SparseEfficiencyWarning)
from .. import dataset
def get_mapper(subject, xfmname, type='nearest', recache=False, **kwargs):
from ..database import db
from . import point, patch, volume, ... | CVML/pycortex | cortex/mapper/__init__.py | Python | bsd-2-clause | 6,225 | [
"Gaussian"
] | d4ff362fce206437a249c6ca8d6dec413727b764ae5c2a009c14531004705eff |
"""The ants module provides basic functions for interfacing with ants functions.
Change directory to provide relative paths for doctests
>>> import os
>>> filepath = os.path.dirname( os.path.realpath( __file__ ) )
>>> datadir = os.path.realpath(os.path.join(filepath, '../../testing/data'))
>>> os.chdir(... | christianbrodbeck/nipype | nipype/interfaces/ants/segment.py | Python | bsd-3-clause | 8,035 | [
"Gaussian"
] | 720f18229a9732893349fc04f17e9625033b65eb07784737b037d6c1f4befcae |
# -*- coding: utf-8 -*-
"""Infrared intensities"""
import pickle
from math import sqrt
from sys import stdout
import numpy as np
import ase.units as units
from ase.parallel import parprint, paropen
from ase.vibrations import Vibrations
class InfraRed(Vibrations):
"""Class for calculating vibrational modes an... | suttond/MODOI | ase/vibrations/infrared.py | Python | lgpl-3.0 | 13,233 | [
"ASE",
"Gaussian",
"SIESTA",
"VASP"
] | 774343db9372286089e53963704bf132e46ece09351d449b679455ba71c2c35a |
"""
Courseware views functions
"""
import logging
import urllib
import json
from collections import defaultdict
from django.utils.translation import ugettext as _
from django.conf import settings
from django.core.context_processors import csrf
from django.core.exceptions import PermissionDenied
from django.core.urlr... | bdero/edx-platform | lms/djangoapps/courseware/views.py | Python | agpl-3.0 | 37,296 | [
"VisIt"
] | fccfde450db4742a72947c8778baf81ca3ddc337b23e4385caf145e0f67dcaea |
from argparse import FileType
from octopus.shelltool.ChunkStartTool import ChunkStartTool
from octopus.mlutils.MLDataDir import MLDataDir
from octopus.mlutils.pythonEmbedder.PythonEmbedder import Embedder
DESCRIPTION = """ """
DEFAULT_DIRNAME = 'embedding'
class MLDataDirCreator(ChunkStartTool):
def __init__(se... | octopus-platform/joern | python/joern-tools/joern/MLDataDirCreator.py | Python | lgpl-3.0 | 1,422 | [
"Octopus"
] | 9e81583acb4f27af098487f80dd2b7a26bdb2f06f2c05f9b725c82516e864bae |
# -*- 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... | theochem/horton | horton/part/test/test_proatomdb.py | Python | gpl-3.0 | 8,654 | [
"CP2K"
] | 50f83db3db44c55853357fad8e30c42bbfa35e483e58cc69761756bfc771c648 |
#!/usr/bin/python3
"""Set up some initial data for the animal guessing game."""
import pickle
from animal_guess import Question, QUESTION_FILE, ANIMAL_FILE
questions = {
Question('Is your animal a mammal?', {'moose', 'kangaroo', 'platypus'}, {'chicken'}),
Question('Does your animal lay eggs?', {'platypus', 'c... | d-strickland/dailyprogrammer | python/animialguess/seed_questions.py | Python | gpl-3.0 | 646 | [
"MOOSE"
] | 478902033baa6c11dbf69db3e06e6e05775c30b1d07051f60db7b36234275992 |
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors and Contributors
# See license.txt
import frappe
import unittest
test_records = frappe.get_test_records('Maintenance Visit')
class TestMaintenanceVisit(unittest.TestCase):
pass
| gangadharkadam/letzerp | erpnext/support/doctype/maintenance_visit/test_maintenance_visit.py | Python | agpl-3.0 | 253 | [
"VisIt"
] | 84283884e82cf0b975bb4a4bd178e5ad080ee8cdea38cdced71fafb9fa972102 |
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 24 17:18:00 2015
@author: xiaoxiaol
"""
import pandas as pd
import numpy as np
import os
from os import path, sys
from os import sys, path
p = path.dirname(path.dirname(path.abspath(__file__)))
sys.path.append(p)
sys.path.append(p)
import blast_neuron.blast_neuron_c... | XiaoxiaoLiu/morphology_analysis | bigneuron/compare_neuron_distance_tbd.py | Python | gpl-3.0 | 3,632 | [
"NEURON"
] | 0f3390c5aec77ff6efc6c1d20b74a7dc6256183b8283649ff65b95ddb393d454 |
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | skosukhin/spack | lib/spack/docs/tutorial/examples/Makefile/2.package.py | Python | lgpl-2.1 | 1,959 | [
"Bowtie"
] | 23ee6d26d9c41465e6a692839f9ae18f6bd6cdd2b51d0277ec668597c463fbcb |
"""
Class for outlier detection.
This class provides a framework for outlier detection. It consists in
several methods that can be added to a covariance estimator in order to
assess the outlying-ness of the observations of a data set.
Such a "outlier detector" object is proposed constructed from a robust
covariance es... | depet/scikit-learn | sklearn/covariance/outlier_detection.py | Python | bsd-3-clause | 6,804 | [
"Gaussian"
] | 9024576cb7779ed04cbeb8caff68abd4223231e6b37ffcde4238faef76a9f14e |
#!/usr/bin/env python
# coding: UTF-8
import sys
from optparse import OptionParser
# check if the pymol module is installed
try :
import pymol
except :
sys.exit( "error : This script needs 'pymol' module. Please install pymol before running." )
# import other pymol modules
import pyca
import pym
def col... | nishn/pymol-script | pycol.py | Python | mit | 3,110 | [
"PyMOL"
] | 17e80b70b5dd57d0e9abec9582e2485a7b77cc2c9998f88e056b8b02057de600 |
#!/usr/bin/python
# $Id$
"""
A faithful translation of the classic "Hunt The Wumpus" into Python 3.
"""
__version__ = '1.0'
__author__ = ('Lance Finn Helsten <helsten@acm.org>',)
__copyright__ = "Copyright (C) 2014 Lance Finn Helsten, All rights reserved."
__license__ = """
Redistribution and use in source and binary f... | lanhel/pywumpus | pywumpus.py | Python | bsd-2-clause | 14,815 | [
"TINKER"
] | 364419aa4a490730caf6d4b4a89d7ead376c022c0b533678fe2c08f6fd2f6875 |
########################################################################
#
# (C) 2015, Brian Coca <bcoca@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation... | jnerin/ansible | lib/ansible/galaxy/role.py | Python | gpl-3.0 | 15,222 | [
"Brian",
"Galaxy"
] | 74a335d155def418b47f3af3c09b7071ef73d030692db5350948f80cd86bdc07 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.