code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.6389,
0.0278,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.8333,
0.3056,
0,
0.66,
1,
24,
0,
1,
0,
0,
116,
0,
2
],
[
2,
1,
0.8611,
0.25,
1,
0.74,
... | [
"from handlers.AuthenticatedHandler import *",
"class AdminStats(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\n\t\tif user.rol != 'admin':",
"\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General ... | [
[
1,
0,
0.3239,
0.0141,
0,
0.66,
0,
200,
0,
1,
0,
0,
200,
0,
0
],
[
1,
0,
0.3521,
0.0141,
0,
0.66,
0.1667,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.3662,
0.0141,
0,
... | [
"import img",
"from google.appengine.api import images",
"from google.appengine.api import memcache",
"from handlers.module.admin.AdminApplication import *",
"from handlers.AuthenticatedHandler import *",
"from utilities.AppProperties import AppProperties",
"class AdminLookAndFeel(AuthenticatedHandler):... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.284,
0.0123,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.6543,
0.7037,
0,
0.66,
1,
871,
0,
2,
0,
0,
116,
0,
29
],
[
2,
1,
0.6111,
0.5679,
1,
0.06,... | [
"from handlers.AuthenticatedHandler import *",
"class AdminCommunityAddRelated(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\n\t\tif user.rol != 'admin':",
"\tdef execute(self):\n\t\tmethod = self.request.met... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General ... | [
[
1,
0,
0.23,
0.01,
0,
0.66,
0,
200,
0,
1,
0,
0,
200,
0,
0
],
[
1,
0,
0.25,
0.01,
0,
0.66,
0.2,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.26,
0.01,
0,
0.66,
0.4,
... | [
"import img",
"from google.appengine.api import images",
"from google.appengine.api import memcache",
"from handlers.AuthenticatedHandler import *",
"from utilities.AppProperties import AppProperties",
"class AdminModules(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General ... | [
[
1,
0,
0.3594,
0.0156,
0,
0.66,
0,
200,
0,
1,
0,
0,
200,
0,
0
],
[
1,
0,
0.3906,
0.0156,
0,
0.66,
0.2,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.4062,
0.0156,
0,
0.6... | [
"import img",
"from google.appengine.api import images",
"from google.appengine.api import memcache",
"from handlers.AuthenticatedHandler import *",
"from utilities.AppProperties import AppProperties",
"class AdminMail(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tu... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.6389,
0.0278,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.8333,
0.3056,
0,
0.66,
1,
969,
0,
1,
0,
0,
116,
0,
2
],
[
2,
1,
0.8611,
0.25,
1,
0.73,
... | [
"from handlers.AuthenticatedHandler import *",
"class Admin(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\n\t\tif user.rol != 'admin':",
"\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = sel... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.6216,
0.027,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.8378,
0.3514,
0,
0.66,
1,
986,
0,
1,
0,
0,
116,
0,
3
],
[
2,
1,
0.8649,
0.2973,
1,
0.32,
... | [
"from handlers.AuthenticatedHandler import *",
"class AdminCategories(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tself.values['tab'] = '/admin'\n\n\t\tif user.rol != 'admin':",
"\tdef execute(self):\n\t\tmethod = self.request.method\n\t\t... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.7188,
0.0312,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.875,
0.2188,
0,
0.66,
1,
49,
0,
1,
0,
0,
116,
0,
5
],
[
2,
1,
0.9062,
0.1562,
1,
0.51,
... | [
"from handlers.AuthenticatedHandler import *",
"class MessageSent(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tquery = model.Message.all().filter('user_from', user).filter('from_deletion_date', None)\n\t\tself.values['messages'] = self.paging(query, 10, '-creation_date', use... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.2949,
0.0128,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.6538,
0.6795,
0,
0.66,
1,
482,
0,
1,
0,
0,
116,
0,
26
],
[
2,
1,
0.6667,
0.6538,
1,
0.66... | [
"from handlers.AuthenticatedHandler import *",
"class MessageEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tuser_to = model.UserData.all().filter('nickname', self.get_param('user_to')).get()\n\t\tif not user_to:\n\t\t\tself.not_found()\n\t\t\treturn",
"\tdef execute(sel... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.7188,
0.0312,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.875,
0.2188,
0,
0.66,
1,
190,
0,
1,
0,
0,
116,
0,
5
],
[
2,
1,
0.9062,
0.1562,
1,
0.65,
... | [
"from handlers.AuthenticatedHandler import *",
"class MessageInbox(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tquery = model.Message.all().filter('user_to', user).filter('to_deletion_date', None)\n\t\tself.values['messages'] = self.paging(query, 10, '-creation_date', user.m... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.4694,
0.0204,
0,
0.66,
0,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.5102,
0.0204,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.7755,
0.4694,
0,
0.6... | [
"import datetime",
"from handlers.AuthenticatedHandler import *",
"class MessageDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tkey = self.request.get('key')\n\t\tmessage = model.Message.get(key)\n\t\tif not message:\n\t\t\tself.not_found()",
"\tdef execute(self):\n\... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.5476,
0.0238,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.7976,
0.4286,
0,
0.66,
1,
720,
0,
1,
0,
0,
116,
0,
7
],
[
2,
1,
0.8214,
0.381,
1,
0.68,
... | [
"from handlers.AuthenticatedHandler import *",
"class MessageRead(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\turl_path = self.request.path.split('/', 2)[2]\n\t\tmessage = model.Message.gql('WHERE url_path=:1', url_path).get()\n\t\tif message.user_to_nickname != user.nicknam... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.6216,
0.027,
0,
0.66,
0,
250,
0,
1,
0,
0,
250,
0,
0
],
[
3,
0,
0.8378,
0.3514,
0,
0.66,
1,
195,
0,
1,
0,
0,
138,
0,
11
],
[
2,
1,
0.8649,
0.2973,
1,
0.84,... | [
"from handlers.BaseRest import *",
"class ArticleVisit(BaseRest):\n\n\tdef get(self):\n\t\tarticle_id = self.request.get('id')\n\n\t\tmemcache.delete(article_id + '_article')\n\t\tarticle = model.Article.get_by_id(int(article_id))\n\t\tarticle.views += 1",
"\tdef get(self):\n\t\tarticle_id = self.request.get('i... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.211,
0.0092,
0,
0.66,
0,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.2294,
0.0092,
0,
0.66,
0.3333,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.2385,
0.0092,
0,
0... | [
"import datetime",
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class ArticleDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tarticle = model.Article.get(self.get_param('key'))\n\t\tmemcache.d... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.6216,
0.027,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.8378,
0.3514,
0,
0.66,
1,
338,
0,
1,
0,
0,
94,
0,
7
],
[
2,
1,
0.8649,
0.2973,
1,
0.45,
... | [
"from handlers.BaseHandler import *",
"class ArticleList(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/article.list'\n\t\tquery = model.Article.all().filter('draft =', False).filter('deletion_date', None)\n\t\tapp = self.get_application()\n\t\tkey = '%s?%s' % (self.request.path, self.re... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.1655,
0.0072,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1727,
0.0072,
0,
0.66,
0.5,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.5971,
0.8129,
0,
0.6... | [
"from google.appengine.ext import db",
"from handlers.BaseHandler import *",
"class ArticleView(BaseHandler):\n\n\tdef execute(self):\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tarticle_id = self.request.path.split('/')[3]\n\t\tarticle = self.cache(article_id + '_article', self.get_article)\n\t\t\n\... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.2614,
0.0114,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.2727,
0.0114,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.6477,
0.7159,
0,
0.6... | [
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class ArticleCommentEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/article.list'\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tcomment_key = self.get_param('key... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[at]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Soft... | [
[
1,
0,
0.1437,
0.0063,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
1,
0,
0.15,
0.0063,
0,
0.66,
0.5,
105,
0,
1,
0,
0,
105,
0,
0
],
[
3,
0,
0.575,
0.8313,
0,
0.66,
... | [
"from handlers.BaseHandler import *",
"from utilities.TTSUtil import *",
"class ArticleTTS(BaseHandler):\n\n\tdef execute(self): \n\t\t\n\t\turl_path = self.request.path.split('/', 3)[3]\n\t\tarticle_id = self.request.path.split('/')[3]\n\t\tarticle = self.cache(article_id + '_article', self.get_article)",
"\... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.3594,
0.0156,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.375,
0.0156,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.7031,
0.5781,
0,
0.66... | [
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class ArticleCommentSubscribe( AuthenticatedHandler ):\n\n\tdef execute(self):\n\t\tkey = self.get_param('key')\n\t\tarticle = model.Article.get(key)\n\t\tmemcache.delete(str(article.key().id()) + '_article')\n\t\tuser = sel... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.0916,
0.004,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0956,
0.004,
0,
0.66,
0.1667,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.1036,
0.004,
0,
0.6... | [
"import time",
"import datetime",
"from google.appengine.ext import db",
"from google.appengine.api import memcache",
"from handlers.AuthenticatedHandler import *",
"from utilities.TTSUtil import *",
"class ArticleEdit(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/module/art... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.3239,
0.0141,
0,
0.66,
0,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.6761,
0.662,
0,
0.66,
1,
753,
0,
1,
0,
0,
116,
0,
29
],
[
2,
1,
0.6901,
0.6338,
1,
0.99,... | [
"from handlers.AuthenticatedHandler import *",
"class ArticleAddCommunities(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tmethod = self.request.method\n\t\tuser = self.values['user']\n\t\tkey = self.get_param('key')\n\t\tarticle = model.Article.get(key)\n\t\tif not article or article.draft or article.deleti... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.4259,
0.0185,
0,
0.66,
0,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.463,
0.0185,
0,
0.66,
0.3333,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.4815,
0.0185,
0,
0... | [
"import datetime",
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class ArticleCommentDelete(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tif user.rol != 'admin':\n\t\t\tself.forbidden()\n\t\t\treturn",
"\tdef execute(self):\n\t\t... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.1917,
0.0083,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.2,
0.0083,
0,
0.66,
0.2,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.2167,
0.0083,
0,
0.66,
... | [
"import time",
"import datetime",
"from google.appengine.ext import db",
"from google.appengine.api import mail",
"from handlers.AuthenticatedHandler import *",
"class ArticleComment(AuthenticatedHandler):\n\n\tdef execute(self):\n\t\tuser = self.values['user']\n\t\tkey = self.get_param('key')\n\t\tarticl... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.3286,
0.0143,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.3429,
0.0143,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.6857,
0.6429,
0,
0.6... | [
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class ArticleFavourite(AuthenticatedHandler):\n\t\n\tdef execute(self):\n\t\tarticle = model.Article.get(self.get_param('key'))\n\t\tuser = self.values['user']\n\t\tif not article or article.draft or article.deletion_date:\n\... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.3382,
0.0147,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.3529,
0.0147,
0,
0.66,
0.5,
548,
0,
1,
0,
0,
548,
0,
0
],
[
3,
0,
0.6912,
0.6324,
0,
0.6... | [
"from google.appengine.ext import db",
"from handlers.AuthenticatedHandler import *",
"class ArticleVote(AuthenticatedHandler):\n\t\n\tdef execute(self):\n\t\tarticle = model.Article.get(self.get_param('key'))\n\t\tif not article or article.draft or article.deletion_date:\n\t\t\tself.not_found()\n\t\t\treturn",... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.697,
0.0303,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.8788,
0.2727,
0,
0.66,
1,
958,
0,
1,
0,
0,
94,
0,
3
],
[
2,
1,
0.9091,
0.2121,
1,
0.43,
... | [
"from handlers.BaseHandler import *",
"class Dispatcher(BaseHandler):\n\n\tdef execute(self):\n\t\treferer = self.request.path.split('/', 1)[1]\n#\t\tif referer.startswith('module'):\n#\t\t\treferer = self.request.path.split('/',2)[2]\n\t\tself.add_tag_cloud()\n\t\tself.values['tab'] = self.request.path",
"\tde... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.0256,
0.0012,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0268,
0.0012,
0,
0.66,
0.1,
722,
0,
1,
0,
0,
722,
0,
0
],
[
1,
0,
0.0279,
0.0012,
0,
0.6... | [
"import re",
"import model",
"import datetime",
"from google.appengine.ext import db",
"from google.appengine.ext import webapp",
"from google.appengine.api import users",
"from google.appengine.api import memcache",
"from google.appengine.runtime.apiproxy_errors import CapabilityDisabledError",
"fr... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.1704,
0.0074,
0,
0.66,
0,
49,
0,
1,
0,
0,
49,
0,
0
],
[
1,
0,
0.2074,
0.0074,
0,
0.66,
0.0118,
188,
0,
1,
0,
0,
188,
0,
0
],
[
1,
0,
0.2148,
0.0074,
0,
0.... | [
"from handlers.MainPage import *",
"from handlers.module.admin.Admin import *",
"from handlers.module.admin.AdminCategories import *",
"from handlers.module.admin.AdminCategoryEdit import *",
"from handlers.module.admin.AdminApplication import *",
"from handlers.module.admin.AdminCommunityAddRelated impor... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gener... | [
[
1,
0,
0.48,
0.02,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.75,
0.48,
0,
0.66,
1,
516,
0,
4,
0,
0,
94,
0,
16
],
[
2,
1,
0.66,
0.22,
1,
0.99,
0,
... | [
"from handlers.BaseHandler import *",
"class MainPage(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/'\n\t\t# memcache.delete('index_articles')\n\t\t# memcache.delete('index_communities')\n\t\t# memcache.delete('index_threads')\n\t\tself.values['articles'] = self.cache('index_articles', self.ge... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (C) Copyright 2008 Alberto Gimeno <gimenete at gmail dot com>
# (C) Copyright 2008 Ignacio Andreu <plunchete at gmail dot com>
# (C) Copyright 2008 Néstor Salceda <nestor.salceda at gmail dot com>
#
# This file is part of "debug_mode_on".
#
# "debug_mode_on" is free soft... | [
[
1,
0,
0.4717,
0.0189,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.7547,
0.5094,
0,
0.66,
1,
123,
0,
1,
0,
0,
94,
0,
16
],
[
2,
1,
0.7736,
0.4717,
1,
0.97,... | [
"from handlers.BaseHandler import *",
"class Search(BaseHandler):\n\n\tdef execute(self):\n\t\tq = self.get_param('q')\n\t\ttyp = self.get_param('t')\n\n\t\tif typ == 'articles':\n\t\t\tquery = model.Article.all().filter('draft', False).filter('deletion_date', None).search(q)",
"\tdef execute(self):\n\t\tq = se... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.2091,
0.0091,
0,
0.66,
0,
722,
0,
1,
0,
0,
722,
0,
0
],
[
1,
0,
0.2182,
0.0091,
0,
0.66,
0.25,
123,
0,
1,
0,
0,
123,
0,
0
],
[
1,
0,
0.2273,
0.0091,
0,
0.... | [
"import model",
"import PropertiesUtil",
"import Constant",
"from google.appengine.api import memcache",
"class AppProperties (object):\n __instance = None\n __appDic = None\n __env = None\n\n def __new__(cls, *args, **kargs): \n if cls.__instance is None:\n cls.__instance = ob... |
"""
Copyright (c) 2008, appengine-utilities project
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 ... | [
[
8,
0,
0.028,
0.0539,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0602,
0.0021,
0,
0.66,
0.0476,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0622,
0.0021,
0,
0.66,... | [
"\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 John Cube <jonh.cube[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foun... | [
[
1,
0,
0.2805,
0.0122,
0,
0.66,
0,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.2927,
0.0122,
0,
0.66,
0.25,
600,
0,
1,
0,
0,
600,
0,
0
],
[
1,
0,
0.3049,
0.0122,
0,
0.... | [
"from google.appengine.api import urlfetch",
"from utilities.BeautifulSoup import *",
"import urllib",
"import sys",
"class TTSUtil (object):\n __instance = None\n __appDic = None\n __env = None\n\n def get_tts_stream_from_tts_urs(self,tts_urls):\n \n content=\"\"",
" __instan... |
"""
Copyright (c) 2008, appengine-utilities project
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 ... | [
[
8,
0,
0.1776,
0.3421,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3553,
0.0132,
0,
0.66,
0.25,
593,
0,
1,
0,
0,
593,
0,
0
],
[
3,
0,
0.6711,
0.5658,
0,
0.66,
... | [
"\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ... |
"""
Copyright (c) 2008, appengine-utilities project
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 ... | [
[
8,
0,
0.1392,
0.268,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2887,
0.0103,
0,
0.66,
0.2,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.299,
0.0103,
0,
0.66,
... | [
"\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
2,
0,
0.7973,
0.4324,
0,
0.66,
0,
366,
0,
1,
1,
0,
0,
0,
11
],
[
14,
1,
0.6216,
0.027,
1,
0.8,
0,
496,
3,
2,
0,
0,
107,
10,
1
],
[
14,
1,
0.6486,
0.027,
1,
0.8,
... | [
"def loadProperties(fileName):\n propFile = file(fileName, \"rU\" )\n propDict = dict()\n for propLine in propFile:\n propDef = propLine.strip()\n if len(propDef) == 0:\n continue\n if propDef[0] in ( '!', '#' ):",
" propFile = file(fileName, \"rU\" )",
" propDict ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
14,
0,
0.8571,
0.0357,
0,
0.66,
0,
335,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.8929,
0.0357,
0,
0.66,
0.25,
884,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.9286,
0.0357,
0,
0.6... | [
"DEFAULT_LOCALE = \"en\"",
"locale = \"locale\"",
"appName = \"app_name\"",
"appSubject = \"app_subject\"",
"domain = \"domain\""
] |
"""
Copyright (c) 2008, appengine-utilities project
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 ... | [
[
8,
0,
0.0523,
0.1008,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1124,
0.0039,
0,
0.66,
0.0909,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.1163,
0.0039,
0,
0.66... | [
"\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Aff... | [
[
1,
0,
0.0606,
0.0025,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.0631,
0.0025,
0,
0.66,
0.0357,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.0657,
0.0025,
0,
... | [
"from google.appengine.ext import db",
"from google.appengine.api import users",
"from google.appengine.ext import search",
"class UserData(search.SearchableModel):\n\tnickname = db.StringProperty(required=True)\n\tpersonal_message = db.StringProperty()\n\temail = db.StringProperty(required=True)\n\tavatar = ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.142,
0.0062,
0,
0.66,
0,
294,
0,
1,
0,
0,
294,
0,
0
],
[
1,
0,
0.1481,
0.0062,
0,
0.66,
0.0667,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1605,
0.0062,
0,
0... | [
"from django import template",
"from google.appengine.ext import webapp",
"from utilities.AppProperties import AppProperties",
"register = webapp.template.create_template_register()",
"import datetime",
"def relativize(value):\n\tnow = datetime.datetime.now()\n\tdiff = now - value\n\tdays = diff.days\n\ts... |
"""
Implementation of JSONEncoder
"""
import re
try:
from simplejson import _speedups
except ImportError:
_speedups = None
ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]')
ESCAPE_ASCII = re.compile(r'([\\"/]|[^\ -~])')
ESCAPE_DCT = {
'\\': '\\\\',
'"': '\\"',
'\b': '\\b',
'\f': '... | [
[
8,
0,
0.0053,
0.008,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0106,
0.0027,
0,
0.66,
0.0714,
540,
0,
1,
0,
0,
540,
0,
0
],
[
7,
0,
0.0173,
0.0106,
0,
0.66,... | [
"\"\"\"\nImplementation of JSONEncoder\n\"\"\"",
"import re",
"try:\n from simplejson import _speedups\nexcept ImportError:\n _speedups = None",
" from simplejson import _speedups",
" _speedups = None",
"ESCAPE = re.compile(r'[\\x00-\\x1f\\\\\"\\b\\f\\n\\r\\t]')",
"ESCAPE_ASCII = re.compile(... |
import simplejson
import cgi
class JSONFilter(object):
def __init__(self, app, mime_type='text/x-json'):
self.app = app
self.mime_type = mime_type
def __call__(self, environ, start_response):
# Read JSON POST input to jsonfilter.json if matching mime type
response = {... | [
[
1,
0,
0.025,
0.025,
0,
0.66,
0,
386,
0,
1,
0,
0,
386,
0,
0
],
[
1,
0,
0.05,
0.025,
0,
0.66,
0.3333,
934,
0,
1,
0,
0,
934,
0,
0
],
[
3,
0,
0.5125,
0.85,
0,
0.66,
... | [
"import simplejson",
"import cgi",
"class JSONFilter(object):\n def __init__(self, app, mime_type='text/x-json'):\n self.app = app\n self.mime_type = mime_type\n\n def __call__(self, environ, start_response):\n # Read JSON POST input to jsonfilter.json if matching mime type\n r... |
"""
Implementation of JSONDecoder
"""
import re
import sys
from simplejson.scanner import Scanner, pattern
try:
from simplejson import _speedups
except:
_speedups = None
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
def _floatconstants():
import struct
import sys
_BYTES = '7FF800... | [
[
8,
0,
0.006,
0.0091,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0121,
0.003,
0,
0.66,
0.0333,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0151,
0.003,
0,
0.66,
... | [
"\"\"\"\nImplementation of JSONDecoder\n\"\"\"",
"import re",
"import sys",
"from simplejson.scanner import Scanner, pattern",
"try:\n from simplejson import _speedups\nexcept:\n _speedups = None",
" from simplejson import _speedups",
" _speedups = None",
"FLAGS = re.VERBOSE | re.MULTILINE... |
"""
Iterator based sre token scanner
"""
import sre_parse, sre_compile, sre_constants
from sre_constants import BRANCH, SUBPATTERN
from re import VERBOSE, MULTILINE, DOTALL
import re
__all__ = ['Scanner', 'pattern']
FLAGS = (VERBOSE | MULTILINE | DOTALL)
class Scanner(object):
def __init__(self, lexic... | [
[
8,
0,
0.0312,
0.0469,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0625,
0.0156,
0,
0.66,
0.125,
22,
0,
3,
0,
0,
22,
0,
0
],
[
1,
0,
0.0781,
0.0156,
0,
0.66,
... | [
"\"\"\"\nIterator based sre token scanner\n\"\"\"",
"import sre_parse, sre_compile, sre_constants",
"from sre_constants import BRANCH, SUBPATTERN",
"from re import VERBOSE, MULTILINE, DOTALL",
"import re",
"__all__ = ['Scanner', 'pattern']",
"FLAGS = (VERBOSE | MULTILINE | DOTALL)",
"class Scanner(obj... |
#!/usr/bin/env python
import struct
from StringIO import StringIO
from google.appengine.api import images
def resize(image, maxwidth, maxheight):
imageinfo = getimageinfo(image)
width = float(imageinfo[1])
height = float(imageinfo[2])
ratio = width / height
dwidth = maxheight * ratio
dheight = ma... | [
[
1,
0,
0.026,
0.013,
0,
0.66,
0,
399,
0,
1,
0,
0,
399,
0,
0
],
[
1,
0,
0.039,
0.013,
0,
0.66,
0.25,
609,
0,
1,
0,
0,
609,
0,
0
],
[
1,
0,
0.0649,
0.013,
0,
0.66,
... | [
"import struct",
"from StringIO import StringIO",
"from google.appengine.api import images",
"def resize(image, maxwidth, maxheight):\n\timageinfo = getimageinfo(image)\n\twidth = float(imageinfo[1])\n\theight = float(imageinfo[2])\n\tratio = width / height\n\t\n\tdwidth = maxheight * ratio\n\tdheight = maxhe... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.4694,
0.0204,
0,
0.66,
0,
709,
0,
1,
0,
0,
709,
0,
0
],
[
1,
0,
0.5102,
0.0204,
0,
0.66,
0.1429,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.5306,
0.0204,
0,
... | [
"import wsgiref.handlers",
"import os",
"from handlers import *",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp import template",
"class NotAvailable(webapp.RequestHandler):\n\n\tdef get(self):\n\t\tself.response.clear()\n\t\tself.response.set_status(501)\n\t\tself.response.... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gener... | [
[
1,
0,
0.1739,
0.0072,
0,
0.66,
0,
709,
0,
1,
0,
0,
709,
0,
0
],
[
1,
0,
0.1957,
0.0072,
0,
0.66,
0.3333,
183,
0,
1,
0,
0,
183,
0,
0
],
[
1,
0,
0.2029,
0.0072,
0,
... | [
"import wsgiref.handlers",
"from handlers import *",
"from handlers import Updater",
"app = webapp.WSGIApplication(\n\t\t\t\t\t\t\t [('/', MainPage),\n\t\t\t\t\t\t\t # Module articles\n\t\t\t\t\t\t\t ('/module/article.list',\t\t\t\tArticleList),\n\t\t\t\t\t\t\t ('/module/article.edit',\t\t\t\tArticleE... |
import urllib
from google.appengine.api import urlfetch
"""
Adapted from http://pypi.python.org/pypi/recaptcha-client
to use with Google App Engine
by Joscha Feth <joscha@feth.com>
Version 0.1
"""
API_SSL_SERVER ="https://api-secure.recaptcha.net"
API_SERVER ="http://api.recaptcha.net"
VERIFY_SE... | [
[
1,
0,
0.0094,
0.0094,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0189,
0.0094,
0,
0.66,
0.125,
279,
0,
1,
0,
0,
279,
0,
0
],
[
8,
0,
0.0613,
0.0566,
0,
0... | [
"import urllib",
"from google.appengine.api import urlfetch",
"\"\"\"\n Adapted from http://pypi.python.org/pypi/recaptcha-client\n to use with Google App Engine\n by Joscha Feth <joscha@feth.com>\n Version 0.1\n\"\"\"",
"API_SSL_SERVER =\"https://api-secure.recaptcha.net\"",
"API_SERVER =... |
#!/usr/bin/env python
version = "1.7"
version_info = (1,7,0,"rc-2")
__revision__ = "$Rev: 72 $"
"""
Python-Markdown
===============
Converts Markdown to HTML. Basic usage as a module:
import markdown
md = Markdown()
html = md.convert(your_text_string)
See http://www.freewisdom.org/projects/python-mark... | [
[
14,
0,
0.0016,
0.0005,
0,
0.66,
0,
623,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0021,
0.0005,
0,
0.66,
0.0079,
342,
0,
0,
0,
0,
0,
8,
0
],
[
14,
0,
0.0026,
0.0005,
0,
0... | [
"version = \"1.7\"",
"version_info = (1,7,0,\"rc-2\")",
"__revision__ = \"$Rev: 72 $\"",
"\"\"\"\nPython-Markdown\n===============\n\nConverts Markdown to HTML. Basic usage as a module:\n\n import markdown\n md = Markdown()",
"import re, sys, codecs",
"from logging import getLogger, StreamHandler, ... |
#!/usr/bin/env python
import cgi
form = cgi.FieldStorage()
if form.has_key('numeroUno'): n1=int(form.getvalue('numeroUno'))
if form.has_key('numeroDos'): n2=int(form.getvalue('numeroDos'))
suma=n1+n2
resta=n1-n2
mult=n1*n2
div=n1/n2
exp=n1**n2
print """\
Content-Type: application/json\n
{"resultado": {
"suma": {"%... | [
[
1,
0,
1,
1,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
]
] | [
"import cgi"
] |
#!/usr/bin/env python
from xmlrpclib import ServerProxy
servidor=ServerProxy('http://aapugr.wordpress.com/xmlrpc.php')
#Recuperamos los 3 ultimos posts
posts=servidor.metaWeblog.getRecentPosts(1, "user", "pass", 3)
#Imprimimos los datos de los 3 ultimos posts
for elem in posts:
print 'PostID:'+elem['postid']
... | [
[
1,
0,
0.5,
0.5,
0,
0.66,
0,
251,
0,
1,
0,
0,
251,
0,
0
]
] | [
"from xmlrpclib import ServerProxy"
] |
#!/usr/bin/env python
import cgi
import urllib
import urllib2
import httplib
from xml.dom import minidom
form = cgi.FieldStorage()
xml = minidom.parse('quiniela.xml')
if form.has_key('encuentro'): enc=form.getvalue('encuentro')
if form.has_key('resultado'): res=form.getvalue('resultado')
encuentro=xml.getElementsB... | [
[
1,
0,
0.1667,
0.1667,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.3333,
0.1667,
0,
0.66,
0.25,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.5,
0.1667,
0,
0.66,... | [
"import cgi",
"import urllib",
"import urllib2",
"import httplib",
"from xml.dom import minidom"
] |
#!/usr/bin/env python
import cgi
import urllib
import urllib2
import httplib
from xml.dom import minidom
form = cgi.FieldStorage()
xml = minidom.parse('quiniela.xml')
if form.has_key('encuentro'): enc=form.getvalue('encuentro')
if form.has_key('resultado'): res=form.getvalue('resultado')
encuentro=xml.getElementsB... | [
[
1,
0,
0.1667,
0.1667,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.3333,
0.1667,
0,
0.66,
0.25,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.5,
0.1667,
0,
0.66,... | [
"import cgi",
"import urllib",
"import urllib2",
"import httplib",
"from xml.dom import minidom"
] |
#!/usr/bin/env python
import cgi
form = cgi.FieldStorage()
if form.has_key('numeroUno'): n1=int(form.getvalue('numeroUno'))
if form.has_key('numeroDos'): n2=int(form.getvalue('numeroDos'))
suma=n1+n2
resta=n1-n2
mult=n1*n2
div=n1/n2
exp=n1**n2
print """\
Content-Type: application/xml\n
<?xml version="1.0" encoding=... | [
[
1,
0,
1,
1,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
]
] | [
"import cgi"
] |
#!/usr/bin/python
import urllib
import urllib2
url="http://api.twitter.com/1/trends/daily.json"
trendingTopics = urllib2.urlopen(url).read()
print trendingTopics
| [
[
1,
0,
0.3,
0.1,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.4,
0.1,
0,
0.66,
0.25,
345,
0,
1,
0,
0,
345,
0,
0
],
[
14,
0,
0.6,
0.1,
0,
0.66,
0.5,
... | [
"import urllib",
"import urllib2",
"url=\"http://api.twitter.com/1/trends/daily.json\"",
"trendingTopics = urllib2.urlopen(url).read()",
"print(trendingTopics)"
] |
#! /usr/bin/env python
from xmlrpclib import ServerProxy
#Servidor para xmlrpc
servidor = ServerProxy('http://localhost:8080/exist/xmlrpc')
#Documento XML
xml=""""
<?xml version="1.0" encoding="iso-8859-1"?>
<documento>
<parte>UnaParte</parte>
<parte>OtraParte</parte>
</documento>
"""
#Subimos el XML a eXist
serv... | [
[
1,
0,
0.1667,
0.0556,
0,
0.66,
0,
251,
0,
1,
0,
0,
251,
0,
0
],
[
14,
0,
0.3333,
0.0556,
0,
0.66,
0.3333,
267,
3,
1,
0,
0,
164,
10,
1
],
[
14,
0,
0.6667,
0.3889,
0,
... | [
"from xmlrpclib import ServerProxy",
"servidor = ServerProxy('http://localhost:8080/exist/xmlrpc')",
"xml=\"\"\"\"\n<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<documento>\n\t<parte>UnaParte</parte>\n\t<parte>OtraParte</parte>\n</documento>\n\"\"\"",
"server.parse(xml, '/db/T3/documento')"
] |
#!/usr/bin/env python
from xmlrpclib import ServerProxy
servidor=ServerProxy('http://aapugr.wordpress.com/xmlrpc.php')
#Recuperamos los 3 ultimos posts
posts=servidor.metaWeblog.getRecentPosts(1, "user", "pass", 3)
#Imprimimos los datos de los 3 ultimos posts
for elem in posts:
print 'PostID:'+elem['postid']
... | [
[
1,
0,
0.5,
0.5,
0,
0.66,
0,
251,
0,
1,
0,
0,
251,
0,
0
]
] | [
"from xmlrpclib import ServerProxy"
] |
#!/usr/bin/env python
import cgi
form = cgi.FieldStorage()
if form.has_key('numeroUno'): n1=int(form.getvalue('numeroUno'))
if form.has_key('numeroDos'): n2=int(form.getvalue('numeroDos'))
suma=n1+n2
resta=n1-n2
mult=n1*n2
div=n1/n2
exp=n1**n2
print """\
Content-Type: application/xml\n
<?xml version="1.0" encoding=... | [
[
1,
0,
1,
1,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
]
] | [
"import cgi"
] |
#!/usr/bin/python
import urllib
import urllib2
#Se muestran los 20 ultimos URL.
url="https://aap_ugr:xxx@api.del.icio.us/v1/posts/recent?count=20"
ultimosURL = urllib2.urlopen(url).read()
print ultimosURL
| [
[
1,
0,
0.2727,
0.0909,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.3636,
0.0909,
0,
0.66,
0.25,
345,
0,
1,
0,
0,
345,
0,
0
],
[
14,
0,
0.6364,
0.0909,
0,
0... | [
"import urllib",
"import urllib2",
"url=\"https://aap_ugr:xxx@api.del.icio.us/v1/posts/recent?count=20\"",
"ultimosURL = urllib2.urlopen(url).read()",
"print(ultimosURL)"
] |
#!/usr/bin/python
import urllib
import urllib2
url="http://api.twitter.com/1/trends/daily.json"
trendingTopics = urllib2.urlopen(url).read()
print trendingTopics
| [
[
1,
0,
0.3,
0.1,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.4,
0.1,
0,
0.66,
0.25,
345,
0,
1,
0,
0,
345,
0,
0
],
[
14,
0,
0.6,
0.1,
0,
0.66,
0.5,
... | [
"import urllib",
"import urllib2",
"url=\"http://api.twitter.com/1/trends/daily.json\"",
"trendingTopics = urllib2.urlopen(url).read()",
"print(trendingTopics)"
] |
#! /usr/bin/env python
from xmlrpclib import ServerProxy
#Servidor para xmlrpc
servidor = ServerProxy('http://localhost:8080/exist/xmlrpc')
#Documento XML
xml=""""
<?xml version="1.0" encoding="iso-8859-1"?>
<documento>
<parte>UnaParte</parte>
<parte>OtraParte</parte>
</documento>
"""
#Subimos el XML a eXist
serv... | [
[
1,
0,
0.1667,
0.0556,
0,
0.66,
0,
251,
0,
1,
0,
0,
251,
0,
0
],
[
14,
0,
0.3333,
0.0556,
0,
0.66,
0.3333,
267,
3,
1,
0,
0,
164,
10,
1
],
[
14,
0,
0.6667,
0.3889,
0,
... | [
"from xmlrpclib import ServerProxy",
"servidor = ServerProxy('http://localhost:8080/exist/xmlrpc')",
"xml=\"\"\"\"\n<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<documento>\n\t<parte>UnaParte</parte>\n\t<parte>OtraParte</parte>\n</documento>\n\"\"\"",
"server.parse(xml, '/db/T3/documento')"
] |
#!/usr/bin/env python
import cgi
form = cgi.FieldStorage()
if form.has_key('numeroUno'): n1=int(form.getvalue('numeroUno'))
if form.has_key('numeroDos'): n2=int(form.getvalue('numeroDos'))
suma=n1+n2
resta=n1-n2
mult=n1*n2
div=n1/n2
exp=n1**n2
print """\
Content-Type: application/json\n
{"resultado": {
"suma": {"%... | [
[
1,
0,
1,
1,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
]
] | [
"import cgi"
] |
#!/usr/bin/python
import urllib
import urllib2
#Se muestran los 20 ultimos URL.
url="https://aap_ugr:xxx@api.del.icio.us/v1/posts/recent?count=20"
ultimosURL = urllib2.urlopen(url).read()
print ultimosURL
| [
[
1,
0,
0.2727,
0.0909,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.3636,
0.0909,
0,
0.66,
0.25,
345,
0,
1,
0,
0,
345,
0,
0
],
[
14,
0,
0.6364,
0.0909,
0,
0... | [
"import urllib",
"import urllib2",
"url=\"https://aap_ugr:xxx@api.del.icio.us/v1/posts/recent?count=20\"",
"ultimosURL = urllib2.urlopen(url).read()",
"print(ultimosURL)"
] |
import libxml2
doc = libxml2.parseFile("miCasa.xml")
cont = doc.xpathNewContext()
sol = cont.xpathEval("//puerta/@idP")
print 'Puertas a: '
for i in sol:
print str(i)
doc.freeDoc()
cont.xpathFreeContext()
| [
[
1,
0,
0.0833,
0.0833,
0,
0.66,
0,
256,
0,
1,
0,
0,
256,
0,
0
],
[
14,
0,
0.1667,
0.0833,
0,
0.66,
0.1429,
555,
3,
1,
0,
0,
947,
10,
1
],
[
14,
0,
0.25,
0.0833,
0,
... | [
"import libxml2",
"doc = libxml2.parseFile(\"miCasa.xml\")",
"cont = doc.xpathNewContext()",
"sol = cont.xpathEval(\"//puerta/@idP\")",
"print('Puertas a: ')",
"for i in sol:\n print(str(i))",
" print(str(i))",
"doc.freeDoc()",
"cont.xpathFreeContext()"
] |
#!/usr/bin/python
import sys, urllib2
#leemos el numero de fotos que quiere que aparezcan
numerofotos=sys.argv[1]
#enviamos la peticion y obtenemos la respuesta
fotos = urllib2.urlopen("http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=3423b7fc09ffb0e9fec5fd5d16a421b8&per_page="+numerofotos).... | [
[
1,
0,
0.2222,
0.1111,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
14,
0,
0.5556,
0.1111,
0,
0.66,
0.3333,
401,
6,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.7778,
0.1111,
0,
... | [
"import sys, urllib2",
"numerofotos=sys.argv[1]",
"fotos = urllib2.urlopen(\"http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=3423b7fc09ffb0e9fec5fd5d16a421b8&per_page=\"+numerofotos).read()",
"print(fotos)"
] |
#!/usr/bin/python
import sys, urllib2
#leemos el numero de fotos que quiere que aparezcan
numerofotos=sys.argv[1]
#enviamos la peticion y obtenemos la respuesta
fotos = urllib2.urlopen("http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=3423b7fc09ffb0e9fec5fd5d16a421b8&per_page="+numerofotos).... | [
[
1,
0,
0.2222,
0.1111,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
14,
0,
0.5556,
0.1111,
0,
0.66,
0.3333,
401,
6,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.7778,
0.1111,
0,
... | [
"import sys, urllib2",
"numerofotos=sys.argv[1]",
"fotos = urllib2.urlopen(\"http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=3423b7fc09ffb0e9fec5fd5d16a421b8&per_page=\"+numerofotos).read()",
"print(fotos)"
] |
#!/usr/bin/python
# coding: UTF-8
#Nota: no incluimos comas en los comentarios por motivos de compatibilidad
import urllib2
import os
import sys
#Mostramos la cabecera del programa
print 'Solicitud de busqueda en Google, by Julio Navarro'
print '*************************************************'
#Solicitamos la int... | [
[
1,
0,
0.0659,
0.011,
0,
0.66,
0,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.0769,
0.011,
0,
0.66,
0.0357,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0879,
0.011,
0,
0.6... | [
"import urllib2",
"import os",
"import sys",
"print('Solicitud de busqueda en Google, by Julio Navarro')",
"print('*************************************************')",
"busqueda = raw_input('Introduzca la palabra o palabras a buscar: ')",
"busqueda2 = busqueda.replace(' ','%20')",
"url = 'https://aja... |
#!/usr/bin/python
# coding: UTF-8
#Nota: no incluimos comas en los comentarios por motivos de compatibilidad
import urllib2
import os
import sys
#Mostramos la cabecera del programa
print 'Solicitud de busqueda en Google, by Julio Navarro'
print '*************************************************'
#Solicitamos la int... | [
[
1,
0,
0.0659,
0.011,
0,
0.66,
0,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.0769,
0.011,
0,
0.66,
0.0357,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0879,
0.011,
0,
0.6... | [
"import urllib2",
"import os",
"import sys",
"print('Solicitud de busqueda en Google, by Julio Navarro')",
"print('*************************************************')",
"busqueda = raw_input('Introduzca la palabra o palabras a buscar: ')",
"busqueda2 = busqueda.replace(' ','%20')",
"url = 'https://aja... |
from xml.dom import minidom
xml = minidom.parse('habitaciones.xml')
habitaciones = xml.getElementsByTagName('habitacion')
for habitacion in habitaciones:
print habitacion.attributes["id"].nodeValue
| [
[
1,
0,
0.125,
0.125,
0,
0.66,
0,
290,
0,
1,
0,
0,
290,
0,
0
],
[
14,
0,
0.375,
0.125,
0,
0.66,
0.3333,
324,
3,
1,
0,
0,
678,
10,
1
],
[
14,
0,
0.625,
0.125,
0,
0.6... | [
"from xml.dom import minidom",
"xml = minidom.parse('habitaciones.xml')",
"habitaciones = xml.getElementsByTagName('habitacion')",
"for habitacion in habitaciones:\n print(habitacion.attributes[\"id\"].nodeValue)",
" print(habitacion.attributes[\"id\"].nodeValue)"
] |
#!/usr/bin/env python
import urllib
import urllib2
from xml.dom import minidom
parametros = urllib.urlencode({"_query":"//item","_wrap":"yes","_indent":"yes","_howmany":"2"})
respuesta = urllib2.urlopen("http://localhost:8080/exist/rest/db/rss/?"+parametros)
salida = minidom.parseString(respuesta.read())
for i in s... | [
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0.1667,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.3077,
0.0769,
0,
... | [
"import urllib",
"import urllib2",
"from xml.dom import minidom",
"parametros = urllib.urlencode({\"_query\":\"//item\",\"_wrap\":\"yes\",\"_indent\":\"yes\",\"_howmany\":\"2\"})",
"respuesta = urllib2.urlopen(\"http://localhost:8080/exist/rest/db/rss/?\"+parametros)",
"salida = minidom.parseString(respue... |
#!/usr/bin/env python
import urllib
import urllib2
from xml.dom import minidom
parametros = urllib.urlencode({"_query":"//item/link","_wrap":"yes","_indent":"yes"})
respuesta = urllib2.urlopen("http://localhost:8080/exist/rest/db/rss/?"+parametros)
salida = minidom.parseString(respuesta.read())
for i in salida.getE... | [
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0.1667,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.3077,
0.0769,
0,
... | [
"import urllib",
"import urllib2",
"from xml.dom import minidom",
"parametros = urllib.urlencode({\"_query\":\"//item/link\",\"_wrap\":\"yes\",\"_indent\":\"yes\"})",
"respuesta = urllib2.urlopen(\"http://localhost:8080/exist/rest/db/rss/?\"+parametros)",
"salida = minidom.parseString(respuesta.read())",
... |
#!/usr/bin/env python
import cgi
import urllib
import urllib2
import httplib
from xml.dom import minidom
form = cgi.FieldStorage()
xml = minidom.parse('datos.xml')
resultados = xml.getElementsByTagName('entrada')
json = '{"equipos":['
for i in range(15):
local = resultados[i].getElementsByTagName('equipoA')
visi... | [
[
1,
0,
0.1667,
0.1667,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.3333,
0.1667,
0,
0.66,
0.25,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.5,
0.1667,
0,
0.66,... | [
"import cgi",
"import urllib",
"import urllib2",
"import httplib",
"from xml.dom import minidom"
] |
#!/usr/bin/env python
import cgi
import urllib
import urllib2
import httplib
from xml.dom import minidom
form = cgi.FieldStorage()
xml = minidom.parse('datos.xml')
resultados = xml.getElementsByTagName('entrada')
json = '{"equipos":['
for i in range(15):
local = resultados[i].getElementsByTagName('equipoA')
visi... | [
[
1,
0,
0.1667,
0.1667,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.3333,
0.1667,
0,
0.66,
0.25,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.5,
0.1667,
0,
0.66,... | [
"import cgi",
"import urllib",
"import urllib2",
"import httplib",
"from xml.dom import minidom"
] |
import feedparser
rss = feedparser.parse("http://barrapunto.com/barrapunto.rss")
for i in rss.entries:
print i.date
print i.title
print " "
| [
[
1,
0,
0.125,
0.125,
0,
0.66,
0,
4,
0,
1,
0,
0,
4,
0,
0
],
[
14,
0,
0.375,
0.125,
0,
0.66,
0.5,
865,
3,
1,
0,
0,
678,
10,
1
],
[
6,
0,
0.8125,
0.5,
0,
0.66,
1,... | [
"import feedparser",
"rss = feedparser.parse(\"http://barrapunto.com/barrapunto.rss\")",
"for i in rss.entries:\n\tprint(i.date)\n\tprint(i.title)\n\tprint(\" \")",
"\tprint(i.date)",
"\tprint(i.title)",
"\tprint(\" \")"
] |
#!/usr/bin/env python
import urllib
import urllib2
from xml.dom import minidom
parametros = urllib.urlencode({"_query":"//item/title","_wrap":"yes","_indent":"yes"})
respuesta = urllib2.urlopen("http://localhost:8080/exist/rest/db/rss/?"+parametros)
salida = minidom.parseString(respuesta.read())
for i in salida.get... | [
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0.1667,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.3077,
0.0769,
0,
... | [
"import urllib",
"import urllib2",
"from xml.dom import minidom",
"parametros = urllib.urlencode({\"_query\":\"//item/title\",\"_wrap\":\"yes\",\"_indent\":\"yes\"})",
"respuesta = urllib2.urlopen(\"http://localhost:8080/exist/rest/db/rss/?\"+parametros)",
"salida = minidom.parseString(respuesta.read())",... |
import feedparser
rss = feedparser.parse("http://discorporating.blogspot.com/feeds/posts/default")
for i in rss.entries:
print i.date
print i.title
print " "
| [
[
1,
0,
0.125,
0.125,
0,
0.66,
0,
4,
0,
1,
0,
0,
4,
0,
0
],
[
14,
0,
0.375,
0.125,
0,
0.66,
0.5,
865,
3,
1,
0,
0,
678,
10,
1
],
[
6,
0,
0.8125,
0.5,
0,
0.66,
1,... | [
"import feedparser",
"rss = feedparser.parse(\"http://discorporating.blogspot.com/feeds/posts/default\")",
"for i in rss.entries:\n\tprint(i.date)\n\tprint(i.title)\n\tprint(\" \")",
"\tprint(i.date)",
"\tprint(i.title)",
"\tprint(\" \")"
] |
#!/usr/bin/python
import cgi
print "Content-type: text/json\n"
parametros = cgi.FieldStorage()
n = int(parametros["n"].value)
json = '{"Tabla":'+str(n)
for i in range(11):
valor = n*i
json = json + ',"Valor'+str(i)+'":'+str(valor)
json = json + '}'
print json
| [
[
1,
0,
0.1111,
0.0556,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
8,
0,
0.2222,
0.0556,
0,
0.66,
0.1429,
535,
3,
1,
0,
0,
0,
0,
1
],
[
14,
0,
0.3333,
0.0556,
0,
0... | [
"import cgi",
"print(\"Content-type: text/json\\n\")",
"parametros = cgi.FieldStorage()",
"n = int(parametros[\"n\"].value)",
"json = '{\"Tabla\":'+str(n)",
"for i in range(11):\n valor = n*i\n json = json + ',\"Valor'+str(i)+'\":'+str(valor)",
" valor = n*i",
" json = json + ',\"Valor'+st... |
#!/usr/bin/python
import cgi
print "Content-type: text/xml\n"
parametros = cgi.FieldStorage()
n = int(parametros["n"].value)
print "<tabla id='"+str(n)+"'>"
for i in range(11):
valor = n*i
print "<valorx"+str(i)+">"+str(valor)+"</valorx"+str(i)+">"
print "</tabla>"
| [
[
1,
0,
0.1333,
0.0667,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
8,
0,
0.2667,
0.0667,
0,
0.66,
0.1667,
535,
3,
1,
0,
0,
0,
0,
1
],
[
14,
0,
0.4,
0.0667,
0,
0.66... | [
"import cgi",
"print(\"Content-type: text/xml\\n\")",
"parametros = cgi.FieldStorage()",
"n = int(parametros[\"n\"].value)",
"print(\"<tabla id='\"+str(n)+\"'>\")",
"for i in range(11):\n valor = n*i\n print(\"<valorx\"+str(i)+\">\"+str(valor)+\"</valorx\"+str(i)+\">\")",
" valor = n*i",
" ... |
#!/usr/bin/python
import cgi
print "Content-type: text/json\n"
parametros = cgi.FieldStorage()
n = int(parametros["n"].value)
json = '{"Tabla":'+str(n)
for i in range(11):
valor = n*i
json = json + ',"Valor'+str(i)+'":'+str(valor)
json = json + '}'
print json
| [
[
1,
0,
0.1111,
0.0556,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
8,
0,
0.2222,
0.0556,
0,
0.66,
0.1429,
535,
3,
1,
0,
0,
0,
0,
1
],
[
14,
0,
0.3333,
0.0556,
0,
0... | [
"import cgi",
"print(\"Content-type: text/json\\n\")",
"parametros = cgi.FieldStorage()",
"n = int(parametros[\"n\"].value)",
"json = '{\"Tabla\":'+str(n)",
"for i in range(11):\n valor = n*i\n json = json + ',\"Valor'+str(i)+'\":'+str(valor)",
" valor = n*i",
" json = json + ',\"Valor'+st... |
#!/usr/bin/python
import cgi
print "Content-type: text/xml\n"
parametros = cgi.FieldStorage()
n = int(parametros["n"].value)
print "<tabla id='"+str(n)+"'>"
for i in range(11):
valor = n*i
print "<valorx"+str(i)+">"+str(valor)+"</valorx"+str(i)+">"
print "</tabla>"
| [
[
1,
0,
0.1333,
0.0667,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
8,
0,
0.2667,
0.0667,
0,
0.66,
0.1667,
535,
3,
1,
0,
0,
0,
0,
1
],
[
14,
0,
0.4,
0.0667,
0,
0.66... | [
"import cgi",
"print(\"Content-type: text/xml\\n\")",
"parametros = cgi.FieldStorage()",
"n = int(parametros[\"n\"].value)",
"print(\"<tabla id='\"+str(n)+\"'>\")",
"for i in range(11):\n valor = n*i\n print(\"<valorx\"+str(i)+\">\"+str(valor)+\"</valorx\"+str(i)+\">\")",
" valor = n*i",
" ... |
#!/usr/bin/env python
import urllib
import urllib2
from xml.dom import minidom
parametros = urllib.urlencode({"_query":"//item","_wrap":"yes","_indent":"yes","_howmany":"2"})
respuesta = urllib2.urlopen("http://localhost:8080/exist/rest/db/rss/?"+parametros)
salida = minidom.parseString(respuesta.read())
for i in s... | [
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0.1667,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.3077,
0.0769,
0,
... | [
"import urllib",
"import urllib2",
"from xml.dom import minidom",
"parametros = urllib.urlencode({\"_query\":\"//item\",\"_wrap\":\"yes\",\"_indent\":\"yes\",\"_howmany\":\"2\"})",
"respuesta = urllib2.urlopen(\"http://localhost:8080/exist/rest/db/rss/?\"+parametros)",
"salida = minidom.parseString(respue... |
#!/usr/bin/env python
import urllib
import urllib2
import httplib
from xml.dom import minidom
modificacion = """<xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate">
<xupdate:insert-before select="//item[1]" >
<xupdate:element name="item">
<xupdate:element name="title">El origen de P... | [
[
1,
0,
0.05,
0.025,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.075,
0.025,
0,
0.66,
0.0476,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.1,
0.025,
0,
0.66,
... | [
"import urllib",
"import urllib2",
"import httplib",
"from xml.dom import minidom",
"modificacion = \"\"\"<xupdate:modifications version=\"1.0\" xmlns:xupdate=\"http://www.xmldb.org/xupdate\">\n<xupdate:insert-before select=\"//item[1]\" > \n\t<xupdate:element name=\"item\">\n\t\t<xupdate:element name=\"t... |
#!/usr/bin/env python
import urllib
import urllib2
from xml.dom import minidom
parametros = urllib.urlencode({"_query":"//item/link","_wrap":"yes","_indent":"yes"})
respuesta = urllib2.urlopen("http://localhost:8080/exist/rest/db/rss/?"+parametros)
salida = minidom.parseString(respuesta.read())
for i in salida.getE... | [
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0.1667,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.3077,
0.0769,
0,
... | [
"import urllib",
"import urllib2",
"from xml.dom import minidom",
"parametros = urllib.urlencode({\"_query\":\"//item/link\",\"_wrap\":\"yes\",\"_indent\":\"yes\"})",
"respuesta = urllib2.urlopen(\"http://localhost:8080/exist/rest/db/rss/?\"+parametros)",
"salida = minidom.parseString(respuesta.read())",
... |
#!/usr/bin/env python
import urllib
import urllib2
from xml.dom import minidom
parametros = urllib.urlencode({"_query":"//item/title","_wrap":"yes","_indent":"yes"})
respuesta = urllib2.urlopen("http://localhost:8080/exist/rest/db/rss/?"+parametros)
salida = minidom.parseString(respuesta.read())
for i in salida.get... | [
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0.1667,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.3077,
0.0769,
0,
... | [
"import urllib",
"import urllib2",
"from xml.dom import minidom",
"parametros = urllib.urlencode({\"_query\":\"//item/title\",\"_wrap\":\"yes\",\"_indent\":\"yes\"})",
"respuesta = urllib2.urlopen(\"http://localhost:8080/exist/rest/db/rss/?\"+parametros)",
"salida = minidom.parseString(respuesta.read())",... |
#!/usr/bin/env python
import urllib
import urllib2
import httplib
from xml.dom import minidom
modificacion = """<xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate">
<xupdate:insert-before select="//item[1]" >
<xupdate:element name="item">
<xupdate:element name="title">El origen de P... | [
[
1,
0,
0.05,
0.025,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.075,
0.025,
0,
0.66,
0.0476,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.1,
0.025,
0,
0.66,
... | [
"import urllib",
"import urllib2",
"import httplib",
"from xml.dom import minidom",
"modificacion = \"\"\"<xupdate:modifications version=\"1.0\" xmlns:xupdate=\"http://www.xmldb.org/xupdate\">\n<xupdate:insert-before select=\"//item[1]\" > \n\t<xupdate:element name=\"item\">\n\t\t<xupdate:element name=\"t... |
import libxml2
doc = libxml2.parseFile("habitaciones2.xml")
ctxt = doc.xpathNewContext()
res = ctxt.xpathEval("//puerta/@a")
#res = ctxt.xpathEval("//habitacion")
print 'Hay '+str(len(res))+' puertas que dan:'
for destino in res:
print str(destino)
doc.freeDoc()
ctxt.xpathFreeContext()
| [
[
1,
0,
0.0714,
0.0714,
0,
0.66,
0,
256,
0,
1,
0,
0,
256,
0,
0
],
[
14,
0,
0.2143,
0.0714,
0,
0.66,
0.1429,
555,
3,
1,
0,
0,
947,
10,
1
],
[
14,
0,
0.2857,
0.0714,
0,
... | [
"import libxml2",
"doc = libxml2.parseFile(\"habitaciones2.xml\")",
"ctxt = doc.xpathNewContext()",
"res = ctxt.xpathEval(\"//puerta/@a\")",
"print('Hay '+str(len(res))+' puertas que dan:')",
"for destino in res:\n\tprint(str(destino))",
"\tprint(str(destino))",
"doc.freeDoc()",
"ctxt.xpathFreeConte... |
import libxml2
doc = libxml2.parseFile("clasificacion.xml")
ctxt = doc.xpathNewContext()
nombres = ctxt.xpathEval("//equipo/nombre")
puntos = ctxt.xpathEval("//equipo/puntos")
for i in range(4):
print str(nombres[i].content)+': '+str(puntos[i].content)
doc.freeDoc()
ctxt.xpathFreeContext()
| [
[
1,
0,
0.0833,
0.0833,
0,
0.66,
0,
256,
0,
1,
0,
0,
256,
0,
0
],
[
14,
0,
0.25,
0.0833,
0,
0.66,
0.1429,
555,
3,
1,
0,
0,
947,
10,
1
],
[
14,
0,
0.3333,
0.0833,
0,
... | [
"import libxml2",
"doc = libxml2.parseFile(\"clasificacion.xml\")",
"ctxt = doc.xpathNewContext()",
"nombres = ctxt.xpathEval(\"//equipo/nombre\")",
"puntos = ctxt.xpathEval(\"//equipo/puntos\")",
"for i in range(4):\n\tprint(str(nombres[i].content)+': '+str(puntos[i].content))",
"\tprint(str(nombres[i]... |
from RSS import ns, CollectionChannel, TrackingChannel
#Creamos lo que se llama un Tracking Channel
tc = TrackingChannel()
#Leemos el feed
tc.parse("http://barrapunto.com/barrapunto.rss")
RSS10_TITLE = (ns.rss10, 'title')
#Sacamos los items e iteramos
items = tc.listItems()
for item in items:
item_data = tc.getIte... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
248,
0,
3,
0,
0,
248,
0,
0
],
[
14,
0,
0.25,
0.0625,
0,
0.66,
0.2,
375,
3,
0,
0,
0,
709,
10,
1
],
[
8,
0,
0.4375,
0.0625,
0,
0.6... | [
"from RSS import ns, CollectionChannel, TrackingChannel",
"tc = TrackingChannel()",
"tc.parse(\"http://barrapunto.com/barrapunto.rss\")",
"RSS10_TITLE = (ns.rss10, 'title')",
"items = tc.listItems()",
"for item in items:\n\titem_data = tc.getItem(item)\n\t#Mostramos el titulo (si no tiene, se muestra el m... |
from SOAPpy import *
#Especificamos el archivo WSDL
#WSDLFile = "http://www.webservicex.net/geoipservice.asmx?WSDL"
WSDLFile = "http://www.restfulwebservices.net/wcf/WeatherForecastService.svc?wsdl"
server = WSDL.Proxy(WSDLFile)
#Descomentar para imprimir los metodos disponibles
#print proxy.methods.keys()
#Esto dev... | [
[
1,
0,
0.0345,
0.0345,
0,
0.66,
0,
181,
0,
1,
0,
0,
181,
0,
0
],
[
14,
0,
0.1724,
0.0345,
0,
0.66,
0.3333,
326,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2414,
0.0345,
0,
... | [
"from SOAPpy import *",
"WSDLFile = \"http://www.restfulwebservices.net/wcf/WeatherForecastService.svc?wsdl\"",
"server = WSDL.Proxy(WSDLFile)",
"print(server.GetCitiesByCountry(\"Spain\"))"
] |
import xmlrpclib
#Vamos a crear un XML en Exist mediante su interfaz XML-RPC
#Creamos el objeto servidor
server_url = 'http://localhost:8080/exist/xmlrpc'
server = xmlrpclib.ServerProxy(server_url)
#Creamos el XML
xml = """<?xml version="1.0" encoding="iso-8859-1"?>
<datos>
<cosa>Una</cosa>
</datos>"""
#Lo subimo... | [
[
1,
0,
0.125,
0.0625,
0,
0.66,
0,
251,
0,
1,
0,
0,
251,
0,
0
],
[
14,
0,
0.375,
0.0625,
0,
0.66,
0.25,
257,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4375,
0.0625,
0,
0.66... | [
"import xmlrpclib",
"server_url = 'http://localhost:8080/exist/xmlrpc'",
"server = xmlrpclib.ServerProxy(server_url)",
"xml = \"\"\"<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<datos>\n <cosa>Una</cosa> \n</datos>\"\"\"",
"server.parse(xml,\"/db/xmlrpc/xmlrpc.xml\")"
] |
#!/usr/bin/python
# coding: UTF-8
import urllib2
import urllib
from xml.dom import minidom
#Mostramos la cabecera del programa
print 'Solicitud de busqueda en IMdB, by Julio Navarro'
print '***********************************************'
#Solicitamos la introduccion de una pelicula a buscar
titulo = raw_input('Int... | [
[
1,
0,
0.2174,
0.0435,
0,
0.66,
0,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.2609,
0.0435,
0,
0.66,
0.1111,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.3043,
0.0435,
0,
... | [
"import urllib2",
"import urllib",
"from xml.dom import minidom",
"print('Solicitud de busqueda en IMdB, by Julio Navarro')",
"print('***********************************************')",
"titulo = raw_input('Introduzca el titulo de la pelicula a buscar: ')",
"parametros = urllib.urlencode({\"t\":titulo,\... |
#!/usr/bin/env python
import xmlrpclib
url="http://aapugr.wordpress.com/xmlrpc.php"
server = xmlrpclib.ServerProxy(url)
#Tomamos los 5 posts mas recientes
posts=server.metaWeblog.getRecentPosts(24,'aapugr','ugr_aap',5)
for post in posts:
print "Titulo:"+post['title']
print "Link:"+post['permaLink']
print post['d... | [
[
1,
0,
0.1429,
0.0476,
0,
0.66,
0,
251,
0,
1,
0,
0,
251,
0,
0
],
[
14,
0,
0.2381,
0.0476,
0,
0.66,
0.25,
789,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2857,
0.0476,
0,
0.... | [
"import xmlrpclib",
"url=\"http://aapugr.wordpress.com/xmlrpc.php\"",
"server = xmlrpclib.ServerProxy(url)",
"posts=server.metaWeblog.getRecentPosts(24,'aapugr','ugr_aap',5)",
"for post in posts:\n\tprint(\"Titulo:\"+post['title'])\n\tprint(\"Link:\"+post['permaLink'])\n\tprint(post['description'])\n\tprint... |
import urllib
import urllib2
#Por si queremos incluir parametros
#parametros = urllib.urlencode({"tag":tag,"count":})
respuesta = urllib2.urlopen("https://aap_ugr:aula-16@api.del.icio.us/v1/posts/recent?")
salida = respuesta.read()
print salida
| [
[
1,
0,
0.0909,
0.0909,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0.25,
345,
0,
1,
0,
0,
345,
0,
0
],
[
14,
0,
0.6364,
0.0909,
0,
0... | [
"import urllib",
"import urllib2",
"respuesta = urllib2.urlopen(\"https://aap_ugr:aula-16@api.del.icio.us/v1/posts/recent?\")",
"salida = respuesta.read()",
"print(salida)"
] |
#!/usr/bin/env python
import xmlrpclib
url="http://aapugr.wordpress.com/xmlrpc.php"
server = xmlrpclib.ServerProxy(url)
#Tomamos los 5 posts mas recientes
posts=server.metaWeblog.getRecentPosts(24,'aapugr','ugr_aap',5)
for post in posts:
print "Titulo:"+post['title']
print "Link:"+post['permaLink']
print post['d... | [
[
1,
0,
0.1429,
0.0476,
0,
0.66,
0,
251,
0,
1,
0,
0,
251,
0,
0
],
[
14,
0,
0.2381,
0.0476,
0,
0.66,
0.25,
789,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2857,
0.0476,
0,
0.... | [
"import xmlrpclib",
"url=\"http://aapugr.wordpress.com/xmlrpc.php\"",
"server = xmlrpclib.ServerProxy(url)",
"posts=server.metaWeblog.getRecentPosts(24,'aapugr','ugr_aap',5)",
"for post in posts:\n\tprint(\"Titulo:\"+post['title'])\n\tprint(\"Link:\"+post['permaLink'])\n\tprint(post['description'])\n\tprint... |
#!/usr/bin/python
# coding: UTF-8
import urllib2
import urllib
from xml.dom import minidom
#Mostramos la cabecera del programa
print 'Solicitud de busqueda en IMdB, by Julio Navarro'
print '***********************************************'
#Solicitamos la introduccion de una pelicula a buscar
titulo = raw_input('Int... | [
[
1,
0,
0.2174,
0.0435,
0,
0.66,
0,
345,
0,
1,
0,
0,
345,
0,
0
],
[
1,
0,
0.2609,
0.0435,
0,
0.66,
0.1111,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.3043,
0.0435,
0,
... | [
"import urllib2",
"import urllib",
"from xml.dom import minidom",
"print('Solicitud de busqueda en IMdB, by Julio Navarro')",
"print('***********************************************')",
"titulo = raw_input('Introduzca el titulo de la pelicula a buscar: ')",
"parametros = urllib.urlencode({\"t\":titulo,\... |
import xmlrpclib
url="http://aapugr.wordpress.com/xmlrpc.php"
server = xmlrpclib.ServerProxy(url)
#Subimos un borrador
#datos = pack('ss','Titulo de prueba','Texto de prueba') #Intento fallido de empaquetar con el paquete struct
datos = {'title':'Malditos struct!!','description':'Soy Julio, al final ha funcionado','c... | [
[
1,
0,
0.1,
0.1,
0,
0.66,
0,
251,
0,
1,
0,
0,
251,
0,
0
],
[
14,
0,
0.3,
0.1,
0,
0.66,
0.25,
789,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4,
0.1,
0,
0.66,
0.5,
2... | [
"import xmlrpclib",
"url=\"http://aapugr.wordpress.com/xmlrpc.php\"",
"server = xmlrpclib.ServerProxy(url)",
"datos = {'title':'Malditos struct!!','description':'Soy Julio, al final ha funcionado','categories':[('categoria')]}",
"server.metaWeblog.newPost(24,'aapugr','ugr_aap',datos,True)"
] |
#!/usr/bin/python
#-*- coding: utf-8 -*-
import urllib
import sys
from xml.dom.minidom import parseString
f = urllib.urlopen('https://aap_ugr:aula-16@api.del.icio.us/v1/posts/recent').read()
arbol = parseString(f)
print "Lista de los últimos enlaces de aap_ugr:"
child = arbol.getElementsByTagName("posts")[0]
for i... | [
[
1,
0,
0.2353,
0.0588,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2941,
0.0588,
0,
0.66,
0.1429,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.3529,
0.0588,
0,
... | [
"import urllib",
"import sys",
"from xml.dom.minidom import parseString",
"f = urllib.urlopen('https://aap_ugr:aula-16@api.del.icio.us/v1/posts/recent').read()",
"arbol = parseString(f)",
"print(\"Lista de los últimos enlaces de aap_ugr:\")",
"child = arbol.getElementsByTagName(\"posts\")[0]",
"for i ... |
#!/usr/bin/python
#-*- coding: utf-8 -*-
import urllib
import sys
from xml.dom.minidom import parseString
f = urllib.urlopen('https://aap_ugr:aula-16@api.del.icio.us/v1/posts/recent').read()
arbol = parseString(f)
print "Lista de los últimos enlaces de aap_ugr:"
child = arbol.getElementsByTagName("posts")[0]
for i... | [
[
1,
0,
0.2353,
0.0588,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2941,
0.0588,
0,
0.66,
0.1429,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.3529,
0.0588,
0,
... | [
"import urllib",
"import sys",
"from xml.dom.minidom import parseString",
"f = urllib.urlopen('https://aap_ugr:aula-16@api.del.icio.us/v1/posts/recent').read()",
"arbol = parseString(f)",
"print(\"Lista de los últimos enlaces de aap_ugr:\")",
"child = arbol.getElementsByTagName(\"posts\")[0]",
"for i ... |
#!/usr/bin/python
#-*- coding: utf-8 -*-
import sys
import feedparser
d = feedparser.parse(sys.argv[1])
for i in d['entries']:
print " * " +i['title']
| [
[
1,
0,
0.4,
0.1,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.5,
0.1,
0,
0.66,
0.3333,
4,
0,
1,
0,
0,
4,
0,
0
],
[
14,
0,
0.7,
0.1,
0,
0.66,
0.6667,
... | [
"import sys",
"import feedparser",
"d = feedparser.parse(sys.argv[1])",
"for i in d['entries']:\n print(\" * \" +i['title'])",
" print(\" * \" +i['title'])"
] |
#!/usr/bin/python
#-*- coding: utf-8 -*-
import sys
import feedparser
d = feedparser.parse(sys.argv[1])
for i in d['entries']:
print " * " +i['title']
| [
[
1,
0,
0.4,
0.1,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.5,
0.1,
0,
0.66,
0.3333,
4,
0,
1,
0,
0,
4,
0,
0
],
[
14,
0,
0.7,
0.1,
0,
0.66,
0.6667,
... | [
"import sys",
"import feedparser",
"d = feedparser.parse(sys.argv[1])",
"for i in d['entries']:\n print(\" * \" +i['title'])",
" print(\" * \" +i['title'])"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.