code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../.."
sys.path.append(pathToRoot)
from BuildSupport import *
appName = "f3dinfo"
buildPath = buildDir()
binPath = ... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, os.p... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, os.p... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, os.p... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, os.p... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, os.p... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../../.."
sys.path.append(pathToRoot)
from BuildSupport import *
buildPath = buildDir()
binPath = join(buildPath, o... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../.."
sys.path.append(pathToRoot)
from BuildSupport import *
appName = "f3dinfo"
buildPath = buildDir()
binPath = ... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
# ------------------------------------------------------------------------------
import os
import sys
# ------------------------------------------------------------------------------
pathToRoot = "../.."
sys.path.append(pathToRoot)
from BuildSupport import *
appName = "f3dsample"
buildPath = buildDir()
binPath ... | Python |
# ------------------------------------------------------------------------------
env = Environment()
Export("env")
SConscript("SConscript")
# ------------------------------------------------------------------------------
| Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
#
# Copyright (c) 2009 Sony Pictures Imageworks 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 list ... | Python |
import math
import time
def wrap( l ):
return [ ( l[i], l[ ( i + 1 ) % len(l) ] ) for i in range( len( l ) ) ]
class Vec2:
def __init__( self, x = 0, y = 0 ):
self.x = float( x )
self.y = float( y )
def __repr__( self ):
return 'Vec2( %.2f, %.2f )' % ( self.x, self.y )
def ... | Python |
import random
from copy import copy
import math
import time
class GA:
ROULETTE = 'ROULETTE'
TOURNAMENT = 'TOURNAMENT'
class Param:
BOOL = 'BOOL'
INT = 'INT'
FLOAT = 'FLOAT'
ENUM = 'ENUM'
FLOAT_LIST = 'FLOAT_LIST'
INT_LIST = 'INT_LIST'
def __init__( self, name,... | Python |
import re
import copy
import operator
class LexerToken:
def __init__( self, type, value ):
self.type = type
self.value = value
def __eq__( self, token ):
return self.type == token.type and self.value == token.value
def __repr__( self ):
return 'LexerToken( %s, \'%s\' )' % (... | Python |
import math
def memoize( f ):
d = {}
def closure( *args ):
if args not in d:
d[args] = f( *args )
return d[args]
return closure
def prob1():
return sum( filter( lambda i: not i % 3 or not i % 5, range( 1, 1000 ) ) )
fibs = [ 1, 1 ]
def fibsTo( n ):
while fibs[-1] < n:
fi... | Python |
from copy import copy
import sys
class GameState:
def expand( self ):
raise RuntimeError
def apply( self, move ):
raise RuntimeError
def eval( self ):
raise RuntimeError
def getWinner( self ):
raise RuntimeError
def getPlayer( self ):
raise RuntimeErro... | Python |
#factory
n = Node( "core", "Node" )
assert 'Node' == n.type
#tree
child = Node( "core", "Node" )
n.addChild( child )
assert n == child.parent
assert n.hasChild( child )
assert [ child ] == n.children
n.removeChild( child )
assert not n.hasChild( child )
assert [] == n.children
assert None == child.parent
child.attac... | Python |
import sys
import os
filename = '%s/include/gtest/gtest.h' % sys.argv[1]
orig = open( filename, 'r' ).read()
os.remove( filename )
open( filename, 'w' ).write( '#define GTEST_HAS_TR1_TUPLE 0\n%s' % orig )
| Python |
@self.func
def update( self, t, dt ):
print self.parent.position
| Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or l... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or l... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
h... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
#!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2009 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | Python |
"""
========================================================================
FILE: ensemble_field_function.py
LAST MODIFIED: 23 September 2009
DESCRIPTION:
Classes for combining information and functions of mesh topology
(topology.mesh.mesh_ensemble, element.element_types), basis
(basis.basis), and mapping (mapper.m... | Python |
"""
========================================================================
FILE: element_types.py
LAST MODIFIED: 26 August 2009
DESCRIPTION:
Different types of elements and a constructor function to return
specified types of elements
========================================================================
"""
"""
... | Python |
"""
========================================================================
FILE: mesh.py
LAST MODIFIED: 22 September 2009
DESCRIPTION:
class for holding information about the mesh topology
========================================================================
"""
"""
BEGIN LICENSE BLOCK
Version: MPL 1.1/GPL 2.0... | Python |
"""
========================================================================
FILE: geometric_field.py
LAST MODIFIED: 23 September 2009
DESCRIPTION:
class for a ensemble_field_function representing a mesh geometry.
========================================================================
"""
"""
BEGIN LICENSE BLOCK
V... | Python |
"""
========================================================================
FILE: template_fields.py
LAST MODIFIED: 01 September 2009
DESCRIPTION:
functions to instantiate ensemble_field_functions with common quadratic
triangular mesh topologies.
====================================================================... | Python |
"""
========================================================================
FILE: mapper.py
LAST MODIFIED: 01 September 2009
DESCRIPTION:
class to create maps mapping ensemble parameters to element point
parameters and vice-versa.
========================================================================
"""
"""
BEG... | Python |
"""
========================================================================
FILE: basis.py
LAST MODIFIED: 20 August 2009
DESCRIPTION:
Basis classes and constructor for creating and returning a basis
instance of the required dimensionality and basis
==================================================================... | Python |
"""
========================================================================
FILE: geometric_field_interactor.py
LAST MODIFIED: 20 September 2009
DESCRIPTION:
classes and functions to interact with geometric_fields in mayavi2
========================================================================
"""
"""
BEGIN LICE... | Python |
# ring of a triangle strip in 3D space, centered at (0,0,0)
# element 0 starts at (1,0,0)
#!/usr/bin/env python
from scipy import *
from enthought.mayavi import mlab
import sys
sys.path.append( '../' )
from field import template_fields
from field import geometric_field
# ring parameters
height = 10
radius = [10,5,1... | Python |
# geometric test using the head_neck geometry
#!/usr/bin/env python
from scipy import *
from enthought.mayavi import mlab
import sys
sys.path.append( '../' )
from field import template_fields
from field import geometric_field
from field.topology import element_types
from interactive import geometric_field_interactor ... | Python |
# hemi of a triangle strip in 3D space, centered at (0,0,0)
# element 0 starts at (1,0,0)
#!/usr/bin/env python
from scipy import *
from enthought.mayavi import mlab
import sys
sys.path.append( '../' )
from field import template_fields
from field import geometric_field
# hemi parameters
radius = 10.0
elements = 5
... | Python |
# geometric test using the head_neck geometry
#!/usr/bin/env python
from scipy import *
from enthought.mayavi import mlab
import sys
sys.path.append( '../' )
from field import template_fields
from field import geometric_field
from field.topology import element_types
# head neck parameters
h_r = 20.0
n_l = 30.0
n_r =... | Python |
# head_neck mesh generation test
#!/usr/bin/env python
from scipy import *
from enthought.mayavi import mlab
import sys
sys.path.append( '../' )
from field import template_fields
from field import geometric_field
# head neck parameters
h_r = 20.0
n_l = 30.0
n_r = None
eval_density = 20
# make hemi and parameters... | Python |
# sphere mesh generation test
#!/usr/bin/env python
from scipy import *
from enthought.mayavi import mlab
import sys
sys.path.append( '../' )
from field import template_fields
from field import geometric_field
from field.topology import element_types
# sphere parameters
azimuth_divs = 5
incline_divs = 3
radius = 10... | Python |
# geometric test using the head_neck geometry
# tests both methods of adding elements - passing the points they are
# going to connect to, and their geometric parameters
#!/usr/bin/env python
from scipy import *
from enthought.mayavi import mlab
import sys
sys.path.append( '../' )
from field import template_fields
fr... | Python |
"""
FILE: scan_mesher.py
LAST MODIFIED: 25-Sept-2009
DESCRIPTION:
Class for creating a fieldwork mesh over a stack of images
"""
import scipy
import sys
sys.path.append( '../' )
from field import template_fields
from field.topology import element_types
class FemurMesher:
""" class for meshing femurs
"""
def __... | Python |
#!/usr/bin/python
import sys
if __name__ == '__main__':
print 'this is called by myself'
else:
print 'import by other file'
def callHi():
print 'hi, I\'m called'
version = '0.1'
print 'done'
| Python |
#!/usr/bin/python
testList = ['111', '222', '333', '444'];
for item in testList:
print item,
print '\n'
testList.append("555");
for item in testList:
print item,
print '\n'
del testList[0];
print testList;
longTestList = [testList, 666]
print longTestList;
print longTestList[0][0];
print longTestList[0][1];
p... | Python |
#!/usr/bin/python
from Module import callHi, version
callHi()
print version
| Python |
#!/usr/bin/python
#import sys
a = 5
b = 6
del b;
print dir()
| Python |
#!/usr/bin/python
def getMax(a, b):
if a > b:
print a, 'is maxinum'
else:
print b, 'is maxinum'
a = 5
b = 6
c = 1000
d = 200000000000000000
def returnMax(a, b):
if a > b:
return a
else:
return b
print returnMax(a, b)
print returnMax(c, d)
#getMax(a, b)
#getMax(c, d)
print 'done'
| Python |
#!/usr/bin/python
testList = ['111', '222', '333', '444'];
for item in testList:
print item,
print '\n'
testList.append("555");
for item in testList:
print item,
print '\n'
del testList[0];
print testList;
longTestList = [testList, 666]
print longTestList;
print longTestList[0][0];
print longTestList[0][1];
p... | 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.