code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
[
8,
0,
0.1442,
0.0096,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1635,
0.0096,
0,
0.66,
0.0833,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.1827,
0.0096,
0,
0.66... | [
"\"\"\"Custom middleware. Some of this may be generally useful.\"\"\"",
"import logging",
"from google.appengine.runtime import apiproxy_errors",
"from google.appengine.runtime import DeadlineExceededError",
"from django.conf import settings",
"from django.http import Http404, HttpResponse, HttpResponseP... |
# Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
[
8,
0,
0.1562,
0.0104,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1771,
0.0104,
0,
0.66,
0.1667,
857,
0,
1,
0,
0,
857,
0,
0
],
[
1,
0,
0.1979,
0.0104,
0,
0.66... | [
"\"\"\"Collection of helper functions.\"\"\"",
"import urlparse",
"from google.appengine.ext import db",
"from codereview.exceptions import FetchError",
"def make_url(base, filename, rev):\n \"\"\"Helper to construct the URL to fetch.\n\n Args:\n base: The base property of the Issue to which the Patch ... |
# Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
[
8,
0,
0.6522,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.8043,
0.087,
0,
0.66,
0.5,
654,
0,
0,
0,
0,
645,
0,
0
],
[
8,
1,
0.8261,
0.0435,
1,
0.04,
... | [
"\"\"\"Exception classes.\"\"\"",
"class RietveldError(Exception):\n \"\"\"Base class for all exceptions in this application.\"\"\"",
" \"\"\"Base class for all exceptions in this application.\"\"\"",
"class FetchError(RietveldError):\n \"\"\"Exception raised when fetching of remote files fails.\"\"\"",
... |
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
[
8,
0,
0.045,
0.003,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0511,
0.003,
0,
0.66,
0.04,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.0541,
0.003,
0,
0.66,
... | [
"\"\"\"Django template library for Rietveld.\"\"\"",
"import cgi",
"import math",
"from google.appengine.api import memcache",
"from google.appengine.api import users",
"import django.template",
"import django.utils.safestring",
"from django.core.urlresolvers import reverse",
"from codereview import... |
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
[
8,
0,
0.0211,
0.0014,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0239,
0.0014,
0,
0.66,
0.0345,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.0253,
0.0014,
0,
0.66... | [
"\"\"\"Diff rendering in HTML for Rietveld.\"\"\"",
"import cgi",
"import difflib",
"import re",
"from google.appengine.ext import db",
"from django.conf import settings",
"from django.template import loader, RequestContext",
"from codereview import auth_utils",
"from codereview import intra_region_... |
#!/usr/bin/env python
from sys import stderr
class Ansi:
"""ANSI control sequences control"""
CSI = "\x1B["
# colors
Black = "0"
Red = "1"
Green = "2"
Yellow = "3"
Blue = "4"
Magenta = "5"
Cyan = "6"
White = "7"
Reset = "9"
# effects
bold = "1"
reset = "0... | [
[
1,
0,
0.0236,
0.0079,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
3,
0,
0.1457,
0.2205,
0,
0.66,
0.1,
663,
0,
0,
0,
0,
0,
0,
0
],
[
8,
1,
0.0472,
0.0079,
1,
0.93,... | [
"from sys import stderr",
"class Ansi:\n \"\"\"ANSI control sequences control\"\"\"\n CSI = \"\\x1B[\"\n\n # colors\n Black = \"0\"\n Red = \"1\"\n Green = \"2\"",
" \"\"\"ANSI control sequences control\"\"\"",
" CSI = \"\\x1B[\"",
" Black = \"0\"",
" Red = \"1\"",
" Gre... |
#!/usr/bin/env python
from sys import stderr
class Ansi:
"""ANSI control sequences control"""
CSI = "\x1B["
# colors
Black = "0"
Red = "1"
Green = "2"
Yellow = "3"
Blue = "4"
Magenta = "5"
Cyan = "6"
White = "7"
Reset = "9"
# effects
bold = "1"
reset = "0... | [
[
1,
0,
0.0236,
0.0079,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
3,
0,
0.1457,
0.2205,
0,
0.66,
0.1,
663,
0,
0,
0,
0,
0,
0,
0
],
[
8,
1,
0.0472,
0.0079,
1,
0.25,... | [
"from sys import stderr",
"class Ansi:\n \"\"\"ANSI control sequences control\"\"\"\n CSI = \"\\x1B[\"\n\n # colors\n Black = \"0\"\n Red = \"1\"\n Green = \"2\"",
" \"\"\"ANSI control sequences control\"\"\"",
" CSI = \"\\x1B[\"",
" Black = \"0\"",
" Red = \"1\"",
" Gre... |
#!/usr/bin/env python
#
# Copyright 2006, 2007 Google Inc. All Rights Reserved.
# Author: danderson@google.com (David Anderson)
#
# Script for uploading files to a Google Code project.
#
# This is intended to be both a useful script for people who want to
# streamline project uploads and a reference implementation for
... | [
[
8,
0,
0.1875,
0.0081,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1976,
0.004,
0,
0.66,
0.0833,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2056,
0.004,
0,
0.66,
... | [
"\"\"\"Google Code file uploader script.\n\"\"\"",
"__author__ = 'danderson@google.com (David Anderson)'",
"import httplib",
"import os.path",
"import optparse",
"import getpass",
"import base64",
"import sys",
"def upload(file, project_name, user_name, password, summary, labels=None):\n \"\"\"Uplo... |
#!/usr/bin/env python
#
# Copyright 2006, 2007 Google Inc. All Rights Reserved.
# Author: danderson@google.com (David Anderson)
#
# Script for uploading files to a Google Code project.
#
# This is intended to be both a useful script for people who want to
# streamline project uploads and a reference implementation for
... | [
[
8,
0,
0.1875,
0.0081,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1976,
0.004,
0,
0.66,
0.0833,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2056,
0.004,
0,
0.66,
... | [
"\"\"\"Google Code file uploader script.\n\"\"\"",
"__author__ = 'danderson@google.com (David Anderson)'",
"import httplib",
"import os.path",
"import optparse",
"import getpass",
"import base64",
"import sys",
"def upload(file, project_name, user_name, password, summary, labels=None):\n \"\"\"Uplo... |
#!/usr/bin/env python
# -*- encoding:utf8 -*-
# protoc-gen-erl
# Google's Protocol Buffers project, ported to lua.
# https://code.google.com/p/protoc-gen-lua/
#
# Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
# All rights reserved.
#
# Use, modification and distribution are subject to the "New BSD License"
#... | [
[
1,
0,
0.0287,
0.0022,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0309,
0.0022,
0,
0.66,
0.0417,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.0331,
0.0022,
0,
0.... | [
"import sys",
"import os.path as path",
"from cStringIO import StringIO",
"import plugin_pb2",
"import google.protobuf.descriptor_pb2 as descriptor_pb2",
"_packages = {}",
"_files = {}",
"_message = {}",
"FDP = plugin_pb2.descriptor_pb2.FieldDescriptorProto",
"if sys.platform == \"win32\":\n im... |
# Liza feat. Lord Osiris
# GrubScript ver 0.2
import sys
import os
import commands
#trunk = commands.getoutput("cat .svn/entries | head -n 4 | tail -n 1")
trunk = "-svn"
patchlevel = commands.getoutput("cat include/version.h | grep PATCHLEVEL | cut -b 21-23")
if os.getuid() != 0:
print "[-] You need to run this inst... | [
[
1,
0,
0.0526,
0.0526,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1053,
0.0526,
0,
0.66,
0.25,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1579,
0.0526,
0,
0.... | [
"import sys",
"import os",
"import commands",
"def grub_hd(pn):\n\tletter = pn[2]\n\tnump = int(pn[3]) - 1\n\talphanum = { 'a':0, 'b':1, 'c':2, 'd':3, 'e':4, 'f':5 }\n \t\n\tres = \"(hd\" + str(alphanum[letter]) + \",\" + str(nump) + \")\"\n\treturn res",
"\tletter = pn[2]",
"\tnump = int(pn[3]) - 1",
... |
import os
os.system("objdump -x kernel/arch/x86/kernel > dump.txt")
f = open("dump.txt", "r")
data = f.read()
f.close()
data = data.split("\n")
symbols = []
for x in data:
x = x.split("\t")
if len(x) == 2:
a = x[0].split(" ")[0]
d = x[1]
d = d.split(" ")
if len(d) == 2:
if d[1].find(".") == -1:
... | [
[
1,
0,
0.0222,
0.0222,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
8,
0,
0.0667,
0.0222,
0,
0.66,
0.0667,
856,
3,
1,
0,
0,
0,
0,
1
],
[
14,
0,
0.1111,
0.0222,
0,
0... | [
"import os",
"os.system(\"objdump -x kernel/arch/x86/kernel > dump.txt\")",
"f = open(\"dump.txt\", \"r\")",
"data = f.read()",
"f.close()",
"data = data.split(\"\\n\")",
"symbols = []",
"for x in data:\n\tx = x.split(\"\\t\")\n\tif len(x) == 2:\n\t\ta = x[0].split(\" \")[0]\n\n\t\td = x[1]\n\t\td = d... |
# AbastractOS
# Copyright (C) 2011 Davide Gessa
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is ... | [
[
14,
0,
0.1624,
0.0085,
0,
0.66,
0,
40,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.2735,
0.1966,
0,
0.66,
0.0667,
376,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.3932,
0.0085,
0,
0.... | [
"contents_arch = [ [\"ARCH_X86\", \"-Wall -I.. -I. -Iinclude -Iinclude/klibc/cxx -Wno-write-strings -nostdlib -nostartfiles -ffreestanding -fno-stack-protector -nostdlib -nostdinc -fno-builtin -nodefaultlibs -fno-exceptions\", \"-Tarch/x86/link.ld\", \"-felf\", \"arch/x86/syscall.o arch/x86/cpu.o arch/x86/boot.o ar... |
# AbastractOS
# Copyright (C) 2011 Davide Gessa
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is ... | [
[
14,
0,
0.157,
0.0083,
0,
0.66,
0,
40,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.2727,
0.2066,
0,
0.66,
0.0667,
376,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.3967,
0.0083,
0,
0.6... | [
"contents_arch = [ [\"ARCH_X86\", \"-Wall -I.. -I. -Iinclude -Iinclude/klibc/cxx -Wno-write-strings -nostdlib -nostartfiles -ffreestanding -fno-stack-protector -nostdlib -nostdinc -fno-builtin -nodefaultlibs -fno-exceptions\", \"-Tarch/x86/link.ld\", \"-felf\", \"arch/x86/syscall.o arch/x86/cpu.o arch/x86/boot.o ar... |
# Copyright 2013 Aditya Naik
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
"""A tiny module for creating lists of abspath of files in a directory.
Also creates lists by isolating the files of the required extension."""
import re
import os
import sys
def listpaths(p... | [
[
8,
0,
0.2027,
0.0541,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2703,
0.027,
0,
0.66,
0.2,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.2973,
0.027,
0,
0.66,
... | [
"\"\"\"A tiny module for creating lists of abspath of files in a directory.\n\tAlso creates lists by isolating the files of the required extension.\"\"\"",
"import re",
"import os",
"import sys",
"def listpaths(path):\n\t\"\"\"Get a list of all files\"\"\"\n\tglobal filedir\n\tfiledir=[]\n\tfilepath=os.lis... |
# Django settings for abux project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', ... | [
[
14,
0,
0.0312,
0.0104,
0,
0.66,
0,
309,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0417,
0.0104,
0,
0.66,
0.0556,
7,
2,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0729,
0.0312,
0,
0.6... | [
"DEBUG = True",
"TEMPLATE_DEBUG = DEBUG",
"ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)",
"MANAGERS = ADMINS",
"DATABASES = {\n 'default': {\n 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.\n 'NAME': '', ... |
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^abux/', include('abux.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# (r... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
14,
0,
0.7188,
0.625,
0,
0.66,
1,
990,
3,
1,
0,
0,
75,
10,
1
]
] | [
"from django.conf.urls.defaults import *",
"urlpatterns = patterns('',\n # Example:\n # (r'^abux/', include('abux.foo.urls')),\n\n # Uncomment the admin/doc line below to enable admin documentation:\n # (r'^admin/doc/', include('django.contrib.admindocs.urls')),\n\n # Uncomment the next line to ena... |
from django.db import models
# Create your models here.
| [
[
1,
0,
0.3333,
0.3333,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
]
] | [
"from django.db import models"
] |
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
... | [
[
8,
0,
0.1522,
0.2609,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3478,
0.0435,
0,
0.66,
0.3333,
944,
0,
1,
0,
0,
944,
0,
0
],
[
3,
0,
0.5435,
0.2609,
0,
0.66... | [
"\"\"\"\nThis file demonstrates two different styles of tests (one doctest and one\nunittest). These will both pass when you run \"manage.py test\".\n\nReplace these with more appropriate tests for your application.\n\"\"\"",
"from django.test import TestCase",
"class SimpleTest(TestCase):\n def test_basic_a... |
# Create your views here.
| [] | [] |
#!/usr/bin/python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run ... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.64,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
TILE_EDGE = 32
| [
[
14,
0,
1,
1,
0,
0.66,
0,
507,
1,
0,
0,
0,
0,
1,
0
]
] | [
"TILE_EDGE = 32"
] |
#coding: utf-8
import screen
import md5
import random
import object
import pygame
import tile
import keyboard
import map
from pygame.locals import *
from keys import *
class Game:
instance = None
def __init__(self, filename=None):
"Инициализация приложения"
pygame.init()
self.actors = {}
... | [
[
1,
0,
0.0183,
0.0092,
0,
0.66,
0,
522,
0,
1,
0,
0,
522,
0,
0
],
[
1,
0,
0.0275,
0.0092,
0,
0.66,
0.0909,
604,
0,
1,
0,
0,
604,
0,
0
],
[
1,
0,
0.0367,
0.0092,
0,
... | [
"import screen",
"import md5",
"import random",
"import object",
"import pygame",
"import tile",
"import keyboard",
"import map",
"from pygame.locals import *",
"from keys import *",
"class Game:\n\tinstance = None\n\n\tdef __init__(self, filename=None):\n\t\t\"Инициализация приложения\"\n\t\tpy... |
class LetterTile:
def __init__(self, symbol, color, font=None):
self.symbol = symbol
self.color = color
if font:
self.font = font
self.icon = font.render(self.symbol, 1, self.color)
def rect(self):
return self.icon
def setFont(self, font):... | [
[
3,
0,
0.3409,
0.6364,
0,
0.66,
0,
473,
0,
3,
0,
0,
0,
0,
2
],
[
2,
1,
0.2045,
0.2727,
1,
0.63,
0,
555,
0,
4,
0,
0,
0,
0,
1
],
[
14,
2,
0.1364,
0.0455,
2,
0.8,
... | [
"class LetterTile:\n def __init__(self, symbol, color, font=None):\n self.symbol = symbol\n self.color = color\n if font:\n self.font = font\n self.icon = font.render(self.symbol, 1, self.color)",
" def __init__(self, symbol, color, font=None):\n self.symbol... |
#coding: utf-8
import pygame
import tile
import object
from pygame.locals import *
class Screen:
def __init__(self, main, caption="Rogue-like"):
self.main = main
self.mess = ''
self._window = pygame.display.set_mode((640,400))
pygame.display.set_caption(caption)
self._mainScreen = pygame.disp... | [
[
1,
0,
0.029,
0.0145,
0,
0.66,
0,
87,
0,
1,
0,
0,
87,
0,
0
],
[
1,
0,
0.0435,
0.0145,
0,
0.66,
0.25,
319,
0,
1,
0,
0,
319,
0,
0
],
[
1,
0,
0.058,
0.0145,
0,
0.66,
... | [
"import pygame",
"import tile",
"import object",
"from pygame.locals import *",
"class Screen:\n\t\n\tdef __init__(self, main, caption=\"Rogue-like\"):\n\t\tself.main = main\n\t\tself.mess = ''\n\t\tself._window = pygame.display.set_mode((640,400))\n\t\tpygame.display.set_caption(caption)\n\t\tself._mainScr... |
#coding: utf-8
import main
class Event:
def __init__(self, type, caller, target, params={}):
self.type = type
self.caller = caller
self.target = target
self.process(caller, target)
self.params = params
def process(self, caller, target): #TODO: Дополнительные ... | [
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0,
624,
0,
1,
0,
0,
624,
0,
0
],
[
3,
0,
0.6538,
0.7692,
0,
0.66,
1,
9,
0,
2,
0,
0,
0,
0,
1
],
[
2,
1,
0.5769,
0.4615,
1,
0.39,
... | [
"import main",
"class Event:\n def __init__(self, type, caller, target, params={}):\n self.type = type\n self.caller = caller\n self.target = target\n self.process(caller, target)\n self.params = params",
" def __init__(self, type, caller, target, params={}):\n se... |
#coding: utf-8
from keys import *
class kController:
def __init__(self, main):
self.main = main
def eval(self, event):
"Обработчик событий клавиатуры"
if self.main.mode=="map":
if event.key in RIGHT and event.type == KEYDOWN:
self.main.moveAc... | [
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0,
204,
0,
1,
0,
0,
204,
0,
0
],
[
3,
0,
0.5645,
0.9032,
0,
0.66,
1,
271,
0,
2,
0,
0,
0,
0,
10
],
[
2,
1,
0.1774,
0.0645,
1,
0.79,
... | [
"from keys import *",
"class kController:\n def __init__(self, main):\n self.main = main\n \n def eval(self, event):\n \"Обработчик событий клавиатуры\"\n if self.main.mode==\"map\":\n if event.key in RIGHT and event.type == KEYDOWN:",
" def __init__(self, main):\n ... |
class Actor:
def __init__(self, name, tile, position, map):
self._tile = tile
self.name = name
self.map = map
self.xpos, self.ypos = position
def jump(self, position):
self.xpos, self.ypos = position
return self
def tile(self):
return self._tile
def move(self, heading):
self.xpos += heading[0]
... | [
[
3,
0,
0.2674,
0.5116,
0,
0.66,
0,
985,
0,
5,
0,
0,
0,
0,
0
],
[
2,
1,
0.093,
0.1163,
1,
0.9,
0,
555,
0,
5,
0,
0,
0,
0,
0
],
[
14,
2,
0.0698,
0.0233,
2,
0.59,
... | [
"class Actor:\n\tdef __init__(self, name, tile, position, map):\n\t\tself._tile = tile\n\t\tself.name = name\n\t\tself.map = map\n\t\tself.xpos, self.ypos = position\n\n\tdef jump(self, position):",
"\tdef __init__(self, name, tile, position, map):\n\t\tself._tile = tile\n\t\tself.name = name\n\t\tself.map = map\... |
import pygame
from pygame.locals import *
UP = (K_UP, K_8, K_KP8)
DOWN = (K_DOWN, K_2, K_KP2)
LEFT = (K_LEFT, K_4, K_KP4)
RIGHT = (K_RIGHT, K_6, K_KP6)
UPLEFT = (K_7, K_KP7)
UPRIGHT = (K_9, K_KP9)
DOWNLEFT = (K_1, K_KP1)
DOWNRIGHT = (K_3, K_KP3) | [
[
1,
0,
0.0909,
0.0909,
0,
0.66,
0,
87,
0,
1,
0,
0,
87,
0,
0
],
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0.1111,
515,
0,
1,
0,
0,
515,
0,
0
],
[
14,
0,
0.3636,
0.0909,
0,
0... | [
"import pygame",
"from pygame.locals import *",
"UP = (K_UP, K_8, K_KP8)",
"DOWN = (K_DOWN, K_2, K_KP2)",
"LEFT = (K_LEFT, K_4, K_KP4)",
"RIGHT = (K_RIGHT, K_6, K_KP6)",
"UPLEFT = (K_7, K_KP7)",
"UPRIGHT = (K_9, K_KP9)",
"DOWNLEFT = (K_1, K_KP1)",
"DOWNRIGHT = (K_3, K_KP3)"
] |
#coding: utf-8
from const import TILE_EDGE
import object
#import events
class mController:
def __init__(self, main, name, file=None, defaultTile='0', boundaries=(100,100)):
"Первоначальное создание и|или загрузка карты"
self.map = {}
self.main = main
self.name = name
... | [
[
1,
0,
0.027,
0.0135,
0,
0.66,
0,
798,
0,
1,
0,
0,
798,
0,
0
],
[
1,
0,
0.0405,
0.0135,
0,
0.66,
0.5,
186,
0,
1,
0,
0,
186,
0,
0
],
[
3,
0,
0.5405,
0.9324,
0,
0.66... | [
"from const import TILE_EDGE",
"import object",
"class mController:\n def __init__(self, main, name, file=None, defaultTile='0', boundaries=(100,100)):\n \"Первоначальное создание и|или загрузка карты\"\n self.map = {}\n self.main = main\n self.name = name\n self.default = ... |
import gamelib.main as lib
from pygame.locals import *
import os, sys
main = lib.Game()
clock = lib.pygame.time.Clock()
main.registerActor(lib.object.Player('player', '4', (6,6), main.currentMap.name), True, main.currentMap.name)
main.registerActor(lib.object.NPC('jones', '3', (3,3), main.currentMap.name), ... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
756,
0,
1,
0,
0,
756,
0,
0
],
[
1,
0,
0.1176,
0.0588,
0,
0.66,
0.1,
515,
0,
1,
0,
0,
515,
0,
0
],
[
1,
0,
0.1765,
0.0588,
0,
0.6... | [
"import gamelib.main as lib",
"from pygame.locals import *",
"import os, sys",
"main = lib.Game()",
"clock = lib.pygame.time.Clock()",
"main.registerActor(lib.object.Player('player', '4', (6,6), main.currentMap.name), True, main.currentMap.name)",
"main.registerActor(lib.object.NPC('jones', '3', (3,3), ... |
'''
Module which brings history information about files from Mercurial.
@author: Rodrigo Damazio
'''
import re
import subprocess
REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')
def _GetOutputLines(args):
'''
Runs an external process and returns its output as a list of lines.
@param args: the argume... | [
[
8,
0,
0.0319,
0.0532,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0745,
0.0106,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0851,
0.0106,
0,
0.66... | [
"'''\nModule which brings history information about files from Mercurial.\n\n@author: Rodrigo Damazio\n'''",
"import re",
"import subprocess",
"REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')",
"def _GetOutputLines(args):\n '''\n Runs an external process and returns its output as a list of lines... |
#!/usr/bin/python
'''
Entry point for My Tracks i18n tool.
@author: Rodrigo Damazio
'''
import mytracks.files
import mytracks.translate
import mytracks.validate
import sys
def Usage():
print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0]
print 'Commands are:'
print ' cleanup'
print ' translate'
p... | [
[
8,
0,
0.0417,
0.0521,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0833,
0.0104,
0,
0.66,
0.125,
640,
0,
1,
0,
0,
640,
0,
0
],
[
1,
0,
0.0938,
0.0104,
0,
0.66,... | [
"'''\nEntry point for My Tracks i18n tool.\n\n@author: Rodrigo Damazio\n'''",
"import mytracks.files",
"import mytracks.translate",
"import mytracks.validate",
"import sys",
"def Usage():\n print('Usage: %s <command> [<language> ...]\\n' % sys.argv[0])\n print('Commands are:')\n print(' cleanup')\n p... |
'''
Module which prompts the user for translations and saves them.
TODO: implement
@author: Rodrigo Damazio
'''
class Translator(object):
'''
classdocs
'''
def __init__(self, language):
'''
Constructor
'''
self._language = language
def Translate(self, string_names):
print string_names | [
[
8,
0,
0.1905,
0.3333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.7143,
0.619,
0,
0.66,
1,
229,
0,
2,
0,
0,
186,
0,
1
],
[
8,
1,
0.5238,
0.1429,
1,
0.45,
... | [
"'''\nModule which prompts the user for translations and saves them.\n\nTODO: implement\n\n@author: Rodrigo Damazio\n'''",
"class Translator(object):\n '''\n classdocs\n '''\n\n def __init__(self, language):\n '''\n Constructor",
" '''\n classdocs\n '''",
" def __init__(self, language):\n '''... |
'''
Module which compares languague files to the master file and detects
issues.
@author: Rodrigo Damazio
'''
import os
from mytracks.parser import StringsParser
import mytracks.history
class Validator(object):
def __init__(self, languages):
'''
Builds a strings file validator.
Params:
@para... | [
[
8,
0,
0.0304,
0.0522,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0696,
0.0087,
0,
0.66,
0.25,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0783,
0.0087,
0,
0.66,
... | [
"'''\nModule which compares languague files to the master file and detects\nissues.\n\n@author: Rodrigo Damazio\n'''",
"import os",
"from mytracks.parser import StringsParser",
"import mytracks.history",
"class Validator(object):\n\n def __init__(self, languages):\n '''\n Builds a strings file valida... |
'''
Module for dealing with resource files (but not their contents).
@author: Rodrigo Damazio
'''
import os.path
from glob import glob
import re
MYTRACKS_RES_DIR = 'MyTracks/res'
ANDROID_MASTER_VALUES = 'values'
ANDROID_VALUES_MASK = 'values-*'
def GetMyTracksDir():
'''
Returns the directory in which the MyTrac... | [
[
8,
0,
0.0667,
0.1111,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1333,
0.0222,
0,
0.66,
0.125,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.1556,
0.0222,
0,
0.66,
... | [
"'''\nModule for dealing with resource files (but not their contents).\n\n@author: Rodrigo Damazio\n'''",
"import os.path",
"from glob import glob",
"import re",
"MYTRACKS_RES_DIR = 'MyTracks/res'",
"ANDROID_MASTER_VALUES = 'values'",
"ANDROID_VALUES_MASK = 'values-*'",
"def GetMyTracksDir():\n '''\n... |
'''
Module which parses a string XML file.
@author: Rodrigo Damazio
'''
from xml.parsers.expat import ParserCreate
import re
#import xml.etree.ElementTree as ET
class StringsParser(object):
'''
Parser for string XML files.
This object is not thread-safe and should be used for parsing a single file at
a time... | [
[
8,
0,
0.0261,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0609,
0.0087,
0,
0.66,
0.3333,
573,
0,
1,
0,
0,
573,
0,
0
],
[
1,
0,
0.0696,
0.0087,
0,
0.66... | [
"'''\nModule which parses a string XML file.\n\n@author: Rodrigo Damazio\n'''",
"from xml.parsers.expat import ParserCreate",
"import re",
"class StringsParser(object):\n '''\n Parser for string XML files.\n\n This object is not thread-safe and should be used for parsing a single file at\n a time, only.\n... |
#!/usr/bin/env pypy
import os, sys, logging, re
import argparse
import fnmatch
configurations = {'lite', 'pro'}
package_dirs = {
'lite': ('src/cx/hell/android/pdfview',),
'pro': ('src/cx/hell/android/pdfviewpro',)
}
file_replaces = {
'lite': (
'cx.hell.android.pdfview.',
'"cx.hell.an... | [
[
1,
0,
0.014,
0.0047,
0,
0.66,
0,
688,
0,
4,
0,
0,
688,
0,
0
],
[
1,
0,
0.0187,
0.0047,
0,
0.66,
0.0526,
325,
0,
1,
0,
0,
325,
0,
0
],
[
1,
0,
0.0234,
0.0047,
0,
0... | [
"import os, sys, logging, re",
"import argparse",
"import fnmatch",
"configurations = {'lite', 'pro'}",
"package_dirs = {\n 'lite': ('src/cx/hell/android/pdfview',),\n 'pro': ('src/cx/hell/android/pdfviewpro',)\n}",
"file_replaces = {\n 'lite': (\n 'cx.hell.android.pdfview.',\n '\"c... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'PrincipalUI.ui'
#
# Created: Mon May 16 22:12:31 2011
# by: PyQt4 UI code generator 4.8.3
#
# WARNING! All changes made in this file will be lost!
from ABJFrame import *
from PyQt4 import QtCore, QtGui
class Ui_MainWindow(object):
... | [
[
1,
0,
0.0373,
0.0041,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.0415,
0.0041,
0,
0.66,
0.5,
154,
0,
2,
0,
0,
154,
0,
0
],
[
3,
0,
0.527,
0.9502,
0,
0.66,
... | [
"from ABJFrame import *",
"from PyQt4 import QtCore, QtGui",
"class Ui_MainWindow(object):\n def setupUi(self, MainWindow):\n MainWindow.setObjectName(\"MainWindow\")\n MainWindow.resize(1119, 939)\n MainWindow.setAcceptDrops(True)\n icon = QtGui.QIcon()\n icon.addPixmap(Qt... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'prueba.ui'
#
# Created: Wed Feb 09 13:24:49 2011
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_MainWindow(object):
def setupUi(sel... | [
[
1,
0,
0.1299,
0.013,
0,
0.66,
0,
154,
0,
2,
0,
0,
154,
0,
0
],
[
3,
0,
0.5714,
0.8442,
0,
0.66,
1,
573,
0,
2,
0,
0,
186,
0,
82
],
[
2,
1,
0.461,
0.5974,
1,
0.57,
... | [
"from PyQt4 import QtCore, QtGui",
"class Ui_MainWindow(object):\n def setupUi(self, MainWindow):\n MainWindow.setObjectName(\"MainWindow\")\n MainWindow.resize(240, 255)\n self.centralwidget = QtGui.QWidget(MainWindow)\n self.centralwidget.setObjectName(\"centralwidget\")\n ... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'panal2.ui'
#
# Created: Fri Feb 11 11:50:13 2011
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Form(object):
def setupUi(self, For... | [
[
1,
0,
0.4545,
0.0455,
0,
0.66,
0,
154,
0,
2,
0,
0,
154,
0,
0
],
[
3,
0,
0.75,
0.4545,
0,
0.66,
1,
879,
0,
2,
0,
0,
186,
0,
6
],
[
2,
1,
0.7045,
0.2727,
1,
0.16,
... | [
"from PyQt4 import QtCore, QtGui",
"class Ui_Form(object):\n def setupUi(self, Form):\n Form.setObjectName(\"Form\")\n Form.resize(291, 255)\n\n self.retranslateUi(Form)\n QtCore.QMetaObject.connectSlotsByName(Form)",
" def setupUi(self, Form):\n Form.setObjectName(\"For... |
import sys
from PyQt4.Qt import *
import panal_ui
import Ventana1_ui
import Ventana2_ui
import Ventana3_ui
import Ventana4_ui
import Ventana5_ui
class Ventana1(QWidget, Ventana1_ui.Ui_Form):
def __init__(self, parent=None):
super(Ventana1, self).__init__(parent)
self.setupUi(self)
class Ventana2(... | [
[
1,
0,
0.0114,
0.0114,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0227,
0.0114,
0,
0.66,
0.0625,
570,
0,
1,
0,
0,
570,
0,
0
],
[
1,
0,
0.0341,
0.0114,
0,
... | [
"import sys",
"from PyQt4.Qt import *",
"import panal_ui",
"import Ventana1_ui",
"import Ventana2_ui",
"import Ventana3_ui",
"import Ventana4_ui",
"import Ventana5_ui",
"class Ventana1(QWidget, Ventana1_ui.Ui_Form):\n\tdef __init__(self, parent=None):\n\t\t\tsuper(Ventana1, self).__init__(parent)\n\... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'panal2.ui'
#
# Created: Fri Feb 11 11:50:13 2011
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Form(object):
def setupUi(self, For... | [
[
1,
0,
0.4545,
0.0455,
0,
0.66,
0,
154,
0,
2,
0,
0,
154,
0,
0
],
[
3,
0,
0.75,
0.4545,
0,
0.66,
1,
879,
0,
2,
0,
0,
186,
0,
6
],
[
2,
1,
0.7045,
0.2727,
1,
0.96,
... | [
"from PyQt4 import QtCore, QtGui",
"class Ui_Form(object):\n def setupUi(self, Form):\n Form.setObjectName(\"Form\")\n Form.resize(291, 255)\n\n self.retranslateUi(Form)\n QtCore.QMetaObject.connectSlotsByName(Form)",
" def setupUi(self, Form):\n Form.setObjectName(\"For... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'panal2.ui'
#
# Created: Fri Feb 11 11:50:13 2011
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Form(object):
def setupUi(self, For... | [
[
1,
0,
0.4545,
0.0455,
0,
0.66,
0,
154,
0,
2,
0,
0,
154,
0,
0
],
[
3,
0,
0.75,
0.4545,
0,
0.66,
1,
879,
0,
2,
0,
0,
186,
0,
6
],
[
2,
1,
0.7045,
0.2727,
1,
0.03,
... | [
"from PyQt4 import QtCore, QtGui",
"class Ui_Form(object):\n def setupUi(self, Form):\n Form.setObjectName(\"Form\")\n Form.resize(291, 255)\n\n self.retranslateUi(Form)\n QtCore.QMetaObject.connectSlotsByName(Form)",
" def setupUi(self, Form):\n Form.setObjectName(\"For... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'panal2.ui'
#
# Created: Fri Feb 11 11:50:13 2011
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Form(object):
def setupUi(self, For... | [
[
1,
0,
0.4545,
0.0455,
0,
0.66,
0,
154,
0,
2,
0,
0,
154,
0,
0
],
[
3,
0,
0.75,
0.4545,
0,
0.66,
1,
879,
0,
2,
0,
0,
186,
0,
6
],
[
2,
1,
0.7045,
0.2727,
1,
0.32,
... | [
"from PyQt4 import QtCore, QtGui",
"class Ui_Form(object):\n def setupUi(self, Form):\n Form.setObjectName(\"Form\")\n Form.resize(291, 255)\n\n self.retranslateUi(Form)\n QtCore.QMetaObject.connectSlotsByName(Form)",
" def setupUi(self, Form):\n Form.setObjectName(\"For... |
import sys
from PyQt4 import QtGui, QtCore
import Ventana1_ui
class Ventana1(QtGui.QWidget, Ventana1_ui.Ui_Form):
def __init__(self, parent=None):
super(Ventana1, self).__init__(parent)
self.setupUi(self)
#if __name__=='__main__':
def show_window():
app = QtGui.QApplication(sys.argv)
myApp = ... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1176,
0.0588,
0,
0.66,
0.25,
154,
0,
2,
0,
0,
154,
0,
0
],
[
1,
0,
0.2353,
0.0588,
0,
0.... | [
"import sys",
"from PyQt4 import QtGui, QtCore",
"import Ventana1_ui",
"class Ventana1(QtGui.QWidget, Ventana1_ui.Ui_Form):\n\tdef __init__(self, parent=None):\n\t\t\tsuper(Ventana1, self).__init__(parent)\n\t\t\tself.setupUi(self)",
"\tdef __init__(self, parent=None):\n\t\t\tsuper(Ventana1, self).__init__(... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'panal2.ui'
#
# Created: Fri Feb 11 11:50:13 2011
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_Form(object):
def setupUi(self, For... | [
[
1,
0,
0.4545,
0.0455,
0,
0.66,
0,
154,
0,
2,
0,
0,
154,
0,
0
],
[
3,
0,
0.75,
0.4545,
0,
0.66,
1,
879,
0,
2,
0,
0,
186,
0,
6
],
[
2,
1,
0.7045,
0.2727,
1,
0.74,
... | [
"from PyQt4 import QtCore, QtGui",
"class Ui_Form(object):\n def setupUi(self, Form):\n Form.setObjectName(\"Form\")\n Form.resize(291, 255)\n\n self.retranslateUi(Form)\n QtCore.QMetaObject.connectSlotsByName(Form)",
" def setupUi(self, Form):\n Form.setObjectName(\"For... |
# -*- coding: utf-8 -*-
import sys
from logico.iABJ import *
# Constantes
readln = sys.stdin.readline
write = sys.stdout.write
# -------------
# TEST
# -------------
if __name__ == "__main__":
logico = LogicoABJ("idiomas/ES.xml", "Nombre de Prueba")
# Entrada
input_command = ""
while True:
... | [
[
1,
0,
0.0667,
0.0333,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1,
0.0333,
0,
0.66,
0.25,
603,
0,
1,
0,
0,
603,
0,
0
],
[
14,
0,
0.2,
0.0333,
0,
0.66,
... | [
"import sys",
"from logico.iABJ import *",
"readln = sys.stdin.readline",
"write = sys.stdout.write",
"if __name__ == \"__main__\":\n\t\n\tlogico = LogicoABJ(\"idiomas/ES.xml\", \"Nombre de Prueba\")\n\t\n\t# Entrada\n\tinput_command = \"\"\n\t\n\twhile True:",
"\tlogico = LogicoABJ(\"idiomas/ES.xml\", \"... |
# -*- coding: utf-8 -*-
from IPosicionable import IPosicionable
from ITener import ITener
class ITenerParticula(ITener):
__particula=None
def __init__(self, particula):
self.__particula=particula
self.actualizarPosiciones()
def tener(self, particula):
... | [
[
1,
0,
0.0444,
0.0222,
0,
0.66,
0,
391,
0,
1,
0,
0,
391,
0,
0
],
[
1,
0,
0.0667,
0.0222,
0,
0.66,
0.5,
375,
0,
1,
0,
0,
375,
0,
0
],
[
3,
0,
0.5556,
0.9111,
0,
0.6... | [
"from IPosicionable import IPosicionable",
"from ITener import ITener",
"class ITenerParticula(ITener):\n \n __particula=None\n \n def __init__(self, particula):\n self.__particula=particula\n self.actualizarPosiciones()",
" __particula=None",
" def __init__(self, particula)... |
from ITener import ITener
from IAccion import IAccion
from IAbrir import IAbrir
from logico.problemas.objetos.Objeto import Objeto
class IParticula(ITener):
__liquida=None
__contenedor=None
__accion=None
__absorbente=None
def __init__(self, contenedor=None, nombreObjeto="", esLiquid... | [
[
1,
0,
0.0196,
0.0196,
0,
0.66,
0,
375,
0,
1,
0,
0,
375,
0,
0
],
[
1,
0,
0.0392,
0.0196,
0,
0.66,
0.25,
146,
0,
1,
0,
0,
146,
0,
0
],
[
1,
0,
0.0588,
0.0196,
0,
0.... | [
"from ITener import ITener",
"from IAccion import IAccion",
"from IAbrir import IAbrir",
"from logico.problemas.objetos.Objeto import Objeto",
"class IParticula(ITener):\n\n __liquida=None\n __contenedor=None\n __accion=None\n __absorbente=None\n \n def __init__(self, contenedor=None, nomb... |
import os.path
class IAccion(object):
comando=None
verbo=None
articulos=[]
objetos=[]
objeto=None
__imagen=None
__heredable=False
__mochila=False
__desligar=False
__sinContenedor=None
def __init__(self, verbo="", comando="", imagen="", esHeredable=False,... | [
[
1,
0,
0.0175,
0.0175,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
3,
0,
0.5175,
0.9474,
0,
0.66,
1,
146,
0,
7,
0,
0,
186,
0,
11
],
[
14,
1,
0.0877,
0.0175,
1,
0.99,... | [
"import os.path",
"class IAccion(object):\n\n comando=None\n verbo=None\n articulos=[]\n objetos=[]\n objeto=None\n __imagen=None",
" comando=None",
" verbo=None",
" articulos=[]",
" objetos=[]",
" objeto=None",
" __imagen=None",
" __heredable=False",
" __... |
# -*- coding: utf-8 -*-
from IPosicionable import IPosicionable
from logico.problemas.objetos.Objeto import Objeto
class ITener(object):
"""
Interfaz que es implementada por Objetos contenedores cuyo contenido es visible (por ejemplo, contenedores de vidrio). La idea de esta interfaz es que guarda una refere... | [
[
1,
0,
0.0068,
0.0034,
0,
0.66,
0,
391,
0,
1,
0,
0,
391,
0,
0
],
[
1,
0,
0.0101,
0.0034,
0,
0.66,
0.5,
584,
0,
1,
0,
0,
584,
0,
0
],
[
3,
0,
0.5068,
0.9899,
0,
0.6... | [
"from IPosicionable import IPosicionable",
"from logico.problemas.objetos.Objeto import Objeto",
"class ITener(object):\n\t\n\t\"\"\"\n\tInterfaz que es implementada por Objetos contenedores cuyo contenido es visible (por ejemplo, contenedores de vidrio). La idea de esta interfaz es que guarda una referencia a ... |
# -*- coding: utf-8 -*-
class IApagable(object):
"""
Interfaz que es implementada por todos los objetos que pueden apagarse y encenderse.
@since: 4/14/2011
@version: 1.0
"""
__apagado = False
""" Bandera de referencia para saber si el objeto esta apagado """
def __init__(self):
"""
Const... | [
[
3,
0,
0.5196,
0.9804,
0,
0.66,
0,
529,
0,
5,
0,
0,
186,
0,
0
],
[
8,
1,
0.1176,
0.098,
1,
0.47,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
1,
0.1961,
0.0196,
1,
0.47,
... | [
"class IApagable(object):\n\t\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden apagarse y encenderse.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden apagarse y encenderse.\n\t@since: 4/14/2011\n\t@version: 1.0\... |
from IAccion import IAccion
from ITener import ITener
# -*- coding: utf-8 -*-
class IAbrir(object):
"""
Interfaz que es implementada por todos los objetos que pueden abrirse y cerrarse.
@since: 4/14/2011
@version: 1.0
"""
__abierto = False
""" Bandera para saber si un objeto esta abierto """
__ac... | [
[
1,
0,
0.0099,
0.0099,
0,
0.66,
0,
146,
0,
1,
0,
0,
146,
0,
0
],
[
1,
0,
0.0198,
0.0099,
0,
0.66,
0.5,
375,
0,
1,
0,
0,
375,
0,
0
],
[
3,
0,
0.5248,
0.9604,
0,
0.6... | [
"from IAccion import IAccion",
"from ITener import ITener",
"class IAbrir(object):\n\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden abrirse y cerrarse.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"\n\t__abierto = False",
"\t\"\"\"\n\tInterfaz que es implementada por todos los obj... |
# -*- coding: utf-8 -*-
from ITener import ITener
from IAccion import IAccion
from logico.problemas.objetos.Objeto import Objeto
class IRevolvible(ITener):
"""
Interfaz que es implementada por todos los contenedores que pueden identificar cuando los objetos contenidos estan revueltos o separados.
@since: 4... | [
[
1,
0,
0.0278,
0.0139,
0,
0.66,
0,
375,
0,
1,
0,
0,
375,
0,
0
],
[
1,
0,
0.0417,
0.0139,
0,
0.66,
0.3333,
146,
0,
1,
0,
0,
146,
0,
0
],
[
1,
0,
0.0556,
0.0139,
0,
... | [
"from ITener import ITener",
"from IAccion import IAccion",
"from logico.problemas.objetos.Objeto import Objeto",
"class IRevolvible(ITener):\n\t\n\t\"\"\"\n\tInterfaz que es implementada por todos los contenedores que pueden identificar cuando los objetos contenidos estan revueltos o separados.\n\t@since: 4/... |
# -*- coding: utf-8 -*-
class IVisible(object):
"""
Interfaz que es implementada por todos los objetos que pueden cambiar su visibilidad en tiempo de ejecucion del problema.
@since: 4/14/2011
@version: 1.0
"""
__visible=True
""" Bandera para saber si un objeto es visible o no """
__showInX=0
... | [
[
3,
0,
0.5115,
0.9885,
0,
0.66,
0,
30,
0,
8,
0,
0,
186,
0,
0
],
[
8,
1,
0.069,
0.0575,
1,
0.16,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
1,
0.1149,
0.0115,
1,
0.16,
... | [
"class IVisible(object):\n\t\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden cambiar su visibilidad en tiempo de ejecucion del problema.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden cambiar su visibilidad en... |
# -*- coding: utf-8 -*-
from IPosicionable import IPosicionable
class IMovible(IPosicionable):
"""
Interfaz que es implementada por todos los objetos que pueden moverse.
@since: 4/14/2011
@version: 1.0
"""
pass
| [
[
1,
0,
0.2,
0.1,
0,
0.66,
0,
391,
0,
1,
0,
0,
391,
0,
0
],
[
3,
0,
0.6,
0.7,
0,
0.66,
1,
975,
0,
0,
0,
0,
391,
0,
0
],
[
8,
1,
0.6,
0.5,
1,
0.42,
0,
0,
... | [
"from IPosicionable import IPosicionable",
"class IMovible(IPosicionable):\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden moverse.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"\n\tpass",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden moverse.\n\t@since: ... |
# -*- coding: utf-8 -*-
from ITener import ITener
class ITenerOscuro(ITener):
"""
Interfaz que es implementada por Objetos contenedores cuyo contenido no es visible (por ejemplo, un refrigerador).
@since: 4/14/2011
@version: 1.0
"""
def __init__(self, capacidad, elementos={}, niveles={}):
"""
... | [
[
1,
0,
0.087,
0.0435,
0,
0.66,
0,
375,
0,
1,
0,
0,
375,
0,
0
],
[
3,
0,
0.5652,
0.913,
0,
0.66,
1,
725,
0,
1,
0,
0,
375,
0,
1
],
[
8,
1,
0.3043,
0.2174,
1,
0.81,
... | [
"from ITener import ITener",
"class ITenerOscuro(ITener):\n\t\n\t\"\"\"\n\tInterfaz que es implementada por Objetos contenedores cuyo contenido no es visible (por ejemplo, un refrigerador).\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tInterfaz que es implementada por Objetos contenedores cuyo ... |
from IAccion import IAccion
from IExcavador import IExcavador
from logico.problemas.objetos.Objeto import Objeto
# -*- coding: utf-8 -*-
class IExcavable(object):
__excavado = 0
__accion=None
def __init__(self, nombreObjeto=""):
if isinstance(self, Objeto):
nombreObjet... | [
[
1,
0,
0.027,
0.027,
0,
0.66,
0,
146,
0,
1,
0,
0,
146,
0,
0
],
[
1,
0,
0.0541,
0.027,
0,
0.66,
0.3333,
761,
0,
1,
0,
0,
761,
0,
0
],
[
1,
0,
0.0811,
0.027,
0,
0.66... | [
"from IAccion import IAccion",
"from IExcavador import IExcavador",
"from logico.problemas.objetos.Objeto import Objeto",
"class IExcavable(object):\n\n __excavado = 0\n __accion=None\n \n def __init__(self, nombreObjeto=\"\"):\n if isinstance(self, Objeto):\n nombreObjeto=self.g... |
# -*- coding: utf-8 -*-
from ITener import ITener
class IContenible(object):
"""
Interfaz que es implementada por todos los objetos que pueden ser contenidos por otros Objetos.
@since: 4/14/2011
@version: 1.0
"""
__nombre=None
""" Nombre del contenido """
__porcentaje=None
""" Porcentaje de... | [
[
1,
0,
0.0294,
0.0147,
0,
0.66,
0,
375,
0,
1,
0,
0,
375,
0,
0
],
[
3,
0,
0.5221,
0.9706,
0,
0.66,
1,
317,
0,
4,
0,
0,
186,
0,
6
],
[
8,
1,
0.1029,
0.0735,
1,
0.66,... | [
"from ITener import ITener",
"class IContenible(object):\n\t\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden ser contenidos por otros Objetos.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden ser contenidos po... |
# -*- coding: utf-8 -*-
class IPosicionable(object):
"""
Interfaz que es implementada por todos los objetos que pueden cambiar de posicion durante la ejecucion de un problema.
@since: 4/14/2011
@version: 1.0
"""
_x = 0
""" Abscisa """
_y = 0
""" Ordenada """
def __init__(self):
"""
... | [
[
3,
0,
0.5052,
0.9792,
0,
0.66,
0,
391,
0,
8,
0,
0,
186,
0,
2
],
[
8,
1,
0.0625,
0.0521,
1,
0.06,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
1,
0.1042,
0.0104,
1,
0.06,
... | [
"class IPosicionable(object):\n\t\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden cambiar de posicion durante la ejecucion de un problema.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden cambiar de posicion dur... |
import os.path
class IImprimible(object):
"""
Interfaz que es implementada por todos los objetos que tienen una representacion grafica en el GUI.
@since: 4/14/2011
@version: 1.0
"""
__imagen=""
""" Nombre del archivo de imagen a desplegar """
def __init__(self, imagen=""):
"""
Constructo... | [
[
1,
0,
0.0122,
0.0122,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
3,
0,
0.5122,
0.9878,
0,
0.66,
1,
682,
0,
7,
0,
0,
186,
0,
4
],
[
8,
1,
0.0732,
0.061,
1,
0.15,
... | [
"import os.path",
"class IImprimible(object):\n\t\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que tienen una representacion grafica en el GUI.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que tienen una representacion grafi... |
class IExcavador(object):
pass | [
[
3,
0,
0.75,
1,
0,
0.66,
0,
761,
0,
0,
0,
0,
186,
0,
0
]
] | [
"class IExcavador(object):\n pass"
] |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.IAbrir import IAbrir
from logico.problemas.acciones.ITenerParticula import ITenerParticula
class Sobre(Objeto, IAbrir, ITenerParticula):
"""
Contenedor desechable que se puede sostener y vertir. Se hizo pensando en representar... | [
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0.3333,
20,
0,
1,
0,
0,
20,
0,
0
],
[
1,
0,
0.129,
0.0323,
0,
0.6... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.IAbrir import IAbrir",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"class Sobre(Objeto, IAbrir, ITenerParticula):\n\t\n\t\"\"\"\n\tContenedor desechable que se puede sostener y vertir. Se hizo pensando en representar un ... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.ITenerParticula import ITenerParticula
class Caja(Objeto, ITenerParticula):
def __init__(self, nombre="", particula=None, peso=10):
Objeto.__init__(self, nombre,'Abono.png', peso)
ITenerParticula._... | [
[
1,
0,
0.2,
0.1,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.3,
0.1,
0,
0.66,
0.5,
202,
0,
1,
0,
0,
202,
0,
0
],
[
3,
0,
0.7,
0.5,
0,
0.66,
1,
868,... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"class Caja(Objeto, ITenerParticula):\n \n def __init__(self, nombre=\"\", particula=None, peso=10):\n Objeto.__init__(self, nombre,'Abono.png', peso)\n ITenerParticula.__init__(self, partic... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.IAbrir import IAbrir
from logico.problemas.acciones.ITenerOscuro import ITenerOscuro
class Gabinete(Objeto, IAbrir, ITenerOscuro):
"""
Objeto Gabinete, es un Ccontenedor Oscuro que se puede abrir.
@since: 4/14/2011
@versio... | [
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0.3333,
20,
0,
1,
0,
0,
20,
0,
0
],
[
1,
0,
0.129,
0.0323,
0,
0.6... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.IAbrir import IAbrir",
"from logico.problemas.acciones.ITenerOscuro import ITenerOscuro",
"class Gabinete(Objeto, IAbrir, ITenerOscuro):\n\t\n\t\"\"\"\n\tObjeto Gabinete, es un Ccontenedor Oscuro que se puede abrir.\n\t@since: 4/14/2011\n\t@version:... |
from Objeto import Objeto
from logico.problemas.acciones.ITenerParticula import ITenerParticula
from logico.problemas.acciones.IAbrir import IAbrir
class Bolsa(Objeto, IAbrir, ITenerParticula):
"""
Objeto Bolsa, representa el objeto bolsa.
@since: 4/14/2011
@version: 1.0
"""
de... | [
[
1,
0,
0.0323,
0.0323,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0.3333,
202,
0,
1,
0,
0,
202,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"from logico.problemas.acciones.IAbrir import IAbrir",
"class Bolsa(Objeto, IAbrir, ITenerParticula):\n \"\"\"\n Objeto Bolsa, representa el objeto bolsa.\n @since: 4/14/2011\n @version: 1.0\n ... |
# -*- coding: utf-8 -*-
from logico.problemas.acciones.IMovible import IMovible
from logico.problemas.acciones.IVisible import IVisible
from logico.problemas.acciones.IImprimible import IImprimible
class Objeto(IMovible, IVisible, IImprimible):
"""
Inicio de la jerarquia de Herencia. De este objeto se desp... | [
[
1,
0,
0.0233,
0.0116,
0,
0.66,
0,
347,
0,
1,
0,
0,
347,
0,
0
],
[
1,
0,
0.0349,
0.0116,
0,
0.66,
0.3333,
904,
0,
1,
0,
0,
904,
0,
0
],
[
1,
0,
0.0465,
0.0116,
0,
... | [
"from logico.problemas.acciones.IMovible import IMovible",
"from logico.problemas.acciones.IVisible import IVisible",
"from logico.problemas.acciones.IImprimible import IImprimible",
"class Objeto(IMovible, IVisible, IImprimible):\n\t\n\t\"\"\"\n\tInicio de la jerarquia de Herencia. De este objeto se desprend... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.ITenerParticula import ITenerParticula
class Regadera(Objeto, ITenerParticula):
def __init__(self, nombre="", particula=None, peso=10):
Objeto.__init__(self, nombre,'Regadera.png', peso)
ITenerParticula.__... | [
[
1,
0,
0.2222,
0.1111,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.3333,
0.1111,
0,
0.66,
0.5,
202,
0,
1,
0,
0,
202,
0,
0
],
[
3,
0,
0.7778,
0.5556,
0,
0.6... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"class Regadera(Objeto, ITenerParticula):\n \n def __init__(self, nombre=\"\", particula=None, peso=10):\n Objeto.__init__(self, nombre,'Regadera.png', peso)\n ITenerParticula.__init__(self,... |
# -*- coding: utf-8 -*-
from logico.problemas.acciones.IRevolvible import IRevolvible
from logico.problemas.acciones.IParticula import IParticula
from Objeto import Objeto
class Agua(IRevolvible, IParticula, Objeto):
"""
Objeto Agua, se puede revolver y puede contener objetos
@since: 4/14/2011
@version... | [
[
1,
0,
0.0588,
0.0294,
0,
0.66,
0,
28,
0,
1,
0,
0,
28,
0,
0
],
[
1,
0,
0.0882,
0.0294,
0,
0.66,
0.3333,
458,
0,
1,
0,
0,
458,
0,
0
],
[
1,
0,
0.1176,
0.0294,
0,
0.... | [
"from logico.problemas.acciones.IRevolvible import IRevolvible",
"from logico.problemas.acciones.IParticula import IParticula",
"from Objeto import Objeto",
"class Agua(IRevolvible, IParticula, Objeto):\n\t\n\t\"\"\"\n\tObjeto Agua, se puede revolver y puede contener objetos\n\t@since: 4/14/2011\n\t@version: ... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.ITener import ITener
class Mesa(Objeto, ITener):
"""
Contenedor que representa una Mesa. La Mesa se puede mover, guardar y dejar sobre ella otros Objetos.
@since: 4/14/2011
@version: 1.0
"""
def __init__(self, nombre... | [
[
1,
0,
0.05,
0.025,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.075,
0.025,
0,
0.66,
0.5,
488,
0,
1,
0,
0,
488,
0,
0
],
[
3,
0,
0.5625,
0.9,
0,
0.66,
1... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITener import ITener",
"class Mesa(Objeto, ITener):\n\t\n\t\"\"\"\n\tContenedor que representa una Mesa. La Mesa se puede mover, guardar y dejar sobre ella otros Objetos.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tContenedor que ... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.ITenerParticula import ITenerParticula
class Bandeja(Objeto, ITenerParticula):
"""
Objeto Bandeja, puede contener objetos y fue pensada para representar la bandeja de cubitos de hielo
@since: 4/14/2011
@version: 1.0
"""
... | [
[
1,
0,
0.0625,
0.0312,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.0938,
0.0312,
0,
0.66,
0.5,
202,
0,
1,
0,
0,
202,
0,
0
],
[
3,
0,
0.5781,
0.875,
0,
0.66... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"class Bandeja(Objeto, ITenerParticula):\n\t\n\t\"\"\"\n\tObjeto Bandeja, puede contener objetos y fue pensada para representar la bandeja de cubitos de hielo\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.IParticula import IParticula
class Grano(Objeto, IParticula):
"""
Objeto Grano. Representa una particula de algun elemento que se puede contener o revolver.
@since: 4/14/2011
@version: 1.0
"""
def __init__(self, cont... | [
[
1,
0,
0.069,
0.0345,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0.5,
458,
0,
1,
0,
0,
458,
0,
0
],
[
3,
0,
0.5862,
0.8621,
0,
0.66... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.IParticula import IParticula",
"class Grano(Objeto, IParticula):\n\t\n\t\"\"\"\n\tObjeto Grano. Representa una particula de algun elemento que se puede contener o revolver.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tObjeto Grano.... |
from Objeto import Objeto
from logico.problemas.acciones.IExcavador import IExcavador
class Pala(Objeto, IExcavador):
"""
Objeto Pala, representa el objeto pala para plantar.
@since: 4/14/2011
@version: 1.0
"""
def __init__(self, nombre="", peso=10):
"""
Constr... | [
[
1,
0,
0.0435,
0.0435,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.087,
0.0435,
0,
0.66,
0.5,
17,
0,
1,
0,
0,
17,
0,
0
],
[
3,
0,
0.587,
0.8696,
0,
0.66,
... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.IExcavador import IExcavador",
"class Pala(Objeto, IExcavador):\n \"\"\"\n Objeto Pala, representa el objeto pala para plantar.\n @since: 4/14/2011\n @version: 1.0\n \"\"\"\n \n def __init__(self, nombre=\"\", peso=10):",
" \... |
from Objeto import Objeto
from logico.problemas.acciones.ITenerParticula import ITenerParticula
class Frasco(Objeto, ITenerParticula):
"""
Objeto Frasco, representa el objeto frasco.
@since: 4/14/2011
@version: 1.0
"""
def __init__(self, nombre="", particula=None, peso=5):
... | [
[
1,
0,
0.0333,
0.0333,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.0667,
0.0333,
0,
0.66,
0.5,
202,
0,
1,
0,
0,
202,
0,
0
],
[
3,
0,
0.5667,
0.9,
0,
0.66,
... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"class Frasco(Objeto, ITenerParticula):\n \"\"\"\n Objeto Frasco, representa el objeto frasco.\n @since: 4/14/2011\n @version: 1.0\n \"\"\"\n \n def __init__(self, nombre=\"\", particula=No... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.IAbrir import IAbrir
from logico.problemas.acciones.ITenerOscuro import ITenerOscuro
class Despensa(Objeto, IAbrir, ITenerOscuro):
"""
Objeto despensa, es un Contenedor Oscuro y se puede abrir para buscar en su interior.
@si... | [
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0.3333,
20,
0,
1,
0,
0,
20,
0,
0
],
[
1,
0,
0.129,
0.0323,
0,
0.6... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.IAbrir import IAbrir",
"from logico.problemas.acciones.ITenerOscuro import ITenerOscuro",
"class Despensa(Objeto, IAbrir, ITenerOscuro):\n\t\n\t\"\"\"\n\tObjeto despensa, es un Contenedor Oscuro y se puede abrir para buscar en su interior.\n\t@since... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.IAbrir import IAbrir
from logico.problemas.acciones.ITenerOscuro import ITenerOscuro
class Refrigerador(Objeto, IAbrir, ITenerOscuro):
"""
Contenedor oscuro que se puede abrir. Representa un refrigerador comun de cocina. No se... | [
[
1,
0,
0.0588,
0.0294,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.0882,
0.0294,
0,
0.66,
0.3333,
20,
0,
1,
0,
0,
20,
0,
0
],
[
1,
0,
0.1176,
0.0294,
0,
0.... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.IAbrir import IAbrir",
"from logico.problemas.acciones.ITenerOscuro import ITenerOscuro",
"class Refrigerador(Objeto, IAbrir, ITenerOscuro):\n\t\n\t\"\"\"\n\tContenedor oscuro que se puede abrir. Representa un refrigerador comun de cocina. No se hac... |
# -*- coding: utf-8 -*-
from logico.problemas.acciones.IParticula import IParticula
from logico.problemas.acciones.IExcavable import IExcavable
from Objeto import Objeto
class Tierra(IParticula, IExcavable, Objeto):
def __init__(self, contenedor=None, nombre="tierra"):
Objeto.__init__(self, no... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
458,
0,
1,
0,
0,
458,
0,
0
],
[
1,
0,
0.2727,
0.0909,
0,
0.66,
0.3333,
831,
0,
1,
0,
0,
831,
0,
0
],
[
1,
0,
0.3636,
0.0909,
0,
... | [
"from logico.problemas.acciones.IParticula import IParticula",
"from logico.problemas.acciones.IExcavable import IExcavable",
"from Objeto import Objeto",
"class Tierra(IParticula, IExcavable, Objeto):\n \n def __init__(self, contenedor=None, nombre=\"tierra\"):\n Objeto.__init__(self, nombre, ''... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.ITenerParticula import ITenerParticula
class Vaso(Objeto, ITenerParticula):
"""
Contenedor de vidrio que se puede sostener y vertir. Representa un vaso para contener liquidos.
@since: 4/14/2011
@version: 1.0
... | [
[
1,
0,
0.069,
0.0345,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0.5,
202,
0,
1,
0,
0,
202,
0,
0
],
[
3,
0,
0.5862,
0.8621,
0,
0.66... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"class Vaso(Objeto, ITenerParticula):\n \n \"\"\"\n Contenedor de vidrio que se puede sostener y vertir. Representa un vaso para contener liquidos.\n @since: 4/14/2011\n @version: 1.0\n \"\"\"... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.IApagable import IApagable
class Lampara(Objeto, IApagable):
"""
Objeto que se puede apagar y encender. Representa un foco de luz en la Escena.
@since: 4/14/2011
@version: 1.0
"""
def __init__(self):
"""
Construc... | [
[
1,
0,
0.1111,
0.0556,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.1667,
0.0556,
0,
0.66,
0.5,
972,
0,
1,
0,
0,
972,
0,
0
],
[
3,
0,
0.6111,
0.8333,
0,
0.6... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.IApagable import IApagable",
"class Lampara(Objeto, IApagable):\n\t\n\t\"\"\"\n\tObjeto que se puede apagar y encender. Representa un foco de luz en la Escena.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tObjeto que se puede apagar... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.ITenerParticula import ITenerParticula
class Tarro(Objeto, ITenerParticula):
"""
Contenedor de vidrio que se puede sostener y vertir. Se hizo pensando en representar un tarro de azucar.
@since: 4/14/2011
@version: 1.0
"... | [
[
1,
0,
0.0667,
0.0333,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.1,
0.0333,
0,
0.66,
0.5,
202,
0,
1,
0,
0,
202,
0,
0
],
[
3,
0,
0.5667,
0.8333,
0,
0.66,
... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"class Tarro(Objeto, ITenerParticula):\n\t\n\t\"\"\"\n\tContenedor de vidrio que se puede sostener y vertir. Se hizo pensando en representar un tarro de azucar.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
class Cuchara(Objeto):
"""
Objeto cuchara. Representa una herramienta de la cocina.
@since: 4/14/2011
@version: 1.0
"""
def __init__(self, nombre="", peso=6):
"""
Constructor
@type self: Cuchara
@param self: referencia al objeto Cuchara... | [
[
1,
0,
0.0833,
0.0417,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
3,
0,
0.5833,
0.875,
0,
0.66,
1,
707,
0,
1,
0,
0,
407,
0,
1
],
[
8,
1,
0.3333,
0.2083,
1,
0.01,
... | [
"from Objeto import Objeto",
"class Cuchara(Objeto):\n\t\n\t\"\"\"\n\tObjeto cuchara. Representa una herramienta de la cocina.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tObjeto cuchara. Representa una herramienta de la cocina.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\tdef __init... |
# -*- coding: utf-8 -*-
from logico.problemas.acciones.IParticula import IParticula
from Objeto import Objeto
class Abono(IParticula, Objeto):
def __init__(self, contenedor=None, nombre="abono"):
Objeto.__init__(self, nombre, '', 0)
IParticula.__init__(self, contenedor=contenedor, esLi... | [
[
1,
0,
0.2222,
0.1111,
0,
0.66,
0,
458,
0,
1,
0,
0,
458,
0,
0
],
[
1,
0,
0.3333,
0.1111,
0,
0.66,
0.5,
407,
0,
1,
0,
0,
407,
0,
0
],
[
3,
0,
0.7778,
0.5556,
0,
0.6... | [
"from logico.problemas.acciones.IParticula import IParticula",
"from Objeto import Objeto",
"class Abono(IParticula, Objeto):\n \n def __init__(self, contenedor=None, nombre=\"abono\"):\n Objeto.__init__(self, nombre, '', 0)\n IParticula.__init__(self, contenedor=contenedor, esLiquida=False,... |
# -*- coding: utf-8 -*-
from logico.problemas.acciones.IParticula import IParticula
from Objeto import Objeto
class Flor(IParticula, Objeto):
def __init__(self, contenedor=None, nombre="flor"):
Objeto.__init__(self, nombre, '', 0)
IParticula.__init__(self, contenedor, esLiquida=False) | [
[
1,
0,
0.2222,
0.1111,
0,
0.66,
0,
458,
0,
1,
0,
0,
458,
0,
0
],
[
1,
0,
0.3333,
0.1111,
0,
0.66,
0.5,
407,
0,
1,
0,
0,
407,
0,
0
],
[
3,
0,
0.7778,
0.5556,
0,
0.6... | [
"from logico.problemas.acciones.IParticula import IParticula",
"from Objeto import Objeto",
"class Flor(IParticula, Objeto):\n \n def __init__(self, contenedor=None, nombre=\"flor\"):\n Objeto.__init__(self, nombre, '', 0)\n IParticula.__init__(self, contenedor, esLiquida=False)",
" def... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.ITenerParticula import ITenerParticula
class Maceta(Objeto, ITenerParticula):
def __init__(self, nombre="", particula=None, peso=30):
Objeto.__init__(self, nombre,'Maceta3.png', peso)
ITenerParticu... | [
[
1,
0,
0.2,
0.1,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.3,
0.1,
0,
0.66,
0.5,
202,
0,
1,
0,
0,
202,
0,
0
],
[
3,
0,
0.7,
0.5,
0,
0.66,
1,
719,... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"class Maceta(Objeto, ITenerParticula):\n \n def __init__(self, nombre=\"\", particula=None, peso=30):\n Objeto.__init__(self, nombre,'Maceta3.png', peso)\n ITenerParticula.__init__(self, pa... |
# -*- coding: utf-8 -*-
from logico.problemas.acciones.IParticula import IParticula
from Objeto import Objeto
class Algodon(IParticula, Objeto):
def __init__(self, contenedor=None, nombre="algodon"):
Objeto.__init__(self, nombre, '', 0)
IParticula.__init__(self, contenedor, esLiquida=F... | [
[
1,
0,
0.2222,
0.1111,
0,
0.66,
0,
458,
0,
1,
0,
0,
458,
0,
0
],
[
1,
0,
0.3333,
0.1111,
0,
0.66,
0.5,
407,
0,
1,
0,
0,
407,
0,
0
],
[
3,
0,
0.7778,
0.5556,
0,
0.6... | [
"from logico.problemas.acciones.IParticula import IParticula",
"from Objeto import Objeto",
"class Algodon(IParticula, Objeto):\n \n def __init__(self, contenedor=None, nombre=\"algodon\"):\n Objeto.__init__(self, nombre, '', 0)\n IParticula.__init__(self, contenedor, esLiquida=False, esAbso... |
# -*- coding: utf-8 -*-
from Objeto import Objeto
from logico.problemas.acciones.ITenerParticula import ITenerParticula
class Pichel(Objeto, ITenerParticula):
"""
Contenedor de vidrio que se puede sostener y vertir. Representa una jarra para contener liquidos.
@since: 4/14/2011
@version: 1.0
"""
... | [
[
1,
0,
0.069,
0.0345,
0,
0.66,
0,
407,
0,
1,
0,
0,
407,
0,
0
],
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0.5,
202,
0,
1,
0,
0,
202,
0,
0
],
[
3,
0,
0.5862,
0.8621,
0,
0.66... | [
"from Objeto import Objeto",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"class Pichel(Objeto, ITenerParticula):\n\t\n\t\"\"\"\n\tContenedor de vidrio que se puede sostener y vertir. Representa una jarra para contener liquidos.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t... |
# -*- coding: utf-8 -*-
from Escena import Escena
from heroe import Heroe
from objetos.Agua import Agua
from objetos.Abono import Abono
from objetos.Bolsa import Bolsa
from objetos.Flor import Flor
from objetos.Maceta import Maceta
from objetos.Pala import Pala
from objetos.Regadera import Regadera
from objet... | [
[
1,
0,
0.023,
0.0115,
0,
0.66,
0,
225,
0,
1,
0,
0,
225,
0,
0
],
[
1,
0,
0.0345,
0.0115,
0,
0.66,
0.0909,
502,
0,
1,
0,
0,
502,
0,
0
],
[
1,
0,
0.046,
0.0115,
0,
0.... | [
"from Escena import Escena",
"from heroe import Heroe",
"from objetos.Agua import Agua",
"from objetos.Abono import Abono",
"from objetos.Bolsa import Bolsa",
"from objetos.Flor import Flor",
"from objetos.Maceta import Maceta",
"from objetos.Pala import Pala",
"from objetos.Regadera import Regadera... |
# -*- coding: utf-8 -*-
from objetos.Objeto import Objeto
from heroe import Heroe
from logico.problemas.acciones.ITener import ITener
from logico.problemas.acciones.ITenerOscuro import ITenerOscuro
from logico.problemas.acciones.ITenerParticula import ITenerParticula
from acciones.IAccion import IAccion
class Es... | [
[
1,
0,
0.0045,
0.0023,
0,
0.66,
0,
875,
0,
1,
0,
0,
875,
0,
0
],
[
1,
0,
0.0068,
0.0023,
0,
0.66,
0.1667,
502,
0,
1,
0,
0,
502,
0,
0
],
[
1,
0,
0.0091,
0.0023,
0,
... | [
"from objetos.Objeto import Objeto",
"from heroe import Heroe",
"from logico.problemas.acciones.ITener import ITener",
"from logico.problemas.acciones.ITenerOscuro import ITenerOscuro",
"from logico.problemas.acciones.ITenerParticula import ITenerParticula",
"from acciones.IAccion import IAccion",
"clas... |
# -*- coding: utf-8 -*-
from Escena import Escena
from objetos.Refrigerador import Refrigerador
from objetos.Despensa import Despensa
from objetos.Gabinete import Gabinete
from objetos.Bandeja import Bandeja
from objetos.Cuchara import Cuchara
from objetos.Tarro import Tarro
from objetos.Sobre import Sobre
fro... | [
[
1,
0,
0.0171,
0.0085,
0,
0.66,
0,
225,
0,
1,
0,
0,
225,
0,
0
],
[
1,
0,
0.0256,
0.0085,
0,
0.66,
0.0769,
870,
0,
1,
0,
0,
870,
0,
0
],
[
1,
0,
0.0342,
0.0085,
0,
... | [
"from Escena import Escena",
"from objetos.Refrigerador import Refrigerador",
"from objetos.Despensa import Despensa",
"from objetos.Gabinete import Gabinete",
"from objetos.Bandeja import Bandeja",
"from objetos.Cuchara import Cuchara",
"from objetos.Tarro import Tarro",
"from objetos.Sobre import So... |
# -*- coding: utf-8 -*-
from IPosicionable import IPosicionable
class IMovible(IPosicionable):
"""
Interfaz que es implementada por todos los objetos que pueden moverse.
@since: 4/14/2011
@version: 1.0
"""
pass
| [
[
1,
0,
0.2,
0.1,
0,
0.66,
0,
391,
0,
1,
0,
0,
391,
0,
0
],
[
3,
0,
0.6,
0.7,
0,
0.66,
1,
975,
0,
0,
0,
0,
391,
0,
0
],
[
8,
1,
0.6,
0.5,
1,
0.21,
0,
0,
... | [
"from IPosicionable import IPosicionable",
"class IMovible(IPosicionable):\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden moverse.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"\n\tpass",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden moverse.\n\t@since: ... |
# -*- coding: utf-8 -*-
import sys
from IMovible import *
from IPosturaCambiable import *
from IImprimible import *
from ITener import *
class Heroe(IMovible, IPosturaCambiable, IImprimible, ITener):
"""
Esta clase representa al protagonista en la solucion de un problema en el paradigma ABJ. Puede cambia... | [
[
1,
0,
0.0241,
0.012,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0361,
0.012,
0,
0.66,
0.2,
975,
0,
1,
0,
0,
975,
0,
0
],
[
1,
0,
0.0482,
0.012,
0,
0.66,
... | [
"import sys",
"from IMovible import *",
"from IPosturaCambiable import *",
"from IImprimible import *",
"from ITener import *",
"class Heroe(IMovible, IPosturaCambiable, IImprimible, ITener):\n\t\n\t\"\"\"\n\tEsta clase representa al protagonista en la solucion de un problema en el paradigma ABJ. Puede ca... |
# -*- coding: utf-8 -*-
class IPosicionable:
"""
Interfaz que es implementada por todos los objetos que pueden cambiar de posicion durante la ejecucion de un problema.
@since: 4/14/2011
@version: 1.0
"""
_x = 0
""" Abscisa """
_y = 0
""" Ordenada """
def __init__(self):
"""
Constr... | [
[
3,
0,
0.5116,
0.9884,
0,
0.66,
0,
391,
0,
7,
0,
0,
0,
0,
3
],
[
8,
1,
0.0698,
0.0581,
1,
0.62,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
1,
0.1163,
0.0116,
1,
0.62,
... | [
"class IPosicionable:\n\t\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden cambiar de posicion durante la ejecucion de un problema.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden cambiar de posicion durante la ... |
# -*- coding: utf-8 -*-
import os.path
class IImprimible(object):
"""
Interfaz que es implementada por todos los objetos que tienen una representacion grafica en el GUI.
@since: 4/14/2011
@version: 1.0
"""
_imagen=""
""" URL de la imagen que representara graficamente al Heroe """
def __init__... | [
[
1,
0,
0.0408,
0.0204,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
3,
0,
0.5306,
0.9592,
0,
0.66,
1,
682,
0,
3,
0,
0,
186,
0,
4
],
[
8,
1,
0.1429,
0.102,
1,
0.88,
... | [
"import os.path",
"class IImprimible(object):\n\t\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que tienen una representacion grafica en el GUI.\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que tienen una representacion grafi... |
# -*- coding: utf-8 -*-
class IPosturaCambiable:
"""
Interfaz que es implementada por todos los objetos que pueden cambiar de postura segun el Enum _postura (especificado abajo).
@since: 4/14/2011
@version: 1.0
"""
_postura = 0
"""
Variable (enum) que indica la postura del ente que lo posea.
0:... | [
[
3,
0,
0.5169,
0.9831,
0,
0.66,
0,
275,
0,
4,
0,
0,
0,
0,
0
],
[
8,
1,
0.1017,
0.0847,
1,
0.03,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
1,
0.1695,
0.0169,
1,
0.03,
... | [
"class IPosturaCambiable:\n\t\n\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden cambiar de postura segun el Enum _postura (especificado abajo).\n\t@since: 4/14/2011\n\t@version: 1.0\n\t\"\"\"",
"\t\"\"\"\n\tInterfaz que es implementada por todos los objetos que pueden cambiar de postura s... |
# -*- coding: utf-8 -*-
from Escena import Escena
from heroe import Heroe
from objetos.Agua import Agua
from objetos.Algodon import Algodon
from objetos.Frasco import Frasco
from objetos.Vaso import Vaso
from objetos.Grano import Grano
from objetos.Bolsa import Bolsa
from objetos.Sobre import Sobre
class frij... | [
[
1,
0,
0.0253,
0.0127,
0,
0.66,
0,
225,
0,
1,
0,
0,
225,
0,
0
],
[
1,
0,
0.038,
0.0127,
0,
0.66,
0.1111,
502,
0,
1,
0,
0,
502,
0,
0
],
[
1,
0,
0.0506,
0.0127,
0,
0... | [
"from Escena import Escena",
"from heroe import Heroe",
"from objetos.Agua import Agua",
"from objetos.Algodon import Algodon",
"from objetos.Frasco import Frasco",
"from objetos.Vaso import Vaso",
"from objetos.Grano import Grano",
"from objetos.Bolsa import Bolsa",
"from objetos.Sobre import Sobre... |
from problemas import casa
from problemas import frijolero
from problemas import jardin | [
[
1,
0,
0.3333,
0.3333,
0,
0.66,
0,
559,
0,
1,
0,
0,
559,
0,
0
],
[
1,
0,
0.6667,
0.3333,
0,
0.66,
0.5,
559,
0,
1,
0,
0,
559,
0,
0
],
[
1,
0,
1,
0.3333,
0,
0.66,
... | [
"from problemas import casa",
"from problemas import frijolero",
"from problemas import jardin"
] |
'''
Created on Apr 12, 2011
@author: Ubux
'''
import unittest
from logico.problemas import IAbrir
class IAbrirTest(unittest.TestCase):
def setUp(self):
self.o=IAbrir.IAbrir()
def test_Abrir(self):
self.o.abrir()
self.assertTrue(self.o.getAbierto())
... | [
[
8,
0,
0.0811,
0.1351,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1622,
0.027,
0,
0.66,
0.25,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.1892,
0.027,
0,
0.66,
... | [
"'''\nCreated on Apr 12, 2011\n\n@author: Ubux\n'''",
"import unittest",
"from logico.problemas import IAbrir",
"class IAbrirTest(unittest.TestCase):\n \n def setUp(self):\n self.o=IAbrir.IAbrir()\n\n def test_Abrir(self):\n self.o.abrir()\n self.assertTrue(self.o.getAbierto(... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'PrincipalUI.ui'
#
# Created: Sun May 29 23:39:31 2011
# by: PyQt4 UI code generator 4.5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_MainWindow(object):
def setupU... | [
[
1,
0,
0.0427,
0.0043,
0,
0.66,
0,
154,
0,
2,
0,
0,
154,
0,
0
],
[
3,
0,
0.5235,
0.9487,
0,
0.66,
1,
573,
0,
2,
0,
0,
186,
0,
99
],
[
2,
1,
0.4722,
0.8376,
1,
0.11... | [
"from PyQt4 import QtCore, QtGui",
"class Ui_MainWindow(object):\n def setupUi(self, MainWindow):\n MainWindow.setObjectName(\"MainWindow\")\n MainWindow.resize(1119, 939)\n MainWindow.setAcceptDrops(True)\n icon = QtGui.QIcon()\n icon.addPixmap(QtGui.QPixmap(\"../.designer/b... |
# -*- coding: utf-8 -*-
"""
Created on Wed May 11 14:50:46 2011
@author: Maucomix
"""
from PyQt4 import QtGui
from PyQt4 import QtCore
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import os.path
class ABJFrame(QFrame):
_lol=""
_sele=None
def __init__(self, parent):
... | [
[
8,
0,
0.1379,
0.1724,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2759,
0.0345,
0,
0.66,
0.1667,
154,
0,
1,
0,
0,
154,
0,
0
],
[
1,
0,
0.3103,
0.0345,
0,
0.66... | [
"\"\"\"\nCreated on Wed May 11 14:50:46 2011\n\n@author: Maucomix\n\"\"\"",
"from PyQt4 import QtGui",
"from PyQt4 import QtCore",
"from PyQt4.QtGui import *",
"from PyQt4.QtCore import *",
"import os.path",
"class ABJFrame(QFrame):\n _lol=\"\"\n _sele=None\n \n def __init__(self, parent):\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.