Learned by Reading
In the ICWSM 2009 Weblog Corpus:
Or cut and paste a few simple lines of HTML code into your own website if you have one (don’t worry, I show you how if you’re stuck)…… and you’ve got a new, almost’ ‘instant’’ income stream.
(Parse)
(S1 (S (CC Or)
(VP (VB cut) (CC and) (VB paste)
(NP (NP (DT a) (JJ few) (JJ simple) (NNS lines))
(PP (IN of)
(NP (NNP HTML) (NN code))))
(PP (IN into)
(NP (PRP$ your) (JJ own) (NN website)))
(SBAR (IN if)
(S (S (NP (PRP you))
(VP (AUX have)
(NP (NN one)) (PRN (-LRB- -LRB-)
(S (S (VP (AUX do) (RB n't)
(VP (VB worry))))
(, ,)
(NP (PRP I))
(VP (VB show)
(NP (PRP you))
(SBAR (WHADVP (WRB how))
(S (IN if)
(NP (PRP you))
(VP (AUX 're)
(VP (VBN stuck))))
(-RRB- -RRB-)) (FRAG (NP (NN ..)) (. .) (INTJ (UH ..)) (. .))))
(CC and)
(S (NP (PRP you))
(VP (AUX 've)
(VP (VBN got)
(NP (NP (DT a) (JJ new) (, ,) (RB almost) (POS ')) (: ')
(NP (NN instant) (POS ')) (: ')
(NP (NN income) (NN stream)))
(. .)))
In the ICWSM 2009 Weblog Corpus:
After typing a few lines of code, he held up the other device and suddenly a holographic, nearly naked version of Sheriff Jack Carter stood smiling stupidly at him.
(Parse)
(S1 (S (PP (IN After)
(S (VP (VBG typing)
(NP (NP (DT a) (JJ few) (NNS lines))
(PP (IN of)
(NP (NN code))))
(, ,)
(NP (PRP he))
(VP (VP (VBD held) (PRT (RP up))
(NP (DT the) (JJ other) (NN device)))
(CC and)
(VP (ADVP (RB suddenly))
(NP (NP (DT a) (JJ holographic) (, ,)
(ADJP (RB nearly) (JJ naked)) (NN version))
(PP (IN of)
(NP (NNP Sheriff) (NNP Jack) (NNP Carter))))
(VBD stood)
(S (VP (VBG smiling) (ADVP (RB stupidly))
(PP (IN at)
(NP (PRP him))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
We do this with a few lines of code in your blog’s template; there’s hardly any configuration to worry about.
(Parse)
(S1 (S (S (NP (PRP We))
(VP (AUX do)
(NP (DT this))
(PP (IN with)
(NP (NP (DT a) (JJ few) (NNS lines))
(PP (IN of)
(NP (NN code)))))
(PP (IN in)
(NP (NP (PRP$ your) (NN blog) (POS 's)) (NN template)))))
(: ;)
(S (NP (EX there))
(VP (AUX 's) (ADVP (RB hardly))
(NP (DT any) (NN configuration)
(S (VP (TO to)
(VP (VB worry)
(PP (IN about)))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
I don’t have any hardware means for debugging so I placed 2 lines of code to display consecutive alphabet letters in the corner of the LCD after every functional step so when the execution hangs I know approximately by the letter which remains on the screen.
(Parse)
(S1 (S (NP (PRP I))
(VP (AUX do) (RB n't)
(VP (AUX have)
(NP (DT any) (NN hardware) (NNS means))
(PP (IN for)
(S (VP (VBG debugging)
(SBAR (IN so)
(S (NP (PRP I))
(VP (VBD placed)
(NP (NP (CD 2) (NNS lines))
(PP (IN of)
(NP (NN code))))
(S (VP (TO to)
(VP (VB display)
(NP (JJ consecutive) (NN alphabet) (NNS letters))
(PP (IN in)
(NP (NP (DT the) (NN corner))
(PP (IN of)
(NP (DT the) (NNP LCD)))))
(PP (IN after)
(NP (NP (DT every) (JJ functional) (NN step) (RB so))
(SBAR (WHADVP (WRB when))
(S (NP (DT the) (NN execution))
(VP (VBZ hangs)
(S (NP (PRP I))
(VP (VBP know) (ADVP (RB approximately))
(PP (IN by)
(NP (NP (DT the) (NN letter))
(SBAR (WHNP (WDT which))
(S (VP (VBZ remains)
(PP (IN on)
(NP (DT the) (NN screen)))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
A traditional implementation might take 10,000 lines of code.
(Parse)
(S1 (S (NP (DT A) (JJ traditional) (NN implementation))
(VP (MD might)
(VP (VB take)
(NP (NP (CD 10,000) (NNS lines))
(PP (IN of)
(NP (NN code)))
(. .)))
In the ICWSM 2009 Weblog Corpus:
What you consider a large method is up to you, but we have been using ten lines of code as our measure.
(Parse)
(S1 (S (S (SBAR (WHNP (WP What))
(S (NP (PRP you))
(VP (VBP consider)
(NP (DT a) (JJ large) (NN method)))))
(VP (AUX is)
(PP (IN up)
(PP (TO to)
(NP (PRP you)))
(, ,) (CC but)
(S (NP (PRP we))
(VP (AUX have)
(VP (AUX been)
(VP (VBG using)
(NP (NP (CD ten) (NNS lines))
(PP (IN of)
(NP (NN code))))
(PP (IN as)
(NP (PRP$ our) (NN measure))))
(. .)))
In Wikipedia:
In comparison with CORBA, PDO programs were typically 1 / 10th or less in size; it was common for NeXT staffers to write into magazines showing how to re – implement a multi – page CORBA article in perhaps 15 lines of code.
(Parse)
(S1 (S (S (PP (IN In)
(NP (NP (NN comparison))
(PP (IN with)
(NP (NNP CORBA)))))
(, ,)
(NP (NN PDO) (NNS programs))
(VP (AUX were) (ADVP (RB typically))
(NP (NP (QP (CD 1) (CD /)))
(ADJP (JJ 10th) (CC or) (JJR less)))
(PP (IN in)
(NP (NN size)))))
(: ;)
(S (NP (PRP it))
(VP (AUX was)
(ADJP (JJ common))
(SBAR (IN for)
(S (NP (NNP NeXT) (NNS staffers))
(VP (TO to)
(VP (VB write)
(PP (IN into)
(NP (NP (NNS magazines))
(VP (VBG showing)
(SBAR (WHADVP (WRB how))
(S (VP (TO to)
(VP (NNP re) (: -)
(VP (VB implement)
(NP (DT a) (NNS multi)))
(: -)
(NP (NP (NN page) (NNP CORBA) (NN article))
(PP (IN in)
(NP (NP (QP (RB perhaps) (CD 15)) (NNS lines))
(PP (IN of)
(NP (NN code))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
The addition of a few lines of code to the site allowed for a single ad, with a customisable background colour to be placed across the top of the page, hence not interfering too much with the visual flow of the page.
(Parse)
(S1 (S (NP (NP (DT The) (NN addition))
(PP (IN of)
(NP (NP (DT a) (JJ few) (NNS lines))
(PP (IN of)
(NP (NN code)))))
(PP (TO to)
(NP (DT the) (NN site))))
(VP (VBD allowed)
(PP (IN for)
(NP (DT a) (JJ single) (NN ad)))
(, ,)
(PP (IN with)
(NP (NP (DT a) (JJ customisable) (NN background))
(ADJP (JJ colour)
(S (VP (TO to)
(VP (AUX be)
(VP (VBN placed)
(PP (IN across)
(NP (NP (DT the) (NN top))
(PP (IN of)
(NP (DT the) (NN page)))))
(, ,) (CONJP (RB hence) (RB not))
(VP (VBG interfering)
(NP (RB too) (JJ much))
(PP (IN with)
(NP (NP (DT the) (JJ visual) (NN flow))
(PP (IN of)
(NP (DT the) (NN page)))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
However, 119 lines of code isn’t a bad start.
(Parse)
(S1 (S (ADVP (RB However)) (, ,)
(NP (NP (CD 119) (NNS lines))
(PP (IN of)
(NP (NN code))))
(VP (AUX is) (RB n't)
(NP (DT a) (JJ bad) (NN start)))
(. .)))
In the ICWSM 2009 Weblog Corpus:
While there isn’t, you can create one with a few lines of VBA code.
(Parse)
(S1 (S (SBAR (IN While)
(S (NP (EX there))
(VP (AUX is) (RB n't))))
(, ,)
(NP (PRP you))
(VP (MD can)
(VP (VB create)
(NP (NN one))
(PP (IN with)
(NP (NP (DT a) (JJ few) (NNS lines))
(PP (IN of)
(NP (NNP VBA) (NN code))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
Very easy to use (2 lines of code needed to start visualizing), wrapped in a package and very well documented.
(Parse)
(S1 (FRAG (ADJP (RB Very) (JJ easy)
(S (VP (TO to)
(VP (VB use) (PRN (-LRB- -LRB-)
(NP (NP (CD 2) (NNS lines))
(PP (IN of)
(NP (NP (NN code))
(VP (VBN needed)
(S (VP (TO to)
(VP (VB start)
(NP (VBG visualizing)))
(-RRB- -RRB-)))
(, ,)
(VP (VP (VBN wrapped)
(PP (IN in)
(NP (DT a) (NN package))))
(CC and)
(VP (ADVP (RB very) (RB well)) (VBN documented)))
(. .)))
In Wikipedia:
In cryptography, the Tiny Encryption Algorithm (TEA) is a block cipher notable for its simplicity of description and implementation (typically a few lines of code).
(Parse)
(S1 (S (PP (IN In)
(NP (NN cryptography)))
(, ,)
(NP (NP (DT the) (JJ Tiny) (NNP Encryption) (NNP Algorithm)) (PRN (-LRB- -LRB-)
(NP (NNP TEA)) (-RRB- -RRB-)))
(VP (AUX is)
(NP (NP (DT a) (NN block))
(ADJP (NNP cipher) (JJ notable)
(PP (IN for)
(NP (NP (PRP$ its) (NN simplicity))
(PP (IN of)
(NP (NP (NN description)) (CC and)
(NP (NP (NN implementation)) (PRN (-LRB- -LRB-) (RB typically)
(NP (NP (DT a) (JJ few) (NNS lines))
(PP (IN of)
(NP (NN code))))
(-RRB- -RRB-))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
To avoid that, I moved those two lines of code to my main method and pinned it throughout that method.
(Parse)
(S1 (S (S (VP (TO To)
(VP (VB avoid)
(NP (DT that)))))
(, ,)
(NP (PRP I))
(VP (VP (VBD moved)
(NP (NP (DT those) (CD two) (NNS lines))
(PP (IN of)
(NP (NN code))))
(PP (TO to)
(NP (PRP$ my) (JJ main) (NN method))))
(CC and)
(VP (VBN pinned)
(NP (PRP it))
(PP (IN throughout)
(NP (DT that) (NN method)))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
The JavaScript injection attack successfully exploited one of MegaGames’ servers to insert a couple extra lines of code.
(Parse)
(S1 (S (NP (DT The) (NNP JavaScript) (NN injection) (NN attack))
(VP (ADVP (RB successfully)) (VBN exploited)
(NP (NP (CD one))
(PP (IN of)
(NP (NP (NNP MegaGames) (POS ')) (NNS servers)
(S (VP (TO to)
(VP (NN insert)
(NP (NP (DT a) (JJ couple) (JJ extra) (NNS lines))
(PP (IN of)
(NP (NN code)))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
It would be as easy as having the iPhone zero out the data when has CPU to spare; data recovery is made extremely difficult by doing so and it wouldn’t take more than a couple lines of code. [image credit: Wired Gadget Lab]
(Parse)
(S1 (S (S (NP (PRP It))
(VP (MD would)
(VP (AUX be)
(ADJP (RB as) (JJ easy)
(PP (IN as)
(S (VP (AUXG having)
(S (NP (DT the) (NN iPhone))
(VP (VB zero) (PRT (RP out))
(NP (DT the) (NNS data)))))
(SBAR (WHADVP (WRB when))
(S (VP (AUX has)
(VP (VBG CPU)
(S (VP (TO to)
(VP (VB spare)))))
(: ;)
(S (NP (NN data) (NN recovery))
(VP (VBZ is)
(VP (VBN made)
(ADJP (RB extremely) (JJ difficult))
(PP (IN by)
(S (VP (VBG doing) (ADVP (RB so))
(S (CC and)
(NP (PRP it))
(VP (MD would) (RB n't)
(VP (VB take)
(NP (NP (JJR more))
(PP (IN than)
(NP (NP (DT a) (JJ couple) (NNS lines))
(PP (IN of)
(NP (NN code)))))
(. .)))))
(NP (JJ -LSB-) (NN image) (NN credit)))))
(: :)
(NP (VBN Wired) (NNP Gadget) (NN Lab) (NN -RSB-))))
In the ICWSM 2009 Weblog Corpus:
I’ll definitely install it on The Next Web Blog, which seems to be a matter of just inserting a few lines of code.
(Parse)
(S1 (S (NP (PRP I))
(VP (MD 'll) (ADVP (RB definitely))
(VP (VB install)
(NP (PRP it))
(PP (IN on)
(NP (NP (DT The) (JJ Next) (NNP Web) (NNP Blog)) (, ,)
(SBAR (WHNP (WDT which))
(S (VP (VBZ seems)
(S (VP (TO to)
(VP (AUX be)
(NP (NP (DT a) (NN matter))
(PP (IN of)
(S (ADVP (RB just))
(VP (VBG inserting)
(NP (NP (DT a) (JJ few) (NNS lines))
(PP (IN of)
(NP (NN code)))
(. .)))
In the ICWSM 2009 Weblog Corpus:
A geeky friend of mine just told me that he’s been seeing hackers slip a few lines of code into their Apache web server configuration and have all their traffic redirected to porn sites.
(Parse)
(S1 (S (NP (NP (DT A) (JJ geeky) (NN friend))
(PP (IN of)
(NP (NN mine))))
(ADVP (RB just))
(VP (VBD told)
(NP (PRP me))
(SBAR (IN that)
(S (NP (PRP he))
(VP (AUX 's)
(VP (AUX been)
(VP (VBG seeing)
(S (NP (NNS hackers))
(VP (VP (VB slip)
(NP (NP (DT a) (JJ few) (NNS lines))
(PP (IN of)
(NP (NN code))))
(PP (IN into)
(NP (PRP$ their) (NNP Apache) (NNP web) (NN server) (NN configuration))))
(CC and)
(VP (AUX have)
(NP (PDT all) (PRP$ their) (NN traffic))
(VP (VBN redirected)
(PP (TO to)
(NP (NN porn) (NNS sites))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
If you put in some pushbuttons and write some more code, you can even make the output programmable, but just getting the PWM output up and running is like 10 lines of code or less, and is very easy to code even in assembly and verify it works in AVR Studio simulator.
(Parse)
(S1 (S (SBAR (IN If)
(S (NP (PRP you))
(VP (VP (VBP put)
(PP (IN in)
(NP (DT some) (NNS pushbuttons))))
(CC and)
(VP (VBP write)
(NP (DT some) (JJR more) (NN code)))
(, ,)
(NP (PRP you))
(VP (MD can) (ADVP (RB even))
(VP (VB make)
(S (NP (DT the) (NN output))
(ADJP (JJ programmable))))
(, ,) (CC but) (ADVP (RB just))
(VP (VP (VBG getting)
(NP (DT the) (NNP PWM) (NN output)) (PRT (RP up)))
(CC and)
(VP (VBG running)
(SBAR (S (VP (VP (AUX is)
(PP (IN like)
(NP (NP (NP (CD 10) (NNS lines))
(PP (IN of)
(NP (NN code))))
(CC or)
(NP (JJR less)))))
(, ,) (CC and)
(VP (AUX is)
(ADJP (RB very) (JJ easy)
(SBAR (S (VP (TO to)
(VP (VP (VB code) (ADVP (RB even))
(PP (IN in)
(NP (NN assembly))))
(CC and)
(VP (VB verify)
(SBAR (S (NP (PRP it))
(VP (VBZ works)
(PP (IN in)
(NP (NN AVR) (NN Studio) (NN simulator))))
(. .)))
In the ICWSM 2009 Weblog Corpus:
Throughout this time, I have put many hours into many lines of code and I was balking at the suggestion of using a JavaScript library.
(Parse)
(S1 (S (PP (IN Throughout)
(NP (DT this) (NN time)))
(, ,)
(S (NP (PRP I))
(VP (AUX have)
(VP (VBN put)
(NP (JJ many) (NNS hours))
(PP (IN into)
(NP (NP (JJ many) (NNS lines))
(PP (IN of)
(NP (NN code)))))
(CC and)
(S (NP (PRP I))
(VP (AUX was)
(VP (VBG balking)
(PP (IN at)
(NP (NP (DT the) (NN suggestion))
(PP (IN of)
(S (VP (VBG using)
(NP (DT a) (NNP JavaScript) (NN library))))
(. .)))
And 985 more sentences.