text:
title: Week 13
layout: post
author: joseph.brown
permalink: /untitled-document/
source-id: 1KP56Cts8EMKyyVlk7WK4YZv5s84ELESq1LATBfrIoNo
published: true
---
Week 13

This week we finished our questions and started writing the code for the questions. The first two or three were quite challenging to form but once we got the hang of it, It got quite easy. We had to use a lot of funtions and a lot of commands to form the code. Next week I hope to finish the questions and add anything that needs adding succesfully.


text:
<?xml version="1.0" encoding="utf-8" ?>
<Quotes>
  <Quote>
    <Author>Gary Panter</Author>
    <Language>English</Language>
    <QuoteValue>If you have one person you're influenced by, everyone will say you're the next whoever. But if you rip off a hundred people, everyone will say you're so original. The biggest waste of time is not being conscious of what you're doing. Or in other words doodling around</QuoteValue>
  </Quote>
  <Quote>
    <Author>Alex Alvarez</Author>
    <Language>English</Language>
    <QuoteValue>What separates the superstars from the average: they seek criticism and actually listen to it</QuoteValue>
  </Quote>
  <Quote>
    <Author>Brian Eno</Author>
    <Language>English</Language>
    <QuoteValue>My interest in making music has been to create something that does not exist that I would like to listen to</QuoteValue>
  </Quote>
  <Quote>
    <Author>Anonyme</Author>
    <Language>French</Language>
    <QuoteValue>L'expérience est une lumière qui n'éclaire que soi-même</QuoteValue>
  </Quote>
  <Quote>
    <Author>Anonyme</Author>
    <Language>French</Language>
    <QuoteValue>Deviens ce que tu es</QuoteValue>
  </Quote>
  <Quote>
    <Author>H. G. Wells</Author>
    <Language>English</Language>
    <QuoteValue>If you fell down yesterday, stand up today</QuoteValue>
  </Quote>
  <Quote>
    <Author>Lao Tzu</Author>
    <Language>English</Language>
    <QuoteValue>Being deeply loved by someone gives you strength, while loving someone deeply gives you courage</QuoteValue>
  </Quote>
  <Quote>
    <Author>Confucius</Author>
    <Language>English</Language>
    <QuoteValue>It does not matter how slowly you go as long as you do not stop</QuoteValue>
  </Quote>
  <Quote>
    <Author>Mark Twain</Author>
    <Language>English</Language>
    <QuoteValue>The secret of getting ahead is getting started</QuoteValue>
  </Quote>
  <Quote>
    <Author>Mahatma Gandhi</Author>
    <Language>English</Language>
    <QuoteValue>The weak can never forgive. Forgiveness is the attribute of the strong</QuoteValue>
  </Quote>
  <Quote>
    <Author>Buddha</Author>
    <Language>English</Language>
    <QuoteValue>Health is the greatest gift, contentment the greatest wealth, faithfulness the best relationship</QuoteValue>
  </Quote>
  <Quote>
    <Author>Oscar Wilde</Author>
    <Language>English</Language>
    <QuoteValue>Keep love in your heart. A life without it is like a sunless garden when the flowers are dead</QuoteValue>
  </Quote>
  <Quote>
    <Author>William Shakespeare</Author>
    <Language>English</Language>
    <QuoteValue>Love all, trust a few, do wrong to none</QuoteValue>
  </Quote>
  <Quote>
    <Author>A. P. J. Abdul Kalam</Author>
    <Language>English</Language>
    <QuoteValue>Let us sacrifice our today so that our children can have a better tomorrow</QuoteValue>
  </Quote>
  <Quote>
    <Author>Albert Einstein</Author>
    <Language>English</Language>
    <QuoteValue>Look deep into nature, and then you will understand everything better</QuoteValue>
  </Quote>
  <Quote>
    <Author>Winston Churchill</Author>
    <Language>English</Language>
    <QuoteValue>Success is not final, failure is not fatal: it is the courage to continue that counts</QuoteValue>
  </Quote>
  <Quote>
    <Author>Benjamin Franklin</Author>
    <Language>English</Language>
    <QuoteValue>An investment in knowledge pays the best interest</QuoteValue>
  </Quote>
  <Quote>
    <Author>Bruce Lee</Author>
    <Language>English</Language>
    <QuoteValue>If you love life, don't waste time, for time is what life is made up of</QuoteValue>
  </Quote>
  <Quote>
    <Author>Blaise Pascal</Author>
    <Language>English</Language>
    <QuoteValue>Nature is an infinite sphere of which the center is everywhere and the circumference nowhere</QuoteValue>
  </Quote>
  <Quote>
    <Author>C. S. Lewis</Author>
    <Language>English</Language>
    <QuoteValue>Education without values, as useful as it is, seems rather to make man a more clever devil</QuoteValue>
  </Quote>
  <Quote>
    <Author>Charles Dickens</Author>
    <Language>English</Language>
    <QuoteValue>It was the best of times, it was the worst of times</QuoteValue>
  </Quote>
  <Quote>
    <Author>Dalai Lama</Author>
    <Language>English</Language>
    <QuoteValue>Calm mind brings inner strength and self-confidence, so that's very important for good health</QuoteValue>
  </Quote>
  <Quote>
    <Author>Dale Carnegie</Author>
    <Language>English</Language>
    <QuoteValue>Happiness doesn't depend on any external conditions, it is governed by our mental attitude</QuoteValue>
  </Quote>
  <Quote>
    <Author>Dan Quayle</Author>
    <Language>English</Language>
    <QuoteValue>It's a question of whether we're going to go forward into the future, or past to the back</QuoteValue>
  </Quote>
  <Quote>
    <Author>Dante Alighieri</Author>
    <Language>English</Language>
    <QuoteValue>Heat cannot be separated from fire, or beauty from The Eternal</QuoteValue>
  </Quote>
  <Quote>
    <Author>David Bowie</Author>
    <Language>English</Language>
    <QuoteValue>I don't know where I'm going from here, but I promise it won't be boring</QuoteValue>
  </Quote>
  <Quote>
    <Author>Deepak Chopra</Author>
    <Language>English</Language>
    <QuoteValue>In the midst of movement and chaos, keep stillness inside of you</QuoteValue>
  </Quote>
  <Quote>
    <Author>Desmond Tutu</Author>
    <Language>English</Language>
    <QuoteValue>You don't choose your family. They are God's gift to you, as you are to them</QuoteValue>
  </Quote>
  <Quote>
    <Author>Dolly Parton</Author>
    <Language>English</Language>
    <QuoteValue>The way I see it, if you want the rainbow, you gotta put up with the rain</QuoteValue>
  </Quote>
  <Quote>
    <Author>Donald Trump</Author>
    <Language>English</Language>
    <QuoteValue>Sometimes by losing a battle you find a new way to win the war</QuoteValue>
  </Quote>
  <Quote>
    <Author>Douglas Adams</Author>
    <Language>English</Language>
    <QuoteValue>I love deadlines. I like the whooshing sound they make as they fly by</QuoteValue>
  </Quote>
  <Quote>
    <Author>Douglas Horton</Author>
    <Language>English</Language>
    <QuoteValue>Smile, it's free therapy</QuoteValue>
  </Quote>
  <Quote>
    <Author>Douglas MacArthur</Author>
    <Language>English</Language>
    <QuoteValue>You are remembered for the rules you break</QuoteValue>
  </Quote>
  <Quote>
    <Author>Dr. Seuss</Author>
    <Language>English</Language>
    <QuoteValue>Today you are you! That is truer than true! There is no one alive who is you-er than you!</QuoteValue>
  </Quote>
  <Quote>
    <Author>Drake</Author>
    <Language>English</Language>
    <QuoteValue>Sometimes it's the journey that teaches you a lot about your destination</QuoteValue>
  </Quote>
  <Quote>
    <Author>Dwight D. Eisenhower</Author>
    <Language>English</Language>
    <QuoteValue>Motivation is the art of getting people to do what you want them to do because they want to do it</QuoteValue>
  </Quote>
  <Quote>
    <Author>Aeschylus</Author>
    <Language>English</Language>
    <QuoteValue>There is no pain so great as the memory of joy in present grief</QuoteValue>
  </Quote>
  <Quote>
    <Author>Alan Watts</Author>
    <Language>English</Language>
    <QuoteValue>The only way to make sense out of change is to plunge into it, move with it, and join the dance</QuoteValue>
  </Quote>
  <Quote>
    <Author>Albert Camus</Author>
    <Language>English</Language>
    <QuoteValue>In the depth of winter I finally learned that there was in me an invincible summer</QuoteValue>
  </Quote>
  <Quote>
    <Author>Aldous Huxley</Author>
    <Language>English</Language>
    <QuoteValue>There is only one corner of the universe you can be certain of improving, and that's your own self</QuoteValue>
  </Quote>
  <Quote>
    <Author>Alexander Hamilton</Author>
    <Language>English</Language>
    <QuoteValue>A promise must never be broken</QuoteValue>
  </Quote>
  <Quote>
    <Author>Anais Nin</Author>
    <Language>English</Language>
    <QuoteValue>We travel, some of us forever, to seek other states, other lives, other souls</QuoteValue>
  </Quote>
  <Quote>
    <Author>Andy Warhol</Author>
    <Language>English</Language>
    <QuoteValue>Making money is art and working is art and good business is the best art</QuoteValue>
  </Quote>
  <Quote>
    <Author>Aristotle</Author>
    <Language>English</Language>
    <QuoteValue>Quality is not an act, it is a habit</QuoteValue>
  </Quote>
  <Quote>
    <Author>Arnold Schwarzenegger</Author>
    <Language>English</Language>
    <QuoteValue>Just remember, you can't climb the ladder of success with your hands in your pockets</QuoteValue>
  </Quote>
  <Quote>
    <Author>Arthur Schopenhauer</Author>
    <Language>English</Language>
    <QuoteValue>Talent hits a target no one else can hit; Genius hits a target no one else can see</QuoteValue>
  </Quote>
  <Quote>
    <Author>Audrey Hepburn</Author>
    <Language>English</Language>
    <QuoteValue>Nothing is impossible, the word itself says 'I'm possible'!</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ayn Rand</Author>
    <Language>English</Language>
    <QuoteValue>A creative man is motivated by the desire to achieve, not by the desire to beat others</QuoteValue>
  </Quote>
  <Quote>
    <Author>Barack Obama</Author>
    <Language>English</Language>
    <QuoteValue>Money is not the only answer, but it makes a difference</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ben Shapiro</Author>
    <Language>English</Language>
    <QuoteValue>Distrust of government isn't baseless cynicism. It's realism</QuoteValue>
  </Quote>
  <Quote>
    <Author>Bertrand Russell</Author>
    <Language>English</Language>
    <QuoteValue>The good life is one inspired by love and guided by knowledge</QuoteValue>
  </Quote>
  <Quote>
    <Author>Beyonce Knowles</Author>
    <Language>English</Language>
    <QuoteValue>If everything was perfect, you would never learn and you would never grow</QuoteValue>
  </Quote>
  <Quote>
    <Author>Bhumibol Adulyadej</Author>
    <Language>English</Language>
    <QuoteValue>Nature is something outside our body, but the mind is within us</QuoteValue>
  </Quote>
  <Quote>
    <Author>Bill Cosby</Author>
    <Language>English</Language>
    <QuoteValue>Every closed eye is not sleeping, and every open eye is not seeing</QuoteValue>
  </Quote>
  <Quote>
    <Author>Bill Gates</Author>
    <Language>English</Language>
    <QuoteValue>Success is a lousy teacher. It seduces smart people into thinking they can't lose</QuoteValue>
  </Quote>
  <Quote>
    <Author>Billy Graham</Author>
    <Language>English</Language>
    <QuoteValue>A child who is allowed to be disrespectful to his parents will not have true respect for anyone</QuoteValue>
  </Quote>
  <Quote>
    <Author>Bob Dylan</Author>
    <Language>English</Language>
    <QuoteValue>Take care of all your memories. For you cannot relive them</QuoteValue>
  </Quote>
  <Quote>
    <Author>Bob Marley</Author>
    <Language>English</Language>
    <QuoteValue>One good thing about music, when it hits you, you feel no pain</QuoteValue>
  </Quote>
  <Quote>
    <Author>Brene Brown</Author>
    <Language>English</Language>
    <QuoteValue>There is no innovation and creativity without failure. Period</QuoteValue>
  </Quote>
  <Quote>
    <Author>Calvin Coolidge</Author>
    <Language>English</Language>
    <QuoteValue>No person was ever honored for what he received. Honor has been the reward for what he gave</QuoteValue>
  </Quote>
  <Quote>
    <Author>Carl Jung</Author>
    <Language>English</Language>
    <QuoteValue>The word 'happy' would lose its meaning if it were not balanced by sadness</QuoteValue>
  </Quote>
  <Quote>
    <Author>Carol Burnett</Author>
    <Language>English</Language>
    <QuoteValue>Only I can change my life. No one can do it for me</QuoteValue>
  </Quote>
  <Quote>
    <Author>Charles R. Swindoll</Author>
    <Language>English</Language>
    <QuoteValue>Life is 10% what happens to you and 90% how you react to it</QuoteValue>
  </Quote>
  <Quote>
    <Author>Charles Spurgeon</Author>
    <Language>English</Language>
    <QuoteValue>A lie can travel half way around the world while the truth is putting on its shoes</QuoteValue>
  </Quote>
  <Quote>
    <Author>Chester Bennington</Author>
    <Language>English</Language>
    <QuoteValue>You're constantly trying to prove yourself, even after you've made it</QuoteValue>
  </Quote>
  <Quote>
    <Author>Christopher Hitchens</Author>
    <Language>English</Language>
    <QuoteValue>What can be asserted without evidence can be dismissed without evidence</QuoteValue>
  </Quote>
  <Quote>
    <Author>Clint Eastwood</Author>
    <Language>English</Language>
    <QuoteValue>They say marriages are made in Heaven. But so is thunder and lightning</QuoteValue>
  </Quote>
  <Quote>
    <Author>Coco Chanel</Author>
    <Language>English</Language>
    <QuoteValue>A girl should be two things: classy and fabulous</QuoteValue>
  </Quote>
  <Quote>
    <Author>Colin Powell</Author>
    <Language>English</Language>
    <QuoteValue>A dream doesn't become reality through magic; it takes sweat, determination and hard work</QuoteValue>
  </Quote>
  <Quote>
    <Author>Conor McGregor</Author>
    <Language>English</Language>
    <QuoteValue>The thing about the truth is, not a lot of people can handle it</QuoteValue>
  </Quote>
  <Quote>
    <Author>e. e. cummings</Author>
    <Language>English</Language>
    <QuoteValue>The most wasted of all days is one without laughter</QuoteValue>
  </Quote>
  <Quote>
    <Author>Eckhart Tolle</Author>
    <Language>English</Language>
    <QuoteValue>Life is an adventure, it's not a package tour</QuoteValue>
  </Quote>
  <Quote>
    <Author>Edgar Allan Poe</Author>
    <Language>English</Language>
    <QuoteValue>Words have no power to impress the mind without the exquisite horror of their reality</QuoteValue>
  </Quote>
  <Quote>
    <Author>Edmund Burke</Author>
    <Language>English</Language>
    <QuoteValue>The only thing necessary for the triumph of evil is for good men to do nothing</QuoteValue>
  </Quote>
  <Quote>
    <Author>Eleanor Roosevelt</Author>
    <Language>English</Language>
    <QuoteValue>With the new day comes new strength and new thoughts</QuoteValue>
  </Quote>
  <Quote>
    <Author>Elie Wiesel</Author>
    <Language>English</Language>
    <QuoteValue>The opposite of love is not hate, it's indifference</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ellen DeGeneres</Author>
    <Language>English</Language>
    <QuoteValue>People always ask me, 'Were you funny as a child?' Well, no, I was an accountant</QuoteValue>
  </Quote>
  <Quote>
    <Author>Elon Musk</Author>
    <Language>English</Language>
    <QuoteValue>When something is important enough, you do it even if the odds are not in your favor</QuoteValue>
  </Quote>
  <Quote>
    <Author>Elvis Presley</Author>
    <Language>English</Language>
    <QuoteValue>I'm not trying to be sexy. It's just my way of expressing myself when I move around</QuoteValue>
  </Quote>
  <Quote>
    <Author>Emily Dickinson</Author>
    <Language>English</Language>
    <QuoteValue>Morning without you is a dwindled dawn</QuoteValue>
  </Quote>
  <Quote>
    <Author>Eminem</Author>
    <Language>English</Language>
    <QuoteValue>Somewhere deep down there's a decent man in me, he just can't be found</QuoteValue>
  </Quote>
  <Quote>
    <Author>Epictetus</Author>
    <Language>English</Language>
    <QuoteValue>
      The key is to keep company only with people who uplift you, whose presence calls forth your

      best
    </QuoteValue>
  </Quote>
  <Quote>
    <Author>Erma Bombeck</Author>
    <Language>English</Language>
    <QuoteValue>There is a thin line that separates laughter and pain, comedy and tragedy, humor and hurt</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ernest Hemingway</Author>
    <Language>English</Language>
    <QuoteValue>The best way to find out if you can trust somebody is to trust them</QuoteValue>
  </Quote>
  <Quote>
    <Author>Euripides</Author>
    <Language>English</Language>
    <QuoteValue>Friends show their love in times of trouble, not in happiness</QuoteValue>
  </Quote>
  <Quote>
    <Author>F. Scott Fitzgerald</Author>
    <Language>English</Language>
    <QuoteValue>Personality is an unbroken series of successful gestures</QuoteValue>
  </Quote>
  <Quote>
    <Author>Fidel Castro</Author>
    <Language>English</Language>
    <QuoteValue>The revolution is a dictatorship of the exploited against the exploiters</QuoteValue>
  </Quote>
  <Quote>
    <Author>Floyd Mayweather, Jr.</Author>
    <Language>English</Language>
    <QuoteValue>A true champion will fight through anything</QuoteValue>
  </Quote>
  <Quote>
    <Author>Francis Bacon</Author>
    <Language>English</Language>
    <QuoteValue>In order for the light to shine so brightly, the darkness must be present</QuoteValue>
  </Quote>
  <Quote>
    <Author>Francis of Assisi</Author>
    <Language>English</Language>
    <QuoteValue>Start by doing what's necessary; then do what's possible; and suddenly you are doing the impossible</QuoteValue>
  </Quote>
  <Quote>
    <Author>Francois de La Rochefoucauld</Author>
    <Language>English</Language>
    <QuoteValue>We are nearer loving those who hate us than those who love us more than we wish</QuoteValue>
  </Quote>
  <Quote>
    <Author>Frank Lloyd Wright</Author>
    <Language>English</Language>
    <QuoteValue>Study nature, love nature, stay close to nature. It will never fail you</QuoteValue>
  </Quote>
  <Quote>
    <Author>Frank Sinatra</Author>
    <Language>English</Language>
    <QuoteValue>Alcohol may be man's worst enemy, but the bible says love your enemy</QuoteValue>
  </Quote>
  <Quote>
    <Author>Franklin D. Roosevelt</Author>
    <Language>English</Language>
    <QuoteValue>Happiness lies in the joy of achievement and the thrill of creative effort</QuoteValue>
  </Quote>
  <Quote>
    <Author>Franz Kafka</Author>
    <Language>English</Language>
    <QuoteValue>Anyone who keeps the ability to see beauty never grows old</QuoteValue>
  </Quote>
  <Quote>
    <Author>Frederick Douglass</Author>
    <Language>English</Language>
    <QuoteValue>If there is no struggle, there is no progress</QuoteValue>
  </Quote>
  <Quote>
    <Author>Frida Kahlo</Author>
    <Language>English</Language>
    <QuoteValue>Feet, what do I need you for when I have wings to fly?</QuoteValue>
  </Quote>
  <Quote>
    <Author>Friedrich Nietzsche</Author>
    <Language>English</Language>
    <QuoteValue>It is not a lack of love, but a lack of friendship that makes unhappy marriages</QuoteValue>
  </Quote>
  <Quote>
    <Author>Fyodor Dostoevsky</Author>
    <Language>English</Language>
    <QuoteValue>Much unhappiness has come into the world because of bewilderment and things left unsaid</QuoteValue>
  </Quote>
  <Quote>
    <Author>Gary Vaynerchuk</Author>
    <Language>English</Language>
    <QuoteValue>If I could drink only one wine, it would be Champagne</QuoteValue>
  </Quote>
  <Quote>
    <Author>George Bernard Shaw</Author>
    <Language>English</Language>
    <QuoteValue>Life isn't about finding yourself. Life is about creating yourself</QuoteValue>
  </Quote>
  <Quote>
    <Author>George Carlin</Author>
    <Language>English</Language>
    <QuoteValue>The other night I ate at a real nice family restaurant. Every table had an argument going</QuoteValue>
  </Quote>
  <Quote>
    <Author>George Eliot</Author>
    <Language>English</Language>
    <QuoteValue>It is never too late to be what you might have been</QuoteValue>
  </Quote>
  <Quote>
    <Author>George Orwell</Author>
    <Language>English</Language>
    <QuoteValue>War is peace. Freedom is slavery. Ignorance is strength</QuoteValue>
  </Quote>
  <Quote>
    <Author>George S. Patton</Author>
    <Language>English</Language>
    <QuoteValue>Accept the challenges so that you can feel the exhilaration of victory</QuoteValue>
  </Quote>
  <Quote>
    <Author>George Sand</Author>
    <Language>English</Language>
    <QuoteValue>There is only one happiness in this life, to love and be loved</QuoteValue>
  </Quote>
  <Quote>
    <Author>George Santayana</Author>
    <Language>English</Language>
    <QuoteValue>The family is one of nature's masterpieces</QuoteValue>
  </Quote>
  <Quote>
    <Author>George W. Bush</Author>
    <Language>English</Language>
    <QuoteValue>
      You can fool some of the people all the time, and those are the ones you want to concentrate

      on
    </QuoteValue>
  </Quote>
  <Quote>
    <Author>George Washington</Author>
    <Language>English</Language>
    <QuoteValue>It is far better to be alone, than to be in bad company</QuoteValue>
  </Quote>
  <Quote>
    <Author>Georgia O'Keeffe</Author>
    <Language>English</Language>
    <QuoteValue>I decided that if I could paint that flower in a huge scale, you could not ignore its beauty</QuoteValue>
  </Quote>
  <Quote>
    <Author>Gilbert K. Chesterton</Author>
    <Language>English</Language>
    <QuoteValue>The traveler sees what he sees, the tourist sees what he has come to see</QuoteValue>
  </Quote>
  <Quote>
    <Author>Gloria Steinem</Author>
    <Language>English</Language>
    <QuoteValue>
      The problem for all women is we're identified by how we look instead of by our heads and our

      hearts
    </QuoteValue>
  </Quote>
  <Quote>
    <Author>Gore Vidal</Author>
    <Language>English</Language>
    <QuoteValue>Style is knowing who you are, what you want to say, and not giving a damn</QuoteValue>
  </Quote>
  <Quote>
    <Author>Groucho Marx</Author>
    <Language>English</Language>
    <QuoteValue>Outside of a dog, a book is a man's best friend. Inside of a dog it's too dark to read</QuoteValue>
  </Quote>
  <Quote>
    <Author>H. Jackson Brown, Jr.</Author>
    <Language>English</Language>
    <QuoteValue>The best preparation for tomorrow is doing your best today</QuoteValue>
  </Quote>
  <Quote>
    <Author>H. L. Mencken</Author>
    <Language>English</Language>
    <QuoteValue>Democracy is the art and science of running the circus from the monkey cage</QuoteValue>
  </Quote>
  <Quote>
    <Author>H. P. Lovecraft</Author>
    <Language>English</Language>
    <QuoteValue>Unhappy is he to whom the memories of childhood bring only fear and sadness</QuoteValue>
  </Quote>
  <Quote>
    <Author>Hannah Arendt</Author>
    <Language>English</Language>
    <QuoteValue>The most radical revolutionary will become a conservative the day after the revolution</QuoteValue>
  </Quote>
  <Quote>
    <Author>Harry S Truman</Author>
    <Language>English</Language>
    <QuoteValue>It is amazing what you can accomplish if you do not care who gets the credit</QuoteValue>
  </Quote>
  <Quote>
    <Author>Helen Keller</Author>
    <Language>English</Language>
    <QuoteValue>
      Optimism is the faith that leads to achievement. Nothing can be done without hope and

      confidence
    </QuoteValue>
  </Quote>
  <Quote>
    <Author>Helen Mirren</Author>
    <Language>English</Language>
    <QuoteValue>There's no good way to waste your time. Wasting time is just wasting time</QuoteValue>
  </Quote>
  <Quote>
    <Author>Henry David Thoreau</Author>
    <Language>English</Language>
    <QuoteValue>The language of friendship is not words but meanings</QuoteValue>
  </Quote>
  <Quote>
    <Author>Henry Ford</Author>
    <Language>English</Language>
    <QuoteValue>My best friend is the one who brings out the best in me</QuoteValue>
  </Quote>
  <Quote>
    <Author>Henry Rollins</Author>
    <Language>English</Language>
    <QuoteValue>Loneliness adds beauty to life. It puts a special burn on sunsets and makes night air smell better</QuoteValue>
  </Quote>
  <Quote>
    <Author>Henry Wadsworth Longfellow</Author>
    <Language>English</Language>
    <QuoteValue>The best thing one can do when it's raining is to let it rain</QuoteValue>
  </Quote>
  <Quote>
    <Author>Hilaire Belloc</Author>
    <Language>English</Language>
    <QuoteValue>Loss and possession, death and life are one, There falls no shadow where there shines no sun</QuoteValue>
  </Quote>
  <Quote>
    <Author>Hillary Clinton</Author>
    <Language>English</Language>
    <QuoteValue>Women are the largest untapped reservoir of talent in the world</QuoteValue>
  </Quote>
  <Quote>
    <Author>Hunter S. Thompson</Author>
    <Language>English</Language>
    <QuoteValue>Some may never live, but the crazy never die</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ian Anderson</Author>
    <Language>English</Language>
    <QuoteValue>I'm very much an observer and a conduit of thoughts and ideas</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ice Cube</Author>
    <Language>English</Language>
    <QuoteValue>I think, to me, reality is better than being fake</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ice T</Author>
    <Language>English</Language>
    <QuoteValue>A good emcee will rhyme a lot of different ways. Don't limit yourself</QuoteValue>
  </Quote>
  <Quote>
    <Author>Igor Stravinsky</Author>
    <Language>English</Language>
    <QuoteValue>My music is best understood by children and animals</QuoteValue>
  </Quote>
  <Quote>
    <Author>Imelda Marcos</Author>
    <Language>English</Language>
    <QuoteValue>I did not have three thousand pairs of shoes, I had one thousand and sixty</QuoteValue>
  </Quote>
  <Quote>
    <Author>Immanuel Kant</Author>
    <Language>English</Language>
    <QuoteValue>Science is organized knowledge. Wisdom is organized life</QuoteValue>
  </Quote>
  <Quote>
    <Author>Indira Gandhi</Author>
    <Language>English</Language>
    <QuoteValue>People tend to forget their duties but remember their rights</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ira Glass</Author>
    <Language>English</Language>
    <QuoteValue>In most daily journalism, you only fact-check something if it seems a little fishy</QuoteValue>
  </Quote>
  <Quote>
    <Author>Isaac Asimov</Author>
    <Language>English</Language>
    <QuoteValue>People who think they know everything are a great annoyance to those of us who do</QuoteValue>
  </Quote>
  <Quote>
    <Author>Isaac Newton</Author>
    <Language>English</Language>
    <QuoteValue>We build too many walls and not enough bridges</QuoteValue>
  </Quote>
  <Quote>
    <Author>Isabel Allende</Author>
    <Language>English</Language>
    <QuoteValue>My life is about ups and downs, great joys and great losses</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ivanka Trump</Author>
    <Language>English</Language>
    <QuoteValue>Real estate is my life. It is my day job, if you will. But it consumes my nights and weekends, too</QuoteValue>
  </Quote>
  <Quote>
    <Author>Iyanla Vanzant</Author>
    <Language>English</Language>
    <QuoteValue>All things are lessons that God would have us learn</QuoteValue>
  </Quote>
  <Quote>
    <Author>J. Cole</Author>
    <Language>English</Language>
    <QuoteValue>I feel like this: Whatever is in your path and in your heart, you need to do</QuoteValue>
  </Quote>
  <Quote>
    <Author>J. K. Rowling</Author>
    <Language>English</Language>
    <QuoteValue>Never trust anything that can think for itself if you can't see where it keeps its brain</QuoteValue>
  </Quote>
  <Quote>
    <Author>James A. Baldwin</Author>
    <Language>English</Language>
    <QuoteValue>The most dangerous creation of any society is the man who has nothing to lose</QuoteValue>
  </Quote>
  <Quote>
    <Author>Jane Austen</Author>
    <Language>English</Language>
    <QuoteValue>There is nothing like staying at home for real comfort</QuoteValue>
  </Quote>
  <Quote>
    <Author>Jay-Z</Author>
    <Language>English</Language>
    <QuoteValue>Belief in oneself and knowing who you are, I mean, that's the foundation for everything great</QuoteValue>
  </Quote>
  <Quote>
    <Author>Jeff Bezos</Author>
    <Language>English</Language>
    <QuoteValue>If you can't tolerate critics, don't do anything new or interesting</QuoteValue>
  </Quote>
  <Quote>
    <Author>Jesus Christ</Author>
    <Language>English</Language>
    <QuoteValue>Do not let your hearts be troubled. Trust in God; trust also in me</QuoteValue>
  </Quote>
  <Quote>
    <Author>Jim Rohn</Author>
    <Language>English</Language>
    <QuoteValue>Happiness is not something you postpone for the future; it is something you design for the present</QuoteValue>
  </Quote>
  <Quote>
    <Author>Joel Osteen</Author>
    <Language>English</Language>
    <QuoteValue>When you focus on being a blessing, God makes sure that you are always blessed in abundance</QuoteValue>
  </Quote>
  <Quote>
    <Author>Johann Wolfgang von Goethe</Author>
    <Language>English</Language>
    <QuoteValue>He is happiest, be he king or peasant, who finds peace in his home</QuoteValue>
  </Quote>
  <Quote>
    <Author>John C. Maxwell</Author>
    <Language>English</Language>
    <QuoteValue>A leader is one who knows the way, goes the way, and shows the way</QuoteValue>
  </Quote>
  <Quote>
    <Author>John F. Kennedy</Author>
    <Language>English</Language>
    <QuoteValue>If we cannot now end our differences, at least we can help make the world safe for diversity</QuoteValue>
  </Quote>
  <Quote>
    <Author>John Muir</Author>
    <Language>English</Language>
    <QuoteValue>In every walk with nature one receives far more than he seeks</QuoteValue>
  </Quote>
  <Quote>
    <Author>John Wooden</Author>
    <Language>English</Language>
    <QuoteValue>The most important thing in the world is family and love</QuoteValue>
  </Quote>
  <Quote>
    <Author>Joseph Campbell</Author>
    <Language>English</Language>
    <QuoteValue>We must let go of the life we have planned, so as to accept the one that is waiting for us</QuoteValue>
  </Quote>
  <Quote>
    <Author>Kanye West</Author>
    <Language>English</Language>
    <QuoteValue>I feel like I'm too busy writing history to read it</QuoteValue>
  </Quote>
  <Quote>
    <Author>Karl Lagerfeld</Author>
    <Language>English</Language>
    <QuoteValue>Black-and-white always looks modern, whatever that word means</QuoteValue>
  </Quote>
  <Quote>
    <Author>Karl Marx</Author>
    <Language>English</Language>
    <QuoteValue>History repeats itself, first as tragedy, second as farce</QuoteValue>
  </Quote>
  <Quote>
    <Author>Karl Pilkington</Author>
    <Language>English</Language>
    <QuoteValue>I'd rather live in a cave with a view of a palace than live in a palace with a view of a cave</QuoteValue>
  </Quote>
  <Quote>
    <Author>Keanu Reeves</Author>
    <Language>English</Language>
    <QuoteValue>Falling in love and having a relationship are two different things</QuoteValue>
  </Quote>
  <Quote>
    <Author>Keith Richards</Author>
    <Language>English</Language>
    <QuoteValue>You've got the sun, you've got the moon, and you've got the Rolling Stones</QuoteValue>
  </Quote>
  <Quote>
    <Author>Kendrick Lamar</Author>
    <Language>English</Language>
    <QuoteValue>If I'm gonna tell a real story, I'm gonna start with my name</QuoteValue>
  </Quote>
  <Quote>
    <Author>Kevin Hart</Author>
    <Language>English</Language>
    <QuoteValue>Men are like lions. We hunt</QuoteValue>
  </Quote>
  <Quote>
    <Author>Kevin Spacey</Author>
    <Language>English</Language>
    <QuoteValue>Sometimes it's the crazy people who turn out to be not so crazy</QuoteValue>
  </Quote>
  <Quote>
    <Author>Khalil Gibran</Author>
    <Language>English</Language>
    <QuoteValue>Friendship is always a sweet responsibility, never an opportunity</QuoteValue>
  </Quote>
  <Quote>
    <Author>Kim Kardashian</Author>
    <Language>English</Language>
    <QuoteValue>Having lots of siblings is like having built-in best friends</QuoteValue>
  </Quote>
  <Quote>
    <Author>Kin Hubbard</Author>
    <Language>English</Language>
    <QuoteValue>A loafer always has the correct time</QuoteValue>
  </Quote>
  <Quote>
    <Author>Kobe Bryant</Author>
    <Language>English</Language>
    <QuoteValue>Everything negative - pressure, challenges - is all an opportunity for me to rise</QuoteValue>
  </Quote>
  <Quote>
    <Author>Kurt Cobain</Author>
    <Language>English</Language>
    <QuoteValue>I'd rather be hated for who I am, than loved for who I am not</QuoteValue>
  </Quote>
  <Quote>
    <Author>Kurt Vonnegut</Author>
    <Language>English</Language>
    <QuoteValue>We could have saved the Earth but we were too damned cheap</QuoteValue>
  </Quote>
  <Quote>
    <Author>Larry David</Author>
    <Language>English</Language>
    <QuoteValue>I'm a walking, talking enigma. We're a dying breed</QuoteValue>
  </Quote>
  <Quote>
    <Author>Lee Trevino</Author>
    <Language>English</Language>
    <QuoteValue>Pressure is when you play for five dollars a hole with only two in your pocket</QuoteValue>
  </Quote>
  <Quote>
    <Author>Leo Buscaglia</Author>
    <Language>English</Language>
    <QuoteValue>Your talent is God's gift to you. What you do with it is your gift back to God</QuoteValue>
  </Quote>
  <Quote>
    <Author>Leo Durocher</Author>
    <Language>English</Language>
    <QuoteValue>Baseball is like church. Many attend few understand</QuoteValue>
  </Quote>
  <Quote>
    <Author>Leo Tolstoy</Author>
    <Language>English</Language>
    <QuoteValue>The two most powerful warriors are patience and time</QuoteValue>
  </Quote>
  <Quote>
    <Author>Leonardo da Vinci</Author>
    <Language>English</Language>
    <QuoteValue>Tears come from the heart and not from the brain</QuoteValue>
  </Quote>
  <Quote>
    <Author>Les Brown</Author>
    <Language>English</Language>
    <QuoteValue>You are never too old to set another goal or to dream a new dream</QuoteValue>
  </Quote>
  <Quote>
    <Author>Lewis Carroll</Author>
    <Language>English</Language>
    <QuoteValue>If you don't know where you are going, any road will get you there</QuoteValue>
  </Quote>
  <Quote>
    <Author>Lil Wayne</Author>
    <Language>English</Language>
    <QuoteValue>I'm blessed and I thank God for every day for everything that happens for me</QuoteValue>
  </Quote>
  <Quote>
    <Author>Lord Byron</Author>
    <Language>English</Language>
    <QuoteValue>I only go out to get me a fresh appetite for being alone</QuoteValue>
  </Quote>
  <Quote>
    <Author>Lou Holtz</Author>
    <Language>English</Language>
    <QuoteValue>I follow three rules: Do the right thing, do the best you can, and always show people you care</QuoteValue>
  </Quote>
  <Quote>
    <Author>Louis C. K.</Author>
    <Language>English</Language>
    <QuoteValue>I don't stop eating when I'm full. The meal isn't over when I'm full. It's over when I hate myself</QuoteValue>
  </Quote>
  <Quote>
    <Author>Lucius Annaeus Seneca</Author>
    <Language>English</Language>
    <QuoteValue>One of the most beautiful qualities of true friendship is to understand and to be understood</QuoteValue>
  </Quote>
  <Quote>
    <Author>Lyndon B. Johnson</Author>
    <Language>English</Language>
    <QuoteValue>Yesterday is not ours to recover, but tomorrow is ours to win or lose</QuoteValue>
  </Quote>
  <Quote>
    <Author>Malcolm X</Author>
    <Language>English</Language>
    <QuoteValue>Education is the passport to the future, for tomorrow belongs to those who prepare for it today</QuoteValue>
  </Quote>
  <Quote>
    <Author>Marcus Aurelius</Author>
    <Language>English</Language>
    <QuoteValue>Very little is needed to make a happy life; it is all within yourself, in your way of thinking</QuoteValue>
  </Quote>
  <Quote>
    <Author>Maria Montessori</Author>
    <Language>English</Language>
    <QuoteValue>Free the child's potential, and you will transform him into the world</QuoteValue>
  </Quote>
  <Quote>
    <Author>Marilyn Monroe</Author>
    <Language>English</Language>
    <QuoteValue>I restore myself when I'm alone</QuoteValue>
  </Quote>
  <Quote>
    <Author>Martin Luther</Author>
    <Language>English</Language>
    <QuoteValue>Let the wife make the husband glad to come home, and let him make her sorry to see him leave</QuoteValue>
  </Quote>
  <Quote>
    <Author>Martin Luther King, Jr.</Author>
    <Language>English</Language>
    <QuoteValue>In the End, we will remember not the words of our enemies, but the silence of our friends</QuoteValue>
  </Quote>
  <Quote>
    <Author>Maya Angelou</Author>
    <Language>English</Language>
    <QuoteValue>If you don't like something, change it. If you can't change it, change your attitude</QuoteValue>
  </Quote>
  <Quote>
    <Author>Michael Jordan</Author>
    <Language>English</Language>
    <QuoteValue>Talent wins games, but teamwork and intelligence wins championships</QuoteValue>
  </Quote>
  <Quote>
    <Author>Michelle Obama</Author>
    <Language>English</Language>
    <QuoteValue>Just try new things. Don't be afraid. Step out of your comfort zones and soar, all right?</QuoteValue>
  </Quote>
  <Quote>
    <Author>Mick Jagger</Author>
    <Language>English</Language>
    <QuoteValue>Anything worth doing is worth overdoing</QuoteValue>
  </Quote>
  <Quote>
    <Author>Mitch Hedberg</Author>
    <Language>English</Language>
    <QuoteValue>My fake plants died because I did not pretend to water them</QuoteValue>
  </Quote>
  <Quote>
    <Author>Mother Teresa</Author>
    <Language>English</Language>
    <QuoteValue>Let us always meet each other with smile, for the smile is the beginning of love</QuoteValue>
  </Quote>
  <Quote>
    <Author>Muhammad Ali</Author>
    <Language>English</Language>
    <QuoteValue>It's lack of faith that makes people afraid of meeting challenges, and I believed in myself</QuoteValue>
  </Quote>
  <Quote>
    <Author>Napoleon Bonaparte</Author>
    <Language>English</Language>
    <QuoteValue>You must not fight too often with one enemy, or you will teach him all your art of war</QuoteValue>
  </Quote>
  <Quote>
    <Author>Napoleon Hill</Author>
    <Language>English</Language>
    <QuoteValue>Strength and growth come only through continuous effort and struggle</QuoteValue>
  </Quote>
  <Quote>
    <Author>Nas</Author>
    <Language>English</Language>
    <QuoteValue>I want to have fun. It's a beautiful life. You learn, you win, you lose, but you get up</QuoteValue>
  </Quote>
  <Quote>
    <Author>Neil deGrasse Tyson</Author>
    <Language>English</Language>
    <QuoteValue>The Universe is under no obligation to make sense to you</QuoteValue>
  </Quote>
  <Quote>
    <Author>Neil Gaiman</Author>
    <Language>English</Language>
    <QuoteValue>I wish being a beekeeper, which I am, gave you a free pass on the carbon footprint, but it doesn't</QuoteValue>
  </Quote>
  <Quote>
    <Author>Nelson Mandela</Author>
    <Language>English</Language>
    <QuoteValue>It always seems impossible until it's done</QuoteValue>
  </Quote>
  <Quote>
    <Author>Niccolo Machiavelli</Author>
    <Language>English</Language>
    <QuoteValue>The wise man does at once what the fool does finally</QuoteValue>
  </Quote>
  <Quote>
    <Author>Nicki Minaj</Author>
    <Language>English</Language>
    <QuoteValue>Your victory is right around the corner. Never give up</QuoteValue>
  </Quote>
  <Quote>
    <Author>Nicolas Cage</Author>
    <Language>English</Language>
    <QuoteValue>Every great story seems to begin with a snake</QuoteValue>
  </Quote>
  <Quote>
    <Author>Noam Chomsky</Author>
    <Language>English</Language>
    <QuoteValue>If we don't believe in freedom of expression for people we despise, we don't believe in it at all</QuoteValue>
  </Quote>
  <Quote>
    <Author>Norman Lear</Author>
    <Language>English</Language>
    <QuoteValue>So we gravitated to shows and issues and causes that made people care</QuoteValue>
  </Quote>
  <Quote>
    <Author>Norman Ralph Augustine</Author>
    <Language>English</Language>
    <QuoteValue>Motivation will almost always beat mere talent</QuoteValue>
  </Quote>
  <Quote>
    <Author>Norman Schwarzkopf</Author>
    <Language>English</Language>
    <QuoteValue>The more you sweat in peace, the less you bleed in war</QuoteValue>
  </Quote>
  <Quote>
    <Author>Norman Vincent Peale</Author>
    <Language>English</Language>
    <QuoteValue>Change your thoughts and you change your world</QuoteValue>
  </Quote>
  <Quote>
    <Author>P. J. O'Rourke</Author>
    <Language>English</Language>
    <QuoteValue>Gossip is what you say about the objects of flattery when they aren't present</QuoteValue>
  </Quote>
  <Quote>
    <Author>P. T. Barnum</Author>
    <Language>English</Language>
    <QuoteValue>Every crowd has a silver lining</QuoteValue>
  </Quote>
  <Quote>
    <Author>Pablo Picasso</Author>
    <Language>English</Language>
    <QuoteValue>The purpose of art is washing the dust of daily life off our souls</QuoteValue>
  </Quote>
  <Quote>
    <Author>Patti Smith</Author>
    <Language>English</Language>
    <QuoteValue>As I grew up, one of my strongest allies has been my sister</QuoteValue>
  </Quote>
  <Quote>
    <Author>Paulo Coelho</Author>
    <Language>English</Language>
    <QuoteValue>When you are enthusiastic about what you do, you feel this positive energy. It's very simple</QuoteValue>
  </Quote>
  <Quote>
    <Author>Pele</Author>
    <Language>English</Language>
    <QuoteValue>Enthusiasm is everything. It must be taut and vibrating like a guitar string</QuoteValue>
  </Quote>
  <Quote>
    <Author>Peter Drucker</Author>
    <Language>English</Language>
    <QuoteValue>Management is doing things right; leadership is doing the right things</QuoteValue>
  </Quote>
  <Quote>
    <Author>Phil McGraw</Author>
    <Language>English</Language>
    <QuoteValue>Sometimes you make the right decision, sometimes you make the decision right</QuoteValue>
  </Quote>
  <Quote>
    <Author>Pierre Teilhard de Chardin</Author>
    <Language>English</Language>
    <QuoteValue>The most satisfying thing in life is to have been able to give a large part of one's self to others</QuoteValue>
  </Quote>
  <Quote>
    <Author>Plato</Author>
    <Language>English</Language>
    <QuoteValue>Wise men speak because they have something to say; Fools because they have to say something</QuoteValue>
  </Quote>
  <Quote>
    <Author>Pope Francis</Author>
    <Language>English</Language>
    <QuoteValue>Life is a journey. When we stop, things don't go right</QuoteValue>
  </Quote>
  <Quote>
    <Author>Pope John Paul II</Author>
    <Language>English</Language>
    <QuoteValue>An excuse is worse and more terrible than a lie, for an excuse is a lie guarded</QuoteValue>
  </Quote>
  <Quote>
    <Author>Post Malone</Author>
    <Language>English</Language>
    <QuoteValue>You just got with the flow because life is just all about how you feel</QuoteValue>
  </Quote>
  <Quote>
    <Author>Prince</Author>
    <Language>English</Language>
    <QuoteValue>There's a dark side to everything</QuoteValue>
  </Quote>
  <Quote>
    <Author>Princess Diana</Author>
    <Language>English</Language>
    <QuoteValue>Family is the most important thing in the world</QuoteValue>
  </Quote>
  <Quote>
    <Author>Rabindranath Tagore</Author>
    <Language>English</Language>
    <QuoteValue>You can't cross the sea merely by standing and staring at the water</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ralph Waldo Emerson</Author>
    <Language>English</Language>
    <QuoteValue>People only see what they are prepared to see</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ray Bradbury</Author>
    <Language>English</Language>
    <QuoteValue>Jump, and you will find out how to unfold your wings as you fall</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ric Flair</Author>
    <Language>English</Language>
    <QuoteValue>Space Mountain may be the oldest ride in the park, but it has the longest line</QuoteValue>
  </Quote>
  <Quote>
    <Author>Richard Branson</Author>
    <Language>English</Language>
    <QuoteValue>You don't learn to walk by following rules. You learn by doing, and by falling over</QuoteValue>
  </Quote>
  <Quote>
    <Author>Richard Dawkins</Author>
    <Language>English</Language>
    <QuoteValue>By all means let's be open-minded, but not so open-minded that our brains drop out</QuoteValue>
  </Quote>
  <Quote>
    <Author>Richard P. Feynman</Author>
    <Language>English</Language>
    <QuoteValue>I was born not knowing and have had only a little time to change that here and there</QuoteValue>
  </Quote>
  <Quote>
    <Author>Robert A. Heinlein</Author>
    <Language>English</Language>
    <QuoteValue>May you live as long as you wish and love as long as you live</QuoteValue>
  </Quote>
  <Quote>
    <Author>Robert Bade</Author>
    <Language>English</Language>
    <QuoteValue>owell - I believe that God put us in this jolly world to be happy and enjoy life</QuoteValue>
  </Quote>
  <Quote>
    <Author>Robert Frost</Author>
    <Language>English</Language>
    <QuoteValue>The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep</QuoteValue>
  </Quote>
  <Quote>
    <Author>Robert Kennedy</Author>
    <Language>English</Language>
    <QuoteValue>Only those who dare to fail greatly can ever achieve greatly</QuoteValue>
  </Quote>
  <Quote>
    <Author>Robin Williams</Author>
    <Language>English</Language>
    <QuoteValue>No matter what people tell you, words and ideas can change the world</QuoteValue>
  </Quote>
  <Quote>
    <Author>Rodney Dangerfield</Author>
    <Language>English</Language>
    <QuoteValue>I found there was only one way to look thin: hang out with fat people</QuoteValue>
  </Quote>
  <Quote>
    <Author>Ronald Reagan</Author>
    <Language>English</Language>
    <QuoteValue>Peace is not absence of conflict, it is the ability to handle conflict by peaceful means</QuoteValue>
  </Quote>
  <Quote>
    <Author>Rumi</Author>
    <Language>English</Language>
    <QuoteValue>Let the beauty of what you love be what you do</QuoteValue>
  </Quote>
  <Quote>
    <Author>Saint Augustine</Author>
    <Language>English</Language>
    <QuoteValue>Patience is the companion of wisdom</QuoteValue>
  </Quote>
  <Quote>
    <Author>Salvador Dali</Author>
    <Language>English</Language>
    <QuoteValue>Intelligence without ambition is a bird without wings</QuoteValue>
  </Quote>
  <Quote>
    <Author>Samuel Johnson</Author>
    <Language>English</Language>
    <QuoteValue>Great works are performed not by strength but by perseverance</QuoteValue>
  </Quote>
  <Quote>
    <Author>Sigmund Freud</Author>
    <Language>English</Language>
    <QuoteValue>We are never so defensless against suffering as when we love</QuoteValue>
  </Quote>
  <Quote>
    <Author>Simon Sinek</Author>
    <Language>English</Language>
    <QuoteValue>Leadership is not about the next election, it's about the next generation</QuoteValue>
  </Quote>
  <Quote>
    <Author>Socrates</Author>
    <Language>English</Language>
    <QuoteValue>The only true wisdom is in knowing you know nothing</QuoteValue>
  </Quote>
  <Quote>
    <Author>Soren Kierkegaard</Author>
    <Language>English</Language>
    <QuoteValue>Prayer does not change God, but it changes him who prays</QuoteValue>
  </Quote>
  <Quote>
    <Author>Stanley Kubrick</Author>
    <Language>English</Language>
    <QuoteValue>Art consists of reshaping life, but it does not create life nor cause life</QuoteValue>
  </Quote>
</Quotes>

redpajama_set_name: RedPajamaGithub


text:
package ccv2

import (
	"bytes"
	"encoding/json"

	"code.cloudfoundry.org/cli/api/cloudcontroller"
	"code.cloudfoundry.org/cli/api/cloudcontroller/ccerror"
	"code.cloudfoundry.org/cli/api/cloudcontroller/ccv2/constant"
	"code.cloudfoundry.org/cli/api/cloudcontroller/ccv2/internal"
)

// Domain represents a Cloud Controller Domain.
type Domain struct {
	// GUID is the unique domain identifier.
	GUID string

	// Internal indicates whether the domain is an internal domain.
	Internal bool

	// Name is the name given to the domain.
	Name string

	// RouterGroupGUID is the unique identier of the router group this domain is
	// assigned to.
	RouterGroupGUID string

	// RouterGroupType is the type of router group this domain is assigned to. It
	// can be of type `tcp` or `http`.
	RouterGroupType constant.RouterGroupType

	// DomainType is the access type of the domain. It can be either a domain
	// private to a single org or it can be a domain shared to all orgs.
	Type constant.DomainType
}

// UnmarshalJSON helps unmarshal a Cloud Controller Domain response.
func (domain *Domain) UnmarshalJSON(data []byte) error {
	var ccDomain struct {
		Metadata internal.Metadata `json:"metadata"`
		Entity   struct {
			Name            string `json:"name"`
			RouterGroupGUID string `json:"router_group_guid"`
			RouterGroupType string `json:"router_group_type"`
			Internal        bool   `json:"internal"`
		} `json:"entity"`
	}
	err := cloudcontroller.DecodeJSON(data, &ccDomain)
	if err != nil {
		return err
	}

	domain.GUID = ccDomain.Metadata.GUID
	domain.Name = ccDomain.Entity.Name
	domain.RouterGroupGUID = ccDomain.Entity.RouterGroupGUID
	domain.RouterGroupType = constant.RouterGroupType(ccDomain.Entity.RouterGroupType)
	domain.Internal = ccDomain.Entity.Internal
	return nil
}

type createSharedDomainBody struct {
	Name            string `json:"name"`
	RouterGroupGUID string `json:"router_group_guid,omitempty"`
}

func (client *Client) CreateSharedDomain(domainName string, routerGroupdGUID string) (Warnings, error) {
	body := createSharedDomainBody{
		Name:            domainName,
		RouterGroupGUID: routerGroupdGUID,
	}
	bodyBytes, err := json.Marshal(body)
	request, err := client.newHTTPRequest(requestOptions{
		RequestName: internal.PostSharedDomainRequest,
		Body:        bytes.NewReader(bodyBytes),
	})

	if err != nil {
		return nil, err
	}

	var response cloudcontroller.Response

	err = client.connection.Make(request, &response)
	return response.Warnings, err
}

// GetOrganizationPrivateDomains returns the private domains associated with an organization.
func (client *Client) GetOrganizationPrivateDomains(orgGUID string, filters ...Filter) ([]Domain, Warnings, error) {
	request, err := client.newHTTPRequest(requestOptions{
		RequestName: internal.GetOrganizationPrivateDomainsRequest,
		Query:       ConvertFilterParameters(filters),
		URIParams:   map[string]string{"organization_guid": orgGUID},
	})
	if err != nil {
		return []Domain{}, nil, err
	}

	fullDomainsList := []Domain{}
	warnings, err := client.paginate(request, Domain{}, func(item interface{}) error {
		if domain, ok := item.(Domain); ok {
			domain.Type = constant.PrivateDomain
			fullDomainsList = append(fullDomainsList, domain)
		} else {
			return ccerror.UnknownObjectInListError{
				Expected:   Domain{},
				Unexpected: item,
			}
		}
		return nil
	})

	return fullDomainsList, warnings, err
}

// GetPrivateDomain returns the Private Domain associated with the provided
// Domain GUID.
func (client *Client) GetPrivateDomain(domainGUID string) (Domain, Warnings, error) {
	request, err := client.newHTTPRequest(requestOptions{
		RequestName: internal.GetPrivateDomainRequest,
		URIParams:   map[string]string{"private_domain_guid": domainGUID},
	})
	if err != nil {
		return Domain{}, nil, err
	}

	var domain Domain
	response := cloudcontroller.Response{
		Result: &domain,
	}

	err = client.connection.Make(request, &response)
	if err != nil {
		return Domain{}, response.Warnings, err
	}

	domain.Type = constant.PrivateDomain
	return domain, response.Warnings, nil
}

// GetPrivateDomains returns the private domains this client has access to.
func (client *Client) GetPrivateDomains(filters ...Filter) ([]Domain, Warnings, error) {
	request, err := client.newHTTPRequest(requestOptions{
		RequestName: internal.GetPrivateDomainsRequest,
		Query:       ConvertFilterParameters(filters),
	})
	if err != nil {
		return []Domain{}, nil, err
	}

	fullDomainsList := []Domain{}
	warnings, err := client.paginate(request, Domain{}, func(item interface{}) error {
		if domain, ok := item.(Domain); ok {
			domain.Type = constant.PrivateDomain
			fullDomainsList = append(fullDomainsList, domain)
		} else {
			return ccerror.UnknownObjectInListError{
				Expected:   Domain{},
				Unexpected: item,
			}
		}
		return nil
	})

	return fullDomainsList, warnings, err
}

// GetSharedDomain returns the Shared Domain associated with the provided
// Domain GUID.
func (client *Client) GetSharedDomain(domainGUID string) (Domain, Warnings, error) {
	request, err := client.newHTTPRequest(requestOptions{
		RequestName: internal.GetSharedDomainRequest,
		URIParams:   map[string]string{"shared_domain_guid": domainGUID},
	})
	if err != nil {
		return Domain{}, nil, err
	}

	var domain Domain
	response := cloudcontroller.Response{
		Result: &domain,
	}

	err = client.connection.Make(request, &response)
	if err != nil {
		return Domain{}, response.Warnings, err
	}

	domain.Type = constant.SharedDomain
	return domain, response.Warnings, nil
}

// GetSharedDomains returns the global shared domains.
func (client *Client) GetSharedDomains(filters ...Filter) ([]Domain, Warnings, error) {
	request, err := client.newHTTPRequest(requestOptions{
		RequestName: internal.GetSharedDomainsRequest,
		Query:       ConvertFilterParameters(filters),
	})
	if err != nil {
		return []Domain{}, nil, err
	}

	fullDomainsList := []Domain{}
	warnings, err := client.paginate(request, Domain{}, func(item interface{}) error {
		if domain, ok := item.(Domain); ok {
			domain.Type = constant.SharedDomain
			fullDomainsList = append(fullDomainsList, domain)
		} else {
			return ccerror.UnknownObjectInListError{
				Expected:   Domain{},
				Unexpected: item,
			}
		}
		return nil
	})

	return fullDomainsList, warnings, err
}


text:
namespace ymaps.event {

    interface ManagerStatic {
        new(parameters?:ManagerParameters):Manager;
    }
    interface Manager extends interfaces.IEventManager {
        createEventObject(type:string, event:any, target:any):Event;
        once(types:string|string[], callback:(event?:Event) => any, context?:any, priority:number = 0):interfaces.IEventManager;
    }

    interface ManagerParameters {
        context    ?:any;
        controllers?:interfaces.IEventWorkflowController[];
        parent     ?:interfaces.IEventManager;
    }

    declare var Manager:ManagerStatic;
}


text:
{% load i18n %}

{% if settings.SHIBBOLETH %}

    <a class="btn btn-success extend" href="{{ settings.LOGIN_URL }}">
        {% trans 'Login with Shibboleth' %}
    </a>

{% else %}

<form method="post" action="{% url 'account_login' %}">
    {% csrf_token %}

    {% if redirect_field_value %}
    <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
    {% endif %}

    {% include 'core/bootstrap_form_fields.html' %}

    <input type="submit" class="btn btn-primary" value="{% trans 'Login' %}" />
</form>

{% endif %}

{% if settings.ACCOUNT %}
{% include 'account/login_form_account.html' %}
{% endif %}

{% if settings.SOCIALACCOUNT %}
{% include 'account/login_form_socialaccount.html' %}
{% endif %}


text:
#pragma once

#include "MemMapFile.h"

/**
 * A simple logger implementation test
 */
class CLogger
{
public:
	CLogger();
	~CLogger();

	bool Create(LPCTSTR lpMmfName);
	bool Open(LPCTSTR lpMmfName);
	void Close();

	void Output(const char* szMsg) { Output(0,0, szMsg); }
	void Output(DWORD dwCategory, DWORD dwSubCategory, const char* szMsg);

	struct LogEntry
	{
		DWORD dwIndex;
		DWORD dwTime;
		DWORD dwCategory;
		DWORD dwSubCategory;
		CHAR  szMessage[512-(sizeof(DWORD)*4)];
		size_t GetSize() const { return sizeof(DWORD)*4+sizeof(szMessage); }
	};

	bool Receive(LogEntry& entry);

	void  SetSizeOfArray(DWORD nSize);
	size_t GetSizeOfArray();

	DWORD GetMissCount();
	DWORD GetWriteIndex();
	DWORD GeReadIndex();

protected:
	DWORD m_dwStartTime;
	DWORD m_dwIndex;

	volatile DWORD m_nReadIndex;
	volatile DWORD m_nMissCount;
	volatile DWORD m_nSkippedIndex;

	dog::CMemMapFile m_MemMapFile;

	class CLogBuffer;
	CLogBuffer* m_pBuffer;
};


text:
<?php
defined('BASEPATH') or exit('No direct script access allowed');

class General extends CI_Controller
{
    protected $class_name   = null;
    protected $library_name = null;

    public function __construct()
    {
        parent::__construct();
    }

    public function status($id = null)
    {
        $library_name = $this->library_name;

        $item = $this->$library_name->get($id)->row();

        $data           = array();
        $data['status'] = $item->status == 0 ? 1 : 0;

        $this->$library_name->edit($id, $data);

        redirect(base_url() . 'adm/' . $this->class_name . '/');
    }

    public function delete($id = null)
    {
        $library_name = $this->library_name;

        $this->$library_name->delete($id);

        redirect(base_url() . 'adm/' . $this->class_name . '/');
    }
}


text:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Increase array members</title>

Test me on console :)


text:
import random

from unittest import mock

from neutron.objects import address_group
from neutron.objects import address_scope
from neutron.objects import network
from neutron.objects.qos import policy
from neutron.objects import rbac
from neutron.objects import securitygroup
from neutron.objects import subnetpool
from neutron.tests import base as neutron_test_base
from neutron.tests.unit.objects import test_base

class TestRBACObjectMixin(object):

    def get_random_object_fields(self, obj_cls=None):
        fields = (super(TestRBACObjectMixin, self).
                  get_random_object_fields(obj_cls))
        rnd_actions = self._test_class.db_model.get_valid_actions()
        idx = random.randint(0, len(rnd_actions) - 1)
        fields['action'] = rnd_actions[idx]
        return fields

class RBACBaseObjectTestCase(neutron_test_base.BaseTestCase):

    def test_get_type_class_map(self):
        class_map = {'address_group': address_group.AddressGroupRBAC,
                     'address_scope': address_scope.AddressScopeRBAC,
                     'qos_policy': policy.QosPolicyRBAC,
                     'network': network.NetworkRBAC,
                     'security_group': securitygroup.SecurityGroupRBAC,
                     'subnetpool': subnetpool.SubnetPoolRBAC}
        self.assertEqual(class_map, rbac.RBACBaseObject.get_type_class_map())

class RBACBaseObjectIfaceTestCase(test_base.BaseObjectIfaceTestCase):

    def test_get_object(self, context=None):
        super(RBACBaseObjectIfaceTestCase,
              self).test_get_object(context=mock.ANY)

    def test_get_objects(self, context=None):
        super(RBACBaseObjectIfaceTestCase,
              self).test_get_objects(context=mock.ANY)


text:
This web application is meant to look up and manage the records of DNS and WHOIS information

## Installation

1. Install webpack `sudo npm i -g webpack`
2. Install npm dependencies `npm i`
3. Build `webpack`
4. To start the server, run `node index.js`

## Dependencies

- Webpack
- Mongo


text:
require "forwardable"
require "terrestrial/inspection_string"

module Terrestrial
  class CollectionMutabilityProxy
    extend Forwardable
    include InspectionString
    include Enumerable

    def initialize(collection)
      @collection = collection
      @added_nodes = []
      @deleted_nodes = []
    end

    attr_reader :collection, :deleted_nodes, :added_nodes
    private     :collection, :deleted_nodes, :added_nodes

    def_delegators :collection, :where, :subset

    def each_loaded(&block)
      loaded_enum.each(&block)
    end

    def each_deleted(&block)
      @deleted_nodes.each(&block)
    end

    def to_ary
      to_a
    end

    def each(&block)
      if block
        enum.each(&block)
        self
      else
        enum
      end
    end

    def delete(node)
      @deleted_nodes.push(node)
      self
    end

    def push(node)
      force_load
      @added_nodes.push(node)
    end

    private

    def force_load
      to_a
    end

    def loaded_enum
      Enumerator.new do |yielder|
        collection.each_loaded do |element|
          yielder.yield(element) unless deleted?(element)
        end

        added_nodes.each do |node|
          yielder.yield(node)
        end
      end
    end

    def enum
      Enumerator.new do |yielder|
        collection.each do |element|
          yielder.yield(element) unless deleted?(element)
        end

        added_nodes.each do |node|
          yielder.yield(node)
        end
      end
    end

    def deleted?(node)
      @deleted_nodes.include?(node)
    end
  end
end


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>IESKey (Bouncy Castle Library 1.54 API Specification)</title>
<meta name="date" content="2015-12-29">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Tree

Deprecated

Index

Help

Bouncy Castle Cryptography Library 1.54

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

org.bouncycastle.jce.interfaces

Interface IESKey

All Superinterfaces:

java.security.Key, java.io.Serializable

All Known Implementing Classes:

IEKeySpec

public interface IESKey
extends java.security.Key

key pair for use with an integrated encryptor

Field Summary

Fields inherited from interface java.security.Key

serialVersionUID

Method Summary

Methods

Modifier and Type
Method and Description

java.security.PrivateKey
getPrivate()

return the local private key.

java.security.PublicKey
getPublic()

return the intended recipient's/sender's public key.

Methods inherited from interface java.security.Key

getAlgorithm, getEncoded, getFormat

Method Detail

getPublic

java.security.PublicKey getPublic()

return the intended recipient's/sender's public key.

getPrivate

java.security.PrivateKey getPrivate()

return the local private key.

Overview

Package

Class

Tree

Deprecated

Index

Help

Bouncy Castle Cryptography Library 1.54

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
using System;
using DdpClient.EJson;
using Newtonsoft.Json;
using NUnit.Framework;

namespace DDPClient.Tests
{
    [TestFixture]
    public class DdpConverterTests
    {
        [Test]
        public void ShouldDeserializeDdpBinary()
        {
            string ddpBinary = "{\"$binary\":\"ICAgICAgIA==\"}";
            DdpBinary expected = new DdpBinary
            {
                Data = new byte[] {0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20}
            };

            DdpBinary result = JsonConvert.DeserializeObject<DdpBinary>(ddpBinary);

            Assert.AreEqual(expected.Data, result.Data);
        }

        [Test]
        public void ShouldDeserializeDdpDate()
        {
            string ddpDate = "{\"$date\":1447770390000}";
            DdpDate expected = new DdpDate
            {
                DateTime = new DateTime(2015, 11, 17, 14, 26, 30)
            };

            DdpDate result = JsonConvert.DeserializeObject<DdpDate>(ddpDate);

            Assert.AreEqual(expected.DateTime, result.DateTime);
        }

        [Test]
        public void ShouldSerializeDdpBinary()
        {
            DdpBinary binary = new DdpBinary
            {
                Data = new byte[] {0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20}
            };
            string expected = "{\"$binary\":\"ICAgICAgIA==\"}";

            string result = JsonConvert.SerializeObject(binary);

            Assert.AreEqual(expected, result);
        }

        [Test]
        public void ShouldSerializeDdpDate()
        {
            DdpDate date = new DdpDate
            {
                DateTime = new DateTime(2015, 11, 17, 14, 26, 30)
            };
            string expected = "{\"$date\":1447770390000}";

            string result = JsonConvert.SerializeObject(date);

            Assert.AreEqual(expected, result);
        }
    }
}


text:
//---------------------------------------------------------------------
// <copyright file="WellKnownTextSqlReader.cs" company="Microsoft">
//      Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.Spatial
{
    using System;
    using System.Diagnostics.CodeAnalysis;
    using System.Globalization;
    using System.IO;
    using System.Text;
    using System.Xml;
    using Microsoft.Spatial;

    /// <summary>
    /// Reader for Extended Well Known Text, Case sensitive
    /// example:
    /// SRID=1234;POINT(10.0 20.0 NULL 30.0)
    /// </summary>
    internal class WellKnownTextSqlReader : SpatialReader<TextReader>
    {
        /// <summary>
        /// restricts the reader to allow only two dimensions.
        /// </summary>
        private bool allowOnlyTwoDimensions;

        /// <summary>
        /// Creates a reader that that will send messages to the destination during read.
        /// </summary>
        /// <param name="destination">The instance to message to during read.</param>
        public WellKnownTextSqlReader(SpatialPipeline destination)
            : this(destination, false)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="WellKnownTextSqlReader"/> class.
        /// </summary>
        /// <param name="destination">The destination.</param>
        /// <param name="allowOnlyTwoDimensions">if set to <c>true</c> allows only two dimensions.</param>
        public WellKnownTextSqlReader(SpatialPipeline destination, bool allowOnlyTwoDimensions)
            : base(destination)
        {
            this.allowOnlyTwoDimensions = allowOnlyTwoDimensions;
        }

        /// <summary>
        /// Parses some serialized format that represents a geography value, passing the result down the pipeline.
        /// </summary>
        /// <param name = "input">TextReader instance to read from.</param>
        protected override void ReadGeographyImplementation(TextReader input)
        {
            // Geography in WKT has lat/long reversed, should be y (long), x (lat), z, m
            new Parser(input, new TypeWashedToGeographyLongLatPipeline(this.Destination), allowOnlyTwoDimensions).Read();
        }

        /// <summary>
        /// Parses some serialized format that represents a geometry value, passing the result down the pipeline.
        /// </summary>
        /// <param name = "input">TextReader instance to read from.</param>
        protected override void ReadGeometryImplementation(TextReader input)
        {
            new Parser(input, new TypeWashedToGeometryPipeline(this.Destination), allowOnlyTwoDimensions).Read();
        }

        /// <summary>
        /// This class parses the text and calls the pipeline based on what is parsed
        /// </summary>
        private class Parser
        {
            /// <summary>
            /// restricts the parser to allow only two dimensions.
            /// </summary>
            private readonly bool allowOnlyTwoDimensions;

            /// <summary>
            /// Text lexer
            /// </summary>
            private readonly TextLexerBase lexer;

            /// <summary>
            /// Output pipeline
            /// </summary>
            private readonly TypeWashedPipeline pipeline;

            /// <summary>
            /// Creates a parser with the given reader and pipeline
            /// </summary>
            /// <param name="reader">The reader that is the source of what is parsed.</param>
            /// <param name="pipeline">The pipeline to be called as the parser recognizes tokens.</param>
            /// <param name="allowOnlyTwoDimensions">if set to <c>true</c> allows only two dimensions.</param>
            public Parser(TextReader reader, TypeWashedPipeline pipeline, bool allowOnlyTwoDimensions)
            {
                this.lexer = new WellKnownTextLexer(reader);
                this.pipeline = pipeline;
                this.allowOnlyTwoDimensions = allowOnlyTwoDimensions;
            }

            /// <summary>
            /// Read WellKnownText into an instance of Geography
            /// </summary>
            [SuppressMessage("Microsoft.Globalization", "CA1303:Do not pass literals as localized parameters", Justification = "Literals should not be localized")]
            public void Read()
            {
                this.ParseSRID();
                this.ParseTaggedText();
            }

            /// <summary>
            /// Test whether the current token matches the expected token
            /// </summary>
            /// <param name="type">The expected token type</param>
            /// <param name="text">The expected token text</param>
            /// <returns>True if the two tokens match</returns>
            private bool IsTokenMatch(WellKnownTextTokenType type, String text)
            {
                return this.lexer.CurrentToken.MatchToken((int)type, text, StringComparison.OrdinalIgnoreCase);
            }

            /// <summary>
            /// Move the lexer to the next non-whitespace token
            /// </summary>
            /// <returns>True if the lexer gets a new token</returns>
            private bool NextToken()
            {
                while (this.lexer.Next())
                {
                    if (!this.lexer.CurrentToken.MatchToken((int)WellKnownTextTokenType.WhiteSpace, String.Empty, StringComparison.Ordinal))
                    {
                        return true;
                    }
                }

                return false;
            }

            /// <summary>
            /// Parse Collection Text
            /// </summary>
            private void ParseCollectionText()
            {
                // <geometrycollection text> ::= <empty set> | <left paren> <geometry tagged text> {<comma> <geometry tagged text>}* <right paren>
                if (!this.ReadEmptySet())
                {
                    this.ReadToken(WellKnownTextTokenType.LeftParen, null);
                    this.ParseTaggedText();
                    while (this.ReadOptionalToken(WellKnownTextTokenType.Comma, null))
                    {
                        this.ParseTaggedText();
                    }

                    this.ReadToken(WellKnownTextTokenType.RightParen, null);
                }
            }

            /// <summary>
            /// Parse a LineString text
            /// </summary>
            private void ParseLineStringText()
            {
                // <linestring text> ::= <empty set> | <left paren> <point> {<comma> <point>}* <right paren>
                if (!this.ReadEmptySet())
                {
                    this.ReadToken(WellKnownTextTokenType.LeftParen, null);
                    this.ParsePoint(true);
                    while (this.ReadOptionalToken(WellKnownTextTokenType.Comma, null))
                    {
                        this.ParsePoint(false);
                    }

                    this.ReadToken(WellKnownTextTokenType.RightParen, null);
                    this.pipeline.EndFigure();
                }
            }

            /// <summary>
            /// Parse a Multi* text
            /// </summary>
            /// <param name="innerType">The inner spatial type</param>
            /// <param name="innerReader">The inner reader</param>
            private void ParseMultiGeoText(SpatialType innerType, Action innerReader)
            {
                // <multipoint text> ::= <empty set> | <left paren> <point text> {<comma> <point text>}* <right paren>
                // <multilinestring text> ::= <empty set> | <left paren> <linestring text> {<comma> <linestring text>}* <right paren>
                // <multipolygon text> ::= <empty set> | <left paren> <polygon text> {<comma> <polygon text>}* <right paren>
                if (!this.ReadEmptySet())
                {
                    this.ReadToken(WellKnownTextTokenType.LeftParen, null);
                    this.pipeline.BeginGeo(innerType);
                    innerReader();
                    this.pipeline.EndGeo();

                    while (this.ReadOptionalToken(WellKnownTextTokenType.Comma, null))
                    {
                        this.pipeline.BeginGeo(innerType);
                        innerReader();
                        this.pipeline.EndGeo();
                    }

                    this.ReadToken(WellKnownTextTokenType.RightParen, null);
                }
            }

            /// <summary>
            /// Parse Point Representation
            /// </summary>
            /// <param name="firstFigure">Whether this is the first point in the figure</param>
            private void ParsePoint(bool firstFigure)
            {
                double x = this.ReadDouble();
                double y = this.ReadDouble();
                double? z;
                double? m;

                if (this.TryReadOptionalNullableDouble(out z) && allowOnlyTwoDimensions)
                {
                    throw new FormatException(Strings.WellKnownText_TooManyDimensions);
                }

                if (this.TryReadOptionalNullableDouble(out m) && allowOnlyTwoDimensions)
                {
                    throw new FormatException(Strings.WellKnownText_TooManyDimensions);
                }

                if (firstFigure)
                {
                    this.pipeline.BeginFigure(x, y, z, m);
                }
                else
                {
                    this.pipeline.LineTo(x, y, z, m);
                }
            }

            /// <summary>
            /// Parse a point text
            /// </summary>
            private void ParsePointText()
            {
                // <point text> ::= <empty set> | <left paren> <point> <right paren>
                if (!this.ReadEmptySet())
                {
                    this.ReadToken(WellKnownTextTokenType.LeftParen, null);
                    this.ParsePoint(true);
                    this.ReadToken(WellKnownTextTokenType.RightParen, null);
                    this.pipeline.EndFigure();
                }
            }

            /// <summary>
            /// Parse a Polygon text
            /// </summary>
            private void ParsePolygonText()
            {
                // <polygon text> ::= <empty set> | <left paren> <linestring text> {<comma> <linestring text>}* <right paren>
                if (!this.ReadEmptySet())
                {
                    this.ReadToken(WellKnownTextTokenType.LeftParen, null);
                    this.ParseLineStringText();
                    while (this.ReadOptionalToken(WellKnownTextTokenType.Comma, null))
                    {
                        this.ParseLineStringText();
                    }

                    this.ReadToken(WellKnownTextTokenType.RightParen, null);
                }
            }

            /// <summary>
            /// Parse an instance of SRID
            /// </summary>
            private void ParseSRID()
            {
                // <SRID> := SRID <EQUALS> <INTEGER>;
                if (this.ReadOptionalToken(WellKnownTextTokenType.Text, WellKnownTextConstants.WktSrid))
                {
                    this.ReadToken(WellKnownTextTokenType.Equals, null);
                    this.pipeline.SetCoordinateSystem(this.ReadInteger());
                    this.ReadToken(WellKnownTextTokenType.Semicolon, null);
                }
                else
                {
                    this.pipeline.SetCoordinateSystem(null);
                }
            }

            /// <summary>
            /// Parse Tagged Text
            /// </summary>
            private void ParseTaggedText()
            {
                // <geometry tagged text> ::= <point tagged text> |
                //                            <linestring tagged text> |
                //                            <polygon tagged text> |
                //                            <multipoint tagged text> |
                //                            <multilinestring tagged text> |
                //                            <multipolygon tagged text> |
                //                            <geometrycollection tagged text>
                // <point tagged text> ::= point <point text>
                // <linestring tagged text> ::= linestring <linestring text>
                // <polygon tagged text> ::= polygon <polygon text>
                // <multipoint tagged text> ::= multipoint <multipoint text>
                // <multilinestring tagged text> ::= multilinestring <multilinestring text>
                // <multipolygon tagged text> ::= multipolygon <multipolygon text>
                // <geometrycollection tagged text> ::= geometrycollection <geometrycollection text>
                if (!this.NextToken())
                {
                    throw new FormatException(Strings.WellKnownText_UnknownTaggedText(String.Empty));
                }

                switch (this.lexer.CurrentToken.Text.ToUpperInvariant())
                {
                    case WellKnownTextConstants.WktPoint:
                        this.pipeline.BeginGeo(SpatialType.Point);
                        this.ParsePointText();
                        this.pipeline.EndGeo();
                        break;
                    case WellKnownTextConstants.WktLineString:
                        this.pipeline.BeginGeo(SpatialType.LineString);
                        this.ParseLineStringText();
                        this.pipeline.EndGeo();
                        break;
                    case WellKnownTextConstants.WktPolygon:
                        this.pipeline.BeginGeo(SpatialType.Polygon);
                        this.ParsePolygonText();
                        this.pipeline.EndGeo();
                        break;
                    case WellKnownTextConstants.WktMultiPoint:
                        this.pipeline.BeginGeo(SpatialType.MultiPoint);
                        this.ParseMultiGeoText(SpatialType.Point, this.ParsePointText);
                        this.pipeline.EndGeo();
                        break;
                    case WellKnownTextConstants.WktMultiLineString:
                        this.pipeline.BeginGeo(SpatialType.MultiLineString);
                        this.ParseMultiGeoText(SpatialType.LineString, this.ParseLineStringText);
                        this.pipeline.EndGeo();
                        break;
                    case WellKnownTextConstants.WktMultiPolygon:
                        this.pipeline.BeginGeo(SpatialType.MultiPolygon);
                        this.ParseMultiGeoText(SpatialType.Polygon, this.ParsePolygonText);
                        this.pipeline.EndGeo();
                        break;
                    case WellKnownTextConstants.WktCollection:
                        this.pipeline.BeginGeo(SpatialType.Collection);
                        this.ParseCollectionText();
                        this.pipeline.EndGeo();
                        break;
                    case WellKnownTextConstants.WktFullGlobe:
                        this.pipeline.BeginGeo(SpatialType.FullGlobe);
                        this.pipeline.EndGeo();
                        break;
                    default:
                        throw new FormatException(Strings.WellKnownText_UnknownTaggedText(this.lexer.CurrentToken.Text));
                }
            }

            /// <summary>
            /// Read a double literal
            /// </summary>
            /// <returns>The read double</returns>
            private double ReadDouble()
            {
                // <double> := <NUM> {.<NUM>}
                var numberText = new StringBuilder();
                this.ReadToken(WellKnownTextTokenType.Number, null);
                numberText.Append(this.lexer.CurrentToken.Text);
                if (this.ReadOptionalToken(WellKnownTextTokenType.Period, null))
                {
                    numberText.Append(WellKnownTextConstants.WktPeriod);
                    this.ReadToken(WellKnownTextTokenType.Number, null);
                    numberText.Append(this.lexer.CurrentToken.Text);
                }

                return Double.Parse(numberText.ToString(), CultureInfo.InvariantCulture);
            }

            /// <summary>
            /// Check to see if the content is EMPTY
            /// </summary>
            /// <returns>True if the content is declared as EMPTY</returns>
            private bool ReadEmptySet()
            {
                // <empty set> ::= EMPTY
                return this.ReadOptionalToken(WellKnownTextTokenType.Text, WellKnownTextConstants.WktEmpty);
            }

            /// <summary>
            /// Read an integer literal
            /// </summary>
            /// <returns>The read integer</returns>
            private Int32 ReadInteger()
            {
                this.ReadToken(WellKnownTextTokenType.Number, null);
                return XmlConvert.ToInt32(this.lexer.CurrentToken.Text);
            }

            /// <summary>
            /// Read an optional double literal
            /// </summary>
            /// <param name="value">The value that was read.</param>
            /// <returns>true if a value was read, otherwise returns false</returns>
            private bool TryReadOptionalNullableDouble(out double? value)
            {
                // <double> := <NUM> {.<NUM>}
                var numberText = new StringBuilder();

                if (this.ReadOptionalToken(WellKnownTextTokenType.Number, null))
                {
                    numberText.Append(this.lexer.CurrentToken.Text);
                    if (this.ReadOptionalToken(WellKnownTextTokenType.Period, null))
                    {
                        numberText.Append(WellKnownTextConstants.WktPeriod);
                        this.ReadToken(WellKnownTextTokenType.Number, null);
                        numberText.Append(this.lexer.CurrentToken.Text);
                    }

                    value = Double.Parse(numberText.ToString(), CultureInfo.InvariantCulture);
                    return true;
                }

                value = null;
                return this.ReadOptionalToken(WellKnownTextTokenType.Text, WellKnownTextConstants.WktNull);
            }

            /// <summary>
            /// Read an optional token. If the read token matches the expected optional token, then consume it.
            /// </summary>
            /// <param name="expectedTokenType">The expected token type</param>
            /// <param name="expectedTokenText">The expected token text, or null</param>
            /// <returns>True if the optional token matches the next token in stream</returns>
            private bool ReadOptionalToken(WellKnownTextTokenType expectedTokenType, String expectedTokenText)
            {
                LexerToken token;
                while (this.lexer.Peek(out token))
                {
                    if (token.MatchToken((int)WellKnownTextTokenType.WhiteSpace, null, StringComparison.OrdinalIgnoreCase))
                    {
                        this.lexer.Next();
                    }
                    else if (token.MatchToken((int)expectedTokenType, expectedTokenText, StringComparison.OrdinalIgnoreCase))
                    {
                        this.lexer.Next();
                        return true;
                    }
                    else
                    {
                        return false;
                    }
                }

                return false;
            }

            /// <summary>
            /// Read and consume a token from the lexer, throw if the read token does not match the expected token
            /// </summary>
            /// <param name="type">The expected token type</param>
            /// <param name="text">The expected token text</param>
            private void ReadToken(WellKnownTextTokenType type, String text)
            {
                if (!(this.NextToken() && this.IsTokenMatch(type, text)))
                {
                    throw new FormatException(Strings.WellKnownText_UnexpectedToken(type, text, this.lexer.CurrentToken));
                }
            }
        }
    }
}