Skip to content

Commit

Permalink
fix(quotes): user reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Oct 16, 2024
1 parent 5e35892 commit d541598
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 114 deletions.
10 changes: 2 additions & 8 deletions frontend/static/quotes/code_python.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@
"id": 4,
"length": 254
},
{
"text": "def bruteforce(charset, maxlength):\n\treturn (''.join(candidate)\n\t\tfor candidate in itertools.chain.from_iterable(itertools.product(charset, repeat=i)\n\t\tfor i in range(1, maxlength + 1)))\ndef extractFile(arFile, attempt):\n\ttry:\n\t\tarFile.extractall(pwd=attempt)\n\t\tprint \"Password found! password is %s\"%attempt\n\t\texit(0)\n\texcept Exception,e:\n\t\tpass\n\tif datetime.datetime.now().second%20==0:\n\t\tprint 'At %s'%attempt",
"source": "GitHub - GauthamGoli/rar-Password-Cracker",
"id": 5,
"length": 412
},
{
"text": "soup = BeautifulSoup(html, features='lxml')\nprint(soup.h1)\nprint(line_break, soup.p)\n\nall_href = soup.find_all('a')\nall_href = [l['href'] for l in all_href]\nprint(line_break, all_href)",
"source": "GitHub - MorvanZhou/easy-scraping-tutorial",
Expand Down Expand Up @@ -452,10 +446,10 @@
"length": 372
},
{
"text": "class Graph():\n\ndef __init__(self, vertices):\nself.V = vertices\nself.graph = [[0 for column in range(vertices)]\nfor row in range(vertices)]\n\ndef printSolution(self, dist):\nprint('Vertex \t Distance from Source')\nfor node in range(self.V):\nprint(node, '\t\t', dist[node])\n\ndef minDistance(self, dist, sptSet):\nmin = 1e7\n\nfor v in range(self.V):\nif dist[v] < min and sptSet[v] == False:\nmin = dist[v]\nmin_index = v\n\nreturn min_index\n\ndef dijkstra(self, src):\n\ndist = [1e7] * self.V\ndist[src] = 0\nsptSet = [False] * self.V\n\nfor cout in range(self.V):\n\nu = self.minDistance(dist, sptSet)\n\nsptSet[u] = True\n\nfor v in range(self.V):\nif (self.graph[u][v] > 0 and\nsptSet[v] == False and\ndist[v] > dist[u] + self.graph[u][v]):\ndist[v] = dist[u] + self.graph[u][v]\n\nself.printSolution(dist)",
"text": "class Graph():\n\n\tdef __init__(self, vertices):\n\t\tself.V = vertices\n\t\tself.graph = [[0 for column in range(vertices)]\n\t\t\t\tfor row in range(vertices)]\n\n\tdef printSolution(self, dist):\n\t\tprint('Vertex \t Distance from Source')\n\t\tfor node in range(self.V):\n\t\t\tprint(node, '\t\t', dist[node])\n\n\tdef minDistance(self, dist, sptSet):\n\t\tmin = 1e7\n\n\t\tfor v in range(self.V):\n\t\t\tif dist[v] < min and sptSet[v] == False:\n\t\t\t\tmin = dist[v]\n\t\t\t\tmin_index = v\n\n\t\treturn min_index\n\n\tdef dijkstra(self, src):\n\n\t\tdist = [1e7] * self.V\n\t\tdist[src] = 0\n\t\tsptSet = [False] * self.V\n\n\t\tfor cout in range(self.V):\n\n\t\t\tu = self.minDistance(dist, sptSet)\n\n\t\t\tsptSet[u] = True\n\n\t\t\tfor v in range(self.V):\n\t\t\t\tif (self.graph[u][v] > 0 and\n\t\t\t\t\tsptSet[v] == False and\n\t\t\t\t\tdist[v] > dist[u] + self.graph[u][v]):\n\t\t\t\t\tdist[v] = dist[u] + self.graph[u][v]\n\n\t\tself.printSolution(dist)",
"source": "https://www.geeksforgeeks.org/python-program-for-dijkstras-shortest-path-algorithm-greedy-algo-7/",
"id": 75,
"length": 777
"length": 851
}
]
}
46 changes: 4 additions & 42 deletions frontend/static/quotes/english.json
Original file line number Diff line number Diff line change
Expand Up @@ -2101,12 +2101,6 @@
"id": 361,
"length": 166
},
{
"text": "Tell me how we're not alike, but we work so well and we don't even know why. Funny how the stars crossed right, 'cause we work so well, and we don't even know why. You can call it fire and ice, but we work so well, and we don't even know why.",
"source": "Why",
"id": 363,
"length": 242
},
{
"text": "I hated that having done the right thing was somehow considered wrong. And I hated that there didn't seem to be any other way to survive school.",
"source": "Sammy Keyes and the Night of the Skull",
Expand Down Expand Up @@ -8258,10 +8252,10 @@
"length": 154
},
{
"text": "I'm not the one who's lost with no direction, but you'll never see. You're so busy making masks with my name on them in all caps. You got the talking down, just not the listening.",
"text": "I'm not the one who's lost with no direction, but you'll never see. You're so busy making maps with my name on them in all caps. You got the talking down, just not the listening.",
"source": "King of Anything",
"id": 1448,
"length": 179
"length": 178
},
{
"text": "There's a simplicity to war: Attacking is the only secret. Dare, and the world yields. How quickly they forget that all it takes to change the course of history is the will of a single man.",
Expand Down Expand Up @@ -16886,12 +16880,6 @@
"id": 3001,
"length": 348
},
{
"text": "I'm a good man, food on the table, working two jobs, ready, willing and able, check. Good man, up having fun, got no kids and I love the Lord, check. Good man, I'm monogamous, never did time well, maybe just once, check. Good man and I puts it down, wanna say it twice but I puts it down, check. How could you ever walk away after all I've done for you? I feel like there's a knife in my back, babe. You might as well put it all the way through, good man.",
"source": "Good Man",
"id": 3002,
"length": 455
},
{
"text": "To feel it so like myself, indeed, so brotherly, made me realize that I'd been happy, and that I was happy still. For all to be accomplished, for me to feel less lonely, all that remained to hope was that on the day of my execution there should be a huge crowd of spectators and that they should greet me with howls of execration.",
"source": "The Stranger",
Expand Down Expand Up @@ -20289,12 +20277,6 @@
"id": 3621,
"length": 286
},
{
"text": "Isn't it kind of weird? It's like, there's a guy in a gorilla suit, and there's - he's got a robot head, and inside he's got kind of a bunch of clay... I mean, I've seen Dali paintings that make more sense than this movie does.",
"source": "Mystery Science Theater 3000: Robot Monster",
"id": 3622,
"length": 227
},
{
"text": "A place where there isn't any trouble. Do you suppose there is such a place, Toto? There must be. It's not a place you can get to by a boat or a train. It's far, far away. Behind the moon, beyond the rain...",
"source": "The Wizard of Oz",
Expand Down Expand Up @@ -30179,7 +30161,7 @@
"id": 5453
},
{
"text": "I just... feel like I need to save everyone. To redeem myself.",
"text": "I just... Feel like I need to save everyone. To redeem myself.",
"source": "Thomas, The Maze Runner",
"length": 62,
"id": 5456
Expand Down Expand Up @@ -32177,12 +32159,6 @@
"length": 123,
"id": 5864
},
{
"text": "What kind of tea do you want? We have blueberry, raspberry, ginseng, sleepy time, green tea, green tea with lemon, green tea with lemon and honey, liver disaster, ginger with honey, ginger without honey, vanilla almond, white truffle, blueberry chamomile, vanilla walnut, constant comment, and... earl grey.",
"source": "Scott Pilgrim vs. The World",
"length": 307,
"id": 5865
},
{
"text": "People have an annoying habit of remembering things they shouldn't.",
"source": "Eragon - Christopher Paolini",
Expand Down Expand Up @@ -35034,7 +35010,7 @@
"id": 6477
},
{
"text": "It's okay to lose your way... just don't lose sight of what you have decided.",
"text": "It's okay to lose your way... Just don't lose sight of what you have decided.",
"source": "One Piece",
"length": 77,
"approvedBy": "Smithster",
Expand Down Expand Up @@ -35082,13 +35058,6 @@
"approvedBy": "Smithster",
"id": 6485
},
{
"text": "You never had a rope around your neck. Well, I'm going to tell you something. When that rope starts to pull tight, you can feel the devil bite your ass.",
"source": "The Good, The Bad, and The Ugly",
"length": 152,
"approvedBy": "Smithster",
"id": 6486
},
{
"text": "I'll tell you one thing, Blondie. If I knew that my last hour had come, I swear, in my place... in your place I would do the same thing. I would tell about the gold. Yes, yes, I would. I would tell the name on the grave. What good is the money if you're dead? I know the name of the cemetery. But you know how many graves there are there? Please. Blondie, please. Have a little... coffee? Please, tell me the name. On... on the grave. If I get my hands on the 200,000 dollars, I'll always honor your memory. I swear I'll always honor your memory.",
"source": "The Good, The Bad, and The Ugly",
Expand Down Expand Up @@ -35180,13 +35149,6 @@
"approvedBy": "Smithster",
"id": 6503
},
{
"text": "When you're ten, they call you a prodigy. When you're fifteen, they call you a genius. Once you hit twenty, you're just an ordinary person.",
"source": "Free!",
"length": 139,
"approvedBy": "Smithster",
"id": 6504
},
{
"text": "Because I feel nothing like my father, he's been sleeping underground. Don't wait around, 'cause there's nothing there at all, there's nothing but the end!",
"source": "Snowing - Sam Rudich",
Expand Down
30 changes: 3 additions & 27 deletions frontend/static/quotes/french.json
Original file line number Diff line number Diff line change
Expand Up @@ -2245,12 +2245,6 @@
"length": 362,
"id": 384
},
{
"text": "Les femmes sont des plaies ... Capricieuses, Égoïstes, Râleuses ... Elles sont froides, sèches, calculatrices et en même temps extraordinairement mièvres et collantes. On ne sait jamais si elles s'entendent bien ou mal entre elles ... En plus, elles croient pouvoir manipuler tous les hommes ... En tout cas, c'est toujours un tas d'ennuis les femmes ...",
"source": "Filipe - Shikamaru",
"length": 354,
"id": 385
},
{
"text": "Et j'ai appris à haïr ce monde de toutes mes forces, j'ai cherché à le détruire de mes propres mains, ce que l'Akatsuki cherche exactement à faire aujourd'hui. Mais ... Un certain ninja de Konoha ... A eu le cran de m'arrêter ! J'étais son ennemi, mais ça ne l'a pas empêché de pleurer pour moi ! Je l'ai blessé mais il a continué à m'appeler son ami ! Il m'a sauvé ! Moi, son ennemi ! Moi qui comme lui, étais un Jinchuuriki !",
"source": "Filipe - Le discours de Gaara (2/4)",
Expand Down Expand Up @@ -2347,12 +2341,6 @@
"length": 260,
"id": 401
},
{
"text": "Dépourvue d'âme, la femme est dans l'incapacité de s'élever vers Dieu. En revanche, elle est en général pourvue d'un escabeau qui lui permet de s'élever vers le plafond pour faire les carreaux. C'est tout ce qu'on lui demande.",
"source": "Pierre Desproges - Pierre Desproges",
"length": 226,
"id": 402
},
{
"text": "Longtemps, je me suis couché de bonne heure. Parfois, à peine ma bougie éteinte, mes yeux se fermaient si vite que je n'avais pas le temps de me dire : \"Je m'endors.\" Et, une demi-heure après, la pensée qu'il était temps de chercher le sommeil m'éveillait ; je voulais poser le volume que je croyais avoir encore dans les mains et souffler ma lumière ; je n'avais pas cessé en dormant de faire des réflexions sur ce que je venais de lire, mais ces réflexions avaient pris un tour un peu particulier.",
"source": "Marcel Proust - Incipit Du côté de chez Swann",
Expand Down Expand Up @@ -2456,9 +2444,9 @@
"id": 420
},
{
"text": "Il n'y a rien dans le monde qui n'ait son moment décisif, et le chef-d'oeuvre de la bonne conduite est de connaître et de prendre ce moment : si on le manque, surtout dans la révolution des États, on court fortune ou de ne pas le retrouver, ou de ne le pas apercevoir.",
"text": "Il n'y a rien dans le monde qui n'ait son moment décisif, et le chef-d'oeuvre de la bonne conduite est de connaître et de prendre ce moment : si on le manque, surtout dans la révolution des États, on court fortune ou de ne pas le retrouver, ou de ne pas l'apercevoir.",
"source": "Le Cardinal de Retz - Mémoires",
"length": 268,
"length": 267,
"id": 421
},
{
Expand Down Expand Up @@ -3085,12 +3073,6 @@
"length": 326,
"id": 528
},
{
"text": "Venue de Texas et influencée par la cuisine mexicaine, d'où son nom, la cuisine tex-mex connaît un véritable engouement : chaleureuse et épicée avec des ingrédients colorés et relevés comme le maïs et le piment, la tomate et l'avocat, elle s'inscrit parfaitement dans un cuisine plein air qui jour la carte du dépaysement et de la joie de vivre. Faciles et rapides, les recettes tex-mex permettent de composer un buffet orignal.",
"source": "Sylvie Girard-Lagorce - Cuisine de plein-air - Le buffet TEX-MEX",
"length": 428,
"id": 529
},
{
"text": "Ce qui fait que si peu de personnes sont agréables dans la conversation, c'est que chacun songe plus à ce qu'il veut dire qu'à ce que les autres disent.",
"source": "François de la Rochefoulcaud",
Expand Down Expand Up @@ -4490,7 +4472,7 @@
"id": 763
},
{
"text": "Il arborait une courte barbe noire, aussi touffue et désordonnée que sa chevelure, et ses joues étaient tannées au-dessus. D'épais sourcils surplombaient ses yeux sombres. Sa poitrine bombait comme un tonneau et ses épaules tendaient le tissu de sa chemise. Ses poings étaient carrés et couturés de cicatrices, bien que les doigts de sa main droite fussent tachés d'encre.",
"text": "Il arborait une courte barbe noire, aussi touffue et désordonnée que sa chevelure, et ses joues étaient tannées au-dessus. D'épais sourcils surplombaient ses yeux sombres. Sa poitrine bombait comme un tonneau et ses épaules tendaient le tissu de sa chemise. Ses poings étaient carrés et couturés de cicatrices, bien que les doigts de sa main droite fussent tâchés d'encre.",
"source": "Robin Hobb - L'assasin Royal : l'apprenti assassin",
"length": 372,
"id": 764
Expand Down Expand Up @@ -5773,12 +5755,6 @@
"length": 443,
"id": 977
},
{
"text": "La femme est assez proche de l'Homme, comme l'épagneul breton. À ce détail près qu'il ne manque à l'épagneul breton que la parole, alors qu'il ne manque à la femme que de se taire. Par ailleurs la robe de l'épagneul breton est rouge feu et il lui en suffit d'une.",
"source": "Pierre Desproges - La femme et l'épagneul",
"length": 263,
"id": 978
},
{
"text": "Les chaussettes de l'archiduchesse sont-elles sèches, archi-sèches ? Un chasseur sachant chasser sans son chien est un bon chasseur. Jésus chez Zachée.",
"source": "Inconu - Prononciation",
Expand Down
18 changes: 0 additions & 18 deletions frontend/static/quotes/indonesian.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@
"length": 209,
"id": 27
},
{
"text": "Karena kalo cepat puas lo akan berhenti pada satu titik. Lo harus terus belajar dan mengamati. Gue berhenti ketika dipanggil Tuhan. Selama itu belum terjadi gue akan terus proses belajar.",
"source": "Lukman Sardi",
"length": 187,
"id": 28
},
{
"text": "Pendidikan dan pengajaran di dalam Republik Indonesia harus berdasarkan kebudayaan dan kemasyarakatan bangsa Indonesia, menuju ke arah kebahagiaan batin serta keselamatan hidup lahir.",
"source": "Ki Hadjar Dewantara",
Expand Down Expand Up @@ -1171,12 +1165,6 @@
"length": 42,
"id": 205
},
{
"text": "Diobok-obok airnya diobok-obok. Ada ikannya kecil-kecil pada mabok. Diputar-putar krannya diputar-putar. Airnya banjir aku jadi mandi lagi. Dingin-dingin, dimandiin, nanti masuk angin.",
"source": "Joshua",
"length": 184,
"id": 206
},
{
"text": "Gatau ah males pengen beli truk.",
"source": "Dewangga",
Expand All @@ -1189,12 +1177,6 @@
"length": 196,
"id": 208
},
{
"text": "Atas nama kita. Ya, Desa Sukrawetan Kecamatan Sukra ya. Maaf, masyarakat Kedungdawa ya. Tertibkan yang joget yang rapi lah. Kita sampai tekang genah ning. Tuan rumah ya tolong kita ya. Awas, apa? Organ apa ini? Anu nada. Leo Nada ya maaf ya.",
"source": "Wa Brontok, Hansip Sukrawetan Indramayu",
"length": 241,
"id": 209
},
{
"text": "Dan atas nama saya yang dari kewakilan tuan rumah. Saya tegangkan kita sing rapih, rapih, repeh, ripah, gemah. Dengarkan kita supaya jangan keributan. Saya tegangkan dari masyarakat Desa Sukrawetan Kedungdawa.",
"source": "Wa Brontok, Hansip Sukrawetan Indramayu",
Expand Down
Loading

0 comments on commit d541598

Please sign in to comment.