Skip to content

Commit c3ca0cb

Browse files
committed
Fix legal information in Simple R sample models
1 parent 4046240 commit c3ca0cb

15 files changed

Lines changed: 90 additions & 18 deletions

Code Examples/Extensions Examples/sr/boxplot-example.nlogox

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ end
8282

8383
to r-idle ;; a "forever" method
8484
sr:run "Sys.sleep(0.01)"
85-
end</code>
85+
end
86+
87+
88+
; Public Domain:
89+
; To the extent possible under law, Uri Wilensky has waived all
90+
; copyright and related or neighboring rights to this model.</code>
8691
<widgets>
8792
<view x="550" wrappingAllowedX="true" y="12" frameRate="30.0" minPycor="-16" height="180" showTickCounter="true" patchSize="5.333333333333333" fontSize="10" wrappingAllowedY="true" width="180" tickCounterLabel="ticks" maxPycor="16" updateMode="0" maxPxcor="16" minPxcor="-16"></view>
8893
<button x="18" y="240" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="63">test</button>

Code Examples/Extensions Examples/sr/datafile-example.nlogox

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ to write-data-with-vector-dataframe
7575
7676
let evalstring (word "write.table(ag ,file='" path "')")
7777
sr:run evalstring
78-
end]]></code>
78+
end
79+
80+
81+
; Public Domain:
82+
; To the extent possible under law, Uri Wilensky has waived all
83+
; copyright and related or neighboring rights to this model.]]></code>
7984
<widgets>
8085
<view x="254" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="433" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="433" tickCounterLabel="ticks" maxPycor="16" updateMode="0" maxPxcor="16" minPxcor="-16"></view>
8186
<button x="8" y="152" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="215">create-and-write-data</button>

Code Examples/Extensions Examples/sr/diversity-example.nlogox

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,12 @@ to display-results
180180
set-plot-pen-mode 1
181181
set-histogram-num-bars 25
182182
histogram filter is-number? [simpson] of patches
183-
end]]></code>
183+
end
184+
185+
186+
; Public Domain:
187+
; To the extent possible under law, Uri Wilensky has waived all
188+
; copyright and related or neighboring rights to this model.]]></code>
184189
<widgets>
185190
<view x="371" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="0" height="334" showTickCounter="true" patchSize="30.0" fontSize="10" wrappingAllowedY="false" width="334" tickCounterLabel="ticks" maxPycor="10" updateMode="0" maxPxcor="10" minPxcor="0"></view>
186191
<note x="26" y="19" backgroundDark="0" fontSize="17" width="334" markdown="false" height="34" textColorDark="-1" textColorLight="-2674135" backgroundLight="0">R-Package "vegan" has to be installed</note>

Code Examples/Extensions Examples/sr/example1.nlogox

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ to test
6060
output-print "correlation coefficient between xcor and ycor: "
6161
output-print sr:runresult "cor(agentlist$xcor, agentlist$ycor, method='spearman')"
6262

63-
end</code>
63+
end
64+
65+
66+
; Public Domain:
67+
; To the extent possible under law, Uri Wilensky has waived all
68+
; copyright and related or neighboring rights to this model.</code>
6469
<widgets>
6570
<view x="622" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="16" showTickCounter="true" patchSize="0.364" fontSize="10" wrappingAllowedY="true" width="16" tickCounterLabel="ticks" maxPycor="16" updateMode="0" maxPxcor="16" minPxcor="-16"></view>
6671
<output x="35" y="96" height="338" fontSize="12" width="755"></output>

Code Examples/Extensions Examples/sr/interactiveShell.nlogox

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ end
3737
to open-interactiveshell
3838
; open interactiveShell
3939
sr:show-console
40-
end</code>
40+
end
41+
42+
43+
; Public Domain:
44+
; To the extent possible under law, Uri Wilensky has waived all
45+
; copyright and related or neighboring rights to this model.</code>
4146
<widgets>
4247
<view x="526" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="260" showTickCounter="true" patchSize="7.76" fontSize="10" wrappingAllowedY="true" width="260" tickCounterLabel="ticks" maxPycor="16" updateMode="0" maxPxcor="16" minPxcor="-16"></view>
4348
<note x="15" y="67" backgroundDark="0" fontSize="11" width="415" markdown="false" height="163" textColorDark="-1" textColorLight="-16777216" backgroundLight="0"><![CDATA[Click the button and try the following commands in the interactiveShell:

Code Examples/Extensions Examples/sr/linear_regression-example.nlogox

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@ to create-food-sources
108108
[ set pcolor yellow ]
109109
[ set pcolor black ]
110110
]
111-
end]]></code>
111+
end
112+
113+
114+
; Public Domain:
115+
; To the extent possible under law, Uri Wilensky has waived all
116+
; copyright and related or neighboring rights to this model.]]></code>
112117
<widgets>
113118
<view x="142" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="0" height="334" showTickCounter="true" patchSize="30.0" fontSize="10" wrappingAllowedY="true" width="334" tickCounterLabel="ticks" maxPycor="10" updateMode="0" maxPxcor="10" minPxcor="0"></view>
114119
<button x="10" y="26" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>

Code Examples/Extensions Examples/sr/package-example.nlogox

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ to test-pcf1
2929
sr:run "p <- pcf(simdat)"
3030
sr:run "K <- Kest(simdat)"
3131
sr:run "p2 <- pcf(K)"
32-
32+
3333
clear-plot
3434
update-plots
3535
end
@@ -79,7 +79,12 @@ to test-pcf2
7979
8080
clear-plot
8181
update-plots
82-
end]]></code>
82+
end
83+
84+
85+
; Public Domain:
86+
; To the extent possible under law, Uri Wilensky has waived all
87+
; copyright and related or neighboring rights to this model.]]></code>
8388
<widgets>
8489
<view x="400" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="0" height="433" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="433" tickCounterLabel="ticks" maxPycor="32" updateMode="0" maxPxcor="32" minPxcor="0"></view>
8590
<note x="7" y="19" backgroundDark="0" fontSize="17" width="337" markdown="false" height="42" textColorDark="-1" textColorLight="-2674135" backgroundLight="0">R-Package "spatstat" has to be installed!</note>
@@ -90,7 +95,7 @@ end]]></code>
9095
let r (sr:runresult "p2$r")
9196
9297
let pcf (map [ [?1 ?2] -> list ?1 ?2 ] r pcf_r)
93-
98+
9499
foreach pcf
95100
[ ?1 ->
96101
plotxy (item 0 ?1) (item 1 ?1)

Code Examples/Extensions Examples/sr/patchesToRMatrix.nlogox

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ to create-matrix
4444
sr:show-console
4545
; print the matrix into the interactive shell output window
4646
sr:run "print(m1)"
47-
end]]></code>
47+
end
48+
49+
50+
; Public Domain:
51+
; To the extent possible under law, Uri Wilensky has waived all
52+
; copyright and related or neighboring rights to this model.]]></code>
4853
<widgets>
4954
<view x="210" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="0" height="96" showTickCounter="true" patchSize="30.8" fontSize="10" wrappingAllowedY="true" width="158" tickCounterLabel="ticks" maxPycor="2" updateMode="0" maxPxcor="2" minPxcor="-2"></view>
5055
<button x="7" y="21" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="63">setup</button>

Code Examples/Extensions Examples/sr/plot-example1.nlogox

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ to test-plot2
5050
sr:run "plot(K)"
5151
sr:run "plot(K, main=\"K function for cells\")"
5252
sr:run "plot(K, sqrt(./pi) ~ r, ylab=\"L(r)\", main=\"L function for cells\")"
53-
end]]></code>
53+
end
54+
55+
56+
; Public Domain:
57+
; To the extent possible under law, Uri Wilensky has waived all
58+
; copyright and related or neighboring rights to this model.]]></code>
5459
<widgets>
5560
<view x="204" wrappingAllowedX="true" y="60" frameRate="30.0" minPycor="-16" height="433" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="433" tickCounterLabel="ticks" maxPycor="16" updateMode="0" maxPxcor="16" minPxcor="-16"></view>
5661
<button x="18" y="186" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="79">test-plot</button>

Code Examples/Extensions Examples/sr/plot-to-file-example.nlogox

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ to test-plot
4343

4444
sr:run "plot(agentlist$xcor,agentlist$ycor)"
4545
sr:run "dev.off()"
46-
end</code>
46+
end
47+
48+
49+
; Public Domain:
50+
; To the extent possible under law, Uri Wilensky has waived all
51+
; copyright and related or neighboring rights to this model.</code>
4752
<widgets>
4853
<view x="230" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-16" height="433" showTickCounter="true" patchSize="13.0" fontSize="10" wrappingAllowedY="true" width="433" tickCounterLabel="ticks" maxPycor="16" updateMode="0" maxPxcor="16" minPxcor="-16"></view>
4954
<button x="10" y="30" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="190" display="Choose file">set plotfile user-new-file</button>

0 commit comments

Comments
 (0)