code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
# @mark.steps # ---------------------------------------------------------------------------- # STEPS: # ---------------------------------------------------------------------------- from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from selenium.webdriver.support.u...
[ [ 1, 0, 0.0746, 0.0149, 0, 0.66, 0, 844, 0, 1, 0, 0, 844, 0, 0 ], [ 1, 0, 0.0896, 0.0149, 0, 0.66, 0.0833, 328, 0, 1, 0, 0, 328, 0, 0 ], [ 1, 0, 0.1045, 0.0149, 0, ...
[ "from selenium.common.exceptions import NoSuchElementException", "from selenium.webdriver.common.by import By", "from selenium.webdriver.support.ui import WebDriverWait", "from selenium.webdriver.support import expected_conditions as EC", "from behave import given, when, then", "from hamcrest import asser...
import os import sys import signal import subprocess from selenium import webdriver def before_all(context): # NOTE: you can change to whatever driver you want, I use Firefox as a demo context.browser = webdriver.Firefox() # start the app engine server # make sure dev_appserver.py is in your PATH ...
[ [ 1, 0, 0.0286, 0.0286, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0571, 0.0286, 0, 0.66, 0.1667, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0857, 0.0286, 0, ...
[ "import os", "import sys", "import signal", "import subprocess", "from selenium import webdriver", "def before_all(context):\n # NOTE: you can change to whatever driver you want, I use Firefox as a demo\n context.browser = webdriver.Firefox()\n # start the app engine server\n # make sure dev_a...
#!/usr/bin/env python import os import urllib from google.appengine.api import users from google.appengine.ext import ndb import jinja2 import webapp2 JINJA_ENVIRONMENT = jinja2.Environment( loader=jinja2.FileSystemLoader(os.path.dirname(__file__)), extensions=['jinja2.ext.autoescape'], autoescape=True) ...
[ [ 1, 0, 0.0159, 0.0079, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0238, 0.0079, 0, 0.66, 0.0714, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0397, 0.0079, 0, ...
[ "import os", "import urllib", "from google.appengine.api import users", "from google.appengine.ext import ndb", "import jinja2", "import webapp2", "JINJA_ENVIRONMENT = jinja2.Environment(\n loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),\n extensions=['jinja2.ext.autoescape'],\n auto...
__author__ = 'wlee' import Pycluster import random from collections import deque import numpy import math checkins = open('Brightkite_totalCheckins.txt','rb') kmlstatement=[] geos=[] geo_avgs=dict() id=0 count = 0 valid_ids =[] write_valid_ids = open('valid_ids2.txt','wb') us_num = 0 def check_simila...
[ [ 14, 0, 0.0059, 0.0059, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0118, 0.0059, 0, 0.66, 0.0526, 86, 0, 1, 0, 0, 86, 0, 0 ], [ 1, 0, 0.0178, 0.0059, 0, 0.6...
[ "__author__ = 'wlee'", "import Pycluster", "import random", "from collections import deque", "import numpy", "import math", "checkins = open('Brightkite_totalCheckins.txt','rb')", "kmlstatement=[]", "geos=[]", "geo_avgs=dict()", "id=0", "count = 0", "valid_ids =[]", "write_valid_ids = open...
''' Created on Dec 7, 2011 @author: jeongjin ''' import os import random #src_path = "./" src_path = "/Users/jeongjin/Dropbox/224w/data/AgraphTestData/" label_path = "" label_file = None feature_file_dct = {} result_size = 500000 result_file_name = src_path+"data_"+str(result_size)+".csv" for filename in os.listd...
[ [ 8, 0, 0.0484, 0.0806, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0968, 0.0161, 0, 0.66, 0.05, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1129, 0.0161, 0, 0.66, ...
[ "'''\nCreated on Dec 7, 2011\n\n@author: jeongjin\n'''", "import os", "import random", "src_path = \"/Users/jeongjin/Dropbox/224w/data/AgraphTestData/\"", "label_path = \"\"", "label_file = None", "feature_file_dct = {}", "result_size = 500000", "result_file_name = src_path+\"data_\"+str(result_size...
import re __author__ = 'N Tech2' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ...
[ [ 1, 0, 0.0011, 0.0011, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0033, 0.0011, 0, 0.66, 0.0238, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0137, 0.0132, 0, 0...
[ "import re", "__author__ = 'N Tech2'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
[ [ 1, 0, 0.0009, 0.0009, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0027, 0.0009, 0, 0.66, 0.02, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0112, 0.0108, 0, 0.6...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>",...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
[ [ 1, 0, 0.0009, 0.0009, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0027, 0.0009, 0, 0.66, 0.02, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0112, 0.0108, 0, 0.6...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>",...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0024, 0.0008, 0, 0.66, 0.0167, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0101, 0.0097, 0, 0...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>",...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0025, 0.0008, 0, 0.66, 0.0167, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0103, 0.0099, 0, 0...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>",...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
[ [ 1, 0, 0.0011, 0.0011, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0033, 0.0011, 0, 0.66, 0.0233, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0138, 0.0133, 0, 0...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>",...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0024, 0.0008, 0, 0.66, 0.0172, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0101, 0.0097, 0, 0...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>",...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0025, 0.0008, 0, 0.66, 0.0172, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0106, 0.0101, 0, 0...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>",...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0025, 0.0008, 0, 0.66, 0.0169, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0105, 0.01, 0, 0.6...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>",...
import re __author__ = 'YeeHin Kwok' """ MicroCompiler <program> ::= program <id>; declare declareList; { StmtList} <declareList> ::= varDeclare {, varDeclare}; <varDeclare> ::= idsym [ = number | "[" number "]" <stmt> ::= variable( = expression | parameter) | <printStmt...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0025, 0.0008, 0, 0.66, 0.0164, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0169, 0.0228, 0, 0...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" MicroCompiler \n\n<program> ::= program <id>; declare declareList; { StmtList}\n<declareList> ::= varDeclare {, varDeclare};\n<varDeclare> ::= idsym [ = number | \"[\" number \"]\" \n\n<stmt> ::= variable( = expression | parameter) ...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
[ [ 1, 0, 0.0009, 0.0009, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0026, 0.0009, 0, 0.66, 0.02, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.011, 0.0106, 0, 0.66...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>",...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <varDeclare > <stmtlist> } <varDeclare> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <exp...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0024, 0.0008, 0, 0.66, 0.0154, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0101, 0.0097, 0, 0...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <varDeclare > <stmtlist> }\n<varDeclare> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id...
import re __author__ = 'YeeHin Kwok' """ MicroCompiler <program> ::= program <id>; declare declareList; { StmtList} <declareList> ::= varDeclare {, varDeclare}; <varDeclare> ::= idsym [ = number | "[" number "]" <stmt> ::= variable( = expression | parameter) | <printStmt...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0025, 0.0008, 0, 0.66, 0.0164, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0169, 0.0228, 0, 0...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" MicroCompiler \n\n<program> ::= program <id>; declare declareList; { StmtList}\n<declareList> ::= varDeclare {, varDeclare};\n<varDeclare> ::= idsym [ = number | \"[\" number \"]\" \n\n<stmt> ::= variable( = expression | parameter) ...
import re __author__ = 'YeeHin Kwok' """ MicroCompiler <program> ::= program <id>; declare declareList; { StmtList} <declareList> ::= varDeclare {, varDeclare}; <varDeclare> ::= idsym [ = number | "[" number "]" <stmt> ::= variable( = expression | parameter) | <printStmt...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0024, 0.0008, 0, 0.66, 0.0164, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0163, 0.022, 0, 0....
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" MicroCompiler \n\n<program> ::= program <id>; declare declareList; { StmtList}\n<declareList> ::= varDeclare {, varDeclare};\n<varDeclare> ::= idsym [ = number | \"[\" number \"]\" \n\n<stmt> ::= variable( = expression | parameter) ...
''' Created on Jun 16, 2014 @author: Brian ''' #filename:Lexer.py import sys flag=0 keyword=[] keyword.extend(['program','var','begin','end','integer','if','then', 'else','while','do','read','write','procedure','function']) simpleword='+-*/,;()[]' doubleword='><=!:' filename=raw_input('Please input the so...
[ [ 8, 0, 0.039, 0.0649, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0909, 0.013, 0, 0.66, 0.0667, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.1039, 0.013, 0, 0.66, ...
[ "'''\nCreated on Jun 16, 2014\n\n@author: Brian\n'''", "import sys", "flag=0", "keyword=[]", "keyword.extend(['program','var','begin','end','integer','if','then',\n'else','while','do','read','write','procedure','function'])", "simpleword='+-*/,;()[]'", "doubleword='><=!:'", "filename=raw_input('Please...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0193, 0.0273, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0364, 0.0023, 0, 0.66, 0.0294, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.0545, 0.0114, 0, 0.6...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "tokenNames =\\\n [ \"unkno...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0122, 0.0173, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.023, 0.0014, 0, 0.66, 0.0233, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0245, 0.0014, 0, 0.66,...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0139, 0.0196, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0261, 0.0016, 0, 0.66, 0.0208, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0277, 0.0016, 0, 0.66...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0144, 0.0203, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.027, 0.0017, 0, 0.66, 0.0213, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0287, 0.0017, 0, 0.66,...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0115, 0.0163, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0217, 0.0014, 0, 0.66, 0.0233, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0231, 0.0014, 0, 0.66...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0152, 0.0215, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0286, 0.0018, 0, 0.66, 0.0263, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0304, 0.0018, 0, 0.66...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
[ [ 8, 0, 0.0045, 0.0075, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0202, 0.018, 0, 0.66, 0.0233, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0314, 0.0015, 0, 0.66, ...
[ "'''\nCreated on Jun 23, 2014\n\n@author: Brian\n'''", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> ...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0142, 0.0201, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0268, 0.0017, 0, 0.66, 0.0208, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0285, 0.0017, 0, 0.66...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0144, 0.0204, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0272, 0.0017, 0, 0.66, 0.027, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0289, 0.0017, 0, 0.66,...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0139, 0.0196, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0261, 0.0016, 0, 0.66, 0.0213, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0278, 0.0016, 0, 0.66...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0147, 0.0208, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0277, 0.0017, 0, 0.66, 0.0238, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0294, 0.0017, 0, 0.66...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.014, 0.0198, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0264, 0.0017, 0, 0.66, 0.0213, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0281, 0.0017, 0, 0.66,...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0132, 0.0186, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0248, 0.0016, 0, 0.66, 0.0238, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0264, 0.0016, 0, 0.66...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
[ [ 8, 0, 0.0115, 0.0163, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0217, 0.0014, 0, 0.66, 0.0233, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0231, 0.0014, 0, 0.66...
[ "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> = <expr>", "import sys", "import shlex", "tokenName...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
[ [ 8, 0, 0.0032, 0.0053, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0144, 0.0128, 0, 0.66, 0.0179, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0224, 0.0011, 0, 0.66, ...
[ "'''\nCreated on Jun 23, 2014\n\n@author: Brian\n'''", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> ...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
[ [ 8, 0, 0.0032, 0.0054, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0145, 0.0129, 0, 0.66, 0.0182, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0225, 0.0011, 0, 0.66, ...
[ "'''\nCreated on Jun 23, 2014\n\n@author: Brian\n'''", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> ...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
[ [ 8, 0, 0.0033, 0.0056, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0151, 0.0134, 0, 0.66, 0.0182, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0234, 0.0011, 0, 0.66, ...
[ "'''\nCreated on Jun 23, 2014\n\n@author: Brian\n'''", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> ...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
[ [ 8, 0, 0.0032, 0.0053, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0143, 0.0127, 0, 0.66, 0.0185, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0222, 0.0011, 0, 0.66, ...
[ "'''\nCreated on Jun 23, 2014\n\n@author: Brian\n'''", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> ...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
[ [ 8, 0, 0.0032, 0.0053, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0143, 0.0127, 0, 0.66, 0.0182, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0222, 0.0011, 0, 0.66, ...
[ "'''\nCreated on Jun 23, 2014\n\n@author: Brian\n'''", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <vars > <stmtlist> }\n<vars> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id> ...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <varDeclare > <stmtlist> } <varDeclare> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <exp...
[ [ 1, 0, 0.0008, 0.0008, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0025, 0.0008, 0, 0.66, 0.0156, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.0103, 0.0099, 0, 0...
[ "import re", "__author__ = 'YeeHin Kwok'", "\"\"\" Giovanni's MicroCompiler Demo\n\n<program> ::= { <id> ; <varDeclare > <stmtlist> }\n<varDeclare> ::= V { <id> ; } % DECLARATIONS\n\n<stmtlist> ::= <stmt> { ; <stmt> }\n<stmt> ::= P <id> | <id...
import math def sieve_of_atkin(limit): results = [2, 3, 5] sieve = [False]*(limit+1) factor = int(math.sqrt(limit))+1 for i in range(1, factor): for j in range(1, factor): n = 4*i**2+j**2 if (n <= limit) and (n % 12 == 1 or n % 12 == 5): sieve...
[ [ 1, 0, 0.037, 0.037, 0, 0.66, 0, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 2, 0, 0.5741, 0.8889, 0, 0.66, 1, 196, 0, 1, 1, 0, 0, 0, 8 ], [ 14, 1, 0.1852, 0.037, 1, 0.25, ...
[ "import math", "def sieve_of_atkin(limit):\n results = [2, 3, 5]\n sieve = [False]*(limit+1)\n factor = int(math.sqrt(limit))+1\n for i in range(1, factor):\n for j in range(1, factor):\n n = 4*i**2+j**2\n if (n <= limit) and (n % 12 == 1 or n % 12 == 5):", " results ...
import struct import Atkin import random from array import array class MyException (Exception): pass #m = 11*19 # large primes should be used #xi = 0 ''' def eratosthenes(n): multiples = [] primes1 = [] for i in range(2, n+1): if i not in multiples: primes1.append...
[ [ 1, 0, 0.0103, 0.0103, 0, 0.66, 0, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 1, 0, 0.0206, 0.0103, 0, 0.66, 0.0625, 690, 0, 1, 0, 0, 690, 0, 0 ], [ 1, 0, 0.0309, 0.0103, 0, ...
[ "import struct", "import Atkin", "import random", "from array import array", "class MyException (Exception): pass", "'''\n\ndef eratosthenes(n):\n multiples = []\n primes1 = []\n for i in range(2, n+1):\n if i not in multiples:", "'''\nprimes = Atkin.sieve_of_atkin(10000)\n\n\ndef get_pr...
import math """" int CACHE = 30000; // размер кэша int M = (int)Math.sqrt(N)+1; int primes = new int[P]; // массив простых чисел до корня из N boolean segment = new boolean[CACHE]; // вторичное решето for (int I=M-1; I < N; I+=CACHE) { Arrays.fill(segment, true); for (int i= 0; i < P; i++) {...
[ [ 1, 0, 0.0145, 0.0145, 0, 0.66, 0, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 8, 0, 0.1884, 0.3043, 0, 0.66, 0.1111, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 0, 0.587, 0.4638, 0, 0.66,...
[ "import math", "\"\"\"\"\nint CACHE = 30000; // размер кэша\nint M = (int)Math.sqrt(N)+1;\n\nint primes = new int[P]; // массив простых чисел до корня из N\nboolean segment = new boolean[CACHE]; // вторичное решето\nfor (int I=M-1; I < N; I+=CACHE) {\n Arrays.fill(segment, true);", "def sieveOfErat(end):...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
[ [ 1, 0, 0.3514, 0.0135, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3649, 0.0135, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3784, 0.0135, 0, ...
[ "import os", "import re", "import tempfile", "import shutil", "ignore_pattern = re.compile('^(.svn|target|bin|classes)')", "java_pattern = re.compile('^.*\\.java')", "annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')", "def process_dir(dir):\n files = os.listdir(dir)\n for...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
[ [ 1, 0, 0.0588, 0.0118, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0706, 0.0118, 0, 0.66, 0.125, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0824, 0.0118, 0, 0...
[ "import logging", "import shutil", "import sys", "import urlparse", "import SimpleHTTPServer", "import BaseHTTPServer", "class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):\n \"\"\"Handle playfoursquare.com requests, for testing.\"\"\"\n\n def do_GET(self):\n logging.warn('do_GET: %s, %s',...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
[ [ 1, 0, 0.1111, 0.037, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1481, 0.037, 0, 0.66, 0.1429, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1852, 0.037, 0, 0.6...
[ "import os", "import subprocess", "import sys", "BASEDIR = '../main/src/com/joelapenna/foursquare'", "TYPESDIR = '../captures/types/v1'", "captures = sys.argv[1:]", "if not captures:\n captures = os.listdir(TYPESDIR)", " captures = os.listdir(TYPESDIR)", "for f in captures:\n basename = f.split('...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
[ [ 8, 0, 0.0631, 0.0991, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1261, 0.009, 0, 0.66, 0.05, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.1351, 0.009, 0, 0.66, 0....
[ "\"\"\"\nPull a oAuth protected page from foursquare.\n\nExpects ~/.oget to contain (one on each line):\nCONSUMER_KEY\nCONSUMER_KEY_SECRET\nUSERNAME\nPASSWORD", "import httplib", "import os", "import re", "import sys", "import urllib", "import urllib2", "import urlparse", "import user", "from xml....
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
[ [ 1, 0, 0.0201, 0.0067, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0268, 0.0067, 0, 0.66, 0.0769, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0336, 0.0067, 0, ...
[ "import datetime", "import sys", "import textwrap", "import common", "from xml.dom import pulldom", "PARSER = \"\"\"\\\n/**\n * Copyright 2009 Joe LaPenna\n */\n\npackage com.joelapenna.foursquare.parsers;\n\nimport com.joelapenna.foursquare.Foursquare;", "BOOLEAN_STANZA = \"\"\"\\\n } else i...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
[ [ 1, 0, 0.0263, 0.0088, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0439, 0.0088, 0, 0.66, 0.0833, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.0526, 0.0088, 0, ...
[ "import logging", "from xml.dom import minidom", "from xml.dom import pulldom", "BOOLEAN = \"boolean\"", "STRING = \"String\"", "GROUP = \"Group\"", "DEFAULT_INTERFACES = ['FoursquareType']", "INTERFACES = {\n}", "DEFAULT_CLASS_IMPORTS = [\n]", "CLASS_IMPORTS = {\n# 'Checkin': DEFAULT_CLASS_IMP...
#!/usr/bin/python import cgi import cgitb cgitb.enable() import os print "Content-Type: text/html\n" print "<html>" print "<head><title>Quad 20 in CGI" print "</title></head>" print "<body>" for e in range(1,21): print str(e*e)+'</br>' print "</body></html>"
[ [ 1, 0, 0.2143, 0.0714, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2857, 0.0714, 0, 0.66, 0.1, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.3571, 0.0714, 0, 0.6...
[ "import cgi", "import cgitb", "cgitb.enable()", "import os", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head><title>Quad 20 in CGI\")", "print(\"</title></head>\")", "print(\"<body>\")", "for e in range(1,21):\n\tprint(str(e*e)+'</br>')", "\tprint(str(e*e)+'</br>')",...
#!/usr/bin/python print "Content-Type: text/html\n" import os, random, cgi, cgitb cgitb.enable() i = 0 c=0 richtig = 0 erg = 0 a= random.randint(1,11) b= random.randint(1,11) form = cgi.FieldStorage() if "i" in form: i = int(form["i"].value) if "erg" in form: erg = int(form["erg"].value) if "c" in form: c = int(form["...
[ [ 8, 0, 0.0652, 0.0217, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.087, 0.0217, 0, 0.66, 0.0455, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 8, 0, 0.1087, 0.0217, 0, 0.6...
[ "print(\"Content-Type: text/html\\n\")", "import os, random, cgi, cgitb", "cgitb.enable()", "i = 0", "c=0", "richtig = 0", "erg = 0", "a= random.randint(1,11)", "b= random.randint(1,11)", "form = cgi.FieldStorage()", "if \"i\" in form: i = int(form[\"i\"].value)", "if \"i\" in form: i = int(fo...
#!/usr/bin/python print "Content-Type: text/html\n" import os l = os.environ["HTTP_ACCEPT_LANGUAGE"].split(";") if "en" in l[0]: print "Hello World" else: print "Hallo Welt"
[ [ 8, 0, 0.25, 0.0833, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.4167, 0.0833, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.5833, 0.0833, 0, 0.6...
[ "print(\"Content-Type: text/html\\n\")", "import os", "l = os.environ[\"HTTP_ACCEPT_LANGUAGE\"].split(\";\")", "if \"en\" in l[0]:\n\tprint(\"Hello World\")\nelse:\n\tprint(\"Hallo Welt\")", "\tprint(\"Hello World\")", "\tprint(\"Hallo Welt\")" ]
#!/usr/bin/python print "Content-Type: text/html\n" import os, random, cgi, cgitb cgitb.enable() i = 0 c=0 richtig = 0 erg = 0 a= random.randint(1,11) b= random.randint(1,11) form = cgi.FieldStorage() if "i" in form: i = int(form["i"].value) if "erg" in form: erg = int(form["erg"].value) if "c" in form: c = int(form["...
[ [ 8, 0, 0.0652, 0.0217, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.087, 0.0217, 0, 0.66, 0.0455, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 8, 0, 0.1087, 0.0217, 0, 0.6...
[ "print(\"Content-Type: text/html\\n\")", "import os, random, cgi, cgitb", "cgitb.enable()", "i = 0", "c=0", "richtig = 0", "erg = 0", "a= random.randint(1,11)", "b= random.randint(1,11)", "form = cgi.FieldStorage()", "if \"i\" in form: i = int(form[\"i\"].value)", "if \"i\" in form: i = int(fo...
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import os form = cgi.FieldStorage() n = 20 if "n" in form: n = form["n"].value print "<html>" print "<head><title>n Quadratzahlen" print "</title></head>" print "<body>" for e in range(1,int(n)+1): print str(e*e)+'</br>' pri...
[ [ 8, 0, 0.1, 0.05, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.15, 0.05, 0, 0.66, 0.0769, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2, 0.05, 0, 0.66, 0.1538...
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "cgitb.enable()", "import os", "form = cgi.FieldStorage()", "n = 20", "if \"n\" in form: n = form[\"n\"].value", "if \"n\" in form: n = form[\"n\"].value", "print(\"<html>\")", "print(\"<head><title>n Quadratzahlen\")", "pr...
#!/usr/bin/python print "Content-Type: text/html\n" import os, sys, random directory = "/usr/share/games/fortunes/" l = os.listdir(directory) b = [] for e in l: if ".u8" not in e and ".dat" not in e and "de" not in e: b.append(e) s = "" for e in b: f = open(directory+e) s+=f.read() f.close() ...
[ [ 8, 0, 0.0625, 0.0208, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.1042, 0.0208, 0, 0.66, 0.0625, 688, 0, 3, 0, 0, 688, 0, 0 ], [ 14, 0, 0.125, 0.0208, 0, 0....
[ "print(\"Content-Type: text/html\\n\")", "import os, sys, random", "directory = \"/usr/share/games/fortunes/\"", "l = os.listdir(directory)", "b = []", "for e in l:\n if \".u8\" not in e and \".dat\" not in e and \"de\" not in e:\n b.append(e)", " if \".u8\" not in e and \".dat\" not in e a...
#!/usr/bin/python print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo CGI-Python" print "</title></head>" print "<body>" print "Hello CGI Python" print "</body></html>"
[ [ 8, 0, 0.2222, 0.1111, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.4444, 0.1111, 0, 0.66, 0.1667, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.5556, 0.1111, 0, 0.66...
[ "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head><title>Hallo CGI-Python\")", "print(\"</title></head>\")", "print(\"<body>\")", "print(\"Hello CGI Python\")", "print(\"</body></html>\")" ]
#!/usr/bin/python import cgi import cgitb cgitb.enable() import os print "Content-Type: text/html\n" print "<html>" print "<head><title>Quad 20 in CGI" print "</title></head>" print "<body>" for e in range(1,21): print str(e*e)+'</br>' print "</body></html>"
[ [ 1, 0, 0.2143, 0.0714, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2857, 0.0714, 0, 0.66, 0.1, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.3571, 0.0714, 0, 0.6...
[ "import cgi", "import cgitb", "cgitb.enable()", "import os", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head><title>Quad 20 in CGI\")", "print(\"</title></head>\")", "print(\"<body>\")", "for e in range(1,21):\n\tprint(str(e*e)+'</br>')", "\tprint(str(e*e)+'</br>')",...
#!/usr/bin/python print "Content-Type: text/html\n" print "Hallo CGI-Welt"
[ [ 8, 0, 0.5, 0.25, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 1, 0.25, 0, 0.66, 1, 535, 3, 1, 0, 0, 0, 0, 1 ] ]
[ "print(\"Content-Type: text/html\\n\")", "print(\"Hallo CGI-Welt\")" ]
#!/usr/bin/python print "Content-Type: text/html\n" import os l = os.environ["HTTP_ACCEPT_LANGUAGE"].split(";") if "en" in l[0]: print "Hello World" else: print "Hallo Welt"
[ [ 8, 0, 0.25, 0.0833, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.4167, 0.0833, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.5833, 0.0833, 0, 0.6...
[ "print(\"Content-Type: text/html\\n\")", "import os", "l = os.environ[\"HTTP_ACCEPT_LANGUAGE\"].split(\";\")", "if \"en\" in l[0]:\n\tprint(\"Hello World\")\nelse:\n\tprint(\"Hallo Welt\")", "\tprint(\"Hello World\")", "\tprint(\"Hallo Welt\")" ]
#!/usr/bin/python print "Content-Type: text/html\n" import os for key in os.environ: print key, "=" print os.environ[key], "<br />" if os.environ.has_key("QUERY_STRING"): print os.environ["QUERY_STRING"]
[ [ 8, 0, 0.25, 0.0833, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.4167, 0.0833, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 6, 0, 0.6667, 0.25, 0, 0.66, ...
[ "print(\"Content-Type: text/html\\n\")", "import os", "for key in os.environ:\n\tprint(key, \"=\")\n\tprint(os.environ[key], \"<br />\")", "\tprint(key, \"=\")", "\tprint(os.environ[key], \"<br />\")", "if os.environ.has_key(\"QUERY_STRING\"):\n\tprint(os.environ[\"QUERY_STRING\"])", "\tprint(os.environ...
#!/usr/bin/python print "Content-Type: text/html\n" import os for key in os.environ: print key, "=" print os.environ[key], "<br />" if os.environ.has_key("QUERY_STRING"): print os.environ["QUERY_STRING"]
[ [ 8, 0, 0.25, 0.0833, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.4167, 0.0833, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 6, 0, 0.6667, 0.25, 0, 0.66, ...
[ "print(\"Content-Type: text/html\\n\")", "import os", "for key in os.environ:\n\tprint(key, \"=\")\n\tprint(os.environ[key], \"<br />\")", "\tprint(key, \"=\")", "\tprint(os.environ[key], \"<br />\")", "if os.environ.has_key(\"QUERY_STRING\"):\n\tprint(os.environ[\"QUERY_STRING\"])", "\tprint(os.environ...
#!/usr/bin/python print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo CGI-Python" print "</title></head>" print "<body>" print "Hello CGI Python" print "</body></html>"
[ [ 8, 0, 0.2222, 0.1111, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.4444, 0.1111, 0, 0.66, 0.1667, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.5556, 0.1111, 0, 0.66...
[ "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head><title>Hallo CGI-Python\")", "print(\"</title></head>\")", "print(\"<body>\")", "print(\"Hello CGI Python\")", "print(\"</body></html>\")" ]
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import os form = cgi.FieldStorage() n = 20 if "n" in form: n = form["n"].value print "<html>" print "<head><title>n Quadratzahlen" print "</title></head>" print "<body>" for e in range(1,int(n)+1): print str(e*e)+'</br>' pri...
[ [ 8, 0, 0.1, 0.05, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.15, 0.05, 0, 0.66, 0.0769, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2, 0.05, 0, 0.66, 0.1538...
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "cgitb.enable()", "import os", "form = cgi.FieldStorage()", "n = 20", "if \"n\" in form: n = form[\"n\"].value", "if \"n\" in form: n = form[\"n\"].value", "print(\"<html>\")", "print(\"<head><title>n Quadratzahlen\")", "pr...
#!/usr/bin/python print "Content-Type: text/html\n" print "Hallo CGI-Welt"
[ [ 8, 0, 0.5, 0.25, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 1, 0.25, 0, 0.66, 1, 535, 3, 1, 0, 0, 0, 0, 1 ] ]
[ "print(\"Content-Type: text/html\\n\")", "print(\"Hallo CGI-Welt\")" ]
#!/usr/bin/python print "Content-Type: text/html\n" import os, sys, random directory = "/usr/share/games/fortunes/" l = os.listdir(directory) b = [] for e in l: if ".u8" not in e and ".dat" not in e and "de" not in e: b.append(e) s = "" for e in b: f = open(directory+e) s+=f.read() f.close() ...
[ [ 8, 0, 0.0625, 0.0208, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.1042, 0.0208, 0, 0.66, 0.0625, 688, 0, 3, 0, 0, 688, 0, 0 ], [ 14, 0, 0.125, 0.0208, 0, 0....
[ "print(\"Content-Type: text/html\\n\")", "import os, sys, random", "directory = \"/usr/share/games/fortunes/\"", "l = os.listdir(directory)", "b = []", "for e in l:\n if \".u8\" not in e and \".dat\" not in e and \"de\" not in e:\n b.append(e)", " if \".u8\" not in e and \".dat\" not in e a...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" for a in range(1,21): print str(a**2)+'<br/>' print "</body>" print "</html>"
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2353, 0.0588, 0, 0.66, 0.125, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.2941, 0.0588, 0, 0...
[ "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<body>\")", "for a in range(1,21):\n print(str(a**2)+'<br/>')", " print(str(a**2)+'<br/>')", "print(\"</body>\")", "print(\"</html>\")" ]
#!/usr/bin/python import cgi import cgitb import random cgitb.enable() form = cgi.FieldStorage() x = random.randint(1, 10) y = random.randint(1, 10) z = 0 erg = 0 right = 0 if form.has_key("Zaehler"): z = z + int(form["Zaehler"].value) z=z+1 if z < 4 : erg = x + y o = '+' else : erg = x * y o...
[ [ 1, 0, 0.0508, 0.0169, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0678, 0.0169, 0, 0.66, 0.0476, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 1, 0, 0.0847, 0.0169, 0, ...
[ "import cgi", "import cgitb", "import random", "cgitb.enable()", "form = cgi.FieldStorage()", "x = random.randint(1, 10)", "y = random.randint(1, 10)", "z = 0", "erg = 0", "right = 0", "if form.has_key(\"Zaehler\"):\n z = z + int(form[\"Zaehler\"].value)", " z = z + int(form[\"Zaehler\"]...
#!/usr/bin/python import os print "Content-Type: text/html\n" for key in os.environ: print key, "=" print os.environ[key], "<br />"
[ [ 1, 0, 0.4286, 0.1429, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 8, 0, 0.5714, 0.1429, 0, 0.66, 0.5, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 6, 0, 0.8571, 0.4286, 0, 0.66,...
[ "import os", "print(\"Content-Type: text/html\\n\")", "for key in os.environ:\n print(key, \"=\")\n print(os.environ[key], \"<br />\")", " print(key, \"=\")", " print(os.environ[key], \"<br />\")" ]
#!/usr/bin/python import os import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo Tim</title></head>" print "<body>" if os.environ["HTTP_ACCEPT_LANGUAGE"][:2]=='en': print "Hello World!" else: print "Hallo Welt!" print "</body>" pri...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2222, 0.0556, 0, 0.66, 0.1, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2778, 0.0556, 0, 0.6...
[ "import os", "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head><title>Hallo Tim</title></head>\")", "print(\"<body>\")", "if os.environ[\"HTTP_ACCEPT_LANGUAGE\"][:2]=='en': \n print(\"Hello World!\")\nelse:...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" form = cgi.FieldStorage() if form.has_key("n"): n = form.getvalue("n") for a in range(1,int(n)+1): print str(a**2)+'<br/>' else: n = 21 for a in range(1,n): ...
[ [ 1, 0, 0.1071, 0.0357, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.1429, 0.0357, 0, 0.66, 0.1111, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.1786, 0.0357, 0, ...
[ "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<body>\")", "form = cgi.FieldStorage()", "if form.has_key(\"n\"):\n\n n = form.getvalue(\"n\")\n \n for a in range(1,int(n)+1):\n print(str(a**2)+'<br/>')\n\nelse:...
#!/usr/bin/python import cgi import cgitb import fortune cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" print "<head><title>Fortune</title></head>" form = cgi.FieldStorage() if form.has_key("m"): #m = form["m"].value //alternative m = form.getvalue("m") print fortune.ge...
[ [ 1, 0, 0.0938, 0.0312, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.125, 0.0312, 0, 0.66, 0.0625, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 1, 0, 0.1562, 0.0312, 0, 0...
[ "import cgi", "import cgitb", "import fortune", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<body>\")", "print(\"<head><title>Fortune</title></head>\")", "form = cgi.FieldStorage()", "if form.has_key(\"m\"):\n #m = form[\"m\"].value //alternative\n ...
#!/usr/bin/python import cgi import cgitb import random cgitb.enable() form = cgi.FieldStorage() x = random.randint(1, 10) y = random.randint(1, 10) z = 0 erg = 0 right = 0 if form.has_key("Zaehler"): z = z + int(form["Zaehler"].value) z=z+1 if z < 4 : erg = x + y o = '+' else : erg = x * y o...
[ [ 1, 0, 0.0508, 0.0169, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0678, 0.0169, 0, 0.66, 0.0476, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 1, 0, 0.0847, 0.0169, 0, ...
[ "import cgi", "import cgitb", "import random", "cgitb.enable()", "form = cgi.FieldStorage()", "x = random.randint(1, 10)", "y = random.randint(1, 10)", "z = 0", "erg = 0", "right = 0", "if form.has_key(\"Zaehler\"):\n z = z + int(form[\"Zaehler\"].value)", " z = z + int(form[\"Zaehler\"]...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" for a in range(1,21): print str(a**2)+'<br/>' print "</body>" print "</html>"
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2353, 0.0588, 0, 0.66, 0.125, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.2941, 0.0588, 0, 0...
[ "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<body>\")", "for a in range(1,21):\n print(str(a**2)+'<br/>')", " print(str(a**2)+'<br/>')", "print(\"</body>\")", "print(\"</html>\")" ]
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo Tim</title></head>" print "<body>" print "Hallo Welt!" print "</body>" print "</html>"
[ [ 1, 0, 0.2143, 0.0714, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2857, 0.0714, 0, 0.66, 0.1111, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.3571, 0.0714, 0, ...
[ "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head><title>Hallo Tim</title></head>\")", "print(\"<body>\")", "print(\"Hallo Welt!\")", "print(\"</body>\")", "print(\"</html>\")" ]
#!/usr/bin/python #-*-coding: utf-8-*- import os import sys import random import string def getRandomQuote(): files=os.listdir("/usr/share/games/fortune") files=[f for f in files if ".dat" not in f and ".u8" not in f] f=random.sample(files, 1) s=file("/usr/share/games/fortune/"+f[0]).read() quotes...
[ [ 1, 0, 0.0952, 0.0238, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.119, 0.0238, 0, 0.66, 0.1667, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1429, 0.0238, 0, 0...
[ "import os", "import sys", "import random", "import string", "def getRandomQuote():\n files=os.listdir(\"/usr/share/games/fortune\")\n files=[f for f in files if \".dat\" not in f and \".u8\" not in f]\n f=random.sample(files, 1)\n s=file(\"/usr/share/games/fortune/\"+f[0]).read()\n quotes=s....
#!/usr/bin/python import os import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo Tim</title></head>" print "<body>" if os.environ["HTTP_ACCEPT_LANGUAGE"][:2]=='en': print "Hello World!" else: print "Hallo Welt!" print "</body>" pri...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2222, 0.0556, 0, 0.66, 0.1, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2778, 0.0556, 0, 0.6...
[ "import os", "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head><title>Hallo Tim</title></head>\")", "print(\"<body>\")", "if os.environ[\"HTTP_ACCEPT_LANGUAGE\"][:2]=='en': \n print(\"Hello World!\")\nelse:...
#!/usr/bin/python import os print "Content-Type: text/html\n" for key in os.environ: print key, "=" print os.environ[key], "<br />"
[ [ 1, 0, 0.4286, 0.1429, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 8, 0, 0.5714, 0.1429, 0, 0.66, 0.5, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 6, 0, 0.8571, 0.4286, 0, 0.66,...
[ "import os", "print(\"Content-Type: text/html\\n\")", "for key in os.environ:\n print(key, \"=\")\n print(os.environ[key], \"<br />\")", " print(key, \"=\")", " print(os.environ[key], \"<br />\")" ]
#!/usr/bin/python #-*-coding: utf-8-*- import os import sys import random import string def getRandomQuote(): files=os.listdir("/usr/share/games/fortune") files=[f for f in files if ".dat" not in f and ".u8" not in f] f=random.sample(files, 1) s=file("/usr/share/games/fortune/"+f[0]).read() quotes...
[ [ 1, 0, 0.0952, 0.0238, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.119, 0.0238, 0, 0.66, 0.1667, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1429, 0.0238, 0, 0...
[ "import os", "import sys", "import random", "import string", "def getRandomQuote():\n files=os.listdir(\"/usr/share/games/fortune\")\n files=[f for f in files if \".dat\" not in f and \".u8\" not in f]\n f=random.sample(files, 1)\n s=file(\"/usr/share/games/fortune/\"+f[0]).read()\n quotes=s....
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" form = cgi.FieldStorage() if form.has_key("n"): n = form.getvalue("n") for a in range(1,int(n)+1): print str(a**2)+'<br/>' else: n = 21 for a in range(1,n): ...
[ [ 1, 0, 0.1071, 0.0357, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.1429, 0.0357, 0, 0.66, 0.1111, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.1786, 0.0357, 0, ...
[ "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<body>\")", "form = cgi.FieldStorage()", "if form.has_key(\"n\"):\n\n n = form.getvalue(\"n\")\n \n for a in range(1,int(n)+1):\n print(str(a**2)+'<br/>')\n\nelse:...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo Tim</title></head>" print "<body>" print "Hallo Welt!" print "</body>" print "</html>"
[ [ 1, 0, 0.2143, 0.0714, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2857, 0.0714, 0, 0.66, 0.1111, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.3571, 0.0714, 0, ...
[ "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head><title>Hallo Tim</title></head>\")", "print(\"<body>\")", "print(\"Hallo Welt!\")", "print(\"</body>\")", "print(\"</html>\")" ]
#!/usr/bin/python import cgi import cgitb import fortune cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" print "<head><title>Fortune</title></head>" form = cgi.FieldStorage() if form.has_key("m"): #m = form["m"].value //alternative m = form.getvalue("m") print fortune.ge...
[ [ 1, 0, 0.0938, 0.0312, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.125, 0.0312, 0, 0.66, 0.0625, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 1, 0, 0.1562, 0.0312, 0, 0...
[ "import cgi", "import cgitb", "import fortune", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<body>\")", "print(\"<head><title>Fortune</title></head>\")", "form = cgi.FieldStorage()", "if form.has_key(\"m\"):\n #m = form[\"m\"].value //alternative\n ...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head>" print "<title> ptreb quad cgi </title>" print "</head>" print "<body>" print [x**2 for x in range(1,21)] print "</body>" print "</html>"
[ [ 1, 0, 0.1875, 0.0625, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.25, 0.0625, 0, 0.66, 0.0909, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.3125, 0.0625, 0, 0....
[ "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head>\")", "print(\"<title> ptreb quad cgi </title>\")", "print(\"</head>\")", "print(\"<body>\")", "print([x**2 for x in range(1,21)])", "print(\"</body>\")", "print(\"</htm...
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import os template = "<html><head><title>%s</title></head><body>%s</body></html>" title = "Mein Titel" content = "<h2>Hallo international</h2>" dic = {"de":"hallo welt", "en":"hello World"} mylan = "de" lan = os.environ["HTTP_...
[ [ 8, 0, 0.0909, 0.0455, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.1818, 0.0455, 0, 0.66, 0.0833, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2273, 0.0455, 0, 0....
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "cgitb.enable()", "import os", "template = \"<html><head><title>%s</title></head><body>%s</body></html>\"", "title = \"Mein Titel\"", "content = \"<h2>Hallo international</h2>\"", "dic = {\"de\":\"hallo welt\", \"en\":\"hello Wor...
#!/usr/bin/python #-*- coding: utf-8 -*- # print erzeugt einen zeilunumbruch automatisch print "Content-Type: text/html\n" # wichtig cgi module importieren # import ohne .py wenn im selben ordner # fortune.methode zum benutzen einer funktion import fortune import cgi import cgitb cgitb.enable() #main, war in fortun...
[ [ 8, 0, 0.0694, 0.0139, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.1389, 0.0139, 0, 0.66, 0.0476, 638, 0, 1, 0, 0, 638, 0, 0 ], [ 1, 0, 0.1528, 0.0139, 0, 0....
[ "print(\"Content-Type: text/html\\n\")", "import fortune", "import cgi", "import cgitb", "cgitb.enable()", "f1 = './fortunes/fortunes'", "f2 = './fortunes/riddles'", "f3 = './fortunes/literature'", "dump = './dump.txt'", "lall = []", "source = list((f1,f2,f3)) # liste mit quelldateien", "fort...
#!/usr/bin/python print "Content-Type: text/html\n" print "<html>" print "<head>" print "<title> ptreb hallo cgi </title>" print "</head>" print "<body>" print "Hello CGI Python " print "</body>" print "</html>"
[ [ 8, 0, 0.25, 0.0833, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.4167, 0.0833, 0, 0.66, 0.125, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.5, 0.0833, 0, 0.66, ...
[ "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head>\")", "print(\"<title> ptreb hallo cgi </title>\")", "print(\"</head>\")", "print(\"<body>\")", "print(\"Hello CGI Python \")", "print(\"</body>\")", "print(\"</html>\")" ]
#!/usr/bin/python #-*- coding: utf-8 -*- print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import random form = cgi.FieldStorage() #zustaende auslesen # variablen initialisieren # aus fieldStorage komme nur strings => immer casten title = "CGI Rechner" runde = int(form["runde"].value) +1 if ...
[ [ 8, 0, 0.0455, 0.0114, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0682, 0.0114, 0, 0.66, 0.0455, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0795, 0.0114, 0, 0....
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "cgitb.enable()", "import random", "form = cgi.FieldStorage()", "title = \"CGI Rechner\"", "runde = int(form[\"runde\"].value) +1 if \"runde\" in form else 0 # vorverarbeitung hier machen", "prevresult = int(form[\"prevresult\"]....
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb import os cgitb.enable() print "<html>" print "<head>" print "<title> ptreb quadn cgi </title>" print "</head>" print "<body>" form = cgi.FieldStorage() # inhalt query string n = 20 if "n" in form: n = int(form["n"].value) print [z**2 f...
[ [ 8, 0, 0.0833, 0.0417, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.125, 0.0417, 0, 0.66, 0.0625, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.1667, 0.0417, 0, 0.6...
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "import os", "cgitb.enable()", "print(\"<html>\")", "print(\"<head>\")", "print(\"<title> ptreb quadn cgi </title>\")", "print(\"</head>\")", "print(\"<body>\")", "form = cgi.FieldStorage() # inhalt query string", "n = 20",...
#!/usr/bin/python #-*- coding: utf-8 -*- # alles in einem nicht modul ausgelagert print "Content-Type: text/html\n" # wichtig cgi module importieren import cgi import cgitb cgitb.enable() import os import random import string import sys def getString(source): """Gibt einen grossen String zurueck und erwartet ei...
[ [ 8, 0, 0.0495, 0.0099, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0792, 0.0099, 0, 0.66, 0.037, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0891, 0.0099, 0, 0.6...
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "cgitb.enable()", "import os", "import random", "import string", "import sys", "def getString(source):\n \"\"\"Gibt einen grossen String zurueck und erwartet eine Liste von\n Dateinamen.\n \"\"\"\n collection = ''\n ...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head>" print "<title> ptreb quad cgi </title>" print "</head>" print "<body>" print [x**2 for x in range(1,21)] print "</body>" print "</html>"
[ [ 1, 0, 0.1875, 0.0625, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.25, 0.0625, 0, 0.66, 0.0909, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.3125, 0.0625, 0, 0....
[ "import cgi", "import cgitb", "cgitb.enable()", "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head>\")", "print(\"<title> ptreb quad cgi </title>\")", "print(\"</head>\")", "print(\"<body>\")", "print([x**2 for x in range(1,21)])", "print(\"</body>\")", "print(\"</htm...
#!/usr/bin/python #-*- coding: utf-8 -*- # modul das nur die logik funktionen enthaelt, webanwendung und darstellung in # cgi script import os import random import string import sys def getString(source): """Gibt einen grossen String zurueck und erwartet eine Liste von Dateinamen. """ collection = ''...
[ [ 1, 0, 0.15, 0.025, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.175, 0.025, 0, 0.66, 0.1667, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.2, 0.025, 0, 0.66, ...
[ "import os", "import random", "import string", "import sys", "def getString(source):\n \"\"\"Gibt einen grossen String zurueck und erwartet eine Liste von\n Dateinamen.\n \"\"\"\n collection = ''\n for f in source:\n file_obj = file(f, 'r') # dateiobjekt\n collection += '\\n%\\n...
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import os template = "<html><head><title>%s</title></head><body>%s</body></html>" title = "Mein Titel" content = "<h2>Hallo international</h2>" dic = {"de":"hallo welt", "en":"hello World"} mylan = "de" lan = os.environ["HTTP_...
[ [ 8, 0, 0.0909, 0.0455, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.1818, 0.0455, 0, 0.66, 0.0833, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2273, 0.0455, 0, 0....
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "cgitb.enable()", "import os", "template = \"<html><head><title>%s</title></head><body>%s</body></html>\"", "title = \"Mein Titel\"", "content = \"<h2>Hallo international</h2>\"", "dic = {\"de\":\"hallo welt\", \"en\":\"hello Wor...
#!/usr/bin/python #-*- coding: utf-8 -*- # modul das nur die logik funktionen enthaelt, webanwendung und darstellung in # cgi script import os import random import string import sys def getString(source): """Gibt einen grossen String zurueck und erwartet eine Liste von Dateinamen. """ collection = ''...
[ [ 1, 0, 0.15, 0.025, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.175, 0.025, 0, 0.66, 0.1667, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.2, 0.025, 0, 0.66, ...
[ "import os", "import random", "import string", "import sys", "def getString(source):\n \"\"\"Gibt einen grossen String zurueck und erwartet eine Liste von\n Dateinamen.\n \"\"\"\n collection = ''\n for f in source:\n file_obj = file(f, 'r') # dateiobjekt\n collection += '\\n%\\n...
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb import os cgitb.enable() print "<html>" print "<head>" print "<title> ptreb quadn cgi </title>" print "</head>" print "<body>" form = cgi.FieldStorage() # inhalt query string n = 20 if "n" in form: n = int(form["n"].value) print [z**2 f...
[ [ 8, 0, 0.0833, 0.0417, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.125, 0.0417, 0, 0.66, 0.0625, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.1667, 0.0417, 0, 0.6...
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "import os", "cgitb.enable()", "print(\"<html>\")", "print(\"<head>\")", "print(\"<title> ptreb quadn cgi </title>\")", "print(\"</head>\")", "print(\"<body>\")", "form = cgi.FieldStorage() # inhalt query string", "n = 20",...
#!/usr/bin/python #-*- coding: utf-8 -*- # alles in einem nicht modul ausgelagert print "Content-Type: text/html\n" # wichtig cgi module importieren import cgi import cgitb cgitb.enable() import os import random import string import sys def getString(source): """Gibt einen grossen String zurueck und erwartet ei...
[ [ 8, 0, 0.0495, 0.0099, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0792, 0.0099, 0, 0.66, 0.037, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0891, 0.0099, 0, 0.6...
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "cgitb.enable()", "import os", "import random", "import string", "import sys", "def getString(source):\n \"\"\"Gibt einen grossen String zurueck und erwartet eine Liste von\n Dateinamen.\n \"\"\"\n collection = ''\n ...
#!/usr/bin/python #-*- coding: utf-8 -*- print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import random form = cgi.FieldStorage() #zustaende auslesen # variablen initialisieren # aus fieldStorage komme nur strings => immer casten title = "CGI Rechner" runde = int(form["runde"].value) +1 if ...
[ [ 8, 0, 0.0455, 0.0114, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0682, 0.0114, 0, 0.66, 0.0455, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0795, 0.0114, 0, 0....
[ "print(\"Content-Type: text/html\\n\")", "import cgi", "import cgitb", "cgitb.enable()", "import random", "form = cgi.FieldStorage()", "title = \"CGI Rechner\"", "runde = int(form[\"runde\"].value) +1 if \"runde\" in form else 0 # vorverarbeitung hier machen", "prevresult = int(form[\"prevresult\"]....
#!/usr/bin/python print "Content-Type: text/html\n" print "<html>" print "<head>" print "<title> ptreb hallo cgi </title>" print "</head>" print "<body>" print "Hello CGI Python " print "</body>" print "</html>"
[ [ 8, 0, 0.25, 0.0833, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.4167, 0.0833, 0, 0.66, 0.125, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.5, 0.0833, 0, 0.66, ...
[ "print(\"Content-Type: text/html\\n\")", "print(\"<html>\")", "print(\"<head>\")", "print(\"<title> ptreb hallo cgi </title>\")", "print(\"</head>\")", "print(\"<body>\")", "print(\"Hello CGI Python \")", "print(\"</body>\")", "print(\"</html>\")" ]
#!/usr/bin/python #-*- coding: utf-8 -*- # print erzeugt einen zeilunumbruch automatisch print "Content-Type: text/html\n" # wichtig cgi module importieren # import ohne .py wenn im selben ordner # fortune.methode zum benutzen einer funktion import fortune import cgi import cgitb cgitb.enable() #main, war in fortun...
[ [ 8, 0, 0.0694, 0.0139, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.1389, 0.0139, 0, 0.66, 0.0476, 638, 0, 1, 0, 0, 638, 0, 0 ], [ 1, 0, 0.1528, 0.0139, 0, 0....
[ "print(\"Content-Type: text/html\\n\")", "import fortune", "import cgi", "import cgitb", "cgitb.enable()", "f1 = './fortunes/fortunes'", "f2 = './fortunes/riddles'", "f3 = './fortunes/literature'", "dump = './dump.txt'", "lall = []", "source = list((f1,f2,f3)) # liste mit quelldateien", "fort...
#! /usr/bin/env python # -*- coding: utf-8 -*- # setup.py # Part of 21obuys, a package providing enumerated types for Python. # # Copyright © 2007 Ben Finney # This is free software; you may copy, modify and/or distribute this work # under the terms of the GNU General Public License, version 2 or later # or, at your ...
[ [ 1, 0, 0.22, 0.02, 0, 0.66, 0, 650, 0, 1, 0, 0, 650, 0, 0 ], [ 8, 0, 0.24, 0.02, 0, 0.66, 0.3333, 479, 3, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0.28, 0.02, 0, 0.66, 0.66...
[ "import ez_setup", "ez_setup.use_setuptools()", "from setuptools import setup, find_packages", "setup(\n name = \"bigo55\",\n version = '1.0',\n packages = find_packages('src'), # include all packages under src\n package_dir = {'':'src'}, # tell distutils packages are under src\n py_modules ...
""" 1. Generate ie6 module with win32/com/tools/readtlb.py from the ctypes package (I forget the details, but you can probably skip this and just use ie6_gen.py that comes with ctypes in the samples directory -- change the 'import ie6' below as appropriate.) 2. Generate a GUID and cut-n-paste it as Pyth...
[ [ 8, 0, 0.1068, 0.2051, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2222, 0.0085, 0, 0.66, 0.05, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2308, 0.0085, 0, 0.66, ...
[ "\"\"\"\n1. Generate ie6 module with win32/com/tools/readtlb.py from the ctypes\n package\n\n (I forget the details, but you can probably skip this and just use\n ie6_gen.py that comes with ctypes in the samples directory -- change\n the 'import ie6' below as appropriate.)", "import sys", "import _winreg", ...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from j360buy.j360_feature import J360buy_FEATURES_MAP__ import Image import re import time try: import psyco psyco.full() except ImportError: ...
[ [ 8, 0, 0.0972, 0.0972, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1667, 0.0139, 0, 0.66, 0.0909, 739, 0, 2, 0, 0, 739, 0, 0 ], [ 1, 0, 0.1806, 0.0139, 0, 0.66...
[ "'''\nCreated on 2011-7-26\n\n京东价格图片识别模块\n\n@author: zhongfeng\n'''", "import ImageFilter, ImageChops", "from captcha_price import *", "from j360buy.j360_feature import J360buy_FEATURES_MAP__", "import Image", "import re", "import time", "try:\n import psyco\n psyco.full()\nexcept ImportError:\n...