Monday, November 08, 2010 at 12:04 AM.

# system.verbs.builtins.mainResponder.search.utilities.getRankPercent

```on getRankPercent (rank, min=0) {
<<Changes
<<8/7/02; 3:56:03 PM by JES
<<Created. Factored from mainResponder.search.server.buildHtml.
rank = rank - min;
case true {
rank > 2615 {
rank = 100};
rank > 2609 {
rank = 99};
rank > 2599 {
rank = rank - 2600;
rank = 90 + rank};
rank > 2009 {
rank = 89};
rank > 1999 {
rank = rank - 2000;
rank = 80 + rank};
rank > 1209 {
rank = 79};
rank > 1199 {
rank = rank - 1200;
rank = 70 + rank};
rank > 1000 {
rank = rank - 1000;
rank = 70 + rank};
rank > 609 {
rank = 69};
rank > 599 {
rank = rank - 600;
rank = 60 + rank};
rank > 500 and rank < 1001 {
rank = 60};
rank > 500 {
rank = rank - 500;
rank = 50 + rank};
rank > 109 {
rank = 49};
rank > 99 {
rank = rank - 100;
rank = rank + 40};
rank < 100 {
if rank > 39 {
rank = 39}}};
return (rank)}```

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.
{"ft_lang_label":"__label__en","ft_lang_prob":0.65685266,"math_prob":0.9560361,"size":1179,"snap":"2023-40-2023-50","text_gpt3_token_len":388,"char_repetition_ratio":0.3080851,"word_repetition_ratio":0.053061225,"special_character_ratio":0.45207804,"punctuation_ratio":0.19409283,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99269605,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-21T22:56:02Z\",\"WARC-Record-ID\":\"<urn:uuid:ac99f9e6-88c9-463f-bc41-b81ab4ebf9f9>\",\"Content-Length\":\"2098\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d80faee8-9bcf-4946-92fe-b42b4fb2b6c9>\",\"WARC-Concurrent-To\":\"<urn:uuid:12a2cf0d-0678-4a13-a216-0cd6ec98c29e>\",\"WARC-IP-Address\":\"142.93.4.110\",\"WARC-Target-URI\":\"http://listings.opml.org/verbs/builtins/mainResponder/search/utilities/getRankPercent.html\",\"WARC-Payload-Digest\":\"sha1:EQL2IQ3E37OHJCUDNEVIOZ7ZA3W3DR6B\",\"WARC-Block-Digest\":\"sha1:Q73KRHTCHZMVBQQORTLBVOKN3JZQCIM7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506045.12_warc_CC-MAIN-20230921210007-20230922000007-00261.warc.gz\"}"}