Skip to content

Commit e818550

Browse files
committed
Refactor: Resave models with CDATA default for Code and Info
1 parent 5931489 commit e818550

184 files changed

Lines changed: 358 additions & 358 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3D/Code Examples/Neighborhoods Example 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>;; This procedure creates 8 turtles in puts them in a circle
3+
<code><![CDATA[;; This procedure creates 8 turtles in puts them in a circle
44
to setup
55
clear-all
66
setxyz 10 -20 6 ; set the observer position
@@ -63,7 +63,7 @@ end
6363
6464
; Public Domain:
6565
; To the extent possible under law, Uri Wilensky has waived all
66-
; copyright and related or neighboring rights to this model.</code>
66+
; copyright and related or neighboring rights to this model.]]></code>
6767
<widgets>
6868
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-17" height="341" showTickCounter="true" patchSize="9.0" fontSize="10" wrappingAllowedY="true" width="321" tickCounterLabel="ticks" maxPycor="17" updateMode="1" frameRate="30.0" maxPzcor="6" maxPxcor="17" minPxcor="-17" minPzcor="-6"></view3d>
6969
<button x="76" y="29" height="37" disableUntilTicks="false" forever="false" kind="Observer" width="127" sizeVersion="0">setup</button>

3D/Code Examples/Spherical Path Example 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>globals [ radius ]
3+
<code><![CDATA[globals [ radius ]
44
55
to setup
66
clear-all
@@ -67,7 +67,7 @@ end
6767
6868
; Public Domain:
6969
; To the extent possible under law, Uri Wilensky has waived all
70-
; copyright and related or neighboring rights to this model.</code>
70+
; copyright and related or neighboring rights to this model.]]></code>
7171
<widgets>
7272
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-16" height="455" showTickCounter="false" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="435" tickCounterLabel="ticks" maxPycor="16" updateMode="1" frameRate="30.0" maxPzcor="16" maxPxcor="16" minPxcor="-16" minPzcor="-16"></view3d>
7373
<chooser x="35" y="120" height="45" variable="step-size" current="1" display="step-size" width="175" sizeVersion="0">

3D/Code Examples/Three Loops Example 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>to setup
3+
<code><![CDATA[to setup
44
clear-all
55
create-turtles 3 [
66
set heading who * 90
@@ -21,7 +21,7 @@ end
2121
2222
; Public Domain:
2323
; To the extent possible under law, Uri Wilensky has waived all
24-
; copyright and related or neighboring rights to this model.</code>
24+
; copyright and related or neighboring rights to this model.]]></code>
2525
<widgets>
2626
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-9" height="254" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPycor="9" updateMode="1" frameRate="30.0" maxPzcor="9" maxPxcor="9" minPxcor="-9" minPzcor="-9"></view3d>
2727
<button x="50" y="57" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="63" sizeVersion="0">setup</button>

3D/Code Examples/Trails Example 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>to setup
3+
<code><![CDATA[to setup
44
clear-all
55
create-turtles number-of-drawers
66
[ set size 3
@@ -22,7 +22,7 @@ end
2222
2323
; Public Domain:
2424
; To the extent possible under law, Uri Wilensky has waived all
25-
; copyright and related or neighboring rights to this model.</code>
25+
; copyright and related or neighboring rights to this model.]]></code>
2626
<widgets>
2727
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-20" height="436" showTickCounter="true" patchSize="10.0" fontSize="10" wrappingAllowedY="true" width="416" tickCounterLabel="ticks" maxPycor="20" updateMode="1" frameRate="30.0" maxPzcor="20" maxPxcor="20" minPxcor="-20" minPzcor="-20"></view3d>
2828
<slider x="10" step="1" y="40" max="100" display="number-of-drawers" height="33" min="0" direction="Horizontal" default="10.0" variable="number-of-drawers" width="179" sizeVersion="0"></slider>

3D/Code Examples/Turtle Dance Example 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>to setup
3+
<code><![CDATA[to setup
44
clear-all
55
create-turtles number-of-turtles [
66
fd 9
@@ -22,7 +22,7 @@ end
2222
2323
; Public Domain:
2424
; To the extent possible under law, Uri Wilensky has waived all
25-
; copyright and related or neighboring rights to this model.</code>
25+
; copyright and related or neighboring rights to this model.]]></code>
2626
<widgets>
2727
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-9" height="254" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPycor="9" updateMode="1" frameRate="30.0" maxPzcor="9" maxPxcor="9" minPxcor="-9" minPzcor="-9"></view3d>
2828
<button x="20" y="68" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="90" sizeVersion="0">setup</button>

3D/Code Examples/Turtle Perspective Example 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>to setup
3+
<code><![CDATA[to setup
44
clear-all
55
create-turtles 1
66
ask turtles [ fd 6 lt 90 set color red ]
@@ -29,7 +29,7 @@ end
2929
3030
; Public Domain:
3131
; To the extent possible under law, Uri Wilensky has waived all
32-
; copyright and related or neighboring rights to this model.</code>
32+
; copyright and related or neighboring rights to this model.]]></code>
3333
<widgets>
3434
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-9" height="254" showTickCounter="true" patchSize="12.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPycor="9" updateMode="1" frameRate="30.0" maxPzcor="9" maxPxcor="9" minPxcor="-9" minPzcor="-9"></view3d>
3535
<button x="76" y="22" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="77" sizeVersion="0">setup</button>

3D/Code Examples/Turtle and Observer Motion Example 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>to setup
3+
<code><![CDATA[to setup
44
clear-all
55
create-turtles 1 [ set size 5 ]
66
draw-axes
@@ -34,7 +34,7 @@ end
3434
3535
; Public Domain:
3636
; To the extent possible under law, Uri Wilensky has waived all
37-
; copyright and related or neighboring rights to this model.</code>
37+
; copyright and related or neighboring rights to this model.]]></code>
3838
<widgets>
3939
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-5" height="213" showTickCounter="true" patchSize="10.0" fontSize="10" wrappingAllowedY="true" width="241" tickCounterLabel="ticks" maxPycor="5" updateMode="1" frameRate="30.0" maxPzcor="5" maxPxcor="5" minPxcor="-5" minPzcor="-5"></view3d>
4040
<button x="268" y="115" height="36" disableUntilTicks="false" forever="true" kind="Observer" display="tilt-down" width="108" sizeVersion="0">ask turtles [ tilt-down 1 ]

3D/Code Examples/Uniform Distribution on a Sphere Example 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>to setup-uniform
3+
<code><![CDATA[to setup-uniform
44
clear-all
55
create-turtles number [
66
;; remember that turtles automatically have a random heading when created
@@ -25,7 +25,7 @@ end
2525
2626
; Public Domain:
2727
; To the extent possible under law, Uri Wilensky has waived all
28-
; copyright and related or neighboring rights to this model.</code>
28+
; copyright and related or neighboring rights to this model.]]></code>
2929
<widgets>
3030
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-16" height="455" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="435" tickCounterLabel="ticks" maxPycor="16" updateMode="1" frameRate="30.0" maxPzcor="16" maxPxcor="16" minPxcor="-16" minPzcor="-16"></view3d>
3131
<button x="56" y="75" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="150" sizeVersion="0">setup-uniform</button>

3D/Sample Models/Follower 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>turtles-own [
3+
<code><![CDATA[turtles-own [
44
leader ;; the id number of the turtle this turtle is following,
55
;; or nobody if not following
66
follower ;; the id number of the turtle that is following this turtle,
@@ -73,7 +73,7 @@ end
7373
7474
7575
; Copyright 1998 Uri Wilensky.
76-
; See Info tab for full copyright and license.</code>
76+
; See Info tab for full copyright and license.]]></code>
7777
<widgets>
7878
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-12" height="276" showTickCounter="true" patchSize="10.0" fontSize="10" wrappingAllowedY="true" width="256" tickCounterLabel="ticks" maxPycor="12" updateMode="1" frameRate="30.0" maxPzcor="12" maxPxcor="12" minPxcor="-12" minPzcor="-12"></view3d>
7979
<slider x="60" step="10" y="67" max="10000" display="num-turtles" height="33" min="0" direction="Horizontal" default="2000.0" variable="num-turtles" width="172" sizeVersion="0"></slider>

3D/Sample Models/Mousetraps 3D.nlogox3d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<model version="NetLogo 3D 7.0.3" snapToGrid="false">
3-
<code>turtles-own [ x-vel y-vel z-vel ]
3+
<code><![CDATA[turtles-own [ x-vel y-vel z-vel ]
44
55
to setup
66
clear-all
@@ -40,7 +40,7 @@ end
4040
4141
4242
; Copyright 2002 Uri Wilensky.
43-
; See Info tab for full copyright and license.</code>
43+
; See Info tab for full copyright and license.]]></code>
4444
<widgets>
4545
<view3d wrappingAllowedZ="true" x="0" wrappingAllowedX="true" y="0" minPycor="-12" height="426" showTickCounter="true" patchSize="16.0" fontSize="10" wrappingAllowedY="true" width="406" tickCounterLabel="ticks" maxPycor="12" updateMode="1" frameRate="30.0" maxPzcor="7" maxPxcor="12" minPxcor="-12" minPzcor="-7"></view3d>
4646
<button x="65" y="10" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="72" sizeVersion="0">setup</button>

0 commit comments

Comments
 (0)