text:
default_target: all
.PHONY : default_target

#=============================================================================
# Special targets provided by cmake.

# Disable implicit rules so canonical targets will work.
.SUFFIXES:

# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =

.SUFFIXES: .hpux_make_needs_suffix_list

# Suppress display of executed commands.
$(VERBOSE).SILENT:

# A target that is always out of date.
cmake_force:
.PHONY : cmake_force

#=============================================================================
# Set environment variables for the build.

# The shell in which to execute make rules.
SHELL = /bin/sh

# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake

# The command to remove a file.
RM = /usr/bin/cmake -E remove -f

# Escaping for special characters.
EQUALS = =

# The program to use to edit the cache.
CMAKE_EDIT_COMMAND = /usr/bin/cmake-gui

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/leonid/Dev/glGraphics

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/leonid/Dev/glGraphics/build-debug-bin

#=============================================================================
# Targets provided globally by CMake.

# Special rule for the target edit_cache
edit_cache:
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
	/usr/bin/cmake-gui -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : edit_cache

# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast

# Special rule for the target rebuild_cache
rebuild_cache:
	@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
	/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache

# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast

# The main all target
all: cmake_check_build_system
	$(CMAKE_COMMAND) -E cmake_progress_start /home/leonid/Dev/glGraphics/build-debug-bin/CMakeFiles /home/leonid/Dev/glGraphics/build-debug-bin/CMakeFiles/progress.marks
	$(MAKE) -f CMakeFiles/Makefile2 all
	$(CMAKE_COMMAND) -E cmake_progress_start /home/leonid/Dev/glGraphics/build-debug-bin/CMakeFiles 0
.PHONY : all

# The main clean target
clean:
	$(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean

# The main clean target
clean/fast: clean
.PHONY : clean/fast

# Prepare targets for installation.
preinstall: all
	$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall

# Prepare targets for installation.
preinstall/fast:
	$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast

# clear depends
depend:
	$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend

#=============================================================================
# Target rules for targets named glGraphics

# Build rule for target.
glGraphics: cmake_check_build_system
	$(MAKE) -f CMakeFiles/Makefile2 glGraphics
.PHONY : glGraphics

# fast build rule for target.
glGraphics/fast:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/build
.PHONY : glGraphics/fast

binary_stream.o: binary_stream.cpp.o
.PHONY : binary_stream.o

# target to build an object file
binary_stream.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/binary_stream.cpp.o
.PHONY : binary_stream.cpp.o

binary_stream.i: binary_stream.cpp.i
.PHONY : binary_stream.i

# target to preprocess a source file
binary_stream.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/binary_stream.cpp.i
.PHONY : binary_stream.cpp.i

binary_stream.s: binary_stream.cpp.s
.PHONY : binary_stream.s

# target to generate assembly for a file
binary_stream.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/binary_stream.cpp.s
.PHONY : binary_stream.cpp.s

camera.o: camera.cpp.o
.PHONY : camera.o

# target to build an object file
camera.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/camera.cpp.o
.PHONY : camera.cpp.o

camera.i: camera.cpp.i
.PHONY : camera.i

# target to preprocess a source file
camera.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/camera.cpp.i
.PHONY : camera.cpp.i

camera.s: camera.cpp.s
.PHONY : camera.s

# target to generate assembly for a file
camera.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/camera.cpp.s
.PHONY : camera.cpp.s

clouds_noise.o: clouds_noise.cpp.o
.PHONY : clouds_noise.o

# target to build an object file
clouds_noise.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/clouds_noise.cpp.o
.PHONY : clouds_noise.cpp.o

clouds_noise.i: clouds_noise.cpp.i
.PHONY : clouds_noise.i

# target to preprocess a source file
clouds_noise.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/clouds_noise.cpp.i
.PHONY : clouds_noise.cpp.i

clouds_noise.s: clouds_noise.cpp.s
.PHONY : clouds_noise.s

# target to generate assembly for a file
clouds_noise.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/clouds_noise.cpp.s
.PHONY : clouds_noise.cpp.s

config_file.o: config_file.cpp.o
.PHONY : config_file.o

# target to build an object file
config_file.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/config_file.cpp.o
.PHONY : config_file.cpp.o

config_file.i: config_file.cpp.i
.PHONY : config_file.i

# target to preprocess a source file
config_file.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/config_file.cpp.i
.PHONY : config_file.cpp.i

config_file.s: config_file.cpp.s
.PHONY : config_file.s

# target to generate assembly for a file
config_file.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/config_file.cpp.s
.PHONY : config_file.cpp.s

debug.o: debug.cpp.o
.PHONY : debug.o

# target to build an object file
debug.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/debug.cpp.o
.PHONY : debug.cpp.o

debug.i: debug.cpp.i
.PHONY : debug.i

# target to preprocess a source file
debug.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/debug.cpp.i
.PHONY : debug.cpp.i

debug.s: debug.cpp.s
.PHONY : debug.s

# target to generate assembly for a file
debug.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/debug.cpp.s
.PHONY : debug.cpp.s

demo_scene.o: demo_scene.cpp.o
.PHONY : demo_scene.o

# target to build an object file
demo_scene.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/demo_scene.cpp.o
.PHONY : demo_scene.cpp.o

demo_scene.i: demo_scene.cpp.i
.PHONY : demo_scene.i

# target to preprocess a source file
demo_scene.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/demo_scene.cpp.i
.PHONY : demo_scene.cpp.i

demo_scene.s: demo_scene.cpp.s
.PHONY : demo_scene.s

# target to generate assembly for a file
demo_scene.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/demo_scene.cpp.s
.PHONY : demo_scene.cpp.s

dynamic_sky.o: dynamic_sky.cpp.o
.PHONY : dynamic_sky.o

# target to build an object file
dynamic_sky.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/dynamic_sky.cpp.o
.PHONY : dynamic_sky.cpp.o

dynamic_sky.i: dynamic_sky.cpp.i
.PHONY : dynamic_sky.i

# target to preprocess a source file
dynamic_sky.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/dynamic_sky.cpp.i
.PHONY : dynamic_sky.cpp.i

dynamic_sky.s: dynamic_sky.cpp.s
.PHONY : dynamic_sky.s

# target to generate assembly for a file
dynamic_sky.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/dynamic_sky.cpp.s
.PHONY : dynamic_sky.cpp.s

exs3d.o: exs3d.cpp.o
.PHONY : exs3d.o

# target to build an object file
exs3d.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/exs3d.cpp.o
.PHONY : exs3d.cpp.o

exs3d.i: exs3d.cpp.i
.PHONY : exs3d.i

# target to preprocess a source file
exs3d.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/exs3d.cpp.i
.PHONY : exs3d.cpp.i

exs3d.s: exs3d.cpp.s
.PHONY : exs3d.s

# target to generate assembly for a file
exs3d.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/exs3d.cpp.s
.PHONY : exs3d.cpp.s

font_resource.o: font_resource.cpp.o
.PHONY : font_resource.o

# target to build an object file
font_resource.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/font_resource.cpp.o
.PHONY : font_resource.cpp.o

font_resource.i: font_resource.cpp.i
.PHONY : font_resource.i

# target to preprocess a source file
font_resource.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/font_resource.cpp.i
.PHONY : font_resource.cpp.i

font_resource.s: font_resource.cpp.s
.PHONY : font_resource.s

# target to generate assembly for a file
font_resource.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/font_resource.cpp.s
.PHONY : font_resource.cpp.s

fps_camera.o: fps_camera.cpp.o
.PHONY : fps_camera.o

# target to build an object file
fps_camera.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/fps_camera.cpp.o
.PHONY : fps_camera.cpp.o

fps_camera.i: fps_camera.cpp.i
.PHONY : fps_camera.i

# target to preprocess a source file
fps_camera.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/fps_camera.cpp.i
.PHONY : fps_camera.cpp.i

fps_camera.s: fps_camera.cpp.s
.PHONY : fps_camera.s

# target to generate assembly for a file
fps_camera.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/fps_camera.cpp.s
.PHONY : fps_camera.cpp.s

frame_buffer.o: frame_buffer.cpp.o
.PHONY : frame_buffer.o

# target to build an object file
frame_buffer.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/frame_buffer.cpp.o
.PHONY : frame_buffer.cpp.o

frame_buffer.i: frame_buffer.cpp.i
.PHONY : frame_buffer.i

# target to preprocess a source file
frame_buffer.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/frame_buffer.cpp.i
.PHONY : frame_buffer.cpp.i

frame_buffer.s: frame_buffer.cpp.s
.PHONY : frame_buffer.s

# target to generate assembly for a file
frame_buffer.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/frame_buffer.cpp.s
.PHONY : frame_buffer.cpp.s

gpu_buffer.o: gpu_buffer.cpp.o
.PHONY : gpu_buffer.o

# target to build an object file
gpu_buffer.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/gpu_buffer.cpp.o
.PHONY : gpu_buffer.cpp.o

gpu_buffer.i: gpu_buffer.cpp.i
.PHONY : gpu_buffer.i

# target to preprocess a source file
gpu_buffer.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/gpu_buffer.cpp.i
.PHONY : gpu_buffer.cpp.i

gpu_buffer.s: gpu_buffer.cpp.s
.PHONY : gpu_buffer.s

# target to generate assembly for a file
gpu_buffer.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/gpu_buffer.cpp.s
.PHONY : gpu_buffer.cpp.s

gpu_image_processing.o: gpu_image_processing.cpp.o
.PHONY : gpu_image_processing.o

# target to build an object file
gpu_image_processing.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/gpu_image_processing.cpp.o
.PHONY : gpu_image_processing.cpp.o

gpu_image_processing.i: gpu_image_processing.cpp.i
.PHONY : gpu_image_processing.i

# target to preprocess a source file
gpu_image_processing.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/gpu_image_processing.cpp.i
.PHONY : gpu_image_processing.cpp.i

gpu_image_processing.s: gpu_image_processing.cpp.s
.PHONY : gpu_image_processing.s

# target to generate assembly for a file
gpu_image_processing.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/gpu_image_processing.cpp.s
.PHONY : gpu_image_processing.cpp.s

gpu_program.o: gpu_program.cpp.o
.PHONY : gpu_program.o

# target to build an object file
gpu_program.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/gpu_program.cpp.o
.PHONY : gpu_program.cpp.o

gpu_program.i: gpu_program.cpp.i
.PHONY : gpu_program.i

# target to preprocess a source file
gpu_program.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/gpu_program.cpp.i
.PHONY : gpu_program.cpp.i

gpu_program.s: gpu_program.cpp.s
.PHONY : gpu_program.s

# target to generate assembly for a file
gpu_program.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/gpu_program.cpp.s
.PHONY : gpu_program.cpp.s

graphics_renderer.o: graphics_renderer.cpp.o
.PHONY : graphics_renderer.o

# target to build an object file
graphics_renderer.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/graphics_renderer.cpp.o
.PHONY : graphics_renderer.cpp.o

graphics_renderer.i: graphics_renderer.cpp.i
.PHONY : graphics_renderer.i

# target to preprocess a source file
graphics_renderer.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/graphics_renderer.cpp.i
.PHONY : graphics_renderer.cpp.i

graphics_renderer.s: graphics_renderer.cpp.s
.PHONY : graphics_renderer.s

# target to generate assembly for a file
graphics_renderer.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/graphics_renderer.cpp.s
.PHONY : graphics_renderer.cpp.s

main.o: main.cpp.o
.PHONY : main.o

# target to build an object file
main.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/main.cpp.o
.PHONY : main.cpp.o

main.i: main.cpp.i
.PHONY : main.i

# target to preprocess a source file
main.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/main.cpp.i
.PHONY : main.cpp.i

main.s: main.cpp.s
.PHONY : main.s

# target to generate assembly for a file
main.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/main.cpp.s
.PHONY : main.cpp.s

material.o: material.cpp.o
.PHONY : material.o

# target to build an object file
material.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/material.cpp.o
.PHONY : material.cpp.o

material.i: material.cpp.i
.PHONY : material.i

# target to preprocess a source file
material.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/material.cpp.i
.PHONY : material.cpp.i

material.s: material.cpp.s
.PHONY : material.s

# target to generate assembly for a file
material.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/material.cpp.s
.PHONY : material.cpp.s

mesh_renderable_object.o: mesh_renderable_object.cpp.o
.PHONY : mesh_renderable_object.o

# target to build an object file
mesh_renderable_object.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/mesh_renderable_object.cpp.o
.PHONY : mesh_renderable_object.cpp.o

mesh_renderable_object.i: mesh_renderable_object.cpp.i
.PHONY : mesh_renderable_object.i

# target to preprocess a source file
mesh_renderable_object.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/mesh_renderable_object.cpp.i
.PHONY : mesh_renderable_object.cpp.i

mesh_renderable_object.s: mesh_renderable_object.cpp.s
.PHONY : mesh_renderable_object.s

# target to generate assembly for a file
mesh_renderable_object.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/mesh_renderable_object.cpp.s
.PHONY : mesh_renderable_object.cpp.s

particles_system.o: particles_system.cpp.o
.PHONY : particles_system.o

# target to build an object file
particles_system.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/particles_system.cpp.o
.PHONY : particles_system.cpp.o

particles_system.i: particles_system.cpp.i
.PHONY : particles_system.i

# target to preprocess a source file
particles_system.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/particles_system.cpp.i
.PHONY : particles_system.cpp.i

particles_system.s: particles_system.cpp.s
.PHONY : particles_system.s

# target to generate assembly for a file
particles_system.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/particles_system.cpp.s
.PHONY : particles_system.cpp.s

render_resources.o: render_resources.cpp.o
.PHONY : render_resources.o

# target to build an object file
render_resources.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/render_resources.cpp.o
.PHONY : render_resources.cpp.o

render_resources.i: render_resources.cpp.i
.PHONY : render_resources.i

# target to preprocess a source file
render_resources.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/render_resources.cpp.i
.PHONY : render_resources.cpp.i

render_resources.s: render_resources.cpp.s
.PHONY : render_resources.s

# target to generate assembly for a file
render_resources.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/render_resources.cpp.s
.PHONY : render_resources.cpp.s

render_window.o: render_window.cpp.o
.PHONY : render_window.o

# target to build an object file
render_window.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/render_window.cpp.o
.PHONY : render_window.cpp.o

render_window.i: render_window.cpp.i
.PHONY : render_window.i

# target to preprocess a source file
render_window.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/render_window.cpp.i
.PHONY : render_window.cpp.i

render_window.s: render_window.cpp.s
.PHONY : render_window.s

# target to generate assembly for a file
render_window.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/render_window.cpp.s
.PHONY : render_window.cpp.s

scene.o: scene.cpp.o
.PHONY : scene.o

# target to build an object file
scene.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/scene.cpp.o
.PHONY : scene.cpp.o

scene.i: scene.cpp.i
.PHONY : scene.i

# target to preprocess a source file
scene.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/scene.cpp.i
.PHONY : scene.cpp.i

scene.s: scene.cpp.s
.PHONY : scene.s

# target to generate assembly for a file
scene.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/scene.cpp.s
.PHONY : scene.cpp.s

screen_overlay.o: screen_overlay.cpp.o
.PHONY : screen_overlay.o

# target to build an object file
screen_overlay.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/screen_overlay.cpp.o
.PHONY : screen_overlay.cpp.o

screen_overlay.i: screen_overlay.cpp.i
.PHONY : screen_overlay.i

# target to preprocess a source file
screen_overlay.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/screen_overlay.cpp.i
.PHONY : screen_overlay.cpp.i

screen_overlay.s: screen_overlay.cpp.s
.PHONY : screen_overlay.s

# target to generate assembly for a file
screen_overlay.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/screen_overlay.cpp.s
.PHONY : screen_overlay.cpp.s

shadowmap_shadows.o: shadowmap_shadows.cpp.o
.PHONY : shadowmap_shadows.o

# target to build an object file
shadowmap_shadows.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/shadowmap_shadows.cpp.o
.PHONY : shadowmap_shadows.cpp.o

shadowmap_shadows.i: shadowmap_shadows.cpp.i
.PHONY : shadowmap_shadows.i

# target to preprocess a source file
shadowmap_shadows.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/shadowmap_shadows.cpp.i
.PHONY : shadowmap_shadows.cpp.i

shadowmap_shadows.s: shadowmap_shadows.cpp.s
.PHONY : shadowmap_shadows.s

# target to generate assembly for a file
shadowmap_shadows.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/shadowmap_shadows.cpp.s
.PHONY : shadowmap_shadows.cpp.s

spline_path.o: spline_path.cpp.o
.PHONY : spline_path.o

# target to build an object file
spline_path.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/spline_path.cpp.o
.PHONY : spline_path.cpp.o

spline_path.i: spline_path.cpp.i
.PHONY : spline_path.i

# target to preprocess a source file
spline_path.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/spline_path.cpp.i
.PHONY : spline_path.cpp.i

spline_path.s: spline_path.cpp.s
.PHONY : spline_path.s

# target to generate assembly for a file
spline_path.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/spline_path.cpp.s
.PHONY : spline_path.cpp.s

static_mesh.o: static_mesh.cpp.o
.PHONY : static_mesh.o

# target to build an object file
static_mesh.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/static_mesh.cpp.o
.PHONY : static_mesh.cpp.o

static_mesh.i: static_mesh.cpp.i
.PHONY : static_mesh.i

# target to preprocess a source file
static_mesh.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/static_mesh.cpp.i
.PHONY : static_mesh.cpp.i

static_mesh.s: static_mesh.cpp.s
.PHONY : static_mesh.s

# target to generate assembly for a file
static_mesh.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/static_mesh.cpp.s
.PHONY : static_mesh.cpp.s

statistics.o: statistics.cpp.o
.PHONY : statistics.o

# target to build an object file
statistics.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/statistics.cpp.o
.PHONY : statistics.cpp.o

statistics.i: statistics.cpp.i
.PHONY : statistics.i

# target to preprocess a source file
statistics.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/statistics.cpp.i
.PHONY : statistics.cpp.i

statistics.s: statistics.cpp.s
.PHONY : statistics.s

# target to generate assembly for a file
statistics.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/statistics.cpp.s
.PHONY : statistics.cpp.s

texture.o: texture.cpp.o
.PHONY : texture.o

# target to build an object file
texture.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/texture.cpp.o
.PHONY : texture.cpp.o

texture.i: texture.cpp.i
.PHONY : texture.i

# target to preprocess a source file
texture.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/texture.cpp.i
.PHONY : texture.cpp.i

texture.s: texture.cpp.s
.PHONY : texture.s

# target to generate assembly for a file
texture.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/texture.cpp.s
.PHONY : texture.cpp.s

transformable_object.o: transformable_object.cpp.o
.PHONY : transformable_object.o

# target to build an object file
transformable_object.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/transformable_object.cpp.o
.PHONY : transformable_object.cpp.o

transformable_object.i: transformable_object.cpp.i
.PHONY : transformable_object.i

# target to preprocess a source file
transformable_object.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/transformable_object.cpp.i
.PHONY : transformable_object.cpp.i

transformable_object.s: transformable_object.cpp.s
.PHONY : transformable_object.s

# target to generate assembly for a file
transformable_object.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/transformable_object.cpp.s
.PHONY : transformable_object.cpp.s

volumetric_fog.o: volumetric_fog.cpp.o
.PHONY : volumetric_fog.o

# target to build an object file
volumetric_fog.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/volumetric_fog.cpp.o
.PHONY : volumetric_fog.cpp.o

volumetric_fog.i: volumetric_fog.cpp.i
.PHONY : volumetric_fog.i

# target to preprocess a source file
volumetric_fog.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/volumetric_fog.cpp.i
.PHONY : volumetric_fog.cpp.i

volumetric_fog.s: volumetric_fog.cpp.s
.PHONY : volumetric_fog.s

# target to generate assembly for a file
volumetric_fog.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/volumetric_fog.cpp.s
.PHONY : volumetric_fog.cpp.s

water_plane.o: water_plane.cpp.o
.PHONY : water_plane.o

# target to build an object file
water_plane.cpp.o:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/water_plane.cpp.o
.PHONY : water_plane.cpp.o

water_plane.i: water_plane.cpp.i
.PHONY : water_plane.i

# target to preprocess a source file
water_plane.cpp.i:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/water_plane.cpp.i
.PHONY : water_plane.cpp.i

water_plane.s: water_plane.cpp.s
.PHONY : water_plane.s

# target to generate assembly for a file
water_plane.cpp.s:
	$(MAKE) -f CMakeFiles/glGraphics.dir/build.make CMakeFiles/glGraphics.dir/water_plane.cpp.s
.PHONY : water_plane.cpp.s

# Help Target
help:
	@echo "The following are some of the valid targets for this Makefile:"
	@echo "... all (the default if no target is provided)"
	@echo "... clean"
	@echo "... depend"
	@echo "... edit_cache"
	@echo "... glGraphics"
	@echo "... rebuild_cache"
	@echo "... binary_stream.o"
	@echo "... binary_stream.i"
	@echo "... binary_stream.s"
	@echo "... camera.o"
	@echo "... camera.i"
	@echo "... camera.s"
	@echo "... clouds_noise.o"
	@echo "... clouds_noise.i"
	@echo "... clouds_noise.s"
	@echo "... config_file.o"
	@echo "... config_file.i"
	@echo "... config_file.s"
	@echo "... debug.o"
	@echo "... debug.i"
	@echo "... debug.s"
	@echo "... demo_scene.o"
	@echo "... demo_scene.i"
	@echo "... demo_scene.s"
	@echo "... dynamic_sky.o"
	@echo "... dynamic_sky.i"
	@echo "... dynamic_sky.s"
	@echo "... exs3d.o"
	@echo "... exs3d.i"
	@echo "... exs3d.s"
	@echo "... font_resource.o"
	@echo "... font_resource.i"
	@echo "... font_resource.s"
	@echo "... fps_camera.o"
	@echo "... fps_camera.i"
	@echo "... fps_camera.s"
	@echo "... frame_buffer.o"
	@echo "... frame_buffer.i"
	@echo "... frame_buffer.s"
	@echo "... gpu_buffer.o"
	@echo "... gpu_buffer.i"
	@echo "... gpu_buffer.s"
	@echo "... gpu_image_processing.o"
	@echo "... gpu_image_processing.i"
	@echo "... gpu_image_processing.s"
	@echo "... gpu_program.o"
	@echo "... gpu_program.i"
	@echo "... gpu_program.s"
	@echo "... graphics_renderer.o"
	@echo "... graphics_renderer.i"
	@echo "... graphics_renderer.s"
	@echo "... main.o"
	@echo "... main.i"
	@echo "... main.s"
	@echo "... material.o"
	@echo "... material.i"
	@echo "... material.s"
	@echo "... mesh_renderable_object.o"
	@echo "... mesh_renderable_object.i"
	@echo "... mesh_renderable_object.s"
	@echo "... particles_system.o"
	@echo "... particles_system.i"
	@echo "... particles_system.s"
	@echo "... render_resources.o"
	@echo "... render_resources.i"
	@echo "... render_resources.s"
	@echo "... render_window.o"
	@echo "... render_window.i"
	@echo "... render_window.s"
	@echo "... scene.o"
	@echo "... scene.i"
	@echo "... scene.s"
	@echo "... screen_overlay.o"
	@echo "... screen_overlay.i"
	@echo "... screen_overlay.s"
	@echo "... shadowmap_shadows.o"
	@echo "... shadowmap_shadows.i"
	@echo "... shadowmap_shadows.s"
	@echo "... spline_path.o"
	@echo "... spline_path.i"
	@echo "... spline_path.s"
	@echo "... static_mesh.o"
	@echo "... static_mesh.i"
	@echo "... static_mesh.s"
	@echo "... statistics.o"
	@echo "... statistics.i"
	@echo "... statistics.s"
	@echo "... texture.o"
	@echo "... texture.i"
	@echo "... texture.s"
	@echo "... transformable_object.o"
	@echo "... transformable_object.i"
	@echo "... transformable_object.s"
	@echo "... volumetric_fog.o"
	@echo "... volumetric_fog.i"
	@echo "... volumetric_fog.s"
	@echo "... water_plane.o"
	@echo "... water_plane.i"
	@echo "... water_plane.s"
.PHONY : help

#=============================================================================
# Special targets to cleanup operation of make.

# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
	$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system


text:
using Judge.Application;
using Judge.Application.Interfaces;
using Judge.Data;
using Judge.Model.CheckSolution;
using Judge.Model.SubmitSolution;
using NUnit.Framework;
using Rhino.Mocks;
using System.Linq;
using Judge.Model;

namespace Judge.Tests.Application.ProblemsServiceTests
{
    [TestFixture]
    internal sealed class GetProblemsListTests
    {
        private IProblemsService _service;
        private ITaskNameRepository _taskRepository;
        private ISubmitResultRepository _submitResultRepository;

        [SetUp]
        public void SetUp()
        {
            var unitOfWorkFactory = MockRepository.GenerateMock<IUnitOfWorkFactory>();
            var unitOfWork = MockRepository.GenerateMock<IUnitOfWork>();

            _taskRepository = MockRepository.GenerateMock<ITaskNameRepository>();
            _submitResultRepository = MockRepository.GenerateMock<ISubmitResultRepository>();

            unitOfWork.Stub(o => o.TaskNameRepository).Return(_taskRepository);
            unitOfWork.Stub(o => o.SubmitResultRepository).Return(_submitResultRepository);

            unitOfWorkFactory.Stub(o => o.GetUnitOfWork()).Return(unitOfWork);

            _service = new ProblemsService(unitOfWorkFactory);
        }

        [Test]
        public void FirstPageTest()
        {
            const int pageSize = 100;
            const int page = 1;

            var tasks = new[] { new TaskName { Id = 1, Name = "A" }, new TaskName { Id = 2, Name = "B" } };
            _taskRepository.Stub(o => o.GetTasks(OpenedTasksSpecification.Instance, page, pageSize)).Return(tasks);
            _taskRepository.Stub(o => o.Count(true)).Return(tasks.Length);

            var model = _service.GetProblemsList(page, pageSize, null, true);

            Assert.That(model.ProblemsCount, Is.EqualTo(2));
            Assert.That(model.Pagination.PageSize, Is.EqualTo(pageSize));
            Assert.That(model.Pagination.CurrentPage, Is.EqualTo(page));
            Assert.That(model.Pagination.TotalPages, Is.EqualTo(1));

            CollectionAssert.AreEqual(tasks.Select(o => new { o.Id, o.Name }), model.Problems.Select(o => new { o.Id, o.Name }));
        }

        [Test]
        public void TotalPagesTest()
        {
            var tasks = new[]
            {
                new TaskName { Id = 1, Name = "A" },
                new TaskName { Id = 2, Name = "B" },
                new TaskName { Id = 3, Name = "C" }
            };
            _taskRepository.Stub(o => o.GetTasks(OpenedTasksSpecification.Instance, 1, 2)).Return(tasks.Take(2));
            _taskRepository.Stub(o => o.Count(true)).Return(tasks.Length);

            var model = _service.GetProblemsList(1, 2, null, true);

            Assert.That(model.Pagination.CurrentPage, Is.EqualTo(1));
            Assert.That(model.Pagination.TotalPages, Is.EqualTo(2));
        }

        [Test]
        public void SecondPageTest()
        {
            var tasks = new[]
            {
                new TaskName { Id = 1, Name = "A" },
                new TaskName { Id = 2, Name = "B" },
                new TaskName { Id = 3, Name = "C" },
                new TaskName { Id = 4, Name = "D" },
                new TaskName { Id = 5, Name = "E" },
            };
            _taskRepository.Stub(o => o.GetTasks(OpenedTasksSpecification.Instance, 2, 2)).Return(tasks.Skip(2).Take(2));
            _taskRepository.Stub(o => o.Count(true)).Return(tasks.Length);

            var model = _service.GetProblemsList(2, 2, null, true);

            Assert.That(model.Pagination.CurrentPage, Is.EqualTo(2));
            Assert.That(model.Pagination.TotalPages, Is.EqualTo(3));

            CollectionAssert.AreEqual(tasks.Skip(2).Take(2).Select(o => new { o.Id, o.Name }), model.Problems.Select(o => new { o.Id, o.Name }));
        }

        [Test]
        public void SolvedProblemsTest()
        {
            const long userId = 5;
            const long solvedTaskId = 1;

            var tasks = new[]
            {
                new TaskName { Id = solvedTaskId, Name = "A" },
                new TaskName { Id = 2, Name = "B" },
                new TaskName { Id = 3, Name = "C" }
            };

            _taskRepository.Stub(o => o.GetTasks(OpenedTasksSpecification.Instance, 1, 2)).Return(tasks);
            _taskRepository.Stub(o => o.Count(true)).Return(tasks.Length);

            _submitResultRepository.Stub(o => o.GetSolvedProblems(Arg<ISpecification<SubmitResult>>.Is.Anything)).Return(new[] { solvedTaskId });

            var model = _service.GetProblemsList(1, 2, userId, true);

            CollectionAssert.AreEqual(tasks.Select(o => new { o.Id, o.Name, Solved = o.Id == solvedTaskId }), model.Problems.Select(o => new { o.Id, o.Name, o.Solved }));
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
'use strict';

angular.module('jhipsterwebsocketApp')
    .controller('MainController', function ($scope, Principal, WebSocket) {
        Principal.identity().then(function(account) {
            $scope.account = account;
            $scope.isAuthenticated = Principal.isAuthenticated;
        });

		$scope.messages = [];
		WebSocket.receive().then(null, null, function(message) {
			$scope.messages.push(message);
			if($scope.messages.length > 10) {
				$scope.messages.splice(0, $scope.messages.length - 10);
			}
		});
    });


text:
package gstruct_test

import (
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	. "github.com/onsi/gomega/gstruct"
)

var _ = Describe("Slice", func() {
	allElements := []string{"a", "b"}
	missingElements := []string{"a"}
	extraElements := []string{"a", "b", "c"}
	duplicateElements := []string{"a", "a", "b"}
	empty := []string{}
	var nils []string

	It("should strictly match all elements", func() {
		m := MatchAllElements(id, Elements{
			"b": Equal("b"),
			"a": Equal("a"),
		})
		Expect(allElements).Should(m, "should match all elements")
		Expect(missingElements).ShouldNot(m, "should fail with missing elements")
		Expect(extraElements).ShouldNot(m, "should fail with extra elements")
		Expect(duplicateElements).ShouldNot(m, "should fail with duplicate elements")
		Expect(nils).ShouldNot(m, "should fail with an uninitialized slice")

		m = MatchAllElements(id, Elements{
			"a": Equal("a"),
			"b": Equal("fail"),
		})
		Expect(allElements).ShouldNot(m, "should run nested matchers")

		m = MatchAllElements(id, Elements{})
		Expect(empty).Should(m, "should handle empty slices")
		Expect(allElements).ShouldNot(m, "should handle only empty slices")
		Expect(nils).Should(m, "should handle nil slices")
	})

	It("should ignore extra elements", func() {
		m := MatchElements(id, IgnoreExtras, Elements{
			"b": Equal("b"),
			"a": Equal("a"),
		})
		Expect(allElements).Should(m, "should match all elements")
		Expect(missingElements).ShouldNot(m, "should fail with missing elements")
		Expect(extraElements).Should(m, "should ignore extra elements")
		Expect(duplicateElements).ShouldNot(m, "should fail with duplicate elements")
		Expect(nils).ShouldNot(m, "should fail with an uninitialized slice")
	})

	It("should ignore missing elements", func() {
		m := MatchElements(id, IgnoreMissing, Elements{
			"a": Equal("a"),
			"b": Equal("b"),
		})
		Expect(allElements).Should(m, "should match all elements")
		Expect(missingElements).Should(m, "should ignore missing elements")
		Expect(extraElements).ShouldNot(m, "should fail with extra elements")
		Expect(duplicateElements).ShouldNot(m, "should fail with duplicate elements")
		Expect(nils).Should(m, "should ignore an uninitialized slice")
	})

	It("should ignore missing and extra elements", func() {
		m := MatchElements(id, IgnoreMissing|IgnoreExtras, Elements{
			"a": Equal("a"),
			"b": Equal("b"),
		})
		Expect(allElements).Should(m, "should match all elements")
		Expect(missingElements).Should(m, "should ignore missing elements")
		Expect(extraElements).Should(m, "should ignore extra elements")
		Expect(duplicateElements).ShouldNot(m, "should fail with duplicate elements")
		Expect(nils).Should(m, "should ignore an uninitialized slice")

		m = MatchElements(id, IgnoreExtras|IgnoreMissing, Elements{
			"a": Equal("a"),
			"b": Equal("fail"),
		})
		Expect(allElements).ShouldNot(m, "should run nested matchers")
	})

	Context("with elements that share a key", func() {
		nonUniqueID := func(element interface{}) string {
			return element.(string)[0:1]
		}

		allElements := []string{"a123", "a213", "b321"}
		includingBadElements := []string{"a123", "b123", "b5555"}
		extraElements := []string{"a123", "b1234", "c345"}
		missingElements := []string{"b123", "b1234", "b1345"}

		It("should strictly allow multiple matches", func() {
			m := MatchElements(nonUniqueID, AllowDuplicates, Elements{
				"a": ContainSubstring("1"),
				"b": ContainSubstring("1"),
			})
			Expect(allElements).Should(m, "should match all elements")
			Expect(includingBadElements).ShouldNot(m, "should reject if a member fails the matcher")
			Expect(extraElements).ShouldNot(m, "should reject with extra keys")
			Expect(missingElements).ShouldNot(m, "should reject with missing keys")
			Expect(nils).ShouldNot(m, "should fail with an uninitialized slice")
		})

		It("should ignore missing", func() {
			m := MatchElements(nonUniqueID, AllowDuplicates|IgnoreMissing, Elements{
				"a": ContainSubstring("1"),
				"b": ContainSubstring("1"),
			})
			Expect(allElements).Should(m, "should match all elements")
			Expect(includingBadElements).ShouldNot(m, "should reject if a member fails the matcher")
			Expect(extraElements).ShouldNot(m, "should reject with extra keys")
			Expect(missingElements).Should(m, "should allow missing keys")
			Expect(nils).Should(m, "should allow an uninitialized slice")
		})

		It("should ignore extras", func() {
			m := MatchElements(nonUniqueID, AllowDuplicates|IgnoreExtras, Elements{
				"a": ContainSubstring("1"),
				"b": ContainSubstring("1"),
			})
			Expect(allElements).Should(m, "should match all elements")
			Expect(includingBadElements).ShouldNot(m, "should reject if a member fails the matcher")
			Expect(extraElements).Should(m, "should allow extra keys")
			Expect(missingElements).ShouldNot(m, "should reject missing keys")
			Expect(nils).ShouldNot(m, "should reject an uninitialized slice")
		})

		It("should ignore missing and extras", func() {
			m := MatchElements(nonUniqueID, AllowDuplicates|IgnoreExtras|IgnoreMissing, Elements{
				"a": ContainSubstring("1"),
				"b": ContainSubstring("1"),
			})
			Expect(allElements).Should(m, "should match all elements")
			Expect(includingBadElements).ShouldNot(m, "should reject if a member fails the matcher")
			Expect(extraElements).Should(m, "should allow extra keys")
			Expect(missingElements).Should(m, "should allow missing keys")
			Expect(nils).Should(m, "should allow an uninitialized slice")
		})
	})
})

func id(element interface{}) string {
	return element.(string)
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>All Classes</title>
<meta name="date" content="2016-03-10">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

All Classes

MySQL2PHP2Java

MySQLRespond


text:
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.Networking.Match;
using UnityEngine.Networking.Types;
using UnityEngine.Events;
using Assets.Scripts.Player;
using UnityEngine.SceneManagement;

namespace Assets.Scripts.Networking
{
    public class NetworkLobbyController : NetworkLobbyManager {

        public float publicMatchWaitTime = 10.0f;
        public bool simulateServerOnly = false;
        public static NetworkLobbyController instance;

        internal bool loadingMatches = true;
        internal bool readyToReset = true;
        internal bool creatingMatch = true;
        internal bool joiningMatch = false;
        internal bool searchingPublicMatch = true;

        internal List<MatchInfoSnapshot> publicMatches;
        internal PlayMenu currentPlayMenu;

        public delegate void OnPlayerDisconnectDelegate(NetworkConnection conn, int playerCount);
        public static event OnPlayerDisconnectDelegate PlayerDisconnectEvent;

        ulong netId;
        ulong nodeId;
        ulong createdMatchID = (ulong)NetworkID.Invalid;
        bool online = true;
        NetworkDiscovery networkExplorer;
        //Gives players a unique id
        int idCounter = 0;
        List<GameObject> gamePlayers;
        OnlineSceneSelector sceneSelector;

        private void Awake()
        {
            if (instance == null)
                instance = this;
            gamePlayers = new List<GameObject>();
        }

        private void Start()
        {
            networkExplorer = GetComponent<NetworkDiscovery>();
            sceneSelector = GetComponent<OnlineSceneSelector>();
            SafeSetOnlineScene();
        }

        public override void OnMatchCreate(bool success, string extendedInfo, MatchInfo matchInfo)
        {
            base.OnMatchCreate(success, extendedInfo, matchInfo);

            if (success)
            {
                netId = (ulong)matchInfo.networkId;
                nodeId = (ulong)matchInfo.nodeId;
                createdMatchID = (ulong)matchInfo.networkId;
                searchingPublicMatch = false;
                Debug.LogWarning("Create and join at "+matchInfo.networkId);
            }
            else
            {
                Debug.LogError("Create fail "+matchInfo);
            }

            creatingMatch = false;
        }

        public override void OnMatchJoined(bool success, string extendedInfo, MatchInfo matchInfo)
        {
            base.OnMatchJoined(success, extendedInfo, matchInfo);
            searchingPublicMatch = !success;

            if (success)
            {
                netId = (ulong)matchInfo.networkId;
                nodeId = (ulong)matchInfo.nodeId;
                Debug.Log("Join at "+matchInfo.networkId);
            }
            else
            {
                Debug.LogWarning("Join fail");
            }

            joiningMatch = false;
        }

        public override void OnDestroyMatch(bool success, string extendedInfo)
        {
            base.OnDestroyMatch(success, extendedInfo);
            if(success)
            {
                Debug.LogWarning("Destoyed "+extendedInfo);
            }
            else
            {
                Debug.LogWarning("Destroy Fail "+extendedInfo);
            }

            readyToReset = true;
        }

        public override void OnServerDisconnect(NetworkConnection conn)
        {
            try
            {
                base.OnServerDisconnect(conn);
                Debug.LogWarning("Player dsconected! " + conn);

                if (PlayerDisconnectEvent != null)
                {
                    // num players is an inherited field
                    PlayerDisconnectEvent(conn, numPlayers);
                }
            }
            catch (System.Exception e)
            {
                Debug.LogWarning("Player dsconnection error " + e.Message);
            }
        }

        public override bool OnLobbyServerSceneLoadedForPlayer(GameObject lobbyPlayer, GameObject gamePlayer)
        {
            bool ret =  base.OnLobbyServerSceneLoadedForPlayer(lobbyPlayer, gamePlayer);
            gamePlayer.GetComponent<PlayerDataHolder>().playerId = idCounter;
            idCounter += 1;

            //reset player id
            if (idCounter == maxPlayers)
                idCounter = 0;

            gamePlayers.Add(gamePlayer);

            return ret;
        }

        public List<GameObject> GetPlayersInMatch()
        {
            return gamePlayers;
        }

        public void CreateMatch(string matchName)
        {

            matchMaker.CreateMatch(
                   matchName,
                   (uint)maxPlayers,
                   true,
                   "", "", "", 0, 0,
                   OnMatchCreate);
        }

        public void InitMatchList(bool success, string extendedInfo, List<MatchInfoSnapshot> matches)
        {
            if (success)
            {
                publicMatches = matches;
            }
            else
            {
                publicMatches = new List<MatchInfoSnapshot>();
            }

            loadingMatches = false;
        }

        public void PrepareToReset()
        {
            if(createdMatchID != (ulong)NetworkID.Invalid && matchMaker)
            {
                matchMaker.DestroyMatch((NetworkID)createdMatchID, 0, OnDestroyMatch);
                createdMatchID = (ulong)NetworkID.Invalid;
            }
            else
            {
                readyToReset = true;
            }
        }

        public void ResetNetworkState()
        {
            StopAllCoroutines();

            SafeStopBroadCast();

            if (currentPlayMenu)
                currentPlayMenu.StopMatchSearch();

            if (matchMaker)
            {
                StopMatchMaker();
            }

            StopClient();
            StopHost();

            loadingMatches = true;
            searchingPublicMatch = true;
            joiningMatch = false;
            creatingMatch = true;

            gamePlayers = new List<GameObject>();
        }

        public void SafeStopBroadCast()
        {
            if (networkExplorer && networkExplorer.running)
                networkExplorer.StopBroadcast();
        }

        public void SetMinPlayers(int val)
        {
            minPlayers = val;
            SafeSetOnlineScene();
        }

        private void SafeSetOnlineScene()
        {
            if (sceneSelector)
            {
                playScene = sceneSelector.GetSceneFor(minPlayers);
            }
        }

        public bool Online
        {
            get
            {
                return online;
            }

            set
            {
                online = value;
            }
        }

        public NetworkDiscovery GetNetExplorer()
        {
            return networkExplorer;
        }

        public bool IsSearchingPublicMatch()
        {
            return searchingPublicMatch;
        }

        public bool IsLoadingPublicMatches()
        {
            return loadingMatches;
        }

        public bool IsJoiningMatch()
        {
            return joiningMatch;
        }

        public bool IsCreatingMatch()
        {
            return creatingMatch;
        }

        public bool IsReadyToReset()
        {
            return readyToReset;
        }
    }
}


text:
@interface NXCoreBluetoothTool ()<CBCentralManagerDelegate, CBPeripheralDelegate>

@end

@implementation NXCoreBluetoothTool

- (id)init
{
    if (self = [super init])
    {
        CBCentralManager *manager;
        manager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];

        NSDictionary *dic =
            [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:NO],
                                                       CBCentralManagerScanOptionAllowDuplicatesKey, nil];

        [manager scanForPeripheralsWithServices:nil options:dic];
    }

    return self;
}

- (void)centralManager:(CBCentralManager *)central
 didDiscoverPeripheral:(CBPeripheral *)peripheral
     advertisementData:(NSDictionary *)advertisementData
                  RSSI:(NSNumber *)RSSI

{
    //	if(![_dicoveredPeripherals containsObject:peripheral])
    //		[_dicoveredPeripherals addObject:peripheral];

    NSLog(@"dicoveredPeripherals:%@", peripheral);
}

- (void)centralManagerDidUpdateState:(CBCentralManager *)central {}
@end


text:
package com.deeal.exchange.model;

import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;

import com.ab.util.dct.IFDCT;
import com.deeal.exchange.Bean.CommodityListItemBean;
import com.deeal.exchange.application.MyApplication;
import com.deeal.exchange.tools.DateUtils;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;

/**
 * Created by gxy on 2015/8/24.
 */
public class MyNeedSearchOption {
   /*
  "tokenID" : "xxx",
    "startOffset" : "0", 查询起始偏移
    "pageCount" : 10, 每次查询页数
    "merchandiseTypeID" : "1", 商品类型
    "cityID" : "1",  城市ID
    "collegeID" : "1", 学校ID
    "searchKey" :  "-1", 搜索关键字,查询所有为"-1"
    假设要查询第11到第20条记录,startOffset, pageCount 分别为: 10, 10*/

    private String tokenID;
    private String startOffset;
    private String pageCount;
    private String searchKey;
    private int currentPage;
    private String merchandiseTypeID;
    private String cityID;
    private String collegeID;

    public String getCityID() {
        return cityID;
    }

    public void setCityID(String cityID) {
        this.cityID = cityID;
    }

    public String getCollegeID() {
        return collegeID;
    }

    public void setCollegeID(String collegeID) {
        this.collegeID = collegeID;
    }

    public String getMerchandiseTypeID() {
        return merchandiseTypeID;
    }

    public void setMerchandiseTypeID(String merchandiseTypeID) {
        this.merchandiseTypeID = merchandiseTypeID;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public String getPageCount() {
        return pageCount;
    }

    public void setPageCount(String pageCount) {
        this.pageCount = pageCount;
    }

    public String getSearchKey() {
        return searchKey;
    }

    public void setSearchKey(String searchKey) {
        this.searchKey = searchKey;
    }

    public String getStartOffset() {
        return startOffset;
    }

    public void setStartOffset(String startOffset) {
        this.startOffset = startOffset;
    }

    public String getTokenID() {
        return tokenID;
    }

    public void setTokenID(String tokenID) {
        this.tokenID = tokenID;
    }

    public static String createJson(Context context, MerchandiseSearchOption merchandiseSearchOption) throws JSONException {
        String json = "";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("tokenID", MyApplication.mUser.getTokenId());
        jsonObject.put("startOffset", merchandiseSearchOption.getPageCount());
        jsonObject.put("pageCount", 10);
        jsonObject.put("searchKey", -1);
        jsonObject.put("cityID", merchandiseSearchOption.getCityId());
        jsonObject.put("collegeID", merchandiseSearchOption.getSchoolId());
        jsonObject.put("merchandiseTypeID", merchandiseSearchOption.getMerchandiseTypeId());
        json = jsonObject.toString();
        return json;
    }

    public static ArrayList<CommodityListItemBean> parseJson(String json) throws JSONException {
        ArrayList<CommodityListItemBean> items = new ArrayList<CommodityListItemBean>();
        JSONObject jsonObject = new JSONObject(json);
        if (jsonObject.getString("status").equals("SUCCESS")) {

            JSONArray jsonArray = new JSONArray(jsonObject.getString("data"));
            for (int i = 0; i < jsonArray.length(); i++) {
                CommodityListItemBean commodityListItemBean = new CommodityListItemBean();
                JSONObject data = jsonArray.getJSONObject(i);
                commodityListItemBean.setUserheadurl(data.getString("portraitPath"));
                commodityListItemBean.setUsername(data.getString("userName"));
                commodityListItemBean.setInfo(data.getString("info"));
                commodityListItemBean.setPublishtime(DateUtils.FormatData(data.getString("publishedTime")));
                commodityListItemBean.setUserid(data.getString("userID"));
                items.add(commodityListItemBean);
            }

        } else{
        }
        return items;
    }

}


text:
<?php

require_once 'include/Webservices/Utils.php';
require_once 'include/Webservices/ModuleTypes.php';
require_once 'include/utils/CommonUtils.php';
require_once 'include/Webservices/DescribeObject.php';

	function vtws_sync($mtime,$elementType,$syncType,$user){
		global $adb, $recordString,$modifiedTimeString;

		$numRecordsLimit = 100;
		$ignoreModules = array("Users");
		$typed = true;
		$dformat = "Y-m-d H:i:s";
		$datetime = date($dformat, $mtime);
		$setypeArray = array();
		$setypeData = array();
		$setypeHandler = array();
		$setypeNoAccessArray = array();

		$output = array();
		$output["updated"] = array();
		$output["deleted"] = array();

		$applicationSync = false;
		if(is_object($syncType) && ($syncType instanceof Users)){
			$user = $syncType;
		} else if($syncType == 'application'){
			$applicationSync = true;
		} else if($syncType == 'userandgroup'){
            $userAndGroupSync = true;
        }

		if($applicationSync && !is_admin($user)){
			throw new WebServiceException(WebServiceErrorCode::$ACCESSDENIED,"Only admin users can perform application sync");
		}

		$ownerIds = array($user->id);
        // To get groupids in which this user exist
        if ($userAndGroupSync) {
        $groupresult = $adb->pquery("select groupid from vtiger_users2group where userid=?", array($user->id));
        $numOfRows = $adb->num_rows($groupresult);
        if ($numOfRows > 0) {
            for ($i = 0; $i < $numOfRows; $i++) {
                $ownerIds[count($ownerIds)] = $adb->query_result($groupresult, $i, "groupid");
            }
        }
    }
        // End

		if(!isset($elementType) || $elementType=='' || $elementType==null){
			$typed=false;
		}

		$adb->startTransaction();

		$accessableModules = array();
		$entityModules = array();
		$modulesDetails = vtws_listtypes(null,$user);
		$moduleTypes = $modulesDetails['types'];
		$modulesInformation = $modulesDetails["information"];

		foreach($modulesInformation as $moduleName=>$entityInformation){
		 if($entityInformation["isEntity"])
				$entityModules[] = $moduleName;
		}
		if(!$typed){
			$accessableModules = $entityModules;
		}
		else{
				if(!in_array($elementType,$entityModules))
					throw new WebServiceException(WebServiceErrorCode::$ACCESSDENIED,"Permission to perform the operation is denied");
				$accessableModules[] = $elementType;
		}

		$accessableModules = array_diff($accessableModules,$ignoreModules);

		if(count($accessableModules)<=0)
		{
				$output['lastModifiedTime'] = $mtime;
				$output['more'] = false;
				return $output;
		}

		if($typed){
				$handler = vtws_getModuleHandlerFromName($elementType, $user);
				$moduleMeta = $handler->getMeta();
				$entityDefaultBaseTables = $moduleMeta->getEntityDefaultTableList();
				//since there will be only one base table for all entities
				$baseCRMTable = $entityDefaultBaseTables[0];
				if($elementType=="Calendar" || $elementType=="Events" ){
					$baseCRMTable = getSyncQueryBaseTable($elementType);
				}
		}
		else
		 $baseCRMTable = " vtiger_crmentity ";

		//modifiedtime - next token
		$q = "SELECT modifiedtime FROM $baseCRMTable WHERE  modifiedtime>? and setype IN(".generateQuestionMarks($accessableModules).") ";
		$params = array($datetime);
		foreach($accessableModules as $entityModule){
			if($entityModule == "Events")
				$entityModule = "Calendar";
			$params[] = $entityModule;
		}
		if(!$applicationSync){
			$q .= ' and smownerid IN('.generateQuestionMarks($ownerIds).')';
			$params = array_merge($params,$ownerIds);
		}

		$q .=" order by modifiedtime limit $numRecordsLimit";
		$result = $adb->pquery($q,$params);

		$modTime = array();
		for($i=0;$i<$adb->num_rows($result);$i++){
			$modTime[] = $adb->query_result($result,$i,'modifiedtime');
		}
		if(!empty($modTime)){
			$maxModifiedTime = max($modTime);
		}
		if(!$maxModifiedTime){
			$maxModifiedTime = $datetime;
		}
		foreach($accessableModules as $elementType){
			$handler = vtws_getModuleHandlerFromName($elementType, $user);
			$moduleMeta = $handler->getMeta();
			$deletedQueryCondition = $moduleMeta->getEntityDeletedQuery();
			preg_match_all("/(?:\s+\w+[ \t\n\r]+)?([^=]+)\s*=([^\s]+|'[^']+')/",$deletedQueryCondition,$deletedFieldDetails);
			$fieldNameDetails = $deletedFieldDetails[1];
			$deleteFieldValues = $deletedFieldDetails[2];
			$deleteColumnNames = array();
			foreach($fieldNameDetails as $tableName_fieldName){
				$fieldComp = explode(".",$tableName_fieldName);
				$deleteColumnNames[$tableName_fieldName] = $fieldComp[1];
			}
			$params = array($moduleMeta->getTabName(),$datetime,$maxModifiedTime);

			$queryGenerator = new QueryGenerator($elementType, $user);
			$fields = array();
			$moduleFields = $moduleMeta->getModuleFields();
            $moduleFieldNames = getSelectClauseFields($elementType,$moduleMeta,$user);
			$moduleFieldNames[]='id';
			$queryGenerator->setFields($moduleFieldNames);
			$selectClause = "SELECT ".$queryGenerator->getSelectClauseColumnSQL();
			// adding the fieldnames that are present in the delete condition to the select clause
			// since not all fields present in delete condition will be present in the fieldnames of the module
			foreach($deleteColumnNames as $table_fieldName=>$columnName){
				if(!in_array($columnName,$moduleFieldNames)){
					$selectClause .=", ".$table_fieldName;
				}
			}
			if($elementType=="Emails")
				$fromClause = vtws_getEmailFromClause();
			else
				$fromClause = $queryGenerator->getFromClause();

			$fromClause .= " INNER JOIN (select modifiedtime, crmid,deleted,setype FROM $baseCRMTable WHERE setype=? and modifiedtime >? and modifiedtime<=?";
			if(!$applicationSync){
				$fromClause.= 'and smownerid IN('.generateQuestionMarks($ownerIds).')';
				$params = array_merge($params,$ownerIds);
			}
			$fromClause.= ' ) vtiger_ws_sync ON (vtiger_crmentity.crmid = vtiger_ws_sync.crmid)';
			$q = $selectClause." ".$fromClause;
			$result = $adb->pquery($q, $params);
			$recordDetails = array();
			$deleteRecordDetails = array();
			while($arre = $adb->fetchByAssoc($result)){
				$key = $arre[$moduleMeta->getIdColumn()];
				if(vtws_isRecordDeleted($arre,$deleteColumnNames,$deleteFieldValues)){
					if(!$moduleMeta->hasAccess()){
						continue;
					}
					$output["deleted"][] = vtws_getId($moduleMeta->getEntityId(), $key);
				}
				else{
					if(!$moduleMeta->hasAccess() ||!$moduleMeta->hasPermission(EntityMeta::$RETRIEVE,$key)){
						continue;
					}
					try{
						$output["updated"][] = DataTransform::sanitizeDataWithColumn($arre,$moduleMeta);
					}catch(WebServiceException $e){
						//ignore records the user doesn't have access to.
						continue;
					}catch(Exception $e){
						throw new WebServiceException(WebServiceErrorCode::$INTERNALERROR,"Unknown Error while processing request");
					}
				}
			}
		}

		$q = "SELECT crmid FROM $baseCRMTable WHERE modifiedtime>?  and setype IN(".generateQuestionMarks($accessableModules).")";
		$params = array($maxModifiedTime);

		foreach($accessableModules as $entityModule){
			if($entityModule == "Events")
				$entityModule = "Calendar";
			$params[] = $entityModule;
		}
		if(!$applicationSync){
			$q.='and smownerid IN('.generateQuestionMarks($ownerIds).')';
			$params = array_merge($params,$ownerIds);
		}

		$result = $adb->pquery($q,$params);
		if($adb->num_rows($result)>0){
			$output['more'] = true;
		}
		else{
			$output['more'] = false;
		}
		if(!$maxModifiedTime){
			$modifiedtime = $mtime;
		}else{
			$modifiedtime = vtws_getSeconds($maxModifiedTime);
		}
		if(is_string($modifiedtime)){
			$modifiedtime = intval($modifiedtime);
		}
		$output['lastModifiedTime'] = $modifiedtime;

		$error = $adb->hasFailedTransaction();
		$adb->completeTransaction();

		if($error){
			throw new WebServiceException(WebServiceErrorCode::$DATABASEQUERYERROR,
					vtws_getWebserviceTranslatedString('LBL_'.
							WebServiceErrorCode::$DATABASEQUERYERROR));
		}

		VTWS_PreserveGlobal::flush();
		return $output;
	}

	function vtws_getSeconds($mtimeString){
		//TODO handle timezone and change time to gmt.
		return strtotime($mtimeString);
	}

	function vtws_isRecordDeleted($recordDetails,$deleteColumnDetails,$deletedValues){
		$deletedRecord = false;
		$i=0;
		foreach($deleteColumnDetails as $tableName_fieldName=>$columnName){
			if($recordDetails[$columnName]!=$deletedValues[$i++]){
				$deletedRecord = true;
				break;
			}
		}
		return $deletedRecord;
	}

	function vtws_getEmailFromClause(){
		$q = "FROM vtiger_activity
				INNER JOIN vtiger_crmentity ON vtiger_activity.activityid = vtiger_crmentity.crmid
				LEFT JOIN vtiger_users ON vtiger_crmentity.smownerid = vtiger_users.id
				LEFT JOIN vtiger_groups ON vtiger_crmentity.smownerid = vtiger_groups.groupid
				LEFT JOIN vtiger_seattachmentsrel ON vtiger_activity.activityid = vtiger_seattachmentsrel.crmid
				LEFT JOIN vtiger_attachments ON vtiger_seattachmentsrel.attachmentsid = vtiger_attachments.attachmentsid
				LEFT JOIN vtiger_email_track ON vtiger_activity.activityid = vtiger_email_track.mailid
				INNER JOIN vtiger_emaildetails ON vtiger_activity.activityid = vtiger_emaildetails.emailid
				LEFT JOIN vtiger_users vtiger_users2 ON vtiger_emaildetails.idlists = vtiger_users2.id
				LEFT JOIN vtiger_groups vtiger_groups2 ON vtiger_emaildetails.idlists = vtiger_groups2.groupid";
		return $q;
	}

	function getSyncQueryBaseTable($elementType){
		if($elementType!="Calendar" && $elementType!="Events"){
			return "vtiger_crmentity";
		}
		else{
			$activityCondition = getCalendarTypeCondition($elementType);
			$query = "vtiger_crmentity INNER JOIN vtiger_activity ON (vtiger_crmentity.crmid = vtiger_activity.activityid and $activityCondition)";
			return $query;
		}
	}

	function getCalendarTypeCondition($elementType){
		if($elementType == "Events")
			$activityCondition = "vtiger_activity.activitytype !='Task' and vtiger_activity.activitytype !='Emails'";
		else
			$activityCondition = "vtiger_activity.activitytype ='Task'";
		return $activityCondition;
	}

    function getSelectClauseFields($module,$moduleMeta,$user){
        $moduleFieldNames = $moduleMeta->getModuleFields();
        $inventoryModules = getInventoryModules();
        if(in_array($module, $inventoryModules)){

            $fields = vtws_describe('LineItem', $user);
            foreach($fields['fields'] as $field){
                unset($moduleFieldNames[$field['name']]);
            }
			foreach ($moduleFieldNames as $field => $fieldObj){
				if(substr($field, 0, 5) == 'shtax'){
					unset($moduleFieldNames[$field]);
				}
			}

        }
        return array_keys($moduleFieldNames);
    }

?>


text:
package gueei.binding.converters;

import gueei.binding.AttributeInjector;
import gueei.binding.AttributeInjector.InjectParams;
import gueei.binding.Binder.InflateResult;
import gueei.binding.Converter;
import gueei.binding.DynamicObject;
import gueei.binding.IObservable;
import gueei.binding.viewAttributes.templates.Layout;

import java.util.ArrayList;

/**
 * INJECT binding statements into layout templates.

 * Most probably those templates came from external libraries (e.g. android) that you cannot change

 * This is much more convenient than everytime you need to copy those standard templates.

 *

 *
 * The most common usage is on those templates for spinners, listviews (e.g. @android:layout/simple_list_item1).

 * Suppose We need to inject the statement to the textview (@android:id/textview1), then:

 * binding:itemTemplate="INJECT(@android:layout/simple_list_item1, { id=@android:id/textview1, attr='text', statement='Name' })"

 * Note it is possible to inject more than one attribute, for example you can change the color of the above mentioned text view too:

 * binding:itemTemplate="INJECT(@android:layout/simple_list_item1, { id=@android:id/textview1, attr='text', statement='Name' }, { id=@android:id/textview1, attr='backgroundColor', statement='ARGB(255,0,0)' })"

 * @usage layout params ...
 *
 * @arg layout gueei.binding.viewAttributes.templates.Layout Layout of the template-to-inject
 * @arg params DynamicObject
 *
 * @item id integer Android Id value of the widget
 * @item attr Attribute name of that widget
 * @item statement Binding Statement to be injected
 *
 * @return gueei.binding.viewAttributes.templates.Layout
 */
public class INJECT extends Converter<Layout> {
	public INJECT(IObservable<?>[] dependents) {
		super(Layout.class, dependents);
	}

	@Override
	public Layout calculateValue(Object... args) throws Exception {
		if (args.length<1 || !(args[0] instanceof Layout)) return null;
		if (args.length<2) return (Layout)args[0];
		return new InjectLayout((Layout)args[0], process(args));
	}

	private static InjectParams[] process(Object[] args){
		ArrayList<InjectParams> injectParams = new ArrayList<InjectParams>();
		int len = args.length;
		if (args.length<2) return new InjectParams[0];
		for(int i=1; i<len; i++){
			if (!(args[i] instanceof DynamicObject)) continue;
			try{
				DynamicObject p = (DynamicObject)args[i];
				InjectParams param = new InjectParams();
				param.Id = (Integer)p.getObservableByName("id").get();
				param.AttrName = p.getObservableByName("attr").get().toString();
				param.Statement = p.getObservableByName("statement").get().toString();
				injectParams.add(param);
			}catch(Exception e){ continue; }
		}
		return injectParams.toArray(new InjectParams[0]);
	}

	public static class InjectLayout extends Layout{
		private final Layout mLayout;
		private final InjectParams[] mParams;

		@Override
		public void onAfterInflate(InflateResult result, int position) {
			super.onAfterInflate(result, position);
			AttributeInjector.inject(mParams, result);
		}

		public InjectLayout(Layout layout, InjectParams[] params) {
			super(layout.getDefaultLayoutId());
			mLayout = layout;
			mParams = params;
		}

		@Override
		public int getLayoutTypeId(int pos) {
			return mLayout.getLayoutTypeId(pos);
		}

		@Override
		public int getLayoutId(int pos) {
			return mLayout.getLayoutId(pos);
		}

		@Override
		public int getTemplateCount() {
			return mLayout.getTemplateCount();
		}

	}
}


text:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@color/white"/>
    <item>
        <bitmap android:src="@drawable/icon_splash"
            android:gravity="center"
            />
    </item>
</layer-list>


text:
/**
 ** These files test the use of new instance expressions' enclosing
 ** instance pointers -- both with and without explicit enclosing
 ** instance pointers.
 **/

class Top {
    // no explicit enclosing instance ptr...
    Top foo(int x) {
	return new Top();       // normal 1.0 case
    }

    int TopLevel;    // attempt to block seeing TopLevel...

    static class TopLevel {
	// ...

	TopLevel foo(Object x) {
	    return x.new TopLevel(); // error! x has no TopLevel type member
	}

	// continued in New4.java...
    }
}
class Top2 {
    static class TopLevel {}
}


text:
layout: loop
title: Order product Loop
description: Order product loop displays Order products information.
sidebar: loop
lang: en
subnav: loop_order_product
uses_global_argument: true
returns_global_outputs: { countable : true, timestampable : true, versionable : false }
type: order_product
arguments :
    - {name: "order", description: "A single order id.", example: "order=\"2\"", mandatory: "true"}
    - {name: "virtual", description: "A boolean value.", example: "new=\"yes\""}
outputs :
    - {name: "$ID", description: "the order product id"}
    - {name: "$REF", description: "the order product reference"}
    - {name: "$PRODUCT_SALE_ELEMENTS_REF", description: "the order product sale elements reference"}
    - {name: "$WAS_NEW", description: "whatever the order product sale elements was new or not"}
    - {name: "$WAS_IN_PROMO", description: "whatever the order product sale elements was in promo or not"}
    - {name: "$WEIGHT", description: "the order product sale elements weight"}
    - {name: "$TITLE", description: "the order product title"}
    - {name: "$CHAPO", description: "the order product short description"}
    - {name: "$DESCRIPTION", description: "the order product description"}
    - {name: "$POSTSCRIPTUM", description: "the order product postscriptum"}
    - {name: "$VIRTUAL", description: "whatever the order product is a virtual product or not"}
    - {name: "$VIRTUAL_DOCUMENT", description: "the name of the file if the product is virtual."}
    - {name: "$QUANTITY", description: "the order product ordered quantity"}
    - {name: "$PRICE", description: "the order product price (unit price)"}
    - {name: "$PRICE_TAX", description: "the order product taxes (unit price)"}
    - {name: "$TAXED_PRICE", description: "the order product price including taxes (unit price)"}
    - {name: "$PROMO_PRICE", description: "the order product in promo price (unit price)"}
    - {name: "$PROMO_PRICE_TAX", description: "the order product in promo price taxes (unit price)"}
    - {name: "$TAXED_PROMO_PRICE", description: "the order product in promo price including taxes (unit price)"}
    - {name: "$TOTAL_PRICE", description: "the order product price (total price)", from_version: "2.3"}
    - {name: "$TOTAL_TAXED_PRICE", description: "the order product price including taxes (total price)", from_version: "2.3"}
    - {name: "$TOTAL_PROMO_PRICE", description: "the order product in promo price (total price)", from_version: "2.3"}
    - {name: "$TOTAL_TAXED_PROMO_PRICE", description: "the order product in promo price including taxes (total price)", from_version: "2.3"}
    - {name: "$TAX_RULE_TITLE", description: ""}
    - {name: "$TAX_RULE_DESCRIPTION", description: ""}
    - {name: "$PARENT", description: ""}
    - {name: "$EAN_CODE", description: ""}
---


text:
<?xml version="1.0" encoding="UTF-8"?>
<tei xmlns="http://www.tei-c.org/ns/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML">
	<teiHeader>
		<fileDesc>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>

						<affiliation>
							<marker>1</marker>
							<orgName type="institution">Microsoft Research Asia</orgName>,
							<address>
								<settlement>Beijing</settlement>,
								<country>P.R.C.</country>
							<lb/>
							</address>
						</affiliation>
						<affiliation>
							<marker>2</marker>
							<orgName type="institution">Microsoft Research</orgName>,
							<address>
								<settlement>Redmond</settlement>,
								<country>USA</country>
							<lb/>
							</address>
						</affiliation>
						<affiliation>
							<marker>3</marker>
							<orgName type="department">Department of Electronic Engineering</orgName>,
							<orgName type="institution">Tsinghua University</orgName>,
							<address>
								<postCode>10084</postCode>
								<settlement>Beijing</settlement>,
								<country>P.R.C.</country>
							</address>
						</affiliation>

						</author>
					</analytic>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
	</teiHeader>
</tei>