code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def main():
line_infos = [[0]*1024 for i in range(10)]
for idx in range(10):
for flag in range(1024):
flag |= 0xFC00
p1 = (idx and [idx-1] or [0xF])[0]
while not flag & (1 <<... | Python |
import xq_data
xq_data.main()
import xq_position_data
xq_position_data.main()
import history_data
history_data.main()
import bitmap_data
bitmap_data.main()
| Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
def capture_scores():
capture_scores = [[0]*32 for i in range(33)]
e = [10000, 1041, 1040, 2000, 1088, 1096, 1020]
m = [1000, 41, 40, 200, 88, 96, 20]
def level(src_type, dst_type): return... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
def capture_scores():
capture_scores = [[0]*32 for i in range(33)]
e = [10000, 1041, 1040, 2000, 1088, 1096, 1020]
m = [1000, 41, 40, 200, 88, 96, 20]
def level(src_type, dst_type): return... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def main():
line_infos = [[0]*1024 for i in range(10)]
for idx in range(10):
for flag in range(1024):
flag |= 0xFC00
p1 = (idx and [idx-1] or [0xF])[0]
while not flag & (1 <<... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
RedKingPawnValues = [0]*91
BlackKingPawnValues = [0]*91
AdvisorBishopValues = [0]*91
RedRookValues = [0]*91
BlackRookValues = [0]*91
RedKnightValues = [0]*91
BlackKnightValues = [0]*91
RedCannonValues =... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def u(x): return SquareDowns[x]
def d(x): return SquareUps[x]
def l(x): return SquareLefts[x]
def r(x): return SquareRights[x]
SquareDowns = [0]*91
SquareUps = [0]*91
SquareLefts = [0]*91
SquareRights = [0]*91
Xs = [9]*91
... | Python |
RedKing = 0;
RedAdvisor = 1;
RedBishop = 2;
RedRook = 3;
RedKnight = 4;
RedCannon = 5;
RedPawn = 6;
BlackKing = 7;
BlackAdvisor = 8;
BlackBishop = 9;
BlackRook = 10;
BlackKnight = 11;
BlackCannon = 12;
BlackPawn = 13;
EmptyType = 14;
InvalidType = 15;
RedKingFlag = 1 << 0;
RedAdvisorFlag = 1 << 1;
R... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def u(x): return SquareDowns[x]
def d(x): return SquareUps[x]
def l(x): return SquareLefts[x]
def r(x): return SquareRights[x]
SquareDowns = [0]*91
SquareUps = [0]*91
SquareLefts = [0]*91
SquareRights = [0]*91
Xs = [9]*91
... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
RedKingPawnValues = [0]*91
BlackKingPawnValues = [0]*91
AdvisorBishopValues = [0]*91
RedRookValues = [0]*91
BlackRookValues = [0]*91
RedKnightValues = [0]*91
BlackKnightValues = [0]*91
RedCannonValues =... | Python |
#!/usr/bin/env python
#coding=utf-8
def main():
import sys
if len(sys.argv) == 1:
import snake.protocol
engine = snake.protocol.Engine()
engine.run()
if __name__ == "__main__":
main() | Python |
import xq_data
xq_data.main()
import engine_data
engine_data.main()
import history_data
history_data.main()
import bitlines_data
bitlines_data.main()
| Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
RedKingPawnValues = [0]*91
BlackKingPawnValues = [0]*91
AdvisorBishopValues = [0]*91
RedRookValues = [0]*91
BlackRookValues = [0]*91
RedKnightValues = [0]*91
BlackKnightValues = [0]*91
RedCannonValues ... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
def capture_scores():
capture_scores = [[0]*32 for i in range(32)]
e = [10000, 1041, 1040, 2000, 1088, 1096, 1020]
m = [1000, 41, 40, 200, 88, 96, 20]
def level(src_type, dst_type): retur... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def main():
line_infos = [[0]*1024 for i in range(10)]
for idx in range(10):
for flag in range(1024):
flag |= 0xFC00
p1 = (idx and [idx-1] or [0xF])[0]
while not flag & (1 <<... | Python |
RedKing = 0;
RedAdvisor = 1;
RedBishop = 2;
RedRook = 3;
RedKnight = 4;
RedCannon = 5;
RedPawn = 6;
BlackKing = 7;
BlackAdvisor = 8;
BlackBishop = 9;
BlackRook = 10;
BlackKnight = 11;
BlackCannon = 12;
BlackPawn = 13;
EmptyType = 14;
InvalidType = 15;
RedKingFlag = 1 << 0;
RedAdvisorFlag = 1 << 1;
R... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def u(x): return SquareUps[x]
def d(x): return SquareDowns[x]
def l(x): return SquareLefts[x]
def r(x): return SquareRights[x]
SquareUps = [0]*91
SquareDowns = [0]*91
SquareLefts = [0]*91
SquareRights = [0]*91
Xs = [9]*91... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def main():
line_infos = [[0]*1024 for i in range(10)]
for idx in range(10):
for flag in range(1024):
flag |= 0xFC00
p1 = (idx and [idx-1] or [0xF])[0]
while not flag & (1 <<... | Python |
import sys
cpp_path = ['#include']
lib_path = ['#bin']
env = Environment(CPPPATH=cpp_path, LIBPATH=lib_path)
if sys.platform == "win32":
env.Tool('mingw')
Export("env")
env.SConscript('src/sconscript', build_dir='build/folium', duplicate=0)
env.SConscript('qianhong/sconscript', build_dir='build/qianhong',... | Python |
import xq_data
xq_data.main()
import engine_data
engine_data.main()
import history_data
history_data.main()
import bitlines_data
bitlines_data.main()
| Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
RedKingPawnValues = [0]*91
BlackKingPawnValues = [0]*91
AdvisorBishopValues = [0]*91
RedRookValues = [0]*91
BlackRookValues = [0]*91
RedKnightValues = [0]*91
BlackKnightValues = [0]*91
RedCannonValues ... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
def capture_scores():
capture_scores = [[0]*32 for i in range(32)]
e = [10000, 1041, 1040, 2000, 1088, 1096, 1020]
m = [1000, 41, 40, 200, 88, 96, 20]
def level(src_type, dst_type): retur... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def main():
line_infos = [[0]*1024 for i in range(10)]
for idx in range(10):
for flag in range(1024):
flag |= 0xFC00
p1 = (idx and [idx-1] or [0xF])[0]
while not flag & (1 <<... | Python |
RedKing = 0;
RedAdvisor = 1;
RedBishop = 2;
RedRook = 3;
RedKnight = 4;
RedCannon = 5;
RedPawn = 6;
BlackKing = 7;
BlackAdvisor = 8;
BlackBishop = 9;
BlackRook = 10;
BlackKnight = 11;
BlackCannon = 12;
BlackPawn = 13;
EmptyType = 14;
InvalidType = 15;
RedKingFlag = 1 << 0;
RedAdvisorFlag = 1 << 1;
R... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def u(x): return SquareUps[x]
def d(x): return SquareDowns[x]
def l(x): return SquareLefts[x]
def r(x): return SquareRights[x]
SquareUps = [0]*91
SquareDowns = [0]*91
SquareLefts = [0]*91
SquareRights = [0]*91
Xs = [9]*91... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def main():
line_infos = [[0]*1024 for i in range(10)]
for idx in range(10):
for flag in range(1024):
flag |= 0xFC00
p1 = (idx and [idx-1] or [0xF])[0]
while not flag & (1 <<... | Python |
import random
import _xq
class Book(object):
def readflag(self, fen):
_ = []
for flag in range(4):
new= _xq.mirror4fen(fen, flag)
if not new.endswith('b'):
_.append([new, flag])
_.sort()
return _[0] if _[0][0] >= _[1][0] else _[1]... | Python |
import os
import sys
import book
class dictbook(book.Book):
def __init__(self):
book.Book.__init__(self)
self.load()
def load(self):
bookfile = os.path.join(os.path.dirname(sys.argv[0]), 'book.dict')
self.dict = {}
for line in open(bookfile):
_ ... | Python |
import time
import _xq
import snake.book.dictbook
class Engine(_xq.UCCI):
def __init__(self):
_xq.UCCI.__init__(self)
self.book = snake.book.dictbook.dictbook()
def run(self):
_xq.writeline('id name folium')
_xq.writeline('id author Wangmao Lin')
_xq.wri... | Python |
from distutils.core import setup
import py2exe
setup(
console = ["main.py"],
)
| Python |
#!/usr/bin/env python
#coding=utf-8
def ucci():
import snake.protocol
engine = snake.protocol.Engine()
engine.run()
def perft():
import _xq
def _():
_xq.writeline(str(xq))
for index, count in enumerate(perfts):
t1 = _xq.currenttime()
assert(xq.... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def main():
line_infos = [[0]*1024 for i in range(10)]
for idx in range(10):
for flag in range(1024):
flag |= 0xFC00
p1 = (idx and [idx-1] or [0xF])[0]
while not flag & (1 <<... | Python |
import xq_data
xq_data.main()
import xq_position_data
xq_position_data.main()
import history_data
history_data.main()
import bitmap_data
bitmap_data.main()
| Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
def capture_scores():
capture_scores = [[0]*32 for i in range(33)]
e = [10000, 1041, 1040, 2000, 1088, 1096, 1020]
m = [1000, 41, 40, 200, 88, 96, 20]
def level(src_type, dst_type): return... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
def capture_scores():
capture_scores = [[0]*32 for i in range(33)]
e = [10000, 1041, 1040, 2000, 1088, 1096, 1020]
m = [1000, 41, 40, 200, 88, 96, 20]
def level(src_type, dst_type): return... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def main():
line_infos = [[0]*1024 for i in range(10)]
for idx in range(10):
for flag in range(1024):
flag |= 0xFC00
p1 = (idx and [idx-1] or [0xF])[0]
while not flag & (1 <<... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
RedKingPawnValues = [0]*91
BlackKingPawnValues = [0]*91
AdvisorBishopValues = [0]*91
RedRookValues = [0]*91
BlackRookValues = [0]*91
RedKnightValues = [0]*91
BlackKnightValues = [0]*91
RedCannonValues =... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def u(x): return SquareDowns[x]
def d(x): return SquareUps[x]
def l(x): return SquareLefts[x]
def r(x): return SquareRights[x]
SquareDowns = [0]*91
SquareUps = [0]*91
SquareLefts = [0]*91
SquareRights = [0]*91
Xs = [9]*91
... | Python |
RedKing = 0;
RedAdvisor = 1;
RedBishop = 2;
RedRook = 3;
RedKnight = 4;
RedCannon = 5;
RedPawn = 6;
BlackKing = 7;
BlackAdvisor = 8;
BlackBishop = 9;
BlackRook = 10;
BlackKnight = 11;
BlackCannon = 12;
BlackPawn = 13;
EmptyType = 14;
InvalidType = 15;
RedKingFlag = 1 << 0;
RedAdvisorFlag = 1 << 1;
R... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
def u(x): return SquareDowns[x]
def d(x): return SquareUps[x]
def l(x): return SquareLefts[x]
def r(x): return SquareRights[x]
SquareDowns = [0]*91
SquareUps = [0]*91
SquareLefts = [0]*91
SquareRights = [0]*91
Xs = [9]*91
... | Python |
#!/usr/bin/env python
#coding=utf-8
import os
import string
from consts import *
from xq_data import *
RedKingPawnValues = [0]*91
BlackKingPawnValues = [0]*91
AdvisorBishopValues = [0]*91
RedRookValues = [0]*91
BlackRookValues = [0]*91
RedKnightValues = [0]*91
BlackKnightValues = [0]*91
RedCannonValues =... | Python |
#!/usr/bin/env python
#coding=utf-8
def ucci():
import snake.protocol
engine = snake.protocol.Engine()
engine.run()
def perft():
import _xq
def _():
_xq.writeline(str(xq))
for index, count in enumerate(perfts):
t1 = _xq.currenttime()
assert(xq.... | Python |
from fonetik import *
import unittest
class FonetikUnitTest(unittest.TestCase):
def setUp(self):
self.f = Fonetik()
class CapitalizationNormalization(FonetikUnitTest):
words = ( ("FOO","fo"),
("Foo","fo"),
("FoO","fo"),
)
def testCapitalizationIsNoMatter(self):
for input,output in self... | Python |
import yaml
import sys
import re
import string
class Phonem():
def __init__(self):
self.name = "phonemName"
self.values = ['p1','p2']
class PhonemaLoader():
def __init__(self):
pass
def load_phonema(self,phonema_file_name):
file = open(phonema_file_name,'r')
full_text = file.read()
f... | Python |
from fonetik import *
import unittest
class FonetikUnitTest(unittest.TestCase):
def setUp(self):
self.f = Fonetik()
class CapitalizationNormalization(FonetikUnitTest):
words = ( ("FOO","fo"),
("Foo","fo"),
("FoO","fo"),
)
def testCapitalizationIsNoMatter(self):
for input,output in self... | Python |
import yaml
import sys
import re
import string
class Phonem():
def __init__(self):
self.name = "phonemName"
self.values = ['p1','p2']
class PhonemaLoader():
def __init__(self):
pass
def load_phonema(self,phonema_file_name):
file = open(phonema_file_name,'r')
full_text = file.read()
f... | Python |
from fonetik import *
import unittest
class FonetikUnitTest(unittest.TestCase):
def setUp(self):
self.f = Fonetik()
class CapitalizationNormalization(FonetikUnitTest):
words = ( ("FOO","fo"),
("Foo","fo"),
("FoO","fo"),
)
def testCapitalizationIsNoMatter(self):
for input,output in self... | Python |
import yaml
import sys
import re
import string
class Phonem():
def __init__(self):
self.name = "phonemName"
self.values = ['p1','p2']
class PhonemaLoader():
def __init__(self):
pass
def load_phonema(self,phonema_file_name):
file = open(phonema_file_name,'r')
full_text = file.read()
f... | Python |
import fonetik
def main():
Fonetik()
main()
| Python |
import yaml
import sys
import re
class Phonem():
def __init__(self):
self.name = "phonemName"
self.values = ['p1','p2']
class PhonemaLoader():
def __init__(self):
pass
def load_phonema(self,phonema_file_name):
file = open(phonema_file_name,'r')
full_text = file.read()
file.close()
... | Python |
from fonetik import *
import unittest
class FonetikUnitTest(unittest.TestCase):
def setUp(self):
self.f = Fonetik()
class CapitalizationNormalization(FonetikUnitTest):
words = ( ("FOO","fo"),
("Foo","fo"),
("FoO","fo"),
)
def testCapitalizationIsNoMatter(self):
for input,output in self... | Python |
import yaml
import sys
import re
import string
class Phonem():
def __init__(self):
self.name = "phonemName"
self.values = ['p1','p2']
class PhonemaLoader():
def __init__(self):
pass
def load_phonema(self,phonema_file_name):
file = open(phonema_file_name,'r')
full_text = file.read()
f... | Python |
#!/usr/bin/python
# Copyright (C) 2008 Manu Garg.
# Author: Manu Garg <manugarg@gmail.com>
#
# pacparser is a library that provides methods to parse proxy auto-config
# (PAC) files. Please read README file included with this package for more
# information about this library.
#
# pacparser is free software; you can redi... | Python |
#!/usr/bin/python2.5
import pacparser
pacparser.init()
pacparser.parse_pac("wpad.dat")
proxy = pacparser.find_proxy("http://www.manugarg.com")
print proxy
pacparser.cleanup()
# Or simply,
print pacparser.just_find_proxy("wpad.dat", "http://www2.manugarg.com")
| Python |
# Copyright (C) 2007 Manu Garg.
# Author: Manu Garg <manugarg@gmail.com>
#
# pacparser is a library that provides methods to parse proxy auto-config
# (PAC) files. Please read README file included with this package for more
# information about this library.
#
# pacparser is free software; you can redistribute it and/or... | Python |
import shutil
import sys
from distutils import sysconfig
def main():
if sys.platform == 'win32':
shutil.rmtree('%s\\pacparser' % sysconfig.get_python_lib(),
ignore_errors=True)
shutil.copytree('pacparser', '%s\\pacparser' % sysconfig.get_python_lib())
else:
print 'This script should b... | Python |
# Copyright (C) 2007 Manu Garg.
# Author: Manu Garg <manugarg@gmail.com>
#
# pacparser is a library that provides methods to parse proxy auto-config
# (PAC) files. Please read README file included with this package for more
# information about this library.
#
# pacparser is free software; you can redistribute it... | Python |
# Copyright (C) 2007 Manu Garg.
# Author: Manu Garg <manugarg@gmail.com>
#
# pacparser is a library that provides methods to parse proxy auto-config
# (PAC) files. Please read README file included with this package for more
# information about this library.
#
# pacparser is free software; you can redistribute it and/or... | Python |
# Copyright 2008 The RE2 Authors. All Rights Reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""Parser for Unicode data files (as distributed by unicode.org)."""
import os
import re
import urllib2
# Directory or URL where Unicode tables reside.
_UNICOD... | Python |
#!/usr/bin/python2.4
#
# Copyright 2008 The RE2 Authors. All Rights Reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""Unittest for the util/regexp/re2/unicode.py module."""
import os
import StringIO
from google3.pyglib import flags
from google3.testing... | Python |
# coding=utf-8
# (The line above is necessary so that I can use 世界 in the
# *comment* below without Python getting all bent out of shape.)
# Copyright 2007-2009 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 o... | Python |
#!/usr/bin/env python
import os
from distutils.core import setup
import py2exe
setup(
console=['font_list_generator.py', 'font_list_generator_gui.py'],
#classifiers=?? #a list of classifiers list of strings (4)
#download_url='http://',
#platforms=[], #multiplatform - don't limit it
... | Python |
# -*- coding: utf-8 -*-
pil_colors = {
'indigo': (75, 0, 130),
'gold': (255, 215, 0),
'firebrick': (178, 34, 34),
'indianred': (205, 92, 92),
'yellow': (255, 255, 0),
'darkolivegreen': (85, 107, 47),
'darkseagreen': (143, 188, 143),
'mediumvioletred': (199, 21, 133),
'm... | Python |
#Boa:Frame:Frame1
import wx
import sys
import os
import wx.lib.filebrowsebutton
import AboutDialog
import font_list_generator
class Options:
pass
# ------------------------ private library ---------------
#from library import *
def directory_chooser_dialog(title, default):
dialog = wx.DirDialog(... | Python |
#Boa:Dialog:Dialog1
import wx
def create(parent):
return Dialog1(parent)
[wxID_DIALOG1, wxID_DIALOG1BTNCLOSE, wxID_DIALOG1STATICTEXT1,
wxID_DIALOG1STATICTEXT2,
] = [wx.NewId() for _init_ctrls in range(4)]
class Dialog1(wx.Dialog):
def _init_ctrls(self, prnt):
# generated method, don'... | Python |
#!/usr/bin/env python
import os
from distutils.core import setup
import py2exe
setup(
console=['font_list_generator.py', 'font_list_generator_gui.py'],
#classifiers=?? #a list of classifiers list of strings (4)
#download_url='http://',
#platforms=[], #multiplatform - don't limit it
... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Michael Liao (askxuefeng@gmail.com)'
'''
Runtime functions.
'''
import datetime
UTC_NAME = '(UTC) Coordinated Universal Time'
class UserTimeZone(datetime.tzinfo):
'''
User time zone that used to display datetime.
'''
def __init__(self, na... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Video app that display any public video from YouTube or other sites.
'''
__author__ = 'Michael Liao (askxuefeng@gmail.com)'
| Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 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... | Python |
#!/usr/bin/python
#
# Copyright (C) 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 ... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 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 ... | Python |
#!/usr/bin/env python
#
# Copyright (C) 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... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 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 ... | Python |
#!/usr/bin/python
#
# Copyright (C) 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 ... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 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 ... | Python |
#!/usr/bin/python
#
# Copyright (C) 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 ... | Python |
#!/usr/bin/python
#
# Copyright (C) 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 ... | Python |
#!/usr/bin/python
#
# Copyright (C) 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 ... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 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... | Python |
#!/usr/bin/python
#
# Copyright (C) 2006 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 ... | Python |
#!/usr/bin/python
#
# Copyright (C) 2006, 2007, 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 app... | Python |
#!/usr/bin/python
#
# Copyright (C) 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 ... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Michael Liao (askxuefeng@gmail.com)'
'''
Load site info.
'''
from framework import cache
from framework import store
import runtime
SITE_GROUP = '__site__'
DEFAULT_DATE = '%Y-%m-%d'
DEFAULT_TIME = '%H:%M:%S'
def date_format_samples(dt):... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 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 ... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 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 ... | Python |
#!/usr/bin/python
#
# Copyright (C) 2007 - 2009 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 applicab... | Python |
#!/usr/bin/python
#
# Copyright (C) 2006 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 ... | Python |
#!/usr/bin/python
#
# Copyright (C) 2006 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 ... | Python |
#!/usr/bin/python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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 b... | Python |
#!/usr/bin/python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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 b... | Python |
#!/usr/bin/python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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 b... | Python |
#!/usr/bin/python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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 ... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 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 ... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 Google Inc.
#
# Licensed under the Apache ... | Python |
#!/usr/bin/env python
#
# Copyright (C) 2009 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 ... | Python |
#!/usr/bin/env python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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 requir... | Python |
#!/usr/bin/env python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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 requir... | Python |
#!/usr/bin/python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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 b... | Python |
#!/usr/bin/python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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 b... | Python |
#!/usr/bin/python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# 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 b... | Python |
Subsets and Splits
SQL Console for ajibawa-2023/Python-Code-Large
Provides a useful breakdown of language distribution in the training data, showing which languages have the most samples and helping identify potential imbalances across different language groups.