gpt-5.6-sol
nano-gpt-data-curation — graded by the task's verifier against a measured baseline.
- backend
- modal
- variant
- codex azure_ai/gpt-5.6-sol
- metric
- held-out multi-domain perplexity
- actions
- 183
- duration
- 48m
- recorded
- 2026-08-04
run iddclm-nano-curation__EVaJQmY
Everything gpt-5.6-sol did on this task, in order.
download JSON ↗I’ll first profile the corpus, frozen trainer interface, and remaining runtime. Then I’ll build a reproducible quality-and-domain ranking, verify token coverage/validity, and use dev training runs only where they can distinguish promising variants.
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"pwd && cat /workspace/.timer/remaining_secs && sed -n '1,240p' /workspace/train_nano.py && ls -lh /workspace/data/pool.jsonl /workspace/data/multi_dev.npy\",workdir:\"/workspace\",yield_time_ms:10000,max_output_tokens:20000}); text(r.output)\n"
}exec result
Script completed
Wall time 0.3 seconds
Output:
/workspace
5380
"""From-scratch nano-GPT (30M) LM training on a 1D token .npy; report held-out perplexity.
Frozen recipe — the ONLY thing that varies between runs is the training token set."""
import argparse, math, time, numpy as np, torch
from model import GPT, GPTConfig
ap = argparse.ArgumentParser()
ap.add_argument("--train_npy", required=True)
ap.add_argument("--heldout_npy", required=True)
ap.add_argument("--out_json", required=True)
ap.add_argument("--max_iters", type=int, default=3000)
ap.add_argument("--warmup", type=int, default=150)
ap.add_argument("--batch", type=int, default=32)
ap.add_argument("--block", type=int, default=256)
ap.add_argument("--lr", type=float, default=6e-4)
ap.add_argument("--seed", type=int, default=1337)
a = ap.parse_args()
torch.manual_seed(a.seed); np.random.seed(a.seed)
dev = "cuda"
tr = np.load(a.train_npy); ho = np.load(a.heldout_npy)
tr = torch.from_numpy(tr.astype(np.int64)); ho = torch.from_numpy(ho.astype(np.int64))
rng = np.random.default_rng(a.seed)
model = GPT(GPTConfig(block_size=a.block, vocab_size=50257, n_layer=6, n_head=6,
n_embd=384, dropout=0.0, bias=False)).to(dev)
opt = model.configure_optimizers(0.1, a.lr, (0.9, 0.95), "cuda")
def lr_at(it):
if it < a.warmup: return a.lr * (it + 1) / (a.warmup + 1)
r = (it - a.warmup) / max(1, a.max_iters - a.warmup)
return 0.1 * a.lr + 0.5 * (1 + math.cos(math.pi * r)) * (a.lr - 0.1 * a.lr)
def get_batch(src):
ix = rng.integers(0, len(src) - a.block - 1, size=a.batch)
x = torch.stack([src[i:i+a.block] for i in ix]).to(dev)
y = torch.stack([src[i+1:i+1+a.block] for i in ix]).to(dev)
return x, y
t0 = time.time()
model.train()
for it in range(a.max_iters):
for g in opt.param_groups: g["lr"] = lr_at(it)
x, y = get_batch(tr)
with torch.autocast("cuda", dtype=torch.bfloat16):
_, loss = model(x, y)
opt.zero_grad(set_to_none=True); loss.backward()
torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0); opt.step()
train_s = time.time() - t0
# held-out perplexity: mean next-token CE over non-overlapping windows (window-weighted)
import json
model.eval()
nwin = (len(ho) - 1) // a.block
starts = [j * a.block for j in range(nwin)]
sum_loss, nseen = 0.0, 0
with torch.no_grad():
for i in range(0, nwin, a.batch):
bs = starts[i:i+a.batch]
x = torch.stack([ho[s:s+a.block] for s in bs]).to(dev)
y = torch.stack([ho[s+1:s+1+a.block] for s in bs]).to(dev)
with torch.autocast("cuda", dtype=torch.bfloat16):
_, l = model(x, y)
sum_loss += l.item() * len(bs); nseen += len(bs)
mean_loss = sum_loss / max(1, nseen)
ppl = math.exp(mean_loss)
out = {"train_npy": a.train_npy, "heldout_ppl": ppl, "mean_loss": mean_loss,
"max_iters": a.max_iters, "seed": a.seed, "train_s": round(train_s, 1)}
json.dump(out, open(a.out_json, "w"))
print(f"HELDOUT_PPL {ppl:.3f} loss {mean_loss:.4f} train_s {train_s:.0f} {a.train_npy}")
-r--r--r-- 1 root root 2.0M Aug 3 22:34 /workspace/data/multi_dev.npy
-r--r--r-- 1 root root 773M Aug 3 22:35 /workspace/data/pool.jsonl
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"python - <<'PY'\\nimport json, random, re, statistics\\np='/workspace/data/pool.jsonl'\\nr=random.Random(42); sample=[]\\nwith open(p) as f:\\n for i,l in enumerate(f):\\n if i<30: sample.append(json.loads(l))\\n elif r.randrange(i+1)<30: sample[r.randrange(30)] = json.loads(l)\\nfor x in sample:\\n t=x['text'].replace('\\\\n',' ⏎ ')\\n print('\\\\nID',x['id'],'CH',len(x['text']),repr(t[:500]))\\nPY\\npython - <<'PY'\\nfrom transformers import GPT2TokenizerFast\\ntry:\\n t=GPT2TokenizerFast.from_pretrained('gpt2',local_files_only=True);print('TOK OK',len(t))\\nexcept Exception as e: print('TOK FAIL',repr(e))\\nPY\",workdir:\"/workspace\",yield_time_ms:30000,max_output_tokens:20000}); text(r.output)\n"
}exec result
Script completed
Wall time 9.6 seconds
Output:
ID 79996 CH 6937 '<|endoftext|>Whether a dog uses a bed as a dedicated safe space or a token chew toy, you might wonder how often it needs to be replaced. Though there is no set expiration date for a dog bed, there are many factors that go into determining when it is time for a replacement. ⏎ Dog beds should be replaced every 1 to 5 years depending on the wear and tear, environment, and needs of the dog. ⏎ If you are still deciding whether or not it is time to replace your dog bed, keep reading below to help dete'
ID 73599 CH 6680 '<|endoftext|>It was inevitable, but the Premier League’s Project Restart is an official #Mess -- as the kids say. ⏎ What was once a discussion of held under the pretense of morals has quickly devolved into a discussion of cash. It is as disheartening as it was predictable. ⏎ Everyone involved is acting self-interested. You know, because every time you have the chance to crush the sporting integrity of your league to acquiesce to the concerns of Brighton and West Ham you just have to do it. ⏎ Whi'
ID 152554 CH 3618 ' Spam free...<|endoftext|>Nepal/Switzerland: Craft brewery offends Nepal with new beer | inside.beer - International beverage news from Munich ⏎ Home ⏎ News ⏎ Send a Message! ⏎ Imprint ⏎ Ads / Media Data ⏎ About Us ⏎ Menu ⏎ Back to the overview ⏎ 26. ⏎ /Apr. ⏎ 2018 ⏎ Nepal/Switzerland: Craft brewery offends Nepal with new beer ⏎ Turbinenbräu, a small brewery from Switzerland’s financial capital Zurich, inadvertently triggered anger and protests from Nepalese citizens after one of its beers, whic'
ID 58542 CH 9395 "<|endoftext|>Trainees following this program exactly have never it can work for you! Spencer was an active guy until stress and weight training to enhance performance in other sports, such as football, wrestling, martial-arts, etc. Here at Truly Huge we carry only the Fitness and Health Supplements Store. Today, he's come to the right place as Kali commands him through to make fast gains in size and strength. Results are and lost 100 pounds in one year! When you sign up for our free newsletter, "
ID 110108 CH 1716 "<|endoftext|>Temporary Cover for Young Drivers ⏎ Young drivers are in the weakest position with respect to temporary cover. Many insurers refuse to cover anyone below age 25. Others refuse anyone below age 23 or 21. Regardless of what each insurer denotes as 'too young,' it's clear that drivers age 17 to 25 have the most difficulty getting cover. Many look to temporary (ie 1 to 28 days) cover to fill in this gap, only to find that it's often unavailable to young drivers. Since insurance is all a"
ID 110566 CH 5030 ' an interesting take on the beat ‘em up genre and comes from Rimlight Studios. You could say it’s a retro game in some ways but what game nowadays doesn’t take some sort of element or inspiration from past games. Zheros is a bright and colourful, button bashing adventure but does it have much depth to it? ⏎ When starting out you’re given an option of two characters to play as. The first is a muscular, blonde soldier known as Mike, who has clearly been skipping leg day at the gym and the second i'
ID 85247 CH 3052 'ise State will stay in the Mountain West instead of moving to the Big East with San Diego State in 2013. ⏎ On Monday, the Mountain West issued a press release welcoming the Broncos back to the league. ⏎ “Maintaining the Broncos program as part of the already solid foundation we have established creates a posture of great stability for the Mountain West going forward,” MW Commissioner Craig Thompson said in the release. “It also enhances the conference’s competitive and marketplace platforms, pos'
ID 11174 CH 730 "Now this is what we call bang for your buck. ⏎ He once again partnered up with Old Milwaukee and appeared in an utterly scaled-down 30-second spot for the beer company. Missed it? Well, then you must not live in the only market in which the ad aired: North Platte, Neb. ⏎ That's right, in the battle for which spot would curry the nation's favor, Ferrell & Co. decided to keep it local. ⏎ And without any special effects whatsoever. So what did it have? ⏎ Will Ferrell striding through a breezy Nebra"
ID 128053 CH 2405 ': file_get_contents(https://itunes.apple.com/lookup?id=828348912&entity=ebook&country=ni): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /srv/users/serverpilot/apps/tribookni/public/book_main.php on line 11 ⏎ [PDF] By - Free eBook Downloads ⏎ Toggle navigation ⏎ Trendings ⏎ All Genres ⏎ Arts and Entertainment ⏎ Biographies and Memoirs ⏎ Business and Finance ⏎ Children and Teens ⏎ Comics and Graphic Novels ⏎ Computers and Internet ⏎ Cookbooks, Food and Wine ⏎ Fiction and L'
ID 41242 CH 707 ' events and activities help raise funds required to deliver the many “extras” that we have come to expect as standard for our children at Runnymede. In 2018/19, we raised over $91,700 to benefit all students! ⏎ Join the fun! E-mail email@example.com to help with the next event. ⏎ Get your Skate on!!! ⏎ Join the Runnymede PS school community for an exciting Marlies game & post-game skate! (Bring your own skates & helmet) ⏎ Sunday December 1st ⏎ Game: 4:00pm – 6:30pm ⏎ Post Game Skate: 7:00pm ⏎ Ti'
ID 95134 CH 9298 "<|endoftext|>Legolas is my love and I am his. ⏎ He is the spark beneath my fire, the sun upon my shoulders, the cornerstone of my hope, the reason I am here. ⏎ For long centuries it has been thus - he and I together - and I hope I am at least a fraction to him, of what he is to me. I think I am. He tells me I am and mostly I believe him. ⏎ But he has changed, my Legolas; he went to Imladris on his father's say so, and who can ever argue with the King? He went, he stayed and allowed Lord Elrond t"
ID 96627 CH 1139 ' Platform<|endoftext|>The U.S. Division of Housing and Urban Growth (HUD) was established in 1968. I have already got my very own copy and for anybody occupied with successful HUD investments, HUD HOMES ON THE MARKET is a Information that will stand up to the take a look at of time. A HUD home is a 1-to-4 unit residential property acquired by HUD (Department of Housing and City Improvement) as a result of a foreclosures motion on an FHA-insured mortgage. ⏎ It just relies on the neighborhood and '
ID 93858 CH 1207 ' it an iPhone? ⏎ Yes, an old one, not the gold standard. ;-) ⏎ Dear Merisi, these photographs are sublime. Your fabulous eyes always finds poetry.I am currently contemplating buying my very first smart phone, and would welcome any advice from folks like yourself who clearly find your mobile phone camera a good partner. xo ⏎ Thank you, Frances, you always brighten my day with your kind comments! I am not a great source of expertise regarding smart phones. I have an iPhone 5s, in its third year. I'
ID 53223 CH 955 'A true "Pony Club" shipping bandage does come down to the ground, like this: http://midcalponyclub.org/images/ima.../Bandaging.jpg ⏎ Many of us cheat and simply use a stable bandage when we trailer, which usually cups around the fetlock but does not wrap around the pastern. If you opt to do a true stable bandage, it should keep the legs clean. I would also not use polos, as they are intended to stay on for only a few hours. ⏎ As to wrapping both or just one leg, I have also heard that you need t'
ID 320 CH 1639 're: iPhone, Android Get Bing Search First ⏎ Couple of points that are WRONG in this. Silverlight is not supported on iOS and Android to deliver apps. Secondly WP7 has a far more powerful version of Bing - which includes scout, voice search, video search, barcode recognition etc etc. Also this is a hybrid app, which means elements have been written in HTML 5, so that will be the presentation layer only, not anything to do with how it works. Remember that the app will be doing all its main work vi'
ID 56287 CH 4467 '<|endoftext|>Enlisting strategy games is like grabbing a handful of pins and seeing which one hurts the most. Like every pin that pricks, every game involves some form of strategy. However, we decided to stick our hands in anyway to see what we’d come out with. So let’s not waste time gathering resources. It’s time to jump into action.Have a look here on Topyaps. ⏎ 10. Railroad Tycoon: ⏎ This business simulation game was designed by Sid Meier. The objective of this game is to build and manage a '
ID 81127 CH 377 '<|endoftext|>Moving parts has never been easier. Whether its from the Supply House, the Office or handling returns, or scrap parts, PartRunner is here for you. ⏎ We drive profitability for contractors, by enabling them to be more productive. Through PartRunner, they outsource their runner service and move to a 24/7 operation. ⏎ Have a Runner at your Service for any of your needs'
ID 128979 CH 10633 'ools vs. Endless Pools ⏎ (866) 558-7946 ⏎ Email ⏎ Search ⏎ FREE IDEA KIT ⏎ Toggle navigation ⏎ Call(866) 558-7946 ⏎ Free Idea Kit ⏎ Products ⏎ Original Endless Pools ⏎ Swim Spas ⏎ Fastlane ⏎ Streamline ⏎ WaterWell ⏎ Options ⏎ Commercial Endless Pools ⏎ Build Your Endless Pool ⏎ Galleries ⏎ Photo Gallery ⏎ Video Gallery ⏎ Try A Pool ⏎ Request a Demo ⏎ Visit Our Showroom ⏎ Pools In Your Neighborhood ⏎ House Tour ⏎ Backyard ⏎ Deck ⏎ Sunroom ⏎ Basement ⏎ Garage ⏎ Enclosures ⏎ Why Endless Pools? ⏎ Th'
ID 130561 CH 1559 'ername Availability Check ⏎ Logout ⏎ My Contests ⏎ Sign in with Facebook ⏎ Usernames ⏎ Instagram Names ⏎ Youtube Names ⏎ Gamertags ⏎ Nicknames ⏎ Personality ⏎ Name Contests ⏎ < Username Generator ⏎ Username Availability Check ⏎ Enter a Name: ⏎ Check Availailbity ⏎ Username Availability ⏎ Instagram ⏎ Youtube ⏎ Twitter ⏎ Tumblr ⏎ Blogger ⏎ PSN ⏎ Reddit ⏎ .COM Domain Check domain name availability ► ⏎ Generate More Usernames ⏎ Lifestyle Names ⏎ CultureLifestyle ⏎ FashionLifestyle ⏎ FinestLifestyle '
ID 44287 CH 1261 '<|endoftext|>Imuregen on children with ⏎ allergic & respiratory problems ⏎ A: Asthma Bronchial + supplement Imuregen ⏎ B: Asthma Bronchial without supplement ⏎ C: Chronic infection of upper respiratory tract + Imuregen ⏎ D: Chronic infection of the upper respiratory tract without supplement ⏎ In the continuation of this study, we have tested a total of 45 children with bronchial asthma and 43 children with chronic infections of the upper respiratory tract. As is obvious from graph 1, pronounced '
ID 107390 CH 4328 '<|endoftext|>Senator Obama went to Berlin and told a crowd of 200,000 Europeans that he was speaking to them not as a candidate for President of the United States, but as “a fellow citizen of the world.” He then proceeded to insult the memories of any German over age 30 and the intelligence of every American who remembers what the Berlin Wall was all about. ⏎ In Berlin, Obama credited the “people of the world” for bringing down the Berlin Wall. That will be surprising news to the people of Mexic'
ID 69208 CH 2196 ' / xxxiv + 761 pages / Softcover / ISBN: 978-0-898716-42-9 / List Price $105.50 / SIAM Member Price $73.85 / Order Code OT102 ⏎ At the heart of every medical imaging technology is a sophisticated mathematical model of the measurement process and an algorithm to reconstruct an image from the measured data. This book provides a firm foundation in the mathematical tools used to model the measurements and derive the reconstruction algorithms used in most imaging modalities in current use. In the pro'
ID 67787 CH 725 ", it's safe to say that I paid more than $50.00 for it... ⏎ I do think though that if Hasbro made something like this, about a $50 or $60 pricetag would be fair because they could mass produce it. ⏎ Gregorbian - No, I don't know Owen personally but wish I did... He does take great care in shipping however and uses very big boxes with loads and loads of packing material. Of the 20 or so items I've ordered from him, everything has arrived in perfect condition... and I'm sure this one will too. The"
ID 125713 CH 2175 '<|endoftext|>News: Call for Participant Applications: WERA International Webinar for Emergent Researchers of Multilingualism and Education – CSSE | SCÉÉ ⏎ Canadian Society for the Study of Education ⏎ Canadian Journal of Education ⏎ Sign In ⏎ Contact ⏎ \u200c ⏎ \u200c ⏎ Français ⏎ Home ⏎ About ⏎ Members ⏎ Associations ⏎ News ⏎ Conference ⏎ Jobs ⏎ Media ⏎ BlogNews: Call for Participant Applications: WERA International Webinar for Emergent Researchers of Multilingualism and Education ⏎ News: Call for Partic'
ID 79725 CH 1426 '<|endoftext|>Three different methods of measuring the proliferative capacity of transplanted mouse bone marrow were used to study the effects of preirradiation of the recipient. Recipient mice were exposed to 700 R and given graded numbers of syngeneic bone marrow. 7 days were allowed for proliferation of these cells, and then the granulocytic or erythrocytic progeny was measured. The former was determined by the response to endotoxin, and the latter by the incorporation of radioactive iron into'
ID 146093 CH 688 ' this site<|endoftext|>General Forum Entry ⏎ Skip navigation ⏎ Log in ⏎ HomeNetworksThe Media Development Network ⏎ Home Page ⏎ Calendar ⏎ General Forum ⏎ Members ⏎ Notebook ⏎ Shoutbox ⏎ Topic Tracker ⏎ Revisions for Arabic radio fiction series sparks discussions on women\'s role in society - "Be 100 Ragl" (Worth 100 Men) ⏎ View ⏎ View items ⏎ Revisions ⏎ Help ⏎ Revision ⏎ Operations ⏎ Jun 21, 2014 by Warren Feek ⏎ current revision ⏎ Jun 21, 2014 by Warren Feek ⏎ Jun 21, 2014 by antonella.notari '
ID 176971 CH 10856 ' Annual Year in Numbers | Agape Visuals ⏎ Skip to content ⏎ Agape Visuals ⏎ The Timpys ⏎ Menu ⏎ About ⏎ The Timpys ⏎ Why Agape? ⏎ Missional Year ⏎ Photography ⏎ Prints ⏎ Weddings ⏎ Couples ⏎ Families ⏎ Kids ⏎ Individuals ⏎ 35mm Film ⏎ Video Stories ⏎ Blog ⏎ Donate ⏎ Contact ⏎ Timpys in Asia (Part 2) & Our Annual Year in Numbers ⏎ January 6, 2018 April 4, 2018 | Jordan & Cassie ⏎ If you missed Timpys in Asia Part 1, click here to read the blog post about our time in Thailand, Vietnam and Indonesi'
ID 167163 CH 580 'o Ltd. ⏎ Top<|endoftext|>Illecillewaet Greenbelt | BC Nature Guide ⏎ BC Nature Guide ⏎ Guide to Viewing Wildlife & Nature in British Columbia ⏎ Menu ⏎ Skip to content ⏎ Home ⏎ BC Nature Viewing Regions ⏎ Vancouver Island Region ⏎ Sunshine Coast Region ⏎ Lower Mainland Region ⏎ Okanagan Region ⏎ Southeast Region ⏎ Thompson/Nicola Region ⏎ Cariboo Region ⏎ Central Region ⏎ Peace Region ⏎ Skeena Region ⏎ North Region ⏎ How to Use This Nature Guide ⏎ Nature Viewing Tips ⏎ Nominate a Nature Viewing S'
ID 129571 CH 6345 'AgriLife Research study focuses on feeding beef steers with algae co-products ⏎ Home ⏎ US ⏎ World ⏎ Politics ⏎ Business/Finance ⏎ Technology ⏎ Health ⏎ More Topics ⏎ Education ⏎ Literature ⏎ Self-help ⏎ Science ⏎ Home » AgriLife Research study focuses on feeding beef steers with algae co-products ⏎ TITLE ⏎ AgriLife Research study focuses on feeding beef steers with algae co-products ⏎ AUTHOR(S) ⏎ Fannin, Blair ⏎ PUB. DATE ⏎ May 2012 ⏎ SOURCE ⏎ Southwest Farm Press Exclusive Insight;5/30/2012, p3'
ID 148268 CH 24045 ' of: sleeve gastrectomy | Norway - List Results - ClinicalTrials.gov ⏎ Hide glossary ⏎ Glossary ⏎ Study record managers: refer to the Data Element Definitions if submitting registration or results information. ⏎ Search for terms ⏎ x ⏎ Skip to Main Content ⏎ × ⏎ Find Studies ⏎ New Search ⏎ Advanced Search ⏎ See Studies by Topic ⏎ See Studies on Map ⏎ How to Search ⏎ How to Use Search Results ⏎ How to Find Results of Studies ⏎ How to Read a Study Record ⏎ About Studies ⏎ Learn About Studies ⏎ Othe'
TOK OK 50257
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"python - <<'PY'\\nimport numpy as np\\nfrom transformers import GPT2TokenizerFast\\nt=GPT2TokenizerFast.from_pretrained('gpt2',local_files_only=True)\\na=np.load('/workspace/data/multi_dev.npy')\\nprint(a.shape,a.dtype)\\nfor i in range(0,len(a),20000):\\n print('\\\\n---',i,'---\\\\n',repr(t.decode(a[i:i+1800]))[:5000])\\nPY\",workdir:\"/workspace\",yield_time_ms:30000,max_output_tokens:20000}); text(r.output)\n"
}exec result
Script completed
Wall time 5.4 seconds
Output:
Warning: truncated output (original token count: 20028)
Total output lines: 52
Warning: truncated output (original token count: 62597)
Total output lines: 151
(1000000,) uint16
--- 0 ---
' Beardmore was sufficiently impressed with Shackleton to offer financial support , but other donations proved hard to come by . Nevertheless , in February 1907 , Shackleton presented to the Royal Geographic Society his plans for an Antarctic expedition , the details of which , under the name British Antarctic Expedition , were published in the Royal Society \'s newsletter , Geographic Journal . The aim was the conquest of both the geographical South Pole and the South Magnetic Pole . Shackleton then worked hard to persuade others of his wealthy friends and acquaintances to contribute , including Sir Philip Lee Brocklehurst , who subscribed £ 2 @,@ 000 ( 2011 equivalent £ 157 @,@ 000 ) to secure a place on the expedition ; author Campbell Mackellar ; and Guinness baron Lord Iveagh , whose contribution was secured less than two weeks before the departure of the expedition ship Nimrod . On 4 August 1907 , Shackleton was appointed a Member of the Royal Victorian Order , 4th Class ( MVO ; the present @-@ day grade of Lieutenant ) . \n<|endoftext|> On 1 January 1908 , Nimrod sailed for the Antarctic from Lyttelton Harbour , New Zealand . Shackleton \'s original plans had envisaged using the old Discovery base in McMurdo Sound to launch his attempts on the South Pole and South Magnetic Pole . However , before leaving England , he had been pressured to give an undertaking to Scott that he would not base himself in the McMurdo area , which Scott was claiming as his own field of work . Shackleton reluctantly agreed to look for winter quarters at either the Barrier Inlet ( which Discovery had briefly visited in 1902 ) or King Edward VII Land . \n<|endoftext|> To conserve coal , the ship was towed 1 @,@ 650 miles ( 2 @,@ 655 km ) by the steamer Koonya to the Antarctic ice , after Shackleton had persuaded the New Zealand government and the Union Steamship Company to share the cost . In accordance with Shackleton \'s promise to Scott , the ship headed for the eastern sector of the Great Ice Barrier , arriving there on 21 January 1908 . They found that the Barrier Inlet had expanded to form a large bay , in which were hundreds of whales , which led to the immediate christening of the area as the Bay of Whales . It was noted that ice conditions were unstable , precluding the establishment of a safe base there . An extended search for an anchorage at King Edward VII Land proved equally fruitless , so Shackleton was forced to break his undertaking to Scott and set sail for McMurdo Sound , a decision which , according to second officer Arthur Harbord , was " dictated by common sense " in view of the difficulties of ice pressure , coal shortage and the lack of any nearer known base . \n<|endoftext|> Nimrod arrived at McMurdo Sound on 29 January , but was stopped by ice 16 miles ( 26 km ) north of Discovery \'s old base at Hut Point . After considerable weather delays , Shackleton \'s base was eventually established at Cape Royds , about 24 miles ( 39 km ) north of Hut Point . The party was in high spirits , despite the difficult conditions ; Shackleton \'s ability to communicate with each man kept the party happy and focused . \n<|endoftext|> The " Great Southern Journey " , as Frank Wild called it , began on 29 October 1908 . On 9 January 1909 , Shackleton and three companions ( Wild , Eric Marshall and Jameson Adams ) reached a new Farthest South latitude of 88 ° 23 \' S , a point only 112 miles ( 180 km ) from the Pole . En route the South Pole party discovered the Beardmore Glacier ( named after Shackleton \'s patron ) and became the first persons to see and travel on the South Polar Plateau . Their return journey to McMurdo Sound was a race against starvation , on half @-@ rations for much of the way . At one point , Shackleton gave his one biscuit allotted for the day to the ailing Frank Wild , who wrote in his diary : " All the money that was ever minted would not have bought that biscuit and the remembrance of that sacrifice will never leave me " . They arrived at Hut Point just in time to catch the ship . \n<|endoftext|> The expedition \'s other main accomplishments included the first ascent of Mount Erebus , and the discovery of the approximate location of the South Magnetic Pole , reached on 16 January 1909 by Edgeworth David , Douglas Mawson , and Alistair Mackay . Shackleton returned to the United Kingdom as a hero , and soon afterwards published his expedition account , Heart of the Antarctic . Emily Shackleton later recorded : " The only comment he made to me about not reaching the Pole was \' a live donkey is better than a dead lion , isn \'t it ? \' and I said \' Yes darling , as far as I am concerned \' " . \n<|endoftext|> In 1910 , Shackleton made a series of three recordings describing the expedition using an Edison Phonograph . \n<|endoftext|> Several mostly intact cases of whisky and brandy left behind in 1909 were recovered in 2010 , for analysis by a distilling company . A revival of the vintage ( and
--- 20000 ---
' Ministers — the cabinet being its executive committee — headed by the prime minister . Any minister holding a portfolio must be a member of one of the houses of parliament . In the Indian parliamentary system , the executive is subordinate to the legislature ; the prime minister and his council are directly responsible to the lower house of the parliament . \n<|endoftext|> Legislative : The legislature of India is the bicameral parliament . It operates under a Westminster @-@ style parliamentary system and comprises the upper house called the Rajya Sabha ( " Council of States " ) and the lower called the Lok Sabha ( " House of the People " ) . The Rajya Sabha is a permanent body that has 245 members who serve in staggered six @-@ year terms . Most are elected indirectly by the state and territorial legislatures in numbers proportional to their state \'s share of the national population . All but two of the Lok Sabha \'s 545 members are directly elected by popular vote ; they represent individual constituencies via five @-@ year terms . The remaining two members are nominated by the president from among the Anglo @-@ Indian community , in case the president decides that they are not adequately represented . \n<|endoftext|> Judicial : India has a unitary three @-@ tier independent judiciary that comprises the Supreme Court , headed by the Chief Justice of India , 24 High Courts , and a large number of trial courts . The Supreme Court has original jurisdiction over cases involving fundamental rights and over disputes between states and the centre ; it has appellate jurisdiction over the High Courts . It has the power both to declare the law and to strike down union or state laws which contravene the constitution , as well as to invalidate any government action it deems unconstitutional . \n<|endoftext|> India is a federation composed of 29 states and 7 union territories . All states , as well as the union territories of Puducherry and the National Capital Territory of Delhi , have elected legislatures and governments , both patterned on the Westminster model . The remaining five union territories are directly ruled by the centre through appointed administrators . In 1956 , under the States Reorganisation Act , states were reorganised on a linguistic basis . Since then , their structure has remained largely unchanged . Each state or union territory is further divided into administrative districts . The districts in turn are further divided into tehsils and ultimately into villages . \n<|endoftext|> Since its independence in 1947 , India has maintained cordial relations with most nations . In the 1950s , it strongly supported decolonisation in Africa and Asia and played a lead role in the Non @-@ Aligned Movement . In the late 1980s , the Indian military twice intervened abroad at the invitation of neighbouring countries : a peace @-@ keeping operation in Sri Lanka between 1987 and 1990 ; and an armed intervention to prevent a 1988 coup d \'état attempt in Maldives . India has tense relations with neighbouring Pakistan ; the two nations have gone to war four times : in 1947 , 1965 , 1971 , and 1999 . Three of these wars were fought over the disputed territory of Kashmir , while the fourth , the 1971 war , followed from India \'s support for the independence of Bangladesh . After waging the 1962 Sino @-@ Indian War and the 1965 war with Pakistan , India pursued close military and economic ties with the Soviet Union ; by the late 1960s , the Soviet Union was its largest arms supplier . \n<|endoftext|> Aside from ongoing strategic relations with Russia , India has wide @-@ ranging defence relations with Israel and France . In recent years , it has played key roles in the South Asian Association for Regional Cooperation and the World Trade Organisation . The nation has provided 100 @,@ 000 military and police personnel to serve in 35 UN peacekeeping operations across four continents . It participates in the East Asia Summit , the G8 + 5 , and other multilateral forums . India has close economic ties with South America , Asia , and Africa ; it pursues a " Look East " policy that seeks to strengthen partnerships with the ASEAN nations , Japan , and South Korea that revolve around many issues , but especially those involving economic investment and regional security . \n<|endoftext|> China \'s nuclear test of 1964 , as well as its repeated threats to intervene in support of Pakistan in the 1965 war , convinced India to develop nuclear weapons . India conducted its first nuclear weapons test in 1974 and carried out further underground testing in 1998 . Despite criticism and military sanctions , India has signed neither the Comprehensive Nuclear @-@ Test @-@ Ban Treaty nor the Nuclear Non @-@ Proliferation Treaty , considering both to be flawed and discriminatory . India maintains a " no first use " nuclear policy and is developing a nuclear triad capability as a part of its " minimum credible deterrence " doctrine . I
--- 40000 ---
' " , such as Joe DiMaggio ( Italian @-@ American ) and Arthur Miller ( Jewish ) . According to Banner , she sometimes challenged prevailing racial norms in her publicity photographs ; for example , in an image featured in Look in 1951 , she was shown in revealing clothes while practicing with African @-@ American singing coach Phil Moore . \n<|endoftext|> Monroe was perceived as a specifically American star , " a national institution as well known as hot dogs , apple pie , or baseball " according to Photoplay . Banner calls her the symbol of populuxe , a star whose joyful and glamorous public image " helped the nation cope with its paranoia in the 1950s about the Cold War , the atom bomb , and the totalitarian communist Soviet Union " . Historian Fiona Handyside writes that the French female audiences associated whiteness / blondness with American modernity and cleanliness , and so Monroe came to symbolize a modern , " liberated " woman whose life takes place in the public sphere . Film historian Laura Mulvey has written of her as an endorsement for American consumer culture : \n<|endoftext|> If America was to export the democracy of glamour into post @-@ war , impoverished Europe , the movies could be its shop window ... Marilyn Monroe , with her all American attributes and streamlined sexuality , came to epitomise in a single image this complex interface of the economic , the political , and the erotic . By the mid 1950s , she stood for a brand of classless glamour , available to anyone using American cosmetics , nylons and peroxide . \n<|endoftext|> To profit from Monroe \'s popularity , 20th Century @-@ Fox cultivated several lookalike actresses , including Jayne Mansfield and Sheree North . Other studios also attempted to create their own Monroes : Universal Pictures with Mamie Van Doren , Columbia Pictures with Kim Novak , and Rank Organisation with Diana Dors . \n<|endoftext|> According to The Guide to United States Popular Culture , " as an icon of American popular culture , Monroe \'s few rivals in popularity include Elvis Presley and Mickey Mouse ... no other star has ever inspired such a wide range of emotions – from lust to pity , from envy to remorse . " Art historian Gail Levin has stated that Monroe may have been " the most photographed person of the 20th century " , and The American Film Institute has named her the sixth greatest female screen legend in American film history . The Smithsonian Institution has included her on their list of " 100 Most Significant Americans of All Time " , and both Variety and VH1 have placed her in the top ten in their rankings of the greatest popular culture icons of the twentieth century . Hundreds of books have been written about Monroe , she has been the subject of films , plays , operas , and songs , and has influenced artists and entertainers such as Andy Warhol and Madonna . She also remains a valuable brand : her image and name have been licensed for hundreds of products , and she has been featured in advertising for multinational corporations such as Max Factor , Chanel , Mercedes @-@ Benz , and Absolut Vodka . \n<|endoftext|> Monroe \'s enduring popularity is linked to her conflicted public image . On the one hand , she remains a sex symbol , beauty icon and one of the most famous stars of classical Hollywood cinema . On the other , she is also remembered for her troubled private life , unstable childhood , struggle for professional respect , and her death and the conspiracy theories surrounding it . She has been written about by scholars and journalists interested in gender and feminism , such as Gloria Steinem , Jacqueline Rose , Molly Haskell , Sarah Churchwell , and Lois Banner . Some , such as Steinem , have viewed her as a victim of the studio system . Others , such as Haskell , Rose , and Churchwell , have instead stressed Monroe \'s proactive role in her career and her participation in the creation of her public persona . \n<|endoftext|> Due to the contrast between her stardom and troubled private life , Monroe is closely linked to broader discussions about modern phenomena such as mass media , fame , and consumer culture . According to academic Susanne Hamscha , because of her continued relevance to ongoing discussions about modern society , Monroe is " never completely situated in one time or place " but has become " a surface on which narratives of American culture can be ( re- ) constructed " , and " functions as a cultural type that can be reproduced , transformed , translated into new contexts , and enacted by other people " . Similarly , Banner has called Monroe the " eternal shapeshifter " who is re @-@ created by " each generation , even each individual ... to their own specifications " . \n<|endoftext|> While Monroe remains a cultural icon , critics are divided on her legacy as an actress . David Thomson called her body of work " insubstantial " and Pauline Kael wrote that she could not act , but rather " used her lack of an actress
--- 60000 ---
' \'s final performance was in Stockholm , Sweden , at the Solnahallen Arena on September 26 , 1986 , one day before his death . \n<|endoftext|> During the European leg of the Damage Inc. tour in support of Master of Puppets , the band complained that the sleeping cubicles on their tour bus were unsatisfactory and uncomfortable . To decide who received pick of the bunks , Kirk Hammett and Burton drew cards . On the evening of September 26 , 1986 , Burton won the game with an ace of spades , thereby getting the first choice of bunk and pointed at Hammett and exclaimed , " I want your bunk ! " Hammett replied , " Fine , take my bunk , I \'ll sleep up front , it \'s probably better up there anyway . " Burton was sleeping shortly before 7 am on September 27 when , according to the driver , the bus skidded off the road ( the E4 , 12 miles north of Ljungby ) , and flipped onto the grass in Kronoberg County Burton was thrown through the window of the bus , which fell on top of him , resulting in his death . \n<|endoftext|> James Hetfield later stated that he first believed the bus flipped because the driver was drunk . Hetfield stated that he walked long distances down the road looking for black ice and found none . Local freelance photographer Lennart Wennberg ( who attended the crash scene the following morning ) , later asked in an interview about the likelihood that black ice caused the accident , said it was \' out of the question \' because the road was dry and the temperature around 2 ° C ( 36 ° F ) . This was confirmed by police who found no ice on the road . Ljungby detective Arne Pettersson was reported in a local newspaper to have said the tracks at the accident site were exactly like ones seen when drivers fall asleep at the wheel . However , the driver stated under oath that he had slept during the day and was fully rested ; his testimony was confirmed by the driver of a second tour bus that was carrying the band \'s crew and equipment . The driver was determined not at fault for the accident and no charges were brought against him . \n<|endoftext|> Burton \'s body was cremated and the ashes scattered at the Maxwell Ranch . At the ceremony , the song " Orion " was played . The lyrics " ... cannot the Kingdom of Salvation take me home " from " To Live Is to Die " are written on Burton \'s memorial stone . Shortly after Burton \'s death , Jason Newsted from Flotsam and Jetsam became Metallica \'s new bassist , a position he held until his resignation in 2001 . The role has since been filled by producer and studio musician Bob Rock and by the former bassist of Suicidal Tendencies and Ozzy Osbourne , Robert Trujillo . \n<|endoftext|> Metallica wrote a tribute to Burton titled " To Live Is to Die " for ... And Justice for All . Burton also received a writing credit for the lyrics and bass parts that were taken from unused bass recordings done by Burton which were re @-@ recorded by Jason Newsted . A non @-@ Metallica tribute to Burton is the song " In My Darkest Hour " by thrash metal band Megadeth . According to Dave Mustaine , due to hearing of Burton \'s death , he sat down and wrote the music for the song in one sitting . The lyrics , however , are unrelated to Burton \'s death . Mustaine was Metallica \'s lead guitarist in the early days and was a close friend of Burton at the time . \n<|endoftext|> On October 3 , 2006 , a memorial stone was unveiled in Sweden near the scene of the fatal crash . It is located by the parking lot to Gyllene Rasten . \n<|endoftext|> Thrash metal band Anthrax dedicated its album Among the Living to him , as did Metal Church with The Dark . \n<|endoftext|> On April 4 , 2009 , Burton was posthumously inducted into the Rock and Roll Hall of Fame , with fellow Metallica bandmates James Hetfield , Lars Ulrich and Kirk Hammett . Future bassists Jason Newsted and Robert Trujillo were inducted as well . During the ceremony , the induction was accepted by his father Ray Burton , who shared the stage with the band and mentioned that Cliff \'s mother was actually Metallica \'s biggest fan . \n<|endoftext|> A biography , To Live Is to Die : The Life and Death of Metallica \'s Cliff Burton , written by Joel McIver , was published by Jawbone Press in June 2009 . Hammett provided the book \'s foreword . \n<|endoftext|> In January 2013 , guitar manufacturer Aria revealed through Metallica \'s official website that they would be releasing a replica of Burton \'s bass , called the Aria Pro II Cliff Burton Signature Bass . They had received permission from Burton \'s family and former bandmates from Metallica to authorize the production of the instrument . The bass guitar was officially unveiled at Winter NAMM in Anaheim , California . On January 25 , 2013 , Burton \'s father Ray attended the press conference where he s…10028 tokens truncated…n\'t exist. (If it does exist, it\'s probably undocumented and may change in a future version.)</p><|endoftext|><p>I am developing webapp using jQuery.\nI have functionality that adds new row of 3 input fields. After creating these DOM elements I want to focus one of input fields. I am doing it with calling jQuery focus() function on necessary input field.</p>\n\n<p>Problem is that calling focus() works fine in IE6 and FF3.5, but not working in IE8.</p>\n\n<p>I was trying to make simple working example of this problem for showing it here, but with stripped version of code focus() is working fine. So my guess was that DOM is not ready yet when I call focus() in IE8. For this I tried calling setTimeout(\'myFocus()\',400). I had success and in some of cases focus was really working but still not always. Randomly it does not focus my input field.</p>\n\n<p>Question is: Has anybody faced similar problems and does anybody have any idea how to workaround it? Using setTimeout feels like very ugly workaround.</p>\n\n<p>Tnx in advance</p>\n\n<p>Edited : 26.08.2009</p>\n\n<p>Succeeded to reproduce on simple example. Here is HTML+JS code that reproduces this bug on IE8.</p>\n\n<pre><code><html>\n<head>\n <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>\n <script type="text/javascript">\n function performChanged() {\n formChanged = true;\n }\n\n function handleChange() {\n var parentDiv = $(\'#container\');\n newValue = $(html).html();\n\n parentDiv.html(newValue);\n $(".sel1",parentDiv).bind(\'change\',handleChange);\n //alert(\'Uncomment this and after alert focus will be on input\');\n $("input.cv_values",parentDiv).focus();\n }\n\n $(document).ready(function() {\n $(\'.trackChange\').bind(\'change\', handleChange);\n });\n var html = \'<div class=\\"div1\\">\\n<select class=\\"sel1\\" id=\\"sel1\\" name=\\"sel1\\"><option value=\\"\\"><\\/option>\\n<option value=\\"11\\">Select me to see problem<\\/option>\\n<\\/select>\\n\\n\\n<input class=\\"cv_values\\" id=\\"sel3\\" name=\\"sel3\\" size=\\"30\\" type=\\"text\\" value=\\"\\" /><br/>Focus should in input field. With alert it is but without alert focus is not there</div>\';\n </script>\n</head>\n<body>\n <select class="trackChange" onchange=\'performChanged();\'>\n <option value=""></option>\n <option value="1" >Select me to generate new inputs</option>\n </select>\n\n <div id="container"></div>\n</body>\n</code></pre>\n\n<p></p>\n\n<p>To reproduce:\n1) select value from first dropdown. You will see that first time input is working\n2) select value from second dropdown. You will see that bug is reproduced.</p>\n\n<p>Then in code you can comment out line where it shows JS alert(). Strange thing is that if there is this alert() then after it focus is working fine.</p>\n\n<p>Hope this helps to understand where my problem is.</p>\n\n<p>P.S. I need my app to work this way - it is regenerating those inputs after selecting value from dropdown. This is simplified example of my app ;).</p>\n\n<p>Since you have not posted any code are you using:</p>\n\n<pre><code>$(document).ready(function(){\n //code here\n});\n</code></pre>\n\n<p>This will make javascript run after the html is loaded.</p>\n\n<p>And you should use <a href="http://docs.jquery.com/Events/live" rel="nofollow noreferrer">live events</a> also. When your adding inputs to the dom the will automatically have focus binded to them.</p>\n\n<pre><code>$("p").live("focus", function(){\n alert( $(this).text() );\n});\n</code></pre>\n\n<p>This means that every p that is created will have a focus binded to it. </p>\n <p>I had a similar problem with my app, but I can\'t reproduce the focus problem with your code. My problem was slightly different in that my page had a link hash that made IE not give my element focus.</p>\n\n<p>Anyway, to get around the problem I added a timeout:</p>\n\n<pre><code>setTimeout(function () {\n $(\'.my-thing\').focus();\n}, 100);\n</code></pre>\n\n<p>Not noticeable by a user but it gives IE a moment to breathe.</p><|endoftext|><p>I\'d like to have vim display my comments in italics, and I understand I need to place</p>\n\n<pre>cterm=italic</pre>\n\n<p>in the</p>\n\n<pre>hi Comment</pre>\n\n<p>line in the color.vim file I\'m using. This, however, is having no effect on the text display, which I suspect has to do with some Terminal.app setting, unless I\'m misunderstanding the vim syntax. I\'d appreciate if someone can show me how to enable this feature.</p>\n\n<p>Additionally, I am currently using the Monaco font, which does not have a separate italic file (however, the italic syntax-highlighting doesn\'t work
--- 940000 ---
'View.Items[i]);\n // OR\n // ListView1.Items.RemoveAt(i);\n }\n}\n</code></pre>\n\n<p>EDIT:<br>\nThis might be better.</p>\n\n<pre><code>CheckedListViewCollection checked = ListView1.CheckedItems\nforeach (itm in checked)\n{\n ListView2.Items.Add(itm);\n ListView1.Items.Remove(itm);\n}\n</code></pre>\n <p>//Copy ListView</p>\n\n<pre><code>for (int i = ListView1.Items.Count - 1; i >= 0; i--)\n{\n if (ListView1.Items[i].Checked)\n {\n ListView2.Add(ListView1.Items[i]);\n }\n}\n\n\n//Delete checked \n\nListView1.CheckedIndexCollection checkedItemsList = listView1.CheckedIndices; \nwhile (checkedItemsList.Count > 0)\n{\n listView1.Items.RemoveAt(checkedItemsList[0]);\n}\n</code></pre>\n\n<p>Bye</p><|endoftext|><p>I can not seem to find out how to set an attribute to a SOAP request without using the <strong>XSD_ANYXML</strong> encoding.</p>\n\n<p>The request parameter should look as follows</p>\n\n<pre><code><request\n xmlns:ns="/some/ns">\n ...\n <ns:parameter attr="some attribute">\n value\n </ns:parameter>\n ...\n</request>\n</code></pre>\n\n<p>Of course the following code works, but it\'s rather ugly (ugly, because it uses string concatenation where it should <strong>use the SOAP_Client API</strong> and because it does not use the general namespace)</p>\n\n<pre><code>$param = new SoapVar(\n \'<ns_xxx:parameter xmlns:ns_xxx="/some/ns" attr="some attribute">\n value\n </ns_xxx:parameter>\',\n XSD_ANYXML\n);\n</code></pre>\n\n<p>Is there a better way to create a SOAP request parameter with a namespace and an attribute?</p>\n\n<p>I am looking for s.th. like the following (this is just some pseudo code using the <a href="http://php.net/manual/en/soapvar.soapvar.php" rel="noreferrer">SoapVar</a> API):</p>\n\n<pre><code>$param = new SoapVar(\n array(\n \'_\' => \'value\',\n \'attr\' => \'some attribute\'\n ), \n SOME_ENCODING,\n null,\n null,\n null,\n \'/some/ns\'\n);\n</code></pre>\n\n<p>SOAP does not support attributes, may be you should use REST instead!</p>\n\n<p><strong>EDIT:</strong>\nPlease check the body style w3c:"4.3 SOAP Body" and remember that\n you need to encode your message with "soap-envelope" namespace and describe\nyour XML types thats why, you can\'t use attributes to describe your message data. </p>\n\n<p>But if you ask me, it can be made possible! You can use a custom SoapClient parser or something like that and convert your message as you like it.\nA example of that may be RSS over SOAP <a href="http://www.ibm.com/developerworks/webservices/library/ws-soaprdf" rel="nofollow noreferrer">http://www.ibm.com/developerworks/webservices/library/ws-soaprdf</a>.\nBut, the problem would be that you would miss the descriptive information about your message data/types and other clients could not easy understand your messages!</p>\n\n<p>My best practice for you would be to use elements instead of attributes,\ni know you need to fix your XML schema but thats the way it goes or switch to a other technology.</p>\n <p>SOAP 1 does support attributes. Here is an example of Perl code using both attributes and values (from a client):</p>\n\n<pre><code>$som = $client->call(\n \'tran:getContent\',\n SOAP::Header->name(\'cred:credentials\')->attr({\n \'username\' => $username,\n \'password\' => \'xxx\',\n \'customerID\' => \'xxx\'}\n ),\n SOAP::Data->name(\'contentID\')->value(\'9999\')\n)\n</code></pre><|endoftext|><p>I recently have a problem that my java code works perfectly ok on my local machine, however it just wouldn\'t work when I deploy it onto the web server, especially the DB part. The worst part is that the server is not my machine. So I had to come back and forth to check the versions of softwares, the db accounts, the settings, and so on...</p>\n\n<p>I have to admit that I did not do a good job with the logging mechanism in the system. However as an newbie programmer with little experience, I had to accept my learning curves. Therefore, here comes a very general but important question:</p>\n\n<p>According to your experience, where would it be most likely to go wrong when it is working perfectly on the development machine but totally surprises you on the production machine?</p>\n\n<p>Thank you for sharing your experience.</p>\n\n<p>A production machine will likely miss some of the libraries and tools you have on your development machine. Or there may be older versions of them. Under circumstances it may interfere with the normal software function.</p>\n\n<p>Database connection situation may be different, meaning users and roles and access levels.</p>\n <p>You\'re most likely running under a different user account. So the environment that you inherit as a developer will be vastly different from that a a production user (which is likely to be a very cut down environment). Your PATH/LD_LIBRARY_P
--- 960000 ---
'-php/1301012#1301012">Quick question about sessions in PHP</a> which explains how to stay signed in. Just don\'t do a cronjob/sheduled task if you want the user to stay logged in forever.</p><|endoftext|><p>We\'re running Java Swing and are using an SWT bridge to get ahold of the SWT browser. Everything normally works just fine, but we have a problem on a Vista test machine. It worked fine until just a week ago or so. The call stack:</p>\n\n<pre><code>org.eclipse.swt.SWTError: No more handles\n at org.eclipse.swt.SWT.error(SWT.java:3589)\n at org.eclipse.swt.SWT.error(SWT.java:3481)\n at org.eclipse.swt.SWT.error(SWT.java:3452)\n at org.eclipse.swt.browser.IE.create(IE.java:184)\n at org.eclipse.swt.browser.Browser.<init>(Browser.java:109)\n ...\n</code></pre>\n\n<p>I have tried IE7 and IE8 through the SWT browser, but none is working (XULRunner is not applicable on our application since we need two browser instances).</p>\n\n<p>XP, Windows7 and Vista is working on other machines, and I can\'t exclude something being correpted on this specific machine. We got some Windows updates close to when this error started happening, they seem related. It is a our only Vista test machine with a virtual screen, has there been any Windows updates for IE relating to virtual screens that could cause this? To me it looks like a likely target for security holes, so maybe that could be it?</p>\n\n<p>I know this is looking for a needle in a haystack, but has anybody seen anything similar lately?</p>\n\n<p>Edit: looking at <a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt/Eclipse%20SWT%20Browser/win32/org/eclipse/swt/browser/IE.java?revision=1.52&view=markup" rel="nofollow noreferrer">the source</a>, I see that the <code>IE.create</code> method swallows an exception to throw this error - I\'d step into the <code>WebSite</code> constructor to try and figure out what\'s happening.</p>\n <p>My solution is not to embed the SWTBrowser into our Swing application at all. (I\'ve always hated web tech on desktop apps anyway. :)</p><|endoftext|><p>I\'m looking for a built-in Java functions which for example can convert <code>"\\\\n"</code> into <code>"\\n"</code>.</p>\n\n<p>Something like this:</p>\n\n<pre><code>assert parseFunc("\\\\n") = "\\n"\n</code></pre>\n\n<p>Or do I have to manually search-and-replace all the escaped characters?</p>\n\n<p>Just use the strings own replaceAll method.</p>\n\n<pre><code>result = myString.replaceAll("\\\\n", "\\n");\n</code></pre>\n\n<p>However if you want match all escape sequences then you could use a Matcher. See <a href="http://www.regular-expressions.info/java.html" rel="nofollow noreferrer">http://www.regular-expressions.info/java.html</a> for a very basic example of using Matcher.</p>\n\n<pre><code>Pattern p = Pattern.compile("\\\\(.)");\nMatcher m = p.matcher("This is tab \\\\t and \\\\n this is on a new line");\nStringBuffer sb = new StringBuffer();\nwhile (m.find()) {\n String s = m.group(1);\n if (s == "n") {s = "\\n"; }\n else if (s == "t") {s = "\\t"; } \n m.appendReplacement(sb, s);\n}\nm.appendTail(sb);\nSystem.out.println(sb.toString());\n</code></pre>\n\n<p>You just need to make the assignment to s more sophisticated depending on the number and type of escapes you want to handle. (Warning this is air code, I\'m not Java developer)</p>\n <p>Anthony is 99% right -- since backslash is also a reserved character in regular expressions, it needs to be escaped a second time:</p>\n\n<pre><code>result = myString.replaceAll("\\\\\\\\n", "\\n");\n</code></pre><|endoftext|><p>I\'m actually struggling with some piece of code. I do know that it can be refactored, but I can\'t find the nice-smart-elegant solution.</p>\n\n<p>Here are two functions (much more functions of that kind are in my code):</p>\n\n<pre><code>def fooA(param1, param2):\n if param2 == True:\n code_chunk_1\n\n fooA_code #uses only param1\n\n if param2 == True:\n code_chunk_2\n\n\ndef fooB(param1, param2):\n if param2 == True:\n code_chunk_1\n\n fooB_code #uses only param1\n\n if param2 == True:\n code_chunk_2\n</code></pre>\n\n<p>My first idea was to use this decorator:</p>\n\n<pre><code>def refactorMe(func):\n def wrapper(*args):\n if args[-1]:\n code_chunk_1\n\n func(*args)\n\n if args[-1]:\n code_chunk_2\n\n return wrapper\n</code></pre>\n\n<p>And finally:</p>\n\n<pre><code>@refactorMe\ndef fooA(param1, param2):\n fooA_code #uses only param1\n\n@refactorMe\ndef fooB(param1, param2):\n fooB_code #uses only param1\n</code></pre>\n\n<p>Unfortunately, I\'m not happy with this solution:</p>\n\n<ul>\n<li>This decorator is "intrusive" and specific to the fooA & fooB functions</li>\n<li>param2 is not used anymore in the fooA & fooB body, but we must keep it in the function signature</li>\n</ul>\n\n<p>Perhaps I\'m not using the decorator for its initial purpose?</p>\n\n<p>Is
--- 980000 ---
'http://www.google.co.uk/search?q=css+named+colors</a></p>\n\n<p>w3c html/css standards only specify 16 colours:</p>\n\n<p>aqua\nblack\nblue\nfuchsia\ngray\ngreen\nlime\nmaroon\nnavy\nolive\npurple\nred\nsilver\nteal\nwhite\nyellow</p>\n\n<p>everything else is non-standard - use hexcode instead.</p>\n <p>You can always compile your own colors:</p>\n\n<pre><code>background: rgb(245, 255, 255);\n</code></pre>\n\n<p>where the first property is the ammount of Red, the second is the ammount of Green and the third is the ammount of Blue.</p>\n\n<p>As long as you keep the values high (where 255 is max) the color will be light ;)</p><|endoftext|><p>I want to show some results in a GridView kind of way.\nBut for each page I want to show 3 "inner Repeaters" showing data from 1-10,11 20 and 21-30 respectively. You can see this in the folowing image.</p>\n\n<p><a href="http://img196.imageshack.us/img196/1285/examplesv.jpg" rel="nofollow noreferrer">alt text http://img196.imageshack.us/img196/1285/examplesv.jpg</a></p>\n\n<p>My question is, is this easier to buid with only one gridView, and several Item Templates, \nOR should I buid a new user control from strach?</p>\n\n<p>I\'d recommend building your own user control from scratch for this. Even when used for its intended purpose (displaying table-based data), working with the GridView is like having a root canal.</p>\n\n<p>In general, when it comes to non-standard UI elements (like what you\'re doing), you will probably end up spending much more time trying to hammer an existing control into the shape you need than you would just writing your own from the ground up.</p>\n <p>Do you need all the functionality of a gridview, or are you just rendering and paging data? If not, then perhaps the Gridview is not the appropriate control to build from.</p>\n\n<p>Also, be sure to look into the new ListView and datapager controls.</p>\n\n<p><a href="http://www.west-wind.com/WebLog/posts/127340.aspx" rel="nofollow noreferrer">http://www.west-wind.com/WebLog/posts/127340.aspx</a></p><|endoftext|><p>I want to experiment with an idea I have of automatically localizing software, or at least suggesting a reasonable translation if a localized string is not available.</p>\n\n<p>I\'m not sure this will be working satisfactorily tomorrow morning but I just wanted to play with this idea.</p>\n\n<p>Does anybody know of a dictionary that is free to use, and is in an easy to parse format, that can help me automatically translate words from English to other European languages (French, German, Spanish, etc) </p>\n\n<p>I don\'t know any dictionary but would like to point something out. You have to bear in mind that translating is not a direct word to word technique in any sense. The Rules of the language change as well and thus leave sentences unreadable. This is why even companies like Google have trouble making good translation software. Context is very hard to programmatically detect and context means everything in choosing the right word, the right structure and so on. </p>\n\n<p>Maybe use a Translation API, if there is one. <a href="http://code.google.com/apis/ajaxlanguage/" rel="nofollow noreferrer">Google only seem to do a JavaScript API for Language</a>.</p>\n <p>The <a href="http://www.freedict.org/de/" rel="nofollow noreferrer">FreeDict project</a> has quite a few relatively complete dictionaries. Most are from one language to english or vice versa, but some are between two non-english languages as well.</p><|endoftext|><p>I am working on a feather that export some tables(~50) to a disk file and import the file back to database. Export is quite easy, serialize dataset to a file stream. But when importing: table structure need to be determined dynamically.What I am doing now :</p>\n\n<pre><code>foreach table in dataset\n (compare table schemas that in db and imported dataset)\n define a batch command\n foreach row in table\n contruct a single insert sqlcommand,add it to batch command\n execute batch insert command\n</code></pre>\n\n<p>this is very inefficient and I also I meet some problem to convert datatype in dataset datatable to database datatable. So I want to know is there some good method to do so?</p>\n\n<p><strong>Edit:</strong></p>\n\n<p>In fact, import and export is 2 functions(button) in program, On UI, there is a grid that list lots of tables, what I need to implement is to export selected tables\'s data to a disk file and import data back to database later</p>\n\n<p>Why not use SQL Server\'s <a href="http://msdn.microsoft.com/en-us/library/ms187048.aspx" rel="nofollow noreferrer">native Backup and Restore</a> functionality? You can do incremental Restores on the data, and it\'s by far the fastest way to export and then import data again.</p>\n\n<p>There are a lot of very advanced options to take into account some fringe cases, but at it\'s heart, it\'s two commands: <a href="http://msdn.microsoft.com/en-us/library/ms186865.aspx" rel="nofollow noreferrer"><cod
The dev target confirms four sharply different registers: Wikipedia-style prose, curated web/news prose, and Stack Overflow-style technical Q&A with HTML/code. I’m treating domain balance as a first-class constraint; a single global “clean prose” score would under-select technical Q&A and likely hurt the broad average.
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"python - <<'PY'\\nimport numpy as np\\nfrom transformers import GPT2TokenizerFast\\nt=GPT2TokenizerFast.from_pretrained('gpt2',local_files_only=True); a=np.load('/workspace/data/multi_dev.npy')\\nfor i in [0,240000,250000,260000,490000,500000,510000,740000,750000,760000]:\\n print('\\\\n###',i,repr(t.decode(a[i:i+1000]))[:2500])\\nPY\",workdir:\"/workspace\",yield_time_ms:30000,max_output_tokens:18000}); text(r.output)\n"
}exec result
Script completed
Wall time 5.5 seconds
Output:
### 0 ' Beardmore was sufficiently impressed with Shackleton to offer financial support , but other donations proved hard to come by . Nevertheless , in February 1907 , Shackleton presented to the Royal Geographic Society his plans for an Antarctic expedition , the details of which , under the name British Antarctic Expedition , were published in the Royal Society \'s newsletter , Geographic Journal . The aim was the conquest of both the geographical South Pole and the South Magnetic Pole . Shackleton then worked hard to persuade others of his wealthy friends and acquaintances to contribute , including Sir Philip Lee Brocklehurst , who subscribed £ 2 @,@ 000 ( 2011 equivalent £ 157 @,@ 000 ) to secure a place on the expedition ; author Campbell Mackellar ; and Guinness baron Lord Iveagh , whose contribution was secured less than two weeks before the departure of the expedition ship Nimrod . On 4 August 1907 , Shackleton was appointed a Member of the Royal Victorian Order , 4th Class ( MVO ; the present @-@ day grade of Lieutenant ) . \n<|endoftext|> On 1 January 1908 , Nimrod sailed for the Antarctic from Lyttelton Harbour , New Zealand . Shackleton \'s original plans had envisaged using the old Discovery base in McMurdo Sound to launch his attempts on the South Pole and South Magnetic Pole . However , before leaving England , he had been pressured to give an undertaking to Scott that he would not base himself in the McMurdo area , which Scott was claiming as his own field of work . Shackleton reluctantly agreed to look for winter quarters at either the Barrier Inlet ( which Discovery had briefly visited in 1902 ) or King Edward VII Land . \n<|endoftext|> To conserve coal , the ship was towed 1 @,@ 650 miles ( 2 @,@ 655 km ) by the steamer Koonya to the Antarctic ice , after Shackleton had persuaded the New Zealand government and the Union Steamship Company to share the cost . In accordance with Shackleton \'s promise to Scott , the ship headed for the eastern sector of the Great Ice Barrier , arriving there on 21 January 1908 . They found that the Barrier Inlet had expanded to form a large bay , in which were hundreds of whales , which led to the immediate christening of the area as the Bay of Whales . It was noted that ice conditions were unstable , precluding the establishment of a safe base there . An extended search for an anchorage at King Edward VII Land proved equally fruitless , so Shackleton was forced to break his undertaking to Scott and set sail for
### 240000 'aics differ across countries , including Australia , China , Germany , Israel , Japan , and the United States and even across states within the US . \n<|endoftext|> The Japanese government through its Ministry of International Trade and Industry ran a successful programme of subsidies from 1994 to 2003 . By the end of 2004 , Japan led the world in installed PV capacity with over 1 @.@ 1 GW . \n<|endoftext|> In 2004 , the German government introduced the first large @-@ scale feed @-@ in tariff system , under the German Renewable Energy Act , which resulted in explosive growth of PV installations in Germany . At the outset the FIT was over 3x the retail price or 8x the industrial price . The principle behind the German system is a 20 @-@ year flat rate contract . The value of new contracts is programmed to decrease each year , in order to encourage the industry to pass on lower costs to the end users . The programme has been more successful than expected with over 1GW installed in 2006 , and political pressure is mounting to decrease the tariff to lessen the future burden on consumers . \n<|endoftext|> Subsequently , Spain , Italy , Greece — that enjoyed an early success with domestic solar @-@ thermal installations for hot water needs — and France introduced feed @-@ in tariffs . None have replicated the programmed decrease of FIT in new contracts though , making the German incentive relatively less and less attractive compared to other countries . The French and Greek FIT offer a high premium ( EUR 0 @.@ 55 / kWh ) for building integrated systems . California , Greece , France and Italy have 30 @-@ 50 % more insolation than Germany making them financially more attractive . The Greek domestic " solar roof " programme ( adopted in June 2009 for installations up to 10 kW ) has internal rates of return of 10 @-@ 15 % at current commercial installation costs , which , furthermore , is tax free . \n<|endoftext|> In 2006 California approved the \' California Solar Initiative \' , offering a choice of investment subsidies or FIT for small and medium systems and a FIT for large systems . The small @-@ system FIT of $ 0 @.@ 39 per kWh ( far less than EU countries ) expires in just 5 years , and the alternate " EPBB " residential investment incentive is modest , averaging perhaps 20 % of cost . All California incentives are scheduled to decrease in the future depending as a function of the amount of PV capacity installed . \n<|endoftext|> At the end of 2006 , the O
### 250000 "Description of a very high speed transit (VHST) system operating in its own rarefied atmosphere in evacuated tubes in underground tunnels. Most cases considered took less time to go coast-to-coast (e.g., 21 min) than it takes an aircraft to climb to an efficient operating altitude. VHST's tubecraft ride on, and are driven by, electromagnetic (EM) waves. In accelerating, it employs the energy of the surrounding EM field; in decelerating, it returns most of this energy to the system. Tunnel systems would be shared by oil, water, and gas pipelines; channels for laser and microwave waveguides; electric power lines including superconducting ones; and freight systems. Environmental and economic benefits are substantial, and the technology for building and operating the system exists.\n\nThis report is part of the RAND Corporation paper series. The paper was a product of the RAND Corporation from 1948 to 2003 that captured speeches, memorials, and derivative research, usually prepared on authors' own time and meant to be the scholarly or scientific contribution of individual authors to their professional fields. Papers were less formal than reports and did not require rigorous peer review.\n\nPermission is given to duplicate this electronic document for personal use only, as long as it is unaltered and complete. Copies may not be duplicated for commercial purposes. Unauthorized posting of RAND PDFs to a non-RAND Web site is prohibited. RAND PDFs are protected under copyright law. For information on reprint and linking permissions, please visit the RAND Permissions page.\n\nThe RAND Corporation is a nonprofit institution that helps improve policy and decisionmaking through research and analysis. RAND's publications do not necessarily reflect the opinions of its research clients and sponsors.<|endoftext|>Five of the leading commanders at the centre of Turkey’s failed military coup have reportedly ‘committed suicide’ as the investigation into the takeover continues.\n\nIstanbul’s former Security Branch Manager Mithat Aynacı, who was arrested after being pulled from a tank dressed in military camouflage, has reportedly killed himself while in prison.\n\n8 Mithat Aynacı being taunted by an angry mob after being pulled from his tank\n\nFETÖ'cü Emniyet Müdürü Mithat Aynacı askeri darbe girişimi gecesi Vatan Caddesi'nde kamuflajla tank içinde yakalandıhttps://t.co/7xUvPLroEf — Yeni Şafak (@yenisafak) July 19, 2016\n\nOn July 22, Lieutenant Colonel Levent Önder shot hims
### 260000 ' tonnes shipped in 2015, further exacerbating a tightening rice market as drought has also hit top rice exporters India and Thailand.\n\nWatched by Cambodia\'s King Norodom Sihamoni, and a crowd of thousands in the ceremonial furrow in Siem Reap province, the two cows ate 90 percent of three out of seven snacks on offer in ornate bowls.\n\nEach year, based on the oxen\'s choice of crops and the amount the animals eat, the Royal Palace astrologers forecast coming harvests and pray for regular rainfall.\n\n"The harvest of rice will be good," Brahmin priest Korng Ken, dressed in traditional white robes, announced over loud speakers at the ceremony.\n\nBut rains so far this month have been insufficient for farmers to start planting rice, said Keo Vy, a spokesman for the National Center for Disaster Management (NCDM).\n\nAuthorities have had to truck water supplies to 18 of Cambodia\'s 25 provinces, with some 2.5 million people affected by the drought, he said.\n\n"We know that the harvests and exports are affected," Keo Vy said, adding that the extent of the damages was not yet known.\n\nLast year\'s exports of 530,000 tonnes were well below the target of 1 million tonnes, partly because of drought but also due to a lack of finance for millers and a global supply glut.\n\nThis year shipments could be 10 percent lower again, said Kann Kunthy, chief executive of rice miller Brico, adding that farmers desperately need rain by July.\n\nKunthy said that the industry was also concerned about the danger of floods after the drought. International forecasters see the arrival of La Nina weather pattern increasingly likely this year. That typically brings more rain to the region.\n\n"Farmers are not able to grow rice because of the drought and normally when it ends, there will be floods so this is another big concern," Kunthy said.\n\n(Editing by Simon Webb and Michael Perry)\n\nOur Standards: The Thomson Reuters Trust Principles.<|endoftext|>“The original version was that he was going to get bit by a guard dog,” Gilligan said, leaning up against a rail and squinting against the New Mexico sun. “But the guard dog would have cost us $25,000, and we didn’t have the money. So we came up with the $5,000 outhouse gag. Which is quite a bit more memorable.”\n\nMordantly amusing ordeals are a specialty on “Breaking Bad,” which begins its fourth season on July 17. Credit the show’s forbiddingly grim premise: A 50-year-old high-school chemistry teacher named Walter White (played
### 490000 ' Life rally and to talk about improvements to mental health treatment in the province.\n\n"[People] can\'t be complacent, they can\'t hide behind their doors, they have to get involved," Bonnie Bricker said.\n\n"We can\'t afford to be lazy and not involved in this."\n\nThe rally honoured Bricker\'s son, Reid, who died after suffering from depression.\n\nReid disappeared following his release from the Health Sciences Centre in 2015 where he was under care for attempting suicide. It was the third time in less than two weeks he had been admitted for trying to take his life.\n\nPartial remains were found in the Red River in June. After DNA analysis, Reid\'s parents received confirmation that it was their son.\n\nThe steps of the Manitoba Legislative Building were full of people supporting mental wellness in Manitoba on Sunday. (CBC)\n\nManitoba family physician Susan Hauch said, unfortunately, Reid\'s story isn\'t isolated. It is estimated that one in five Canadians will develop a mental illness at some time in their lives.\n\n"More alarming is actually the youth in Canada," Hauch said. "Between [the ages of] 12 and 19, there are 3.2 million Canadian youth at risk of depression and about two million with depression, of which suicide is the leading cause of death in that age group."\n\nHauch added that mental health issues are often stigmatized.\n\n"Mental health issues affect Canadian society in many different ways and we need to find ways that we can affect change at all the different levels — medical care level, societal level, community level, and individual level," she said. "We need to start somewhere."<|endoftext|>Dear friends! I have been guided to share this film with you, because it has given me a very different perspective on “the greatness within”. For this film shows the unbelievable complexity that is within just one single cell in our body, and when you think of the fact that every one of us are made up of billions of these diverse cells, all collaborating and communicating with each other, it makes you realize that this intelligence, this Creator that we are a part of, is capable of creating wonders that our human mind cannot even begin to understand.\n\nOur human mind cannot even fully explain our DNA, for it contains such a vast collection of information. But what they have found, is that much of that information seems to be “dormant”, the scientists have even referred to it as “junk DNA”. Perhaps now is the time to wake up this Sleeping Beau
### 500000 'I fucking hate when he does this shit pic.twitter.com/kpmcHnW4Cz — Miley Ray Cyrus (@MileyCyrus) April 22, 2018\nSinger-actress Miley Cyrus has shared a rare video of herself with her partner, actor Liam Hemsworth, on social media. She shared a video of them both in a car, which showed Hemsworth listening to rap music as he drove them to their destination.Cyrus captioned the image: "I f***ing hate it when he does this s**t."In the clip, she was sporting a top which had the word \'Sunday\' emblazoned across the front as she sat in the passenger seat. With his music blaring out, she filmed herself dancing and bopping her head to the music. Then all of a sudden, he made Cyrus jump as he suddenly screamed at her, causing to drop her phone in panic.(With IANS inputs)<|endoftext|>Uttar Pradesh chief minister Yogi Adityanath has maintained that 63 children in government-run Gorakhpur hospital died because of their ailments and not oxygen shortage, but grieving parents say their children were fine till the oxygen supply was cut.Some like Mohd Zahid, father of a five-year-old, alleged that BRD hospital authorities refused to declare their children dead, even as their bodies had turned ice cold as this would have further taken up the death toll.Another father said that while his son started bleeding from the nose, the hospital staff dismissed it saying, “Kachra nikal raha hai” (It’s just body waste that is coming out).In a harrowing tragedy exposing the sorry state of medical facilities in Uttar Pradesh, at least 32 children perished between August 10 and 11, allegedly due to no oxygen supply. A total of 63 children died within a span of five days, even as different ministers here could be seen making repeated tours of the BRD Medical College and passing the buck.The chief minister even dubbed the claim of oxygen shortage as fake news. Health Minister Sidharth Nath Singh attributed various other reasons to the tragedy. Yet, nothing can be done to ease the pain of these families.Zahid, who lives 7 kms from the Gorakhpur hospital, would have liked his daughter Khushi to become a doctor.Khushi was diagnosed with encephalitis and admitted to the hospital on August 10. Shreya DhoundialKhushi was diagnosed with encephalitis and admitted on August 10. While she was put on oxygen support on Thursday, hours later the supply was pulled out without any explanation. The family was handed an Ambu pump and asked to keep pumping to keep their child alive.Zahid insists his daughte
### 510000 " playing a Test match or what! Such a confident shot against one of the better spinners going around. 124/1\n34.1 Y Shah to Samarawickrama, Loopy ball around off, defended off the front foot onto the ground. 118/1\n33.6 W Riaz to Karunaratne, Another delivery is kept out from within the crease. A maiden from Riaz! 118/1\n33.5 W Riaz to Karunaratne, Karunaratne blocks this ball from within the crease. 118/1\n33.4 W Riaz to Karunaratne, The batsman has defended it by getting right behind the line of the delivery. 118/1\n33.3 W Riaz to Karunaratne, This delivery around off is defended from within the crease. 118/1\n33.2 W Riaz to Karunaratne, This ball is defended off the back foot towards point. 118/1\n33.1 W Riaz to Karunaratne, Length delivery around off, pushed towards backward point. 118/1\n32.6 Y Shah to Samarawickrama, This is landed around middle and leg, the batsman goes back and turns it towards mid on. 118/1\n32.5 Y Shah to Samarawickrama, Ooooh! Deceived in flight! Yasir Shah floats it gently outside off, Samarawickrama looks to go downtown but had to abort the shot as he was just flummoxed by the bowler. Thankfully, he didn't get an edge there. 118/1\n32.4 Y Shah to Samarawickrama, Defended off the back foot by the batsman. 118/1\n32.3 Y Shah to Samarawickrama, Tossed up ball outside off, cut towards point. 118/1\n32.2 Y Shah to Samarawickrama, In response, Yasir bowls it quicker around off. Sadeera defends it off the front foot. 118/1\n32.1 Y Shah to Samarawickrama, FOUR! Goodness, glorious, gracious! Shah tosses this one generously around off, Samarawickrama charges down the track and plays it inside out over covers for a boundary. Beautifully played. 118/1\n31.6 W Riaz to Karunaratne, Another delivery around off is blocked off the front foot. 114/1\n31.5 W Riaz to Karunaratne, The batsman has punched the ball off the back foot. 114/1\n31.4 W Riaz to Karunaratne, Bowled around off, defended off the front foot by Dimuth. 114/1\n31.3 W Riaz to Karunaratne, This is defended off the back foot. 114/1\n31.2 W Riaz to Karunaratne, Confusion, but all's well that ends well! It is a yorker around middle and leg, Karunaratne digs it to the leg side! He wants a run and Samarawickrama is quick to respond, but the senior partner sends him back. The fielder has a shy at the non-striker's end but misses. Sadeera had made it in though. 114/1\n31.1 W Riaz to Karunaratne, Lands it on a length around off, Dimuth defends it from the crease. 114/1\n30.6 Y Shah to S
### 740000 ' the world."Her show Superstore follows the lives of different individuals working in the store. The second season is currently on air. Ferrera says diversity drew her to the project."The writer and creator of the show worked the pilot script first well before I was attached to it as an actor and producer. These elements (diversity and human interest issues) definitely made the project exciting to me. It was a unique, funny and grounded representation of real people," she said.<|endoftext|>Top Hizbul Mujahideeen commander Yasin Ittoo was among the three terrorists gunned down by the security forces in an overnight operation in Shopian district in south Kashmir.Two Army men had lost their lives in the gunfight that started on Saturday evening and stretched till Sunday morning. Three soldiers had also been injured in the encounter.Ittoo was on top of a list of militant targets released by the Army earlier this year. A resident of Nagam Chadoora in Budgam, he was famous as Mehmood Gaznavi. The news of his death was confirmed by the official handle of J&K Police\'s twitter handle.Police said Ittoo, who was from Budgam district of central Kashmir, had a long association with Hizbul Mujahideen and was involved in keeping alive the prolonged unrest of 2016 following the killing of group\'s commander Burhan Wani in an encounter with security forces, besides recruiting several young men into the outfit.He was identified by his family members who were brought to the scene of the encounter by police from their residence in Budgam.Often called a \'vintage militant\' as he joined Hizbul Mujahideen in 1996, Ittoo had surrendered in 2007 and later released on parole in 2014. He joined the militant group again and was its self-styled chief operations commander.In a video message posted online last month, Ittoo had warned of several attacks on the security forces. He was also believed to be behind the wave of bank robberies in Kashmir in the last few months as HM looked to ramp up its operations and induct more men for its attacks. The HM commander had also urged Kashmir policemen to join the terror outfit and offered support for stone-pelters.Giving details about the encounter, a defence spokesman said that security forces had launched a cordon and search operation after receiving information about the presence of militants in Avneera village in Zainapora area of the district on Saturday.As the forces were conducting searches, the militants opened fire on them which was
### 750000 '<p>I found the platform module but it says it returns \'Windows\' and it\'s returning \'Microsoft\' on my machine. I notice in another thread here on stackoverflow it returns \'Vista\' sometimes.</p>\n<p>So, the question is, how do implemement?</p>\n<pre><code>if is_windows():\n ...\n</code></pre>\n<p>In a forward compatible way? If I have to check for things like \'Vista\' then it will break when the next version of windows comes out.</p>\n<hr />\n<p>Note: The answers claiming this is a duplicate question do not actually answer the question <code>is_windows</code>. They answer the question "what platform". Since many flavors of windows exist none of them comprehensively describe how to get an answer of <code>isWindows</code>.</p>\n\n<p>Python <a href="http://docs.python.org/library/os.html" rel="noreferrer">os</a> module</p>\n\n<p>Specifically for Python 3.6/3.7:</p>\n\n<blockquote>\n <p><code>os.name</code>: The name of the operating\n system dependent module imported. The\n following names have currently been\n registered: \'posix\', \'nt\', \'java\'.</p>\n</blockquote>\n\n<p>In your case, you want to check for \'nt\' as <code>os.name</code> output:</p>\n\n<pre><code>import os\n\nif os.name == \'nt\':\n ...\n</code></pre>\n\n<p>There is also a note on <code>os.name</code>:</p>\n\n<blockquote>\n <p>See also <a href="https://docs.python.org/3.5/library/sys.html#sys.platform" rel="noreferrer"><code>sys.platform</code></a> has a finer granularity. <a href="https://docs.python.org/3.5/library/os.html#os.uname" rel="noreferrer"><code>os.uname()</code></a> gives\n system-dependent version information.</p>\n \n <p>The <a href="https://docs.python.org/3.5/library/platform.html#module-platform" rel="noreferrer">platform</a> module provides\n detailed checks for the system’s identity.</p>\n</blockquote>\n <p>You should be able to rely on <a href="http://docs.python.org/library/os.html" rel="noreferrer">os</a>.name.</p>\n\n<pre><code>import os\nif os.name == \'nt\':\n # ...\n</code></pre>\n\n<p>edit: Now I\'d say the clearest way to do this is via the <a href="http://docs.python.org/2/library/platform.html" rel="noreferrer">platform</a> module, as per the other answer.</p><|endoftext|><p>using the linqtemplates, I tried getting the linq syntax close to what is in the <a href="http://subsonicproject.com/docs/Linq_Select_Queries" rel="nofollow noreferrer">docs</a></p>\n\n<pre><code> var query = from c in db.CountyLookups\n
### 760000 ' echo "Line 0: \'${LINES[0]}\'"\n echo "Line 1: \'${LINES[1]}\'"\n # Line 0: \'Hello\'\n # Line 1: \'there\'\n);(\n echo Test 10\n local LINE_STR=$( emulateUnsafeInput )\n eval declare -a LINES=( ${LINE_STR} )\n echo "Line 0: \'${LINES[0]}\'"\n echo "Line 1: \'${LINES[1]}\'"\n # Line 0: \'root just got haxxored\'\n # Line 1: \'Hahaha!\'\n);(\n echo Test 11\n local LINE_STR=$( emulateUnsafeInput )\n eval declare -a LINES=( "${LINE_STR}" )\n echo "Line 0: \'${LINES[0]}\'"\n echo "Line 1: \'${LINES[1]}\'"\n # Line 0: \'root just got haxxored\'\n # Line 1: \'Hahaha!\'\n);(\n echo Test 12\n local LINE_STR=$( emulateUnsafeInput )\n declare -a LINES=( $( eval echo ${LINE_STR} ) )\n echo "Line 0: \'${LINES[0]}\'"\n echo "Line 1: \'${LINES[1]}\'"\n # Line 0: \'root\'\n # Line 1: \'just\'\n);(\n echo Test 13\n local LINE_STR=$( emulateUnsafeInput )\n declare -a LINES=( $( eval echo "${LINE_STR}" ) )\n echo "Line 0: \'${LINES[0]}\'"\n echo "Line 1: \'${LINES[1]}\'"\n # Line 0: \'root\'\n # Line 1: \'just\'\n)\n}\n\nexecute\n</code></pre>\n\n<p>For the data function use <code>echo -e</code> and separating data with newlines:</p>\n\n<pre><code>getLines() { echo -e "\\"Hello there\\"\\n\\"loyal user\\""; }\n</code></pre>\n\n<p>To read the data, use process substitution and redirection:</p>\n\n<pre><code>i=0\nwhile read -r\ndo\n arr[i++]=$REPLY\ndone < <(getLines)\n# Line 0: \'"Hello there"\'\n# Line 1: \'"loyal user"\'\n</code></pre>\n\n<p>This leaves the quotes around the strings, though.</p>\n\n<p>Based on techniques from <a href="http://mywiki.wooledge.org/BashFAQ/005" rel="nofollow noreferrer">here</a>.</p>\n <p>The following <a href="http://notes-matthewlmcclure.blogspot.com/2009/10/return-array-from-bash-function.html" rel="nofollow noreferrer">handles spaces in array elements correctly</a>:</p>\n\n<pre><code>#! /bin/bash\n\n# $ ./return_an_array.sh \n# ./return_an_array.sh: line 9: declare: returned_array: not found\n# declare -a returned_array=\'([0]="one" [1]="two three")\'\n\nreturn_an_array()\n{\n local -a an_array=( \'one\' \'two three\' )\n declare -p an_array\n}\n\ndeclare -p returned_array\neval $(return_an_array | sed -e \'s/^\\(declare -a \\)[^=]*=/\\1 returned_array=/\')\ndeclare -p returned_array\n</code></pre><|endoftext|><p>I have two questions.</p>\n\n<p>1) Which of these will release ob?</p>\n\n<pre><code>- (void){\n ClassOne *ob = [[Class
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"python - <<'PY'\\nimport json,re,collections,random,time\\np='/workspace/data/pool.jsonl'\\npatterns={\\n 'htmlqa':re.compile(r'<p>.*(?:<pre><code>|<code>)',re.S),\\n 'wiki_art':re.compile(r' @[-,.]@ '),\\n 'eot':re.compile(r'<\\\\|endoftext\\\\|>'),\\n 'reuters':re.compile(r'Reuters|Our Standards: The Thomson Reuters Trust Principles',re.I),\\n 'news':re.compile(r'(?i)said (?:on |in |at |the |that |he |she |it |they |a |an )'),\\n 'code':re.compile(r'(?i)(?:function\\\\s+\\\\w+\\\\s*\\\\(|def\\\\s+\\\\w+\\\\s*\\\\(|#include\\\\s*[<\\\"]|public static void|stackoverflow)'),\\n}\\nc=collections.Counter(); ex={k:[] for k in patterns}; lens=[]\\nwith open(p) as f:\\n for line in f:\\n o=json.loads(line); t=o['text']; lens.append(len(t))\\n for k,r in patterns.items():\\n if r.search(t):\\n c[k]+=1\\n if len(ex[k])<8: ex[k].append((o['id'],len(t),t[:180].replace('\\\\n',' ')))\\nprint(c)\\nprint('chars',sum(lens),'mean',sum(lens)/len(lens),'median',sorted(lens)[len(lens)//2])\\nfor k,v in ex.items():print('\\\\n',k,*v,sep='\\\\n')\\nPY\",workdir:\"/workspace\",yield_time_ms:30000,max_output_tokens:16000}); text(r.output)\n"
}exec result
Script running with cell ID 5
Wall time 11.0 seconds
Output:
encrypted chain-of-thought — recorded, not exposed
args
{
"cell_id": "5",
"yield_time_ms": 30000,
"max_tokens": 16000
}wait result
Script completed
Wall time 14.9 seconds
Output:
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"python -u - <<'PY'\\nimport json,collections,re\\nc=collections.Counter(); ex=collections.defaultdict(list); n=tot=0; ls=[]\\nwith open('/workspace/data/pool.jsonl') as f:\\n for line in f:\\n o=json.loads(line); t=o['text']; n+=1;tot+=len(t);ls.append(len(t))\\n hits={'htmlqa':('<p>' in t and ('<pre><code>' in t or '<code>' in t)), 'wiki_art':(' @-@ ' in t or ' @,@ ' in t),'eot':('<|endoftext|>' in t),'reuters':('Reuters' in t or 'Thomson Reuters Trust' in t),'stackoverflow':('stackoverflow' in t.lower()),'code':('public static void' in t or '#include <' in t or '\\\\ndef ' in t)}\\n for k,h in hits.items():\\n if h:\\n c[k]+=1\\n if len(ex[k])<5:ex[k].append((o['id'],len(t),t[:140].replace('\\\\n',' ')))\\nprint(n,tot,sorted(ls)[n//2],c,flush=True)\\nfor k,v in ex.items(): print(k,v,flush=True)\\nPY\",workdir:\"/workspace\",yield_time_ms:30000,max_output_tokens:10000}); text(r.output)\n"
}exec result
Script running with cell ID 6
Wall time 11.0 seconds
Output:
encrypted chain-of-thought — recorded, not exposed
args
{
"cell_id": "6",
"yield_time_ms": 30000,
"max_tokens": 10000
}wait result
Script completed
Wall time 0.0 seconds
Output:
182016 770537151 2246 Counter({'eot': 125536, 'reuters': 777, 'code': 60, 'stackoverflow': 47, 'htmlqa': 7})
reuters [(38, 33891, 'Larry Kim, Founder and Chief Technology Officer Larry Kim founded WordStream in 2007. He bootstrapped the company by providing internet cons'), (266, 6255, 'BAGHDAD: Iraq’s move to inspect Iranian aircraft flying to Syria may appease the United States but also shows how the crisis in Damascus has'), (638, 5696, 'DoJ to Brush Cobwebs Off Music Licensing Agreements The U.S. Department of Justice this week said it would review long-held agreements with '), (1100, 14033, 'Nearly a decade ago, California policymakers, facing a frightening future of shriveling snow packs and rising seas, created the nation’s mos'), (1120, 3868, 'LONDON (Reuters) - Prime Minister Theresa May should stop misleading voters and admit that Brexit can be avoided if Britain decides unilater')]
code [(7594, 2578, 'Truncate a file to a specified length #include <unistd.h> int truncate( const char* path, off_t length ); int truncate64( const char* path, '), (20275, 7356, 'Welcome, United States Customer! Choose your location and preferred currency for a localized shopping experience. NOW AVAILABLE: CLICK TO GE'), (20912, 1090, 'Debugging Classpath Problems I recently found this useful and thought others might too: Add this to public static void main(String argv) bef'), (30223, 11441, ' David Hansson - Dan Kubb - Ernest Prabhakar - Brad Gessler [Portions may be obsoleted due to above plug-ins solving these problems differen'), (35184, 1695, "<|endoftext|>I'm trying to set up my RoR 3 application to receive emails and then process those emails and insert them into the database. In")]
stackoverflow [(11034, 4976, 'Join Microsoft Technical Evangelists for upcoming app mashup webcasts designed to walk you through start to finish for your Windows 8 app in'), (12392, 6987, 'Silicon Power Armor A66 Review: Solid yet Obsolete The Armor A66 is the first portable hard drive I’ve reviewed in a long time since the WD '), (12920, 2145, 'use the following search parameters to narrow your results: e.g. subreddit:aww site:imgur.com dog subreddit:aww site:imgur.com dog see the s'), (13746, 4110, 'Scaling the Windows Stack George Beech @GABeech PICC ‘12. out of 23 Post on 27-Dec-2015 Embed Size (px) <p>PowerPoint Presentation</p> <p>Sc'), (17200, 27108, 'Bowls USA is an affiliate of World Bowls Central is a division of Subscribe to updatesnot download hitler in cookies project at each ErrorDo')]
eot [(23928, 3176, '<|endoftext|>Leadership Skills for Staff Engagement in Improving Quality - A Practical Toolkit In healthcare, how we engage with staff and e'), (23930, 3513, '<|endoftext|>Self-esteem -- your perception of your worthiness -- develops during your early childhood years and can have an enormous effect'), (23931, 1324, ' and video devices include televisions, players, headsets, digital cameras, remote controls and speakers. These diverse devices all have dif'), (23933, 6454, '<|endoftext|>On July 20, as I was roughing out an essay about Berlin for this page, a settlement was announced between Vienna’s Leopold Muse'), (23935, 2879, '<|endoftext|>Motorists in Ontario have a contractual relationship with their insurance company. If you have any type of insurance, you have ')]
htmlqa [(28721, 1781, "++ I'm commenting mostly just to bump this excellent piece of advice. Since port is rarely important and I like to use this idiom in additio"), (88358, 1561, '<|endoftext|>OO in the real world.... - Wrench set - Socket Set - Screwdriver set - Pots and pans OO exists in many place in many ways. It i'), (91439, 2065, "Sorry that this reply is almost boiler-plate, but... - Does that site's usage guidance permit scraping? - Do you have authority/permission t"), (134595, 2399, ' Objects 4.0 - Overview Main Menu Home Placement Papers Tutorials & Technical Interview Questions Downloads Placement Papers Aptitude Questi'), (157251, 2408, ' Menu Home Placement Papers Tutorials & Technical Interview Questions Downloads Placement Papers Aptitude Questions Technical Questions Entr')]
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"find /workspace /root/.cache /tmp/codex-home -maxdepth 5 -type f \\\\( -name 'config.json' -o -name '*.safetensors' -o -name 'pytorch_model.bin' \\\\) 2>/dev/null | head -50\\nnvidia-smi --query-gpu=name,memory.total --format=csv,noheader\\nfind /workspace -maxdepth 2 -type f -printf '%p %s\\\\n' | sort\",workdir:\"/workspace\",yield_time_ms:10000,max_output_tokens:10000}); text(r.output)\n"
}exec result
Script completed
Wall time 0.2 seconds
Output:
NVIDIA H100 80GB HBM3, 81559 MiB
/workspace/.live/status.json 484
/workspace/.metrics/sampler.pid 3
/workspace/.metrics/sampler.sh 2795
/workspace/.metrics/system.jsonl 2100
/workspace/.timer/budget_secs 5
/workspace/.timer/elapsed_secs 4
/workspace/.timer/remaining_secs 5
/workspace/.timer/start_epoch 11
/workspace/.timer/timer.pid 3
/workspace/data/multi_dev.npy 2000128
/workspace/data/pool.jsonl 809679384
/workspace/dev_eval.sh 714
/workspace/model.py 5706
/workspace/pack_selection.py 869
/workspace/timer.sh 1509
/workspace/train_nano.py 2962
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"cat /workspace/pack_selection.py /workspace/dev_eval.sh && cat /workspace/.timer/remaining_secs\",workdir:\"/workspace\",yield_time_ms:10000,max_output_tokens:10000}); text(r.output)\n"
}exec result
Script completed
Wall time 0.1 seconds
Output:
"""Solver-side: pack a selection.json (ordered ids) into a 12M-token train array from pool.jsonl."""
import json, sys, numpy as np
from transformers import AutoTokenizer
POOL = "/workspace/data/pool.jsonl"
SEL = sys.argv[1] if len(sys.argv) > 1 else "/workspace/submission/selection.json"
OUT = sys.argv[2] if len(sys.argv) > 2 else "/tmp/dev_train.npy"
BUDGET = 12_000_000
tok = AutoTokenizer.from_pretrained("gpt2"); EOS = tok.eos_token_id
text = {}
for line in open(POOL):
r = json.loads(line); text[r["id"]] = r["text"]
sel = json.load(open(SEL))
parts, tot = [], 0
for i in sel:
ids = tok(text[i], add_special_tokens=False).input_ids
parts.extend(ids); parts.append(EOS); tot += len(ids) + 1
if tot >= BUDGET: break
arr = np.array(parts[:BUDGET], dtype=np.uint16)
np.save(OUT, arr)
print(f"packed {len(arr)} tokens from {len(sel)} ids -> {OUT}")
#!/bin/bash
# Diagnostic: train the frozen 30M GPT on your selection and report DEV perplexity.
# Usage: bash dev_eval.sh [selection.json] (default /workspace/submission/selection.json)
# NOTE: the official target is a DIFFERENT (hidden) sample from the same HQ domain.
set -euo pipefail
export TOKENIZERS_PARALLELISM=false
SEL="${1:-/workspace/submission/selection.json}"
cd /workspace
python3 pack_selection.py "$SEL" /tmp/dev_train.npy
python3 train_nano.py --train_npy /tmp/dev_train.npy --heldout_npy /workspace/data/multi_dev.npy \
--out_json /tmp/dev.json --max_iters 3000 --seed 1337 2>&1 | grep HELDOUT_PPL
echo "(dev PPL on multi_dev; official uses a hidden disjoint sample of the same HQ domain)"
5280
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"python - <<'PY'\\nimport numpy as np\\nfrom transformers import GPT2TokenizerFast\\na=np.load('/workspace/data/multi_dev.npy');t=GPT2TokenizerFast.from_pretrained('gpt2',local_files_only=True)\\nfor j in range(4):\\n x=t.decode(a[j*250000:(j+1)*250000]); seg=x.split('<|endoftext|>')\\n print(j,len(seg),sum(map(len,seg))/len(seg),min(map(len,seg)),max(map(len,seg)))\\nPY\",workdir:\"/workspace\",yield_time_ms:30000,max_output_tokens:2000}); text(r.output)\n"
}exec result
Script completed
Wall time 5.7 seconds
Output:
0 1714 679.4690781796966 100 2175
1 203 5432.088669950739 709 68542
2 432 2533.784722222222 100 82232
3 359 2097.601671309192 320 10325
I’m now fitting a lightweight, reproducible target-similarity model: four independent TF‑IDF classifiers, one per disclosed target quarter, against a broad sample of raw pool documents. I’ll combine those scores with structural quality penalties (boilerplate, fragments, repetition, non-prose) and inspect the highest-ranked documents before spending GPU time.
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const patch = \"*** Begin Patch\\n*** Add File: /workspace/prototype.py\\n+import json, re, random, math, pickle\\n+import numpy as np\\n+from transformers import GPT2TokenizerFast\\n+from sklearn.feature_extraction.text import TfidfVectorizer\\n+from sklearn.linear_model import SGDClassifier\\n+\\n+POOL='/workspace/data/pool.jsonl'; DEV='/workspace/data/multi_dev.npy'\\n+rng=random.Random(1337)\\n+docs=[]; ids=[]\\n+with open(POOL) as f:\\n+ for line in f:\\n+ o=json.loads(line); ids.append(o['id']); docs.append(o['text'])\\n+\\n+tok=GPT2TokenizerFast.from_pretrained('gpt2',local_files_only=True)\\n+a=np.load(DEV)\\n+pos=[]\\n+for j in range(4):\\n+ s=tok.decode(a[j*250000:(j+1)*250000])\\n+ x=[z.strip() for z in s.split('<|endoftext|>') if len(z.strip())>=200]\\n+ pos.append(x)\\n+ print('pos',j,len(x))\\n+\\n+negix=rng.sample(range(len(docs)),25000)\\n+train=sum(pos,[])+[docs[i] for i in negix]\\n+vec=TfidfVectorizer(lowercase=True,strip_accents='unicode',ngram_range=(1,2),min_df=2,max_df=.995,\\n+ max_features=180000,sublinear_tf=True,norm='l2',token_pattern=r'(?u)\\\\b[A-Za-z][A-Za-z0-9_+#.-]*\\\\b')\\n+X=vec.fit_transform(train)\\n+print('X',X.shape,X.nnz)\\n+scores=np.zeros((len(docs),4),dtype=np.float32)\\n+offsets=np.cumsum([0]+[len(x) for x in pos]); npos=offsets[-1]\\n+for j in range(4):\\n+ yi=np.r_[np.arange(offsets[j],offsets[j+1]),np.arange(npos,len(train))]\\n+ y=np.r_[np.ones(offsets[j+1]-offsets[j]),np.zeros(len(train)-npos)]\\n+ clf=SGDClassifier(loss='log_loss',alpha=2e-5,max_iter=40,tol=1e-4,class_weight='balanced',random_state=100+j,average=True)\\n+ clf.fit(X[yi],y)\\n+ for st in range(0,len(docs),5000): scores[st:st+5000,j]=clf.decision_function(vec.transform(docs[st:st+5000]))\\n+ print('clf',j,'posmean',scores[:,j].mean(),np.percentile(scores[:,j],[50,90,99,99.9]))\\n+\\n+def qual(t):\\n+ n=len(t); low=t.lower(); lines=t.splitlines() or [t]\\n+ words=re.findall(r\\\"[A-Za-z]+(?:'[A-Za-z]+)?\\\",t)\\n+ if not words:return -20\\n+ nw=len(words); alpha=sum(c.isalpha() for c in t)/max(n,1)\\n+ sent=len(re.findall(r'[.!?](?:[\\\\\\\"\\\\'’)]|\\\\s|$)',t))\\n+ avg=nw/max(sent,1)\\n+ short=sum(len(x.strip())<35 for x in lines)/len(lines)\\n+ uniq=len(set(w.lower() for w in words))/nw\\n+ q=0\\n+ q += min(1.5, math.log1p(nw)/3)\\n+ q -= 5*max(0,.60-alpha)\\n+ q -= 1.5*max(0,short-.55)\\n+ q -= 1.5*max(0,.22-uniq)\\n+ q -= 1.5*max(0,(avg-55)/55) + 1.0*max(0,(5-avg)/5)\\n+ bad=['cookie policy','all rights reserved','enable javascript','access denied','page not found','sign up for our newsletter','skip to content','toggle navigation','privacy policy','terms and conditions','free shipping','add to cart','click here','lorem ipsum','403 forbidden','404 not found']\\n+ q -= .25*sum(low.count(x) for x in bad)\\n+ q -= min(2,low.count('menu\\\\n')*.2)\\n+ if n<600:q-=2*(600-n)/600\\n+ if n>40000:q-=min(1,(n-40000)/40000)\\n+ return q\\n+qs=np.array([qual(t) for t in docs],dtype=np.float32)\\n+np.savez('/workspace/scores.npz',ids=np.array(ids),scores=scores,quality=qs)\\n+for j in range(4):\\n+ print('\\\\nDOMAIN',j)\\n+ z=scores[:,j]+.8*qs\\n+ for i in np.argsort(z)[-20:][::-1]:print(ids[i],round(float(z[i]),2),round(float(scores[i,j]),2),round(float(qs[i]),2),len(docs[i]),repr(docs[i][:160].replace('\\\\n',' ')))\\n*** End Patch\";\ntext(await tools.apply_patch(patch));\n"
}exec result
Script completed
Wall time 0.0 seconds
Output:
{}encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"ls -l /workspace/prototype.py && python /workspace/prototype.py\",workdir:\"/workspace\",yield_time_ms:1000,max_output_tokens:2000}); text(r.output); if(r.session_id) text(`SESSION_ID=${r.session_id}`);\n"
}exec result
Script completed
Wall time 1.2 seconds
Output:
-rw-r--r-- 1 root root 3104 Aug 4 01:12 /workspace/prototype.py
SESSION_ID=86406encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.write_stdin({session_id:86406,chars:\"\",yield_time_ms:30000,max_output_tokens:12000}); text(r.output);\n"
}exec result
Script completed
Wall time 0.0 seconds
Output:
Traceback (most recent call last):
File "/workspace/prototype.py", line 4, in <module>
from sklearn.feature_extraction.text import TfidfVectorizer
ModuleNotFoundError: No module named 'sklearn'
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"python - <<'PY'\\nfor x in ['scipy','pandas','numpy','torch']:\\n try:m=__import__(x);print(x,m.__version__)\\n except Exception as e:print(x,e)\\nPY\",workdir:\"/workspace\",yield_time_ms:10000,max_output_tokens:2000}); text(r.output)\n"
}exec result
Script completed
Wall time 2.3 seconds
Output:
scipy No module named 'scipy'
pandas No module named 'pandas'
numpy 1.26.4
torch 2.8.0+cu128
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const patch = \"*** Begin Patch\\n*** Update File: /workspace/prototype.py\\n@@\\n-import json, re, random, math, pickle\\n+import json, re, random, math, pickle, collections\\n import numpy as np\\n from transformers import GPT2TokenizerFast\\n-from sklearn.feature_extraction.text import TfidfVectorizer\\n-from sklearn.linear_model import SGDClassifier\\n@@\\n-negix=rng.sample(range(len(docs)),25000)\\n-train=sum(pos,[])+[docs[i] for i in negix]\\n-vec=TfidfVectorizer(lowercase=True,strip_accents='unicode',ngram_range=(1,2),min_df=2,max_df=.995,\\n- max_features=180000,sublinear_tf=True,norm='l2',token_pattern=r'(?u)\\\\b[A-Za-z][A-Za-z0-9_+#.-]*\\\\b')\\n-X=vec.fit_transform(train)\\n-print('X',X.shape,X.nnz)\\n-scores=np.zeros((len(docs),4),dtype=np.float32)\\n-offsets=np.cumsum([0]+[len(x) for x in pos]); npos=offsets[-1]\\n-for j in range(4):\\n- yi=np.r_[np.arange(offsets[j],offsets[j+1]),np.arange(npos,len(train))]\\n- y=np.r_[np.ones(offsets[j+1]-offsets[j]),np.zeros(len(train)-npos)]\\n- clf=SGDClassifier(loss='log_loss',alpha=2e-5,max_iter=40,tol=1e-4,class_weight='balanced',random_state=100+j,average=True)\\n- clf.fit(X[yi],y)\\n- for st in range(0,len(docs),5000): scores[st:st+5000,j]=clf.decision_function(vec.transform(docs[st:st+5000]))\\n- print('clf',j,'posmean',scores[:,j].mean(),np.percentile(scores[:,j],[50,90,99,99.9]))\\n+wrx=re.compile(r\\\"[a-z]+(?:'[a-z]+)?|[a-z][a-z0-9_+#.-]*\\\")\\n+def feats(t):\\n+ w=wrx.findall(t.lower())\\n+ return w + ['~'+w[i]+' '+w[i+1] for i in range(len(w)-1)]\\n+tc=[]; totals=[]\\n+for j in range(4):\\n+ c=collections.Counter()\\n+ for x in pos[j]:c.update(feats(x))\\n+ # Discard target hapaxes: these are mostly sample-specific entities.\\n+ c=collections.Counter({k:v for k,v in c.items() if v>=3})\\n+ tc.append(c);totals.append(sum(c.values()));print('target vocab',j,len(c),totals[-1])\\n+vocab=set().union(*tc); pc=collections.Counter(); ptotal=0\\n+for di,t in enumerate(docs):\\n+ f=feats(t);ptotal+=len(f);pc.update(x for x in f if x in vocab)\\n+ if di%30000==0:print('count',di)\\n+weights=[]\\n+for j in range(4):\\n+ ww={}\\n+ for k,n in tc[j].items():\\n+ # Smoothed log density ratio, shrunken and capped to avoid dev entity retrieval.\\n+ lr=math.log((n+2)/(totals[j]+2*len(tc[j])))-math.log((pc[k]+20)/(ptotal+20*len(vocab)))\\n+ ww[k]=max(-3.0,min(3.0,lr))*n/(n+12)\\n+ weights.append(ww)\\n+scores=np.zeros((len(docs),4),dtype=np.float32)\\n+for i,t in enumerate(docs):\\n+ f=feats(t); den=max(30,len(f))\\n+ for j in range(4):scores[i,j]=sum(weights[j].get(x,0) for x in f)/den\\n+print('scores',[(j,np.percentile(scores[:,j],[50,90,99,99.9]).tolist()) for j in range(4)])\\n*** End Patch\";\ntext(await tools.apply_patch(patch));\n"
}exec result
Script completed
Wall time 0.0 seconds
Output:
{}encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"python /workspace/prototype.py\",workdir:\"/workspace\",yield_time_ms:1000,max_output_tokens:2000}); text(r.output); if(r.session_id) text(`SESSION_ID=${r.session_id}`);\n"
}exec result
Script completed
Wall time 1.2 seconds
Output:
SESSION_ID=11211encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.write_stdin({session_id:11211,chars:\"\",yield_time_ms:30000,max_output_tokens:3000}); text(r.output);\n"
}exec result
Script running with cell ID 16
Wall time 11.0 seconds
Output:
encrypted chain-of-thought — recorded, not exposed
args
{
"cell_id": "16",
"yield_time_ms": 30000,
"max_tokens": 3000
}wait result
Script completed
Wall time 15.5 seconds
Output:
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"ls -lh /workspace/scores.npz; ps aux | grep prototype | grep -v grep; cat /workspace/.timer/remaining_secs\",workdir:\"/workspace\",yield_time_ms:10000,max_output_tokens:2000}); text(r.output)\n"
}exec result
Script completed
Wall time 0.1 seconds
Output:
ls: cannot access '/workspace/scores.npz': No such file or directory
root 741 95.4 0.5 6658572 6040940 ? Rsl 01:13 0:37 python /workspace/prototype.py
5150
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"ps -o pid,etime,%cpu,rss,cmd -p 741\",workdir:\"/workspace\",yield_time_ms:10000,max_output_tokens:2000}); text(r.output)\n"
}exec result
Script completed
Wall time 0.1 seconds
Output:
PID ELAPSED %CPU RSS CMD
741 00:45 96.4 6039916 python /workspace/prototype.py
encrypted chain-of-thought — recorded, not exposed
args
{
"input": "const r = await tools.exec_command({cmd:\"while kill -0 741 2>/dev/null; do sleep 5; done; ls -lh /workspace/scores.npz\",workdir:\"/workspace\",yield_time_ms:30000,max_output_tokens:2000}); text(r.output); if(r.session_id) text(`SESSION_ID=${r.session_id}`);\n"
}exec result
Script running with cell ID 19
Wall time 11.0 seconds
Output: