代码搜索结果
找到约 10,000 项符合
Python 的代码
actions.py
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
class ActionExample:
def __init__(self):
# Create the toplevel window
window = gtk.Window()
window.conn
rulers.py
#!/usr/bin/env python
# example rulers.py
import pygtk
pygtk.require('2.0')
import gtk
class RulersExample:
XSIZE = 400
YSIZE = 400
# This routine gets control when the close button is
network.py
#!/usr/bin/python
import asyncore,socket
import time,sys
import threading,Queue
#from NWPacket import *
#waitingQue=Queue.Queue()
class ClientSys:
#will rewrite
currentID=0
def gen_gui
lexpython.cxx
// Scintilla source code edit control
/** @file LexPython.cxx
** Lexer for Python.
**/
// Copyright 1998-2002 by Neil Hodgson
// The License.txt file describes the conditi
redundantimportdetector.py
"""RedundantImportDetector.py
Discover redundant java imports using brute force.
Requires Python 2.3"""
import os, sys, re
from glob import glob
reportFile = file("RedundantImports.txt", 'w')
mybagofwords.py
#!/local/usr/bin/python
import sys
import os
import os.path
import nltk
from nltk.tokenize import WordTokenizer
"""
documents in each class are in a subdir of the specified directory. The directory
linenumbertable.java
// Copyright 2001 Finn Bock
package org.python.compiler;
import java.io.*;
import java.util.*;
public class LineNumberTable extends Attribute {
int attName;
ConstantPool pool;
Vector li
pyjavaclass.java
// Copyright (c) Corporation for National Research Initiatives
package org.python.core;
import java.lang.reflect.*;
import java.beans.*;
/**
* A wrapper around a java class.
*/
public class PyJav
pathpackagemanager.java
// Copyright (c) Corporation for National Research Initiatives
// Copyright 2000 Samuele Pedroni
package org.python.core;
import java.io.*;
import java.lang.reflect.Modifier;
/** Path package manag
weakinternaltables.java
// Copyright 2000 Samuele Pedroni
package org.python.core;
import java.lang.ref.*;
import java.util.*;
public class WeakInternalTables extends AutoInternalTables {
private static class Ref ext