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 __future__ import unicode_literals
import random, json
import frappe
from frappe.utils import nowdate, add_days
from erpnext.demo.setup.setup_data import import_json
from erpnext.demo.domains import data
from six import iteritems
def setup_data():
setup_item()
setup_item_price()
frappe.db.commit()
frappe.cl... | libracore/erpnext | erpnext/demo/setup/retail.py | Python | gpl-3.0 | 1,893 | [
"Galaxy"
] | b0045b90030436ffa8e281252edeb875622afcfcc8a2da7705c23acbab93f613 |
#!/usr/bin/env python3
import argparse
import os
import sys
import bioannotation
import biocodeutils
import biothings
import biocodegff
import math
import sqlite3
import re
from collections import defaultdict
## constants
DEFAULT_PRODUCT_NAME = "hypothetical protein"
## example invocation:
# parse_ergatis_euk_functi... | jonathancrabtree/biocode | sandbox/jorvis/parse_ergatis_euk_functional_pipeline.py | Python | gpl-3.0 | 40,976 | [
"BLAST"
] | 8256570819f0aec0e001376cdb10d192b0c8f9758b12abb55c74a80cbf26bc29 |
from __future__ import division
from math import exp
import numpy
import neo
from quantities import ms
import pyNN as pyNN
from pyNN.utility import get_simulator, init_logging, normalized_filename
from pyNN.utility.plotting import DataTable
from pyNN.parameters import Sequence
np = numpy
import scipy.io
# TEMPLATE FRO... | darioml/fyp-public | stdp/ball_trajectories.py | Python | gpl-2.0 | 6,477 | [
"NEURON"
] | 79f881cf1d68b83dba80c38d60478e8f91e29d425dca140ec9e85cd3585e9b11 |
# coding=utf8
#
# Copyright 2013 Dreamlab Onet.pl
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation;
# version 3.0.
# This library is distributed in the hope that it will be useful,
# bu... | tikan/rmock | src/rmock/runners/pop3/runner.py | Python | lgpl-3.0 | 3,311 | [
"VisIt"
] | 23936440f5062b6f26806f05bab67439932aaf16653de1c091887f0248234d50 |
"""
Performance test created using multi-mechnize to analyze time
for update processing with MySQL.
"""
from __future__ import print_function
import random
import string
import time
from DIRAC.WorkloadManagementSystem.DB.JobDB import JobDB
def random_generator(size=6, chars=string.ascii_letters):
return ''.join(r... | fstagni/DIRAC | tests/Performance/MySQLJobMonitoring/test_scripts/update.py | Python | gpl-3.0 | 881 | [
"DIRAC"
] | 78ed233ae28d31f33e70e3bd4d0dedd21b6ee34090bb0c0674624c549542f978 |
#!/usr/bin/env python
#
# Copyright 2008 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your option)
... | trnewman/VT-USRP-daughterboard-drivers | gr-gpio/src/python/gpio_usrp_siggen.py | Python | gpl-3.0 | 8,089 | [
"Gaussian"
] | 1601bcf2c3761a84a5b10b029caf62727de4f251fd22c6bd508238f21808bb7c |
##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | TheTimmy/spack | var/spack/repos/builtin/packages/namd/package.py | Python | lgpl-2.1 | 5,455 | [
"NAMD"
] | 36edc027211088d962a5665c11d86db83de39762b5305c6c7aa58189545bfcec |
import logging
import wx
from service.fit import Fit
from gui.bitmap_loader import BitmapLoader
import gui.globalEvents as GE
from gui.preferenceView import PreferenceView
from service.settings import EOSSettings
import gui.mainFrame
from wx.lib.intctrl import IntCtrl
logger = logging.getLogger(__name__)
_t = wx.Ge... | pyfa-org/Pyfa | gui/builtinPreferenceViews/pyfaEnginePreferences.py | Python | gpl-3.0 | 7,079 | [
"CRYSTAL"
] | e5685022bd0cb49bba48b44fd4f0754d6f3556da9f055a2e81b0a6966bb66913 |
'''
Created on 2013-06-01
@author: brian
'''
from random import randint
class Attack(object):
range = 1
damage = 2, 5
heal = False
name = "Attack"
icon = "sword"
cooldown = 0
def __init__(self, caster, location, item):
self.caster = caster
self.target = location
self.item = item
self.range = s... | Greymerk/python-rpg | src/abilities/attack.py | Python | gpl-3.0 | 996 | [
"Brian"
] | 0ba8e0697ac377a706f94a38311eae8dc771fc0e32488a0db61826180da8de97 |
#!/bin/python
import os, shutil
import numpy as np
import matplotlib.pyplot as plt
import np_helper as nph
# plot 3d points
def plot_pts3d(pts3d, visible_status):
fig_xz = plt.figure()
plt.xlabel('X (m)', fontsize=14)
plt.ylabel('Z (m)', fontsize=14)
plt.axis('equal')
plt.plot(pts3d[0,:], pts3d[2... | ivankreso/stereo-vision | scripts/stereo_model_sba/generate_features.py | Python | bsd-3-clause | 10,443 | [
"Gaussian"
] | 5cbc889cf8961e64c5074179453388529cccaa0c95c8baefcbcfbc1e712bfd1d |
# Copyright (C) 2011 by Brandon Invergo (b.invergo@gmail.com)
# 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.
import re
line_floats_re = re.compile("-*\d+\.\d+")
try:
float("nan")
_nan_float... | LyonsLab/coge | bin/last_wrapper/Bio/Phylo/PAML/_parse_codeml.py | Python | bsd-2-clause | 20,259 | [
"Biopython"
] | ec5e871e3145b3f673a50f6800dbe248161d1de2f123b5827c03c32f2c8137c6 |
# -*- coding: utf-8 -*-
""" Sahana Eden Common Alerting Protocol (CAP) Model
@copyright: 2009-2014 (c) Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to dea... | collective/eden | modules/s3db/cap.py | Python | mit | 78,639 | [
"VisIt"
] | d9d0a05f21b016d11b5558da8f15c7c488e450a7121d42e1f3e5da3abca75641 |
# Copyright 2019 Brian Quinlan
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | brianquinlan/learn-machine-learning | well_bouncer/game_factory.py | Python | mit | 1,508 | [
"Brian"
] | e2e72c8fe6ba7fbb37a547409d00f96d2750deff3a4f85dc8fad12708ee64990 |
# coding: utf-8
from __future__ import (absolute_import, division, print_function, unicode_literals)
import json
import logging
import boto3
from boto3.dynamodb.conditions import Key
import os
import sys
import time
import datetime
import dateutil.parser
# Path to modules needed to package local lambda function for u... | alanwill/aws-tailor | sam/functions/talr-lex-accountrequest/handler.py | Python | gpl-3.0 | 24,650 | [
"COLUMBUS"
] | 459d3fe81ed172fb54f32e5b26895ec5e1144865837342c850deb2c0adccf298 |
import numpy as np
from scipy.optimize import leastsq
from scipy.special import erf, erfc
import pylab as plt
import labrad
from labrad.units import Unit
V, mV, us, ns, GHz, MHz = [Unit(s) for s in ('V', 'mV', 'us', 'ns', 'GHz', 'MHz')]
import pyle
from pyle.pipeline import returnValue, FutureList
from pyle.dataking ... | McDermott-Group/LabRAD | LabRAD/TestScripts/fpgaTest/pyle/pyle/dataking/noon.py | Python | gpl-2.0 | 29,927 | [
"Gaussian"
] | 406749e706767478c81d7eced3d1cf047e3baf74cdaacbce3466b109c4a2cb3f |
""" An example for using gromacs calculator in ase.
Atom positions are relaxed.
A sample call:
python ./gromacs_example_mm_relax.py his.pdb
"""
from ase.calculators.gromacs import Gromacs
import sys
from ase.io import read
infile_name = sys.argv[1]
CALC_MM_RELAX = Gromacs(clean=True)
CALC_MM_RELAX.set_o... | misdoro/python-ase | doc/ase/calculators/gromacs_example_mm_relax.py | Python | gpl-2.0 | 810 | [
"ASE",
"Gromacs"
] | 833798dba89098d8903228c0dd977ab2245ac08c168599de6d2dd648a5863b6f |
from __future__ import division
from builtins import zip
from builtins import object
from past.utils import old_div
import speclite.filters as spec_filters
import astropy.units as astro_units
import numpy as np
import astropy.constants as constants
from threeML.utils.interval import IntervalSet
class NotASpeclikeFil... | giacomov/3ML | threeML/utils/photometry/filter_set.py | Python | bsd-3-clause | 5,715 | [
"Gaussian"
] | acf375c9f40922ad86c40581f4c2f8048f5473eb1acd4c17c50c2c694f0bf0f6 |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | harterj/moose | python/MooseDocs/test/extensions/test_template.py | Python | lgpl-2.1 | 3,072 | [
"MOOSE"
] | f970b8134a5923aeb3c3bd5d63942c5c92a2c5f41070350e09cce79708874fe6 |
from ase.utils.sphinx import mol_role
from ase.utils.sphinx import svn_role_tmpl, trac_role_tmpl, epydoc_role_tmpl
from ase.utils.sphinx import create_png_files
def svn_role(role, rawtext, text, lineno, inliner, options={}, content=[]):
return svn_role_tmpl('http://svn.fysik.dtu.dk/projects/'
... | robwarm/gpaw-symm | doc/ext.py | Python | gpl-3.0 | 1,253 | [
"ASE",
"GPAW"
] | 770e5fd290f5bc231d18c24ec3162d07128dae1ce1aba0dc9443eab639e18e0a |
# Copyright (C) 2003 CAMP
# Please see the accompanying LICENSE file for further information.
"""
See Kresse, Phys. Rev. B 54, 11169 (1996)
"""
import numpy as np
from gpaw.utilities.blas import axpy
from gpaw.fd_operators import FDOperator
class BaseMixer:
"""Pulay density mixer."""
def __init__(sel... | ajylee/gpaw-rtxs | gpaw/mixer.py | Python | gpl-3.0 | 17,543 | [
"GPAW"
] | fd3f6324c3c362d0e100c7a06e7e955166cdcb61327d6e51348e8f635ab1a4d9 |
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | eleftherioszisis/NeuroM | neurom/fst/tests/test_feature_compat.py | Python | bsd-3-clause | 10,569 | [
"NEURON"
] | 750277034a8031336538719d4f7a5fd4205d7b3ee0218720f951452ac78ccfa9 |
import sys
import os.path
#sys.path.insert(0, '/home/andy/theano/tool_examples/theano-lstm-0.0.15')
from theano_lstm import Embedding, LSTM, RNN, StackedCells, Layer, create_optimization_updates, masked_loss
from utilities import *
import dill
import argparse
#import cPickle
import pickle
import numpy
from collections... | darongliu/Lstm_Turing_LM | lstm-neural-turing-machines-lm/analysis/v1-one-weight-same-entropy-get-weight/lm_v4.py | Python | mit | 26,187 | [
"NEURON"
] | a7980a03b8d989248e31bb7243a18a539cf5554128bd7819f797167d7452d2f6 |
__gears_api__ = True
from .Base import *
#patterns
from .Solid import *
from .Gradient import *
from .CampbellRobertson import *
from .Mandelbrot import *
from .SineGrating import *
from .SineWheel import *
#textures
from .Image import *
from .Video import *
from .ForwardRendered import *
#random grids
from .RandomGri... | szecsi/Gears | GearsPy/Project/Components/Pif/__init__.py | Python | gpl-2.0 | 590 | [
"Gaussian"
] | d4b9a34c0b15bc8871217958b730241cdacfe495f2f23dd6e0861fc7836e8b36 |
#!/usr/bin/env python
#encoding:utf-8
from __future__ import unicode_literals
import os
import unittest
import datetime
import json
from random import randint
import tzlocal
import tempfile
import copy
import JSAG
class Test_JSAGdata(unittest.TestCase):
def setUp(self):
directory = os.path.dirname(os.path.abspath(... | kavod/jsonConfigParser | tests/test_JSAGdata.py | Python | gpl-2.0 | 13,460 | [
"MOE"
] | 487177faf6f0857b89d4d53c196fe7796e5de01610f9d69b826724c99119a451 |
# -*- coding: utf-8 -*-
"""
Copyright (C) 2010 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# stdlib
import inspect
import logging
import os
from datetime import datetime
fr... | alirizakeles/zato | code/zato-server/src/zato/server/service/store.py | Python | gpl-3.0 | 15,475 | [
"VisIt"
] | c89e5953f45fdd7ed57736c5cf93cd6515a63021571b7c14fd43a437eca3f248 |
#from ctx_base import StandardBaseContext
from .libmp.backend import basestring, exec_
from .libmp import (MPZ, MPZ_ZERO, MPZ_ONE, int_types, repr_dps,
round_floor, round_ceiling, dps_to_prec, round_nearest, prec_to_dps,
ComplexResult, to_pickable, from_pickable, normalize,
from_int, from_float, from_npfl... | fredrik-johansson/mpmath | mpmath/ctx_mp_python.py | Python | bsd-3-clause | 37,815 | [
"Gaussian"
] | de89585a8e259354a743403f21a675f35aaa1bcbb9a7119ab7fbfe2f842d9f76 |
# -*- coding: UTF-8 -*-
"""
``Generic``
-----------------------
:Authors: Liron Levin
:Affiliation: Bioinformatics core facility
:Organization: National Institute of Biotechnology in the Negev, Ben Gurion University.
Short Description
~~~~~~~~~~~~~~~~~~~~~
A generic module that enables the user to design new module... | bioinfo-core-BGU/neatseq-flow_modules | neatseq_flow_modules/main_NSF_classes/Generic_module/23_5_2020_Generic.py | Python | gpl-3.0 | 49,793 | [
"BLAST"
] | e8902ecf4573e922b5bf6bf9e75aacc66a59c1258d9c01516249e6b4c3c88e4b |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | googleapis/python-webrisk | scripts/fixup_webrisk_v1beta1_keywords.py | Python | apache-2.0 | 6,098 | [
"VisIt"
] | aee33de4904df76714199b141f198a9e89a563a9087ae74c79786f6cfd8d3585 |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... | thica/ORCA-Remote | src/ORCA/settings/setttingtypes/SettingNumericSlider.py | Python | gpl-3.0 | 5,273 | [
"ORCA"
] | b92895a74b41a6f8ed7cceeaaedf2e7dbb84083d41edd5dcf58c572c89bc858c |
# Copyright (c) 2015 OpenStack Foundation
#
# 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 ... | tipabu/swift | swift/container/sharder.py | Python | apache-2.0 | 77,669 | [
"VisIt"
] | f5df012e83f67c6d3a95204c1b62cfa6f9b0bc7e1fc6eb3769bdcd3b8ff8a60b |
# Authors: Lukas Breuer <l.breuer@fz-juelich.de>
"""
----------------------------------------------------------------------
--- jumeg.decompose.fourier_ica_plot ---------------------------------
----------------------------------------------------------------------
autor : Lukas Breuer
email : l.breuer@fz-... | fboers/jumeg | jumeg/decompose/fourier_ica_plot.py | Python | bsd-3-clause | 71,131 | [
"Mayavi"
] | 36698cd762cbc0fd10879170134e472bd2964b0952ed4f143b2e74b5e503401d |
"""XML-RPC Servers.
This module can be used to create simple XML-RPC servers
by creating a server and either installing functions, a
class instance, or by extending the SimpleXMLRPCServer
class.
It can also be used to handle XML-RPC requests in a CGI
environment using CGIXMLRPCRequestHandler.
The Doc* classes can be... | MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-3.2/Lib/xmlrpc/server.py | Python | mit | 35,817 | [
"Brian"
] | 808cfb5be501593b52911852c7a8910c65a5f348abfe7734eeaf02ea10f5841a |
"""The suite of window functions."""
from __future__ import division, print_function, absolute_import
import numpy as np
from scipy import special, linalg
from scipy.fftpack import fft
__all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall',
'blackmanharris', 'flattop', 'bartlett', 'hannin... | Universal-Model-Converter/UMC3.0a | data/Python/x86/Lib/site-packages/scipy/signal/windows.py | Python | mit | 44,539 | [
"Gaussian"
] | 833092fb5070e5b1e0ff79382013a4aec7b1f544ef7e8355fabbd31bc2324dc4 |
#!/usr/bin/env python3
import os
import sys
import time
from shutil import rmtree
from typing import Dict, List, Optional
from acpype.logger import copy_log
from acpype.logger import set_logging_conf as logger
from acpype.logger import tmpLogFile
from acpype.params import binaries
from acpype.parser_args import get_o... | alanwilter/acpype | acpype/cli.py | Python | gpl-3.0 | 5,737 | [
"Amber",
"Gromacs"
] | f239c7b5fe75b1ac5142efdc07222ab5b22ce168cf6807c85dae123e02a24445 |
#!/usr/bin/python3.3
# Copyright (C) 2013 Harold Grovesteen
#
# This file is part of SATK.
#
# SATK 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 you... | s390guy/SATK | tools/lang/sample.py | Python | gpl-3.0 | 14,753 | [
"VisIt"
] | b8d2e6d510706623e45c3eeb8689e264942c64b733358de8a8f588bf0428aee3 |
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 13 17:58:46 2017
@author: chenym
This file contains several functions that can be used to preprocess a functional
image. They are:
motion_correction(...), motion_correction_nipy(...), and <--see note 1.
motion_correction_pypreprocess(...) for motion correction, s... | anjaligr05/epilepsy_preprocessing | func_preproc.py | Python | mit | 16,421 | [
"Gaussian"
] | 82ba2dc9a63d5f2cc54bb0857343a6fc301bb23e422b031cee3cb0c1bc5326cd |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | modeling/plotting/model.py | Python | agpl-3.0 | 18,513 | [
"Gaussian"
] | ad219dbcb5eb85ab8183b4774bfc6a2f67c542eddb5f38fcc7af68cd81ef2cb4 |
"""
FEniCS tutorial demo program: Poisson equation with Dirichlet conditions.
As d1_p2D.py, but chosing linear solver and preconditioner is demonstrated.
-Laplace(u) = f on the unit square.
u = u0 on the boundary.
u0 = u = 1 + x^2 + 2y^2, f = -6.
"""
from __future__ import print_function
import os
from dolfin import ... | MiroK/dolfin | test/unit/python/book/chapter_1_files/stationary/poisson/d2_p2D.py | Python | gpl-3.0 | 1,761 | [
"VTK"
] | 1137e67b7d57091083046eb4e9d874b5a531ff1d6db6fe114cf6bacede811d75 |
"""Tests for CIF tools."""
# Copyright (C) 2016 Atsushi Togo
# All rights reserved.
#
# This file is part of phonopy.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain th... | atztogo/phonopy | phonopy/interface/cif.py | Python | bsd-3-clause | 3,679 | [
"phonopy"
] | 351695170c4a4253071dc8c80326a2848bbec11409a36a43b97e18a9902fb7ac |
# (C) British Crown Copyright 2010 - 2017, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | duncanwp/iris | lib/iris/tests/integration/test_grib_load.py | Python | lgpl-3.0 | 8,889 | [
"Gaussian"
] | 150d34365f1e557b9741a7a9b0e560c499bdaf29da57beebe684ba62ae7358f4 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
import subp... | harterj/moose | python/TestHarness/tests/test_DryRun.py | Python | lgpl-2.1 | 1,552 | [
"MOOSE"
] | b04e87fc6d06108abd861d7631eca3e9c43f9fe7c79c15fdbf7cc7516db9a562 |
import numpy as np
import matplotlib.pyplot as plt
import GPy
import mcmcGP
import ahmc
import aa_scheme
from time import time
import os
import pickle
from jug import TaskGenerator
import jug
class Dataset:
def __init__(self, xtrain, ytrain, xtest, ytest, ntrain, dtrain):
self.xtrain, self.ytrain, self.x... | sparseMCMC/NIPS2015 | experiments/convergence_analysis/setup_image.py | Python | gpl-2.0 | 13,983 | [
"Gaussian"
] | 7308fceaeb822dcb2379e9dc947a782a61d6dfa55875867454040fdc23173b06 |
import sys
sys.path.insert(1, "../../../")
import h2o, tests
import random
def cv_carsGLM():
# read in the dataset and construct training set (and validation set)
cars = h2o.import_file(path=tests.locate("smalldata/junit/cars_20mpg.csv"))
# choose the type model-building exercise (multinomial classifica... | kyoren/https-github.com-h2oai-h2o-3 | h2o-py/tests/testdir_algos/glm/pyunit_cv_carsGLM.py | Python | apache-2.0 | 6,746 | [
"Gaussian"
] | 56da8e5875115b4ef58e642c59466dbea326533282d9c8e72fbdce302b4ae946 |
#!/usr/bin/python
#
# Copyright 2007 The Python-Twitter Developers
# Modification by sd2k9 for the tweetfile project - see "sd2k9" tag
#
# 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
#
# ... | sd2k9/tweetfile | get_access_token.py | Python | gpl-2.0 | 3,712 | [
"VisIt"
] | ccbfd29ae8a313b2d0185f97b019e0dd309dce39545cfa921c74f6b1aeb49560 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# this script tests vtkImageReslice with various axes permutations,
# in order to cover a nasty set of "if" statements that check
# the intersections of the raster lines with ... | hlzz/dotfiles | graphics/VTK-7.0.0/Imaging/Core/Testing/Python/ReslicePermutations.py | Python | bsd-3-clause | 4,653 | [
"VTK"
] | b1a1ff86597a8abcb9eef1588a8bd29f4b40d708ab2ec3f741c0563764a6ff82 |
#!/usr/bin/env python
#
# SchoolTool - common information systems platform for school administration
# Copyright (c) 2003 Shuttleworth Foundation
#
# 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... | offby1/icalendar | test.py | Python | lgpl-2.1 | 27,853 | [
"VisIt"
] | de1bea6a10b1951f27087375570241e4c94d62bb54eb287d8161b469d293b06c |
# -*- coding: utf-8 -*-
"""
Regression tests for the Test Client, especially the customized assertions.
"""
import os
import warnings
from django.conf import settings
from django.core.exceptions import SuspiciousOperation
from django.core.urlresolvers import reverse
from django.template import (TemplateDoesNotExist, T... | mixman/djangodev | tests/regressiontests/test_client_regress/models.py | Python | bsd-3-clause | 50,548 | [
"VisIt"
] | b5c9ead42173488213fcc61159c39fc2fff110300a7601e01122e61763e6f4c9 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pylid
from collections import Counter
fi = pylid.PyLID(3)
fi.total_ngrams = 278549573
fi.lang = 'fi'
fi.ngrams = Counter({
u'en#': 3876229,
u'an#': 2066023,
u'in#': 2062645,
u'ta#': 2054174,
u't\xe4#': 1838328,
u'ist': 1820295,
u'sta': 1... | dmort27/pylid | pylid/langs/fi.py | Python | mit | 282,066 | [
"ADF",
"ASE",
"BWA",
"CDK",
"EPW",
"Elk",
"MOE"
] | 035a316d8c11dba2680e9983f4c2478e3b29cae554640ac934ffb0bfecf578f9 |
# Copyright 2010-2021 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | google/or-tools | ortools/constraint_solver/doc/routing_svg.py | Python | apache-2.0 | 35,431 | [
"VisIt"
] | fbafdf8572200bd22099f55226dc16760f15ca89f670770d7b5df697131b996e |
# -*- coding: utf-8 -*-
import os
import re
import sys
import json
import types
import logging
import datetime
import requests
import ssl
from requests.exceptions import ConnectionError
from requests.packages.urllib3.exceptions import ProtocolError
from .decorators import *
from requests_oauthlib import OAuth1, OAut... | hugovk/twarc | twarc/client.py | Python | mit | 43,486 | [
"VisIt"
] | 61b7d91e629d9b98766cf014d1361d327840cc13571bf86ad2c31a10f99a7f3e |
"""The Mayavi plugin.
"""
# Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in>
# Copyright (c) 2008, Enthought, Inc.
# License: BSD Style.
from traits.api import List
from envisage.api import Plugin, ServiceOffer
# This module's package.
PKG = '.'.join(__name__.split('.')[:-1])
# The mayavi package ID.
... | dmsurti/mayavi | mayavi/plugins/mayavi_plugin.py | Python | bsd-3-clause | 1,692 | [
"Mayavi"
] | a9a4dc4fc0fb40461a3fb85e523dea470750dc0500aaee34b7dcf89d3dad47a1 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
# ... | SKIRT/PTS | magic/config/make_colours_ssfr_maps.py | Python | agpl-3.0 | 1,166 | [
"Gaussian"
] | 29c5fe459f0724823b378d5c6be8fbcfcb874b3100b5556a201d6e7d6e4c0508 |
########################################################################
#
# (C) 2015, Brian Coca <bcoca@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation... | Inspq/ansible | lib/ansible/galaxy/role.py | Python | gpl-3.0 | 15,023 | [
"Brian",
"Galaxy"
] | b87c606b20f94403d14340f5e40d66339b32302a867e1e794de47bbc86dff2e0 |
# -*- coding: utf-8 -*-
# Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and University of
# of Connecticut School of Medicine.
# All rights reserved.
# Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., Universit... | jonasfoe/COPASI | copasi/bindings/python/unittests/Test_CCopasiContainer.py | Python | artistic-2.0 | 1,559 | [
"COPASI"
] | 01e323b99c950ed8fddc7c739ab08d1476cdef28e492bf63be026394f98097a9 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-compute | tests/unit/gapic/compute_v1/test_interconnect_attachments.py | Python | apache-2.0 | 117,621 | [
"Octopus"
] | 6b0b4e977399154628e8fc2b0c93a15ff7d5ebfbd7c4692a553b94491a32ca32 |
# ***************************************************************************
# * Copyright (c) 2014 Yorik van Havre <yorik@uncreated.net> *
# * *
# * This program is free software; you can redistribute it and/or modify *
# * it... | sanguinariojoe/FreeCAD | src/Mod/Arch/importIFC.py | Python | lgpl-2.1 | 62,790 | [
"VisIt"
] | 53add1e0c1af9a119cb39f12f436178a726c17a96b4d6422036fbec0ec69b47f |
#!/net/kodiak/volumes/lake/shared/users/marghoob/my_env/bin/python
from __future__ import print_function
import argparse
import os
import sys
import logging
import subprocess
import re
import hashlib
import uuid
from multiprocessing import Process
import random
from functools import partial
from itertools import compr... | chapmanb/metasv | scripts/annotate_bed_for_ml.py | Python | bsd-2-clause | 9,667 | [
"pysam"
] | f8c905cba23633d5f26eb309c48e698726438cba93118323c3a2aa79d6648221 |
#!/usr/bin/env python
"""Copyright 2008 Phidgets Inc.
This work is licensed under the Creative Commons Attribution 2.5 Canada License.
To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/
"""
__author__ = 'Adam Stelmack'
__version__ = '2.1.4'
__date__ = 'May 02 2008'
#Basi... | jantman/tuxostat | fs_backup/home/tuxostat/devel/Python/InterfaceKit-simple2.py | Python | gpl-3.0 | 4,240 | [
"VisIt"
] | 52aa110f0ddf7ca0093d80e719f3a260b97009ed6d668494d4a187bc821262a1 |
from collections import defaultdict
from .common import fail, warn
from .errors import Errors, Warnings
from .irvisitor import IRVisitor
from .ir import *
from .pure import PureFuncTypeInferrer
from .scope import Scope
from .type import Type
from .env import env
from .symbol import Symbol
import logging
logger = loggi... | ktok07b6/polyphony | polyphony/compiler/typecheck.py | Python | mit | 34,823 | [
"VisIt"
] | ba79efb356856be65b1b9aa1991f3a548997c82f490894de4d6900a5b1106996 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publi... | Forage/Gramps | gramps/plugins/tool/changetypes.py | Python | gpl-2.0 | 6,393 | [
"Brian"
] | 6b569253420ea5d97982ccf79b57804034bfb40b1c114b6310c39c35fc9eaf8f |
# Please do not change the configuration file quisk_conf_defaults.py.
# Instead copy one of the other quisk_conf_*.py files to your own
# .quisk_conf.py and make changes there. For a normal sound card
# configuration, copy quisk_conf_model.py to your .quisk_conf.py.
#
# PLEASE DO **NOT** COPY THIS FILE AND USE IT AS A... | gonesurfing/Quisk_rpi_remote | quisk_conf_defaults.py | Python | gpl-2.0 | 39,144 | [
"CRYSTAL"
] | d874e49d65f026800173ee3e86f93d9483d991d0f9a1635c8bc92b119083d1af |
#!/usr/bin/env python
# Copyright (c) 2017, Henrique Miranda
# All rights reserved.
#
# This file is part of the phononwebsite project
#
""" Read phonon dispersion from anaddb """
import argparse
import sys
from phononweb.anaddbphonon import *
if __name__ == "__main__":
parser = argparse.ArgumentParser(descri... | henriquemiranda/phononwebsite | scripts/read_anaddb_phonon.py | Python | bsd-3-clause | 1,292 | [
"NetCDF"
] | 9327cee52315c9654b671843266267300728e5c59b5f612bb5a7fd2440d009b6 |
#!/usr/bin/env python
# Copyright 2004, Magnus Hagdorn
#
# This file is part of GLIMMER.
#
# GLIMMER is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) an... | glimmer-cism/PyCF | progs/create_topo.py | Python | gpl-2.0 | 6,887 | [
"NetCDF"
] | 44fef77f1a8af5f415139d08ca67178b27e5950bc9e26f4799f61284d18279c1 |
# Copyright (C) 2016 Alex Nitz
#
# 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.
#
# This program is distributed in the... | stevereyes01/pycbc | pycbc/events/stat.py | Python | gpl-3.0 | 50,905 | [
"Gaussian"
] | cbf5d06078c7987cf5c59fd94ca71b2c071f24a3b0bc7a7ff5f6e3a223ea334d |
#
# Copyright 2009 Eigenlabs Ltd. http://www.eigenlabs.com
#
# This file is part of EigenD.
#
# EigenD 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) a... | barnone/EigenD | pi/container.py | Python | gpl-3.0 | 3,913 | [
"VisIt"
] | 56ea4bcb95ac51ef86c698bb4b47c63a0ff805a10bde49bcf85b0e48beae8737 |
import os
import sys
import time
import PythonQt
from PythonQt import QtCore, QtGui, QtUiTools
from director.timercallback import TimerCallback
from director.consoleapp import ConsoleApp
from director import applogic
from director import transformUtils
from director import filterUtils
from director import visualizati... | patmarion/director | src/python/tests/testCameraControl.py | Python | bsd-3-clause | 2,142 | [
"VTK"
] | 7700560058898f8175f4a416a55088e35df946df89ca260c9b90073d927f34e3 |
from __future__ import absolute_import
import numpy as np
from numpy.testing import assert_array_almost_equal
from skimage.filters import threshold_adaptive, gaussian
from skimage.util.apply_parallel import apply_parallel
def test_apply_parallel():
# data
a = np.arange(144).reshape(12, 12).astype(float)
... | WarrenWeckesser/scikits-image | skimage/util/tests/test_apply_parallel.py | Python | bsd-3-clause | 1,804 | [
"Gaussian"
] | 9d0a274d9eb4fe8429bde72908ba3bb7d2c806dea33e0f15978395f3f402bb54 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
import shut... | nuclear-wizard/moose | python/TestHarness/tests/test_WriteResults.py | Python | lgpl-2.1 | 3,255 | [
"MOOSE"
] | 5f20ca24ce86cbc643b6b16fced7be778d7e177306bbacccde0d3f9cde7e089c |
#!/usr/bin/env python
# Kyle Hernandez, 2013
# kmhernan@utexas.edu
# vcf_to_marker.py - Converts the multi-sample VCF file of the FH mapping population
# into markers for QTL mapping.
#
# WARNING!! Not generalizable, specific to our FH mapping sequences
#
# This is free and unencumbered software rel... | kmhernan/Publications | Lowry-2013-FxH-Map/python/GenotypeScripts/vcf_to_marker.py | Python | unlicense | 9,587 | [
"BLAST"
] | 1f419ae7ffd80b3fcd8c4d2ce7b3016fb87aef063e95779d986d5e7eaff1cf99 |
# Copyright (c) 2010 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... | koparasy/faultinjection-gem5 | configs/common/FSConfig.py | Python | bsd-3-clause | 22,591 | [
"ASE"
] | fd6aca915d323d429b4b649bf588b79e9f743c662c744006561e4a158d888912 |
# ============================================================================
#
# Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | kurtraschke/camelot | camelot/view/controls/user_translatable_label.py | Python | gpl-2.0 | 4,059 | [
"VisIt"
] | 0ef1a92c080fb12f2a40b10ef6ba787ebd77b10c86c0f77a580eedd9b4f13b03 |
#!/usr/bin/env python
# CREATED:2014-12-29 10:52:23 by Brian McFee <brian.mcfee@nyu.edu>
# unit tests for ill-formed inputs
# Disable cache
import os
try:
os.environ.pop("LIBROSA_CACHE_DIR")
except:
pass
import numpy as np
import librosa
import pytest
@pytest.mark.xfail(raises=librosa.ParameterError)
def t... | bmcfee/librosa | tests/test_failures.py | Python | isc | 3,981 | [
"Brian"
] | 9ed58f41070709adf471fd8bb6bb156b91af645414541eb1706e133351984ec9 |
#!/usr/bin/python
# Copyright 2015 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.
# 'top'-like memory polling for Chrome on Android
import argparse
import curses
import os
import re
import sys
import time
from operator ... | lihui7115/ChromiumGStreamerBackend | tools/android/meminfo.py | Python | bsd-3-clause | 26,283 | [
"Galaxy"
] | b255c91091e3d27fa8ca4385f515676da77901350f268dc3407aa1a5f67a795d |
"""
Inserting instrument characteristics
====================================
This file provides a class to insert instrument specific features to a simulated image. The VIS instrument
model is taken from support.VISinstrumentModel.VISinformation function.
The class supports multiprocessing.
.. Note:: The output ima... | sniemi/EuclidVisibleInstrument | postproc/postprocessing.py | Python | bsd-2-clause | 17,398 | [
"Gaussian"
] | 1c112a62ed961ea6a4af6f76b6c65104eaae267b066dd79f31d53ae97d7cd835 |
# Heart.py
# Aaron Taylor
# Moose Abumeeiz
#
# The heart can be rendered on the floor or on the HUD.
# Taking damage will result in half of a heart loss.
#
from pygame import *
from const import *
from Animation import *
from Item import *
import func
class Heart(Item):
"""Pickup Heart class"""
price = 0
def _... | ExPHAT/binding-of-isaac | Heart.py | Python | mit | 1,386 | [
"MOOSE"
] | 590b4c55302cacc75749a36f9e424527ebf085bf517238a1049d6bd2ef44c46a |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# plhighlight.py
#
# Copyright 2016 Cosmo <cosmo@CosmoSpectre>
#
# 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 ... | CosmoJG/neural-heatmap | dd-highlight/plhighlight.py | Python | gpl-3.0 | 3,438 | [
"NEURON"
] | 7bddb4d7c53fe4537a9fbce4da15eb1ddd4cb2fb7f5a460adb767a3fe63fbf97 |
from __future__ import absolute_import, division, print_function
import os.path as op
from os.path import join as pjoin
import glob
# Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z"
_version_major = 0
_version_minor = 3
_version_micro = '' # use '' for first of series, number for 1 and abov... | richford/AFQ-Browser | afqbrowser/version.py | Python | bsd-3-clause | 2,793 | [
"VisIt"
] | f5f01239283f85f558db33d5b35161cafb9df93731ca26100b4c8140a42bf965 |
#!/usr/bin/env python3
import os
import sys
import random
import time
from random import seed, randint
import argparse
import platform
from datetime import datetime
import imp
from time import sleep
# from run_parameter import *
parser = argparse.ArgumentParser(
description="This is a python3 script to\
automa... | luwei0917/awsemmd_script | archive/back_run.py | Python | mit | 10,730 | [
"Brian",
"LAMMPS"
] | 462fdc8e206a6df8141d11caecabf7cbc458f7b2173cbe8bd32e71ed1a76ec16 |
#!/usr/bin/python3
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2015, 2016 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This progra... | attente/snapcraft | snapcraft/main.py | Python | gpl-3.0 | 10,937 | [
"VisIt"
] | 28ab3ee55db388af4e3da654d900739895e8c0c5d7f9747ece0a7625490f90bc |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
"""
Miscellaneous tools used by OpenERP.
"""
from functools import wraps
import cPickle
import cProfile
from contextlib import contextmanager
import subprocess
import logging
import os
import passlib.utils
import socke... | ChawalitK/odoo | openerp/tools/misc.py | Python | gpl-3.0 | 36,691 | [
"VisIt"
] | 048085c6a8948a97311c798d5f6b53182391780f2c33f7dd174bb4d748fb49ba |
"""
If we are presented with the first k terms of a sequence it is impossible to say with
certainty the value of the next term, as there are infinitely many polynomial functions
that can model the sequence.
As an example, let us consider the sequence of cube
numbers. This is defined by the generating function,
u(n) = ... | TheAlgorithms/Python | project_euler/problem_101/sol1.py | Python | mit | 6,457 | [
"Gaussian"
] | 883bcbc4ed4da52ad9c537a1a3f5267d373a7d17dfc1de324849edea94cf323d |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id$"
from DIRAC import gConfig
from DIRAC.ConfigurationSystem.Client.Helpers.Path import cfgPath
gBaseLocalSiteSection = "/LocalSite"
def gridEnv():
"""
Return location of gridenv file to... | yujikato/DIRAC | src/DIRAC/ConfigurationSystem/Client/Helpers/Local.py | Python | gpl-3.0 | 421 | [
"DIRAC"
] | 452b6a1b57602c386416fb02cf633710e311b00b889bb67b2a2993048af559b8 |
#!/usr/bin/env python
###############################################################################
# #
# cluster.py #
# ... | Ecogenomics/GroopM | groopm/cluster.py | Python | gpl-3.0 | 78,497 | [
"Gaussian"
] | 37244be60c7919cfa0759dddbaf8eb489767653b79cbfb00469e299fb0c3e787 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# benchmark_mig - benchmark typical MiG file access
# Copyright (C) 2003-2011 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General... | heromod/migrid | mig/grsfs-fuse/benchmarks/code/benchmark_mig.py | Python | gpl-2.0 | 3,932 | [
"Brian"
] | bfbd7e6b501a3adc5c38a69ed20967a6232a3674d5bdcea30e9e357d4522b749 |
# Copyright 2012, 2013 The GalSim developers:
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
#
# GalSim 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... | mardom/GalSim | galsim/des/test_des_meds.py | Python | gpl-3.0 | 9,688 | [
"Galaxy"
] | f1573c647945457992091873127c812dd9795ac574183f7714c6f6ad0ca38981 |
import networkx as nx
import numpy as np
import ase
import copy
import warnings
try:
from builtins import super
except(ImportError):
from __builtin__ import super
sym = np.array(ase.data.chemical_symbols)
em = nx.algorithms.isomorphism.numerical_edge_match('bonds', 1)
nm = nx.algorithms.isomorphism.numerical_n... | jboes/CatKit | catkit/gratoms.py | Python | gpl-3.0 | 10,824 | [
"ASE"
] | 269907deb296ae35862676d223456cbb444e8271f3f31063cd287de53498e0ac |
#
# This file is part of the statismo library.
#
# Author: Marcel Luethi (marcel.luethi@unibas.ch)
#
# Copyright (c) 2011 University of Basel
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# ... | tom-albrecht/statismo | modules/VTK/wrapping/tests/statismoTests/TestDataManager.py | Python | bsd-3-clause | 5,700 | [
"VTK"
] | d76bc2f24aa70008fedb9a4b9168b18eea270f8e3a847d6d6e45f398a63ce19e |
'''
Created on Jan 24, 2015
Name two animals, both mammals, one domestic, the other wild,
put their letters together and rearrange to spell another
mammal, this one wild and not seen in North America.
@author: John
'''
class main:
wild_mammals = set([
])
domestic_mammals = set... | johnobrien/pyshortz | solutions/20150118/two_animals.py | Python | mit | 32,874 | [
"Elk",
"Jaguar",
"MOOSE",
"ORCA"
] | b0c3f58ba1b680eba239a0ac5b7d414dd74add1c2de5a282daf41aa9a8ab944d |
# -*- 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/Turkey | languages/it.py | Python | mit | 392,465 | [
"VisIt"
] | 49451d239f12610001395c93e1ea84bd36dc440c41fa224336f7d18ab448bdfc |
# Copyright (C) 2013-2019 The ESPResSo project
# Copyright (C) 2012 Olaf Lenz
#
# 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... | espressomd/espresso | src/config/gen_featureconfig.py | Python | gpl-3.0 | 4,434 | [
"ESPResSo"
] | 563f8b02a79711f6df4ffd3a43b42fe2ce0892821f14478e56fc34d88828cd89 |
import os
from ase import Atoms
from ase.calculators.aims import Aims, AimsCube
from ase.optimize import QuasiNewton
water = Atoms('HOH', [(1, 0, 0), (0, 0, 0), (0, 1, 0)])
water_cube = AimsCube(points=(29, 29, 29),
plots=('total_density',
'delta_density',
... | suttond/MODOI | ase/test/aims/H2O_aims.py | Python | lgpl-3.0 | 725 | [
"ASE"
] | a7f21dc42bce27928c1491870f4ee6a444b61ec9f41af52fdf3b541084ae7a4f |
"""
This is a comment
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
__RCSID__ = "$Id$"
# $Source: /tmp/libdirac/tmp.stZoy15380/dirac/DIRAC3/DIRAC/Core/Workflow/test/WFSamples.py,v $
from DIRAC.Core.Workflow.Parameter import *
from DIRAC.Core.Work... | yujikato/DIRAC | src/DIRAC/Core/Workflow/test/WFSamples.py | Python | gpl-3.0 | 8,668 | [
"DIRAC"
] | ac5112e180d89d5f37d877e959c6e2df72a2c00d3f8d4484064d5e4077ff733e |
from pydispatch import dispatcher
from PySide import QtGui, QtCore
import cbpos
import sys
logger = cbpos.get_logger(__name__)
class PayDialog(QtGui.QDialog):
def __init__(self, manager):
super(PayDialog, self).__init__()
self.manager = manager
assert self.manage... | coinbox/coinbox-mod-sales | cbmod/sales/views/dialogs/payDialog.py | Python | mit | 10,323 | [
"VisIt"
] | 256c4b4645c7248fbead7c52d42037b6e31273b80bf92ad9ac3b54502c4314d9 |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | googleapis/python-debugger-client | scripts/fixup_debugger_v2_keywords.py | Python | apache-2.0 | 6,576 | [
"VisIt"
] | 5b72355aef1c9d03b5e4197b9a3862beb00dc64c803a08e91f18504aff562ab5 |
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | himyouten/ansible | lib/ansible/utils/__init__.py | Python | gpl-3.0 | 49,410 | [
"VisIt"
] | 9c9d2651e1e6aabd16ffcfd51fcd506b44e0868a1677d2e04eddee41e16b7a0c |
# $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.
#
""" contains a class ... | strets123/rdkit | rdkit/ML/CompositeRun.py | Python | bsd-3-clause | 6,836 | [
"RDKit"
] | 5c854ffb71554f25b03fbccb316056cc866033b0ab21552f03590a57071cc376 |
'''
@file : Category.py
@author (A) : Madhu Kumar Dadi.
@project : Social List
@function :
checkCategories(hashtag) : compares the hashtag to all the categories
@hashtag : string representing a twitter hashtag
return : 1 if atleast one matches else 0
@function :
test() : Tests all the categories with an exam... | SummerProject16/project | CMUTweetTagger/Category.py | Python | cc0-1.0 | 2,311 | [
"VisIt"
] | b58d67654357cef2bf02a6c9079b6bf6d8f0bb59714a40ebbfbd77791bc69f77 |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
ANSIB... | pilou-/ansible | lib/ansible/modules/network/avi/avi_alertemailconfig.py | Python | gpl-3.0 | 3,884 | [
"VisIt"
] | d24b0cf330aafece6da157482759853f09b096a06a8e4141e52868cc96e75b70 |
# -*- coding: utf-8 -*-
## all SI units
########################################################################################
## Plot the membrane potential for a leaky integrate and fire neuron with current injection
## Author: Aditya Gilra
## Creation Date: 2012-06-08
## Modification Date: 2012-06-08
#############... | BhallaLab/moose-examples | neuroml/LIF/twoLIFxml_firing.py | Python | gpl-2.0 | 3,087 | [
"MOOSE",
"NEURON"
] | 8d8616f15ec459394a5c9d2ac144f002889df6863b4965f001b43540313eea30 |
'''
script to feed PDB and mutation information to FoldX in order to determine delta delta G
for trunk vs non-trunk mutations on the tree generated from next flu
'''
import os
# assumes that the PDB file has already been repaired
mutation_trunk_fileName = "mutation_trunk.txt"
mutation_trunk_file = open(mutation_tru... | blab/stability | augur/src/feed_foldx.py | Python | agpl-3.0 | 1,294 | [
"FoldX"
] | 077c361a27b6a40c2439f66e97d651a2f9d986e351dff8572ece2d6a267ede99 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.