code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@author: Pierre Thibault (pierre.thibault1 -at- gmail.com)
@license: MIT
@since: 2011-06-17
Usage: dict_diff [OPTION]... dict1 dict2
Show the differences for two dictionaries.
-h, --help Display this help message.
dict1 and dict2 are two web2py dictionar... | [
[
8,
0,
0.0847,
0.1129,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1532,
0.0081,
0,
0.66,
0.0909,
959,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1694,
0.0081,
0,
0.66,... | [
"'''\n@author: Pierre Thibault (pierre.thibault1 -at- gmail.com)\n@license: MIT\n@since: 2011-06-17\n\nUsage: dict_diff [OPTION]... dict1 dict2\nShow the differences for two dictionaries.",
"__docformat__ = \"epytext en\"",
"import getopt",
"import os.path",
"import sys",
"def main(argv):\n \"\"\"Parse... |
USAGE = """
from web2py main folder
python scripts/make_min_web2py.py /path/to/minweb2py
it will mkdir minweb2py and build a minimal web2py installation
- no admin, no examples, one line welcome
- no scripts
- drops same rarely used contrib modules
- more modules could be dropped but minimal difference
"""
# files to... | [
[
14,
0,
0.0567,
0.1031,
0,
0.66,
0,
952,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1804,
0.1031,
0,
0.66,
0.125,
795,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3299,
0.1546,
0,
0.... | [
"USAGE = \"\"\"\nfrom web2py main folder\npython scripts/make_min_web2py.py /path/to/minweb2py\n\nit will mkdir minweb2py and build a minimal web2py installation\n- no admin, no examples, one line welcome\n- no scripts\n- drops same rarely used contrib modules",
"REQUIRED = \"\"\"\nVERSION\nweb2py.py\nfcgihandler... |
import sys
import glob
import os
import shutil
name = sys.argv[1]
app = sys.argv[2]
dest = sys.argv[3]
a = glob.glob(
'applications/%(app)s/*/plugin_%(name)s.*' % dict(app=app, name=name))
b = glob.glob(
'applications/%(app)s/*/plugin_%(name)s/*' % dict(app=app, name=name))
for f in a:
print 'cp %s ...' % ... | [
[
1,
0,
0.0312,
0.0312,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0625,
0.0312,
0,
0.66,
0.1,
958,
0,
1,
0,
0,
958,
0,
0
],
[
1,
0,
0.0938,
0.0312,
0,
0.6... | [
"import sys",
"import glob",
"import os",
"import shutil",
"name = sys.argv[1]",
"app = sys.argv[2]",
"dest = sys.argv[3]",
"a = glob.glob(\n 'applications/%(app)s/*/plugin_%(name)s.*' % dict(app=app, name=name))",
"b = glob.glob(\n 'applications/%(app)s/*/plugin_%(name)s/*' % dict(app=app, na... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
sessions2trash.py
Run this script in a web2py environment shell e.g. python web2py.py -S app
If models are loaded (-M option) auth.settings.expiration is assumed
for sessions without an expiration. If models are not loaded, sessions older
than 60 minutes are removed. U... | [
[
8,
0,
0.0568,
0.0917,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1092,
0.0044,
0,
0.66,
0.05,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.1135,
0.0044,
0,
0.66,
... | [
"\"\"\"\nsessions2trash.py\n\nRun this script in a web2py environment shell e.g. python web2py.py -S app\nIf models are loaded (-M option) auth.settings.expiration is assumed\nfor sessions without an expiration. If models are not loaded, sessions older\nthan 60 minutes are removed. Use the --expiration option to ov... |
import os
import sys
import glob
sys.path.append(os.path.join(os.path.split(__file__)[0],'..'))
from gluon.html import CODE
def main(path):
models = glob.glob(os.path.join(path,'models','*.py'))
controllers = glob.glob(os.path.join(path,'controllers','*.py'))
views = glob.glob(os.path.join(path,'views','*.... | [
[
1,
0,
0.0244,
0.0244,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0488,
0.0244,
0,
0.66,
0.1667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0732,
0.0244,
0,
... | [
"import os",
"import sys",
"import glob",
"sys.path.append(os.path.join(os.path.split(__file__)[0],'..'))",
"from gluon.html import CODE",
"def main(path):\n models = glob.glob(os.path.join(path,'models','*.py'))\n controllers = glob.glob(os.path.join(path,'controllers','*.py'))\n views = glob.gl... |
#!/usr/bin/env python
import sys, os, time, subprocess
class Base:
def run_command(self, *args):
"""
Returns the output of a command as a tuple (output, error).
"""
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return p.communicate()
class Serv... | [
[
1,
0,
0.015,
0.005,
0,
0.66,
0,
509,
0,
4,
0,
0,
509,
0,
0
],
[
3,
0,
0.04,
0.035,
0,
0.66,
0.2,
56,
0,
1,
0,
0,
0,
0,
2
],
[
2,
1,
0.0425,
0.03,
1,
0.04,
0,
... | [
"import sys, os, time, subprocess",
"class Base:\n def run_command(self, *args):\n \"\"\"\n Returns the output of a command as a tuple (output, error).\n \"\"\"\n p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n return p.communicate()",
" def ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# TODO: Comment this code
import sys
import shutil
import os
from gluon.languages import findT
sys.path.insert(0, '.')
def sync_language(d, data):
''' this function makes sure a translated string will be prefered over an untranslated
string when syncing languag... | [
[
1,
0,
0.0779,
0.013,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0909,
0.013,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.1039,
0.013,
0,
0.6... | [
"import sys",
"import shutil",
"import os",
"from gluon.languages import findT",
"sys.path.insert(0, '.')",
"def sync_language(d, data):\n ''' this function makes sure a translated string will be prefered over an untranslated\n string when syncing languages between apps. when both are translated, it... |
import sys
import re
def cleancss(text):
text = re.compile('\s+').sub(' ', text)
text = re.compile('\s*(?P<a>,|:)\s*').sub('\g<a> ', text)
text = re.compile('\s*;\s*').sub(';\n ', text)
text = re.compile('\s*\{\s*').sub(' {\n ', text)
text = re.compile('\s*\}\s*').sub('\n}\n\n', text)
re... | [
[
1,
0,
0.0156,
0.0156,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0312,
0.0156,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
2,
0,
0.125,
0.1094,
0,
0... | [
"import sys",
"import re",
"def cleancss(text):\n text = re.compile('\\s+').sub(' ', text)\n text = re.compile('\\s*(?P<a>,|:)\\s*').sub('\\g<a> ', text)\n text = re.compile('\\s*;\\s*').sub(';\\n ', text)\n text = re.compile('\\s*\\{\\s*').sub(' {\\n ', text)\n text = re.compile('\\s*\\}\\... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import re
filename = sys.argv[1]
datafile = open(filename, 'r')
try:
data = '\n' + datafile.read()
finally:
datafile.close()
SPACE = '\n ' if '-n' in sys.argv[1:] else ' '
data = re.compile('(?<!\:)//(?P<a>.*)').sub('/* \g<a> */', data)
data = re.c... | [
[
1,
0,
0.125,
0.0312,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1562,
0.0312,
0,
0.66,
0.05,
540,
0,
1,
0,
0,
540,
0,
0
],
[
14,
0,
0.2188,
0.0312,
0,
0.... | [
"import sys",
"import re",
"filename = sys.argv[1]",
"datafile = open(filename, 'r')",
"try:\n data = '\\n' + datafile.read()\nfinally:\n datafile.close()",
" data = '\\n' + datafile.read()",
" datafile.close()",
"SPACE = '\\n ' if '-n' in sys.argv[1:] else ' '",
"data = re.compile('(... |
'''
Create the web2py code needed to access your mysql legacy db.
To make this work all the legacy tables you want to access need to have an "id" field.
This plugin needs:
mysql
mysqldump
installed and globally available.
Under Windows you will probably need to add the mysql executable directory to the PATH variable... | [
[
8,
0,
0.1018,
0.1947,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2035,
0.0088,
0,
0.66,
0.1429,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.2124,
0.0088,
0,
0.66... | [
"'''\nCreate the web2py code needed to access your mysql legacy db.\n\nTo make this work all the legacy tables you want to access need to have an \"id\" field.\n\nThis plugin needs:\nmysql\nmysqldump",
"import subprocess",
"import re",
"import sys",
"data_type_map = dict(\n varchar='string',\n int='in... |
# -*- coding: utf-8 -*-
'''
autoroutes writes routes for you based on a simpler routing
configuration file called routes.conf. Example:
----- BEGIN routes.conf-------
127.0.0.1 /examples/default
domain1.com /app1/default
domain2.com /app2/default
domain3.com /app3/default
----- END ----------
It maps a domain (the ... | [
[
8,
0,
0.1133,
0.2067,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2433,
0.04,
0,
0.66,
0.125,
308,
1,
0,
0,
0,
0,
3,
0
],
[
4,
0,
0.2933,
0.06,
0,
0.66,
... | [
"'''\nautoroutes writes routes for you based on a simpler routing\nconfiguration file called routes.conf. Example:\n\n----- BEGIN routes.conf-------\n127.0.0.1 /examples/default\ndomain1.com /app1/default\ndomain2.com /app2/default",
"config = '''\n127.0.0.1 /examples/default\ndomain1.com /app1/default\ndomai... |
#
# This files allows to delegate authentication for every URL within a domain
# to a web2py app within the same domain
# If you are logged in the app, you have access to the URL
# even if the URL is not a web2py URL
#
# in /etc/apache2/sites-available/default
#
# <VirtualHost *:80>
# WSGIDaemonProcess web2py user=ww... | [
[
14,
0,
0.5781,
0.0156,
0,
0.66,
0,
502,
1,
0,
0,
0,
0,
3,
0
],
[
2,
0,
0.8047,
0.4062,
0,
0.66,
1,
805,
0,
2,
1,
0,
0,
0,
19
],
[
1,
1,
0.625,
0.0156,
1,
0.13,
... | [
"URL_CHECK_ACCESS = 'http://127.0.0.1:8002/%(app)s/default/check_access'",
"def allow_access(environ,host):\n import os\n import urllib\n import urllib2\n import datetime\n header = '%s @ %s ' % (datetime.datetime.now(),host) + '='*20\n pprint = '\\n'.join('%s:%s' % item for item in environ.item... |
# -*- coding: utf-8 -*-
'''
Create the web2py model code needed to access your sqlite legacy db.
Usage:
python extract_sqlite_models.py
Access your tables with:
legacy_db(legacy_db.mytable.id>0).select()
extract_sqlite_models.py -- Copyright (C) Michele Comitini
This code is distributed with web2py.
The regexp co... | [
[
8,
0,
0.0973,
0.1504,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.177,
0.0088,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1858,
0.0088,
0,
0.66,... | [
"'''\nCreate the web2py model code needed to access your sqlite legacy db.\n\nUsage:\npython extract_sqlite_models.py\n\nAccess your tables with:\nlegacy_db(legacy_db.mytable.id>0).select()",
"import re",
"import sys",
"import sqlite3",
"data_type_map = dict(\n varchar='string',\n int='integer',\n ... |
import re
def cleanjs(text):
text = re.sub('\s*}\s*', '\n}\n', text)
text = re.sub('\s*{\s*', ' {\n', text)
text = re.sub('\s*;\s*', ';\n', text)
text = re.sub('\s*,\s*', ', ', text)
text = re.sub('\s*(?P<a>[\+\-\*/\=]+)\s*', ' \g<a> ', text)
lines = text.split('\n')
text = ''
indent =... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
2,
0,
0.6176,
0.8235,
0,
0.66,
1,
839,
0,
1,
1,
0,
0,
0,
7
],
[
14,
1,
0.2941,
0.0588,
1,
0.84,
... | [
"import re",
"def cleanjs(text):\n text = re.sub('\\s*}\\s*', '\\n}\\n', text)\n text = re.sub('\\s*{\\s*', ' {\\n', text)\n text = re.sub('\\s*;\\s*', ';\\n', text)\n text = re.sub('\\s*,\\s*', ', ', text)\n text = re.sub('\\s*(?P<a>[\\+\\-\\*/\\=]+)\\s*', ' \\g<a> ', text)\n lines = text.split... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Usage:
Install cx_Freeze: http://cx-freeze.sourceforge.net/
Copy script to the web2py directory
c:\Python27\python standalone_exe_cxfreeze.py build_exe
"""
from cx_Freeze import setup, Executable
from gluon.import_all import base_modules, contributed_module... | [
[
8,
0,
0.1016,
0.0938,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1562,
0.0156,
0,
0.66,
0.0588,
353,
0,
2,
0,
0,
353,
0,
0
],
[
1,
0,
0.1719,
0.0156,
0,
0.66... | [
"\"\"\"\nUsage:\n Install cx_Freeze: http://cx-freeze.sourceforge.net/\n Copy script to the web2py directory\n c:\\Python27\\python standalone_exe_cxfreeze.py build_exe\n\"\"\"",
"from cx_Freeze import setup, Executable",
"from gluon.import_all import base_modules, contributed_modules",
"from gluon.f... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import cStringIO
import re
import sys
import tarfile
import urllib
import xml.parsers.expat as expat
"""
Update script for contenttype.py module.
Usage: python contentupdate.py /path/to/contenttype.py
If no path is specified, script will look for contenttype.py in curre... | [
[
1,
0,
0.0312,
0.0312,
0,
0.66,
0,
764,
0,
1,
0,
0,
764,
0,
0
],
[
1,
0,
0.0625,
0.0312,
0,
0.66,
0.1667,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0938,
0.0312,
0,
... | [
"import cStringIO",
"import re",
"import sys",
"import tarfile",
"import urllib",
"import xml.parsers.expat as expat",
"class MIMEParser(dict):\n\n def __start_element_handler(self, name, attrs):\n if name == 'mime-type':\n if self.type:\n for extension in self.extens... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import time
import stat
import datetime
from gluon.utils import md5_hash
from gluon.restricted import RestrictedError
from gluon.tools import Mail
path = os.path.join(request.folder, 'errors')
hashes = {}
mail = Mail()
### CONFIGURE HERE
SLEEP_MINU... | [
[
1,
0,
0.0816,
0.0204,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.102,
0.0204,
0,
0.66,
0.0625,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1224,
0.0204,
0,
0... | [
"import sys",
"import os",
"import time",
"import stat",
"import datetime",
"from gluon.utils import md5_hash",
"from gluon.restricted import RestrictedError",
"from gluon.tools import Mail",
"path = os.path.join(request.folder, 'errors')",
"hashes = {}",
"mail = Mail()",
"SLEEP_MINUTES = 5",
... |
import sys
import glob
def read_fileb(filename, mode='rb'):
f = open(filename, mode)
try:
return f.read()
finally:
f.close()
def write_fileb(filename, value, mode='wb'):
f = open(filename, mode)
try:
f.write(value)
finally:
f.close()
for filename in glob.glob... | [
[
1,
0,
0.037,
0.037,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0741,
0.037,
0,
0.66,
0.25,
958,
0,
1,
0,
0,
958,
0,
0
],
[
2,
0,
0.2778,
0.2222,
0,
0.66,... | [
"import sys",
"import glob",
"def read_fileb(filename, mode='rb'):\n f = open(filename, mode)\n try:\n return f.read()\n finally:\n f.close()",
" f = open(filename, mode)",
" try:\n return f.read()\n finally:\n f.close()",
" return f.read()",
" ... |
import os
import sys
paths = [sys.argv[1]]
paths1 = []
paths2 = []
while paths:
path = paths.pop()
for filename in os.listdir(path):
fullname = os.path.join(path, filename)
if os.path.isdir(fullname):
paths.append(fullname)
else:
extension = filename.split('.')[-1... | [
[
1,
0,
0.04,
0.04,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.08,
0.04,
0,
0.66,
0.1667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
14,
0,
0.12,
0.04,
0,
0.66,
0... | [
"import os",
"import sys",
"paths = [sys.argv[1]]",
"paths1 = []",
"paths2 = []",
"while paths:\n path = paths.pop()\n for filename in os.listdir(path):\n fullname = os.path.join(path, filename)\n if os.path.isdir(fullname):\n paths.append(fullname)\n else:\n ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
crontab -e
* 3 * * * root path/to/this/file
"""
USER = 'www-data'
TMPFILENAME = 'web2py_src_update.zip'
import sys
import os
import urllib
import zipfile
if len(sys.argv) > 1 and sys.argv[1] == 'nightly':
version = 'http://web2py.com/examples/static/nightly/web2... | [
[
8,
0,
0.1667,
0.1212,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2727,
0.0303,
0,
0.66,
0.0714,
532,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.303,
0.0303,
0,
0.66,... | [
"\"\"\"\ncrontab -e\n* 3 * * * root path/to/this/file\n\"\"\"",
"USER = 'www-data'",
"TMPFILENAME = 'web2py_src_update.zip'",
"import sys",
"import os",
"import urllib",
"import zipfile",
"if len(sys.argv) > 1 and sys.argv[1] == 'nightly':\n version = 'http://web2py.com/examples/static/nightly/web2... |
import os
import glob
import zipfile
import urllib
import tempfile
import shutil
def copytree(src, dst):
names = os.listdir(src)
ignored_names = set()
errors = []
if not os.path.exists(dst):
os.makedirs(dst)
for name in names:
srcname = os.path.join(src, name)
dstname = os.p... | [
[
1,
0,
0.0086,
0.0086,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0172,
0.0086,
0,
0.66,
0.1,
958,
0,
1,
0,
0,
958,
0,
0
],
[
1,
0,
0.0259,
0.0086,
0,
0.6... | [
"import os",
"import glob",
"import zipfile",
"import urllib",
"import tempfile",
"import shutil",
"def copytree(src, dst):\n names = os.listdir(src)\n ignored_names = set()\n errors = []\n if not os.path.exists(dst):\n os.makedirs(dst)\n for name in names:\n srcname = os.pa... |
# -*- coding: utf-8 -*-
# routers are dictionaries of URL routing parameters.
#
# For each request, the effective router is:
# the built-in default base router (shown below),
# updated by the BASE router in routes.py routers,
# updated by the app-specific router in routes.py routers (if any),
# updated b... | [
[
14,
0,
0.4929,
0.0332,
0,
0.66,
0,
839,
3,
1,
0,
0,
827,
10,
2
],
[
14,
0,
0.5403,
0.0047,
0,
0.66,
0.3333,
715,
1,
0,
0,
0,
0,
3,
0
],
[
2,
0,
0.8412,
0.2844,
0,
... | [
"routers = dict(\n\n # base router\n BASE=dict(\n default_application='welcome',\n ),\n)",
"logging = 'debug'",
"def __routes_doctest():\n '''\n Dummy function for doctesting routes.py.\n\n Use filter_url() to test incoming or outgoing routes;\n filter_err() for error redirection.\n\... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
path = os.getcwd()
try:
if sys.argv[1] and os.path.exists(sys.argv[1]):
path = sys.argv[1]
except:
pass
os.chdir(path)
sys.path = [path]+[p for p in sys.path if not p==path]
# import gluon.import_all ##### This should be uncommented f... | [
[
1,
0,
0.1667,
0.0417,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2083,
0.0417,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
14,
0,
0.2917,
0.0417,
0,
... | [
"import os",
"import sys",
"path = os.getcwd()",
"try:\n if sys.argv[1] and os.path.exists(sys.argv[1]):\n path = sys.argv[1]\nexcept:\n pass",
" if sys.argv[1] and os.path.exists(sys.argv[1]):\n path = sys.argv[1]",
" path = sys.argv[1]",
"os.chdir(path)",
"sys.path = [p... |
#!/usr/bin/env python
import gluon
from gluon.fileutils import untar
import os
import sys
def main():
path = gluon.__path__
out_path = os.getcwd()
try:
if sys.argv[1] and os.path.exists(sys.argv[1]):# To untar the web2py env to the selected path
out_path = sys.argv[1]
else:
... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
826,
0,
1,
0,
0,
826,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.2,
948,
0,
1,
0,
0,
948,
0,
0
],
[
1,
0,
0.1481,
0.037,
0,
0.66,
... | [
"import gluon",
"from gluon.fileutils import untar",
"import os",
"import sys",
"def main():\n path = gluon.__path__\n out_path = os.getcwd()\n try:\n if sys.argv[1] and os.path.exists(sys.argv[1]):# To untar the web2py env to the selected path\n out_path = sys.argv[1]\n el... |
EXPIRATION_MINUTES=60
DIGITS=('0','1','2','3','4','5','6','7','8','9')
import os, time, stat, cPickle, logging
path = os.path.join(request.folder,'sessions')
if not os.path.exists(path):
os.mkdir(path)
now = time.time()
for filename in os.listdir(path):
fullpath=os.path.join(path,filename)
if os.path.isfile... | [
[
14,
0,
0.0476,
0.0476,
0,
0.66,
0,
270,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.0952,
0.0476,
0,
0.66,
0.1667,
100,
0,
0,
0,
0,
0,
8,
0
],
[
1,
0,
0.1429,
0.0476,
0,
0.... | [
"EXPIRATION_MINUTES=60",
"DIGITS=('0','1','2','3','4','5','6','7','8','9')",
"import os, time, stat, cPickle, logging",
"path = os.path.join(request.folder,'sessions')",
"if not os.path.exists(path):\n os.mkdir(path)",
" os.mkdir(path)",
"now = time.time()",
"for filename in os.listdir(path):\n ... |
# coding: utf8
{
'!langcode!': 'zh-cn',
'!langname!': '中文',
'"browse"': '游览',
'"save"': '"保存"',
'"submit"': '"提交"',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"更新"是可配置项 如 "field1=\'newvalue\'",你无法在JOIN 中更新或删除',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %... | [
[
8,
0,
0.5033,
0.9967,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'zh-cn',\n'!langname!': '中文',\n'\"browse\"': '游览',\n'\"save\"': '\"保存\"',\n'\"submit\"': '\"提交\"',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"更新\"是可配置项 如 \"field1=\\'newvalue\\'\",你无法在JOIN 中更新或删除',\n'%Y-%m-%d': '%Y-... |
# coding: utf8
{
'!langcode!': 'it',
'!langname!': 'Italiano',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" è un\'espressione opzionale come "campo1=\'nuovo valore\'". Non si può fare "update" o "delete" dei risultati di un JOIN ',
'%s %%{... | [
[
8,
0,
0.503,
0.997,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'it',\n'!langname!': 'Italiano',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" è un\\'espressione opzionale come \"campo1=\\'nuovo valore\\'\". Non si può fare \"update\" o \"delete\" dei risultati di un JOIN ... |
# coding: utf8
{
'!langcode!': 'sr-cr',
'!langname!': 'Српски (Ћирилица)',
'%Y-%m-%d': '%d-%m-%Y',
'%Y-%m-%d %H:%M:%S': '%d-%m-%Y %H:%M:%S',
'(requires internet access)': '(захтијева приступ интернету)',
'(something like "it-it")': '(нешто као "it-it")',
'@markmin\x01(file **gluon/contrib/plural_rules/%s.py** is not fo... | [
[
8,
0,
0.5047,
0.9953,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'sr-cr',\n'!langname!': 'Српски (Ћирилица)',\n'%Y-%m-%d': '%d-%m-%Y',\n'%Y-%m-%d %H:%M:%S': '%d-%m-%Y %H:%M:%S',\n'(requires internet access)': '(захтијева приступ интернету)',\n'(something like \"it-it\")': '(нешто као \"it-it\")',\n'@markmin\\x01(file **gluon/contrib/plural_rules/%s.py** is not ... |
# coding: utf8
{
'!langcode!': 'es',
'!langname!': 'Español',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"actualice" es una expresión opcional como "campo1=\'nuevo_valor\'". No se puede actualizar o eliminar resultados de un JOIN',
'%s %%{row} de... | [
[
8,
0,
0.5028,
0.9972,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'es',\n'!langname!': 'Español',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"actualice\" es una expresión opcional como \"campo1=\\'nuevo_valor\\'\". No se puede actualizar o eliminar resultados de un JOIN',\n'%s %%{r... |
#!/usr/bin/env python
{
# "singular form (0)": ["first plural form (1)", "second plural form (2)", ...],
'файл': ['файла','файлов'],
}
| [
[
8,
0,
0.7,
0.8,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n# \"singular form (0)\": [\"first plural form (1)\", \"second plural form (2)\", ...],\n'файл': ['файла','файлов'],\n}"
] |
#!/usr/bin/env python
{
# "singular form (0)": ["first plural form (1)", "second plural form (2)", ...],
'file': ['files'],
}
| [
[
8,
0,
0.7,
0.8,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n# \"singular form (0)\": [\"first plural form (1)\", \"second plural form (2)\", ...],\n'file': ['files'],\n}"
] |
# coding: utf8
{
'!langcode!': 'ja-jp',
'!langname!': '日本語',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
'%s %%{row} deleted': '%s rows deleted',
'%s %%{row} updated': '%s rows updated',
'(requires internet access)': '(インターネットアクセスが必要)',
'(something like "it-it")': '(例: "it-it")',
'@markmin\x01Sear... | [
[
8,
0,
0.5053,
0.9947,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'ja-jp',\n'!langname!': '日本語',\n'%Y-%m-%d': '%Y-%m-%d',\n'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',\n'%s %%{row} deleted': '%s rows deleted',\n'%s %%{row} updated': '%s rows updated',\n'(requires internet access)': '(インターネットアクセスが必要)',"
] |
# coding: utf8
{
'!langcode!': 'cs-cz',
'!langname!': 'čeština',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': 'Kolonka "Upravit" je nepovinný výraz, například "pole1=\'nováhodnota\'". Výsledky databázového JOINu nemůžete mazat ani upravovat.',
... | [
[
8,
0,
0.5021,
0.9979,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'cs-cz',\n'!langname!': 'čeština',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': 'Kolonka \"Upravit\" je nepovinný výraz, například \"pole1=\\'nováhodnota\\'\". Výsledky databázového JOINu nemůžete mazat ani upravovat.',\... |
# coding: utf8
{
'!langcode!': 'sr-lt',
'!langname!': 'Srpski (Latinica)',
'%Y-%m-%d': '%d-%m-%Y',
'%Y-%m-%d %H:%M:%S': '%d-%m-%Y %H:%M:%S',
'(requires internet access)': '(zahtijeva pristup internetu)',
'(something like "it-it")': '(nešto kao "it-it")',
'@markmin\x01(file **gluon/contrib/plural_rules/%s.py** is not fo... | [
[
8,
0,
0.5047,
0.9953,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'sr-lt',\n'!langname!': 'Srpski (Latinica)',\n'%Y-%m-%d': '%d-%m-%Y',\n'%Y-%m-%d %H:%M:%S': '%d-%m-%Y %H:%M:%S',\n'(requires internet access)': '(zahtijeva pristup internetu)',\n'(something like \"it-it\")': '(nešto kao \"it-it\")',\n'@markmin\\x01(file **gluon/contrib/plural_rules/%s.py** is not ... |
# coding: utf8
{
'!langcode!': 'af',
'!langname!': 'Afrikaanse',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
'%s %%{row} deleted': '%s rows deleted',
'%s %%{row} updated': '%s rows updated',
'(requires internet access)': '(vereis internet toegang)',
'(something like "it-it")': '(iets soos "it-it")... | [
[
8,
0,
0.5112,
0.9888,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'af',\n'!langname!': 'Afrikaanse',\n'%Y-%m-%d': '%Y-%m-%d',\n'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',\n'%s %%{row} deleted': '%s rows deleted',\n'%s %%{row} updated': '%s rows updated',\n'(requires internet access)': '(vereis internet toegang)',"
] |
# coding: utf8
{
'!langcode!': 'uk',
'!langname!': 'Українська',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Оновити" це додатковий вираз, такий, як "field1=\'нове_значення\'". Ви не можете змінювати або вилучати дані об\'єднаних таблиць',
'"User... | [
[
8,
0,
0.502,
0.998,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'uk',\n'!langname!': 'Українська',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"Оновити\" це додатковий вираз, такий, як \"field1=\\'нове_значення\\'\". Ви не можете змінювати або вилучати дані об\\'єднаних таблиць',\... |
# coding: utf8
{
'!langcode!': 'pl',
'!langname!': 'Polska',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Uaktualnij" jest dodatkowym wyrażeniem postaci "pole1=\'nowawartość\'". Nie możesz uaktualnić lub usunąć wyników z JOIN:',
'%Y-%m-%d': '%Y-%m... | [
[
8,
0,
0.5036,
0.9964,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'pl',\n'!langname!': 'Polska',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"Uaktualnij\" jest dodatkowym wyrażeniem postaci \"pole1=\\'nowawartość\\'\". Nie możesz uaktualnić lub usunąć wyników z JOIN:',\n'%Y-%m-%d': ... |
# coding: utf8
{
'!langcode!': 'ru',
'!langname!': 'Русский',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Update" ist ein optionaler Ausdruck wie "Feld1 = \'newvalue". JOIN Ergebnisse können nicht aktualisiert oder gelöscht werden',
'%s %%{row} d... | [
[
8,
0,
0.5027,
0.9973,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'ru',\n'!langname!': 'Русский',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"Update\" ist ein optionaler Ausdruck wie \"Feld1 = \\'newvalue\". JOIN Ergebnisse können nicht aktualisiert oder gelöscht werden',\n'%s %%{r... |
# coding: utf8
# Translation by: Klaus Kappel <kkappel@yahoo.de>
{
'!langcode!': 'de',
'!langname!': 'Deutsch',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Update" ist ein optionaler Ausdruck wie "Feld1 = \'newvalue". JOIN Ergebnisse k?nnen nicht... | [
[
8,
0,
0.5039,
0.9948,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'de',\n'!langname!': 'Deutsch',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"Update\" ist ein optionaler Ausdruck wie \"Feld1 = \\'newvalue\". JOIN Ergebnisse k?nnen nicht aktualisiert oder gel?scht werden',\n'%s %%{r... |
# coding: utf8
{
'!langcode!': 'bg',
'!langname!': 'Български',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN',
'%Y-%m-%d': '%Y-%m-%d',
... | [
[
8,
0,
0.5035,
0.9965,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'bg',\n'!langname!': 'Български',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN',\n'%Y-%m-%d': '%Y-%m... |
# coding: utf8
{
'!langcode!': 'pt',
'!langname!': 'Português',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "campo1=\'novo_valor\'". Não é permitido atualizar ou apagar resultados de um JOIN',
'%Y-%m-%d': '%d... | [
[
8,
0,
0.5031,
0.9969,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'pt',\n'!langname!': 'Português',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" é uma expressão opcional como \"campo1=\\'novo_valor\\'\". Não é permitido atualizar ou apagar resultados de um JOIN',\n'%Y-%m-%d... |
# coding: utf8
{
'!langcode!': 'sl',
'!langname!': 'Slovenski',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Popravi" je izbirni izraz kot npr.: "stolpec1 = \'novavrednost\'". Rezultatov JOIN operacije ne morete popravljati ali brisati',
'%Y-%m-%d... | [
[
8,
0,
0.5027,
0.9973,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'sl',\n'!langname!': 'Slovenski',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"Popravi\" je izbirni izraz kot npr.: \"stolpec1 = \\'novavrednost\\'\". Rezultatov JOIN operacije ne morete popravljati ali brisati',\n'%Y... |
#!/usr/bin/env python
{
# "singular form (0)": ["first plural form (1)", "second plural form (2)", ...],
'файл': ['файли','файлів'],
}
| [
[
8,
0,
0.7,
0.8,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n# \"singular form (0)\": [\"first plural form (1)\", \"second plural form (2)\", ...],\n'файл': ['файли','файлів'],\n}"
] |
# coding: utf8
{
'!langcode!': 'he-il',
'!langname!': 'עברית',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"עדכן" הוא ביטוי אופציונאלי, כגון "field1=newvalue". אינך יוכל להשתמש בjoin, בעת שימוש ב"עדכן" או "מחק".',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d... | [
[
8,
0,
0.5037,
0.9963,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'he-il',\n'!langname!': 'עברית',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"עדכן\" הוא ביטוי אופציונאלי, כגון \"field1=newvalue\". אינך יוכל להשתמש בjoin, בעת שימוש ב\"עדכן\" או \"מחק\".',\n'%Y-%m-%d': '%Y-%m-%d',\n... |
# coding: utf8
{
'!langcode!': 'fr',
'!langname!': 'Français',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" est une expression en option tels que "field1 = \'newvalue\'". Vous ne pouvez pas mettre à jour ou supprimer les résultats d\'une j... | [
[
8,
0,
0.5036,
0.9964,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'fr',\n'!langname!': 'Français',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" est une expression en option tels que \"field1 = \\'newvalue\\'\". Vous ne pouvez pas mettre à jour ou supprimer les résultats d\\... |
# coding: utf8
{
'!langcode!': 'nl',
'!langname!': 'Nederlands',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is een optionele expressie zoals "veld1=\'nieuwewaarde\'". Je kan de resultaten van een JOIN niet updaten of verwijderen.',
'"Use... | [
[
8,
0,
0.5021,
0.9979,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'nl',\n'!langname!': 'Nederlands',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" is een optionele expressie zoals \"veld1=\\'nieuwewaarde\\'\". Je kan de resultaten van een JOIN niet updaten of verwijderen.',\... |
# coding: utf8
{
'!langcode!': 'zh-tw',
'!langname!': '台灣中文',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"更新" 是選擇性的條件式, 格式就像 "欄位1=\'值\'". 但是 JOIN 的資料不可以使用 update 或是 delete"',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
'%s %... | [
[
8,
0,
0.5033,
0.9967,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'zh-tw',\n'!langname!': '台灣中文',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"更新\" 是選擇性的條件式, 格式就像 \"欄位1=\\'值\\'\". 但是 JOIN 的資料不可以使用 update 或是 delete\"',\n'%Y-%m-%d': '%Y-%m-%d',\n'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S... |
# coding: utf8
{
'!langcode!': 'en-us',
'!langname!': 'English (US)',
'%Y-%m-%d': '%m-%d-%Y',
'%Y-%m-%d %H:%M:%S': '%m-%d-%Y %H:%M:%S',
'(requires internet access)': '(requires internet access)',
'(something like "it-it")': '(something like "it-it")',
'About': 'About',
'Additional code for your application': 'Additiona... | [
[
8,
0,
0.5054,
0.9946,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'en-us',\n'!langname!': 'English (US)',\n'%Y-%m-%d': '%m-%d-%Y',\n'%Y-%m-%d %H:%M:%S': '%m-%d-%Y %H:%M:%S',\n'(requires internet access)': '(requires internet access)',\n'(something like \"it-it\")': '(something like \"it-it\")',\n'About': 'About',"
] |
# coding: utf8
{
'!=': '!=',
'!langcode!': 'ro',
'!langname!': 'Română',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" (actualizează) este o expresie opțională precum "câmp1=\'valoare_nouă\'". Nu puteți actualiza sau șterge rezultatele unui... | [
[
8,
0,
0.5022,
0.9978,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!=': '!=',\n'!langcode!': 'ro',\n'!langname!': 'Română',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" (actualizează) este o expresie opțională precum \"câmp1=\\'valoare_nouă\\'\". Nu puteți actualiza sau șterge rezultatel... |
# ###########################################################
# ## generate menu
# ###########################################################
_a = request.application
_c = request.controller
_f = request.function
response.title = '%s %s' % (_f, '/'.join(request.args))
response.subtitle = 'admin'
response.menu = [(T('... | [
[
14,
0,
0.1351,
0.027,
0,
0.66,
0,
635,
7,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1622,
0.027,
0,
0.66,
0.125,
934,
7,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1892,
0.027,
0,
0.66,... | [
"_a = request.application",
"_c = request.controller",
"_f = request.function",
"response.title = '%s %s' % (_f, '/'.join(request.args))",
"response.subtitle = 'admin'",
"response.menu = [(T('Site'), _f == 'site', URL(_a, 'default', 'site'))]",
"if request.vars.app or request.args:\n _t = request.var... |
response.files.append(
URL('static', 'plugin_multiselect/jquery.multi-select.js'))
response.files.append(URL('static', 'plugin_multiselect/multi-select.css'))
response.files.append(URL('static', 'plugin_multiselect/start.js'))
| [
[
8,
0,
0.375,
0.5,
0,
0.66,
0,
243,
3,
1,
0,
0,
0,
0,
2
],
[
8,
0,
0.75,
0.25,
0,
0.66,
0.5,
243,
3,
1,
0,
0,
0,
0,
2
],
[
8,
0,
1,
0.25,
0,
0.66,
1,
243,
... | [
"response.files.append(\n URL('static', 'plugin_multiselect/jquery.multi-select.js'))",
"response.files.append(URL('static', 'plugin_multiselect/multi-select.css'))",
"response.files.append(URL('static', 'plugin_multiselect/start.js'))"
] |
EXPIRATION = 60 * 60 # logout after 60 minutes of inactivity
CHECK_VERSION = True
WEB2PY_URL = 'http://web2py.com'
WEB2PY_VERSION_URL = WEB2PY_URL + '/examples/default/version'
###########################################################################
# Preferences for EditArea
# the user-interface feature that allo... | [
[
14,
0,
0.0125,
0.0125,
0,
0.66,
0,
631,
4,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.025,
0.0125,
0,
0.66,
0.0435,
762,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0375,
0.0125,
0,
0.... | [
"EXPIRATION = 60 * 60 # logout after 60 minutes of inactivity",
"CHECK_VERSION = True",
"WEB2PY_URL = 'http://web2py.com'",
"WEB2PY_VERSION_URL = WEB2PY_URL + '/examples/default/version'",
"TEXT_EDITOR = 'codemirror' or 'ace' or 'edit_area' or 'amy'",
"TEXT_EDITOR_THEME = (\n \"chrome\", \"clouds\", \... |
import base64
import os
import time
from gluon import portalocker
from gluon.admin import apath
from gluon.fileutils import read_file
# ###########################################################
# ## make sure administrator is on localhost or https
# ###########################################################
http_ho... | [
[
1,
0,
0.0056,
0.0056,
0,
0.66,
0,
177,
0,
1,
0,
0,
177,
0,
0
],
[
1,
0,
0.0113,
0.0056,
0,
0.66,
0.0417,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0169,
0.0056,
0,
... | [
"import base64",
"import os",
"import time",
"from gluon import portalocker",
"from gluon.admin import apath",
"from gluon.fileutils import read_file",
"http_host = request.env.http_host.split(':')[0]",
"if request.env.web2py_runtime_gae:\n session_db = DAL('gae')\n session.connect(request, resp... |
# Template helpers
import os
def A_button(*a, **b):
b['_data-role'] = 'button'
b['_data-inline'] = 'true'
return A(*a, **b)
def button(href, label):
if is_mobile:
ret = A_button(SPAN(label), _href=href)
else:
ret = A(SPAN(label), _class='button btn', _href=href)
return ret
d... | [
[
1,
0,
0.075,
0.025,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
2,
0,
0.1875,
0.1,
0,
0.66,
0.1667,
486,
0,
2,
1,
0,
0,
0,
1
],
[
14,
1,
0.175,
0.025,
1,
0.69,
... | [
"import os",
"def A_button(*a, **b):\n b['_data-role'] = 'button'\n b['_data-inline'] = 'true'\n return A(*a, **b)",
" b['_data-role'] = 'button'",
" b['_data-inline'] = 'true'",
" return A(*a, **b)",
"def button(href, label):\n if is_mobile:\n ret = A_button(SPAN(label), _href... |
# -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
if MULTI_USER_MODE:
db = DAL('sqlite://storage.sqlite') # if not, use SQLite or other DB
from gluon.tools import *
auth = Auth(
globals(), db) # authentication/authoriz... | [
[
4,
0,
0.369,
0.5714,
0,
0.66,
0,
0,
2,
0,
0,
0,
0,
0,
13
],
[
14,
1,
0.119,
0.0238,
1,
0.88,
0,
761,
3,
1,
0,
0,
18,
10,
1
],
[
1,
1,
0.1429,
0.0238,
1,
0.88,
... | [
"if MULTI_USER_MODE:\n db = DAL('sqlite://storage.sqlite') # if not, use SQLite or other DB\n from gluon.tools import *\n auth = Auth(\n globals(), db) # authentication/authorization\n crud = Crud(\n globals(), db) # for CRUD helpers using au... |
import time
import os
import sys
import re
import urllib
import cgi
import difflib
import shutil
import stat
import socket
from textwrap import dedent
try:
from mercurial import ui, hg, cmdutil
try:
from mercurial.scmutil import addremove
except:
from mercurial.cmdutil import addremove
... | [
[
1,
0,
0.0333,
0.0333,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0667,
0.0333,
0,
0.66,
0.0556,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1,
0.0333,
0,
0.6... | [
"import time",
"import os",
"import sys",
"import re",
"import urllib",
"import cgi",
"import difflib",
"import shutil",
"import stat",
"import socket",
"from textwrap import dedent",
"try:\n from mercurial import ui, hg, cmdutil\n try:\n from mercurial.scmutil import addremove\n ... |
from gluon.fileutils import read_file, write_file
if DEMO_MODE or MULTI_USER_MODE:
session.flash = T('disabled in demo mode')
redirect(URL('default', 'site'))
if not have_mercurial:
session.flash = T("Sorry, could not find mercurial installed")
redirect(URL('default', 'design', args=request.args(0)))
... | [
[
1,
0,
0.0118,
0.0118,
0,
0.66,
0,
948,
0,
2,
0,
0,
948,
0,
0
],
[
4,
0,
0.0471,
0.0353,
0,
0.66,
0.1667,
0,
0,
0,
0,
0,
0,
0,
3
],
[
14,
1,
0.0471,
0.0118,
1,
0.3... | [
"from gluon.fileutils import read_file, write_file",
"if DEMO_MODE or MULTI_USER_MODE:\n session.flash = T('disabled in demo mode')\n redirect(URL('default', 'site'))",
" session.flash = T('disabled in demo mode')",
" redirect(URL('default', 'site'))",
"if not have_mercurial:\n session.flash ... |
import os
try:
from distutils import dir_util
except ImportError:
session.flash = T('requires distutils, but not installed')
redirect(URL('default', 'site'))
try:
from git import *
except ImportError:
session.flash = T('requires python-git, but not installed')
redirect(URL('default', 'site'))
... | [
[
1,
0,
0.0154,
0.0154,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
7,
0,
0.0615,
0.0769,
0,
0.66,
0.25,
0,
0,
1,
0,
0,
0,
0,
3
],
[
1,
1,
0.0462,
0.0154,
1,
0.73,
... | [
"import os",
"try:\n from distutils import dir_util\nexcept ImportError:\n session.flash = T('requires distutils, but not installed')\n redirect(URL('default', 'site'))",
" from distutils import dir_util",
" session.flash = T('requires distutils, but not installed')",
" redirect(URL('defau... |
from gluon.admin import *
from gluon.fileutils import abspath, read_file, write_file
from gluon.tools import Service
from glob import glob
import shutil
import platform
import time
import base64
import os
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
service = Service(g... | [
[
1,
0,
0.0076,
0.0076,
0,
0.66,
0,
158,
0,
1,
0,
0,
158,
0,
0
],
[
1,
0,
0.0153,
0.0076,
0,
0.66,
0.05,
948,
0,
3,
0,
0,
948,
0,
0
],
[
1,
0,
0.0229,
0.0076,
0,
0.... | [
"from gluon.admin import *",
"from gluon.fileutils import abspath, read_file, write_file",
"from gluon.tools import Service",
"from glob import glob",
"import shutil",
"import platform",
"import time",
"import base64",
"import os",
"try:\n from cStringIO import StringIO\nexcept ImportError:\n ... |
import sys
import cStringIO
import gluon.contrib.shell
import code
import thread
from gluon.shell import env
if DEMO_MODE or MULTI_USER_MODE:
session.flash = T('disabled in demo mode')
redirect(URL('default', 'site'))
FE = 10 ** 9
def index():
app = request.args(0) or 'admin'
reset()
return dict... | [
[
1,
0,
0.02,
0.02,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.04,
0.02,
0,
0.66,
0.1,
764,
0,
1,
0,
0,
764,
0,
0
],
[
1,
0,
0.06,
0.02,
0,
0.66,
0.2,
... | [
"import sys",
"import cStringIO",
"import gluon.contrib.shell",
"import code",
"import thread",
"from gluon.shell import env",
"if DEMO_MODE or MULTI_USER_MODE:\n session.flash = T('disabled in demo mode')\n redirect(URL('default', 'site'))",
" session.flash = T('disabled in demo mode')",
"... |
### this works on linux only
import re
try:
import fcntl
import subprocess
import signal
import os
import shutil
from gluon.fileutils import read_file, write_file
except:
session.flash = 'sorry, only on Unix systems'
redirect(URL(request.application, 'default', 'site'))
if MULTI_USER_M... | [
[
1,
0,
0.03,
0.01,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
7,
0,
0.085,
0.1,
0,
0.66,
0.1429,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.05,
0.01,
1,
0.77,
0,
... | [
"import re",
"try:\n import fcntl\n import subprocess\n import signal\n import os\n import shutil\n from gluon.fileutils import read_file, write_file\nexcept:",
" import fcntl",
" import subprocess",
" import signal",
" import os",
" import shutil",
" from gluon.fil... |
import os
from gluon.settings import global_settings, read_file
#
def index():
app = request.args(0)
return dict(app=app)
def profiler():
"""
to use the profiler start web2py with -F profiler.log
"""
KEY = 'web2py_profiler_size'
filename = global_settings.cmd_options.profiler_filename
... | [
[
1,
0,
0.0323,
0.0323,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0.3333,
883,
0,
2,
0,
0,
883,
0,
0
],
[
2,
0,
0.2258,
0.0968,
0,
... | [
"import os",
"from gluon.settings import global_settings, read_file",
"def index():\n app = request.args(0)\n return dict(app=app)",
" app = request.args(0)",
" return dict(app=app)",
"def profiler():\n \"\"\"\n to use the profiler start web2py with -F profiler.log\n \"\"\"\n KEY =... |
response.files = response.files[:3]
response.menu = []
def index():
return locals()
def about():
return locals()
| [
[
14,
0,
0.1,
0.1,
0,
0.66,
0,
886,
6,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2,
0.1,
0,
0.66,
0.3333,
367,
0,
0,
0,
0,
0,
5,
0
],
[
2,
0,
0.55,
0.2,
0,
0.66,
0.6667,
... | [
"response.files = response.files[:3]",
"response.menu = []",
"def index():\n return locals()",
" return locals()",
"def about():\n return locals()",
" return locals()"
] |
# -*- coding: utf-8 -*-
response.menu = [
(T('Home'), False, URL('default', 'index')),
(T('About'), False, URL('default', 'what')),
(T('Download'), False, URL('default', 'download')),
(T('Docs & Resources'), False, URL('default', 'documentation')),
(T('Support'), False, URL('default', 'support')),
... | [
[
14,
0,
0.1333,
0.1556,
0,
0.66,
0,
367,
0,
0,
0,
0,
0,
5,
12
],
[
2,
0,
0.6778,
0.6667,
0,
0.66,
1,
741,
0,
2,
1,
0,
0,
0,
4
],
[
8,
1,
0.3778,
0.0222,
1,
0.69,
... | [
"response.menu = [\n (T('Home'), False, URL('default', 'index')),\n (T('About'), False, URL('default', 'what')),\n (T('Download'), False, URL('default', 'download')),\n (T('Docs & Resources'), False, URL('default', 'documentation')),\n (T('Support'), False, URL('default', 'support')),\n (T('Contri... |
session.connect(request,response,cookie_key='yoursecret')
| [
[
8,
0,
1,
1,
0,
0.66,
0,
242,
3,
3,
0,
0,
0,
0,
1
]
] | [
"session.connect(request,response,cookie_key='yoursecret')"
] |
def group_feed_reader(group, mode='div', counter='5'):
"""parse group feeds"""
url = "http://groups.google.com/group/%s/feed/rss_v2_0_topics.xml?num=%s" %\
(group, counter)
from gluon.contrib import feedparser
g = feedparser.parse(url)
if mode == 'div':
html = XML(TAG.BLOCKQUOTE(... | [
[
2,
0,
0.2841,
0.5455,
0,
0.66,
0,
505,
0,
3,
1,
0,
0,
0,
12
],
[
8,
1,
0.0455,
0.0227,
1,
0.31,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
1,
0.1023,
0.0455,
1,
0.31,
... | [
"def group_feed_reader(group, mode='div', counter='5'):\n \"\"\"parse group feeds\"\"\"\n\n url = \"http://groups.google.com/group/%s/feed/rss_v2_0_topics.xml?num=%s\" %\\\n (group, counter)\n from gluon.contrib import feedparser\n g = feedparser.parse(url)",
" \"\"\"parse group feeds\"\"\... |
def hello1():
""" simple page without template """
return 'Hello World'
def hello2():
""" simple page without template but with internationalization """
return T('Hello World')
def hello3():
""" page rendered by template simple_examples/index3.html or generic.html"""
return dict(message=... | [
[
2,
0,
0.0265,
0.0303,
0,
0.66,
0,
328,
0,
0,
1,
0,
0,
0,
0
],
[
8,
1,
0.0227,
0.0076,
1,
0.1,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
13,
1,
0.0379,
0.0076,
1,
0.1,
1,... | [
"def hello1():\n \"\"\" simple page without template \"\"\"\n\n return 'Hello World'",
" \"\"\" simple page without template \"\"\"",
" return 'Hello World'",
"def hello2():\n \"\"\" simple page without template but with internationalization \"\"\"\n\n return T('Hello World')",
" \"\"\"... |
def index():
return dict()
def data():
if not session.m or len(session.m) == 10:
session.m = []
if request.vars.q:
session.m.append(request.vars.q)
session.m.sort()
return TABLE(*[TR(v) for v in session.m]).xml()
def flash():
response.flash = 'this text should appear!'
re... | [
[
2,
0,
0.075,
0.1,
0,
0.66,
0,
780,
0,
0,
1,
0,
0,
0,
1
],
[
13,
1,
0.1,
0.05,
1,
0.21,
0,
0,
3,
0,
0,
0,
0,
10,
1
],
[
2,
0,
0.4,
0.35,
0,
0.66,
0.3333,
9... | [
"def index():\n return dict()",
" return dict()",
"def data():\n if not session.m or len(session.m) == 10:\n session.m = []\n if request.vars.q:\n session.m.append(request.vars.q)\n session.m.sort()\n return TABLE(*[TR(v) for v in session.m]).xml()",
" if not session.m or le... |
def variables():
return dict(a=10, b=20)
def test_for():
return dict()
def test_if():
return dict()
def test_try():
return dict()
def test_def():
return dict()
def escape():
return dict(message='<h1>text is scaped</h1>')
def xml():
return dict(message=XML('<h1>text is not escaped... | [
[
2,
0,
0.05,
0.0667,
0,
0.66,
0,
530,
0,
0,
1,
0,
0,
0,
1
],
[
13,
1,
0.0667,
0.0333,
1,
0.55,
0,
0,
3,
0,
0,
0,
0,
10,
1
],
[
2,
0,
0.1833,
0.0667,
0,
0.66,
0... | [
"def variables():\n return dict(a=10, b=20)",
" return dict(a=10, b=20)",
"def test_for():\n return dict()",
" return dict()",
"def test_if():\n return dict()",
" return dict()",
"def test_try():\n return dict()",
" return dict()",
"def test_def():\n return dict()",
" ... |
def form():
""" a simple entry form with various types of objects """
form = FORM(TABLE(
TR('Your name:', INPUT(_type='text', _name='name',
requires=IS_NOT_EMPTY())),
TR('Your email:', INPUT(_type='text', _name='email',
requires=IS_EMAIL())),
TR('Admin', INPUT(_typ... | [
[
2,
0,
0.5227,
1,
0,
0.66,
0,
761,
0,
0,
1,
0,
0,
0,
19
],
[
8,
1,
0.0909,
0.0455,
1,
0.69,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
1,
0.4318,
0.5455,
1,
0.69,
0.33... | [
"def form():\n \"\"\" a simple entry form with various types of objects \"\"\"\n\n form = FORM(TABLE(\n TR('Your name:', INPUT(_type='text', _name='name',\n requires=IS_NOT_EMPTY())),\n TR('Your email:', INPUT(_type='text', _name='email',\n requires=IS_EMAIL())),",
" \"\... |
def counter():
""" every time you reload, it increases the session.counter """
if not session.counter:
session.counter = 0
session.counter += 1
return dict(counter=session.counter)
| [
[
2,
0,
0.5714,
1,
0,
0.66,
0,
7,
0,
0,
1,
0,
0,
0,
1
],
[
8,
1,
0.2857,
0.1429,
1,
0.73,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
4,
1,
0.6429,
0.2857,
1,
0.73,
0.5,
... | [
"def counter():\n \"\"\" every time you reload, it increases the session.counter \"\"\"\n\n if not session.counter:\n session.counter = 0\n session.counter += 1\n return dict(counter=session.counter)",
" \"\"\" every time you reload, it increases the session.counter \"\"\"",
" if not se... |
# -*- coding: utf-8 -*-
from gluon.fileutils import read_file
response.title = T('web2py Web Framework')
response.keywords = T('web2py, Python, Web Framework')
response.description = T('web2py Web Framework')
session.forget()
cache_expire = not request.is_local and 300 or 0
@cache('index', time_expire=cache_expire... | [
[
1,
0,
0.0316,
0.0105,
0,
0.66,
0,
948,
0,
1,
0,
0,
948,
0,
0
],
[
14,
0,
0.0526,
0.0105,
0,
0.66,
0.05,
547,
3,
1,
0,
0,
716,
10,
1
],
[
14,
0,
0.0632,
0.0105,
0,
... | [
"from gluon.fileutils import read_file",
"response.title = T('web2py Web Framework')",
"response.keywords = T('web2py, Python, Web Framework')",
"response.description = T('web2py Web Framework')",
"session.forget()",
"cache_expire = not request.is_local and 300 or 0",
"def index():\n return response.... |
def civilized():
response.menu = [['civilized', True, URL('civilized'
)], ['slick', False, URL('slick')],
['basic', False, URL('basic')]]
response.flash = 'you clicked on civilized'
return dict(message='you clicked on civilized')
def slick(... | [
[
2,
0,
0.1591,
0.2727,
0,
0.66,
0,
926,
0,
0,
1,
0,
0,
0,
4
],
[
14,
1,
0.1364,
0.1364,
1,
0.49,
0,
367,
0,
0,
0,
0,
0,
5,
3
],
[
14,
1,
0.2273,
0.0455,
1,
0.49,
... | [
"def civilized():\n response.menu = [['civilized', True, URL('civilized'\n )], ['slick', False, URL('slick')],\n ['basic', False, URL('basic')]]\n response.flash = 'you clicked on civilized'\n return dict(message='you clicked on civilized')",
... |
session.forget()
def get(args):
if args[0].startswith('__'):
return None
try:
obj = globals(),get(args[0])
for k in range(1,len(args)):
obj = getattr(obj,args[k])
return obj
except:
return None
def vars():
"""the running controlle... | [
[
8,
0,
0.0192,
0.0192,
0,
0.66,
0,
757,
3,
0,
0,
0,
0,
0,
1
],
[
2,
0,
0.1442,
0.1923,
0,
0.66,
0.5,
607,
0,
1,
1,
0,
0,
0,
6
],
[
4,
1,
0.0865,
0.0385,
1,
0.43,
... | [
"session.forget()",
"def get(args):\n if args[0].startswith('__'):\n return None\n try:\n obj = globals(),get(args[0])\n for k in range(1,len(args)): \n obj = getattr(obj,args[k])\n return obj",
" if args[0].startswith('__'):\n return None",
" ... |
import time
def cache_in_ram():
"""cache the output of the lambda function in ram"""
t = cache.ram('time', lambda: time.ctime(), time_expire=5)
return dict(time=t, link=A('click to reload', _href=URL(r=request)))
def cache_on_disk():
"""cache the output of the lambda function on disk"""
t = ca... | [
[
1,
0,
0.0208,
0.0208,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
2,
0,
0.125,
0.1042,
0,
0.66,
0.1667,
647,
0,
0,
1,
0,
0,
0,
5
],
[
8,
1,
0.1042,
0.0208,
1,
0.5... | [
"import time",
"def cache_in_ram():\n \"\"\"cache the output of the lambda function in ram\"\"\"\n\n t = cache.ram('time', lambda: time.ctime(), time_expire=5)\n return dict(time=t, link=A('click to reload', _href=URL(r=request)))",
" \"\"\"cache the output of the lambda function in ram\"\"\"",
" ... |
from gluon.contrib.spreadsheet import Sheet
def callback():
return cache.ram('sheet1', lambda: None, None).process(request)
def index():
sheet = cache.ram('sheet1', lambda: Sheet(10, 10, URL('callback')), 0)
#sheet.cell('r0c3',value='=r0c0+r0c1+r0c2',readonly=True)
return dict(sheet=sheet)
| [
[
1,
0,
0.1,
0.1,
0,
0.66,
0,
696,
0,
1,
0,
0,
696,
0,
0
],
[
2,
0,
0.35,
0.2,
0,
0.66,
0.5,
342,
0,
0,
1,
0,
0,
0,
2
],
[
13,
1,
0.4,
0.1,
1,
0.56,
0,
0,
... | [
"from gluon.contrib.spreadsheet import Sheet",
"def callback():\n return cache.ram('sheet1', lambda: None, None).process(request)",
" return cache.ram('sheet1', lambda: None, None).process(request)",
"def index():\n sheet = cache.ram('sheet1', lambda: Sheet(10, 10, URL('callback')), 0)\n #sheet.ce... |
# coding: utf8
{
'!langcode!': 'zh-tw',
'!langname!': '中文',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"更新" 是選擇性的條件式, 格式就像 "欄位1=\'值\'". 但是 JOIN 的資料不可以使用 update 或是 delete"',
'%s %%{row} deleted': '已刪除 %s 筆',
'%s %%{row} updated': '已更新 %s 筆',
'%s s... | [
[
8,
0,
0.5043,
0.9957,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'zh-tw',\n'!langname!': '中文',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"更新\" 是選擇性的條件式, 格式就像 \"欄位1=\\'值\\'\". 但是 JOIN 的資料不可以使用 update 或是 delete\"',\n'%s %%{row} deleted': '已刪除 %s 筆',\n'%s %%{row} updated': '已更新 %s 筆... |
# coding: utf8
{
'!=': '!=',
'!langcode!': 'it',
'!langname!': 'Italiano',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" è un\'espressione opzionale come "campo1=\'nuovo valore\'". Non si può fare "update" o "delete" dei risultati di un JOI... | [
[
8,
0,
0.5041,
0.9959,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!=': '!=',\n'!langcode!': 'it',\n'!langname!': 'Italiano',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" è un\\'espressione opzionale come \"campo1=\\'nuovo valore\\'\". Non si può fare \"update\" o \"delete\" dei risultat... |
# coding: utf8
{
'!langcode!': 'es',
'!langname!': 'Español',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"actualice" es una expresión opcional como "campo1=\'nuevo_valor\'". No se puede actualizar o eliminar resultados de un JOIN',
'%s %%{row} de... | [
[
8,
0,
0.5031,
0.9969,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'es',\n'!langname!': 'Español',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"actualice\" es una expresión opcional como \"campo1=\\'nuevo_valor\\'\". No se puede actualizar o eliminar resultados de un JOIN',\n'%s %%{r... |
#!/usr/bin/env python
{
# "singular form (0)": ["first plural form (1)", "second plural form (2)", ...],
'выбрана': ['выбраны','выбрано'],
'запись': ['записи','записей'],
'изменена': ['изменены','изменено'],
'строка': ['строки','строк'],
'удалена': ['удалены','удалено'],
'день': ['дня', 'дней'],
'месяц': ['месяца','мес... | [
[
8,
0,
0.5625,
0.9375,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n# \"singular form (0)\": [\"first plural form (1)\", \"second plural form (2)\", ...],\n'выбрана': ['выбраны','выбрано'],\n'запись': ['записи','записей'],\n'изменена': ['изменены','изменено'],\n'строка': ['строки','строк'],\n'удалена': ['удалены','удалено'],\n'день': ['дня', 'дней'],"
] |
#!/usr/bin/env python
{
# "singular form (0)": ["first plural form (1)", "second plural form (2)", ...],
'account': ['accounts'],
'book': ['books'],
'is': ['are'],
'man': ['men'],
'miss': ['misses'],
'person': ['people'],
'quark': ['quarks'],
'shop': ['shops'],
'this': ['these'],
'was': ['were'],
'woman': ['women'],
}
| [
[
8,
0,
0.5667,
0.9333,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n# \"singular form (0)\": [\"first plural form (1)\", \"second plural form (2)\", ...],\n'account': ['accounts'],\n'book': ['books'],\n'is': ['are'],\n'man': ['men'],\n'miss': ['misses'],\n'person': ['people'],"
] |
# coding: utf8
{
'!langcode!': 'cs-cz',
'!langname!': 'čeština',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': 'Kolonka "Upravit" je nepovinný výraz, například "pole1=\'nováhodnota\'". Výsledky databázového JOINu nemůžete mazat ani upravovat.',
... | [
[
8,
0,
0.5021,
0.9979,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'cs-cz',\n'!langname!': 'čeština',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': 'Kolonka \"Upravit\" je nepovinný výraz, například \"pole1=\\'nováhodnota\\'\". Výsledky databázového JOINu nemůžete mazat ani upravovat.',\... |
# coding: utf8
{
'!langcode!': 'my',
'!langname!': 'Malay',
'%d days ago': '%d hari yang lalu',
'%d hours ago': '%d jam yang lalu',
'%d minutes ago': '%d minit yang lalu',
'%d months ago': '%d bulan yang lalu',
'%d seconds ago': '%d saat yang lalu',
'%d seconds from now': '%d saat dari sekarang',
'%d weeks ago': '%d mi... | [
[
8,
0,
0.5046,
0.9954,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'my',\n'!langname!': 'Malay',\n'%d days ago': '%d hari yang lalu',\n'%d hours ago': '%d jam yang lalu',\n'%d minutes ago': '%d minit yang lalu',\n'%d months ago': '%d bulan yang lalu',\n'%d seconds ago': '%d saat yang lalu',"
] |
# coding: utf8
{
'!langcode!': 'sk',
'!langname!': 'Slovenský',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" je voliteľný výraz ako "field1=\'newvalue\'". Nemôžete upravovať alebo zmazať výsledky JOINu',
'%s %%{row} deleted': '%s zmazaných... | [
[
8,
0,
0.5058,
0.9942,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'sk',\n'!langname!': 'Slovenský',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" je voliteľný výraz ako \"field1=\\'newvalue\\'\". Nemôžete upravovať alebo zmazať výsledky JOINu',\n'%s %%{row} deleted': '%s zma... |
# coding: utf8
{
'!langcode!': 'uk',
'!langname!': 'Українська',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Оновити" це додатковий вираз, такий, як "field1=\'нове_значення\'". Ви не можете змінювати або вилучати дані об\'єднаних таблиць.',
'%d d... | [
[
8,
0,
0.5045,
0.9955,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'uk',\n'!langname!': 'Українська',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"Оновити\" це додатковий вираз, такий, як \"field1=\\'нове_значення\\'\". Ви не можете змінювати або вилучати дані об\\'єднаних таблиць.',... |
# coding: utf8
{
'!langcode!': 'pl',
'!langname!': 'Polska',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Uaktualnij" jest dodatkowym wyrażeniem postaci "pole1=\'nowawartość\'". Nie możesz uaktualnić lub usunąć wyników z JOIN:',
'%s %%{row} delete... | [
[
8,
0,
0.5058,
0.9942,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'pl',\n'!langname!': 'Polska',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"Uaktualnij\" jest dodatkowym wyrażeniem postaci \"pole1=\\'nowawartość\\'\". Nie możesz uaktualnić lub usunąć wyników z JOIN:',\n'%s %%{row} ... |
#!/usr/bin/env python
{
# "singular form (0)": ["first plural form (1)", "second plural form (2)", ...],
'vteřina': ['vteřiny', 'vteřin'],
'vteřinou': ['vteřinami', 'vteřinami'],
'minuta': ['minuty', 'minut'],
'minutou': ['minutami', 'minutami'],
'hodina': ['hodiny','hodin'],
'hodinou': ['hodinami','hodinami'],... | [
[
8,
0,
0.55,
0.95,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n# \"singular form (0)\": [\"first plural form (1)\", \"second plural form (2)\", ...],\n'vteřina': ['vteřiny', 'vteřin'],\n'vteřinou': ['vteřinami', 'vteřinami'],\n'minuta': ['minuty', 'minut'],\n'minutou': ['minutami', 'minutami'],\n'hodina': ['hodiny','hodin'],\n'hodinou': ['hodinami','hodinami'],"
] |
# coding: utf8
{
'!langcode!': 'ru',
'!langname!': 'Русский',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Изменить" - необязательное выражение вида "field1=\'новое значение\'". Результаты операции JOIN нельзя изменить или удалить.',
'%d days ago'... | [
[
8,
0,
0.5051,
0.9949,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'ru',\n'!langname!': 'Русский',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"Изменить\" - необязательное выражение вида \"field1=\\'новое значение\\'\". Результаты операции JOIN нельзя изменить или удалить.',\n'%d day... |
# coding: utf8
{
'!langcode!': 'pt',
'!langname!': 'Português',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "field1=\'newvalue\'". Não pode actualizar ou eliminar os resultados de um JOIN',
'%s %%{row} delete... | [
[
8,
0,
0.5054,
0.9946,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'pt',\n'!langname!': 'Português',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" é uma expressão opcional como \"field1=\\'newvalue\\'\". Não pode actualizar ou eliminar os resultados de um JOIN',\n'%s %%{row} ... |
# coding: utf8
{
'!langcode!': 'hi-in',
'!langname!': 'हिन्दी',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN',
'%s %%{row} deleted': '%... | [
[
8,
0,
0.5067,
0.9933,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'hi-in',\n'!langname!': 'हिन्दी',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN',\n'%s %%{row} delete... |
# coding: utf8
{
'!langcode!': 'hu',
'!langname!': 'Magyar',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN',
'%s %%{row} deleted': '%s s... | [
[
8,
0,
0.5062,
0.9938,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'hu',\n'!langname!': 'Magyar',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN',\n'%s %%{row} deleted':... |
#!/usr/bin/env python
{
# "singular form (0)": ["first plural form (1)", "second plural form (2)", ...],
'байт': ['байти','байтів'],
'годину': ['години','годин'],
'елемент': ['елементи','елементів'],
'запис': ['записи','записів'],
'поцілювання': ['поцілювання','поцілювань'],
'рядок': ['рядки','рядків'],
'секунду': ['се... | [
[
8,
0,
0.5588,
0.9412,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n# \"singular form (0)\": [\"first plural form (1)\", \"second plural form (2)\", ...],\n'байт': ['байти','байтів'],\n'годину': ['години','годин'],\n'елемент': ['елементи','елементів'],\n'запис': ['записи','записів'],\n'поцілювання': ['поцілювання','поцілювань'],\n'рядок': ['рядки','рядків'],"
] |
# coding: utf8
{
'!langcode!': 'pt-br',
'!langname!': 'Português (do Brasil)',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "campo1=\'novovalor\'". Você não pode atualizar ou apagar os resultados de um JOIN',
... | [
[
8,
0,
0.5059,
0.9941,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'pt-br',\n'!langname!': 'Português (do Brasil)',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" é uma expressão opcional como \"campo1=\\'novovalor\\'\". Você não pode atualizar ou apagar os resultados de um JO... |
# coding: utf8
{
'!langcode!': 'fr',
'!langname!': 'Français',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" est une expression optionnelle comme "champ1=\'nouvellevaleur\'". Vous ne pouvez mettre à jour ou supprimer les résultats d\'un JOI... | [
[
8,
0,
0.5053,
0.9947,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'fr',\n'!langname!': 'Français',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" est une expression optionnelle comme \"champ1=\\'nouvellevaleur\\'\". Vous ne pouvez mettre à jour ou supprimer les résultats d\\'... |
# coding: utf8
{
'!langcode!': 'fr-ca',
'!langname!': 'Français (Canadien)',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" est une expression optionnelle comme "champ1=\'nouvellevaleur\'". Vous ne pouvez mettre à jour ou supprimer les résul... | [
[
8,
0,
0.5051,
0.9949,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'fr-ca',\n'!langname!': 'Français (Canadien)',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" est une expression optionnelle comme \"champ1=\\'nouvellevaleur\\'\". Vous ne pouvez mettre à jour ou supprimer les ... |
# coding: utf8
{
'!langcode!': 'nl',
'!langname!': 'Nederlands',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN',
'%(nrows)s records foun... | [
[
8,
0,
0.5027,
0.9973,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'nl',\n'!langname!': 'Nederlands',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN',\n'%(nrows)s record... |
# coding: utf8
{
'!langcode!': 'en-us',
'!langname!': 'English (US)',
'%s %%(shop)': '%s %%(shop)',
'%s %%(shop[0])': '%s %%(shop[0])',
'%s %%{quark[0]}': '%s %%{quark[0]}',
'%s %%{shop[0]}': '%s %%{shop[0]}',
'%s %%{shop}': '%s %%{shop}',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
'@markmin\x01*... | [
[
8,
0,
0.5082,
0.9918,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'en-us',\n'!langname!': 'English (US)',\n'%s %%(shop)': '%s %%(shop)',\n'%s %%(shop[0])': '%s %%(shop[0])',\n'%s %%{quark[0]}': '%s %%{quark[0]}',\n'%s %%{shop[0]}': '%s %%{shop[0]}',\n'%s %%{shop}': '%s %%{shop}',"
] |
# coding: utf8
{
'!=': '!=',
'!langcode!': 'ro',
'!langname!': 'Română',
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" (actualizează) este o expresie opțională precum "câmp1=\'valoare_nouă\'". Nu puteți actualiza sau șterge rezultatele unui... | [
[
8,
0,
0.5027,
0.9973,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!=': '!=',\n'!langcode!': 'ro',\n'!langname!': 'Română',\n'\"update\" is an optional expression like \"field1=\\'newvalue\\'\". You cannot update or delete the results of a JOIN': '\"update\" (actualizează) este o expresie opțională precum \"câmp1=\\'valoare_nouă\\'\". Nu puteți actualiza sau șterge rezultatel... |
# coding: utf8
{
'!langcode!': 'id',
'!langname!': 'Indonesian',
'%d days ago': '%d hari yang lalu',
'%d hours ago': '%d jam yang lalu',
'%d minutes ago': '%d menit yang lalu',
'%d months ago': '%d bulan yang lalu',
'%d seconds ago': '%d detik yang lalu',
'%d seconds from now': '%d detik dari sekarang',
'%d weeks ago':... | [
[
8,
0,
0.5037,
0.9963,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n'!langcode!': 'id',\n'!langname!': 'Indonesian',\n'%d days ago': '%d hari yang lalu',\n'%d hours ago': '%d jam yang lalu',\n'%d minutes ago': '%d menit yang lalu',\n'%d months ago': '%d bulan yang lalu',\n'%d seconds ago': '%d detik yang lalu',"
] |
# -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## Customize your APP title, subtitle and menus here
#########################################################################
response.logo... | [
[
14,
0,
0.0607,
0.0143,
0,
0.66,
0,
964,
3,
4,
0,
0,
429,
10,
4
],
[
14,
0,
0.0714,
0.0071,
0,
0.66,
0.0833,
547,
3,
0,
0,
0,
48,
10,
2
],
[
14,
0,
0.0786,
0.0071,
0,
... | [
"response.logo = A(B('web',SPAN(2),'py'),XML('™ '),\n _class=\"brand\",_href=\"http://www.web2py.com/\")",
"response.title = request.application.replace('_',' ').title()",
"response.subtitle = T('customize me!')",
"response.meta.author = 'Your Name <you@example.com>'",
"response.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.