text
stringlengths
1
22.8M
Frank Deasy (19 May 1959 – 17 September 2009) was an Irish screenwriter. He won an Emmy Award for the television series Prime Suspect and was also nominated for his works, Looking After Jo Jo and The Grass Arena. His other works included the BBC/HBO mini-series, The Passion. Preceding his death from liver cancer on 17 September 2009, Deasy spoke in public about his condition. An appearance on RTÉ Radio 1's Liveline led to a record increase in organ donor card requests in Ireland. Life and career Deasy was a native of Artane, Dublin. He initially worked as a child carer with Ireland's Eastern Health Board. He relocated to Glasgow, Scotland, where he died in 2009, having "liked it so much he never came home". His career credits include Prime Suspect and The Passion. James Walton of The Daily Telegraph described The Passion as "exactly the kind of intelligent and engaging drama you'd expect from a series written by Frank Deasy". For RTÉ he wrote Father & Son, which achieved 26% and 27% audience shares for its first two episodes broadcast on RTÉ One in 2009 and was consistently within Ireland's Top Ten television programmes throughout its run. Father & Son features a character, Barrington Smith, who suffers from kidney malfunction and must escape from prison to find a cure. In spite of this success, John Spain in the Irish Independent commented that Deasy was still not very well known in Ireland at this time. He also wrote films and had a co-credit on Miramax's Prozac Nation, featuring Christina Ricci, Jessica Lange and Lou Reed. Deasy was working on Gaza, a BBC Films drama due to begin filming in October 2009, at the time of his death. One year before his death, Gaza featured on the "Brit List", which features the most deserving unproduced screenplays in Ireland and the United Kingdom. He was also supposed to be writing an eight-part BBC drama series about the House of Medici. He was also due to follow a family over a century for RTÉ. Health Deasy was first diagnosed with liver cancer four years before his death. He underwent surgery to remove the tumour but it was found to have returned in January 2009. Days before his death from the disease, Deasy began discussing his condition in public forums. On his final Sunday, The Observer featured an article detailing his suffering and using it to request more organ donors. Deasy said: "I am only one of thousands of patients on organ transplant lists in Britain, living on our own, invisible, death row". Actor Dougray Scott, who starred in Deasy's drama Father & Son, supported him in The Observer. Deasy's words were echoed in The Observers editorial which called for an enforcement of presumed consent. The following day, Deasy's story was carried by The Scotsman newspaper. Later that day, he appeared on Joe Duffy's Liveline programme on RTÉ Radio 1 appealing for more organ donors and insisting that it was a "very urgent matter". On the day his death was reported it was confirmed that a record of at least 5,500 people had applied to become holders of organ donor cards since the interview, 2,000 immediately afterwards and a further 3,500 the following day. By comparison, a similar request on The Late Late Show in 2007 yielded only 1,000 more donor applicants. The Evening Herald carried Deasy's story on 16 September, one day before his death in The Royal Infirmary of Edinburgh. The figures had risen to 10,000 one day after Deasy's death, three times the amount usually received during an annual appeal. His blood group (B) is that which makes up 10% of people, meaning he could only have received a transplant from such a group. Deasy resided in Scotland at the time of his death in hospital. He was survived by his wife, Marie and their three children. A seminar on organ donation inspired by Deasy took place in Dublin seven weeks to the day after his death. Tributes Mark Murphy, CEO of the Irish Kidney Association, praised Deasy's "selflessness" during his final days alive. Anthony Jones, Deasy's literary agent, said he was a "wonderful, funny, tough and clever man". RTÉ Television's commissioning editor for Drama, Jane Gogan, said Deasy "brought a tremendous honesty and passionate intensity to his work" who "will be a big loss as a friend and inspiration to those he worked with but, more importantly, as a husband and father his loss will be incalculable". Actor Dougray Scott called Deasy "quite simply the most extraordinary and brilliant writer I have ever worked with and one of the most extraordinary and beautiful men I was blessed to have met" and said: "Today a great, great man was taken away from us. Very few times in life is one fortunate and blessed enough to meet a person like Frank Deasy. [...] Whenever I spent time or talked with Frank I always felt the warmth, wisdom and sheer joy of life that I remember getting from my own father. That's how special he was to me. He had everything I admire in a human being. Protective, caring and loving to his very special wife and children. And brave. So brave. Frank Deasy will be with me always". In its editorial on 18 September 2009, the Evening Herald said Deasy "gave hope to thousands". Awards and nominations References External links Deasy's article in The Observer—13 September 2009 Deasy podcasts on Liveline 1959 births 2009 deaths 20th-century Irish male writers 20th-century Irish screenwriters 21st-century Irish male writers 21st-century Irish screenwriters Deaths from cancer in Scotland Deaths from liver cancer Film people from Dublin (city) Film people from Glasgow Irish male screenwriters Irish television writers Male television writers People from Artane, Dublin Primetime Emmy Award winners Writers from Dublin (city) Writers from Glasgow
```java package tech.tablesaw.aggregate; import tech.tablesaw.api.ColumnType; import tech.tablesaw.api.StringColumn; /** * A partial implementation of aggregate functions to summarize over a StringColumn and return a * String */ public abstract class StringAggregateFunction extends AggregateFunction<StringColumn, String> { /** * Constructs an {@code StringFunction} with the given name. The name may be used to name a column * in the output when this function is used by {@link Summarizer} */ public StringAggregateFunction(String name) { super(name); } public abstract String summarize(StringColumn column); /** {@inheritDoc} */ @Override public boolean isCompatibleColumn(ColumnType type) { return type.equals(ColumnType.STRING); } /** {@inheritDoc} */ @Override public ColumnType returnType() { return ColumnType.STRING; } } ```
```ocaml let _ = (((Format.set_formatter_out_channel (open_out_bin "lib/Hacl_HPKE_Curve64_CP32_SHA256_stubs.ml"); Cstubs.write_ml Format.std_formatter ~prefix:"" (module Hacl_HPKE_Curve64_CP32_SHA256_bindings.Bindings)); Format.set_formatter_out_channel (open_out_bin "lib/Hacl_HPKE_Curve64_CP32_SHA256_c_stubs.c")); Format.printf "#include \"Hacl_HPKE_Curve64_CP32_SHA256.h\"\n"); Cstubs.write_c Format.std_formatter ~prefix:"" (module Hacl_HPKE_Curve64_CP32_SHA256_bindings.Bindings) ```
The Free County of Burgundy (; ) was a medieval feudal state ruled by a count from 982 to 1678. It was also known as Franche-Comté, from meaning 'free count', and was located in the modern region of Franche-Comté. It bordered the Duchy of Burgundy to the west, which was part of France from 843. The territory had previously been part of the kingdom of Upper Burgundy (888–933). The county was formed in 982 by Otto-William for the lands he held in the Kingdom of Arles (outside the duchy's borders). In 1032 the Kingdom of Arles was inherited by Conrad II, Holy Roman Emperor, who incorporated the County of Burgundy into the Holy Roman Empire (HRE). The county briefly gained independence in the 12th century, before being re-incorporated into the empire by Frederick Barbarossa. As a state of the HRE, the county was granted a high degree of autonomy. The largest city, Besançon, was granted the status of free imperial city. The rest of the county was given imperial immediacy (making it an imperial county) and its rulers were given the title of , from which the French and English names of the county are derived. From 1295 the county began to fall under the increasing influence of France and the House of Burgundy, which ruled the duchy. From 1330 to 1361 and again from 1405 to 1477, there was a personal union between the county (part of the HRE) and the adjacent duchy (part of France). In 1493 the county was transferred to Habsburg Spain, which ruled it until it was conquered by France in 1674. French rule was made permanent by the Treaties of Nijmegen in 1678. Formation within the kingdom of Arles The area previously formed part of the Kingdom of the Burgundians, which had been annexed by the Franks in 534 and incorporated into the Kingdom of the Franks. The Empire was partitioned in 843 by the Treaty of Verdun, with the area west of the Saône river being allotted to West Francia as the French Duchy of Burgundy, while the southern and eastern parts of the former Burgundian kingdom fell to Middle Francia under Emperor Lothair I. This Middle Frankish part became the two independent entities of southern Lower Burgundy in 879 and northern Upper Burgundy under King Rudolph I in 888. The region that would become Franche-Comté was then included in Upper Burgundy, centred around the city of Besançon. In 933, with the collapse of the Carolingian Empire, Lower and Upper Burgundy were re-united under King [[Rudolph II of Burgundy|Rudolph II]] as the Kingdom of Arles (Arelat). In 982, Otto-William (son of Adalbert of Lombardy) married Ermentrude of Roucy. Erementrude was a widow, whose previous husband was had been count of Mâcon (in the Duchy of Burgundy) and controlled additional lands around Besançon and Dole. These lands were then ruled by Otto-William in right of his wife. Otto-William was already the adopted heir of Henry I, Duke of Burgundy, so expected to inherit the entire duchy when Henry died. The lands outside the duchy, that Otto-William had acquired through Ermentrude, were organised as the new County of Burgundy. Henry I died in 1002, at which point Otto-William claimed the Duchy of Burgundy. However, king Robert II of France refused to recognise the adoption and claimed the duchy as the nephew of Henry I. This started a war between the two claimants. After a few years of conflict, Robert II prevailed in the duchy; he would later grant it to his son Robert I, Duke of Burgundy, keeping the Crown of his elder son Hugues. Otto-William remained in control of the county of Mâcon, and therferore strengthened its grip in the County, fief of the Kingdom of Burgundy. Otto-William and Ermentrude became the progenitors of the Anscarid dynasty. The development of commercial routes across the Jura mountains and the development of salt mines assured the prosperity of the county, and for several decades its towns preserved their freedom and neutrality. As part of the Holy Roman Empire The Arelat kingdom collapsed with the extinction the ruling line in 1032. The County of Burgundy was inherited by the Holy Roman Emperor Conrad II of the Salian dynasty, while the Duchy of Burgundy returned to a cadet branch of the French Capetian dynasty. At the end of the 11th century Conrad's son Emperor Henry III elevated the Archbishop of Besançon to the dignity of an archchancellor and conferred upon Besançon the rank of a (imperial city) under the Emperor's direct patronage. Guy of Burgundy, brother of Renaud II, later became pope and negotiated the Concordat of Worms with Emperor Henry V. In the 12th century, Imperial protection allowed for the development of Besançon, but in 1127, after the assassination of William III, his cousin Renaud III shook off the Imperial yoke. Burgundy was from then on called , the "free county". Emperor Frederick Barbarossa re-established imperial influence. Frederick took the brother of Count William IV prisoner, then when William died Frederick married William's niece and heir, Beatrice I (daughter of Renaud III). Upon Emperor Frederick's death in 1190, his younger son Otto I received the county of Burgundy and assumed the rare (possibly unique) title of archcount. He was succeeded by his daughter, Beatrice II, and her husband Otto I, Duke of Merania; they were in turn followed by their son, Otto III, Count of Burgundy, and their daughter, Adelaide. The Counts Palatine for many years had to share power with the greater feudal families of the county, notably with the family of Chalon, which was descended from Stephen III, count of Auxonne, grandson of William IV and Beatrice of Thiern, the heir of the county of Chalon. The authority of the counts was re-established only by the marriage of Hugh of Chalon with Adelaide, the sister and heiress. However, this did not prevent a younger son, John of Chalon-Arlay, from taking control of the vassal states. Otto IV, son of Hugh and Adelaide, was the last of the feudal counts of Burgundy. He married first the daughter of the Count of Bar, but the marriage was childless. His second marriage was to the grandniece of King Louis IX of France, Countess Mahaut of Artois. This marriage brought the county under French influence. The daughters of Otto IV and Mahaut, Joan II and Blanche, married respectively Philip V and Charles IV of France, sons of King Philip IV. Jeanne became Queen of France after having been involved in the Tour de Nesle Affair. In that same affair, Blanche was found guilty of adultery and was imprisoned for the rest of her life. Burgundian unions After quarrelling with his barons, and after a new revolt against the French carried out by John of Chalon-Arlay, Otto IV ceded the county to his daughter as a dowry and designated the King of France as administrator of the dowry in 1295. By marrying their daughter and heir Joan, Duke Odo IV of Burgundy reunited the duchy and the county under his rule, followed by his grandson Duke Philip I. The personal union was again broken when Philip died without heirs in 1361: the Duchy of Burgundy was seized as a reverted fief by King John II of France, while the Imperial county was inherited by Philip's great aunt Margaret I, a granddaughter of Count Otto IV. In 1382, she bequeathed her estates to her son Count Louis II of Flanders. Louis II died in 1384 leaving no male heirs, so the County of Burgundy formed part of the immense dowry of his daughter Margaret, which in 1405 was inherited by her son, the Burgundian duke John the Fearless. The county and the duchy were again ruled in personal union by his descendants from the House of Valois-Burgundy until the death of Duke Charles the Bold at the 1477 Battle of Nancy. His cousin King Louis XI of France immediately occupied the county, but Archduke Maximilian I of Habsburg opposed this action, because he was the husband of Charles' daughter Mary the Rich. Though defeated at the 1479 Battle of Guinegate, the French retained the county. Spanish possession Louis' successor King Charles VIII of France, wishing to be free of conflicts over the county in order to intervene in Naples, again ceded it to Emperor Maximilian and his son Philip I of Castile by the 1493 Treaty of Senlis. From that point onwards, the County of Burgundy was ruled by Habsburg Spain, who administered it as part of the Habsburg Netherlands. The Spanish Road trade route ran through the county, connecting the various Spanish possessions in the region. The county was invaded by France in 1668, as part of the War of Devolution. Multiple cities surrendered to the French after little fighting, but were returned as part of the wider Treaty of Aix-la-Chapelle later that year. Conquest by France France invaded again in 1674, as part of the Franco-Dutch war, again overrunning the country with little resistance. The Treaties of Nijmegen ended the war in 1678; as part of the third treaty (between France and Spain), the county was transferred to France in exchange for the return of French-occupied territory in the Spanish Netherlands. The territory of Franche-Comté has remained part of France uninterrupted ever since; it now forms part of the administrative region Bourgogne-Franche-Comté. See also List of counts of Burgundy Kingdom of Burgundy Kings of Burgundy Duchy of Burgundy Duke of Burgundy Dukes of Burgundy family tree Free Imperial City of Besançon References External links The History Files: Frankish Kingdom of Burgundy Burgundian Circle History of Franche-Comté Burgundy, County 867 establishments States and territories disestablished in 1678 1400s in the Burgundian Netherlands 980s establishments in the Holy Roman Empire 1678 disestablishments in the Holy Roman Empire 982 establishments Spanish Empire in Europe
```python from visidata import VisiData, Sheet, vd, options vd.option('incr_base', 1.0, 'start value for column increments', replay=True) @VisiData.api def numrange(vd, n, step=1): 'Generate n values, starting from options.incr_base and increasing by step for each number.' base = type(step)(options.incr_base) yield from (base+x*step for x in range(n)) @VisiData.api def num(vd, *args): 'Return parsed string as number, preferring int to float.' try: return int(*args) except Exception: return float(*args) Sheet.addCommand('i', 'addcol-incr', 'c=SettableColumn(type=int); addColumnAtCursor(c); c.setValues(rows, *numrange(nRows))', 'add column with incremental values') Sheet.addCommand('gi', 'setcol-incr', 'cursorCol.setValues(selectedRows, *numrange(sheet.nSelectedRows))', 'set current column for selected rows to incremental values') Sheet.addCommand('zi', 'addcol-incr-step', 'n=num(input("interval step: ")); c=SettableColumn(type=type(n)); addColumnAtCursor(c); c.setValues(rows, *numrange(nRows, step=n))', 'add column with incremental values times given step') Sheet.addCommand('gzi', 'setcol-incr-step', 'n=num(input("interval step: ")); cursorCol.setValues(selectedRows, *numrange(nSelectedRows, n))', 'set current column for selected rows to incremental values times given step') vd.addMenuItems(''' Column > Add column > increment > addcol-incr Edit > Modify > selected cells > increment > setcol-incr ''') ```
```c #include <stdio.h> #include <stdlib.h> #include <string.h> char zoo [10]; int main () { int i = strlen ("012345") + strlen ("6789") + strlen ("01"); /* 11 */ zoo[i] = 'a'; return 0; } /* { dg-output "mudflap violation 1.*" } */ /* { dg-output "Nearby object.*" } */ /* { dg-output "mudflap object.*zoo.*static.*" } */ /* { dg-do run { xfail *-*-* } } */ ```
```java /* * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.shardingsphere.proxy.backend.state.impl; import org.apache.shardingsphere.distsql.statement.ral.updatable.ImportMetaDataStatement; import org.apache.shardingsphere.mode.exception.ClusterStateException; import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DMLStatement; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; class UnavailableProxyStateTest { @Test void assertExecuteWithUnsupportedSQL() { assertThrows(ClusterStateException.class, () -> new UnavailableProxyState().check(mock(DMLStatement.class))); } @Test void assertExecuteWithSupportedSQL() { new UnavailableProxyState().check(mock(ImportMetaDataStatement.class)); } } ```
```html --- layout: single property_name: outline-style --- <section id="outline-style" class="property"> <header class="property-header"> <nav class="property-links"> <a class="property-links-direct" href="{{site.url}}/property/outline-style/" data-property-name="outline-style" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="outline-style">Share</a> <a target="_blank" href="path_to_url" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a> </nav> <h2 class="property-name"> <a href="#outline-style"><span>#</span>outline-style</a> </h2> <div class="property-description"> <p>Defines the style of the element&#39;s outlines.</p> </div> </header> <style type="text/css">.outline-style { padding: 1em;outline-width: 4px; }</style> <section class="example"> <header class="example-header"> <p class="example-name"> <code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-style: none;">outline-style: none;</code> </p> <div class="example-description"> <p>Removes the element&#39;s outlines.</p> </div> </header> <aside class="example-preview"> <div class="example-browser"><i></i><i></i><i></i></div> <div class="example-output"> <div class="example-output-div outline-style " id="outline-style-none">Hello world</div> </div> </aside> <style type="text/css">#outline-style-none{ outline-style:none;}</style> </section> <section class="example"> <header class="example-header"> <p class="example-name"> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-style: dotted;">outline-style: dotted;</code> </p> <div class="example-description"> <p>Turns the outline into a sequence of dots.</p> </div> </header> <aside class="example-preview"> <div class="example-browser"><i></i><i></i><i></i></div> <div class="example-output"> <div class="example-output-div outline-style " id="outline-style-dotted">Hello world</div> </div> </aside> <style type="text/css">#outline-style-dotted{ outline-style:dotted;}</style> </section> <section class="example"> <header class="example-header"> <p class="example-name"> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-style: dashed;">outline-style: dashed;</code> </p> <div class="example-description"> <p>Turns the outline into a sequence of dashes.</p> </div> </header> <aside class="example-preview"> <div class="example-browser"><i></i><i></i><i></i></div> <div class="example-output"> <div class="example-output-div outline-style " id="outline-style-dashed">Hello world</div> </div> </aside> <style type="text/css">#outline-style-dashed{ outline-style:dashed;}</style> </section> <section class="example"> <header class="example-header"> <p class="example-name"> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-style: solid;">outline-style: solid;</code> </p> <div class="example-description"> <p>Turns the outline into a solid line.</p> </div> </header> <aside class="example-preview"> <div class="example-browser"><i></i><i></i><i></i></div> <div class="example-output"> <div class="example-output-div outline-style " id="outline-style-solid">Hello world</div> </div> </aside> <style type="text/css">#outline-style-solid{ outline-style:solid;}</style> </section> <section class="example"> <header class="example-header"> <p class="example-name"> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-style: double;">outline-style: double;</code> </p> <div class="example-description"> <p>Splits the outline into two lines.</p> </div> </header> <aside class="example-preview"> <div class="example-browser"><i></i><i></i><i></i></div> <div class="example-output"> <div class="example-output-div outline-style " id="outline-style-double">Hello world</div> </div> </aside> <style type="text/css">#outline-style-double{ outline-style:double;}</style> </section> <section class="example"> <header class="example-header"> <p class="example-name"> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="outline-style: groove;">outline-style: groove;</code> </p> <div class="example-description"> <p>Sets an inset style to the outlines.</p> </div> </header> <aside class="example-preview"> <div class="example-browser"><i></i><i></i><i></i></div> <div class="example-output"> <div class="example-output-div outline-style " id="outline-style-groove">Hello world</div> </div> </aside> <style type="text/css">#outline-style-groove{ outline-style:groove;}</style> </section> </section> ```
```html <html lang="en-US" xmlns:fb="path_to_url" xmlns:addthis="path_to_url"><div id="b96f8af0-31d5-4534-9e6d-25364de5d415" style="display: none;">{"method":"get","path":"self.navigator.appVersion","level":"info","category":"navigator","jsContextId":"65fbbef3-2251-4e9f-9f2e-46548e05e9f0","url":"path_to_url","stack":[{"functionName":"HTMLDocument.t","fileName":"path_to_url","lineNumber":"2","columnNumber":"1001"}]}</div><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="path_to_url"> <!-- Optimized by SG Optimizer plugin version - 5.7.14 --> <!-- This site is optimized with the Yoast SEO plugin v15.7 - path_to_url --> <title>Digitizing Healthcare with Helium Health's Goke Olubusi | The Flip Africa</title> <meta name="description" content="The Flip podcast conversational series: digitizing healthcare with Goke Olubusi, the Co-founder and CEO of Nigerian healthtech Helium Health."> <meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"> <link rel="canonical" href="path_to_url"> <meta property="og:locale" content="en_US"> <meta property="og:type" content="article"> <meta property="og:title" content="Digitizing Healthcare with Helium Health's Goke Olubusi | The Flip Africa"> <meta property="og:description" content="The Flip podcast conversational series: digitizing healthcare with Goke Olubusi, the Co-founder and CEO of Nigerian healthtech Helium Health."> <meta property="og:url" content="path_to_url"> <meta property="og:site_name" content="The Flip Africa"> <meta property="article:publisher" content="path_to_url"> <meta property="article:modified_time" content="2021-01-21T08:01:16+00:00"> <meta property="og:image" content="path_to_url"> <meta property="og:image:width" content="1600"> <meta property="og:image:height" content="500"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@TheFlipAfrica"> <script async="" src="//www.google-analytics.com/analytics.js"></script><script type="application/ld+json" class="yoast-schema-graph">{"@context":"path_to_url","@graph":[{"@type":"Organization","@id":"path_to_url#organization","name":"The Flip","url":"path_to_url","sameAs":["path_to_url","path_to_url","path_to_url","path_to_url"],"logo":{"@type":"ImageObject","@id":"path_to_url#logo","inLanguage":"en-US","url":"path_to_url","width":2560,"height":2560,"caption":"The Flip"},"image":{"@id":"path_to_url#logo"}},{"@type":"WebSite","@id":"path_to_url#website","url":"path_to_url","name":"The Flip Africa","description":"","publisher":{"@id":"path_to_url#organization"},"potentialAction":[{"@type":"SearchAction","target":"path_to_url{search_term_string}","query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"path_to_url#primaryimage","inLanguage":"en-US","url":"path_to_url","width":1600,"height":500,"caption":"Goke Olubusi Helium Health"},{"@type":"WebPage","@id":"path_to_url#webpage","url":"path_to_url","name":"Digitizing Healthcare with Helium Health's Goke Olubusi | The Flip Africa","isPartOf":{"@id":"path_to_url#website"},"primaryImageOfPage":{"@id":"path_to_url#primaryimage"},"datePublished":"2021-01-14T05:06:00+00:00","dateModified":"2021-01-21T08:01:16+00:00","description":"The Flip podcast conversational series: digitizing healthcare with Goke Olubusi, the Co-founder and CEO of Nigerian healthtech Helium Health.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["path_to_url"]}]}]}</script> <!-- / Yoast SEO plugin. --> <link rel="dns-prefetch" href="//s7.addthis.com"> <link rel="dns-prefetch" href="//s.w.org"> <link rel="alternate" type="application/rss+xml" title="The Flip Africa Feed" href="path_to_url"> <link rel="alternate" type="application/rss+xml" title="The Flip Africa Comments Feed" href="path_to_url"> <!-- This site uses the Google Analytics by MonsterInsights plugin v7.15.1 - Using Analytics tracking - path_to_url --> <script type="text/javascript" data-cfasync="false"> (window.gaDevIds=window.gaDevIds||[]).push("dZGIzZG"); var mi_version = '7.15.1'; var mi_track_user = true; var mi_no_track_reason = ''; var disableStr = 'ga-disable-UA-148657005-1'; /* Function to detect opted out users */ function __gaTrackerIsOptedOut() { return document.cookie.indexOf(disableStr + '=true') > -1; } /* Disable tracking if the opt-out cookie exists. */ if ( __gaTrackerIsOptedOut() ) { window[disableStr] = true; } /* Opt-out function */ function __gaTrackerOptout() { document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStr] = true; } if ( 'undefined' === typeof gaOptout ) { function gaOptout() { __gaTrackerOptout(); } } if ( mi_track_user ) { (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','__gaTracker'); __gaTracker('create', 'UA-148657005-1', 'auto'); __gaTracker('set', 'forceSSL', true); __gaTracker('require', 'displayfeatures'); __gaTracker('require', 'linkid', 'linkid.js'); __gaTracker('send','pageview'); } else { console.log( "" ); (function() { /* path_to_url */ var noopfn = function() { return null; }; var noopnullfn = function() { return null; }; var Tracker = function() { return null; }; var p = Tracker.prototype; p.get = noopfn; p.set = noopfn; p.send = noopfn; var __gaTracker = function() { var len = arguments.length; if ( len === 0 ) { return; } var f = arguments[len-1]; if ( typeof f !== 'object' || f === null || typeof f.hitCallback !== 'function' ) { console.log( 'Not running function __gaTracker(' + arguments[0] + " ....) because you are not being tracked. " + mi_no_track_reason ); return; } try { f.hitCallback(); } catch (ex) { } }; __gaTracker.create = function() { return new Tracker(); }; __gaTracker.getByName = noopnullfn; __gaTracker.getAll = function() { return []; }; __gaTracker.remove = noopfn; window['__gaTracker'] = __gaTracker; })(); } </script> <!-- / Google Analytics by MonsterInsights --> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.1\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.1\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/theflip.africa\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.6"}}; !function(e,a,t){var r,n,o,i,p=a.createElement("canvas"),s=p.getContext&&p.getContext("2d");function c(e,t){var a=String.fromCharCode;s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,e),0,0);var r=p.toDataURL();return s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,t),0,0),r===p.toDataURL()}function l(e){if(!s||!s.fillText)return!1;switch(s.textBaseline="top",s.font="600 32px Arial",e){case"flag":return!c([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])&&(!c([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!c([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]));case"emoji":return!c([55357,56424,8205,55356,57212],[55357,56424,8203,55356,57212])}return!1}function d(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(i=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},o=0;o<i.length;o++)t.supports[i[o]]=l(i[o]),t.supports.everything=t.supports.everything&&t.supports[i[o]],"flag"!==i[o]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[i[o]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(r=t.source||{}).concatemoji?d(r.concatemoji):r.wpemoji&&r.twemoji&&(d(r.twemoji),d(r.wpemoji)))}(window,document,window._wpemojiSettings); </script><script src="path_to_url" type="text/javascript" defer=""></script> <style type="text/css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel="stylesheet" id="wp-block-library-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="ae-pro-css-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="vegas-css-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="monsterinsights-popular-posts-style-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="hello-elementor-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="hello-elementor-theme-style-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-icons-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-animations-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-frontend-legacy-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-frontend-css" href="path_to_url" type="text/css" media="all"> <style id="elementor-frontend-inline-css" type="text/css"> .elementor-641 .elementor-element.elementor-element-45497e6:not(.elementor-motion-effects-element-type-background), .elementor-641 .elementor-element.elementor-element-45497e6 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("path_to_url");}@media(max-width:767px){.elementor-641 .elementor-element.elementor-element-45497e6:not(.elementor-motion-effects-element-type-background), .elementor-641 .elementor-element.elementor-element-45497e6 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("path_to_url");}} </style> <link rel="stylesheet" id="elementor-post-1465-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-pro-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="font-awesome-5-all-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="font-awesome-4-shim-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="namogo-icons-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-extras-frontend-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-global-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-post-256-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-post-314-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-post-641-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="addthis_all_pages-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="ecs-styles-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-post-586-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-post-610-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-post-821-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-post-1319-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="google-fonts-1-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-icons-shared-0-css" href="path_to_url" type="text/css" media="all"> <link rel="stylesheet" id="elementor-icons-fa-brands-css" href="path_to_url" type="text/css" media="all"> <script type="text/javascript" id="monsterinsights-frontend-script-js-extra"> /* <![CDATA[ */ var monsterinsights_frontend = {"js_events_tracking":"true","download_extensions":"doc,pdf,ppt,zip,xls,docx,pptx,xlsx","inbound_paths":"[{\"path\":\"\\\/go\\\/\",\"label\":\"affiliate\"},{\"path\":\"\\\/recommend\\\/\",\"label\":\"affiliate\"}]","home_url":"https:\/\/theflip.africa","hash_tracking":"false"}; /* ]]> */ </script> <script defer="" type="text/javascript" src="path_to_url" id="monsterinsights-frontend-script-js"></script> <script type="text/javascript" src="path_to_url" id="jquery-core-js"></script> <script type="text/javascript" src="path_to_url" id="jquery-migrate-js"></script> <script defer="" type="text/javascript" src="path_to_url" id="jquery-cookie-js"></script> <script type="text/javascript" id="convertkit-js-js-extra"> /* <![CDATA[ */ var ck_data = {"ajaxurl":"https:\/\/theflip.africa\/wp-admin\/admin-ajax.php","post_has_tag":""}; /* ]]> */ </script> <script defer="" type="text/javascript" src="path_to_url" id="convertkit-js-js"></script> <script defer="" type="text/javascript" src="path_to_url" id="font-awesome-4-shim-js"></script> <script type="text/javascript" id="ecs_ajax_load-js-extra"> /* <![CDATA[ */ var ecs_ajax_params = {"ajaxurl":"https:\/\/theflip.africa\/wp-admin\/admin-ajax.php","posts":"{\"page\":0,\"post_type\":\"podcast\",\"podcast\":\"digitizing-healthcare-helium-health-goke-olubusi\",\"name\":\"digitizing-healthcare-helium-health-goke-olubusi\",\"error\":\"\",\"m\":\"\",\"p\":0,\"post_parent\":\"\",\"subpost\":\"\",\"subpost_id\":\"\",\"attachment\":\"\",\"attachment_id\":0,\"pagename\":\"\",\"page_id\":0,\"second\":\"\",\"minute\":\"\",\"hour\":\"\",\"day\":0,\"monthnum\":0,\"year\":0,\"w\":0,\"category_name\":\"\",\"tag\":\"\",\"cat\":\"\",\"tag_id\":\"\",\"author\":\"\",\"author_name\":\"\",\"feed\":\"\",\"tb\":\"\",\"paged\":0,\"meta_key\":\"\",\"meta_value\":\"\",\"preview\":\"\",\"s\":\"\",\"sentence\":\"\",\"title\":\"\",\"fields\":\"\",\"menu_order\":\"\",\"embed\":\"\",\"category__in\":[],\"category__not_in\":[],\"category__and\":[],\"post__in\":[],\"post__not_in\":[],\"post_name__in\":[],\"tag__in\":[],\"tag__not_in\":[],\"tag__and\":[],\"tag_slug__in\":[],\"tag_slug__and\":[],\"post_parent__in\":[],\"post_parent__not_in\":[],\"author__in\":[],\"author__not_in\":[],\"ignore_sticky_posts\":false,\"suppress_filters\":false,\"cache_results\":true,\"update_post_term_cache\":true,\"lazy_load_term_meta\":true,\"update_post_meta_cache\":true,\"posts_per_page\":10,\"nopaging\":false,\"comments_per_page\":\"50\",\"no_found_rows\":false,\"order\":\"DESC\"}"}; /* ]]> */ </script> <script defer="" type="text/javascript" src="path_to_url" id="ecs_ajax_load-js"></script> <script defer="" type="text/javascript" src="path_to_url" id="ecs-script-js"></script> <link rel="path_to_url" href="path_to_url"><link rel="alternate" type="application/json" href="path_to_url"><link rel="EditURI" type="application/rsd+xml" title="RSD" href="path_to_url"> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="path_to_url"> <meta name="generator" content="WordPress 5.6"> <link rel="shortlink" href="path_to_url"> <link rel="alternate" type="application/json+oembed" href="path_to_url"> <link rel="alternate" type="text/xml+oembed" href="path_to_url"> <style type="text/css"> .ae_data .elementor-editor-element-setting { display:none !important; } </style><script async="" src="path_to_url" data-proof=""></script> <link rel="icon" href="path_to_url" sizes="32x32"> <link rel="icon" href="path_to_url" sizes="192x192"> <link rel="apple-touch-icon" href="path_to_url"> <meta name="msapplication-TileImage" content="path_to_url"> <style type="text/css" id="wp-custom-css"> html { font-size: 21px; height:100%; } body { -webkit-font-smoothing: antialiased; line-height: 1.666667; } @media (max-width:750px) { p, ul, ol { font-size:17px; } } .elementor-tab-title a, .elementor-tab-title a:hover, .elementor-widget-image a, .elementor-widget-image a:hover { box-shadow: none!important; background: none!important; } .elementor-location-single a { box-shadow: inset 0 -0.333333em #9df890; transition: all 50ms; } .elementor-location-single a:hover { color: #161616; box-shadow: none; background: #9df890; } a { color:inherit; } @media (max-width: 767px) { .elementor-tabs .elementor-tabs-wrapper { display: flex; } } .elementor-tabs .elementor-tab-mobile-title { display: none; } .remove-link-style a{ box-shadow:none; } .elementor .elementor-widget:not(.elementor-widget-text-editor) figure { margin:0 auto; } blockquote { border-left: 3px solid #9df890; padding-left: 10px; } @media (max-width: 480px) { .header-filter { background-size: contain; background-repeat: no-repeat; } } body.post-type-archive nav.ee-pagination a { font-size:16px !important; letter-spacing:.8px; } body.post-type-archive nav.ee-pagination { background-color: transparent !important; fill: #000000; color: #000000; border-radius: 0px 0px 0px 0px; border: 2px solid #000 !important; text-transform: uppercase; padding: 15px 30px !important; max-width: fit-content !important; line-height: 1; font-size:16px !important; } body.post-type-archive nav.ee-pagination:hover a{ color:#fff; } body.post-type-archive nav.ee-pagination:hover { background-color:#000 !important; transition:.3s; } /* .ee-pagination { margin: 0 270px!important; } */ @media (max-width: 575.98px) { .ee-pagination { margin: 0 60px!important; } } .elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a { box-shadow: inset 0 -0.333333em #9df890; transition: all 50ms; } </style> </head> <body class="podcast-template-default single single-podcast postid-3411 elementor-default elementor-kit-1465 elementor-page-641 e--ua-blink e--ua-chrome e--ua-mac e--ua-webkit" data-elementor-device-mode="desktop" data-new-gr-c-s-check-loaded="14.993.0" data-gr-ext-installed="" cz-shortcut-listen="true"> <div data-elementor-type="header" data-elementor-id="256" class="elementor elementor-256 elementor-location-header" data-elementor-settings="[]"> <div class="elementor-section-wrap"> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-45ae7de elementor-section-content-middle elementor-section-boxed elementor-section-height-default elementor-section-height-default ae-bg-gallery-type-default" data-id="45ae7de" data-element_type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}"> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-e08c48f ae-bg-gallery-type-default" data-id="e08c48f" data-element_type="column" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-0afe777 elementor-widget elementor-widget-global elementor-global-261 elementor-widget-image" data-id="0afe777" data-element_type="widget" data-widget_type="image.default"> <div class="elementor-widget-container"> <div class="elementor-image"> <a href="path_to_url"> <img width="252" height="144" src="path_to_url" class="attachment-large size-large" alt="" loading="lazy"> </a> </div> </div> </div> </div> </div> </div> <div class="has_ae_slider elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6b11ad9 ae-bg-gallery-type-default" data-id="6b11ad9" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-4a12acf elementor-nav-menu__align-right elementor-nav-menu--dropdown-mobile elementor-nav-menu--stretch elementor-nav-menu--indicator-classic elementor-nav-menu__text-align-aside elementor-nav-menu--toggle elementor-nav-menu--burger elementor-widget elementor-widget-nav-menu" data-id="4a12acf" data-element_type="widget" data-settings="{&quot;full_width&quot;:&quot;stretch&quot;,&quot;layout&quot;:&quot;horizontal&quot;,&quot;toggle&quot;:&quot;burger&quot;}" data-widget_type="nav-menu.default"> <div class="elementor-widget-container"> <nav role="navigation" class="elementor-nav-menu--main elementor-nav-menu__container elementor-nav-menu--layout-horizontal e--pointer-underline e--animation-fade"><ul id="menu-1-4a12acf" class="elementor-nav-menu" data-smartmenus-id="16125160594341375"><li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-1587"><a href="/podcast" class="elementor-item has-submenu" id="sm-16125160594341375-1" aria-haspopup="true" aria-controls="sm-16125160594341375-2" aria-expanded="false">Podcast<span class="sub-arrow"><i class="fa"></i></span></a> <ul class="sub-menu elementor-nav-menu--dropdown" id="sm-16125160594341375-2" role="group" aria-hidden="true" aria-labelledby="sm-16125160594341375-1" aria-expanded="false"> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1589"><a href="path_to_url" class="elementor-sub-item">Episodes</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1588"><a href="path_to_url" class="elementor-sub-item">Contributors</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1590"><a href="path_to_url" class="elementor-sub-item">Where to Listen</a></li> </ul> </li> <li class="menu-item menu-item-type-post_type menu-item-object-page current_page_parent menu-item-1592"><a href="path_to_url" class="elementor-item">Essays</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3398"><a href="path_to_url" class="elementor-item">Newsletter</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1593"><a href="path_to_url" class="elementor-item">Our Story</a></li> </ul></nav> <div class="elementor-menu-toggle" role="button" tabindex="0" aria-label="Menu Toggle" aria-expanded="false" style=""> <i class="eicon-menu-bar" aria-hidden="true"></i> <span class="elementor-screen-only">Menu</span> </div> <nav class="elementor-nav-menu--dropdown elementor-nav-menu__container" role="navigation" aria-hidden="true" style="top: 47px; width: 1440px; left: 0px;"><ul id="menu-2-4a12acf" class="elementor-nav-menu" data-smartmenus-id="16125160594394353"><li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-1587"><a href="/podcast" class="elementor-item has-submenu" id="sm-16125160594394353-1" aria-haspopup="true" aria-controls="sm-16125160594394353-2" aria-expanded="false">Podcast<span class="sub-arrow"><i class="fa"></i></span></a> <ul class="sub-menu elementor-nav-menu--dropdown" id="sm-16125160594394353-2" role="group" aria-hidden="true" aria-labelledby="sm-16125160594394353-1" aria-expanded="false"> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1589"><a href="path_to_url" class="elementor-sub-item">Episodes</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1588"><a href="path_to_url" class="elementor-sub-item">Contributors</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1590"><a href="path_to_url" class="elementor-sub-item">Where to Listen</a></li> </ul> </li> <li class="menu-item menu-item-type-post_type menu-item-object-page current_page_parent menu-item-1592"><a href="path_to_url" class="elementor-item">Essays</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3398"><a href="path_to_url" class="elementor-item">Newsletter</a></li> <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1593"><a href="path_to_url" class="elementor-item">Our Story</a></li> </ul></nav> </div> </div> </div> </div> </div> </div> </div> </section> </div> </div> <div data-elementor-type="single" data-elementor-id="641" class="elementor elementor-641 elementor-location-single post-3411 podcast type-podcast status-publish has-post-thumbnail hentry" data-elementor-settings="[]"> <div class="elementor-section-wrap elementor-motion-effects-parent"> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-45497e6 elementor-section-height-min-height elementor-section-boxed elementor-section-height-default elementor-section-items-middle ae-bg-gallery-type-default elementor-motion-effects-element elementor-motion-effects-element-type-background" data-id="45497e6" data-element_type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;,&quot;background_motion_fx_motion_fx_scrolling&quot;:&quot;yes&quot;,&quot;background_motion_fx_translateY_effect&quot;:&quot;yes&quot;,&quot;background_motion_fx_devices&quot;:[&quot;desktop&quot;,&quot;tablet&quot;],&quot;background_motion_fx_translateY_speed&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:4,&quot;sizes&quot;:[]},&quot;background_motion_fx_translateY_affectedRange&quot;:{&quot;unit&quot;:&quot;%&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:{&quot;start&quot;:0,&quot;end&quot;:100}}}"><div class="elementor-motion-effects-container"><div class="elementor-motion-effects-layer" style="width: 100%; height: 140%; --translateY:-37.3443px; transform: translateY(var(--translateY));"></div></div> <div class="elementor-background-overlay"></div> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6b9cedf ae-bg-gallery-type-default" data-id="6b9cedf" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-7b12e2a elementor-widget elementor-widget-heading" data-id="7b12e2a" data-element_type="widget" data-widget_type="heading.default"> <div class="elementor-widget-container"> <h1 class="elementor-heading-title elementor-size-default">Digitizing Healthcare with Helium Healths Goke Olubusi</h1> </div> </div> <div class="elementor-element elementor-element-1190200 elementor-align-center elementor-widget elementor-widget-post-info" data-id="1190200" data-element_type="widget" data-widget_type="post-info.default"> <div class="elementor-widget-container"> <ul class="elementor-inline-items elementor-icon-list-items elementor-post-info"> <li class="elementor-icon-list-item elementor-repeater-item-e124741 elementor-inline-item" itemprop="datePublished"> <span class="elementor-icon-list-text elementor-post-info__item elementor-post-info__item--type-date"> January 14, 2021 </span> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </section> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-5720a17 elementor-section-boxed elementor-section-height-default elementor-section-height-default ae-bg-gallery-type-default" data-id="5720a17" data-element_type="section"> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5b5d1bf ae-bg-gallery-type-default" data-id="5b5d1bf" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-9d1b729 elementor-widget elementor-widget-theme-post-content" data-id="9d1b729" data-element_type="widget" data-widget_type="theme-post-content.default"> <div class="elementor-widget-container"> <div class="at-above-post addthis_tool" data-url="path_to_url"></div> <iframe height="200px" width="100%" frameborder="no" scrolling="no" seamless="" src="path_to_url"> <!DOCTYPE html><html lang="en"><div id="43a92bbe-e069-42c2-9241-4a4fd3ef35fc" style="display: none;">{"method":"apply","level":"info","category":"worker","path":"self.ServiceWorkerContainer.prototype.register","jsContextId":"ee745816-7145-49b5-9b86-c7e3362d67ae","url":"path_to_url","stack":[{"fileName":"path_to_url","lineNumber":"6","columnNumber":"976"}]}</div><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Digitizing Healthcare with Helium Health's Goke Olubusi</title><link rel="icon" type="image/png" sizes="32x32" href="/static/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/static/img/icons/favicon-16x16.png"><!--[if IE]><link rel="shortcut icon" href="/static/img/icons/favicon.ico"><![endif]--><link rel="manifest" href="/static/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black"><meta name="apple-mobile-web-app-title" content="Simplecast"><link rel="apple-touch-icon" href="/static/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/static/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/static/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"><script async="" src="path_to_url"></script><script>function getUrlParameter(name) { name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); var results = regex.exec(location.search); return results === null ? false : decodeURIComponent(results[1].replace(/\+/g, ' ')); }</script><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='path_to_url})(window,document,'script','dataLayer','GTM-5JR8CSQ');</script><link href="/static/css/app.c7f19f0e04d4d99e9415.css" rel="stylesheet"></head><body data-new-gr-c-s-check-loaded="14.993.0" data-gr-ext-installed=""><noscript><iframe src="path_to_url" height=0 width=0 style=display:none;visibility:hidden></iframe></noscript><div id="app"><div style="height: 200px; width: 1120px;"><!----> <div data-v-00c3407c="" class="simplecast-player standard-size" style="transform: scale(1); width: 100%;"><div data-v-39898ef2="" data-v-00c3407c="" class="main" style="background: rgb(255, 255, 254);"><div data-v-39898ef2="" class="main-wrap size-normal"><audio data-v-39898ef2="" preload="none" src="path_to_url"></audio> <a data-v-1fe013df="" data-v-39898ef2="" href="path_to_url" title="Simplecast Homepage" target="simplecast" class="logo size-normal"><svg data-v-1fe013df="" aria-label="Simplecast logo" viewBox="0 0 20 20" xmlns="path_to_url" class="sc-logo"><g data-v-1fe013df="" fill="none" fill-rule="evenodd"><path data-v-1fe013df="" d="M0 20h20V0H0v20zm1.333-1.334h17.334V1.333H1.333v17.333z" class="sc-logo-border"></path><path data-v-1fe013df="" d="M4 4v12h12zM15.057 12.485L7.515 4.942 8.457 4 16 11.542zM15.057 8.714l-3.771-3.772.943-.942 3.77 3.77z"></path></g></svg></a> <div data-v-7d35faff="" data-v-39898ef2="" class="artwork-meta size-normal"><div data-v-f6bceb8c="" data-v-7d35faff="" aria-hidden="true" class="artwork"><div data-v-f6bceb8c="" aria-label="Artwork for Digitizing Healthcare with Helium Health's Goke Olubusi" class="ratio ratio-1-1" style="background-image: url(&quot;path_to_url"></div></div> <div data-v-02c26551="" data-v-7d35faff="" class="meta-info size-normal"><h2 data-v-02c26551="" class="meta-info-pod type-s"><span data-v-02c26551="" class="meta-info-static">The Flip | S2 - BONUS</span> <span data-v-02c26551="" aria-hidden="true" class="meta-info-ticker"> The Flip | S2 - BONUS </span> <span data-v-02c26551="" aria-hidden="true" class="meta-info-ticker meta-info-ticket-secondary"> The Flip | S2 - BONUS </span></h2> <h1 data-v-02c26551="" class="meta-info-epi type-xl-wide"><span data-v-02c26551="" class="meta-info-static">Digitizing Healthcare with Helium Health's Goke Olubusi</span> <span data-v-02c26551="" aria-hidden="true" class="meta-info-ticker"> Digitizing Healthcare with Helium Health's Goke Olubusi </span> <span data-v-02c26551="" aria-hidden="true" class="meta-info-ticker meta-info-ticket-secondary"> Digitizing Healthcare with Helium Health's Goke Olubusi </span></h1> <div data-v-02c26551="" class="powered-by"> Powered by <a data-v-02c26551="" href="path_to_url" target="_blank">Simplecast</a></div></div></div> <div data-v-6be32f32="" data-v-39898ef2="" class="controls size-normal"><div data-v-02c26551="" data-v-6be32f32="" class="meta-info size-normal"><h2 data-v-02c26551="" class="meta-info-pod type-s"><span data-v-02c26551="" class="meta-info-static">The Flip | S2 - BONUS</span> <span data-v-02c26551="" aria-hidden="true" class="meta-info-ticker"> The Flip | S2 - BONUS </span> <span data-v-02c26551="" aria-hidden="true" class="meta-info-ticker meta-info-ticket-secondary"> The Flip | S2 - BONUS </span></h2> <h1 data-v-02c26551="" class="meta-info-epi type-xl-wide"><span data-v-02c26551="" class="meta-info-static">Digitizing Healthcare with Helium Health's Goke Olubusi</span> <span data-v-02c26551="" aria-hidden="true" class="meta-info-ticker"> Digitizing Healthcare with Helium Health's Goke Olubusi </span> <span data-v-02c26551="" aria-hidden="true" class="meta-info-ticker meta-info-ticket-secondary"> Digitizing Healthcare with Helium Health's Goke Olubusi </span></h1> <div data-v-02c26551="" class="powered-by"> Powered by <a data-v-02c26551="" href="path_to_url" target="_blank">Simplecast</a></div></div> <div data-v-6be32f32="" class="player-controls"><button data-v-44d9093c="" data-v-6be32f32="" aria-label="Play" class="play-pause size-normal"><svg data-v-44d9093c="" viewBox="0 0 44 44" xmlns="path_to_url" class=""><path data-v-44d9093c="" d="M22 44C9.85 44 0 34.15 0 22S9.85 0 22 0s22 9.85 22 22-9.85 22-22 22zm-5.333-31.333v18.666L31.333 22l-14.666-9.333z"></path></svg></button> <div data-v-6be32f32="" class="scrubber-timer"><div data-v-21e1a23c="" data-v-6be32f32="" class="scrubber size-normal" style="opacity: 1;"><div data-v-faf7f3e6="" data-v-21e1a23c="" class="scrubber-waveform"><div data-v-faf7f3e6=""><div data-v-4dfee48e="" data-v-faf7f3e6="" class="current-time">00:00</div> <div data-v-0644adb6="" data-v-faf7f3e6="" class="total-time">23:59</div> <svg data-v-faf7f3e6="" height="48" width="0" aria-hidden="true" class="scrubber-time"><path data-v-faf7f3e6="" d="M0,15L2,14L4,12L6,10L8,13L10,7L12,11L14,16L16,16L18,14L20,13L22,13L24,4L25,12L27,12L29,2L31,6L33,7L35,10L37,15L39,11L41,17L43,9L45,10L47,13L49,13L51,17L53,14L55,9L57,17L59,12L61,12L63,17L65,17L67,15L69,16L71,11L73,17L74,12L76,16L78,9L80,16L82,16L84,10L86,14L88,12L90,14L92,15L94,17L96,14L98,15L100,10L102,17L104,11L106,11L108,5L110,11L112,7L114,16L116,8L118,17L120,9L121,9L123,11L125,17L127,14L129,9L131,16L133,17L135,17L137,12L139,15L141,17L143,14L145,13L147,15L149,13L151,15L153,12L155,15L157,2L159,15L161,6L163,4L165,15L167,12L169,10L170,10L172,16L174,14L176,9L178,12L180,16L182,17L184,9L186,13L188,8L190,14L192,5L194,9L196,13L198,5L200,16L202,15L204,15L206,15L208,11L210,14L212,12L214,16L216,12L218,14L219,12L221,5L223,9L225,16L227,1L229,10L231,17L233,14L235,13L237,17L239,7L241,12L243,11L245,13L247,17L249,17L251,10L253,17L255,6L257,13L259,7L261,2L263,17L265,15L267,17L268,14L270,15L272,12L274,14L276,13L278,10L280,6L282,10L284,8L286,17L288,4L290,17L292,10L294,17L296,15L298,15L300,14L302,12L304,13L306,11L308,12L310,17L312,12L314,15L315,15L317,15L319,14L321,12L323,9L325,9L327,16L329,15L331,11L333,14L335,7L337,10L339,12L341,2L343,13L345,12L347,15L349,15L351,7L353,17L355,13L357,14L359,17L361,17L363,4L364,7L366,7L368,12L370,8L372,7L374,11L376,8L378,8L380,3L382,3L384,4L386,8L388,3L390,17L392,9L394,15L396,17L398,10L400,10L402,3L404,8L406,11L408,15L410,2L412,12L413,17L415,13L417,8L419,17L421,3L423,8L425,14L427,17L429,2L431,12L433,17L435,7L437,10L439,3L441,12L443,17L445,4L447,7L449,14L451,16L453,15L455,12L457,14L459,14L461,13L462,16L464,10L466,14L468,2L470,13L472,16L474,10L476,6L478,11L480,15L482,7L484,15L486,17L488,12L490,17L492,12L494,14L496,6L498,16L500,17L502,13L504,16L506,15L508,11L510,11L511,5L513,16L515,13L517,12L519,11L521,14L523,12L525,16L527,15L529,15L531,14L533,12L535,13L537,14L539,15L541,10L543,17L545,15L547,13L549,13L551,17L553,7L555,8L557,11L558,11L560,13L562,17L564,9L566,16L568,16L570,6L572,17L574,14L576,13L578,13L580,14L582,13L584,16L586,11L588,8L590,16L592,15L594,10L596,7L598,16L600,8L602,5L604,12L606,16L607,9L609,12L611,10L613,12L615,17L617,15L619,1L621,13L623,10L625,0L627,17L629,14L631,8L633,5L635,15L637,11L639,13L641,16L643,6L645,16L647,10L649,2L651,9L653,16L655,17L656,11L658,14L660,17L662,12L664,9L666,17L668,16L670,9L672,11L674,12L676,5L678,11L680,8L682,5L684,7L686,4L688,12L690,17L692,16L694,5L696,8L698,8L700,11L702,14L704,16L705,6L707,17L709,17L711,17L713,17L715,15L717,14L719,4L721,8L723,9L725,11L727,14L729,12L731,5L733,9L735,10L737,16L739,17L741,9L743,14L745,14L747,14L749,16L751,13L752,13L754,17L756,14L758,17L760,16L762,14L764,15L766,15L768,16L770,9L772,8L774,12L776,10L778,13L780,9L782,14L784,16L786,8L788,17L790,13L792,12L794,11L796,11L798,16L800,17L801,13L803,15L805,10L807,14L809,16L811,12L813,14L815,14L817,16L819,17L821,17L823,17L823,31L821,31L819,31L817,32L815,34L813,34L811,36L809,32L807,34L805,38L803,33L801,35L800,31L798,32L796,37L794,37L792,36L790,35L788,31L786,40L784,32L782,34L780,39L778,35L776,38L774,36L772,40L770,39L768,32L766,33L764,33L762,34L760,32L758,31L756,34L754,31L752,35L751,35L749,32L747,34L745,34L743,34L741,39L739,31L737,32L735,38L733,39L731,43L729,36L727,34L725,37L723,39L721,40L719,44L717,34L715,33L713,31L711,31L709,31L707,31L705,42L704,32L702,34L700,37L698,40L696,40L694,43L692,32L690,31L688,36L686,44L684,41L682,43L680,40L678,37L676,43L674,36L672,37L670,39L668,32L666,31L664,39L662,36L660,31L658,34L656,37L655,31L653,32L651,39L649,46L647,38L645,32L643,42L641,32L639,35L637,37L635,33L633,43L631,40L629,34L627,31L625,48L623,38L621,35L619,47L617,33L615,31L613,36L611,38L609,36L607,39L606,32L604,36L602,43L600,40L598,32L596,41L594,38L592,33L590,32L588,40L586,37L584,32L582,35L580,34L578,35L576,35L574,34L572,31L570,42L568,32L566,32L564,39L562,31L560,35L558,37L557,37L555,40L553,41L551,31L549,35L547,35L545,33L543,31L541,38L539,33L537,34L535,35L533,36L531,34L529,33L527,33L525,32L523,36L521,34L519,37L517,36L515,35L513,32L511,43L510,37L508,37L506,33L504,32L502,35L500,31L498,32L496,42L494,34L492,36L490,31L488,36L486,31L484,33L482,41L480,33L478,37L476,42L474,38L472,32L470,35L468,46L466,34L464,38L462,32L461,35L459,34L457,34L455,36L453,33L451,32L449,34L447,41L445,44L443,31L441,36L439,45L437,38L435,41L433,31L431,36L429,46L427,31L425,34L423,40L421,45L419,31L417,40L415,35L413,31L412,36L410,46L408,33L406,37L404,40L402,45L400,38L398,38L396,31L394,33L392,39L390,31L388,45L386,40L384,44L382,45L380,45L378,40L376,40L374,37L372,41L370,40L368,36L366,41L364,41L363,44L361,31L359,31L357,34L355,35L353,31L351,41L349,33L347,33L345,36L343,35L341,46L339,36L337,38L335,41L333,34L331,37L329,33L327,32L325,39L323,39L321,36L319,34L317,33L315,33L314,33L312,36L310,31L308,36L306,37L304,35L302,36L300,34L298,33L296,33L294,31L292,38L290,31L288,44L286,31L284,40L282,38L280,42L278,38L276,35L274,34L272,36L270,33L268,34L267,31L265,33L263,31L261,46L259,41L257,35L255,42L253,31L251,38L249,31L247,31L245,35L243,37L241,36L239,41L237,31L235,35L233,34L231,31L229,38L227,47L225,32L223,39L221,43L219,36L218,34L216,36L214,32L212,36L210,34L208,37L206,33L204,33L202,33L200,32L198,43L196,35L194,39L192,43L190,34L188,40L186,35L184,39L182,31L180,32L178,36L176,39L174,34L172,32L170,38L169,38L167,36L165,33L163,44L161,42L159,33L157,46L155,33L153,36L151,33L149,35L147,33L145,35L143,34L141,31L139,33L137,36L135,31L133,31L131,32L129,39L127,34L125,31L123,37L121,39L120,39L118,31L116,40L114,32L112,41L110,37L108,43L106,37L104,37L102,31L100,38L98,33L96,34L94,31L92,33L90,34L88,36L86,34L84,38L82,32L80,32L78,39L76,32L74,36L73,31L71,37L69,32L67,33L65,31L63,31L61,36L59,36L57,31L55,39L53,34L51,31L49,35L47,35L45,38L43,39L41,31L39,37L37,33L35,38L33,41L31,42L29,46L27,36L25,36L24,44L22,35L20,35L18,34L16,32L14,32L12,37L10,41L8,35L6,38L4,36L2,34L0,33"></path></svg> <div data-v-faf7f3e6="" class="scrubber-hover"><div data-v-faf7f3e6="" class="scrubber-hover-recast" style="left: 0%;"> Recast <svg data-v-faf7f3e6="" viewBox="0 0 24 18" xmlns="path_to_url" class=""><path data-v-faf7f3e6="" d="M23.993 9.12c0-.424 0-.768-.75-.768-.755 0-.755.344-.755.768v.763c0 .42 0 .766.754.766.751 0 .751-.346.751-.766V9.12zm-2.26-2.297c0-.421 0-.765-.75-.765-.755 0-.755.344-.755.765v3.824c0 .423 0 .768.755.768.75 0 .75-.345.75-.768V6.823zM19.478.763c0-.42 0-.763-.755-.763-.751 0-.751.344-.751.763v16.069c0 .418 0 .763.75.763.756 0 .756-.345.756-.763V.763zm-2.26 4.53c0-.422 0-.765-.75-.765-.756 0-.756.343-.756.765v8.416c0 .418 0 .767.755.767.751 0 .751-.349.751-.767V5.293zm-2.256 2.295c0-.421 0-.765-.755-.765-.75 0-.75.344-.75.765v2.484c0 .01 1.505 1.193 1.505 1.189V7.588zm-2.26 1.876v-2.34c0-.062-1.113.91-1.427 1.196-.011.011 1.427 1.145 1.427 1.144zm-1.505 5.326v1.544c0 .418 0 .763.754.763.75 0 .75-.345.75-.763v-1.055-.61c0 .001-.368.038-.751.01a4.464 4.464 0 01-.753-.144v.255zM2.43 9.3c.417-.038.84.017 1.23.163l1.52-1.465-1.52-1.464c-1.043.39-2.23.12-2.977-.676a2.461 2.461 0 01-.374-2.894c.522-.944 1.606-1.48 2.717-1.343A2.702 2.702 0 014.91 2.726c.432.61.567 1.366.37 2.077l1.797 1.369 2.064-1.986a4.372 4.372 0 012.34-1.157c1.096-.176 2.205.237 2.886 1.074a.135.135 0 01-.026.191l-9.06 6.894c.092.342.11.697.054 1.046-.214 1.312-1.448 2.25-2.838 2.155-1.39-.093-2.474-1.187-2.491-2.514-.018-1.328 1.036-2.447 2.423-2.575zm.315-3.866c.34 0 .665-.128.905-.357.24-.229.376-.54.376-.863 0-.674-.574-1.22-1.281-1.22-.708 0-1.281.546-1.281 1.22 0 .674.573 1.22 1.28 1.22zm0 7.67c.707 0 1.28-.547 1.28-1.22 0-.674-.573-1.22-1.28-1.22-.708 0-1.281.546-1.281 1.22 0 .673.573 1.22 1.28 1.22zm8.572.298a4.372 4.372 0 01-2.34-1.158l-1.358-1.32 2.49-1.892 4.08 3.113a.135.135 0 01.026.192c-.684.835-1.795 1.244-2.89 1.065h-.008z"></path></svg></div> <svg data-v-faf7f3e6="" height="48" width="0%" aria-hidden="true" class=""><path data-v-faf7f3e6="" d="M0,15L2,14L4,12L6,10L8,13L10,7L12,11L14,16L16,16L18,14L20,13L22,13L24,4L25,12L27,12L29,2L31,6L33,7L35,10L37,15L39,11L41,17L43,9L45,10L47,13L49,13L51,17L53,14L55,9L57,17L59,12L61,12L63,17L65,17L67,15L69,16L71,11L73,17L74,12L76,16L78,9L80,16L82,16L84,10L86,14L88,12L90,14L92,15L94,17L96,14L98,15L100,10L102,17L104,11L106,11L108,5L110,11L112,7L114,16L116,8L118,17L120,9L121,9L123,11L125,17L127,14L129,9L131,16L133,17L135,17L137,12L139,15L141,17L143,14L145,13L147,15L149,13L151,15L153,12L155,15L157,2L159,15L161,6L163,4L165,15L167,12L169,10L170,10L172,16L174,14L176,9L178,12L180,16L182,17L184,9L186,13L188,8L190,14L192,5L194,9L196,13L198,5L200,16L202,15L204,15L206,15L208,11L210,14L212,12L214,16L216,12L218,14L219,12L221,5L223,9L225,16L227,1L229,10L231,17L233,14L235,13L237,17L239,7L241,12L243,11L245,13L247,17L249,17L251,10L253,17L255,6L257,13L259,7L261,2L263,17L265,15L267,17L268,14L270,15L272,12L274,14L276,13L278,10L280,6L282,10L284,8L286,17L288,4L290,17L292,10L294,17L296,15L298,15L300,14L302,12L304,13L306,11L308,12L310,17L312,12L314,15L315,15L317,15L319,14L321,12L323,9L325,9L327,16L329,15L331,11L333,14L335,7L337,10L339,12L341,2L343,13L345,12L347,15L349,15L351,7L353,17L355,13L357,14L359,17L361,17L363,4L364,7L366,7L368,12L370,8L372,7L374,11L376,8L378,8L380,3L382,3L384,4L386,8L388,3L390,17L392,9L394,15L396,17L398,10L400,10L402,3L404,8L406,11L408,15L410,2L412,12L413,17L415,13L417,8L419,17L421,3L423,8L425,14L427,17L429,2L431,12L433,17L435,7L437,10L439,3L441,12L443,17L445,4L447,7L449,14L451,16L453,15L455,12L457,14L459,14L461,13L462,16L464,10L466,14L468,2L470,13L472,16L474,10L476,6L478,11L480,15L482,7L484,15L486,17L488,12L490,17L492,12L494,14L496,6L498,16L500,17L502,13L504,16L506,15L508,11L510,11L511,5L513,16L515,13L517,12L519,11L521,14L523,12L525,16L527,15L529,15L531,14L533,12L535,13L537,14L539,15L541,10L543,17L545,15L547,13L549,13L551,17L553,7L555,8L557,11L558,11L560,13L562,17L564,9L566,16L568,16L570,6L572,17L574,14L576,13L578,13L580,14L582,13L584,16L586,11L588,8L590,16L592,15L594,10L596,7L598,16L600,8L602,5L604,12L606,16L607,9L609,12L611,10L613,12L615,17L617,15L619,1L621,13L623,10L625,0L627,17L629,14L631,8L633,5L635,15L637,11L639,13L641,16L643,6L645,16L647,10L649,2L651,9L653,16L655,17L656,11L658,14L660,17L662,12L664,9L666,17L668,16L670,9L672,11L674,12L676,5L678,11L680,8L682,5L684,7L686,4L688,12L690,17L692,16L694,5L696,8L698,8L700,11L702,14L704,16L705,6L707,17L709,17L711,17L713,17L715,15L717,14L719,4L721,8L723,9L725,11L727,14L729,12L731,5L733,9L735,10L737,16L739,17L741,9L743,14L745,14L747,14L749,16L751,13L752,13L754,17L756,14L758,17L760,16L762,14L764,15L766,15L768,16L770,9L772,8L774,12L776,10L778,13L780,9L782,14L784,16L786,8L788,17L790,13L792,12L794,11L796,11L798,16L800,17L801,13L803,15L805,10L807,14L809,16L811,12L813,14L815,14L817,16L819,17L821,17L823,17L823,31L821,31L819,31L817,32L815,34L813,34L811,36L809,32L807,34L805,38L803,33L801,35L800,31L798,32L796,37L794,37L792,36L790,35L788,31L786,40L784,32L782,34L780,39L778,35L776,38L774,36L772,40L770,39L768,32L766,33L764,33L762,34L760,32L758,31L756,34L754,31L752,35L751,35L749,32L747,34L745,34L743,34L741,39L739,31L737,32L735,38L733,39L731,43L729,36L727,34L725,37L723,39L721,40L719,44L717,34L715,33L713,31L711,31L709,31L707,31L705,42L704,32L702,34L700,37L698,40L696,40L694,43L692,32L690,31L688,36L686,44L684,41L682,43L680,40L678,37L676,43L674,36L672,37L670,39L668,32L666,31L664,39L662,36L660,31L658,34L656,37L655,31L653,32L651,39L649,46L647,38L645,32L643,42L641,32L639,35L637,37L635,33L633,43L631,40L629,34L627,31L625,48L623,38L621,35L619,47L617,33L615,31L613,36L611,38L609,36L607,39L606,32L604,36L602,43L600,40L598,32L596,41L594,38L592,33L590,32L588,40L586,37L584,32L582,35L580,34L578,35L576,35L574,34L572,31L570,42L568,32L566,32L564,39L562,31L560,35L558,37L557,37L555,40L553,41L551,31L549,35L547,35L545,33L543,31L541,38L539,33L537,34L535,35L533,36L531,34L529,33L527,33L525,32L523,36L521,34L519,37L517,36L515,35L513,32L511,43L510,37L508,37L506,33L504,32L502,35L500,31L498,32L496,42L494,34L492,36L490,31L488,36L486,31L484,33L482,41L480,33L478,37L476,42L474,38L472,32L470,35L468,46L466,34L464,38L462,32L461,35L459,34L457,34L455,36L453,33L451,32L449,34L447,41L445,44L443,31L441,36L439,45L437,38L435,41L433,31L431,36L429,46L427,31L425,34L423,40L421,45L419,31L417,40L415,35L413,31L412,36L410,46L408,33L406,37L404,40L402,45L400,38L398,38L396,31L394,33L392,39L390,31L388,45L386,40L384,44L382,45L380,45L378,40L376,40L374,37L372,41L370,40L368,36L366,41L364,41L363,44L361,31L359,31L357,34L355,35L353,31L351,41L349,33L347,33L345,36L343,35L341,46L339,36L337,38L335,41L333,34L331,37L329,33L327,32L325,39L323,39L321,36L319,34L317,33L315,33L314,33L312,36L310,31L308,36L306,37L304,35L302,36L300,34L298,33L296,33L294,31L292,38L290,31L288,44L286,31L284,40L282,38L280,42L278,38L276,35L274,34L272,36L270,33L268,34L267,31L265,33L263,31L261,46L259,41L257,35L255,42L253,31L251,38L249,31L247,31L245,35L243,37L241,36L239,41L237,31L235,35L233,34L231,31L229,38L227,47L225,32L223,39L221,43L219,36L218,34L216,36L214,32L212,36L210,34L208,37L206,33L204,33L202,33L200,32L198,43L196,35L194,39L192,43L190,34L188,40L186,35L184,39L182,31L180,32L178,36L176,39L174,34L172,32L170,38L169,38L167,36L165,33L163,44L161,42L159,33L157,46L155,33L153,36L151,33L149,35L147,33L145,35L143,34L141,31L139,33L137,36L135,31L133,31L131,32L129,39L127,34L125,31L123,37L121,39L120,39L118,31L116,40L114,32L112,41L110,37L108,43L106,37L104,37L102,31L100,38L98,33L96,34L94,31L92,33L90,34L88,36L86,34L84,38L82,32L80,32L78,39L76,32L74,36L73,31L71,37L69,32L67,33L65,31L63,31L61,36L59,36L57,31L55,39L53,34L51,31L49,35L47,35L45,38L43,39L41,31L39,37L37,33L35,38L33,41L31,42L29,46L27,36L25,36L24,44L22,35L20,35L18,34L16,32L14,32L12,37L10,41L8,35L6,38L4,36L2,34L0,33"></path></svg></div> <svg data-v-faf7f3e6="" height="48" width="0" aria-hidden="true" class="scrubber-loader"><path data-v-faf7f3e6="" d="M0,15L2,14L4,12L6,10L8,13L10,7L12,11L14,16L16,16L18,14L20,13L22,13L24,4L25,12L27,12L29,2L31,6L33,7L35,10L37,15L39,11L41,17L43,9L45,10L47,13L49,13L51,17L53,14L55,9L57,17L59,12L61,12L63,17L65,17L67,15L69,16L71,11L73,17L74,12L76,16L78,9L80,16L82,16L84,10L86,14L88,12L90,14L92,15L94,17L96,14L98,15L100,10L102,17L104,11L106,11L108,5L110,11L112,7L114,16L116,8L118,17L120,9L121,9L123,11L125,17L127,14L129,9L131,16L133,17L135,17L137,12L139,15L141,17L143,14L145,13L147,15L149,13L151,15L153,12L155,15L157,2L159,15L161,6L163,4L165,15L167,12L169,10L170,10L172,16L174,14L176,9L178,12L180,16L182,17L184,9L186,13L188,8L190,14L192,5L194,9L196,13L198,5L200,16L202,15L204,15L206,15L208,11L210,14L212,12L214,16L216,12L218,14L219,12L221,5L223,9L225,16L227,1L229,10L231,17L233,14L235,13L237,17L239,7L241,12L243,11L245,13L247,17L249,17L251,10L253,17L255,6L257,13L259,7L261,2L263,17L265,15L267,17L268,14L270,15L272,12L274,14L276,13L278,10L280,6L282,10L284,8L286,17L288,4L290,17L292,10L294,17L296,15L298,15L300,14L302,12L304,13L306,11L308,12L310,17L312,12L314,15L315,15L317,15L319,14L321,12L323,9L325,9L327,16L329,15L331,11L333,14L335,7L337,10L339,12L341,2L343,13L345,12L347,15L349,15L351,7L353,17L355,13L357,14L359,17L361,17L363,4L364,7L366,7L368,12L370,8L372,7L374,11L376,8L378,8L380,3L382,3L384,4L386,8L388,3L390,17L392,9L394,15L396,17L398,10L400,10L402,3L404,8L406,11L408,15L410,2L412,12L413,17L415,13L417,8L419,17L421,3L423,8L425,14L427,17L429,2L431,12L433,17L435,7L437,10L439,3L441,12L443,17L445,4L447,7L449,14L451,16L453,15L455,12L457,14L459,14L461,13L462,16L464,10L466,14L468,2L470,13L472,16L474,10L476,6L478,11L480,15L482,7L484,15L486,17L488,12L490,17L492,12L494,14L496,6L498,16L500,17L502,13L504,16L506,15L508,11L510,11L511,5L513,16L515,13L517,12L519,11L521,14L523,12L525,16L527,15L529,15L531,14L533,12L535,13L537,14L539,15L541,10L543,17L545,15L547,13L549,13L551,17L553,7L555,8L557,11L558,11L560,13L562,17L564,9L566,16L568,16L570,6L572,17L574,14L576,13L578,13L580,14L582,13L584,16L586,11L588,8L590,16L592,15L594,10L596,7L598,16L600,8L602,5L604,12L606,16L607,9L609,12L611,10L613,12L615,17L617,15L619,1L621,13L623,10L625,0L627,17L629,14L631,8L633,5L635,15L637,11L639,13L641,16L643,6L645,16L647,10L649,2L651,9L653,16L655,17L656,11L658,14L660,17L662,12L664,9L666,17L668,16L670,9L672,11L674,12L676,5L678,11L680,8L682,5L684,7L686,4L688,12L690,17L692,16L694,5L696,8L698,8L700,11L702,14L704,16L705,6L707,17L709,17L711,17L713,17L715,15L717,14L719,4L721,8L723,9L725,11L727,14L729,12L731,5L733,9L735,10L737,16L739,17L741,9L743,14L745,14L747,14L749,16L751,13L752,13L754,17L756,14L758,17L760,16L762,14L764,15L766,15L768,16L770,9L772,8L774,12L776,10L778,13L780,9L782,14L784,16L786,8L788,17L790,13L792,12L794,11L796,11L798,16L800,17L801,13L803,15L805,10L807,14L809,16L811,12L813,14L815,14L817,16L819,17L821,17L823,17L823,31L821,31L819,31L817,32L815,34L813,34L811,36L809,32L807,34L805,38L803,33L801,35L800,31L798,32L796,37L794,37L792,36L790,35L788,31L786,40L784,32L782,34L780,39L778,35L776,38L774,36L772,40L770,39L768,32L766,33L764,33L762,34L760,32L758,31L756,34L754,31L752,35L751,35L749,32L747,34L745,34L743,34L741,39L739,31L737,32L735,38L733,39L731,43L729,36L727,34L725,37L723,39L721,40L719,44L717,34L715,33L713,31L711,31L709,31L707,31L705,42L704,32L702,34L700,37L698,40L696,40L694,43L692,32L690,31L688,36L686,44L684,41L682,43L680,40L678,37L676,43L674,36L672,37L670,39L668,32L666,31L664,39L662,36L660,31L658,34L656,37L655,31L653,32L651,39L649,46L647,38L645,32L643,42L641,32L639,35L637,37L635,33L633,43L631,40L629,34L627,31L625,48L623,38L621,35L619,47L617,33L615,31L613,36L611,38L609,36L607,39L606,32L604,36L602,43L600,40L598,32L596,41L594,38L592,33L590,32L588,40L586,37L584,32L582,35L580,34L578,35L576,35L574,34L572,31L570,42L568,32L566,32L564,39L562,31L560,35L558,37L557,37L555,40L553,41L551,31L549,35L547,35L545,33L543,31L541,38L539,33L537,34L535,35L533,36L531,34L529,33L527,33L525,32L523,36L521,34L519,37L517,36L515,35L513,32L511,43L510,37L508,37L506,33L504,32L502,35L500,31L498,32L496,42L494,34L492,36L490,31L488,36L486,31L484,33L482,41L480,33L478,37L476,42L474,38L472,32L470,35L468,46L466,34L464,38L462,32L461,35L459,34L457,34L455,36L453,33L451,32L449,34L447,41L445,44L443,31L441,36L439,45L437,38L435,41L433,31L431,36L429,46L427,31L425,34L423,40L421,45L419,31L417,40L415,35L413,31L412,36L410,46L408,33L406,37L404,40L402,45L400,38L398,38L396,31L394,33L392,39L390,31L388,45L386,40L384,44L382,45L380,45L378,40L376,40L374,37L372,41L370,40L368,36L366,41L364,41L363,44L361,31L359,31L357,34L355,35L353,31L351,41L349,33L347,33L345,36L343,35L341,46L339,36L337,38L335,41L333,34L331,37L329,33L327,32L325,39L323,39L321,36L319,34L317,33L315,33L314,33L312,36L310,31L308,36L306,37L304,35L302,36L300,34L298,33L296,33L294,31L292,38L290,31L288,44L286,31L284,40L282,38L280,42L278,38L276,35L274,34L272,36L270,33L268,34L267,31L265,33L263,31L261,46L259,41L257,35L255,42L253,31L251,38L249,31L247,31L245,35L243,37L241,36L239,41L237,31L235,35L233,34L231,31L229,38L227,47L225,32L223,39L221,43L219,36L218,34L216,36L214,32L212,36L210,34L208,37L206,33L204,33L202,33L200,32L198,43L196,35L194,39L192,43L190,34L188,40L186,35L184,39L182,31L180,32L178,36L176,39L174,34L172,32L170,38L169,38L167,36L165,33L163,44L161,42L159,33L157,46L155,33L153,36L151,33L149,35L147,33L145,35L143,34L141,31L139,33L137,36L135,31L133,31L131,32L129,39L127,34L125,31L123,37L121,39L120,39L118,31L116,40L114,32L112,41L110,37L108,43L106,37L104,37L102,31L100,38L98,33L96,34L94,31L92,33L90,34L88,36L86,34L84,38L82,32L80,32L78,39L76,32L74,36L73,31L71,37L69,32L67,33L65,31L63,31L61,36L59,36L57,31L55,39L53,34L51,31L49,35L47,35L45,38L43,39L41,31L39,37L37,33L35,38L33,41L31,42L29,46L27,36L25,36L24,44L22,35L20,35L18,34L16,32L14,32L12,37L10,41L8,35L6,38L4,36L2,34L0,33"></path></svg> <svg data-v-faf7f3e6="" height="48" aria-hidden="true" class="scrubber-bg"><path data-v-faf7f3e6="" d="M0,15L2,14L4,12L6,10L8,13L10,7L12,11L14,16L16,16L18,14L20,13L22,13L24,4L25,12L27,12L29,2L31,6L33,7L35,10L37,15L39,11L41,17L43,9L45,10L47,13L49,13L51,17L53,14L55,9L57,17L59,12L61,12L63,17L65,17L67,15L69,16L71,11L73,17L74,12L76,16L78,9L80,16L82,16L84,10L86,14L88,12L90,14L92,15L94,17L96,14L98,15L100,10L102,17L104,11L106,11L108,5L110,11L112,7L114,16L116,8L118,17L120,9L121,9L123,11L125,17L127,14L129,9L131,16L133,17L135,17L137,12L139,15L141,17L143,14L145,13L147,15L149,13L151,15L153,12L155,15L157,2L159,15L161,6L163,4L165,15L167,12L169,10L170,10L172,16L174,14L176,9L178,12L180,16L182,17L184,9L186,13L188,8L190,14L192,5L194,9L196,13L198,5L200,16L202,15L204,15L206,15L208,11L210,14L212,12L214,16L216,12L218,14L219,12L221,5L223,9L225,16L227,1L229,10L231,17L233,14L235,13L237,17L239,7L241,12L243,11L245,13L247,17L249,17L251,10L253,17L255,6L257,13L259,7L261,2L263,17L265,15L267,17L268,14L270,15L272,12L274,14L276,13L278,10L280,6L282,10L284,8L286,17L288,4L290,17L292,10L294,17L296,15L298,15L300,14L302,12L304,13L306,11L308,12L310,17L312,12L314,15L315,15L317,15L319,14L321,12L323,9L325,9L327,16L329,15L331,11L333,14L335,7L337,10L339,12L341,2L343,13L345,12L347,15L349,15L351,7L353,17L355,13L357,14L359,17L361,17L363,4L364,7L366,7L368,12L370,8L372,7L374,11L376,8L378,8L380,3L382,3L384,4L386,8L388,3L390,17L392,9L394,15L396,17L398,10L400,10L402,3L404,8L406,11L408,15L410,2L412,12L413,17L415,13L417,8L419,17L421,3L423,8L425,14L427,17L429,2L431,12L433,17L435,7L437,10L439,3L441,12L443,17L445,4L447,7L449,14L451,16L453,15L455,12L457,14L459,14L461,13L462,16L464,10L466,14L468,2L470,13L472,16L474,10L476,6L478,11L480,15L482,7L484,15L486,17L488,12L490,17L492,12L494,14L496,6L498,16L500,17L502,13L504,16L506,15L508,11L510,11L511,5L513,16L515,13L517,12L519,11L521,14L523,12L525,16L527,15L529,15L531,14L533,12L535,13L537,14L539,15L541,10L543,17L545,15L547,13L549,13L551,17L553,7L555,8L557,11L558,11L560,13L562,17L564,9L566,16L568,16L570,6L572,17L574,14L576,13L578,13L580,14L582,13L584,16L586,11L588,8L590,16L592,15L594,10L596,7L598,16L600,8L602,5L604,12L606,16L607,9L609,12L611,10L613,12L615,17L617,15L619,1L621,13L623,10L625,0L627,17L629,14L631,8L633,5L635,15L637,11L639,13L641,16L643,6L645,16L647,10L649,2L651,9L653,16L655,17L656,11L658,14L660,17L662,12L664,9L666,17L668,16L670,9L672,11L674,12L676,5L678,11L680,8L682,5L684,7L686,4L688,12L690,17L692,16L694,5L696,8L698,8L700,11L702,14L704,16L705,6L707,17L709,17L711,17L713,17L715,15L717,14L719,4L721,8L723,9L725,11L727,14L729,12L731,5L733,9L735,10L737,16L739,17L741,9L743,14L745,14L747,14L749,16L751,13L752,13L754,17L756,14L758,17L760,16L762,14L764,15L766,15L768,16L770,9L772,8L774,12L776,10L778,13L780,9L782,14L784,16L786,8L788,17L790,13L792,12L794,11L796,11L798,16L800,17L801,13L803,15L805,10L807,14L809,16L811,12L813,14L815,14L817,16L819,17L821,17L823,17L823,31L821,31L819,31L817,32L815,34L813,34L811,36L809,32L807,34L805,38L803,33L801,35L800,31L798,32L796,37L794,37L792,36L790,35L788,31L786,40L784,32L782,34L780,39L778,35L776,38L774,36L772,40L770,39L768,32L766,33L764,33L762,34L760,32L758,31L756,34L754,31L752,35L751,35L749,32L747,34L745,34L743,34L741,39L739,31L737,32L735,38L733,39L731,43L729,36L727,34L725,37L723,39L721,40L719,44L717,34L715,33L713,31L711,31L709,31L707,31L705,42L704,32L702,34L700,37L698,40L696,40L694,43L692,32L690,31L688,36L686,44L684,41L682,43L680,40L678,37L676,43L674,36L672,37L670,39L668,32L666,31L664,39L662,36L660,31L658,34L656,37L655,31L653,32L651,39L649,46L647,38L645,32L643,42L641,32L639,35L637,37L635,33L633,43L631,40L629,34L627,31L625,48L623,38L621,35L619,47L617,33L615,31L613,36L611,38L609,36L607,39L606,32L604,36L602,43L600,40L598,32L596,41L594,38L592,33L590,32L588,40L586,37L584,32L582,35L580,34L578,35L576,35L574,34L572,31L570,42L568,32L566,32L564,39L562,31L560,35L558,37L557,37L555,40L553,41L551,31L549,35L547,35L545,33L543,31L541,38L539,33L537,34L535,35L533,36L531,34L529,33L527,33L525,32L523,36L521,34L519,37L517,36L515,35L513,32L511,43L510,37L508,37L506,33L504,32L502,35L500,31L498,32L496,42L494,34L492,36L490,31L488,36L486,31L484,33L482,41L480,33L478,37L476,42L474,38L472,32L470,35L468,46L466,34L464,38L462,32L461,35L459,34L457,34L455,36L453,33L451,32L449,34L447,41L445,44L443,31L441,36L439,45L437,38L435,41L433,31L431,36L429,46L427,31L425,34L423,40L421,45L419,31L417,40L415,35L413,31L412,36L410,46L408,33L406,37L404,40L402,45L400,38L398,38L396,31L394,33L392,39L390,31L388,45L386,40L384,44L382,45L380,45L378,40L376,40L374,37L372,41L370,40L368,36L366,41L364,41L363,44L361,31L359,31L357,34L355,35L353,31L351,41L349,33L347,33L345,36L343,35L341,46L339,36L337,38L335,41L333,34L331,37L329,33L327,32L325,39L323,39L321,36L319,34L317,33L315,33L314,33L312,36L310,31L308,36L306,37L304,35L302,36L300,34L298,33L296,33L294,31L292,38L290,31L288,44L286,31L284,40L282,38L280,42L278,38L276,35L274,34L272,36L270,33L268,34L267,31L265,33L263,31L261,46L259,41L257,35L255,42L253,31L251,38L249,31L247,31L245,35L243,37L241,36L239,41L237,31L235,35L233,34L231,31L229,38L227,47L225,32L223,39L221,43L219,36L218,34L216,36L214,32L212,36L210,34L208,37L206,33L204,33L202,33L200,32L198,43L196,35L194,39L192,43L190,34L188,40L186,35L184,39L182,31L180,32L178,36L176,39L174,34L172,32L170,38L169,38L167,36L165,33L163,44L161,42L159,33L157,46L155,33L153,36L151,33L149,35L147,33L145,35L143,34L141,31L139,33L137,36L135,31L133,31L131,32L129,39L127,34L125,31L123,37L121,39L120,39L118,31L116,40L114,32L112,41L110,37L108,43L106,37L104,37L102,31L100,38L98,33L96,34L94,31L92,33L90,34L88,36L86,34L84,38L82,32L80,32L78,39L76,32L74,36L73,31L71,37L69,32L67,33L65,31L63,31L61,36L59,36L57,31L55,39L53,34L51,31L49,35L47,35L45,38L43,39L41,31L39,37L37,33L35,38L33,41L31,42L29,46L27,36L25,36L24,44L22,35L20,35L18,34L16,32L14,32L12,37L10,41L8,35L6,38L4,36L2,34L0,33"></path></svg></div></div></div> <div data-v-6be32f32="" class="controls-share-subscribe"><button data-v-6d303773="" data-v-6be32f32="" aria-label="Share" aria-expanded="false" class="controls-share size-normal"><span data-v-6d303773="" class="menu-text">Share</span></button> <button data-v-262c5490="" data-v-6be32f32="" aria-label="Subscribe" aria-expanded="false" class="controls-subscribe size-normal"><svg data-v-262c5490="" width="14" height="6" xmlns="path_to_url" class=""><path data-v-262c5490="" d="M0 0h14v1.75H0V0zm0 3.5h8.75v1.75H0V3.5z"></path></svg> <span data-v-262c5490="" class="menu-icon"></span> <span data-v-262c5490="" class="menu-text">Subscribe</span></button></div> <div data-v-6be32f32="" class="left"><button data-v-e5c37a0e="" data-v-6be32f32="" aria-label="Speed Rate 1x" class="controls-speed size-normal"> 1x </button></div> <div data-v-6be32f32="" class="middle"><!----> <button data-v-44d9093c="" data-v-6be32f32="" aria-label="Play" class="play-pause size-normal"><svg data-v-44d9093c="" viewBox="0 0 44 44" xmlns="path_to_url" class=""><path data-v-44d9093c="" d="M22 44C9.85 44 0 34.15 0 22S9.85 0 22 0s22 9.85 22 22-9.85 22-22 22zm-5.333-31.333v18.666L31.333 22l-14.666-9.333z"></path></svg></button> <!----></div> <div data-v-6be32f32="" class="right"><button data-v-6d303773="" data-v-6be32f32="" aria-label="Share" aria-expanded="false" class="controls-share size-normal"><span data-v-6d303773="" class="menu-text">Share</span></button> <button data-v-262c5490="" data-v-6be32f32="" aria-label="Subscribe" aria-expanded="false" class="controls-subscribe size-normal"><svg data-v-262c5490="" width="14" height="6" xmlns="path_to_url" class=""><path data-v-262c5490="" d="M0 0h14v1.75H0V0zm0 3.5h8.75v1.75H0V3.5z"></path></svg> <span data-v-262c5490="" class="menu-icon"></span> <span data-v-262c5490="" class="menu-text">Subscribe</span></button> <div data-v-f6bceb8c="" data-v-6be32f32="" aria-hidden="true" class="artwork"><div data-v-f6bceb8c="" aria-label="Artwork for Digitizing Healthcare with Helium Health's Goke Olubusi" class="ratio ratio-1-1" style="background-image: url(&quot;path_to_url"></div></div></div></div></div></div></div></div> <!----></div> <!----> <!----></div></div><script>!function(){"use strict";var o=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));window.addEventListener("load",function(){"serviceWorker"in navigator&&("https:"===window.location.protocol||o)&&navigator.serviceWorker.register("service-worker.js").then(function(o){o.onupdatefound=function(){if(navigator.serviceWorker.controller){var n=o.installing;n.onstatechange=function(){switch(n.state){case"installed":break;case"redundant":throw new Error("The installing service worker became redundant.")}}}}}).catch(function(o){console.error("Error during service worker registration:",o)})})}();</script><script type="text/javascript" src="/static/js/app.f8cce1d1fe35f3a76db5.js"></script></body></html> </iframe> <!-- AddThis Advanced Settings above via filter on the_content --><!-- AddThis Advanced Settings below via filter on the_content --><!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons above via filter on the_content --><!-- AddThis Share Buttons below via filter on the_content --><div class="at-below-post addthis_tool" data-url="path_to_url"></div><!-- AddThis Share Buttons generic via filter on the_content --> </div> </div> </div> </div> </div> </div> </div> </section> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-066f602 elementor-section-content-middle no-link-effects elementor-section-boxed elementor-section-height-default elementor-section-height-default ae-bg-gallery-type-default" data-id="066f602" data-element_type="section"> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-4331fa8 ae-bg-gallery-type-default" data-id="4331fa8" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-55896e5 elementor-widget elementor-widget-image" data-id="55896e5" data-element_type="widget" data-widget_type="image.default"> <div class="elementor-widget-container"> <div class="elementor-image"> <a href="path_to_url#episodeGuid=728742d2-f111-4863-9c80-9e2eb307fa28" target="_blank"> <img width="350" height="85" src="path_to_url" class="elementor-animation-grow attachment-large size-large" alt="" loading="lazy"> </a> </div> </div> </div> </div> </div> </div> <div class="has_ae_slider elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-5621459 ae-bg-gallery-type-default" data-id="5621459" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-3e5c012 elementor-widget elementor-widget-image" data-id="3e5c012" data-element_type="widget" data-widget_type="image.default"> <div class="elementor-widget-container"> <div class="elementor-image"> <a href="path_to_url" target="_blank"> <img width="800" height="203" src="path_to_url" class="elementor-animation-grow attachment-large size-large" alt="" loading="lazy" srcset="path_to_url 1072w, path_to_url 770w, path_to_url 768w" sizes="(max-width: 800px) 100vw, 800px"> </a> </div> </div> </div> </div> </div> </div> <div class="has_ae_slider elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-d45d44b ae-bg-gallery-type-default" data-id="d45d44b" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-9e456ce elementor-widget elementor-widget-image" data-id="9e456ce" data-element_type="widget" data-widget_type="image.default"> <div class="elementor-widget-container"> <div class="elementor-image"> <a href="path_to_url" target="_blank"> <img width="660" height="160" src="path_to_url" class="elementor-animation-grow attachment-large size-large hoverZoomLink" alt="" loading="lazy"> </a> </div> </div> </div> </div> </div> </div> </div> </div> </section> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-4d649f3 elementor-section-boxed elementor-section-height-default elementor-section-height-default ae-bg-gallery-type-default" data-id="4d649f3" data-element_type="section"> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a2a59be ae-bg-gallery-type-default" data-id="a2a59be" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-bb4116a elementor-tabs-view-horizontal elementor-widget elementor-widget-tabs" data-id="bb4116a" data-element_type="widget" data-widget_type="tabs.default"> <div class="elementor-widget-container"> <div class="elementor-tabs"> <div class="elementor-tabs-wrapper" role="tablist"> <div id="elementor-tab-title-1961" class="elementor-tab-title elementor-tab-desktop-title elementor-active" aria-selected="true" data-tab="1" role="tab" tabindex="0" aria-controls="elementor-tab-content-1961"><a href="">Show Notes</a></div> <div id="elementor-tab-title-1962" class="elementor-tab-title elementor-tab-desktop-title" aria-selected="false" data-tab="2" role="tab" tabindex="-1" aria-controls="elementor-tab-content-1962"><a href="">Transcription</a></div> <div id="elementor-tab-title-1963" class="elementor-tab-title elementor-tab-desktop-title" aria-selected="false" data-tab="3" role="tab" tabindex="-1" aria-controls="elementor-tab-content-1963"><a href="">Contributors</a></div> </div> <div class="elementor-tabs-content-wrapper" role="tablist" aria-orientation="vertical"> <div class="elementor-tab-title elementor-tab-mobile-title elementor-active" aria-selected="true" data-tab="1" role="tab" tabindex="0" aria-controls="elementor-tab-content-1961">Show Notes</div> <div id="elementor-tab-content-1961" class="elementor-tab-content elementor-clearfix elementor-active" data-tab="1" role="tabpanel" aria-labelledby="elementor-tab-title-1961" tabindex="0" style="display: block;"> <div data-elementor-type="section" data-elementor-id="653" class="elementor elementor-653 elementor-location-single" data-elementor-settings="[]"> <div class="elementor-section-wrap"> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-5fac4a0 elementor-section-boxed elementor-section-height-default elementor-section-height-default ae-bg-gallery-type-default" data-id="5fac4a0" data-element_type="section"> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e1501a5 ae-bg-gallery-type-default" data-id="e1501a5" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-a348103 elementor-widget elementor-widget-text-editor" data-id="a348103" data-element_type="widget" data-widget_type="text-editor.default"> <div class="elementor-widget-container"> <div class="elementor-text-editor elementor-clearfix"><p>Our exploration of the entrepreneurs and startups digitizing analog and fragmented industries takes us to Nigeria, for a conversation with Helium Healths Co-founder and CEO Goke Olubusi. Heliums electronic medical records are <span style="font-weight: 400">providing the digital infrastructure for healthcare sectors across Africa, enabling a variety of stakeholders to make data-driven decisions.</span></p> <p>4:26 First question: what does the state of healthcare look like, and how is Helium Health solving the industrys problems?<br> 9:16 Heliums origin story.<br> 11:48 On the big picture solutions that are required to have the type of impact in healthcare the continent needs.<br> 13:12 A discussion on the benefits and opportunity of an open and operable approach.<br> 15:46 Heliums geographic and product expansion strategies.<br> 19:42 The impact of improving and opportunity to improve the efficiency of healthcare spending in Africa.</p> <p>This episode is part of our conversational series sponsored by&nbsp; <a href="path_to_url" target="_blank" rel="noopener" data-cke-saved-href="path_to_url">MFS Africa</a>. MFS Africas competition is with cash, and throughout this series, well feature other startups and entrepreneurs who are digitizing, better organizing, and aggregating analog and fragmented industries.</p> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> </div> </div> <div class="elementor-tab-title elementor-tab-mobile-title" aria-selected="false" data-tab="2" role="tab" tabindex="-1" aria-controls="elementor-tab-content-1962">Transcription</div> <div id="elementor-tab-content-1962" class="elementor-tab-content elementor-clearfix" data-tab="2" role="tabpanel" aria-labelledby="elementor-tab-title-1962" tabindex="0" hidden="hidden"> <div data-elementor-type="section" data-elementor-id="657" class="elementor elementor-657 elementor-location-single" data-elementor-settings="[]"> <div class="elementor-section-wrap"> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-adad01b elementor-section-boxed elementor-section-height-default elementor-section-height-default ae-bg-gallery-type-default" data-id="adad01b" data-element_type="section"> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-833589f ae-bg-gallery-type-default" data-id="833589f" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-9683d17 elementor-widget elementor-widget-text-editor" data-id="9683d17" data-element_type="widget" data-widget_type="text-editor.default"> <div class="elementor-widget-container"> <div class="elementor-text-editor elementor-clearfix"><p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">The biggest thing I advocate for, Id say on the African continent, is the need for people to start making data-driven decisions. There is no gut, there is no gut, theres no this is how I feel or how weve done this. Forget all that, its just data, data-driven decision-making.</span></p> <p><em><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">Thats Goke Olubusi, the co-founder and CEO of Helium Health, whose electronic medical record solution and other products are providing the digital infrastructure for the healthcare sector in Africa.</span></em></p> <p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">Fun fact, on average, more than two-thirds of the time, the hospitals, when they sign up for Helium, when they tell us their average monthly patient visits before we sign them up, when you look back at the data and you correlate it, its always off more than two-thirds of the time, off by 30 to 50%. Thats how off it is. They dont even know how many patients they see.</span></p> <p><em><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">Goke and I spoke earlier this year, several months into the COVID-19 pandemic and shortly after Helium announced their $10 million Series A. This episode with Goke commences our new ten-episode conversational series. Were exploring the businesses and entrepreneurs that are digitizing analog and fragmented industries, and Helium Health is no exception. Heliums competition is with pen and paper. And in this episode, well hear more on their endeavor to digitize healthcare on the continent, their open and interoperable approach, how the founders lack of healthcare experience led them to go door-to-door to hospitals across Nigeria during the startups earliest days, and the impact of a digital healthcare system on the ability to make more data-driven decisions.</span></em></p> <p><em><span style="font-weight: 400">Before we get started, wed like to thank our partner, MFS Africa, for their sponsorship of the entirety of this conversational series. MFS Africa is building the infrastructure to make digital payments easier in Africa and their competition is with cash. Their API hub connects over 200 million mobile wallets and other stores of value across the continent. Later in this episode, well hear more from Goke about the second-order effects of digitizing healthcare. One such opportunity is credit and lending, made possible by data. Its something I talked to Rachel Coleman about. Rachel works on SME lending projects with the World Bank.</span></em></p> <p><span style="font-weight: 400"><strong>Rachel</strong>:</span> <span style="font-weight: 400">For me, I think the most interesting space and the space that potentially offers the most impact is this SME lending space. But, its also the most complicated. And this is because youre not just assessing if the person is going to be able to repay a loan based off of their willingness to repay the loan, but youre also assessing is their business actually going to grow and are theyre going to generate revenue so that they can repay the loan. You need more data and often this data is not available. And so for me, a lot of my time is spent thinking about how do we generate that data, or how do we tap into alternative data streams that might be able to give us some insights into how a business is performing so that we can make better lending decisions.</span></p> <p><span style="font-weight: 400">Were going to look at the transaction histories, were going to tap into all the kind of alternative data streams that are out there, but then we also need to know about the history of the business. And in many developing countries, the history of the business is not systematically tracked. Some of the most important tools are on digitizing the histories of businesses when it comes to how theyve performed over the years. And so, a lot of the first order work I think is around digitizing this kind of information that can lead to better assessments on if the business can actually absorb this kind of financing. Then, you can think about how do we then digitize that decisioning to get to faster processes in the actual lending field. But, if you dont have data to begin with, its hard to start automating because youre starting from a place of not enough information.</span></p> <p><em><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">Later in the show, well hear from Rachel again on the work that goes into digitizing and automating SME lending on the continent. One more quick announcement before we get started. Each Sunday, we send out our weekly newsletter, The Flip Notes, which you can subscribe to on our website, theflip.africa. For those already subscribed, The Flip Notes will take on a slightly new form this year. Bite-size insights, including notes from newly published podcast episodes and essays, and other thoughts from what were reading, thinking about, and seeing in the ecosystem. Its thoughtful insights and updates straight to your inbox. We hope to see you there. And now without any further ado, the co-founder and CEO of Helium Health, Goke Olubusi.</span></em></p> <p><em><span style="font-weight: 400">VO:</span> <span style="font-weight: 400">Youre listening to The Flip, the podcast exploring more contextually relevant stories from entrepreneurs around Africa.</span></em></p> <p><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">Can we get a little bit deeper into the problem that Helium Health is solving and speak a little bit about what the healthcare sector looks like Nigeria and elsewhere on the continent?</span></p> <p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">Im going to make three points that point to the core issues across the continent. The first is that people still do things, especially running healthcare, healthcare administration, care provision, almost every aspect of healthcare is still not digital, everythings still on paper. So, its not just the hospitals and the medical records themselves, but even the processes of like insurance administration and communication and gathering data, the whole process is still manual, and that is a core problem. We still dont have a digital healthcare system.</span></p> <p><span style="font-weight: 400">Second problem is theres no data. If you dont have digital systems, theres no way to actually collect data because you cant collect data manually. It has to be automated, it has to be at the point of care, and we dont have that. At the very foundation is the need for a digital system in the first place.</span></p> <p><span style="font-weight: 400">And lastly, the fragmentation problem. The trend you see across the continent, and Ill use Nigeria for this example, you have tens of thousands of hospitals. However, you dont have a single player who has more than lets say, 20, 25 locations. So, its a heavily fragmented system. Its still largely analog, still not gone digital yet, and the few instances where you have a digital system, its all functioning in isolation. That interoperability isnt there. So, theres that big need to go digital and our job is just to accelerate this, make sure its done properly.</span></p> <p><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">And from an ecosystem perspective, apart from those three categories, theres also the conversation around public versus private hospitals and insurance. And I know in Nigeria, in particular, its a lot of out-of-pocket billing. So, where does all of that sort of fit into the problems and how youre addressing the problems from that perspective?</span></p> <p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">So, when we think about healthcare, we really think about the four Ps; healthcare providers, payers, patients, and we just added a fourth P internally, it refers to public health and public health partners. And really, the drive were pushing for here is a digitization of each of these four components. Healthcare providers, and the process of care provision should be digitized and data-driven. The payer processes as well from the insurance administration standpoint, and even from the direct to individual standpoint, access to even funding sources, to funds to be able to cover your healthcare, all of this stuff is a big part that needs to be digitized.</span></p> <p><span style="font-weight: 400">When you look at a place like Nigeria, just like you said, insurance penetration is less than 5%. People are mostly paying out of pocket for care. A lot of these things can be changed even from the insurance provider standpoint. Insurance providers, they want to offer more care, but theres no data to help them decision on how to price this. So, provider standpoint, the payer standpoint, the patients standpoint as well, where patients can access their medical records from wherever they are, they can request healthcare services.</span></p> <p><span style="font-weight: 400">And finally, on a public health standpoint, actually helping the governments and decision-makers to be able to understand data and start making data-driven decisions, huge, huge part of our work. And really, you cant not work with a public sector and the government, if youre talking about healthcare, especially in Africa, right? More than half the care is provided by the public sector, either its donor-funded or internally funded. Regardless of the source, theres a need for us to deliver value.</span></p> <p><span style="font-weight: 400">I think one of the biggest issues I have is that its hard for entrepreneurs, especially think about it, right? From a tech founders perspective, you want to start a company, you want to solve a problem. Everyone tells you, and you know, you dont want to deal with the government, right? You want to sell to the private sector. But, you cant be in healthcare and not do that. And also, we got to start getting some ingenious methods in working with the government and tackling public health issues, because think about this, were all in a pandemic now, a real crisis, and were leaving it in the governments hands, isnt that crazy?</span></p> <p><span style="font-weight: 400">We didnt leave anything else in the governments hands, but the most important thing where like what pretty sure theyll figure it They havent figured out a lot of things, I highly doubt theyd be the ones to solve this problem. So, Im just saying that from a public sector standpoint, we definitely have to work with the public sector and figure out different creative ways to make that happen, partner with them, find value in every way we can, because its an important aspect of care provision, and not a responsibility we can abdicate.</span></p> <p><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">Yeah, absolutely. So, from a fragmentation perspective, Im curious just to get your view on how the problem actually gets solved. So, is this sort of one of those things where no one else has been willing to come along and go door to door to every single healthcare provider to try to get them on the platform? What is the conversation like with these people? I mean, theres very much the narrative, I would say, and maybe its a misconception about healthcare being underfunded, but what implications does that also have when youre going to these small doctors offices and saying, Heres this new fancy, shiny digital solution that we want you to implement and pay us for it, what does that look like?</span></p> <p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">Heres what we were trying to drive at when we started the company, started 2016. Were all sitting down together and were saying, imagine a scenario where I can have access to data, and tell how many women under the age of 35 were diagnosed with high blood pressure in the last three hours in this local government in Lagos. We just wanted that to be possible, and that was what we were trying to answer. We started going around, who can tell me anything about healthcare, who can give me any kind of insights. Because when you do dig deeper into a lot of the reports that are available and you dig deeper into the source of the data, youre like, this is wrong, this is wrong, this is wrong, this is wrong. It almost seemed as if everything was wrong and no one could tell you anything with any real sense of precision or accuracy, and that was a concern.</span></p> <p><span style="font-weight: 400">And there was then this other thought that all these hospitals are already filled with people who are on their phone every day, the nurses are on their break, theyre watching YouTube, theyre watching Netflix, theyre watching Iroko. Theres already phones there, there are devices. Everyones tweeting and everyones WhatsApping, but the concept of providing care through a digital medium, or recording that care, et cetera, having this kind of digital accountability system wasnt there at all. Were looking at this and we said, we can bring this together, right? And we can just have a system that enables them to do their jobs using the system. It actually works. And if we could get it to actually work, people would adopt it. And when you have a big enough reach, you actually have the data visibility you need to really help drive public health.</span></p> <p><span style="font-weight: 400">So, we started thinking about that. We can do this, we can do this. And heres what we did, we started knocking on the door of every hospital we could, and we did this for a very long time, a stupidly long time. The amount of time that it would only be a very naive set of young people to do. Thats one of the things I want to point out about this whole process. One of the reasons this worked was because again we werent healthcare people. We were very naive or stupid enough to believe that this was going to work. But more importantly, were stupid enough to knock on the doors of doctors and hospitals, city by city, across Nigeria and across Africa for months.</span></p> <p><span style="font-weight: 400">I remember the first day, one of my co-founders, his mom lent us this car that looks like a golf cart. There were three of us, wed get in the car, we type hospital in Google Maps, and well go. Well figure out our way to get in to meet the chief medical officer or the director of the hospital, and when were done with that hospital, well put hospital on Google Maps again, and wed go. The whole point was, this is one of those issues where I believe it takes an impossible And this is why we even ended up starting the company. Wed looked at the problem year after year and everything was the same and the solutions we were seeing, werent the big picture solutions.</span></p> <p><span style="font-weight: 400">So, Helium having a medical records platform in Nigeria, this is not the solution, because then, think about it, in every country youre going to have people, you already have this, local teams building with their own resources, which is almost all the time-limited, because again, Heliums $10 million Series A was a huge deal, when contextually that should not be a lot for healthcare on the African continent, right? You have all these people, theyre building the exact same thing.</span></p> <p><span style="font-weight: 400">So, were trying to tackle this problem, were doing our own version trying to solve the same problem. And in every country, you have multiple teams building the exact same product. Why are we doing this? So, I was imagining this, and thats what we were all imagining. Imagine a world where there was one system that could run, theres one structure, one fundamental standard, there was interoperability and people werent repeating all these resources, like everyone wasnt trying to build the same thing, people we were building other things or building things on top of this thing. Thats the world we want it to get to. Obviously, its a very big vision, we know this is a long-term game. We knew it was going to take us like years of our lives and probably even decades to accomplish, but we believe its absolutely worth it, and we also dont see anyone approaching it the way we are, bringing together all the pillars of healthcare in an open system. Its a whole different ballgame, and that really is because thats what the continent needs.</span></p> <p><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">I love the whole idea of it being an open ecosystem. How do you balance, or have you had to think about balancing the desire for it to be open and interoperable versus the opportunity specifically for Helium Health? I mean, this goes without saying that theres upside for Helium Health in being open as well, but how do you balance those things?</span></p> <p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">So, open is an interesting term. It means a lot of different things, right? Some people think open source, open platform. When I think about openness, I mean just the willingness to grow what were doing and to share information and insights and data, to integrate with other systems and putting that mission and goal over our own gain, whether its financial or otherwise for the short term. So, putting that long-term vision ahead of everything else, thats what our goal is. And let me tell you this now, there could be a hundred Helium Healths doing exactly what were doing.</span></p> <p><span style="font-weight: 400">I talk about our playbook all the time. Its always interesting. Whenever I get a meeting with competitors, and theyre all being so secretive, and Im like, Oh, here, Im going to send you every slide of every piece of our product and every part of our strategy documents. Because again, you could have a hundred people doing this exact same thing in multiple parts of the continent, including within Nigeria alone, you could probably do 100 more. Thats how large the opportunity is. Theres only so much Helium can do. If I 10x my resources, we still would not be scratching the surface.</span></p> <p><span style="font-weight: 400">We need entrepreneurs, we need people to build health tech companies. This is also painful for us because years go on, and we want Heliums growth and Heliums achievements to be a catalyst for more people to want to start healthcare companies, but we even see less of that. We started noticing that people are feeling more threatened by it. Theyre like, Oh yeah, if theres Helium, you know, maybe we shouldnt do this. No, theres so much room, theres so many problems to solve. Theres only so much we can do. When were talking about healthcare, it is not the kind of problem that can wait, we all suffer for it.</span></p> <p><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">Im wholeheartedly with you there too. And you just talked a bit about the problem being so big, that it just requires so many other players and such a level of collaboration amongst other players. I think it brings up a topic in terms of how you go about more broadly being able to solve the problem at greater scale. I know that Helium is expanding in both directions. Youre looking at geography, but then youre trying to go more full-stack, and I think that youre offering access to credit and different things obviously from a data perspective. So, how do you balance those things go wide versus deep, and continue to service more deeply the existing hospitals now versus then trying to expand and to add more providers to the platform, both in Nigeria and outside of the country as well?</span></p> <p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">So essentially, were trying to do both, right? Were growing our services and products we offer while also expand into geographically. But, I think one of the reasons were doing that is because we understand that problem, the main problem, or the best problem to solve in every country, isnt necessarily the same thing. As we expand to different countries and different regions, for that specific region, were capitalizing on the product that will be the, I guess, golden ticket, right? That will be the one that can gain the most traction and can give us the quickest penetration so we can roll out or extend our suite of products. And also even looking at acquisitions as well in North Africa and East Africa and different parts of the continent.</span></p> <p><span style="font-weight: 400">So, thats where thats coming from. Now that we have this full end to end suite, as we go into different countries and penetrate different regions, we get to optimize for whatever is best for that market. Then, another thing thats important to us is also the local context as well. For example, as we expand into Kenya, the team will be from Kenya, will be Kenyan medical professionals, the Kenyan engineers, and that will be what the team has made of. Because I think the problem needs to be at the heart of the people solving it, and I think that always makes for a unique factor.</span></p> <p><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">I saw that youve made a couple of acquisitions already very early on in the life cycle of the company. So, what was that thought process? I mean, that thats sort of an anomaly relative to a lot of other startups, just either being able to, or even thinking at such an early stage that they could be acquirers.</span></p> <p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">Yeah, and that goes back to that thing I said about us having a long-term strategy from inception. Another important component about healthcare is market consolidation. Everyone joins everyone eventually, both the pharma companies and the insurance companies and the providers, because youre all solving problems the same, and to do that you need a lot more data, and a lot of that data ends up being siloed with insurance providers or with the EMR company. Thats why you see pharma companies buy EMR companies because its the same information we need. Were selling to the same people, and you start to see that youre replicating efforts, you need consolidation. So, an inevitable trend in healthcare is consolidation both vertically and horizontally. You can see this everywhere, every country, same set of things. Its a very normal trend.</span></p> <p><span style="font-weight: 400">We knew this early on. Thats why we were always open. Were always open to acquisitions and mergers, because its about getting to that goal sooner. Also because we also have a good understanding and framework behind how we think about this. We know the kind of people we can work with, we have our framework for assessments, we have our framework for acquisitions. So, its something weve thought a lot about, and I think its one of the things that we also want to change, one of the narratives we want to change. You dont see a lot of M&amp;A activity in Africa, and that in itself devalues the market, that in itself over-complicates the problem.</span></p> <p><span style="font-weight: 400">I remember one of the first EMR companies we acquired, what I said to the founder was Bro, you and I are going to go into a price war for no reason. The market is already Theyre already struggling to understand the concept of EMR. Theyre trying to understand how do we even pay for this, but you and I want to go in a price war? Its pointless. With our own efforts, we can devalue and destroy the market before it even starts. Why? Why? For what? What are we fighting for? We have the same goal, we have the same vision, we hold the same values.</span></p> <p><span style="font-weight: 400">I think having that approach, even the person, the founder I was talking about, he himself was like, Whoa. He was mind blown that someone would have that approach, because most people have given up on collaboration within Africa, and I think thats nonsense. We are about to really turn that around.</span></p> <p><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">You know, it raises a question to me, which is, are there certain things about healthcare in Africa that are irreconcilable. And back to the thing before, about how so many people say that the solution is an allocation of more resources, I see on some level how Helium is compelling people to make better data-driven decisions, which maximizes efficiency and stretches the dollar further. But beyond that, I mean, are there certain elements to the problem, do other things need to happen beyond what youre doing in order for the problem to get closer to being solved? Whats your thought on that?</span></p> <p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">So, Ill say this, there is a lot of money that goes into healthcare in Africa. You dont even understand. Theres a lot of money, billions of billions of dollars, tens of billions of dollars are going to healthcare in Africa. And if I asked you or anyone, lets go deep into where this actually, where do these funds go? It would almost feel like were playing a magic trick and funds would disappear. It was going poof. The outcomes arent matching the available resources. So, were not even here thinking about a scenario where there are even more resources, blah, blah, blah. If you just directed what we already have in the right places, and you shed light on it, you unlock a whole new world. I think that in itself is so fascinating because the resources we have now are being, both on a micro level and a macro level, misdirected so much that its Us even being able to solve that one problem would change the whole landscape.</span></p> <p><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">Yeah. And so, maybe theres an important narrative shift that the issue isnt the fact that the sector is under-resourced, the issue is just that its woefully inefficient.</span></p> <p><span style="font-weight: 400"><strong>Goke</strong>:</span> <span style="font-weight: 400">Absolutely, and this sentence you just gave is exactly what we say internally. And what we add to that is we always say, And the goal is to drive data-driven decision-making both on a micro level and a macro level. Thats what unlocks this, right? Soon as people start thinking data first, because you should be able to tell me if a country says they spent this much on healthcare, we should be able to take it down to the We should be able to direct every dollar to an individual person. This is not a strange concept, and this is not an impossible task, but we cant do that. I look forward to that day.</span></p> <p><em><span style="font-weight: 400"><strong>Justin</strong>:</span> <span style="font-weight: 400">Thanks again to MFS Africa for their sponsorship of our exploration into the startups and entrepreneurs digitizing analog and fragmented industries across the continent. Earlier in the show, we heard from Rachel Coleman with the World Bank on the crucial need for data in the SME lending space. We also talked about, once we have more data, how to get to faster and automated lending decisions.</span></em></p> <p><span style="font-weight: 400"><strong>Rachel</strong>:</span> <span style="font-weight: 400">One thing that Im constantly stressing in the work that I do is you need to not only build the models for lending decisioning, but you also need enough data to be coming in to train these models and see how theyre performing. And this takes time unless you have incredible volume. And so I think its really important to be thinking about the potential, but also the work that needs to go into making strong models that are not biased and are constantly being updated and managed appropriately.</span></p> <p><span style="font-weight: 400">This is possible with consumer lending because of the volume thats going through and the value of those loans. But, when you get into SME lending, especially at the larger value loans, youre not going to see as many loans going through so its going to take longer to train those models. And its a little bit more complicated because youre not just assessing if they repaid the loan simply because they had the money to repay the loan, but youre also going to think about, did their business just have a really bad six months and maybe they really could repay the loan, but they went through kind of this rough patch. Its more complicated than just did you repay a $20 loan? It is definitely thinking about how does a business ebb and flow and how can you create a financial product and a model that reflects that life cycle. And I think for me, thats the most interesting space, but its definitely a lot harder.</span></p> <p><em><span style="font-weight: 400">VO:</span> <span style="font-weight: 400">Thats it for this episode of The Flip. For those hoping for our regular retrospective conversation with Sayo and me, thats coming as a dedicated episode at the end of our conversational series. For now, please dont forget to hit subscribe on your favorite podcast app if you havent already to get upcoming episodes straight to your feed. Next week, we head to Kenya to talk insurance as a service. Well see you then.</span></em></p> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> </div> </div> <div class="elementor-tab-title elementor-tab-mobile-title" aria-selected="false" data-tab="3" role="tab" tabindex="-1" aria-controls="elementor-tab-content-1963">Contributors</div> <div id="elementor-tab-content-1963" class="elementor-tab-content elementor-clearfix" data-tab="3" role="tabpanel" aria-labelledby="elementor-tab-title-1963" tabindex="0" hidden="hidden"> <div data-elementor-type="section" data-elementor-id="800" class="elementor elementor-800 elementor-location-single" data-elementor-settings="[]"> <div class="elementor-section-wrap"> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-171a6a80 elementor-section-boxed elementor-section-height-default elementor-section-height-default ae-bg-gallery-type-default" data-id="171a6a80" data-element_type="section"> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7c15c4d ae-bg-gallery-type-default" data-id="7c15c4d" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-50ea24c elementor-widget elementor-widget-text-editor" data-id="50ea24c" data-element_type="widget" data-widget_type="text-editor.default"> <div class="elementor-widget-container"> <div class="elementor-text-editor elementor-clearfix"><p><a href="path_to_url">Goke Olubusi</a> Co-founder &amp; CEO, Helium Health<br> <a href="path_to_url" target="_blank" rel="noopener">Justin Norman</a>&nbsp; Founder &amp; Host, The Flip<br> <a href="path_to_url" target="_blank" rel="noopener">Rachel Coleman</a> SME Finance, The World Bank<br> Audio Production by&nbsp;<a href="path_to_url" target="_blank" rel="noopener">ZVUK Studio</a><br> Episode Artwork by Chileshe Tembo &nbsp;<a href="path_to_url" target="_blank" rel="noopener">The Zig</a></p> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> </div> <div data-elementor-type="footer" data-elementor-id="314" class="elementor elementor-314 elementor-location-footer" data-elementor-settings="[]"> <div class="elementor-section-wrap"> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-7897f61 elementor-section-boxed elementor-section-height-default elementor-section-height-default ae-bg-gallery-type-default" data-id="7897f61" data-element_type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}"> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-97a003b ae-bg-gallery-type-default" data-id="97a003b" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-73ba869 elementor-widget elementor-widget-image" data-id="73ba869" data-element_type="widget" data-widget_type="image.default"> <div class="elementor-widget-container"> <div class="elementor-image"> <a href="path_to_url"> <img width="300" height="300" src="path_to_url" class="attachment-large size-large" alt="" loading="lazy" srcset="path_to_url 300w, path_to_url 150w" sizes="(max-width: 300px) 100vw, 300px"> </a> </div> </div> </div> </div> </div> </div> <div class="has_ae_slider elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-6a86347 ae-bg-gallery-type-default" data-id="6a86347" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-65180a1 elementor-icon-list--layout-traditional elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list" data-id="65180a1" data-element_type="widget" data-widget_type="icon-list.default"> <div class="elementor-widget-container"> <ul class="elementor-icon-list-items"> <li class="elementor-icon-list-item"> <a href="path_to_url"> <span class="elementor-icon-list-text">Podcast</span> </a> </li> <li class="elementor-icon-list-item"> <a href="/episodes"> <span class="elementor-icon-list-text">Episodes</span> </a> </li> <li class="elementor-icon-list-item"> <a href="/contributors"> <span class="elementor-icon-list-text">Contributors</span> </a> </li> <li class="elementor-icon-list-item"> <a href="/where-to-listen"> <span class="elementor-icon-list-text">Where To Listen</span> </a> </li> </ul> </div> </div> </div> </div> </div> <div class="has_ae_slider elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-8d978b3 ae-bg-gallery-type-default" data-id="8d978b3" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-8c5b17f elementor-icon-list--layout-traditional elementor-list-item-link-full_width elementor-widget elementor-widget-icon-list" data-id="8c5b17f" data-element_type="widget" data-widget_type="icon-list.default"> <div class="elementor-widget-container"> <ul class="elementor-icon-list-items"> <li class="elementor-icon-list-item"> <a href="/blog"> <span class="elementor-icon-list-text">Essays</span> </a> </li> <li class="elementor-icon-list-item"> <a href="/newsletter"> <span class="elementor-icon-list-text">Newsletter</span> </a> </li> <li class="elementor-icon-list-item"> <a href="/our-story"> <span class="elementor-icon-list-text">Our Story</span> </a> </li> <li class="elementor-icon-list-item"> <a href="/contact"> <span class="elementor-icon-list-text">Contact</span> </a> </li> </ul> </div> </div> </div> </div> </div> <div class="has_ae_slider elementor-column elementor-col-25 elementor-top-column elementor-element elementor-element-2c22030 ae-bg-gallery-type-default" data-id="2c22030" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-e7adcab elementor-shape-circle e-grid-align-left elementor-grid-0 elementor-widget elementor-widget-social-icons" data-id="e7adcab" data-element_type="widget" data-widget_type="social-icons.default"> <div class="elementor-widget-container"> <div class="elementor-social-icons-wrapper elementor-grid"> <div class="elementor-grid-item"> <a class="elementor-icon elementor-social-icon elementor-social-icon-twitter elementor-animation-pulse elementor-repeater-item-f9c98f2" href="path_to_url" target="_blank"> <span class="elementor-screen-only">Twitter</span> <i class="fab fa-twitter"></i> </a> </div> <div class="elementor-grid-item"> <a class="elementor-icon elementor-social-icon elementor-social-icon-linkedin elementor-animation-pulse elementor-repeater-item-2a80812" href="path_to_url" target="_blank"> <span class="elementor-screen-only">Linkedin</span> <i class="fab fa-linkedin"></i> </a> </div> <div class="elementor-grid-item"> <a class="elementor-icon elementor-social-icon elementor-social-icon-instagram elementor-animation-pulse elementor-repeater-item-d5bc07b" href="path_to_url" target="_blank"> <span class="elementor-screen-only">Instagram</span> <i class="fab fa-instagram"></i> </a> </div> <div class="elementor-grid-item"> <a class="elementor-icon elementor-social-icon elementor-social-icon-facebook-square elementor-animation-pulse elementor-repeater-item-73d5868" href="path_to_url" target="_blank"> <span class="elementor-screen-only">Facebook-square</span> <i class="fab fa-facebook-square"></i> </a> </div> <div class="elementor-grid-item"> <a class="elementor-icon elementor-social-icon elementor-social-icon-youtube elementor-animation-pulse elementor-repeater-item-b168340" href="path_to_url" target="_blank"> <span class="elementor-screen-only">Youtube</span> <i class="fab fa-youtube"></i> </a> </div> </div> </div> </div> <div class="elementor-element elementor-element-90fb8eb elementor-widget__width-auto elementor-widget elementor-widget-ee-inline-svg" data-id="90fb8eb" data-element_type="widget" data-settings="{&quot;svg&quot;:{&quot;url&quot;:&quot;https:\/\/theflip.africa\/wp-content\/uploads\/2019\/11\/Asset-2.svg&quot;,&quot;id&quot;:683},&quot;link&quot;:{&quot;url&quot;:&quot;https:\/\/podcasts.apple.com\/us\/podcast\/the-flip\/id1486283813?app=podcast&quot;,&quot;is_external&quot;:&quot;on&quot;,&quot;nofollow&quot;:&quot;&quot;,&quot;custom_attributes&quot;:&quot;&quot;},&quot;maintain_ratio&quot;:&quot;yes&quot;,&quot;remove_inline_css&quot;:&quot;yes&quot;}" data-widget_type="ee-inline-svg.default"> <div class="elementor-widget-container"> <div class="ee-inline-svg-wrapper"> <a class="ee-inline-svg" data-url="path_to_url" href="path_to_url" target="_blank"><svg xmlns="path_to_url" viewBox="0 0 437.69 481.55"><defs></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M287.85,426.09c.66-6.83,1.62-12.65,1.7-18.48.14-9.21,5.52-13.12,13.18-17,55.67-28.36,91-73,103.33-134.45,11.89-59.34-2.23-113-40.57-159.48-30.21-36.63-69.38-59-116.65-66.32-57.52-8.87-109,5.57-153.3,42.83-35.92,30.2-58.32,68.94-65.41,115.77-8.88,58.64,6.24,110.5,44.67,155.63a180.86,180.86,0,0,0,65.58,48.69c6.81,3,6.36,8.58,7.28,13.93.79,4.56,1.25,9.17,1.76,13.77s-1.39,5.12-5.36,3.65A216.78,216.78,0,0,1,83.74,391C43.2,358.73,16.87,317.35,5.39,266.8a211.46,211.46,0,0,1-3.48-75.75c5.26-39,19.52-74,43.55-105.07Q93.12,24.45,168.9,6.1a206.28,206.28,0,0,1,72.75-4.78C284,6.26,322.12,21.57,355.46,48.44c39.9,32.15,65.94,73.22,76.76,123.15,14,64.5,1.11,124-37.7,177.37C368.3,385,333.5,410,291.63,425.22,291.08,425.43,290.48,425.5,287.85,426.09Z" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4" fill="rgb(255, 255, 255)"></path><path class="cls-1" d="M165.3,324.74c0-5.67-.43-11.38.09-17,1-11,6.81-19.06,16-25,21.46-13.76,57.31-12.6,77.78,2.4,8.49,6.22,12.59,14.64,13,24.74,1,24.3-1.13,48.44-4.6,72.46-3.19,22.07-6.55,44.11-9.93,66.14-2.13,13.9-7.67,25.33-22.27,30.09-15.94,5.18-31,3.87-44.64-6.34-7.1-5.32-9.23-13.66-10.6-21.73-3.7-21.77-7.16-43.6-9.95-65.5-2.55-20-4.11-40.11-6.11-60.18Z" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4" fill="rgb(255, 255, 255)"></path><path class="cls-1" d="M298.09,340.08c0-10.43-1.49-21.16.58-31.15,1.18-5.68,8.33-10,12.54-15.18A115.3,115.3,0,0,0,336.88,233c4.31-36.82-6.76-68.67-31.59-95.46-20-21.59-45.14-33.83-74.76-36.75-31.9-3.14-60.42,5.28-85.22,25.09-26,20.76-41.3,47.84-44.64,81.37C96.86,245.61,110,277.59,136.22,305a14.84,14.84,0,0,1,3.58,8.36c.67,7.44.64,14.94.69,22.42,0,1.45-.48,3.52-1.47,4.16-.82.53-3-.29-4.12-1.1-31.74-22.36-52-52.68-59.45-90.6-8.28-41.94-.17-81.08,25.51-115.62,24.58-33.05,57.39-53.08,98.58-58.46S277.66,78.91,310,104.57c30.1,23.92,48.41,55.21,53.55,93.55,6.66,49.55-8.3,91.92-43.74,127-6,6-13.19,10.89-19.83,16.29Z" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4" fill="rgb(255, 255, 255)"></path><path class="cls-1" d="M219,150.76a49.6,49.6,0,0,1,50.47,50.66c-.26,30.35-24.11,50.8-51.58,50.32-27.15-.48-49.94-21-49.86-50.82C168.13,169.8,193.78,149.74,219,150.76Z" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4" fill="rgb(255, 255, 255)"></path></g></g></svg></a> </div> </div> </div> <div class="elementor-element elementor-element-e7c30a0 elementor-widget__width-auto elementor-widget elementor-widget-ee-inline-svg" data-id="e7c30a0" data-element_type="widget" data-settings="{&quot;svg&quot;:{&quot;url&quot;:&quot;https:\/\/theflip.africa\/wp-content\/uploads\/2019\/10\/spotify-1.svg&quot;,&quot;id&quot;:1772},&quot;link&quot;:{&quot;url&quot;:&quot;https:\/\/open.spotify.com\/show\/7b3QQnuVa8hIjrIX76oB3c&quot;,&quot;is_external&quot;:&quot;on&quot;,&quot;nofollow&quot;:&quot;&quot;,&quot;custom_attributes&quot;:&quot;&quot;},&quot;override_colors&quot;:&quot;yes&quot;,&quot;maintain_ratio&quot;:&quot;yes&quot;,&quot;remove_inline_css&quot;:&quot;yes&quot;}" data-widget_type="ee-inline-svg.default"> <div class="elementor-widget-container"> <div class="ee-inline-svg-wrapper"> <a class="ee-inline-svg" data-url="path_to_url" href="path_to_url" target="_blank"><svg xmlns="path_to_url" xmlns:xlink="path_to_url" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 427.7 427.7" style="enable-background:new 0 0 427.7 427.7;" xml:space="preserve"> <path class="st0" d="M213.8,0C95.7,0,0,95.7,0,213.8s95.7,213.8,213.8,213.8s213.8-95.7,213.8-213.8S331.9,0,213.8,0z M306.9,310.3 c-2.7,4.7-7.6,7.2-12.6,7.2c-2.5,0-5-0.6-7.4-2c-38.4-22.5-82.8-26.1-113.3-25.1c-33.8,1-58.5,7.7-58.8,7.8 c-7.8,2.1-15.8-2.5-18-10.2c-2.1-7.8,2.4-15.8,10.2-18c1.1-0.3,27.8-7.5,64.8-8.8c21.8-0.7,42.8,0.8,62.4,4.5 c24.8,4.7,47.5,13,67.3,24.6C308.6,294.4,311,303.3,306.9,310.3z M334.1,253.9c-3.2,5.5-9,8.6-15,8.6c-3,0-6-0.8-8.7-2.4 c-45.5-26.6-98.1-30.9-134.2-29.8c-40,1.2-69.3,9.1-69.6,9.2c-9.2,2.5-18.7-2.9-21.3-12.1c-2.5-9.2,2.9-18.7,12.1-21.3 c1.3-0.4,32.9-8.9,76.8-10.4c25.9-0.9,50.7,0.9,74,5.4c29.4,5.6,56.2,15.4,79.7,29.1C336.1,235,338.9,245.6,334.1,253.9z M350.8,202.5c-3.6,0-7.3-0.9-10.7-2.9c-108.2-63.2-248.6-25.6-250-25.3c-11.3,3.1-23-3.5-26.1-14.8c-3.1-11.3,3.5-23,14.8-26.1 c1.6-0.4,40.3-11,94.2-12.7c31.7-1,62.2,1.2,90.7,6.6c36.1,6.8,69,18.9,97.8,35.7c10.1,5.9,13.5,18.9,7.6,29.1 C365.2,198.8,358.1,202.5,350.8,202.5z" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4" fill="currentColor"></path> </svg></a> </div> </div> </div> <div class="elementor-element elementor-element-404879f elementor-widget__width-auto elementor-widget elementor-widget-ee-inline-svg" data-id="404879f" data-element_type="widget" data-settings="{&quot;svg&quot;:{&quot;url&quot;:&quot;https:\/\/theflip.africa\/wp-content\/uploads\/2019\/10\/google-podcasts.svg&quot;,&quot;id&quot;:1664},&quot;link&quot;:{&quot;url&quot;:&quot;https:\/\/podcasts.google.com\/?feed=aHR0cHM6Ly9mZWVkcy5zaW1wbGVjYXN0LmNvbS9KQnhHUmtZRQ&amp;ved=0CAAQ4aUDahcKEwi4gMCtlvXoAhUAAAAAHQAAAAAQAQ&quot;,&quot;is_external&quot;:&quot;on&quot;,&quot;nofollow&quot;:&quot;&quot;,&quot;custom_attributes&quot;:&quot;&quot;},&quot;override_colors&quot;:&quot;yes&quot;,&quot;maintain_ratio&quot;:&quot;yes&quot;,&quot;remove_inline_css&quot;:&quot;yes&quot;}" data-widget_type="ee-inline-svg.default"> <div class="elementor-widget-container"> <div class="ee-inline-svg-wrapper"> <a class="ee-inline-svg" data-url="path_to_url" href="path_to_url" target="_blank"><svg xmlns="path_to_url" height="2500" width="2500" viewBox="0 0 512 512"><g fill="none"><path d="M64 238.545v34.91c0 17.673-14.327 32-32 32s-32-14.327-32-32v-34.91c0-17.673 14.327-32 32-32s32 14.327 32 32z" fill="currentColor" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4"></path><path d="M448.013 239.455a32.6 32.6 0 0 1-.013-.91c0-17.673 14.327-32 32-32s32 14.327 32 32c0 .304-.004.608-.013.91H512v34.909h-.013c-.48 17.252-14.618 31.09-31.987 31.09s-31.506-13.838-31.987-31.09H448v-34.91h.013z" fill="currentColor" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4"></path><path d="M174.545 343.273v34.909c0 17.673-14.326 32-32 32s-32-14.327-32-32v-34.91c0-17.672 14.327-32 32-32s32 14.328 32 32zM174.545 133.818V248h-.008c-.386 17.337-14.562 31.273-31.992 31.273S110.94 265.337 110.554 248h-.009V133.818c0-17.673 14.327-32 32-32s32 14.327 32 32z" fill="currentColor" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4"></path><path d="M337.455 168.727c0 17.673 14.326 32 32 32s32-14.327 32-32v-34.909c0-17.673-14.327-32-32-32s-32 14.327-32 32z" fill="currentColor" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4"></path><path d="M224 66.91c0 17.672 14.327 32 32 32s32-14.328 32-32V32c0-17.673-14.327-32-32-32s-32 14.327-32 32zM224 445.09c0-17.672 14.327-32 32-32s32 14.328 32 32V480c0 17.673-14.327 32-32 32s-32-14.327-32-32z" fill="currentColor" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4"></path><path d="M337.455 264.727c0-17.673 14.326-32 32-32s32 14.327 32 32v113.455c0 17.673-14.327 32-32 32s-32-14.327-32-32z" fill="currentColor" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4"></path><path d="M288 162.91v186.18c0 17.674-14.327 32-32 32s-32-14.326-32-32V162.91c0-17.674 14.327-32 32-32s32 14.326 32 32z" fill="currentColor" stroke="none" stroke-width="1px" stroke-linecap="butt" stroke-dasharray="none" stroke-miterlimit="4"></path></g></svg></a> </div> </div> </div> </div> </div> </div> </div> </div> </section> <section class="has_ae_slider elementor-section elementor-top-section elementor-element elementor-element-3a0579c elementor-section-content-middle elementor-section-boxed elementor-section-height-default elementor-section-height-default ae-bg-gallery-type-default" data-id="3a0579c" data-element_type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}"> <div class="elementor-container elementor-column-gap-default"> <div class="elementor-row"> <div class="has_ae_slider elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-06b1d6b ae-bg-gallery-type-default" data-id="06b1d6b" data-element_type="column"> <div class="elementor-column-wrap elementor-element-populated"> <div class="elementor-widget-wrap"> <div class="elementor-element elementor-element-fa263f0 elementor-widget elementor-widget-heading" data-id="fa263f0" data-element_type="widget" data-widget_type="heading.default"> <div class="elementor-widget-container"> <span class="elementor-heading-title elementor-size-default"> 2021 The Flip Media</span> </div> </div> </div> </div> </div> </div> </div> </section> </div> </div> <script data-cfasync="false" type="text/javascript">if (window.addthis_product === undefined) { window.addthis_product = "wpp"; } if (window.wp_product_version === undefined) { window.wp_product_version = "wpp-6.2.6"; } if (window.addthis_share === undefined) { window.addthis_share = {"passthrough":{"twitter":{"via":"theflipafrica"}},"url_transforms":{"shorten":{"twitter":"bitly"}},"shorteners":{"bitly":{}}}; } if (window.addthis_config === undefined) { window.addthis_config = {"data_track_clickback":true,"data_ga_property":"UA-148657005-1","data_ga_social":true,"ui_atversion":"300"}; } if (window.addthis_plugin_info === undefined) { window.addthis_plugin_info = {"info_status":"enabled","cms_name":"WordPress","plugin_name":"Share Buttons by AddThis","plugin_version":"6.2.6","plugin_mode":"AddThis","anonymous_profile_id":"wp-8545bb83fe04a9c6c23d70602d645285","page_info":{"template":"posts","post_type":"podcast"},"sharing_enabled_on_post_via_metabox":false}; } (function() { var first_load_interval_id = setInterval(function () { if (typeof window.addthis !== 'undefined') { window.clearInterval(first_load_interval_id); if (typeof window.addthis_layers !== 'undefined' && Object.getOwnPropertyNames(window.addthis_layers).length > 0) { window.addthis.layers(window.addthis_layers); } if (Array.isArray(window.addthis_layers_tools)) { for (i = 0; i < window.addthis_layers_tools.length; i++) { window.addthis.layers(window.addthis_layers_tools[i]); } } } },1000) }()); </script><script type="text/javascript" id="ae-pro-js-js-extra"> /* <![CDATA[ */ var aepro = {"ajaxurl":"https:\/\/theflip.africa\/wp-admin\/admin-ajax.php","current_url":your_sha256_hashY2FyZS1oZWxpdW0taGVhbHRoLWdva2Utb2x1YnVzaS8=","breakpoints":{"xs":0,"sm":480,"md":768,"lg":1025,"xl":1440,"xxl":1600},"plugin_url":"https:\/\/theflip.africa\/wp-content\/plugins\/anywhere-elementor-pro"}; /* ]]> */ </script> <script defer="" type="text/javascript" src="path_to_url" id="ae-pro-js-js"></script> <script type="text/javascript" id="aep-build-js-extra"> /* <![CDATA[ */ var aepro = {"ajaxurl":"https:\/\/theflip.africa\/wp-admin\/admin-ajax.php","current_url":your_sha256_hashY2FyZS1oZWxpdW0taGVhbHRoLWdva2Utb2x1YnVzaS8=","breakpoints":{"xs":0,"sm":480,"md":768,"lg":1025,"xl":1440,"xxl":1600},"plugin_url":"https:\/\/theflip.africa\/wp-content\/plugins\/anywhere-elementor-pro"}; /* ]]> */ </script> <script defer="" type="text/javascript" src="path_to_url" id="aep-build-js"></script> <script defer="" type="text/javascript" src="path_to_url" id="vegas-js"></script> <script defer="" type="text/javascript" src="path_to_url#pubid=ra-5d9f4a2c968fece0" id="addthis_widget-js"></script> <script type="text/javascript" src="path_to_url" id="wp-embed-js"></script> <script type="text/javascript" src="path_to_url" id="smartmenus-js"></script> <script type="text/javascript" src="path_to_url" id="elementor-webpack-runtime-js"></script> <script type="text/javascript" src="path_to_url" id="elementor-frontend-modules-js"></script> <script type="text/javascript" src="path_to_url" id="elementor-sticky-js"></script> <script type="text/javascript" id="elementor-pro-frontend-js-before"> var ElementorProFrontendConfig = {"ajaxurl":"https:\/\/theflip.africa\/wp-admin\/admin-ajax.php","nonce":"3792ba2767","i18n":{"toc_no_headings_found":"No headings were found on this page."},"shareButtonsNetworks":{"facebook":{"title":"Facebook","has_counter":true},"twitter":{"title":"Twitter"},"google":{"title":"Google+","has_counter":true},"linkedin":{"title":"LinkedIn","has_counter":true},"pinterest":{"title":"Pinterest","has_counter":true},"reddit":{"title":"Reddit","has_counter":true},"vk":{"title":"VK","has_counter":true},"odnoklassniki":{"title":"OK","has_counter":true},"tumblr":{"title":"Tumblr"},"digg":{"title":"Digg"},"skype":{"title":"Skype"},"stumbleupon":{"title":"StumbleUpon","has_counter":true},"mix":{"title":"Mix"},"telegram":{"title":"Telegram"},"pocket":{"title":"Pocket","has_counter":true},"xing":{"title":"XING","has_counter":true},"whatsapp":{"title":"WhatsApp"},"email":{"title":"Email"},"print":{"title":"Print"}}, "facebook_sdk":{"lang":"en_US","app_id":""},"lottie":{"defaultAnimationUrl":"https:\/\/theflip.africa\/wp-content\/plugins\/elementor-pro\/modules\/lottie\/assets\/animations\/default.json"}}; </script> <script type="text/javascript" src="path_to_url" id="elementor-pro-frontend-js"></script> <script type="text/javascript" src="path_to_url" id="jquery-ui-core-js"></script> <script type="text/javascript" src="path_to_url" id="elementor-dialog-js"></script> <script type="text/javascript" src="path_to_url" id="elementor-waypoints-js"></script> <script type="text/javascript" src="path_to_url" id="share-link-js"></script> <script type="text/javascript" src="path_to_url" id="swiper-js"></script> <script type="text/javascript" id="elementor-frontend-js-before"> var elementorFrontendConfig = {"environmentMode":{"edit":false,"wpPreview":false,"isScriptDebug":false,"isImprovedAssetsLoading":false},"i18n":{"shareOnFacebook":"Share on Facebook","shareOnTwitter":"Share on Twitter","pinIt":"Pin it","download":"Download","downloadImage":"Download image","fullscreen":"Fullscreen","zoom":"Zoom","share":"Share","playVideo":"Play Video","previous":"Previous","next":"Next","close":"Close"},"is_rtl":false,"breakpoints":{"xs":0,"sm":480,"md":768,"lg":1025,"xl":1440,"xxl":1600},"version":"3.1.1","is_static":false,"experimentalFeatures":[],"urls":{"assets":"https:\/\/theflip.africa\/wp-content\/plugins\/elementor\/assets\/"},"settings":{"page":[],"editorPreferences":[]},"kit":{"global_image_lightbox":"yes","lightbox_enable_counter":"yes","lightbox_enable_fullscreen":"yes","lightbox_enable_zoom":"yes","lightbox_enable_share":"yes","lightbox_title_src":"title","lightbox_description_src":"description"},"post":{"id":3411,"title":"Digitizing%20Healthcare%20with%20Helium%20Health%27s%20Goke%20Olubusi%20%7C%20The%20Flip%20Africa","excerpt":"","featuredImage":"https:\/\/theflip.africa\/wp-content\/uploads\/2021\/01\/1600x500-EP2-1170x366.jpg"}}; </script> <script type="text/javascript" src="path_to_url" id="elementor-frontend-js"></script><span id="elementor-device-mode" class="elementor-screen-only"></span> <script type="text/javascript" src="path_to_url" id="preloaded-elements-handlers-js"></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/gsap/2.1.3/TweenMax.min.js" id="gsap-js-js"></script> <script type="text/javascript" id="elementor-extras-frontend-js-extra"> /* <![CDATA[ */ var elementorExtrasFrontendConfig = {"urls":{"assets":"https:\/\/theflip.africa\/wp-content\/plugins\/elementor-extras\/assets\/"},"refreshableWidgets":["ee-offcanvas.classic","ee-popup.classic","gallery-slider.default","media-carousel.default","image-carousel.default","slides.default"]}; /* ]]> */ </script> <script type="text/javascript" src="path_to_url" id="elementor-extras-frontend-js"></script> </body></html> ```
```c++ /********************************************************************** * 2016 and later: Unicode, Inc. and others. ********************************************************************** ********************************************************************** * COPYRIGHT: * others. All Rights Reserved. **********************************************************************/ #include "unaccent.h" const char UnaccentTransliterator::fgClassID = 0; /** * Constructor */ UnaccentTransliterator::UnaccentTransliterator() : normalizer("", UNORM_NFD), Transliterator("Unaccent", nullptr) { } /** * Destructor */ UnaccentTransliterator::~UnaccentTransliterator() { } /** * Remove accents from a character using Normalizer. */ char16_t UnaccentTransliterator::unaccent(char16_t c) const { UnicodeString str(c); UErrorCode status = U_ZERO_ERROR; UnaccentTransliterator* t = const_cast<UnaccentTransliterator*>(this); t->normalizer.setText(str, status); if (U_FAILURE(status)) { return c; } return static_cast<char16_t>(t->normalizer.next()); } /** * Implement Transliterator API */ void UnaccentTransliterator::handleTransliterate(Replaceable& text, UTransPosition& index, UBool incremental) const { UnicodeString str("a"); while (index.start < index.limit) { char16_t c = text.charAt(index.start); char16_t d = unaccent(c); if (c != d) { str.setCharAt(0, d); text.handleReplaceBetween(index.start, index.start+1, str); } index.start++; } } ```
```go // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.0 // protoc v5.26.1 // source: datadog/trace/span.proto package trace import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type SpanLink struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // @gotags: json:"trace_id" msg:"trace_id" TraceID uint64 `protobuf:"varint,1,opt,name=traceID,proto3" json:"trace_id" msg:"trace_id"` // Required. // @gotags: json:"trace_id_high" msg:"trace_id_high,omitempty" TraceIDHigh uint64 `protobuf:"varint,2,opt,name=traceID_high,json=traceIDHigh,proto3" json:"trace_id_high" msg:"trace_id_high,omitempty"` // Optional. The high 64 bits of a referenced trace id. // @gotags: json:"span_id" msg:"span_id" SpanID uint64 `protobuf:"varint,3,opt,name=spanID,proto3" json:"span_id" msg:"span_id"` // Required. // @gotags: msg:"attributes,omitempty" Attributes map[string]string `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" msg:"attributes,omitempty"` // Optional. Simple mapping of keys to string values. // @gotags: msg:"tracestate,omitempty" Tracestate string `protobuf:"bytes,5,opt,name=tracestate,proto3" json:"tracestate,omitempty" msg:"tracestate,omitempty"` // Optional. W3C tracestate. // @gotags: msg:"flags,omitempty" Flags uint32 `protobuf:"varint,6,opt,name=flags,proto3" json:"flags,omitempty" msg:"flags,omitempty"` // Optional. W3C trace flags. If set, the high bit (bit 31) must be set. } func (x *SpanLink) Reset() { *x = SpanLink{} if protoimpl.UnsafeEnabled { mi := &file_datadog_trace_span_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SpanLink) String() string { return protoimpl.X.MessageStringOf(x) } func (*SpanLink) ProtoMessage() {} func (x *SpanLink) ProtoReflect() protoreflect.Message { mi := &file_datadog_trace_span_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SpanLink.ProtoReflect.Descriptor instead. func (*SpanLink) Descriptor() ([]byte, []int) { return file_datadog_trace_span_proto_rawDescGZIP(), []int{0} } func (x *SpanLink) GetTraceID() uint64 { if x != nil { return x.TraceID } return 0 } func (x *SpanLink) GetTraceIDHigh() uint64 { if x != nil { return x.TraceIDHigh } return 0 } func (x *SpanLink) GetSpanID() uint64 { if x != nil { return x.SpanID } return 0 } func (x *SpanLink) GetAttributes() map[string]string { if x != nil { return x.Attributes } return nil } func (x *SpanLink) GetTracestate() string { if x != nil { return x.Tracestate } return "" } func (x *SpanLink) GetFlags() uint32 { if x != nil { return x.Flags } return 0 } type Span struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // service is the name of the service with which this span is associated. // @gotags: json:"service" msg:"service" Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service" msg:"service"` // name is the operation name of this span. // @gotags: json:"name" msg:"name" Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" msg:"name"` // resource is the resource name of this span, also sometimes called the endpoint (for web spans). // @gotags: json:"resource" msg:"resource" Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource" msg:"resource"` // traceID is the ID of the trace to which this span belongs. // @gotags: json:"trace_id" msg:"trace_id" TraceID uint64 `protobuf:"varint,4,opt,name=traceID,proto3" json:"trace_id" msg:"trace_id"` // spanID is the ID of this span. // @gotags: json:"span_id" msg:"span_id" SpanID uint64 `protobuf:"varint,5,opt,name=spanID,proto3" json:"span_id" msg:"span_id"` // parentID is the ID of this span's parent, or zero if this span has no parent. // @gotags: json:"parent_id" msg:"parent_id" ParentID uint64 `protobuf:"varint,6,opt,name=parentID,proto3" json:"parent_id" msg:"parent_id"` // start is the number of nanoseconds between the Unix epoch and the beginning of this span. // @gotags: json:"start" msg:"start" Start int64 `protobuf:"varint,7,opt,name=start,proto3" json:"start" msg:"start"` // duration is the time length of this span in nanoseconds. // @gotags: json:"duration" msg:"duration" Duration int64 `protobuf:"varint,8,opt,name=duration,proto3" json:"duration" msg:"duration"` // error is 1 if there is an error associated with this span, or 0 if there is not. // @gotags: json:"error" msg:"error" Error int32 `protobuf:"varint,9,opt,name=error,proto3" json:"error" msg:"error"` // meta is a mapping from tag name to tag value for string-valued tags. // @gotags: json:"meta,omitempty" msg:"meta,omitempty" Meta map[string]string `protobuf:"bytes,10,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" msg:"meta,omitempty"` // metrics is a mapping from tag name to tag value for numeric-valued tags. // @gotags: json:"metrics,omitempty" msg:"metrics,omitempty" Metrics map[string]float64 `protobuf:"bytes,11,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed64,2,opt,name=value,proto3" msg:"metrics,omitempty"` // type is the type of the service with which this span is associated. Example values: web, db, lambda. // @gotags: json:"type" msg:"type" Type string `protobuf:"bytes,12,opt,name=type,proto3" json:"type" msg:"type"` // meta_struct is a registry of structured "other" data used by, e.g., AppSec. // @gotags: json:"meta_struct,omitempty" msg:"meta_struct,omitempty" MetaStruct map[string][]byte `protobuf:"bytes,13,rep,name=meta_struct,json=metaStruct,proto3" json:"meta_struct,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" msg:"meta_struct,omitempty"` // span_links represents a collection of links, where each link defines a causal relationship between two spans. // @gotags: json:"span_links,omitempty" msg:"span_links,omitempty" SpanLinks []*SpanLink `protobuf:"bytes,14,rep,name=spanLinks,proto3" json:"span_links,omitempty" msg:"span_links,omitempty"` } func (x *Span) Reset() { *x = Span{} if protoimpl.UnsafeEnabled { mi := &file_datadog_trace_span_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Span) String() string { return protoimpl.X.MessageStringOf(x) } func (*Span) ProtoMessage() {} func (x *Span) ProtoReflect() protoreflect.Message { mi := &file_datadog_trace_span_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Span.ProtoReflect.Descriptor instead. func (*Span) Descriptor() ([]byte, []int) { return file_datadog_trace_span_proto_rawDescGZIP(), []int{1} } func (x *Span) GetService() string { if x != nil { return x.Service } return "" } func (x *Span) GetName() string { if x != nil { return x.Name } return "" } func (x *Span) GetResource() string { if x != nil { return x.Resource } return "" } func (x *Span) GetTraceID() uint64 { if x != nil { return x.TraceID } return 0 } func (x *Span) GetSpanID() uint64 { if x != nil { return x.SpanID } return 0 } func (x *Span) GetParentID() uint64 { if x != nil { return x.ParentID } return 0 } func (x *Span) GetStart() int64 { if x != nil { return x.Start } return 0 } func (x *Span) GetDuration() int64 { if x != nil { return x.Duration } return 0 } func (x *Span) GetError() int32 { if x != nil { return x.Error } return 0 } func (x *Span) GetMeta() map[string]string { if x != nil { return x.Meta } return nil } func (x *Span) GetMetrics() map[string]float64 { if x != nil { return x.Metrics } return nil } func (x *Span) GetType() string { if x != nil { return x.Type } return "" } func (x *Span) GetMetaStruct() map[string][]byte { if x != nil { return x.MetaStruct } return nil } func (x *Span) GetSpanLinks() []*SpanLink { if x != nil { return x.SpanLinks } return nil } var File_datadog_trace_span_proto protoreflect.FileDescriptor var file_datadog_trace_span_proto_rawDesc = []byte{ 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x73, 0x70, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x22, 0x9d, 0x02, 0x0a, 0x08, 0x53, 0x70, 0x61, 0x6e, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x44, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x44, 0x5f, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x44, 0x48, 0x69, 0x67, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x70, 0x61, 0x6e, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x73, 0x70, 0x61, 0x6e, 0x49, 0x44, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x4c, 0x69, 0x6e, 0x6b, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x72, 0x61, 0x63, 0x65, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9a, 0x05, 0x0a, 0x04, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x70, 0x61, 0x6e, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x73, 0x70, 0x61, 0x6e, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x31, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x70, 0x61, 0x6e, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x64, 0x6f, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x09, 0x73, 0x70, 0x61, 0x6e, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3a, 0x0a, 0x0c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x0f, 0x4d, 0x65, 0x74, 0x61, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x16, 0x5a, 0x14, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x67, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_datadog_trace_span_proto_rawDescOnce sync.Once file_datadog_trace_span_proto_rawDescData = file_datadog_trace_span_proto_rawDesc ) func file_datadog_trace_span_proto_rawDescGZIP() []byte { file_datadog_trace_span_proto_rawDescOnce.Do(func() { file_datadog_trace_span_proto_rawDescData = protoimpl.X.CompressGZIP(file_datadog_trace_span_proto_rawDescData) }) return file_datadog_trace_span_proto_rawDescData } var file_datadog_trace_span_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_datadog_trace_span_proto_goTypes = []interface{}{ (*SpanLink)(nil), // 0: datadog.trace.SpanLink (*Span)(nil), // 1: datadog.trace.Span nil, // 2: datadog.trace.SpanLink.AttributesEntry nil, // 3: datadog.trace.Span.MetaEntry nil, // 4: datadog.trace.Span.MetricsEntry nil, // 5: datadog.trace.Span.MetaStructEntry } var file_datadog_trace_span_proto_depIdxs = []int32{ 2, // 0: datadog.trace.SpanLink.attributes:type_name -> datadog.trace.SpanLink.AttributesEntry 3, // 1: datadog.trace.Span.meta:type_name -> datadog.trace.Span.MetaEntry 4, // 2: datadog.trace.Span.metrics:type_name -> datadog.trace.Span.MetricsEntry 5, // 3: datadog.trace.Span.meta_struct:type_name -> datadog.trace.Span.MetaStructEntry 0, // 4: datadog.trace.Span.spanLinks:type_name -> datadog.trace.SpanLink 5, // [5:5] is the sub-list for method output_type 5, // [5:5] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee 0, // [0:5] is the sub-list for field type_name } func init() { file_datadog_trace_span_proto_init() } func file_datadog_trace_span_proto_init() { if File_datadog_trace_span_proto != nil { return } if !protoimpl.UnsafeEnabled { file_datadog_trace_span_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SpanLink); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_datadog_trace_span_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Span); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_datadog_trace_span_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, GoTypes: file_datadog_trace_span_proto_goTypes, DependencyIndexes: file_datadog_trace_span_proto_depIdxs, MessageInfos: file_datadog_trace_span_proto_msgTypes, }.Build() File_datadog_trace_span_proto = out.File file_datadog_trace_span_proto_rawDesc = nil file_datadog_trace_span_proto_goTypes = nil file_datadog_trace_span_proto_depIdxs = nil } ```
Jet Falcon may refer to: the "Zoid" from Zoids, see List of Zoids the jet aircraft both known as the Falcon Dassault Falcon F-16 Fighting Falcon
```yaml openapi: 3.0.0 info: title: Qri API description: Qri API used to communicate with a Qri node. version: n/a tags: - name: access description: "AccessMethods is a group of methods for access control & user authentication " - name: collection description: "CollectionMethods lists a user's datasets. Datasets in a collection consist of datasets the user has created and other datasets the user has pulled. Collections are local. The same user's collection on one qri node will often be different from another node, depending on what datasets have been created, pushed, or pulled to that node " - name: dataset description: "DatasetMethods work with datasets, creating new versions (save), reading dataset data (get), deleting versions (remove), and moving datasets over network connections (push & pull) " - name: diff description: "DiffMethods encapsulates logic for diffing Datasets on Qri " - name: peer description: "PeerMethods extends a lib.Instance with business logic for peer-to-peer interaction " - name: profile description: "ProfileMethods encapsulates business logic for this node's user profile TODO (b5) - alterations to user profile are a subset of configuration changes. all of this code should be refactored into subroutines of general configuration getters & setters " - name: follow description: "FollowMethods groups together methods for follows " - name: remote description: "RemoteMethods encapsulates business logic of remote operation TODO (b5): switch to using an Instance instead of separate fields " - name: search description: "SearchMethods groups together methods for search " - name: automation description: "AutomationMethods groups together methods for automations " paths: '/access/token': post: description: CreateAuthToken constructs a JWT string token suitable for making OAuth requests as the grantee user. Creating an access token requires a stored private key for the grantee. Callers can provide either granteeUsername OR granteeProfileID operationId: 'access.CreateAuthToken' tags: - access requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/CreateAuthTokenParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/RawResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/collection/get': post: description: Get gets the head of a dataset as a VersionInfo from the collection operationId: 'collection.Get' tags: - collection requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/CollectionGetParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/VersionInfo' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/list': post: description: List gets the reflist for either the local repo or a peer operationId: 'collection.List' tags: - collection requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ListParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: type: array items: allOf: - $ref: '#/components/schemas/VersionInfo' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/activity': post: description: Activity returns the activity and changes for a given dataset operationId: 'dataset.Activity' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ActivityParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: type: array items: allOf: - $ref: '#/components/schemas/VersionInfo' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/daginfo': post: description: DAGInfo generates a dag.Info for a dataset path. If a label is given, DAGInfo will generate a sub-dag.Info at that label. operationId: 'dataset.DAGInfo' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/DAGInfoParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/DAGInfo' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/get': post: description: Get retrieves datasets and components for a given reference. p.Ref is parsed to create a reference, which is used to load the dataset. It will be loaded from the local repo or from the filesystem if it has a linked working directory. Using p.Selector will control what components are returned in res.Value. The default, a blank selector, will also fill the entire dataset at res.Value. If the selector contains '.script' then res.Bytes is loaded with the script contents as bytes. If the selector is 'stats', then res.Value is loaded with the generated stats. operationId: 'dataset.Get' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/GetParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/GetResult' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/manifest': post: description: Manifest generates a manifest for a dataset path operationId: 'dataset.Manifest' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ManifestParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/DAGManifest' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/manifest/missing': post: description: ManifestMissing generates a manifest of blocks that are not present on this repo for a given manifest operationId: 'dataset.ManifestMissing' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ManifestMissingParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/DAGManifest' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/pull': post: description: Pull downloads and stores an existing dataset to a peer's repository via a network connection operationId: 'dataset.Pull' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/PullParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Dataset' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/push': post: description: Push posts a dataset version to a remote operationId: 'dataset.Push' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/PushParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Ref' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/remove': post: description: Remove a dataset entirely or remove a certain number of revisions operationId: 'dataset.Remove' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/RemoveParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/RemoveResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/rename': post: description: Rename changes a user's given name for a dataset operationId: 'dataset.Rename' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/RenameParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/VersionInfo' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/render': post: description: Render renders a viz or readme component as html operationId: 'dataset.Render' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/RenderParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/RawResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/save': post: description: Save adds a history entry, updating a dataset operationId: 'dataset.Save' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/SaveParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Dataset' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/validate': post: description: Validate gives a dataset of errors and issues for a given dataset operationId: 'dataset.Validate' tags: - dataset requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ValidateParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/ValidateResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/changes': post: description: Changes resolves the requested datasets and tries to generate a change report operationId: 'diff.Changes' tags: - diff requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ChangeReportParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/ChangeReport' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/diff': post: description: Diff computes the diff of two sources operationId: 'diff.Diff' tags: - diff requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/DiffParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/DiffResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/peer/connect': post: description: Connect attempts to create a connection with a peer for a given peer.ID operationId: 'peer.Connect' tags: - peer requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ConnectParamsPod' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Profile' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/connections/qri': post: description: ConnectedQriProfiles lists profiles we're currently connected to operationId: 'peer.ConnectedQriProfiles' tags: - peer requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ConnectionsParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: type: array items: allOf: - $ref: '#/components/schemas/Profile' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/connections': post: description: Connections lists PeerID's we're currently connected to. If running IPFS this will also return connected IPFS nodes operationId: 'peer.Connections' tags: - peer requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ConnectionsParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/RawResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/peer/disconnect': post: description: Disconnect explicitly closes a peer connection operationId: 'peer.Disconnect' tags: - peer requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ConnectParamsPod' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Nil' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/peer': post: description: Info shows peer profile details operationId: 'peer.Info' tags: - peer requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/PeerInfoParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Profile' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/peer/list': post: description: List lists Peers on the qri network operationId: 'peer.List' tags: - peer requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/PeerListParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: type: array items: allOf: - $ref: '#/components/schemas/Profile' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/profile': post: description: GetProfile get's this node's peer profile operationId: 'profile.GetProfile' tags: - profile requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ProfileParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Profile' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/profile/poster': post: description: SetPosterPhoto changes this active peer's poster image operationId: 'profile.SetPosterPhoto' tags: - profile requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/FileParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Profile' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/profile/set': post: description: SetProfile stores changes to the active peer's editable profile operationId: 'profile.SetProfile' tags: - profile requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/SetProfileParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Profile' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/profile/photo': post: description: SetProfilePhoto changes the active peer's profile image operationId: 'profile.SetProfilePhoto' tags: - profile requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/FileParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Profile' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/registry/follow': post: description: Follow updates the follow status of the current user for a given dataset operationId: 'follow.Follow' tags: - follow responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Nil' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/registry/follow/list': post: description: Get returns a list of datasets a user follows operationId: 'follow.Get' tags: - follow responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: type: array items: allOf: - $ref: '#/components/schemas/Dataset' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/remote/feeds': post: description: Feeds returns a listing of datasets from a number of feeds like featured and popular. Each feed is keyed by string in the response operationId: 'remote.Feeds' tags: - remote requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/EmptyParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/MappedArraysOfVersionInfo' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/remote/preview': post: description: Preview requests a dataset preview from a remote operationId: 'remote.Preview' tags: - remote requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/PreviewParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Dataset' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/remote/remove': post: description: Remove asks a remote to remove a dataset operationId: 'remote.Remove' tags: - remote requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/PushParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Ref' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/registry/search': post: description: Search queries for items on qri related to given parameters operationId: 'search.Search' tags: - search requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/SearchParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: type: array items: allOf: - $ref: '#/components/schemas/NotDefined' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/auto/apply': post: description: Apply runs a transform script operationId: 'automation.Apply' tags: - automation requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/ApplyParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/ApplyResult' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/auto/deploy': post: description: Deploy adds or updates a workflow operationId: 'automation.Deploy' tags: - automation requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/DeployParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Nil' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/auto/remove': post: description: Remove removes a workflow operationId: 'automation.Remove' tags: - automation requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/WorkflowParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/Nil' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/auto/run': post: description: Run manually runs a workflow operationId: 'automation.Run' tags: - automation requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/RunParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/RawResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/auto/workflow': post: description: Workflow fetches a workflow operationId: 'automation.Workflow' tags: - automation requestBody: required: true content: application/json: schema: '$ref': '#/components/schemas/WorkflowParams' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/NotDefined' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/unpack': post: operationId: 'api.unpack' tags: - api requestBody: required: true content: application/zip: schema: type: string format: binary responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/NotDefined' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/': get: operationId: 'api.home' tags: - api responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/StatusOK' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/health': get: operationId: 'api.health' tags: - api responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/StatusOK' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/webui': get: operationId: 'api.webui' tags: - api responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/RawResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/qfs/ipfs/{path:.*}': get: operationId: 'api.ipfs' tags: - api parameters: - name: 'path:.*' in: path required: true schema: type: string responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/RawResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/get/{dsref}': get: operationId: 'api.get_ref' tags: - api parameters: - name: 'dsref' in: path required: true schema: type: string responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/GetResult' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error '/ds/get/{dsref}/{selector}': get: operationId: 'api.get_ref_selector' tags: - api parameters: - name: 'dsref' in: path required: true schema: type: string - name: 'selector' in: path required: true schema: type: string responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: data: allOf: - $ref: '#/components/schemas/RawResponse' description: OK '400': content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Bad request '500': content: application/json: schema: type: string nullable: true description: Server error default: content: application/json: schema: allOf: - $ref: '#/components/schemas/APIResponse' - properties: meta: allOf: - $ref: '#/components/schemas/APIMetaError' description: Error components: schemas: RemoveResponse: type: object properties: ref: type: string numDeleted: type: number message: type: string unlinked: type: boolean ActivityParams: type: object properties: ref: type: string description: "Reference to data to fetch history for" example: "b5/world_bank_population" pull: type: boolean description: "if true, pull any datasets that aren't stored locally" example: "false" ApplyParams: type: object properties: ref: type: string transform: type: object secrets: type: object wait: type: boolean ScriptOutput: type: object description: "TODO(arqu): substitute with websockets when working over the wire " Hooks: type: object DiffParams: type: object properties: leftPath: type: string description: "File paths or reference to datasets " rightPath: type: string WorkingDir: type: string description: "If not null, the working directory that the diff is using " UseLeftPrevVersion: type: boolean description: "Whether to get the previous version of the left parameter " Selector: type: string description: "Which component or part of a dataset to compare " ProfileParams: type: object SetProfileParams: type: object properties: pro: type: object ListParams: type: object properties: term: type: string description: "term to filter list by" example: "population" username: type: string description: "username to filter collection by" example: "ramfox" orderBy: type: string description: "field name to order list by" example: "created" limit: type: number description: "maximum number of datasets to use. use -1 to list all datasets" example: "50" offset: type: number description: "number of items to skip" example: "0" public: type: boolean description: "Public only applies to listing datasets, shows only datasets that are set to visible " Ref: type: object properties: initID: type: string description: "InitID is the canonical identifer for a dataset history " username: type: string description: "Username of dataset owner " profileID: type: string description: "ProfileID of dataset owner deprecated - avoid using this field, we're working towards removing it generally profile IDs should come from request scopes, or be fetched from stores of identity info (profile.Store) " name: type: string description: "Unique name reference for this dataset " path: type: string description: "Content-addressed path for this dataset " PeerInfoParams: type: object properties: peername: type: string profileID: type: string verbose: type: boolean description: "Verbose adds network details from the p2p Peerstore " PeerListParams: type: object properties: limit: type: number offset: type: number cached: type: boolean description: "Cached == true will return offline peers from the repo as well as online peers, default is to list connected peers only " RawLogbookParams: type: object Viz: type: object properties: format: type: string description: "Format designates the visualization configuration syntax. currently the only supported syntax is 'html' " path: type: string description: "Path is the location of a viz, transient derived " qri: type: string description: "Qri should always be 'vc:0' derived " scriptPath: type: string description: "ScriptPath is the path to the script that created this " text: type: string description: "Text contains the contents of the script, transient " renderedPath: type: string description: "RenderedPath is the path to the file rendered using the viz script and the body " ManifestMissingParams: type: object properties: manifest: type: object GetConfigParams: type: object properties: Field: type: string WithPrivateKey: type: boolean Format: type: string Concise: type: boolean RenameParams: type: object properties: current: type: string next: type: string Structure: type: object properties: checksum: type: string description: "Checksum is a bas58-encoded multihash checksum of the entire data file this structure points to. This is different from IPFS hashes, which are calculated after breaking the file into blocks derived " compression: type: string description: "Compression specifies any compression on the source data, if empty assume no compression " depth: type: number description: "Maximum nesting level of composite types in the dataset. eg: depth 1 == [], depth 2 == [[]] derived " encoding: type: string description: "Encoding specifics character encoding, assume utf-8 if not specified " errCount: type: number description: "ErrCount is the number of errors returned by validating data against this schema. required derived " entries: type: number description: "Entries is number of top-level entries in the dataset. With tablular data this is the same as the number of 'rows' derived " format: type: string description: "Format specifies the format of the raw data MIME type " formatConfig: type: object description: "FormatConfig removes as much ambiguity as possible about how to interpret the speficied format. FormatConfig FormatConfig `json:'formatConfig,omitempty'` " length: type: number description: "Length is the length of the data object in bytes. must always match & be present derived " path: type: string description: "location of this structure, transient derived " qri: type: string description: "Qri should always be KindStructure derived " schema: type: object description: "Schema contains the schema definition for the underlying data, schemas are defined using the IETF json-schema specification. for more info on json-schema see: path_to_url " strict: type: boolean description: "Strict requires schema validation to pass without error. Datasets with strict: true can have additional functionality and performance speedups that comes with being able to assume that all data is valid " FileParams: type: object properties: filename: type: string description: "url to download data from. either Url or Data is required Url string Filename of data file. extension is used for filetype detection " data: type: object description: "Data is the file as slice of bytes " ValidateParams: type: object properties: ref: type: string bodyFilename: type: string schemaFilename: type: string structureFilename: type: string Commit: type: object properties: author: type: object description: "Author of this commit " message: type: string description: "Message is an optional " path: type: string description: "Path is the location of this commit, transient derived " qri: type: string description: "Qri is this commit's qri kind derived " signature: type: string description: "Signature is a base58 encoded privateKey signing of Title " timestamp: type: object description: "Time this dataset was created. Required. " title: type: string description: "Title of the commit. Required. " runID: type: string description: "RunID is only present if an automated script was executed durning the commit time Commits with non-empty `RunID`s imply the existance of a transform component " GetParams: type: object properties: ref: type: string description: "dataset reference to fetch" example: "b5/world_bank_population" selector: type: string description: "a component or nested field names to extract from the dataset" example: "body" limit: type: number description: "number of results to limit to. only applies when selector is 'body' " offset: type: number description: "number of results to skip. only applies when selector is 'body' " Transform: type: object properties: config: type: object description: "Config outlines any configuration that would affect the resulting hash " path: type: string description: "location of the transform object, transient " qri: type: string description: "Kind should always equal KindTransform " resources: type: object description: "Resources is a map of all datasets referenced in this transform, with alphabetical keys generated by datasets in order of appearance within the transform " scriptPath: type: string description: "ScriptPath is the path to the script that produced this transformation. Deprecated - use Steps instead " text: type: string description: "Text contains the contents of the script, transient " secrets: type: object description: "Secrets is a map of secret values used in the transformation, transient. TODO (b5): make this not-transient by censoring the values used, but not keys " steps: type: object syntax: type: string description: "Syntax this transform was written in Deprecated - syntax is defined per-step " syntaxVersion: type: string description: "SyntaxVersion is an identifier for the application and version number that produced the result Deprecated - use steps.Syntax with a version suffix instead " syntaxes: type: object description: "map of syntaxes used in this transform to their version identifier. " CreateAuthTokenParams: type: object properties: granteeUsername: type: string description: "username to grant auth" example: "keyboard_cat" granteeProfileID: type: string description: "profile Identifier to grant token for" example: "QmemJQrK7PTQvD3n8gmo9JhyaByyLmETiNR1Y8wS7hv4sP" ttl: type: object description: "lifespan of token in nanoseconds" example: "2000000000000" RenderParams: type: object properties: ref: type: string description: "Ref is a string reference to the dataset to render " dataset: type: object description: "Optionally pass an entire dataset in for rendering, if providing a dataset, the Ref field must be empty " template: type: object description: "Optional template override " useFSI: type: boolean description: "TODO (b5): investigate if this field is still in use " format: type: string description: "Output format. defaults to 'html' " selector: type: string description: "Selector " User: type: object properties: id: type: string name: type: string email: type: string VersionInfo: type: object properties: initID: type: string description: "Key as a stable identifier InitID is derived from the logbook for the dataset " username: type: string description: "Fields from dsref.Ref Username of dataset owner " profileID: type: string description: "ProfileID of dataset owner " name: type: string description: "Unique name reference for this dataset " path: type: string description: "Content-addressed path for this dataset " published: type: boolean description: "State about the dataset that can change If true, this dataset has published versions " foreign: type: boolean description: "If true, this reference doesn't exist locally. Only makes sense if path is set, as this flag refers to specific versions, not to entire dataset histories. " metaTitle: type: string description: "Meta fields Title from the meta structure " themeList: type: string description: "List of themes from the meta structure, comma-separated list " bodySize: type: number description: "Structure fields Size of the body in bytes " bodyRows: type: number description: "Num of rows in the body " bodyFormat: type: string description: "Format of the body, such as 'csv' or 'json' " numErrors: type: number description: "Number of errors from the structure " commitTime: type: object description: "Commit fields Timestamp field from the commit " commitTitle: type: string description: "Title field from the commit " commitMessage: type: string description: "Message field from the commit " workflowID: type: string description: "Workflow fields " workflowtriggerDescription: type: string runID: type: string description: "Run Fields RunID is derived from from either the Commit.RunID, field or the runID of a failed run. In the latter case the Path value will be empty " runStatus: type: string description: "RunStatus is a string version of the run.Status enumeration. This value will always be one of: ''|'waiting'|'running'|'succeeded'|'failed'|'unchanged'|'skipped' RunStatus is not stored on a dataset version, and instead must come from either run state or a cache of run state it's of type string to follow the 'plain old data' pattern " runDuration: type: object description: "RunDuration is how long the run took/has currently taken in nanoseconds default value of 0 means no duration data is available. RunDuration is not stored on a dataset version, and instead must come from either run state or a cache of run state " runCount: type: number description: "Aggregate Fields TODO (ramfox): These fields are only temporarily living on `VersionInfo`. They are needed by the frontend to display 'details' about the head of of the dataset. When we get more user feedback and settle what info users want about their datasets, these fields may move to a new struct store, or subsystem. These fields are not derived from any `dataset.Dataset` fields. These fields should only be used in the `collection` package. RunCount is the number of times this dataset's transform has been run " commitCount: type: number description: "CommitCount is the number of commits in this dataset's history " downloadCount: type: number description: "DownloadCount is the number of times this dataset has been directly downloaded from this Qri node " followerCount: type: number description: "FollowerCount is the number of followers this dataset has on this Qri node " openIssueCount: type: number description: "OpenIssueCount is the number of open issues this dataset has on this Qri node " RemoveParams: type: object properties: ref: type: string revision: type: object force: type: boolean SearchParams: type: object properties: q: type: string limit: type: number offset: type: number EmptyParams: type: object PushParams: type: object properties: ref: type: string remote: type: string all: type: boolean description: "All indicates all versions of a dataset and the dataset namespace should be either published or removed " DiffResponse: type: object properties: stat: type: object schemaStat: type: object schema: type: object diff: type: object CSVOptions: type: object properties: headerRow: type: boolean description: "HeaderRow specifies weather this csv file has a header row or not " lazyQuotes: type: boolean description: "If LazyQuotes is true, a quote may appear in an unquoted field and a non-doubled quote may appear in a quoted field. " separator: type: object description: "Separator is the field delimiter. It is set to comma (',') by NewReader. Comma must be a valid rune and must not be \r, \n, or the Unicode replacement character (0xFFFD). " variadicFields: type: boolean description: "VariadicFields sets permits records to have a variable number of fields avoid using this " ApplyResult: type: object properties: Data: type: object runID: type: string ConnectionsParams: type: object properties: limit: type: number offset: type: number TeardownParams: type: object properties: Config: type: object RepoPath: type: string ConfigFilepath: type: string VersionInfoAggregator: type: object DeployParams: type: object properties: Run: type: boolean Workflow: type: object Dataset: type: object RefListParams: type: object properties: Ref: type: string description: "String value of a reference " Offset: type: number description: "Pagination Parameters " CollectionGetParams: type: object properties: ref: type: string initID: type: string Stats: type: object properties: path: type: string qri: type: string stats: type: object Meta: type: object properties: accessURL: type: string description: "Url to access the dataset " accrualPeriodicity: type: string description: "The frequency with which dataset changes. Must be an ISO 8601 repeating duration " citations: type: object description: "Citations is a slice of assets used to build this dataset " contributors: type: object description: "Contribute " description: type: string description: "Description follows the DCAT sense of the word, it should be around a paragraph of human-readable text " downloadURL: type: string description: "Url that should / must lead directly to the data itself " homeURL: type: string description: "HomeURL is a path to a 'home' resource " identifier: type: string description: "Identifier is for *other* data catalog specifications. Identifier should not be used or relied on to be unique, because this package does not enforce any of these rules. " keywords: type: object description: "String of Keywords " language: type: object description: "Languages this dataset is written in " license: type: object path: type: string description: "path is the location of meta, transient derived " qri: type: string description: "Kind is required, must be qri:md:[version] derived " readmeURL: type: string description: "path to dataset readme file, not part of the DCAT spec, but a common convention in software dev " title: type: string description: "Title of this dataset " theme: type: object description: "'Category' for " version: type: string description: "Version is the version identifier for this dataset " Dataset: type: object properties: body: type: object description: "Body represents dataset data with native go types. Datasets have at most one body. Body, BodyBytes, and BodyPath work together, often with only one field used at a time " bodyBytes: type: object description: "BodyBytes is for representing dataset data as a slice of bytes " bodyPath: type: string description: "BodyPath is the path to the hash of raw data as it resolves on the network " commit: type: object description: "Commit contains author & change message information that describes this version of a dataset " id: type: string description: "ID is an identifier string for this dataset. " meta: type: object description: "Meta contains all human-readable meta about this dataset intended to aid in discovery and organization of this document " name: type: string description: "name reference for this dataset, transient " path: type: string description: "Location of this dataset, transient " peername: type: string description: "Peername of dataset owner, transient " previousPath: type: string description: "PreviousPath connects datasets to form a historical merkle-DAG of snapshots of this document, creating a version history " profileID: type: string description: "ProfileID of dataset owner, transient " readme: type: object description: "Readme is a path to the readme file for this dataset " numVersions: type: number description: "Number of versions this dataset has, transient " qri: type: string description: "Qri is a key for both identifying this document type, and versioning the dataset document definition itself. derived " structure: type: object description: "Structure of this dataset " stats: type: object description: "Stats is a component containing statistical metadata about the dataset body " transform: type: object description: "Transform is a path to the transformation that generated this resource " viz: type: object description: "Viz stores configuration data related to representing a dataset as a visualization " JSONOptions: type: object properties: Options: type: object TransformResource: type: object properties: path: type: string SetupParams: type: object properties: Config: type: object description: "a configuration is required. defaults to config.DefaultConfig() " RepoPath: type: string description: "where to initialize qri repository " Register: type: boolean description: "submit new username to the configured registry " Overwrite: type: boolean description: "overwrite any existing repo, erasing all data and deleting private keys this is almost always a bad idea " SetupIPFS: type: boolean description: "attempt to setup an IFPS repo " SetupIPFSConfigData: type: object Generator: type: object description: "setup requires a crypto source " ConnectParamsPod: type: object properties: peername: type: string profileID: type: string networkID: type: string multiaddr: type: string WorkflowParams: type: object properties: workflowID: type: string initID: type: string ref: type: string ManifestParams: type: object properties: ref: type: string RunParams: type: object properties: ref: type: string initID: type: string workflowID: type: string Readme: type: object properties: format: type: string description: "Format designates the visualization configuration syntax. Only supported formats are 'html' and 'md' " path: type: string description: "Path is the location of a readme, transient derived " qri: type: string description: "Qri should always be 'rm:0' derived " scriptPath: type: string description: "ScriptPath is the path to the script that created this " text: type: string description: "Text contains the contents of the script, transient " renderedPath: type: string description: "RenderedPath is the path to the file rendered using the readme script and the body " MemResolver: type: object properties: Username: type: string RefMap: type: object IDMap: type: object DAGInfoParams: type: object properties: ref: type: string label: type: string RegistryProfileParams: type: object properties: Profile: type: object Rev: type: object properties: Field: type: string description: "field scopt, currently can only be a component name, or the entire dataset " Gen: type: number description: "the nth-generational ancestor of a history " XLSXOptions: type: object properties: sheetName: type: string PullParams: type: object properties: ref: type: string logsOnly: type: boolean description: "only fetch logbook data " ChangeReportParams: type: object properties: leftRef: type: string rightRef: type: string GetResult: type: object properties: value: type: object bytes: type: object ValidateResponse: type: object properties: structure: type: object description: "Structure used to perform validation " errors: type: object description: "Validation Errors " type: object properties: type: type: string url: type: string Theme: type: object properties: description: type: string display_name: type: string image_display_url: type: string id: type: string name: type: string title: type: string SaveParams: type: object properties: Dataset: type: object description: "dataset supplies params directly, all other param fields override values supplied by dataset " ref: type: string description: "dataset reference string, the name to save to" example: "b5/world_bank_population" title: type: string description: "commit title, defaults to a generated string based on diff" example: "update dataset meta" Message: type: string description: "commit message, defaults to blank" example: "reaname title & fill in supported langages" bodyPath: type: string description: "path to body data " filePaths: type: object description: "absolute path or URL to the list of dataset files or components to load " secrets: type: object description: "secrets for transform execution. Should be a set of key: value pairs " ScriptOutput: type: object description: "optional writer to have transform script record standard output to note: this won't work over RPC, only on local calls " apply: type: boolean description: "Apply runs a transform script to create the next version to save " replace: type: boolean description: "Replace writes the entire given dataset as a new snapshot instead of applying save params as augmentations to the existing history " private: type: boolean description: "option to make dataset private. private data is not currently implimented, see path_to_url for updates " convertFormatToPrev: type: boolean description: "if true, convert body to the format of the previous version, if applicable " drop: type: string description: "comma separated list of component names to delete before saving " force: type: boolean description: "force a new commit, even if no changes are detected " shouldRender: type: boolean description: "save a rendered version of the template along with the dataset " newName: type: boolean description: "new dataset only, don't create a commit on an existing dataset, name will be unused " ParseError: type: object properties: Message: type: string Citation: type: object properties: name: type: string url: type: string email: type: string TransformStep: type: object properties: name: type: string path: type: string syntax: type: string category: type: string script: type: object PreviewParams: type: object properties: ref: type: string ### Response Schemas ## Base APIResponse: type: object properties: data: type: object nullable: true meta: type: object nullable: true StatusOK: type: object String: type: string Nil: type: object nullable: true NotDefined: type: object nullable: true Pagination: type: object properties: page: type: integer pageSize: type: integer resultCount: type: integer nextUrl: type: string prevUrl: type: string RawResponse: # supports all string formats: string, binary, byte type: string ## Qri StatusItem: type: object Profile: type: object DAGManifest: type: object DAGInfo: type: object ChangeReport: type: object MappedArraysOfVersionInfo: type: object additionalProperties: true ## Error APIMetaError: type: object properties: code: type: integer error: type: string ```
```python # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. import legacy_test.test_collective_api_base as test_base import paddle import paddle.distributed as dist from paddle import base class TestCollectiveAllToAllAPI(test_base.TestCollectiveAPIRunnerBase): def __init__(self): self.global_ring_id = 0 def get_model(self, main_prog, startup_program, rank, indata=None): with base.program_guard(main_prog, startup_program): toutdata = [] # NOTE: this is a hack relying on an undocumented behavior that `to_tensor` uses uint16 to replace bfloat16 if indata.dtype == "bfloat16": tindata = paddle.to_tensor(indata, "float32").cast("uint16") tindata = paddle.split(tindata, 2, axis=0) dist.alltoall(tindata, toutdata) return [data.cast("float32").numpy() for data in toutdata] else: tindata = paddle.to_tensor(indata) tindata = paddle.split(tindata, 2, axis=0) dist.alltoall(tindata, toutdata) return [data.numpy() for data in toutdata] if __name__ == "__main__": test_base.runtime_main(TestCollectiveAllToAllAPI, "alltoall") ```
Stuart Levy may refer to: Stuart Levy (producer) (1907–1966), British film producer Stuart B. Levy, microbiology researcher and physician at Tufts University Stuart J. Levy (born 1967), founder of the manga media company Tokyopop See also Stuart A. Levey, former Under Secretary for Terrorism and Financial Intelligence for the United States Department of the Treasury
Adèle-Louise-Pauline Leroux (19 August 1809–5 February 1891) was a French dancer and ballerina of the 19th-century Romantic ballet era and a member of the Paris Opera Ballet. Born in Paris, she was the daughter of Louis-Bénigne-Marie Leroux, Commissioner of War, and Marguerite-Suzanne (née Lecocq). Her older sister Antoinette-Désirée Leroux (1807-?) had been a dancer at the Opera from 1821 to 1827, while her sister Aminthe Delisle-Leroux (1815-1878) was an actress. On 12 July 1848 she married the actor Pierre-Chéri Lafont (1797-1873). Leroux was a pupil of Auguste Vestris and Jean-François Coulon and was a member of the Paris Opera Ballet from 1826 to 1837, then from 1840 to 1844 to replace foreign celebrities like Marie Taglioni and Fanny Elssler. She then joined full international tours. Leroux had her first success when she created the role of Marie in La tentation by Jean Coralli (1832), then in Filippo Taglioni's Leda, the Swiss Milkmaid (1832) and triumphed in Coralli's Le Diable Boiteux (1836), then as Uriel in The Devil in Love with Joseph Mazilier (1840). She danced regularly in London between 1824 and 1833, appearing before a young Princess Victoria who painted watercolour portraits of Leroux as Fenella in Massaniello at the Royal Opera House at Covent Garden (1832), as she appeared in La Somnambule (1833) at the King's Theatre, and as Effie in La Sylphide, again at the King's Theatre (1833). Princess Victoria made a doll of Leroux as she appeared in Massaniello and kept it among the over one hundred dolls she made with the help of her governess Baroness Louise Lehzen. Today this doll remains in the Royal Collection. In 1841 Leroux danced in the original production of the grand opera La reine de Chypre by Fromental Halévy and Jules-Henri Vernoy de Saint-Georges. The composer Richard Wagner was in the audience on the first night. In her later years Leroux was a choreographer. Pauline Leroux died in 1891 in the 9th arrondissement of Paris and is buried in Montmartre Cemetery with her husband Pierre-Chéri Lafont. See also Women in dance References Sources Histoire des théâtres depuis leur fondation jusqu'à nos jours, biographie des acteurs et actrices de Paris et de la banlieue : première année, 1844-1845 par Adolphe Bréant de, (1845), page 35 Ces demoiselles de l'Opéra, (1887), page 118 Théâtres, acteurs et actrices de Paris : biographie des artistes dramatiques, et notices historiques sur les théâtres de Paris, leur origine, leur administration, etc., par Poujol Adolphe ; (1842), page 15 Galerie de la presse, de la littérature et des beaux-arts, Partie 3 ; Louis Huart, Charles Philipon ; (1841), avec son portrait Biographie des acteurs de Paris par Edmond Burat de Gurgy ; (1837), page 34 External links Pauline Leroux in the ballet The Devil in Love - New York Public Library Digital Collection 1809 births 1891 deaths Paris Opera Ballet dancers French ballerinas 19th-century French ballet dancers Ballet choreographers
Aleesha Rome (born 1981), known later in her career as Ivy York, is a former Australian pop singer. Her second single, "Search My Heaven", was released in November 1999, which peaked at No. 20 on the ARIA Singles Chart. She issued her debut solo album, Aleesha Rome (March 2000) and relocated to London in late 2001. Her second album, The Call of Spring (2009), was issued under the name, Ivy York. In 2010 she retired from her singing career due to spasmodic dysphonia, which affected her vocal cords. Biography Originally from Adelaide, Aleesha Rome was born in 1981. From the age of nine she sang in karaoke competitions. She started singing lessons from the age of 12 and moved to Sydney at age 17, where she worked as a receptionist. She submitted one of her karaoke tapes in answer to a "Singer Wanted" ad in the local street press. Rome signed a recording contract with Albert Music. Her debut single, "One of Us Has Changed", was released in 1999. She had started recording about nine months earlier. It was a five-track CD single with the lead track co-written by Barry Andrews and Elizabeth Scott; Andrews was also its co-producer. Her second single, "Search My Heaven", appeared in November 1999, which peaked at No. 20 on the ARIA Singles Chart. Also in that month she signed a three-year deal with EMI for European and Canadian releases. Rome's self-titled debut album appeared on 27 March 2000 via AMC/EMI. It was recorded at Albert Studios, Sydney with co-production by Andrews and Sam Horsburgh; Andrews co-wrote eight of its twelve tracks. Ahead of the album she was interviewed for hEARd Magazine and described how, "I just got lucky I guess. At first, when I got the deal with Alberts, I was working part time & doing recording at Alberts during lunch hours, but now I'm doing it full time, so there's something that I always wanted to do, become a singer full time, so even if nothing else happens much, I've already made it to here." In March she toured Australia and then performed in Europe, Canada and the United States. Both singles were later re-issued in Germany. Frustrated with the lack of control over her music, Rome relocated to the United Kingdom in 2001; and began composing her own songs and playing clubs around London. Under her new persona, Ivy York, she led an indie group, Ivy York Band. In 2009 she released her second solo album, The Call of Spring, as Ivy York, which was produced by Ravi (Rav) Panesar. It was released on Rough Trade Records in April 2010 and was described by Bollywood Spice'''s correspondent as "Merging vintage-country & western, with Brit-pop and retro Bollywood, injected with a decent dose of indie." She retired from performing after developing spasmodic dysphonia in 2010. Discography Albums Aleesha Rome (27 March 2000) – Albert Music/EMI Music Australia "Search My Heaven" (3:54) "One of Us Has Changed" (3:37) "If Only I Could Cry" (4:04) "Without You" (3:59) "I Didn't Have the Heart" (3:26) "Yours Truly" (4:07) "Do You Feel Me" (3:11) "3 Words" (3:38) "Hazy Days" (5:35) "Real World" (4:20) "Search My Heaven (Mont Blanc House Mix)" (3:44) "One Of Us Has Changed (Absolute Spirit Mix)" (3:20)Aleesha Rome was produced by Barry Andrews and Sam Horsburgh with various remixes by Thunderground, Matt Meyers and The Wah Brothers. The Call of Spring'' (2009) Singles All three of the singles were produced by Barry Andrews and Sam Horsburgh with various remixes by Thunderground, Matt Meyers and The Wah Brothers. References External links Official Ivy York myspace page Living people Musicians from Adelaide 1981 births 21st-century Australian singers 21st-century Australian women singers
```go // _ _ // __ _____ __ ___ ___ __ _| |_ ___ // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ // \ V V / __/ (_| |\ V /| | (_| | || __/ // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| // // // CONTACT: hello@weaviate.io // package roaringset import ( "encoding/binary" "fmt" "io" "math" "github.com/weaviate/weaviate/adapters/repos/db/lsmkv/segmentindex" "github.com/weaviate/weaviate/usecases/byteops" ) // SegmentNodeList is inspired by the roaringset.SegmentNode, keeping the // same fuctionality, but stores lists of []uint64 instead of bitmaps. // It stores one Key-Value pair (without its index) in the LSM Segment. // As with SegmentNode, it uses a single []byte internally. As a result // there is no decode step required at runtime. Instead you can use // // - [*SegmentNodeList.Additions] // - [*SegmentNodeList.AdditionsWithCopy] // - [*SegmentNodeList.Deletions] // - [*SegmentNodeList.DeletionsWithCopy] // - [*SegmentNodeList.PrimaryKey] // // to access the contents. Those helpers in turn do not require a decoding // step. Instead of returning Roaring Bitmaps, it returns []uint64 slices. // This makes the indexing time much faster, as we don't have to create the // roaring bitmaps for each WAL insert. It also makes it smaller on disk, as we // don't have to store the roaring bitmap, but only the list of uint64s. // // The internal structure of the data is close to the original SegmentNode, // storing []uint64 instead of roaring bitmaps. The structure is as follows: // // byte begin-start | description // --------------------|----------------------------------------------------- // 0-8 | uint64 indicating the total length of the node, // | this is used in cursors to identify the next node. // 8-16 | uint64 length indicator for additions // | len(additions)*size(uint64) -> x // 16-(x+16) | additions []uint64 // (x+16)-(x+24) | uint64 length indicator for deletions // | len(deletions)*size(uint64) -> y // (x+24)-(x+y+24) | deletions []uint64 // (x+y+24)-(x+y+28) | uint32 length indicator for primary key length -> z // (x+y+28)-(x+y+z+28) | primary key type SegmentNodeList struct { data []byte } // Len indicates the total length of the [SegmentNodeList]. When reading multiple // segments back-2-back, such as in a cursor situation, the offset of element // (n+1) is the offset of element n + Len() func (sn *SegmentNodeList) Len() uint64 { return binary.LittleEndian.Uint64(sn.data[0:8]) } // Additions returns the additions []uint64 with shared state. Only use // this method if you can guarantee that you will only use it while holding a // maintenance lock or can otherwise be sure that no compaction can occur. If // you can't guarantee that, instead use [*SegmentNodeList.AdditionsWithCopy]. func (sn *SegmentNodeList) Additions() []uint64 { rw := byteops.NewReadWriter(sn.data) rw.MoveBufferToAbsolutePosition(8) bData := rw.ReadBytesFromBufferWithUint64LengthIndicator() results := make([]uint64, len(bData)/8) for i := 0; i < len(bData); i += 8 { results[i/8] = binary.LittleEndian.Uint64(bData[i : i+8]) } return results } // AdditionsWithCopy returns the additions []uint64 without sharing state. It // creates a copy of the underlying buffer. This is safe to use indefinitely, // but much slower than [*SegmentNodeList.Additions] as it requires copying all the // memory. If you know that you will only need the contents of the node for a // duration of time where a lock is held that prevents compactions, it is more // efficient to use [*SegmentNodeList.Additions]. func (sn *SegmentNodeList) AdditionsWithCopy() []uint64 { rw := byteops.NewReadWriter(sn.data) rw.MoveBufferToAbsolutePosition(8) bData := rw.ReadBytesFromBufferWithUint64LengthIndicator() results := make([]uint64, len(bData)/8) for i := 0; i < len(bData); i += 8 { results[i/8] = binary.LittleEndian.Uint64(bData[i : i+8]) } return results } // Deletions returns the deletions []uint64 with shared state. Only use // this method if you can guarantee that you will only use it while holding a // maintenance lock or can otherwise be sure that no compaction can occur. If // you can't guarantee that, instead use [*SegmentNodeList.DeletionsWithCopy]. func (sn *SegmentNodeList) Deletions() []uint64 { rw := byteops.NewReadWriter(sn.data) rw.MoveBufferToAbsolutePosition(8) rw.DiscardBytesFromBufferWithUint64LengthIndicator() bData := rw.ReadBytesFromBufferWithUint64LengthIndicator() results := make([]uint64, len(bData)/8) for i := 0; i < len(bData); i += 8 { results[i/8] = binary.LittleEndian.Uint64(bData[i : i+8]) } return results } // DeletionsWithCopy returns the deletions []uint64 without sharing state. It // creates a copy of the underlying buffer. This is safe to use indefinitely, // but much slower than [*SegmentNodeList.Deletions] as it requires copying all the // memory. If you know that you will only need the contents of the node for a // duration of time where a lock is held that prevents compactions, it is more // efficient to use [*SegmentNodeList.Deletions]. func (sn *SegmentNodeList) DeletionsWithCopy() []uint64 { rw := byteops.NewReadWriter(sn.data) rw.MoveBufferToAbsolutePosition(8) rw.DiscardBytesFromBufferWithUint64LengthIndicator() bData := rw.ReadBytesFromBufferWithUint64LengthIndicator() results := make([]uint64, len(bData)/8) for i := 0; i < len(bData); i += 8 { results[i/8] = binary.LittleEndian.Uint64(bData[i : i+8]) } return results } func (sn *SegmentNodeList) PrimaryKey() []byte { rw := byteops.NewReadWriter(sn.data) rw.MoveBufferToAbsolutePosition(8) rw.DiscardBytesFromBufferWithUint64LengthIndicator() rw.DiscardBytesFromBufferWithUint64LengthIndicator() return rw.ReadBytesFromBufferWithUint32LengthIndicator() } func NewSegmentNodeList( key []byte, additions, deletions []uint64, ) (*SegmentNodeList, error) { if len(key) > math.MaxUint32 { return nil, fmt.Errorf("key too long, max length is %d", math.MaxUint32) } // convert the additions and deletions []uint64 to byte slices additionsBuf := make([]byte, 8*len(additions)) for i, v := range additions { binary.LittleEndian.PutUint64(additionsBuf[i*8:], v) } deletionsBuf := make([]byte, 8*len(deletions)) for i, v := range deletions { binary.LittleEndian.PutUint64(deletionsBuf[i*8:], v) } // offset + 2*uint64 length indicators + uint32 length indicator + payloads expectedSize := 8 + 8 + 8 + 4 + len(additionsBuf) + len(deletionsBuf) + len(key) sn := SegmentNodeList{ data: make([]byte, expectedSize), } rw := byteops.NewReadWriter(sn.data) // reserve the first 8 bytes for the offset, which we will write at the very // end rw.MoveBufferPositionForward(8) if err := rw.CopyBytesToBufferWithUint64LengthIndicator(additionsBuf); err != nil { return nil, err } if err := rw.CopyBytesToBufferWithUint64LengthIndicator(deletionsBuf); err != nil { return nil, err } if err := rw.CopyBytesToBufferWithUint32LengthIndicator(key); err != nil { return nil, err } offset := rw.Position rw.MoveBufferToAbsolutePosition(0) rw.WriteUint64(uint64(offset)) return &sn, nil } // ToBuffer returns the internal buffer without copying data. Only use this, // when you can be sure that it's safe to share the data, or create your own // copy. // // It truncates the buffer at is own length, in case it was initialized with a // long buffer that only had a beginning offset, but no end. Such a situation // may occur with cursors. If we then returned the whole buffer and don't know // what the caller plans on doing with the data, we risk passing around too // much memory. Truncating at the length prevents this and has no other // negative effects. func (sn *SegmentNodeList) ToBuffer() []byte { return sn.data[:sn.Len()] } // NewSegmentNodeFromBuffer creates a new segment node by using the underlying // buffer without copying data. Only use this when you can be sure that it's // safe to share the data or create your own copy. func NewSegmentNodeListFromBuffer(buf []byte) *SegmentNodeList { return &SegmentNodeList{data: buf} } // KeyIndexAndWriteTo is a helper to flush a memtables full of SegmentNodes. It // writes itself into the given writer and returns a [segmentindex.Key] with // start and end indicators (respecting SegmentNodeList.Offset). Those keys can // then be used to build an index for the nodes. The combination of index and // node make up an LSM segment. // // RoaringSets do not support secondary keys, thus the segmentindex.Key will // only ever contain a primary key. func (sn *SegmentNodeList) KeyIndexAndWriteTo(w io.Writer, offset int) (segmentindex.Key, error) { out := segmentindex.Key{} n, err := w.Write(sn.data) if err != nil { return out, err } out.ValueStart = offset out.ValueEnd = offset + n out.Key = sn.PrimaryKey() return out, nil } ```
```go // _ _ // __ _____ __ ___ ___ __ _| |_ ___ // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ // \ V V / __/ (_| |\ V /| | (_| | || __/ // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| // // // CONTACT: hello@weaviate.io // package modstggcs import ( "context" "fmt" "io" "os" "path" "strings" "time" "cloud.google.com/go/storage" "github.com/googleapis/gax-go/v2" "github.com/pkg/errors" "github.com/weaviate/weaviate/entities/backup" "github.com/weaviate/weaviate/usecases/monitoring" "golang.org/x/oauth2/google" "google.golang.org/api/option" ) type gcsClient struct { client *storage.Client config clientConfig projectID string dataPath string } func newClient(ctx context.Context, config *clientConfig, dataPath string) (*gcsClient, error) { options := []option.ClientOption{} useAuth := strings.ToLower(os.Getenv("BACKUP_GCS_USE_AUTH")) != "false" if useAuth { scopes := []string{ "path_to_url", } creds, err := google.FindDefaultCredentials(ctx, scopes...) if err != nil { return nil, errors.Wrap(err, "find default credentials") } options = append(options, option.WithCredentials(creds)) } else { options = append(options, option.WithoutAuthentication()) } projectID := os.Getenv("GOOGLE_CLOUD_PROJECT") if len(projectID) == 0 { projectID = os.Getenv("GCLOUD_PROJECT") if len(projectID) == 0 { projectID = os.Getenv("GCP_PROJECT") } } client, err := storage.NewClient(ctx, options...) if err != nil { return nil, errors.Wrap(err, "create client") } client.SetRetry(storage.WithBackoff(gax.Backoff{ Initial: 2 * time.Second, // Note: the client uses a jitter internally Max: 60 * time.Second, Multiplier: 3, }), storage.WithPolicy(storage.RetryAlways), ) return &gcsClient{client, *config, projectID, dataPath}, nil } func (g *gcsClient) getObject(ctx context.Context, bucket *storage.BucketHandle, backupID, objectName string, ) ([]byte, error) { // Create bucket reader obj := bucket.Object(objectName) reader, err := obj.NewReader(ctx) if err != nil { if errors.Is(err, storage.ErrObjectNotExist) { return nil, err } return nil, errors.Wrapf(err, "new reader: %v", objectName) } // Read file contents content, err := io.ReadAll(reader) if err != nil { return nil, errors.Wrapf(err, "read object: %v", objectName) } metric, err := monitoring.GetMetrics().BackupRestoreDataTransferred.GetMetricWithLabelValues(Name, "class") if err == nil { metric.Add(float64(len(content))) } return content, nil } func (g *gcsClient) HomeDir(backupID string) string { return "gs://" + path.Join(g.config.Bucket, g.makeObjectName(backupID)) } func (g *gcsClient) findBucket(ctx context.Context) (*storage.BucketHandle, error) { bucket := g.client.Bucket(g.config.Bucket) if _, err := bucket.Attrs(ctx); err != nil { return nil, err } return bucket, nil } func (g *gcsClient) makeObjectName(parts ...string) string { base := path.Join(parts...) return path.Join(g.config.BackupPath, base) } func (g *gcsClient) GetObject(ctx context.Context, backupID, key string) ([]byte, error) { objectName := g.makeObjectName(backupID, key) if err := ctx.Err(); err != nil { return nil, backup.NewErrContextExpired(errors.Wrapf(err, "get object '%s'", objectName)) } bucket, err := g.findBucket(ctx) if err != nil { if errors.Is(err, storage.ErrBucketNotExist) { return nil, backup.NewErrNotFound(errors.Wrapf(err, "get object '%s'", objectName)) } return nil, backup.NewErrInternal(errors.Wrapf(err, "get object '%s'", objectName)) } contents, err := g.getObject(ctx, bucket, backupID, objectName) if err != nil { if errors.Is(err, storage.ErrObjectNotExist) { return nil, backup.NewErrNotFound(errors.Wrapf(err, "get object '%s'", objectName)) } return nil, backup.NewErrInternal(errors.Wrapf(err, "get object '%s'", objectName)) } return contents, nil } // PutFile creates an object with contents from file at filePath. func (g *gcsClient) PutFile(ctx context.Context, backupID, key, srcPath string) error { bucket, err := g.findBucket(ctx) if err != nil { return fmt.Errorf("find bucket: %w", err) } // open source file filePath := path.Join(g.dataPath, srcPath) file, err := os.Open(filePath) if err != nil { return fmt.Errorf("os.open %q: %w", filePath, err) } defer file.Close() // create a new writer object := g.makeObjectName(backupID, key) writer := bucket.Object(object).NewWriter(ctx) writer.ContentType = "application/octet-stream" writer.Metadata = map[string]string{"backup-id": backupID} // if we return early make sure writer is closed closeWriter := true defer func() { if closeWriter { writer.Close() } }() nBytes, err := io.Copy(writer, file) if err != nil { return fmt.Errorf("io.copy %q %q: %w", object, filePath, err) } closeWriter = false if err := writer.Close(); err != nil { return fmt.Errorf("writer.close %q: %w", filePath, err) } metric, err := monitoring.GetMetrics().BackupStoreDataTransferred.GetMetricWithLabelValues("backup-gcs", "class") if err == nil { metric.Add(float64(nBytes)) } return nil } func (g *gcsClient) PutObject(ctx context.Context, backupID, key string, byes []byte) error { bucket, err := g.findBucket(ctx) if err != nil { return errors.Wrap(err, "find bucket") } objectName := g.makeObjectName(backupID, key) obj := bucket.Object(objectName) writer := obj.NewWriter(ctx) writer.ContentType = "application/octet-stream" writer.Metadata = map[string]string{ "backup-id": backupID, } if _, err := writer.Write(byes); err != nil { return errors.Wrapf(err, "write file: %v", objectName) } if err := writer.Close(); err != nil { return errors.Wrapf(err, "close writer for file: %v", objectName) } metric, err := monitoring.GetMetrics().BackupStoreDataTransferred.GetMetricWithLabelValues("backup-gcs", "class") if err == nil { metric.Add(float64(len(byes))) } return nil } func (g *gcsClient) Initialize(ctx context.Context, backupID string) error { key := "access-check" if err := g.PutObject(ctx, backupID, key, []byte("")); err != nil { return errors.Wrap(err, "failed to access-check gcs backup module") } bucket, err := g.findBucket(ctx) if err != nil { return errors.Wrap(err, "find bucket") } objectName := g.makeObjectName(backupID, key) if err := bucket.Object(objectName).Delete(ctx); err != nil { return errors.Wrap(err, "failed to remove access-check gcs backup module") } return nil } // WriteToFile downloads an object and store its content in destPath // The file destPath will be created if it doesn't exit func (g *gcsClient) WriteToFile(ctx context.Context, backupID, key, destPath string) (err error) { bucket, err := g.findBucket(ctx) if err != nil { return fmt.Errorf("find bucket: %w", err) } // validate destination path if st, err := os.Stat(destPath); err == nil { if st.IsDir() { return fmt.Errorf("file is a directory") } } else if !os.IsNotExist(err) { return err } // create empty file dir := path.Dir(destPath) if err := os.MkdirAll(dir, os.ModePerm); err != nil { return fmt.Errorf("os.mkdir %q: %w", dir, err) } file, err := os.Create(destPath) if err != nil { return fmt.Errorf("os.create %q: %w", destPath, err) } // make sure to close and delete in case we return early closeAndRemove := true defer func() { if closeAndRemove { file.Close() os.Remove(destPath) } }() // create reader object := g.makeObjectName(backupID, key) rc, err := bucket.Object(object).NewReader(ctx) if err != nil { return fmt.Errorf("find object %q: %w", object, err) } defer rc.Close() // transfer content to the file if _, err := io.Copy(file, rc); err != nil { return fmt.Errorf("io.Copy:%q %q: %w", destPath, object, err) } closeAndRemove = false if err = file.Close(); err != nil { return fmt.Errorf("f.Close %q: %w", destPath, err) } return nil } func (g *gcsClient) Write(ctx context.Context, backupID, key string, r io.ReadCloser) (int64, error) { defer r.Close() bucket, err := g.findBucket(ctx) if err != nil { return 0, fmt.Errorf("find bucket: %w", err) } // create a new writer path := g.makeObjectName(backupID, key) writer := bucket.Object(path).NewWriter(ctx) writer.ContentType = "application/octet-stream" writer.Metadata = map[string]string{"backup-id": backupID} // if we return early make sure writer is closed closeWriter := true defer func() { if closeWriter { writer.Close() } }() // copy written, err := io.Copy(writer, r) if err != nil { return 0, fmt.Errorf("io.copy %q: %w", path, err) } closeWriter = false if err := writer.Close(); err != nil { return 0, fmt.Errorf("writer.close %q: %w", path, err) } if metric, err := monitoring.GetMetrics().BackupStoreDataTransferred. GetMetricWithLabelValues(Name, "class"); err == nil { metric.Add(float64(written)) } return written, nil } func (g *gcsClient) Read(ctx context.Context, backupID, key string, w io.WriteCloser) (int64, error) { defer w.Close() bucket, err := g.findBucket(ctx) if err != nil { err = fmt.Errorf("find bucket: %w", err) if errors.Is(err, storage.ErrObjectNotExist) { err = backup.NewErrNotFound(err) } return 0, err } // create reader path := g.makeObjectName(backupID, key) rc, err := bucket.Object(path).NewReader(ctx) if err != nil { err = fmt.Errorf("find object %s: %v", path, err) if errors.Is(err, storage.ErrObjectNotExist) { err = backup.NewErrNotFound(err) } return 0, err } defer rc.Close() // copy read, err := io.Copy(w, rc) if err != nil { return read, fmt.Errorf("io.copy %q: %w", path, err) } if metric, err := monitoring.GetMetrics().BackupRestoreDataTransferred. GetMetricWithLabelValues(Name, "class"); err == nil { metric.Add(float64(float64(read))) } return read, nil } func (g *gcsClient) SourceDataPath() string { return g.dataPath } ```
```javascript module.exports = { experimental: { extensionAlias: { '.js': ['.ts', '.tsx', '.js', '.jsx'], }, }, } ```
```groff CONFIG_ALIGNMENT_TRAP=y CONFIG_ARCH_32BIT_OFF_T=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_KEEP_MEMBLOCK=y CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y CONFIG_ARCH_MULTIPLATFORM=y CONFIG_ARCH_MULTI_CPU_AUTO=y # CONFIG_ARCH_MULTI_V4 is not set # CONFIG_ARCH_MULTI_V4T is not set CONFIG_ARCH_MULTI_V4_V5=y CONFIG_ARCH_MULTI_V5=y CONFIG_ARCH_MXS=y CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y CONFIG_ARCH_SELECT_MEMORY_MODEL=y CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_STACKWALK=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARM=y CONFIG_ARM_AMBA=y CONFIG_ARM_APPENDED_DTB=y CONFIG_ARM_ATAG_DTB_COMPAT=y CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER=y CONFIG_ARM_CPU_SUSPEND=y CONFIG_ARM_HAS_GROUP_RELOCS=y CONFIG_ARM_L1_CACHE_SHIFT=5 CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_ARM_THUMB=y CONFIG_ARM_UNWIND=y CONFIG_ATAGS=y CONFIG_AUTO_ZRELADDR=y CONFIG_BINFMT_FLAT_ARGVP_ENVP_ON_STACK=y CONFIG_BLK_PM=y CONFIG_BUFFER_HEAD=y CONFIG_CC_HAVE_STACKPROTECTOR_TLS=y CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5" CONFIG_CC_NO_ARRAY_BOUNDS=y CONFIG_CLKSRC_MMIO=y CONFIG_CLONE_BACKWARDS=y CONFIG_CMDLINE="console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait" CONFIG_CMDLINE_FROM_BOOTLOADER=y CONFIG_COMMON_CLK=y CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1 CONFIG_COMPAT_32BIT_TIME=y CONFIG_COREDUMP=y CONFIG_CPU_32v5=y CONFIG_CPU_ABRT_EV5TJ=y CONFIG_CPU_ARM926T=y # CONFIG_CPU_CACHE_ROUND_ROBIN is not set CONFIG_CPU_CACHE_VIVT=y CONFIG_CPU_COPY_V4WB=y CONFIG_CPU_CP15=y CONFIG_CPU_CP15_MMU=y # CONFIG_CPU_DCACHE_WRITETHROUGH is not set CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_GOV_LADDER=y CONFIG_CPU_IDLE_GOV_MENU=y CONFIG_CPU_LITTLE_ENDIAN=y CONFIG_CPU_PABRT_LEGACY=y CONFIG_CPU_PM=y CONFIG_CPU_THUMB_CAPABLE=y CONFIG_CPU_TLB_V4WBI=y CONFIG_CPU_USE_DOMAINS=y CONFIG_CRC16=y CONFIG_CROSS_MEMORY_ATTACH=y CONFIG_CRYPTO_CBC=y CONFIG_CRYPTO_CRC32C=y CONFIG_CRYPTO_DEV_MXS_DCP=y CONFIG_CRYPTO_ECB=y CONFIG_CRYPTO_HW=y CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y CONFIG_CRYPTO_LIB_GF128MUL=y CONFIG_CRYPTO_LIB_SHA1=y CONFIG_CRYPTO_LIB_UTILS=y CONFIG_DEBUG_ALIGN_RODATA=y CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S" CONFIG_DMADEVICES=y CONFIG_DMA_ENGINE=y CONFIG_DMA_OF=y CONFIG_DMA_OPS=y CONFIG_DTC=y CONFIG_EDAC_ATOMIC_SCRUB=y CONFIG_EDAC_SUPPORT=y CONFIG_EXCLUSIVE_SYSTEM_RAM=y CONFIG_EXT4_FS=y CONFIG_EXTCON=y CONFIG_FEC=y CONFIG_FIXED_PHY=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_FS_IOMAP=y CONFIG_FS_MBCACHE=y CONFIG_FUNCTION_ALIGNMENT=0 CONFIG_FWNODE_MDIO=y CONFIG_FW_LOADER_PAGED_BUF=y CONFIG_FW_LOADER_SYSFS=y CONFIG_GCC11_NO_ARRAY_BOUNDS=y CONFIG_GENERIC_ALLOCATOR=y CONFIG_GENERIC_ATOMIC64=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CPU_AUTOPROBE=y CONFIG_GENERIC_EARLY_IOREMAP=y CONFIG_GENERIC_IDLE_POLL_SETUP=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_GENERIC_IRQ_MULTI_HANDLER=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_SHOW_LEVEL=y CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED=y CONFIG_GENERIC_PCI_IOMAP=y CONFIG_GENERIC_SCHED_CLOCK=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_GENERIC_STRNCPY_FROM_USER=y CONFIG_GENERIC_STRNLEN_USER=y # CONFIG_GIANFAR is not set CONFIG_GLOB=y CONFIG_GPIO_CDEV=y CONFIG_GPIO_GENERIC=y CONFIG_GPIO_GENERIC_PLATFORM=y CONFIG_GPIO_MXS=y CONFIG_HARDIRQS_SW_RESEND=y CONFIG_HAS_DMA=y CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT=y CONFIG_HAS_IOPORT_MAP=y CONFIG_HID_SUPPORT=y CONFIG_HZ_FIXED=0 CONFIG_HZ_PERIODIC=y CONFIG_I2C=y CONFIG_I2C_ALGOBIT=y CONFIG_I2C_ALGOPCA=y CONFIG_I2C_ALGOPCF=y CONFIG_I2C_BOARDINFO=y CONFIG_I2C_CHARDEV=y CONFIG_I2C_COMPAT=y CONFIG_I2C_MUX=y CONFIG_I2C_MUX_PINCTRL=y CONFIG_I2C_MXS=y CONFIG_IIO=y CONFIG_IIO_BUFFER=y CONFIG_IIO_KFIFO_BUF=y CONFIG_IIO_SYSFS_TRIGGER=y CONFIG_IIO_TRIGGER=y # CONFIG_IIO_TRIGGERED_BUFFER is not set CONFIG_INITRAMFS_SOURCE="" CONFIG_INPUT=y CONFIG_IRQCHIP=y CONFIG_IRQSTACKS=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_IRQ_MXS=y CONFIG_IRQ_WORK=y # CONFIG_ISDN is not set CONFIG_JBD2=y CONFIG_LIBFDT=y CONFIG_LOCK_DEBUGGING_SUPPORT=y CONFIG_MDIO_BUS=y CONFIG_MDIO_DEVICE=y CONFIG_MDIO_DEVRES=y CONFIG_MEMFD_CREATE=y CONFIG_MFD_CORE=y CONFIG_MFD_MXS_LRADC=y CONFIG_MIGRATION=y CONFIG_MMC=y CONFIG_MMC_BLOCK=y CONFIG_MMC_MXS=y CONFIG_MMU_LAZY_TLB_REFCOUNT=y CONFIG_MODULES_USE_ELF_REL=y CONFIG_MXS_DMA=y # CONFIG_MXS_LRADC_ADC is not set CONFIG_MXS_TIMER=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_KUSER_HELPERS=y CONFIG_NEED_PER_CPU_KM=y CONFIG_NET_EGRESS=y CONFIG_NET_INGRESS=y CONFIG_NET_PTP_CLASSIFY=y CONFIG_NET_SELFTESTS=y CONFIG_NET_XGRESS=y CONFIG_NLS=y CONFIG_NVMEM=y CONFIG_NVMEM_LAYOUTS=y CONFIG_NVMEM_MXS_OCOTP=y CONFIG_OF=y CONFIG_OF_ADDRESS=y CONFIG_OF_EARLY_FLATTREE=y CONFIG_OF_FLATTREE=y CONFIG_OF_GPIO=y CONFIG_OF_IRQ=y CONFIG_OF_KOBJ=y CONFIG_OF_MDIO=y CONFIG_OLD_SIGACTION=y CONFIG_OLD_SIGSUSPEND3=y CONFIG_PAGE_OFFSET=0xC0000000 CONFIG_PAGE_POOL=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y CONFIG_PERF_USE_VMALLOC=y CONFIG_PGTABLE_LEVELS=2 CONFIG_PHYLIB=y CONFIG_PHYLIB_LEDS=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX23=y CONFIG_PINCTRL_IMX28=y CONFIG_PINCTRL_MXS=y # CONFIG_PINCTRL_SINGLE is not set CONFIG_PM=y CONFIG_PM_CLK=y CONFIG_POWER_SUPPLY=y CONFIG_PPS=y CONFIG_PREEMPT_NONE_BUILD=y CONFIG_PTP_1588_CLOCK=y CONFIG_PTP_1588_CLOCK_OPTIONAL=y CONFIG_RATIONAL=y CONFIG_REGULATOR=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_GPIO=y CONFIG_RESET_CONTROLLER=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_STMP=y CONFIG_RTC_I2C_AND_SPI=y CONFIG_RTC_MC146818_LIB=y # CONFIG_SERIAL_8250 is not set CONFIG_SERIAL_AMBA_PL011=y CONFIG_SERIAL_AMBA_PL011_CONSOLE=y CONFIG_SERIAL_MCTRL_GPIO=y CONFIG_SERIAL_MXS_AUART=y CONFIG_SERIAL_MXS_AUART_CONSOLE=y CONFIG_SMSC_PHY=y CONFIG_SOC_BUS=y CONFIG_SOC_IMX23=y CONFIG_SOC_IMX28=y CONFIG_SOFTIRQ_ON_OWN_STACK=y CONFIG_SPARSE_IRQ=y CONFIG_SPI=y CONFIG_SPI_MASTER=y CONFIG_SPI_MXS=y CONFIG_SPLIT_PTLOCK_CPUS=999999 CONFIG_STMP3XXX_RTC_WATCHDOG=y CONFIG_STMP_DEVICE=y CONFIG_SWPHY=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y CONFIG_THREAD_INFO_IN_TASK=y CONFIG_TICK_CPU_ACCOUNTING=y CONFIG_TIMER_OF=y CONFIG_TIMER_PROBE=y CONFIG_TINY_SRCU=y CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h" CONFIG_UNWINDER_ARM=y CONFIG_USB=y CONFIG_USB_CHIPIDEA=y CONFIG_USB_CHIPIDEA_HOST=y CONFIG_USB_CHIPIDEA_IMX=y CONFIG_USB_CHIPIDEA_UDC=y CONFIG_USB_COMMON=y CONFIG_USB_EHCI_HCD=y # CONFIG_USB_EHCI_HCD_PLATFORM is not set CONFIG_USB_GADGET=y CONFIG_USB_MXS_PHY=y CONFIG_USB_OTG=y CONFIG_USB_PHY=y CONFIG_USB_ROLE_SWITCH=y CONFIG_USB_SUPPORT=y CONFIG_USB_ULPI_BUS=y CONFIG_USE_OF=y # CONFIG_VFP is not set CONFIG_WATCHDOG_CORE=y CONFIG_XZ_DEC_ARM=y CONFIG_XZ_DEC_BCJ=y CONFIG_ZBOOT_ROM_BSS=0 CONFIG_ZBOOT_ROM_TEXT=0 ```
```java // 2016 and later: Unicode, Inc. and others. /* ******************************************************************************* * others. All Rights Reserved. ******************************************************************************* */ package com.ibm.icu.dev.test.format; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.lang.reflect.Field; import java.text.FieldPosition; import java.text.ParseException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Set; import java.util.TreeMap; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import com.ibm.icu.dev.test.CoreTestFmwk; import com.ibm.icu.dev.test.serializable.FormatHandler; import com.ibm.icu.dev.test.serializable.SerializableTestUtility; import com.ibm.icu.impl.Pair; import com.ibm.icu.impl.Utility; import com.ibm.icu.impl.units.MeasureUnitImpl; import com.ibm.icu.math.BigDecimal; import com.ibm.icu.text.MeasureFormat; import com.ibm.icu.text.MeasureFormat.FormatWidth; import com.ibm.icu.text.NumberFormat; import com.ibm.icu.util.Currency; import com.ibm.icu.util.CurrencyAmount; import com.ibm.icu.util.Measure; import com.ibm.icu.util.MeasureUnit; import com.ibm.icu.util.NoUnit; import com.ibm.icu.util.TimeUnit; import com.ibm.icu.util.TimeUnitAmount; import com.ibm.icu.util.ULocale; /** * See path_to_url * for information on how to update with each new release. * @author markdavis */ @RunWith(JUnit4.class) public class MeasureUnitTest extends CoreTestFmwk { static class OrderedPair<F extends Comparable, S extends Comparable> extends Pair<F, S> implements Comparable<OrderedPair<F, S>> { OrderedPair(F first, S second) { super(first, second); } public static <F extends Comparable, S extends Comparable> OrderedPair<F, S> of(F first, S second) { if (first == null || second == null) { throw new IllegalArgumentException("OrderedPair.of requires non null values."); } return new OrderedPair<>(first, second); } @Override public int compareTo(OrderedPair<F, S> other) { int result = first.compareTo(other.first); if (result != 0) { return result; } return second.compareTo(other.second); } } private static final String[] DRAFT_VERSIONS = {"75", "76"}; private static final HashSet<String> DRAFT_VERSION_SET = new HashSet<>(); private static final HashSet<String> TIME_CODES = new HashSet<>(); private static final String[][] JAVA_VERSIONS = { {"G_FORCE", "53"}, {"DEGREE", "53"}, {"ARC_MINUTE", "53"}, {"ARC_SECOND", "53"}, {"ACRE", "53"}, {"HECTARE", "53"}, {"SQUARE_FOOT", "53"}, {"SQUARE_KILOMETER", "53"}, {"SQUARE_METER", "53"}, {"SQUARE_MILE", "53"}, {"MILLISECOND", "53"}, {"CENTIMETER", "53"}, {"FOOT", "53"}, {"INCH", "53"}, {"KILOMETER", "53"}, {"LIGHT_YEAR", "53"}, {"METER", "53"}, {"MILE", "53"}, {"MILLIMETER", "53"}, {"PICOMETER", "53"}, {"YARD", "53"}, {"GRAM", "53"}, {"KILOGRAM", "53"}, {"OUNCE", "53"}, {"POUND", "53"}, {"HORSEPOWER", "53"}, {"KILOWATT", "53"}, {"WATT", "53"}, {"HECTOPASCAL", "53"}, {"INCH_HG", "53"}, {"MILLIBAR", "53"}, {"KILOMETER_PER_HOUR", "53"}, {"METER_PER_SECOND", "53"}, {"MILE_PER_HOUR", "53"}, {"CELSIUS", "53"}, {"FAHRENHEIT", "53"}, {"CUBIC_KILOMETER", "53"}, {"CUBIC_MILE", "53"}, {"LITER", "53"}, {"YEAR", "53"}, {"MONTH", "53"}, {"WEEK", "53"}, {"DAY", "53"}, {"HOUR", "53"}, {"MINUTE", "53"}, {"SECOND", "53"}, {"METER_PER_SECOND_SQUARED", "54"}, {"RADIAN", "54"}, {"SQUARE_CENTIMETER", "54"}, {"SQUARE_INCH", "54"}, {"SQUARE_YARD", "54"}, {"LITER_PER_KILOMETER", "54"}, {"MILE_PER_GALLON", "54"}, {"BIT", "54"}, {"BYTE", "54"}, {"GIGABIT", "54"}, {"GIGABYTE", "54"}, {"KILOBIT", "54"}, {"KILOBYTE", "54"}, {"MEGABIT", "54"}, {"MEGABYTE", "54"}, {"TERABIT", "54"}, {"TERABYTE", "54"}, {"MICROSECOND", "54"}, {"NANOSECOND", "54"}, {"AMPERE", "54"}, {"MILLIAMPERE", "54"}, {"OHM", "54"}, {"VOLT", "54"}, {"CALORIE", "54"}, {"FOODCALORIE", "54"}, {"JOULE", "54"}, {"KILOCALORIE", "54"}, {"KILOJOULE", "54"}, {"KILOWATT_HOUR", "54"}, {"GIGAHERTZ", "54"}, {"HERTZ", "54"}, {"KILOHERTZ", "54"}, {"MEGAHERTZ", "54"}, {"ASTRONOMICAL_UNIT", "54"}, {"DECIMETER", "54"}, {"FATHOM", "54"}, {"FURLONG", "54"}, {"MICROMETER", "54"}, {"NANOMETER", "54"}, {"NAUTICAL_MILE", "54"}, {"PARSEC", "54"}, {"LUX", "54"}, {"CARAT", "54"}, {"METRIC_TON", "54"}, {"MICROGRAM", "54"}, {"MILLIGRAM", "54"}, {"OUNCE_TROY", "54"}, {"STONE", "54"}, {"TON", "54"}, {"GIGAWATT", "54"}, {"MEGAWATT", "54"}, {"MILLIWATT", "54"}, {"MILLIMETER_OF_MERCURY", "54"}, {"POUND_PER_SQUARE_INCH", "54"}, {"KARAT", "54"}, {"KELVIN", "54"}, {"ACRE_FOOT", "54"}, {"BUSHEL", "54"}, {"CENTILITER", "54"}, {"CUBIC_CENTIMETER", "54"}, {"CUBIC_FOOT", "54"}, {"CUBIC_INCH", "54"}, {"CUBIC_METER", "54"}, {"CUBIC_YARD", "54"}, {"CUP", "54"}, {"DECILITER", "54"}, {"FLUID_OUNCE", "54"}, {"GALLON", "54"}, {"HECTOLITER", "54"}, {"MEGALITER", "54"}, {"MILLILITER", "54"}, {"PINT", "54"}, {"QUART", "54"}, {"TABLESPOON", "54"}, {"TEASPOON", "54"}, {"GENERIC_TEMPERATURE", "56"}, {"REVOLUTION_ANGLE", "56"}, {"LITER_PER_100KILOMETERS", "56"}, {"CENTURY", "56"}, {"MILE_SCANDINAVIAN", "56"}, {"KNOT", "56"}, {"CUP_METRIC", "56"}, {"PINT_METRIC", "56"}, {"MILLIGRAM_PER_DECILITER", "57"}, {"MILLIMOLE_PER_LITER", "57"}, {"PART_PER_MILLION", "57"}, {"MILE_PER_GALLON_IMPERIAL", "57"}, {"GALLON_IMPERIAL", "57"}, {"POINT", "59"}, {"PERCENT", "63"}, {"PERMILLE", "63"}, {"PETABYTE", "63"}, {"ATMOSPHERE", "63"}, {"DUNAM", "64"}, {"MOLE", "64"}, {"PERMYRIAD", "64"}, {"DAY_PERSON", "64"}, {"MONTH_PERSON", "64"}, {"WEEK_PERSON", "64"}, {"YEAR_PERSON", "64"}, {"BRITISH_THERMAL_UNIT", "64"}, {"ELECTRONVOLT", "64"}, {"NEWTON", "64"}, {"POUND_FORCE", "64"}, {"SOLAR_RADIUS", "64"}, {"SOLAR_LUMINOSITY", "64"}, {"DALTON", "64"}, {"EARTH_MASS", "64"}, {"SOLAR_MASS", "64"}, {"KILOPASCAL", "64"}, {"MEGAPASCAL", "64"}, {"NEWTON_METER", "64"}, {"POUND_FOOT", "64"}, {"BARREL", "64"}, {"FLUID_OUNCE_IMPERIAL", "64"}, {"DECADE", "65"}, {"THERM_US", "65"}, {"DOT_PER_CENTIMETER", "65"}, {"DOT_PER_INCH", "65"}, {"EM", "65"}, {"MEGAPIXEL", "65"}, {"PIXEL", "65"}, {"PIXEL_PER_CENTIMETER", "65"}, {"PIXEL_PER_INCH", "65"}, {"BAR", "65"}, {"PASCAL", "65"}, {"DOT", "68"}, {"EARTH_RADIUS", "68"}, {"CANDELA", "68"}, {"LUMEN", "68"}, {"GRAIN", "68"}, {"DESSERT_SPOON", "68"}, {"DESSERT_SPOON_IMPERIAL", "68"}, {"DRAM", "68"}, {"DROP", "68"}, {"JIGGER", "68"}, {"PINCH", "68"}, {"QUART_IMPERIAL", "68"}, {"MILLIGRAM_OFGLUCOSE_PER_DECILITER", "69"}, {"ITEM", "70"}, {"KILOWATT_HOUR_PER_100_KILOMETER", "70"}, {"QUARTER", "72"}, {"TONNE", "72"}, {"BEAUFORT", "73"}, {"GASOLINE_ENERGY_DENSITY", "74"}, }; private static final HashMap<String, String> JAVA_VERSION_MAP = new HashMap<>(); // modify certain CLDR unit names before generating functions // that create/get the corresponding MeasureUnit objects private static final Map<String,String> CLDR_NAME_REMAP = new HashMap(); static { TIME_CODES.add("year"); TIME_CODES.add("month"); TIME_CODES.add("week"); TIME_CODES.add("day"); TIME_CODES.add("hour"); TIME_CODES.add("minute"); TIME_CODES.add("second"); for (String verNum : DRAFT_VERSIONS) { DRAFT_VERSION_SET.add(verNum); } for (String[] funcNameAndVersion : JAVA_VERSIONS) { JAVA_VERSION_MAP.put(funcNameAndVersion[0], funcNameAndVersion[1]); } // CLDR_NAME_REMAP entries // The first two fix overly-generic CLDR unit names CLDR_NAME_REMAP.put("revolution", "revolution-angle"); CLDR_NAME_REMAP.put("generic", "generic-temperature"); // The next seven map updated CLDR 37 names back to their // old form in order to preserve the old function names CLDR_NAME_REMAP.put("meter-per-square-second", "meter-per-second-squared"); CLDR_NAME_REMAP.put("permillion", "part-per-million"); CLDR_NAME_REMAP.put("liter-per-100-kilometer", "liter-per-100kilometers"); CLDR_NAME_REMAP.put("inch-ofhg", "inch-hg"); CLDR_NAME_REMAP.put("millimeter-ofhg", "millimeter-of-mercury"); CLDR_NAME_REMAP.put("pound-force-per-square-inch", "pound-per-square-inch"); CLDR_NAME_REMAP.put("pound-force-foot", "pound-foot"); } @Test public void testZZZ() { // various generateXXX calls go here, see // docs/processes/release/tasks/updating-measure-unit.md // use this test to run each of the following in succession //generateConstants("76"); // for MeasureUnit.java, update generated MeasureUnit constants //generateBackwardCompatibilityTest("76"); // for MeasureUnitTest.java, create TestCompatible74 //generateCXXHConstants("76"); // for measunit.h, update generated createXXX methods generateCXXConstants(); // for measunit.cpp, update generated code //generateCXXBackwardCompatibilityTest("74"); // for measfmttest.cpp, create TestCompatible74 //updateJAVAVersions("74"); // for MeasureUnitTest.java, JAVA_VERSIONS } @Test public void TestCompatible53() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.DEGREE, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.ACRE, MeasureUnit.HECTARE, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.MILLISECOND, MeasureUnit.CENTIMETER, MeasureUnit.FOOT, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MILE, MeasureUnit.MILLIMETER, MeasureUnit.PICOMETER, MeasureUnit.YARD, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.OUNCE, MeasureUnit.POUND, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.WATT, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.MILLIBAR, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_MILE, MeasureUnit.LITER, MeasureUnit.YEAR, MeasureUnit.MONTH, MeasureUnit.WEEK, MeasureUnit.DAY, MeasureUnit.HOUR, MeasureUnit.MINUTE, MeasureUnit.SECOND, }; assertEquals("", 46, units.length); } @Test public void TestCompatible54() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.ACRE, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.DAY, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.YEAR, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.CALORIE, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.YARD, MeasureUnit.LUX, MeasureUnit.CARAT, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KARAT, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.KELVIN, MeasureUnit.ACRE_FOOT, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.DECILITER, MeasureUnit.FLUID_OUNCE, MeasureUnit.GALLON, MeasureUnit.HECTOLITER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINT, MeasureUnit.QUART, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 121, units.length); } @Test public void TestCompatible55() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.ACRE, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.DAY, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.YEAR, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.CALORIE, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.YARD, MeasureUnit.LUX, MeasureUnit.CARAT, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KARAT, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.ACRE_FOOT, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.DECILITER, MeasureUnit.FLUID_OUNCE, MeasureUnit.GALLON, MeasureUnit.HECTOLITER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINT, MeasureUnit.QUART, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 122, units.length); } @Test public void TestCompatible56() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.YEAR, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.CALORIE, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.YARD, MeasureUnit.LUX, MeasureUnit.CARAT, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KARAT, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.ACRE_FOOT, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.FLUID_OUNCE, MeasureUnit.GALLON, MeasureUnit.HECTOLITER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 129, units.length); } @Test public void TestCompatible57() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.PART_PER_MILLION, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.YEAR, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.CALORIE, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.YARD, MeasureUnit.LUX, MeasureUnit.CARAT, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.ACRE_FOOT, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.FLUID_OUNCE, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 134, units.length); } @Test public void TestCompatible58() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.PART_PER_MILLION, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, // MeasureUnit.EAST, // MeasureUnit.NORTH, // MeasureUnit.SOUTH, // MeasureUnit.WEST, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.YEAR, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.CALORIE, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.YARD, MeasureUnit.LUX, MeasureUnit.CARAT, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.ACRE_FOOT, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.FLUID_OUNCE, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 134, units.length); } @Test public void TestCompatible59() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.PART_PER_MILLION, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.YEAR, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.CALORIE, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.YARD, MeasureUnit.LUX, MeasureUnit.CARAT, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.ACRE_FOOT, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.FLUID_OUNCE, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 135, units.length); } // Note that TestCompatible60(), TestCompatible61(), TestCompatible62() // would be the same as TestCompatible59(), no need to add them. @Test public void TestCompatible63() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.YEAR, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.CALORIE, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.YARD, MeasureUnit.LUX, MeasureUnit.CARAT, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.ACRE_FOOT, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.FLUID_OUNCE, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 139, units.length); } @Test public void TestCompatible64() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.DUNAM, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.MOLE, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.PERMYRIAD, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.DAY_PERSON, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.MONTH_PERSON, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.WEEK_PERSON, MeasureUnit.YEAR, MeasureUnit.YEAR_PERSON, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.BRITISH_THERMAL_UNIT, MeasureUnit.CALORIE, MeasureUnit.ELECTRONVOLT, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.NEWTON, MeasureUnit.POUND_FORCE, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.SOLAR_RADIUS, MeasureUnit.YARD, MeasureUnit.LUX, MeasureUnit.SOLAR_LUMINOSITY, MeasureUnit.CARAT, MeasureUnit.DALTON, MeasureUnit.EARTH_MASS, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.SOLAR_MASS, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.KILOPASCAL, MeasureUnit.MEGAPASCAL, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.NEWTON_METER, MeasureUnit.POUND_FOOT, MeasureUnit.ACRE_FOOT, MeasureUnit.BARREL, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.FLUID_OUNCE, MeasureUnit.FLUID_OUNCE_IMPERIAL, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 161, units.length); } @Test public void TestCompatible65() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.DUNAM, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.MOLE, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.PERMYRIAD, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.DAY_PERSON, MeasureUnit.DECADE, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.MONTH_PERSON, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.WEEK_PERSON, MeasureUnit.YEAR, MeasureUnit.YEAR_PERSON, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.BRITISH_THERMAL_UNIT, MeasureUnit.CALORIE, MeasureUnit.ELECTRONVOLT, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.THERM_US, MeasureUnit.NEWTON, MeasureUnit.POUND_FORCE, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.DOT_PER_CENTIMETER, MeasureUnit.DOT_PER_INCH, MeasureUnit.EM, MeasureUnit.MEGAPIXEL, MeasureUnit.PIXEL, MeasureUnit.PIXEL_PER_CENTIMETER, MeasureUnit.PIXEL_PER_INCH, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.SOLAR_RADIUS, MeasureUnit.YARD, MeasureUnit.LUX, MeasureUnit.SOLAR_LUMINOSITY, MeasureUnit.CARAT, MeasureUnit.DALTON, MeasureUnit.EARTH_MASS, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.SOLAR_MASS, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.BAR, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.KILOPASCAL, MeasureUnit.MEGAPASCAL, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.PASCAL, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.NEWTON_METER, MeasureUnit.POUND_FOOT, MeasureUnit.ACRE_FOOT, MeasureUnit.BARREL, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.FLUID_OUNCE, MeasureUnit.FLUID_OUNCE_IMPERIAL, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 172, units.length); } @Test public void TestCompatible68() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.DUNAM, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.MOLE, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERMYRIAD, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.DAY_PERSON, MeasureUnit.DECADE, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.MONTH_PERSON, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.WEEK_PERSON, MeasureUnit.YEAR, MeasureUnit.YEAR_PERSON, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.BRITISH_THERMAL_UNIT, MeasureUnit.CALORIE, MeasureUnit.ELECTRONVOLT, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.THERM_US, MeasureUnit.NEWTON, MeasureUnit.POUND_FORCE, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.DOT, MeasureUnit.DOT_PER_CENTIMETER, MeasureUnit.DOT_PER_INCH, MeasureUnit.EM, MeasureUnit.MEGAPIXEL, MeasureUnit.PIXEL, MeasureUnit.PIXEL_PER_CENTIMETER, MeasureUnit.PIXEL_PER_INCH, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.EARTH_RADIUS, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.SOLAR_RADIUS, MeasureUnit.YARD, MeasureUnit.CANDELA, MeasureUnit.LUMEN, MeasureUnit.LUX, MeasureUnit.SOLAR_LUMINOSITY, MeasureUnit.CARAT, MeasureUnit.DALTON, MeasureUnit.EARTH_MASS, MeasureUnit.GRAIN, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.SOLAR_MASS, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.BAR, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.KILOPASCAL, MeasureUnit.MEGAPASCAL, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.PASCAL, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.NEWTON_METER, MeasureUnit.POUND_FOOT, MeasureUnit.ACRE_FOOT, MeasureUnit.BARREL, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.DESSERT_SPOON, MeasureUnit.DESSERT_SPOON_IMPERIAL, MeasureUnit.DRAM, MeasureUnit.DROP, MeasureUnit.FLUID_OUNCE, MeasureUnit.FLUID_OUNCE_IMPERIAL, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.JIGGER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINCH, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.QUART_IMPERIAL, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 184, units.length); } @Test public void TestCompatible69() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.DUNAM, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_OFGLUCOSE_PER_DECILITER, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.MOLE, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERMYRIAD, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.DAY_PERSON, MeasureUnit.DECADE, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.MONTH_PERSON, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.WEEK_PERSON, MeasureUnit.YEAR, MeasureUnit.YEAR_PERSON, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.BRITISH_THERMAL_UNIT, MeasureUnit.CALORIE, MeasureUnit.ELECTRONVOLT, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.THERM_US, MeasureUnit.NEWTON, MeasureUnit.POUND_FORCE, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.DOT, MeasureUnit.DOT_PER_CENTIMETER, MeasureUnit.DOT_PER_INCH, MeasureUnit.EM, MeasureUnit.MEGAPIXEL, MeasureUnit.PIXEL, MeasureUnit.PIXEL_PER_CENTIMETER, MeasureUnit.PIXEL_PER_INCH, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.EARTH_RADIUS, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.SOLAR_RADIUS, MeasureUnit.YARD, MeasureUnit.CANDELA, MeasureUnit.LUMEN, MeasureUnit.LUX, MeasureUnit.SOLAR_LUMINOSITY, MeasureUnit.CARAT, MeasureUnit.DALTON, MeasureUnit.EARTH_MASS, MeasureUnit.GRAIN, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.SOLAR_MASS, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.BAR, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.KILOPASCAL, MeasureUnit.MEGAPASCAL, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.PASCAL, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.NEWTON_METER, MeasureUnit.POUND_FOOT, MeasureUnit.ACRE_FOOT, MeasureUnit.BARREL, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.DESSERT_SPOON, MeasureUnit.DESSERT_SPOON_IMPERIAL, MeasureUnit.DRAM, MeasureUnit.DROP, MeasureUnit.FLUID_OUNCE, MeasureUnit.FLUID_OUNCE_IMPERIAL, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.JIGGER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINCH, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.QUART_IMPERIAL, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 185, units.length); } @Test public void TestCompatible70() { // TestCompatible71 would be identical MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.DUNAM, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.ITEM, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_OFGLUCOSE_PER_DECILITER, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.MOLE, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERMYRIAD, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.DAY_PERSON, MeasureUnit.DECADE, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.MONTH_PERSON, MeasureUnit.NANOSECOND, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.WEEK_PERSON, MeasureUnit.YEAR, MeasureUnit.YEAR_PERSON, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.BRITISH_THERMAL_UNIT, MeasureUnit.CALORIE, MeasureUnit.ELECTRONVOLT, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.THERM_US, MeasureUnit.KILOWATT_HOUR_PER_100_KILOMETER, MeasureUnit.NEWTON, MeasureUnit.POUND_FORCE, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.DOT, MeasureUnit.DOT_PER_CENTIMETER, MeasureUnit.DOT_PER_INCH, MeasureUnit.EM, MeasureUnit.MEGAPIXEL, MeasureUnit.PIXEL, MeasureUnit.PIXEL_PER_CENTIMETER, MeasureUnit.PIXEL_PER_INCH, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.EARTH_RADIUS, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.SOLAR_RADIUS, MeasureUnit.YARD, MeasureUnit.CANDELA, MeasureUnit.LUMEN, MeasureUnit.LUX, MeasureUnit.SOLAR_LUMINOSITY, MeasureUnit.CARAT, MeasureUnit.DALTON, MeasureUnit.EARTH_MASS, MeasureUnit.GRAIN, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.METRIC_TON, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.SOLAR_MASS, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.BAR, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.KILOPASCAL, MeasureUnit.MEGAPASCAL, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.PASCAL, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.NEWTON_METER, MeasureUnit.POUND_FOOT, MeasureUnit.ACRE_FOOT, MeasureUnit.BARREL, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.DESSERT_SPOON, MeasureUnit.DESSERT_SPOON_IMPERIAL, MeasureUnit.DRAM, MeasureUnit.DROP, MeasureUnit.FLUID_OUNCE, MeasureUnit.FLUID_OUNCE_IMPERIAL, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.JIGGER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINCH, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.QUART_IMPERIAL, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 187, units.length); } // TestCompatible71 would be identical to TestCompatible70, // no need to add it @Test public void TestCompatible72() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.DUNAM, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.ITEM, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_OFGLUCOSE_PER_DECILITER, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.MOLE, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERMYRIAD, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.DAY_PERSON, MeasureUnit.DECADE, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.MONTH_PERSON, MeasureUnit.NANOSECOND, MeasureUnit.QUARTER, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.WEEK_PERSON, MeasureUnit.YEAR, MeasureUnit.YEAR_PERSON, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.BRITISH_THERMAL_UNIT, MeasureUnit.CALORIE, MeasureUnit.ELECTRONVOLT, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.THERM_US, MeasureUnit.KILOWATT_HOUR_PER_100_KILOMETER, MeasureUnit.NEWTON, MeasureUnit.POUND_FORCE, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.DOT, MeasureUnit.DOT_PER_CENTIMETER, MeasureUnit.DOT_PER_INCH, MeasureUnit.EM, MeasureUnit.MEGAPIXEL, MeasureUnit.PIXEL, MeasureUnit.PIXEL_PER_CENTIMETER, MeasureUnit.PIXEL_PER_INCH, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.EARTH_RADIUS, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.SOLAR_RADIUS, MeasureUnit.YARD, MeasureUnit.CANDELA, MeasureUnit.LUMEN, MeasureUnit.LUX, MeasureUnit.SOLAR_LUMINOSITY, MeasureUnit.CARAT, MeasureUnit.DALTON, MeasureUnit.EARTH_MASS, MeasureUnit.GRAIN, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.SOLAR_MASS, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.TONNE, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.BAR, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.KILOPASCAL, MeasureUnit.MEGAPASCAL, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.PASCAL, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.NEWTON_METER, MeasureUnit.POUND_FOOT, MeasureUnit.ACRE_FOOT, MeasureUnit.BARREL, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.DESSERT_SPOON, MeasureUnit.DESSERT_SPOON_IMPERIAL, MeasureUnit.DRAM, MeasureUnit.DROP, MeasureUnit.FLUID_OUNCE, MeasureUnit.FLUID_OUNCE_IMPERIAL, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.JIGGER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINCH, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.QUART_IMPERIAL, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 188, units.length); } @Test public void TestCompatible73() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.DUNAM, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.ITEM, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_OFGLUCOSE_PER_DECILITER, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.MOLE, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERMYRIAD, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.DAY_PERSON, MeasureUnit.DECADE, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.MONTH_PERSON, MeasureUnit.NANOSECOND, MeasureUnit.QUARTER, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.WEEK_PERSON, MeasureUnit.YEAR, MeasureUnit.YEAR_PERSON, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.BRITISH_THERMAL_UNIT, MeasureUnit.CALORIE, MeasureUnit.ELECTRONVOLT, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.THERM_US, MeasureUnit.KILOWATT_HOUR_PER_100_KILOMETER, MeasureUnit.NEWTON, MeasureUnit.POUND_FORCE, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.DOT, MeasureUnit.DOT_PER_CENTIMETER, MeasureUnit.DOT_PER_INCH, MeasureUnit.EM, MeasureUnit.MEGAPIXEL, MeasureUnit.PIXEL, MeasureUnit.PIXEL_PER_CENTIMETER, MeasureUnit.PIXEL_PER_INCH, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.EARTH_RADIUS, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.SOLAR_RADIUS, MeasureUnit.YARD, MeasureUnit.CANDELA, MeasureUnit.LUMEN, MeasureUnit.LUX, MeasureUnit.SOLAR_LUMINOSITY, MeasureUnit.CARAT, MeasureUnit.DALTON, MeasureUnit.EARTH_MASS, MeasureUnit.GRAIN, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.SOLAR_MASS, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.TONNE, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.BAR, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.KILOPASCAL, MeasureUnit.MEGAPASCAL, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.PASCAL, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.BEAUFORT, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.NEWTON_METER, MeasureUnit.POUND_FOOT, MeasureUnit.ACRE_FOOT, MeasureUnit.BARREL, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.DESSERT_SPOON, MeasureUnit.DESSERT_SPOON_IMPERIAL, MeasureUnit.DRAM, MeasureUnit.DROP, MeasureUnit.FLUID_OUNCE, MeasureUnit.FLUID_OUNCE_IMPERIAL, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.JIGGER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINCH, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.QUART_IMPERIAL, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 189, units.length); } @Test public void TestCompatible74() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.DUNAM, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.ITEM, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_OFGLUCOSE_PER_DECILITER, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.MOLE, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERMYRIAD, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.DAY_PERSON, MeasureUnit.DECADE, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.MONTH_PERSON, MeasureUnit.NANOSECOND, MeasureUnit.QUARTER, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.WEEK_PERSON, MeasureUnit.YEAR, MeasureUnit.YEAR_PERSON, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.BRITISH_THERMAL_UNIT, MeasureUnit.CALORIE, MeasureUnit.ELECTRONVOLT, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.THERM_US, MeasureUnit.KILOWATT_HOUR_PER_100_KILOMETER, MeasureUnit.NEWTON, MeasureUnit.POUND_FORCE, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.DOT, MeasureUnit.DOT_PER_CENTIMETER, MeasureUnit.DOT_PER_INCH, MeasureUnit.EM, MeasureUnit.MEGAPIXEL, MeasureUnit.PIXEL, MeasureUnit.PIXEL_PER_CENTIMETER, MeasureUnit.PIXEL_PER_INCH, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.EARTH_RADIUS, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.SOLAR_RADIUS, MeasureUnit.YARD, MeasureUnit.CANDELA, MeasureUnit.LUMEN, MeasureUnit.LUX, MeasureUnit.SOLAR_LUMINOSITY, MeasureUnit.CARAT, MeasureUnit.DALTON, MeasureUnit.EARTH_MASS, MeasureUnit.GRAIN, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.SOLAR_MASS, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.TONNE, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.BAR, MeasureUnit.GASOLINE_ENERGY_DENSITY, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.KILOPASCAL, MeasureUnit.MEGAPASCAL, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.PASCAL, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.BEAUFORT, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.NEWTON_METER, MeasureUnit.POUND_FOOT, MeasureUnit.ACRE_FOOT, MeasureUnit.BARREL, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.DESSERT_SPOON, MeasureUnit.DESSERT_SPOON_IMPERIAL, MeasureUnit.DRAM, MeasureUnit.DROP, MeasureUnit.FLUID_OUNCE, MeasureUnit.FLUID_OUNCE_IMPERIAL, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.JIGGER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINCH, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.QUART_IMPERIAL, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 190, units.length); } public void TestCompatible76() { MeasureUnit[] units = { MeasureUnit.G_FORCE, MeasureUnit.METER_PER_SECOND_SQUARED, MeasureUnit.ARC_MINUTE, MeasureUnit.ARC_SECOND, MeasureUnit.DEGREE, MeasureUnit.RADIAN, MeasureUnit.REVOLUTION_ANGLE, MeasureUnit.ACRE, MeasureUnit.DUNAM, MeasureUnit.HECTARE, MeasureUnit.SQUARE_CENTIMETER, MeasureUnit.SQUARE_FOOT, MeasureUnit.SQUARE_INCH, MeasureUnit.SQUARE_KILOMETER, MeasureUnit.SQUARE_METER, MeasureUnit.SQUARE_MILE, MeasureUnit.SQUARE_YARD, MeasureUnit.ITEM, MeasureUnit.KARAT, MeasureUnit.MILLIGRAM_OFGLUCOSE_PER_DECILITER, MeasureUnit.MILLIGRAM_PER_DECILITER, MeasureUnit.MILLIMOLE_PER_LITER, MeasureUnit.MOLE, MeasureUnit.PERCENT, MeasureUnit.PERMILLE, MeasureUnit.PART_PER_MILLION, MeasureUnit.PERMYRIAD, MeasureUnit.PORTION_PER_1E9, MeasureUnit.LITER_PER_100KILOMETERS, MeasureUnit.LITER_PER_KILOMETER, MeasureUnit.MILE_PER_GALLON, MeasureUnit.MILE_PER_GALLON_IMPERIAL, MeasureUnit.BIT, MeasureUnit.BYTE, MeasureUnit.GIGABIT, MeasureUnit.GIGABYTE, MeasureUnit.KILOBIT, MeasureUnit.KILOBYTE, MeasureUnit.MEGABIT, MeasureUnit.MEGABYTE, MeasureUnit.PETABYTE, MeasureUnit.TERABIT, MeasureUnit.TERABYTE, MeasureUnit.CENTURY, MeasureUnit.DAY, MeasureUnit.DAY_PERSON, MeasureUnit.DECADE, MeasureUnit.HOUR, MeasureUnit.MICROSECOND, MeasureUnit.MILLISECOND, MeasureUnit.MINUTE, MeasureUnit.MONTH, MeasureUnit.MONTH_PERSON, MeasureUnit.NANOSECOND, MeasureUnit.NIGHT, MeasureUnit.QUARTER, MeasureUnit.SECOND, MeasureUnit.WEEK, MeasureUnit.WEEK_PERSON, MeasureUnit.YEAR, MeasureUnit.YEAR_PERSON, MeasureUnit.AMPERE, MeasureUnit.MILLIAMPERE, MeasureUnit.OHM, MeasureUnit.VOLT, MeasureUnit.BRITISH_THERMAL_UNIT, MeasureUnit.CALORIE, MeasureUnit.ELECTRONVOLT, MeasureUnit.FOODCALORIE, MeasureUnit.JOULE, MeasureUnit.KILOCALORIE, MeasureUnit.KILOJOULE, MeasureUnit.KILOWATT_HOUR, MeasureUnit.THERM_US, MeasureUnit.KILOWATT_HOUR_PER_100_KILOMETER, MeasureUnit.NEWTON, MeasureUnit.POUND_FORCE, MeasureUnit.GIGAHERTZ, MeasureUnit.HERTZ, MeasureUnit.KILOHERTZ, MeasureUnit.MEGAHERTZ, MeasureUnit.DOT, MeasureUnit.DOT_PER_CENTIMETER, MeasureUnit.DOT_PER_INCH, MeasureUnit.EM, MeasureUnit.MEGAPIXEL, MeasureUnit.PIXEL, MeasureUnit.PIXEL_PER_CENTIMETER, MeasureUnit.PIXEL_PER_INCH, MeasureUnit.ASTRONOMICAL_UNIT, MeasureUnit.CENTIMETER, MeasureUnit.DECIMETER, MeasureUnit.EARTH_RADIUS, MeasureUnit.FATHOM, MeasureUnit.FOOT, MeasureUnit.FURLONG, MeasureUnit.INCH, MeasureUnit.KILOMETER, MeasureUnit.LIGHT_YEAR, MeasureUnit.METER, MeasureUnit.MICROMETER, MeasureUnit.MILE, MeasureUnit.MILE_SCANDINAVIAN, MeasureUnit.MILLIMETER, MeasureUnit.NANOMETER, MeasureUnit.NAUTICAL_MILE, MeasureUnit.PARSEC, MeasureUnit.PICOMETER, MeasureUnit.POINT, MeasureUnit.SOLAR_RADIUS, MeasureUnit.YARD, MeasureUnit.CANDELA, MeasureUnit.LUMEN, MeasureUnit.LUX, MeasureUnit.SOLAR_LUMINOSITY, MeasureUnit.CARAT, MeasureUnit.DALTON, MeasureUnit.EARTH_MASS, MeasureUnit.GRAIN, MeasureUnit.GRAM, MeasureUnit.KILOGRAM, MeasureUnit.MICROGRAM, MeasureUnit.MILLIGRAM, MeasureUnit.OUNCE, MeasureUnit.OUNCE_TROY, MeasureUnit.POUND, MeasureUnit.SOLAR_MASS, MeasureUnit.STONE, MeasureUnit.TON, MeasureUnit.TONNE, MeasureUnit.GIGAWATT, MeasureUnit.HORSEPOWER, MeasureUnit.KILOWATT, MeasureUnit.MEGAWATT, MeasureUnit.MILLIWATT, MeasureUnit.WATT, MeasureUnit.ATMOSPHERE, MeasureUnit.BAR, MeasureUnit.GASOLINE_ENERGY_DENSITY, MeasureUnit.HECTOPASCAL, MeasureUnit.INCH_HG, MeasureUnit.KILOPASCAL, MeasureUnit.MEGAPASCAL, MeasureUnit.MILLIBAR, MeasureUnit.MILLIMETER_OF_MERCURY, MeasureUnit.PASCAL, MeasureUnit.POUND_PER_SQUARE_INCH, MeasureUnit.BEAUFORT, MeasureUnit.KILOMETER_PER_HOUR, MeasureUnit.KNOT, MeasureUnit.LIGHT_SPEED, MeasureUnit.METER_PER_SECOND, MeasureUnit.MILE_PER_HOUR, MeasureUnit.CELSIUS, MeasureUnit.FAHRENHEIT, MeasureUnit.GENERIC_TEMPERATURE, MeasureUnit.KELVIN, MeasureUnit.NEWTON_METER, MeasureUnit.POUND_FOOT, MeasureUnit.ACRE_FOOT, MeasureUnit.BARREL, MeasureUnit.BUSHEL, MeasureUnit.CENTILITER, MeasureUnit.CUBIC_CENTIMETER, MeasureUnit.CUBIC_FOOT, MeasureUnit.CUBIC_INCH, MeasureUnit.CUBIC_KILOMETER, MeasureUnit.CUBIC_METER, MeasureUnit.CUBIC_MILE, MeasureUnit.CUBIC_YARD, MeasureUnit.CUP, MeasureUnit.CUP_METRIC, MeasureUnit.DECILITER, MeasureUnit.DESSERT_SPOON, MeasureUnit.DESSERT_SPOON_IMPERIAL, MeasureUnit.DRAM, MeasureUnit.DROP, MeasureUnit.FLUID_OUNCE, MeasureUnit.FLUID_OUNCE_IMPERIAL, MeasureUnit.GALLON, MeasureUnit.GALLON_IMPERIAL, MeasureUnit.HECTOLITER, MeasureUnit.JIGGER, MeasureUnit.LITER, MeasureUnit.MEGALITER, MeasureUnit.MILLILITER, MeasureUnit.PINCH, MeasureUnit.PINT, MeasureUnit.PINT_METRIC, MeasureUnit.QUART, MeasureUnit.QUART_IMPERIAL, MeasureUnit.TABLESPOON, MeasureUnit.TEASPOON, }; assertEquals("", 193, units.length); } @Test public void TestExamplesInDocs() { MeasureFormat fmtFr = MeasureFormat.getInstance( ULocale.FRENCH, FormatWidth.SHORT); Measure measure = new Measure(23, MeasureUnit.CELSIUS); assertEquals("23\u202FC", "23\u202FC", fmtFr.format(measure)); Measure measureF = new Measure(70, MeasureUnit.FAHRENHEIT); assertEquals("70\u202FF", "70\u202FF", fmtFr.format(measureF)); MeasureFormat fmtFrFull = MeasureFormat.getInstance( ULocale.FRENCH, FormatWidth.WIDE); assertEquals( "70 pied et 5,3pouces", "70 pieds et 5,3pouces", fmtFrFull.formatMeasures( new Measure(70, MeasureUnit.FOOT), new Measure(5.3, MeasureUnit.INCH))); assertEquals( "1\u00A0pied et 1\u00A0pouce", "1\u00A0pied et 1\u00A0pouce", fmtFrFull.formatMeasures( new Measure(1, MeasureUnit.FOOT), new Measure(1, MeasureUnit.INCH))); MeasureFormat fmtFrNarrow = MeasureFormat.getInstance( ULocale.FRENCH, FormatWidth.NARROW); assertEquals( "1 1", "1 1", fmtFrNarrow.formatMeasures( new Measure(1, MeasureUnit.FOOT), new Measure(1, MeasureUnit.INCH))); MeasureFormat fmtEn = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE); assertEquals( "1 inch, 2 feet", "1 inch, 2 feet", fmtEn.formatMeasures( new Measure(1, MeasureUnit.INCH), new Measure(2, MeasureUnit.FOOT))); } @Test public void TestFormatPeriodEn() { TimeUnitAmount[] _19m = {new TimeUnitAmount(19.0, TimeUnit.MINUTE)}; TimeUnitAmount[] _1h_23_5s = { new TimeUnitAmount(1.0, TimeUnit.HOUR), new TimeUnitAmount(23.5, TimeUnit.SECOND)}; TimeUnitAmount[] _1h_23_5m = { new TimeUnitAmount(1.0, TimeUnit.HOUR), new TimeUnitAmount(23.5, TimeUnit.MINUTE)}; TimeUnitAmount[] _1h_0m_23s = { new TimeUnitAmount(1.0, TimeUnit.HOUR), new TimeUnitAmount(0.0, TimeUnit.MINUTE), new TimeUnitAmount(23.0, TimeUnit.SECOND)}; TimeUnitAmount[] _2y_5M_3w_4d = { new TimeUnitAmount(2.0, TimeUnit.YEAR), new TimeUnitAmount(5.0, TimeUnit.MONTH), new TimeUnitAmount(3.0, TimeUnit.WEEK), new TimeUnitAmount(4.0, TimeUnit.DAY)}; TimeUnitAmount[] _1m_59_9996s = { new TimeUnitAmount(1.0, TimeUnit.MINUTE), new TimeUnitAmount(59.9996, TimeUnit.SECOND)}; TimeUnitAmount[] _5h_17m = { new TimeUnitAmount(5.0, TimeUnit.HOUR), new TimeUnitAmount(17.0, TimeUnit.MINUTE)}; TimeUnitAmount[] _neg5h_17m = { new TimeUnitAmount(-5.0, TimeUnit.HOUR), new TimeUnitAmount(17.0, TimeUnit.MINUTE)}; TimeUnitAmount[] _19m_28s = { new TimeUnitAmount(19.0, TimeUnit.MINUTE), new TimeUnitAmount(28.0, TimeUnit.SECOND)}; TimeUnitAmount[] _0h_0m_9s = { new TimeUnitAmount(0.0, TimeUnit.HOUR), new TimeUnitAmount(0.0, TimeUnit.MINUTE), new TimeUnitAmount(9.0, TimeUnit.SECOND)}; TimeUnitAmount[] _0h_0m_17s = { new TimeUnitAmount(0.0, TimeUnit.HOUR), new TimeUnitAmount(0.0, TimeUnit.MINUTE), new TimeUnitAmount(17.0, TimeUnit.SECOND)}; TimeUnitAmount[] _6h_56_92m = { new TimeUnitAmount(6.0, TimeUnit.HOUR), new TimeUnitAmount(56.92, TimeUnit.MINUTE)}; TimeUnitAmount[] _3h_4s_5m = { new TimeUnitAmount(3.0, TimeUnit.HOUR), new TimeUnitAmount(4.0, TimeUnit.SECOND), new TimeUnitAmount(5.0, TimeUnit.MINUTE)}; TimeUnitAmount[] _6_7h_56_92m = { new TimeUnitAmount(6.7, TimeUnit.HOUR), new TimeUnitAmount(56.92, TimeUnit.MINUTE)}; TimeUnitAmount[] _3h_5h = { new TimeUnitAmount(3.0, TimeUnit.HOUR), new TimeUnitAmount(5.0, TimeUnit.HOUR)}; Object[][] fullData = { {_1m_59_9996s, "1 minute, 59.9996 seconds"}, {_19m, "19 minutes"}, {_1h_23_5s, "1 hour, 23.5 seconds"}, {_1h_23_5m, "1 hour, 23.5 minutes"}, {_1h_0m_23s, "1 hour, 0 minutes, 23 seconds"}, {_2y_5M_3w_4d, "2 years, 5 months, 3 weeks, 4 days"}}; Object[][] abbrevData = { {_1m_59_9996s, "1 min, 59.9996 sec"}, {_19m, "19 min"}, {_1h_23_5s, "1 hr, 23.5 sec"}, {_1h_23_5m, "1 hr, 23.5 min"}, {_1h_0m_23s, "1 hr, 0 min, 23 sec"}, {_2y_5M_3w_4d, "2 yrs, 5 mths, 3 wks, 4 days"}}; Object[][] narrowData = { {_1m_59_9996s, "1m 59.9996s"}, {_19m, "19m"}, {_1h_23_5s, "1h 23.5s"}, {_1h_23_5m, "1h 23.5m"}, {_1h_0m_23s, "1h 0m 23s"}, {_2y_5M_3w_4d, "2y 5m 3w 4d"}}; Object[][] numericData = { {_1m_59_9996s, "1:59.9996"}, {_19m, "19m"}, {_1h_23_5s, "1:00:23.5"}, {_1h_0m_23s, "1:00:23"}, {_1h_23_5m, "1:23.5"}, {_5h_17m, "5:17"}, {_neg5h_17m, "-5h 17m"}, {_19m_28s, "19:28"}, {_2y_5M_3w_4d, "2y 5m 3w 4d"}, {_0h_0m_9s, "0:00:09"}, {_6h_56_92m, "6:56.92"}, {_6_7h_56_92m, "6:56.92"}, {_3h_4s_5m, "3h 4s 5m"}, {_3h_5h, "3h 5h"}}; Object[][] fullDataDe = { {_1m_59_9996s, "1 Minute, 59,9996 Sekunden"}, {_19m, "19 Minuten"}, {_1h_23_5s, "1 Stunde, 23,5 Sekunden"}, {_1h_23_5m, "1 Stunde, 23,5 Minuten"}, {_1h_0m_23s, "1 Stunde, 0 Minuten und 23 Sekunden"}, {_2y_5M_3w_4d, "2 Jahre, 5 Monate, 3 Wochen und 4 Tage"}}; Object[][] numericDataDe = { {_1m_59_9996s, "1:59,9996"}, {_19m, "19 Min."}, {_1h_23_5s, "1:00:23,5"}, {_1h_0m_23s, "1:00:23"}, {_1h_23_5m, "1:23,5"}, {_5h_17m, "5:17"}, {_19m_28s, "19:28"}, {_2y_5M_3w_4d, "2 J, 5 M, 3 W und 4 T"}, {_0h_0m_17s, "0:00:17"}, {_6h_56_92m, "6:56,92"}, {_3h_5h, "3 Std., 5 Std."}}; Object[][] numericDataBn = { {_1m_59_9996s, ":."}, {_19m, " "}, {_1h_23_5s, "::."}, {_1h_0m_23s, "::"}, {_1h_23_5m, ":."}, {_5h_17m, ":"}, {_19m_28s, ":"}, {_2y_5M_3w_4d, " , , , "}, {_0h_0m_17s, "::"}, {_6h_56_92m, ":."}, {_3h_5h, " , "}}; Object[][] numericDataBnLatn = { {_1m_59_9996s, "1:59.9996"}, {_19m, "19 "}, {_1h_23_5s, "1:00:23.5"}, {_1h_0m_23s, "1:00:23"}, {_1h_23_5m, "1:23.5"}, {_5h_17m, "5:17"}, {_19m_28s, "19:28"}, {_2y_5M_3w_4d, "2 , 5 , 3 , 4 "}, {_0h_0m_17s, "0:00:17"}, {_6h_56_92m, "6:56.92"}, {_3h_5h, "3 , 5 "}}; NumberFormat nf = NumberFormat.getNumberInstance(ULocale.ENGLISH); nf.setMaximumFractionDigits(4); MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE, nf); verifyFormatPeriod("en FULL", mf, fullData); mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.SHORT, nf); verifyFormatPeriod("en SHORT", mf, abbrevData); mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NARROW, nf); verifyFormatPeriod("en NARROW", mf, narrowData); mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NUMERIC, nf); verifyFormatPeriod("en NUMERIC", mf, numericData); nf = NumberFormat.getNumberInstance(ULocale.GERMAN); nf.setMaximumFractionDigits(4); mf = MeasureFormat.getInstance(ULocale.GERMAN, FormatWidth.WIDE, nf); verifyFormatPeriod("de FULL", mf, fullDataDe); mf = MeasureFormat.getInstance(ULocale.GERMAN, FormatWidth.NUMERIC, nf); verifyFormatPeriod("de NUMERIC", mf, numericDataDe); // Same tests, with Java Locale nf = NumberFormat.getNumberInstance(Locale.GERMAN); nf.setMaximumFractionDigits(4); mf = MeasureFormat.getInstance(Locale.GERMAN, FormatWidth.WIDE, nf); verifyFormatPeriod("de FULL(Java Locale)", mf, fullDataDe); mf = MeasureFormat.getInstance(Locale.GERMAN, FormatWidth.NUMERIC, nf); verifyFormatPeriod("de NUMERIC(Java Locale)", mf, numericDataDe); ULocale bengali = ULocale.forLanguageTag("bn"); nf = NumberFormat.getNumberInstance(bengali); nf.setMaximumFractionDigits(4); mf = MeasureFormat.getInstance(bengali, FormatWidth.NUMERIC, nf); verifyFormatPeriod("bn NUMERIC(Java Locale)", mf, numericDataBn); bengali = ULocale.forLanguageTag("bn-u-nu-latn"); nf = NumberFormat.getNumberInstance(bengali); nf.setMaximumFractionDigits(4); mf = MeasureFormat.getInstance(bengali, FormatWidth.NUMERIC, nf); verifyFormatPeriod("bn NUMERIC(Java Locale)", mf, numericDataBnLatn); } private void verifyFormatPeriod(String desc, MeasureFormat mf, Object[][] testData) { StringBuilder builder = new StringBuilder(); boolean failure = false; for (Object[] testCase : testData) { String actual = mf.format(testCase[0]); if (!testCase[1].equals(actual)) { builder.append(String.format("%s: Expected: '%s', got: '%s'\n", desc, testCase[1], actual)); failure = true; } } if (failure) { errln(builder.toString()); } } @Test public void Test10219FractionalPlurals() { double[] values = {1.588, 1.011}; String[][] expected = { {"1 minute", "1.5 minutes", "1.58 minutes"}, {"1 minute", "1.0 minutes", "1.01 minutes"} }; for (int j = 0; j < values.length; j++) { for (int i = 0; i < expected[j].length; i++) { NumberFormat nf = NumberFormat.getNumberInstance(ULocale.ENGLISH); nf.setRoundingMode(BigDecimal.ROUND_DOWN); nf.setMinimumFractionDigits(i); nf.setMaximumFractionDigits(i); MeasureFormat mf = MeasureFormat.getInstance( ULocale.ENGLISH, FormatWidth.WIDE, nf); assertEquals("Test10219", expected[j][i], mf.format(new Measure(values[j], MeasureUnit.MINUTE))); } } } @Test public void TestGreek() { String[] locales = {"el_GR", "el"}; final MeasureUnit[] units = new MeasureUnit[]{ MeasureUnit.SECOND, MeasureUnit.MINUTE, MeasureUnit.HOUR, MeasureUnit.DAY, MeasureUnit.WEEK, MeasureUnit.MONTH, MeasureUnit.YEAR}; FormatWidth[] styles = new FormatWidth[] {FormatWidth.WIDE, FormatWidth.SHORT}; int[] numbers = new int[] {1, 7}; String[] expected = { // "el_GR" 1 wide "1 ", "1 ", "1 ", "1 ", "1 ", "1 ", "1 ", // "el_GR" 1 short "1 .", "1 .", "1 .", "1 ", "1 .", "1 .", "1 .", // year (one) // "el_GR" 7 wide "7 ", "7 ", "7 ", "7 ", "7 ", "7 ", "7 ", // "el_GR" 7 short "7 .", "7 .", "7 .", // hour (other) "7 ", "7 .", "7 .", "7 .", // year (other) // "el" 1 wide "1 ", "1 ", "1 ", "1 ", "1 ", "1 ", "1 ", // "el" 1 short "1 .", "1 .", "1 .", "1 ", "1 .", "1 .", "1 .", // year (one) // "el" 7 wide "7 ", "7 ", "7 ", "7 ", "7 ", "7 ", "7 ", // "el" 7 short "7 .", "7 .", "7 .", // hour (other) "7 ", "7 .", "7 .", "7 ."}; // year (other int counter = 0; String formatted; for ( int locIndex = 0; locIndex < locales.length; ++locIndex ) { for( int numIndex = 0; numIndex < numbers.length; ++numIndex ) { for ( int styleIndex = 0; styleIndex < styles.length; ++styleIndex ) { for ( int unitIndex = 0; unitIndex < units.length; ++unitIndex ) { Measure m = new Measure(numbers[numIndex], units[unitIndex]); MeasureFormat fmt = MeasureFormat.getInstance(new ULocale(locales[locIndex]), styles[styleIndex]); formatted = fmt.format(m); assertEquals( "locale: " + locales[locIndex] + ", style: " + styles[styleIndex] + ", units: " + units[unitIndex] + ", value: " + numbers[numIndex], expected[counter], formatted); ++counter; } } } } } @Test public void testAUnit() { String lastType = null; for (MeasureUnit expected : MeasureUnit.getAvailable()) { String type = expected.getType(); String code = expected.getSubtype(); if (!type.equals(lastType)) { logln(type); lastType = type; } MeasureUnit actual = MeasureUnit.internalGetInstance(type, code); assertSame("Identity check", expected, actual); } // The return value should contain only unique elements assertUnique(MeasureUnit.getAvailable()); } static void assertUnique(Collection<?> coll) { int expectedSize = new HashSet<>(coll).size(); int actualSize = coll.size(); assertEquals("Collection should contain only unique elements", expectedSize, actualSize); } @Test public void testFormatSingleArg() { MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE); assertEquals("", "5 meters", mf.format(new Measure(5, MeasureUnit.METER))); } @Test public void testFormatMeasuresZeroArg() { MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE); assertEquals("", "", mf.formatMeasures()); } @Test public void testFormatMeasuresOneArg() { MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE); assertEquals("", "5 meters", mf.formatMeasures(new Measure(5, MeasureUnit.METER))); } @Test public void testMultiples() { ULocale russia = new ULocale("ru"); Object[][] data = new Object[][] { {ULocale.ENGLISH, FormatWidth.WIDE, "2 miles, 1 foot, 2.3 inches"}, {ULocale.ENGLISH, FormatWidth.SHORT, "2 mi, 1 ft, 2.3 in"}, {ULocale.ENGLISH, FormatWidth.NARROW, "2mi 1\u2032 2.3\u2033"}, {russia, FormatWidth.WIDE, "2 \u043C\u0438\u043B\u0438 1 \u0444\u0443\u0442 2,3 \u0434\u044E\u0439\u043C\u0430"}, {russia, FormatWidth.SHORT, "2 \u043C\u0438 1 \u0444\u0442 2,3 \u0434\u044E\u0439\u043C."}, {russia, FormatWidth.NARROW, "2 \u043C\u0438 1 \u0444\u0442 2,3 \u0434\u044E\u0439\u043C."}, }; for (Object[] row : data) { MeasureFormat mf = MeasureFormat.getInstance( (ULocale) row[0], (FormatWidth) row[1]); assertEquals( "testMultiples", row[2], mf.formatMeasures( new Measure(2, MeasureUnit.MILE), new Measure(1, MeasureUnit.FOOT), new Measure(2.3, MeasureUnit.INCH))); } } @Test public void testManyLocaleDurations() { Measure hours = new Measure(5, MeasureUnit.HOUR); Measure minutes = new Measure(37, MeasureUnit.MINUTE); ULocale ulocDanish = new ULocale("da"); ULocale ulocSpanish = new ULocale("es"); ULocale ulocFinnish = new ULocale("fi"); ULocale ulocIcelandic = new ULocale("is"); ULocale ulocNorwegianBok = new ULocale("nb"); ULocale ulocNorwegianNyn = new ULocale("nn"); ULocale ulocDutch = new ULocale("nl"); ULocale ulocSwedish = new ULocale("sv"); Object[][] data = new Object[][] { { ulocDanish, FormatWidth.NARROW, "5 t og 37 m" }, { ulocDanish, FormatWidth.NUMERIC, "5.37" }, { ULocale.GERMAN, FormatWidth.NARROW, "5 Std., 37 Min." }, { ULocale.GERMAN, FormatWidth.NUMERIC, "5:37" }, { ULocale.ENGLISH, FormatWidth.NARROW, "5h 37m" }, { ULocale.ENGLISH, FormatWidth.NUMERIC, "5:37" }, { ulocSpanish, FormatWidth.NARROW, "5h 37min" }, { ulocSpanish, FormatWidth.NUMERIC, "5:37" }, { ulocFinnish, FormatWidth.NARROW, "5t 37min" }, { ulocFinnish, FormatWidth.NUMERIC, "5.37" }, { ULocale.FRENCH, FormatWidth.NARROW, "5h 37min" }, { ULocale.FRENCH, FormatWidth.NUMERIC, "5:37" }, { ulocIcelandic, FormatWidth.NARROW, "5 klst. og 37 m\u00EDn." }, { ulocIcelandic, FormatWidth.NUMERIC, "5:37" }, { ULocale.JAPANESE, FormatWidth.NARROW, "5h37m" }, { ULocale.JAPANESE, FormatWidth.NUMERIC, "5:37" }, { ulocNorwegianBok, FormatWidth.NARROW, "5t, 37m" }, { ulocNorwegianBok, FormatWidth.NUMERIC, "5:37" }, { ulocDutch, FormatWidth.NARROW, "5 u, 37 m" }, { ulocDutch, FormatWidth.NUMERIC, "5:37" }, { ulocNorwegianNyn, FormatWidth.NARROW, "5t 37m" }, { ulocNorwegianNyn, FormatWidth.NUMERIC, "5:37" }, { ulocSwedish, FormatWidth.NARROW, "5h 37m" }, { ulocSwedish, FormatWidth.NUMERIC, "5:37" }, { ULocale.CHINESE, FormatWidth.NARROW, "5\u5C0F\u65F637\u5206\u949F" }, { ULocale.CHINESE, FormatWidth.NUMERIC, "5:37" }, }; for (Object[] row : data) { MeasureFormat mf = null; try{ mf = MeasureFormat.getInstance( (ULocale)row[0], (FormatWidth)row[1] ); } catch(Exception e) { errln("Exception creating MeasureFormat for locale " + row[0] + ", width " + row[1] + ": " + e); continue; } String result = mf.formatMeasures(hours, minutes); if (!result.equals(row[2])) { errln("MeasureFormat.formatMeasures for locale " + row[0] + ", width " + row[1] + ", expected \"" + (String)row[2] + "\", got \"" + result + "\"" ); } } } @Test public void testSimplePer() { Object DONT_CARE = null; Object[][] data = new Object[][] { // per unit pattern {FormatWidth.WIDE, 1.0, MeasureUnit.SECOND, "1 pound per second", DONT_CARE, 0, 0}, {FormatWidth.WIDE, 2.0, MeasureUnit.SECOND, "2 pounds per second", DONT_CARE, 0, 0}, // compound pattern {FormatWidth.WIDE, 1.0, MeasureUnit.MINUTE, "1 pound per minute", DONT_CARE, 0, 0}, {FormatWidth.WIDE, 2.0, MeasureUnit.MINUTE, "2 pounds per minute", DONT_CARE, 0, 0}, // per unit {FormatWidth.SHORT, 1.0, MeasureUnit.SECOND, "1 lb/s", DONT_CARE, 0, 0}, {FormatWidth.SHORT, 2.0, MeasureUnit.SECOND, "2 lb/s", DONT_CARE, 0, 0}, // compound {FormatWidth.SHORT, 1.0, MeasureUnit.MINUTE, "1 lb/min", DONT_CARE, 0, 0}, {FormatWidth.SHORT, 2.0, MeasureUnit.MINUTE, "2 lb/min", DONT_CARE, 0, 0}, // per unit {FormatWidth.NARROW, 1.0, MeasureUnit.SECOND, "1#/s", DONT_CARE, 0, 0}, {FormatWidth.NARROW, 2.0, MeasureUnit.SECOND, "2#/s", DONT_CARE, 0, 0}, // compound {FormatWidth.NARROW, 1.0, MeasureUnit.MINUTE, "1#/min", DONT_CARE, 0, 0}, {FormatWidth.NARROW, 2.0, MeasureUnit.MINUTE, "2#/min", DONT_CARE, 0, 0}, // field positions {FormatWidth.SHORT, 23.3, MeasureUnit.SECOND, "23.3 lb/s", NumberFormat.Field.DECIMAL_SEPARATOR, 2, 3}, {FormatWidth.SHORT, 23.3, MeasureUnit.SECOND, "23.3 lb/s", NumberFormat.Field.INTEGER, 0, 2}, {FormatWidth.SHORT, 23.3, MeasureUnit.MINUTE, "23.3 lb/min", NumberFormat.Field.DECIMAL_SEPARATOR, 2, 3}, {FormatWidth.SHORT, 23.3, MeasureUnit.MINUTE, "23.3 lb/min", NumberFormat.Field.INTEGER, 0, 2}, }; for (Object[] row : data) { FormatWidth formatWidth = (FormatWidth) row[0]; Number amount = (Number) row[1]; MeasureUnit perUnit = (MeasureUnit) row[2]; String expected = row[3].toString(); NumberFormat.Field field = (NumberFormat.Field) row[4]; int startOffset = ((Integer) row[5]).intValue(); int endOffset = ((Integer) row[6]).intValue(); MeasureFormat mf = MeasureFormat.getInstance( ULocale.ENGLISH, formatWidth); FieldPosition pos = field != null ? new FieldPosition(field) : new FieldPosition(0); String prefix = "Prefix: "; assertEquals( "", prefix + expected, mf.formatMeasurePerUnit( new Measure(amount, MeasureUnit.POUND), perUnit, new StringBuilder(prefix), pos).toString()); if (field != DONT_CARE) { assertEquals("startOffset", startOffset, pos.getBeginIndex() - prefix.length()); assertEquals("endOffset", endOffset, pos.getEndIndex() - prefix.length()); } } } @Test public void testNumeratorPlurals() { ULocale polish = new ULocale("pl"); Object[][] data = new Object[][] { {1, "1 stopa na sekund"}, {2, "2 stopy na sekund"}, {5, "5 stp na sekund"}, {1.5, "1,5 stopy na sekund"}}; for (Object[] row : data) { MeasureFormat mf = MeasureFormat.getInstance(polish, FormatWidth.WIDE); assertEquals( "", row[1], mf.formatMeasurePerUnit( new Measure((Number) row[0], MeasureUnit.FOOT), MeasureUnit.SECOND, new StringBuilder(), new FieldPosition(0)).toString()); } } @Test public void testGram() { MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.SHORT); assertEquals( "testGram", "1 g", mf.format(new Measure(1, MeasureUnit.GRAM))); assertEquals( "testGram", "1 G", mf.format(new Measure(1, MeasureUnit.G_FORCE))); } @Test public void testCurrencies() { Measure USD_1 = new Measure(1.0, Currency.getInstance("USD")); Measure USD_2 = new Measure(2.0, Currency.getInstance("USD")); Measure USD_NEG_1 = new Measure(-1.0, Currency.getInstance("USD")); MeasureFormat mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.WIDE); assertEquals("Wide currency", "-1.00 US dollars", mf.format(USD_NEG_1)); assertEquals("Wide currency", "1.00 US dollars", mf.format(USD_1)); assertEquals("Wide currency", "2.00 US dollars", mf.format(USD_2)); mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.SHORT); assertEquals("short currency", "-USD1.00", mf.format(USD_NEG_1)); assertEquals("short currency", "USD1.00", mf.format(USD_1)); assertEquals("short currency", "USD2.00", mf.format(USD_2)); mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NARROW); assertEquals("narrow currency", "-$1.00", mf.format(USD_NEG_1)); assertEquals("narrow currency", "$1.00", mf.format(USD_1)); assertEquals("narrow currency", "$2.00", mf.format(USD_2)); mf = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.NUMERIC); assertEquals("numeric currency", "-$1.00", mf.format(USD_NEG_1)); assertEquals("numeric currency", "$1.00", mf.format(USD_1)); assertEquals("numeric currency", "$2.00", mf.format(USD_2)); mf = MeasureFormat.getInstance(ULocale.JAPAN, FormatWidth.WIDE); // Locale jp does NOT put a space between the number and the currency long name: // path_to_url#L7046 assertEquals("Wide currency", "-1.00\u7C73\u30C9\u30EB", mf.format(USD_NEG_1)); assertEquals("Wide currency", "1.00\u7C73\u30C9\u30EB", mf.format(USD_1)); assertEquals("Wide currency", "2.00\u7C73\u30C9\u30EB", mf.format(USD_2)); Measure CAD_1 = new Measure(1.0, Currency.getInstance("CAD")); mf = MeasureFormat.getInstance(ULocale.CANADA, FormatWidth.SHORT); assertEquals("short currency", "CAD1.00", mf.format(CAD_1)); } @Test public void testDisplayNames() { Object[][] data = new Object[][] { // Unit, locale, width, expected result { MeasureUnit.YEAR, "en", FormatWidth.WIDE, "years" }, { MeasureUnit.YEAR, "ja", FormatWidth.WIDE, "" }, { MeasureUnit.YEAR, "es", FormatWidth.WIDE, "aos" }, { MeasureUnit.YEAR, "pt", FormatWidth.WIDE, "anos" }, { MeasureUnit.YEAR, "pt-PT", FormatWidth.WIDE, "anos" }, { MeasureUnit.AMPERE, "en", FormatWidth.WIDE, "amperes" }, { MeasureUnit.AMPERE, "ja", FormatWidth.WIDE, "" }, { MeasureUnit.AMPERE, "es", FormatWidth.WIDE, "amperios" }, { MeasureUnit.AMPERE, "pt", FormatWidth.WIDE, "amperes" }, { MeasureUnit.AMPERE, "pt-PT", FormatWidth.WIDE, "amperes" }, { MeasureUnit.METER_PER_SECOND_SQUARED, "pt", FormatWidth.WIDE, "metros por segundo ao quadrado" }, { MeasureUnit.METER_PER_SECOND_SQUARED, "pt-PT", FormatWidth.WIDE, "metros por segundo quadrado" }, { MeasureUnit.SQUARE_KILOMETER, "pt", FormatWidth.NARROW, "km" }, { MeasureUnit.SQUARE_KILOMETER, "pt", FormatWidth.SHORT, "km" }, { MeasureUnit.SQUARE_KILOMETER, "pt", FormatWidth.WIDE, "quilmetros quadrados" }, { MeasureUnit.SECOND, "pt-PT", FormatWidth.NARROW, "s" }, { MeasureUnit.SECOND, "pt-PT", FormatWidth.SHORT, "s" }, { MeasureUnit.SECOND, "pt-PT", FormatWidth.WIDE, "segundos" }, { MeasureUnit.SECOND, "pt", FormatWidth.NARROW, "s" }, { MeasureUnit.SECOND, "pt", FormatWidth.SHORT, "s" }, { MeasureUnit.SECOND, "pt", FormatWidth.WIDE, "segundos" }, }; for (Object[] test : data) { MeasureUnit unit = (MeasureUnit) test[0]; ULocale locale = ULocale.forLanguageTag((String) test[1]); FormatWidth formatWidth = (FormatWidth) test[2]; String expected = (String) test[3]; MeasureFormat mf = MeasureFormat.getInstance(locale, formatWidth); String actual = mf.getUnitDisplayName(unit); assertEquals(String.format("Unit Display Name for %s, %s, %s", unit, locale, formatWidth), expected, actual); } } @Test public void testFieldPosition() { MeasureFormat fmt = MeasureFormat.getInstance( ULocale.ENGLISH, FormatWidth.SHORT); FieldPosition pos = new FieldPosition(NumberFormat.Field.DECIMAL_SEPARATOR); fmt.format(new Measure(43.5, MeasureUnit.FOOT), new StringBuffer("123456: "), pos); assertEquals("beginIndex", 10, pos.getBeginIndex()); assertEquals("endIndex", 11, pos.getEndIndex()); pos = new FieldPosition(NumberFormat.Field.DECIMAL_SEPARATOR); fmt.format(new Measure(43, MeasureUnit.FOOT), new StringBuffer(), pos); assertEquals("beginIndex", 0, pos.getBeginIndex()); assertEquals("endIndex", 0, pos.getEndIndex()); } @Test public void testFieldPositionMultiple() { MeasureFormat fmt = MeasureFormat.getInstance( ULocale.ENGLISH, FormatWidth.SHORT); FieldPosition pos = new FieldPosition(NumberFormat.Field.INTEGER); String result = fmt.formatMeasures( new StringBuilder(), pos, new Measure(354, MeasureUnit.METER), new Measure(23, MeasureUnit.CENTIMETER)).toString(); assertEquals("result", "354 m, 23 cm", result); // According to javadocs for {@link Format#format} FieldPosition is set to // beginning and end of first such field encountered instead of the last // such field encountered. assertEquals("beginIndex", 0, pos.getBeginIndex()); assertEquals("endIndex", 3, pos.getEndIndex()); pos = new FieldPosition(NumberFormat.Field.DECIMAL_SEPARATOR); result = fmt.formatMeasures( new StringBuilder("123456: "), pos, new Measure(354, MeasureUnit.METER), new Measure(23, MeasureUnit.CENTIMETER), new Measure(5.4, MeasureUnit.MILLIMETER)).toString(); assertEquals("result", "123456: 354 m, 23 cm, 5.4 mm", result); assertEquals("beginIndex", 23, pos.getBeginIndex()); assertEquals("endIndex", 24, pos.getEndIndex()); result = fmt.formatMeasures( new StringBuilder(), pos, new Measure(3, MeasureUnit.METER), new Measure(23, MeasureUnit.CENTIMETER), new Measure(5.4, MeasureUnit.MILLIMETER)).toString(); assertEquals("result", "3 m, 23 cm, 5.4 mm", result); assertEquals("beginIndex", 13, pos.getBeginIndex()); assertEquals("endIndex", 14, pos.getEndIndex()); pos = new FieldPosition(NumberFormat.Field.DECIMAL_SEPARATOR); result = fmt.formatMeasures( new StringBuilder("123456: "), pos, new Measure(3, MeasureUnit.METER), new Measure(23, MeasureUnit.CENTIMETER), new Measure(5, MeasureUnit.MILLIMETER)).toString(); assertEquals("result", "123456: 3 m, 23 cm, 5 mm", result); assertEquals("beginIndex", 0, pos.getBeginIndex()); assertEquals("endIndex", 0, pos.getEndIndex()); pos = new FieldPosition(NumberFormat.Field.INTEGER); result = fmt.formatMeasures( new StringBuilder("123456: "), pos, new Measure(57, MeasureUnit.MILLIMETER)).toString(); assertEquals("result", "123456: 57 mm", result); assertEquals("beginIndex", 8, pos.getBeginIndex()); assertEquals("endIndex", 10, pos.getEndIndex()); } @Test public void testOldFormatWithList() { List<Measure> measures = new ArrayList<>(2); measures.add(new Measure(5, MeasureUnit.ACRE)); measures.add(new Measure(3000, MeasureUnit.SQUARE_FOOT)); MeasureFormat fmt = MeasureFormat.getInstance( ULocale.ENGLISH, FormatWidth.WIDE); assertEquals("", "5 acres, 3,000 square feet", fmt.format(measures)); assertEquals("", "5 acres", fmt.format(measures.subList(0, 1))); List<String> badList = new ArrayList<>(); badList.add("be"); badList.add("you"); try { fmt.format(badList); fail("Expected IllegalArgumentException."); } catch (IllegalArgumentException expected) { // Expected } } @Test public void testOldFormatWithArray() { Measure[] measures = new Measure[] { new Measure(5, MeasureUnit.ACRE), new Measure(3000, MeasureUnit.SQUARE_FOOT), }; MeasureFormat fmt = MeasureFormat.getInstance( ULocale.ENGLISH, FormatWidth.WIDE); assertEquals("", "5 acres, 3,000 square feet", fmt.format(measures)); } @Test public void testOldFormatBadArg() { MeasureFormat fmt = MeasureFormat.getInstance( ULocale.ENGLISH, FormatWidth.WIDE); try { fmt.format("be"); fail("Expected IllegalArgumentExceptino."); } catch (IllegalArgumentException e) { // Expected } } @Test public void testUnitPerUnitResolution() { // Ticket 11274 MeasureFormat fmt = MeasureFormat.getInstance(Locale.ENGLISH, FormatWidth.SHORT); // This fails unless we resolve to MeasureUnit.POUND_PER_SQUARE_INCH assertEquals("", "50 psi", fmt.formatMeasurePerUnit( new Measure(50, MeasureUnit.POUND_FORCE), MeasureUnit.SQUARE_INCH, new StringBuilder(), new FieldPosition(0)).toString()); } @Test public void testEqHashCode() { MeasureFormat mf = MeasureFormat.getInstance(ULocale.CANADA, FormatWidth.SHORT); MeasureFormat mfeq = MeasureFormat.getInstance(ULocale.CANADA, FormatWidth.SHORT); MeasureFormat mfne = MeasureFormat.getInstance(ULocale.CANADA, FormatWidth.WIDE); MeasureFormat mfne2 = MeasureFormat.getInstance(ULocale.ENGLISH, FormatWidth.SHORT); verifyEqualsHashCode(mf, mfeq, mfne); verifyEqualsHashCode(mf, mfeq, mfne2); } @Test public void testEqHashCodeOfMeasure() { Measure _3feetDouble = new Measure(3.0, MeasureUnit.FOOT); Measure _3feetInt = new Measure(3, MeasureUnit.FOOT); Measure _4feetInt = new Measure(4, MeasureUnit.FOOT); verifyEqualsHashCode(_3feetDouble, _3feetInt, _4feetInt); } @Test public void testGetLocale() { MeasureFormat mf = MeasureFormat.getInstance(ULocale.GERMAN, FormatWidth.SHORT); assertEquals("", ULocale.GERMAN, mf.getLocale(ULocale.VALID_LOCALE)); } @Test public void TestSerial() { checkStreamingEquality(MeasureUnit.CELSIUS); checkStreamingEquality(MeasureFormat.getInstance(ULocale.FRANCE, FormatWidth.NARROW)); checkStreamingEquality(Currency.getInstance("EUR")); checkStreamingEquality(MeasureFormat.getInstance(ULocale.GERMAN, FormatWidth.SHORT)); checkStreamingEquality(MeasureFormat.getCurrencyFormat(ULocale.ITALIAN)); } @Test public void TestSerialFormatWidthEnum() { // FormatWidth enum values must map to the same ordinal values for all time in order for // serialization to work. assertEquals("FormatWidth.WIDE", 0, FormatWidth.WIDE.ordinal()); assertEquals("FormatWidth.SHORT", 1, FormatWidth.SHORT.ordinal()); assertEquals("FormatWidth.NARROW", 2, FormatWidth.NARROW.ordinal()); assertEquals("FormatWidth.NUMERIC", 3, FormatWidth.NUMERIC.ordinal()); } @Test public void testCurrencyFormatStandInForMeasureFormat() { MeasureFormat mf = MeasureFormat.getCurrencyFormat(ULocale.ENGLISH); assertEquals( "70 feet, 5.3 inches", "70 feet, 5.3 inches", mf.formatMeasures( new Measure(70, MeasureUnit.FOOT), new Measure(5.3, MeasureUnit.INCH))); assertEquals("getLocale", ULocale.ENGLISH, mf.getLocale()); assertEquals("getNumberFormat", ULocale.ENGLISH, mf.getNumberFormat().getLocale(ULocale.VALID_LOCALE)); assertEquals("getWidth", MeasureFormat.FormatWidth.WIDE, mf.getWidth()); } @Test public void testCurrencyFormatLocale() { MeasureFormat mfu = MeasureFormat.getCurrencyFormat(ULocale.FRANCE); MeasureFormat mfj = MeasureFormat.getCurrencyFormat(Locale.FRANCE); assertEquals("getCurrencyFormat ULocale/Locale", mfu, mfj); } @Test public void testCurrencyFormatParseIsoCode() throws ParseException { MeasureFormat mf = MeasureFormat.getCurrencyFormat(ULocale.ENGLISH); CurrencyAmount result = (CurrencyAmount) mf.parseObject("GTQ 34.56"); assertEquals("Parse should succeed", result.getNumber().doubleValue(), 34.56, 0.0); assertEquals("Should parse ISO code GTQ even though the currency is USD", "GTQ", result.getCurrency().getCurrencyCode()); } @Test public void testDoubleZero() { ULocale en = new ULocale("en"); NumberFormat nf = NumberFormat.getInstance(en); nf.setMinimumFractionDigits(2); nf.setMaximumFractionDigits(2); MeasureFormat mf = MeasureFormat.getInstance(en, FormatWidth.WIDE, nf); assertEquals( "Positive Rounding", "4 hours, 23 minutes, 16.00 seconds", mf.formatMeasures( new Measure(4.7, MeasureUnit.HOUR), new Measure(23, MeasureUnit.MINUTE), new Measure(16, MeasureUnit.SECOND))); assertEquals( "Negative Rounding", "-4 hours, 23 minutes, 16.00 seconds", mf.formatMeasures( new Measure(-4.7, MeasureUnit.HOUR), new Measure(23, MeasureUnit.MINUTE), new Measure(16, MeasureUnit.SECOND))); } @Test public void testIndividualPluralFallback() { // See ticket #11986 "incomplete fallback in MeasureFormat". // In CLDR 28, fr_CA temperature-generic/short has only the "one" form, // and falls back to fr for the "other" form. MeasureFormat mf = MeasureFormat.getInstance(new ULocale("fr_CA"), FormatWidth.SHORT); Measure twoDeg = new Measure(2, MeasureUnit.GENERIC_TEMPERATURE); assertEquals("2 deg temp in fr_CA", "2", mf.format(twoDeg)); } @Test public void testPopulateCache() { // Quick check that the lazily added additions to the MeasureUnit cache are present. assertTrue("MeasureUnit: unexpectedly few currencies defined", MeasureUnit.getAvailable("currency").size() > 50); } @Test public void testParseObject() { MeasureFormat mf = MeasureFormat.getInstance(Locale.GERMAN, FormatWidth.NARROW); try { mf.parseObject("3m", null); fail("MeasureFormat.parseObject(String, ParsePosition) " + "should throw an UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } } @Test public void testCLDRUnitAvailability() { Set<MeasureUnit> knownUnits = new HashSet<>(); Class cMeasureUnit, cTimeUnit; try { cMeasureUnit = Class.forName("com.ibm.icu.util.MeasureUnit"); cTimeUnit = Class.forName("com.ibm.icu.util.TimeUnit"); } catch (ClassNotFoundException e) { fail("Count not load MeasureUnit or TimeUnit class: " + e.getMessage()); return; } for (Field field : cMeasureUnit.getFields()) { if (field.getGenericType() == cMeasureUnit || field.getGenericType() == cTimeUnit) { try { MeasureUnit unit = (MeasureUnit) field.get(cMeasureUnit); knownUnits.add(unit); } catch (IllegalArgumentException e) { fail(e.getMessage()); return; } catch (IllegalAccessException e) { fail(e.getMessage()); return; } } } for (String type : MeasureUnit.getAvailableTypes()) { if (type.equals("currency") || type.equals("compound") || type.equals("coordinate") || type.equals("none")) { continue; } for (MeasureUnit unit : MeasureUnit.getAvailable(type)) { if (!knownUnits.contains(unit)) { fail("Unit present in CLDR but not available via constant in MeasureUnit: " + unit); } } } } @Test public void testBug11966() { Locale locale = new Locale("en", "AU"); MeasureFormat.getInstance(locale, MeasureFormat.FormatWidth.WIDE); // Should not throw an exception. } @Test public void test20332_PersonUnits() { Object[][] cases = new Object[][] { {ULocale.US, MeasureUnit.YEAR_PERSON, MeasureFormat.FormatWidth.NARROW, "25y"}, {ULocale.US, MeasureUnit.YEAR_PERSON, MeasureFormat.FormatWidth.SHORT, "25 yrs"}, {ULocale.US, MeasureUnit.YEAR_PERSON, MeasureFormat.FormatWidth.WIDE, "25 years"}, {ULocale.US, MeasureUnit.MONTH_PERSON, MeasureFormat.FormatWidth.NARROW, "25m"}, {ULocale.US, MeasureUnit.MONTH_PERSON, MeasureFormat.FormatWidth.SHORT, "25 mths"}, {ULocale.US, MeasureUnit.MONTH_PERSON, MeasureFormat.FormatWidth.WIDE, "25 months"}, {ULocale.US, MeasureUnit.WEEK_PERSON, MeasureFormat.FormatWidth.NARROW, "25w"}, {ULocale.US, MeasureUnit.WEEK_PERSON, MeasureFormat.FormatWidth.SHORT, "25 wks"}, {ULocale.US, MeasureUnit.WEEK_PERSON, MeasureFormat.FormatWidth.WIDE, "25 weeks"}, {ULocale.US, MeasureUnit.DAY_PERSON, MeasureFormat.FormatWidth.NARROW, "25d"}, {ULocale.US, MeasureUnit.DAY_PERSON, MeasureFormat.FormatWidth.SHORT, "25 days"}, {ULocale.US, MeasureUnit.DAY_PERSON, MeasureFormat.FormatWidth.WIDE, "25 days"} }; for (Object[] cas : cases) { ULocale locale = (ULocale) cas[0]; MeasureUnit unit = (MeasureUnit) cas[1]; MeasureFormat.FormatWidth width = (MeasureFormat.FormatWidth) cas[2]; String expected = (String) cas[3]; MeasureFormat fmt = MeasureFormat.getInstance(locale, width); String result = fmt.formatMeasures(new Measure(25, unit)); assertEquals("" + locale + " " + unit + " " + width, expected, result); } } // DO NOT DELETE THIS FUNCTION! It may appear as dead code, but we use this to generate code // for MeasureFormat during the release process. static Map<MeasureUnit, Pair<MeasureUnit, MeasureUnit>> getUnitsToPerParts() { TreeMap<String, List<MeasureUnit>> allUnits = getAllUnits(); Map<MeasureUnit, Pair<String, String>> unitsToPerStrings = new HashMap<>(); Map<String, MeasureUnit> namesToUnits = new HashMap<>(); for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { String type = entry.getKey(); // Currency types are always atomic units, so we can skip these if (type.equals("currency")) { continue; } for (MeasureUnit unit : entry.getValue()) { String javaName = toJAVAName(unit); String[] nameParts = javaName.split("_PER_"); if (nameParts.length == 1) { namesToUnits.put(nameParts[0], unit); } else if (nameParts.length == 2) { unitsToPerStrings.put(unit, Pair.of(nameParts[0], nameParts[1])); } } } Map<MeasureUnit, Pair<MeasureUnit, MeasureUnit>> unitsToPerUnits = new HashMap<>(); for (Map.Entry<MeasureUnit, Pair<String, String>> entry : unitsToPerStrings.entrySet()) { Pair<String, String> perStrings = entry.getValue(); MeasureUnit unit = namesToUnits.get(perStrings.first); MeasureUnit perUnit = namesToUnits.get(perStrings.second); if (unit != null && perUnit != null) { unitsToPerUnits.put(entry.getKey(), Pair.of(unit, perUnit)); } } return unitsToPerUnits; } // DO NOT DELETE THIS FUNCTION! It may appear as dead code, but we use this to generate code // for MeasureFormat during the release process. static void generateCXXHConstants(String thisVersion) { Map<String, MeasureUnit> seen = new HashMap<>(); System.out.println("// Start generated createXXX methods"); System.out.println(); TreeMap<String, List<MeasureUnit>> allUnits = getAllUnits(); for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { String type = entry.getKey(); if (type.equals("currency")) { continue; } for (MeasureUnit unit : entry.getValue()) { String code = unit.getSubtype(); String name = toCamelCase(unit); String javaName = toJAVAName(unit); checkForDup(seen, name, unit); if (isDraft(javaName)) { System.out.println("#ifndef U_HIDE_DRAFT_API"); } System.out.println(" /**"); System.out.println(" * Returns by pointer, unit of " + type + ": " + code + "."); System.out.println(" * Caller owns returned value and must free it."); System.out.printf(" * Also see {@link #get%s()}.\n", name); System.out.println(" * @param status ICU error code."); if (isDraft(javaName)) { System.out.println(" * @draft ICU " + getVersion(javaName, thisVersion)); } else { System.out.println(" * @stable ICU " + getVersion(javaName, thisVersion)); } System.out.println(" */"); System.out.printf(" static MeasureUnit *create%s(UErrorCode &status);\n", name); System.out.println(); System.out.println(" /**"); System.out.println(" * Returns by value, unit of " + type + ": " + code + "."); System.out.printf(" * Also see {@link #create%s()}.\n", name); String getterVersion = getVersion(javaName, thisVersion); if (Integer.parseInt(getterVersion) < 64) { getterVersion = "64"; } if (isDraft(javaName)) { System.out.println(" * @draft ICU " + getterVersion); } else { System.out.println(" * @stable ICU " + getterVersion); } System.out.println(" */"); System.out.printf(" static MeasureUnit get%s();\n", name); if (isDraft(javaName)) { System.out.println("#endif /* U_HIDE_DRAFT_API */"); } System.out.println(""); } } System.out.println("// End generated createXXX methods"); } private static void checkForDup( Map<String, MeasureUnit> seen, String name, MeasureUnit unit) { if (seen.containsKey(name)) { throw new RuntimeException("\nCollision!!" + unit + ", " + seen.get(name)); } else { seen.put(name, unit); } } // DO NOT DELETE THIS FUNCTION! It may appear as dead code, but we use this to generate code // for MeasureFormat during the release process. static void updateJAVAVersions(String thisVersion) { System.out.println(); Map<String, MeasureUnit> seen = new HashMap<>(); TreeMap<String, List<MeasureUnit>> allUnits = getAllUnits(); for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { String type = entry.getKey(); if (type.equals("currency")) { continue; } for (MeasureUnit unit : entry.getValue()) { String javaName = toJAVAName(unit); checkForDup(seen, javaName, unit); if (!JAVA_VERSION_MAP.containsKey(javaName)) { System.out.printf(" {\"%s\", \"%s\"},\n", javaName, thisVersion); } } } } static TreeMap<String, List<MeasureUnit>> getAllUnits() { TreeMap<String, List<MeasureUnit>> allUnits = new TreeMap<>(); for (String type : MeasureUnit.getAvailableTypes()) { ArrayList<MeasureUnit> units = new ArrayList<>(MeasureUnit.getAvailable(type)); Collections.sort( units, new Comparator<MeasureUnit>() { @Override public int compare(MeasureUnit o1, MeasureUnit o2) { return o1.getSubtype().compareTo(o2.getSubtype()); } }); allUnits.put(type, units); } return allUnits; } // DO NOT DELETE THIS FUNCTION! It may appear as dead code, but we use this to generate code // for MeasureFormat during the release process. static void generateCXXConstants() { System.out.println("// Start generated code for measunit.cpp"); System.out.println(""); TreeMap<String, List<MeasureUnit>> allUnits = getAllUnits(); // Hack: for C++, add base unit here, but ignore them when printing the create methods. // Also keep track of the base unit offset to make the C++ default constructor faster. allUnits.put("none", Arrays.asList(new MeasureUnit[] {NoUnit.BASE})); int baseTypeIdx = -1; int baseSubTypeIdx = -1; System.out.println("// Maps from Type ID to offset in gSubTypes."); System.out.println("static const int32_t gOffsets[] = {"); int index = 0; int typeCount = 0; int currencyIndex = -1; for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { System.out.printf(" %d,\n", index); if (entry.getKey() == "currency") { currencyIndex = typeCount; } typeCount++; index += entry.getValue().size(); } assertTrue("currency present", currencyIndex >= 0); System.out.printf(" %d\n", index); System.out.println("};"); System.out.println(); System.out.println("static const int32_t kCurrencyOffset = " + currencyIndex + ";"); System.out.println(); System.out.println("// Must be sorted alphabetically."); System.out.println("static const char * const gTypes[] = {"); boolean first = true; for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { if (!first) { System.out.println(","); } System.out.print(" \"" + entry.getKey() + "\""); first = false; } System.out.println(); System.out.println("};"); System.out.println(); System.out.println("// Must be grouped by type and sorted alphabetically within each type."); System.out.println("static const char * const gSubTypes[] = {"); first = true; int offset = 0; int typeIdx = 0; Map<MeasureUnit, Integer> measureUnitToOffset = new HashMap<>(); Map<MeasureUnit, Pair<Integer, Integer>> measureUnitToTypeSubType = new HashMap<>(); for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { int subTypeIdx = 0; for (MeasureUnit unit : entry.getValue()) { if (!first) { System.out.println(","); } if (unit != null) { System.out.print(" \"" + unit.getSubtype() + "\""); } else { assertEquals("unit only null for \"none\" type", "none", entry.getKey()); System.out.print(" \"\""); } first = false; measureUnitToOffset.put(unit, offset); measureUnitToTypeSubType.put(unit, Pair.of(typeIdx, subTypeIdx)); if (unit == NoUnit.BASE) { baseTypeIdx = typeIdx; baseSubTypeIdx = subTypeIdx; } offset++; subTypeIdx++; } typeIdx++; } System.out.println(); System.out.println("};"); System.out.println(); // Build unit per unit offsets to corresponding type sub types sorted by // unit first and then per unit. TreeMap<OrderedPair<Integer, Integer>, Pair<Integer, Integer>> unitPerUnitOffsetsToTypeSubType = new TreeMap<>(); for (Map.Entry<MeasureUnit, Pair<MeasureUnit, MeasureUnit>> entry : getUnitsToPerParts().entrySet()) { Pair<MeasureUnit, MeasureUnit> unitPerUnit = entry.getValue(); unitPerUnitOffsetsToTypeSubType.put( OrderedPair.of( measureUnitToOffset.get(unitPerUnit.first), measureUnitToOffset.get(unitPerUnit.second)), measureUnitToTypeSubType.get(entry.getKey())); } // Print out the fast-path for the default constructor System.out.println("// Shortcuts to the base unit in order to make the default constructor fast"); System.out.println("static const int32_t kBaseTypeIdx = " + baseTypeIdx + ";"); System.out.println("static const int32_t kBaseSubTypeIdx = " + baseSubTypeIdx + ";"); System.out.println(); Map<String, MeasureUnit> seen = new HashMap<>(); for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { String type = entry.getKey(); if (type.equals("currency") || type.equals("none")) { continue; } for (MeasureUnit unit : entry.getValue()) { String name = toCamelCase(unit); Pair<Integer, Integer> typeSubType = measureUnitToTypeSubType.get(unit); if (typeSubType == null) { throw new IllegalStateException(); } checkForDup(seen, name, unit); System.out.printf("MeasureUnit *MeasureUnit::create%s(UErrorCode &status) {\n", name); System.out.printf(" return MeasureUnit::create(%d, %d, status);\n", typeSubType.first, typeSubType.second); System.out.println("}"); System.out.println(); System.out.printf("MeasureUnit MeasureUnit::get%s() {\n", name); System.out.printf(" return MeasureUnit(%d, %d);\n", typeSubType.first, typeSubType.second); System.out.println("}"); System.out.println(); } } System.out.println("// End generated code for measunit.cpp"); } private static String toCamelCase(MeasureUnit unit) { StringBuilder result = new StringBuilder(); boolean caps = true; String code = unit.getSubtype(); String replacement = CLDR_NAME_REMAP.get(code); if (replacement != null) { code = replacement; } int len = code.length(); for (int i = 0; i < len; i++) { char ch = code.charAt(i); if (ch == '-') { caps = true; } else if (Character.isDigit(ch)) { caps = true; result.append(ch); } else if (caps) { result.append(Character.toUpperCase(ch)); caps = false; } else { result.append(ch); } } return result.toString(); } static boolean isTypeHidden(String type) { return "currency".equals(type); } // DO NOT DELETE THIS FUNCTION! It may appear as dead code, but we use this to generate code // for MeasureFormat during the release process. static void generateBackwardCompatibilityTest(String version) { Map<String, MeasureUnit> seen = new HashMap<>(); System.out.println(); System.out.printf(" public void TestCompatible%s() {\n", version.replace(".", "_")); System.out.println(" MeasureUnit[] units = {"); TreeMap<String, List<MeasureUnit>> allUnits = getAllUnits(); int count = 0; for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { if (isTypeHidden(entry.getKey())) { continue; } for (MeasureUnit unit : entry.getValue()) { String javaName = toJAVAName(unit); checkForDup(seen, javaName, unit); System.out.printf(" MeasureUnit.%s,\n", javaName); count++; } } System.out.println(" };"); System.out.printf(" assertEquals(\"\", %d, units.length);\n", count); System.out.println(" }"); } // DO NOT DELETE THIS FUNCTION! It may appear as dead code, but we use this to generate code // for MeasureFormat during the release process. static void generateCXXBackwardCompatibilityTest(String version) { System.out.println(); Map<String, MeasureUnit> seen = new HashMap<>(); System.out.printf("void MeasureFormatTest::TestCompatible%s() {\n", version.replace(".", "_")); System.out.println(" UErrorCode status = U_ZERO_ERROR;"); System.out.println(" LocalPointer<MeasureUnit> measureUnit;"); System.out.println(" MeasureUnit measureUnitValue;"); TreeMap<String, List<MeasureUnit>> allUnits = getAllUnits(); for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { if (isTypeHidden(entry.getKey())) { continue; } for (MeasureUnit unit : entry.getValue()) { String camelCase = toCamelCase(unit); checkForDup(seen, camelCase, unit); System.out.printf(" measureUnit.adoptInstead(MeasureUnit::create%s(status));\n", camelCase); System.out.printf(" measureUnitValue = MeasureUnit::get%s();\n", camelCase); } } System.out.println(" assertSuccess(\"\", status);"); System.out.println("}"); } static String toJAVAName(MeasureUnit unit) { String code = unit.getSubtype(); String type = unit.getType(); String replacement = CLDR_NAME_REMAP.get(code); if (replacement != null) { code = replacement; } String name = code.toUpperCase(Locale.ENGLISH).replace("-", "_"); if (type.equals("angle")) { if (code.equals("minute") || code.equals("second")) { name = "ARC_" + name; } } return name; } // DO NOT DELETE THIS FUNCTION! It may appear as dead code, but we use this to generate code // for MeasureFormat during the release process. static void generateConstants(String thisVersion) { System.out.println(" // Start generated MeasureUnit constants"); System.out.println(); Map<String, MeasureUnit> seen = new HashMap<>(); TreeMap<String, List<MeasureUnit>> allUnits = getAllUnits(); for (Map.Entry<String, List<MeasureUnit>> entry : allUnits.entrySet()) { String type = entry.getKey(); if (isTypeHidden(type)) { continue; } for (MeasureUnit unit : entry.getValue()) { String name = toJAVAName(unit); String code = unit.getSubtype(); checkForDup(seen, name, unit); System.out.println(" /**"); System.out.println(" * Constant for unit of " + type + ": " + code); // Special case JAVA had old constants for time from before. if ("duration".equals(type) && TIME_CODES.contains(code)) { System.out.println(" * @stable ICU 4.0"); } else if (isDraft(name)) { System.out.println(" * @draft ICU " + getVersion(name, thisVersion)); } else { System.out.println(" * @stable ICU " + getVersion(name, thisVersion)); } System.out.println(" */"); if ("duration".equals(type) && TIME_CODES.contains(code)) { System.out.println(" public static final TimeUnit " + name + " = (TimeUnit) MeasureUnit.internalGetInstance(\"" + type + "\", \"" + code + "\");"); } else { System.out.println(" public static final MeasureUnit " + name + " = MeasureUnit.internalGetInstance(\"" + type + "\", \"" + code + "\");"); } System.out.println(); } } System.out.println(" // End generated MeasureUnit constants"); } private static String getVersion(String javaName, String thisVersion) { String version = JAVA_VERSION_MAP.get(javaName); if (version == null) { return thisVersion; } return version; } private static boolean isDraft(String javaName) { String version = JAVA_VERSION_MAP.get(javaName); if (version == null) { return true; } return DRAFT_VERSION_SET.contains(version); } public <T extends Serializable> void checkStreamingEquality(T item) { try { ByteArrayOutputStream byteOut = new ByteArrayOutputStream(); ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteOut); objectOutputStream.writeObject(item); objectOutputStream.close(); byte[] contents = byteOut.toByteArray(); logln("bytes: " + contents.length + "; " + item.getClass() + ": " + showBytes(contents)); ByteArrayInputStream byteIn = new ByteArrayInputStream(contents); ObjectInputStream objectInputStream = new ObjectInputStream(byteIn); Object obj = objectInputStream.readObject(); assertEquals("Streamed Object equals ", item, obj); } catch (IOException e) { e.printStackTrace(); assertNull("Test Serialization " + item.getClass(), e); } catch (ClassNotFoundException e) { assertNull("Test Serialization " + item.getClass(), e); } } /** * @param contents * @return */ private String showBytes(byte[] contents) { StringBuilder b = new StringBuilder("["); for (int i = 0; i < contents.length; ++i) { int item = contents[i] & 0xFF; if (item >= 0x20 && item <= 0x7F) { b.append((char) item); } else { b.append('(').append(Utility.hex(item, 2)).append(')'); } } return b.append(']').toString(); } private void verifyEqualsHashCode(Object o, Object eq, Object ne) { assertEquals("verifyEqualsHashCodeSame", o, o); assertEquals("verifyEqualsHashCodeEq", o, eq); assertNotEquals("verifyEqualsHashCodeNe", o, ne); assertNotEquals("verifyEqualsHashCodeEqTrans", eq, ne); assertEquals("verifyEqualsHashCodeHashEq", o.hashCode(), eq.hashCode()); // May be a flaky test, but generally should be true. // May need to comment this out later. assertNotEquals("verifyEqualsHashCodeHashNe", o.hashCode(), ne.hashCode()); } public static class MeasureUnitHandler implements SerializableTestUtility.Handler { @Override public Object[] getTestObjects() { MeasureUnit items[] = { MeasureUnit.CELSIUS, Currency.getInstance("EUR") }; return items; } @Override public boolean hasSameBehavior(Object a, Object b) { MeasureUnit a1 = (MeasureUnit) a; MeasureUnit b1 = (MeasureUnit) b; return a1.getType().equals(b1.getType()) && a1.getSubtype().equals(b1.getSubtype()); } } public static class MeasureFormatHandler implements SerializableTestUtility.Handler { FormatHandler.NumberFormatHandler nfh = new FormatHandler.NumberFormatHandler(); @Override public Object[] getTestObjects() { MeasureFormat items[] = { MeasureFormat.getInstance(ULocale.FRANCE, FormatWidth.SHORT), MeasureFormat.getInstance( ULocale.FRANCE, FormatWidth.WIDE, NumberFormat.getIntegerInstance(ULocale.CANADA_FRENCH)), }; return items; } @Override public boolean hasSameBehavior(Object a, Object b) { MeasureFormat a1 = (MeasureFormat) a; MeasureFormat b1 = (MeasureFormat) b; boolean getLocaleEqual = a1.getLocale().equals(b1.getLocale()); boolean getWidthEqual = a1.getWidth().equals(b1.getWidth()); boolean numFmtHasSameBehavior = nfh.hasSameBehavior(a1.getNumberFormat(), b1.getNumberFormat()); if (getLocaleEqual && getWidthEqual && numFmtHasSameBehavior) { return true; } System.out.println("MeasureFormatHandler.hasSameBehavior fails:"); if (!getLocaleEqual) { System.out.println("- getLocale equality fails: old a1: " + a1.getLocale().getName() + "; test b1: " + b1.getLocale().getName()); } if (!getWidthEqual) { System.out.println("- getWidth equality fails: old a1: " + a1.getWidth().name() + "; test b1: " + b1.getWidth().name()); } if (!numFmtHasSameBehavior) { System.out.println("- getNumberFormat hasSameBehavior fails"); } return false; } } @Test public void TestNumericTimeNonLatin() { ULocale ulocale = ULocale.forLanguageTag("bn"); MeasureFormat fmt = MeasureFormat.getInstance(ulocale, FormatWidth.NUMERIC); String actual = fmt.formatMeasures(new Measure(12, MeasureUnit.MINUTE), new Measure(39.12345, MeasureUnit.SECOND)); assertEquals("Incorrect digits", ":.", actual); } @Test public void TestNumericTime() { MeasureFormat fmt = MeasureFormat.getInstance(ULocale.forLanguageTag("en"), FormatWidth.NUMERIC); Measure hours = new Measure(112, MeasureUnit.HOUR); Measure minutes = new Measure(113, MeasureUnit.MINUTE); Measure seconds = new Measure(114, MeasureUnit.SECOND); Measure fhours = new Measure(112.8765, MeasureUnit.HOUR); Measure fminutes = new Measure(113.8765, MeasureUnit.MINUTE); Measure fseconds = new Measure(114.8765, MeasureUnit.SECOND); Assert.assertEquals("112h", fmt.formatMeasures(hours)); Assert.assertEquals("113m", fmt.formatMeasures(minutes)); Assert.assertEquals("114s", fmt.formatMeasures(seconds)); Assert.assertEquals("112.876h", fmt.formatMeasures(fhours)); Assert.assertEquals("113.876m", fmt.formatMeasures(fminutes)); Assert.assertEquals("114.876s", fmt.formatMeasures(fseconds)); Assert.assertEquals("112:113", fmt.formatMeasures(hours, minutes)); Assert.assertEquals("112:00:114", fmt.formatMeasures(hours, seconds)); Assert.assertEquals("113:114", fmt.formatMeasures(minutes, seconds)); Assert.assertEquals("112:113.876", fmt.formatMeasures(hours, fminutes)); Assert.assertEquals("112:00:114.876", fmt.formatMeasures(hours, fseconds)); Assert.assertEquals("113:114.876", fmt.formatMeasures(minutes, fseconds)); Assert.assertEquals("112:113", fmt.formatMeasures(fhours, minutes)); Assert.assertEquals("112:00:114", fmt.formatMeasures(fhours, seconds)); Assert.assertEquals("113:114", fmt.formatMeasures(fminutes, seconds)); Assert.assertEquals("112:113.876", fmt.formatMeasures(fhours, fminutes)); Assert.assertEquals("112:00:114.876", fmt.formatMeasures(fhours, fseconds)); Assert.assertEquals("113:114.876", fmt.formatMeasures(fminutes, fseconds)); Assert.assertEquals("112:113:114", fmt.formatMeasures(hours, minutes, seconds)); Assert.assertEquals("112:113:114.876", fmt.formatMeasures(fhours, fminutes, fseconds)); } @Test public void TestNumericTimeSomeSpecialFormats() { Measure fhours = new Measure(2.8765432, MeasureUnit.HOUR); Measure fminutes = new Measure(3.8765432, MeasureUnit.MINUTE); // Latvian is one of the very few locales 0-padding the hour MeasureFormat fmt = MeasureFormat.getInstance(ULocale.forLanguageTag("lt"), FormatWidth.NUMERIC); Assert.assertEquals("02:03,877", fmt.formatMeasures(fhours, fminutes)); // Danish is one of the very few locales using '.' as separator fmt = MeasureFormat.getInstance(ULocale.forLanguageTag("da"), FormatWidth.NUMERIC); Assert.assertEquals("2.03,877", fmt.formatMeasures(fhours, fminutes)); } @Test public void TestIdentifiers() { class TestCase { final String id; final String normalized; TestCase(String id, String normalized) { this.id = id; this.normalized = normalized; } } TestCase cases[] = { // Correctly normalized identifiers should not change new TestCase("square-meter-per-square-meter", "square-meter-per-square-meter"), new TestCase("kilogram-meter-per-square-meter-square-second", "kilogram-meter-per-square-meter-square-second"), new TestCase("square-mile-and-square-foot", "square-mile-and-square-foot"), new TestCase("square-foot-and-square-mile", "square-foot-and-square-mile"), new TestCase("per-cubic-centimeter", "per-cubic-centimeter"), new TestCase("per-kilometer", "per-kilometer"), // Normalization of power and per new TestCase("pow2-foot-and-pow2-mile", "square-foot-and-square-mile"), new TestCase("gram-square-gram-per-dekagram", "cubic-gram-per-dekagram"), new TestCase("kilogram-per-meter-per-second", "kilogram-per-meter-second"), new TestCase("kilometer-per-second-per-megaparsec", "kilometer-per-megaparsec-second"), // Correct order of units, as per unitQuantities in CLDR's units.xml new TestCase("newton-meter", "newton-meter"), new TestCase("meter-newton", "newton-meter"), new TestCase("pound-force-foot", "pound-force-foot"), new TestCase("foot-pound-force", "pound-force-foot"), new TestCase("kilowatt-hour", "kilowatt-hour"), new TestCase("hour-kilowatt", "kilowatt-hour"), // Testing prefixes are parsed and produced correctly (ensures no // collisions in the enum values) new TestCase("yoctofoot", "yoctofoot"), new TestCase("zeptofoot", "zeptofoot"), new TestCase("attofoot", "attofoot"), new TestCase("femtofoot", "femtofoot"), new TestCase("picofoot", "picofoot"), new TestCase("nanofoot", "nanofoot"), new TestCase("microfoot", "microfoot"), new TestCase("millifoot", "millifoot"), new TestCase("centifoot", "centifoot"), new TestCase("decifoot", "decifoot"), new TestCase("foot", "foot"), new TestCase("dekafoot", "dekafoot"), new TestCase("hectofoot", "hectofoot"), new TestCase("kilofoot", "kilofoot"), new TestCase("megafoot", "megafoot"), new TestCase("gigafoot", "gigafoot"), new TestCase("terafoot", "terafoot"), new TestCase("petafoot", "petafoot"), new TestCase("exafoot", "exafoot"), new TestCase("zettafoot", "zettafoot"), new TestCase("yottafoot", "yottafoot"), new TestCase("kibibyte", "kibibyte"), new TestCase("mebibyte", "mebibyte"), new TestCase("gibibyte", "gibibyte"), new TestCase("tebibyte", "tebibyte"), new TestCase("pebibyte", "pebibyte"), new TestCase("exbibyte", "exbibyte"), new TestCase("zebibyte", "zebibyte"), new TestCase("yobibyte", "yobibyte"), // Testing aliases new TestCase("foodcalorie", "foodcalorie"), new TestCase("dot-per-centimeter", "dot-per-centimeter"), new TestCase("dot-per-inch", "dot-per-inch"), new TestCase("dot", "dot"), // Testing sort order of prefixes. new TestCase("megafoot-mebifoot-kibifoot-kilofoot", "mebifoot-megafoot-kibifoot-kilofoot"), new TestCase("per-megafoot-mebifoot-kibifoot-kilofoot", "per-mebifoot-megafoot-kibifoot-kilofoot"), new TestCase(your_sha256_hashot-kilofoot", your_sha256_hashot-kilofoot"), new TestCase("microfoot-millifoot-megafoot-mebifoot-kibifoot-kilofoot", "mebifoot-megafoot-kibifoot-kilofoot-millifoot-microfoot"), new TestCase("per-microfoot-millifoot-megafoot-mebifoot-kibifoot-kilofoot", "per-mebifoot-megafoot-kibifoot-kilofoot-millifoot-microfoot"), }; for (TestCase testCase : cases) { MeasureUnit unit = MeasureUnit.forIdentifier(testCase.id); final String actual = unit.getIdentifier(); assertEquals(testCase.id, testCase.normalized, actual); } assertEquals("for empty identifiers, the MeasureUnit will be null", null, MeasureUnit.forIdentifier("")); } @Test public void TestInvalidIdentifiers() { final String inputs[] = { "kilo", "kilokilo", "onekilo", "meterkilo", "meter-kilo", "k", "meter-", "meter+", "-meter", "+meter", "-kilometer", "+kilometer", "-pow2-meter", "+pow2-meter", "p2-meter", "p4-meter", "+", "-", "-mile", "-and-mile", "-per-mile", "one", "one-one", "one-per-mile", "one-per-cubic-centimeter", "square--per-meter", "metersecond", // Must have compound part in between single units // Negative powers not supported in mixed units yet. TODO(CLDR-13701). "per-hour-and-hertz", "hertz-and-per-hour", // Compound units not supported in mixed units yet. TODO(CLDR-13701). "kilonewton-meter-and-newton-meter", }; for (String input : inputs) { try { MeasureUnit.forIdentifier(input); Assert.fail("An IllegalArgumentException must be thrown"); } catch (IllegalArgumentException e) { continue; } } } @Test public void TestIdentifierDetails() { MeasureUnit joule = MeasureUnit.forIdentifier("joule"); assertEquals("Initial joule", "joule", joule.getIdentifier()); // "Invalid prefix" test not needed: in Java we cannot pass a // non-existent enum instance. (In C++ an int can be typecast.) MeasureUnit unit = joule.withPrefix(MeasureUnit.MeasurePrefix.HECTO); assertEquals("Joule with hecto prefix", "hectojoule", unit.getIdentifier()); unit = unit.withPrefix(MeasureUnit.MeasurePrefix.EXBI); assertEquals("Joule with exbi prefix", "exbijoule", unit.getIdentifier()); } @Test public void TestPrefixes() { class TestCase { final MeasureUnit.MeasurePrefix prefix; final int expectedBase; final int expectedPower; TestCase(MeasureUnit.MeasurePrefix prefix, int expectedBase, int expectedPower) { this.prefix = prefix; this.expectedBase = expectedBase; this.expectedPower = expectedPower; } } TestCase cases[] = { new TestCase(MeasureUnit.MeasurePrefix.QUECTO, 10, -30), new TestCase(MeasureUnit.MeasurePrefix.RONTO, 10, -27), new TestCase(MeasureUnit.MeasurePrefix.YOCTO, 10, -24), new TestCase(MeasureUnit.MeasurePrefix.ZEPTO, 10, -21), new TestCase(MeasureUnit.MeasurePrefix.ATTO, 10, -18), new TestCase(MeasureUnit.MeasurePrefix.FEMTO, 10, -15), new TestCase(MeasureUnit.MeasurePrefix.PICO, 10, -12), new TestCase(MeasureUnit.MeasurePrefix.NANO, 10, -9), new TestCase(MeasureUnit.MeasurePrefix.MICRO, 10, -6), new TestCase(MeasureUnit.MeasurePrefix.MILLI, 10, -3), new TestCase(MeasureUnit.MeasurePrefix.CENTI, 10, -2), new TestCase(MeasureUnit.MeasurePrefix.DECI, 10, -1), new TestCase(MeasureUnit.MeasurePrefix.ONE, 10, 0), new TestCase(MeasureUnit.MeasurePrefix.DEKA, 10, 1), new TestCase(MeasureUnit.MeasurePrefix.HECTO, 10, 2), new TestCase(MeasureUnit.MeasurePrefix.KILO, 10, 3), new TestCase(MeasureUnit.MeasurePrefix.MEGA, 10, 6), new TestCase(MeasureUnit.MeasurePrefix.GIGA, 10, 9), new TestCase(MeasureUnit.MeasurePrefix.TERA, 10, 12), new TestCase(MeasureUnit.MeasurePrefix.PETA, 10, 15), new TestCase(MeasureUnit.MeasurePrefix.EXA, 10, 18), new TestCase(MeasureUnit.MeasurePrefix.ZETTA, 10, 21), new TestCase(MeasureUnit.MeasurePrefix.YOTTA, 10, 24), new TestCase(MeasureUnit.MeasurePrefix.RONNA, 10, 27), new TestCase(MeasureUnit.MeasurePrefix.QUETTA, 10, 30), new TestCase(MeasureUnit.MeasurePrefix.KIBI, 1024, 1), new TestCase(MeasureUnit.MeasurePrefix.MEBI, 1024, 2), new TestCase(MeasureUnit.MeasurePrefix.GIBI, 1024, 3), new TestCase(MeasureUnit.MeasurePrefix.TEBI, 1024, 4), new TestCase(MeasureUnit.MeasurePrefix.PEBI, 1024, 5), new TestCase(MeasureUnit.MeasurePrefix.EXBI, 1024, 6), new TestCase(MeasureUnit.MeasurePrefix.ZEBI, 1024, 7), new TestCase(MeasureUnit.MeasurePrefix.YOBI, 1024, 8), }; for (TestCase testCase : cases) { MeasureUnit m = MeasureUnit.AMPERE.withPrefix(testCase.prefix); assertEquals("getPrefixPower()", testCase.expectedPower, m.getPrefix().getPower()); assertEquals("getPrefixBase()", testCase.expectedBase, m.getPrefix().getBase()); } } @Test public void TestParseBuiltIns() { for (MeasureUnit unit : MeasureUnit.getAvailable()) { System.out.println("unit ident: " + unit.getIdentifier() + ", type: " + unit.getType()); if (unit.getType() == "currency") { continue; } if (unit.getIdentifier().equals("portion-per-1e9")) { logKnownIssue("ICU-22781", "Handle concentr/perbillion in ICU"); continue; } // Prove that all built-in units are parseable, except "generic" temperature // (and for now, beaufort units) if (unit == MeasureUnit.GENERIC_TEMPERATURE) { try { MeasureUnit.forIdentifier(unit.getIdentifier()); Assert.fail("GENERIC_TEMPERATURE should not be parseable (BEAUFORT also currently non-parseable)"); } catch (IllegalArgumentException e) { continue; } } else { MeasureUnit parsed = MeasureUnit.forIdentifier(unit.getIdentifier()); assertTrue("parsed MeasureUnit '" + parsed + "'' should equal built-in '" + unit + "'", unit.equals(parsed)); } } } @Test public void TestParseToBuiltIn() { class TestCase { final String identifier; MeasureUnit expectedBuiltin; TestCase(String identifier, MeasureUnit expectedBuiltin) { this.identifier = identifier; this.expectedBuiltin = expectedBuiltin; } } TestCase cases[] = { new TestCase("meter-per-second-per-second", MeasureUnit.METER_PER_SECOND_SQUARED), new TestCase("meter-per-second-second", MeasureUnit.METER_PER_SECOND_SQUARED), new TestCase("centimeter-centimeter", MeasureUnit.SQUARE_CENTIMETER), new TestCase("square-foot", MeasureUnit.SQUARE_FOOT), new TestCase("pow2-inch", MeasureUnit.SQUARE_INCH), new TestCase("milligram-per-deciliter", MeasureUnit.MILLIGRAM_PER_DECILITER), new TestCase("pound-force-per-pow2-inch", MeasureUnit.POUND_PER_SQUARE_INCH), new TestCase("yard-pow2-yard", MeasureUnit.CUBIC_YARD), new TestCase("square-yard-yard", MeasureUnit.CUBIC_YARD), }; for (TestCase testCase : cases) { MeasureUnit m = MeasureUnit.forIdentifier(testCase.identifier); assertTrue(testCase.identifier + " parsed to builtin", m.equals(testCase.expectedBuiltin)); } } @Test public void TestCompoundUnitOperations() { MeasureUnit.forIdentifier("kilometer-per-second-joule"); MeasureUnit kilometer = MeasureUnit.KILOMETER; MeasureUnit cubicMeter = MeasureUnit.CUBIC_METER; MeasureUnit meter = kilometer.withPrefix(MeasureUnit.MeasurePrefix.ONE); MeasureUnit centimeter1 = kilometer.withPrefix(MeasureUnit.MeasurePrefix.CENTI); MeasureUnit centimeter2 = meter.withPrefix(MeasureUnit.MeasurePrefix.CENTI); MeasureUnit cubicDecimeter = cubicMeter.withPrefix(MeasureUnit.MeasurePrefix.DECI); verifySingleUnit(kilometer, MeasureUnit.MeasurePrefix.KILO, 1, "kilometer"); verifySingleUnit(meter, MeasureUnit.MeasurePrefix.ONE, 1, "meter"); verifySingleUnit(centimeter1, MeasureUnit.MeasurePrefix.CENTI, 1, "centimeter"); verifySingleUnit(centimeter2, MeasureUnit.MeasurePrefix.CENTI, 1, "centimeter"); verifySingleUnit(cubicDecimeter, MeasureUnit.MeasurePrefix.DECI, 3, "cubic-decimeter"); assertTrue("centimeter equality", centimeter1.equals( centimeter2)); assertTrue("kilometer inequality", !centimeter1.equals( kilometer)); MeasureUnit squareMeter = meter.withDimensionality(2); MeasureUnit overCubicCentimeter = centimeter1.withDimensionality(-3); MeasureUnit quarticKilometer = kilometer.withDimensionality(4); MeasureUnit overQuarticKilometer1 = kilometer.withDimensionality(-4); verifySingleUnit(squareMeter, MeasureUnit.MeasurePrefix.ONE, 2, "square-meter"); verifySingleUnit(overCubicCentimeter, MeasureUnit.MeasurePrefix.CENTI, -3, "per-cubic-centimeter"); verifySingleUnit(quarticKilometer, MeasureUnit.MeasurePrefix.KILO, 4, "pow4-kilometer"); verifySingleUnit(overQuarticKilometer1, MeasureUnit.MeasurePrefix.KILO, -4, "per-pow4-kilometer"); assertTrue("power inequality", quarticKilometer != overQuarticKilometer1); MeasureUnit overQuarticKilometer2 = quarticKilometer.reciprocal(); MeasureUnit overQuarticKilometer3 = kilometer.product(kilometer) .product(kilometer) .product(kilometer) .reciprocal(); MeasureUnit overQuarticKilometer4 = meter.withDimensionality(4) .reciprocal() .withPrefix(MeasureUnit.MeasurePrefix.KILO); verifySingleUnit(overQuarticKilometer2, MeasureUnit.MeasurePrefix.KILO, -4, "per-pow4-kilometer"); verifySingleUnit(overQuarticKilometer3, MeasureUnit.MeasurePrefix.KILO, -4, "per-pow4-kilometer"); verifySingleUnit(overQuarticKilometer4, MeasureUnit.MeasurePrefix.KILO, -4, "per-pow4-kilometer"); assertTrue("reciprocal equality", overQuarticKilometer1.equals(overQuarticKilometer2)); assertTrue("reciprocal equality", overQuarticKilometer1.equals(overQuarticKilometer3)); assertTrue("reciprocal equality", overQuarticKilometer1.equals(overQuarticKilometer4)); MeasureUnit kiloSquareSecond = MeasureUnit.SECOND .withDimensionality(2).withPrefix(MeasureUnit.MeasurePrefix.KILO); MeasureUnit meterSecond = meter.product(kiloSquareSecond); MeasureUnit cubicMeterSecond1 = meter.withDimensionality(3).product(kiloSquareSecond); MeasureUnit centimeterSecond1 = meter.withPrefix(MeasureUnit.MeasurePrefix.CENTI).product(kiloSquareSecond); MeasureUnit secondCubicMeter = kiloSquareSecond.product(meter.withDimensionality(3)); MeasureUnit secondCentimeter = kiloSquareSecond.product(meter.withPrefix(MeasureUnit.MeasurePrefix.CENTI)); MeasureUnit secondCentimeterPerKilometer = secondCentimeter.product(kilometer.reciprocal()); verifySingleUnit(kiloSquareSecond, MeasureUnit.MeasurePrefix.KILO, 2, "square-kilosecond"); String meterSecondSub[] = { "meter", "square-kilosecond" }; verifyCompoundUnit(meterSecond, "meter-square-kilosecond", meterSecondSub, meterSecondSub.length); String cubicMeterSecond1Sub[] = { "cubic-meter", "square-kilosecond" }; verifyCompoundUnit(cubicMeterSecond1, "cubic-meter-square-kilosecond", cubicMeterSecond1Sub, cubicMeterSecond1Sub.length); String centimeterSecond1Sub[] = { "centimeter", "square-kilosecond" }; verifyCompoundUnit(centimeterSecond1, "centimeter-square-kilosecond", centimeterSecond1Sub, centimeterSecond1Sub.length); String secondCubicMeterSub[] = { "cubic-meter", "square-kilosecond" }; verifyCompoundUnit(secondCubicMeter, "cubic-meter-square-kilosecond", secondCubicMeterSub, secondCubicMeterSub.length); String secondCentimeterSub[] = { "centimeter", "square-kilosecond" }; verifyCompoundUnit(secondCentimeter, "centimeter-square-kilosecond", secondCentimeterSub, secondCentimeterSub.length); String secondCentimeterPerKilometerSub[] = { "centimeter", "square-kilosecond", "per-kilometer" }; verifyCompoundUnit(secondCentimeterPerKilometer, "centimeter-square-kilosecond-per-kilometer", secondCentimeterPerKilometerSub, secondCentimeterPerKilometerSub.length); assertTrue("reordering equality", cubicMeterSecond1.equals(secondCubicMeter)); assertTrue("additional simple units inequality", !secondCubicMeter.equals(secondCentimeter)); // Don't allow get/set power or SI or binary prefix on compound units try { meterSecond.getDimensionality(); fail("UnsupportedOperationException must be thrown"); } catch (UnsupportedOperationException e) { // Expecting an exception to be thrown } try { meterSecond.withDimensionality(3); fail("UnsupportedOperationException must be thrown"); } catch (UnsupportedOperationException e) { // Expecting an exception to be thrown } try { meterSecond.getPrefix(); fail("UnsupportedOperationException must be thrown"); } catch (UnsupportedOperationException e) { // Expecting an exception to be thrown } try { meterSecond.withPrefix(MeasureUnit.MeasurePrefix.CENTI); fail("UnsupportedOperationException must be thrown"); } catch (UnsupportedOperationException e) { // Expecting an exception to be thrown } MeasureUnit footInch = MeasureUnit.forIdentifier("foot-and-inch"); MeasureUnit inchFoot = MeasureUnit.forIdentifier("inch-and-foot"); String footInchSub[] = { "foot", "inch" }; verifyMixedUnit(footInch, "foot-and-inch", footInchSub, footInchSub.length); String inchFootSub[] = { "inch", "foot" }; verifyMixedUnit(inchFoot, "inch-and-foot", inchFootSub, inchFootSub.length); assertTrue("order matters inequality", !footInch.equals(inchFoot)); MeasureUnit dimensionless = NoUnit.BASE; MeasureUnit dimensionless2 = MeasureUnit.forIdentifier(""); assertEquals("dimensionless equality", dimensionless, dimensionless2); // We support starting from an "identity" MeasureUnit and then combining it // with others via product: MeasureUnit kilometer2 = kilometer.product(dimensionless); verifySingleUnit(kilometer2, MeasureUnit.MeasurePrefix.KILO, 1, "kilometer"); assertTrue("kilometer equality", kilometer.equals(kilometer2)); // Test out-of-range powers MeasureUnit power15 = MeasureUnit.forIdentifier("pow15-kilometer"); verifySingleUnit(power15, MeasureUnit.MeasurePrefix.KILO, 15, "pow15-kilometer"); try { MeasureUnit.forIdentifier("pow16-kilometer"); fail("An IllegalArgumentException must be thrown"); } catch (IllegalArgumentException e) { // Expecting an exception to be thrown } try { power15.product(kilometer); fail("An IllegalArgumentException must be thrown"); } catch (IllegalArgumentException e) { // Expecting an exception to be thrown } MeasureUnit powerN15 = MeasureUnit.forIdentifier("per-pow15-kilometer"); verifySingleUnit(powerN15, MeasureUnit.MeasurePrefix.KILO, -15, "per-pow15-kilometer"); try { MeasureUnit.forIdentifier("per-pow16-kilometer"); fail("An IllegalArgumentException must be thrown"); } catch (IllegalArgumentException e) { // Expecting an exception to be thrown } try { powerN15.product(overQuarticKilometer1); fail("An IllegalArgumentException must be thrown"); } catch (IllegalArgumentException e) { // Expecting an exception to be thrown } } @Test public void TestDimensionlessBehaviour() { MeasureUnit dimensionless = MeasureUnit.forIdentifier(""); MeasureUnit dimensionless2 = NoUnit.BASE; MeasureUnit dimensionless3 = null; MeasureUnit dimensionless4 = MeasureUnit.forIdentifier(null); assertEquals("dimensionless must be equals", dimensionless, dimensionless2); assertEquals("dimensionless must be equals", dimensionless2, dimensionless3); assertEquals("dimensionless must be equals", dimensionless3, dimensionless4); // product(dimensionless) MeasureUnit mile = MeasureUnit.MILE; mile = mile.product(dimensionless); verifySingleUnit(mile, MeasureUnit.MeasurePrefix.ONE, 1, "mile"); } private void verifySingleUnit(MeasureUnit singleMeasureUnit, MeasureUnit.MeasurePrefix prefix, int power, String identifier) { assertEquals(identifier + ": SI or binary prefix", prefix, singleMeasureUnit.getPrefix()); assertEquals(identifier + ": Power", power, singleMeasureUnit.getDimensionality()); assertEquals(identifier + ": Identifier", identifier, singleMeasureUnit.getIdentifier()); assertTrue(identifier + ": Constructor", singleMeasureUnit.equals(MeasureUnit.forIdentifier(identifier))); assertEquals(identifier + ": Complexity", MeasureUnit.Complexity.SINGLE, singleMeasureUnit.getComplexity()); } // Kilogram is a "base unit", although it's also "gram" with a kilo- prefix. // This tests that it is handled in the preferred manner. @Test public void TestKilogramIdentifier() { // SI unit of mass MeasureUnit kilogram = MeasureUnit.forIdentifier("kilogram"); // Metric mass unit MeasureUnit gram = MeasureUnit.forIdentifier("gram"); // Microgram: still a built-in type MeasureUnit microgram = MeasureUnit.forIdentifier("microgram"); // Nanogram: not a built-in type at this time MeasureUnit nanogram = MeasureUnit.forIdentifier("nanogram"); assertEquals("parsed kilogram equals built-in kilogram", MeasureUnit.KILOGRAM.getType(), kilogram.getType()); assertEquals("parsed kilogram equals built-in kilogram", MeasureUnit.KILOGRAM.getSubtype(), kilogram.getSubtype()); assertEquals("parsed gram equals built-in gram", MeasureUnit.GRAM.getType(), gram.getType()); assertEquals("parsed gram equals built-in gram", MeasureUnit.GRAM.getSubtype(), gram.getSubtype()); assertEquals("parsed microgram equals built-in microgram", MeasureUnit.MICROGRAM.getType(), microgram.getType()); assertEquals("parsed microgram equals built-in microgram", MeasureUnit.MICROGRAM.getSubtype(), microgram.getSubtype()); assertEquals("nanogram", null, nanogram.getType()); assertEquals("nanogram", "nanogram", nanogram.getIdentifier()); assertEquals("prefix of kilogram", MeasureUnit.MeasurePrefix.KILO, kilogram.getPrefix()); assertEquals("prefix of gram", MeasureUnit.MeasurePrefix.ONE, gram.getPrefix()); assertEquals("prefix of microgram", MeasureUnit.MeasurePrefix.MICRO, microgram.getPrefix()); assertEquals("prefix of nanogram", MeasureUnit.MeasurePrefix.NANO, nanogram.getPrefix()); MeasureUnit tmp = kilogram.withPrefix(MeasureUnit.MeasurePrefix.MILLI); assertEquals("Kilogram + milli should be milligram, got: " + tmp.getIdentifier(), MeasureUnit.MILLIGRAM.getIdentifier(), tmp.getIdentifier()); } @Test public void TestInternalMeasureUnitImpl() { MeasureUnitImpl mu1 = MeasureUnitImpl.forIdentifier("meter"); assertEquals("mu1 initial identifier", null, mu1.getIdentifier()); assertEquals("mu1 initial complexity", MeasureUnit.Complexity.SINGLE, mu1.getComplexity()); assertEquals("mu1 initial units length", 1, mu1.getSingleUnits().size()); assertEquals("mu1 initial units[0]", "meter", mu1.getSingleUnits().get(0).getSimpleUnitID()); // Producing identifier via build(): the MeasureUnitImpl instance gets modified // while it also gets assigned to tmp's internal measureUnitImpl. MeasureUnit tmp = mu1.build(); assertEquals("mu1 post-build identifier", "meter", mu1.getIdentifier()); assertEquals("mu1 post-build complexity", MeasureUnit.Complexity.SINGLE, mu1.getComplexity()); assertEquals("mu1 post-build units length", 1, mu1.getSingleUnits().size()); assertEquals("mu1 post-build units[0]", "meter", mu1.getSingleUnits().get(0).getSimpleUnitID()); assertEquals("MeasureUnit tmp identifier", "meter", tmp.getIdentifier()); mu1 = MeasureUnitImpl.forIdentifier("hour-and-minute-and-second"); assertEquals("mu1 = HMS: identifier", null, mu1.getIdentifier()); assertEquals("mu1 = HMS: complexity", MeasureUnit.Complexity.MIXED, mu1.getComplexity()); assertEquals("mu1 = HMS: units length", 3, mu1.getSingleUnits().size()); assertEquals("mu1 = HMS: units[0]", "hour", mu1.getSingleUnits().get(0).getSimpleUnitID()); assertEquals("mu1 = HMS: units[1]", "minute", mu1.getSingleUnits().get(1).getSimpleUnitID()); assertEquals("mu1 = HMS: units[2]", "second", mu1.getSingleUnits().get(2).getSimpleUnitID()); MeasureUnitImpl m2 = MeasureUnitImpl.forIdentifier("meter"); m2.appendSingleUnit(MeasureUnit.METER.getCopyOfMeasureUnitImpl().getSingleUnitImpl()); assertEquals("append meter twice: complexity", MeasureUnit.Complexity.SINGLE, m2.getComplexity()); assertEquals("append meter twice: units length", 1, m2.getSingleUnits().size()); assertEquals("append meter twice: units[0]", "meter", m2.getSingleUnits().get(0).getSimpleUnitID()); assertEquals("append meter twice: identifier", "square-meter", m2.build().getIdentifier()); MeasureUnitImpl mcm = MeasureUnitImpl.forIdentifier("meter"); mcm.appendSingleUnit(MeasureUnit.CENTIMETER.getCopyOfMeasureUnitImpl().getSingleUnitImpl()); assertEquals("append meter & centimeter: complexity", MeasureUnit.Complexity.COMPOUND, mcm.getComplexity()); assertEquals("append meter & centimeter: units length", 2, mcm.getSingleUnits().size()); assertEquals("append meter & centimeter: units[0]", "meter", mcm.getSingleUnits().get(0).getSimpleUnitID()); assertEquals("append meter & centimeter: units[1]", "meter", mcm.getSingleUnits().get(1).getSimpleUnitID()); assertEquals("append meter & centimeter: identifier", "meter-centimeter", mcm.build().getIdentifier()); MeasureUnitImpl m2m = MeasureUnitImpl.forIdentifier("meter-square-meter"); assertEquals("meter-square-meter: complexity", MeasureUnit.Complexity.SINGLE, m2m.getComplexity()); assertEquals("meter-square-meter: units length", 1, m2m.getSingleUnits().size()); assertEquals("meter-square-meter: units[0]", "meter", m2m.getSingleUnits().get(0).getSimpleUnitID()); assertEquals("meter-square-meter: identifier", "cubic-meter", m2m.build().getIdentifier()); } private void verifyCompoundUnit( MeasureUnit unit, String identifier, String subIdentifiers[], int subIdentifierCount) { assertEquals(identifier + ": Identifier", identifier, unit.getIdentifier()); assertTrue(identifier + ": Constructor", unit.equals(MeasureUnit.forIdentifier(identifier))); assertEquals(identifier + ": Complexity", MeasureUnit.Complexity.COMPOUND, unit.getComplexity()); List<MeasureUnit> subUnits = unit.splitToSingleUnits(); assertEquals(identifier + ": Length", subIdentifierCount, subUnits.size()); for (int i = 0; ; i++) { if (i >= subIdentifierCount || i >= subUnits.size()) break; assertEquals(identifier + ": Sub-unit #" + i, subIdentifiers[i], subUnits.get(i).getIdentifier()); assertEquals(identifier + ": Sub-unit Complexity", MeasureUnit.Complexity.SINGLE, subUnits.get(i).getComplexity()); } } private void verifyMixedUnit( MeasureUnit unit, String identifier, String subIdentifiers[], int subIdentifierCount) { assertEquals(identifier + ": Identifier", identifier, unit.getIdentifier()); assertTrue(identifier + ": Constructor", unit.equals(MeasureUnit.forIdentifier(identifier))); assertEquals(identifier + ": Complexity", MeasureUnit.Complexity.MIXED, unit.getComplexity()); List<MeasureUnit> subUnits = unit.splitToSingleUnits(); assertEquals(identifier + ": Length", subIdentifierCount, subUnits.size()); for (int i = 0; ; i++) { if (i >= subIdentifierCount || i >= subUnits.size()) break; assertEquals(identifier + ": Sub-unit #" + i, subIdentifiers[i], subUnits.get(i).getIdentifier()); } } } ```
```javascript import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import { Menu } from "./Menu"; const data = [ { name: "Baked Salmon", ingredients: [ { name: "Salmon", amount: 1, measurement: "l lb" }, { name: "Pine Nuts", amount: 1, measurement: "cup" }, { name: "Butter Lettuce", amount: 2, measurement: "cups" }, { name: "Yellow Squash", amount: 1, measurement: "med" }, { name: "Olive Oil", amount: 0.5, measurement: "cup" }, { name: "Garlic", amount: 3, measurement: "cloves" } ], steps: [ "Preheat the oven to 350 degrees.", "Spread the olive oil around a glass baking dish.", "Add the yellow squash and place in the oven for 30 mins.", "Add the salmon, garlic, and pine nuts to the dish.", "Bake for 15 minutes.", "Remove from oven. Add the lettuce and serve." ] }, { name: "Fish Tacos", ingredients: [ { name: "Whitefish", amount: 1, measurement: "l lb" }, { name: "Cheese", amount: 1, measurement: "cup" }, { name: "Iceberg Lettuce", amount: 2, measurement: "cups" }, { name: "Tomatoes", amount: 2, measurement: "large" }, { name: "Tortillas", amount: 3, measurement: "med" } ], steps: [ "Cook the fish on the grill until hot.", "Place the fish on the 3 tortillas.", "Top them with lettuce, tomatoes, and cheese." ] } ]; ReactDOM.hydrate( <Menu recipes={data} title="Delicious Recipes" />, document.getElementById("root") ); ```
```xml import type { PropsWithChildren } from 'react'; import { type FC, createContext, useCallback, useContext, useEffect, useState } from 'react'; import { IFRAME_APP_READY_EVENT } from 'proton-pass-extension/app/content/constants.static'; import type { IFrameCloseOptions, IFrameEndpoint, IFrameMessage, IFrameMessageType, IFrameMessageWithSender, IFramePortMessageHandler, } from 'proton-pass-extension/app/content/types'; import { IFramePortMessageType } from 'proton-pass-extension/app/content/types'; import locales from 'proton-pass-extension/app/locales'; import { INITIAL_WORKER_STATE } from 'proton-pass-extension/lib/components/Extension/ExtensionConnect'; import { useExtensionActivityProbe } from 'proton-pass-extension/lib/hooks/useExtensionActivityProbe'; import type { Runtime } from 'webextension-polyfill'; import { usePassCore } from '@proton/pass/components/Core/PassCoreProvider'; import { clientReady } from '@proton/pass/lib/client'; import { contentScriptMessage, portForwardingMessage, sendMessage } from '@proton/pass/lib/extension/message'; import browser from '@proton/pass/lib/globals/browser'; import type { FeatureFlagState } from '@proton/pass/store/reducers'; import { type ProxiedSettings, getInitialSettings } from '@proton/pass/store/reducers/settings'; import type { AppState, Maybe, MaybeNull, RecursivePartial } from '@proton/pass/types'; import { WorkerMessageType } from '@proton/pass/types'; import { safeCall } from '@proton/pass/utils/fp/safe-call'; import { logger } from '@proton/pass/utils/logger'; import { setTtagLocales } from '@proton/shared/lib/i18n/locales'; import noop from '@proton/utils/noop'; export type IFrameContextValue = { endpoint: string; features: RecursivePartial<FeatureFlagState>; port: MaybeNull<Runtime.Port>; settings: ProxiedSettings; userEmail: MaybeNull<string>; visible: boolean; appState: AppState; close: (options?: IFrameCloseOptions) => void; forwardMessage: (message: IFrameMessage) => void; postMessage: (message: any) => void; registerHandler: <M extends IFrameMessageType>(type: M, handler: IFramePortMessageHandler<M>) => () => void; resize: (height: number) => void; }; export const IFrameContext = createContext<MaybeNull<IFrameContextValue>>(null); type PortContext = { port: MaybeNull<Runtime.Port>; forwardTo: MaybeNull<string> }; /* The IFrameContextProvider is responsible for opening a new * dedicated port with the service-worker and sending out port- * forwarding messages to the content-script's ports. We retrieve * the content-script's parent port name through postMessaging */ export const IFrameApp: FC<PropsWithChildren<{ endpoint: IFrameEndpoint }>> = ({ endpoint, children }) => { const { i18n } = usePassCore(); const [{ port, forwardTo }, setPortContext] = useState<PortContext>({ port: null, forwardTo: null }); const [appState, setAppState] = useState<IFrameContextValue['appState']>(INITIAL_WORKER_STATE); const [settings, setSettings] = useState<ProxiedSettings>(getInitialSettings()); const [features, setFeatures] = useState<RecursivePartial<FeatureFlagState>>({}); const [userEmail, setUserEmail] = useState<MaybeNull<string>>(null); const [visible, setVisible] = useState<boolean>(false); const activityProbe = useExtensionActivityProbe(contentScriptMessage); const destroyFrame = () => { logger.info(`[IFrame::${endpoint}] Unauthorized iframe injection`); safeCall(() => port?.disconnect())(); setPortContext({ port: null, forwardTo: null }); /* unload the content-script & remove iframe content */ void sendMessage(contentScriptMessage({ type: WorkerMessageType.UNLOAD_CONTENT_SCRIPT })); window.document?.documentElement?.remove(); }; const postMessage = useCallback((message: any) => window.parent.postMessage(message, '*'), []); useEffect(() => { /** Notify the parent content-script that the IFrame is ready and * the react app has bootstrapped and rendered. This is essential * to avoid relying on the `load` event which does not account for * react lifecycle */ postMessage({ type: IFRAME_APP_READY_EVENT, endpoint }); }, []); /* when processing an `IFRAME_INJECT_PORT` message : verify the * `message.key` against the resolved extension key. This avoids * malicious websites from trying to spoof our content-script port * injection. If we detect a mismatch between the keys : destroy. */ const handlePortInjection = useCallback( async (message: IFrameMessageWithSender<IFramePortMessageType.IFRAME_INJECT_PORT>) => sendMessage.onSuccess( contentScriptMessage({ type: WorkerMessageType.RESOLVE_EXTENSION_KEY }), ({ key }) => { if (key !== message.key) return destroyFrame(); const framePortName = `${message.payload.port}-${endpoint}`; const port = browser.runtime.connect({ name: framePortName }); const forwardTo = message.payload.port; setPortContext({ port, forwardTo }); } ), [] ); const onPostMessageHandler = useCallback( safeCall((event: MessageEvent<Maybe<IFrameMessageWithSender>>) => { if ( event.data && event.data?.type === IFramePortMessageType.IFRAME_INJECT_PORT && event.data.sender === 'contentscript' ) { handlePortInjection(event.data).catch(noop); } }), [] ); useEffect(() => { if (userEmail === null && clientReady(appState.status)) { sendMessage .onSuccess( contentScriptMessage({ type: WorkerMessageType.RESOLVE_USER }), (response) => response.user?.Email && setUserEmail(response.user.Email) ) .catch(noop); } }, [appState, userEmail]); useEffect(() => { setTtagLocales(locales); window.addEventListener('message', onPostMessageHandler); return () => window.removeEventListener('message', onPostMessageHandler); }, []); useEffect(() => { if (port && forwardTo) { port.onMessage.addListener((message: Maybe<IFrameMessage>) => { switch (message?.type) { case IFramePortMessageType.IFRAME_INIT: setAppState(message.payload.workerState); setSettings(message.payload.settings); setFeatures(message.payload.features); /** immediately set the locale on iframe init : the `IFramContextProvider` * does not use the standard `ExtensionApp` wrapper which takes care of * hydrating the initial locale and watching for language changes */ i18n.setLocale(message.payload.settings.locale).catch(noop); return; case IFramePortMessageType.IFRAME_HIDDEN: return setVisible(false); case IFramePortMessageType.IFRAME_OPEN: return setVisible(true); case WorkerMessageType.FEATURE_FLAGS_UPDATE: return setFeatures(message.payload); case WorkerMessageType.SETTINGS_UPDATE: return setSettings(message.payload); case WorkerMessageType.LOCALE_UPDATED: return i18n.setLocale(settings.locale).catch(noop); /* If for any reason we get a `PORT_UNAUTHORIZED` * message : it likely means the iframe was injected * without being controlled by a content-script either * accidentally or intentionnally. Just to be safe, clear * the frame's innerHTML */ case WorkerMessageType.PORT_UNAUTHORIZED: return destroyFrame(); case WorkerMessageType.WORKER_STATE_CHANGE: return setAppState(message.payload.state); } }); port.postMessage( portForwardingMessage<IFrameMessageWithSender<IFramePortMessageType.IFRAME_CONNECTED>>(forwardTo, { sender: endpoint, type: IFramePortMessageType.IFRAME_CONNECTED, payload: { framePort: port.name, id: endpoint }, }) ); port.onDisconnect.addListener(() => { setPortContext({ port: null, forwardTo: null }); window.addEventListener('message', onPostMessageHandler); }); } return safeCall(() => port?.disconnect()); }, [port, forwardTo]); /* Every message sent will be forwarded to the content-script * through the worker's MessageBroker. * see `@proton/pass/lib/extension/message/message-broker` */ const forwardMessage = useCallback( (rawMessage: IFrameMessage) => { try { port?.postMessage( portForwardingMessage<IFrameMessageWithSender>(forwardTo!, { ...rawMessage, sender: endpoint, }) ); } catch (_) {} }, [port, forwardTo] ); const close = useCallback( (payload: IFrameCloseOptions = {}) => forwardMessage({ type: IFramePortMessageType.IFRAME_CLOSE, payload }), [forwardMessage] ); const resize = useCallback( (height: number) => { if (height > 0) forwardMessage({ type: IFramePortMessageType.IFRAME_DIMENSIONS, payload: { height } }); }, [forwardMessage] ); const registerHandler = useCallback( <M extends IFrameMessageType>(type: M, handler: IFramePortMessageHandler<M>) => { const onMessageHandler = (message: Maybe<IFrameMessageWithSender>) => { if (message?.type === type) { handler(message as IFrameMessageWithSender<M>); } }; port?.onMessage.addListener(onMessageHandler); return () => port?.onMessage.removeListener(onMessageHandler); }, [port] ); useEffect(() => { if (visible && appState.authorized) activityProbe.start(); else activityProbe.cancel(); }, [visible]); return ( <IFrameContext.Provider value={{ endpoint, features, port, settings, userEmail, visible, appState, close, forwardMessage, postMessage, registerHandler, resize, }} > {children} </IFrameContext.Provider> ); }; export const useIFrameContext = () => { const ctx = useContext(IFrameContext); if (!ctx) throw new Error('IFrameContext not initialized'); return ctx; }; export const useRegisterMessageHandler = <M extends IFrameMessageType>( type: M, handler: IFramePortMessageHandler<M> ) => { const ctx = useIFrameContext(); useEffect(() => ctx.registerHandler(type, handler), [type, handler, ctx.registerHandler]); }; ```
```php <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\VarDumper\Tests\Test; use Symfony\Component\VarDumper\Test\VarDumperTestCase; use Symfony\Component\VarDumper\Test\VarDumperTestTrait; class VarDumperTestTraitTest extends VarDumperTestCase { use VarDumperTestTrait; public function testItComparesLargeData() { $howMany = 700; $data = array_fill_keys(range(0, $howMany), array('a', 'b', 'c', 'd')); $expected = sprintf("array:%d [\n", $howMany + 1); for ($i = 0; $i <= $howMany; ++$i) { $expected .= <<<EODUMP $i => array:4 [ 0 => "a" 1 => "b" 2 => "c" 3 => "d" ]\n EODUMP; } $expected .= "]\n"; $this->assertDumpEquals($expected, $data); } } ```
Simon James Moran is a concert promoter in the United Kingdom, managing director of SJM Concerts, director of the Academy Music Group of venues and owner of the Warrington Wolves Rugby League team. He is in charge of major London venues including the O2 Shepherd's Bush Empire and O2 Brixton Academy. In 2011, The Guardian credited Simon Moran as the catalyst for Take That reforming in 2005, after he offered to promote a comeback tour. The band "heaped praise on music mogul Simon Moran" at the BRIT Awards 2008, for his work arranging their sell-out tour. Promoted by Moran, Take That's Progress Live in 2011 tour was the biggest live tour in UK and Irish history. SJM Concerts promotes tours by many well-known artists, including Morrissey, Spice Girls and The Killers and the company's management arm, SJM Management manages the careers of The Script, The Coral, and Paul Heaton. Simon Moran is also a board member of the Academy Music Group, which owns and runs venues including Carling Brixton Academy, Shepherd's Bush Empire, and Carling Academies in Birmingham, Liverpool, Bristol, Newcastle, Sheffield, Leeds and Glasgow. Moran is a shareholder in a joint-venture label with Gary Barlow, Future Records. SJM Ltd is a company with a registered office in Manchester, England, UK. Honours In 2011, The Guardian named Simon Moran as No 9 in the Music Power 100. In the same year he was listed by the Evening Standard as one of London's 1000 most influential people in the Pop & Rock category. Simon Moran was also referenced as the "most influential music executive of the Noughties." In 2003, he was honoured at Music Manager Forum's (MMF) Roll of Honour, which took place at London's Park Lane Hilton hotel. He was named manager of the year and dedicated his award to Jo Strummer, whom he worked with for five years. Simon Moran and SJM Concerts won the Music Week award as best UK promoter in 2007, 2008, 2010, 2011, 2013 (it didn't run in 2012) On 16 July 2013, Moran was awarded an Honorary Doctorate in Music by his alma mater, the University of Sheffield. Outside the music industry In 2003, Moran bought rugby league club, Warrington Wolves. Since then, he has seen the team rise to top of the Super League and win back-to-back Challenge Cup crowns in 2009 & 2010, the League Leader's Shield in 2011 and 2016 and the Challenge Cup in 2012 and 2019. Moran led the team out at Wembley Stadium. See also List of Super League rugby league club owners List of owners of English football clubs List of professional sports team owners References External links Official website San Remo Live website Living people Music promoters Rugby league chairmen and investors Sports owners Warrington Wolves Year of birth missing (living people)
The History of Ball State University predates Ball State University's public-funding era by almost two decades. Previous educational institutions operated at the intersection of University and McKinley avenues before 1918. They were neither public nor did they carry the "Ball" name. Historical timeline The pre-Ball years The area of Muncie, Indiana that is now known as Ball State University had its start in 1899 as a private school called the Eastern Indiana Normal School to educate teachers. The entire school, including classrooms, library and the president's residence were housed in what is now known as the Ball State Administration building. The then one-building school had a peak enrollment of 256 and charged $10 for a year's tuition. It operated until the spring of 1901, when it was closed down by its president, F.A.Z. Kumler (Franklin Abia Zeller Kumler - b. Ohio) due to lack of funding. A year later, in the autumn of 1902, the school re-opened as Palmer University for the next three years after Francis Palmer, a retired Indiana banker gave the school a $100,000 endowment. Between 1905 and 1907, the school dropped the Palmer name and operated as the Indiana Normal College. It had two divisions, the Normal School for educating teachers and a College of Applied Sciences. The school had an average enrollment of about 200 students. Because of a diminishing enrollment and lack of funds, school president Francis Ingler closed Indiana Normal College at the end of the 1906–1907 school year. Between 1907 and 1912 the campus sat vacant. A local farming family paid off the school's property taxes and used the campus as forage for grazing sheep and cattle. They also kept up the insurance on the Administration Building and used it for storage. In 1909 Delaware County residents petitioned the state to take over the land and reopen it as a state-funded normal school. The proposal failed when lawmakers did not pass an appropriations bill to pay for the acquisition of the Indiana Normal College land and building. In 1912, a group of local investors led by Michael Kelly reopened the school as the Indiana Normal Institute. To pay for updated materials and refurbishing the once-abandoned Administration Building, the school operated under a mortgage from the Muncie Trust Company. Although the school had its largest student body with a peak enrollment of 806, officials could not keep up with mortgage payments and the school was forced to shutter once again by June 1917 after the Muncie Trust Company initiated foreclosure proceedings. Ball Brothers intervene On July 25, 1917 local industrialists the Ball Brothers, founders of the Ball Corporation bought the Indiana Normal Institute out of foreclosure. For $35,100, the Balls bought the Administration building and surrounding land bordered by Reeves Avenue (now University Avenue), McKinley Avenue, Riverside Avenue and Tillotson Avenue, except for the northwest quadrant which was kept as a wildlife preserve (Christy Woods). The Balls, who were active donors to the state and national Republican Party, contacted newly elected Indiana governor James Putnam Goodrich, a fellow Republican who was born and raised in the nearby town of Winchester. The Balls proposed giving the school directly to the state. In a lesson learned from the failed 1909 attempt to get state control of the normal school, the Balls wanted to avoid another appropriations bill debate in the Indiana General Assembly. In early 1918, during the Indiana General Assembly's "short session," state legislators accepted the gift of the school and the land by the Ball Brothers. The state granted operating control of the Muncie Campus and school building to the administrators of the Indiana State Normal School in Terre Haute. On June 17, 1918, the first students started enrolling at the Indiana State Normal School, Eastern Division. Its initial enrollment was 235 students. Its primary purpose was to serve as a college to educate teachers for the public schools in the surrounding communities including Muncie, Anderson, Richmond, Marion, Gas City and as far away as the boom towns of Indianapolis and Fort Wayne. The school grew slowly over the next few years to an enrollment of more than 400, helped along by its status as a state-funded college. During this time, the Ball family continued to be benefactors to the school. They donated the funds to build Ball Gymnasium. The close relationship between the Balls and the school led to an unofficial moniker for the college as many students, faculty and local politicians casually referred to the school as "Ball State" as a shorthand alternative to its longer, official name. During the 1922 short session of the Indiana legislature, the state renamed the school as the Ball Teachers College. This was in recognition to the Ball family's continuing beneficence to the institution. During this act, the state also reorganized its relationship with Terre Haute, and established a separate local board of trustees for the Muncie campus. In 1924, the State Teachers College Board of Trustees in Terre Haute, Indiana hired Benjamin J. Burris as the first president of the state-funded college. The Ball Brothers continued giving to the university and partially funded the construction of the Science Hall (now called the Burkhart Building) in 1924, an addition to Ball Gymnasium in 1925. By the 1925–1926 school year, Ball State enrollment reaches 991, with 697 women and 294 men. Ball State Teachers College During the regular legislative session of 1929, the Indiana General Assembly separated the Terre Haute and Muncie campuses of the state teachers college system, but left the governance of the Ball State campus under the Indiana State Teachers College Board of Trustees, based in Terre Haute, Indiana. During this action, the school was renamed Ball State Teachers College. The following year enrollment increased to 1,118 with 747 female and 371 male students. In 1935, the school added the Arts Building for art, music and dance instruction (Which now houses Ball State Art Museum, The Department Of Geology and classes in many other disciplines). Enrollment that year reached 1,151 with 723 women and 428 men. As an expression of the many gifts the Ball family gave the university since 1917, sculptor Daniel Chester French was commissioned by the Muncie Chamber of Commerce to cast a bronze fountain figure to commemorate the 20th anniversary of the Ball Brother's gift to the state. His creation, the statue Beneficence, still stands today between the Administration Building and Lucina Hall where Talley Street dead ends into University Avenue. The school grew steadily until the 1940s when World War II broke out and many would-be Ball State students opted to join the war effort by enlisting in the military. by 1944 enrollment had dropped to 550 students, the lowest since the 1910s. During this time, on Ball State's campus the U.S. military built barracks on the campus for recruiting, training, and other purposes. In 1945, John R. Emens took over as the fifth president of the school. In 1946, Ball State purchases the Christy Woods preserve. Following World War II and due in part to the large number of veterans who took advantage of the G.I. Bill, expansion took on a much swifter rate. The barracks were left for university use. The school used them as dormitories for the new influx of students. By 1950, the school's enrollment was 3,144 with 1,507 women and 1,637 men. That same year, radio station WBST-FM started broadcasting from the basement of the Administration Building. In 1961, Ball State became independent of Indiana State via the creation of the Ball State College Board of Trustees, so that Ball State was no longer governed remotely by the Indiana State College Board of Trustees. Also in 1961, the name of Ball State was changed to Ball State College. Ball State University In 1965, in recognition of the school growth beyond merely being a school to educate public school teachers, the Indiana General Assembly renames the school as Ball State University with an enrollment of 10,066 students. It wasn't until the promotion of the school to official "University" status, that Ball State began to grow academically. It was in the same year, 1965, that the College of Architecture and Planning was established, offering the only public-university degrees in architecture within Indiana. Programs expanded, and more teachers were hired from across the nation in response to this. Thus, the school which had been dubbed the "Little Commonwealth" was now expanding into the modern world. Ball State has seen a trend of near-constant growth since its creation. Current enrollment is the highest in the school's history, prompting construction of new residence halls that were completed in 2007 (Park Hall) and 2010 (Kinghorn Hall). Bachelor's degrees are available in eight different areas which contain over fifty individual programs—a sharp increase from the five programs in which the University initially offered degrees. Despite current uncertainty in the economy, Ball State's academic future is considered by many to be bright as the University continues a course of upgrading programs and adding new ones where applicable. At 2021 it's enrollment is approximately 22,443 students, both graduate and undergraduate - Full-time enrollment is 14,851, with Part-time enrollment at 6,592. [per https://datausa.io/profile/university/ball-state-university ] Past presidents William Wood Parsons (1918–1921) Linnaeus Neal Hines (1921–1924) Benjamin J. Burris (1924–1927) Lemuel Arthur Pittenger (1927–1942) Winfred Ethestal Wagoner (1943–1945)* John Richard Emens (1945–1968) John J. Pruis (1968–1978) Richard W. Burkhardt (1978–1979)* Jerry M. Anderson (1979–1981) Robert P. Bell (1981–1984) John E. Worthen (1984–2000) Blaine A. Brownell (2000–2004) Beverley J. Pitts (2004)* Jo Ann M. Gora (2004–2014) Paul W. Ferguson (2014–2016) Terry S. King (2016–2017)* Geoffrey Mearns (2017–present) * Interim presidency See also Ball State University References External links Ball State University web page Ball State University Archives and Special Collections History of Ball State's Old Quad History of Ball State's Indiana Public Broadcasting Architectural history at CollegeTownProfile.com Ball State University Campus Photographs collection contains electronically accessible historic campus photographs Ball State University Campus Maps collection contains electronically accessible historic campus maps Leading the Way: The Presidents of Ball State, 1918-2000 Exhibit by Ball State University Libraries Archives and Special Collections Ball State University Ball State University
```scss // Required @import '~bootstrap/scss/functions'; @import '~bootstrap/scss/variables'; @import '~bootstrap/scss/mixins'; // Optional @import '~bootstrap/scss/reboot'; @import '~bootstrap/scss/type'; @import '~bootstrap/scss/grid'; @import '~bootstrap/scss/alert'; @import '~bootstrap/scss/badge'; @import '~bootstrap/scss/buttons'; @import '~bootstrap/scss/list-group'; @import '~bootstrap/scss/progress'; @import '~bootstrap/scss/spinners'; @import '~bootstrap/scss/utilities'; ```
```python import struct import moderngl import numpy as np from pyrr import Matrix44 from _example import Example class CrateExample(Example): title = "Crate" def __init__(self, **kwargs): super().__init__(**kwargs) self.uniform_buffer = self.ctx.buffer(reserve=256) self.prog = self.ctx.program( vertex_shader=''' #version 330 layout (std140) uniform Common { mat4 Mvp; vec3 Light; }; in vec3 in_position; in vec3 in_normal; in vec2 in_texcoord_0; out vec3 v_vert; out vec3 v_norm; out vec2 v_text; void main() { gl_Position = Mvp * vec4(in_position, 1.0); v_vert = in_position; v_norm = in_normal; v_text = in_texcoord_0; } ''', fragment_shader=''' #version 330 layout (std140) uniform Common { mat4 Mvp; vec3 Light; }; uniform sampler2D Texture; in vec3 v_vert; in vec3 v_norm; in vec2 v_text; out vec4 f_color; void main() { float lum = clamp(dot(normalize(Light - v_vert), normalize(v_norm)), 0.0, 1.0) * 0.8 + 0.2; f_color = vec4(texture(Texture, v_text).rgb * lum, 1.0); } ''', ) self.prog['Common'].binding = 2 self.uniform_buffer.bind_to_uniform_block(2) self.scene = self.load_scene('crate.obj') self.vao = self.scene.root_nodes[0].mesh.vao.instance(self.prog) self.texture = self.load_texture_2d('crate.png') def render(self, time, frame_time): angle = time self.ctx.clear(1.0, 1.0, 1.0) self.ctx.enable(moderngl.DEPTH_TEST) camera_pos = (np.cos(angle) * 3.0, np.sin(angle) * 3.0, 2.0) proj = Matrix44.perspective_projection(45.0, self.aspect_ratio, 0.1, 100.0) lookat = Matrix44.look_at( camera_pos, (0.0, 0.0, 0.5), (0.0, 0.0, 1.0), ) mvp = (proj * lookat).astype('f4').tobytes() self.uniform_buffer.write(struct.pack('=64s3f4x', mvp, *camera_pos)) self.texture.use() self.vao.render() if __name__ == '__main__': CrateExample.run() ```
Vadsøya is an island in Vadsø Municipality in Troms og Finnmark county, Norway. The island lies in the Varangerfjorden, just south of the coast of the mainland Varanger Peninsula. The island is part of the town of Vadsø. The island is connected to the mainland by a bridge that branches off the European route E75 highway in the centre of the town of Vadsø. The Hurtigruten coastal express boats dock on Vadsøya. The island was the original location of what is now the town of Vadsø. In the 17th century, the residents moved over to the mainland where the town was expanded. The island was also the site of the old Vadsø Church until it was moved in the early 18th century to the new townsite of Vadsø on the mainland. See also List of islands of Norway References Vadsø Islands of Troms og Finnmark
```shell Using tags for version control Using aliases for git commands Make your log output pretty Search for commits by author Perform a dry run ```
```kotlin package net.corda.node.services.transactions import net.corda.core.contracts.* import net.corda.core.identity.AbstractParty import net.corda.core.identity.CordaX500Name import net.corda.core.node.NotaryInfo import net.corda.core.transactions.TransactionBuilder import net.corda.testing.common.internal.testNetworkParameters import net.corda.testing.contracts.DummyContract import net.corda.testing.core.DUMMY_NOTARY_NAME import net.corda.testing.core.SerializationEnvironmentRule import net.corda.testing.core.TestIdentity import net.corda.testing.node.MockServices import net.corda.testing.node.makeTestIdentityService import org.junit.Before import org.junit.Rule import org.junit.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith class ResolveStatePointersTest { @Rule @JvmField val testSerialization = SerializationEnvironmentRule() private val myself = TestIdentity(CordaX500Name("Me", "London", "GB")) private val notary = TestIdentity(DUMMY_NOTARY_NAME, 20) private val cordapps = listOf("net.corda.testing.contracts") private lateinit var services: MockServices @BelongsToContract(DummyContract::class) private data class Bar( override val participants: List<AbstractParty> = listOf(), val bar: Int = 0, val nestedPointer: LinearPointer<*>? = null, override val linearId: UniqueIdentifier = UniqueIdentifier() ) : LinearState @BelongsToContract(DummyContract::class) private data class Foo<T : ContractState>(val baz: StatePointer<T>, override val participants: List<AbstractParty>) : ContractState private val barOne = Bar(listOf(myself.party), 1) private val barTwo = Bar(listOf(myself.party), 2, LinearPointer(barOne.linearId, barOne::class.java)) private fun createPointedToState(contractState: ContractState): StateAndRef<Bar> { // Create the pointed to state. return services.run { val tx = signInitialTransaction(TransactionBuilder(notary = notary.party, serviceHub = services).apply { addOutputState(contractState, DummyContract.PROGRAM_ID) addCommand(Command(DummyContract.Commands.Create(), myself.party.owningKey)) }) recordTransactions(listOf(tx)) tx.tx.outRefsOfType<Bar>().single() } } @Before fun setUp() { val databaseAndServices = MockServices.makeTestDatabaseAndMockServices( cordappPackages = cordapps, identityService = makeTestIdentityService(notary.identity, myself.identity), initialIdentity = myself, networkParameters = testNetworkParameters(minimumPlatformVersion = 4, notaries = listOf(NotaryInfo(notary.party, true))) ) services = databaseAndServices.second } @Test(timeout=300_000) fun `resolve linear pointers and check reference state is not added to transaction when isResolved is false`() { val stateAndRef = createPointedToState(barOne) val linearId = stateAndRef.state.data.linearId // Add a new state containing a linear pointer. val tx = TransactionBuilder(notary = notary.party, serviceHub = services).apply { val pointer = LinearPointer(linearId, barOne::class.java, false) addOutputState(Foo(pointer, listOf(myself.party)), DummyContract.PROGRAM_ID) addCommand(Command(DummyContract.Commands.Create(), myself.party.owningKey)) } // Check the StateRef for the pointed-to state is not added as a reference. assert(tx.referenceStates().none { it == stateAndRef.ref }) // Resolve the StateRef to the actual state. val ltx = tx.toLedgerTransaction(services) assertEquals(emptyList(), ltx.referenceStates) } @Test(timeout=300_000) fun `resolve linear pointers and check reference state is added to transaction when isResolved is true`() { val stateAndRef = createPointedToState(barOne) val linearId = stateAndRef.state.data.linearId // Add a new state containing a linear pointer. val tx = TransactionBuilder(notary = notary.party, serviceHub = services).apply { val pointer = LinearPointer(linearId, barOne::class.java, true) addOutputState(Foo(pointer, listOf(myself.party)), DummyContract.PROGRAM_ID) addCommand(Command(DummyContract.Commands.Create(), myself.party.owningKey)) } // Check the StateRef for the pointed-to state is not added as a reference. assertEquals(stateAndRef.ref, tx.referenceStates().single()) // Resolve the StateRef to the actual state. val ltx = tx.toLedgerTransaction(services) assertEquals(barOne, ltx.referenceStates.single()) } @Test(timeout=300_000) fun `resolve static pointers and check reference state is not added to transaction when isResolved is false`() { val stateAndRef = createPointedToState(barOne) val stateRef = stateAndRef.ref // Add a new state containing a linear pointer. val tx = TransactionBuilder(notary = notary.party, serviceHub = services).apply { val pointer = StaticPointer(stateRef, barOne::class.java, false) addOutputState(Foo(pointer, listOf(myself.party)), DummyContract.PROGRAM_ID) addCommand(Command(DummyContract.Commands.Create(), myself.party.owningKey)) } // Check the StateRef for the pointed-to state is not added as a reference. assert(tx.referenceStates().none { it == stateAndRef.ref }) // Resolve the StateRef to the actual state. val ltx = tx.toLedgerTransaction(services) assertEquals(emptyList(), ltx.referenceStates) } @Test(timeout=300_000) fun `resolve static pointers and check reference state is added to transaction when isResolved is true`() { val stateAndRef = createPointedToState(barOne) val stateRef = stateAndRef.ref // Add a new state containing a linear pointer. val tx = TransactionBuilder(notary = notary.party, serviceHub = services).apply { val pointer = StaticPointer(stateRef, barOne::class.java, true) addOutputState(Foo(pointer, listOf(myself.party)), DummyContract.PROGRAM_ID) addCommand(Command(DummyContract.Commands.Create(), myself.party.owningKey)) } // Check the StateRef for the pointed-to state is not added as a reference. assertEquals(stateAndRef.ref, tx.referenceStates().single()) // Resolve the StateRef to the actual state. val ltx = tx.toLedgerTransaction(services) assertEquals(barOne, ltx.referenceStates.single()) } @Test(timeout=300_000) fun `resolving nested pointers is possible`() { // Create barOne. val barOneStateAndRef = createPointedToState(barOne) // Create another Bar - barTwo - which points to barOne. val barTwoStateAndRef = createPointedToState(barTwo) val barTwoLinearId = barTwoStateAndRef.state.data.linearId // Add a new state containing a linear pointer. val tx = TransactionBuilder(notary = notary.party, serviceHub = services).apply { val pointer = LinearPointer(barTwoLinearId, barTwo::class.java) addOutputState(Foo(pointer, listOf(myself.party)), DummyContract.PROGRAM_ID) addOutputState(Foo(pointer, listOf()), DummyContract.PROGRAM_ID) addCommand(Command(DummyContract.Commands.Create(), myself.party.owningKey)) } tx.toLedgerTransaction(services).referenceStates.forEach { println(it) } // Check both Bar StateRefs have been added to the transaction. assertEquals(2, tx.referenceStates().size) assertEquals(setOf(barOneStateAndRef.ref, barTwoStateAndRef.ref), tx.referenceStates().toSet()) } @Test(timeout=300_000) fun `Resolving to an unknown state throws an exception`() { // Don't create the pointed to state. // Resolve the pointer for barTwo. assertFailsWith(IllegalStateException::class) { barTwo.nestedPointer?.resolve(services) } } @Test(timeout=300_000) fun `resolving an exited state throws an exception`() { // Create barOne. val stateAndRef = createPointedToState(barOne) // Exit barOne from the ledger. services.run { val tx = signInitialTransaction(TransactionBuilder(notary = notary.party, serviceHub = services).apply { addInputState(stateAndRef) addCommand(Command(DummyContract.Commands.Move(), myself.party.owningKey)) }) recordTransactions(listOf(tx)) } assertFailsWith(IllegalStateException::class) { barTwo.nestedPointer?.resolve(services) } } @Test(timeout=300_000) fun `resolve linear pointer with correct type`() { val stateAndRef = createPointedToState(barOne) val linearPointer = LinearPointer(stateAndRef.state.data.linearId, barOne::class.java) val resolvedPointer = linearPointer.resolve(services) assertEquals(stateAndRef::class.java, resolvedPointer::class.java) } @Test(timeout=300_000) fun `resolve state pointer in ledger transaction`() { val stateAndRef = createPointedToState(barOne) val linearId = stateAndRef.state.data.linearId // Add a new state containing a linear pointer. val tx = TransactionBuilder(notary = notary.party, serviceHub = services).apply { val pointer = LinearPointer(linearId, barOne::class.java) addOutputState(Foo(pointer, listOf(myself.party)), DummyContract.PROGRAM_ID) addCommand(Command(DummyContract.Commands.Create(), myself.party.owningKey)) } val ltx = tx.toLedgerTransaction(services) @Suppress("UNCHECKED_CAST") val foo = ltx.outputs.single().data as Foo<Bar> assertEquals(stateAndRef, foo.baz.resolve(ltx)) } } ```
```smalltalk using System; namespace Advanced.Algorithms.DataStructures; internal class PairingHeapNode<T> : IComparable where T : IComparable { internal PairingHeapNode<T> Next; internal PairingHeapNode<T> Previous; internal PairingHeapNode(T value) { Value = value; } internal T Value { get; set; } internal PairingHeapNode<T> ChildrenHead { get; set; } internal bool IsHeadChild => Previous != null && Previous.ChildrenHead == this; public int CompareTo(object obj) { return Value.CompareTo(((PairingHeapNode<T>)obj).Value); } } ```
Pamela Askew (February 2, 1925 – June 24, 1997) was an American art historian who wrote influential works on Domenico Fetti and Caravaggio. Askew's father was Arthur McComb, Professor of baroque art at Vassar College and Harvard University, and author of the influential Agnolo Bronzino: His Life and Works (1928). She grew up in New York City with her mother, Constance, and step-father, R. Kirk Askew Jr., a Park Avenue art dealer. She did undergraduate studies at Vassar College, followed by an MA in Art History at the New York University Institute of Fine Arts, with a thesis on Perino del Vaga. She took her Ph.D. from the Courtauld Institute of Art, London, in 1954, under Johannes Wilde with work on Domenico Fetti. On 26 March 1955, she married Timothy John Oswald Mosley, an Englishman educated at Eton College, who had served in the Coldstream Guards. She returned to teach at Vassar, becoming a full professor in 1969. She died of lymphoma in 1997. Selected works Books Scholarly articles References 1925 births 1997 deaths American art historians 20th-century American historians Women art historians Alumni of the Courtauld Institute of Art 20th-century American women writers American women historians
```ruby require "rails_helper" RSpec.describe "Api::V1::Billboards" do let!(:v1_headers) { { "content-type" => "application/json", "Accept" => "application/vnd.forem.api-v1+json" } } let(:organization) { create(:organization) } let(:billboard_params) do { name: "This is new", organization_id: organization.id, display_to: "all", placement_area: "post_comments", body_markdown: "## This ad is a new ad.\n\nYay!", type_of: "community", published: true, approved: true, requires_cookies: false, target_geolocations: "US-WA, CA-BC" } end let!(:billboard1) { create(:billboard, published: true, approved: true, type_of: "in_house") } shared_context "when user is authorized" do let(:api_secret) { create(:api_secret) } let(:user) { api_secret.user } let(:auth_header) { v1_headers.merge({ "api-key" => api_secret.secret }) } before { user.add_role(:admin) } end context "when authenticated and authorized and get to index" do include_context "when user is authorized" describe "GET /api/billboards" do it "returns json response" do get api_billboards_path, headers: auth_header expect(response).to have_http_status(:success) expect(response.media_type).to eq("application/json") expect(response.parsed_body.size).to eq(1) end end describe "POST /api/billboards" do it "creates a new billboard" do post api_billboards_path, params: billboard_params.to_json, headers: auth_header expect(response).to have_http_status(:created) expect(response.media_type).to eq("application/json") expect(response.parsed_body.keys).to \ contain_exactly("approved", "body_markdown", "cached_tag_list", "clicks_count", "created_at", "display_to", "id", "impressions_count", "name", "organization_id", "placement_area", "processed_html", "published", "success_rate", "tag_list", "type_of", "updated_at", "creator_id", "exclude_article_ids", "dismissal_sku", "browser_context", "audience_segment_type", "audience_segment_id", "page_id", "custom_display_label", "template", "render_mode", "preferred_article_ids", "priority", "weight", "target_geolocations", "requires_cookies", "special_behavior") expect(response.parsed_body["target_geolocations"]).to contain_exactly("US-WA", "CA-BC") end it "also accepts target geolocations as an array" do post api_billboards_path, params: billboard_params.merge(target_geolocations: %w[US-WA CA-BC]).to_json, headers: auth_header expect(response).to have_http_status(:created) expect(response.media_type).to eq("application/json") expect(response.parsed_body.keys).to \ contain_exactly("approved", "body_markdown", "cached_tag_list", "clicks_count", "created_at", "display_to", "id", "impressions_count", "name", "organization_id", "placement_area", "processed_html", "published", "success_rate", "tag_list", "type_of", "updated_at", "creator_id", "exclude_article_ids", "dismissal_sku", "browser_context", "audience_segment_type", "audience_segment_id", "page_id", "custom_display_label", "template", "render_mode", "preferred_article_ids", "priority", "weight", "target_geolocations", "requires_cookies", "special_behavior") expect(response.parsed_body["target_geolocations"]).to contain_exactly("US-WA", "CA-BC") end it "returns a malformed response with invalid display_to" do post api_billboards_path, params: billboard_params.merge(display_to: "steve").to_json, headers: auth_header expect(response).to have_http_status(:unprocessable_entity) expect(response.media_type).to eq("application/json") expect(response.parsed_body.keys).to contain_exactly("error", "status") expect(response.parsed_body["error"]).to include("'steve' is not a valid display_to") end it "returns a malformed response with invalid geolocation" do expect do post api_billboards_path, params: billboard_params.merge(target_geolocations: "US-FAKE").to_json, headers: auth_header end.not_to change(Billboard, :count) expect(response).to have_http_status(:unprocessable_entity) expect(response.media_type).to eq("application/json") expect(response.parsed_body.keys).to contain_exactly("error", "status") expect(response.parsed_body["error"]).to include("US-FAKE is not an enabled target ISO 3166-2 code") end end describe "GET /api/billboards/:id" do it "returns json response" do get api_billboard_path(billboard1.id), headers: auth_header expect(response).to have_http_status(:success) expect(response.media_type).to eq("application/json") expect(response.parsed_body).to include( "id" => billboard1.id, "published" => true, "approved" => true, "priority" => false, "weight" => 1.0, "type_of" => "in_house", "cached_tag_list" => "", "clicks_count" => 0, ) end end describe "PUT /api/billboards/:id" do it "updates an existing billboard" do put api_billboard_path(billboard1.id), params: billboard_params.merge(name: "Updated!", type_of: "external").to_json, headers: auth_header expect(response).to have_http_status(:success) expect(response.media_type).to eq("application/json") billboard1.reload expect(billboard1.name).to eq("Updated!") expect(billboard1.type_of).to eq("external") expect(response.parsed_body.keys).to \ contain_exactly("approved", "body_markdown", "cached_tag_list", "clicks_count", "created_at", "display_to", "id", "impressions_count", "name", "organization_id", "placement_area", "processed_html", "published", "dismissal_sku", "success_rate", "tag_list", "type_of", "updated_at", "browser_context", "creator_id", "exclude_article_ids", "requires_cookies", "page_id", "audience_segment_type", "audience_segment_id", "special_behavior", "custom_display_label", "template", "render_mode", "preferred_article_ids", "priority", "weight", "target_geolocations") end it "also accepts target geolocations as an array" do put api_billboard_path(billboard1.id), params: { target_geolocations: %w[US-FL US-GA] }.to_json, headers: auth_header expect(response).to have_http_status(:success) expect(response.media_type).to eq("application/json") billboard1.reload expect(billboard1.target_geolocations).to contain_exactly( Geolocation.from_iso3166("US-FL"), Geolocation.from_iso3166("US-GA"), ) end it "returns a malformed response with invalid geolocation" do put api_billboard_path(billboard1.id), params: { target_geolocations: "US-FAKE" }.to_json, headers: auth_header expect(response).to have_http_status(:unprocessable_entity) expect(response.media_type).to eq("application/json") expect(response.parsed_body.keys).to contain_exactly("error", "status") expect(response.parsed_body["error"]).to include("US-FAKE is not an enabled target ISO 3166-2 code") end end describe "PUT /api/billboards/:id/unpublish" do it "unpublishes the billboard" do put unpublish_api_billboard_path(billboard1.id), headers: auth_header expect(response).to have_http_status(:success) expect(billboard1.reload).not_to be_published end end end context "when unauthenticated and get to index" do it "returns unauthorized" do get api_billboards_path, headers: v1_headers expect(response).to have_http_status(:unauthorized) end end context "when unauthorized and get to show" do it "returns unauthorized" do get api_billboards_path, params: { id: billboard1.id }, headers: v1_headers.merge({ "api-key" => "invalid api key" }) expect(response).to have_http_status(:unauthorized) end end end ```
Męczyn-Kolonia is a village in the administrative district of Gmina Mokobody, within Siedlce County, Masovian Voivodeship, in east-central Poland. References Villages in Siedlce County
A muntin (US), muntin bar, glazing bar (UK), or sash bar is a strip of wood or metal separating and holding panes of glass in a window. Muntins can be found in doors, windows, and furniture, typically in Western styles of architecture. Muntins divide a single window sash or casement into a grid system of small panes of glass, called "lights" or "lites". In UK use, a muntin is a vertical member in timber panelling or a door separating two panels. Windows with "true divided lights" make use of thin muntins, typically 1/2" to 7/8" wide in residential windows, positioned between individual panes of glass. In wooden windows, a fillet is cut into the outer edge of the muntin to hold the pane of glass in the opening, and putty or thin strips of wood or metal are then used to hold the glass in place. The inner sides of wooden muntins are typically milled to traditional profiles. In the US, the thickness of window muntins has varied historically, ranging from very slim in 19th century Greek revival buildings to thick in 17th and early 18th century buildings. Until the middle of the 19th century, it was economically advantageous to use smaller panes of glass, which were much more affordable to produce, and fabricate them into a grid to make large windows and doors. The division of a window or glazed door into smaller panes was considered more architecturally attractive than large panes. In the UK and other countries, muntins (often called 'glazing bars' in England and 'astragals' in Scotland) were removed from the windows of thousands of older buildings during the nineteenth century in favor of large panes of plate glass. Restoration of these buildings in the following century often included reinstatement of the glazing bars, which are now seen as essential architectural elements of period buildings. The term 'muntin' is often confused with 'mullion' (elements that separate complete window units), and 'astragal' (which closes the gap between two leaves of a double door). Many companies use the term 'grille' when referring to a decorative element of wood or other material placed over a single pane of glass to resemble muntins separating multiple panes of glass. In the UK, the term 'grille' tends to be used only when there are bars sandwiched between panes of insulated glass. Double- or triple-layer insulated glass can be used in place of ordinary single panes in a window divided by muntins, though this reduces the effectiveness of the insulation. Other insulating glass arrangements include insertion of a decorative grid of simulated metal, wooden, or plastic muntins sandwiched between two large panels of glass, sometimes adding another grid of simulated wood muntins facing the interior to produce a more convincing divided light appearance. In furniture In furniture, a muntin is the central vertical member of the framework of a piece of furniture, the outside members being called stiles. References Windows Architectural elements
West Pleasant View is an unincorporated community and a census-designated place (CDP) located in and governed by Jefferson County, Colorado, United States. The CDP is a part of the Denver–Aurora–Lakewood, CO Metropolitan Statistical Area. The population of the West Pleasant View CDP was 4,327 at the United States Census 2020. The Pleasant View Metropolitan District provides services. The Golden post office (Zip code 80401) serves the area. Geography West Pleasant View is bordered to the west by Golden, to the east by Lakewood, and to the north by unincorporated Applewood. Interstate 70, U.S. Route 6, and U.S. Route 40 (West Colfax Avenue) all cross the community from west to east. Downtown Denver is to the east. The West Pleasant View CDP has an area of , all land. Demographics The United States Census Bureau initially defined the for the Education Colorado's second largest school district, the Jefferson County Public Schools, has its headquarters in West Pleasant View. Zoned schools include: Elementary schools: Shelton and Welchester Middle schools: Bell Golden High School See also Outline of Colorado Index of Colorado-related articles State of Colorado Colorado cities and towns Colorado census designated places Colorado counties Jefferson County, Colorado Colorado metropolitan areas Front Range Urban Corridor North Central Colorado Urban Area Denver-Aurora-Boulder, CO Combined Statistical Area Denver-Aurora-Broomfield, CO Metropolitan Statistical Area References External links Pleasant View Metropolitan District website Jefferson County website Jeffco Public Schools Census-designated places in Jefferson County, Colorado Census-designated places in Colorado Denver metropolitan area
```python from __future__ import absolute_import from collections import Mapping, MutableMapping try: from threading import RLock except ImportError: # Platform-specific: No threads available class RLock: def __enter__(self): pass def __exit__(self, exc_type, exc_value, traceback): pass try: # Python 2.7+ from collections import OrderedDict except ImportError: from .packages.ordered_dict import OrderedDict from .packages.six import iterkeys, itervalues, PY3 __all__ = ['RecentlyUsedContainer', 'HTTPHeaderDict'] _Null = object() class RecentlyUsedContainer(MutableMapping): """ Provides a thread-safe dict-like container which maintains up to ``maxsize`` keys while throwing away the least-recently-used keys beyond ``maxsize``. :param maxsize: Maximum number of recent elements to retain. :param dispose_func: Every time an item is evicted from the container, ``dispose_func(value)`` is called. Callback which will get called """ ContainerCls = OrderedDict def __init__(self, maxsize=10, dispose_func=None): self._maxsize = maxsize self.dispose_func = dispose_func self._container = self.ContainerCls() self.lock = RLock() def __getitem__(self, key): # Re-insert the item, moving it to the end of the eviction line. with self.lock: item = self._container.pop(key) self._container[key] = item return item def __setitem__(self, key, value): evicted_value = _Null with self.lock: # Possibly evict the existing value of 'key' evicted_value = self._container.get(key, _Null) self._container[key] = value # If we didn't evict an existing value, we might have to evict the # least recently used item from the beginning of the container. if len(self._container) > self._maxsize: _key, evicted_value = self._container.popitem(last=False) if self.dispose_func and evicted_value is not _Null: self.dispose_func(evicted_value) def __delitem__(self, key): with self.lock: value = self._container.pop(key) if self.dispose_func: self.dispose_func(value) def __len__(self): with self.lock: return len(self._container) def __iter__(self): raise NotImplementedError('Iteration over this class is unlikely to be threadsafe.') def clear(self): with self.lock: # Copy pointers to all values, then wipe the mapping values = list(itervalues(self._container)) self._container.clear() if self.dispose_func: for value in values: self.dispose_func(value) def keys(self): with self.lock: return list(iterkeys(self._container)) class HTTPHeaderDict(MutableMapping): """ :param headers: An iterable of field-value pairs. Must not contain multiple field names when compared case-insensitively. :param kwargs: Additional field-value pairs to pass in to ``dict.update``. A ``dict`` like container for storing HTTP Headers. Field names are stored and compared case-insensitively in compliance with RFC 7230. Iteration provides the first case-sensitive key seen for each case-insensitive pair. Using ``__setitem__`` syntax overwrites fields that compare equal case-insensitively in order to maintain ``dict``'s api. For fields that compare equal, instead create a new ``HTTPHeaderDict`` and use ``.add`` in a loop. If multiple fields that are equal case-insensitively are passed to the constructor or ``.update``, the behavior is undefined and some will be lost. >>> headers = HTTPHeaderDict() >>> headers.add('Set-Cookie', 'foo=bar') >>> headers.add('set-cookie', 'baz=quxx') >>> headers['content-length'] = '7' >>> headers['SET-cookie'] 'foo=bar, baz=quxx' >>> headers['Content-Length'] '7' """ def __init__(self, headers=None, **kwargs): super(HTTPHeaderDict, self).__init__() self._container = OrderedDict() if headers is not None: if isinstance(headers, HTTPHeaderDict): self._copy_from(headers) else: self.extend(headers) if kwargs: self.extend(kwargs) def __setitem__(self, key, val): self._container[key.lower()] = (key, val) return self._container[key.lower()] def __getitem__(self, key): val = self._container[key.lower()] return ', '.join(val[1:]) def __delitem__(self, key): del self._container[key.lower()] def __contains__(self, key): return key.lower() in self._container def __eq__(self, other): if not isinstance(other, Mapping) and not hasattr(other, 'keys'): return False if not isinstance(other, type(self)): other = type(self)(other) return (dict((k.lower(), v) for k, v in self.itermerged()) == dict((k.lower(), v) for k, v in other.itermerged())) def __ne__(self, other): return not self.__eq__(other) if not PY3: # Python 2 iterkeys = MutableMapping.iterkeys itervalues = MutableMapping.itervalues __marker = object() def __len__(self): return len(self._container) def __iter__(self): # Only provide the originally cased names for vals in self._container.values(): yield vals[0] def pop(self, key, default=__marker): '''D.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised. ''' # Using the MutableMapping function directly fails due to the private marker. # Using ordinary dict.pop would expose the internal structures. # So let's reinvent the wheel. try: value = self[key] except KeyError: if default is self.__marker: raise return default else: del self[key] return value def discard(self, key): try: del self[key] except KeyError: pass def add(self, key, val): """Adds a (name, value) pair, doesn't overwrite the value if it already exists. >>> headers = HTTPHeaderDict(foo='bar') >>> headers.add('Foo', 'baz') >>> headers['foo'] 'bar, baz' """ key_lower = key.lower() new_vals = key, val # Keep the common case aka no item present as fast as possible vals = self._container.setdefault(key_lower, new_vals) if new_vals is not vals: # new_vals was not inserted, as there was a previous one if isinstance(vals, list): # If already several items got inserted, we have a list vals.append(val) else: # vals should be a tuple then, i.e. only one item so far # Need to convert the tuple to list for further extension self._container[key_lower] = [vals[0], vals[1], val] def extend(self, *args, **kwargs): """Generic import function for any type of header-like object. Adapted version of MutableMapping.update in order to insert items with self.add instead of self.__setitem__ """ if len(args) > 1: raise TypeError("extend() takes at most 1 positional " "arguments ({0} given)".format(len(args))) other = args[0] if len(args) >= 1 else () if isinstance(other, HTTPHeaderDict): for key, val in other.iteritems(): self.add(key, val) elif isinstance(other, Mapping): for key in other: self.add(key, other[key]) elif hasattr(other, "keys"): for key in other.keys(): self.add(key, other[key]) else: for key, value in other: self.add(key, value) for key, value in kwargs.items(): self.add(key, value) def getlist(self, key): """Returns a list of all the values for the named field. Returns an empty list if the key doesn't exist.""" try: vals = self._container[key.lower()] except KeyError: return [] else: if isinstance(vals, tuple): return [vals[1]] else: return vals[1:] # Backwards compatibility for httplib getheaders = getlist getallmatchingheaders = getlist iget = getlist def __repr__(self): return "%s(%s)" % (type(self).__name__, dict(self.itermerged())) def _copy_from(self, other): for key in other: val = other.getlist(key) if isinstance(val, list): # Don't need to convert tuples val = list(val) self._container[key.lower()] = [key] + val def copy(self): clone = type(self)() clone._copy_from(self) return clone def iteritems(self): """Iterate over all header lines, including duplicate ones.""" for key in self: vals = self._container[key.lower()] for val in vals[1:]: yield vals[0], val def itermerged(self): """Iterate over all headers, merging duplicate ones together.""" for key in self: val = self._container[key.lower()] yield val[0], ', '.join(val[1:]) def items(self): return list(self.iteritems()) @classmethod def from_httplib(cls, message): # Python 2 """Read headers from a Python 2 httplib message object.""" # python2.7 does not expose a proper API for exporting multiheaders # efficiently. This function re-reads raw lines from the message # object and extracts the multiheaders properly. headers = [] for line in message.headers: if line.startswith((' ', '\t')): key, value = headers[-1] headers[-1] = (key, value + '\r\n' + line.rstrip()) continue key, value = line.split(':', 1) headers.append((key, value.strip())) return cls(headers) ```
Lonad is a village in the Thane district of Maharashtra, India. It is located in the Bhiwandi taluka. Demographics According to the 2011 census of India, Lonad has 474 households. The effective literacy rate (i.e. the literacy rate of population excluding children aged 6 and below) is 75.22%. References Villages in Bhiwandi taluka
Roh Gap-taik (born 3 May 1964) is a Korean former professional tennis player. Born in Gyeonggi-do, Roh appeared in a total of five Davis Cup ties for South Korea and was a member of the gold medal winning Korean team at the 1986 Asian Games. In his Davis Cup career, between 1985 and 1988, he played in eight singles rubbers and was only beaten once. Roh, a right-handed player, twice received a wildcard into the main draw of the Korea Open in Seoul, which were his only ATP Tour appearances. He won a Challenger title in Guangzhou in 1988, despite qualifying for the event as a lucky loser. Since retiring he has had multiple stints serving as South Korea's Davis Cup captain. Challenger titles Singles: (1) See also List of South Korea Davis Cup team representatives References External links 1964 births Living people South Korean male tennis players Sportspeople from Gyeonggi Province Asian Games gold medalists for South Korea Asian Games medalists in tennis Tennis players at the 1986 Asian Games Medalists at the 1986 Asian Games Tennis players at the 1984 Summer Olympics Olympic tennis players for South Korea Medalists at the 1987 Summer Universiade Universiade bronze medalists for South Korea Universiade medalists in tennis 20th-century South Korean people
Bernardo Arias (born 20 August 1942) is a former Peruvian cyclist. He competed in the team time trial at the 1972 Summer Olympics. References External links 1942 births Living people Peruvian male cyclists Olympic cyclists for Peru Cyclists at the 1972 Summer Olympics Place of birth missing (living people) 20th-century Peruvian people
John E. Márquez is an American politician and activist who has held various positions in Richmond, California city government. For eighteen years, Márquez served as a city councilman. He was the first Latino to serve on the Richmond City Council. Originally he was an appointee to the council in 1985 and won an election to that seat in 1987; he subsequently lost his second bid in 1991. He was elected again in 1993 and twice more in 1997 and 2004. In 1990 and 1998, he served as vice mayor. Márquez was defeated for re-election in 2008, and lost a mayoral bid in 2001 to Gayle McLaughlin. In addition to his elected offices in the city of Richmond, he has held various other positions in Contra Costa County, California on various commissions. Early life and education He was born in Taos, New Mexico and later attended Bishop Union High School after his family moved to Bishop, California. He has served in the United States Army as an MP and was stationed in Lebanon. He was awarded the American Expeditionary Service Medal for his service. He retired as a labor standards investigator. While taking classes at Contra Costa College in 1969, he founded the Latino Club and the "La Raza Studies department" in 1970. He later became an adjunct professor at the college. He transferred to San Francisco State University, where he received his associate's and bachelor's degrees. He also attended the University of California, Hastings College of the Law, but did not earn a degree. He completed further graduate studies at California State University, Hayward and San Jose State University in order to obtain teaching credentials. He was certified to instruct Spanish, psychology, and ethnic studies. Career Márquez began his career in the Richmond human relations department. He later worked in the California Department of Industrial Relations, where he eventually served as deputy labor commissioner. Márquez is also a professional Spanish interpreter and owns a business, Márquez and Associates. During his career, he has been a member of the county Democratic Central Committee in addition to being a delegate to the station committee. 1985–2004 He was originally appointed to the City Council to fill a vacancy in 1985. He was the first Latino on the council and remained the only one for fourteen years. In 1999, he expressed relief that the city settled out of court with former recreation director and financial mismanagement whistleblower Brad Baxter. In 2005 he supported efforts to mitigate the spike in crime in Richmond stating, "Our purpose is to take pro-active steps by implementing a firearm violence prevention action plan through a collaborative effort with the Richmond Police Department, the faith community, the state and federal law enforcement agencies and the citizens of the city..." Márquez lost his seat in 2001 during a run for mayor, but was re-elected in 2004 with support from the unions representing Richmond police officers and firefighters. He was also supported in 2004 by the Keep Richmond Safe Committee that was accused of "mudslinging" and whose campaign was developed by a former city fire captain that underwent house arrest and FBI investigations for vote buying 2006–present He was re-elected in 2006 and was chosen vice mayor by his colleagues. In 2007, he expressed support for the city's undocumented illegal residents saying the city had a responsibility to investigate the raids by immigration enforcement. He also sponsored legislation the expand the University of California Berkeley facilities at the Richmond Field Station along with Nat Bates and Maria Viramontes. He was defeated for re-election in 2008. Also in 2008 he was part of the "Chevron 5" along with councilmembers Maria Viramontes, Harpreet Sandhu, Ludmyrna Lopez, and Nat Bates supporting massive expansion of the Chevron Richmond Refinery. He also opposed measure T, a voter initiative passed by the people of Richmond that taxed the company 16,000,000 dollars annually in order to pay for city services. Also at this time Chevron Corporation gave BAPAC $1,500 that was used in his campaign. In 2009 he continued to support the Guideville Band of Pomo Indians plan to build a Las Vegas style casino on the former Point Molate Fuel Depot and Winehaven National Historic District, citing the jobs potential. In 2012 he was supportive of memorializing the Marina Bay Parkway underpass for fallen Richmond Police Department officer Bradley Moody of which is said was "gentle" and "always smiling". In April 2012 he was appointed to represent the Contra Costa Community College District on the as-yet-unnamed successor organization to the Pinole Redevelopment Agency. He is an elected board member for the college district with a term that will expire in 2014. Recognition He was the 2006 Contra Costa County Hispanic of the Year. For his years of distinguished service he was honored by a California assembly resolution for outstanding community service by state assemblyman Robert Campbell of California's 11th district. Personal life He and his wife, Marie, have five children. See also References External links Marquez's Statement of Qualifications, for the General Election to be held on November 4, 2008from the City of Richmond website Year of birth missing (living people) Living people California Democrats California State University, East Bay alumni Hispanic and Latino American politicians People from Bishop, California People from Taos, New Mexico Richmond City Council members (California) San Francisco State University alumni San Jose State University alumni Politicians from Richmond, California
```java package com.zhy.adapter.recyclerview; import android.content.Context; import android.view.LayoutInflater; import com.zhy.adapter.recyclerview.base.ItemViewDelegate; import com.zhy.adapter.recyclerview.base.ViewHolder; import java.util.List; /** * Created by zhy on 16/4/9. */ public abstract class CommonAdapter<T> extends MultiItemTypeAdapter<T> { protected Context mContext; protected int mLayoutId; protected List<T> mDatas; protected LayoutInflater mInflater; public void refreshDatas(List<T> mList){ mDatas=mList; notifyDataSetChanged(); } public CommonAdapter(final Context context, final int layoutId, List<T> datas) { super(context, datas); mContext = context; mInflater = LayoutInflater.from(context); mLayoutId = layoutId; mDatas = datas; addItemViewDelegate(new ItemViewDelegate<T>() { @Override public int getItemViewLayoutId() { return layoutId; } @Override public boolean isForViewType( T item, int position) { return true; } @Override public void convert(ViewHolder holder, T t, int position) { CommonAdapter.this.convert(holder, t, position); } }); } protected abstract void convert(ViewHolder holder, T t, int position); } ```
Halimedusa is a monotypic genus of hydrozoans belonging to the family Halimedusidae. The only species is Halimedusa typus. The species is found in Northern America. References Halimedusidae Hydrozoan genera Monotypic cnidarian genera
References
Academia.edu is a for-profit open repository of academic articles free to read by visitors. Uploading and downloading is restricted to registered users. Additional features are accessible only as a paid subscription. Since 2016 various social networking utilities have been added. The site was registered in the .edu top-level domain in 1999 when that domain was not limited to educational institutions. It is operated as a for-profit company under the name Academia Inc. Since the launch of the site in 2008, the number of users has grown rapidly, reaching about 10 million daily visits in early 2022. At that time the numbers of registered users was 180 million and 40 million papers were available on the site. History Academia.edu was founded by Richard Price. On its filings with the Securities and Exchange Commission, the company uses the legal name Academia Inc. Months after its acquisition of Academia.edu competitor Mendeley, Elsevier sent thousands of takedown notices to Academia.edu, a practice that has ceased since then, following widespread complaint by academics, according to Academia.edu founder and chief executive Richard Price. In 2022 the company announced plans to launch ten “open access” journals "to swiftly review and publish their work, in a fresh disruption to the sector". Competitors Critics mention several alternatives for free access publications for people who want to make their work freely available. Many universities and educational consortia have their own institutional repositories, including the Big Ten Academic Alliance. Zenodo (funded by The OpenAIRE Consortium) and Humanities Commons both work to keep humanities scholarship online without monetizing it. Academia.edu's competitors include ResearchGate, Google Scholar and Mendeley. In 2016 Academia.edu reportedly had more registered users than ResearchGate (about 34 million versus 11 million) and higher web traffic, but ResearchGate had substantially more active usage by researchers. In 2020, the traffic ranks had reversed, with ResearchGate ranked in the top 150–200 websites globally according to Alexa Internet, whereas Academia.edu was positioned in the 200–300 range. Unpaywall, which collects data about open access versions of academic publications and provides easy access to them, is considered a competitor to Academia.edu for the users who prefer more legally sound green open access hosts. Criticism Academia.edu is not a university or institution for higher learning and so under current standards it would not qualify for the ".edu" top-level domain. However, since the domain name "Academia.edu" was registered in 1999, before the regulations required .edu domain names to be held solely by accredited post-secondary institutions in the US, it is allowed to remain active and operational. All .edu domain names registered before 2001 were grandfathered in, even if not an accredited USA post-secondary institution. According to the University of Oklahoma libraries, when interacting with Academia.edu, users should keep in mind that "you are not the customer," but rather "you are the product that these services seek to monetize and/or "offer up" to advertisers," that "you might be breaking the law," even if you are uploading your own work," and finally that "there are privacy implications," because a commercial site does not follow professional standards and "may share information about you". A critic, Kathleen Fitzpatrick, the director of scholarly communication at the Modern Language Association, said she found the use of the ".edu" domain name by Academia.edu to be "extremely problematic", since it might mislead users into thinking the site is part of an accredited educational institution rather than a for-profit company. Academia.edu claims it supports the open science or open access movements and, in particular, instant distribution of research, and a peer-review system that occurs alongside distribution, instead of before it. Accordingly, the company stated its opposition to the proposed (since withdrawn) 2011 U.S. Research Works Act, which would have prevented open-access mandates in the U.S. However, in the view of critic Peter Suber, Academia.edu is not an open access repository and is not recommended as a way to pursue green open access. Peter Suber instead invites researchers to use field-specific repositories or general-purpose repositories like Zenodo. In early 2016, some users reported having received e-mails from Academia.edu where they were asked if they would be interested in paying a fee to have their papers recommended by the website's editors. This led some users to start a campaign encouraging users to cancel their Academia.edu accounts. Other criticisms include the fact that Academia.edu uses a vendor lock-in model: "It's up to Academia.edu to decide what you can and can't do with the information you've given them, and they're not likely to make it easy for alternative methods to access". This is in reference to the fact that, although papers can be read by non-users, a free account is needed in order to download papers: "you need to be logged in to do most of the useful things on the site (even as a casual reader)". In December 2016, Academia.edu announced new premium features that includes data analytics on work and the professional rank of the viewers, which have also received criticism. References External links Internet properties established in 2008 American social networking websites Professional networks Social media companies of the United States Companies based in San Francisco Privately held companies based in California Scholarly communication Aggregation-based digital libraries
Willard N. Clute (1869–1950) was an American author, naturalist and botanist. He was born in Steuben County, New York, the son of George N. and Ruth Wright Clute. He married Ida Martin (born 1869), who illustrated some of his works. Clute founded the American Fern Society. He was editor of The Fern Bulletin, the original publication of the American Fern Society (originally called The Linnaean Fern Bulletin), and of The American Botanist. He was associated with Butler University in Indianapolis, Indiana for many years. Starting in 1928, he was professor of botany and curator of the botanical gardens. He collected ferns, lycopods, and nonvascular plants in North America, Jamaica and New Zealand. His specimens are housed in the Friesner Herbarium at Butler University. He was married to the botanical illustrator and artist Ida Martin Clute. Plants Named by Clute Dryopteris gilberti Clute (Caribbean and South America) Equisetum × ferrissii Clute (North America) Phlox laphamii (Alph.Wood) Clute Polypodium prolongilobum Clute (Arizona) Polystichum triangulum (Sw.) Clute non (L.) Fée Pteridium aquilina var. pseudocaudata Clute (North America) Osmunda regalis f. orbiculata Clute "growing on the farm of B. P. Ruggles" where is this? Eponyms Penstemon cluteiBooks by Clute Clute, Willard Nelson. [https://archive.org/details/agronomycoursein00clutiala/page/n8 Agronomy: A Course in Practical Gardening for High Schools']. Ginn and Company, Boston, Massachusetts. 1913. 296 pp. Clute, Willard Nelson. Botanical Essays. W. N. Clute & Co., Indianapolis, Indiana. 1929. 112 pp, 3 plates. Clute, Willard Nelson. The Common Names of Plants and Their Meanings. 176 pp. Clute, Willard Nelson. A Dictionary of American Plant Names. W. N. Clute & Co., Joliet, Illinois. 1923. 215 pp. Clute, Willard Nelson. Experimental General Science. Blakiston. 1917. 303 pp. Clute, Willard Nelson. The Fern Allies of North America North of Mexico. Illustrated by Ida Martin Clute. First edition: Frederick A. Stokes Co., New York, New York. 1905. xiv/278 pp, 150+ ill, 21 cm, hardcover. LC 5-32523. Web: https://archive.org/details/fernalliesofnort00clutuoft; also https://archive.org/details/fernalliesofnort00clutrich; Second edition: W. N. Clute & Co., Butler University, Joliet, Illinois. 1928. vi/2/xi-xiv/3-278 pp. (xiv/280 pp), 150+ ill, 20 cm. LC28-16299. Clute, Willard Nelson. The Fern Collector's Guide (Where to Find and How to Name the Ferns). Illustrated by William W. Stilson. First printing: Frederick A. Stokes Company, Publishers, New York, New York. 1901. 61 pp. Second printing: Frederick A. Stokes Company, Publishers, New York, New York. 1902. 61 pp, +3pp ads, 195mm, HB. LC 2-21874. Third printing: Shorey Book Store, Seattle, Washington. 1972. 61pp, 6pp ads, softcover. . Clute, Willard Nelson. The Ferns and Fern Allies of the Upper Susquehanna Valley. Reprinted from The Flora of the Upper Susquehanna. W. N. Clute & Co., Binghamton, New York. 1898. 15pp, 137x208mm. Clute, Willard Nelson. Our Ferns in Their Haunts; A Guide to All the Native Species. First edition: Illustrated by William Walworth Stilson. Frederick A. Stokes Company, New York, New York. 1901. (4)/xii/332/(8) pp, 8 color plates + b/w ill, 210mm, hardcover. LC 1-12881. Web: https://archive.org/details/ourfernsintheirh00clutuoft; also https://books.google.com/books?id=OowNAAAAYAAJ. Second edition: Frederick A. Stokes Co., New York, New York. 1929. Third edition: Our Ferns; Their Haunts, Habits and Folklore. Illustrated by William Walworth Stilson and Ida Martin Clute. Frederick A. Stokes Co., New York, New York. 1929. xx/388 pp, 8 color plates, 210 ill, 205mm. LC 38-6667. Clute, Willard Nelson. The Flora of the Upper Susquehanna and Its Tributaries. W. N. Clute & Co., Binghamton, New York. 1901. 16 pp. Clute, Willard Nelson. Laboratory Botany for the High School. Ginn and Company, Boston, Massachusetts. 1909. xiv,177 pp. Clute, Willard Nelson. The Pteridophyta of North America, North of Mexico. F. White, Binghamton, New York, USA. 1895. 23pp. Clute, Willard Nelson. A Second Book of Plant Names and Their Meanings. Willard N. Clute, Indianapolis, Indiana. 1939. 164 pp, 8.5x6, hardcover. Clute, Willard Nelson. Swamp and Dune: A Study in Plant Distribution. W. N. Clute & Co., Indianapolis, Indiana. 1931. 92 pp, 6 plates. Clute, Willard Nelson. The Useful Plants of the World. W. N. Clute & Co., Joliet, Illinois. 1928. v,86 pp. Clute, Willard Nelson. "Practical High School Texts, Botany" also known as "Practical Botany for High Schools" Pub. Mentzer, Bush & Company, Chicago, New York, 1924, 214 pp. (Copy in private collection is inscribed to botanist Ralph O. Baird, " To Ralph O. Baird as a slight token of regard for his help on a memorable occasion this book is inscribed by the author.") External references Dolan, Rebecca W. "The Clute holotypes and the herbarium of Willard Nelson Clute in the Friesner Herbarium of Butler University (BUT)." American Fern Journal 84(2): 71-72. 1994. Morton, Conrad V. "Willard Nelson Clute, 1869-1950." American Fern Journal 41(1):1-4. 1951. Pteridologists American botanists 1950 deaths 1869 births People from Painted Post, New York Scientists from New York (state)
Junyuan Secondary School (JYSS) is a co-educational government secondary school in Tampines, Singapore. History Junyuan Secondary School was established in January 1999. Cecilia Lee, the first principal, charted the directions for the school with a strong focus on school values. From the beginning, Junyuan started with just 320 students and 17 staff, the school population grew to more than 1,000 within a few years. Policies The school has employed the National Education (NE) first policy in 2015 under the leadership of NE Ambassadors led by the NE Department. The patriotic nature of the school is stated in the regulations of the school. References External links Secondary schools in Singapore Educational institutions established in 1999 Tampines 1999 establishments in Singapore
Energy efficiency gap refers to the improvement potential of energy efficiency or the difference between the cost-minimizing level of energy efficiency and the level of energy efficiency actually realized. It has attracted considerable attention among energy policy analysts, because its existence suggests that society has forgone cost-effective investments in energy efficiency, even though they could significantly reduce energy consumption at low cost. This term was first "coined" by Eric Hirst and Marilyn Brown in a paper entitled "Closing the Efficiency Gap: Barriers to the Efficient Use of Energy" in 1990. Introduction Energy efficiency refers to changes in equipment and behavior that result in increased energy services per unit of energy consumed, while behavioral changes that reduce energy use are often referred to as energy conservation. Energy intensity which measures energy consumption per Gross Domestic Product (GDP) is one indicator of energy efficiency. Many people have attempted to measure the energy efficiency gap, and their approaches differ based on the definitions of the optimal level of energy use. A popular theme is Hirst and Brown (1990)'s definition: energy efficiency gap is the unexploited economic potential for energy efficiency, in other words, it emphasizes the technically feasible energy efficiency measures that are cost-effective but are not being deployed. Many other studies have used this definition, such as International Energy Agency (2007) and Koopmans and Velde. Jaffe and Stavins (1994) identify five types of optimality and the corresponding definitions of the energy-efficiency gap: the economists' economic potential, the technologists’ economic potential, hypothetical potential, the narrow social optimum and the true social optimum. In particular, economists' economic potential could be achieved by eliminating market failures in the energy efficiency technology market, while technologists' economic potential could be achieved by eliminating both market and non-market failures. Achieving the hypothetical potential would require the elimination of market failures in the whole energy market, for instance, having energy prices that reflect all externalities. The society can achieve the narrow social optimum by implementing all available cost-effective programs, and the true social optimum can be achieved if the environmental effects of energy generation and consumption is taken into consideration. Barriers for energy efficiency gap Energy efficiency gaps exist because market failures exist. It is important to identify and understand those barriers in order to achieve desirable government policy interventions. According to Hirst and Brown (1990), various barriers that prevent the society from successfully closing energy efficiency gap can be divided into two categories: structural barriers and behavioral barriers. Structural barriers result from the actions of public and private organizations, and are usually beyond the control of the individual energy end user. Some examples are presented as following: Distortion in fuel prices. The fuel prices that consumers pay do not reflect the social and environmental costs associated with fuel production, distribution and consumption. Consumers tend not to invest on energy efficiency technologies due to this distortion. Uncertainty about future fuel prices. There have been great uncertainties with the prices for fuels, such as electricity and petroleum. More stringent environmental regulations and global warming concerns also increase the volatility of fuel prices. These uncertainties prevent consumers from making rational purchase decisions of new energy-using systems. Limited access to capital. Consumers often face high up-front costs for energy-efficient systems. In addition, high discount rates are used to make tradeoffs between the initial capital investment and reduced operating costs, which also hinder the investments in energy-efficiency technologies. Government fiscal and regulatory policies. Government policies tend to encourage energy consumption, rather than energy efficiency. For instance, government support has focused more on energy production, and the profit of electric utilities is a function of sales. Codes and standards. The development of codes and standards often lag behind the development of technologies. It also takes a long time to adopt and modify standards, which becomes a barrier for energy efficiency technological innovation. Supply infrastructure limitations. The deployment of energy efficiency technologies is highly restricted by factors such as geography, infrastructure and human resources. Behavioral barriers are problems that characterize the end-user’s decision-marking relating to energy consumption. Four examples are discussed below. Attitudes toward energy efficiency. Public’s awareness of and attitudes toward energy efficiency could greatly affect their energy-related purchase and consumption behaviors. Perceived risk of energy-efficiency investments. Consumers and businesses can be very risk-averse in terms of investing in energy efficiency technologies. The uncertainties of fuel prices and high discount rate for operating costs have both made energy-efficiency investments even more "risky” for many decision makers. Information gaps. There is often a lack of information on the performance of energy-efficient technologies. Consumers tend not to change their energy consumption behavior if little information is provided. Misplaced incentives. The principal-agent problem and a lack of life-cycle thinking on costs and savings have imposed barriers for energy conservation. Jaffe and Stavins (1994) categorize the barriers differently. They think that both market failures and non-market failures could account for the limited market success of the cost-effective energy-efficiency technologies. One important source of market failure is imperfect information, for instance the public good attributes of information and information asymmetry. Non-market failure may include the heterogeneity and inertia of consumers, and uncertainty about future energy prices and actual savings from energy efficiency investments. Measures narrowing the energy efficiency gap Energy efficiency gap exists in various sectors, ranging from households, small businesses, corporations, and governments. Many policies and programs have been developed to overcome those barriers and close the energy efficiency gap. Subsidies and incentives for energy-efficient technologies. Insufficient capital investment could be overcome by more aggressive tax subsidies, loan guarantees, and low-interest government loans for energy efficient technologies. Minimum building and equipment efficiency standards. Minimum building and equipment efficiency standards are cost-effective approaches to save energy. Effective implementation and upgrading of building energy efficiency standards could improve the energy integrity of new buildings, while equipment efficiency standards could help reduce energy consumption and pollution during the life-cycle of equipment. Information programs. Research has proved that providing accurate and trustworthy information on energy use and energy efficiency choices could help narrow the gap. Three forms of information programs can be implemented to help producers and consumers make more informed and rational decisions. The first one is generic information applicable to all energy decision, such as forecasts of future energy pricies; the second type of program is to provide comparative information to facilitate technology and product choices, such as product rating and labeling systems; the third type of program is to offer specific recommendations for producers’ and consumers’ investment choices or behavior changes. Government procurement programs for energy-efficient technologies. Government agencies could be required to procure energy-efficient products. This would help improve the energy efficiency of government sector, and the “learning by doing” impact would create early markets for energy-efficient technologies. Some real-world examples of those measures include the following: EU's energy consumption labeling scheme, U.S. DOE's building energy codes program, and EPA's and DOE's ENERGY STAR® voluntary labeling programs. References External links European Council Directive 92/75/EEC U.S. DOE's Building Energy Codes Program U.S. EPA's and U.S. DOE’s Energy Star Program Rules, Regulations & Policies for Energy Efficiency Database of State Incentives for Renewables & Efficiency Energy conservation Energy efficiency
```ruby # frozen_string_literal: true require "spec_helper" module Decidim module Proposals module Admin describe ProposalsImportForm do subject { form } let(:proposal) { create(:proposal) } let(:component) { proposal.component } let(:origin_component) { create(:proposal_component, participatory_space: component.participatory_space) } let(:states) { %w(accepted) } let(:import_proposals) { true } let(:params) do { states:, keep_authors: false, origin_component_id: origin_component.try(:id), import_proposals: } end let(:form) do described_class.from_params(params).with_context( current_component: component, current_participatory_space: component.participatory_space ) end context "when everything is OK" do it { is_expected.to be_valid } end context "when the states is not valid" do let(:states) { %w(foo) } it { is_expected.to be_invalid } end context "when there are no states" do let(:states) { [] } it { is_expected.to be_invalid } end context "when there is no target component" do let(:origin_component) { nil } it { is_expected.to be_invalid } end context "when the import proposals is not accepted" do let(:import_proposals) { false } it { is_expected.to be_invalid } end describe "states" do let(:states) { ["", "accepted"] } it "ignores blank options" do expect(form.states).to eq(["accepted"]) end end describe "origin_component" do let(:origin_component) { create(:proposal_component) } it "ignores components from other participatory spaces" do expect(form.origin_component).to be_nil end end describe "origin_components" do before do create(:component, participatory_space: component.participatory_space) end it "returns available target components" do expect(form.origin_components).to include(origin_component) expect(form.origin_components.length).to eq(1) end end end end end end ```
Wheat yellow mosaic virus is a plant pathogenic virus of the family Potyviridae. External links ICTVdB - The Universal Virus Database: Wheat yellow mosaic virus Family Groups - The Baltimore Method Viral plant pathogens and diseases Bymoviruses
Ogorodnikov () (masculine), or Ogorodnikova (; feminine) is a Russian surname, which is derived from the Russian word "огородник" (truck farmer). Notable people with the surname include: Aleksandr Ogorodnikov (born 1967), water polo player Alexander Ogorodnikov, Russian activist and Gulag survivor Andrei Ogorodnikov (born 1982), ice hockey player Vladimir Ogorodnikov (born 1945), Soviet Russian philosopher Nikolai Orgordnikov and Svetlana Ogorodnikova, convicted Soviet spies Sergei Ogorodnikov, several people Russian-language surnames
Mudassar Hussain Kapur (born 14 December 1976) is a Norwegian politician. He is a member of the Conservative Party and has served as a member of the Storting for Oslo since 2013. Education Kapur studied marketing, branding and management at the BI Norwegian Business School from 1995 to 2000 and earned an MBA in strategic management from the Norwegian School of Economics in 2012. Career Kapur began his career in sales and marketing for Royal Dutch Shell in 2000. In 2006, he transitioned into politics as a campaign manager for the Conservative Party where he worked until 2012. The same year, he became a fundraiser for SOS Children's Villages. Local politics He was elected to Oslo city council from the Søndre Nordstrand district in 2011 and served on the Finance Committee. In the 2013 Norwegian parliamentary election he was nominated in the 5th spot on the Conservative Party's ballot and gained a seat in the parliament in the election. Parliament Kapur was elected to the Storting in the 2013 election and was re-elected in 2017 and 2021. In the Storting, Kapur served as a member of the Standing Committee on Local Government and Public Administration from 2013 to 2017. After Henrik Asheim was appointed to the Solberg cabinet, Kapur succeeded him as chair of the Standing Committee on Finance and Economic Affairs. He held this post from February 2020 to September 2021, and was succeeded by Eigil Knutsen. Personal life Kapur was born on 14 December 1976 in Oslo. He is of Pakistani descent, his family having immigrated to Norway from Pakistan in 1971, and he was born five years later. He is married and has a son and a daughter. The family lives in Ekeberg, Oslo. References 1976 births Living people Conservative Party (Norway) politicians Members of the Storting Politicians from Oslo Norwegian people of Pakistani descent 21st-century Norwegian politicians
The Solvay Hut or Solvay Bivouac (German: Solvayhütte) is a mountain hut located on the north-eastern ridge (Hörnli Ridge) of the Matterhorn, near Zermatt in the canton of Valais. At it is the highest mountain hut owned by the Swiss Alpine Club, but can be used only in case of emergency. The Hörnli Hut, lying 700 meters below on the same ridge, is the starting point of the normal route to the summit. The Solvay hut was built in 1917, 52 years after the first ascent of the Matterhorn which took place on the same ridge. It offers 10 beds and is equipped with a radiotelephone. The hut was named after Ernest Solvay, a Belgian chemist and industrialist who in 1904 donated 20,000 francs for its construction. The building materials for the hut were brought with a cable rising from the Hörnli Hut. It was rebuilt in 1966 and the emergency telephone was installed in 1976. See also List of buildings and structures above 3000 m in Switzerland References External links Website (German) Mountain huts in Switzerland Matterhorn Mountain huts in the Alps
```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/png" href="../assets/img/favicon.ico"> <link rel="stylesheet" href="../assets/lib/cssgrids.css"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <script src="../assets/lib/yui-min.js"></script> <script src="../assets/js/api-prettify.js"></script> <script src="../assets/js/api-filter.js"></script> <script src="../assets/js/api-list.js"></script> <script src="../assets/js/api-search.js"></script> <script src="../assets/js/api-docs.js"></script> <title>nunuStudio BufferUtils</title> </head> <body class="yui3-skin-sam"> <div id="doc"> <div id="hd" class="yui3-g header"> <div class="yui3-u-3-4"> <h1><a href="../index.html"><img src="../assets/img/logo.png" title=""></a></h1> </div> </div> <div id="bd" class="yui3-g"> <div class="yui3-u-1-4"> <div id="docs-sidebar" class="sidebar"> <div id="api-list"> <h2 class="off-left">APIs</h2> <div id="api-tabview" class="tabview"> <div id="api-tabview-filter"> <input type="search" id="api-filter" placeholder="Type to filter APIs"> </div> <ul class="tabs"> <li><a href="#api-classes">Classes</a></li> <li><a href="#api-modules">Modules</a></li> </ul> <div id="api-tabview-panel"> <ul id="api-classes" class="apis classes"> <li><a href="../classes/AfterimagePass.html">AfterimagePass</a></li> <li><a href="../classes/AmbientLight.html">AmbientLight</a></li> <li><a href="../classes/AnimationMixer.html">AnimationMixer</a></li> <li><a href="../classes/AnimationTimer.html">AnimationTimer</a></li> <li><a href="../classes/App.html">App</a></li> <li><a href="../classes/ARHandler.html">ARHandler</a></li> <li><a href="../classes/ArraybufferUtils.html">ArraybufferUtils</a></li> <li><a href="../classes/Audio.html">Audio</a></li> <li><a href="../classes/AudioEmitter.html">AudioEmitter</a></li> <li><a href="../classes/AudioLoader.html">AudioLoader</a></li> <li><a href="../classes/Base64Utils.html">Base64Utils</a></li> <li><a href="../classes/BaseNode.html">BaseNode</a></li> <li><a href="../classes/BillboardGroup.html">BillboardGroup</a></li> <li><a href="../classes/BloomPass.html">BloomPass</a></li> <li><a href="../classes/BokehPass.html">BokehPass</a></li> <li><a href="../classes/BufferUtils.html">BufferUtils</a></li> <li><a href="../classes/ByteArrayUtils.html">ByteArrayUtils</a></li> <li><a href="../classes/CanvasSprite.html">CanvasSprite</a></li> <li><a href="../classes/CanvasTexture.html">CanvasTexture</a></li> <li><a href="../classes/CapsuleBufferGeometry.html">CapsuleBufferGeometry</a></li> <li><a href="../classes/ColorifyPass.html">ColorifyPass</a></li> <li><a href="../classes/CompressedTexture.html">CompressedTexture</a></li> <li><a href="../classes/CopyPass.html">CopyPass</a></li> <li><a href="../classes/CSS3DObject.html">CSS3DObject</a></li> <li><a href="../classes/CSS3DRenderer.html">CSS3DRenderer</a></li> <li><a href="../classes/CSS3DSprite.html">CSS3DSprite</a></li> <li><a href="../classes/CubeCamera.html">CubeCamera</a></li> <li><a href="../classes/CubeTexture.html">CubeTexture</a></li> <li><a href="../classes/DataTexture.html">DataTexture</a></li> <li><a href="../classes/DirectionalLight.html">DirectionalLight</a></li> <li><a href="../classes/DirectionalLightCSM.html">DirectionalLightCSM</a></li> <li><a href="../classes/DotScreenPass.html">DotScreenPass</a></li> <li><a href="../classes/EffectComposer.html">EffectComposer</a></li> <li><a href="../classes/EventManager.html">EventManager</a></li> <li><a href="../classes/FileSystem.html">FileSystem</a></li> <li><a href="../classes/FilmPass.html">FilmPass</a></li> <li><a href="../classes/FirstPersonControls.html">FirstPersonControls</a></li> <li><a href="../classes/Fog.html">Fog</a></li> <li><a href="../classes/Font.html">Font</a></li> <li><a href="../classes/FontLoader.html">FontLoader</a></li> <li><a href="../classes/FXAAPass.html">FXAAPass</a></li> <li><a href="../classes/Gamepad.html">Gamepad</a></li> <li><a href="../classes/GeometryLoader.html">GeometryLoader</a></li> <li><a href="../classes/Group.html">Group</a></li> <li><a href="../classes/Gyroscope.html">Gyroscope</a></li> <li><a href="../classes/HemisphereLight.html">HemisphereLight</a></li> <li><a href="../classes/HTMLView.html">HTMLView</a></li> <li><a href="../classes/HueSaturationPass.html">HueSaturationPass</a></li> <li><a href="../classes/Image.html">Image</a></li> <li><a href="../classes/ImageLoader.html">ImageLoader</a></li> <li><a href="../classes/InstancedMesh.html">InstancedMesh</a></li> <li><a href="../classes/Key.html">Key</a></li> <li><a href="../classes/Keyboard.html">Keyboard</a></li> <li><a href="../classes/LegacyGeometryLoader.html">LegacyGeometryLoader</a></li> <li><a href="../classes/LensFlare.html">LensFlare</a></li> <li><a href="../classes/LightProbe.html">LightProbe</a></li> <li><a href="../classes/LocalStorage.html">LocalStorage</a></li> <li><a href="../classes/Material.html">Material</a></li> <li><a href="../classes/MaterialLoader.html">MaterialLoader</a></li> <li><a href="../classes/MathUtils.html">MathUtils</a></li> <li><a href="../classes/Mesh.html">Mesh</a></li> <li><a href="../classes/Model.html">Model</a></li> <li><a href="../classes/Mouse.html">Mouse</a></li> <li><a href="../classes/NodeScript.html">NodeScript</a></li> <li><a href="../classes/Nunu.html">Nunu</a></li> <li><a href="../classes/Object3D.html">Object3D</a></li> <li><a href="../classes/ObjectLoader.html">ObjectLoader</a></li> <li><a href="../classes/ObjectUtils.html">ObjectUtils</a></li> <li><a href="../classes/OperationNode.html">OperationNode</a></li> <li><a href="../classes/OrbitControls.html">OrbitControls</a></li> <li><a href="../classes/OrthographicCamera.html">OrthographicCamera</a></li> <li><a href="../classes/ParametricBufferGeometry.html">ParametricBufferGeometry</a></li> <li><a href="../classes/ParticleDistributions.html">ParticleDistributions</a></li> <li><a href="../classes/ParticleEmitter.html">ParticleEmitter</a></li> <li><a href="../classes/ParticleEmitterControl.html">ParticleEmitterControl</a></li> <li><a href="../classes/ParticleEmitterControlOptions.html">ParticleEmitterControlOptions</a></li> <li><a href="../classes/ParticleGroup.html">ParticleGroup</a></li> <li><a href="../classes/Pass.html">Pass</a></li> <li><a href="../classes/PerspectiveCamera.html">PerspectiveCamera</a></li> <li><a href="../classes/PhysicsGenerator.html">PhysicsGenerator</a></li> <li><a href="../classes/PhysicsObject.html">PhysicsObject</a></li> <li><a href="../classes/PointLight.html">PointLight</a></li> <li><a href="../classes/PositionalAudio.html">PositionalAudio</a></li> <li><a href="../classes/Program.html">Program</a></li> <li><a href="../classes/PythonScript.html">PythonScript</a></li> <li><a href="../classes/RectAreaLight.html">RectAreaLight</a></li> <li><a href="../classes/RendererConfiguration.html">RendererConfiguration</a></li> <li><a href="../classes/RendererState.html">RendererState</a></li> <li><a href="../classes/RenderPass.html">RenderPass</a></li> <li><a href="../classes/Resource.html">Resource</a></li> <li><a href="../classes/ResourceManager.html">ResourceManager</a></li> <li><a href="../classes/RoundedBoxBufferGeometry.html">RoundedBoxBufferGeometry</a></li> <li><a href="../classes/Scene.html">Scene</a></li> <li><a href="../classes/Script.html">Script</a></li> <li><a href="../classes/ShaderAttribute.html">ShaderAttribute</a></li> <li><a href="../classes/ShaderPass.html">ShaderPass</a></li> <li><a href="../classes/ShaderUtils.html">ShaderUtils</a></li> <li><a href="../classes/SimplexNoise.html">SimplexNoise</a></li> <li><a href="../classes/Skeleton.html">Skeleton</a></li> <li><a href="../classes/SkinnedMesh.html">SkinnedMesh</a></li> <li><a href="../classes/Sky.html">Sky</a></li> <li><a href="../classes/SobelPass.html">SobelPass</a></li> <li><a href="../classes/SpineAnimation.html">SpineAnimation</a></li> <li><a href="../classes/SpineTexture.html">SpineTexture</a></li> <li><a href="../classes/SpotLight.html">SpotLight</a></li> <li><a href="../classes/Sprite.html">Sprite</a></li> <li><a href="../classes/SpriteSheetTexture.html">SpriteSheetTexture</a></li> <li><a href="../classes/SSAONOHPass.html">SSAONOHPass</a></li> <li><a href="../classes/SSAOPass.html">SSAOPass</a></li> <li><a href="../classes/SSAOShader.html">SSAOShader</a></li> <li><a href="../classes/TargetConfig.html">TargetConfig</a></li> <li><a href="../classes/TechnicolorPass.html">TechnicolorPass</a></li> <li><a href="../classes/TerrainBufferGeometry.html">TerrainBufferGeometry</a></li> <li><a href="../classes/TextBitmap.html">TextBitmap</a></li> <li><a href="../classes/TextFile.html">TextFile</a></li> <li><a href="../classes/TextMesh.html">TextMesh</a></li> <li><a href="../classes/TextSprite.html">TextSprite</a></li> <li><a href="../classes/Texture.html">Texture</a></li> <li><a href="../classes/TextureLoader.html">TextureLoader</a></li> <li><a href="../classes/Timer.html">Timer</a></li> <li><a href="../classes/TizenKeyboard.html">TizenKeyboard</a></li> <li><a href="../classes/Tree.html">Tree</a></li> <li><a href="../classes/TreeUtils.html">TreeUtils</a></li> <li><a href="../classes/TwistModifier.html">TwistModifier</a></li> <li><a href="../classes/TypedArrayHelper.html">TypedArrayHelper</a></li> <li><a href="../classes/UnitConverter.html">UnitConverter</a></li> <li><a href="../classes/UnrealBloomPass.html">UnrealBloomPass</a></li> <li><a href="../classes/Video.html">Video</a></li> <li><a href="../classes/VideoLoader.html">VideoLoader</a></li> <li><a href="../classes/VideoStream.html">VideoStream</a></li> <li><a href="../classes/VideoTexture.html">VideoTexture</a></li> <li><a href="../classes/Viewport.html">Viewport</a></li> <li><a href="../classes/VRHandler.html">VRHandler</a></li> <li><a href="../classes/WebcamTexture.html">WebcamTexture</a></li> <li><a href="../classes/WorkerPool.html">WorkerPool</a></li> <li><a href="../classes/WorkerTask.html">WorkerTask</a></li> <li><a href="../classes/{Object} ParticleGroupOptions.html">{Object} ParticleGroupOptions</a></li> </ul> <ul id="api-modules" class="apis modules"> <li><a href="../modules/Animation.html">Animation</a></li> <li><a href="../modules/Animations.html">Animations</a></li> <li><a href="../modules/Audio.html">Audio</a></li> <li><a href="../modules/BinaryUtils.html">BinaryUtils</a></li> <li><a href="../modules/Cameras.html">Cameras</a></li> <li><a href="../modules/Controls.html">Controls</a></li> <li><a href="../modules/Core.html">Core</a></li> <li><a href="../modules/Files.html">Files</a></li> <li><a href="../modules/Input.html">Input</a></li> <li><a href="../modules/Lights.html">Lights</a></li> <li><a href="../modules/Loaders.html">Loaders</a></li> <li><a href="../modules/Meshes.html">Meshes</a></li> <li><a href="../modules/Misc.html">Misc</a></li> <li><a href="../modules/Particles.html">Particles</a></li> <li><a href="../modules/Physics.html">Physics</a></li> <li><a href="../modules/Postprocessing.html">Postprocessing</a></li> <li><a href="../modules/Resources.html">Resources</a></li> <li><a href="../modules/Runtime.html">Runtime</a></li> <li><a href="../modules/Script.html">Script</a></li> <li><a href="../modules/Sprite.html">Sprite</a></li> <li><a href="../modules/Textures.html">Textures</a></li> <li><a href="../modules/THREE.html">THREE</a></li> <li><a href="../modules/Utils.html">Utils</a></li> </ul> </div> </div> </div> </div> </div> <div class="yui3-u-3-4"> <!--<div id="api-options"> Show: <label for="api-show-inherited"> <input type="checkbox" id="api-show-inherited" checked> Inherited </label> <label for="api-show-protected"> <input type="checkbox" id="api-show-protected"> Protected </label> <label for="api-show-private"> <input type="checkbox" id="api-show-private"> Private </label> <label for="api-show-deprecated"> <input type="checkbox" id="api-show-deprecated"> Deprecated </label> </div>--> <div class="apidocs"> <div id="docs-main"> <div class="content"> <h1>BufferUtils Class</h1> <div class="box meta"> Module: <a href="../modules/BinaryUtils.html">BinaryUtils</a> </div> <div class="box intro"> <p>BufferUtils contains methods to convert from and to Node.js Buffer binary format</p> </div> <div id="classdocs" class="tabview"> <ul class="api-class-tabs"> <li class="api-class-tab index"><a href="#index">Index</a></li> <li class="api-class-tab methods"><a href="#methods">Methods</a></li> </ul> <div> <div id="index" class="api-class-tabpanel index"> <h2 class="off-left">Item Index</h2> <div class="index-section methods"> <h3>Methods</h3> <ul class="index-list methods"> <li class="index-item method"> <a href="#method_fromArrayBuffer">fromArrayBuffer</a> </li> </ul> </div> </div> <div id="methods" class="api-class-tabpanel"> <h2 class="off-left">Methods</h2> <div id="method_fromArrayBuffer" class="method item"> <h3 class="name"><code>fromArrayBuffer</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>array</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Buffer</span> </span> <div class="meta"> <p> </p> </div> <div class="description"> <p>Create nodejs buffer from arraybuffer</p> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">array</code> <span class="type">ArrayBuffer</span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Buffer</span>: <p>buffer</p> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </body> </html> ```
The Amangu are an indigenous Yamatji people of the mid-western region of Western Australia. Language Two early glossaries of some words from the Champion Bay Amangu were collected. One, by R. J. Foley, was published in a work by Augustus Oldfield in 1865, and the other was gathered by the Colonial Secretary of Western Australia Roger Goldsworthy, and published by E. M. Curr two decades later. Country The Amangu's territory stretched over some , centering on the area of Champion Bay, and the Chapman River. The northern boundary lay near Geraldton and the Hill River. The inland extension was from the coast as far as the vicinity of Mullewa, Morawa and Carnamah. The southern frontier is not clear, but is believed to have run down to the vicinity just north of Moora. History Excavation as Yellabidde Cave near Leeman indicate that the Amangu territory was occupied as early as 23,000 BP, putting back the accepted date for habitation of the Perth-Geraldton coast by some 15,000 years. Some words agootha (mother) ammatha (father) kilire, kullali (emu) mini (whiteman) yellabidde (emu) Notes Citations Sources Noongar
Current Expected Credit Losses (CECL) is a credit loss accounting standard (model) that was issued by the Financial Accounting Standards Board (FASB) on June 16, 2016. CECL replaces the current Allowance for Loan and Lease Losses (ALLL) accounting standard. The CECL standard focuses on estimation of expected losses over the life of the loans, while the current standard relies on incurred losses. Background The financial crisis of 2007-2008 demonstrated that the then Allowance for Loan and Lease Losses (ALLL) accounting standard/framework did not allow for timely adjustment of reserve levels based on reasonable expectation of future conditions. It relied on losses that were incurred but not realized, i.e., when it was known with some expectation that future cash flows would not be collected. During the crisis, negative outlook of the economy was not explicitly taken into account for ALLL calculations. As a result, reserves were not adjusted for future expected losses. The FASB reviewed the standard and replaced it with CECL. CECL requires expected losses to be estimated over the remaining life of the loans, as opposed to incurred losses of the then-current standard. FASB stated that the new standard would improve “financial reporting by requiring timelier recording of credit losses on loans and other financial instruments held by financial institutions and other organizations.” The Office of the Comptroller of the Currency (OCC) and Federal Reserve predicted that industry allowances would go up by 30% to 50%. CECL impact Prior to implementation, CECL was expected to have a substantial impact on multiple financial institutions. Larger allowances may have been required for most products. It was argued that this effect alone could have changed the structure of products to scale down the impact. As allowances may have increased, pricing of the products may change to reflect higher capital cost. Losses modeling would have changed. This would impact both data collection (data need to be more granular) and modeling methodology (backward-looking over a short period of time to forward-looking for the life of the loan). Companies that adopted CECL in 2020 also dealt with the impacts of COVID-19 which complicated the adoption. CECL criticism The Bank Policy Institute points out that CECL forces banks to recognize expected future losses immediately but does not allow them to recognize immediately the higher expected future interest earnings banks receive as compensation for risk. This could result in a decrease in availability of lending to non-prime borrowers, stunting economic recovery following a downturn. Another criticism regarding CECL is that in order to estimate expected credit losses, banks are required to forecast the state of the economy. As noted by the American Bankers Association (ABA), “Forecasting is difficult, even for the experts… forecasting organizations largely missed forecasting the financial crisis and openly admit the difficulty in forecasting turns in the economic cycle.” Additionally, CECL was implemented primarily to force banks to maintain countercyclical reserves. Per the American Banker, all thorough analyses of the effect of the new rules have shown, to differing degrees, that allowances will continue to be procyclical after CECL comes into force during 2020. References Banking terms
Daniel "Dani" Rebollo Franco (born 10 December 1999) is a Spanish footballer who plays as a goalkeeper for Real Zaragoza. Club career Born in Lepe, Huelva, Andalusia, Rebollo joined Real Betis' youth setup in 2017, from UD Punta del Caimán. He made his senior debut with the reserves on 25 February 2018, starting in a 2–1 Segunda División B home loss against CF Villanovense. On 23 October 2019, Rebollo renewed his contract until 2022. On 21 March 2021, he scored a stoppage time equalizer in a 2–1 away win over Córdoba CF. On 8 July 2022, free agent Rebollo agreed to a one-year deal with Segunda División side Real Zaragoza. Initially a third-choice behind Cristian Álvarez and Álvaro Ratón, he made his professional debut on 10 December, starting in a 3–0 home success over SD Huesca. References External links 2000 births Living people People from the Province of Huelva Spanish men's footballers Footballers from Andalusia Men's association football goalkeepers Segunda División players Primera Federación players Segunda División B players Segunda Federación players Tercera División players Betis Deportivo Balompié footballers Deportivo Aragón players Real Zaragoza players
Chicumbo is a town in Gaza Province, Mozambique. Nearby towns and villages include Mucombo (3.5 nm), Bande (2.9 nm), Valente (1.0 nm), Tchaila (4.3 nm), Manganhane (3.8 nm) and Bananhane (5.3 nm) . References Populated places in Gaza Province
```kotlin package mega.privacy.android.domain.usecase import app.cash.turbine.test import com.google.common.truth.Truth.assertThat import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.test.runTest import mega.privacy.android.domain.entity.photos.AlbumId import mega.privacy.android.domain.entity.photos.AlbumPhotosRemovingProgress import mega.privacy.android.domain.repository.AlbumRepository import org.junit.Before import org.junit.Test import org.mockito.kotlin.mock import org.mockito.kotlin.whenever @ExperimentalCoroutinesApi class DefaultObserveAlbumPhotosRemovingProgressTest { private lateinit var underTest: ObserveAlbumPhotosRemovingProgress private val albumRepository = mock<AlbumRepository>() @Before fun setUp() { underTest = DefaultObserveAlbumPhotosRemovingProgress( albumRepository = albumRepository, ) } @Test fun `test that use case returns correct result`() = runTest { val albumId = AlbumId(1L) val expectedProgress = AlbumPhotosRemovingProgress(true, 0) whenever(albumRepository.observeAlbumPhotosRemovingProgress(albumId)) .thenReturn(flowOf(expectedProgress)) underTest(albumId).test { val actualProgress = awaitItem() assertThat(actualProgress?.isProgressing).isTrue() assertThat(actualProgress?.totalRemovedPhotos).isEqualTo(0) awaitComplete() } } } ```
```c++ // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following // disclaimer in the documentation and/or other materials provided // with the distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <cmath> #include "fixed-dtoa.h" #include "ieee.h" namespace double_conversion { // Represents a 128bit type. This class should be replaced by a native type on // platforms that support 128bit integers. class UInt128 { public: UInt128() : high_bits_(0), low_bits_(0) { } UInt128(uint64_t high, uint64_t low) : high_bits_(high), low_bits_(low) { } void Multiply(uint32_t multiplicand) { uint64_t accumulator; accumulator = (low_bits_ & kMask32) * multiplicand; uint32_t part = static_cast<uint32_t>(accumulator & kMask32); accumulator >>= 32; accumulator = accumulator + (low_bits_ >> 32) * multiplicand; low_bits_ = (accumulator << 32) + part; accumulator >>= 32; accumulator = accumulator + (high_bits_ & kMask32) * multiplicand; part = static_cast<uint32_t>(accumulator & kMask32); accumulator >>= 32; accumulator = accumulator + (high_bits_ >> 32) * multiplicand; high_bits_ = (accumulator << 32) + part; DOUBLE_CONVERSION_ASSERT((accumulator >> 32) == 0); } void Shift(int shift_amount) { DOUBLE_CONVERSION_ASSERT(-64 <= shift_amount && shift_amount <= 64); if (shift_amount == 0) { return; } else if (shift_amount == -64) { high_bits_ = low_bits_; low_bits_ = 0; } else if (shift_amount == 64) { low_bits_ = high_bits_; high_bits_ = 0; } else if (shift_amount <= 0) { high_bits_ <<= -shift_amount; high_bits_ += low_bits_ >> (64 + shift_amount); low_bits_ <<= -shift_amount; } else { low_bits_ >>= shift_amount; low_bits_ += high_bits_ << (64 - shift_amount); high_bits_ >>= shift_amount; } } // Modifies *this to *this MOD (2^power). // Returns *this DIV (2^power). int DivModPowerOf2(int power) { if (power >= 64) { int result = static_cast<int>(high_bits_ >> (power - 64)); high_bits_ -= static_cast<uint64_t>(result) << (power - 64); return result; } else { uint64_t part_low = low_bits_ >> power; uint64_t part_high = high_bits_ << (64 - power); int result = static_cast<int>(part_low + part_high); high_bits_ = 0; low_bits_ -= part_low << power; return result; } } bool IsZero() const { return high_bits_ == 0 && low_bits_ == 0; } int BitAt(int position) const { if (position >= 64) { return static_cast<int>(high_bits_ >> (position - 64)) & 1; } else { return static_cast<int>(low_bits_ >> position) & 1; } } private: static const uint64_t kMask32 = 0xFFFFFFFF; // Value == (high_bits_ << 64) + low_bits_ uint64_t high_bits_; uint64_t low_bits_; }; static const int kDoubleSignificandSize = 53; // Includes the hidden bit. static void FillDigits32FixedLength(uint32_t number, int requested_length, Vector<char> buffer, int* length) { for (int i = requested_length - 1; i >= 0; --i) { buffer[(*length) + i] = '0' + number % 10; number /= 10; } *length += requested_length; } static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { int number_length = 0; // We fill the digits in reverse order and exchange them afterwards. while (number != 0) { int digit = number % 10; number /= 10; buffer[(*length) + number_length] = static_cast<char>('0' + digit); number_length++; } // Exchange the digits. int i = *length; int j = *length + number_length - 1; while (i < j) { char tmp = buffer[i]; buffer[i] = buffer[j]; buffer[j] = tmp; i++; j--; } *length += number_length; } static void FillDigits64FixedLength(uint64_t number, Vector<char> buffer, int* length) { const uint32_t kTen7 = 10000000; // For efficiency cut the number into 3 uint32_t parts, and print those. uint32_t part2 = static_cast<uint32_t>(number % kTen7); number /= kTen7; uint32_t part1 = static_cast<uint32_t>(number % kTen7); uint32_t part0 = static_cast<uint32_t>(number / kTen7); FillDigits32FixedLength(part0, 3, buffer, length); FillDigits32FixedLength(part1, 7, buffer, length); FillDigits32FixedLength(part2, 7, buffer, length); } static void FillDigits64(uint64_t number, Vector<char> buffer, int* length) { const uint32_t kTen7 = 10000000; // For efficiency cut the number into 3 uint32_t parts, and print those. uint32_t part2 = static_cast<uint32_t>(number % kTen7); number /= kTen7; uint32_t part1 = static_cast<uint32_t>(number % kTen7); uint32_t part0 = static_cast<uint32_t>(number / kTen7); if (part0 != 0) { FillDigits32(part0, buffer, length); FillDigits32FixedLength(part1, 7, buffer, length); FillDigits32FixedLength(part2, 7, buffer, length); } else if (part1 != 0) { FillDigits32(part1, buffer, length); FillDigits32FixedLength(part2, 7, buffer, length); } else { FillDigits32(part2, buffer, length); } } static void RoundUp(Vector<char> buffer, int* length, int* decimal_point) { // An empty buffer represents 0. if (*length == 0) { buffer[0] = '1'; *decimal_point = 1; *length = 1; return; } // Round the last digit until we either have a digit that was not '9' or until // we reached the first digit. buffer[(*length) - 1]++; for (int i = (*length) - 1; i > 0; --i) { if (buffer[i] != '0' + 10) { return; } buffer[i] = '0'; buffer[i - 1]++; } // If the first digit is now '0' + 10, we would need to set it to '0' and add // a '1' in front. However we reach the first digit only if all following // digits had been '9' before rounding up. Now all trailing digits are '0' and // we simply switch the first digit to '1' and update the decimal-point // (indicating that the point is now one digit to the right). if (buffer[0] == '0' + 10) { buffer[0] = '1'; (*decimal_point)++; } } // The given fractionals number represents a fixed-point number with binary // point at bit (-exponent). // Preconditions: // -128 <= exponent <= 0. // 0 <= fractionals * 2^exponent < 1 // The buffer holds the result. // The function will round its result. During the rounding-process digits not // generated by this function might be updated, and the decimal-point variable // might be updated. If this function generates the digits 99 and the buffer // already contained "199" (thus yielding a buffer of "19999") then a // rounding-up will change the contents of the buffer to "20000". static void FillFractionals(uint64_t fractionals, int exponent, int fractional_count, Vector<char> buffer, int* length, int* decimal_point) { DOUBLE_CONVERSION_ASSERT(-128 <= exponent && exponent <= 0); // 'fractionals' is a fixed-point number, with binary point at bit // (-exponent). Inside the function the non-converted remainder of fractionals // is a fixed-point number, with binary point at bit 'point'. if (-exponent <= 64) { // One 64 bit number is sufficient. DOUBLE_CONVERSION_ASSERT(fractionals >> 56 == 0); int point = -exponent; for (int i = 0; i < fractional_count; ++i) { if (fractionals == 0) break; // Instead of multiplying by 10 we multiply by 5 and adjust the point // location. This way the fractionals variable will not overflow. // Invariant at the beginning of the loop: fractionals < 2^point. // Initially we have: point <= 64 and fractionals < 2^56 // After each iteration the point is decremented by one. // Note that 5^3 = 125 < 128 = 2^7. // Therefore three iterations of this loop will not overflow fractionals // (even without the subtraction at the end of the loop body). At this // time point will satisfy point <= 61 and therefore fractionals < 2^point // and any further multiplication of fractionals by 5 will not overflow. fractionals *= 5; point--; int digit = static_cast<int>(fractionals >> point); DOUBLE_CONVERSION_ASSERT(digit <= 9); buffer[*length] = static_cast<char>('0' + digit); (*length)++; fractionals -= static_cast<uint64_t>(digit) << point; } // If the first bit after the point is set we have to round up. DOUBLE_CONVERSION_ASSERT(fractionals == 0 || point - 1 >= 0); if ((fractionals != 0) && ((fractionals >> (point - 1)) & 1) == 1) { RoundUp(buffer, length, decimal_point); } } else { // We need 128 bits. DOUBLE_CONVERSION_ASSERT(64 < -exponent && -exponent <= 128); UInt128 fractionals128 = UInt128(fractionals, 0); fractionals128.Shift(-exponent - 64); int point = 128; for (int i = 0; i < fractional_count; ++i) { if (fractionals128.IsZero()) break; // As before: instead of multiplying by 10 we multiply by 5 and adjust the // point location. // This multiplication will not overflow for the same reasons as before. fractionals128.Multiply(5); point--; int digit = fractionals128.DivModPowerOf2(point); DOUBLE_CONVERSION_ASSERT(digit <= 9); buffer[*length] = static_cast<char>('0' + digit); (*length)++; } if (fractionals128.BitAt(point - 1) == 1) { RoundUp(buffer, length, decimal_point); } } } // Removes leading and trailing zeros. // If leading zeros are removed then the decimal point position is adjusted. static void TrimZeros(Vector<char> buffer, int* length, int* decimal_point) { while (*length > 0 && buffer[(*length) - 1] == '0') { (*length)--; } int first_non_zero = 0; while (first_non_zero < *length && buffer[first_non_zero] == '0') { first_non_zero++; } if (first_non_zero != 0) { for (int i = first_non_zero; i < *length; ++i) { buffer[i - first_non_zero] = buffer[i]; } *length -= first_non_zero; *decimal_point -= first_non_zero; } } bool FastFixedDtoa(double v, int fractional_count, Vector<char> buffer, int* length, int* decimal_point) { const uint32_t kMaxUInt32 = 0xFFFFFFFF; uint64_t significand = Double(v).Significand(); int exponent = Double(v).Exponent(); // v = significand * 2^exponent (with significand a 53bit integer). // If the exponent is larger than 20 (i.e. we may have a 73bit number) then we // don't know how to compute the representation. 2^73 ~= 9.5*10^21. // If necessary this limit could probably be increased, but we don't need // more. if (exponent > 20) return false; if (fractional_count > 20) return false; *length = 0; // At most kDoubleSignificandSize bits of the significand are non-zero. // Given a 64 bit integer we have 11 0s followed by 53 potentially non-zero // bits: 0..11*..0xxx..53*..xx if (exponent + kDoubleSignificandSize > 64) { // The exponent must be > 11. // // We know that v = significand * 2^exponent. // And the exponent > 11. // We simplify the task by dividing v by 10^17. // The quotient delivers the first digits, and the remainder fits into a 64 // bit number. // Dividing by 10^17 is equivalent to dividing by 5^17*2^17. const uint64_t kFive17 = DOUBLE_CONVERSION_UINT64_2PART_C(0xB1, A2BC2EC5); // 5^17 uint64_t divisor = kFive17; int divisor_power = 17; uint64_t dividend = significand; uint32_t quotient; uint64_t remainder; // Let v = f * 2^e with f == significand and e == exponent. // Then need q (quotient) and r (remainder) as follows: // v = q * 10^17 + r // f * 2^e = q * 10^17 + r // f * 2^e = q * 5^17 * 2^17 + r // If e > 17 then // f * 2^(e-17) = q * 5^17 + r/2^17 // else // f = q * 5^17 * 2^(17-e) + r/2^e if (exponent > divisor_power) { // We only allow exponents of up to 20 and therefore (17 - e) <= 3 dividend <<= exponent - divisor_power; quotient = static_cast<uint32_t>(dividend / divisor); remainder = (dividend % divisor) << divisor_power; } else { divisor <<= divisor_power - exponent; quotient = static_cast<uint32_t>(dividend / divisor); remainder = (dividend % divisor) << exponent; } FillDigits32(quotient, buffer, length); FillDigits64FixedLength(remainder, buffer, length); *decimal_point = *length; } else if (exponent >= 0) { // 0 <= exponent <= 11 significand <<= exponent; FillDigits64(significand, buffer, length); *decimal_point = *length; } else if (exponent > -kDoubleSignificandSize) { // We have to cut the number. uint64_t integrals = significand >> -exponent; uint64_t fractionals = significand - (integrals << -exponent); if (integrals > kMaxUInt32) { FillDigits64(integrals, buffer, length); } else { FillDigits32(static_cast<uint32_t>(integrals), buffer, length); } *decimal_point = *length; FillFractionals(fractionals, exponent, fractional_count, buffer, length, decimal_point); } else if (exponent < -128) { // This configuration (with at most 20 digits) means that all digits must be // 0. DOUBLE_CONVERSION_ASSERT(fractional_count <= 20); buffer[0] = '\0'; *length = 0; *decimal_point = -fractional_count; } else { *decimal_point = 0; FillFractionals(significand, exponent, fractional_count, buffer, length, decimal_point); } TrimZeros(buffer, length, decimal_point); buffer[*length] = '\0'; if ((*length) == 0) { // The string is empty and the decimal_point thus has no importance. Mimic // Gay's dtoa and set it to -fractional_count. *decimal_point = -fractional_count; } return true; } } // namespace double_conversion ```
Mamil (or MAMIL) is an acronym and a pejorative term for a "middle-aged man in Lycra" – that is, men who ride an expensive racing bicycle for leisure, while wearing body-hugging jerseys and bicycle shorts. The word was reportedly coined by British marketing research firm Mintel in 2010. It gained further popularity in the United Kingdom with the success of Bradley Wiggins in the 2012 Tour de France and at the 2012 Summer Olympics, held in London. The British UCI World Championships victories in recent years have also spurred interest in cycling in the UK. In Australia the popularity of this sort of cycling has been associated with the Tour Down Under and the 2011 Tour de France winner Cadel Evans. Former Prime Minister Tony Abbott has been described as a "mamil". And in Slovakia, for example, the popularity of racing cycling and wearing colorful Lycra on the roads rose after Peter Sagan begun winning in Tour de France and World championships. Buying an expensive road bicycle has been described as a more healthy and affordable response to a midlife crisis than buying an expensive sports car. There are documentaries investigating this cycling culture. MAMIL is the title of a one-man play by New Zealand playwright Greg Cooper, written for actor Mark Hadlow. It is also the title of a feature-length documentary directed by Nickolas Bird and produced by Bird, Eleanor Sharpe and Mark Bird. References External links Neologisms Acronyms Cycling Middle age Pejorative terms for men
Serixia cavifrons is a species of beetle in the family Cerambycidae. It was described by Per Olof Christopher Aurivillius in 1927. References Serixia Beetles described in 1927
```html --- title: linkTitle: bigheader: Kubernetes abstract: , Kubernetes . layout: basic class: gridPage cid: caseStudies --- ```
```c++ #include "searchresultitem.h" using namespace vnotex; QSharedPointer<SearchResultItem> SearchResultItem::createBufferItem(const QString &p_targetPath, const QString &p_displayPath, int p_lineNumber, const QString &p_text, const QList<Segment> &p_segments) { auto item = createBufferItem(p_targetPath, p_displayPath); item->m_location.addLine(p_lineNumber, p_text, p_segments); return item; } QSharedPointer<SearchResultItem> SearchResultItem::createBufferItem(const QString &p_targetPath, const QString &p_displayPath) { auto item = QSharedPointer<SearchResultItem>::create(); item->m_location.m_type = LocationType::Buffer; item->m_location.m_path = p_targetPath; item->m_location.m_displayPath = p_displayPath; return item; } QSharedPointer<SearchResultItem> SearchResultItem::createFileItem(const QString &p_targetPath, const QString &p_displayPath, int p_lineNumber, const QString &p_text, const QList<Segment> &p_segments) { auto item = createFileItem(p_targetPath, p_displayPath); item->m_location.addLine(p_lineNumber, p_text, p_segments); return item; } QSharedPointer<SearchResultItem> SearchResultItem::createFileItem(const QString &p_targetPath, const QString &p_displayPath) { auto item = QSharedPointer<SearchResultItem>::create(); item->m_location.m_type = LocationType::File; item->m_location.m_path = p_targetPath; item->m_location.m_displayPath = p_displayPath; return item; } QSharedPointer<SearchResultItem> SearchResultItem::createFolderItem(const QString &p_targetPath, const QString &p_displayPath) { auto item = QSharedPointer<SearchResultItem>::create(); item->m_location.m_type = LocationType::Folder; item->m_location.m_path = p_targetPath; item->m_location.m_displayPath = p_displayPath; return item; } QSharedPointer<SearchResultItem> SearchResultItem::createNotebookItem(const QString &p_targetPath, const QString &p_displayPath) { auto item = QSharedPointer<SearchResultItem>::create(); item->m_location.m_type = LocationType::Notebook; item->m_location.m_path = p_targetPath; item->m_location.m_displayPath = p_displayPath; return item; } void SearchResultItem::addLine(int p_lineNumber, const QString &p_text, const QList<Segment> &p_segments) { m_location.addLine(p_lineNumber, p_text, p_segments); } ```
```smalltalk using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using Xamarin.Forms.CustomAttributes; using Xamarin.Forms.Internals; #if UITEST using Xamarin.UITest; using NUnit.Framework; using Xamarin.Forms.Core.UITests; #endif namespace Xamarin.Forms.Controls.Issues { [Preserve(AllMembers = true)] [Issue(IssueTracker.Github, 10234, "CarouselView disposed on iOS when navigating back in Shell ", PlatformAffected.iOS)] #if UITEST [NUnit.Framework.Category(UITestCategories.Shell)] #endif public class Issue10234 : TestShell { protected override void Init() { TabBar tabBar = new TabBar { Title = "Main", Route = "main", Items = { new Tab { Route = "tab1", Title = "Tab 1", Items = { new ShellContent() { ContentTemplate = new DataTemplate(() => new ContentPage { Content = new StackLayout { Children = { new Label { Text = "Hej" }, new Button { AutomationId = "goToShow", Text = "Show", Command = new Command(async () => await GoToAsync("//photos?id=1")) } } } }), } } } } }; TabBar photosTab = new TabBar() { Title = "Photos", Route = "photos", Items = { new ShellSection() { Items = { new ShellContent() { ContentTemplate = new DataTemplate(() => new PhotosPage()), } } } } }; Items.Add(tabBar); Items.Add(photosTab); } class PhotosPage : ContentPage { CarouselView Photos; public PhotosPage() { //InitializeComponent(); Photos = new CarouselView { AutomationId = "carouselView", ItemTemplate = new DataTemplate( () => { var image = new Image(); image.SetBinding(Image.SourceProperty, new Binding(".")); return image; } ) }; var grid = new Grid(); grid.RowDefinitions.Add(new RowDefinition()); grid.RowDefinitions.Add(new RowDefinition()); var btn = new Button { Text = "Go back", AutomationId = "goToBack", Command = new Command(async () => await Shell.Current.GoToAsync("//main")) }; Grid.SetRow(Photos, 0); Grid.SetRow(btn, 1); grid.Children.Add(Photos); grid.Children.Add(btn); Content = grid; } public ObservableCollection<string> Items { get; set; } public void LoadData() { var images = new List<string>(); images.Add("FlowerBuds.jpg"); images.Add("Fruits.jpg"); images.Add("Legumes.jpg"); images.Add("Vegetables.jpg"); Items = new ObservableCollection<string>(images); Photos.ItemsSource = Items; } protected override void OnAppearing() { base.OnAppearing(); LoadData(); } public int PageId { get; set; } } #if UITEST && __IOS__ [Test] public void ScrollCarouselViewAfterDispose() { RunningApp.WaitForElement("goToShow"); RunningApp.Tap("goToShow"); RunningApp.WaitForElement("goToBack"); ScrollNextItem(); RunningApp.Tap("goToBack"); RunningApp.WaitForElement("goToShow"); RunningApp.Tap("goToShow"); ScrollNextItem(); RunningApp.WaitForElement("goToBack"); RunningApp.Tap("goToBack"); RunningApp.WaitForElement("goToShow"); } void ScrollNextItem() { var rect = RunningApp.Query(c => c.Marked("carouselView")).First().Rect; var centerX = rect.CenterX; var rightX = rect.X - 5; RunningApp.DragCoordinates(centerX + 40, rect.CenterY, rightX, rect.CenterY); } #endif } } ```
DNA polymerase delta subunit 2 is an enzyme that in humans is encoded by the POLD2 gene. It is a component of the DNA polymerase delta complex. Interactions POLD2 has been shown to interact with PCNA. References Further reading External links
The (French) or (Dutch) is a former quarter located in central Brussels, Belgium. The district was centred around Saint Mary Magdalene's Church between the /, the / and the current /. It was largely destroyed starting in the 1920s with the works of the North–South connection, a major railway link through central Brussels, to develop the area for Brussels Central Station and other modern office buildings. Many historic structures were lost in the demolition process. Some of the area was redeveloped in the 1980s and 1990s with varying degrees of success, with buildings in the New Classical architecture and the New Brick Renaissance style, following the principles of New Urbanism and the European Urban Renaissance. The name of the street has survived to this day. See also Granvelle Palace, a demolished palace in the district History of Brussels Belgium in "the long nineteenth century" References Notes Neighbourhoods of Brussels City of Brussels New Urbanism communities
```xml import { NgSwAdapter, NgSwCache, NgSwCacheImpl, NgSwEvents, NgSwFetch, Clock } from '../worker/index'; import { MockCacheStorage, MockRequest, MockResponse } from './mock_cache'; export class TestAdapter implements NgSwAdapter { newRequest(req: string | Request, options = {}): Request { return new MockRequest(req, options); } newResponse(body: string | Blob, init = {}): Response { return new MockResponse(body, init); } get scope(): string { return 'path_to_url } } export class MockClient implements Client { constructor(public id: string, public url: string) {} get frameType(): "auxiliary" | "top-level" | "nested" | "none" { return 'top-level'; } postMessage(message: any, transfer?: any[]): void { throw 'Not implemented'; } } export class MockClients implements Clients { clients: {[id: string]: Client} = {}; index: number = 0; clear(): void { this.clients = {}; } add(): string { const id = `client-${this.index++}`; this.clients[id] = new MockClient(id, '/'); return id; } get(id: string): Promise<Client> { return Promise.resolve(this.clients[id]); } matchAll(options?: ClientsMatchAllOptions): Promise<Client[]> { return Promise.resolve(Object.keys(this.clients).map(id => this.clients[id])); } openWindow(url: string): Promise<Client> { return Promise.reject('not implemented'); } claim(): Promise<void> { return Promise.resolve(); } } export class TestWorkerScope implements ServiceWorkerGlobalScope { constructor(public caches: CacheStorage, public clients: MockClients) {} installListener: Function = () => null; activateListener: Function = () => null; fetchListener: Function = () => null; mockResponses: {[key: string]: {response: MockResponse, exact: boolean}} = {}; mockFetch(url: string, response: string | MockResponse, exact: boolean) { if (typeof response == 'string') { response = new MockResponse(<string>response); } this.mockResponses[url] = {response, exact}; } unmockFetch(url: string): void { delete this.mockResponses[url]; } unmockAll(): void { this.mockResponses = {}; } get registration(): ServiceWorkerRegistration { return null; } importScripts(scripts: string): void { require(scripts); } fetch(req: string | Request): Promise<Response> { const fullUrl: string = (typeof req == 'string') ? <string>req : (<Request>req).url; const url = fullUrl.split('?')[0]; if (this.mockResponses.hasOwnProperty(url)) { const mock = this.mockResponses[url]; if (mock.exact && url !== fullUrl) { return Promise.reject(new Error(`${url} != ${fullUrl} but exact match required`)); } return Promise.resolve(mock.response.clone()); } var resp = new MockResponse(''); resp.ok = false; resp.status = 404; resp.statusText = 'File Not Found'; return Promise.resolve(resp); } addEventListener(type: string, listener: Function): void { switch (type) { case 'install': this.installListener = listener; break; case 'activate': this.activateListener = listener; break; case 'fetch': this.fetchListener = listener; break; case 'message': case 'push': // Ignore. break; default: throw `Registering listener for unknown event: ${type}`; } } removeEventListener(type: string, listener: Function): void { throw 'Remove unsupported!'; } skipWaiting(): Promise<void> { return Promise.resolve(); } } interface TestExtendableEvent extends ExtendableEvent { done: Promise<any>; } interface TestInstallEvent extends TestExtendableEvent, InstallEvent {} interface TestActivateEvent extends TestExtendableEvent, ActivateEvent {} interface TestFetchEvent extends TestExtendableEvent, FetchEvent {} export interface TestWorkerCreationFn { (scope: ServiceWorkerGlobalScope, adapter: NgSwAdapter, cache: NgSwCache, fetch: NgSwFetch, events: NgSwEvents, clock: Clock): any; } export class TestWorkerDriver { instance: any; scope: TestWorkerScope; caches: MockCacheStorage = new MockCacheStorage(); clients: MockClients = new MockClients(); lifecycle: Promise<any> = Promise.resolve(null); clock: Clock = new MockClock(); constructor(private createWorker: TestWorkerCreationFn) { this.scope = new TestWorkerScope(this.caches, this.clients); } waitForReady(): Promise<void> { return this.instance.ready; } forceStartup(): Promise<void> { if (!this.instance.init) { this.instance.startup(); } return this.waitForReady(); } waitForUpdatePending(): Promise<void> { return this.instance.updatePending; } waitForUpdate(): Promise<void> { return this .instance .updatePending .then(() => this.waitForReady); } emptyCaches(): void { this.caches.caches = {}; } mockUrl(url: string, response: string | MockResponse, exact: boolean = false): void { this.scope.mockFetch(url, response, exact); } unmockUrl(url: string): void { this.scope.unmockFetch(url); } unmockAll(): void { this.scope.unmockAll(); } refresh(): void { this.scope = new TestWorkerScope(this.caches, this.clients); this.startup(); } startup(): void { let workerAdapter = new TestAdapter(); let cache = new NgSwCacheImpl(this.caches, workerAdapter); let fetch = new NgSwFetch(this.scope, workerAdapter); let events = new NgSwEvents(this.scope); this.instance = this.createWorker(this.scope, workerAdapter, cache, fetch, events, this.clock); } triggerInstall(): Promise<any> { if (!this.instance) { this.startup(); } return new Promise((resolve, reject) => { this.lifecycle = this .lifecycle .then(() => { let event: TestInstallEvent = this._makeExtendableEvent(); this.scope.installListener(event); return event .done .then(resolve, reject); }); }); } triggerActivate(): Promise<any> { return new Promise((resolve, reject) => { this.lifecycle = this .lifecycle .then(() => { let event: TestActivateEvent = this._makeExtendableEvent(); this.scope.activateListener(event); return event .done .then(resolve, reject); }); }); } triggerFetch(req: MockRequest, isReload: boolean = false, clientId: string = undefined): Promise<MockResponse> { return new Promise((resolve, reject) => { this.lifecycle = this .lifecycle .then(() => { let event: TestFetchEvent = <TestFetchEvent>this._makeExtendableEvent(); event.request = req; event.isReload = isReload; event.clientId = clientId; event.respondWith = (p: Promise<any>) => p.then(resolve, reject); this.scope.fetchListener(event); }); }); } private _makeExtendableEvent(): TestExtendableEvent { let event: TestExtendableEvent; event = { waitUntil: (p: Promise<any>) => { event.done = p; }, done: Promise.resolve(null) }; return event; } } export class MockClock implements Clock { private time: number = 0; private delays: {fn: Function, triggerAt: number}[] = []; reset(): void { this.time = 0; } dateNow(): number { return this.time; } setTimeout(fn: Function, delay: number) { const triggerAt = delay + this.time; this.delays.push({fn, triggerAt}); } advance(millis: number): void { this.time += millis; this .delays .filter(delay => delay.triggerAt <= this.time) .forEach(delay => delay.fn()); this.delays = this.delays.filter(delay => delay.triggerAt > this.time); } } ```
```shell #!/bin/sh # post-image.sh for BeagleBone # 2014, Marcin Jabrzyk <marcin.jabrzyk@gmail.com> # copy the uEnv.txt to the output/images directory cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt ```
Heleen Nauwelaers (born 14 March 1996) is a Belgian basketball player for Kangoeroes Basket Mechelen and the Belgian national team. She participated at the EuroBasket Women 2017. References External links 1996 births Living people Belgian women's basketball players Olympic basketball players for Belgium Basketball players at the 2020 Summer Olympics Belgian expatriate basketball people in France Belgian expatriate basketball people in Spain People from Duffel Power forwards (basketball) Sportspeople from Antwerp Province
```javascript 'use strict'; module.exports = locate; function locate(value, fromIndex) { var asterisk = value.indexOf('*', fromIndex); var underscore = value.indexOf('_', fromIndex); if (underscore === -1) { return asterisk; } if (asterisk === -1) { return underscore; } return underscore < asterisk ? underscore : asterisk; } ```
```vue <template> <transition name="el-zoom-in-top" @after-leave="$emit('dodestroy')"> <div v-show="visible" class="el-time-range-picker el-picker-panel el-popper" :class="popperClass"> <div class="el-time-range-picker__content"> <div class="el-time-range-picker__cell"> <div class="el-time-range-picker__header">{{ t('el.datepicker.startTime') }}</div> <div :class="{ 'has-seconds': showSeconds, 'is-arrow': arrowControl }" class="el-time-range-picker__body el-time-panel__content"> <time-spinner ref="minSpinner" :show-seconds="showSeconds" :am-pm-mode="amPmMode" @change="handleMinChange" :arrow-control="arrowControl" @select-range="setMinSelectionRange" :date="minDate"> </time-spinner> </div> </div> <div class="el-time-range-picker__cell"> <div class="el-time-range-picker__header">{{ t('el.datepicker.endTime') }}</div> <div :class="{ 'has-seconds': showSeconds, 'is-arrow': arrowControl }" class="el-time-range-picker__body el-time-panel__content"> <time-spinner ref="maxSpinner" :show-seconds="showSeconds" :am-pm-mode="amPmMode" @change="handleMaxChange" :arrow-control="arrowControl" @select-range="setMaxSelectionRange" :date="maxDate"> </time-spinner> </div> </div> </div> <div class="el-time-panel__footer"> <button type="button" class="el-time-panel__btn cancel" @click="handleCancel()">{{ t('el.datepicker.cancel') }}</button> <button type="button" class="el-time-panel__btn confirm" @click="handleConfirm()" :disabled="btnDisabled">{{ t('el.datepicker.confirm') }}</button> </div> </div> </transition> </template> <script type="text/babel"> import { parseDate, limitTimeRange, modifyDate, clearMilliseconds, timeWithinRange } from 'element-ui/src/utils/date-util'; import Locale from 'element-ui/src/mixins/locale'; import TimeSpinner from '../basic/time-spinner'; const MIN_TIME = parseDate('00:00:00', 'HH:mm:ss'); const MAX_TIME = parseDate('23:59:59', 'HH:mm:ss'); const minTimeOfDay = function(date) { return modifyDate(MIN_TIME, date.getFullYear(), date.getMonth(), date.getDate()); }; const maxTimeOfDay = function(date) { return modifyDate(MAX_TIME, date.getFullYear(), date.getMonth(), date.getDate()); }; // increase time by amount of milliseconds, but within the range of day const advanceTime = function(date, amount) { return new Date(Math.min(date.getTime() + amount, maxTimeOfDay(date).getTime())); }; export default { mixins: [Locale], components: { TimeSpinner }, computed: { showSeconds() { return (this.format || '').indexOf('ss') !== -1; }, offset() { return this.showSeconds ? 11 : 8; }, spinner() { return this.selectionRange[0] < this.offset ? this.$refs.minSpinner : this.$refs.maxSpinner; }, btnDisabled() { return this.minDate.getTime() > this.maxDate.getTime(); }, amPmMode() { if ((this.format || '').indexOf('A') !== -1) return 'A'; if ((this.format || '').indexOf('a') !== -1) return 'a'; return ''; } }, data() { return { popperClass: '', minDate: new Date(), maxDate: new Date(), value: [], oldValue: [new Date(), new Date()], defaultValue: null, format: 'HH:mm:ss', visible: false, selectionRange: [0, 2], arrowControl: false }; }, watch: { value(value) { if (Array.isArray(value)) { this.minDate = new Date(value[0]); this.maxDate = new Date(value[1]); } else { if (Array.isArray(this.defaultValue)) { this.minDate = new Date(this.defaultValue[0]); this.maxDate = new Date(this.defaultValue[1]); } else if (this.defaultValue) { this.minDate = new Date(this.defaultValue); this.maxDate = advanceTime(new Date(this.defaultValue), 60 * 60 * 1000); } else { this.minDate = new Date(); this.maxDate = advanceTime(new Date(), 60 * 60 * 1000); } } }, visible(val) { if (val) { this.oldValue = this.value; this.$nextTick(() => this.$refs.minSpinner.emitSelectRange('hours')); } } }, methods: { handleClear() { this.$emit('pick', null); }, handleCancel() { this.$emit('pick', this.oldValue); }, handleMinChange(date) { this.minDate = clearMilliseconds(date); this.handleChange(); }, handleMaxChange(date) { this.maxDate = clearMilliseconds(date); this.handleChange(); }, handleChange() { if (this.isValidValue([this.minDate, this.maxDate])) { this.$refs.minSpinner.selectableRange = [[minTimeOfDay(this.minDate), this.maxDate]]; this.$refs.maxSpinner.selectableRange = [[this.minDate, maxTimeOfDay(this.maxDate)]]; this.$emit('pick', [this.minDate, this.maxDate], true); } }, setMinSelectionRange(start, end) { this.$emit('select-range', start, end, 'min'); this.selectionRange = [start, end]; }, setMaxSelectionRange(start, end) { this.$emit('select-range', start, end, 'max'); this.selectionRange = [start + this.offset, end + this.offset]; }, handleConfirm(visible = false) { const minSelectableRange = this.$refs.minSpinner.selectableRange; const maxSelectableRange = this.$refs.maxSpinner.selectableRange; this.minDate = limitTimeRange(this.minDate, minSelectableRange, this.format); this.maxDate = limitTimeRange(this.maxDate, maxSelectableRange, this.format); this.$emit('pick', [this.minDate, this.maxDate], visible); }, adjustSpinners() { this.$refs.minSpinner.adjustSpinners(); this.$refs.maxSpinner.adjustSpinners(); }, changeSelectionRange(step) { const list = this.showSeconds ? [0, 3, 6, 11, 14, 17] : [0, 3, 8, 11]; const mapping = ['hours', 'minutes'].concat(this.showSeconds ? ['seconds'] : []); const index = list.indexOf(this.selectionRange[0]); const next = (index + step + list.length) % list.length; const half = list.length / 2; if (next < half) { this.$refs.minSpinner.emitSelectRange(mapping[next]); } else { this.$refs.maxSpinner.emitSelectRange(mapping[next - half]); } }, isValidValue(date) { return Array.isArray(date) && timeWithinRange(this.minDate, this.$refs.minSpinner.selectableRange) && timeWithinRange(this.maxDate, this.$refs.maxSpinner.selectableRange); }, handleKeydown(event) { const keyCode = event.keyCode; const mapping = { 38: -1, 40: 1, 37: -1, 39: 1 }; // Left or Right if (keyCode === 37 || keyCode === 39) { const step = mapping[keyCode]; this.changeSelectionRange(step); event.preventDefault(); return; } // Up or Down if (keyCode === 38 || keyCode === 40) { const step = mapping[keyCode]; this.spinner.scrollDown(step); event.preventDefault(); return; } } } }; </script> ```
Robert "Bob" Donnorummo is the Senior Research Associate and Associate Director of the Center for Russian and East European Studies at the Center for International Studies at the University of Pittsburgh. His specialization is in Russian and Polish history, transitions, and nationalism. His recent publications have focused on the political and economic changes in Eastern Europe and the former Soviet Union. References External links Five Minutes With Bob Donnorummo, Pittsburgh Business Times, Friday, May 23, 2008 Living people University of Pittsburgh faculty Place of birth missing (living people) Year of birth missing (living people)
```yaml apiVersion: release-notes/v2 kind: feature area: traffic-management issue: - 44017 docs: [] releaseNotes: - | **Added** the ability for the user to specify the `IPFamilyPolicy` and `ipFamilies` setting in Istio Service resources either via the operator API or the helm charts. ```
Robert William Haines Moline (20 October 18898 August 1979) was an Anglican bishop. Moline was born at Sudbury, Suffolk (where his father was Rector) and educated at The King's School, Canterbury and Emmanuel College, Cambridge. Decorated for World War I service with the Rifle Brigade, he was made deacon on Trinity Sunday 1920 (30 May) and ordained priest the following Trinity Sunday (22 May 1921), both times by Arthur Winnington-Ingram, Bishop of London, at St Paul's Cathedral. He began his ministry with a curacy at St Matthew's, Bethnal Green after which he joined the Brotherhood of St Barnabas in North Queensland. He was its Warden from 1925 to 1927 and was the Archdeacon of the area until 1929. Returning to England he was Rector of North Cadbury then of Poplar. From 1940 until 1947 he was Vicar of St Paul's Knightsbridge when he became Archbishop of Perth, a position he held until his retirement in 1962. He was consecrated a bishop on 25 April 1947, by Geoffrey Fisher, Archbishop of Canterbury, at Westminster Abbey; he died at Coulsdon, Greater London. References 1889 births People from Sudbury, Suffolk People educated at The King's School, Canterbury Alumni of Emmanuel College, Cambridge British Army personnel of World War I Recipients of the Military Cross Holders of a Lambeth degree Anglican archdeacons in Australia Anglican archbishops of Perth 20th-century Anglican archbishops 1979 deaths
Dębionek is a village in the administrative district of Gmina Sadki, within Nakło County, Kuyavian-Pomeranian Voivodeship, in north-central Poland. It lies approximately north of Sadki, north-west of Nakło nad Notecią, and west of Bydgoszcz. History The area formed part of Poland since the establishment of the state in the 10th century. Dębionek was a private village of Polish nobility, administratively located in the Nakło County in the Kalisz Voivodeship in the Greater Poland Province of the Kingdom of Poland. The village was annexed by Prussia in the late-18th-century Partitions of Poland, and was also part of Germany from 1871. Following World War I, Poland regained independence and control of the village. During the German occupation of Poland (World War II), Poles from Dębionek were among the victims of massacres of Poles from the county, perpetrated by the SS and Selbstschutz in the forest near Sadki in October and November 1939 as part of the Intelligenzaktion. References Villages in Nakło County
Dagger sign is a radiologic sign seen in advanced cases of ankylosing spondylitis. The appearance of a dagger is seen in the X-ray because of ossification of the supraspinous and infraspinous ligaments. As a result, a central dense line of sclerosis, resembling a dagger can be seen in the AP radiograph of spine and pelvis. References Radiologic signs
The Student Volunteer Movement for Foreign Missions was an organization founded in 1886 that sought to recruit college and university students in the United States for missionary service abroad. It also sought to publicize and encourage the missionary enterprise in general. Arthur Tappan Pierson was the primary early leader. Origins and consolidation 1886–1891 The social and religious milieu of the late nineteenth century was favorable in nearly all ways for the birth and growth of a movement such as the Student Volunteer Movement for Foreign Missions. It was a time of dominance and prestige for Western civilization. Imperialistic expansion was condoned as an altruistic response to increased knowledge of the non-Western world. The rising nationalism of the era provided important motivation for the foreign missionary enterprise, for the success of American civilization was attributed to its Christian basis. Protestant foreign missionaries were heroes and heroines for the American public; and, as Robert Handy has noted, "Though they strove as Christians to keep the priority on spiritual religion and to be aware of the difference between faith and culture, it was not difficult in the spirit of those times to lose the distinction and to see Christian civilization as a main outcome of faith, if not its chief outcome." Historian of Christianity Kenneth Scott Latourette's comment that "one of the distinctive tokens of the Christianity and especially of the Protestantism of the United States was the fashion in which it conformed to the ethos of the country", was surely borne out in the early days of the Student Volunteer Movement. The spirit of pre-War American culture was one of expansionism and activism with an orientation toward business and enterprise. The extensive financial records and correspondence of the Volunteer Movement illustrate a congruence in style between business enterprise and the missions enterprise. American culture's shift toward scientific positivism during this era was reflected in the Student Volunteer Movement's emphasis on elaborate statistical evidence of its work. Practical aspects of the late nineteenth and early twentieth century also contributed to the rapid growth of Protestant missions. Travel to far corners of the earth was possible as never before because of improved transportation and communication. The world scene was largely free from wars. It was a time of increasing Protestant wealth; Christian tycoons under attack for their enormous profits were more than happy to contribute large sums for the support of the foreign missionary enterprise. With a perspective sharpened by knowledge of post-War events, historians of American religion have pointed to underlying conflicts and discrepancies which belied the idealistic confidence of the pre-War era. Economic turmoil, urbanization, the rise of historical criticism and evolutionary theory, the issue of liberalism versus revivalism—all these potentially disruptive elements lay beneath the assured facade of pre-War American Protestantism. Sydney Ahlstrom has attributed the foreign missions boom of the era to the churches' desire to avoid confrontation on these issues: "crusades of diverse sorts were organized, in part, it would seem, to heal or hide the disunity of the churches." Robert Handy has seen the mission enterprise as an extension of the voluntaryism of the 1830s—a means for cooperative Protestant action in society without confrontation on particular denominational differences. Handy, like Ahlstrom, has pointed to the dangers which were inherent in sublimation of theological and social controversy under activist crusades: "The possibility of a greater sense of self-criticism, which might have come out of a more open confrontation of the parties, was largely suppressed, in considerable measure because of the necessities of the missionary consensus. . This, then, was the milieu into which the Student Volunteer Movement for Foreign Missions was born in July 1886. Its emergence at a summer student conference held on the campus of the Mount Hermon School in Northfield, Massachusetts had all the drama of a theatrical play, and its story was told countless times over the decades of the Movement's existence. The drama of the scene will not be destroyed, however, by consideration of the historical antecedents of the Movement. In his work, Two Centuries of Student Christian Movements, Clarence Shedd traced the existence of student Christian societies back to the early years of the eighteenth century. By the beginning of the nineteenth century, he found, a foreign missions emphasis was prevalent in the student societies and fully three-quarters of them were called Societies of Missionary Inquiry. In 1877, a student department of YMCA was formed to direct efforts more specifically toward Christian work on college and university campuses. Luther D. Wishard, the first collegiate secretary of the YMCA, had a great personal interest in foreign missions, and his influence did much to orient the student YMCA in that direction. On the theological seminary scene, efforts were underway by 1879 to form "some permanent system of inter-seminary correspondence on the subject of missions." To this end, the Inter-Seminary Missionary Alliance was established in 1880 and had annual conventions until 1898 when its work was merged with that of the Student Volunteer Movement and intercollegiate YMCA. The first, unofficial, group of student volunteers for foreign missions was formed in 1888 at Princeton College. Five students, including Robert P. Wilder, drew up and signed a declaration of purpose which read, "We, the undersigned, declare ourselves willing and desirous, God permitting, to go to the unevangelized portions of the world." Calling themselves the Princeton Foreign Missionary Society, these students met regularly on Sunday afternoons at the home of Robert Wilder's father who was a former missionary to India and currently editor of The Missionary Review. In 1885, Luther Wishard discussed with evangelist Dwight L. Moody the possibility of holding a Bible study conference for undergraduate students, sponsored by the intercollegiate YMCA, on the grounds of the Moody-backed Mount Hermon School. Moody agreed to the proposal, and in July 1886 two hundred and fifty-one students from eighty-nine colleges and universities met together for nearly a month. Although Robert Wilder had graduated from Princeton in 1885, and was no longer an undergraduate student, Luther Wishard, knowing of Wilder's missionary interests, specifically invited him to the Northfield conference. The Northfield conference was designed to provide for Bible study, evangelistic addresses, and discussion of methods for YMCA college work. Although several of the 251 delegates had come to Northfield already committed to a missionary vocation, missions were scarcely mentioned from the platform during the first two weeks of the conference. Those interested in missions met daily for prayer, led by Robert Wilder, and spread their concern for missions by word of mouth among the delegates. Two missionary addresses were given outside of the conferences formal program, the first by Arthur Tappan Pierson and the second by William Ashmore, an American Baptist missionary to China. Twenty-five years later John R. Mott waxed eloquent in reminiscing about the impact of Dr. Ashmore's address on the students at Northfield: He knew how to get hold of college men. I will tell you the way to do it, and that is to place something before them which is tremendously difficult. He presented missions as a war of conquest and not as a mere wrecking expedition. It appealed to the strong college athletes and other fine spirits of the colleges because of its difficulty. They wanted to hear more about it. The number of interviews greatly multiplied. The underground swell of missionary enthusiasm grew daily, and at last the subject of missions was introduced on the formal platform of the conference in the form of a "meeting of ten nations". Ten men, some foreign students and others missionary sons, were found to speak of the mission needs of the lands of their birth. Those who listened were deeply impressed, and by the last day of the Northfield conference ninety-nine students had signed a paper which read: "We are willing and desirous, God permitting, to become foreign missionaries." The morning after the closing of the conference the ninety-nine volunteers met for a farewell service, and while they prayed one more came in to join their ranks. In the succeeding days it was decided to form a deputation of volunteers to visit colleges across North America in an attempt to extend the influences of the Northfield missionary uprising. The model for this deputation was the "Cambridge Seven", a group of prominent British university students who had decided to become missionaries to China following the evangelistic crusade of Dwight Moody at Cambridge University in 1884. Members of the "Cambridge Seven" traveling throughout Britain and the United States had had considerable impact on various campuses. The four volunteers chosen to form the Northfield deputation were Robert Wilder, John R. Mott, William P. Taylor, and L. Riley of Princeton, Cornell, DePauw, and Yale. The original scheme was that these four would not only speak about missions but would also form a Quartet and sing mission songs. The deputation fell apart before it got started, however, as, within the next two months, Mott, Riley and Taylor decided that it was not God's will for them to travel during the next academic year. Worried letters were exchanged between Robert Wilder and the two YMCA intercollegiate secretaries – - Luther Wishard and Charles K. Ober. It was feared that the momentum of Northfield would be lost due to the recalcitrance of the three who had pulled out. Wishard wrote to Ober on August 19, 1886 regarding Mott's withdrawal: "The tone of his letter did not suit me. He seemed disposed to see the Lord's hand in his detention without indicating a single reason aside from his parents' opposition for not going. I told him the fact of God's interest in the enterprise did not absolutely insure success as his letter would imply." At last the problem was solved as John Forman, who had not been at Northfield but was one of the original five volunteers at Princeton, to accompany Wilder on his tour of North American college and university campuses during the academic year 1886–1887. One hundred and sixty-seven institutions were visited, and by the end of the year 2200 young men and women had declared their purpose to become foreign missionaries. In later years the work of Wilder and Forman was severely criticized for its highly pressured emotionalism. The Catholic periodical America published a description of early volunteer recruitment which undoubtedly had some basis in fact: The manner in which these young People were won over is remarkably American. According to Warneck, even moral violence was used. Three, four, five meetings were held in succession, the one more emotional than the other. At some of them even the lights were extinguished, while all lay prostrate upon the floor in prayer. More and more urgent appeals were addressed to the young men, then already in a state of great excitement, until finally, one, two, then three and more, of the artfully intoxicated students volunteered. During the academic year 1887/1888 there were no deputations to campuses, as Wilder and Forman chose to commence their theological training. The earlier visits had continuing impact, however, as local bands of volunteers were formed and six hundred further declarations of purpose were received. The offices of the volunteer movement during these earliest years were the dormitory room of William Hannum, a student at Union Theological Seminary in New York City. As Wilder and others visited campuses and churches and obtained names and addresses of students who wished to volunteer, Hannum made lists of volunteers and attempted to correspond with them. The records of volunteers were kept in envelopes in boxes under Hannum's bed. As they proliferated, Hannum called upon his fellow students for help. He later wrote "I almost felt that my demands for help were a hazard to my popularity. One classmate asserted that when I got to Heaven I should be making lists of the angels." By July 1888, at YMCA student conference at Northfield, it seemed clear to interested parties that the student missionary thrust needed some organization. Much of the original zeal had subsided, and "where it still survived it displayed itself in new organizations, tending to separate from the existing religious societies of the colleges and sometimes at discordance with them. (Robert E. Speer, "The Students' Volunteer Missionary Movement".) The travels of Wilder and Forman had been completely financed by D.W. McWilliams, secretary and treasurer of the Manhattan Elevated Railways Co., but it was clear that the movement needed a broader financial base in order to continue. In the summer of 1888 the volunteer movement adopted as its official name the Student Volunteer Movement for Foreign Missions and took as its slogan or watchword "the evangelization of the world in this generation." Questions regarding the relation of the student volunteers to existing student Christian groups, particularly YMCA and YWCA, had been in the air since the fall of 1886. On September 7, 1886 Luther Wishard had written to C.K. Ober regarding the nascent volunteer movement: "It will not do to have a distinct organization for this purpose. Colleges are becoming overrun with organizations now." It was clear that the general aims of the Volunteer Movement were in agreement with those of YMCA but the SVM had a wider constituency, including women and graduate students, as well as a more specialized focus. In August 1888, when plans were made for Robert Wilder to again tour the North American campuses for the SVM, Luther Wishard expressed reservations to a fellow YMCA secretary: "Unless Wilder is perfectly willing to cooperate with our views concerning the connection of the missionary with the regular association work, I am seriously disposed to deflect his course into another channel. You know that we had little or no influence over him year before last. He talked Mission Band all year and never to my knowledge did he try to retain the work in the Association and never did he try to aid any other department of the Association work. As a result of his method the College Associations are conducting fewer missionary meetings." Wishard, Wilder, Mott, and other leaders of the volunteer movement sought a solution to this conflict of interests in early 1889 proposing that the Student Volunteer Movement be designated as the official missionary arm of YMCA and YWCA. They formed an Executive Committee of the Movement with one representative each from YMCA, the YWCA and the Inter-Seminary Missionary Alliance. A traveling secretary, a recording secretary and a corresponding secretary were appointed to carry on the daily work of the Movement. They concentrated their efforts on spreading missionary enthusiasm and bringing local and state volunteer organizations under the influence of the national Movement. The work of the early years culminated in the First International (i.e., including Canada) Convention of the Student Volunteer Movement, meeting in Cleveland in 1891. This convention, with its keynote The evangelization of the world in this generation", was the largest student conference assembled to its time. The Executive Committee reported to the convention that 6,200 volunteers in 350 institutions had been enrolled and 320 had actually sailed to foreign fields under appointment of various mission boards. At Cleveland, the relationship of the SVM to the Protestant foreign missions boards was clarified to the effect that the Movement was in no way a sending agency but rather viewed itself as a recruiting agency for the boards. Thus, by 1891, the Student Volunteer Movement was on firm footing and appeared to have found a clear space for operating in the American religious scene. Its relation to other established student Christian movements was that of an autonomous but associated agency with the clearly defined objectives of foreign mission education and recruitment. As a missionary organization, the Movement was assured a place within American Protestantism, for, as missions historian Charles Forman has written, "In the new enthusiasm following 1890 mission work was seen by its interpreters as the essential work of the church; no church could be healthy without it." Continued growth The years of steady growth following 1891 were not without their problems. In its report to the Second International Convention, held in Detroit in 1894, the Executive Committee pointed to five "problems" and five "perils" for the Student Volunteer Movement. The problems were: 1) lack of supervision and control over local volunteer bands, 2) inability to keep in touch with isolated volunteers, particularly those who had graduated but had not yet sailed, 3) difficulty in holding volunteers after they had entered theological seminary; "from the beginning to the end of the course the whole presumption in the teaching and attitude of the faculty is that the men are all going to stay home" 4) difficulties in connecting volunteers up with mission societies and 5) financial obstacles. by 1894, 630 volunteers had sailed but others had been held back because the mission societies did not have sufficient funds to send them. The Executive Committee cited two "perils" which related to the Student Volunteer Movement declaration of purpose card, a 3" by 5" card which a volunteer signed to indicate his or her intention to become a foreign missionary. In the summer of 1892, the original phrase for referring to these cards, the "volunteer pledge", had been replaced by the phrase "volunteer declaration". The wording of the card had been changed to read: "It is my purpose, if God permit, to become a foreign missionary." These changes were made to counter the criticism that the card was a binding pledge which caused the volunteer to take his life into his own control rather than relying on the guidance of the Holy Spirit. Charges of pressured emotionalism led to the Executive Committees caution that the declaration card not be used at the wrong time, in the wrong place or under wrong circumstances. The Executive Committee had included in its 1891 report statistics to counter the particular charge that students were being pressured at so young an age that they could not make competent decisions. Only 14 percent of enrolled volunteers at that time were under twenty years of age. A third peril seen by the Executive Committee in 1894 was that of exaggerating the results of the Movement. Thousands had signed the SVM declaration card but then had no continued contact with the Movement. The Executive Committee decided not to count as members of the Movement those of whom it could obtain no trace. By this policy, the official membership of the Movement was cut drastically from a supposed 6200 volunteers in 1891 to 3200 volunteers in 1894. A fourth peril concerned the growing class of volunteers classified as "hindered", those who had signed the declaration of purpose but now showed little likelihood of making it to the foreign field because of health, family or financial reasons. The fifth peril brought to the attention of the Convention by the Executive Committee was one which proved to be a nemesis for the SVM throughout its existence. There was a tendency for a breach to form between student volunteers and religiously oriented non-volunteers on college campuses. The volunteers were accused of taking on a tone of superiority and segregating themselves from the general religious associations. Nearly a decade later, Robert Speer again reported to the Executive Committee: "I have found an apparent chasm between the volunteers and the rest of the students in the institution. The Volunteer Band is a little circle cut off from the students and often without a bond of sympathy between it and the students." The Student Volunteer Movement's early method of presenting the missionary cause through "fact meetings", statistical presentations of the needs of various fields, gave way during this period to missions study classes. An Educational Department was formed in 1894, and introduced its first four courses of study: "The Historical Development of the Missionary Idea", "South America", "Medical Missions", and "China as a Mission Field." Increasing emphasis was placed on forming missionary libraries on campuses. During the early years of the Movement emphasis had been placed on recruiting young men as volunteers. The traveling secretaries were men, and they had not generally visited women's institutions. The proportion of women accessible in colleges was also much smaller than the proportion of men. By 1892, seventy percent of declared volunteers were men and thirty percent were women although in the general American missionary movement women outnumbered men. In 1895, steps were taken to rectify this situation, including increased visitation of women's colleges. No major rival movements had as yet arisen to compete for the student religious territory claimed by the SVM although potential rivals apparently existed, as mentioned in the correspondence of 1895: I do not fear anything of much account from the 'Order of the Double Cross' which originated with Dr. Dowkontt. It cannot hold its constituency together even were it to become fairly organized on any considerable scale. It will doubtless soon die out as other side movements have. At its very best it would not be of much power or a serious menace to our work. Still it is well to keep a watch on it and this we shall constantly do. Later, at a 1904 leaders' conference, a word of caution was again raised; "We must remember an undertone that the Student Volunteer Movement has a monopoly and there is talk of a new movement." The initial fervor of the Student Volunteer Movement cause had swept aside questions regarding specific theological stances but as the Movement became more deeply involved in missionary education work, criticisms inevitably arose. Educational Secretary Harlan P. Beach wrote to John R. Mott in June 1896 regarding criticisms of the Movement's course of study dealing with non-Christian religions. The views of the author, it was charged, were "tinctured with the Parliament of Religions flavor" but Beach maintained that they were not nearly so liberal as that. In the view of the Volunteer Movement leaders, the entire Protestant missions enterprise seemed to be sagging in the last years of the nineteenth century. Harlan Beach wrote to Mott in 1896: "Sometimes it seems as if the missionary spirit of the churches had received a permanent setback. The panic is far enough in the background now to have lost its power. No immediate prospect of better times is to be seen. What then can be done?" Increasingly, the Movement's task was not only to recruit missionaries but also, through educational methods, to encourage financial support of the mission boards. There were far more recruits than positions to be filled but the SVM justified its continued recruiting activity on the grounds that a wider pool for the boards to select from would result in more highly qualified missionaries. Despite these negative notes, the Student Volunteer Movement grew steadily during the pre-War era. Regular Quadrennial Conventions were held in 1898 (Cleveland), 1902 (Toronto), 1906 (Nashville), 1910 (Rochester) and 1914 (Kansas City). Convention speakers included such prominent individuals as former Secretary of State John W. Foster, Ambassador of Great Britain in the United States Henry Mortimer Durand and James Bryce. By 1910, 4338 volunteers had sailed to foreign fields. Slightly over fifty percent of all missionaries who sailed from America in the years 1906 to 1909 were student volunteers. The activities of the SVM also had spinoff effects including the formation of the Laymen's Missionary Movement in 1906 and the establishment of home mission projects such as the Yale Hope Mission. The identification of the work of the Volunteer Movement with the ethos of American society during this period was expressed clearly by the religious periodical The Outlook in its comments on the 1906 Nashville convention: The confidence which, directed to one end, gives security to commerce was at Nashville a faith in the ultimate worldwide prevalence of the influence and principles of Christ. Ambition, which drives some men into constructing great industries, was there the impulse to have a part in bringing that dominion to pass; and devotion to a purpose, which is the secret of success in commercial enterprise, was there manifest in the determination of those four thousand delegates thus expressed to make known to all the world "in this generation" the Good News. Facing a new era The First World War led to a drop in recruitment of new volunteers, but the months immediately following the armistice brought a phenomenal increase in new missionaries sent overseas. The peak year for enlistment of new volunteers was 1921. The high idealism of the war years still reigned, and mission work seemed to fit clearly with hopeful expectations for international democracy. The Interchurch World Movement symbolized the crusading idealism of the times with its aim of gathering all American benevolent and missionary societies into a grand campaign for the spread of Christianity. The devastating collapse of the Interchurch World Movement due to lack of financial support shocked American Protestant leaders into the realization that a new era had arrived. With the "return to normalcy", post-War economic disruption and an altered psychological mood, there was a rapid descent into what Robert Handy has called the "American religious depression" of 1925 to 1935. This religious depression, in force well before the great economic depression of the era, was grounded in the realization that American Protestantism could no longer identify itself with American culture and civilization. The fortunes of the Student Volunteer Movement during this period provide vivid illustration of the general trends in American Protestantism. Even while missionary enthusiasm was peaking and declaration cards were pouring in, winds of dissent were buffeting the Des Moines convention of 1919/1920. As Robert Handy has described the scene, the patriarch of the Movement, John R. Mott, opened the convention with an address similar in tone to those of previous conventions. When Sherwood Eddy took the same tack, some of the students disclosed their feelings to him frankly, saying "why do you bring us this piffle, these old shibboleths, these old worn-out phrases, why are you talking to us about the living God and the divine Christ?" Eddy thereupon threw aside his prepared second address and spoke instead in support of the League of Nations and social reform, before returning again to spiritual reform. The old Student Volunteer Movement evangelicalism no longer had the same appeal for the post-War generation of students. Proof seemed forthcoming that the surging missionary enterprise of American Protestantism's halcyon days had been in part a shield against potential controversy. When its momentum broke, several major problems arose for the Student Volunteer Movement and refused to be subdued. The overarching difficulty was that of a widening conservative/ liberal rift whose roots extending back to the founding of the Volunteer Movement. The early focus of debate had been the Movement's watchword, "the evangelization of the world in this generation." Arthur T. Pierson, who had first used the watchword at Northfield, was a renowned conservative premillenarianist. The impression became widespread that the watchword implied a rapid, simplistic, verbal presentation of Christ to the world which would fulfill the Biblical command and bring about the Second Coming. Though Pierson himself denied this meaning and other SVM leaders, such as Mott and Speer, repeatedly urged a broader interpretation which involved church planting and educational work, the watchword remained a center of controversy. For the missionary enterprise, the Fundamentalist–Modernist Controversy was framed in terms of the relative merits of an emphasis on individual evangelism and salvation or a broader, social impact on foreign culture based on the tenets of Christianity. Sherwood Eddy wrote in July 1922 to the Executive Committee:"I believe that the demand of the progressive students at Des Moines voiced the new sentiment in the colleges for a more socialized and broader presentation and conduct of our whole movement ... . The next Convention might well spend several days in making indelibly clear the Pagan racial practice both at home and abroad, the Pagan industrial situation here and in other lands, Pagan nationalism at home and abroad, and against such a background make clear the vital need for Christ's teachings and for Christ's power if the world is to be Christianized. The growing skepticism, even pessimism, about Western civilization led American students to view foreign missions and home missions as equally important parts of the same task. It seemed clear that American society was as much in need of Christianizing as many non-Western societies. At the same time non-Western countries were beginning to doubt whether anything of value could be derived from a civilization capable of producing the horrors of World War I. Rising nationalism abroad brought distrust of the motives and methods of foreign missionaries. These broad changes led to a distinct shift in Protestant mission theory. At first evangelization of the world had meant exportation of a Christian Western civilization. Now that Western civilization was questioned and viewed as itself un-Christian, there was increased appreciation for non-Western cultures and a conviction that Western missionary activity should find its role in support, not control, of the emerging indigenous churches. The new rationale for missionary activity was one which Charles Forman has called "ecumenical sharing." Liberal missiology of the between-War period, as represented by Daniel Fleming, Archibald Baker, Oscar Buck, and others, was characterized by a cultural relativism with regard to religions. This relativism was bolstered by a cynical wave of negative publicity about missions work in the public press. A culmination of these liberal views was reached in the 1932 report of the Laymen's Foreign Missions Inquiry, a Rockefeller-funded body established to review the work of the American Protestant missionary enterprise. The group, led by Harvard professor William E. Hocking, concluded that missionaries should not stress the distinct claims of Christianity over against non-Christian religions. The aim of missions should be to cooperate for social improvement. In addition, the rising student generation was demanding more say in the operations and policy of the Movement. Despite organizational changes, a student writing after the 1924 convention in Indianapolis complained about the restraining hand of the "Big Four" (Speer, Mott, Eddy and Wilder) and insisted that the new numerical majority of students in committees meant little because the adults still had the power. Another continuing problem was the relationship of the Student Volunteer Movement to YMCA and YWCA. A third problem concerned the role of "colored" students in the SVM. Decreasing financial support exacerbated these problems even before the Depression. As problems accumulated, Movement leaders called for radical changes. In a December 1923 John L. Childs questioned the value of the Movement, pointing to ways in which the missionary situation had evolved past it. He suggested elimination of the declaration card on the grounds that "modern missionary activity has become so complex that merely to decide to become a foreign missionary is a step of doubtful value in determining what one shall do with his life." The adult and student leaders of the SVM proposed and put into action remedies for many of the less fundamental problems facing the Movement. They instituted an increasingly democratic system of policy formation (as detailed in the description of Series V below). They changed the formats of the conventions to allow more student participation. They discussed numerous possibilities for relating the Movement to the general Christian associations and attempted to increase the Movement's cooperation with home missions agencies. To avert criticism of the declaration card, the secretaries of the Movement urged that the cards be distributed with great reserve and only in conjunction with explanatory material. Committees set up to deal with the problems of "colored" students recommended that "colored" institutions be added to the routes of traveling secretaries and that the missions boards be encouraged to reevaluate their restrictions on sending Negro missionaries abroad. On the financial scene, efforts were again made to establish a wider basis of financial support rather than relying so heavily on a few wealthy contributors. Conservative and liberal confusion Remedies for the philosophical questions confronting the Movement were not so easy to propose. The leadership of the Movement was clearly divided on the important issues. Special commissions established in 1925 and 1933 to evaluate the policies of the SVM came to some conclusions but did not solve any problems. It became increasingly difficult for the Movement to maintain its original blend of conservative and liberal elements in a time when conservatism and liberalism were rapidly drifting apart. Executive Committee member E. Fay Campbell wrote to General Secretary Robert Wilder in 1925 expressing the fear that the Student Volunteer Movement was tending to become a conservative general Christian movement, a rival to YMCA and YWCA on the conservative end of the spectrum. Wilder replied: "I may be wrong, but I believe that there is more danger of our Movement's losing conservative Volunteers than-liberal Volunteers. In two conservative institutions the Volunteers voted separation from the SVM on the ground that we are too liberal theologically." Wilder's concluding plea that theological controversy be avoided in Movement work reflected the failure of the SVM leadership to comprehend the inevitability of liberal /conservative conflict in the changing religious scene. The correspondence and documents of the Student Volunteer Movement from this period of its history seem to point to a three layer, conservative/liberal/conservative distribution in the hierarchy of the organization. At the highest echelons of authority men like General Secretary Wilder and his chosen successor, Jesse R. Wilson, as well as various members of the Executive Committee, held to a basically conservative outlook throughout the period. They consistently called for deeper spiritual power in the Movement and emphasized the need for personal evangelical faith. In 1933 the Commission on Student Volunteer Movement Policy submitted a report which among other things questioned the entire "reservoir system" of missionary recruitment upon which the SVM was based. An interesting exchange of correspondence between two Commission members suggests that the higher echelons deliberately chose to disregard the proposals offered by the Commission: "There is an obvious shelving of the evidence. To my mind that pamphlet is nothing short of an unintended but actual betrayal of trust to those who supplied facts and got only one man's opinion in return, or the opinion of his group. My real concern is not for the SVM but for the future of Mr. Wilson. I truly believe that unless he makes a complete turn in his methods of operation, he will be shelved by those demanding a larger vision than exists in the SVM at present." By 1935 Jesse Wilson was considering resigning from the General Secretaryship. A letter from his friend E. Fay Campbell again suggests the extent to which the Movement was wracked by conservative/liberal dissension: "Your years as SVM secretary have been terribly hard due to the spirit of the times, R.P. Wilder's ineffective leadership and the situation in the General YMCA-YWCA. It was inevitable that your name and the name of the SVM should be identified with outworn ideas. I know it wasn't true that you didn't believe in social religion, but I also know that the fight for missions has antagonized certain People. You know I have talked on this point many times in YMCA group when you were accused of being only a personal gospel person." Below the sphere of Wilder and Wilson there appears to have been a liberal contingent in the SVM which included educational secretaries and traveling secretaries as well as the most articulate and active portion of the actual student volunteers. The existence of this contingent explains the fact that many of the publications and convention themes of the period were rather far to the liberal side of the theological and missiological spectrum despite the SVM's leaders' conservative reputations. Many evidences of a liberal orientation in the Movement could be cited. Liberal missiologists Daniel Fleming and Oscar Buck were among those invited to speak at the 1924 Indianapolis convention. Fleming's book, Contacts with Non-Christian Cultures, was given a very laudatory review by SVM educational secretary Milton Stauffer in the October 1923 issue of Intercollegian. The 1930 issue of the SVM periodical Far Horizons were centered around the primarily social rather than personal gospel themes of l)How do foreign missions meet human suffering?; 2) How do foreign missions create world solidarity? and 3) How do foreign missions fill the hunger of men? The liberal drift of the Student Volunteer Movement was accentuated by the gradual withdrawal of conservative elements from the Movement. By 1925, at least three local Volunteer Bands had disassociated themselves from the national Movement, groups which E. Fay Campbell dismissed as uncooperative "controversial fundamentalists." In 1928, when the Moody Bible Institute withdrew its support of the Movement, Campbell was a bit more concerned: "We need their point of view decidedly; in fact it would be nothing short of a major tragedy if they were to pull out of the Movement now and take with them some of our more conservative groups." Campbell's cause for concern was real. Examination of the denominational preferences of sailed volunteers for the years 1910 to 1930 reveals that while in the earlier years the vast majority of the volunteers had sailed under appointment to mainline denominational boards, as the Movement progressed through the 1920s an increasing proportion of its volunteers were sailing under faith mission boards. This trend in the Student Volunteer Movement reflected a similar tendency in the general missionary movement. The Movement now found itself in danger of losing the support of the conservative core which was supplying an increasing proportion of its volunteers. Faith mission boards, so-called because of their methods of securing personnel and financial support, had long been part of the American missions scene. One of the earliest, the China Inland Mission, had been established in 1865. These mission boards, generally characterized by theological conservatism, had participated wholeheartedly in the early years of the Student Volunteer Movement, though their programs were not nearly so large as those of the mainline denominations. As the gap between conservative and liberal missions theory opened and grew in the years following World War I, the Volunteer Movement found itself increasingly unable to cater simultaneously to the interests of the faith mission boards and the more liberal denominational boards. As the 1930s approached, a growing proportion of missionaries going overseas were supported by faith mission boards. Reasons for this have been suggested by conservative missions historian Harold Lindsell: "Liberalism has never been noted for its missionary zeal. The inroads of scientist, behaviorism, and humanism may well have been the consequence of an uncertain theological note which carried no impelling conviction of the Gospel imperative for those without Christ." The theology of the faith missions, on the other hand, has had a compelling motivation for missions, asserting that no person can be saved from eternal damnation except through hearing and believing the Gospel of Jesus Christ. The expanding faith missions were not inclined toward ecumenical cooperation. They increasingly drew away from the SVM, draining off financial support as well as potential volunteers. In 1934, General Secretary Jesse Wilson reported to the SVM General Council that "Many friends, rightly or wrongly, have questioned the soundness, from an evangelical point of view, of the Movement's present position and have preferred to make their contributions to organizations concerning which no such questions have arisen." A direct rival to the Student Volunteer Movement's work was growing in the conservative wings during this period, although not emerging officially in the United States until 1940 as the InterVarsity Christian Fellowship. In 1934, a year after the conservative Intervarsity Missionary Fellowship had been formed in Britain, E. Fay Campbell characterized the Volunteer Movement's position as follows: The SV groups in the US and Canada are in close contact with certain Christian groups which are not being reached very effectively by the General Movements...(but) I do want to remind you that there is a considerable movement of extremely reactionary students springing up in many parts of the world including Great Britain. We are simply crazy if we think that this movement is not going to make real headway in our American colleges. In 1935, General Secretary Jesse Wilson and Vice Chairman of the Administrative Committee C. Darby Fulton resigned, essentially because of the increasingly liberal drift of the Student Volunteer Movement. However, while the official stance of the Movement was becoming defined as liberal, particularly because of its cooperation with YMCA, the evidence also shows that a large portion of the Movement's student constituency continued to be of a rather more conservative cast. In 1928, Jesse Wilson had reported a revival of interest in missions on the campuses he had visited. The total number of outgoing missionaries for 1929 was a twenty-four percent increase over the total number sailing in 1928 and a forty-eight percent increase over the number sailing in 1927. In 1928, there were 252 new student volunteers, while in 1929 there were 609 new volunteers. Wilson thought that the SVM could survive and thrive by falling in with the growing conservative missions revival, but the majority of the Movement leadership was reluctant to see the Movement go in that direction. They were appalled by the fact that the Movement's membership was increasingly conservative. In 1936, reporting on a tour of American campuses, SVM secretary Wilmina Rowland wrote of the following conditions: "Some students confess that they have gotten wrong impressions of the missionary enterprise through the Student Volunteers on their campus, who in such cases enlist a pious group of the more dependent-minded students....In summary, it seems to me that the SVM across the country is quite definitely conservative." Perusal of the correspondence between SVM headquarters and local Student Volunteer groups during this period confirms Rowland's analysis of the situation. While the Movement had once been a powerful force on prestigious campuses, the majority of Volunteer groups during the 1930s existed at small rural colleges and were propelled by local tradition rather than following closely the lead of the national Movement. Redefining the movement The Student Volunteer Movement's financial situation had never been without problems, but in 1932, America's "religious Depression", combined with the nation's general economic condition, had led Jesse Wilson to admit that "because of financial conditions, we are so puzzled now about our whole program that it is difficult for us to commit ourselves to anything." The dire economic straits had not lessened by the end of the decade, and it became increasingly evident that the SVM had to regroup and Redefine itself or else cease to exist. While the Student Volunteer Movement had fulfilled a clear and unchallenged role in its early years, as a student missionary education and recruitment agency, the need for such an agency was increasingly questioned in the between-War period. Wilmina Rowland reported in 1936: The influence of the SVM across the country is not heartening. Many persons who believe strongly in missions feel that its days of usefulness are over. A number of foreign mission board secretaries say that if the Movement went out of existence, it would not affect their candidate work. Many, even among the conservative leaders, think that the Movement should revamp its functions and expand its membership if it is to continue its existence. Statements of denominational missions leaders during this period confirm the conclusions of Rowland. In 1939, Methodist leader H.D. Bollinger wrote: "The SVM is a thing of the past and those who are charged with the responsibility of perpetuating it should realize this fact." At a meeting of denominational leaders in January 1940, it was suggested that since the SVM had done very little recruiting for the major boards in recent years, and did not seem likely to do more, the boards should set up their own cooperative recruiting system. The gauntlet was thrown out: "If the students want the SVM or its equivalent to continue, let them run it and finance it." The Student Volunteer Movement entered these years of profound questioning without a stable leadership. In the decade following Jesse Wilson's resignation, four men served as acting or permanent General Secretary of the Movement. The General Council, an experiment in democracy begun after the Des Moines convention, was replaced by a smaller General Committee in 1936, which was in turn replaced by a different organizational arrangement in 1941. Amidst all this confusion, the Movement strove to identify the alternatives for its future existence. Most crucial during the late 1930s and the 1940s were the issues of how the Movement would relate to 1) the general student Christian movements (YMCA,YWCA, denominational student work and union movements), 2) conservative student Christian movements such as the InterVarsity Christian Fellowship, 3) the mainline denominational missionary programs, and 4) the evolving missions theory of the period. Comparison to other Christian student movements The 1933 Commission on Student Volunteer Movement Policy, among other suggestions which were disturbing to the SVM leadership, had advocated the establishment of a Student Christian Movement in America which would unite YMCA, YWCA and SVM into one body. This idea was considerably ahead of its time in the United States, although an experimental body of this type had been established in Canada in 1988 and was already the mode of operation in Great Britain. There was, however, a growing conviction that the Volunteer Movement should cooperate very closely with the National Intercollegiate Christian Council (YMCA and YWCA), as well as with denominational bodies, while still maintaining its organizational autonomy. At a consultation at Oberlin College in 1936, measures were taken to consolidate cooperation with the National Intercollegiate Christian Council, including the radical decree that individual SVM members and regional Student Volunteer groups should incorporate all their activities into the NICC work in their locality. In 1939, the National Intercollegiate Christian Council for the first time officially provided for the inclusion of the SVM General Secretary as a member of its Administrative Committee. Friendly relations were also established between the SVM and the University Christian Mission, a cooperative organization representing denominational student work. For a portion of 1938, SVM General Secretary Paul Braisted devoted three-quarters of his time to the Campus Secretaryship of the UCM. A North American Student Conference on the World Mission of Christianity, sponsored by the NICC, the Council of Church Boards of Education, and the SVM, was held in Toronto in December 1939. At this conference it was voted to "recommend the continuance of the Student Volunteer Movement as the cooperative agency of the general Student Christian Movements for carrying forward their Christian World Mission emphasis in education and recruiting; and that, in addition, the Movement specialize in the following areas: 1) Establishment of standards of personnel for overseas service, and 2) Recruitment of personnel for missionary areas at home." The Student Volunteer Movement remained hesitant to sacrifice its autonomy at this phase of the development of student Christian work in the United States because it saw itself as a more ecumenical force than either the NICC or the denominational movements. In 1944, the United Student Christian Council came into being as a national federation of YMCA, YWCA, and denominational student movements. The federation was ecumenical on the national level, but did not express itself ecumenically on the regional or local levels. Though remaining autonomous in policy, administration, and finance, the Student Volunteer Movement agreed to serve as the Missionary Committee of the United Student Christian Council. A dilemma remained for the SVM, however, because the USCC offered no regional ecumenical structures for the Movement to work through. The SVM's role in the USCC was restricted to the national level, to planning the quadrennial student mission conventions and producing educational material. Some itinerating work was possible in the sponsorship of special missions programs on campuses. From 1945 to 1947 the SVM sought to maintain contacts on the local level through a system of "campus representatives", but this system was not successful. In 1947 a Special Commission on the Future of the Student Volunteer Movement recommended that SVM campus missionary fellowship groups be reestablished. The new missionary fellowship groups were to be informal interest groups, however, rather than official organizations. The Movement had found that students interested in missions were calling for missionary fellowship groups because their special needs were not being met by the general student movements. The dangers of separatism, which had led to the elimination of local Volunteer Bands, seemed less alarming at this point than the dangers of the SVM program losing the support of its volunteers. In 1953, the United Student Christian Council asked the Student Volunteer Movement to become its Missionary Department, as a step toward a fully ecumenical student movement in the United States. After due consideration, the Movement agreed to this next phase, and in 1954 became the Commission on World Mission of the USCC, "temporarily relinquishing its status as a member movement of the USCC." This was a functional relationship which still did not affect the financial and administrative autonomy of the Student Volunteer Movement. The theory of this relationship was acceptable to the SVM, but in practice certain difficulties emerged. At a SVM Policy Committee meeting in March 1956, it was a cause for concern that USCC member movements did not depend more on the SVM for missionary education. The Committee minutes indicate that both the Presbyterian and Methodist boards of foreign missions had active student departments of their own at this time. In 1959, the United Student Christian Council, the Student Volunteer Movement, and the Interseminary Committee merged to form the National Student Christian Federation. The Student Volunteer Movement became the Commission on World Mission of the NSCF. Its tasks remained those of promoting missionary education, fellowship, and enlistment. It continued to plan and sponsor missions conferences, including the 19th Ecumenical Student Conference on the Christian World Mission held at Athens, Ohio in 1964 with 3000 students present. The National Student Christian Federation was reconstituted as the University Christian Movement in 1966. At this time, as the Concise Dictionary of the Christian World Mission phrases it, "the Commission on World Mission was among the first to act on the formation of a movement fully representative of the churches, and agreed that the sense of mission was sufficiently embodied in the student movement for the Commission to cease a separate existence." InterVarsity Christian Fellowship The Student Volunteer Movement's decline, begun after World War I, reached its nadir in 1940. It was clear that if the Movement wanted to continue its existence it could not continue in its old role as a consensus movement acceptable to both conservatives and liberals. There was a parting of the ways, and the Movement had to choose to head in either a conservative or a liberal direction. As evidenced by the Movement's eventual entrance into the National Student Christian Federation, decisions made during this period had the effect of orienting the Movement in a more liberal direction. This orientation was not a foregone conclusion, however, for significant portions of the SVM's constituency and leadership were not in sympathy with the less evangelistic, more humanitarian drift of the "Y" and major denominational student movements during this period. The SVM's path away from a more conservative basis can be traced in its relations with the InterVarsity Christian Fellowship, a student Christian movement established in the United States in 1940. The Volunteer Movement was initially very sympathetic to the aims of the Fellowship. In February 1944 SVM General Secretary Winburn Thomas wrote to a Yale Divinity School student: "I feel very keenly that we of the SVM have much to learn from the Inter-Varsity Fellowship, and I would therefore like to see represented on our Board of Directors the intensity of feeling and dynamic purpose which characterizes many of you in that movement."(SVM Archives, Series V, with Board of Directors records, February 1944) When the IVCF was discussed at a Movement meeting in October 1944 it was noted that the IVCF tended to attract "doctrinaire and controversial fundamentalists but "it was not yet clear that the Fellowship would be dominated by these types." In 1948 it was reported to the SVM Board of Directors that many formerly strong student volunteer movements overseas had faded in importance, and missionary education tasks were often carried by InterVarsity Christian Fellowship groups in these countries. The report of the Special Commission on Future Policy at this time recommended that the new campus missionary fellowships being promoted by the SVM should strive to be on good relations with fundamentalist campus groups. Although the Volunteer Movement continued to seek rapprochement with the IVCF, appointing fraternal delegates to its conferences and encouraging reciprocal action, the Fellowship's vigorous missionary program became a direct rival to the program of the SVM. It was the leadership of the IVCF, rather than its constituency, which was most inclined to discourage IVCF-SVM cooperation. In 1949 a SVM traveling secretary reported: "In one state school I found that the Inter-Varsity group themselves were not at all aware of the fact that the Fellowship officers on the national level do not wish to cooperate with the SVM. All the students were interested and would have been willing to sign SVM declaration cards, but they had their affiliations with Inter-Varsity and it did not seem wise to interfere...." In the analysis of Vern Rossman, the Movement's fraternal delegate to the IVCF missions conference of 1951, there were four barriers to cooperation between the IVCF and the SVM: l)historical: the IVCF's reaction against the general student movements" humanitarian drift of the 1930s and its desire for institutional preservation; 2) psychological: the IVCF's taboos on smoking, dancing, and cosmetics, its particular forms of religious jargon, its inclination toward political and economic conservatism; 3) theological differences; and 4) the IVCF's lack of ecumenical spirit, "IVCF sees itself as exclusive in function ... doctrinally pure, true to the Bible ... emphasizing holiness almost to the exclusion of catholicity." Rossman reported that the IVCF conference program stressed Bible study and worship and although a few unofficial representatives of mainline denomination missions boards attended, the platform speakers generally represented conservative or faith missions boards. Despite the barriers cited by Rossman, the SVM continued to make overtures to the IVCF. In September 1953 the SVM Board of Directors sent a letter to the Associate General Secretary of the IVCF asking for greater cooperation, "realizing that we are essentially one in purpose ... ." It was proposed that the Inter-Varsity Missionary Fellowship be represented on the SVM Quadrennial Planning Committee and on the Board of Directors. The Student Volunteer Movement became increasingly involved in the ecumenical student movement, effectively eliminating the possibility of IVCF cooperation, but it continued to admire the spirit of Fellowship in IVCF groups. At a Policy Committee meeting in 1956, the Committee members still hoped that "development of SVM Fellowship groups envisaged on campuses might bring SVM closer to IVCF in understanding." Denominational missions programs While the Student Volunteer Movement was struggling to find its place in the shifting student Christian movement configuration it was also forced to reevaluate its relationship to the missions work of the major Protestant denominations. In its heyday the SVM had been viewed by the denominational boards as an invaluable tool for drumming up missions interest and providing a pool of recruits from which the boards could select their missionaries. The SVM's broad recruiting system did produce a considerable amount of "chaff" individuals who could not meet the boards' increasingly rigorous standards for trained and often specialized missionary personnel—but, in general, the boards were glad for the Movement's support and had often called upon its files to locate suitable candidates for specific openings overseas. The era of disillusionment after World War I affected denominational missions activity fully as much as it did the Student Volunteer Movement. From the peak year in 1920 when 1731 new missionaries were sent overseas there was a steady decline in the numbers sent, reaching a low point of 550 in 1927 before rising again briefly. It was inevitable that the declining denominational activity would have a direct effect on the SVM's program. As E. Fay Campbell wrote to Jesse Wilson in 1935, "It seems harder than ever to get support, chiefly because of the continued financial state of the mission boards which does not permit them to send out many missionaries. It is almost impossible to get People to see the need for our Movement in the face of the fact that the boards are calling for so few new missionaries." As mentioned earlier, faith mission boards were experiencing growth during the period of decline of the more liberal denominational boards, but the Volunteer Movement had historically drawn most of its support from the major denominations, and its liberal stances increasingly divorced its program from the faith missions' developing work. In the confusing days of the between-War period the SVM called upon board secretaries to help in evaluation of the Movement's role. Responses to a questionnaire sent out by the SVM's 1933 Commission on Policy indicated that some denominations continued to support the idea of a volunteer movement while others did not see a need for it. Representatives of the Baptist and Congregational boards expressed praise for the Movement while the Episcopal, Methodist and Presbyterian representatives were less enthusiastic. Criticism included the statements that "the Movement has dwindled until it is largely a movement of the 'hick' colleges" and "My fear is that at this present stage the idea of volunteering for foreign missions tends to divert the attention of Christian students from the essential obligation of the Christian, whether he goes to the field or stays at home." Before 1920, most denominations had not sponsored their own student fellowships and the SVM's role on campus had been clear. Partially in reaction to the liberal orientation of the "Y" movements, denominations developed their own campus student groups during the 1920s and 1930s. The effect of this trend was to obscure the SVM's role. According to a SVM report written in 1953, "In the late thirties, the pressure became so strong that SVM was forced to question its very existence, for many of those within the church student movement—which, by its very nature, was pushing SVM into a separatist movement—challenged the SVM and said that it should not operate as a separate movement." The development of the Student Volunteer Movement's relationship with denominational campus ministries has been touched upon earlier, but here can be mentioned briefly the more direct channels of contact with denominational mission boards which the SVM maintained throughout its existence. When the National Council of Churches of Christ in the United States of America emerged in 1950, the SVM's role in the new organization was as a member Unit of its Division of Foreign Missions, Division of Home Missions and Joint Commission on Missionary Education. The NCCCUSA viewed the SVM as primarily an interdenominational recruiting agency to work among students. As the organization of the National Council of Churches evolved, the SVM became the Missionary Services Department of the Joint Department of Christian Vocation of the Division of Christian Education in 1951. In 1959 when the Volunteer Movement passed from autonomous existence, it was related to the National Council of Churches as the Department of Missionary Services of the Commission on Christian Higher Education. Missions theory Various theories regarding missions activity have prevailed in American Protestantism during different historical periods. An early emphasis on evangelization for individual salvation gave way to concentration on church planting and educational work as bases for the spread of the Christian faith. With the rise of indigenous churches overseas the concept of ecumenical sharing gave continued justification for missionary activity. The Laymen's Commission of Appraisal in 1932 proposed a more radical conception of missionary work which involved not only inter-church development but also inter-faith development, drawing on increased appreciation for non-Christian religions. However, in Charles Forman's words, "the reaction of mission boards showed that the mission theory and theology of the Laymen's Commission was not that of American missions." When missions activity was no longer viewed as an exporting of Christian civilization, but rather seen as a mode of worldwide ecumenical cooperation, the distinction between foreign missions and home missions became blurred. Throughout the post-World War I era, the Student Volunteer Movement constantly had to justify its continuing specific concentration on foreign missions. The "revolutionaries" of Des Moines in 1920 questioned the appropriateness of sending missionaries abroad when conditions in American were so much in need of Christianization. In a meeting in February 1920, the Standing Committee discussed at length the pros and cons of Student Volunteer Movement involvement in home missions work, but decided to continue the status quo focus on recruiting for foreign fields only. In 1922, a new home missions movement, the Student Fellowship for Christian Life Service, approached the SVM seeking cooperation; for over a year it used a room in the Movement offices as its headquarters. It was not until 1945 that the Student Volunteer Movement went beyond cooperation with home missions programs to actual participation in recruiting and educational activity for home fields. It changed its name from the Student Volunteer Movement for Foreign Missions to the Student Volunteer Movement for Christian Missions. The announcement of this change noted that: official action recognizes that the artificial separation of home and foreign missions is now passe', since the work of the Church, even as the world itself, is one. Whether the distinction between the pioneer, frontier worker on the one hand, and the supporting work on the other, can be or should be maintained for recruitment purposes remains to be seen. The declaration card of the Movement, which formerly had offered only one option, commitment to foreign missions, was revised to offer three alternatives: I. It is my purpose to become a Christian missionary ... at home or ... abroad. II. I propose to seek further guidance regarding the missionary vocation. III. I propose to support the world mission of the Church through my prayers, gifts and daily work. This format for the declaration card came under attack from two different angles. Some thought that the Movement was making a mistake in relinquishing its specific focus on foreign missions education and recruitment. They thought that the Movement would become too diffuse and would lose any effectiveness which it still had. At the opposite end of the spectrum, others questioned the entire idea of a declaration card, wondering why the choice of a missionary vocation should be singled out for specific attention, since the Church's mission to the world could be carried out through nearly all vocations. In 1949 a Committee to Study the Declaration Card was established and it proposed the following format for the card: ... It is my purpose to use my talents and resources to serve the Christian world mission, and in the light of its claims prayerfully to choose my life work. ... Further, it is my purpose, God willing, to be a Christian missionary ... at home ... abroad. More than the phrasing of words on a 3" by 5" card was at-stake in discussion of the Student Volunteer Movement declaration of purpose. There was a question of missions theory—how was missionary activity to be distinguished from the normal interrelationships of Christian churches throughout the world? There was the related issue of the membership basis of the SVM—should it be restricted to individuals who had made a specifically missionary vocational commitment or should a wider base of students, those who were supportive of the Church's world mission, be considered members of the Movement? At a meeting in March 1952, Policy Committee members expressed divergent opinions. E. Fay Campbell felt that "The regular membership of the SVM should be made up of students ... who have purposed to offer themselves to Missions Boards for service." Vern Rossman called the first statement on the declaration card "highly problematic." "If we say that every Christian student should be centrally missionary, then every student 'should be' an SVMer." But, in another members opinion, "If one of the prime duties of the Christian community is to point out that almost all vocations can be 'Christian,' then surely the SVM is in a sense defeating the purpose of the Church by creating the feeling that service under a mission board is necessarily more important in the world mission than other vocations." As the 1950s progressed and the Student Volunteer Movement became increasingly involved in ecumenical ventures it became clear that the Movement would have a distinct contribution to make to the student Christian scene only if it focused its concerns quite specifically on education and recruitment for world missions service under established mission boards and agencies. The distinction implied by this focus, between the Church's general mission in the world and its "missions", was not agreeable to all, but without such a distinction the need for a Student Volunteer type movement became much less apparent. Those striving to maintain the SVM's distinctiveness felt that the Movement still had a role to play in concentrating on the "frontiers" of the Church mission to the world. There were still many places around the world where strong indigenous churches had not been established and the SVM could help to provide Christian messengers to those areas. Furthermore' it was felt that even the stronger indigenous churches overseas would increasingly welcome the assistance of Western missionaries. As a missionary to China had written to John Mott, "Members of the younger Christian churches have actually taken over the responsibility for determining the future character of the Christian movement and, having worked at this job for a period of years, they now realized its complexity and the need for comradeship." Another "frontier" which the SVM Newsletter suggested for the Student Volunteer Movement's attention in 1957, was confrontation with atheistic communism. In the years after the Student Volunteer Movement's merger into the National Student Christian Federation, a Committee for the Fellowship of Student Volunteers produced a monthly newsletter. A large proportion of the articles in these newsletters were related to missions theory, indicating the realization that until these questions of theory were resolved the role of student volunteers could not be clarified. In the May 1960 newsletter there was a call for an "adequate theology of mission". The problems were evident. "We used to feel that the Church has missions and thought of missions as something which was done for the other People at some distant place. Such an understanding was based on the assumption that Western Christians live in a Christian society and the Christian missionary task was to take our faith and culture to those areas where it was not known." The 1966 dissolution of the Student Volunteer Movement in its guise as the National Student Christian Federation's Commission on World Mission was the logical outcome of an increasingly prevalent theory of mission in liberal American Protestantism, one which stressed the worldwide ecumenical cooperation of the Church rather than focusing on frontier missions of the Western Church to the non-Western world. After World War II As indicated by the foregoing, a considerable portion of the Student Volunteer Movement's energy in the era after World War II continued to be taken up in attempts to define its relationships to other student Christian movements and to general Protestant mission mechanics and theory. Despite the uncertainties involved in these evolving relationships, the Movement was able to bounce back from its 1940 nadir and to continue with a positive program for nearly two more decades. Sydney Ahlstrom, among other historians of American religion, has described a post World War II revival in American Christianity which extended nearly to the end of the 1950s. Amidst social trends of urbanization and suburbanization, geographical mobility, and economic affluence, problems of adjustment and anxieties over status and 'acceptance' were ever-present. Churches were obviously the sort of family institution that the social situation required." . The Cold War atmosphere of the era was ripe for the resurgence of a religious faith which could promise peace of mind. Fundamentalist theology which had fallen into disrepute was revived in an intellectually updated form. During the 1920s and 1930s Student Volunteer Movement leaders had frequently pointed out that the decline of the Movement was directly related to a decline in general interest in religion on American campuses. Students were not likely to commit themselves to missionary work when they were not wholly committed to the Christian faith. A resurgence of more evangelical religion during and after World War II allowed the SVM to find a broader base for its programs. The Board of Directors in 1944 concluded that "The Movement needs to make increasingly clear its commitment to a full evangelical missionary message and program ... Not alone in emphasis on current social improvement, but also in and through such service to a message that is in the fullest sense redemptive and eternal, will be its strength." In 1946, the Student Volunteer Movement's listing of missionary openings, Christian Horizons, included nearly one thousand overseas vacancies. A publicity release for the Movement claimed that "faced today with the need for hundreds of new workers, both large and small boards look to the Student Volunteer Movement for assistance, both in supplying candidates to meet immediate needs, and in conducting a program of education and recruitment which will guarantee a steady stream of volunteers from which the boards can select personnel." At a meeting of the SVM Board of Directors in April 1948, it was reported that the Movement's finances were in good condition and there were many evidences of increased missionary interest on the campuses. The Movement budget for 1951/1952 was $60,400, more than $10,000 above the budget of the previous year and six times the budget of 1941/1942. During the academic year 1952/1953 a travel staff of twenty men and women from five denominations visited over three hundred colleges in forty-four states on behalf of the Movement. The resurgence sparked by increased religious interest and the nation's improving economic condition appears to have peaked for the SVM towards the middle of the 1950s, or at least to have taken a different form as the Movement was drawn into ecumenical ventures and faced with theoretical questions about its recruiting program. Twenty-one members of the Movement travel staff visited three hundred and fifty campuses during the academic year 1955/1956. At the same time, however, there were only five hundred declared student volunteers on American undergraduate campuses. The SVM budget for 1956/1957 was reduced to $50,000. Programs of missionary education and support of student volunteers were carried on after the formation of the National Student Christian Federation by the Commission on World Mission and its Committee for the Fellowship of Student Volunteers. In May 1962 it was reported that the Committee's newsletter was sent to over three thousand volunteers or prospective volunteers. The Commissions program included staff visits to campuses, local Fellowship gatherings of volunteers, Week-End Conversations on Mission, personal encouragement and counseling, Frontier Seminars, the Quadrennial Conference, ecumenical summer service projects, and so forth. Leaders and participants Partial list of those not mentioned in the article. William Scott Ament Walter Judd Kenneth Scott Latourette H. B. Sharman Charles Studd Frederick Howard Taylor Elwood G. Tewksbury Martin Farquhar Tupper See also Young People's Missionary Movement Notes Further reading Michael Parker, The Kingdom of Character: The Student Volunteer Movement for Foreign Missions, 1886–1926 (Lanham, MD: American Society of Missiology : University Press of America, 1998; Pasadena, CA: William Carey Library Publishers, 2007) . External links Yale University Divinity Library Christian missionary societies Religious organizations established in 1886 Christian missions Evangelical missionary societies YMCA
Foweles in the frith is a short, five-line Middle English poem. It is found in a manuscript from the thirteenth century (Bodley 21713) containing mostly legal writings, and is accompanied by a musical score for two voices. The poem, which features both rhyme and alliteration, is one of a relatively small number of lyric poems from that century, and the only one with music. It is not entirely clear whether the poem is complete, or just the refrain of a longer poem: there are no other poems in the manuscript that provide any context. While it may well be a secular love song, there is no consensus on whether it is secular or religious. Text Interpretations According to Thomas Moser, most critics until the 1960s read the poem as a secular love poem, reading the last two lines as "I walk with much sorrow because of a woman who is the best of bone and blood". But then more allegorical readings were proposed, specifically by Edmund Reiss, who provided a religious reading for the poem, with a focus on the word "beste" in the last line: an Old Testament-inspired meaning sees "beste" as "beast", meaning that humankind after the Fall of man suffers "sulch sorw", and a New Testament-reading pointing to Christ as the "best of living beings". Reiss's religious interpretation was convincing to James I. Wimsatt, but not to John Huber or to R. T. Davies, who found it unbelievable. Moser sees the beast/best reference as a pun. In Middle English, both could be written as "best": Modern English "best" was earlier written as "betst" but had lost the medial -t- by the thirteenth century; Modern English "beast" was [beste] in Middle English, pronounced /best/ with a long vowel, but scribes did not usually mark vowel length. In other words, both words could easily be spelled identical in the thirteenth century. Reiss saw another dual meaning in the word "wod", in the third line, usually read as the Middle English word for "mad". It also, Reiss argues, continues the list of natural environments listed in the first two lines--"frith" ("forest, game preserve") and "flod" ("flood"). Reiss sees that series also in the first nouns of these three lines: "fowles", "fisses", and "I". "Wod", however, in its double meaning, indicates man's estrangement from nature after the Fall. R. T. Davies was not impressed with Reiss's reading of "wod". Thomas Moser details the various Old and New Testament readings at length. The Old Testament reading, which is mostly concerned with Creation and fallen man's role in it, hinges on the multiple uses of "fish and fowl" in scripture (the words do not occur together in the New Testament), which typically indicate "the totality of the created world". A New Testament reading can take the imagery of spring, a frequent occurrence in Middle English religious poetry, as a reference to Easter. In that reading, which has plenty of complications, the "foweles" might be a reference to Christ's words in the "Foxes have holes" passage of Matthew 8:18–20. In the end, however, Moser contends that nothing should stand in the way of a purely secular reading: the "nature opening" is conventional for love poems, as is the reference to "blood and bone" in love poetry, which Moser points out occurs also in "The Fair Maid of Ribblesdale" and in "Blow Northern Wind" (both in the Harley Lyrics). Stephanie Thumpsen Lundeen argues that the poem resembles "The Clerk and the Girl", a secular love poem from the Harley Lyrics, where the speaker, in love and miserable, also fears going mad. Musical score and performances The poem is one of eight medieval lyrics that comprise Benjamin Britten's Sacred and Profane (1975). References Middle English poems
```rust // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. //! A module for representing a set of breaks, typically used for //! storing the result of line breaking. use crate::interval::Interval; use crate::tree::{DefaultMetric, Leaf, Metric, Node, NodeInfo, TreeBuilder}; use std::cmp::min; use std::mem; /// A set of indexes. A motivating use is storing line breaks. pub type Breaks = Node<BreaksInfo>; const MIN_LEAF: usize = 32; const MAX_LEAF: usize = 64; // Here the base units are arbitrary, but most commonly match the base units // of the rope storing the underlying string. #[derive(Clone, Debug, Default, PartialEq, Eq)] pub struct BreaksLeaf { /// Length, in base units. len: usize, /// Indexes, represent as offsets from the start of the leaf. data: Vec<usize>, } /// The number of breaks. #[derive(Clone, Debug)] pub struct BreaksInfo(usize); impl Leaf for BreaksLeaf { fn len(&self) -> usize { self.len } fn is_ok_child(&self) -> bool { self.data.len() >= MIN_LEAF } fn push_maybe_split(&mut self, other: &BreaksLeaf, iv: Interval) -> Option<BreaksLeaf> { //eprintln!("push_maybe_split {:?} {:?} {}", self, other, iv); let (start, end) = iv.start_end(); for &v in &other.data { if start < v && v <= end { self.data.push(v - start + self.len); } } // the min with other.len() shouldn't be needed self.len += min(end, other.len()) - start; if self.data.len() <= MAX_LEAF { None } else { let splitpoint = self.data.len() / 2; // number of breaks let splitpoint_units = self.data[splitpoint - 1]; let mut new = self.data.split_off(splitpoint); for x in &mut new { *x -= splitpoint_units; } let new_len = self.len - splitpoint_units; self.len = splitpoint_units; Some(BreaksLeaf { len: new_len, data: new }) } } } impl NodeInfo for BreaksInfo { type L = BreaksLeaf; fn accumulate(&mut self, other: &Self) { self.0 += other.0; } fn compute_info(l: &BreaksLeaf) -> BreaksInfo { BreaksInfo(l.data.len()) } } impl DefaultMetric for BreaksInfo { type DefaultMetric = BreaksBaseMetric; } impl BreaksLeaf { /// Exposed for testing. #[doc(hidden)] pub fn get_data_cloned(&self) -> Vec<usize> { self.data.clone() } } #[derive(Copy, Clone)] pub struct BreaksMetric(()); impl Metric<BreaksInfo> for BreaksMetric { fn measure(info: &BreaksInfo, _: usize) -> usize { info.0 } fn to_base_units(l: &BreaksLeaf, in_measured_units: usize) -> usize { if in_measured_units > l.data.len() { l.len + 1 } else if in_measured_units == 0 { 0 } else { l.data[in_measured_units - 1] } } fn from_base_units(l: &BreaksLeaf, in_base_units: usize) -> usize { match l.data.binary_search(&in_base_units) { Ok(n) => n + 1, Err(n) => n, } } fn is_boundary(l: &BreaksLeaf, offset: usize) -> bool { l.data.binary_search(&offset).is_ok() } fn prev(l: &BreaksLeaf, offset: usize) -> Option<usize> { for i in 0..l.data.len() { if offset <= l.data[i] { if i == 0 { return None; } else { return Some(l.data[i - 1]); } } } l.data.last().cloned() } fn next(l: &BreaksLeaf, offset: usize) -> Option<usize> { let n = match l.data.binary_search(&offset) { Ok(n) => n + 1, Err(n) => n, }; if n == l.data.len() { None } else { Some(l.data[n]) } } fn can_fragment() -> bool { true } } #[derive(Copy, Clone)] pub struct BreaksBaseMetric(()); impl Metric<BreaksInfo> for BreaksBaseMetric { fn measure(_: &BreaksInfo, len: usize) -> usize { len } fn to_base_units(_: &BreaksLeaf, in_measured_units: usize) -> usize { in_measured_units } fn from_base_units(_: &BreaksLeaf, in_base_units: usize) -> usize { in_base_units } fn is_boundary(l: &BreaksLeaf, offset: usize) -> bool { BreaksMetric::is_boundary(l, offset) } fn prev(l: &BreaksLeaf, offset: usize) -> Option<usize> { BreaksMetric::prev(l, offset) } fn next(l: &BreaksLeaf, offset: usize) -> Option<usize> { BreaksMetric::next(l, offset) } fn can_fragment() -> bool { true } } // Additional functions specific to breaks impl Breaks { // a length with no break, useful in edit operations; for // other use cases, use the builder. pub fn new_no_break(len: usize) -> Breaks { let leaf = BreaksLeaf { len, data: vec![] }; Node::from_leaf(leaf) } } pub struct BreakBuilder { b: TreeBuilder<BreaksInfo>, leaf: BreaksLeaf, } impl Default for BreakBuilder { fn default() -> BreakBuilder { BreakBuilder { b: TreeBuilder::new(), leaf: BreaksLeaf::default() } } } impl BreakBuilder { pub fn new() -> BreakBuilder { BreakBuilder::default() } pub fn add_break(&mut self, len: usize) { if self.leaf.data.len() == MAX_LEAF { let leaf = mem::take(&mut self.leaf); self.b.push(Node::from_leaf(leaf)); } self.leaf.len += len; self.leaf.data.push(self.leaf.len); } pub fn add_no_break(&mut self, len: usize) { self.leaf.len += len; } pub fn build(mut self) -> Breaks { self.b.push(Node::from_leaf(self.leaf)); self.b.build() } } #[cfg(test)] mod tests { use crate::breaks::{BreakBuilder, BreaksInfo, BreaksLeaf, BreaksMetric}; use crate::interval::Interval; use crate::tree::{Cursor, Node}; fn gen(n: usize) -> Node<BreaksInfo> { let mut node = Node::default(); let mut b = BreakBuilder::new(); b.add_break(10); let testnode = b.build(); if n == 1 { return testnode; } for _ in 0..n { let len = node.len(); let empty_interval_at_end = Interval::new(len, len); node.edit(empty_interval_at_end, testnode.clone()); } node } #[test] fn empty() { let n = gen(0); assert_eq!(0, n.len()); } #[test] fn fromleaf() { let testnode = gen(1); assert_eq!(10, testnode.len()); } #[test] fn one() { let testleaf = BreaksLeaf { len: 10, data: vec![10] }; let testnode = Node::<BreaksInfo>::from_leaf(testleaf.clone()); assert_eq!(10, testnode.len()); let mut c = Cursor::new(&testnode, 0); assert_eq!(c.get_leaf().unwrap().0, &testleaf); assert_eq!(10, c.next::<BreaksMetric>().unwrap()); assert!(c.next::<BreaksMetric>().is_none()); c.set(0); assert!(!c.is_boundary::<BreaksMetric>()); c.set(1); assert!(!c.is_boundary::<BreaksMetric>()); c.set(10); assert!(c.is_boundary::<BreaksMetric>()); assert!(c.prev::<BreaksMetric>().is_none()); } #[test] fn concat() { let left = gen(1); let right = gen(1); let node = Node::concat(left, right); assert_eq!(node.len(), 20); let mut c = Cursor::new(&node, 0); assert_eq!(10, c.next::<BreaksMetric>().unwrap()); assert_eq!(20, c.next::<BreaksMetric>().unwrap()); assert!(c.next::<BreaksMetric>().is_none()); } #[test] fn larger() { let node = gen(100); assert_eq!(node.len(), 1000); } #[test] fn default_metric_test() { use super::BreaksBaseMetric; let breaks = gen(10); assert_eq!( breaks.convert_metrics::<BreaksBaseMetric, BreaksMetric>(5), breaks.count::<BreaksMetric>(5) ); assert_eq!( breaks.convert_metrics::<BreaksMetric, BreaksBaseMetric>(7), breaks.count_base_units::<BreaksMetric>(7) ); } } ```
Little Bill is an American animated educational television series created by Bill Cosby. It is based on the Little Bill book series, written by Cosby with illustrations by Varnette P. Honeywood. Cosby also composed some of the theme music, appeared in live-action in the show's intro sequence, and voiced the recurring character of Captain Brainstorm. It was Cosby's second animated series, after Fat Albert and the Cosby Kids. The show's main character, Little Bill, is a fictionalized younger version of Cosby; the show's executive producer, Janice Burgess, described the character as "little Bill Cosby." Each episode features Little Bill learning a lesson while interacting with his large family and group of friends. The show was developed with a panel of educational consultants. The show is set in Philadelphia, Cosby's hometown. Little Bill's personality was inspired by both Cosby himself and his son, Ennis Cosby; Little Bill's catchphrase "Hello, friend!" was originally a greeting that Ennis used. The series originally ran on Nickelodeon from November 28, 1999 to February 6, 2004, and reruns continued until December 22, 2006. In September 2007, Nickelodeon announced that Little Bill would permanently move to the Noggin channel. It premiered on Noggin on September 10, 2007. Reruns continued to air until 2014, when the show was pulled from the air. Plot Set in Philadelphia, the show centers on Little Bill Glover as he explores everyday life through his imagination. Little Bill lives with his parents, his great grandmother Alice (nicknamed Alice the Great), his older sister April, and brother Bobby. Each episode includes a daydreaming sequence where Little Bill imagines a fantastical scenario. At the end of every show, he breaks the fourth wall by summarizing his day to the audience by talking to the audience or Elephant, his hamster, before going to bed, and a family member offscreen asks, "Little Bill, who are you talking to?" causing Little Bill to laugh. History Little Bill was first announced in 1997. It aired on Nickelodeon from November 28, 1999 to February 6, 2004. It aired reruns until December 22, 2006. The series also aired on Nick on CBS from September 16, 2000 until September 9, 2006. In September 2007, Little Bill was moved to the Noggin channel, which advertised it as a "new series". Noggin aired five "premiere episodes" from September 10 to September 15, 2007. Reruns of Little Bill were shown on Noggin and the Nick Jr. Channel until February 21, 2014, when Nickelodeon removed the show from its services. In addition to pulling reruns, Little Bill was removed from NickJr.com in 2014. Commenting on the show's removal from television, Distractify wrote: "Perhaps Little Bill should be left in the past." In 2017, the American Library Association said that the Little Bill series was one of the books most often targeted for removal in school libraries due to the sexual assault allegations against Bill Cosby. In December 2014, TV Guide noted that Little Bill episodes had become difficult to find after the allegations, since the show was no longer aired on television. Episodes Characters Glover household William "Little Bill" Glover Jr. (voiced by Xavier Pritchett) is an inquisitive 5-year-old boy. He has a knack for storytelling and often finds himself daydreaming his own fantasy words. The show's executive producer, Janice Burgess, described Little Bill as "in a way, little Bill Cosby." Little Bill's catchphrase "Hello, friend!" was originally a greeting used by Bill Cosby's late son, Ennis Cosby. William "Big Bill" Glover (voiced by Gregory Hines) is the city's building inspector who is Little Bill, Bobby, and April's father, and Brenda's husband. He is nicknamed Big Bill since both he and his son are named Bill. In an interview, Bill Cosby said that "I am Big Bill." Brenda Glover (née Kendall) (voiced by Phylicia Rashad) is Little Bill, Bobby, and April's mother, and Big Bill's wife. Brenda's voice actress, Phylicia Rashad, had previously played Clair Huxtable (wife to Cosby's character, Cliff Huxtable) on The Cosby Show. April Glover (voiced by Monique Beasley) is the oldest and only daughter of Brenda and Big Bill. She tends to be competitive and plays basketball. Robert "Bobby" Glover (voiced by Devon Malik Beckford in Season 1 and Tyler James Williams in Season 2) is the middle child, and oldest son of the Glover children. He is a Boy Scout and plays the violin. Alice the Great (voiced by Ruby Dee and Anika Walker in a flashback in "Good Ol' Lightning") is the great-grandmother of Little Bill, Bobby, April, and Jamal. Alice is also Brenda and Deborah's grandmother. She is in her seventies and lives with the family. Elephant is the family pet, a small, light yellow hamster who lives in Little Bill's bedroom. He often rolls around the house in a plastic hamster ball. He was named after Little Bill's favorite animal. Friends and neighbors Captain Brainstorm (voiced by Bill Cosby) is Little Bill's favorite superhero. He is an astronaut with his own television show, Space Explorers. He has an orange rocket and an orange space suit. Miss Murray (voiced by Ayo Haynes in Season 1 and Melanie Nicholls-King in Season 2) is Little Bill's cheerful kindergarten teacher. She wears purple glasses. She marries Dr. Clinkscales in "Miss Murray's Wedding". Fuchsia Glover (voiced by Nakia Williams in Season 1 and Kianna Underwood in Season 2) is the paternal cousin of Little Bill, Bobby, and April. Her mother is named Vanessa and a father named Al. She is known for always speaking her mind. Andrew Mulligan (voiced by Zach Tyler Eisen) is an Irish-American boy who is Little Bill's best friend. He lives two houses away from Little Bill. He has an active imagination like Little Bill, and they often join each other in fantasy sequences. He has a dog named Farfy. Kiku Wong (voiced by Eunice Cho) is an Asian-American friend of Little Bill's. She likes being creative, putting on puppet shows, and making artwork. She is very ambitious and wants to be president when she grows up. Alan "Al" Glover (voiced by Michael Green) is Big Bill's brother, Fuschia's father, Vanessa's husband, and Little Bill, Bobby, and April's uncle. He runs a convenience store in town. Monty (voiced by Cole Hawkins) is the grandson of Alice the Great's friend Emmaline. He uses a wheelchair to get around, and he was born with cerebral palsy. Later in the series, he joins Little Bill's class. Dorado (voiced by Vincent Canales) is a friend of Little Bill's who is Puerto Rican. Michael Riley (voiced by Muhammad Cunningham) is a classmate of Little Bill's who moves to the neighborhood from Miami, Florida. At first he’s somewhat of a bully by playing ranking with Little Bill, but he reforms and befriends him in the end. Mrs. Shapiro (voiced by Madeline Kahn in her first appearance, and later by Kathy Najimy after Kahn's death) is Little Bill's neighbor. Dr. Winthrop Clinkscales (voiced by Christopher Grossett) is Mrs. Murray's husband, whom she married in "Miss Murray's Wedding". Mr. Miguel Rojas (voiced by Victor Argo) is an elderly Mexican-American man who speaks English and Spanish. Mr. Clark Terry (voiced by Clark Terry) is Alice the Great and Little Bill's new friend. He was voiced by Clark Terry, whom he is named and modeled after. Baby Jamal Welsh is Little Bill's maternal baby cousin, son of Deborah (Brenda's sister) and Gary. Percy Mulch (voiced by Doug E. Doug) is the owner of a pet shop. Mr. Williams (voiced by Mike Mearian) is a music store owner. Aunt Deborah Kendall (voiced by Grace Garland) is Brenda's younger sister, Uncle Gary's wife (voiced by Weston Clark) and Baby Jamal's mother. Related media Several episodes were released to VHS and DVD by Paramount Home Media Distribution. A computer game, Little Bill Thinks Big, was released on September 29, 2003 for Windows XP and Macintosh. Main video releases Episodes on Nick Jr. compilation DVDs Awards Emmy Awards 2003 – Outstanding Performer In An Animated Program – Gregory Hines 2004 – Outstanding Children's Animated Program Peabody Award 2001 Footnotes References External links 1990s American animated television series 1990s American black cartoons 1990s American black television series 1999 American television series debuts 2000s American animated television series 2000s American black cartoons 2000s American black television series 2004 American television series endings American children's animated fantasy television series American television series with live action and animation English-language television shows Nickelodeon original programming Nick Jr. original programming American television shows based on children's books Peabody Award-winning television programs Daytime Emmy Award for Outstanding Animated Program winners Television series created by Bill Cosby American preschool education television series Animated television series about children Animated television series about families Animation based on real people Television shows set in Pennsylvania 1990s Nickelodeon original programming 2000s Nickelodeon original programming Television shows set in Philadelphia
Flamank is a surname. Notable people with the surname include: George Flamank (1904–1987), American football and basketball player and coach Gilbert Flamank ( 1508–1573), English politician John Flamank (by 1486–1535/41), English politician Thomas Flamank (died 1497), lawyer & leader of the Cornish Rebellion
```vue <template> <div> <h2></h2> <Explain /> <BodyCellStyle /> <BodyRowStyle /> <HeaderCellStyle /> <HeaderRowStyle /> <FooterRowStyle /> <API title="API" anchor="API" desc="cellStyleOption " /> </div> </template> <script> import Explain from "./explain.md"; import BodyCellStyle from "./body-cell-style.md"; import BodyRowStyle from "./body-row-style.md"; import HeaderCellStyle from "./header-cell-style.md"; import HeaderRowStyle from "./header-row-style.md"; import FooterRowStyle from "../footer-summary/cell-style.md"; import API from "../api/cell-style-option-props"; export default { name: "custom-cell", components: { Explain, BodyCellStyle, BodyRowStyle, HeaderCellStyle, HeaderRowStyle, FooterRowStyle, API, }, }; </script> ```
Le Journal Hebdomadaire (French for The Weekly Journal; often shortened to Le Journal Hebdo) was a French-language, Moroccan weekly magazine, published between 1997 and 2010. It was cofounded by Aboubakr Jamaï, who also co-founded its Arabic-language counterpart, Assahifa Al Ousbouia. Background An MBA by training, at age 29 Jamaï moved from finance into financial journalism, helping to found the Casablanca-based Le Journal. The magazine was first published on 17 November 1997. As a model, the paper's creators used the Spanish paper El País because of the way it had started as a weekly paper under Francisco Franco's rule before growing into a media conglomerate. The journal's circulation was initially small, with the first issue selling only 3,000 copies, primarily to a business audience. However, the journal soon grew by word-of-mouth, attracting a non-business audience and attracting more advertisers. In 1998, Jamaï co-founded an Arabic-language sister publication, Assahifa al-Ousbouiya, designed to appeal to a broader audience. Conflict with Mohammed VI government On 23 July 1999, Hassan II died, and his son Mohammed VI succeeded him to the throne, raising hopes for democratic reform. Le Journal soon became critical of Mohamed's reign, however, particularly his slowness in transforming Morocco into a constitutional democracy. As a result of the critical editorials printed by the paper, Moroccan printers soon refused to do business with it, forcing Jamaï to print in France and pay enormous transportation costs. In April 2000, Le Journal "crossed a political redline" by printing an interview with Muhammad Abdelaziz, leader of the Saharawi separatist movement Polisario Front that was fighting for the independence of Western Sahara from Morocco. The Moroccan Ministry of Communications responded by banning both Le Journal and Assahifa Al Ousbouia, though the latter had not run the interview in question. A Ministry spokesperson stated that the reasons for the papers' banning were "excesses in [their] editorial line concerning the question of Morocco’s territorial integrity" and "collusion with foreign interests". However, following an outcry from foreign governments and NGOs, the papers were allowed to re-open. The conflict with the government won Jamaï's papers publicity and popular credibility, and advertising revenues increased substantially for the following months. In November, however, the paper reprinted a letter implicating that a number of socialist politicians, including then-Prime Minister Abderrahmane Youssoufi, had participated in a 1972 plot to assassinate Hassan II. The papers were again banned. At the January 2001 Congress of the International Federation for Human Rights in Casablanca, Jamaï took the podium to announce to the applause of the delegates that he would go on a hunger strike until his papers were unbanned. Following another round of international protest—including a question about the banning from German Chancellor Gerhard Schroeder on the occasion of Youssoufi's state visit to Germany—the government relented, and the papers were once more allowed to print. In 2006, in its reporting on the Jyllands-Posten Muhammad cartoons controversy—in which a Danish newspaper published several cartoons depicting the Islamic prophet Muhammad, triggering widespread anger in the Muslim world--Le Journal published a blacked-out version of one of the cartoons. The newspaper's offices were then the target of a series of protests, which Jamaï alleges were orchestrated by the national government. Binaissa defamation suit At the time of the papers' first banning in April 2000, Foreign Minister Mohamed Benaissa filed a defamation lawsuit against Jamaï and Ali Amar, another editor of Le Journal, for a 1999 series of articles alleging that the minister had profited from the sale of an official residence during his tenure as Ambassador to the United States. Jamaï later speculated that Benaissa "was waiting for a signal" to attack the papers and that he saw his opportunity following the announcement of the ban. In 2001, the pair were found guilty, and sentenced to pay damages of 2 million dirhams (US$200,000). In addition, Jamaï was sentenced to three months' imprisonment, and Amar to two months. Reporters Without Borders immediately called for the Moroccan Justice Minister to overturn the verdict, asserting that "Fines should not be used by the authorities with the aim of halting the appearance or publication of a media". Other lawsuits followed, and by 2006, Jamaï's debts amounted to more than US$1.5 million in fines, damages, and back taxes. In 2002, Le Journal'''s staff was told by a number of companies that had formerly advertised in the paper that they had been pressured by the government no longer to do so. Jamaï speculated to an interviewer that having realized that they could not shut the paper down directly without international pressure, the government was now seeking to bankrupt it. In 2006, Jamaï lost another libel suit, this time to Claude Moniquet, director of the Brussels think-tank, the European Strategic Intelligence and Security Center; Jamaï had described a report of his on the Polisario Front as "tele-guided by the royal palace", and was ordered to pay a US$360,000 fine. The press freedom watchdog Reporters Without Borders (RSF) described the trial as "politically motivated and unfair", and said that it could prove a "fatal blow" to the weekly magazine. A cousin of Mohammad's, Prince Moulay Hicham Ben Abdallah, offered to settle Jamaï's legal debts, but Jamaï refused, saying that he would "prefer to force the regime to let the press alone or be exposed for silencing it". Jamaï then resigned from his papers and traveled to the US, working as a professor at the University of San Diego for three years. He returned to Morocco in 2009. Faced with growing debts and an advertising boycott, Le Journal went out of business in 2010. On 16 February 2010, bailiffs arrived with a court order that the paper must cease publication. Jamaï announced to a crowd outside the office that he was leaving journalism, because "serious journalism has become impossible in Morocco today". The following year, however, he would go on to found the news website Lakome.com. Awards and recognition In 2003, The committee to Protect Journalists presented Jamaï its International Press Freedom Award, "an annual recognition of courageous journalism", for his work with Le Journal''. In 2010, the World Association of Newspapers awarded him its Gebran Tueni Prize, established in honor of the assassinated Lebanese editor and press freedom advocate of the same name. See also Telquel (Morocco) References 1997 establishments in Morocco 2010 disestablishments in Morocco Defunct magazines published in Morocco French-language magazines Magazines established in 1997 Magazines disestablished in 2010 Mass media in Casablanca Monthly magazines Weekly magazines
```go package protocol import ( "encoding/base64" "encoding/json" "fmt" "strconv" "github.com/aws/aws-sdk-go/aws" ) // EscapeMode is the mode that should be use for escaping a value type EscapeMode uint // The modes for escaping a value before it is marshaled, and unmarshaled. const ( NoEscape EscapeMode = iota Base64Escape QuotedEscape ) // EncodeJSONValue marshals the value into a JSON string, and optionally base64 // encodes the string before returning it. // // Will panic if the escape mode is unknown. func EncodeJSONValue(v aws.JSONValue, escape EscapeMode) (string, error) { b, err := json.Marshal(v) if err != nil { return "", err } switch escape { case NoEscape: return string(b), nil case Base64Escape: return base64.StdEncoding.EncodeToString(b), nil case QuotedEscape: return strconv.Quote(string(b)), nil } panic(fmt.Sprintf("EncodeJSONValue called with unknown EscapeMode, %v", escape)) } // DecodeJSONValue will attempt to decode the string input as a JSONValue. // Optionally decoding base64 the value first before JSON unmarshaling. // // Will panic if the escape mode is unknown. func DecodeJSONValue(v string, escape EscapeMode) (aws.JSONValue, error) { var b []byte var err error switch escape { case NoEscape: b = []byte(v) case Base64Escape: b, err = base64.StdEncoding.DecodeString(v) case QuotedEscape: var u string u, err = strconv.Unquote(v) b = []byte(u) default: panic(fmt.Sprintf("DecodeJSONValue called with unknown EscapeMode, %v", escape)) } if err != nil { return nil, err } m := aws.JSONValue{} err = json.Unmarshal(b, &m) if err != nil { return nil, err } return m, nil } ```
The following is a list of Japanese films distributed in 2002. Highest-grossing films List of films A list of films released in Japan in 2002 (see 2002 in film). See also 2002 in Japan 2002 in Japanese television References Footnotes Sources External links Japanese films of 2002 at the Internet Movie Database 2002 Japanese Films
```java /* =========================================================== * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * * * Project Info: path_to_url * * This library is free software; you can redistribute it and/or modify it * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * * You should have received a copy of the GNU Lesser General Public * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, * USA. * * [Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners.] * * ------------------------- * XYDrawableAnnotation.java * ------------------------- * * Original Author: David Gilbert; * Contributor(s): -; * */ package org.jfree.chart.annotations; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; import java.io.Serializable; import java.util.Objects; import org.jfree.chart.axis.ValueAxis; import org.jfree.chart.plot.Plot; import org.jfree.chart.plot.PlotOrientation; import org.jfree.chart.plot.PlotRenderingInfo; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.Drawable; import org.jfree.chart.api.RectangleEdge; import org.jfree.chart.internal.Args; import org.jfree.chart.api.PublicCloneable; /** * A general annotation that can be placed on an {@link XYPlot}. */ public class XYDrawableAnnotation extends AbstractXYAnnotation implements Cloneable, PublicCloneable, Serializable { /** For serialization. */ private static final long serialVersionUID = -6540812859722691020L; /** The scaling factor. */ private double drawScaleFactor; /** The x-coordinate. */ private double x; /** The y-coordinate. */ private double y; /** The width. */ private double displayWidth; /** The height. */ private double displayHeight; /** The drawable object. */ private Drawable drawable; /** * Creates a new annotation to be displayed within the given area. * * @param x the x-coordinate for the area (must be finite). * @param y the y-coordinate for the area (must be finite). * @param width the width of the area (must be finite). * @param height the height of the area (must be finite). * @param drawable the drawable object ({@code null} not permitted). */ public XYDrawableAnnotation(double x, double y, double width, double height, Drawable drawable) { this(x, y, width, height, 1.0, drawable); } /** * Creates a new annotation to be displayed within the given area. If you * specify a {@code drawScaleFactor} of 2.0, the {@code drawable} * will be drawn at twice the requested display size then scaled down to * fit the space. * * @param x the x-coordinate for the area (must be finite). * @param y the y-coordinate for the area (must be finite). * @param displayWidth the width of the area (must be finite). * @param displayHeight the height of the area (must be finite). * @param drawScaleFactor the scaling factor for drawing (must be finite). * @param drawable the drawable object ({@code null} not permitted). */ public XYDrawableAnnotation(double x, double y, double displayWidth, double displayHeight, double drawScaleFactor, Drawable drawable) { super(); Args.nullNotPermitted(drawable, "drawable"); Args.requireFinite(x, "x"); Args.requireFinite(y, "y"); Args.requireFinite(displayWidth, "displayWidth"); Args.requireFinite(displayHeight, "displayHeight"); Args.requireFinite(drawScaleFactor, "drawScaleFactor"); this.x = x; this.y = y; this.displayWidth = displayWidth; this.displayHeight = displayHeight; this.drawScaleFactor = drawScaleFactor; this.drawable = drawable; } /** * Returns the x-coordinate (set in the constructor). * * @return The x-coordinate. */ public double getX() { return x; } /** * Returns the y-coordinate (set in the constructor). * * @return The y-coordinate. */ public double getY() { return y; } /** * Returns the display width (set in the constructor). * * @return The display width. */ public double getDisplayWidth() { return displayWidth; } /** * Returns the display height (set in the constructor). * * @return The display height. */ public double getDisplayHeight() { return displayHeight; } /** * Returns the scale factor (set in the constructor). * * @return The scale factor. */ public double getDrawScaleFactor() { return drawScaleFactor; } /** * Draws the annotation. * * @param g2 the graphics device. * @param plot the plot. * @param dataArea the data area. * @param domainAxis the domain axis. * @param rangeAxis the range axis. * @param rendererIndex the renderer index. * @param info if supplied, this info object will be populated with * entity information. */ @Override public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info) { PlotOrientation orientation = plot.getOrientation(); RectangleEdge domainEdge = Plot.resolveDomainAxisLocation( plot.getDomainAxisLocation(), orientation); RectangleEdge rangeEdge = Plot.resolveRangeAxisLocation( plot.getRangeAxisLocation(), orientation); float j2DX = (float) domainAxis.valueToJava2D(this.x, dataArea, domainEdge); float j2DY = (float) rangeAxis.valueToJava2D(this.y, dataArea, rangeEdge); Rectangle2D displayArea = new Rectangle2D.Double( j2DX - this.displayWidth / 2.0, j2DY - this.displayHeight / 2.0, this.displayWidth, this.displayHeight); // here we change the AffineTransform so we can draw the annotation // to a larger area and scale it down into the display area // afterwards, the original transform is restored AffineTransform savedTransform = g2.getTransform(); Rectangle2D drawArea = new Rectangle2D.Double(0.0, 0.0, this.displayWidth * this.drawScaleFactor, this.displayHeight * this.drawScaleFactor); g2.scale(1 / this.drawScaleFactor, 1 / this.drawScaleFactor); g2.translate((j2DX - this.displayWidth / 2.0) * this.drawScaleFactor, (j2DY - this.displayHeight / 2.0) * this.drawScaleFactor); this.drawable.draw(g2, drawArea); g2.setTransform(savedTransform); String toolTip = getToolTipText(); String url = getURL(); if (toolTip != null || url != null) { addEntity(info, displayArea, rendererIndex, toolTip, url); } } /** * Tests this annotation for equality with an arbitrary object. * * @param obj the object to test against. * * @return {@code true} or {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { // simple case return true; } // now try to reject equality... if (!super.equals(obj)) { return false; } if (!(obj instanceof XYDrawableAnnotation)) { return false; } XYDrawableAnnotation that = (XYDrawableAnnotation) obj; if (this.x != that.x) { return false; } if (this.y != that.y) { return false; } if (this.displayWidth != that.displayWidth) { return false; } if (this.displayHeight != that.displayHeight) { return false; } if (this.drawScaleFactor != that.drawScaleFactor) { return false; } if (!Objects.equals(this.drawable, that.drawable)) { return false; } return true; } /** * Returns a hash code. * * @return A hash code. */ @Override public int hashCode() { int result; long temp; temp = Double.doubleToLongBits(this.x); result = (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.y); result = 29 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.displayWidth); result = 29 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.displayHeight); result = 29 * result + (int) (temp ^ (temp >>> 32)); return result; } /** * Returns a clone of the annotation. * * @return A clone. * * @throws CloneNotSupportedException if the annotation can't be cloned. */ @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } } ```
```javascript Easy way to deliver **HTML** pages with **Express** `cookie-session` in **Express** Log with `morgan` in **Express** Session handling in **Express** `vhost` in **Express** ```
```java package tech.tablesaw.plotly; import static org.junit.jupiter.api.Assertions.*; import java.io.File; import java.nio.file.Paths; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @Disabled class PlotTest { @Test void show() { String html = "<html><body><h1>Hello World<h1></body></html>"; File file = Paths.get("testoutput", "myfile.html").toFile(); Plot.show(html, file); } } ```
Arden Hills is a city in Ramsey County, Minnesota, United States. The population was 9,939 at the 2020 census. Bethel University and its seminary is located in the city. Also, the campus of University of Northwestern – St. Paul straddles the Arden Hills – Roseville border. The city contains the headquarters of Land O'Lakes and Catholic United Financial, a fraternal benefit society. Boston Scientific also has a large campus within Arden Hills as well. Geography According to the United States Census Bureau, the city has a total area of , of which is land and is water. Interstate Highway 35W, Interstate Highway 694, U.S. Highway 10, Minnesota Highway 51/Snelling Avenue, and County Highway 96 are some of the main routes in the city. Demographics 2010 census As of the census of 2010, there were 9,552 people, 2,957 households, and 2,019 families residing in the city. The population density was . There were 3,053 housing units at an average density of . The racial makeup of the city was 90.3% White, 1.7% African American, 0.2% Native American, 4.9% Asian, 1.0% from other races, and 1.9% from two or more races. Hispanic or Latino of any race were 2.8% of the population. There were 2,957 households, of which 26.7% had children under the age of 18 living with them, 57.6% were married couples living together, 7.4% had a female householder with no husband present, 3.2% had a male householder with no wife present, and 31.7% were non-families. 26.5% of all households were made up of individuals, and 13.7% had someone living alone who was 65 years of age or older. The average household size was 2.45 and the average family size was 2.95. The median age in the city was 34.8 years. 16.1% of residents were under the age of 18; 26.1% were between the ages of 18 and 24; 16.1% were from 25 to 44; 26.2% were from 45 to 64; and 15.6% were 65 years of age or older. The gender makeup of the city was 46.9% male and 53.1% female. 2000 census As of the census of 2000, there were 9,652 people, 2,959 households, and 2,228 families residing in the city. The population density was . There were 3,017 housing units at an average density of . The racial makeup of the city was 92.81% White, 1.32% African American, 0.20% Native American, 3.64% Asian, 0.04% Pacific Islander, 0.54% from other races, and 1.46% from two or more races. Hispanic or Latino of any race were 1.36% of the population. There were 2,959 households, out of which 33.6% had children under the age of 18 living with them, 63.6% were married couples living together, 8.9% had a female householder with no husband present, and 24.7% were non-families. 19.9% of all households were made up of individuals, and 8.1% had someone living alone who was 65 years of age or older. The average household size was 2.59 and the average family size was 2.98. In the city, the population was spread out, with 20.0% under the age of 18, 20.3% from 18 to 24, 20.6% from 25 to 44, 25.2% from 45 to 64, and 13.9% who were 65 years of age or older. The median age was 36 years. For every 100 females, there were 85.3 males. For every 100 females age 18 and over, there were 81.6 males. The median income for a household in the city was $64,773, and the median income for a family was $72,236. Males had a median income of $52,464 versus $38,906 for females. The per capita income for the city was $29,609. About 1.8% of families and 3.9% of the population were below the poverty line, including 4.4% of those under age 18 and 0.8% of those age 65 or over. Education The following institutions are located in Arden Hills: Bethel University University of Northwestern – St. Paul (The northern portion of the campus is located in Arden Hills, while the southern portion is in Roseville.) Mounds View High School is a public Grade 9–12 school; it is one of two high schools in Independent School District 621; the other is Irondale High School. Valentine Hills is the only elementary school in the city of Arden Hills; it is one of six elementary schools in Independent School District 621. Government Arden Hills uses a city council consisting of four councilmembers and a mayor. As of May 2023, the current mayor of Arden Hills is David Grant, who was re-elected with 51.71% of the vote on the November 8, 2022 election. Grant has served as mayor since 2011 and his current term will end in December 2026. The four councilmembers are as follows: Emily Rousseau (term expires Dec. 2026), Tena Monson (term expires Dec. 2026), Brenda Holden (term expires Dec. 2024), Thomas Fabel (term expires Dec. 2024). Economy The headquarters of Land O'Lakes is in the city. Top employers According to the City's 2022 Comprehensive Annual Financial Report, the largest employers in the city are: Politics Land Use Any new development is expected to conform to the provisions of the very detailed (and sometimes contradictory) provisions of the Zoning Code, the primary stated purpose of which is to ensure fair application of City development regulations and to promote the public health, safety, and welfare. Proposed deviations from the Zoning Code require the approval of a "variance" by the City Council, which takes into consideration the recommendations of the Planning Commission, staff, and members of the public. Requests for variances are required to address the criteria in Minnesota State Statutes 462.357 Subd. 6. Variances are intended to be used to address unique lot situations when the literal application of the Code would restrict reasonable use of the land and create an undue hardship as defined in Minnesota State Statutes. The undue hardship cannot be created by the landowner or be based entirely on economic reasons. Variance applications are reviewed by the Planning Commission, which is responsible for determining what constitutes "undue hardship." Members of the Planning Commission are appointed by the City Council. Commission members are to represent the interests of the community and evaluate development applications based on established City Codes and State Statutes. Planning Commission members must be City residents, and they are unpaid volunteers. In July 2006 the city reached a tentative agreement with the U.S. Government to purchase a large portion of the former Twin Cities Army Ammunition Plant site for $45 million, a deal that could lead to a major new development that would include 2,400 new homes and of commercial space. Environmental protection The City has a Shoreland Ordinance, which is typical of communities in Minnesota with lakes. The text of the Ordinance states that uncontrolled use of shorelands of the City affects the public health, safety and general welfare by contributing to pollution of public waters. The purpose of the ordinance is to protect the public's health, safety, and welfare, and to provide for the wise development of shorelands of public waters. The Minnesota Legislature has delegated responsibility to the municipalities of the State to regulate the subdivision, use, and development of the shorelands of public waters, and thus preserve and enhance the quality of surface waters, preserve the economic and natural environmental values of shorelands, and provide for the wise utilization of waters and related land resources. The State has not, however, required that the delegated responsibility be exercised with respect to enforcement of the corresponding laws, ordinances, and regulations, nor does the State require that the municipality have an established administrative sanction (fine) process at its disposal for the punishment of violators. The City is located within the Rice Creek Watershed District. In its effort to minimize storm water runoff, the District encourages minimization of impervious surfaces in developed areas. Sports The Twins Cities Titans of the NEFL are a semi-pro football team who play in Arden Hills. New Minnesota Stadium Ramsey County officials announced in May 2011 that they had reached an agreement with the Minnesota Vikings to be the team's local partner for a new stadium. The site of the stadium would be the former Twins Cities Army Ammunitions Plant in Arden Hills, which is about 10 miles from the Metrodome in Minneapolis. The agreement called for an $884 million stadium and an additional $173 million for on-site infrastructure, parking and environmental costs. Ramsey county said the Vikings would commit $407 million to the project, which was about 44% of the stadium cost and 39% of the overall cost. The county's cost would have been $350 million, financed by a half-cent sales tax increase. The remaining amount of $300 million would be paid by Minnesota taxpayers. Governor Mark Dayton said fixing the roads near the location would likely cost between $175 and 240 million. This plan fell through, however, on March 1, 2012 when Governor Dayton announced the stadium would be built on the site of their former home, the Metrodome. References Populated places established in 1951 Cities in Minnesota Cities in Ramsey County, Minnesota 1951 establishments in Minnesota
```c /* path_to_url#arm-baremetal-multicore */ #include <lkmc.h> uint64_t spinlock = 0; __asm__( ".syntax unified\n" ".text\n" ".global lkmc_cpu_not_0\n" "lkmc_cpu_not_0:\n" " cmp r0, 1\n" " bne .Lsleep_forever\n" " ldr sp, =(lkmc_stack_top - 0x1000)\n" " bl main_cpu1\n" ".Lsleep_forever:\n" " wfe\n" " b .Lsleep_forever\n" ); static void main_cpu1(void) { spinlock = 1; lkmc_arm_aarch64_dmb(sy); lkmc_arm_aarch64_sev(); while (1) { lkmc_arm_aarch64_wfe(); } } int main(void) { #if !LKMC_GEM5 lkmc_arm_psci_cpu_on(1, (uint32_t)main_cpu1, 0); #endif while (!spinlock) { lkmc_arm_aarch64_wfe(); } } ```
```javascript // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --expose-wasm --experimental-wasm-return-call --stack-size=64 load("test/mjsunit/wasm/wasm-module-builder.js"); (function TestFactorialReturnCall() { print(arguments.callee.name); let builder = new WasmModuleBuilder(); const sig_i_iii = builder.addType(kSig_i_iii); // construct the code for the function // f_aux(N,X) where N=<1 => X // f_aux(N,X) => f_aux(N-1,X*N) let fact_aux = builder.addFunction("fact_aux",kSig_i_ii); fact_aux.addBody([ kExprGetLocal, 0, kExprI32Const, 1, kExprI32LeS, kExprIf, kWasmI32, kExprGetLocal, 1, kExprElse, kExprGetLocal, 0, kExprI32Const, 1, kExprI32Sub, kExprGetLocal, 0, kExprGetLocal, 1, kExprI32Mul, kExprReturnCall, fact_aux.index, kExprEnd ]); //main(N)=>fact_aux(N,1) let main = builder.addFunction("main", kSig_i_i) .addBody([ kExprGetLocal, 0, kExprI32Const, 1, kExprReturnCall,0 ]).exportFunc(); let module = builder.instantiate(); print(" --three--"); assertEquals(6, module.exports.main(3)); print(" --four--"); assertEquals(24, module.exports.main(4)); })(); (function TestIndirectFactorialReturnCall() { print(arguments.callee.name); let builder = new WasmModuleBuilder(); const sig_i_iii = builder.addType(kSig_i_iii); // construct the code for the function // fact(N) => f_ind(N,1,f). // // f_ind(N,X,_) where N=<1 => X // f_ind(N,X,F) => F(N-1,X*N,F). let f_ind = builder.addFunction("f_ind",kSig_i_iii). addBody([ kExprGetLocal, 0, kExprI32Const, 1, kExprI32LeS, kExprIf, kWasmI32, kExprGetLocal, 1, kExprElse, kExprGetLocal, 0, kExprI32Const, 1, kExprI32Sub, kExprGetLocal, 0, kExprGetLocal, 1, kExprI32Mul, kExprGetLocal, 2, kExprGetLocal, 2, kExprReturnCallIndirect, sig_i_iii, kTableZero, kExprEnd ]); //main(N)=>fact_aux(N,1) let main = builder.addFunction("main", kSig_i_i) .addBody([ kExprGetLocal, 0, kExprI32Const, 1, kExprI32Const, f_ind.index, kExprReturnCall, f_ind.index ]).exportFunc(); builder.appendToTable([f_ind.index, main.index]); let module = builder.instantiate(); print(" --three--"); assertEquals(6, module.exports.main(3)); print(" --four--"); assertEquals(24, module.exports.main(4)); })(); (function TestImportReturnCall() { print(arguments.callee.name); let builder = new WasmModuleBuilder(); const sig_i_iii = builder.addType(kSig_i_iii); let pick = builder.addImport("q", "pick", sig_i_iii); let main = builder.addFunction("main", kSig_i_iii) .addBody([ kExprGetLocal, 1, kExprGetLocal, 2, kExprGetLocal, 0, kExprReturnCall, pick ]) .exportFunc(); let module = builder.instantiate({q: { pick: function(a, b, c) { return c ? a : b; }}}); print(" --left--"); assertEquals(-2, module.exports.main(1, -2, 3)); print(" --right--"); assertEquals(3, module.exports.main(0, -2, 3)); })(); (function TestImportIndirectReturnCall() { print(arguments.callee.name); let builder = new WasmModuleBuilder(); const sig_i_iii = builder.addType(kSig_i_iii); let pick = builder.addImport("q", "pick", sig_i_iii); const tableIndex = 3; // Arbitrary location of import builder.addElementSegment(0, tableIndex,false,[pick]); let main = builder.addFunction("main", kSig_i_iii) .addBody([ kExprGetLocal, 1, kExprGetLocal, 2, kExprGetLocal, 0, kExprI32Const, tableIndex, kExprReturnCallIndirect, sig_i_iii, kTableZero ]) .exportFunc(); builder.appendToTable([pick, main.index]); let module = builder.instantiate({q: { pick: function(a, b, c) { return c ? a : b; } }}); print(" --left--"); assertEquals(-2, module.exports.main(1, -2, 3)); print(" --right--"); assertEquals(3, module.exports.main(0, -2, 3)); })(); ```
```smalltalk using System; using System.Runtime.InteropServices; namespace LibVLCSharp.Shared.Structures { [StructLayout(LayoutKind.Sequential)] internal readonly struct TrackDescriptionStructure { internal readonly int Id; internal readonly IntPtr Name; internal readonly IntPtr Next; } /// <summary> /// <para>Description for video, audio tracks and subtitles. It contains</para> /// <para>id, name (description string)</para> /// </summary> public readonly struct TrackDescription { /// <summary> /// Track description Id /// </summary> public int Id { get; } /// <summary> /// Track description /// </summary> public string Name { get; } /// <summary> /// TrackDescription constructor /// </summary> /// <param name="id">Track description Id</param> /// <param name="name">Track description</param> internal TrackDescription(int id, string name) { Id = id; Name = name; } } } ```
SM U-105 was one of the 329 submarines serving in the Imperial German Navy in World War I. U-105 was engaged in the naval warfare and took part in the First Battle of the Atlantic. After the war she was ceded to France, where the unit served as Jean Autric until being scrapped in 1938. On 17 October 1917, SM U-105 met , an American troop transport, during the return leg of a voyage to Europe. Antilles was torpedoed by the submerged U-boat and went down just five minutes after being hit. A total of 67 persons were killed in the sinking, making the destruction of Antilles the event costing the single greatest number of American lives in the war to that date. Design German Type U 93 submarines were preceded by the shorter Type U 87 submarines. U-105 had a displacement of when at the surface and while submerged. She had a total length of , a pressure hull length of , a beam of , a height of , and a draught of . The submarine was powered by two engines for use while surfaced, and two engines for use while submerged. The boat had two propeller shafts and two propellers. She was capable of operating at depths of up to . The submarine had a maximum surface speed of and a maximum submerged speed of . When submerged, she could operate for at ; when surfaced, she could travel at . U-105 was fitted with six torpedo tubes (four at the bow and two at the stern), twelve to sixteen torpedoes, one SK L/45, and one SK L/30 deck gun. She had a complement of thirty-six (thirty-two crew members and four officers). Summary of raiding history References Notes Citations Bibliography World War I submarines of Germany German Type U 93 submarines Ships built in Kiel 1917 ships U-boats commissioned in 1917 Foreign submarines in French service
Kawakawa railway station was a station on the Opua Branch in New Zealand. References Defunct railway stations in New Zealand
```c++ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ #ifndef OS_LINUX_OS_LINUX_HPP #define OS_LINUX_OS_LINUX_HPP #include "runtime/os.hpp" // os::Linux defines the interface to Linux operating systems namespace svm_container { class os::Linux { friend class CgroupSubsystem; friend class os; friend class OSContainer; #ifndef NATIVE_IMAGE static int (*_pthread_getcpuclockid)(pthread_t, clockid_t *); static int (*_pthread_setname_np)(pthread_t, const char*); static address _initial_thread_stack_bottom; static uintptr_t _initial_thread_stack_size; static const char *_libc_version; static const char *_libpthread_version; static bool _supports_fast_thread_cpu_time; static GrowableArray<int>* _cpu_to_node; static GrowableArray<int>* _nindex_to_node; static julong available_memory_in_container(); #endif // !NATIVE_IMAGE protected: static julong _physical_memory; #ifndef NATIVE_IMAGE static pthread_t _main_thread; static julong available_memory(); static julong free_memory(); #endif // !NATIVE_IMAGE static int active_processor_count(); #ifdef NATIVE_IMAGE public: #endif // NATIVE_IMAGE static void initialize_system_info(); #ifndef NATIVE_IMAGE static int commit_memory_impl(char* addr, size_t bytes, bool exec); static int commit_memory_impl(char* addr, size_t bytes, size_t alignment_hint, bool exec); static void set_libc_version(const char *s) { _libc_version = s; } static void set_libpthread_version(const char *s) { _libpthread_version = s; } static void rebuild_cpu_to_node_map(); static void rebuild_nindex_to_node_map(); static GrowableArray<int>* cpu_to_node() { return _cpu_to_node; } static GrowableArray<int>* nindex_to_node() { return _nindex_to_node; } static void print_process_memory_info(outputStream* st); static void print_system_memory_info(outputStream* st); static bool print_container_info(outputStream* st); static void print_steal_info(outputStream* st); static void print_distro_info(outputStream* st); static void print_libversion_info(outputStream* st); static void print_proc_sys_info(outputStream* st); static bool print_ld_preload_file(outputStream* st); static void print_uptime_info(outputStream* st); public: struct CPUPerfTicks { uint64_t used; uint64_t usedKernel; uint64_t total; uint64_t steal; bool has_steal_ticks; }; static void kernel_version(long* major, long* minor); // which_logical_cpu=-1 returns accumulated ticks for all cpus. static bool get_tick_information(CPUPerfTicks* pticks, int which_logical_cpu); static bool _stack_is_executable; static void *dlopen_helper(const char *name, char *ebuf, int ebuflen); static void *dll_load_in_vmthread(const char *name, char *ebuf, int ebuflen); static const char *dll_path(void* lib); static void init_thread_fpu_state(); static int get_fpu_control_word(); static void set_fpu_control_word(int fpu_control); static pthread_t main_thread(void) { return _main_thread; } // returns kernel thread id (similar to LWP id on Solaris), which can be // used to access /proc static pid_t gettid(); static address initial_thread_stack_bottom(void) { return _initial_thread_stack_bottom; } static uintptr_t initial_thread_stack_size(void) { return _initial_thread_stack_size; } #endif // !NATIVE_IMAGE static julong physical_memory() { return _physical_memory; } static julong host_swap(); #ifndef NATIVE_IMAGE static intptr_t* ucontext_get_sp(const ucontext_t* uc); static intptr_t* ucontext_get_fp(const ucontext_t* uc); // GNU libc and libpthread version strings static const char *libc_version() { return _libc_version; } static const char *libpthread_version() { return _libpthread_version; } static void libpthread_init(); static void sched_getcpu_init(); static bool libnuma_init(); static void* libnuma_dlsym(void* handle, const char* name); // libnuma v2 (libnuma_1.2) symbols static void* libnuma_v2_dlsym(void* handle, const char* name); // Return default guard size for the specified thread type static size_t default_guard_size(os::ThreadType thr_type); static bool adjustStackSizeForGuardPages(); // See comments in os_linux.cpp static void capture_initial_stack(size_t max_size); // Stack overflow handling static bool manually_expand_stack(JavaThread * t, address addr); static void expand_stack_to(address bottom); // fast POSIX clocks support static void fast_thread_clock_init(void); static int pthread_getcpuclockid(pthread_t tid, clockid_t *clock_id) { return _pthread_getcpuclockid ? _pthread_getcpuclockid(tid, clock_id) : -1; } static bool supports_fast_thread_cpu_time() { return _supports_fast_thread_cpu_time; } static jlong fast_thread_cpu_time(clockid_t clockid); static jlong sendfile(int out_fd, int in_fd, jlong* offset, jlong count); // Determine if the vmid is the parent pid for a child in a PID namespace. // Return the namespace pid if so, otherwise -1. static int get_namespace_pid(int vmid); // Output structure for query_process_memory_info() (all values in KB) struct meminfo_t { ssize_t vmsize; // current virtual size ssize_t vmpeak; // peak virtual size ssize_t vmrss; // current resident set size ssize_t vmhwm; // peak resident set size ssize_t vmswap; // swapped out ssize_t rssanon; // resident set size (anonymous mappings, needs 4.5) ssize_t rssfile; // resident set size (file mappings, needs 4.5) ssize_t rssshmem; // resident set size (shared mappings, needs 4.5) }; // Attempts to query memory information about the current process and return it in the output structure. // May fail (returns false) or succeed (returns true) but not all output fields are available; unavailable // fields will contain -1. static bool query_process_memory_info(meminfo_t* info); // Tells if the user asked for transparent huge pages. static bool _thp_requested; static void large_page_init(); static bool thp_requested(); static bool should_madvise_anonymous_thps(); static bool should_madvise_shmem_thps(); static void madvise_transparent_huge_pages(void* addr, size_t bytes); // Stack repair handling // none present private: static void numa_init(); typedef int (*sched_getcpu_func_t)(void); typedef int (*numa_node_to_cpus_func_t)(int node, unsigned long *buffer, int bufferlen); typedef int (*numa_node_to_cpus_v2_func_t)(int node, void *mask); typedef int (*numa_max_node_func_t)(void); typedef int (*numa_num_configured_nodes_func_t)(void); typedef int (*numa_available_func_t)(void); typedef int (*numa_tonode_memory_func_t)(void *start, size_t size, int node); typedef void (*numa_interleave_memory_func_t)(void *start, size_t size, unsigned long *nodemask); typedef void (*numa_interleave_memory_v2_func_t)(void *start, size_t size, struct bitmask* mask); typedef struct bitmask* (*numa_get_membind_func_t)(void); typedef struct bitmask* (*numa_get_interleave_mask_func_t)(void); typedef long (*numa_move_pages_func_t)(int pid, unsigned long count, void **pages, const int *nodes, int *status, int flags); typedef void (*numa_set_preferred_func_t)(int node); typedef void (*numa_set_bind_policy_func_t)(int policy); typedef int (*numa_bitmask_isbitset_func_t)(struct bitmask *bmp, unsigned int n); typedef int (*numa_distance_func_t)(int node1, int node2); static sched_getcpu_func_t _sched_getcpu; static numa_node_to_cpus_func_t _numa_node_to_cpus; static numa_node_to_cpus_v2_func_t _numa_node_to_cpus_v2; static numa_max_node_func_t _numa_max_node; static numa_num_configured_nodes_func_t _numa_num_configured_nodes; static numa_available_func_t _numa_available; static numa_tonode_memory_func_t _numa_tonode_memory; static numa_interleave_memory_func_t _numa_interleave_memory; static numa_interleave_memory_v2_func_t _numa_interleave_memory_v2; static numa_set_bind_policy_func_t _numa_set_bind_policy; static numa_bitmask_isbitset_func_t _numa_bitmask_isbitset; static numa_distance_func_t _numa_distance; static numa_get_membind_func_t _numa_get_membind; static numa_get_interleave_mask_func_t _numa_get_interleave_mask; static numa_move_pages_func_t _numa_move_pages; static numa_set_preferred_func_t _numa_set_preferred; static unsigned long* _numa_all_nodes; static struct bitmask* _numa_all_nodes_ptr; static struct bitmask* _numa_nodes_ptr; static struct bitmask* _numa_interleave_bitmask; static struct bitmask* _numa_membind_bitmask; static void set_sched_getcpu(sched_getcpu_func_t func) { _sched_getcpu = func; } static void set_numa_node_to_cpus(numa_node_to_cpus_func_t func) { _numa_node_to_cpus = func; } static void set_numa_node_to_cpus_v2(numa_node_to_cpus_v2_func_t func) { _numa_node_to_cpus_v2 = func; } static void set_numa_max_node(numa_max_node_func_t func) { _numa_max_node = func; } static void set_numa_num_configured_nodes(numa_num_configured_nodes_func_t func) { _numa_num_configured_nodes = func; } static void set_numa_available(numa_available_func_t func) { _numa_available = func; } static void set_numa_tonode_memory(numa_tonode_memory_func_t func) { _numa_tonode_memory = func; } static void set_numa_interleave_memory(numa_interleave_memory_func_t func) { _numa_interleave_memory = func; } static void set_numa_interleave_memory_v2(numa_interleave_memory_v2_func_t func) { _numa_interleave_memory_v2 = func; } static void set_numa_set_bind_policy(numa_set_bind_policy_func_t func) { _numa_set_bind_policy = func; } static void set_numa_bitmask_isbitset(numa_bitmask_isbitset_func_t func) { _numa_bitmask_isbitset = func; } static void set_numa_distance(numa_distance_func_t func) { _numa_distance = func; } static void set_numa_get_membind(numa_get_membind_func_t func) { _numa_get_membind = func; } static void set_numa_get_interleave_mask(numa_get_interleave_mask_func_t func) { _numa_get_interleave_mask = func; } static void set_numa_move_pages(numa_move_pages_func_t func) { _numa_move_pages = func; } static void set_numa_set_preferred(numa_set_preferred_func_t func) { _numa_set_preferred = func; } static void set_numa_all_nodes(unsigned long* ptr) { _numa_all_nodes = ptr; } static void set_numa_all_nodes_ptr(struct bitmask **ptr) { _numa_all_nodes_ptr = (ptr == nullptr ? nullptr : *ptr); } static void set_numa_nodes_ptr(struct bitmask **ptr) { _numa_nodes_ptr = (ptr == nullptr ? nullptr : *ptr); } static void set_numa_interleave_bitmask(struct bitmask* ptr) { _numa_interleave_bitmask = ptr ; } static void set_numa_membind_bitmask(struct bitmask* ptr) { _numa_membind_bitmask = ptr ; } static int sched_getcpu_syscall(void); enum NumaAllocationPolicy{ NotInitialized, Membind, Interleave }; static NumaAllocationPolicy _current_numa_policy; public: static int sched_getcpu() { return _sched_getcpu != nullptr ? _sched_getcpu() : -1; } static int numa_node_to_cpus(int node, unsigned long *buffer, int bufferlen); static int numa_max_node() { return _numa_max_node != nullptr ? _numa_max_node() : -1; } static int numa_num_configured_nodes() { return _numa_num_configured_nodes != nullptr ? _numa_num_configured_nodes() : -1; } static int numa_available() { return _numa_available != nullptr ? _numa_available() : -1; } static int numa_tonode_memory(void *start, size_t size, int node) { return _numa_tonode_memory != nullptr ? _numa_tonode_memory(start, size, node) : -1; } static bool is_running_in_interleave_mode() { return _current_numa_policy == Interleave; } static void set_configured_numa_policy(NumaAllocationPolicy numa_policy) { _current_numa_policy = numa_policy; } static NumaAllocationPolicy identify_numa_policy() { for (int node = 0; node <= Linux::numa_max_node(); node++) { if (Linux::_numa_bitmask_isbitset(Linux::_numa_interleave_bitmask, node)) { return Interleave; } } return Membind; } static void numa_interleave_memory(void *start, size_t size) { // Prefer v2 API if (_numa_interleave_memory_v2 != nullptr) { if (is_running_in_interleave_mode()) { _numa_interleave_memory_v2(start, size, _numa_interleave_bitmask); } else if (_numa_membind_bitmask != nullptr) { _numa_interleave_memory_v2(start, size, _numa_membind_bitmask); } } else if (_numa_interleave_memory != nullptr) { _numa_interleave_memory(start, size, _numa_all_nodes); } } static void numa_set_preferred(int node) { if (_numa_set_preferred != nullptr) { _numa_set_preferred(node); } } static void numa_set_bind_policy(int policy) { if (_numa_set_bind_policy != nullptr) { _numa_set_bind_policy(policy); } } static int numa_distance(int node1, int node2) { return _numa_distance != nullptr ? _numa_distance(node1, node2) : -1; } static long numa_move_pages(int pid, unsigned long count, void **pages, const int *nodes, int *status, int flags) { return _numa_move_pages != nullptr ? _numa_move_pages(pid, count, pages, nodes, status, flags) : -1; } static int get_node_by_cpu(int cpu_id); static int get_existing_num_nodes(); // Check if numa node is configured (non-zero memory node). static bool is_node_in_configured_nodes(unsigned int n) { if (_numa_bitmask_isbitset != nullptr && _numa_all_nodes_ptr != nullptr) { return _numa_bitmask_isbitset(_numa_all_nodes_ptr, n); } else return false; } // Check if numa node exists in the system (including zero memory nodes). static bool is_node_in_existing_nodes(unsigned int n) { if (_numa_bitmask_isbitset != nullptr && _numa_nodes_ptr != nullptr) { return _numa_bitmask_isbitset(_numa_nodes_ptr, n); } else if (_numa_bitmask_isbitset != nullptr && _numa_all_nodes_ptr != nullptr) { // Not all libnuma API v2 implement numa_nodes_ptr, so it's not possible // to trust the API version for checking its absence. On the other hand, // numa_nodes_ptr found in libnuma 2.0.9 and above is the only way to get // a complete view of all numa nodes in the system, hence numa_nodes_ptr // is used to handle CPU and nodes on architectures (like PowerPC) where // there can exist nodes with CPUs but no memory or vice-versa and the // nodes may be non-contiguous. For most of the architectures, like // x86_64, numa_node_ptr presents the same node set as found in // numa_all_nodes_ptr so it's possible to use numa_all_nodes_ptr as a // substitute. return _numa_bitmask_isbitset(_numa_all_nodes_ptr, n); } else return false; } // Check if node is in bound node set. static bool is_node_in_bound_nodes(int node) { if (_numa_bitmask_isbitset != nullptr) { if (is_running_in_interleave_mode()) { return _numa_bitmask_isbitset(_numa_interleave_bitmask, node); } else { return _numa_membind_bitmask != nullptr ? _numa_bitmask_isbitset(_numa_membind_bitmask, node) : false; } } return false; } // Check if bound to only one numa node. // Returns true if bound to a single numa node, otherwise returns false. static bool is_bound_to_single_node() { int nodes = 0; unsigned int node = 0; unsigned int highest_node_number = 0; if (_numa_membind_bitmask != nullptr && _numa_max_node != nullptr && _numa_bitmask_isbitset != nullptr) { highest_node_number = _numa_max_node(); } else { return false; } for (node = 0; node <= highest_node_number; node++) { if (_numa_bitmask_isbitset(_numa_membind_bitmask, node)) { nodes++; } } if (nodes == 1) { return true; } else { return false; } } static const GrowableArray<int>* numa_nindex_to_node() { return _nindex_to_node; } static void* resolve_function_descriptor(void* p); #ifdef __GLIBC__ // os::Linux::get_mallinfo() hides the complexity of dealing with mallinfo() or // mallinfo2() from the user. Use this function instead of raw mallinfo/mallinfo2() // to keep the JVM runtime-compatible with different glibc versions. // // mallinfo2() was added with glibc (>2.32). Legacy mallinfo() was deprecated with // 2.33 and may vanish in future glibcs. So we may have both or either one of // them. // // mallinfo2() is functionally equivalent to legacy mallinfo but returns sizes as // 64-bit on 64-bit platforms. Legacy mallinfo uses 32-bit fields. However, legacy // mallinfo is still perfectly fine to use if we know the sizes cannot have wrapped. // For example, if the process virtual size does not exceed 4G, we cannot have // malloc'ed more than 4G, so the results from legacy mallinfo() can still be used. // // os::Linux::get_mallinfo() will always prefer mallinfo2() if found, but will fall back // to legacy mallinfo() if only that is available. In that case, it will return true // in *might_have_wrapped. struct glibc_mallinfo { size_t arena; size_t ordblks; size_t smblks; size_t hblks; size_t hblkhd; size_t usmblks; size_t fsmblks; size_t uordblks; size_t fordblks; size_t keepcost; }; static void get_mallinfo(glibc_mallinfo* out, bool* might_have_wrapped); // Calls out to GNU extension malloc_info if available // otherwise does nothing and returns -2. static int malloc_info(FILE* stream); #endif // GLIBC #endif // !NATIVE_IMAGE }; } // namespace svm_container #endif // OS_LINUX_OS_LINUX_HPP ```
```php <?php /** * @group http * @group external-http * @group functions * * @covers ::wp_remote_fopen */ class Tests_Functions_wpRemoteFopen extends WP_UnitTestCase { /** * @ticket 48845 */ public function test_wp_remote_fopen_empty() { $this->assertFalse( wp_remote_fopen( '' ) ); } /** * @ticket 48845 */ public function test_wp_remote_fopen_bad_url() { $this->assertFalse( wp_remote_fopen( 'wp.com' ) ); } /** * @ticket 48845 */ public function test_wp_remote_fopen() { // This URL gives a direct 200 response. $url = 'path_to_url $response = wp_remote_fopen( $url ); $this->assertIsString( $response ); $this->assertSame( 153204, strlen( $response ) ); } } ```
```xml import 'rxjs-compat/add/operator/mergeScan'; ```