-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathStringWrap.nb
More file actions
5278 lines (5104 loc) · 262 KB
/
StringWrap.nb
File metadata and controls
5278 lines (5104 loc) · 262 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 268308, 5270]
NotebookOptionsPosition[ 22413, 580]
NotebookOutlinePosition[ 262740, 5135]
CellTagsIndexPosition[ 262131, 5114]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[CellGroupData[{
Cell["StringWrap", "Title",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellChangeTimes->{{3.7530362135864563`*^9, 3.7530362157874727`*^9}},
CellTags->{"Title", "TabNext"},
CellID->362346026,ExpressionUUID->"0f576f8c-f458-4ca7-8514-eab520d8681c"],
Cell["Line-wrap a string at a specific width", "Text",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellChangeTimes->{{3.753036234035517*^9, 3.7530362467475386`*^9}},
CellTags->{"Description", "TabNext"},
CellID->450900334,ExpressionUUID->"aeed82f9-fd3e-4005-b659-a80969c85f5b"],
Cell[CellGroupData[{
Cell[TextData[{
"Definition",
Cell[BoxData[
TemplateBox[{"Definition",Cell[
BoxData[
FrameBox[
Cell[
"Define your function using the name above. All definitions, including \
dependencies, will be included in the resource function when it is generated. \
Additional cells can be added and definitions can be given for multiple input \
cases.\n\nThis section should be evaluated before evaluating creating the \
Examples section below.", "MoreInfoText"], Background -> GrayLevel[0.95],
FrameMargins -> 20, FrameStyle -> GrayLevel[0.9], RoundingRadius ->
5]], "MoreInfoText", Deletable -> True,
CellTags -> {"SectionMoreInfoDefinition"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"77099911-fbb2-4302-89ff-92936303f993"]
}], "Section",
Deletable->False,
DefaultNewCellStyle->"Input",
CellTags->"Definition",
CellID->608264297,ExpressionUUID->"1ed85679-3538-4108-b60d-84dd115bb96a"],
Cell[BoxData[
RowBox[{
RowBox[{"StringWrap", "[",
RowBox[{"string_", ",", "n_"}], "]"}], ":=",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{"splits", ",", "accumulate", ",", "index", ",", "mm"}], "}"}],
",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"splits", "=",
RowBox[{"StringSplit", "[", "string", "]"}]}], ";",
"\[IndentingNewLine]",
RowBox[{"accumulate", "=",
RowBox[{"Mod", "[",
RowBox[{
RowBox[{"Accumulate", "[",
RowBox[{"Map", "[",
RowBox[{"StringLength", ",", "splits"}], "]"}], "]"}], ",", "n"}],
"]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"index", "=",
RowBox[{"Join", "[",
RowBox[{
RowBox[{"{", "0", "}"}], ",",
RowBox[{"Accumulate", "@",
RowBox[{"Map", "[",
RowBox[{"Length", ",",
RowBox[{"Split", "[",
RowBox[{"accumulate", ",",
RowBox[{
RowBox[{"#2", ">", "#1"}], "&"}]}], "]"}]}], "]"}]}], ",",
RowBox[{"{",
RowBox[{"-", "1"}], "}"}]}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"mm", "=",
RowBox[{"MovingMap", "[",
RowBox[{
RowBox[{
RowBox[{"Span", "[",
RowBox[{
RowBox[{
RowBox[{"First", "[", "#", "]"}], "+", "1"}], ",",
RowBox[{"Last", "[", "#", "]"}]}], "]"}], "&"}], ",", "index", ",",
"1"}], "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"StringJoin", "@",
RowBox[{"StringRiffle", "[",
RowBox[{
RowBox[{"Map", "[",
RowBox[{
RowBox[{
RowBox[{"StringJoin", "@",
RowBox[{"StringRiffle", "[",
RowBox[{
RowBox[{"Part", "[",
RowBox[{"splits", ",", "#"}], "]"}], ",", "\"\< \>\""}],
"]"}]}], "&"}], ",", "mm"}], "]"}], ",", "\"\<\\n\>\""}],
"]"}]}]}]}], "\[IndentingNewLine]", "]"}]}]], "Input",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellChangeTimes->{3.753036218182478*^9},
CellTags->"TabNext",
CellID->778396829,ExpressionUUID->"41e73ed6-1850-42b0-a987-d3ad90329037"]
}, Open ]],
Cell[CellGroupData[{
Cell["Documentation", "Section",
Deletable->False,
CellTags->"Documentation",
CellID->855965831,ExpressionUUID->"62cd0bb6-cfe4-4af3-b98d-ef0215535e23"],
Cell[CellGroupData[{
Cell[TextData[{
"Usage",
Cell[BoxData[
TemplateBox[{"Usage",Cell[
BoxData[
FrameBox[
Cell[
"Document every accepted input usage case. Use Enter to create new \
cases as needed.\n\nEach usage should contain a brief explanation saying what \
the function does for the given input structure.\n\nSee existing \
documentation pages for examples.", "MoreInfoText"], Background ->
GrayLevel[0.95], FrameMargins -> 20, FrameStyle -> GrayLevel[0.9],
RoundingRadius -> 5]], "MoreInfoText", Deletable -> True,
CellTags -> {"SectionMoreInfoUsage"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"e8396810-16a4-482a-ab8f-3efb226fb8a5"]
}], "Subsection",
Deletable->False,
DefaultNewCellStyle->"UsageInputs",
CellTags->"Usage",
CellID->694807545,ExpressionUUID->"d49d8ebe-6dfe-42a5-bcd9-7deb4a3ecd62"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"StringWrap", "[",
StyleBox[
RowBox[{"string", ",", "n"}],
FontSlant->"Italic"], "]"}]], "UsageInputs",
CellChangeTimes->{{3.753036251651616*^9, 3.753036258475683*^9}},
CellTags->"TabNext",
CellID->157543866,ExpressionUUID->"42f4d7c7-8173-4a11-9dbc-949a9c396210"],
Cell[TextData[{
"line-wraps ",
StyleBox["string",
FontSlant->"Italic"],
" at width ",
StyleBox["n",
FontSlant->"Italic"],
"."
}], "UsageDescription",
CellChangeTimes->{{3.7530362614826884`*^9, 3.753036273898722*^9}},
CellTags->"TabNext",
CellID->231889230,ExpressionUUID->"257c973b-d1bb-4ae7-94fa-430451383fec"]
}, Open ]]
}, Open ]],
Cell[CellGroupData[{
Cell[TextData[{
"Details & Options",
Cell[BoxData[
TemplateBox[{"Details & Options",Cell[
BoxData[
FrameBox[
Cell[
"Give a detailed explanation of how the function is used. Add multiple \
cells including tables and hyperlinks as needed. Typical information \
includes: acceptable inputs, result formats, options specifications, and \
background information.", "MoreInfoText"], Background -> GrayLevel[0.95],
FrameMargins -> 20, FrameStyle -> GrayLevel[0.9], RoundingRadius ->
5]], "MoreInfoText", Deletable -> True,
CellTags -> {"SectionMoreInfoDetailsOptions"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"ae83596d-a91d-4933-87c7-d4f728b1e3e5"]
}], "Subsection",
Deletable->False,
DefaultNewCellStyle->"Notes",
CellTags->"Details & Options",
CellID->29639701,ExpressionUUID->"704ab7ba-7ee8-4fbd-adc4-f54a43c6df80"],
Cell["Additional information about usage and options.", "Notes",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellTags->"TabNext",
CellID->521904482,ExpressionUUID->"96ef797d-c595-49a0-a5f9-879134f52ca6"]
}, Open ]]
}, Open ]],
Cell[CellGroupData[{
Cell[TextData[{
"Examples",
Cell[BoxData[
TemplateBox[{"Examples",Cell[
BoxData[
FrameBox[
Cell[
"Demonstrate how to use the function. Examples should start with the \
most basic use case. Each example should be described using text cells. Use \
\"Subsection\" and \"Subsubsection\" cells to group examples as needed.\n\n\
Example groups can optionally be delimited by inserting page breaks between \
them (affects example count on documentation page).\n\nSee existing \
documentation pages for examples.", "MoreInfoText"], Background ->
GrayLevel[0.95], FrameMargins -> 20, FrameStyle -> GrayLevel[0.9],
RoundingRadius -> 5]], "MoreInfoText", Deletable -> True,
CellTags -> {"SectionMoreInfoExamples"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"0c8d2837-9dcb-4701-81d5-fa01364a5569"]
}], "Section",
Deletable->False,
CellTags->"Examples",
CellID->847663398,ExpressionUUID->"1ce809cf-0872-4c57-8250-e9cc3b240f1d"],
Cell[CellGroupData[{
Cell["Basic Examples", "Subsection",
CellID->462042388,ExpressionUUID->"ab2dc476-a9fb-4b94-a213-75580175779c"],
Cell["Line-wrap a Wikipedia article at 40 characters:", "Text",
CellChangeTimes->{{3.753036479313243*^9, 3.753036503409277*^9}},
CellID->13078159,ExpressionUUID->"8bb9f2f9-1c30-4364-8bb5-903cfb025738"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"StringWrap", "[",
RowBox[{
RowBox[{"WikipediaData", "[", "\"\<Ontario Morning\>\"", "]"}], ",",
"40"}], "]"}]], "Input",
CellChangeTimes->{{3.7530363069247875`*^9, 3.7530363449929314`*^9}, {
3.7530363779489784`*^9, 3.7530363799636097`*^9}, {3.753036463485181*^9,
3.7530364666782207`*^9}},
CellLabel->"In[92]:=",
CellID->443871870,ExpressionUUID->"281e6f03-e5c0-4d37-845a-8b3a80798d29"],
Cell[BoxData["\<\"Ontario Morning is a Canadian radio program,\\nwhich airs \
as the CBC Radio One local morning\\nprogram for non-metropolitan markets in \
Southern\\nOntario. While the network's main stations in\\nToronto, Ottawa, \
Waterloo Region, Windsor and\\nLondon each produce their own \
city-oriented\\nmorning programs, nearly all Radio One\\nrebroadcasters in \
smaller markets air Ontario Morning in\\nplace of their host station's \
program.The\\nprogram is produced from the studios of CBLA-FM at \
the\\nCanadian Broadcasting Centre in Toronto,\\nalthough it does not air on \
that station's primary\\ntransmitter in Toronto.The program's current\\nhost \
is Wei Chen. Past hosts have included Sue\\nPrestedge, Jane Hawtin, Joe Cot\
\[EAcute], Avril Benoit, Dave\\nSeglins, Erika Ritter, Lorne Saxberg \
and\\nMartina Fitzgerald. == References == == External\\nlinks == Official \
website\\n\"\>"], "Output",
CellChangeTimes->{{3.7530363396663847`*^9, 3.753036345668927*^9},
3.753036381058612*^9, 3.753036467832225*^9},
CellLabel->"Out[92]=",
CellID->26590774,ExpressionUUID->"35c24821-d1a8-405f-9bee-d0e06f3b0555"]
}, Open ]]
}, Open ]],
Cell["Scope", "Subsection",
CellID->964056545,ExpressionUUID->"2c48f954-ccf4-4436-a8fb-29a93215444f"],
Cell["Options", "Subsection",
CellID->776923543,ExpressionUUID->"8817f228-74f4-488b-a5b4-f50cffecc3fc"],
Cell["Applications", "Subsection",
CellID->568056528,ExpressionUUID->"83c9723d-3255-4077-8a09-5267130cdbef"],
Cell["Properties and Relations", "Subsection",
CellID->754506620,ExpressionUUID->"540686cb-078a-41e9-97ef-a5d689c995a9"],
Cell["Possible Issues", "Subsection",
CellID->92483860,ExpressionUUID->"40118020-0456-428a-ad03-986d0bea3e46"],
Cell["Neat Examples", "Subsection",
CellID->540091361,ExpressionUUID->"2fffee80-8027-48e8-b297-ebc8666db418"]
}, Open ]],
Cell[CellGroupData[{
Cell["Source & Additional Information", "Section",
Deletable->False,
CellTags->"Source & Additional Information",
CellID->318391102,ExpressionUUID->"8fdef415-c549-4772-91c9-062f93323ddb"],
Cell[CellGroupData[{
Cell[TextData[{
"Contributed By",
Cell[BoxData[
TemplateBox[{"Contributed By",Cell[
BoxData[
FrameBox[
Cell[
"Name of the person, people or organization that should be publicly \
credited with contributing the function.", "MoreInfoText"], Background ->
GrayLevel[0.95], FrameMargins -> 20, FrameStyle -> GrayLevel[0.9],
RoundingRadius -> 5]], "MoreInfoText", Deletable -> True,
CellTags -> {"SectionMoreInfoContributedBy"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"c40587ef-c093-459d-9971-cffac3e0dbad"]
}], "Subsection",
Deletable->False,
DefaultNewCellStyle->"Text",
CellTags->"Contributed By",
CellID->757508554,ExpressionUUID->"d26c8fa7-3648-424b-be60-02facebc6eca"],
Cell["Arnoud Buzing", "Text",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellChangeTimes->{{3.7530365208733425`*^9, 3.753036522665346*^9}},
CellTags->"TabNext",
CellID->832483124,ExpressionUUID->"5b7752d1-f2f6-4b24-b1d3-0aca3e63bd73"]
}, Open ]],
Cell[CellGroupData[{
Cell[TextData[{
"Keywords",
Cell[BoxData[
TemplateBox[{"Keywords",Cell[
BoxData[
FrameBox[
Cell[
"List relevant terms that should be used to include this resource in \
search results.", "MoreInfoText"], Background -> GrayLevel[0.95],
FrameMargins -> 20, FrameStyle -> GrayLevel[0.9], RoundingRadius ->
5]], "MoreInfoText", Deletable -> True,
CellTags -> {"SectionMoreInfoKeywords"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"2afd1a50-35c8-47d6-b4b1-4fded36f09e6"]
}], "Subsection",
Deletable->False,
DefaultNewCellStyle->"Item",
CellTags->"Keywords",
CellID->246422893,ExpressionUUID->"30989252-5c3a-46fc-b76c-15d94a85f590"],
Cell["line-wrap", "Item",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellChangeTimes->{{3.7530365264733515`*^9, 3.7530365275773535`*^9}},
CellTags->"TabNext",
CellID->123227828,ExpressionUUID->"3f758a9e-858c-49af-926b-f76adf60de73"]
}, Open ]],
Cell[CellGroupData[{
Cell[TextData[{
"Related Symbols",
Cell[BoxData[
TemplateBox[{"Related Symbols",Cell[
BoxData[
FrameBox[
Cell[
"List related Wolfram Language symbols. Include up to twenty \
documented, system-level symbols.", "MoreInfoText"], Background ->
GrayLevel[0.95], FrameMargins -> 20, FrameStyle -> GrayLevel[0.9],
RoundingRadius -> 5]], "MoreInfoText", Deletable -> True,
CellTags -> {"SectionMoreInfoRelatedSymbols"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"6776f4bf-f530-41e2-8764-06e8f8d9a1d1"]
}], "Subsection",
Deletable->False,
DefaultNewCellStyle->"Item",
CellTags->"Related Symbols",
CellID->911170439,ExpressionUUID->"208136e3-8722-4152-933c-cff2a78bc301"],
Cell["SymbolName (documented Wolfram Language symbol)", "Item",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellTags->"TabNext",
CellID->79477165,ExpressionUUID->"e3cb8bfb-5a1a-4cac-ba73-4156711aafd5"]
}, Open ]],
Cell[CellGroupData[{
Cell[TextData[{
"Related Resource Objects",
Cell[BoxData[
TemplateBox[{"Related Resource Objects",Cell[
BoxData[
FrameBox[
Cell[
"Names of published resource objects from any Wolfram repository that \
are related to this resource.", "MoreInfoText"], Background ->
GrayLevel[0.95], FrameMargins -> 20, FrameStyle -> GrayLevel[0.9],
RoundingRadius -> 5]], "MoreInfoText", Deletable -> True,
CellTags -> {"SectionMoreInfoRelatedResourceObjects"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"82cee112-4c7f-4175-91b2-686894e9cdf1"]
}], "Subsection",
Deletable->False,
DefaultNewCellStyle->"Item",
CellTags->"Related Resource Objects",
CellID->217060377,ExpressionUUID->"e25a1817-cd2c-440b-81fe-0cea39d4473e"],
Cell["Resource Name (resources from any Wolfram repository)", "Item",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellTags->"TabNext",
CellID->960273585,ExpressionUUID->"469d863a-1d23-4717-b541-ff362a15fdc5"]
}, Open ]],
Cell[CellGroupData[{
Cell[TextData[{
"Source/Reference Citation",
Cell[BoxData[
TemplateBox[{"Source/Reference Citation",Cell[
BoxData[
FrameBox[
Cell[
"Citation for original source of the function or its components. For \
example, original publication of an algorithm or public code repository.",
"MoreInfoText"], Background -> GrayLevel[0.95], FrameMargins -> 20,
FrameStyle -> GrayLevel[0.9], RoundingRadius -> 5]], "MoreInfoText",
Deletable -> True,
CellTags -> {"SectionMoreInfoSourceReferenceCitation"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"ae68be17-bcd6-4d79-bfc4-e76e8d8ea2cd"]
}], "Subsection",
Deletable->False,
DefaultNewCellStyle->"Text",
CellTags->"Source/Reference Citation",
CellID->967310595,ExpressionUUID->"d8b83e3c-8d8d-4ab6-b354-d414fe772d4f"],
Cell["Source, reference or citation information", "Text",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellTags->"TabNext",
CellID->343081869,ExpressionUUID->"21d5af67-f226-4320-b787-b87c86c70410"]
}, Open ]],
Cell[CellGroupData[{
Cell[TextData[{
"Links",
Cell[BoxData[
TemplateBox[{"Links",Cell[
BoxData[
FrameBox[
Cell[
"URLs or hyperlinks for external information related to the function.",
"MoreInfoText"], Background -> GrayLevel[0.95], FrameMargins -> 20,
FrameStyle -> GrayLevel[0.9], RoundingRadius -> 5]], "MoreInfoText",
Deletable -> True, CellTags -> {"SectionMoreInfoLinks"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"c2efb52d-3396-48e7-a752-97390f8e7be7"]
}], "Subsection",
Deletable->False,
DefaultNewCellStyle->"Item",
CellTags->"Links",
CellID->593846556,ExpressionUUID->"39534528-1c5c-43d1-a193-0d8fb84e4046"],
Cell["Link to other related material", "Item",
CellEventActions->{Inherited, {"KeyDown", "\t"} :> Replace[SelectionMove[
SelectedNotebook[], After, Cell]; NotebookFind[
SelectedNotebook[], "TabNext", Next, CellTags, AutoScroll -> True,
WrapAround -> True], Blank[NotebookSelection] :> SelectionMove[
SelectedNotebook[], All, CellContents, AutoScroll -> True]],
PassEventsDown -> False, PassEventsUp -> False},
CellTags->"TabNext",
CellID->485448166,ExpressionUUID->"5e2d5416-6dee-46bc-ba7d-a0211544102a"]
}, Open ]],
Cell[CellGroupData[{
Cell[TextData[{
"Tests",
Cell[BoxData[
TemplateBox[{"Tests",Cell[
BoxData[
FrameBox[
Cell[
"Optional list of tests that can be used to verify that the function \
is working properly in any environment.\nTests can be specified as \
Input/Output cell pairs or as literal VerificationTest expressions if you \
need to specify options.", "MoreInfoText"], Background -> GrayLevel[0.95],
FrameMargins -> 20, FrameStyle -> GrayLevel[0.9], RoundingRadius ->
5]], "MoreInfoText", Deletable -> True,
CellTags -> {"SectionMoreInfoTests"},
CellMargins -> {{66, 66}, {15, 15}}]},
"MoreInfoOpenerButtonTemplate"]],ExpressionUUID->
"20c13c89-e80f-4eb2-b8bb-09ba6bf9c765"]
}], "Subsection",
Deletable->False,
DefaultNewCellStyle->"Input",
CellTags->"Tests",
CellID->16051757,ExpressionUUID->"b011a97e-9ede-4d88-8299-c3216d254e86"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"MyFunction", "[",
RowBox[{"x", ",", "y"}], "]"}]], "Input",
CellLabel->"In[3]:=",
CellID->667877521,ExpressionUUID->"fd6aa025-b31c-4e54-8926-a3c94d01a24e"],
Cell[BoxData[
RowBox[{"x", " ", "y"}]], "Output",
CellLabel->"Out[3]=",
CellID->993233288,ExpressionUUID->"48bf65f3-f73c-4393-b56d-1fc53f9e792a"]
}, Open ]]
}, Open ]]
}, Open ]],
Cell["Notes", "Section",
Deletable->False,
DefaultNewCellStyle->"Text",
CellTags->"Notes",
CellID->694045252,ExpressionUUID->"5051b88d-7ede-4dff-aeeb-46ed385863f9"]
}, Open ]]
},
WindowSize->{775, 872},
WindowMargins->{{564, Automatic}, {Automatic, 54}},
Visible->True,
DockedCells->{
Cell[
BoxData[
TagBox[
GridBox[{{
TagBox[
GridBox[{{
GraphicsBox[{
Thickness[0.022222222222222223`], {
FaceForm[{
RGBColor[0.87451, 0.278431, 0.03137260000000001],
Opacity[1.]}],
FilledCurveBox[{{{1, 4, 3}, {1, 3, 3}, {1, 3, 3}, {1, 3,
3}}}, {{{45., 22.5}, {45., 10.073999999999998`}, {34.926,
0.}, {22.5, 0.}, {10.074, 0.}, {0., 10.073999999999998`}, {0.,
22.5}, {0., 34.926}, {10.074, 45.}, {22.5, 45.}, {34.926,
45.}, {45., 34.926}, {45., 22.5}}}]}, {
FaceForm[{
RGBColor[1., 1., 1.],
Opacity[1.]}],
FilledCurveBox[{{{0, 2, 0}, {1, 3, 3}, {1, 3, 3}, {1, 3, 3}, {
1, 3, 3}, {1, 3, 3}, {1, 3, 3}, {1, 3, 3}, {1, 3, 3}, {1, 3,
3}, {1, 3, 3}, {0, 1, 0}, {0, 1, 0}, {1, 3, 3}, {0, 1, 0}, {
0, 1, 0}, {1, 3, 3}, {0, 1, 0}, {0, 1, 0}, {0, 1, 0}, {1, 3,
3}, {0, 1, 0}, {0, 1, 0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2,
0}, {0, 1, 0}, {0, 1, 0}, {1, 3, 3}, {0, 1, 0}, {1, 3, 3}, {
0, 1, 0}}, {{0, 2, 0}, {1, 3, 3}, {0, 1, 0}, {1, 3, 3}, {0,
1, 0}, {1, 3, 3}, {0, 1, 0}, {1, 3, 3}}, {{0, 2, 0}, {1, 3,
3}, {0, 1, 0}, {1, 3, 3}, {0, 1, 0}, {0, 1, 0}, {0, 1,
0}}}, {CompressedData["
1:eJxTTMoPSmViYGAwAWIQLcESxqe7SdlhqnN3zvPblg4w/omyffOl/K0cEp9e
ULq9U9lhT8lkCZZrVg6VL9UMOd4oO1SLrHN/GGXtcKUCKOCh4sDDpN0udtPa
4fnvlR8v8ao6ZIE12ELMrVZzmAIymNfOAWj43PfpGg45YIV2Dguk9O+qsGlB
9M+0h9gjpgOxh8fBYePc98uPees5MICAggNE/TF9B6Bl574rO0DcMcsAwmd2
cNCM6T/0VcPQAeQsjh6oeWWGEPt97R3UDTnWyMwyhKh7Yefw5S/QB22GEHe1
2zlIg5yTaAh3by7InUKGDmBnLrR1cOkGudzAYZHrts9/Q2wdHi+dfUShwMBh
Q1HGxLcytg5BO+RaXwsaQN1r6/BdA2jRVn1oeNk6aIEcWq4HcccvWwfTuF2e
PEy6UPPtHIC+CH68VBvOP70QaNFeLTg/T6j5wKlELYdPl3yTBCLsIOGkowVx
71tbhycg93zQdAjonZ4ndNgGzgern2ENVw90TZVInhUkfqy1IO65ZQl3L4wP
iW99B/NOx4SnEyzh4Q+W32XhcBUc0PoQd7dawM1D568H2cdnCOd/A9nzVc/h
I9hdWg4ZoIg6oueQD/Kfoh40nSD4fkDfWpboQOw7oYDBh6mHxIcy3DxYek4A
peOfCD7MPTA+zL0yUSnW9/sV4Hxw/DgpQOL7igUkfi8qwsMHAHSDTZ8=
"], {{19.051000000000002`, 14.242}, {19.051000000000002`,
27.594}, {23.828, 27.594}, {23.828, 26.543}, {21.426,
26.308999999999997`}, {21.375, 26.258000000000003`}, {21.375,
24.219}, {21.375, 17.535000000000004`}, {21.375, 15.602}, {
21.426, 15.547}, {23.828, 15.315999999999999`}, {23.828,
14.242}}, {{24.578, 18.75}, {24.578, 23.078000000000003`}, {
24.578, 23.539}, {24.953, 23.914}, {25.418, 23.91}, {29.746,
23.91}, {30.203, 23.91}, {30.578, 23.539}, {30.578,
23.078000000000003`}, {30.578, 18.75}, {30.581999999999997`,
18.288999999999998`}, {30.207, 17.91}, {29.746, 17.91}, {
25.418, 17.91}, {24.953, 17.906}, {24.574, 18.285}, {24.578,
18.75}}, {{31.328, 14.242}, {31.328, 15.315999999999999`}, {
33.684, 15.539000000000001`}, {33.789, 15.602}, {33.789,
17.641}, {33.789, 24.188}, {33.789, 26.227}, {33.684,
26.281}, {31.328, 26.512000000000004`}, {31.328, 27.586}, {
36.113, 27.586}, {36.113, 14.234000000000002`}}}]}}, {
Background -> RGBColor[0.988235, 0.419608, 0.203922],
AspectRatio -> Automatic, ImageSize -> {45., 45.},
PlotRange -> {{0., 45.}, {0., 45.}}}],
StyleBox[
"\"Function Resource Definition Notebook\"", FontFamily ->
"Source Sans Pro", FontWeight -> Bold, FontSize -> 22, FontColor ->
GrayLevel[1], StripOnInput -> False]}},
GridBoxAlignment -> {"Columns" -> {{Left}}, "Rows" -> {{Center}}},
AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}], "Grid"],
"\[SpanFromLeft]", "\[SpanFromLeft]", "\[SpanFromLeft]",
"\[SpanFromLeft]", "\[SpanFromLeft]",
ItemBox[
TemplateBox[{
StyleBox[
"\"Function Repository \[RightGuillemet]\"", "Text", FontColor ->
GrayLevel[1], StripOnInput -> False],
"https://resources.wolframcloud.com/FunctionRepository/"},
"HyperlinkURL"], Alignment -> {Right, Bottom}, StripOnInput ->
False]}, {
ButtonBox[
TemplateBox[{
StyleBox[
"\"Open Sample Notebook\"", "Text", FontFamily ->
"Source Sans Pro SemiBold", FontWeight -> "SemiBold", FontSize ->
13, FontColor -> GrayLevel[1], StripOnInput -> False],
"\"View a completed sample definition notebook\""},
"PrettyTooltipTemplate"],
ButtonFunction :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`showProgress[
FunctionResource`DefinitionNotebook`Private`viewExampleNotebook[]]\
), FrameMargins -> {{1, 1}, {0, 0}},
Appearance -> {"Default" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PImSfFdud67eiMoKtcDiuDUEiHzNk/zXY0h
Qj0E1RgCxYGymFreFmq9qzVCVw9BtUZAWTQtIPdgmo9qF8SFkGABWVFlgE89
GAHVILREyLyrw2sFBNUZAlUygAGpWsiwhUy/kBViZMQLebFPThojJSWTml8A
+GMDZA==
"], "Byte", ColorSpace -> "RGB", Interleaving -> True], "Hover" ->
Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PIhRulnuv6fbBMIArKBIri0vAmX+Zas9TvL
CK4egoAiQHGgLKaW7yk6f7JM0NRDUZYJUBZNC9B2TPPR7IK4EBIsQMavTEM8
6iEIqAauBejOP9nGBLUA1QBVMoABqVrIsIU8v5AXYmTEC3mxT0YaIyklk5pf
AJBwAV4=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True],
"Pressed" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PKxLfr3teNw04BsoAguLW9ilL5vnPr3ypG/
E9L/ZJtAEJANFAGKA2UxtfzYveTvjvlwxcgIKA6URdMCtB1oGlb1UF1XjkBc
CAkWIOPPw2t/26PwaQHKPrwG1wJ05/9fP/CohyCgGqBKBjAgVQsZtpDnF/JC
jIx4IS/2yUhjJKVkUvMLAMWzMVI=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True]},
Background -> RGBColor[0.921569, 0.341176, 0.105882], Method ->
"Queued", ImageSize -> {All, 25}, Evaluator -> Automatic],
ButtonBox[
TemplateBox[{
StyleBox[
"\"Style Guidelines\"", "Text", FontFamily ->
"Source Sans Pro SemiBold", FontWeight -> "SemiBold", FontSize ->
13, FontColor -> GrayLevel[1], StripOnInput -> False],
"\"Coming soon\""}, "PrettyTooltipTemplate"],
ButtonFunction :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`showProgress[
MessageDialog["Coming soon."]]), FrameMargins -> {{1, 1}, {0, 0}},
Appearance -> {"Default" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PImSfFdud67eiMoKtcDiuDUEiHzNk/zXY0h
Qj0E1RgCxYGymFreFmq9qzVCVw9BtUZAWTQtIPdgmo9qF8SFkGABWVFlgE89
GAHVILREyLyrw2sFBNUZAlUygAGpWsiwhUy/kBViZMQLebFPThojJSWTml8A
+GMDZA==
"], "Byte", ColorSpace -> "RGB", Interleaving -> True], "Hover" ->
Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PIhRulnuv6fbBMIArKBIri0vAmX+Zas9TvL
CK4egoAiQHGgLKaW7yk6f7JM0NRDUZYJUBZNC9B2TPPR7IK4EBIsQMavTEM8
6iEIqAauBejOP9nGBLUA1QBVMoABqVrIsIU8v5AXYmTEC3mxT0YaIyklk5pf
AJBwAV4=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True],
"Pressed" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PKxLfr3teNw04BsoAguLW9ilL5vnPr3ypG/
E9L/ZJtAEJANFAGKA2UxtfzYveTvjvlwxcgIKA6URdMCtB1oGlb1UF1XjkBc
CAkWIOPPw2t/26PwaQHKPrwG1wJ05/9fP/CohyCgGqBKBjAgVQsZtpDnF/JC
jIx4IS/2yUhjJKVkUvMLAMWzMVI=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True]},
Background -> RGBColor[0.921569, 0.341176, 0.105882], Method ->
"Queued", ImageSize -> {All, 25}, Evaluator -> Automatic],
TagBox[
GridBox[{{"\"\"", "\"\""}},
GridBoxAlignment -> {"Columns" -> {{Left}}, "Rows" -> {{Center}}},
AutoDelete -> False,
GridBoxDividers -> {
"ColumnsIndexed" -> {2 -> True}, "Rows" -> {{False}}},
GridBoxItemSize -> {"Columns" -> {{Automatic}}, "Rows" -> {{2}}},
FrameStyle -> RGBColor[0.994118, 0.709804, 0.601961]], "Grid"],
ActionMenuBox[
ButtonBox[
StyleBox[
"\"Preview \[DownPointer]\"", "Text", FontFamily ->
"Source Sans Pro SemiBold", FontWeight -> "SemiBold", FontSize ->
13, FontColor -> GrayLevel[1], StripOnInput -> False],
ButtonFunction :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`showProgress[Null]),
FrameMargins -> {{1, 1}, {0, 0}},
Appearance -> {"Default" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PImSfFdud67eiMoKtcDiuDUEiHzNk/zXY0h
Qj0E1RgCxYGymFreFmq9qzVCVw9BtUZAWTQtIPdgmo9qF8SFkGABWVFlgE89
GAHVILREyLyrw2sFBNUZAlUygAGpWsiwhUy/kBViZMQLebFPThojJSWTml8A
+GMDZA==
"], "Byte", ColorSpace -> "RGB", Interleaving -> True], "Hover" ->
Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PIhRulnuv6fbBMIArKBIri0vAmX+Zas9TvL
CK4egoAiQHGgLKaW7yk6f7JM0NRDUZYJUBZNC9B2TPPR7IK4EBIsQMavTEM8
6iEIqAauBejOP9nGBLUA1QBVMoABqVrIsIU8v5AXYmTEC3mxT0YaIyklk5pf
AJBwAV4=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True],
"Pressed" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PKxLfr3teNw04BsoAguLW9ilL5vnPr3ypG/
E9L/ZJtAEJANFAGKA2UxtfzYveTvjvlwxcgIKA6URdMCtB1oGlb1UF1XjkBc
CAkWIOPPw2t/26PwaQHKPrwG1wJ05/9fP/CohyCgGqBKBjAgVQsZtpDnF/JC
jIx4IS/2yUhjJKVkUvMLAMWzMVI=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True]},
Background -> RGBColor[0.921569, 0.341176, 0.105882], Method ->
"Queued", ImageSize -> {All, 25}, Evaluator -> Automatic], {
"\"In a notebook\"" :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`getResource[
ButtonNotebook[], "Preview"]),
"\"On the cloud\"" :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`getResource[
ButtonNotebook[], "Cloud"])}, Appearance -> None, Method ->
"Queued"],
ActionMenuBox[
ButtonBox[
StyleBox[
"\"Deploy \[DownPointer]\"", "Text", FontFamily ->
"Source Sans Pro SemiBold", FontWeight -> "SemiBold", FontSize ->
13, FontColor -> GrayLevel[1], StripOnInput -> False],
ButtonFunction :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`showProgress[Null]),
FrameMargins -> {{1, 1}, {0, 0}},
Appearance -> {"Default" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PImSfFdud67eiMoKtcDiuDUEiHzNk/zXY0h
Qj0E1RgCxYGymFreFmq9qzVCVw9BtUZAWTQtIPdgmo9qF8SFkGABWVFlgE89
GAHVILREyLyrw2sFBNUZAlUygAGpWsiwhUy/kBViZMQLebFPThojJSWTml8A
+GMDZA==
"], "Byte", ColorSpace -> "RGB", Interleaving -> True], "Hover" ->
Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PIhRulnuv6fbBMIArKBIri0vAmX+Zas9TvL
CK4egoAiQHGgLKaW7yk6f7JM0NRDUZYJUBZNC9B2TPPR7IK4EBIsQMavTEM8
6iEIqAauBejOP9nGBLUA1QBVMoABqVrIsIU8v5AXYmTEC3mxT0YaIyklk5pf
AJBwAV4=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True],
"Pressed" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PKxLfr3teNw04BsoAguLW9ilL5vnPr3ypG/
E9L/ZJtAEJANFAGKA2UxtfzYveTvjvlwxcgIKA6URdMCtB1oGlb1UF1XjkBc
CAkWIOPPw2t/26PwaQHKPrwG1wJ05/9fP/CohyCgGqBKBjAgVQsZtpDnF/JC
jIx4IS/2yUhjJKVkUvMLAMWzMVI=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True]},
Background -> RGBColor[0.921569, 0.341176, 0.105882], Method ->
"Queued", ImageSize -> {All, 25}, Evaluator -> Automatic], {
"\"Locally on this computer\"" :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`getResource[
ButtonNotebook[], "Local"]),
"\"For my cloud account\"" :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`getResource[
ButtonNotebook[], "Cloud"]),
"\"Publicly in the cloud\"" :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`getResource[
ButtonNotebook[], "CloudPublic"]),
"\"In this session only (without documentation)\"" :> (
Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`getResource[
ButtonNotebook[], "KernelSession"])}, Appearance -> None, Method ->
"Queued"],
ItemBox[
StyleBox[
DynamicBox[
ToBoxes[
CurrentValue[
EvaluationNotebook[], {TaggingRules, "StatusMessage"}, ""],
StandardForm]], "Text",
GrayLevel[1], StripOnInput -> False], ItemSize -> Fit, StripOnInput ->
False],
ButtonBox[
TemplateBox[{
StyleBox[
TagBox[
GridBox[{{
GraphicsBox[{
Thickness[0.06349206349206349],
StyleBox[{
FilledCurveBox[{{{0, 2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2,
0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2, 0}, {0, 1, 0}, {0, 1,
0}}, {{0, 2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2, 0}, {0, 1,
0}, {0, 1, 0}}}, CompressedData["
1:eJxTTMoPSmVmYGBgBWIWIGZigIEX9mCqQd8Bwv+Bnc/A54CiHs5HV6/ngJUP
p2HmwdTp4FCHTvOhqYfZrw2lhdDk0fno6tHcD1PPwOSAnY+uns8BAE8cGz4=
"]]},
FaceForm[
RGBColor[0.960784, 0.705882, 0.498039, 1.]], StripOnInput ->
False],
StyleBox[{
FilledCurveBox[{{{0, 2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2,
0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2, 0}, {0, 1, 0}, {0, 1,
0}}, {{0, 2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2, 0}, {0, 1,
0}, {0, 1, 0}}, {{0, 2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0,
2, 0}, {0, 1, 0}, {0, 1, 0}}}, CompressedData["
1:eJxTTMoPSmVmYGBgB2IWIGZigAEJBwjNB6EblHHwX9ijqofxoeoYhKC0Bg4+
Hw4apk4Uap8aDr4QDhqqDu4uVRx8URw0TJ001D5lHHwJHDRUHYMclFbCwZfG
QUPVNSjgp+HmIWgAG/wcEg==
"]],
FilledCurveBox[{{{0, 2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2,
0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2, 0}, {0, 1, 0}, {0, 1,
0}}, {{0, 2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2, 0}, {0, 1,
0}, {0, 1, 0}}, {{0, 2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0,
2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2, 0}, {0, 1, 0}, {0,
1, 0}}, {{0, 2, 0}, {0, 1, 0}, {0, 1, 0}}, {{0, 2, 0}, {0,
1, 0}, {0, 1, 0}}}, CompressedData["
1:eJx10EEKgCAQhWGpFtEyEAYGggQj6RKeoSMErbuCR0/IWfTgCcPwy7fR9XrO
u3fOTXWGOp2zM+ZvH2170nv+e2sFH0ijt45/XxJp9NgRPHYAb63kHhu9tf2H
eU8aPfbS9kxawAvxnrSCx3c3XzbS6JX4RFrAS34B53ckaw==
"]]},
FaceForm[
RGBColor[1., 1., 1., 1.]], StripOnInput -> False]},
ImageSize -> 18, PlotRange -> {{0., 15.75}, {0., 16.5}},
AspectRatio -> Automatic], "\"Submit to Repository\""}},
GridBoxAlignment -> {
"Columns" -> {{Left}}, "Rows" -> {{Center}}}, AutoDelete ->
False, GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
GridBoxSpacings -> {
"Columns" -> {{0}}, "ColumnsIndexed" -> {2 -> 0.25},
"Rows" -> {{0}}}], "Grid"], "Text", FontFamily ->
"Source Sans Pro SemiBold", FontWeight -> "SemiBold", FontSize ->
13, FontColor -> GrayLevel[1], StripOnInput -> False],
"\"Submit your function to the Wolfram Function Repository\""},
"PrettyTooltipTemplate"],
ButtonFunction :> (Symbol["System`ResourceFunction"];
FunctionResource`DefinitionNotebook`Private`showProgress[
FunctionResource`DefinitionNotebook`Private`submitRepository[
ButtonNotebook[]]]), FrameMargins -> {{1, 1}, {0, 0}},
Appearance -> {"Default" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PImSfFdud67eiMoKtcDiuDUEiHzNk/zXY0h
Qj0E1RgCxYGymFreFmq9qzVCVw9BtUZAWTQtIPdgmo9qF8SFkGABWVFlgE89
GAHVILREyLyrw2sFBNUZAlUygAGpWsiwhUy/kBViZMQLebFPThojJSWTml8A
+GMDZA==
"], "Byte", ColorSpace -> "RGB", Interleaving -> True], "Hover" ->
Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PIhRulnuv6fbBMIArKBIri0vAmX+Zas9TvL
CK4egoAiQHGgLKaW7yk6f7JM0NRDUZYJUBZNC9B2TPPR7IK4EBIsQMavTEM8
6iEIqAauBejOP9nGBLUA1QBVMoABqVrIsIU8v5AXYmTEC3mxT0YaIyklk5pf
AJBwAV4=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True],
"Pressed" -> Image[CompressedData["
1:eJxTTMoPSmNiYGAo5gASQYnljkVFiZXBAkBOaF5xZnpeaopnXklqemqRRRIz
UFAQikHs/zgAHikgeB0uTTzC1PKxLfr3teNw04BsoAguLW9ilL5vnPr3ypG/
E9L/ZJtAEJANFAGKA2UxtfzYveTvjvlwxcgIKA6URdMCtB1oGlb1UF1XjkBc
CAkWIOPPw2t/26PwaQHKPrwG1wJ05/9fP/CohyCgGqBKBjAgVQsZtpDnF/JC
jIx4IS/2yUhjJKVkUvMLAMWzMVI=
"], "Byte", ColorSpace -> "RGB", Interleaving -> True]},
Background -> RGBColor[0.921569, 0.341176, 0.105882], Method ->
"Queued", ImageSize -> {All, 25}, Evaluator -> Automatic]}},
GridBoxAlignment -> {"Columns" -> {{Left}}, "Rows" -> {{Center}}},
AutoDelete -> False,
GridBoxBackground -> {"Columns" -> {{None}}, "Rows" -> {
RGBColor[0.988235, 0.419608, 0.203922],
RGBColor[0.921569, 0.341176, 0.105882]}},
GridBoxFrame -> {
"Columns" -> False,
"RowsIndexed" -> {
1 -> RGBColor[0.988235, 0.419608, 0.203922], 2 ->
RGBColor[0.921569, 0.341176, 0.105882]}},
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "RowsIndexed" -> {1 -> 6, 2 -> 4}},
GridBoxSpacings -> {"Columns" -> {5, {}, 5}, "Rows" -> {{Automatic}}},
FrameStyle -> RGBColor[0.988235, 0.419608, 0.203922]], "Grid"]],
"DockedCell", CellMargins -> {{-10, -10}, {-8, -8}}, CellFrame -> 0],
Cell[
BoxData[
StyleBox[
TagBox[
DynamicModuleBox[{Typeset`var$$ = False},
InterpretationBox[
StyleBox[
PaneSelectorBox[{False -> GridBox[{{
OpenerBox[
Dynamic[Typeset`var$$], Appearance -> Automatic, Enabled ->
Automatic, AutoAction -> False, ContinuousAction -> False],
TagBox[
GridBox[{{
TagBox[
GridBox[{{"\"Published to the cloud\"",
TemplateBox[{
"\"\[RightGuillemet]\"",
"https://www.wolframcloud.com/objects/22a1163f-d19e-44e2-\
9d33-ad55589a7442"}, "HyperlinkURL"]}}, AutoDelete -> False,
GridBoxItemSize -> {
"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}},
GridBoxSpacings -> {"Columns" -> {{0.25}}}], "Grid"],
TagBox[
GridBox[{{"\"ResourceFunction:\"",
TemplateBox[{
InterpretationBox[
FrameBox[
TemplateBox[{
GraphicsBox[{
RGBColor[0.9882352941176471, 0.4, 0.25098039215686274`],
Thickness[
Dynamic[
If[CurrentValue["CellStyleName"] === "Input", 0.2, 0.1]]],
CircleBox[{0, 0}]}, ImageSize -> 10, BaselinePosition ->
Scaled[0.05], ImagePadding -> 1],
TemplateBox[{3}, "Spacer1"],
StyleBox[
"\"StringWrap\"", FontColor ->
RGBColor[0.2784313725490196, 0.2784313725490196,
0.2784313725490196], ShowAutoStyles -> False,
ShowStringCharacters -> False, FontSize -> 0.78 Inherited,
FontFamily -> "Roboto", Selectable -> True, FontWeight ->
Dynamic[
If[
CurrentValue["CellStyleName"] === "Input", "DemiBold",
Plain]], StripOnInput -> False]}, "Row",
DisplayFunction -> (PaneBox[
RowBox[{
TemplateSlotSequence[1, "\[InvisibleSpace]"]}],
BaselinePosition -> Center]& ),
InterpretationFunction -> (RowBox[{"Row", "[",
RowBox[{
RowBox[{"{",
TemplateSlotSequence[1, ","], "}"}], ",",
RowBox[{"BaselinePosition", "\[Rule]", "Center"}]}],
"]"}]& )], Background ->
RGBColor[
0.9686274509803922, 0.9686274509803922,
0.9686274509803922], ContentPadding -> False,
FrameMargins -> {{3, 4}, {0, -2}}, FrameStyle -> Directive[
AbsoluteThickness[1],
RGBColor[
0.8627450980392157, 0.8627450980392157,
0.8627450980392157]], RoundingRadius -> 3, StripOnInput ->