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 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Franz Papst
"""
import os
import pickle
import numpy as np
from sklearn.mixture import GaussianMixture
from utils import split_training_test, create_bfcr, phone_to_num
from config import TEST_FILES, LF0_DIR, MGCORD, NUM_BASES, GMM_SAVED, OUT_DIR
from resynth... | CPUFronz/basis_speech | basis_speech/gm_fitting.py | Python | mit | 10,892 | [
"Gaussian"
] | 43d9b0afccc86e1f25b05f8ec3aa9cd8a0fc34e20a073733eb5c1c7dd12afed2 |
import random
import pd
import sys
import ntrace
class Node:
def __init__(self, key, value):
self.left = None
self.right = None
self.key = key
self.value = value
def _insertNodeRec(node, newNode):
if newNode.key < node.key:
if node.left != None:
return _insertNodeRec( node.left, newNode )
else:
... | MoserMichael/cstuff | python-pypi/ntrace/tests/test_ntrace2.py | Python | bsd-3-clause | 3,634 | [
"VisIt"
] | dfe8b7c6c4aa9c45fc8ac268fe1a5a1188c141245ec5707e78aec391d428c364 |
#
# Copyright (c) 2017 ThoughtWorks, Inc.
#
# Pixelated is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Pixelated is distrib... | pixelated-project/pixelated-user-agent | service/test/functional/features/page_objects/base_page.py | Python | agpl-3.0 | 1,351 | [
"VisIt"
] | fc3af68bc03cd13775c5201e91776e8c919fd8f0f3831489f6a1f493a49c3aa2 |
#!/usr/bin/env python
""" This script is used to submit the jobs on the grid.
It uses an executable (first argument), creates
a directory in which it will store all the job ids (<jobName> args),
and submit a configurable amount of jobs.
"""
import DIRAC
DIRAC.initialize() # Initialize configuration
from... | DIRACGrid/DIRAC | tests/Performance/DFCPerformance/submitJobs.py | Python | gpl-3.0 | 1,198 | [
"DIRAC"
] | 3ec4932f552b46f7c7b36a0262fe03155a3e7013557bb8ed29e6adb20f4e62eb |
"""
This file demonstrates the creation of a directed graph using the
Python interface to VTK.
"""
from vtk import *
xdim = 600
ydim = 600
#------------------------------------------------------------------------------
# Script Entry Point
#----------------------------------------------------------------------------... | collects/VTK | Examples/Infovis/Python/merge_graphs.py | Python | bsd-3-clause | 3,352 | [
"VTK"
] | 89928b7964aa608518c25aa97a5c3fe3122d7307bdf9b896b5216ff8f169e21f |
# Copyright 2016, Vinothan N. Manoharan, Sofia Makgiriadou, Victoria Hwang
#
# This file is part of the structural-color python package.
#
# This package 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 ... | manoharan-lab/structural-color | structcol/model.py | Python | gpl-3.0 | 54,735 | [
"Gaussian"
] | d585908c0f5e18cb62120af25b2d88335179152b1ed30fc7135b31b4498cfa16 |
# Todd Miller jmiller@stsci.edu
import os, sys, math
import os.path
import tkinter as Tk, tkinter.filedialog
# Paint image to Tk photo blitter extension
import matplotlib.backends.tkagg as tkagg
from matplotlib.backends.backend_agg import FigureCanvasAgg
import matplotlib.backends.windowing as windowing
import... | alephu5/Soundbyte | environment/lib/python3.3/site-packages/matplotlib/backends/backend_tkagg.py | Python | gpl-3.0 | 35,146 | [
"FLEUR"
] | aeebbb2666d901e96ba69f3ddf93be7c686970bce61d9a116771bd2c3860f812 |
'''
SASSIE: Copyright (C) 2011 Joseph E. Curtis, Ph.D.
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.
... | madscatt/sasmol | src/python/saspdbrx.py | Python | gpl-3.0 | 44,423 | [
"CHARMM"
] | d2ce6a4d86cd8bbddbe84a411377f0f7ea428d0cda70962f3b629538a277cb51 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2020 Satpy developers
#
# This file is part of satpy.
#
# satpy 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... | pytroll/satpy | satpy/readers/mviri_l1b_fiduceo_nc.py | Python | gpl-3.0 | 27,276 | [
"NetCDF"
] | 5d8e1de8f2a7b16a1f4c6a63fd6d0eee88f9cb47006d7e675bc3a095df72f73c |
# -*- coding: utf-8 -*-
from math import exp
import multiprocessing
import math
from multiprocessing import Process, Array, Value, Pool
import os
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import scipy.stats
from scipy.stats impor... | dilnoza92/chemical_shifts | final_project/final_project.py | Python | mit | 16,068 | [
"Gaussian"
] | a8b6b15ab907f2e64d7f2bcffec4e41f0cd6576b76b750f3d29e78f8d0b4d611 |
from __future__ import unicode_literals
import unittest
from nose.tools import *
from py_stringmatching.tokenizer.alphabetic_tokenizer import AlphabeticTokenizer
from py_stringmatching.tokenizer.alphanumeric_tokenizer import AlphanumericTokenizer
from py_stringmatching.tokenizer.delimiter_tokenizer import DelimiterTo... | kvpradap/conda-pysm-appveyor | py_stringmatching/tests/test_tokenizers.py | Python | bsd-3-clause | 18,911 | [
"ASE"
] | 0c925a2632ecff398f0f768ae2b09d7943072ec41bba9882546264eccd2bd794 |
# Copyright 2013-2020 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)
"""
Spack allows very fine-grained control over how packages are installed and
over how they are built and configured. To... | iulian787/spack | lib/spack/spack/spec.py | Python | lgpl-2.1 | 185,197 | [
"VisIt"
] | 55c69d9cace08c857d7e487113716f17b92177d45550f3ce15e87627b3a544ba |
#!/usr/bin/env python
#
# Copyright 2007-2013 The Python-Twitter Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | chrigu/schifftszbaern | weather/get_token.py | Python | mit | 3,178 | [
"VisIt"
] | 62c2efe3bab14855fddac0fc9794f832ccc749a56a1b228509676aacb784c199 |
# OLS fit with Monte Carlo parameter errors and covariance,
# assuming accurately known Gaussian errors on the data points
# and known residuals correlation.
import numpy as N
import sixlin
def fitmc(x, xerr, y, yerr, cor=None, nmc=1000):
n = len(x)
afit = N.zeros(nmc, N.float)
bfit = N.zeros(nmc, N.float... | bamford/astrobamf | fitmc.py | Python | mit | 922 | [
"Gaussian"
] | c9b1d25ce2e82a98546052670ea3bd4d0251853624bba9850cffffb8f365564b |
#
# Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | psci2195/espresso-ffans | doc/tutorials/06-active_matter/EXERCISES/rectification_simulation.py | Python | gpl-3.0 | 6,511 | [
"ESPResSo",
"ParaView",
"VTK"
] | e219f8e5f640977762d4f4e367ecf21f64ecb20204f161f93c512e00bb4a73b1 |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkRotationFilter(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
vtk... | nagyistoce/devide | modules/vtk_basic/vtkRotationFilter.py | Python | bsd-3-clause | 496 | [
"VTK"
] | f021ef2b0cfd71b4d766659808e88c4d1e264fd3bb68782a29323205d6033852 |
#!/usr/bin/env python
#
#
# Adjust path in sitemap.xml
from xml.etree import ElementTree
import argparse
# defaults for MDAnalysis, see https://github.com/MDAnalysis/mdanalysis/pull/1890
# and https://github.com/MDAnalysis/MDAnalysis.github.io/issues/78
RELEASE_URL = "https://www.mdanalysis.org/docs/"
DEVELOP_URL = ... | MDAnalysis/mdanalysis | maintainer/adapt_sitemap.py | Python | gpl-2.0 | 2,589 | [
"MDAnalysis"
] | 55650c7a19876da57107ed329756c3267fb393ab0e66e29bb751575db668af63 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | mlperf/training_results_v0.7 | Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/tvm/vta/python/vta/top/graphpack.py | Python | apache-2.0 | 12,401 | [
"VisIt"
] | a9374f009599b8385d152ef061320519c652aad927c520194e2b4ad30b398524 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | gnieboer/tensorflow | tensorflow/contrib/distributions/python/ops/mvn_linear_operator.py | Python | apache-2.0 | 12,504 | [
"Gaussian"
] | 45fe536e470902490b6360635aa1a10509d2ca6e697fb2db865c5bc4dbd72963 |
"""
The GA4GH data model. Defines all the methods required to translate
data in existing formats into GA4GH protocol types.
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import base64
import collections
import glob
import os
import ga4gh.exceptions a... | ekalosak/server | ga4gh/datamodel/__init__.py | Python | apache-2.0 | 15,395 | [
"pysam"
] | d11d6fe1d2c82b49fb7e7cc33db5e1ffa1bfed49b9327e14cde197e95a925350 |
# -*- coding: utf-8 -*-
# with '#' will be ignored, and an empty message aborts the commit.
#
# PySurfer documentation build configuration file, created by
# sphinx-quickstart on Thu May 12 12:45:43 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible c... | Eric89GXL/PySurfer | doc/conf.py | Python | bsd-3-clause | 11,030 | [
"Mayavi"
] | c48b8960c9fb1c0ab74c8cf9ae9dafd824ad486a4362a640db7468f3d58598cd |
import math
import numpy as np
from typing import Any, Tuple, Optional
try:
import torch
from torch import Tensor
import torch.nn as nn
import torch.nn.functional as F
except ModuleNotFoundError:
raise ImportError('These classes require PyTorch to be installed.')
try:
from torch_scatter import scatter_mean... | deepchem/deepchem | deepchem/models/torch_models/layers.py | Python | mit | 33,330 | [
"RDKit"
] | ce7cbc0acaae25585dfef439addae0ffb16c3917b436329d7da7a359b2ff7e05 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pylid
from collections import Counter
fr = pylid.PyLID(3)
fr.total_ngrams = 321197527
fr.lang = 'fr'
fr.ngrams = Counter({
u'es#': 5155290,
u'#de': 4506064,
u'de#': 3165225,
u'nt#': 2965241,
u'ent': 2897040,
u'#le': 2634403,
u'ion': 2563... | dmort27/pylid | pylid/langs/fr.py | Python | mit | 275,250 | [
"ADF",
"ASE",
"BWA",
"EPW",
"Elk",
"MOE"
] | 44daf9194b402fb5e48a8e10bd3d45fa11cf088751e1244c1c1ddcbe85f0252b |
# Italian / Italiano - Translations - Python 3 Only!
from seleniumbase import BaseCase
from seleniumbase import MasterQA
class CasoDiProva(BaseCase):
def __init__(self, *args, **kwargs):
super(CasoDiProva, self).__init__(*args, **kwargs)
self._language = "Italian"
def apri(self, *args, **kwa... | mdmintz/SeleniumBase | seleniumbase/translate/italian.py | Python | mit | 21,139 | [
"VisIt"
] | 5dab6bc150fdee5ac71d0fc7c1f3b0236ba07403373b5cbb53c7b4fe0c1d550a |
#-*- encoding: utf8 -*-
# This file is part of odometer by Håvard Gulldahl <havard.gulldahl@nrk.no>
# (C) 2016-2017
from builtins import str
import PyQt5.QtCore as Core
import logging
from datetime import datetime
import urllib.parse
import urllib.request
import json
from io import StringIO
from .model import Track... | havardgulldahl/pling-plong-odometer | src/metadata/lookupWorkers.py | Python | gpl-3.0 | 36,031 | [
"exciting"
] | 36ffedf9d52452cf812637ece61c9ea9177b4fbace135eb9e8ba717471939fd0 |
import requests
from random import choice
from string import ascii_uppercase
from django.utils import timezone
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import viewsets
from rest_framework.response import Response
from rest_framework.views import APIView
from io import BytesIO, StringIO
... | nirgn975/WhatsBuzz | server/api/views.py | Python | isc | 10,420 | [
"VisIt"
] | 9d26e765d2c5a66c31bf1a5a87d35fa34153a02741b4129048751e80f160d11d |
#Import packages that will be used
#GUI generation Packages
import wx
import wx.aui
from wx.lib.buttons import GenBitmapButton,GenBitmapToggleButton
#Operational Packages
import subprocess
import traceback
import types
import os
import sys
import errno
import numpy as np
from Bio import Entrez
from xml.dom import mini... | fxb22/BioGUI | plugins/Tools/ETOOLSgui.py | Python | gpl-2.0 | 20,811 | [
"BLAST"
] | a701d5c015ff7abefe9f95adedc62152b382fd60cb5e4a491327314e1fea78f6 |
#!/usr/bin/python2.7
#
# Joshua Davis
# cwtx - transmit morse code with parameters and statistical attributes
#
# Copyright (C) 2014, Joshua Davis
#
# 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 Foundatio... | covertcodes/cwtoolkit | cwtx.py | Python | gpl-3.0 | 14,298 | [
"Gaussian"
] | 0ea50002bc926df2e463e3963e6f850572f879280be3f759c6437b916b92f2f8 |
import json
from flask import Flask, render_template
from flask_socketio import SocketIO, emit
from battleship import Battleground
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
# 1. visit website
# - get authentication cookie
# 2. create agme
# - redirect to game creat... | ovodopyan/battleships | core/app.py | Python | mit | 1,084 | [
"VisIt"
] | 726b748c3d1976d3fd2c2dc3945a331628229659855f3c04fb338cb57cc0e76c |
# Original implementation found at https://github.com/adobe-research/audio-retargeting/blob/master/radiotool/radiotool/algorithms/novelty.py
# Debugged and modified by Mattia Cerrato during August 2015
# Compute the audio novelty features of a song
import sys
import numpy as np
import scipy
from utils import RMS_ene... | RedHenLab/Audio | GSoC2015/BroadcastSegmentor/mattia_cerrato/cerrato-soc/novelty/novelty-ronen.py | Python | gpl-2.0 | 5,460 | [
"Gaussian",
"exciting"
] | db892efb65781410096978208828e41f29a003bece5010de3903feb20169b6eb |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | pli3/Openwebif | plugin/controllers/views/ajax/message.py | Python | gpl-2.0 | 5,382 | [
"VisIt"
] | 79e405d895f89a228f74d38dc79f66cc028e4330c11c01ca8fbb0b210bfa9479 |
#!/usr/bin/env python2
from atom import *
from base import *
from types_builtin import *
from globs import TypeOf, ResultOf
import vat
INPAT = new_env('INPAT', '*Type')
PropScope = DT('PropScope', ('result', 'Result(CType)'),
('localVars', {'*Var': 'CType'}))
PROPSCOPE = new_env('PROPSCOP... | pshc/archipelago | prop.py | Python | mit | 23,844 | [
"MCell",
"VisIt"
] | fd3990cdea6f7dbb1d5c4f90c4354dec6186c71614fdd33ab97c5bfd0daae280 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 11 14:36:29 2017
@author: derek
"""
import os
import tensorflow as tf
import numpy as np
import random
def _parse_function(example_proto):
"""Reads tfrecords with features {shape: (height,width,depth) of cube data,
label: (malignancy, lobu... | dereknewman/cancer_detection | train_label_cat_cubes_3d_multires2.py | Python | mit | 15,562 | [
"Gaussian"
] | 476e5fde1cd1e64a2da487792b77cfe127f37761cd92e8b2fb32f75f44f268bf |
#
# @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/driver/constants/psifiles.py | Python | lgpl-3.0 | 10,870 | [
"Psi4"
] | 36860654c57b3a44433e39325e106a9c87dba49e8872039e8769fb660dd733ea |
#
# Stress test for web servers
# by Brian Sanderson
# February 2006
#
# Revised by Daniel Zappala
# 2007, 2008, 2013
import httplib
import math
import optparse
import random
import socket
import sys
import time
from threading import Thread
class RequesterThread(Thread):
def __init__(self, host, port, uri, d... | zappala/web-server-testing | tests/stress-test.py | Python | gpl-2.0 | 4,984 | [
"Brian"
] | 7a6319940f0d0601e6084bd5375cc7f4abec800353f6ebebfb6a5f76f9f88755 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This file lib_nrf24.py is a slightly tweaked version of Barraca's "pynrf24".
# So this is my tweak for Raspberry Pi and "Virtual GPIO" ...
# ... of Barraca's port to BeagleBone python ... (Joao Paulo Barraca <jpbarraca@gmail.com>)
# ... of maniacbug... | AdriaGS/MTP-Group-C | Single Mode/Semi-Final/lib_nrf24.py | Python | gpl-2.0 | 25,865 | [
"Brian"
] | a8f4173042aa705800a675002964ad7bf7409065657cae4506514dcecd2ca946 |
from asap3 import *
from asap3.mpi import world
from ase.lattice.cubic import *
from asap3.testtools import ReportTest
import time
import os
debug = 0
if debug == 1:
DebugOutput("makeparallel%d.log", nomaster=True)
elif debug == 2:
time.sleep(world.rank)
print "PID:", os.getpid()
time.sleep(20)
if wor... | auag92/n2dm | Asap-3.8.4/Test/parallel/makeparallel.py | Python | mit | 2,203 | [
"ASE"
] | 44cdba3c436bdf6e2e3581e505a2904ce44f6e4b07b8fa1ff27c6da96ff206fc |
# -*- coding: utf-8 -*-
# Author: Vincent Dubourg <vincent.dubourg@gmail.com>
# (mostly translation, see implementation details)
# License: BSD 3 clause
from __future__ import print_function
import numpy as np
from scipy import linalg, optimize
from ..base import BaseEstimator, RegressorMixin
from ..metrics... | waterponey/scikit-learn | sklearn/gaussian_process/gaussian_process.py | Python | bsd-3-clause | 35,048 | [
"Gaussian"
] | a6d4698af3b75c95e6a5e730244352fadd51b6872af896a273d3dd9b23e5b1ff |
#!/usr/bin/env python
#
# Entry junction
# Author: Evgeny Blokhin
'''
Tilde is general-purpose materials informatics framework
for intelligent organizers of the scientific modeling data.
More info: https://tilde.pro
'''
from __future__ import print_function
import os, sys
import time
import logging
if (2, 6) > sys.ve... | ansobolev/tilde | utils/entry.py | Python | mit | 10,789 | [
"ASE"
] | 7db9a551f1fa9908da1859ef9c5661f58a0675a7db3e4eb8c3205cd79e615812 |
#!/usr/bin/env python
import GalaxyCommunication_data_manager
import ProtonCommunication_data_manager
from bioblend.galaxy import GalaxyInstance
import logging
##########################
#URL SEQUENCER
##########################
from GlobalVariables import sequencer_base_url
from GlobalVariables import sequencer_user... | CARPEM/GalaxyDocker | data-manager-hegp/datamanagerpkg/datamanagerpkg/Main_data_manager.py | Python | mit | 1,421 | [
"Galaxy"
] | cb977cf71bb03336d4cae8473179d85844b1e6e258308843b991ad186156fd78 |
"""
NetCDF reader/writer module.
This module implements the Scientific.IO.NetCDF API to read and create
NetCDF files. The same API is also used in the PyNIO and pynetcdf
modules, allowing these modules to be used interchangebly when working
with NetCDF files. The major advantage of ``scipy.io.netcdf`` over other
modu... | suttond/MODOI | ase/io/pupynere.py | Python | lgpl-3.0 | 21,229 | [
"NetCDF"
] | 74ebeddc6f62b91708c54702272b251390f11de204a8a273913e2051e570460c |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
""" sextractor.py:
Classes to read SExtractor table format
Built on daophot.py:
:Copyright: Smithsonian Astrophysical Observatory (2011)
:Author: Tom Aldcroft (aldcroft@head.cfa.harvard.edu)
"""
from __future__ import absolute_import, division, print_f... | joergdietrich/astropy | astropy/io/ascii/sextractor.py | Python | bsd-3-clause | 6,354 | [
"Galaxy"
] | 24c70a5c476e62bf08fcf5622fd7a6009dadcce0102a39272b22068a0d2ce924 |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Tests for the core module.
"""
from astropy.stats import SigmaClip
import astropy.units as u
import numpy as np
from numpy.testing import assert_allclose
import pytest
from ..core import (BiweightLocationBackground, BiweightScaleBackgroundRMS,
... | astropy/photutils | photutils/background/tests/test_core.py | Python | bsd-3-clause | 8,084 | [
"Gaussian"
] | 89c478dd72cb483236494eea3b80685e041b4e77404445fb94c69d4947d72be5 |
import mechanize
from time import sleep
import urllib
#Make a Browser (think of this as chrome or firefox etc)
br = mechanize.Browser()
#visit http://stockrt.github.com/p/emulating-a-browser-in-python-with-mechanize/
#for more ways to set up your br browser object e.g. so it look like mozilla
#and if you need to fill... | edgarsandi/studies | book_AdamDrozdek/download-files-from-web.py | Python | unlicense | 1,449 | [
"VisIt"
] | 95e6610e111dc7d56e1d3418ad5b8057277c691a1b0992681a27941f4763a8ef |
"""
sources.sepp
============
Produces synthetic data based upon a "self-exciting" or "Hawkes model" point
process. These are point processes where the conditional intensity function
depends upon a background intensity (i.e. a homogeneous or possibly
inhomogeneous Poisson process) and when each event in the past cont... | QuantCrimAtLeeds/PredictCode | open_cp/sources/sepp.py | Python | artistic-2.0 | 17,789 | [
"Gaussian",
"exciting"
] | 2aa341399189300552a8a80dbd78497bfaf6019b07f163a94a2916f8eaaa1e0c |
# -*- coding: utf-8 -*-
"""SQLite parser plugin for Safari history database files."""
from __future__ import unicode_literals
from dfdatetime import cocoa_time as dfdatetime_cocoa_time
from plaso.containers import events
from plaso.containers import time_events
from plaso.lib import definitions
from plaso.parsers im... | rgayon/plaso | plaso/parsers/sqlite_plugins/safari.py | Python | apache-2.0 | 5,578 | [
"VisIt"
] | 93f69b771a3ffa2027e5b2c4aa819edc2e4d9848e84a9a794c7bc4238bc54828 |
"""
Generate samples of synthetic data sets.
"""
# Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel,
# G. Louppe, J. Nothman
# License: BSD 3 clause
import numbers
import array
import numpy as np
from scipy import linalg
import scipy.sparse as sp
from ..preprocessing import MultiLabelBin... | nmayorov/scikit-learn | sklearn/datasets/samples_generator.py | Python | bsd-3-clause | 56,503 | [
"Gaussian"
] | 1d00fe2b421e320574b6820ac622b54478cafeda888145308d25cb645268ab86 |
import sys
import psychopy
from psychopy import visual, core
import numpy as np
import scipy.ndimage
import matplotlib.pyplot as plt
import matplotlib as mpl
from PIL import Image
# import hmax
class Filters(object):
def gabor(self,
theta=0,
gamma=1,
sigma=2,
lam=5.6,
k=10
... | qbilius/autoart | abstract_metal_wires/abstract_metal_wires.py | Python | mit | 19,924 | [
"Gaussian"
] | 852a5bc4bcdc779c264e3f18fb6cb0fd3d980d18360bbd51b76b21416f26a6a8 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Lenovo, Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... | e-gob/plataforma-kioscos-autoatencion | scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/modules/network/lenovo/cnos_vlan.py | Python | bsd-3-clause | 11,374 | [
"VisIt"
] | a017e2fd7b8eb9eac4d2a23935614d1bf3122bb4bdc1cbefde1b8303ad45975f |
"""
Gonio calcs for 6 circle psic geometry
Authors / Modifications:
------------------------
Tom Trainor (tptrainor@alaska.edu)
Frank Heberling (Frank.Heberling@ine.fzk.de)
Notes:
------
The following describes the calculations used to define the orientation
matrix of a xtal mounted on a goniometer and to convert bet... | jackey-qiu/genx_pc_qiu | supportive_functions/backcor/gonio_psic.py | Python | gpl-3.0 | 41,490 | [
"CRYSTAL"
] | 98ce2177ec119bb746f0d2dbfb4635960c394d2b4b75bca76e09a15ea724ffe4 |
# -*- coding:utf-8 -*-
# Copyright (c) 2015, Galaxy Authors. All Rights Reserved
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Author: wangtaize@baidu.com
# Date: 2015-03-30
from django.conf import urls
#views
urlpatterns = urls.patterns("console.taskgroup.vi... | fxsjy/galaxy | console/backend/src/console/taskgroup/urls.py | Python | bsd-3-clause | 416 | [
"Galaxy"
] | d746d40fdffce344188f118575964e478cf0791457cf9f9c71b9679b32e6fe0a |
# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of logilab-astng.
#
# logilab-astng is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as publis... | tlksio/tlksio | env/lib/python3.4/site-packages/logilab/astng/builder.py | Python | mit | 8,746 | [
"VisIt"
] | 20246bcca0f978d1a4f5438b04cfb9b165d5ec074372d358b32726003b6bf42d |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | savi-dev/horizon | horizon/base.py | Python | apache-2.0 | 30,193 | [
"VisIt"
] | daeeb7c2a5880e5c22c3e05429262f23e130fc1280729478e4d05844125c5e44 |
#!/usr/bin/python
# backup_matrix.py
#
# Copyright (C) 2008-2018 Veselin Penev, https://bitdust.io
#
# This file (backup_matrix.py) is part of BitDust Software.
#
# BitDust is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free So... | vesellov/bitdust.devel | storage/backup_matrix.py | Python | agpl-3.0 | 60,075 | [
"VisIt"
] | c2640dab77d994015046ec3c2ec0d7c152c0a117597e578fd74c56f22ef2e1d5 |
class PegJsVisitor(object):
"""Visitor that allows you to return result similar to PEG.js"""
def visit(self, node):
return getattr(self, node.type)(node)
def string(self, node):
return node.match
def regex_char(self, node):
return node.match
def sequence(self, node):
... | SimplePEG/Python | simplepeg/speg_visitor.py | Python | mit | 1,384 | [
"VisIt"
] | 8eb23a1541414ad006d5306aafcbfe68878aebffa84dcd3ede807d0a53688cf8 |
# -*- coding: utf-8 -*-
# Copyright 2009-2013, Peter A. Bigot
#
# 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... | jonfoster/pyxb-upstream-mirror | pyxb/xmlschema/structures.py | Python | apache-2.0 | 225,483 | [
"VisIt"
] | 3c7fd09ea71592bd71050c2f5ff58f5dec3fda05e7c879df610a4106a4767e97 |
#!/usr/bin/env python3
'''
this script has been taken from http://openglsamples.sourceforge.net/
modified to work with python3
it's an interesting example of use of openg with python
'''
import io, sys, numpy, math
from Lod import *
from Engine import *
from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.G... | viralex/openmm_engine | openmm_engine_test.py | Python | gpl-2.0 | 11,144 | [
"OpenMM"
] | 1bca8e463643a969dcc559f925178c0e25af76305ace3153ef4338fead8f9c5a |
# -*- coding: utf-8 -*-
# Filename: loadSbmlmodel.py
# Description:
# Author: Harsha rani
# Maintainer:
# Created: Fri Jan 29 11:43:15 2016 (+0530)
# Version:
# Last-Updated:
# By:
# Update #: 0
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
#
#
#
#
# Thi... | rahulgayatri23/moose-core | tests/python/test_sbml_support.py | Python | gpl-3.0 | 2,541 | [
"MOOSE"
] | ef7342c9f845b883811e62038e785ce1b74974051f7c439f42d12f855247f976 |
# Look at measures of patient health
from load_patient_data import load_per_visit_data
import numpy as np
import os
import cmsgpack
if __name__ == '__main__':
# Control whether to run expensive ops (or load cached versions)
count_fields = False
extract_fields = False
per_visit_data, per_visit_dict, p... | xpspectre/multiple-myeloma | analyze_diagnostics.py | Python | mit | 4,035 | [
"VisIt"
] | bea6f4acf05393c0be8670cff484c0662c0ec2c609fa205c487277b58fd2f431 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides classes to perform analyses of
the local environments (e.g., finding near neighbors)
of single sites in molecules and structures.
"""
import json
import math
import os
import warnings
... | gmatteo/pymatgen | pymatgen/analysis/local_env.py | Python | mit | 171,716 | [
"Gaussian",
"Jmol",
"VASP",
"pymatgen"
] | c6d9c4ff01eae04066f2bdacbdacd025e3ee57ed98ea72f4f6a4d805b9f956c4 |
#!/usr/bin/env python
import numpy as np
import psi4
import sys
sys.path.append('/home/seba') #Folder in which PySCF is installed
from pyscf import gto, scf, symm, ao2mo
mol = gto.Mole()
mol.verbose = 5
mol.output = 'out_h2o'
mol.atom = [
[8 , (0. , 0. , 0.)],
[1 , (0. , -0.757 , 0.587)],
[1 , (0. , ... | sunqm/psi4-cc | test/test_h2o.py | Python | gpl-2.0 | 1,000 | [
"Psi4",
"PySCF"
] | 33454354d8b3a898fc12b31aa74282bc23286a85113e376281bf99542ff30600 |
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import errno
import filecmp
import os.path
import re
import tempfile
import sys
import subprocess
try:
from collections.abc import MutableSet
except ImportErr... | arvenil/resume | node_modules/node-gyp/gyp/pylib/gyp/common.py | Python | mit | 22,784 | [
"VisIt"
] | 4d42b5c46a1069c59202a743a0dd5f04d84c397ec653cdf3b6d1c49b59f1cb27 |
import numpy as np
from astropy.table import Table
from astropy.modeling.models import Ellipse2D
from astropy.coordinates import SkyCoord
from astropy.io import fits
import astropy.units as u
from spectral_cube import SpectralCube
from basics import Bubble2D, Bubble3D
import glob
import matplotlib.pyplot as p
'''
Com... | e-koch/BaSiCs | Examples/THINGS/catalog_comparison.py | Python | mit | 6,301 | [
"Galaxy"
] | cb296003d88a46f853eae7bdc8724cea36c5e56b2ff3634c90efb81a0dafb766 |
from py2cytoscape.data.cyrest_client import CyRestClient
from py2cytoscape.data.util_network import NetworkUtil
import unittest
class UtilNetworkTests(unittest.TestCase):
def setUp(self):
self.client = CyRestClient()
# cleanup
self.client.network.delete_all()
def test_name2suid(self)... | idekerlab/py2cytoscape | tests/test_util_network.py | Python | mit | 882 | [
"Cytoscape"
] | 6bebee8a2014fe71b7809eac527af00e222d87830890751f4bfa7fca930ef854 |
from octopus.modules.es import testindex
from octopus.modules.epmc import client as epmc, models as epmcmod
from octopus.modules.oag import oagr
from octopus.modules.oag import client as oagclient
from service import workflow, models
import time, requests, json, os
from lxml import etree
post_counter = 0
EPMC_MD = os... | CottageLabs/oacwellcome | service/tests/unit/test_workflow.py | Python | apache-2.0 | 49,485 | [
"Octopus"
] | baa5fb01c5ec7af651af43ac453172acd1664ff8392cfe3dfdb4253db222e634 |
#!/usr/bin/env python
#
# Converts vtrfile info to griddata format
# See doco below
#
import os
import sys
import time
from optparse import OptionParser, OptionValueError
import vtk
# parse command line
p = OptionParser(usage="""usage: %prog [options] <vtrfile1> <vtrfile2> ... <vtrfileN> <gridfile>
Converts the vtrf... | amburan/moose | scripts/griddeddata_from_vtk.py | Python | lgpl-2.1 | 6,987 | [
"VTK"
] | e335fc71ecb3c63371fd2e7c931349f27867780e7b9ab11902568e087229d0e0 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | tensorflow/tensorflow | tensorflow/python/autograph/converters/list_comprehensions.py | Python | apache-2.0 | 2,185 | [
"VisIt"
] | 6be663e35e6083c25572c56640ca7fca8cccf91e9ebeea6c659b45231af8580e |
# encoding: utf-8
"""
Enable pygtk to be used interactively by setting PyOS_InputHook.
Authors: Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full licen... | sserrot/champion_relationships | venv/Lib/site-packages/IPython/lib/inputhookgtk.py | Python | mit | 1,020 | [
"Brian"
] | d47652271d690ee3b6cc84821fb39d862b94b3a0753916cbffa95bc1dbac5d8a |
"""
Non-linear activation functions for artificial neurons.
"""
import theano.tensor.nnet
# sigmoid
def sigmoid(x):
"""Sigmoid activation function :math:`\\varphi(x) = \\frac{1}{1 + e^{-x}}`
Parameters
----------
x : float32
The activation (the summed, weighted input of a neuron).
Retur... | cmdunkers/DeeperMind | PythonEnv/lib/python2.7/site-packages/lasagne/nonlinearities.py | Python | bsd-3-clause | 8,173 | [
"NEURON"
] | ed03f5877557e4ea74eee4970091d614ad6442acb9867fa134f129f368edcb91 |
# Principal Component Analysis Code :
from numpy import mean,cov,double,cumsum,dot,linalg,array,rank,size,flipud
from pylab import *
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import ro... | tapomayukh/projects_in_python | sandbox_tapo/src/skin_related/BMED_8813_HAP/Features/single_feature/best_kNN_PC/cross_validate_objects_kNN_PC_BMED_8813_HAP_scaled_method_II_shape.py | Python | mit | 4,361 | [
"Mayavi"
] | fd333c512d9798754bdf690b9c862cf39ab480f427cc3b26c6e9a3d04ffeeca9 |
#!/usr/bin/python2
#This program is for plotting FE vs Density
#Run this program from /deft/papers/fuzzy-fmt by entering (example):
# ./new-melting_kTvsDen_quickplot.py --kT 2 --fv 0 --gw 0.001 --nstart 0.1 --nstop 2.0 --nstep 0.1 --d carrots --dx 0.001 (optional)
import os
import argparse
import numpy as np
import... | droundy/deft | papers/fuzzy-fmt/new-melting_kTvsDen_quickscatterplot.py | Python | gpl-2.0 | 2,601 | [
"Gaussian"
] | 237fdbd5e773ac4d0c0b20a1a75b9dad1802867d54ddf6af527ac54cb4420be1 |
#!/usr/bin/python
# resultsFile is a library which allows to read output files of quantum
# chemistry codes and write input files.
# Copyright (C) 2007 Anthony SCEMAMA
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published... | scemama/resultsFile | resultsFile/Modules/gaussianFile.py | Python | gpl-2.0 | 34,205 | [
"Gaussian"
] | 922d1d63580c8d12dc2244c2ff76fe5561d2e28c267bd77e0429f64a23db867a |
from builtins import zip
from builtins import next
from past.builtins import basestring
from builtins import object
from future.utils import with_metaclass
import os.path
import re
from abc import ABCMeta, abstractmethod
from nineml.exceptions import (
NineMLSerializationError, NineMLMissingSerializationError, Nine... | INCF/lib9ML | nineml/serialization/base/visitors.py | Python | bsd-3-clause | 35,411 | [
"VisIt"
] | cfc743f294aa53d25b9d511061bc014c5e3282422fefa5aeb80eb70546bae838 |
#
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | google/joint_vae | joint_vae/joint_vae.py | Python | apache-2.0 | 8,048 | [
"Gaussian"
] | 07f450f5b4afdbef8ff2c933cbdf04c7ca9a667c84b3fe2851e47905af636bd8 |
#
# Copyright 2017 Russell Smiley
#
# This file is part of timetools.
#
# timetools 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.
#
#... | blueskyjunkie/timeTools | timetools/synchronization/clock.py | Python | gpl-3.0 | 4,034 | [
"Gaussian"
] | 509a1232bb1e15999032b298c12c818184da00b78654274a4043b278065869bc |
#! /usr/bin/env python
########################################################################
# File : dirac-stager-monitor-requests
# Author : Daniela Remenska
########################################################################
"""
Report the details of file staging requests, based on selection filters
Usa... | yujikato/DIRAC | src/DIRAC/StorageManagementSystem/scripts/dirac_stager_monitor_requests.py | Python | gpl-3.0 | 7,853 | [
"DIRAC"
] | 5bfc5a9f4bcdca75faa25d99a69a3822446195ac3ef573fa0d4669dfd9f7c0dd |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkImageRGBToHSV(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
vtk.... | nagyistoce/devide | modules/vtk_basic/vtkImageRGBToHSV.py | Python | bsd-3-clause | 489 | [
"VTK"
] | 1426b6a816ef378556a58ac3493abb1ee380549512f7a6e82fcc3a6623279b6e |
import collections
import sys
import os
from cdagline import DagLine
class BlastLine(object):
__slots__ = ('query', 'subject', 'pctid', 'hitlen', 'nmismatch', 'ngaps', \
'qstart', 'qstop', 'sstart', 'sstop', 'evalue', 'score')
def __init__(self, sline):
args = sline.split("\t")
... | asherkhb/coge | bin/dagchainer_bp/dagtools/evalue_adjust.py | Python | bsd-2-clause | 4,179 | [
"BLAST"
] | 4f34e55e904e0442ee4b455cecabe11fe56b14e1ab303ab1ea1ece1f48a42d29 |
# coding: utf-8
"""
Acceptance tests for licensing of the Video module
"""
from __future__ import absolute_import, unicode_literals
from common.test.acceptance.fixtures.course import XBlockFixtureDesc
from common.test.acceptance.pages.lms.courseware import CoursewarePage
from common.test.acceptance.pages.studio.overvi... | jolyonb/edx-platform | common/test/acceptance/tests/video/test_video_license.py | Python | agpl-3.0 | 4,978 | [
"VisIt"
] | 07163b8caaa6b5f2bb699bad00750558a6ac952556c7930a14f4e56202f268cd |
# -*- coding: utf-8 -*-
from __future__ import with_statement
import time
import py
import pytest
import os, sys
from py.path import local
import common
failsonjython = py.test.mark.xfail("sys.platform.startswith('java')")
failsonjywin32 = py.test.mark.xfail("sys.platform.startswith('java') "
"and getattr(os,... | Magicjarvis/py | testing/path/test_local.py | Python | mit | 32,877 | [
"VisIt"
] | 1976e6a61b9c10d2de7e2278a4b343ce29f51a5cb5eafcdc8bd5df5871524910 |
from __future__ import print_function, division
import collections
from sympy.core.add import Add
from sympy.core.basic import Basic, Atom
from sympy.core.expr import Expr
from sympy.core.function import count_ops
from sympy.core.logic import fuzzy_and
from sympy.core.power import Pow
from sympy.core.symbol import Sym... | aktech/sympy | sympy/matrices/matrices.py | Python | bsd-3-clause | 143,033 | [
"DIRAC",
"Gaussian"
] | 0374b541e6944de7d804d0268c1e27cc2e2e94d83315225494f68fe3c2c28249 |
import numpy as np
import os
from gpaw.io.hdf5_highlevel import File
from gpaw.mpi import world, rank
# write a slice of NumPy array
data = np.arange(10, dtype=float)
sub = data[::2]
if world.size > 1:
comm = world.get_c_object()
else:
comm = None
file = File('tmp.hdf5', 'w', comm=comm)
dset = file.create_d... | robwarm/gpaw-symm | gpaw/test/fileio/hdf5_noncontiguous.py | Python | gpl-3.0 | 870 | [
"GPAW"
] | 6bb092d9b44041e49f068d5be90fbf154b5ac912910b96c6aa140a0fff7c1d66 |
# model
newdocument("Hermes2D Mesh", "planar", "general", 0, 1, "disabled", 1, 0, 0, "steadystate", 1.0, 1.0, 0)
# boundaries
addboundary("Inner", "general_value", 0)
addboundary("Outer", "general_value", 10)
addboundary("Border", "general_derivative", 0)
# materials
addmaterial("Material", 0, 1)
# edges
addedge(-2,... | panek50/agros2d | data/scripts/hermes2d_mesh.py | Python | gpl-2.0 | 1,038 | [
"Mayavi"
] | f1cdac05c37d9a9c2809ae215cb544ece9d84327662958a27f19d3850a00500c |
import sys
import os.path
import scipy
import numpy
import partial_terms as pt
import kernels
from numpy.linalg.linalg import LinAlgError
from scg import SCG
D = 3
Q = 2
M = 10
N = {}
Y = {}
X_mu = {}
X_S = {}
Kmm = {}
Kmm_inv = {}
accumulated_statistics = {}
flat_global_statistics_bounds = {}
glo... | TianpeiLuke/GParML | scg-example.py | Python | bsd-3-clause | 13,880 | [
"Gaussian"
] | 760a8402bf9a154d91e760943079613a3ec5963444ada6dbba02712b885f21d9 |
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 29 16:26:41 2016
@author: hanbre
"""
from __future__ import print_function
import sys
import argparse
import netcdftime
import numpy as np
import pandas as pd
import xarray
import netCDF4
import matplotlib
from mpl_toolkits.basemap import Basemap, shiftgrid, addcyclic
im... | hansbrenna/NetCDF_postprocessor | tot_O3_calculator.py | Python | gpl-3.0 | 20,475 | [
"NetCDF"
] | 27f381c301a29e717e3bc1fed5a3104aa22d385204148683fe0877b320cf5e2f |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2007-2009 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Softw... | tiagocardosos/stoq | stoqlib/gui/slaves/paymentconfirmslave.py | Python | gpl-2.0 | 20,461 | [
"VisIt"
] | b28791056be3a26d6f47647b34cf883d80ffe9831cec96123b69edf5a6669f0a |
"""
Tests for discussion pages
"""
import datetime
from uuid import uuid4
from nose.plugins.attrib import attr
from pytz import UTC
from common.test.acceptance.tests.discussion.helpers import BaseDiscussionTestCase
from common.test.acceptance.tests.helpers import UniqueCourseTest
from common.test.acceptance.pages.lm... | louyihua/edx-platform | common/test/acceptance/tests/discussion/test_discussion.py | Python | agpl-3.0 | 62,064 | [
"VisIt"
] | 8f5f0eed774df37bf97a03b8d50b3bf021d3200987f99b012677014126d367e4 |
"""pyci.methods.utils: All of the interfaces to the methods and their
shared helper functions.
"""
from __future__ import print_function
from __future__ import division
import itertools
from functools import reduce
import scipy as sp
import numpy as np
from pyscf import scf, ao2mo
# pylint: disable=invalid-name
... | shivupa/pyci | methods/utils.py | Python | gpl-3.0 | 33,622 | [
"PySCF"
] | b4137c2edbedc91803802def5a6f1cedb07f7621e7f2a99168c81271729365e6 |
# -*- coding: utf-8 -*-
# (c) 2013 Marcos Dione <mdione@grulic.org.ar>
# This file is part of ayrton.
#
# ayrton 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... | StyXman/ayrton | ayrton/castt.py | Python | gpl-3.0 | 23,971 | [
"VisIt"
] | c43ae520817488337e06d535d7919a39b25c0994f925e123a5f475fc85a0b6fb |
import pytest
from .addons import hardware_nvidia_gpu, using_dftd3, using_gcp, using_cppe
import json
import qcengine as qcng
from qcengine.testing import using
import psi4
pytestmark = pytest.mark.quick
using_ambit = pytest.mark.skipif(psi4.addons("ambit") is False,
reason="Psi4 no... | CDSherrill/psi4 | tests/pytests/test_addons.py | Python | lgpl-3.0 | 47,936 | [
"CFOUR",
"GAMESS",
"Molpro",
"Psi4",
"Q-Chem"
] | f5e15aa17fea478674ef3e6e57866e5b53177db19e52f90c307bd509e1634f81 |
# $Id$
#
# Copyright (C) 2006-2011 Greg Landrum
# All Rights Reserved
#
import os
from rdkit.six import iteritems
from rdkit.Chem.Draw.MolDrawing import MolDrawing,DrawingOptions
from rdkit.Chem.Draw.rdMolDraw2D import *
def _getCanvas():
useAGG=False
useCairo=False
useSping=False
Canvas=None
if not os.envi... | soerendip42/rdkit | rdkit/Chem/Draw/__init__.py | Python | bsd-3-clause | 11,955 | [
"RDKit"
] | f9dae8bd319a849c32d2bb1ea63d96037547889bda139c60e2acff2392d80994 |
import os
import tempfile
import unittest
from pyepw.epw import HolidaysOrDaylightSavings, Holiday, EPW
class TestHolidaysOrDaylightSavings(unittest.TestCase):
def setUp(self):
self.fd, self.path = tempfile.mkstemp()
def tearDown(self):
os.remove(self.path)
def test_create_holidays_or_d... | rbuffat/pyepw | tests/test_holidays_or_daylight_savings.py | Python | apache-2.0 | 1,852 | [
"EPW"
] | 8009779fec9ec6a0bd8b783b888dc37fcdcbb4dd866da1b85bb01fb29f0adf2d |
# Copyright 2017 Glen Harmon
# Source
# https://github.com/danielmiessler/SecLists/blob/master/Passwords/Common-Credentials/10k-most-common.txt
_COMMON_PASSWORDS = """password
123456
12345678
1234
qwerty
12345
dragon
pussy
baseball
football
letmein
monkey
696969
abc123
mustang
michael
shadow
master
jennifer
111111
20... | heyglen/sublime-network | lib/passwords/common_passwords.py | Python | gpl-3.0 | 73,202 | [
"Amber",
"BLAST",
"Bowtie",
"Brian",
"CASINO",
"COLUMBUS",
"CRYSTAL",
"Dalton",
"Desmond",
"ESPResSo",
"Firefly",
"Galaxy",
"Jaguar",
"MOOSE",
"Octopus",
"TINKER"
] | ee98fa91bb9a89299632cf21a1917e6f031f984402f5d400e7eac14977cae96d |
"""
Tool to enable the development of a GP model based on an AIMD
trajectory with many customizable options for fine control of training.
Contains methods to transfer the model to an OTF run or MD engine run.
Seed frames
-----------
The various parameters in the :class:`TrajectoryTrainer` class related to
"Seed frame... | mir-group/flare | flare/gp_from_aimd.py | Python | mit | 46,976 | [
"Gaussian"
] | e1a1f096fe79600d5fd02b696ead27d534ac75b653a99457f6595c16cefc6992 |
"""Dirac notation for states."""
from __future__ import print_function, division
from sympy import (cacheit, conjugate, Expr, Function, integrate, oo, sqrt,
Tuple)
from sympy.core.compatibility import u
from sympy.printing.pretty.stringpict import prettyForm, stringPict
from sympy.physics.quantum.q... | wolfram74/numerical_methods_iserles_notes | venv/lib/python2.7/site-packages/sympy/physics/quantum/state.py | Python | mit | 28,917 | [
"DIRAC"
] | 1216a8118e6937c052e4873aff8b202ee7ae82b80181431f84d81dd91a596d87 |
# coding=utf-8
# Copyright 2022 The Uncertainty Baselines 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 ap... | google/uncertainty-baselines | uncertainty_baselines/models/resnet50_rank1.py | Python | apache-2.0 | 14,778 | [
"Gaussian"
] | f224f7a30bc0288870c8baea372115dddadd28cee69f1c70bbf0cae5462481c9 |
# $Id$
#
# Copyright (C) 2002-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.
#
"""unit testing code ... | rvianello/rdkit | rdkit/Chem/EState/UnitTestEState.py | Python | bsd-3-clause | 5,007 | [
"RDKit"
] | 3cf85707cdeb0dac68bd4980817e1568c1cec460920057945c7f7f92b97c18e2 |
#!/usr/bin/python
import os, sys
import argparse
# Should just add ~/projects/moose/python to PYTHONPATH
from FactorySystem import ParseGetPot
# Import the presentation builder source code
from PresentationBuilder import base
if __name__ == '__main__':
# Create the argument parser
parser = argparse.ArgumentPars... | zzyfisherman/moose | python/PresentationBuilder/build.py | Python | lgpl-2.1 | 707 | [
"MOOSE"
] | 7db3e1ed0bb674c350c7670513b1c47a30f7e543ac103062016e8e2a908af6d0 |
import os, imp, sys
from cffi import FFI
ffi = FFI()
import numpy as np
import operator
ffi.cdef('''
/* from randomkit.h */
//#define RK_STATE_LEN 624
typedef struct rk_state_
{
unsigned long key[624];
int pos;
int has_gauss; /* !=0: gauss contains a gaussian deviate */
double gauss;
/* The rk_st... | NextThought/pypy-numpy | numpy/random/mtrand.py | Python | bsd-3-clause | 152,326 | [
"Gaussian"
] | f0a09fe68c370f7007c6f0e3dd3a40642fc79d864d4e17831045882fc728aecf |
# $HeadURL$
__RCSID__ = "$Id$"
import GSI
requiredGSIVersion = "0.6.2"
if GSI.version.__version__ < requiredGSIVersion:
raise Exception( "pyGSI is not the latest version (installed %s required %s)" % ( GSI.version.__version__, requiredGSIVersion ) )
GSI.SSL.set_thread_safe()
nid = GSI.crypto.create_oid( "1.2.42.4... | marcelovilaca/DIRAC | Core/Security/__init__.py | Python | gpl-3.0 | 972 | [
"DIRAC"
] | 7083790a8c9dad575e114354f816d3e3d8a2cfb0c4b2c988fb33ff914f1de8b4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.