code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
#!/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 |
#!/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... | Python |
#TODO remove close games, 52-48 or closer
__author__ = 'william'
__author__ = 'william'
import sys, psycopg2, math, collections
print "Tipping calculator"
print "Enter three digit code\n"
conn_string = "dbname='calcdb' user='william'"
conn = None
try:
conn = psycopg2.connect(conn_string)
except:
print "I a... | Python |
wordlist=["fish","bird","cat","city","polar","fart","toilet","jesse","apple","hello","goodbye","bannana",]
import random
word= random.choice(wordlist)
print word
wordarray=list(word)
print wordarray
length=len(word)
print " Lets Play Hangman :)"
print (" Your Word is =")
dasharray=list( len(word)*"-")
wrong... | Python |
wordlist=["fish","bird","cat","city","polar","fart","toilet","jesse","apple","hello","goodbye","bannana",]
import random
word= random.choice(wordlist)
wordarray=list(word)
length=len(word)
graphic=["""
_
|
|
|
|
|
|____________
""","""
_____________
| /
| /
|/
|
|
|____________
""",
"""
_____... | Python |
from kivyx.lib import runTouchApp
from amaze.kivy.maze import MazeView
from amaze import Maze, Player
from amaze.directions import R, L, U, D
maze = Maze(100, 100)
maze.generate(seed=0)
p = Player("foo", maze[1, 1])
# p.path.append(R, 2)
# p.path.append(U, 2)
# p.path.append(R, 2)
# p.path.append(D, 2)
... | Python |
from kivyx.widgets import Widget
class Amaze(Widget):
def __init__(self):
Widget.__init__(self)
| Python |
from kivyx.widgets import Rectangle
from amaze import directions
class PlayerW(Rectangle):
def __init__(self, player):
Rectangle.__init__(self)
self.object = player
self.size = 1, 1
self.center = player.coords
self.rgba = (0, 0, 1, 1)
def update(self):
... | Python |
from amaze.kivy.entities.player import PlayerW
from amaze.entities.player import Player
ENTITY_WIDGET_MAP = {Player: PlayerW}
| Python |
from kivyx.widgets import Rectangle
from amaze.terrains import Floor, Wall
class TileW(Rectangle):
TERRAIN_COLOR_MAP = {Floor: (1, 1, 1),
Wall: (0, 0, 0)}
def __init__(self, tile):
Rectangle.__init__(self)
self.tile = tile
self.size = (1, 1)
... | Python |
from kivyx.widgets import ScatterPlane
from kivyx.lib import Clock
from amaze.kivy.tile import TileW
from amaze.kivy.entities import ENTITY_WIDGET_MAP
class MazeView(ScatterPlane):
def __init__(self, maze):
ScatterPlane.__init__(self)
self.object = maze
self.scale = 20
... | Python |
class Terrain(object):
passable = True
@classmethod
def can_pass(cls, entity):
return cls.passable
class Wall(Terrain):
passable = False
class Floor(Terrain):
pass
class Start(Terrain):
pass
class Exit(Terrain):
pass
| Python |
from amaze.terrains.terrain import Terrain, Floor, Wall, Start, Exit
| Python |
from collections import deque
from utils.interval import Interval
from utils.prettyrepr import prettify_class
from amaze.entities.entity import Entity
from amaze.directions import CHAR, RIGHT, FLOAT_DX, FLOAT_DY
class MovableEntity(Entity):
__slots__ = ("speed", "direction", "path", "x", "y")
defau... | Python |
from amaze.entities.movable import MovableEntity
class Player(MovableEntity):
pass
| Python |
from amaze.entities.movable import MovableEntity
class Monster(MovableEntity):
pass
| Python |
from amaze.entities import Entity
class PowerUp(Entity):
pass
| Python |
from amaze.entities.entity import Entity
from amaze.entities.player import Player
from amaze.entities.monster import Monster
| Python |
from utils.prettyrepr import prettify_class
from utils.relations import One
@prettify_class
class Entity(object):
__slots__ = ("id", "_tile", "_active")
__info_attrs__ = ("id", "tile", "active")
def __init__(self, id, tile=None):
self.id = id
self._tile = None
self._ac... | Python |
from utils.relations import Many
from utils.prettyrepr import prettify_class
@prettify_class
class Tile(object):
__slots__ = ("maze", "x", "y", "cx", "cy", "terrain", "all_entities", "active_entities")
def __init__(self, maze, x, y, terrain=None):
self.maze = maze
self.x = x
... | Python |
from math import pi
R = RIGHT = 0
U = UP = 1
L = LEFT = 2
D = DOWN = 3
ORDERED = (R, U, L, D)
DX = (+1, 0, -1, 0)
DY = (0, +1, 0, -1)
DELTA = zip(DX, DY)
FLOAT_DX = map(float, DX)
FLOAT_DY = map(float, DY)
FLOAT_DELTA = zip(FLOAT_DX, FLOAT_DY)
ANGLE = (0.0, pi/2.0, pi, pi*3.0/2.0)
NAME = ("right", ... | Python |
"""
TODO:
--- draw player path through the maze using touch
*** implement maze generation algorithms
*** simple text-based visualization of a maze
"""
from amaze.maze import Maze
from amaze.entities import Player
from amaze.directions import *
# m = Maze(50, 50)
# m.generate(seed=0)
# p = Player("foo", m... | Python |
import itertools
import random
from utils.prettyrepr import prettify_class
from amaze.tile import Tile
from amaze.terrains import Floor, Wall
from amaze.directions import ORDERED, DX, DY
@prettify_class
class Maze(object):
__slots__ = ("grid", "width", "height", "time",
"all_entities... | Python |
import pygame, sys, math, random
pygame.init()
from Block import Block
from Player import Player
from HardBlock import HardBlock
from Enemy import Enemy
from Background import Background
clock = pygame.time.Clock()
width = 800
height = 600
size = width, height
blocksize = [50,50]
playersize = [40,40]
screen = pyg... | Python |
import pygame, sys, math
class Background(pygame.sprite.Sprite):
def __init__(self, image, size):
pygame.sprite.Sprite.__init__(self, self.containers)
self.image = pygame.image.load(image)
self.image = pygame.transform.scale(self.image, size)
self.rect = self.image.get_rect()
... | Python |
import pygame, sys, math
class Player(pygame.sprite.Sprite):
def __init__(self, pos = (0,0), blocksize = [50,50], screensize = [800,600]):
pygame.sprite.Sprite.__init__(self, self.containers)
self.screensize = screensize
self.upImages = [pygame.image.load("rsc/player/playerBall_up1.png"),
... | Python |
import pygame, sys, math
from Block import Block
class HardBlock(Block):
def __init__(self, image, pos = (0,0), blocksize = [50,50]):
Block.__init__(self, image, pos, blocksize)
| Python |
import pygame, sys, math
class Block(pygame.sprite.Sprite):
def __init__(self, image, pos = (0,0), blocksize = [50,50]):
pygame.sprite.Sprite.__init__(self, self.containers)
self.image = pygame.image.load(image)
self.image = pygame.transform.scale(self.image, blocksize)
self.rect = ... | Python |
import pygame, sys, math, random
from Block import Block
class Enemy(Block):
def __init__(self, image, pos = (0,0), blocksize = [50,50]):
Block.__init__(self, image, pos, blocksize)
self.maxSpeed = blocksize[0]/14.0
self.living = True
self.detectRange = 100
self.seePlayer =... | Python |
#!/usr/bin/env python2.6
# -*- encoding:utf-8 -*-
# ---------------------------------------------------------
# Copyright (c) 2011 by João dos Santos Gonçalves,
# Andrea Oliveira da Silva e Glevson da Silva Pinto,
# Foo Figther Game(c) e Foo Fighter(c) 2011.
# ---------------------------------------------------------... | Python |
#! /usr/bin/python
import pygtk
pygtk.require("2.0")
import os
import sys
import btctl
import gtk
import gconf
import pycurl
import urllib
def progress_callback (bo, bdaddr):
trayicon.set_blinking(1)
print ("got progress from %s" % (bdaddr))
def request_put_callback (bo, bdaddr):
print ("device %s wants t... | Python |
#! /usr/bin/python
import pygtk
pygtk.require("2.0")
import os
import sys
import btctl
import gtk
import gconf
import pycurl
import urllib
def progress_callback (bo, bdaddr):
trayicon.set_blinking(1)
print ("got progress from %s" % (bdaddr))
def request_put_callback (bo, bdaddr):
print ("device %s wants t... | Python |
#!/usr/bin/python
'''
Created on Apr 4, 2014
@Course: CS6242
'''
import requests
import xml.etree.ElementTree as ET
import csv
def getMatch(id):
url = "http://playground.opta.net/?game_id="+str(id)+"&feed_type=F7"
res = requests.get(url)
data = res.content
return data
def getEvent(id):
ur... | Python |
import logging
import os
import os.path
def update_attribute(attributes, name, value):
"""Finds the attribute name and sets it to value in the attributes tuple of tuples, returns the attributes tuple of tuples with the changed attribute."""
ret = list()
# find name in attributes
for n, v in attributes:
if ... | Python |
import sqlite3
import os
import sys
import atexit
import traceback
import shutil
import zipfile
import string
from optparse import OptionParser
import logging
NOTICE = 25 # added level for app
import HTMLParser
try:
import markdown
except ImportError:
print "ERROR: Unable to import markdown the markup parser."
p... | Python |
class Tag:
def __init__(self, name, attrs, data=None):
self.name = name
self.attributes = attrs
self.data = data | Python |
from optparse import OptionParser
import os.path
import sys
from version_file_builder import VersionFileBuilder
WORKFILE=3
OUTFILE=2
JOB=1
def main(argv):
parser = OptionParser(usage="%prog <jobtype> <outfile> <workfile> [options]")
parser.add_option("", "--hgpath",
help="use HGPATH as the executable that... | Python |
import logging
import os
import os.path
import tempfile
import traceback
import sys
import shutil
import HTMLParser
from dataclasses import Tag
from utilfunctions import update_attribute, change_filename
class OutputParser(HTMLParser.HTMLParser):
"""The class is designed to be used as a base class. It will output... | Python |
import os
import os.path
import string
import subprocess
import sys
import tempfile
import traceback
import utilfunctions
class VersionFileBuilder:
def __init__(self, workfile, outfile, hgpath="hg", out=sys.stdout,
err=sys.stderr):
self.workfile = workfile
self.outfile = outfile
self.hgpath = hgpath
... | Python |
import os, shutil, datetime
import Version
Import("env")
if env["SCONS_STAGE"] == "build" :
myenv = env.Clone()
myenv.MergeFlags(env["SWIFTEN_FLAGS"])
myenv.MergeFlags(env["SWIFTEN_DEP_FLAGS"])
sources = [
"main.cpp",
"ActiveSessionPair.cpp",
"StaticDomainNameResolver.cpp",
"IdleSession... | Python |
#====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you ... | Python |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
""" Define the menu structure used by the Pentacle applications """
MenuStructure = [
["&File", [
["&New", "<control>N"],
["&Open...", "<control>O"],
["&Save", "<control>S"],
["Save &As...", "<control><shift>S"],
["Test", ""],
["Exercised",... | Python |
# -*- coding: utf-8 -*-
from __future__ import with_statement
from __future__ import unicode_literals
import codecs, ctypes, os, sys, unittest
import XiteWin
class TestSimple(unittest.TestCase):
def setUp(self):
self.xite = XiteWin.xiteFrame
self.ed = self.xite.ed
self.ed.ClearAll()
self.ed.EmptyUndoBuffe... | Python |
# List many windows message numbers
msgs = {
"WM_ACTIVATE":6,
"WM_ACTIVATEAPP":28,
"WM_CAPTURECHANGED":533,
"WM_CHAR":258,
"WM_CLOSE":16,
"WM_CREATE":1,
"WM_COMMAND":273,
"WM_DESTROY":2,
"WM_ENTERSIZEMOVE":561,
"WM_ERASEBKGND":20,
"WM_EXITSIZEMOVE":562,
"WM_GETMINMAXINFO":36,
"WM_GETTEXT":13,
"WM_IME_SETCONTEXT":0x028... | Python |
# -*- coding: utf-8 -*-
from __future__ import with_statement
from __future__ import unicode_literals
import os, sys, unittest
import ctypes
from ctypes import wintypes
from ctypes import c_int, c_ulong, c_char_p, c_wchar_p, c_ushort
user32=ctypes.windll.user32
gdi32=ctypes.windll.gdi32
kernel32=ctypes.windll.kernel... | Python |
# -*- coding: utf-8 -*-
from __future__ import with_statement
import io
import os
import unittest
import XiteWin
keywordsHTML = [
b"b body content head href html link meta "
b"name rel script strong title type xmlns",
b"function",
b"sub"
]
class TestLexers(unittest.TestCase):
def setUp(self):
self.xite = Xite... | Python |
# Convert all punctuation characters except '_', '*', and '.' into spaces.
def depunctuate(s):
'''A docstring'''
"""Docstring 2"""
d = ""
for ch in s:
if ch in 'abcde':
d = d + ch
else:
d = d + " "
return d
| Python |
# -*- coding: utf-8 -*-
import XiteWin
if __name__ == "__main__":
XiteWin.main("")
| Python |
# -*- coding: utf-8 -*-
from __future__ import with_statement
from __future__ import unicode_literals
import os, string, time, unittest
import XiteWin
class TestPerformance(unittest.TestCase):
def setUp(self):
self.xite = XiteWin.xiteFrame
self.ed = self.xite.ed
self.ed.ClearAll()
self.ed.EmptyUndoBuffer(... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from PySide.QtCore import *
from PySide.QtGui import *
import ScintillaConstants as sci
sys.path.append("../..")
from bin import ScintillaEditPy
txtInit = "int main(int argc, char **argv) {\n" \
" // Start up the gnome\n" \
" gnome_init(\"stest\", \"1.... | Python |
import distutils.sysconfig
import getopt
import glob
import os
import platform
import shutil
import subprocess
import stat
import sys
sys.path.append(os.path.join("..", "ScintillaEdit"))
import WidgetGen
# Decide up front which platform, treat anything other than Windows or OS X as Linux
PLAT_WINDOWS = platform.syste... | Python |
#!/usr/bin/env python
# WidgetGen.py - regenerate the ScintillaWidgetCpp.cpp and ScintillaWidgetCpp.h files
# Check that API includes all gtkscintilla2 functions
import sys
import os
import getopt
scintillaDirectory = "../.."
scintillaIncludeDirectory = os.path.join(scintillaDirectory, "include")
sys.path.append(scin... | Python |
#!/usr/bin/env python
# LexGen.py - implemented 2002 by Neil Hodgson neilh@scintilla.org
# Released to the public domain.
# Regenerate the Scintilla and SciTE source files that list
# all the lexers and all the properties files.
# Should be run whenever a new lexer is added or removed.
# Requires Python 2.4 or later
#... | Python |
# Module for reading and parsing Scintilla.iface file
def sanitiseLine(line):
if line[-1:] == '\n': line = line[:-1]
if line.find("##") != -1:
line = line[:line.find("##")]
line = line.strip()
return line
def decodeFunction(featureVal):
retType, rest = featureVal.split(" ", 1)
nameIdent, params = rest.split(... | Python |
from google.appengine.ext import db
class PredictionData(db.Model):
user_id = db.StringProperty()
match_id = db.StringProperty()
team1_count = db.IntegerProperty()
team2_count = db.IntegerProperty()
draw_count = db.IntegerProperty()
class WorldCupData(db.Model):
user_id = db.StringProperty()
match_id =... | Python |
# Standard libs
import base64
import hashlib
import logging
import urllib
import time
import datetime
# App Engine imports
from google.appengine.api import mail
from google.appengine.api import memcache
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.ext.webapp import ... | Python |
#!/usr/bin/python2.5
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""To check whether set of robot is done correctly."""
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
import prediction
import dataio
class MainHandler(webapp.RequestHandler):
def get(self):
self.res... | Python |
#!/usr/bin/python2.5
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Robot that creates issue tracker for an issue."""
import logging
import time
import urlparse
from datetime import datetime
from datetime import timedelta
from waveapi import appengine_robot_runner
from waveapi import element
from waveapi impo... | Python |
#!/usr/bin/python2.6
#
# Copyright 2009 Google Inc. All Rights Reserved.
"""Library to handle data request with Yahoo."""
# Python language specific imports.
import Cookie
import datetime
import math
import logging
import os
import time
import urllib
# AppEngine imports.
from google.appengine.ext import db
from goog... | Python |
#!/usr/bin/python2.5
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""To check whether set of robot is done correctly."""
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
import prediction
import dataio
class MainHandler(webapp.RequestHandler):
def get(self):
self.res... | Python |
import string
import types
import logging
## json.py implements a JSON (http://json.org) reader and writer.
## Copyright (C) 2005 Patrick D. Logan
## Contact mailto:patrickdlogan@stardecisions.com
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GN... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/python2.4
#
# Copyright 2009 Google Inc. All Rights Reserved.
"""Run robot from the commandline for testing.
This robot_runner let's you define event handlers using flags and takes the
json input from the std in and writes out the json output to stdout.
for example
cat events | commandline_robot_runner.... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/python2.4
#
# Copyright 2009 Google Inc. All Rights Reserved.
"""Tests for google3.walkabout.externalagents.api.commandline_robot_runner."""
__author__ = 'douwe@google.com (Douwe Osinga)'
import StringIO
from google3.pyglib import app
from google3.pyglib import flags
from google3.testing.pybase import g... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/python2.4
#
# Copyright 2009 Google Inc. All Rights Reserved.
"""Run robot from the commandline for testing.
This robot_runner let's you define event handlers using flags and takes the
json input from the std in and writes out the json output to stdout.
for example
cat events | commandline_robot_runner.... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/python2.4
#
# Copyright 2009 Google Inc. All Rights Reserved.
"""Tests for google3.walkabout.externalagents.api.commandline_robot_runner."""
__author__ = 'douwe@google.com (Douwe Osinga)'
import StringIO
from google3.pyglib import app
from google3.pyglib import flags
from google3.testing.pybase import g... | Python |
#!/usr/bin/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 law ... | Python |
#!/usr/bin/python2.4
#
# 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 l... | Python |
#!/usr/bin/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 law ... | 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.