code
stringlengths
1
1.72M
language
stringclasses
1 value
class Rune(): def __init__(self): self.parent=None self.Name="Glyph of Acumen" self.Icon="b_3_3.png" self.IconData=None self.Tags=['energy','glyph'] self.Costs = 820 self.Description="Increases your Energy by 2.2" self.RichText_Description="" self.Loa...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Glyph of Celerity" self.Icon="b_2_3.png" self.IconData=None self.Tags=['energy','glyph'] self.Costs = 820 self.Description="Reduces your Spell Cooldown by 0.0532% per level" self.RichText_De...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Quintessence of Regeneration" self.Icon="bl_2_3.png" self.IconData=None self.Tags=['health_regen','quintessence'] self.Costs = 2050 self.Description="Increases your Health Regen by 0.28 per Level" ...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Seal of Force" self.Icon="y_2_3.png" self.IconData=None self.Tags=['energy','seal'] self.Costs = 410 self.Description="Increases your Ability Power for 0.10 per level" self.RichText_Descript...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Mark of Replentishment" self.Icon="r_3_3.png" self.IconData=None self.Tags=['mana_regen','mark'] self.Costs = 205 self.Description="Increases your Mana Regen by 0.26" self.RichText_Descripti...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Seal of Focus" self.Icon="y_1_3.png" self.IconData=None self.Tags=['energy','seal'] self.Costs = 410 self.Description="Increases your Spell Cooldown Reduction by 0.29%" self.RichText_Descrip...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Glyph of Replentishment" self.Icon="b_3_3.png" self.IconData=None self.Tags=['mana_regen','glyph'] self.Costs = 410 self.Description="Increases your Mana Regen by 0.31" self.RichText_Descrip...
Python
import os import sys import re __all__ = [] dirList=os.listdir(sys.path[0] + "/ftllibs/runes") for i in dirList: m = re.match("(r_.+?).py$",i) if m: __all__.append(m.groups()[0])
Python
class Rune(): def __init__(self): self.parent=None self.Name="Quintessence of Resilience" self.Icon="bl_1_3.png" self.IconData=None self.Tags=['armor','quintessence'] self.Costs = 1025 self.Description="Increases your Armor by 4.26" self.RichText_Descr...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Quintessence of Strength" self.Icon="bl_1_3.png" self.IconData=None self.Tags=['attack_damage','quintessence'] self.Costs = 1025 self.Description="Increases your attack damage by 2.25" self....
Python
class Rune(): def __init__(self): self.parent=None self.Name="Glyph of Knowledge" self.Icon="b_2_3.png" self.IconData=None self.Tags=['mana','glyph'] self.Costs = 410 self.Description="Increases your Mana by 1.42 per level" self.RichText_Description=""...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Quintessence of Replentishment" self.Icon="bl_3_3.png" self.IconData=None self.Tags=['mana_regen','quintessence'] self.Costs = 1025 self.Description="Increases your Mana Regen by 1.25" self....
Python
class Rune(): def __init__(self): self.parent=None self.Name="Glyph of Shielding" self.Icon="b_4_3.png" self.IconData=None self.Tags=['magic_resist','Glyph'] self.Costs = 205 self.Description="Increases your magic resist by 0.15 per level" self.RichTex...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Glyph of Resilience" self.Icon="b_1_3.png" self.IconData=None self.Tags=['armor','glyph'] self.Costs = 205 self.Description="Increases your Armor by 0.7" self.RichText_Description="" self.L...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Seal of Fortitude" self.Icon="y_3_3.png" self.IconData=None self.Tags=['energy','seal'] self.Costs = 820 self.Description="Increases your Health by 5.35" self.RichText_Description="" ...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Quintessence of Clarity" self.Icon="bl_4_3.png" self.IconData=None self.Tags=['energy','quintessence'] self.Costs = 820 self.Description="Increases your Mana Reg. by 0.24 per Level" self.Ric...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Quintessence of Fortitude" self.Icon="bl_3_3.png" self.IconData=None self.Tags=['energy','quintessence'] self.Costs = 2050 self.Description="Increases your Health by 26" self.RichText_Descri...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Quintessence of Endurance" self.Icon="bl_2_3.png" self.IconData=None self.Tags=['energy','quintessence'] self.Costs = 820 self.Description="Increases your Health by 1.5%" self.RichText_Descr...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Seal of Fortitude" self.Icon="y_1_3.png" self.IconData=None self.Tags=['critical_damage','seal'] self.Costs = 820 self.Description="Increases your Critical Damage by 0.78%" self.RichText_Des...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Quintessence of Focus" self.Icon="bl_1_3.png" self.IconData=None self.Tags=['energy','quintessence'] self.Costs = 820 self.Description="Increases your Spell Cooldown Reduction by 1.64%" self...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Glyph of Focus" self.Icon="b_1_3.png" self.IconData=None self.Tags=['energy','glyph'] self.Costs = 820 self.Description="Increases your Spell Cooldown Reduction by 0.655%" self.RichText_Desc...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Quintessence of Alacrity" self.Icon="bl_3_3.png" self.IconData=None self.Tags=['attack_speed','quintessence'] self.Costs = 1025 self.Description="Increases your Attack Speed by 3.4%" self.Ri...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Mark of Resilience" self.Icon="r_1_3.png" self.IconData=None self.Tags=['armor','mark'] self.Costs = 205 self.Description="Increases your Armor by 0.91" self.RichText_Description="" self.Lo...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Seal of Defense" self.Icon="y_2_3.png" self.IconData=None self.Tags=['energy','seal'] self.Costs = 820 self.Description="Increases your Armor by 0.15 per Level" self.RichText_Description="" ...
Python
class Rune(): def __init__(self): self.parent=None self.Name="Seal of Knowledge" self.Icon="y_2_3.png" self.IconData=None self.Tags=['mana','seal'] self.Costs = 410 self.Description="Increases your Mana by 1.17 per level" self.RichText_Description="" ...
Python
from ftllibs.champions import * import sys import re import copy class Champs(): def __init__(self,parent): self.parent=parent self.CHAMPS={} self.ChampIndex=[] self.ModuleIndex=[] for i in sys.modules.keys(): m = re.match('ftllibs.champions.(c_\w+)',i) ...
Python
import sys from .. FTL import ITEMS from .. FTL import MASTERIES class Champ: def __init__(self): self.ID=84 self.Name="Akali" self.InternalName="akali" self.Title="The Fist of Shadow" self.Icon="Akali.png" self.IconData=None self.IconSmall="84.jpg" s...
Python
import os import sys import re __all__ = [] dirList=os.listdir(sys.path[0] + "/ftllibs/champions") for i in dirList: m = re.match("(c_\w+?).py$",i) if m: __all__.append(m.groups()[0])
Python
import sys from .. FTL import ITEMS from .. FTL import MASTERIES class Champ: def __init__(self): self.ID=78 self.Name="Poppy" self.InternalName="poppy" self.Title="The Iron Ambassador" self.Icon="Poppy.png" self.IconData=None self.IconSmall="78.jpg" ...
Python
class Masteries(object): def __init__(self,parent): self.Masteries={} self.parent=parent self.InitMasteriesLimitList() self.InitOffensiveMasteriesList() self.InitDefensiveMasteriesList() self.InitUtilityMasteriesList() def SetMasteries(self,mastery): self...
Python
from ftllibs.ITEMS import Items ITEMS = Items(None) from ftllibs.MASTERIES import Masteries MASTERIES = Masteries(None) from ftllibs.RUNES import Runes RUNES = Runes(None) from ftllibs.CHAMPS import Champs from ftllibs.SavedDataStore import BuildDataStore,MasteriesDataStore,RunesDataStore,RecommendedDataStore # glob...
Python
from PyQt4 import QtGui,QtCore from ftllibs.FTL import RUNES from ftllibs.ui.UI_Runes_Menu import RunesMenu from ftllibs.FTL import RunesDS class RunesTab(QtGui.QWidget): def __init__(self,parent=None): super(RunesTab,self).__init__() self.MasterLayout = QtGui.QGridLayout() self.setLayout(s...
Python
from PyQt4 import QtGui,QtCore #from ftllibs.FTL import CHAMPS as CHAMPS import ftllibs.FTL as FTL class ChampTab(QtGui.QWidget): S_OpenChampBuild = QtCore.pyqtSignal([int]) def __init__(self): super(ChampTab,self).__init__() self.MasterLayout = QtGui.QHBoxLayout() self.setLayout(self.M...
Python
from PyQt4 import QtGui,QtCore from ftllibs.FTL import CHAMPS as CHAMPS from ftllibs.FTL import ITEMS as ITEMS from ftllibs.FTL import RecommendedDS as RecommendedDS from ftllibs.ui.UI_ChampDisplay import UI_ChampDisplay from ftllibs.ui.UI_ItemMenu import ItemMenu import copy class RecommendedTab(QtGui.QWidget): ...
Python
from PyQt4 import QtGui,QtCore from ftllibs.FTL import CHAMPS as CHAMPS class UI_SlotItemDisplay(QtGui.QWidget): def __init__(self,parent=None): super(UI_SlotItemDisplay,self).__init__() self.Champ=None self.Build=None self.IconList=[] def SetChamp(self,Champ): self.Cha...
Python
from PyQt4 import QtGui,QtCore from ftllibs.FTL import CHAMPS as CHAMPS import copy class UI_ChampDisplay(QtGui.QWidget): ChampLevelChange = QtCore.pyqtSignal([str]) def __init__(self,parent=None,ChampID=None,ChampLevel=18): super(UI_ChampDisplay,self).__init__() self.Champ=parent.Champ ...
Python
from PyQt4 import QtGui,QtCore from ftllibs.FTL import CHAMPS as CHAMPS from ftllibs.FTL import ITEMS as ITEMS from ftllibs.FTL import BuildDS as BuildDS from ftllibs.FTL import MasteriesDS as MasteriesDS from ftllibs.ui.UI_ChampDisplay import UI_ChampDisplay from ftllibs.ui.UI_ItemMenu import ItemMenu import copy cl...
Python
from PyQt4 import QtGui,QtCore from ftllibs.FTL import RUNES class RunesMenu_Button(QtGui.QWidget): clicked = QtCore.pyqtSignal(['QString']) def __init__(self,runename): super(RunesMenu_Button, self).__init__() self.runename = runename self.setFixedSize(390,84) self.setContents...
Python
from PyQt4 import QtGui,QtCore from ftllibs.FTL import MasteriesDS from ftllibs.FTL import MASTERIES class MasteriesTab(QtGui.QWidget): def __init__(self,parent = None): super(MasteriesTab,self).__init__() self.MasterLayout = QtGui.QGridLayout() self.setLayout(self.MasterLayout) se...
Python
from PyQt4 import QtGui,QtCore from ftllibs.FTL import CHAMPS as CHAMPS from ftllibs.FTL import ITEMS as ITEMS from ftllibs.FTL import BuildDS as BuildDS from ftllibs.ui.UI_ChampDisplay import UI_ChampDisplay from ftllibs.ui.UI_SlotItemDisplay import UI_SlotItemDisplay import math class CompareTab(QtGui.QWidget): ...
Python
from PyQt4 import QtGui,QtCore from ftllibs.FTL import ITEMS ## ItemMenu_Button ## The Buttons For the ItemMenu class ItemMenu_Button(QtGui.QWidget): clicked = QtCore.pyqtSignal(['QString']) ItemIconHighLightEvent = QtCore.pyqtSignal([str]) def __init__(self,itemid): super(ItemMenu_Button,...
Python
from ftllibs.runes import * import operator import copy import sys import re class Runes(): def __init__(self,parent): self.parent=parent self.RUNES={} self.RunesIndex=[] for i in sys.modules.keys(): m = re.match('ftllibs.runes.(r_[a-z_.]+)',i) if m: ...
Python
import ConfigParser import string import random import glob import re from PyQt4 import QtGui,QtCore class BuildDataStore(object): def __init__(self): super(BuildDataStore,self).__init__() self.openmodels={} def GetBuildDataModel(self,ChampID): if self.openmodels.has_key(ChampID): ...
Python
#!/usr/bin/python import xml.parsers.expat; import sys; import re; parser=xml.parsers.expat.ParserCreate('UTF-8'); values_en = {} values_lang = {} values_hash = {} name='' def parse(lang, values): def start_element(n, attrs): global name; if n != u'string': return name=attrs[u'name'] def end_element(...
Python
#!/usr/bin/python from optparse import OptionParser import re import subprocess import sys """ This script generates a release note from the output of git log between the specified tags. Options: --issues Show output the commits with issues associated with them. --issue-numbers Show outputs issue numbers o...
Python
#!/usr/bin/env python import commands import getopt import sys SSH_USER = 'bot' SSH_HOST = 'localhost' SSH_PORT = 29418 SSH_COMMAND = 'ssh %s@%s -p %d gerrit approve ' % (SSH_USER, SSH_HOST, SSH_PORT) FAILURE_SCORE = '--code-review=-2' FAILURE_MESSAGE = 'This commit message does not match the standard.' \ + '...
Python
#!/usr/bin/env python2.6 # Copyright (c) 2010, Code Aurora Forum. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright # not...
Python
#!/usr/bin/env python # # Repeats a command for each demo and reports the status. # The command is executed from the root directory of the demo. # # Example: # python demos.py "ant install" # python demos.py "android update project -p ." # import os import sys def demos(command): tools_directory, script = os.path.s...
Python
#!/usr/bin/env python # # Builds archives for SDK releases. # # Usage: # python tools/sdk.py <version> # import os import shutil import sys import tempfile def execute(command): status = os.system(command) if status != 0: raise Exception('unexpected result: %d' % status) def sdk(version, output): # Find th...
Python
#!/usr/bin/env python # # Updates the JARs in the demo libs/ directories # with the current build output found in bin/. # import os import shutil import sys def listdir(path): """List files at the specified path excluding hidden files""" return filter(lambda x: not x.startswith('.'), os.listdir(path)) def libs()...
Python
import os.path def listdirectory2(path): fichier=[] for root, dirs, files in os.walk(path): for i in files: fichier.append(os.path.join(root, i)) return fichier def gen1(): for f in listdirectory2("."): if (f.find("svn")+f.find(".py"))== -2: f = f.replace(".j...
Python
import os.path def listdirectory2(path): fichier=[] for root, dirs, files in os.walk(path): for i in files: fichier.append(os.path.join(root, i)) return fichier def chinois1(): for f in listdirectory2("."): if (f.find("svn")+f.find(".py"))== -2: f = f.replace...
Python
import os.path def listdirectory2(path): fichier=[] for root, dirs, files in os.walk(path): for i in files: fichier.append(os.path.join(root, i)) return fichier def chinois1(): for f in listdirectory2("."): if (f.find("svn")+f.find(".py"))== -2: f = f.replace...
Python
# -*- coding: utf-8 -*- from userapi import * USER = "test.vkontakte@mail.ru" PASS = "yi8zXpHIs" DID="41657126" def test_profile(id = None): profile = test.v_profile(id) print "Profile of user " + profile.name + " <" + str(profile.id) + "> " print "Mother: " + str(profile.mother) print "Status: " ...
Python
class StoredObject: def __eq__(self, other): return int(self.id) == int(other.id) def __ne__(self, other): return int(self.id) != int(other.id) def __hash__(self): return int(self.id)
Python
import webbrowser class Captcha: def __init__(self): self.csid =4 # Chosed randomly! print "Look at browser and enter the captcha to console" webbrowser.open("http://userapi.com/data?act=captcha&csid=" + str(self.csid)) self.text = raw_input("VKontakte captcha: ") ...
Python
class UserAPIError: def __init__(this, code, action, text): this.code = code this.action = action this.text = text class JSONProblemError(Exception): def __init__(self, json_data, supplement): self.json_data = json_data self.supplement = supplement
Python
from StoredObject import * class Privacy: def __init__(self, may_look_profile, may_look_wall, may_leave_messages): self.may_look_profile = may_look_profile self.may_look_wall = may_look_wall self.may_leave_messages = may_leave_messages class Position: def __init__(self, id_count...
Python
import json import datetime from Message import * from Person import * from Photo import * MSG_PERSON = 0 FRI_PERSON = 1 PRO_PERSON = 2 def listify(data, size): result = [None for i in range(0, size)] if isinstance(data, list): for i in range(0, len(data)): result[i] = data[i] elif...
Python
import Captcha from Errors import UserAPIError import httplib import re ID="1" USERAPI_HOST="login.userapi.com" class Session: def __init__(self, filename = None, remixpass = None, sid = None): if filename: self.load_session(filename) self.renew_session() else: ...
Python
from StoredObject import * class Message(StoredObject): TEXT = 0 PHOTO = 1 GRAPHITY = 2 VIDEO = 3 AUDIO = 4 def __init__(self, id, time, text, mfrom, mto, isReaded, # Parameters defined at wall's messages retrieval message_type = 0, message_name = None, ...
Python
from StoredObject import * class Photo(StoredObject): def __init__ (self, id, pic, small_pic): self.id = id self.pic = pic self.small_pic = small_pic class PhotosUploadInfo: def __init__(self, aid, upload_url = None, upload_hash = None, upload_rhash = None): se...
Python
from UserAPI import Token from UserAPI import UserAPITypes from UserAPI import RetCodes from UserAPI import UserAPI from Session import Session from Errors import UserAPIError, JSONProblemError
Python
from Parser import * from Errors import * import Session import httplib import re import json class Token: Standard = None Login = 0 Action = 1 class RetCodes: NoError = 0 Error = 1 class UserAPITypes: Standard = None Outbox = "outbox" ...
Python
#!/usr/bin/python import sys, hashlib def write_file(fn, buf): fp = open(fn, "wb") fp.write(buf) fp.close() def usage(): print ("Usage: " + sys.argv[0] + " infile outfile label") def main(): if( len(sys.argv) != 4): usage() sys.exit() fp = open( sys.argv[1] , "rb") hash_str = has...
Python
#!/usr/bin/python import sys, re, os def write_file(fn, buf): fp = open(fn, "wb") fp.write(buf) fp.close() def usage(): print ("Usage: " + os.path.split(__file__)[1] + " version outfile") def crete_version_str(ver): base = list("0.00") version = str(ver) ret = [] base[0] = version[0] base...
Python
#!/usr/bin/python """ PRO build script""" import os, shutil, sys NIGHTLY=0 VERSION="B10" PRO_BUILD = [ { "fn": "620PRO-%s.rar", "config": "CONFIG_620=1" }, { "fn": "635PRO-%s.rar", "config": "CONFIG_635=1" }, { "fn": "639PRO-%s.rar", "config": "CONFIG_639=1" }, { "fn": "660PRO-%s.rar", "config": "CONFIG...
Python
#!/usr/bin/python import sys, os, gzip, StringIO def dump_binary(fn, data): f = open(fn, "wb") f.write(data) f.close() def dec_prx(fn): f = open(fn, "rb") f.seek(0x150) dat = f.read() f.close() temp=StringIO.StringIO(dat) f=gzip.GzipFile(fileobj=temp, mode='rb') dec = f.read(f) f.close() fn = "%s.dec.p...
Python
#!/usr/bin/python class FakeTime: def time(self): return 1225856967.109 import sys, os, struct, gzip, hashlib, StringIO gzip.time = FakeTime() def binary_replace(data, newdata, offset): return data[0:offset] + newdata + data[offset+len(newdata):] def prx_compress(output, hdr, input, mod_name="", mod_a...
Python
#!/usr/bin/python # Copyright (c) 2011 by Virtuous Flame # Based BOOSTER 1.01 CSO Compressor # # GNU General Public Licence (GPL) # # 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 versi...
Python
#!/usr/bin/python import sys, hashlib def toNID(name): hashstr = hashlib.sha1(name.encode()).hexdigest().upper() return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2] if __name__ == "__main__": assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4") for name in sys.argv[1:]: print ("%s: %s"...
Python
#!/usr/bin/python from hashlib import * import sys, struct def sha512(psid): if len(psid) != 16: return "".encode() for i in range(512): psid = sha1(psid).digest() return psid def get_psid(str): if len(str) != 32: return "".encode() b = "".encode() for i in range(0, len(str), 2): b += struct.pack('B...
Python
#!/usr/bin/python """ pspbtcnf_editor: An script that add modules from pspbtcnf """ import sys, os, re from getopt import * from struct import * BTCNF_MAGIC=0x0F803001 verbose = False def print_usage(): print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path...
Python
#!/usr/bin/python import os def main(): lists = [ "ISODrivers/Galaxy/galaxy.prx", "ISODrivers/March33/march33.prx", "ISODrivers/March33/march33_620.prx", "ISODrivers/March33/march33_660.prx", "ISODrivers/Inferno/inferno.prx", "Popcorn/popcorn.prx", "Satelite/satelite.prx", "Stargate/stargate....
Python
#!/usr/bin/python class FakeTime: def time(self): return 1225856967.109 import os, gzip, StringIO gzip.time = FakeTime() def create_gzip(input, output): f_in=open(input, 'rb') temp=StringIO.StringIO() f=gzip.GzipFile(fileobj=temp, mode='wb') f.writelines(f_in) f.close() f_in.close() fout=open(out...
Python
#!/usr/bin/python import os, sys, getopt def usage(): print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0])) def write_file(fn, buf): fp = open(fn, "wb") fp.write(buf) fp.close() def main(): inputsize = 0 try: optlist, args = getopt.getopt(sys.argv[1:], 'l:h') except getopt.GetoptError: us...
Python
# -*- coding: utf-8 -*- __author__ = "zoltan kochan" __date__ = "$28 june 2010 1:02:10$"
Python
# -*- coding: utf-8 -*- import unittest import test.core.test_constants as test_constants import test.core.lang.test_process as test_process import test.core.lang.test_translate as test_translate import test.core.compilers.test_gener_tools as test_gener_tools import test.core.models.test_lang as test_lang import test.c...
Python
# -*- coding: utf-8 -*- __author__="zoltan kochan" __date__ ="$12 лют 2011 13:46:30$"
Python
__author__="zoltan kochan" __date__ ="$12 лют 2011 13:46:30$"
Python
__author__="zoltan kochan" __date__ ="$18 бер 2011 0:35:07$"
Python
__author__="Z-CORE" __date__ ="$5 бер 2011 21:28:15$"
Python
__author__ = "zoltan kochan" __date__ = "$28 june 2010 1:02:10$" __name__ = "fosay translator" __version_info__ = ("pre-alpha", 0, 0, 1, 239) __version__ = '.'.join([str(i) for i in __version_info__[1:]]) #testing #import test.core.__init__ from core.models.lang import Language import os, glob, sys def load_language...
Python
# -*- coding: utf-8 -*- __author__="zoltan kochan" __date__ ="$3 apr 2011 1:25:43$" from setuptools import setup,find_packages setup ( name = 'fosay', version = '0.1', packages = find_packages(), # Declare your packages' dependencies here, for eg: #install_requires=['foo>=3'], # Fill in these to make yo...
Python
# -*- coding: utf-8 -*- __author__="Z-CORE" __date__ ="$11 лют 2011 23:26:04$"
Python
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # Knowladge base #------------------------------------------------------------------------------- __author__="zoltan kochan" __date__ ="$28 june 2010 1:02:10$" from core.models.ling_units import * import core.cons...
Python
# PLY package # Author: David Beazley (dave@dabeaz.com) __all__ = ['lex','yacc']
Python
# ----------------------------------------------------------------------------- # ply: yacc.py # # Copyright (C) 2001-2009, # David M. Beazley (Dabeaz LLC) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
Python
# ----------------------------------------------------------------------------- # ply: lex.py # # Copyright (C) 2001-2009, # David M. Beazley (Dabeaz LLC) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ar...
Python
__author__="zoltan kochan" __date__ ="$5 лют 2011 3:41:26$" from setuptools import setup,find_packages setup ( name = 'fosay', version = '0.1', packages = find_packages(), # Declare your packages' dependencies here, for eg: install_requires=['foo>=3'], # Fill in these to make your Egg ready for upload t...
Python
__author__="zoltan kochan" __date__ ="$11 лют 2011 23:26:37$"
Python
__author__="zoltan kochan" __date__ ="$28 june 2010 1:02:10$" __name__ == "process" from ctypes import ArgumentError from core.constants import INDEFINITE from core.models.ling_units import * from copy import deepcopy import core.constants as const from core.constants import concept, difinity, form from core.constants...
Python
__author__="zoltan kochan" __date__ ="$28 june 2010 1:02:10$" from core.lang.process import referencing from core.lang.process import case_frame_to_lang, lang_to_case_frame from core.kb import meaning_shift from core.lang.scoring import eupony_score from core.lang.scoring import pithiness_score from core.lang....
Python
__author__="zoltan kochan" __date__ ="$1 груд 2010 1:13:17$" from core.constants import is_terminalc def get_tranarr(st): if st.type is None: raise Exception('%s has None type' % st.meaning) if is_terminalc(st.type): return st.transcription r = [] for c in st.left + st.cblocks + st.rig...
Python
__author__="zoltan kochan" __date__ ="$5 бер 2011 11:36:22$" #TODO: optimize = 0
Python
#------------------------------------------------------------------------------- # ATN generator. Contains functions for generating ATN. #------------------------------------------------------------------------------- __author__="zoltan kochan" __date__ ="$26 лист 2010 1:49:08$" from core.constants import STATE_START ...
Python
#------------------------------------------------------------------------------- # ATNL - an Augmented Transition Network Language (v0.1) #------------------------------------------------------------------------------- __author__="zoltan kochan" __date__ ="$6 бер 2011 1:32:14$" #quenya Quenya (qenya) import core.ply.le...
Python
# ----------------------------------------------------------------------------- # CWS - Cascading Word Sheets (v0.1) # ----------------------------------------------------------------------------- __author__="Z-CORE" __date__ ="$5 бер 2011 11:36:40$" from core.models.ling_units import Token import core.ply.lex as lex ...
Python
# -*- coding: ISO-8859-5 -*- __author__="zoltan kochan" __date__ ="$28 june 2010 1:02:10$" # Standard states STATE_START = 1 STATE_END = 1000000 STATE_CONJ_A1, \ STATE_CONJ_A2, \ STATE_CONJ_A3, \ STATE_CONJ_A4 = range(-4, 0) STATE_CONJS = [ STATE_CONJ_A1, STATE_CONJ_A2, STATE_CONJ_A3, STATE_CONJ_A4, ]...
Python
__author__="zoltan kochan" __date__ ="$12 лют 2011 14:00:29$"
Python