code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
#!/usr/bin/env python
"""
Saves the database to a pickled file
"""
import os, sys
sys.path.append(os.path.join(os.getcwd(), '..'))
sys.path.append(os.getcwd())
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
import westom.feednut.models as DB
sys.path.pop()
import ... | Python |
import sys
from string import join, strip
from time import sleep
import os, sys
import md5
import urllib2
import logging
sys.path.append(os.path.join(os.getcwd(), '..'))
sys.path.append(os.getcwd())
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
sys.path.pop()
... | Python |
"""
Create some pucking sweet data for testing
"""
import os, sys
import md5
sys.path.append(os.path.join(os.getcwd(), '..'))
sys.path.append(os.getcwd())
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
from westom.feednut.models import *
sys.path.pop... | Python |
import os, sys
sys.path.append(os.path.join(os.getcwd(), '..'))
sys.path.append(os.getcwd())
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
os.environ['PYTHONINSPECT'] = '1'
from westom.feednut.utils import search
if __name__ == '__main__':
cont... | Python |
#!/usr/bin/env python
"""
Update all of the feeds
This is meant to be run on the server only
"""
import os, sys
import socket
DOC_ROOT = '/home/tzellman/webapps/feednut/'
sys.path.append(DOC_ROOT)
sys.path.append(os.path.join(os.getcwd(), '..'))
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ[... | Python |
#!/usr/bin/env python
"""
Saves the Syndic8 feeds to our DB
"""
import os, sys
sys.path.append(os.path.join(os.getcwd(), '..'))
sys.path.append(os.getcwd())
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
from westom.feednut.models import *
sys.path.pop... | Python |
#!/usr/bin/env python
"""
Saves the database to a pickled file
"""
import os, sys
sys.path.append(os.path.join(os.getcwd(), '..'))
sys.path.append(os.getcwd())
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
import westom.feednut.models as DB
sys.path.pop()
import ... | Python |
#!/usr/bin/env python
"""
Restores the database from a pickled file
"""
import os, sys
sys.path.append(os.path.join(os.getcwd(), '..'))
sys.path.append(os.getcwd())
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
import westom.feednut.models as DB
sys.path.pop()
im... | Python |
#!/usr/bin/env python
"""
Update all of the feeds
This is meant to be run on the server only
"""
import os, sys
import socket
DOC_ROOT = '/home/tzellman/webapps/feednut/'
sys.path.append(DOC_ROOT)
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
f... | Python |
#!/usr/bin/env python
"""
Saves the Syndic8 feeds to our DB
"""
import os, sys
sys.path.append(os.path.join(os.getcwd(), '..'))
sys.path.append(os.getcwd())
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
from westom.feednut.models import *
sys.path.pop... | Python |
#!/usr/bin/env python
"""
Update all of the feeds
This is meant to be run on the server only
"""
import os, sys
import socket
DOC_ROOT = '/home/tzellman/webapps/feednut/'
sys.path.append(DOC_ROOT)
sys.path.append(os.path.join(os.getcwd(), '..'))
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ[... | Python |
#!/usr/bin/env python
"""
Restores the database from a pickled file
"""
import os, sys
sys.path.append(os.path.join(os.getcwd(), '..'))
sys.path.append(os.getcwd())
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
import westom.feednut.models as DB
sys.path.pop()
im... | Python |
import re, sys, subprocess, shutil, glob, os, tempfile
def compress(files, outfile, use_packer=False):
temp, tempname = tempfile.mkstemp()
for f in files:
fo = open(f, 'r')
os.write(temp, fo.read())
fo.close()
os.close(temp)
#now, compress it -- commented out cuz jquery wa... | Python |
#!/usr/bin/env python
"""
Update all of the feeds
This is meant to be run on the server only
"""
import os, sys
import socket
DOC_ROOT = '/home/tzellman/webapps/feednut/'
sys.path.append(DOC_ROOT)
# Set DJANGO_SETTINGS_MODULE appropriately.
os.environ['DJANGO_SETTINGS_MODULE'] = 'westom.settings'
f... | Python |
import re, sys, subprocess, shutil
if __name__ == '__main__':
infile = file('media/js/westom.js')
# outf = file('media/js/fn.js')
outf = sys.stdout
p = subprocess.Popen(
['java', '-jar', 'scripts/custom_rhino.jar', '-c', infile.name],
stdout=subprocess.PIPE,
)
print >>outf, ... | Python |
#!/usr/bin/env 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 ha... | Python |
from django.conf.urls.defaults import *
from westom.settings import DOCUMENT_ROOT
import os
from westom.feednut.feeds import HottestFeed, RecentRead, ReadLater
handler404 = 'westom.feednut.views.page_not_found'
#register these two feeds
feeds = {
'hottest': HottestFeed,
'latest': RecentRead,
'r... | Python |
# Django settings for westom project.
import sys, os, inspect
# I added this so that we can always refer to it for the current
# document root. This will be helpful when we move to Apache
DOCUMENT_ROOT = os.getcwd()
curframe = inspect.currentframe()
try:
DOCUMENT_ROOT = os.path.abspath(os.path.dirname(insp... | Python |
from distutils.core import setup
setup(
name = "django-jython",
version = "1.3.0b1",
packages = ['doj',
'doj.backends',
'doj.backends.zxjdbc',
'doj.backends.zxjdbc.postgresql',
'doj.backends.zxjdbc.oracle',
'doj.backends.zxjdbc.... | Python |
#!/usr/bin/env 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 ... | Python |
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^overlapping_media_url_and_admin_media/', include('overlapping_media_url_and_admin_media.foo.urls')),
# Uncommen... | Python |
# Django settings for overlapping_media_url_and_admin_media project.
import os
PROJECT_ROOT = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqli... | Python |
#!/usr/bin/env 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 ... | Python |
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^overlapping_media_url_and_admin_media/', include('overlapping_media_url_and_admin_media.foo.urls')),
# Uncommen... | Python |
# Django settings for overlapping_media_url_and_admin_media project.
import os
PROJECT_ROOT = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqli... | Python |
from django.db import models
# Create your models here.
| Python |
# Create your views here.
| Python |
from django.db import models
# Create your models here.
| Python |
# Create your views here.
| Python |
#!/usr/bin/env 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 ... | Python |
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^project/', include('project.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs... | Python |
# Django settings for project project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = ''
DATABASE_NAME = ''
DATABASE_USER = ''
DATABASE_PASSWORD = ''
# Local time zone for this installation. Choices can be found here:
# http://e... | Python |
from django.core.management.base import BaseCommand
from django.conf import settings
import os
class Command(BaseCommand):
subcommands = {
"jndiconfig": "Prints a sample context XML configuration with the "
"appropriate JNDI datasource configuration for "
"conn... | Python |
import os
import shutil
import tempfile
import zipfile
import glob
from optparse import make_option
from django.core.management.base import BaseCommand
from django.conf import settings
from django.template import Context, Template
# TODO: The (ab)use of __file__ makes me nervous. We should improve compatibility
# ... | Python |
from django.core.handlers import wsgi
import os
def handler(environ, start_response):
os.putenv("DJANGO_SETTINGS_MODULE", "{{ settings.SETTINGS_MODULE }}")
h = wsgi.WSGIHandler()
return h(environ, start_response)
| Python |
"""MySQL FIELD_TYPE Constants
These constants represent the various column (field) types that are
supported by MySQL.
"""
DECIMAL = 0
TINY = 1
SHORT = 2
LONG = 3
FLOAT = 4
DOUBLE = 5
NULL = 6
TIMESTAMP = 7
LONGLONG = 8
INT24 = 9
DATE = 10
TIME = 11
DATETIME = 12
YEAR = 13
NEWDATE = 14
VARCHAR = 15
BIT = 16
NEWDECIMA... | Python |
# Empty file.
| Python |
from django.db.backends import BaseDatabaseIntrospection
from doj.backends.zxjdbc.mysql._mysql_exceptions import ProgrammingError, OperationalError
from doj.backends.zxjdbc.mysql.constants import FIELD_TYPE
import re
foreign_key_re = re.compile(r"\sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`(... | Python |
"""_mysql_exceptions: Exception classes for _mysql and MySQLdb.
These classes are dictated by the DB API v2.0:
http://www.python.org/topics/database/DatabaseAPI-2.0.html
"""
from exceptions import Exception, StandardError, Warning
class MySQLError(StandardError):
"""Exception related to operation with ... | Python |
import copy
from django.db.backends.creation import BaseDatabaseCreation
from django.db.backends.mysql.creation import DatabaseCreation as MysqlDatabaseCreation
class DatabaseCreation(BaseDatabaseCreation):
def __init__(self, *args, **kwargs):
super(DatabaseCreation, self).__init__(*args, **kwargs)
... | Python |
"""
MySQL database backend for Django/Jython
"""
try:
from com.ziclix.python.sql import zxJDBC as Database
except ImportError, e:
from django.core.exceptions import ImproperlyConfigured
raise ImproperlyConfigured("Error loading zxJDBC module: %s" % e)
from django.db.backends import BaseDatabaseWrapper, Bas... | Python |
# Empty file. And this comment is to keep patch/diff happy
| Python |
"""
Custom Query class for MS SQL Server.
Derives from: django.db.models.sql.query.Query
"""
from datetime import datetime
REV_ODIR = {
'ASC': 'DESC',
'DESC': 'ASC'
}
SQL_SERVER_8_LIMIT_QUERY = \
"""SELECT *
FROM (
SELECT TOP %(limit)s *
FROM (
%(orig_sql)s
ORDER BY %(ord)s
) AS %(table)s
ORD... | Python |
from django.db.backends import BaseDatabaseIntrospection
from com.ziclix.python.sql import zxJDBC as Database
SQL_AUTOFIELD = -777555
class DatabaseIntrospection(BaseDatabaseIntrospection):
# Map type codes to Django Field types.
data_types_reverse = {
SQL_AUTOFIELD: 'AutoField',
... | Python |
from django.db.models.sql import compiler
from datetime import datetime
REV_ODIR = {
'ASC': 'DESC',
'DESC': 'ASC'
}
SQL_SERVER_8_LIMIT_QUERY = \
"""SELECT *
FROM (
SELECT TOP %(limit)s *
FROM (
%(orig_sql)s
ORDER BY %(ord)s
) AS %(table)s
ORDER BY %(rev_ord)s
) AS %(table)s
O... | Python |
from django.db.backends import BaseDatabaseClient
import os
import sys
class DatabaseClient(BaseDatabaseClient):
if os.name=='nt':
executable_name = 'osql'
else:
executable_name = 'isql'
def runshell(self):
settings_dict = self.connection.settings_dict
user = settings_dict[... | Python |
from java.lang import Class
from java.lang import System
from java.io import PrintWriter
from java.sql import DriverManager
from java.sql import Connection
from java.sql import SQLException
# Here are the dbcp-specific classes.
# Note that they are only used in the setupDriver
# method. In normal use, your classes ... | Python |
from django.db.backends import BaseDatabaseOperations
import query
import datetime
import time
import decimal
class DatabaseOperations(BaseDatabaseOperations):
compiler_module = "doj.backends.zxjdbc.sql_server.compiler"
def __init__(self, connection):
super(DatabaseOperations, self).__init__()
... | Python |
from django.db.backends.creation import BaseDatabaseCreation
import base64
from django.utils.hashcompat import md5_constructor
import random
class DataTypesWrapper(dict):
def __getitem__(self, item):
if item in ('PositiveIntegerField', 'PositiveSmallIntegerField'):
# The check name must be uniq... | Python |
from django.db.models.sql.aggregates import *
class StdDev(Aggregate):
is_computed = True
def __init__(self, col, sample=False, **extra):
super(StdDev, self).__init__(col, **extra)
self.sql_function = sample and 'STDEV' or 'STDEVP'
class Variance(Aggregate):
is_computed = True
def __... | Python |
"""
jTDS/MSSQL2005 database backend for Django.
"""
try:
# Force the database driver to load
from java.lang import Class
cls = Class.forName("net.sourceforge.jtds.jdbc.Driver").newInstance()
from pool import ManualPoolingDriver
from com.ziclix.python.sql import zxJDBC as Database
from com.zicli... | Python |
"""Custom Query class for MS SQL Serever."""
# query_class returns the base class to use for Django queries.
# The custom 'SqlServerQuery' class derives from django.db.models.sql.query.Query
# which is passed in as "QueryClass" by Django itself.
#
# SqlServerQuery overrides:
# ...insert queries to add "SET IDEN... | Python |
from django.db.backends import BaseDatabaseIntrospection
from com.ziclix.python.sql import zxJDBC as Database
SQL_AUTOFIELD = -777555
class DatabaseIntrospection(BaseDatabaseIntrospection):
data_types_reverse = {
SQL_AUTOFIELD: 'AutoField',
Database.BIGINT: 'Integer... | Python |
'''
We define a custom command to install the stored procedures into MSSQL2K
'''
from django.core.management.base import NoArgsCommand
from django.core.management.color import no_style
from optparse import make_option
import sys
class Command(NoArgsCommand):
option_list = NoArgsCommand.option_list
... | Python |
from java.lang import Class
from java.lang import System
from java.io import PrintWriter
from java.sql import DriverManager
from java.sql import Connection
from java.sql import SQLException
# Here are the dbcp-specific classes.
# Note that they are only used in the setupDriver
# method. In normal use, your classes ... | Python |
from django.db.backends import BaseDatabaseOperations
import datetime
import time
import query
class DatabaseOperations(BaseDatabaseOperations):
# Define the parts of an ODBC date string
# so we can do substring operations to match
DATE_PARTS = {'year': (1,4),
'month': (6,2),
... | Python |
from django.db.backends.creation import BaseDatabaseCreation
class DatabaseCreation(BaseDatabaseCreation):
'''
Overloaded bits of the database creation code
'''
data_types = {
'AutoField': 'int IDENTITY (1, 1)',
'BooleanField': 'bit',
'CharField': ... | Python |
from pprint import pprint
try:
# Force the database driver to load
from java.lang import Class
cls = Class.forName("net.sourceforge.jtds.jdbc.Driver").newInstance()
from jtds.mssql2k.pool import ManualPoolingDriver
from com.ziclix.python.sql import zxJDBC as Database
except ImportError, e:
... | Python |
"""
jTDS/MSSQL database backend for Django.
Django uses this if the DATABASE_ENGINE setting is empty (None or empty string).
Each of these API functions, except connection.close(), raises
ImproperlyConfigured.
"""
try:
# Force the database driver to load
from java.lang import Class
cls = Class.forName("... | Python |
import copy
from django.db.backends.creation import BaseDatabaseCreation
from django.db.backends.postgresql.creation import DatabaseCreation as PostgresqlDatabaseCreation
class DatabaseCreation(BaseDatabaseCreation):
def __init__(self, *args, **kwargs):
super(DatabaseCreation, self).__init__(*args, **kwarg... | Python |
"""
PostgreSQL database backend for Django/Jython
"""
try:
from com.ziclix.python.sql import zxJDBC as Database
except ImportError, e:
from django.core.exceptions import ImproperlyConfigured
raise ImproperlyConfigured("Error loading zxJDBC module: %s" % e)
from django.db.backends import BaseDatabaseFeature... | Python |
# Empty file. And this comment is to keep patch/diff happy
| Python |
# -*- coding: utf-8 -*-
import datetime
from java.sql import Connection
from com.ziclix.python.sql import zxJDBC
from django.db.backends import BaseDatabaseWrapper
class zxJDBCDatabaseWrapper(BaseDatabaseWrapper):
default_host = 'localhost'
default_port = ''
driver_class_name = None # Must be overriden
... | Python |
"""
SQLite3 backend for Django/Jython.
"""
from django.db.backends import BaseDatabaseFeatures
from django.db.backends import BaseDatabaseOperations, BaseDatabaseValidation, util
from django.db.backends.sqlite3.client import DatabaseClient
from django.db.backends.sqlite3.creation import DatabaseCreation
from django.db... | Python |
# Empty file. And this comment is to keep patch/diff happy
| Python |
# Empty file
| Python |
"""
Custom Query class for Oracle.
Derived from: django.db.models.sql.query.Query
"""
import datetime
from django.db.backends import util
# Cache. Maps default query class to new Oracle query class.
_classes = {}
def query_class(QueryClass, Database):
"""
Returns a custom django.db.model... | Python |
# Highly based on Django's builtin Oracle backend.
#
# In fact, we only change the data_types_reverse dictionary. Unfortunately we
# can't just subclass their DatabaseIntrospection class because their module
# imports cx_Oracle. (We could do nasty monkey-patching trickery, but...)
from django.db.backends import BaseDa... | Python |
"""
Author: Josh Juneau
Wrapper for Django-Jython Oracle implementation for zxJDBC calls
"""
from decimal import Decimal # Added for issue 39
try:
from com.ziclix.python.sql import zxJDBC as Database
except ImportError, e:
from django.core.exceptions import ImproperlyConfigured
raise ImproperlyC... | Python |
"""
Oracle database backend for Django-Jython
"""
try:
from com.ziclix.python.sql import zxJDBC as Database
except ImportError, e:
from django.core.exceptions import ImproperlyConfigured
raise ImproperlyConfigured("Error loading zxJDBC module: %s" % e)
import os
from django.db.backends import *
from doj.b... | Python |
# Empty file. And this comment is to keep patch/diff happy
| Python |
VERSION = (1, 1, 2, 'alpha', 0)
| Python |
"""Support for writing JUnit XML test results for the regrtest"""
import os
import re
import sys
import time
import traceback
import unittest
from StringIO import StringIO
from xml.sax import saxutils
# Invalid XML characters (control chars)
EVIL_CHARACTERS_RE = re.compile(r"[\000-\010\013\014\016-\037]")
class JUnit... | Python |
"""
Django test runner to to spit out JUnit-compatible XML reports. Uses a slightly
adapted copy of Jython's JUnitXMLTestRunner
"""
import unittest
from doj.test.xmlrunner.junitxmlrunner import JUnitXMLTestRunner
from django.conf import settings
from django.test.utils import setup_test_environment, teardown_test_enviro... | Python |
#!/usr/bin/env python
import time
t = time.time()
u = time.gmtime(t)
s = time.strftime('%a, %e %b %Y %T GMT', u)
print 'Content-Type: text/javascript'
print 'Cache-Control: no-cache'
print 'Date: ' + s
print 'Expires: ' + s
print ''
print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
| Python |
import os
from google.appengine.ext.webapp import template
import cgi
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db
class Greeting(db.Model):
author = db.UserProperty()
content = db.Strin... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | Python |
#!/usr/bin/env python
#
# Copyright 2007 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 o... | 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.