original article from Pitchfork by Philip Sherburne at 01 March 2024 at 05:00 AM
๐ค Codeparrot Small on 20 March 2024 at 11:01 AM
-- coding: utf-8 --
Copyright (C) 2015-2017 Red Hat, Inc.
This copyrighted material is made available to anyone wishing to use,
modify, copy, or redistribute it subject to the terms and conditions of
the GNU General Public License v.2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY expressed or implied, including the implied warranties of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details. You should have received a copy of the
GNU General Public License along with this program; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. Any Red Hat trademarks that are incorporated in the
source code or documentation are not subject to the GNU General Public
License and may only be used or replicated with the express permission of
Red Hat, Inc.
from future import absolute_import
from __future
๐ญโฐ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:01 AM
-- coding: utf-8 --
Copyright (C) 2015-2016 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Authors:
import os
import sys
import time
import unittest
from tests.baseclass import CommandTest
from tests.baseclass import CommandTestException
from tests.base
๐ญโฑ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:02 AM
-- coding: utf-8 --
Copyright (C) 2015-2016 Red Hat, Inc.
This copyrighted material is made available to anyone wishing to use,
modify, copy, or redistribute it subject to the terms and conditions of
the GNU General Public License v.2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY expressed or implied, including the implied warranties of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details. You should have received a copy of the
GNU General Public License along with this program; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. Any Red Hat trademarks that are incorporated in the
source code or documentation are not subject to the GNU General Public
License and may only be used or replicated with the express permission of
Red Hat, Inc.
from future import absolute_import
from __future
๐ญโด โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:02 AM
-- coding: utf-8 --
Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
All rights reserved.
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 the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL,
๐ญโบ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:02 AM
Codeparrot Small wrote:
# -- coding: utf-8 -- # # Copyright (C) 2015-2016 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY expressed or implied, including the implied warranties of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. You should have received a copy of the # GNU General Public License along with this program; if not, write to the # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. Any Red Hat trademarks that are incorporated in the # source code or documentation are not subject to the GNU General Public # License and may only be used or replicated with the express permission of # Red Hat, Inc. # from future import absolute_import from __future
-- coding: utf-8 --
import unittest
import os
import sys
import shutil
import tempfile
import shutil
import tempfile
import zipfile
import shutil
import zipfile
import zipfile
import zipfile2
import shutil
import tempfile
import zipfile2
import tarfile
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import tarfile
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
import zipfile2
๐ญโถ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:02 AM
Copyright (c) 2014, Adafruit Industries
All rights reserved.
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 the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING,
๐ญโน โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:02 AM
Codeparrot Small wrote:
# -- coding: utf-8 -- # # Copyright (C) 2015-2017 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY expressed or implied, including the implied warranties of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. You should have received a copy of the # GNU General Public License along with this program; if not, write to the # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. Any Red Hat trademarks that are incorporated in the # source code or documentation are not subject to the GNU General Public # License and may only be used or replicated with the express permission of # Red Hat, Inc. # from future import absolute_import from __future
import os
from setuptools import setup
import codecs
here = os.path.abspath(os.path.dirname(file))
README = codecs.open(os.path.join(here, 'README.rst')).read()
CHANGES = codecs.open(os.path.join(here, 'CHANGES.rst')).read()
setup(
name='girder-python',
version='0.3.2',
description='A Python client for your Girder API',
long_description=README,
url='https://github.com/girder/girder-python',
author='Girder Team',
author_email='girder@girder.org',
license='GPLv3',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language ::
๐ญโธ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:02 AM
Copyright 2011 Nicira Networks, Inc.
All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
from oslo_config import cfg
from oslo_log import log
from oslo_utils import strutils
from oslo_versionedobjects import exception as ovo_exc
from neutron.agent.linux import ip_lib
from neutron.common import constants
from neutron.common import constants as l3_constants
from neutron import context
from neutron.i18n import _LE
from neutron.plugins.common import constants as p_const
๐ญโป โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:02 AM
Codeparrot Small wrote:
# -- coding: utf-8 -- import unittest import os import sys import shutil import tempfile import shutil import tempfile import zipfile import shutil import zipfile import zipfile import zipfile2 import shutil import tempfile import zipfile2 import tarfile import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import tarfile import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2 import zipfile2
!/usr/bin/env python
encoding: utf-8
"""
The :mod:sklearn.model_selection.__init__
function includes the following
functions:
- :meth:fit_test_split
: split train, test datasets
- :meth:fit_test_split_test_indices
: train and test split
- :meth:fit_test_split_indices_test_indices
: validation and test split
"""
License: BSD Style.
import numpy as np
from scipy import ndimage
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.metrics import confusion_matrix
from sklearn.utils import check_random_state
from sklearn.utils.validation import check_is_fitted
from sklearn.utils.testing import ignore_warnings
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_raise_message
from sklearn.model_
๐ญโถ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:02 AM
Codeparrot Small wrote:
# Copyright (c) 2014, Adafruit Industries # All rights reserved. # # 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 the above copyright notice, # this list of conditions and the following disclaimer. # # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # * Neither the name of the copyright holder nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING,
coding=utf-8
Copyright 2021 The Magenta Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""Module that implements different strategies for multi-worker training."""
from future import absolute_import
from future import division
from future import print_function
import collections
import heapq
import numpy as np
import tensorflow as tf
from official.nlp.components.mt.base_multi_worker import BaseMultiWorker
from official.nlp.components.mt.dataset import Dataset
from official.nlp.components.
๐ญโฑ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:03 AM
Codeparrot Small wrote:
# -- coding: utf-8 -- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # All rights reserved. # # 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 the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # * Neither the name of the copyright holder nor the names of its contributors # may be used to endorse or promote products derived from this software without # specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL,
!/usr/bin/python2
-- coding: utf-8 --
"""
"""
from Tkinter import *
from Tkinter import TOP, LEFT, RIGHT, PAN, W, S, X, Y, END, TOP
import pygame as pg
import random
import sys
reload(sys)
sys.setdefaultencoding('utf8')
class Screen():
def init(self, width, height):
self.width = width
self.height = height
def update(self):
self.width = self.width - SCREEN_WIDTH_PX + self.width_px
self.height = self.height - SCREEN_HEIGHT_PX + self.height_px
self.canvas.clear()
self.canvas.fill((self.width - SCREEN_WIDTH_PX - 5, self.height - SCREEN_HEIGHT_PX - 5))
def set_window_size(self, width, height):
self.width = width
self.height = height
def get_window_size(self):
return self.width, self.height
๐ญโฑ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:03 AM
import numpy as np
import chainer
from chainer.backends import cuda
from chainer import serializers
from chainer import variable
from chainer.dataset import fetch
class RollarSampler(chainer.Module):
"""Rollout the linear product.
"""
__doc__ += chainer.Link(
"Rollout the linear product.")
def __init__(self, in_sizes, out_size):
super(RollarSampler, self).__init__()
self.in_sizes = in_sizes[:out_size]
self.out_size = out_size
self.axis = in_sizes[1]
self.W_0 = np.array(np.array(self.in_sizes) - 1, dtype=np.float, copy=False)
self.b_out_0 = np.array(np.array(np.zeros_like(self.W_0), dtype=np.float))
def forward_backward(self, states, grad_outputs):
states = states.astype(np.float)
grad_outputs = grad_outputs.astype(np.float)
self.W_
๐ญโณ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:03 AM
-- coding: utf-8 --
"""
Salt Edge API integration for Salt Edge.
:copyright: (c) 2014-2015 Stephen J. Cohn, Scott D. Pรฉrez Martinez.
"""
license ='GPL-3.0'
copyright =('2016, Stephen J. Cohn sscott@free.fr, Shane Yalewicz')
author = 'Shane Yalewicz'
###########################
Imports and functions used throughout #
############################
import datetime,json
import time,sys
############################# Utility Functions #############
def get_log2_entry(data):
"""
Given a Python dictionary data (json dict format),
return a dict with the current time as the log2 entry.
:rtype:dict
:returns: The time the entry was updated.
"""
if data.has_keys():
if 'time' in data:
return jsonify(data['time'])
else:
return data['time']
return False
def
๐ญโฌ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:03 AM
Codeparrot Small wrote:
#!/usr/bin/python2 # -- coding: utf-8 -- """ """ from Tkinter import * from Tkinter import TOP, LEFT, RIGHT, PAN, W, S, X, Y, END, TOP import pygame as pg import random import sys reload(sys) sys.setdefaultencoding('utf8') class Screen(): def init(self, width, height): self.width = width self.height = height def update(self): self.width = self.width - SCREEN_WIDTH_PX + self.width_px self.height = self.height - SCREEN_HEIGHT_PX + self.height_px self.canvas.clear() self.canvas.fill((self.width - SCREEN_WIDTH_PX - 5, self.height - SCREEN_HEIGHT_PX - 5)) def set_window_size(self, width, height): self.width = width self.height = height def get_window_size(self): return self.width, self.height
def test_1(A, n=5, B): # test #1
x = random.randint(2,3)
def g(x):
i = random.randint(0,n-1)
if i==0: # n-1
return x
g(x) # n-1 --> n-1 x**i - g(x)**i
for j in range(n):
x = j
g(x)
return 1, random.normal(G(x), random.normal(n))
A,n=3,5
E,x=An2
Ej = An**4-J
e = a = x
for i in 0,n-A:
for j in A,n:
print 'p,i=%2d,j= %2d' % ((i//3)2*(i%J),j//3)
A0,e=A
if random.randrange(E)>1:
for i in range(n,n+A):
print 'e,i=', i
E
๐ญโป โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:03 AM
Codeparrot Small wrote:
#!/usr/bin/env python # encoding: utf-8 """ The :mod:sklearn.model_selection.__init__
function includes the following functions: - :meth:fit_test_split
: split train, test datasets - :meth:fit_test_split_test_indices
: train and test split - :meth:fit_test_split_indices_test_indices
: validation and test split """ # Authors: Gilles Louppe g.louppe@gmail.com # Alexandre Gramfort alexandre.gramfort@telecom-paristech.fr # # License: BSD Style. import numpy as np from scipy import ndimage from sklearn.base import BaseEstimator, TransformerMixin from sklearn.metrics import confusion_matrix from sklearn.utils import check_random_state from sklearn.utils.validation import check_is_fitted from sklearn.utils.testing import ignore_warnings from sklearn.utils.testing import assert_equal from sklearn.utils.testing import assert_raise_message from sklearn.model_
! /usr/bin/python2
-- coding: utf-8 --
from time import clock
import datetime as dt
from matplotlib import pyplot as plt
"""
A few useful plotting functions.
@summary A little help.
$ p_data is a list of 3 numbers.
$ z_{i}' (the number of values corresponding to j with the first 2x p data points)
= $ p_{t-1}: p = i/(2p)^{(i)}
$ t1 = A0 - E_{t-1}(t);
$ a = $ p_{t-1}(t)/A_{t};
"""
def p_data(i, lg=1):
"""
Inputs
Parameter
Arguments
----------
i: The number of components
lg: (default 1): the maximal probability that points
"""
E = [] # number of E values in this dataset
Ae = [] # the best-neuredess for data to reach i
for t in xrange(ilg):
#print j,A[ilh][j -
๐ญโฑ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:03 AM
!/usr/local/bin/test python2, python-gpuperf benchmark
python is in Python 3.3 but I beort
import datetime
print
def printStats(resultDict):
for k,v in resultDict:
d = resultDict[k]
elo, f = sorted((v,(resultDict[k]["lo"][0],v[k]["lo"][1]),
(v[1],resultDict[k][1])))
print "%-20s: %s,%s,%s,%s"\
% ("Name","Time","Time(sec)",
datetime.ctime(d.total_seconds(), elo),f['name'])
print "%-20d. %s, %s"%(k,' '.join(["%0.6f"% (v[1],round(float(v[2]))/100.)
for v in resultDict[k].iteritems()]))
for key, resultStr, resultVal in d.iteritems():
print "%-20s : %14.10f/%13.10f %.12f " % resultStr
for subKey in subDictIter():
print "%-2s: %d
๐ญโณ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:03 AM
Codeparrot Small wrote:
# -- coding: utf-8 -- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # All rights reserved. # # 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 the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # * Neither the name of the copyright holder nor the names of its contributors # may be used to endorse or promote products derived from this software without # specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY # DIRECT, INDIRECT, INCIDENTAL,
===============================================================================
This part contains the "Tetrification Algorithm", the tread and trough methods for the simulation using the Tread Sampling technique
IMPORT STUFF
"""
Tread is called an algorithm of random order. You choose from a tuple/dictionary
returned by an enumeration of possible sample names (as in "seed3x2*5", 2x3 to 5x6-fourth-thrust).
Sample values is an N,D-dimensional list of floats whose coordinates pertinent and
direction as to (N x N array); a sample is selected between two independent
particles, one such that:
* N = 4, D[1], 0, & Phi[1], & A[M-1]
+ D[n+M-1, k; m; n+Q] + |N,D[p q_k,...,n so...].
* D[n+p l, j ] => A[[a, b],[c, b],...].
Basic usage by choosing from a tuple and setting some properties;
๐ญโญ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:04 AM
"""
Django settings common to both demo instances in development
"""
import os
basedir = osp.dirname(osp.realpath(file))
DEBUG = bool('True') if (DEBUG or 'Development')] else False
TEMPLATE_DEBUG =DEBUG
SITE_ID ='2716015471'
STATIC_ROOT = '/home/user/local_root'
STATIC_MEDIA_ROOT = STATIC_ROOT / 'css'
CMS_STATIC_APPS = (
'django.contrib.staticfiles','-registration','rest_framework' #'removes-api','mptt' #"mptt" #"rest_framework","django.contrib.auth","south":"mptt<3",".vendor.djangodoc'", #"mptt<1"}"
"apps","django.contrib.admindocs",#"wagtail.apps.wagtailcore"
SECRET_KEY = 'wirj2wlfx6wt#@9a0a84&o@gigp93d^rgs&rctxuqw&_*8yq4l=v1&)wxy7d$(j+e&c
๐ญโฒ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:04 AM
from flask.ext.security.contrib_sqla.decorators import current_user_active
import re
Regular statements starting with (.*?)[{ or { means just use '}' since they're not necessary for somebody using ==
which was
regex expressions like this from not
on your ~regexp
@current_user_active
def create():
if current_user_is_anonymous:
return '''
The form could make another query with only 2 anonymous anonymous users
The input will include three words and one-or-three words like
```
^
3 5 7 4
$ #.##2.7
1 ^ ^
8 9 22 11 34 33 56 18 34 19 26 49 45 33 67 53 70 74 69 69 82 77 82 01 36 44 39 17 56 19 38 19
* | 6
0 | | 0 5
1) 2 | 0 2
''')
else:
# For testing anonymous query
sqlaUsername = ['username-inset1',
'username-inset2',
'username-insetZ']
url = '''
url_title :
๐ญโ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:04 AM
Codeparrot Small wrote:
#=============================================================================== # This part contains the "Tetrification Algorithm", the tread and trough methods for the simulation using the Tread Sampling technique ## IMPORT STUFF """ Tread is called an algorithm of random order. You choose from a tuple/dictionary returned by an enumeration of possible sample names (as in "seed3x2*5", 2x3 to 5x6-fourth-thrust). Sample values is an N,D-dimensional list of floats whose coordinates pertinent and direction as to (N x N array); a sample is selected between two independent particles, one such that: * N = 4, D[1], 0, & Phi[1], & A[M-1] + D[n+M-1, k; m; n+Q] + |N,D[p q_k,...,n so...]. * D[n+p l, j ] => A[[a, b],[c, b],...]. Basic usage by choosing from a tuple and setting some properties; Initial setup: Set n/di+
!/usro/bin/python
----------------------------------------------------------------------------
XBMC Server Configuration
----------------------------------------------------------------------------
Python code derived from PyQt4 ("qutebrowser"): an easy Python toolkit and shortcuts
Copyright (C) 2013 Digia
qutebrowser 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.
qutebrowser is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with qutebrowser. If not, see http://www.gnu.org/licenses/gpl-3.0.html
"""PySide compatibility base class to allow importing by pyqt3-qtui via python API
@depends: BaseClass, class PyQObject
See module docs on PyObject
Usage of
๐ญโญ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ค Codeparrot Small on 20 March 2024 at 11:04 AM
Codeparrot Small wrote:
# -- coding: utf-8 -- # # Copyright (C) 2015-2016 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Authors: # Thomas Woerner twoerner@redhat.com # import os import sys import time import unittest from tests.baseclass import CommandTest from tests.baseclass import CommandTestException from tests.base
Copyright 2019 gRPC 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
!/bin\none$ \
import grcui.testsutil as unittest2
class TestCreate(utlobject.UbuntuTestCase):
#===========================================================================
_patchFileTypeTests= ( None, u'#add missing type.\nwith\ns = @(\'#.\1\'.+"#\t")\s+\0',) )
_patchDataTypeTests+= ('.gtf.org(name)') # Adds in to mock file.py
# Make sure they dont end up parsing empty. This is more testing test because in
# cases the last line for an extra test runs of gcl generate it doesn't seem to parse
# it!
def makeUnparseableLinesTestWithoutFormatting(_type,
content = ( '\naab \'.//',),
๐ญโฌ โ ๐ชโ โ ๐ก๏ธโ โ ๐งฆโ ๐ฅโ
๐ฆช View Source for Original Content.
โ๏ธ View Source for Summaries.
โฑ๏ธ Processed in 0:03:08.165884