Best Puppeteer-sharp code snippet using PuppeteerSharp.Mobile.Program
HomeController.cs
Source:HomeController.cs
1using System;2using System.Collections;3using System.Collections.Generic;4using System.Diagnostics;5using System.Linq;6using System.Threading.Tasks;7using Microsoft.AspNetCore.Mvc;8using Microsoft.Extensions.Logging;9using writersUnblock.Models;10using PuppeteerSharp.Helpers.Linux;11using System.Text.RegularExpressions;12using System.Numerics;13using Microsoft.AspNetCore.Identity;14using Microsoft.AspNetCore.Http;15//using Microsoft.EntityFrameworkCore;16namespace writersUnblock.Controllers17{18 public class HomeController : Controller19 {20 private readonly ILogger<HomeController> _logger;21 public object SearchViewModel;22 public PuppeteerSharp.LaunchOptions launchOptions;23 public PuppeteerSharp.ViewPortOptions viewPortOptions;24 ArrayList arlist1 = new ArrayList();25 public string[] nouns =26 {27 "people",28 "history",29 "way",30 "art",31 "world",32 "information",33 "map",34 "two",35 "family",36 "government",37 "health",38 "system",39 "computer",40 "meat",41 "year",42 "thanks",43 "music",44 "person",45 "reading",46 "method",47 "data",48 "food",49 "understanding",50 "theory",51 "law",52 "bird",53 "literature",54 "problem",55 "software",56 "control",57 "knowledge",58 "power",59 "ability",60 "economics",61 "love",62 "internet",63 "television",64 "science",65 "library",66 "nature",67 "fact",68 "product",69 "idea",70 "temperature",71 "investment",72 "area",73 "society",74 "activity",75 "story",76 "industry",77 "media",78 "thing",79 "oven",80 "community",81 "definition",82 "safety",83 "quality",84 "development",85 "language",86 "management",87 "player",88 "variety",89 "video",90 "week",91 "security",92 "country",93 "exam",94 "movie",95 "organization",96 "equipment",97 "physics",98 "analysis",99 "policy",100 "series",101 "thought",102 "basis",103 "boyfriend",104 "direction",105 "strategy",106 "technology",107 "army",108 "camera",109 "freedom",110 "paper",111 "environment",112 "child",113 "instance",114 "month",115 "truth",116 "marketing",117 "university",118 "writing",119 "article",120 "department",121 "difference",122 "goal",123 "news",124 "audience",125 "fishing",126 "growth",127 "income",128 "marriage",129 "user",130 "combination",131 "failure",132 "meaning",133 "medicine",134 "philosophy",135 "teacher",136 "communication",137 "night",138 "chemistry",139 "disease",140 "disk",141 "energy",142 "nation",143 "road",144 "role",145 "soup",146 "advertising",147 "location",148 "success",149 "addition",150 "apartment",151 "education",152 "math",153 "moment",154 "painting",155 "politics",156 "attention",157 "decision",158 "event",159 "property",160 "shopping",161 "student",162 "wood",163 "competition",164 "distribution",165 "entertainment",166 "office",167 "population",168 "president",169 "unit",170 "category",171 "cigarette",172 "context",173 "introduction",174 "opportunity",175 "performance",176 "driver",177 "flight",178 "length",179 "magazine",180 "newspaper",181 "relationship",182 "teaching",183 "cell",184 "dealer",185 "finding",186 "lake",187 "member",188 "message",189 "phone",190 "scene",191 "appearance",192 "association",193 "concept",194 "customer",195 "death",196 "discussion",197 "housing",198 "inflation",199 "insurance",200 "mood",201 "woman",202 "advice",203 "blood",204 "effort",205 "expression",206 "importance",207 "opinion",208 "payment",209 "reality",210 "responsibility",211 "situation",212 "skill",213 "statement",214 "wealth",215 "application",216 "city",217 "county",218 "depth",219 "estate",220 "foundation",221 "grandmother",222 "heart",223 "perspective",224 "photo",225 "recipe",226 "studio",227 "topic",228 "collection",229 "depression",230 "imagination",231 "passion",232 "percentage",233 "resource",234 "setting",235 "ad",236 "agency",237 "college",238 "connection",239 "criticism",240 "debt",241 "description",242 "memory",243 "patience",244 "secretary",245 "solution",246 "administration",247 "aspect",248 "attitude",249 "director",250 "personality",251 "psychology",252 "recommendation",253 "response",254 "selection",255 "storage",256 "version",257 "alcohol",258 "argument",259 "complaint",260 "contract",261 "emphasis",262 "highway",263 "loss",264 "membership",265 "possession",266 "preparation",267 "steak",268 "union",269 "agreement",270 "cancer",271 "currency",272 "employment",273 "engineering",274 "entry",275 "interaction",276 "mixture",277 "preference",278 "region",279 "republic",280 "tradition",281 "virus",282 "actor",283 "classroom",284 "delivery",285 "device",286 "difficulty",287 "drama",288 "election",289 "engine",290 "football",291 "guidance",292 "hotel",293 "owner",294 "priority",295 "protection",296 "suggestion",297 "tension",298 "variation",299 "anxiety",300 "atmosphere",301 "awareness",302 "bath",303 "bread",304 "candidate",305 "climate",306 "comparison",307 "confusion",308 "construction",309 "elevator",310 "emotion",311 "employee",312 "employer",313 "guest",314 "height",315 "leadership",316 "mall",317 "manager",318 "operation",319 "recording",320 "sample",321 "transportation",322 "charity",323 "cousin",324 "disaster",325 "editor",326 "efficiency",327 "excitement",328 "extent",329 "feedback",330 "guitar",331 "homework",332 "leader",333 "mom",334 "outcome",335 "permission",336 "presentation",337 "promotion",338 "reflection",339 "refrigerator",340 "resolution",341 "revenue",342 "session",343 "singer",344 "tennis",345 "basket",346 "bonus",347 "cabinet",348 "childhood",349 "church",350 "clothes",351 "coffee",352 "dinner",353 "drawing",354 "hair",355 "hearing",356 "initiative",357 "judgment",358 "lab",359 "measurement",360 "mode",361 "mud",362 "orange",363 "poetry",364 "police",365 "possibility",366 "procedure",367 "queen",368 "ratio",369 "relation",370 "restaurant",371 "satisfaction",372 "sector",373 "signature",374 "significance",375 "song",376 "tooth",377 "town",378 "vehicle",379 "volume",380 "wife",381 "accident",382 "airport",383 "appointment",384 "arrival",385 "assumption",386 "baseball",387 "chapter",388 "committee",389 "conversation",390 "database",391 "enthusiasm",392 "error",393 "explanation",394 "farmer",395 "gate",396 "girl",397 "hall",398 "historian",399 "hospital",400 "injury",401 "instruction",402 "maintenance",403 "manufacturer",404 "meal",405 "perception",406 "pie",407 "poem",408 "presence",409 "proposal",410 "reception",411 "replacement",412 "revolution",413 "river",414 "son",415 "speech",416 "tea",417 "village",418 "warning",419 "winner",420 "worker",421 "writer",422 "assistance",423 "breath",424 "buyer",425 "chest",426 "chocolate",427 "conclusion",428 "contribution",429 "cookie",430 "courage",431 "dad",432 "desk",433 "drawer",434 "establishment",435 "examination",436 "garbage",437 "grocery",438 "honey",439 "impression",440 "improvement",441 "independence",442 "insect",443 "inspection",444 "inspector",445 "king",446 "ladder",447 "menu",448 "penalty",449 "piano",450 "potato",451 "profession",452 "professor",453 "quantity",454 "reaction",455 "requirement",456 "salad",457 "sister",458 "supermarket",459 "tongue",460 "weakness",461 "wedding",462 "affair",463 "ambition",464 "analyst",465 "apple",466 "assignment",467 "assistant",468 "bathroom",469 "bedroom",470 "beer",471 "birthday",472 "celebration",473 "championship",474 "cheek",475 "client",476 "consequence",477 "departure",478 "diamond",479 "dirt",480 "ear",481 "fortune",482 "friendship",483 "funeral",484 "gene",485 "girlfriend",486 "hat",487 "indication",488 "intention",489 "lady",490 "midnight",491 "negotiation",492 "obligation",493 "passenger",494 "pizza",495 "platform",496 "poet",497 "pollution",498 "recognition",499 "reputation",500 "shirt",501 "sir",502 "speaker",503 "stranger",504 "surgery",505 "sympathy",506 "tale",507 "throat",508 "trainer",509 "uncle",510 "youth",511 "time",512 "work",513 "film",514 "water",515 "money",516 "example",517 "while",518 "business",519 "study",520 "game",521 "life",522 "form",523 "air",524 "day",525 "place",526 "number",527 "part",528 "field",529 "fish",530 "back",531 "process",532 "heat",533 "hand",534 "experience",535 "job",536 "book",537 "end",538 "point",539 "type",540 "home",541 "economy",542 "value",543 "body",544 "market",545 "guide",546 "interest",547 "state",548 "radio",549 "course",550 "company",551 "price",552 "size",553 "card",554 "list",555 "mind",556 "trade",557 "line",558 "care",559 "group",560 "risk",561 "word",562 "fat",563 "force",564 "key",565 "light",566 "training",567 "name",568 "school",569 "top",570 "amount",571 "level",572 "order",573 "practice",574 "research",575 "sense",576 "service",577 "piece",578 "web",579 "boss",580 "sport",581 "fun",582 "house",583 "page",584 "term",585 "test",586 "answer",587 "sound",588 "focus",589 "matter",590 "kind",591 "soil",592 "board",593 "oil",594 "picture",595 "access",596 "garden",597 "range",598 "rate",599 "reason",600 "future",601 "site",602 "demand",603 "exercise",604 "image",605 "case",606 "cause",607 "coast",608 "action",609 "age",610 "bad",611 "boat",612 "record",613 "result",614 "section",615 "building",616 "mouse",617 "cash",618 "class",619 "nothing",620 "period",621 "plan",622 "store",623 "tax",624 "side",625 "subject",626 "space",627 "rule",628 "stock",629 "weather",630 "chance",631 "figure",632 "man",633 "model",634 "source",635 "beginning",636 "earth",637 "program",638 "chicken",639 "design",640 "feature",641 "head",642 "material",643 "purpose",644 "question",645 "rock",646 "salt",647 "act",648 "birth",649 "car",650 "dog",651 "object",652 "scale",653 "sun",654 "note",655 "profit",656 "rent",657 "speed",658 "style",659 "war",660 "bank",661 "craft",662 "half",663 "inside",664 "outside",665 "standard",666 "bus",667 "exchange",668 "eye",669 "fire",670 "position",671 "pressure",672 "stress",673 "advantage",674 "benefit",675 "box",676 "frame",677 "issue",678 "step",679 "cycle",680 "face",681 "item",682 "metal",683 "paint",684 "review",685 "room",686 "screen",687 "structure",688 "view",689 "account",690 "ball",691 "discipline",692 "medium",693 "share",694 "balance",695 "bit",696 "black",697 "bottom",698 "choice",699 "gift",700 "impact",701 "machine",702 "shape",703 "tool",704 "wind",705 "address",706 "average",707 "career",708 "culture",709 "morning",710 "pot",711 "sign",712 "table",713 "task",714 "condition",715 "contact",716 "credit",717 "egg",718 "hope",719 "ice",720 "network",721 "north",722 "square",723 "attempt",724 "date",725 "effect",726 "link",727 "post",728 "star",729 "voice",730 "capital",731 "challenge",732 "friend",733 "self",734 "shot",735 "brush",736 "couple",737 "debate",738 "exit",739 "front",740 "function",741 "lack",742 "living",743 "plant",744 "plastic",745 "spot",746 "summer",747 "taste",748 "theme",749 "track",750 "wing",751 "brain",752 "button",753 "click",754 "desire",755 "foot",756 "gas",757 "influence",758 "notice",759 "rain",760 "wall",761 "base",762 "damage",763 "distance",764 "feeling",765 "pair",766 "savings",767 "staff",768 "sugar",769 "target",770 "text",771 "animal",772 "author",773 "budget",774 "discount",775 "file",776 "ground",777 "lesson",778 "minute",779 "officer",780 "phase",781 "reference",782 "register",783 "sky",784 "stage",785 "stick",786 "title",787 "trouble",788 "bowl",789 "bridge",790 "campaign",791 "character",792 "club",793 "edge",794 "evidence",795 "fan",796 "letter",797 "lock",798 "maximum",799 "novel",800 "option",801 "pack",802 "park",803 "plenty",804 "quarter",805 "skin",806 "sort",807 "weight",808 "baby",809 "background",810 "carry",811 "dish",812 "factor",813 "fruit",814 "glass",815 "joint",816 "master",817 "muscle",818 "red",819 "strength",820 "traffic",821 "trip",822 "vegetable",823 "appeal",824 "chart",825 "gear",826 "ideal",827 "kitchen",828 "land",829 "log",830 "mother",831 "net",832 "party",833 "principle",834 "relative",835 "sale",836 "season",837 "signal",838 "spirit",839 "street",840 "tree",841 "wave",842 "belt",843 "bench",844 "commission",845 "copy",846 "drop",847 "minimum",848 "path",849 "progress",850 "project",851 "sea",852 "south",853 "status",854 "stuff",855 "ticket",856 "tour",857 "angle",858 "blue",859 "breakfast",860 "confidence",861 "daughter",862 "degree",863 "doctor",864 "dot",865 "dream",866 "duty",867 "essay",868 "father",869 "fee",870 "finance",871 "hour",872 "juice",873 "limit",874 "luck",875 "milk",876 "mouth",877 "peace",878 "pipe",879 "seat",880 "stable",881 "storm",882 "substance",883 "team",884 "trick",885 "afternoon",886 "bat",887 "beach",888 "blank",889 "catch",890 "chain",891 "consideration",892 "cream",893 "crew",894 "detail",895 "gold",896 "interview",897 "kid",898 "mark",899 "match",900 "mission",901 "pain",902 "pleasure",903 "score",904 "screw",905 "sex",906 "shop",907 "shower",908 "suit",909 "tone",910 "window",911 "agent",912 "band",913 "block",914 "bone",915 "calendar",916 "cap",917 "coat",918 "contest",919 "corner",920 "court",921 "cup",922 "district",923 "door",924 "east",925 "finger",926 "garage",927 "guarantee",928 "hole",929 "hook",930 "implement",931 "layer",932 "lecture",933 "lie",934 "manner",935 "meeting",936 "nose",937 "parking",938 "partner",939 "profile",940 "respect",941 "rice",942 "routine",943 "schedule",944 "swimming",945 "telephone",946 "tip",947 "winter",948 "airline",949 "bag",950 "battle",951 "bed",952 "bill",953 "bother",954 "cake",955 "code",956 "curve",957 "designer",958 "dimension",959 "dress",960 "ease",961 "emergency",962 "evening",963 "extension",964 "farm",965 "fight",966 "gap",967 "grade",968 "holiday",969 "horror",970 "horse",971 "host",972 "husband",973 "loan",974 "mistake",975 "mountain",976 "nail",977 "noise",978 "occasion",979 "package",980 "patient",981 "pause",982 "phrase",983 "proof",984 "race",985 "relief",986 "sand",987 "sentence",988 "shoulder",989 "smoke",990 "stomach",991 "string",992 "tourist",993 "towel",994 "vacation",995 "west",996 "wheel",997 "wine",998 "arm",999 "aside",1000 "associate",1001 "bet",1002 "blow",1003 "border",1004 "branch",1005 "breast",1006 "brother",1007 "buddy",1008 "bunch",1009 "chip",1010 "coach",1011 "cross",1012 "document",1013 "draft",1014 "dust",1015 "expert",1016 "floor",1017 "god",1018 "golf",1019 "habit",1020 "iron",1021 "judge",1022 "knife",1023 "landscape",1024 "league",1025 "mail",1026 "mess",1027 "native",1028 "opening",1029 "parent",1030 "pattern",1031 "pin",1032 "pool",1033 "pound",1034 "request",1035 "salary",1036 "shame",1037 "shelter",1038 "shoe",1039 "silver",1040 "tackle",1041 "tank",1042 "trust",1043 "assist",1044 "bake",1045 "bar",1046 "bell",1047 "bike",1048 "blame",1049 "boy",1050 "brick",1051 "chair",1052 "closet",1053 "clue",1054 "collar",1055 "comment",1056 "conference",1057 "devil",1058 "diet",1059 "fear",1060 "fuel",1061 "glove",1062 "jacket",1063 "lunch",1064 "monitor",1065 "mortgage",1066 "nurse",1067 "pace",1068 "panic",1069 "peak",1070 "plane",1071 "reward",1072 "row",1073 "sandwich",1074 "shock",1075 "spite",1076 "spray",1077 "surprise",1078 "till",1079 "transition",1080 "weekend",1081 "welcome",1082 "yard",1083 "alarm",1084 "bend",1085 "bicycle",1086 "bite",1087 "blind",1088 "bottle",1089 "cable",1090 "candle",1091 "clerk",1092 "cloud",1093 "concert",1094 "counter",1095 "flower",1096 "grandfather",1097 "harm",1098 "knee",1099 "lawyer",1100 "leather",1101 "load",1102 "mirror",1103 "neck",1104 "pension",1105 "plate",1106 "purple",1107 "ruin",1108 "ship",1109 "skirt",1110 "slice",1111 "snow",1112 "specialist",1113 "stroke",1114 "switch",1115 "trash",1116 "tune",1117 "zone",1118 "anger",1119 "award",1120 "bid",1121 "bitter",1122 "boot",1123 "bug",1124 "camp",1125 "candy",1126 "carpet",1127 "cat",1128 "champion",1129 "channel",1130 "clock",1131 "comfort",1132 "cow",1133 "crack",1134 "engineer",1135 "entrance",1136 "fault",1137 "grass",1138 "guy",1139 "hell",1140 "highlight",1141 "incident",1142 "island",1143 "joke",1144 "jury",1145 "leg",1146 "lip",1147 "mate",1148 "motor",1149 "nerve",1150 "passage",1151 "pen",1152 "pride",1153 "priest",1154 "prize",1155 "promise",1156 "resident",1157 "resort",1158 "ring",1159 "roof",1160 "rope",1161 "sail",1162 "scheme",1163 "script",1164 "sock",1165 "station",1166 "toe",1167 "tower",1168 "truck",1169 "witness",1170 "a",1171 "you",1172 "it",1173 "can",1174 "will",1175 "if",1176 "one",1177 "many",1178 "most",1179 "other",1180 "use",1181 "make",1182 "good",1183 "look",1184 "help",1185 "go",1186 "great",1187 "being",1188 "few",1189 "might",1190 "still",1191 "public",1192 "read",1193 "keep",1194 "start",1195 "give",1196 "human",1197 "local",1198 "general",1199 "she",1200 "specific",1201 "long",1202 "play",1203 "feel",1204 "high",1205 "tonight",1206 "put",1207 "common",1208 "set",1209 "change",1210 "simple",1211 "past",1212 "big",1213 "possible",1214 "particular",1215 "today",1216 "major",1217 "personal",1218 "current",1219 "national",1220 "cut",1221 "natural",1222 "physical",1223 "show",1224 "try",1225 "check",1226 "second",1227 "call",1228 "move",1229 "pay",1230 "let",1231 "increase",1232 "single",1233 "individual",1234 "turn",1235 "ask",1236 "buy",1237 "guard",1238 "hold",1239 "main",1240 "offer",1241 "potential",1242 "professional",1243 "international",1244 "travel",1245 "cook",1246 "alternative",1247 "following",1248 "special",1249 "working",1250 "whole",1251 "dance",1252 "excuse",1253 "cold",1254 "commercial",1255 "low",1256 "purchase",1257 "deal",1258 "primary",1259 "worth",1260 "fall",1261 "necessary",1262 "positive",1263 "produce",1264 "search",1265 "present",1266 "spend",1267 "talk",1268 "creative",1269 "tell",1270 "cost",1271 "drive",1272 "green",1273 "support",1274 "glad",1275 "remove",1276 "return",1277 "run",1278 "complex",1279 "due",1280 "effective",1281 "middle",1282 "regular",1283 "reserve",1284 "independent",1285 "leave",1286 "original",1287 "reach",1288 "rest",1289 "serve",1290 "watch",1291 "beautiful",1292 "charge",1293 "active",1294 "break",1295 "negative",1296 "safe",1297 "stay",1298 "visit",1299 "visual",1300 "affect",1301 "cover",1302 "report",1303 "rise",1304 "walk",1305 "white",1306 "beyond",1307 "junior",1308 "pick",1309 "unique",1310 "anything",1311 "classic",1312 "final",1313 "lift",1314 "mix",1315 "private",1316 "stop",1317 "teach",1318 "western",1319 "concern",1320 "familiar",1321 "fly",1322 "official",1323 "broad",1324 "comfortable",1325 "gain",1326 "maybe",1327 "rich",1328 "save",1329 "stand",1330 "young",1331 "fail",1332 "heavy",1333 "hello",1334 "lead",1335 "listen",1336 "valuable",1337 "worry",1338 "handle",1339 "leading",1340 "meet",1341 "release",1342 "sell",1343 "finish",1344 "normal",1345 "press",1346 "ride",1347 "secret",1348 "spread",1349 "spring",1350 "tough",1351 "wait",1352 "brown",1353 "deep",1354 "display",1355 "flow",1356 "hit",1357 "objective",1358 "shoot",1359 "touch",1360 "cancel",1361 "chemical",1362 "cry",1363 "dump",1364 "extreme",1365 "push",1366 "conflict",1367 "eat",1368 "fill",1369 "formal",1370 "jump",1371 "kick",1372 "opposite",1373 "pass",1374 "pitch",1375 "remote",1376 "total",1377 "treat",1378 "vast",1379 "abuse",1380 "beat",1381 "burn",1382 "deposit",1383 "print",1384 "raise",1385 "sleep",1386 "somewhere",1387 "advance",1388 "anywhere",1389 "consist",1390 "dark",1391 "double",1392 "draw",1393 "equal",1394 "fix",1395 "hire",1396 "internal",1397 "join",1398 "kill",1399 "sensitive",1400 "tap",1401 "win",1402 "attack",1403 "claim",1404 "constant",1405 "drag",1406 "drink",1407 "guess",1408 "minor",1409 "pull",1410 "raw",1411 "soft",1412 "solid",1413 "wear",1414 "weird",1415 "wonder",1416 "annual",1417 "count",1418 "dead",1419 "doubt",1420 "feed",1421 "forever",1422 "impress",1423 "nobody",1424 "repeat",1425 "round",1426 "sing",1427 "slide",1428 "strip",1429 "whereas",1430 "wish",1431 "combine",1432 "command",1433 "dig",1434 "divide",1435 "equivalent",1436 "hang",1437 "hunt",1438 "initial",1439 "march",1440 "mention",1441 "smell",1442 "spiritual",1443 "survey",1444 "tie",1445 "adult",1446 "brief",1447 "crazy",1448 "escape",1449 "gather",1450 "hate",1451 "prior",1452 "repair",1453 "rough",1454 "sad",1455 "scratch",1456 "sick",1457 "strike",1458 "employ",1459 "external",1460 "hurt",1461 "illegal",1462 "laugh",1463 "lay",1464 "mobile",1465 "nasty",1466 "ordinary",1467 "respond",1468 "royal",1469 "senior",1470 "split",1471 "strain",1472 "struggle",1473 "swim",1474 "train",1475 "upper",1476 "wash",1477 "yellow",1478 "convert",1479 "crash",1480 "dependent",1481 "fold",1482 "funny",1483 "grab",1484 "hide",1485 "miss",1486 "permit",1487 "quote",1488 "recover",1489 "resolve",1490 "roll",1491 "sink",1492 "slip",1493 "spare",1494 "suspect",1495 "sweet",1496 "swing",1497 "twist",1498 "upstairs",1499 "usual",1500 "abroad",1501 "brave",1502 "calm",1503 "concentrate",1504 "estimate",1505 "grand",1506 "male",1507 "mine",1508 "prompt",1509 "quiet",1510 "refuse",1511 "regret",1512 "reveal",1513 "rush",1514 "shake",1515 "shift",1516 "shine",1517 "steal",1518 "suck",1519 "surround",1520 "anybody",1521 "bear",1522 "brilliant",1523 "dare",1524 "dear",1525 "delay",1526 "drunk",1527 "female",1528 "hurry",1529 "inevitable",1530 "invite",1531 "kiss",1532 "neat",1533 "pop",1534 "punch",1535 "quit",1536 "reply",1537 "representative",1538 "resist",1539 "rip",1540 "rub",1541 "silly",1542 "smile",1543 "spell",1544 "stretch",1545 "stupid",1546 "tear",1547 "temporary",1548 "tomorrow",1549 "wake",1550 "wrap",1551 "yesterday"1552 };1553 public string[] verbs =1554 {1555 "abacinate",1556 "abbreviate",1557 "abdictate",1558 "aberuncate",1559 "abjudicate",1560 "abjure",1561 "abnegate",1562 "abide",1563 "abominate",1564 "abound",1565 "abrogate",1566 "abscind",1567 "absorb",1568 "absume",1569 "abvolate",1570 "acceed",1571 "accelerate",1572 "accessorize",1573 "accinge",1574 "accommodate",1575 "accompany",1576 "accost",1577 "accept",1578 "accrue",1579 "accuse",1580 "achieve",1581 "acknowledge",1582 "acquire",1583 "activate",1584 "ace",1585 "ache",1586 "achieve",1587 "adapt",1588 "add",1589 "addict",1590 "adjoin",1591 "adjure",1592 "adjust",1593 "adduce",1594 "adhere",1595 "adlib",1596 "administer",1597 "admire",1598 "admit",1599 "adopt",1600 "adore",1601 "advise",1602 "affect",1603 "afford",1604 "affuse",1605 "agatize",1606 "age",1607 "agglomerate",1608 "aggrandise",1609 "aggravate",1610 "agree",1611 "aggregate",1612 "agitate",1613 "agonize",1614 "agree",1615 "aim",1616 "air-brush",1617 "airlift",1618 "alarm",1619 "alchemize",1620 "algorithmize",1621 "alias",1622 "alieve",1623 "align",1624 "allay",1625 "allegorize",1626 "alleviate",1627 "allocate",1628 "allow",1629 "alter",1630 "alternate",1631 "amass",1632 "amble",1633 "ambiguate",1634 "ameliorate",1635 "amortize",1636 "amplify",1637 "amputate",1638 "anachronize",1639 "analogise",1640 "analyze",1641 "anarchize",1642 "anchor",1643 "anger",1644 "anguish",1645 "angulate",1646 "animate",1647 "animadvert",1648 "annex",1649 "annihilate",1650 "annotate",1651 "announce",1652 "annunciate",1653 "annoint",1654 "answer",1655 "antagonize",1656 "antecede",1657 "anthropomorphize",1658 "anticipate",1659 "apologize",1660 "apocopate",1661 "appeal",1662 "appear",1663 "apply",1664 "appreciate",1665 "approach",1666 "applaud",1667 "appoint",1668 "apportion",1669 "apprehend",1670 "approbate",1671 "appropriate",1672 "approve",1673 "architect",1674 "argue",1675 "arise",1676 "arpeggiate",1677 "arrange",1678 "arrive",1679 "articulate",1680 "ascend",1681 "ascertain",1682 "ASCIIfy",1683 "ascribe",1684 "ask",1685 "aspect",1686 "aspire",1687 "assail",1688 "assert",1689 "assess",1690 "assemble",1691 "assist",1692 "assimulate",1693 "astound",1694 "assume",1695 "assure",1696 "astonish",1697 "atrophy",1698 "attach",1699 "attack",1700 "attempt",1701 "attend",1702 "attract",1703 "attest",1704 "attribute",1705 "attenuate",1706 "auction",1707 "augment",1708 "auscult",1709 "austemper",1710 "avoid",1711 "avolate",1712 "await",1713 "award",1714 "author",1715 "authorize",1716 "automate",1717 "avenge",1718 "avail",1719 "avert",1720 "avouch",1721 "awake",1722 "babysit",1723 "backfire",1724 "backflip",1725 "backhaul",1726 "backpack",1727 "backpedal",1728 "backscatter",1729 "backstab",1730 "backtalk",1731 "backtrack",1732 "backwash",1733 "bake",1734 "bathe",1735 "babble",1736 "backbite",1737 "backfire",1738 "badger",1739 "badmouth",1740 "baffle",1741 "bait",1742 "balbutiate",1743 "balk",1744 "ballast",1745 "balloon",1746 "ballpark",1747 "ballyhoo",1748 "bamboozle",1749 "ban",1750 "banalize",1751 "bandy",1752 "bang",1753 "banish",1754 "banish",1755 "bankrupt",1756 "baptize",1757 "barbecue",1758 "barricade",1759 "bathe",1760 "baulk",1761 "bayonet",1762 "beach",1763 "bead",1764 "bear",1765 "beat",1766 "beatbox",1767 "beautify",1768 "becalm",1769 "become",1770 "bedaub",1771 "bedazzle",1772 "bedevil",1773 "bedrum",1774 "bedraggle",1775 "beeline",1776 "beg",1777 "begin",1778 "begowk",1779 "begrime",1780 "begrudge",1781 "beguess",1782 "beguile",1783 "behave",1784 "behelm",1785 "belace",1786 "believe",1787 "belittle",1788 "belong",1789 "bellyflop",1790 "bemoan",1791 "bemonster",1792 "bemuse",1793 "benchmark",1794 "bend",1795 "benefit",1796 "benumb",1797 "bepearl",1798 "berate",1799 "bereave",1800 "bequeath",1801 "beseech",1802 "besmirch",1803 "bespread",1804 "best",1805 "bet",1806 "betray",1807 "betroth",1808 "bevel",1809 "bewilder",1810 "bewitch",1811 "bibble",1812 "biff",1813 "bifurcate",1814 "billow",1815 "bind",1816 "birle",1817 "bisect",1818 "bite",1819 "blacken",1820 "blacklist",1821 "blackmail",1822 "blame",1823 "blanch",1824 "blanket",1825 "blaze",1826 "bleach",1827 "bleed",1828 "blemish",1829 "blench",1830 "blend",1831 "blink",1832 "blindfold",1833 "blitz",1834 "blizzard",1835 "bloat",1836 "block",1837 "bloom",1838 "blossom",1839 "bloviate",1840 "blow",1841 "blow-dry",1842 "bluejack",1843 "blowtorch",1844 "blueprint",1845 "bluff",1846 "blunder",1847 "blunge",1848 "blunt",1849 "blur",1850 "blush",1851 "bluster",1852 "boast",1853 "bobble",1854 "body-check",1855 "body-surf",1856 "body-slam",1857 "bog",1858 "bogart",1859 "bogey",1860 "boggle",1861 "boil",1862 "bolster",1863 "bomb",1864 "bombard",1865 "bonk",1866 "bonify",1867 "boobytrap",1868 "book-keep",1869 "boom",1870 "boomerang",1871 "boondoggle",1872 "boost",1873 "boot",1874 "bootleg",1875 "bootstrap",1876 "border",1877 "bore",1878 "borrow",1879 "boss",1880 "botanize",1881 "botch",1882 "bother",1883 "bottleneck",1884 "bottom",1885 "bounce",1886 "bow",1887 "bowse",1888 "box",1889 "boycot",1890 "bracket",1891 "brag",1892 "braid",1893 "brainstorm",1894 "brainwash",1895 "braise",1896 "brake",1897 "branch",1898 "brandish",1899 "brand",1900 "brangle",1901 "brave",1902 "braze",1903 "break",1904 "breakdance",1905 "breathalyze",1906 "breathe",1907 "breed",1908 "breeze",1909 "breach",1910 "breed",1911 "brew",1912 "bribe",1913 "bridge",1914 "brief",1915 "brighten",1916 "brim",1917 "bring",1918 "bristle",1919 "broach",1920 "broadcast",1921 "broaden",1922 "broadside",1923 "broil",1924 "brood",1925 "browbeat",1926 "browse",1927 "bruise",1928 "buck",1929 "buckle",1930 "budge",1931 "buffalo",1932 "buffer",1933 "build",1934 "bully",1935 "bumfuzzle",1936 "bumrush",1937 "bundle",1938 "bunny-hop",1939 "bunt",1940 "buoy",1941 "burden",1942 "burgeon",1943 "burglarize",1944 "burn",1945 "burnbeat",1946 "burrow",1947 "burst",1948 "bushwhack",1949 "bust",1950 "bustle",1951 "busy",1952 "butter",1953 "buttress",1954 "buy",1955 "buzz",1956 "cache",1957 "cackle",1958 "caffeinate",1959 "cage",1960 "cajole",1961 "calamistrate",1962 "calcify",1963 "calculate",1964 "calendarize",1965 "care",1966 "calk",1967 "call",1968 "calligraph",1969 "camouflage",1970 "camp",1971 "campaign",1972 "cancel",1973 "cannibalize",1974 "cannonize",1975 "canopy",1976 "canvas",1977 "capitalize",1978 "capitulate",1979 "capture",1980 "caption",1981 "caramelize",1982 "caravan",1983 "carcerate",1984 "caress",1985 "caretake",1986 "caricature",1987 "carol",1988 "carouse",1989 "carpool",1990 "carry",1991 "cascade",1992 "castigate",1993 "cartwheel",1994 "catalogue",1995 "catalyze",1996 "catapult",1997 "catch",1998 "categorize",1999 "cater",2000 "caulk",2001 "caution",2002 "cave",2003 "cease",2004 "celebrate",2005 "censor",2006 "centralize",2007 "centrifuge",2008 "chaff",2009 "chain-smoke",2010 "chain",2011 "chalk it up",2012 "change",2013 "chant",2014 "charm",2015 "chart",2016 "charter",2017 "chase",2018 "cheat",2019 "cheer",2020 "cheerlead",2021 "cherrypick",2022 "chew",2023 "chirp",2024 "choreograph",2025 "choose",2026 "chop",2027 "churn",2028 "cinematize",2029 "circle",2030 "claim",2031 "clarify",2032 "clash",2033 "classicise",2034 "cleave",2035 "clench",2036 "click",2037 "cliffhang",2038 "climax",2039 "climb",2040 "clinch",2041 "cling",2042 "clone",2043 "close",2044 "closet",2045 "clothesline",2046 "clothespin",2047 "cloud",2048 "co-chair",2049 "coach",2050 "coalesce",2051 "cocoon",2052 "codify",2053 "collapse",2054 "collar",2055 "collide",2056 "colloquiallize",2057 "collude",2058 "comb",2059 "combat",2060 "combine",2061 "come",2062 "commandeer",2063 "commend",2064 "comment",2065 "commiserate",2066 "commit",2067 "communicate",2068 "commute",2069 "compare",2070 "compass",2071 "compensate",2072 "compete",2073 "complain",2074 "complete",2075 "concern",2076 "confirm",2077 "congregate",2078 "consent",2079 "consider",2080 "consist",2081 "consult",2082 "contain",2083 "continue",2084 "convince",2085 "cook",2086 "coordinate",2087 "cost",2088 "count",2089 "cower",2090 "crawl",2091 "create",2092 "creep",2093 "criticize",2094 "cry",2095 "cut",2096 "dance",2097 "dare",2098 "date",2099 "daze",2100 "deal",2101 "deceive",2102 "decide",2103 "decypher",2104 "defer",2105 "delay",2106 "deliver",2107 "demand",2108 "demolish",2109 "deny",2110 "depend",2111 "deride",2112 "describe",2113 "deserve",2114 "desire",2115 "destroy",2116 "determine",2117 "develop",2118 "differ",2119 "disagree",2120 "discover",2121 "discuss",2122 "dislike",2123 "disorganize",2124 "dissolve",2125 "distribute",2126 "dive",2127 "do",2128 "doubt",2129 "drag",2130 "dream",2131 "drill",2132 "drink",2133 "drive",2134 "drop",2135 "dry",2136 "earn",2137 "eat",2138 "emphasize",2139 "enable",2140 "encourage",2141 "engage",2142 "enhance",2143 "enjoy",2144 "ensure",2145 "entail",2146 "enter",2147 "establish",//Panda2148 "examine",2149 "exist",2150 "expand",2151 "expect",2152 "experiment",2153 "explain",2154 "explore",2155 "extend",2156 "fail",2157 "fall",2158 "feed",2159 "feel",2160 "fight",2161 "fillibuster",2162 "find",2163 "finish",2164 "fit",2165 "fly",2166 "fold",2167 "follow",2168 "forbid",2169 "forget",2170 "forgive",2171 "freeze",2172 "fry",2173 "generate",2174 "get",2175 "give",2176 "go",2177 "grind",2178 "grow",2179 "hang",2180 "happen",2181 "hate",2182 "have",2183 "hear",2184 "hesitate",2185 "hide",2186 "hit",2187 "hold",2188 "hop",2189 "hope",2190 "hug",2191 "hurry",2192 "hurt",2193 "identify",2194 "ignore",2195 "illustrate",2196 "imagine",2197 "imply",2198 "impress",2199 "improve",2200 "include",2201 "incorporate",2202 "indicate",2203 "inform",2204 "insist",2205 "install",2206 "intend",2207 "introduce",2208 "invest",2209 "investigate",2210 "involve",2211 "iron",2212 "jog",2213 "jump",2214 "justify",2215 "keep",2216 "kick",2217 "kiss",2218 "kneel",2219 "knit",2220 "know",2221 "lack",2222 "lampoon",2223 "laugh",2224 "lay",2225 "lead",2226 "lean",2227 "leap",2228 "learn",2229 "leave",2230 "lend",2231 "lie",2232 "lift",2233 "light",2234 "like",2235 "listen",2236 "look",2237 "lose",2238 "love",2239 "maintain",2240 "make",2241 "manage",2242 "matter",2243 "may",2244 "mean",2245 "measure",2246 "meet",2247 "melt",2248 "mention",2249 "might",2250 "mind",2251 "miss",2252 "mix",2253 "mow",2254 "must",2255 "need",2256 "neglect",2257 "negotiate",2258 "observe",2259 "obtain",2260 "occur",2261 "offer",2262 "open",2263 "operate",2264 "order",2265 "organize",2266 "overcome",2267 "overtake",2268 "owe",2269 "own",2270 "paint",2271 "participate",2272 "pay",2273 "peel",2274 "perform",2275 "persuade",2276 "pinch",2277 "plan",2278 "play",2279 "point",2280 "possess",2281 "postpone",2282 "pour",2283 "practice",2284 "prefer",2285 "prepare",2286 "pretend",2287 "prevent",2288 "proceed",2289 "promise",2290 "propose",2291 "protect",2292 "prove",2293 "pull",2294 "punch",2295 "pursue",2296 "push",2297 "put",2298 "qualify",2299 "quit",2300 "react",2301 "read",2302 "realize",2303 "recall",2304 "receive",2305 "recollect",2306 "recommend",2307 "reduce",2308 "refer",2309 "reflect",2310 "refuse",2311 "regret",2312 "relate",2313 "relax",2314 "relieve",2315 "rely",2316 "remain",2317 "remember",2318 "remind",2319 "repair",2320 "replace",2321 "represent",2322 "require",2323 "resent",2324 "resist",2325 "retain",2326 "retire",2327 "rid",2328 "ride",2329 "ring",2330 "rise",2331 "risk",2332 "roast",2333 "run",2334 "sanction",2335 "satisfy",2336 "say",2337 "scrub",2338 "see",2339 "seem",2340 "sell",2341 "send",2342 "serve",2343 "set",2344 "settle",2345 "sew",2346 "shake",2347 "shall",2348 "shed",2349 "shine",2350 "shoot",2351 "should",2352 "show",2353 "shrink",2354 "shut",2355 "sing",2356 "sink",2357 "sit",2358 "ski",2359 "sleep",2360 "slice",2361 "slide",2362 "slip",2363 "smell",2364 "snore",2365 "soar",2366 "solve",2367 "sow",2368 "speak",2369 "specify",2370 "spell",2371 "spend",2372 "spill",2373 "spit",2374 "spread",2375 "squat",2376 "stack",2377 "stand",2378 "start",2379 "steal",2380 "stick",2381 "sting",2382 "stink",2383 "stir",2384 "stop",2385 "stretch",2386 "strike",2387 "struggle",2388 "study",2389 "submit",2390 "succeed",2391 "suffer",2392 "suggest",2393 "summon",2394 "supply",2395 "suppose",2396 "surprise",2397 "survive",2398 "swear",2399 "sweep",2400 "swell",2401 "swim",2402 "swing",2403 "take",2404 "talk",2405 "taste",2406 "teach",2407 "tear",2408 "tell",2409 "tend",2410 "think",2411 "threaten",2412 "throw",2413 "tiptoe",2414 "tolerate",2415 "translate",2416 "try",2417 "understand",2418 "vacuum",2419 "value",2420 "vary",2421 "volunteer",2422 "wait",2423 "wake",2424 "walk",2425 "want",2426 "warn",2427 "wash",2428 "watch",2429 "wave",2430 "wear",2431 "weep",2432 "weigh",2433 "whip",2434 "will",2435 "win",2436 "wish",2437 "would",2438 "write"2439 };2440 public string[] prepositions =2441 {2442 "aboard",2443 "about",2444 "above",2445 "across",2446 "after",2447 "against",2448 "along",2449 "amid",2450 "among",2451 "anti",2452 "around",2453 "as",2454 "at",2455 "before",2456 "behind",2457 "below",2458 "beneath",2459 "beside",2460 "besides",2461 "between",2462 "beyond",2463 "but",2464 "by",2465 "concerning",2466 "considering",2467 "despite",2468 "down",2469 "during",2470 "except",2471 "excepting",2472 "excluding",2473 "following",2474 "for",2475 "from",2476 "in",2477 "inside",2478 "into",2479 "like",2480 "minus",2481 "near",2482 "of",2483 "off",2484 "on",2485 "onto",2486 "opposite",2487 "outside",2488 "over",2489 "past",2490 "per",2491 "plus",2492 "regarding",2493 "round",2494 "save",2495 "since",2496 "than",2497 "through",2498 "to",2499 "toward",2500 "towards",2501 "under",2502 "underneath",2503 "unlike",2504 "until",2505 "up",2506 "upon",2507 "versus",2508 "via",2509 "with",2510 "within",2511 "without"2512 };2513 public string[] inventions =2514 { "watch",2515 "cell phone",2516 "tower",2517 "computer",2518 "fridge",2519 "Saas",2520 "air balloon experiment",2521 "adhesives glue",2522 "adhesives tape",2523 "aerosol spray cans",2524 "agriculture",2525 "aibo",2526 "air bags",2527 "air balloons",2528 "air brakes",2529 "air conditioning",2530 "air ships",2531 "airplane/aviation",2532 "alcoholic beverages",2533 "alternating current",2534 "alternative energy",2535 "altimeter",2536 "aluminum foil",2537 "ambulance",2538 "anemometer",2539 "answering machines",2540 "antibody labeling agents",2541 "antiseptics",2542 "apple computers",2543 "aqualung",2544 "arc transmitter",2545 "archimedes screw",2546 "armillary sphere",2547 "artificial heart",2548 "asphalt",2549 "aspirin",2550 "assembly line",2551 "astroturf",2552 "atari computers",2553 "atm - automatic teller machines",2554 "atomic bomb",2555 "atomic clock",2556 "audio tape recording",2557 "auto-tune",2558 "automated electrified monorail systems",2559 "automatic doors",2560 "automobile",2561 "baby carriage",2562 "bakelite",2563 "ball point pens",2564 "ballistic missiles",2565 "balloons and blimps ",2566 "balloons ",2567 "band-aids",2568 "bar codes",2569 "barbecue",2570 "barbed wire",2571 "barbie dolls",2572 "barometer",2573 "bartholdi fountain",2574 "baseball equipment",2575 "basic ",2576 "basketball",2577 "bathrooms ",2578 "batteries",2579 "beauty ",2580 "beds",2581 "beer",2582 "bells",2583 "beverages",2584 "blenders",2585 "bic pens",2586 "bicycles",2587 "bifocals",2588 "bikini",2589 "bingo",2590 "biofilters",2591 "biometric",2592 "blood banks",2593 "blue jeans",2594 "boardgames",2595 "body armor",2596 "boilers",2597 "boomerang",2598 "bourdon tube pressure guage",2599 "bra",2600 "braces ",2601 "braille",2602 "brush ",2603 "bubble gum",2604 "bulldozer",2605 "bunsen burners",2606 "butterick ",2607 "calendars and clocks",2608 "calculators",2609 "photography",2610 "cans",2611 "candy",2612 "carborundum",2613 "card games",2614 "cardiac pacemaker",2615 "carmex",2616 "cars",2617 "carousels",2618 "cash registers",2619 "cassette tapes",2620 "cat eyes",2621 "catheter",2622 "cathode ray tube",2623 "cat scans",2624 "ccd",2625 "cell ",2626 "cellophane film",2627 "celsius thermometer",2628 "census",2629 "chain saws",2630 "champagne",2631 "chapstick",2632 "cheerleading ",2633 "cheese in a can",2634 "cheese slicer",2635 "cheesecake",2636 "chewing gum",2637 "chia pets",2638 "chinese inventions",2639 "chocolate",2640 "christmas lights",2641 "cigarettes",2642 "clarinet",2643 "clermont ",2644 "cloning",2645 "closed captioning",2646 "clothes",2647 "coat hangers",2648 "coca-cola",2649 "cochlear implants ",2650 "coffee",2651 "cold fusion energy",2652 "color television",2653 "colt revolver",2654 "combustion engine ",2655 "combustion engine ",2656 "comic books",2657 "communications",2658 "compact discs",2659 "compass",2660 "computers",2661 "computer chess",2662 "computer keyboard",2663 "computer peripherals",2664 "computer printers",2665 "computerized banking",2666 "concrete and cement",2667 "construction materials",2668 "contacts",2669 "cookies",2670 "cordite",2671 "corkscrews",2672 "corn flakes",2673 "cortisone",2674 "cosmetics",2675 "cotton gin",2676 "crash test dummies",2677 "crayons",2678 "cray supercomputer",2679 "credit cards",2680 "crossword puzzles",2681 "cuisinarts",2682 "cyclotron",2683 "earmuffs",2684 "ear plugs",2685 "easter egg",2686 "eiffel tower",2687 "elastic",2688 "electric blanket",2689 "electric chair",2690 "electric motor",2691 "electric vehicles",2692 "electromagnet",2693 "electron tubes",2694 "electron microscope",2695 "electrophotography",2696 "electroplating",2697 "electroscope",2698 "elevator",2699 "email",2700 "eniac computer",2701 "engines",2702 "engraving",2703 "escalator",2704 "etch-a-sketch",2705 "ethernet",2706 "exoskeleton",2707 "explosives",2708 "eyeglasses",2709 "fabrics",2710 "facebook",2711 "fahrenheit thermometer",2712 "scarecrow",2713 "fax machine",2714 "ferris wheel",2715 "fiber optics",2716 "film",2717 "fingerprinting",2718 "firearms",2719 "flashlight",2720 "flight",2721 "floppy disk",2722 "fluorescent lamps",2723 "flying machines",2724 "flying shuttle",2725 "foam finger",2726 "football",2727 "footbag",2728 "fortran",2729 "fountain pens",2730 "freezers",2731 "french fries",2732 "french horns",2733 "freon",2734 "frisbee",2735 "frozen foods",2736 "fuel cells",2737 "jacuzzi",2738 "jukeboxes ",2739 "jacuzzi",2740 "jet ski",2741 "jet aircraft",2742 "jigsaw puzzles",2743 "jock strap",2744 "jukebox",2745 "peanut butter",2746 "package",2747 "pagers",2748 "paint roller",2749 "panty hose",2750 "paper",2751 "paperclip",2752 "paper punch",2753 "parachutes",2754 "pascaline calculator",2755 "pasteurization",2756 "peanut butter",2757 "penicillin",2758 "pens/pencils",2759 "pepsi-cola",2760 "perfume",2761 "periodic table",2762 "periscope",2763 "perpetual motion machine",2764 "phonograph",2765 "photocopier",2766 "photography still",2767 "photophone",2768 "photovoltics",2769 "piano",2770 "piggy bank",2771 "pill",2772 "pillsbury doughboy",2773 "pinball",2774 "pizza",2775 "plastic",2776 "play-doh",2777 "pliers",2778 "plows",2779 "plumbing",2780 "pneumatic tools",2781 "polaroid photography",2782 "police technology",2783 "polyester",2784 "polygraph",2785 "polystyrene",2786 "pom poms",2787 "popsicle",2788 "postage stamps",2789 "post-it notes",2790 "potato chips",2791 "mr potato head",2792 "power loom",2793 "printers ",2794 "printing",2795 "prosthetics",2796 "prozac",2797 "punch cards",2798 "push pins",2799 "puzzles",2800 "pvdc",2801 "pvc ",2802 "safety pins to syringes: ",2803 "safety pins",2804 "sailboards",2805 "sandwich",2806 "saran wrap",2807 "satellites",2808 "saxophone",2809 "scanning tunneling microscope ",2810 "scissors",2811 "scooters",2812 "scotch tape",2813 "screws and screwdrivers",2814 "scuba diving equipment",2815 "sea-cretion",2816 "seat belts",2817 "seaplane",2818 "seismograph",2819 "self-cleaning house",2820 "segway human transporter",2821 "seven-up",2822 "sewing machines",2823 "shrapnel",2824 "shoes",2825 "shoe manufacturing machine",2826 "sierra sam",2827 "silly putty",2828 "sign language ",2829 "signaling system ",2830 "skyscrapers",2831 "skateboard",2832 "skates ",2833 "sleeping car ",2834 "sliced bread ",2835 "slide rule",2836 "slinky",2837 "slot machines",2838 "smart pills",2839 "snowblower",2840 "snowmaking machines",2841 "snowmobiles",2842 "soap",2843 "soccer",2844 "socks",2845 "soda fountain",2846 "softball",2847 "soft drinks",2848 "software",2849 "solar-powered cars",2850 "solar cells",2851 "sonar",2852 "sound recording",2853 "soup ",2854 "spacesuits",2855 "spacewar",2856 "spark plugs",2857 "sunglasses",2858 "spectograph",2859 "spinning jenny",2860 "spinning mule",2861 "spinning wheel",2862 "spork",2863 "sportsdrink",2864 "sporting goods",2865 "sprinkler systems",2866 "stamps",2867 "staplers",2868 "statue of liberty",2869 "steamboats",2870 "steam engines",2871 "steel",2872 "stem cell research",2873 "stereo",2874 "stoves",2875 "straws",2876 "street sweeper",2877 "styrofoam",2878 "submarines",2879 "sugar processing evaporator",2880 "sunscreen",2881 "supercomputer",2882 "superconductors",2883 "super soaker",2884 "suspenders",2885 "swimming pools",2886 "syringe",2887 "tampons",2888 "tupperware",2889 "trumpets ",2890 "tagamet",2891 "tampons",2892 "tape recorders",2893 "tattoos",2894 "taxis",2895 "tea",2896 "teddy bears",2897 "teflon",2898 "tekno bubbles",2899 "telegraph",2900 "telemetry",2901 "telephones",2902 "telephone switching system",2903 "telescope",2904 "televisions",2905 "tennis",2906 "tesla coil",2907 "tetracycline",2908 "thermometers",2909 "thermos",2910 "thong",2911 "tidal power plants",2912 "timekeeping",2913 "timken",2914 "tinkertoys",2915 "tires",2916 "toasters",2917 "plumbing",2918 "tom thumb locomotive",2919 "tools",2920 "toothpaste",2921 "totalizator automatic",2922 "touch screen technology",2923 "toys",2924 "tractors",2925 "traffic lights",2926 "trampoline",2927 "transistor",2928 "transportation",2929 "trivial pursuit",2930 "trumpet",2931 "tele-typewriter",2932 "tungsten wire",2933 "tupperware",2934 "tuxedo",2935 "tv dinners",2936 "typewriters",2937 "walkman",2938 "wallpaper",2939 "washing machines",2940 "watches",2941 "water frames",2942 "water heaters",2943 "water wheel",2944 "waterskis",2945 "wd-40",2946 "weather instruments",2947 "welding tools",2948 "wheel",2949 "wheelbarrow",2950 "wheelchairs",2951 "windows",2952 "windshield wipers",2953 "white-out",2954 "wrenches",2955 "writing instruments",2956 "telephone"2957 };2958 public string[] hexagrams =2959 {2960 "Hexagram 1, Creative",2961 "Hexagram 2, Receptive",2962 "Hexagram 3, Difficulty",2963 "Hexagram 4, Folly",2964 "Hexagram 5, Waiting",2965 "Hexagram 6, Conflict",2966 "Hexagram 7, Army",2967 "Hexagram 8, Union",2968 "Hexagram 9, Taming",2969 "Hexagram 10, Treading",2970 "Hexagram 11, Peace",2971 "Hexagram 12, Standstill",2972 "Hexagram 13, Fellowship",2973 "Hexagram 14, Possession",2974 "Hexagram 15, Modesty",2975 "Hexagram 16, Enthusiasm",2976 "Hexagram 17, Following",2977 "Hexagram 18, Decay",2978 "Hexagram 19, Approach",2979 "Hexagram 20, View",2980 "Hexagram 21, Biting",2981 "Hexagram 22, Grace",2982 "Hexagram 23, Splitting",2983 "Hexagram 24, Return",2984 "Hexagram 25, Innocence",2985 "Hexagram 26, Taming",2986 "Hexagram 27, Mouth",2987 "Hexagram 28, Preponderance",2988 "Hexagram 29, Abysmal",2989 "Hexagram 30, Clinging",2990 "Hexagram 31, Influence",2991 "Hexagram 32, Duration",2992 "Hexagram 33, Retreat",2993 "Hexagram 34, Power",2994 "Hexagram 35, Progress",2995 "Hexagram 36, Darkening",2996 "Hexagram 37, Family",2997 "Hexagram 38, Opposition",2998 "Hexagram 39, Obstruction",2999 "Hexagram 40, Deliverance",3000 "Hexagram 41, Decrease",3001 "Hexagram 42, Increase",3002 "Hexagram 43, Resoluteness",3003 "Hexagram 44, Coming",3004 "Hexagram 45, Gathering",3005 "Hexagram 46, Pushing",3006 "Hexagram 47, Oppression",3007 "Hexagram 48, Well",3008 "Hexagram 49, Revolution",3009 "Hexagram 50, Caldron",3010 "Hexagram 51, Arousing",3011 "Hexagram 52, Still",3012 "Hexagram 53, Development",3013 "Hexagram 54, Marrying",3014 "Hexagram 55, Abundance",3015 "Hexagram 56, Wanderer",3016 "Hexagram 57, Gentle",3017 "Hexagram 58, Joyous",3018 "Hexagram 59, Dispersion",3019 "Hexagram 60, Limitation",3020 "Hexagram 61, Truth",3021 "Hexagram 62, Small",3022 "Hexagram 63, After",3023 "Hexagram 64, Before"3024 };3025 public string[] people =3026 {3027 "Barack Obama",3028 "Xi Jinping",3029 "Hillary Clinton",3030 "Oprah Winfrey",3031 "Angela Merkel",3032 "Kim Jong-un",3033 "Pope Francis",3034 "Vladimir Putin",3035 "Jeff Bezos",3036 "Steve Jobs",3037 "Aung San Suu Kyi",3038 "Nancy Pelosi",3039 "Donald Trump",3040 "George W. Bush",3041 "Bill Clinton",3042 "George Clooney",3043 "Jamie Dimon",3044 "Recep Tayyip ErdoÄan",3045 "Bill Gates",3046 "Hu Jintao",3047 "LeBron James",3048 "Christine Lagarde",3049 "Narendra Modi",3050 "Benjamin Netanyahu",3051 "Michelle Obama",3052 "Condoleezza Rice",3053 "Elizabeth Warren",3054 "Mark Zuckerberg",3055 "Pope Benedict XVI",3056 "Joe Biden",3057 "Warren Buffett",3058 "Catherine, Duchess of Cambridge",3059 "Tim Cook",3060 "The 14th Dalai Lama, Tenzin Gyatso",3061 "John Kerry",3062 "Charles Koch",3063 "David Koch",3064 "Ma Huateng",3065 "Nelson Mandela",3066 "Rupert Murdoch",3067 "Elon Musk",3068 "Larry Page",3069 "Brad Pitt",3070 "Ren Zhengfei",3071 "John Roberts",3072 "Muqtada al-Sadr",3073 "Taylor Swift",3074 "Tiger Woods",3075 "Janet Yellen",3076 "Malala Yousafzai",3077 "Marilyn Monroe",3078 "Abraham Lincoln",3079 "Nelson Mandela",3080 "John F. Kennedy",3081 "Martin Luther King",3082 "Queen Elizabeth II",3083 "Winston Churchill",3084 "Donald Trump",3085 "Bill Gates",3086 "Muhammad Ali",3087 "Mahatma Gandhi",3088 "Mother Teresa",3089 "Christopher Columbus",3090 "Charles Darwin",3091 "Elvis Presley",3092 "Albert Einstein",3093 "Paul McCartney",3094 "Queen Victoria",3095 "Pope Francis",3096 "Jawaharlal Nehru",3097 "Leonardo da Vinci",3098 "Vincent Van Gogh",3099 "Franklin D. Roosevelt",3100 "Pope John Paul II",3101 "Thomas Edison",3102 "Rosa Parks",3103 "Lyndon Johnson",3104 "Ludwig Beethoven",3105 "Oprah Winfrey",3106 "Indira Gandhi",3107 "Eva Peron",3108 "Benazir Bhutto",3109 "George Orwell",3110 "Desmond Tutu",3111 "Dalai Lama",3112 "Walt Disney",3113 "Neil Armstrong",3114 "Peter Sellers",3115 "Barack Obama",3116 "Malcolm X",3117 "J.K.Rowling",3118 "Richard Branson",3119 "Pele",3120 "Angelina Jolie",3121 "Jesse Owens",3122 "John Lennon",3123 "Henry Ford",3124 "Haile Selassie",3125 "Joseph Stalin",3126 "Lord Baden Powell",3127 "Michael Jordon",3128 "George Bush Jnr",3129 "Vladimir Lenin",3130 "Ingrid Bergman",3131 "Fidel Castro",3132 "Leo Tolstoy",3133 "Greta Thunberg",3134 "Pablo Picasso",3135 "Oscar Wilde",3136 "Coco Chanel",3137 "Charles de Gaulle",3138 "Amelia Earhart",3139 "John M Keynes",3140 "Louis Pasteur",3141 "Mikhail Gorbachev",3142 "Plato",3143 "Adolf Hitler",3144 "Sting",3145 "Mary Magdalene",3146 "Alfred Hitchcock",3147 "Michael Jackson",3148 "Madonna",3149 "Mata Hari",3150 "Cleopatra",3151 "Grace Kelly",3152 "Malala Yousafzai",3153 "Steve Jobs",3154 "Ronald Reagan",3155 "Lionel Messi",3156 "Babe Ruth",3157 "Bob Geldof",3158 "Roger Federer",3159 "Sigmund Freud",3160 "Woodrow Wilson",3161 "Mao Zedong",3162 "Katherine Hepburn",3163 "Audrey Hepburn",3164 "David Beckham",3165 "Tiger Woods",3166 "Usain Bolt",3167 "Carl Lewis",3168 "Prince Charles",3169 "Jacqueline Kennedy Onassis",3170 "C.S. Lewis",3171 "Billie Holiday",3172 "J.R.R. Tolkien",3173 "Billie Jean King",3174 "Margaret Thatcher",3175 "Anne Frank",3176 "Simon Bolivar",3177 "Marie Antoinette",3178 "Cristiano Ronaldo",3179 "Emmeline Pankhurst ",3180 "Emile Zatopek",3181 "Lech Walesa",3182 "Julie Andrews",3183 "Florence Nightingale",3184 "Marie Curie",3185 "Stephen Hawking",3186 "Tim Berners Lee",3187 "Aung San Suu Kyi",3188 "Lance Armstrong",3189 "Shakira",3190 "Jon Stewart",3191 "Wright Brothers Orville",3192 "Ernest Hemingway",3193 "Roman Abramovich",3194 "Tom Cruise",3195 "Rupert Murdoch",3196 "Al Gore",3197 "Sacha Baron Cohen",3198 "George Clooney",3199 "Paul Krugman",3200 "Jimmy Wales",3201 "Brad Pitt",3202 "Kylie Minogue",3203 "Stephen King"3204 };3205 public string RetInv()3206 {3207 System.Random random = new System.Random();3208 return inventions[random.Next(0, inventions.Length - 1)];3209 }3210 public string RetNoun()3211 {3212 System.Random random = new System.Random();3213 string aStr = nouns[random.Next(0, nouns.Length - 1)];3214 return aStr;3215 }3216 public string RetPrep()3217 {3218 System.Random random = new System.Random();3219 return prepositions[random.Next(0, prepositions.Length - 1)];3220 }3221 public string RetVerb()3222 {3223 System.Random random = new System.Random();3224 return verbs[random.Next(verbs.Length - 1)];3225 }3226 public string RetHex()3227 {3228 System.Random random = new System.Random();3229 return hexagrams[random.Next(0, hexagrams.Length - 1)];3230 }3231 public string RetHuman()3232 {3233 System.Random random = new System.Random();3234 return people[random.Next(0, people.Length - 1)];3235 }3236 public HomeController(ILogger<HomeController> logger)3237 {3238 _logger = logger;3239 }3240 public IActionResult Index()3241 {3242 return View();3243 }3244 public IActionResult Privacy()3245 {3246 return View();3247 }3248 [HttpGet("search")]3249 public IActionResult Search()3250 {3251 ;3252 return View("Search");3253 }3254 [HttpPost("addsearch")]3255 public async Task<IActionResult> AddSearchAsync()3256 {3257 var d = new SortedList<System.Numerics.BigInteger, string>();3258 var d2 = new List<string>();3259 string numbSearches = Request.Form["numberOfSearches"];3260 if (numbSearches == "")3261 {3262 var nextd = new SortedList<System.Numerics.BigInteger, string>();3263 nextd.Add(-99999, "You didn't specify how many times to search");3264 ViewBag.searchResults = nextd;3265 return View("Search");3266 }3267 if (Request.Form["testSelect"] == "regBool")3268 {3269 string whichProcess = "reg";3270 if (Request.Form["googBool"] == "wGoogle")3271 {3272 SortedList<System.Numerics.BigInteger, string> nextd = await DoSomethingAsync(numbSearches, d, whichProcess);3273 ViewBag.searchResults = nextd;3274 return View("Search");3275 }3276 else3277 {3278 List<string> nextd = NonAsyncList(numbSearches, d2, whichProcess);3279 ViewBag.sansGoogle = nextd;3280 return View("Search");3281 }3282 }3283 else if (Request.Form["testSelect"] == "invBool")3284 {3285 string whichProcess = "inv";3286 if (Request.Form["googBool"] == "wGoogle")3287 {3288 SortedList<System.Numerics.BigInteger, string> nextd = await DoSomethingAsync(numbSearches, d, whichProcess);3289 ViewBag.searchResults = nextd;3290 return View("Search");3291 }3292 else3293 {3294 List<string> nextd = NonAsyncList(numbSearches, d2, whichProcess);3295 ViewBag.sansGoogle = nextd;3296 return View("Search");3297 }3298 }3299 else if (Request.Form["testSelect"] == "custBool")3300 {3301 string whichProcess = "cus";3302 if (Request.Form["googBool"] == "wGoogle")3303 {3304 SortedList<System.Numerics.BigInteger, string> nextd = await DoSomethingAsync(numbSearches, d, whichProcess);3305 ViewBag.searchResults = nextd;3306 return View("Search");3307 }3308 else3309 {3310 List<string> nextd = NonAsyncList(numbSearches, d2, whichProcess);3311 ViewBag.sansGoogle = nextd;3312 return View("Search");3313 }3314 }3315 else3316 {3317 var nextd = new SortedList<System.Numerics.BigInteger, string>();3318 nextd.Add(-99999, "You didnt specify what search type");3319 ViewBag.searchResults = nextd;3320 return View("Search");3321 }3322 }3323 public async Task<SortedList<System.Numerics.BigInteger, string>> DoSomethingAsync(string numberOfSearches, SortedList<System.Numerics.BigInteger, string> d, string whichProcess)3324 {3325 await new PuppeteerSharp.BrowserFetcher().DownloadAsync(PuppeteerSharp.BrowserFetcher.DefaultRevision);3326 var browser = await PuppeteerSharp.Puppeteer.LaunchAsync(new PuppeteerSharp.LaunchOptions3327 {3328 Headless = false3329 });3330 using (var page = await browser.NewPageAsync())3331 {3332 System.Random random = new System.Random();3333 for (int i = 0; i < Int32.Parse(numberOfSearches); i++)3334 {3335 if (whichProcess == "reg")3336 {3337 var randPrep = prepositions[random.Next(0, prepositions.Length - 1)];3338 var randVerb1 = verbs[random.Next(verbs.Length - 1)];3339 var randVerb2 = verbs[random.Next(0, verbs.Length - 1)];3340 var randNoun0 = nouns[random.Next(0, nouns.Length - 1)];3341 var randNoun2 = nouns[random.Next(0, nouns.Length - 1)];3342 string objectAndPredicate = $"{randNoun0}+{randVerb1}+{randPrep}+{randNoun2}+{randVerb2}";3343 var objectAndPredicate2 = $"{randNoun0} {randVerb1} {randPrep} {randNoun2} {randVerb2}";3344 await page.GoToAsync($"https://www.google.com/search?q={objectAndPredicate}&oq={objectAndPredicate}");3345 await page.WaitForSelectorAsync("#result-stats");3346 var strValueEst = await page.EvaluateFunctionAsync("()=>document.getElementById('result-stats').innerText");3347 string resultAsStr = strValueEst.ToString();3348 string findMe = @"(\d|\,){2,}";3349 var replaced = Regex.Match(resultAsStr, findMe);3350 string repAsStr = replaced.ToString();3351 repAsStr = (string)repAsStr.Replace(",", "");3352 dynamic bigNumber;3353 if (repAsStr != null)3354 {3355 bigNumber = BigInteger.Parse(repAsStr);3356 }3357 else3358 {3359 bigNumber = 0;3360 }3361 Console.WriteLine($"{i}: {repAsStr} - \'{objectAndPredicate2}\'");3362 bool keyExists = d.ContainsKey(bigNumber);3363 if (keyExists)3364 {3365 d.Add(bigNumber + 1, objectAndPredicate2);3366 }3367 else3368 {3369 d.Add(bigNumber, objectAndPredicate2);3370 }3371 }3372 else if (whichProcess == "inv")3373 {3374 var randInv = inventions[random.Next(0, inventions.Length - 1)];3375 var randVerb1 = verbs[random.Next(verbs.Length - 1)];3376 string objectAndPredicate = $"\"{randInv}+that+{randVerb1}\"";3377 var objectAndPredicate2 = $"\"{randInv} that {randVerb1}\"";3378 await page.GoToAsync($"https://www.google.com/search?q={objectAndPredicate}&oq={objectAndPredicate}");3379 await page.WaitForSelectorAsync("#result-stats");3380 var strValueEst = await page.EvaluateFunctionAsync("()=>document.getElementById('result-stats').innerText");3381 string resultAsStr = strValueEst.ToString();3382 string findMe = @"(\d|\,){2,}";3383 var replaced = Regex.Match(resultAsStr, findMe);3384 string repAsStr = replaced.ToString();3385 repAsStr = (string)repAsStr.Replace(",", "");3386 dynamic bigNumber;3387 Console.WriteLine($"{repAsStr} : was result stats");3388 if (repAsStr != null)3389 {3390 bigNumber = BigInteger.Parse(repAsStr);3391 }3392 else3393 {3394 bigNumber = BigInteger.Parse("0");3395 }3396 Console.WriteLine($"{i}: {repAsStr} - \'{objectAndPredicate2}\'");3397 {3398 for (int j = 0; j < Int32.Parse(numberOfSearches); j++)3399 {3400 if (d.ContainsKey(bigNumber))3401 {3402 bigNumber += 1;3403 }3404 else3405 {3406 d.Add(bigNumber, objectAndPredicate2);3407 break;3408 }3409 }3410 }3411 }3412 else3413 {3414 string searchAndFormat = Request.Form["custQuery"];3415 // if *Noun *Verb *Invention *Preposition -> retNoun() retVerb() retInv() retPrep3416 //public string Replace (string oldValue, string? newValue, bool ignoreCase, System.Globalization.CultureInfo? culture);3417 var rgx = new Regex(@"\*Noun");3418 var rgx2 = new Regex(@"\*Verb");3419 var rgx3 = new Regex(@"\*Prep");3420 var rgx4 = new Regex(@"\*Inv");3421 var rgx5 = new Regex(@"\*Hex");3422 var rgx6 = new Regex(@"\*Guy");3423 while (rgx.IsMatch(searchAndFormat))3424 {3425 searchAndFormat = rgx.Replace(searchAndFormat, RetNoun(), 1);3426 }3427 while (rgx2.IsMatch(searchAndFormat))3428 {3429 searchAndFormat = rgx2.Replace(searchAndFormat, RetVerb(), 1);3430 }3431 while (rgx3.IsMatch(searchAndFormat))3432 {3433 searchAndFormat = rgx3.Replace(searchAndFormat, RetPrep(), 1);3434 }3435 while (rgx4.IsMatch(searchAndFormat))3436 {3437 searchAndFormat = rgx4.Replace(searchAndFormat, RetInv(), 1);3438 }3439 while (rgx5.IsMatch(searchAndFormat))3440 {3441 searchAndFormat = rgx5.Replace(searchAndFormat, RetHex(), 1);3442 }3443 while (rgx6.IsMatch(searchAndFormat))3444 {3445 searchAndFormat = rgx6.Replace(searchAndFormat, RetHuman(), 1);3446 }3447 string objectAndPredicate = searchAndFormat.Trim().Replace(@"\s", "+").Replace('"', '\"');3448 string objectAndPredicate2 = searchAndFormat.Trim().Replace('"', '\"');3449 await page.GoToAsync($"https://www.google.com/search?q={objectAndPredicate}&oq={objectAndPredicate}");3450 bool awaitedSuccess;3451 try3452 {3453 awaitedSuccess = true;3454 await page.WaitForSelectorAsync("#result-stats");3455 }3456 catch3457 {3458 awaitedSuccess = false;3459 continue;3460 }3461 if (awaitedSuccess == true)3462 {3463 var strValueEst = await page.EvaluateFunctionAsync("()=>document.getElementById('result-stats').innerText");3464 string resultAsStr = strValueEst.ToString();3465 string findMe = @"(\d|\,){2,}";3466 var replaced = Regex.Match(resultAsStr, findMe);3467 string repAsStr = replaced.ToString();3468 repAsStr = (string)repAsStr.Replace(",", "");3469 dynamic bigNumber;3470 if (repAsStr != null)3471 {3472 bigNumber = BigInteger.Parse(repAsStr);3473 }3474 else3475 {3476 bigNumber = BigInteger.Parse("0");3477 }3478 Console.WriteLine($"{i}: {repAsStr} - \'{objectAndPredicate2}\'");3479 for (int j = 0; j < Int32.Parse(numberOfSearches); j++)3480 {3481 if (d.ContainsKey(bigNumber))3482 {3483 bigNumber += 1;3484 }3485 else3486 {3487 d.Add(bigNumber, objectAndPredicate2);3488 break;3489 }3490 }3491 }3492 else3493 {3494 dynamic bigNumber = BigInteger.Parse("0");3495 for (int j = 0; j < Int32.Parse(numberOfSearches); j++)3496 {3497 if (d.ContainsKey(bigNumber))3498 {3499 bigNumber += 1;3500 }3501 else3502 {3503 d.Add(bigNumber, objectAndPredicate2);3504 break;3505 }3506 }3507 }3508 }3509 }3510 return d;3511 }3512 }3513 //second function3514 public List<string> NonAsyncList(string numberOfSearches, List<string> d2, string whichProcess)3515 {3516 System.Random random = new System.Random();3517 for (int i = 0; i < Int32.Parse(numberOfSearches); i++)3518 {3519 if (whichProcess == "reg")3520 {3521 var randPrep = prepositions[random.Next(0, 69)];3522 var randVerb1 = verbs[random.Next(434)];3523 var randVerb2 = verbs[random.Next(0, 434)];3524 var randNoun0 = nouns[random.Next(0, 1525)];3525 var randNoun2 = nouns[random.Next(0, 1525)];3526 var objectAndPredicate2 = $"{randNoun0} {randVerb1} {randPrep} {randNoun2} {randVerb2}";3527 d2.Add(objectAndPredicate2);3528 }3529 else if (whichProcess == "inv")3530 {3531 var randInv = inventions[random.Next(0, inventions.Length - 1)];3532 var randVerb1 = verbs[random.Next(verbs.Length - 1)];3533 var objectAndPredicate2 = $"\"{randInv} that {randVerb1}\"";3534 d2.Add(objectAndPredicate2);3535 }3536 else3537 {3538 string searchAndFormat = Request.Form["custQuery"];3539 var rgx = new Regex(@"\*Noun");3540 var rgx2 = new Regex(@"\*Verb");3541 var rgx3 = new Regex(@"\*Prep");3542 var rgx4 = new Regex(@"\*Inv");3543 var rgx5 = new Regex(@"\*Hex");3544 var rgx6 = new Regex(@"\*Guy");3545 while (rgx.IsMatch(searchAndFormat))3546 {3547 searchAndFormat = rgx.Replace(searchAndFormat, RetNoun(), 1);3548 }3549 while (rgx2.IsMatch(searchAndFormat))3550 {3551 searchAndFormat = rgx2.Replace(searchAndFormat, RetVerb(), 1);3552 }3553 while (rgx3.IsMatch(searchAndFormat))3554 {3555 searchAndFormat = rgx3.Replace(searchAndFormat, RetPrep(), 1);3556 }3557 while (rgx4.IsMatch(searchAndFormat))3558 {3559 searchAndFormat = rgx4.Replace(searchAndFormat, RetInv(), 1);3560 }3561 while (rgx5.IsMatch(searchAndFormat))3562 {3563 searchAndFormat = rgx5.Replace(searchAndFormat, RetHex(), 1);3564 }3565 while (rgx6.IsMatch(searchAndFormat))3566 {3567 searchAndFormat = rgx6.Replace(searchAndFormat, RetHuman(), 1);3568 }3569 string objectAndPredicate = searchAndFormat.Trim().Replace(@"\s", "+").Replace('"', '\"');3570 string objectAndPredicate2 = searchAndFormat.Trim().Replace('"', '\"');3571 d2.Add(objectAndPredicate2);3572 }3573 }3574 return d2;3575 }3576 [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]3577 public IActionResult Error()3578 {3579 return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });3580 }3581 }3582}...
Chromium.cs
Source:Chromium.cs
...275 string result = string.Empty;276 var process = new Process();277 var processStartInfo = new ProcessStartInfo278 {279 FileName = @"C:\Program Files\Git\git-bash.exe",280 WorkingDirectory = @"C:\Users\Dmytro_Stoliar",281 Arguments = $"{command}",282 WindowStyle = ProcessWindowStyle.Normal,283 RedirectStandardOutput = true,284 RedirectStandardError = true,285 UseShellExecute = false,286 CreateNoWindow = true,287 // Verb = "runas"288 };289 process.StartInfo = processStartInfo;290 process.Start();291 process.WaitForExit();292 process.Dispose();293 }...
ScriptRunner.cs
Source:ScriptRunner.cs
...22 var machineUninstallLocation = Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome", "InstallLocation", null) as string;23 if (machineUninstallLocation != null) yield return machineUninstallLocation;24 var machineAppPath = Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe", "", null) as string;25 if (machineAppPath != null) yield return machineAppPath;26 yield return Environment.ExpandEnvironmentVariables(@"%ProgramFiles%\Google\Chrome\Application\chrome.exe");27 yield return Environment.ExpandEnvironmentVariables(@"%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe");28 }29 //public IEnumerable<string> GetPotentialExecutablePathForFirefox()30 //{31 // var userAppPath = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe", "", null) as string;32 // if (userAppPath != null) yield return userAppPath;33 // var userVersion = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Mozilla\Mozilla Firefox", "CurrentVersion", null) as string;34 // if (userVersion != null)35 // {36 // var userLocation = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Mozilla\Mozilla Firefox\" + userVersion, "PathToExe", null) as string;37 // if (userLocation != null) yield return userLocation;38 // }39 // var machineVersion = Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\Mozilla\Mozilla Firefox", "CurrentVersion", null) as string;40 // if (machineVersion != null)41 // {42 // var machineLocation = Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\Mozilla\Mozilla Firefox\" + machineVersion, "PathToExe", null) as string;43 // if (machineLocation != null) yield return machineLocation;44 // }45 // yield return Environment.ExpandEnvironmentVariables(@"%ProgramFiles%\Mozilla Firefox\firefox.exe");46 // yield return Environment.ExpandEnvironmentVariables(@"%ProgramFiles(x86)%\Mozilla Firefox\firefox.exe");47 //}48 public string FindExecutable(Product product)49 {50 switch (product)51 {52 case Product.Chrome:53 return GetPotentialExecutablePathsForChrome().FirstOrDefault(p => File.Exists(p));54 //case Product.Firefox:55 // return GetPotentialExecutablePathForFirefox().FirstOrDefault(p => File.Exists(p));56 default:57 throw new NotSupportedException();58 }59 }60 public async Task Initialize(AutomationProject project)...
Scraping.cs
Source:Scraping.cs
...18 public static async Task<List<(string url, string title)>> ScanAreas(Page page)19 {20 var result = new List<(string url, string title)>();21 Console.WriteLine("Scanning areas:");22 var response = await page.GoToAsync(Program.BaseUrl + "/arcade");23 var dummy = await page.WaitForSelectorAsync("div.card a");24 var linkList = await page.QuerySelectorAllAsync("div.card a");25 foreach(var link in linkList)26 {27 var url = await (await link.GetPropertyAsync("href")).JsonValueAsync<string>();28 var title = await(await(await link.QuerySelectorAsync("h4")).GetPropertyAsync("innerText")).JsonValueAsync<string>();29 Console.WriteLine($"Found area: {title}");30 result.Add((url: url, title: title));31 }32 return result;33 }34 public static async Task<List<TaskInfo>> ScanTasks(Page page, IEnumerable<(string url, string title)> areas)35 {36 var result = new List<TaskInfo>();...
MatchTask.cs
Source:MatchTask.cs
...122 }123 public async Task<string> GetMatchListAsync(string leagueKey){124 var browser = await Puppeteer.LaunchAsync(new LaunchOptions125 {126 ExecutablePath = "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",127 Headless = false128 });129 var page = await browser.NewPageAsync();130 DeviceDescriptor IPhone = DeviceDescriptors.Get(DeviceDescriptorName.IPhone6);131 var dic = new Dictionary<string, string>();132 dic.Add("Referer", _settings.Bet365.Url.MainPage.ToString());133 dic.Add("Accept-Encoding", "gzip, deflate, br");134 dic.Add("Accept-Language", "zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6");135 dic.Add("Connection", "keep-alive");136 await page.EmulateAsync(IPhone);137 await page.SetRequestInterceptionAsync(true);138 await page.SetExtraHttpHeadersAsync(dic);139 page.Request += async (sender, e) =>140 {...
Program.cs
Source:Program.cs
...9using Newtonsoft.Json.Linq;10using Newtonsoft.Json.Serialization;11namespace PuppeteerSharp.DevicesFetcher12{13 class Program14 {15 const string DEVICES_URL = "https://raw.githubusercontent.com/ChromeDevTools/devtools-frontend/master/front_end/emulated_devices/module.json";16 static string deviceDescriptorsOutput = "../../../../PuppeteerSharp/Mobile/DeviceDescriptors.cs";17 static string deviceDescriptorNameOutput = "../../../../PuppeteerSharp/Mobile/DeviceDescriptorName.cs";18 static async Task Main(string[] args)19 {20 var url = DEVICES_URL;21 if (args.Length > 0)22 {23 url = args[0];24 }25 string chromeVersion = null;26 var fetcher = new BrowserFetcher();27 await fetcher.DownloadAsync(BrowserFetcher.DefaultRevision);...
Program
Using AI Code Generation
1using PuppeteerSharp.Mobile;2using System;3using System.Threading.Tasks;4{5 {6 static void Main(string[] args)7 {8 MainAsync().GetAwaiter().GetResult();9 }10 static async Task MainAsync()11 {12 var browser = await Puppeteer.LaunchAsync(new LaunchOptions13 {14 Args = new string[] { "--no-sandbox" }15 });16 var page = await browser.NewPageAsync();17 await page.EmulateAsync(new ViewPortOptions18 {19 });20 await page.ScreenshotAsync("screenshot.png");21 await browser.CloseAsync();22 }23 }24}
Program
Using AI Code Generation
1using PuppeteerSharp.Mobile;2{3 static void Main(string[] args)4 {5 var task = MainAsync(args);6 task.Wait();7 }8 static async Task MainAsync(string[] args)9 {10 var program = new Program();11 await program.Run();12 }13 public async Task Run()14 {15 var browserFetcher = new BrowserFetcher();16 var revisionInfo = await browserFetcher.DownloadAsync(BrowserFetcher.DefaultRevision);17 var browser = await Puppeteer.LaunchAsync(new LaunchOptions18 {19 });20 var page = await browser.NewPageAsync();21 await page.ScreenshotAsync("screenshot.png");22 await browser.CloseAsync();23 }24}25{26 {27 public static void Main(string[] args)28 {29 var task = MainAsync(args);30 task.Wait();31 }32 static async Task MainAsync(string[] args)33 {34 var program = new Program();35 await program.Run();36 }37 public async Task Run()38 {39 var browserFetcher = new BrowserFetcher();40 var revisionInfo = await browserFetcher.DownloadAsync(BrowserFetcher.DefaultRevision);41 var browser = await Puppeteer.LaunchAsync(new LaunchOptions42 {43 });44 var page = await browser.NewPageAsync();45 await page.ScreenshotAsync("screenshot.png");46 await browser.CloseAsync();47 }48 }49}50{51 {52 public static void Main(string[] args)53 {54 var task = MainAsync(args);55 task.Wait();56 }57 static async Task MainAsync(string[] args)58 {59 var program = new Program();60 await program.Run();61 }62 public async Task Run()63 {64 var browserFetcher = new BrowserFetcher();65 var revisionInfo = await browserFetcher.DownloadAsync(BrowserFetcher.DefaultRevision);
Program
Using AI Code Generation
1using PuppeteerSharp.Mobile;2using System;3using System.Threading.Tasks;4{5 {6 static void Main(string[] args)7 {8 MainAsync().GetAwaiter().GetResult();9 }10 static async Task MainAsync()11 {12 var options = new LaunchOptions { Headless = false, Args = new string[] { "--no-sandbox" } };13 var browser = await Puppeteer.LaunchAsync(options);14 var page = await browser.NewPageAsync();15 await page.ScreenshotAsync("google.png");16 await browser.CloseAsync();17 }18 }19}20at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options, ILoggerFactory factory)21at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options)22at PuppeteerSharp.Launcher.LaunchAsync()23at PuppeteerSharp.Launcher.LaunchAsync(LaunchOptions options)24at PuppeteerSharp.Mobile.Program.MainAsync() in /home/runner/work/PuppeteerSharp.Mobile/PuppeteerSharp.Mobile/Program.cs:line 21
Program
Using AI Code Generation
1using PuppeteerSharp.Mobile;2using System.Threading.Tasks;3{4 {5 static async Task Main(string[] args)6 {7 {8 Args = new string[] { "--no-sandbox" }9 };10 var browser = await Puppeteer.LaunchAsync(options);11 var page = await browser.NewPageAsync();12 await page.ScreenshotAsync("google.png");13 await browser.CloseAsync();14 }15 }16}
Program
Using AI Code Generation
1using PuppeteerSharp.Mobile;2using System;3using System.Threading.Tasks;4{5 {6 public static async Task Main(string[] args)7 {8 {9 Args = new string[] { "--start-maximized" }10 };11 using (var browser = await Puppeteer.LaunchAsync(options))12 {13 var page = await browser.NewPageAsync();14 await page.ScreenshotAsync("google.png");15 }16 }17 }18}19Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "2", "2.csproj", "{C8A6A8B7-0B60-4A1D-9F3D-9F3B3C7D0B6E}"20 GlobalSection(SolutionConfigurationPlatforms) = preSolution21 GlobalSection(ProjectConfigurationPlatforms) = postSolution22 {C8A6A8B7-0B60-4A1D
Program
Using AI Code Generation
1using PuppeteerSharp.Mobile;2using System;3using System.Threading.Tasks;4{5 {6 static async Task Main(string[] args)7 {8 var browser = await Puppeteer.LaunchAsync(new LaunchOptions9 {10 Args = new string[] { "--remote-debugging-port=9222" }11 });12 var page = await browser.NewPageAsync();13 }14 }15}
Program
Using AI Code Generation
1using PuppeteerSharp.Mobile;2{3 static void Main(string[] args)4 {5 var program = new Program();6 program.Run().Wait();7 }8 public async Task Run()9 {10 {11 };12 {13 "--user-agent=\"Mozilla/5.0 (Linux; Android 7.0; SM-G930F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36\""14 };15 using (var browser = await Puppeteer.LaunchAsync(options))16 using (var page = await browser.NewPageAsync())17 {18 await page.ScreenshotAsync("screenshot.png");19 }20 }21}22using PuppeteerSharp;23{24 static void Main(string[] args)25 {26 var program = new Program();27 program.Run().Wait();28 }29 public async Task Run()30 {31 {32 };33 {34 "--user-agent=\"Mozilla/5.0 (Linux; Android 7.0; SM-G930F Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36\""35 };36 using (var browser = await Puppeteer.LaunchAsync(options))37 using (var page = await browser.NewPageAsync())38 {39 await page.ScreenshotAsync("screenshot.png");40 }41 }42}43using PuppeteerSharp.Mobile;44{45 static void Main(string[] args)46 {47 var program = new Program();48 program.Run().Wait();49 }50 public async Task Run()51 {52 {53 };
Program
Using AI Code Generation
1using PuppeteerSharp.Mobile;2using System;3using System.Threading.Tasks;4{5 {6 static async Task Main(string[] args)7 {
Program
Using AI Code Generation
1using PuppeteerSharp.Mobile;2using System.Threading.Tasks;3{4 static async Task Main(string[] args)5 {6 var options = new LaunchOptions();7 options.Args = new string[] { "--user-agent=Mozilla/5.0 (Linux; Android 7.1.2; SM-G935F Build/N2G48H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36" };8 var browser = await Puppeteer.LaunchAsync(options);9 var page = await browser.NewPageAsync();10 await page.WaitForSelectorAsync(".string-major");11 var userAgent = await page.EvaluateExpressionAsync<string>("document.querySelector('.string-major').textContent");12 Console.WriteLine(userAgent);13 }14}15Mozilla/5.0 (Linux; Android 7.1.2; SM-G935F Build/N2G48H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!