code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
from blog.models import MiniPost, ResultSet, StaticPage, Project, FileInfo
from django.core.paginator import ObjectPaginator, InvalidPage
from google.appengine.api import datastore_errors
from google.appengine.api import users
from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appen... | Python |
import os
class FlexView:
def __init__(self,
title,
flex_app_name,
settings_url=None,
secure_dir = None,
player_version='10.0.0',
width=None,
height=None
... | Python |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Local Shared Object implementation.
Local Shared Object (LSO), sometimes known as Adobe Flash cookies, is a
cookie-like data entity used by the Adobe Flash Player and Gnash. The players
allow web content to read ... | Python |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF0 implementation.
C{AMF0} supports the basic data types used for the NetConnection, NetStream,
LocalConnection, SharedObjects and other classes in the Adobe Flash Player.
@see: U{Official AMF0 Specification i... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF0 Remoting support.
@since: 0.1.0
"""
import traceback
import sys
from pyamf import remoting
from pyamf.remoting import gateway
class RequestProcessor(object):
def __init__(self, gateway):
self.gateway = gateway
de... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Remoting client implementation.
@since: 0.1.0
"""
import httplib
import urlparse
import pyamf
from pyamf import remoting
#: Default AMF client type.
#: @see: L{ClientTypes<pyamf.ClientTypes>}
DEFAULT_CLIENT_TYPE = pyamf.ClientTypes.Fla... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF3 RemoteObject support.
@see: U{RemoteObject on LiveDocs
<http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/RemoteObject.html>}
@since: 0.1.0
"""
import calendar
import time
import uuid
import sys
import pyamf
from pyamf impo... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF Remoting support.
A Remoting request from the client consists of a short preamble, headers, and
bodies. The preamble contains basic information about the nature of the
request. Headers can be used to request debugging information, sen... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Gateway for Google App Engine.
This gateway allows you to expose functions in Google App Engine web
applications to AMF clients and servers.
@see: U{Google App Engine homepage (external)
<http://code.google.com/appengine>}
@since: 0... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Gateway for the Django framework.
This gateway allows you to expose functions in Django to AMF clients and
servers.
@see: U{Django homepage (external)<http://djangoproject.com>}
@since: 0.1.0
"""
django = __import__('django.http')
http... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Twisted server implementation.
This gateway allows you to expose functions in Twisted to AMF clients and
servers.
@see: U{Twisted homepage (external)<http://twistedmatrix.com>}
@since: 0.1.0
"""
import sys
import os.path
try:
sys.... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Remoting server implementations.
@since: 0.1.0
"""
import sys
import types
import datetime
import pyamf
from pyamf import remoting, util
try:
from platform import python_implementation
impl = python_implementation()
except Impo... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
WSGI server implementation.
The Python Web Server Gateway Interface (WSGI) is a simple and universal
interface between web servers and web applications or frameworks.
The WSGI interface has two sides: the "server" or "gateway" side, and ... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Flex Data Management Service implementation.
This module contains the message classes used with Flex Data Management
Service.
@since: 0.1.0
"""
import pyamf
from pyamf.flex.messaging import AsyncMessage, AcknowledgeMessage, ErrorMessage... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Flex Messaging implementation.
This module contains the message classes used with Flex Data Services.
@see: U{RemoteObject on OSFlash (external)
<http://osflash.org/documentation/amf3#remoteobject>}
@since: 0.1
"""
import uuid
import ... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Compatibility classes/functions for Flex.
@note: Not available in ActionScript 1.0 and 2.0.
@see: U{Flex on Wikipedia (external)
<http://en.wikipedia.org/wiki/Adobe_Flex>}
@since: 0.1.0
"""
import pyamf
__all__ = ['ArrayCollection', 'O... | Python |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF3 implementation.
C{AMF3} is the default serialization for
U{ActionScript<http://en.wikipedia.org/wiki/ActionScript>} 3.0 and provides
various advantages over L{AMF0<pyamf.amf0>}, which is used for ActionScrip... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Remoting tests.
@since: 0.1.0
"""
| Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
File included to make the directory a Python package.
The test_*.py files are special in this directory in that they refer to the
top level module names of the adapter to test. An attempt will be made to
import that module but ignored if ... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Test utilities.
@since: 0.1.0
"""
import unittest
import copy
import pyamf
from pyamf.util import BufferedByteStream
PosInf = 1e300000
NegInf = -1e300000
NaN = PosInf / PosInf
class ClassicSpam:
def __readamf__(self, input):
... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Unit tests.
@since: 0.1.0
"""
import unittest
# some Python 2.3 unittest compatibility fixes
if not hasattr(unittest.TestCase, 'assertTrue'):
unittest.TestCase.assertTrue = unittest.TestCase.failUnless
if not hasattr(unittest.TestCa... | Python |
spam = 'eggs'
| Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Unit tests for Remoting gateways.
@since: 0.1.0
"""
| Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE for details.
"""
SQLAlchemy adapter module.
@see: U{SQLAlchemy homepage (external)<http://www.sqlalchemy.org>}
@since: 0.4
"""
from sqlalchemy.orm import collections
import pyamf
from pyamf.adapters import util
pyamf.add_type(collections.InstrumentedList... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
collections adapter module.
@since: 0.5
"""
import collections
import pyamf
from pyamf.adapters import util
if hasattr(collections, 'deque'):
pyamf.add_type(collections.deque, util.to_list)
if hasattr(collections, 'defaultdict'):... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Adapter for the C{decimal} module.
@since: 0.4
"""
import decimal
import pyamf
def convert_Decimal(x, encoder):
"""
Called when an instance of L{decimal.Decimal} is about to be encoded to
an AMF stream.
@param x: The ... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
C{django.db.models} adapter module.
@see: U{Django Project<http://www.djangoproject.com>}
@since: 0.4.1
"""
from django.db.models.base import Model
from django.db.models import fields
from django.db.models.fields import related, files
... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Google App Engine adapter module.
Sets up basic type mapping and class mappings for using the Datastore API
in Google App Engine.
@see: U{Datastore API on Google App Engine (external)
<http://code.google.com/appengine/docs/datastore>}
@... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Adapter for the stdlib C{sets} module.
@since: 0.4
"""
import sets
import pyamf
from pyamf.adapters import util
if hasattr(sets, 'ImmutableSet'):
pyamf.add_type(sets.ImmutableSet, util.to_tuple)
if hasattr(sets, 'Set'):
pyamf... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Useful helpers for adapters.
@since: 0.4
"""
import __builtin__
if not hasattr(__builtin__, 'set'):
from sets import Set as set
def to_list(obj, encoder):
"""
Converts an arbitrary object C{obj} to a list.
@rtype: L{l... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
C{django.utils.translation} adapter module.
@see: U{Django Project<http://www.djangoproject.com>}
@since: 0.4.2
"""
from django.utils.translation import ugettext_lazy
import pyamf
def convert_lazy(l, encoder=None):
if l.__class__.... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
`array` adapter module.
Will convert all array.array instances to a python list before encoding. All
type information is lost (but degrades nicely).
@since: 0.5
"""
import array
import pyamf
from pyamf.adapters import util
if hasattr... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Django query adapter module.
Sets up basic type mapping and class mappings for a
Django models.
@see: U{Django Project<http://www.djangoproject.com>}
@since: 0.1b
"""
from django.db.models import query
import pyamf
from pyamf.adapters ... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
The adapter package provides additional functionality for other Python
packages. This includes registering classes, setting up type maps etc.
@since: 0.1.0
"""
import os.path
import glob
from pyamf.util import imports
class PackageImp... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE for details.
"""
SQLAlchemy adapter module.
@see: U{SQLAlchemy homepage (external)<http://www.sqlalchemy.org>}
@since: 0.4
"""
from sqlalchemy import orm, __version__
try:
from sqlalchemy.orm import class_mapper
except ImportError:
from sqlalchemy.... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
C{django.db.models.fields} adapter module.
@see: U{Django Project<http://www.djangoproject.com>}
@since: 0.4
"""
from django.db.models import fields
import pyamf
def convert_NOT_PROVIDED(x, encoder):
"""
@rtype: L{Undefined<py... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
B{PyAMF} provides B{A}ction B{M}essage B{F}ormat
(U{AMF<http://en.wikipedia.org/wiki/Action_Message_Format>}) support for
Python that is compatible with the Adobe
U{Flash Player<http://en.wikipedia.org/wiki/Flash_Player>}.
@copyright: Cop... | Python |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF Utilities.
@since: 0.1.0
"""
import struct
import calendar
import datetime
import types
import inspect
import pyamf
try:
from cStringIO import StringIO
except ImportError:
from StringIO import Stri... | Python |
# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
Tools for doing dynamic imports.
@since: 0.3
"""
import sys
__all__ = ['when_imported']
#: A list of callables to be executed when the module is imported.
post_load_hooks = {}
#: List of modules that have already been loaded.
loaded_m... | Python |
# Django settings for fleq project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('FLEQ Admin', 'fleq.libresoft@gmail.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'N... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/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... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############################################################################
# #
# FLEQ (Free LibreSoft Educational Quizbowl) #
# A synchronous on-line competition so... | Python |
#!/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... | Python |
#!/usr/bin/python
import sys
import time
import os
import string
import StringIO
sys.path.insert(0, "python")
import libxml2
# Memory debug specific
libxml2.debugMemory(1)
debug = 0
verbose = 0
quiet = 1
#
# the testsuite description
#
CONF=os.path.join(os.path.dirname(__file__), "test/relaxng/OASIS/spectest.xml")
LO... | Python |
#!/usr/bin/python
import sys
import time
import os
import string
sys.path.insert(0, "python")
import libxml2
#
# the testsuite description
#
DIR="xinclude-test-suite"
CONF="testdescr.xml"
LOG="check-xinclude-test-suite.log"
log = open(LOG, "w")
os.chdir(DIR)
test_nr = 0
test_succeed = 0
test_failed = 0
test_error =... | Python |
#!/usr/bin/python -u
import glob, os, string, sys, thread, time
# import difflib
import libxml2
###
#
# This is a "Work in Progress" attempt at a python script to run the
# various regression tests. The rationale for this is that it should be
# possible to run this on most major platforms, including those (such as
# ... | Python |
#!/usr/bin/python -u
#
# generate a tester program for the API
#
import sys
import os
import string
try:
import libxml2
except:
print "libxml2 python bindings not available, skipping testapi.c generation"
sys.exit(0)
if len(sys.argv) > 1:
srcPref = sys.argv[1] + '/'
else:
srcPref = ''
#
# Modules ... | Python |
#!/usr/bin/python
import sys
import time
import os
import string
sys.path.insert(0, "python")
import libxml2
test_nr = 0
test_succeed = 0
test_failed = 0
test_error = 0
#
# the testsuite description
#
CONF="xml-test-suite/xmlconf/xmlconf.xml"
LOG="check-xml-test-suite.log"
log = open(LOG, "w")
#
# Error and warning... | Python |
#!/usr/bin/python -u
#
# Original script modified in November 2003 to take advantage of
# the character-validation range routines, and updated to the
# current Unicode information (Version 4.0.1)
#
# NOTE: there is an 'alias' facility for blocks which are not present in
# the current release, but are needed for ABI com... | Python |
#!/usr/bin/python
import sys
import time
import os
import string
import StringIO
sys.path.insert(0, "python")
import libxml2
# Memory debug specific
libxml2.debugMemory(1)
debug = 0
quiet = 1
#
# the testsuite description
#
CONF=os.path.join(os.path.dirname(__file__), "test/relaxng/testsuite.xml")
LOG="check-relaxng-... | Python |
#!/usr/bin/python
import sys
import time
import os
import string
import StringIO
sys.path.insert(0, "python")
import libxml2
# Memory debug specific
libxml2.debugMemory(1)
debug = 0
verbose = 0
quiet = 1
#
# the testsuite description
#
CONF=os.path.join(os.path.dirname(__file__), "test/xsdtest/xsdtestsuite.xml")
LOG=... | Python |
#!/usr/bin/env python
import elFinder
elFinder.connector({
'root': '/home/user/Sites/elfinder/files',
'URL': 'http://localhost/~user/elfinder/files',
## other options
# 'debug': True,
# 'dirSize': True,
# 'dotFiles': True,
# 'perms': {
# 'backup': {
# 'read': True,
# 'write': False,
# 'rm': False
#... | Python |
#!/usr/bin/env python
#
# Connector for elFinder File Manager
# author Troex Nevelin <troex@fury.scancode.ru>
import cgi
import hashlib
import json
import mimetypes
import os
import os.path
import re
import shutil
import sys
import time
from datetime import datetime
class connector():
"""Connector for elFinder"""
... | Python |
#!/usr/bin/env python
import elFinder
elFinder.connector({
'root': '/home/user/Sites/elfinder/files',
'URL': 'http://localhost/~user/elfinder/files',
## other options
# 'debug': True,
# 'dirSize': True,
# 'dotFiles': True,
# 'perms': {
# 'backup': {
# 'read': True,
# 'write': False,
# 'rm': False
#... | Python |
#!/usr/bin/env python
#
# Connector for elFinder File Manager
# author Troex Nevelin <troex@fury.scancode.ru>
import cgi
import hashlib
import json
import mimetypes
import os
import os.path
import re
import shutil
import sys
import time
from datetime import datetime
class connector():
"""Connector for elFinder"""
... | Python |
#!/usr/bin/python
#
# Copyright (C) 2012 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) 2012 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) 2002, Google Inc.
# 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
# notice, this ... | Python |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# 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
# notice, this l... | Python |
# Copyright (C) 2010 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 writ... | Python |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright (C) 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 ... | Python |
# Copyright 2011 Google Inc. All Rights Reserved.
"""Locked file interface that should work on Unix and Windows pythons.
This module first tries to use fcntl locking to ensure serialized access
to a file, then falls back on a lock file if that is unavialable.
Usage:
f = LockedFile('filename', 'r+b', 'rb')
f.... | Python |
# Copyright 2011 Google Inc. All Rights Reserved.
"""Multi-credential file store with lock support.
This module implements a JSON credential store where multiple
credentials can be stored in one file. That file supports locking
both in a single process and across processes.
The credential themselves are keyed off o... | Python |
# Copyright (C) 2010 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 writ... | Python |
# Copyright (C) 2010 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 writ... | Python |
# Copyright (C) 2010 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 writ... | Python |
# Copyright (C) 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 writ... | 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.