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 check_grad import check_grad
from utils import *
from logistic import *
import matplotlib.pyplot as plt
def run_logistic_regression(hyperparameters):
# TODO specify training data
train_inputs, train_targets = load_train()
valid_inputs, valid_targets = load_valid()
# N is number of examples; M i... | ouyangyike/Machine-Learning-and-Data-Mining | Logistic Regression/logistic_regression_rate1.py | Python | mit | 6,096 | [
"Gaussian"
] | 47e5f34133cd4891c63fee5ba7c1167132460991072197c65b5f6a2288af3847 |
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Copyright (c) 2015 Eric Pascual
#
# 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 w... | ensonic/ev3dev-lang-python-1 | ev3dev/ev3.py | Python | mit | 6,244 | [
"Amber"
] | 16933750f705d461912d55847c644a5f94c5091802d214555b0803f967690ee6 |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | gregcaporaso/scikit-bio | skbio/stats/distance/_mantel.py | Python | bsd-3-clause | 19,157 | [
"scikit-bio"
] | 175023a93857d95e350ec281e7f99fec06ec13c5e9d6bc325c701b6b0225dc8e |
import pytest
from .addons import using_networkx
from .utils import *
import math
import numpy as np
import qcelemental as qcel
import psi4
from psi4.driver import qcdb
pytestmark = pytest.mark.quick
def hide_test_xtpl_fn_fn_error():
psi4.geometry('He')
with pytest.raises(psi4.UpgradeHelper) as e:
... | CDSherrill/psi4 | tests/pytests/test_misc.py | Python | lgpl-3.0 | 3,413 | [
"Psi4"
] | 41fda16feb9d56551027f23a48d9042f8cb078ff7cd84632652fab6878797710 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/topology/test_lammpsdata.py | Python | gpl-2.0 | 4,366 | [
"LAMMPS",
"MDAnalysis"
] | fa607b44fdee368cdd8a4dccb4a7cd7ea531fa89d55d9195041fe6a319842c04 |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'misorientationUI.ui'
#
# Created by: PyQt4 UI code generator 4.12.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromU... | mompiou/misorientation | misorientationUI.py | Python | gpl-2.0 | 40,179 | [
"CRYSTAL"
] | 38b24437e480f908b87ee9410d746a531d9b6c30fae64f0a258906ff64a6961c |
import pymol
import sys
file1 = "3NXY.pdb"
pymol.finish_launching()
pymol.cmd.load(file1)
| rishiraj824/PymolDSA | extrastuff/files1.py | Python | gpl-3.0 | 104 | [
"PyMOL"
] | 5dbf2b6a7848e5840d7de55d7357826532c7e1138f091874d4c9e2fc66dc7c7b |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes 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 appli... | krzyzacy/kubernetes | hack/boilerplate/boilerplate.py | Python | apache-2.0 | 7,404 | [
"VisIt"
] | 05c341f8036b6c14ee48ae2c537f1c566d3484d226ee22b0ce5ed5a07617e683 |
"""
tint.tracks
===========
Cell_tracks class.
"""
import copy
import datetime
import numpy as np
import pandas as pd
from .grid_utils import get_grid_size, get_radar_info, extract_grid_data
from .helpers import Record, Counter
from .phase_correlation import get_global_shift
from .matching import get_pairs
from .o... | mhpicel/tracking | tracking/core/tracks.py | Python | bsd-2-clause | 8,556 | [
"Gaussian"
] | db3718008ae959e487442ed79790e802eb89fa1b770e0fe5a0a3581b97a733da |
# -*- coding: utf-8 -*-
"""
pygments.lexers._asybuiltins
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This file contains the asy-function names and asy-variable names of
Asymptote.
Do not edit the ASYFUNCNAME and ASYVARNAME sets by hand.
TODO: perl/python script in Asymptote SVN similar to asy-list.pl but onl... | davy39/eric | ThirdParty/Pygments/pygments/lexers/_asybuiltins.py | Python | gpl-3.0 | 27,360 | [
"Gaussian"
] | 30a293f2ee6c21ef0af94441f13d7ac5ac8518532836234829e29c0f1b543803 |
# -*- coding: utf-8 -*-
# Copyright (C) 2012 VT SuperDARN Lab
# Full license can be found in LICENSE.txt
#
# 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
#... | MuhammadVT/davitpy | davitpy/pydarn/proc/music/music.py | Python | gpl-3.0 | 84,879 | [
"Gaussian"
] | 85c464d7c505b792ac453e539a627bbb6a5bdb655e7d119ba74b7b68df21241d |
# encoding: utf-8
import gtk
from gettext import gettext as _
import numpy as np
from ase.gui.widgets import pack, oops, AseGuiCancelException
import sys
import re
import time
class DummyProgressIndicator:
def begin(self, **kwargs):
pass
def end(self):
pass
class DefaultProgressIndicator(gt... | grhawk/ASE | tools/ase/gui/progress.py | Python | gpl-2.0 | 13,183 | [
"ASE",
"GPAW"
] | f4736f549538833470f27a11102a8704e622ee0b13ff71ce8c3442ff6e205057 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from urllib3.exceptions import SSLError
from txclib import utils, web
from txclib.log import set_log_level, logger
from txclib.parsers import tx_main_parser
from txclib.exceptions import AuthenticationError
# use pyOpenSSL if available
try:
import urllib3... | transifex/transifex-client | txclib/cmdline.py | Python | gpl-2.0 | 2,867 | [
"VisIt"
] | 6703b1297989095f70f42888c768e62281afe77744292a042aff7d23f7dbc027 |
"""
Determines whether a soldier can exit the vehicle, based on dragging a ball of set radius through
the vehicle. If no path that can fit the ball exists, the soldier cannot exit.
"""
import logging, os
import numpy as np
from scipy import ndimage
import data_io
## Define labels used for various ve... | pombredanne/metamorphosys-desktop | metamorphosys/META/analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/escape_routes_ball.py | Python | mit | 10,707 | [
"Mayavi"
] | 30dd34861fde53b59a7955ff88301726658bfd5f5e1850c7b74c408e01cf6b9c |
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | retrography/scancode-toolkit | src/commoncode/date.py | Python | apache-2.0 | 2,322 | [
"VisIt"
] | 72ed9458d3cef10ca1cee638fac156c32c61d344c73ded5d7aa33cab6c299974 |
import datetime
from django.core.management.base import NoArgsCommand
from django.contrib.sites.models import Site
from feedback.models import Feedback
class Command(NoArgsCommand):
help = 'Report all the feedbac that needs attention'
args = ''
def handle_noargs(self, **options):
pending = Feed... | Hutspace/odekro | mzalendo/feedback/management/commands/feedback_report_pending.py | Python | agpl-3.0 | 865 | [
"VisIt"
] | 986d200ca3f50824c641daa8d8bdc826d94b393f41cc7e3ec81b53dec89ae971 |
../../../../share/pyshared/orca/script_utilities.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/script_utilities.py | Python | gpl-3.0 | 51 | [
"ORCA"
] | 79d66d7dcad7db762d2eedddcf53fe7c9fa51b9d7f3f25d1eaa3196bee1dd474 |
#!/usr/bin/env python
#
# Copyright (c) 2014-2016 Apple Inc. All rights reserved.
# Copyright (C) 2015 Canon Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source cod... | Debian/openjfx | modules/web/src/main/native/Source/JavaScriptCore/Scripts/builtins/builtins_templates.py | Python | gpl-2.0 | 9,456 | [
"VisIt"
] | 16a8201b4993d15e2adff49a2b3d56b950de6d3284fa256efc1f0a78f8f8ff1e |
#
# Copyright (C) 2001 greg Landrum
#
""" unit testing code for the descriptor COM server
"""
from __future__ import print_function
import unittest
from rdkit import RDConfig
import numpy as np
try:
from win32com.client import Dispatch
except ImportError:
Dispatch = None
@unittest.skipIf(Dispatch is None, '... | rvianello/rdkit | rdkit/ML/Descriptors/UnitTestCOMServer.py | Python | bsd-3-clause | 1,919 | [
"RDKit"
] | 7e93fb3b93b96f6847fca7d38303b6453a2af8d80c0a26295d23d3df60938dff |
# -*- coding: utf-8 -*-
#
# Natural Language Toolkit: Snowball Stemmer
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Peter Michael Stahl <pemistahl@gmail.com>
# Peter Ljunglof <peter.ljunglof@heatherleaf.se> (revisions)
# Algorithms: Dr Martin Porter <martin@tartarus.org>
# URL: <http://nltk.org/>
# For li... | Reagankm/KnockKnock | venv/lib/python3.4/site-packages/nltk/stem/snowball.py | Python | gpl-2.0 | 145,962 | [
"ASE"
] | 28d631f015750260173b4129f6b8801860c57054511a56a395219721f70ab027 |
# Copyright 2015 Planet Labs, 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 wr... | planetlabs/datalake-ingester | setup.py | Python | apache-2.0 | 2,293 | [
"Brian"
] | 180715c1bcd36ea70eeae2054a1ba279e4819edc7a3c1c90980de79950889aa1 |
# Pizza.py toolkit, www.cs.sandia.gov/~sjplimp/pizza.html
# Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories
#
# Copyright (2005) Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
# certain rights in this software. This software is... | arielzn/lammps | python/examples/pizza/pdbfile.py | Python | gpl-2.0 | 9,430 | [
"LAMMPS"
] | 5939cab7e8ea7197a91dd5d895e7dc38a5f0d42513d7f8d3a4814827ceeb5ad6 |
__author__ = 'cmueller'
#Todo: Get rid of "GaussianBeams" import call which is a predecessor to pylase and no longer exists
import scipy.fftpack as spfft
import scipy.misc
import scipy.special
import numpy as np
import GaussianBeams.gaussBeamFunctions as gb
import warnings
def propagate(e0, d, scale=1, wvlnt=266e-9)... | chrisark7/pylase | pylase/fft_propagation.py | Python | gpl-3.0 | 5,424 | [
"Gaussian"
] | 3218d093f693653c4f22c1ae1e5b0c60d1cf234c96e9569266de61094a51d95f |
# -*- coding: utf-8 -*-
# @Author: YangZhou
# @Date: 2017-06-02 18:39:05
# @Last Modified by: YangZhou
# @Last Modified time: 2017-06-20 14:57:30
from __future__ import print_function
import os
import aces.config as config
from .inequality import inequality
import aces.tools as tl
from ase.io import read
from ace... | vanceeasleaf/aces | aces/runners/mdTc/query.py | Python | gpl-2.0 | 3,194 | [
"ASE",
"LAMMPS"
] | 8b6552da3f7c974344448b2bb73f0064f55d0df0991e3b97d9e643b53bd04b9a |
"""Hamiltonian systems encapsulating energy functions and their derivatives."""
from abc import ABC, abstractmethod
import numpy as np
from mici.states import cache_in_state, cache_in_state_with_aux
import mici.matrices as matrices
from mici.autodiff import autodiff_fallback
class System(ABC):
r"""Base class for... | matt-graham/hmc | mici/systems.py | Python | mit | 82,193 | [
"Gaussian"
] | e00077af2f11b77a0def7443c2434ee7cb0c776459be267d54f3731ae9ded9db |
from HotSpotterAPI import HotSpotterAPI
from PyQt4.Qt import QObject, pyqtSlot, QTreeWidgetItem, QDialog, QInputDialog
from pylab import find
from other.logger import logdbg, logerr, logmsg, func_log, hsl
import other.crossplat as crossplat
import other.messages as messages
import sys
import time
import os.path
import... | Erotemic/hotspotter | _graveyard/oldhotspotter/Facade.py | Python | apache-2.0 | 29,956 | [
"EPW"
] | 260a7c2b6dad15d3d09c2a8f87d988e66601cb4e5aff5bd0f4ae8ab25ecd4672 |
import numpy as np
from robo.maximizers.base_maximizer import BaseMaximizer
from robo.initial_design import init_random_uniform
class RandomSampling(BaseMaximizer):
def __init__(self, objective_function, lower, upper, n_samples=500, rng=None):
"""
Samples candidates uniformly at random and retur... | numairmansur/RoBO | robo/maximizers/random_sampling.py | Python | bsd-3-clause | 1,748 | [
"Gaussian"
] | 7557a447e760dbe7dd9456cfd520ce94e6e1ba1c2dff434ae0d52e6e4d6d8e9e |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import os
import sqlite3
import sys
from collections import OrderedDict, defaultdict
from functools import wraps
from warnings import warn
import numpy as np
import pyproj
import regex
from cf_units import Unit
from compliance_checker import cfutil
from c... | ocefpaf/compliance-checker | compliance_checker/cf/cf.py | Python | apache-2.0 | 220,751 | [
"NetCDF"
] | ce86a27b36af848e8e4a5a319b63e482b67b2a27bc4d104050a1cf1d4151a6f6 |
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 31 23:03:00 2015
Defines the data model for Random Acts of Pizza
@author: Rupak Chakraborty
"""
import pandas as pd
import numpy as np
import math
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble impo... | rupakc/Kaggle-Compendium | Random Acts of Pizza/PizzaCombinedModel.py | Python | mit | 8,053 | [
"Gaussian"
] | 91154f1746f5570a18ee04940383d4238830e0aaffd8deeba9240c6399200a3c |
"""
viscount.api.workflows
Workflow related endpoints
"""
from flask import Blueprint, request, jsonify
from ..forms import NewWorkflowForm, UpdateWorkflowForm
from ..services import workflows as _workflows, tasks as _tasks
from . import ViscountFormException, route
from ..models import Workflow
from ..core import d... | dacb/viscount | viscount/api/workflows.py | Python | bsd-2-clause | 2,786 | [
"Cytoscape"
] | 82aa08fd33182ab7bdbf935894f93ee6ec22fa5fb69812f44b5b279ace202882 |
#!/usr/bin/env python
# encoding: utf-8
#
# @Author: José Sánchez-Gallego
# @Date: Nov 1, 2017
# @Filename: test_spaxel.py
# @License: BSD 3-Clause
# @Copyright: José Sánchez-Gallego
from __future__ import absolute_import, division, print_function
import itertools
import os
import astropy.io.fits
import pytest
fro... | albireox/marvin | python/marvin/tests/tools/test_spaxel.py | Python | bsd-3-clause | 27,114 | [
"Galaxy"
] | 9c11c06255cbd372d046443fd6b0c6a467c4e49874db1e06df0509090513e459 |
from src.main.Node import Node
class Modifier(Node):
child = None
childNode = None
def __init__(self, string):
from src.main.NodeFactory import NodeFactory
self.string = string
string_without_sym = string.replace(self.symbol, "")
self.child = NodeFactory.fetch_part(string_... | charleshamel73/diceroller | src/modifier/Modifier.py | Python | mit | 514 | [
"VisIt"
] | da7af7537f0ea9e5e8d714d8606e7a124ed77658342413fcfc144343bc68cd00 |
from tcga_encoder.utils.helpers import *
from tcga_encoder.data.data import *
from tcga_encoder.definitions.tcga import *
#from tcga_encoder.definitions.nn import *
from tcga_encoder.definitions.locations import *
#from tcga_encoder.algorithms import *
import seaborn as sns
from sklearn.manifold import TSNE, locally_li... | tedmeeds/tcga_encoder | tcga_encoder/analyses/kmeans_from_z_space_global.py | Python | mit | 15,153 | [
"Amber"
] | 683d3a206285c7bbfcb9663b2a96d6dd9b3af4029a938511970b29b65f05ff77 |
"""
Swarmlinebot (Deprecated)
Swarmlinebot was an experiment in constructing a line by 'swarming', having the
bots compete for the privilege of being the next in line.
Stored for posterity.
NOTE: Deprecated. Superseded by LineBOT.
"""
from Kilobot import *
def load(sim):
# return Swarmlinebot(sim)
return... | celibertojr/Kbsim | Bots/original/Swarmlinebot.py | Python | gpl-3.0 | 8,002 | [
"VisIt"
] | ad5ddc81ae13ddeefa723ecb85ee3dc8b82951762d7ed945ae817b96ce90866b |
# -*- coding: utf-8 -*-
'''
Describe test for Django
@author: Laurent GAY
@organization: sd-libre.fr
@contact: info@sd-libre.fr
@copyright: 2015 sd-libre.fr
@license: This file is part of Lucterios.
Lucterios is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License ... | Diacamma2/financial | diacamma/accounting/tests_completed_entries.py | Python | gpl-3.0 | 75,447 | [
"Dalton"
] | ac18ef35c06f2f8061c3cbff0723af3ca02e2fb387036c12f657e0c96337d89a |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/view/controls/delegates/coloredfloatdelegate.py | Python | gpl-2.0 | 5,082 | [
"VisIt"
] | 85e6d1a0eb9307e842a77bdc3574216ad891cf7e06c99f6264721eda7ade72e2 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/core/ui/splashscreen.py | Python | gpl-2.0 | 2,744 | [
"Brian"
] | 00000bc982bd6581ba35c5fa9e46bc5f822f95ac49bc831e75fa68762490ca6c |
import functools
import logging
import threading
from galaxy.util import asbool, mask_password_from_url
from pulsar import manager_endpoint_util
from pulsar.client import amqp_exchange_factory
log = logging.getLogger(__name__)
TYPED_PARAMS = {
"amqp_consumer_timeout": lambda val: None if str(val) == "None" els... | galaxyproject/pulsar | pulsar/messaging/bind_amqp.py | Python | apache-2.0 | 5,259 | [
"Galaxy"
] | 4910fa08912ecf7a022c921939b59857dd3849248ed2128db0348270278ee02a |
import os
from json import dumps
from .destination import submit_params
from .setup_handler import build as build_setup_handler
from .job_directory import RemoteJobDirectory
from .decorators import parseJson
from .decorators import retry
from .util import copy
from .util import ensure_directory
from .util import to_ba... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/pulsar/client/client.py | Python | gpl-3.0 | 14,735 | [
"Galaxy"
] | c6cbec5743cdceadf2f6a3f3d1fd197341aa75e66edc514f0bb049d24f87541d |
# -*- coding: utf-8 -*-
#
# conftest.py
# spt_compute
#
# Author : Alan D Snow, 2017.
# License: BSD 3-Clause
import json
import os
from shutil import copytree, rmtree
import pytest
from spt_compute.imports.extractnested import ExtractNested
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
RAPID_EXE_PATH ... | erdc-cm/spt_ecmwf_autorapid_process | tests/conftest.py | Python | bsd-3-clause | 3,870 | [
"NetCDF"
] | 95e8231b5c6e1f6a7ddf49a655e8d0e89f6c46f82c2575790a1046b1754a8684 |
# fabricfile to deploy build
#
# depends on installation of fabric - pip install fabric virtualenv
#
# example invocation
# $ fab -H jenkins@uf04.seedscientific.com deploy
# $ fab -H ubuntu@52.0.138.67 deploy
# $ fab -H ubuntu@uf04.seedscientific.com deploy
from fabric.api import local, run, cd, put
## global variabl... | SeedScientific/polio | fabfile.py | Python | agpl-3.0 | 4,190 | [
"GULP"
] | 736124cb16664e740e83ee9a37dbbd8f83b2a9146f43021df71de4ef27451e25 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | kain88-de/mdanalysis | testsuite/MDAnalysisTests/core/test_residuegroup.py | Python | gpl-2.0 | 10,077 | [
"MDAnalysis"
] | 041b8f574e6e355f113de925f65c1d9a38e2d495f06b6519f0d4939fcb837803 |
import json
from django.conf import settings
from django.test import TestCase
from django.utils.importlib import import_module
from funfactory.urlresolvers import reverse
import mock
from nose.tools import ok_, eq_
from airmozilla.auth.browserid_mock import mock_browserid
from airmozilla.base import mozillians
from... | bugzPDX/airmozilla | airmozilla/auth/tests/test_views.py | Python | bsd-3-clause | 10,729 | [
"CASINO"
] | 7dd99d34784ee45136d761121916affd50f8655130fc6ea46ae9984c868100e1 |
import os
import sys
import json
import click
from soccer import leagueids
from soccer.exceptions import IncorrectParametersException
from soccer.writers import get_writer
from soccer.request_handler import RequestHandler
def load_json(file):
"""Load JSON file at app start"""
here = os.path.dirname(os.path.... | architv/soccer-cli | soccer/main.py | Python | mit | 7,275 | [
"VisIt"
] | 11c22c110d80f00e4e4af915739fc92224f3352ee7707a1e708b7adfdb0a608c |
import os
import m5
from m5.objects import *
m5.util.addToPath('../common')
spec_dist = os.environ.get('M5_CPU2006', '/dist/m5/cpu2006')
binary_dir = spec_dist
data_dir = binary_dir
current_pid = 100
# 400.perlbench
def perlbench():
process = Process(pid=current_pid)
process.cwd = binary_dir + '400.perlb... | KuroeKurose/gem5 | configs/common/cpu2006.py | Python | bsd-3-clause | 9,229 | [
"GAMESS",
"Gromacs",
"NAMD"
] | 33329f46a56b1a28d88e61fff575be484a8f193fefe426dc40d0fd3e51d1a051 |
"""
Translates vensim .mdl file to pieces needed by the builder module to write a python version of the
model. Everything that requires knowledge of vensim syntax should be in this file.
"""
import re
import parsimonious
from . import builder
from . import utils
import textwrap
import numpy as np
import os
def get_f... | SimonStrong/pysd | pysd/vensim2py.py | Python | mit | 29,615 | [
"VisIt"
] | be561aa5ef566fb3fdf71c4f4df953d147490a59cccf0779e1146e9aeaf166f2 |
# -*- coding: utf-8 -*-
# TAMkin is a post-processing toolkit for normal mode analysis, thermochemistry
# and reaction kinetics.
# Copyright (C) 2008-2012 Toon Verstraelen <Toon.Verstraelen@UGent.be>, An Ghysels
# <An.Ghysels@UGent.be> and Matthias Vandichel <Matthias.Vandichel@UGent.be>
# Center for Molecular Modeling... | molmod/tamkin | tamkin/test/test_examples.py | Python | gpl-3.0 | 6,629 | [
"Gaussian"
] | fe72a21826067987e849bfae6ac8f0fa040c41904e7c07d25b0a4cdadde4e8d6 |
import numpy as np
from numpy.random import seed
class AdalineSGD(object):
"""AdAptive LInear NEuron classifier.
Parameters
------------
eta : float
Learning rate (between 0.0 and 1.0)
n_iter : int
Passes over the training dataset.
Attributes
-----------
w_ : 1d-array
Weight... | PhenixI/machine-learning | 1_supervised_classification/6-Perceptron and Neural Networks/Perceptron_python/AdalineSGD.py | Python | gpl-2.0 | 3,075 | [
"NEURON"
] | 23af9e8ba1af8ca1d4acbda2f71615ac04c0b217d7ec500304843e385251da68 |
# Apache HTTP requests manipulation module
import requests
import json
import os
# The REST server url
REST_URL = 'https://dirac.ba.infn.it:9910'
###########################################
# Get the access token first
# GET request parameters
params = {'grant_type':'client_credentials',
'group':'gridit_us... | SuperDIRAC/TESTDIRAC | sample-script/rest/simplest.py | Python | gpl-3.0 | 2,775 | [
"DIRAC"
] | 71ddebc9fb3c668ddd231b56216d905ab084a598e5783171debb2f2b255d615b |
''' Module for the applications built for the COSMO project
Quim Ballabrera, May 2017
EGL, 06/2020:
small adjustments of text fonts
A heap variable MESSAGE has been introduce to store "print" messages
'''
import tkinter as tk
from tkinter import ttk
from tkinter import messagebox
from tkinter import... | quimbp/cosmo | modules/cosmo/blm.py | Python | mit | 21,313 | [
"NetCDF"
] | 08153c8a4c61b259f3ae398824941bac6f9dc4b6840af9749da642106f27d2f9 |
from collections import defaultdict
import json
import difflib
import re
import math
from mhapi import skills
from mhapi.model import SharpnessLevel, _break_find
WEAKPART_WEIGHT = 0.5
def floor(x):
return int(math.floor(x))
def raw_damage(true_raw, sharpness, affinity, monster_hitbox, motion):
"""
C... | bd4/monster-hunter-scripts | mhapi/damage.py | Python | mit | 27,751 | [
"BLAST"
] | eaadfa32d2fe995aaa02752aea9e1ea92abb9008cfe70fc046bd8ea974a13713 |
# this program corresponds to special.py
### Means test is not done yet
# E Means test is giving error (E)
# F Means test is failing (F)
# EF Means test is giving error and Failing
#! Means test is segfaulting
# 8 Means test runs forever
### test_besselpoly
### test_mathieu_a
### test_mathieu_even_coef
##... | asnorkin/sentiment_analysis | site/lib/python2.7/site-packages/scipy/special/tests/test_basic.py | Python | mit | 132,346 | [
"Elk"
] | 299245f565438e2de3860b54109c17224f18d9582c07c82cfbc82cf19c78f084 |
#! /usr/bin/env python
"""
Launches a ParaView visualization of a simulation.
User provides saved ParaView state file and output directory.
Usage:
.. code-block:: bash
visualize-output outputs my_visu_state.pvsm
Opens paraview visualization for state ``my_visu_state.pvsm`` where all pvd
files are read from ``o... | tkarna/cofs | scripts/visualize-output.py | Python | mit | 5,929 | [
"ParaView"
] | 91d79ca63e69ddf8187a1107fe093ca4d35d811fd3a8612093d6d81b016df544 |
# -*- coding: utf-8 -*-
#
# This file is part of INSPIRE.
# Copyright (C) 2016 CERN.
#
# INSPIRE 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... | jacenkow/inspire-next | inspirehep/modules/authors/views/holdingpen.py | Python | gpl-2.0 | 12,677 | [
"VisIt"
] | b734c35f83d6358a6d796d98db9e78edc7f4042cfb339c9963feeba7c695e70c |
from ...pages.studio.auto_auth import AutoAuthPage
from ...fixtures.course import CourseFixture
from ..helpers import UniqueCourseTest
from ...pages.studio.overview import CourseOutlinePage
from ...pages.studio.utils import verify_ordering
class StudioCourseTest(UniqueCourseTest):
"""
Base class for all Studi... | dsajkl/reqiop | common/test/acceptance/tests/studio/base_studio_test.py | Python | agpl-3.0 | 3,318 | [
"VisIt"
] | 4bbc21c91f52a43bbcc58abbc23311e55728633151d204eb8603abab803be343 |
"""
Student Views
"""
import datetime
import logging
import uuid
import json
import warnings
from collections import defaultdict
from urlparse import urljoin
from pytz import UTC
from requests import HTTPError
from ipware.ip import get_ip
from django.conf import settings
from django.contrib.auth import logout, authen... | hamzehd/edx-platform | common/djangoapps/student/views.py | Python | agpl-3.0 | 95,774 | [
"VisIt"
] | 29f6eec365f49c5ade7921f5ef486a80addab36f6af4260d9d94c9102a5541aa |
from behave import *
# Unique to Scenario: User logs out
@when('I logout')
def impl(context):
context.browser.find_link_by_text('Logout').first.click()
@then('I am no longer authenticated')
def impl(context):
#Try to visit my profile page
context.browser.visit(context.config.server_url + '/accounts/profi... | nlhkabu/connect | bdd/features/steps/logout.py | Python | bsd-3-clause | 479 | [
"VisIt"
] | bf38b6fd0e07fdbb9b74eb0dee3742752c5b24c2cf13701213f146eacc1c9206 |
#!/usr/bin/env python
def get_help_data_12576():
"""
Sensor Inventory help.
Data store of information to be presented when a help request is made for port 12576.
Returns a list of dictionaries associated with various requests supported on that port.
"""
help_data = \
[
{
... | asascience-open/ooi-ui-services | ooiservices/app/m2m/help_data_12576.py | Python | apache-2.0 | 23,871 | [
"NetCDF"
] | a4b2c04f70ace88de407058a6bdf9692db430db55af4fbc35ee2ddc80f8867e1 |
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Eric Larson <larson.eric.d@gmail.com>
# Oleh Kozynets <ok7mailbox@gmail.com>
# Guillaume Favelier <guillaume.favelier@gmail.com>
# jona-sassenhagen <jona.sassenhagen@gmail.com>
# Joan Massich <mailsik@gmail.com>
#... | Eric89GXL/mne-python | mne/viz/_brain/_brain.py | Python | bsd-3-clause | 132,116 | [
"Mayavi",
"VTK"
] | 9a533fe818a31c300f5d33851bd9e88e900ab8fcdde5c1f59c499bb52f8b1658 |
#!/usr/bin/env python
#
# vasp_raman.py v. 0.6.0
#
# Raman off-resonant activity calculator
# using VASP as a back-end.
#
# Contributors: Alexandr Fonari (Georgia Tech)
# Shannon Stauffer (UT Austin)
#
# URL: http://raman-sc.github.io
#
# MIT license, 2013 - 2016
#
import re
import sys
def MAT_m_VEC(m, v):
p = ... | raman-sc/VASP | vasp_raman.py | Python | mit | 13,862 | [
"VASP",
"phonopy"
] | 00b9e15a2a277299ae1093915bcd9cf6f4f70d26f47acd289055502bd1efcd0c |
#!/usr/bin/env python
########################################################################
# $HeadURL$
########################################################################
"""
Monitor the jobs present in the repository
"""
__RCSID__ = "$Id$"
import DIRAC
from DIRAC.Core.Base import Script
import os, sys
Scr... | Sbalbp/DIRAC | Interfaces/scripts/dirac-repo-monitor.py | Python | gpl-3.0 | 1,077 | [
"DIRAC"
] | 056890a44da204af635ca29515752634e243df5bb0f777a018c1820373969996 |
#!/usr/bin/env python
# Copyright 2001 by Brad Chapman. All rights reserved.
# Revisions copyright 2011-2013 by Peter Cock. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Tes... | updownlife/multipleK | dependencies/biopython-1.65/Tests/test_Location.py | Python | gpl-2.0 | 1,943 | [
"Biopython"
] | 14835f6a4805d86a122061c65c9f9de64430ff6b5b391bbd1b6ef0374285874b |
#!/usr/bin/python3
import argparse
import glob
import os
import time
import random
COLOURS = (b'\xFF\x00\x00', b'\x00\xFF\x00', b'\x00\x00\xFF', b'\xFF\xFF\x00', b'\xFF\x00\xFF', b'\x00\xFF\xFF')
def write_binary(driver_path, device_file, payload):
with open(os.path.join(driver_path, device_file), 'wb') as open... | lah7/openrazer | scripts/driver/firefly/test.py | Python | gpl-2.0 | 5,515 | [
"Firefly"
] | 7f7cfe0ddb8cdb049ffdc1465e0599203f680f303b51be070afaace2b75bd754 |
"""
Implements Autodock Vina's pose-generation in tensorflow.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
__author__ = "Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
import numpy as np
import tensorflo... | rbharath/deepchem | deepchem/models/tf_new_models/vina_model.py | Python | mit | 18,919 | [
"Gaussian",
"RDKit"
] | 8dd4af51fedca9fa06183e67ba664841ab91cf97c7d400796e73a6616785b91d |
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from past.utils import old_div
import numpy as np
#Script to get rough estimates of damage thresholds for optics components as specified on Thorlabs
#Source of code is the Thorlabs tutorial on Laser Induced Damage Thresholds... | nanophotonics/nplab | nplab/analysis/laser-damage-threshold-calculator.py | Python | gpl-3.0 | 3,938 | [
"Gaussian"
] | f2aef151c2ac816c59ddda6e296ca7978d92c706d67436349bec8141b334f48c |
#pylint: disable=missing-docstring
#################################################################
# DO NOT MODIFY THIS HEADER #
# MOOSE - Multiphysics Object Oriented Simulation Environment #
# #
# (c) 2010... | Chuban/moose | python/chigger/base/ChiggerResult.py | Python | lgpl-2.1 | 6,289 | [
"MOOSE"
] | 24c0f855f03896c309e1a14b5e00300534a497aec61deef5ed7a3a62ddfa83b3 |
# -*- coding: utf-8 -*-
#
# Copyright © 2012 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see winpython/__init__.py for details)
"""
WinPython Package Manager
Created on Fri Aug 03 14:32:26 2012
"""
from __future__ import print_function
import os
import os.path as osp
import shutil
import re
impo... | tequa/ammisoft | ammimain/WinPython-64bit-2.7.13.1Zero/python-2.7.13.amd64/Lib/site-packages/winpython/wppm.py | Python | bsd-3-clause | 32,732 | [
"VTK"
] | 37f5035cb1958dcf666e3daba4740a0b07fbcabb278a023091bc63009a9fa9b7 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
###############################################################################
# This little file is taken from layman )
# http://layman.sourceforge.net
#
# Copyright:
# (c) 2005 - 2009 Gunnar Wrobel
# (c) 2009 Sebastian Pipping
# (c)... | jauhien/g-elisp | g_elisp/version.py | Python | gpl-2.0 | 862 | [
"Brian"
] | e6b6a7f12228dd713df484a6298726aa3e1ca3d60815bb848fd045b6cfd74c07 |
from django.shortcuts import get_object_or_404, redirect
from django.views import generic
from django.core.urlresolvers import reverse, reverse_lazy
from django.core.exceptions import ObjectDoesNotExist
from django import http
from django.contrib import messages
from django.utils.translation import ugettext_lazy as _
f... | jinnykoo/christmas | src/oscar/apps/customer/views.py | Python | bsd-3-clause | 25,451 | [
"VisIt"
] | 5e22e52b401b1f943f079d121bfa54e15cd20e13b81897669afe756b14a24add |
"""Tests for dials.damage_analysis"""
from __future__ import annotations
import os
import procrunner
import pytest
from dxtbx.serialize import load
from dials.array_family import flex
from dials.command_line.damage_analysis import PychefRunner, phil_scope, run
def test_damage_analysis_dials_data(dials_data, run_i... | dials/dials | tests/command_line/test_damage_analysis.py | Python | bsd-3-clause | 3,701 | [
"CRYSTAL"
] | ce926b9862e9d31555d6bd191c1fa1328f3721a8d1be065174b70e1fed08a5c8 |
#!/usr/bin/env python
# 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.
"""Makes sure that all files contain proper licensing information."""
import optparse
import os.path
import subprocess
import sys... | aYukiSekiguchi/ACCESS-Chromium | tools/checklicenses/checklicenses.py | Python | bsd-3-clause | 13,969 | [
"Galaxy"
] | d36a22e4081ebbb85b647a0c4426fc858229c613b0f805b7a829965dcdc4e02f |
import os
import tarfile
from flyingpigeon.subset import countries, countries_longname
from flyingpigeon.log import init_process_logger
from pywps.Process import WPSProcess
import logging
logger = logging.getLogger(__name__)
class climatefactsheetProcess(WPSProcess):
def __init__(self):
WPSProcess.__in... | KatiRG/flyingpigeon | flyingpigeon/processes/wps_climatefactsheet.py | Python | apache-2.0 | 6,448 | [
"NetCDF"
] | 2052e271d6a138ceeda30c4d49b13bbb256ab839bfc9540eac70807f66698203 |
from setuptools import setup
setup(name='gparse',
version='0.0.1',
description='Simple library for handling Gaussian vibrational analysis data.',
url='https://github.com/SeanMcGrath/gparse',
author='Sean McGrath',
author_email='srmcgrat@umass.edu',
license='MIT',
packages=['gp... | SeanMcGrath/raman | setup.py | Python | mit | 350 | [
"Gaussian"
] | d274b65983074d2afd321c2be8e34bfdae36e019cb3d9db03c69c66d705796f6 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/bug_1117098 | openlp/plugins/songs/lib/ewimport.py | Python | gpl-2.0 | 14,242 | [
"Brian"
] | 0141d67f3e65e4cc5f6921dc27a5430790461e2e07618c61ef8a80c48446d30f |
# -*- coding: utf-8 -*-
#%% visualize latent space, for latent dimension larger than 2
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm
from keras.datasets import mnist
from VAE import VAE_net
#%% load test data
img_size = (28, 28, 1)
_, (x_test, y_test) = mnist.load_data()
x_test ... | LiangShe/macaque_generator | vae_mnist/visualize.py | Python | mit | 2,927 | [
"Gaussian"
] | 55bf755e8458bad59ea167698bfdd63b4fae991eafd3de7c369f819d5a4e2685 |
# -*- coding: utf-8 -*-
{
"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.": 'この地域を地理的に指定するロケーション。これはロケーションの階層構造のうちの一つか、ロケーショングループの一つか、この地域の境界に面するロケーションです。',
"Acronym of the organ... | sahana/Turkey | languages/ja.py | Python | mit | 353,215 | [
"VisIt"
] | aa8597cc01ff719bfa02c341a8103c40dc73993f3b6c7b5049b89c5b4e95cfd8 |
from flask import Flask, render_template, session, request, redirect
import random
import datetime
app = Flask(__name__)
app.secret_key = 'gold_game_gg'
@app.route('/')
def index():
if not 'gold' in session:
session['gold'] = 0
if not 'activities' in session:
session['activities'] = []
ret... | jiobert/python | Preston_Kellen/Assignments/Ninja Gold/server.py | Python | mit | 1,474 | [
"CASINO"
] | bb0482ee3ed741e0325d4a25ea4cf2403cfa48195f13aea5e7aa75e3036620ad |
#!/usr/bin/env python
from __future__ import print_function
import timeit
import argparse
import os
import subprocess
from subprocess import Popen, PIPE
import sys
import shutil
import multiprocessing
__version__ = "1.5.1"
###
# CLASSES
###
class Logger(object):
""" A convenient logging object
Prints output... | GabeAl/NINJA-OPS | bin/ninja.py | Python | isc | 27,509 | [
"Bowtie"
] | d8f1cd0f36c9d2980445af5046982c44c539dbce9170c35003f94ae877596960 |
import numpy
import chainer
from chainer.backends import cuda
from chainer import function_node
from chainer import utils
from chainer.utils import argument
from chainer.utils import type_check
class Gaussian(function_node.FunctionNode):
"""Gaussian sampling function.
.. note::
In forward calculat... | okuta/chainer | chainer/functions/noise/gaussian.py | Python | mit | 4,588 | [
"Gaussian"
] | 34636396c4eb3dbeda689882b62e9eab1d40cd40ace00ff618eb2c34c52c8892 |
## \file
## \ingroup tutorial_roofit
## \notebook
## Addition and convolution: setting up an extended maximum likelihood fit
##
## \macro_code
##
## \date February 2018
## \authors Clemens Lange, Wouter Verkerke (C++ version)
import ROOT
# Set up component pdfs
# ---------------------------------------
# Declare obs... | root-mirror/root | tutorials/roofit/rf202_extendedmlfit.py | Python | lgpl-2.1 | 3,835 | [
"Gaussian"
] | 65a6a0feff94443106a82320a4e447c76e3049c93b9fa74ada13770804e86617 |
import ovito
from ovito.io import *
from ovito.vis import *
import os
import glob
import shutil
import sys
import re
print("Hello, this is OVITO %i.%i.%i" % ovito.version)
rs = RenderSettings(
filename = '/tmp/image.png',
size = (320,240),
background_color = (1.0, 1.0, 1.0)
)
rs.renderer.antialiasing = Fa... | jorgehog/Deux-kMC | scripts/felix_front/ovitoviz.py | Python | gpl-3.0 | 1,489 | [
"OVITO"
] | 9dbb638562063441fe6f6706ec8aa67df96ae85f347897dfd20479d714d11382 |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | tgroh/beam | sdks/python/apache_beam/runners/runner.py | Python | apache-2.0 | 13,575 | [
"VisIt"
] | 7089d9545ab6bbb2724262e50999b2e9ae7fadbb604ee5e47302cd00cb7a4479 |
#!/usr/bin/env python
"""
dirac-rss-policy-manager
Script to manage the Policy section within a given CS setup of a given dirac cfg file.
It allows you to:
- view the policy current section (no option needed)
- test all the policies that apply for a given 'element', 'elementType' or element '... | andresailer/DIRAC | ResourceStatusSystem/scripts/dirac-rss-policy-manager.py | Python | gpl-3.0 | 12,984 | [
"DIRAC"
] | 2d7c322c454ca10cdbe5a00a5312a9175e95731f77c395515368734d93e35788 |
import os, logging, threading, time
from Queue import Queue, Empty
from galaxy import model
from paste.deploy.converters import asbool
import pkg_resources
try:
pkg_resources.require( "DRMAA_python" )
DRMAA = __import__( "DRMAA" )
except:
DRMAA = None
log = logging.getLogger( __name__ )
if DRMAA is not... | volpino/Yeps-EURAC | lib/galaxy/jobs/runners/sge.py | Python | mit | 13,219 | [
"Galaxy"
] | 611922dbe7704d32150352d4f0fd0708fa5f158f1e2e370a3125cad3ab4fb815 |
"""
NetCDF reader/writer module.
This module is used to read and create NetCDF files. NetCDF files are
accessed through the `netcdf_file` object. Data written to and from NetCDF
files are contained in `netcdf_variable` objects. Attributes are given
as member variables of the `netcdf_file` and `netcdf_variable` objects... | WarrenWeckesser/scipy | scipy/io/netcdf.py | Python | bsd-3-clause | 39,128 | [
"NetCDF"
] | 79593acfe630b75c1a5d9e9d3183393bc87e3f1dceb9c2cfd253b5d468411ea4 |
# Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz ... | tapomayukh/projects_in_python | rapid_categorization/cross-validation check/sample_length_effect/hmm_force_variable_length.py | Python | mit | 13,992 | [
"Gaussian",
"Mayavi"
] | a42edf2a9a443dd5daf28fa8cff99669e68d453f307b61d6061b6d93cf68eb43 |
"""The basic dict based notebook format.
The Python representation of a notebook is a nested structure of
dictionary subclasses that support attribute access
(.ipstruct.Struct). The functions in this module are merely
helpers to build the structs in the right form.
Authors:
* Brian Granger
"""
#--------------------... | maximsch2/SublimeIPythonNotebook | external/nbformat3/nbbase.py | Python | gpl-3.0 | 6,710 | [
"Brian"
] | e4613267b00c823688fdfe240a7faacf3d3ef5cfda3921161da2540657a47635 |
# -*- coding: utf-8 -*-
import yaml
import urllib
from math import isnan
from flatten_dict import flatten
from boltons.iterutils import remap
from flask import current_app, render_template, url_for, request
from flask_mongoengine import Document
from marshmallow import ValidationError
from marshmallow.fields import St... | materialsproject/MPContribs | mpcontribs-api/mpcontribs/api/projects/document.py | Python | mit | 12,238 | [
"VisIt"
] | 5998b6044584f96079797e0e2bf314cf26d8fa2c5616500df78a301bd9cdfd11 |
# _*_ coding:utf-8 _*_
# =======
# Imports
# =======
# Static Method Hook
import inspect
# And Now For Something Completely Different
import os
import sys
import re
from time import sleep
import pkg_resources
# Config File and Flags
if sys.version_info[0] == 2:
import config
CONFIG = config.CONFIG
else:
... | kepoorhampond/irs | irs/utils.py | Python | gpl-3.0 | 14,689 | [
"VisIt"
] | 6e005b538078687961de2119d215c0cf2e4276e0834d998a8dd73b448eb803f9 |
#
# This source file is part of appleseed.
# Visit https://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2016-2018 Esteban Tovagliari, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaini... | appleseedhq/appleseed-maya | scripts/appleseedMaya/AETemplates/appleseedSkyDomeLightTemplate.py | Python | mit | 2,507 | [
"VisIt"
] | ee873d8c3b01468adf7023d2df735ba316f3815093c899e543f414ae93b85e4b |
# -*- coding: utf-8 -*-
try:
# Python 2.7
from collections import OrderedDict
except:
# Python 2.6
from gluon.contrib.simplejson.ordered_dict import OrderedDict
from gluon import current
from gluon.html import *
from gluon.storage import Storage
from gluon.validators import IS_NOT_EMPTY
from s3.s3fie... | code-for-india/sahana_shelter_worldbank | private/templates/Philippines/config.py | Python | mit | 128,438 | [
"Amber"
] | 85b7c76e9d9cc9c080dd7437ccf78ccc6c6d779533907fe14a47e9f57d074a01 |
"""Tests for user-friendly public interface to polynomial functions. """
from sympy.polys.polytools import (
Poly, PurePoly, poly,
parallel_poly_from_expr,
degree, degree_list,
LC, LM, LT,
pdiv, prem, pquo, pexquo,
div, rem, quo, exquo,
half_gcdex, gcdex, invert,
subresultants,
resu... | ichuang/sympy | sympy/polys/tests/test_polytools.py | Python | bsd-3-clause | 96,007 | [
"Gaussian"
] | e31c9556ad9c060626e954abd8f175a8de67fc620d7d93550391ae5964f96474 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module is provides funcions for dict lists and functions processing
"""
import logging
logger = logging.getLogger(__name__)
import collections
import inspect
import copy
import numpy as np
def get_default_args(obj):
if ("__init__" in dir(obj)):
if inspec... | mjirik/imtools | imtools/dili.py | Python | mit | 8,160 | [
"VisIt"
] | cdae915d56662301e2ba4c2e0c2cbef0e3a51ee44fb6e97ec65e7be3822f50f4 |
#!/usr/bin/env python
# -*-python-*-
#
# Copyright (C) 1999-2013 The ViewCVS Group. All Rights Reserved.
#
# By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found at the top level of the ViewVC
# distribution or at http://viewvc.org/license-1.html.
#
# For mor... | marcellodesales/svnedge-console | svn-server/lib/viewvc/query.py | Python | agpl-3.0 | 14,535 | [
"VisIt"
] | b021b9575618296e11ae6a82704eb02b0149d9a689f498d1c71e8bf8301e19dd |
"""
This program tests the correct addition and removal of components to the InstalledComponentsDB,
as well as the components
CLI functions are used to ensure the test is as similar as possible to a real user-to-cli interaction
This test assumes that there is a DIRAC master server running on the local machine
This test... | yujikato/DIRAC | tests/Integration/Framework/NotRun_Test_ComponentInstallUninstall.py | Python | gpl-3.0 | 9,118 | [
"DIRAC"
] | fd7340540ebc3458e2c17e8814d2e0c6106fbf4d3c5ae4544c764913595e8f07 |
#!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 1: Fundamental Algorithms
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2013 by Jeff Heaton
Licensed under the Apache License, Version 2... | trenton3983/Artificial_Intelligence_for_Humans | vol1/python-examples/examples/example_linear_regression.py | Python | apache-2.0 | 3,831 | [
"VisIt"
] | f53091e572796597153141b616ad1e4d32785872dff6bc1e5b4f698f5729821e |
"""
setup.py
~~~~~~~~~~~~~
:copyright: (c) 2016 Sander Bollen
:copyright: (c) 2016 Leiden University Medical Center
:license: MIT
"""
from os.path import abspath, dirname, join
from setuptools import setup
readme_file = join(abspath(dirname(__file__)), "README.rst")
with open(readme_file) as desc_handle:
long_des... | sndrtj/afplot | setup.py | Python | mit | 1,007 | [
"pysam"
] | 57c3efb990dc587df02311d8ef7d9e797038dd6b47d783181986f5048c4a935f |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import copy
import os
import os.path
import spack.util.environment
class Cp2k(MakefilePackage, CudaPackage):
"""CP2K... | LLNL/spack | var/spack/repos/builtin/packages/cp2k/package.py | Python | lgpl-2.1 | 27,459 | [
"CP2K",
"CRYSTAL",
"Wannier90"
] | c90a877169553a64099762d2d0d0f4aa98b0023b8d8ee07653b390d00c36652d |
# -*- coding: utf-8 -*-
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '\\ " update\\ " è un\' espressione facoltativa come " field1=\'newvalue\'". Non è possibile aggiornare o eliminare i risultati di una JOIN',
'# of International Staff': '# di Pe... | flavour/ifrc_qa | languages/it.py | Python | mit | 392,499 | [
"VisIt"
] | 2c316e56d0fd838fd4ee8ba11e4292998ee2a199e6cd0b5776af7c954d031059 |
# Copyright 2013 OpenStack Foundation
# 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 requ... | stevelle/glance | glance/api/v2/image_members.py | Python | apache-2.0 | 14,639 | [
"Brian"
] | 8871a4c618aa9425317eb0185e7a2760a5821c48d2e3541efe051bec5e56edce |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.