EricR401S commited on
Commit
38031c7
1 Parent(s): 92c8b6a

first batch

Browse files
reddit_dataset_loader.py ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ # TODO: Address all TODOs and remove all explanatory comments
15
+
16
+ """This script's purpose is to re-define the datset loading functions to better suit this specific
17
+ reddit posts dataset."""
18
+
19
+
20
+ import csv
21
+ import json
22
+ import os
23
+
24
+ import datasets
25
+
26
+
27
+ # TODO: Add BibTeX citation
28
+ # Find for instance the citation on arxiv or on the dataset repo/website
29
+ _CITATION = """\
30
+ @InProceedings{huggingface:dataset,
31
+ title = {Pill Ideologies Subreddits Dataset},
32
+ author={Eric Rios},
33
+ year={2024}
34
+ source = {reddit.com}
35
+ }
36
+
37
+ """
38
+
39
+ # TODO: Add description of the dataset here
40
+ # You can copy an official description
41
+ _DESCRIPTION = """\
42
+ This new dataset is designed to aid research in the ongoing study of the pill ideologies subreddits,
43
+ which have risen in response to the clashes between traditional gender roles and the rise of fourth wave feminism.
44
+ """
45
+
46
+ # TODO: Add a link to an official homepage for the dataset here
47
+ _HOMEPAGE = "https://huggingface.co/datasets/steamcyclone/Pill_Ideologies-Post_Titles"
48
+
49
+ # TODO: Add the licence for the dataset here if you can find it
50
+ _LICENSE = "Creative Commons"
51
+
52
+ # TODO: Add link to the official dataset URLs here
53
+ # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
54
+ # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
55
+ _URLS = {
56
+ "first_domain": "https://huggingface.co/datasets/steamcyclone/Pill_Ideologies-Post_Titles/blob/main/reddit_posts_fm.csv",
57
+ "second_domain": "https://huggingface.co/datasets/steamcyclone/Pill_Ideologies-Post_Titles/blob/main/reddit_posts_fm.csv",
58
+ }
59
+
60
+
61
+ # TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
62
+ class SubRedditPosts(datasets.GeneratorBasedBuilder):
63
+ """This dataset contains data from the pill ideologies subreddits and the feminism subreddit.
64
+
65
+ It has the subreddit,post_id, title, text, url, score, author, and date.
66
+
67
+ It was fully scraped on February 3rd, 2024."""
68
+
69
+ VERSION = datasets.Version("1.1.0")
70
+
71
+ # This is an example of a dataset with multiple configurations.
72
+ # If you don't want/need to define several sub-sets in your dataset,
73
+ # just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
74
+
75
+ # If you need to make complex sub-parts in the datasets with configurable options
76
+ # You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig
77
+ # BUILDER_CONFIG_CLASS = MyBuilderConfig
78
+
79
+ # You will be able to load one or the other configurations in the following list with
80
+ # data = datasets.load_dataset('my_dataset', 'first_domain')
81
+ # data = datasets.load_dataset('my_dataset', 'second_domain')
82
+ BUILDER_CONFIGS = [
83
+ datasets.BuilderConfig(
84
+ name="first_domain",
85
+ version=VERSION,
86
+ description="This part of my dataset covers a first domain",
87
+ ),
88
+ datasets.BuilderConfig(
89
+ name="second_domain",
90
+ version=VERSION,
91
+ description="This part of my dataset covers a second domain",
92
+ ),
93
+ ]
94
+
95
+ DEFAULT_CONFIG_NAME = "first_domain" # It's not mandatory to have a default configuration. Just use one if it make sense.
96
+
97
+ def _info(self):
98
+ # TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
99
+ if (
100
+ self.config.name == "first_domain"
101
+ ): # This is the name of the configuration selected in BUILDER_CONFIGS above
102
+ features = datasets.Features(
103
+ {
104
+ "sentence": datasets.Value("string"),
105
+ "option1": datasets.Value("string"),
106
+ "answer": datasets.Value("string"),
107
+ # These are the features of your dataset like images, labels ...
108
+ }
109
+ )
110
+ else: # This is an example to show how to have different features for "first_domain" and "second_domain"
111
+ features = datasets.Features(
112
+ {
113
+ "sentence": datasets.Value("string"),
114
+ "option2": datasets.Value("string"),
115
+ "second_domain_answer": datasets.Value("string"),
116
+ # These are the features of your dataset like images, labels ...
117
+ }
118
+ )
119
+ return datasets.DatasetInfo(
120
+ # This is the description that will appear on the datasets page.
121
+ description=_DESCRIPTION,
122
+ # This defines the different columns of the dataset and their types
123
+ features=features, # Here we define them above because they are different between the two configurations
124
+ # If there's a common (input, target) tuple from the features, uncomment supervised_keys line below and
125
+ # specify them. They'll be used if as_supervised=True in builder.as_dataset.
126
+ # supervised_keys=("sentence", "label"),
127
+ # Homepage of the dataset for documentation
128
+ homepage=_HOMEPAGE,
129
+ # License for the dataset if available
130
+ license=_LICENSE,
131
+ # Citation for the dataset
132
+ citation=_CITATION,
133
+ )
134
+
135
+ def _split_generators(self, dl_manager):
136
+ # TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
137
+ # If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
138
+
139
+ # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
140
+ # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
141
+ # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
142
+ urls = _URLS[self.config.name]
143
+ data_dir = dl_manager.download_and_extract(urls)
144
+ return [
145
+ datasets.SplitGenerator(
146
+ name=datasets.Split.TRAIN,
147
+ # These kwargs will be passed to _generate_examples
148
+ gen_kwargs={
149
+ "filepath": os.path.join(data_dir, "train.jsonl"),
150
+ "split": "train",
151
+ },
152
+ ),
153
+ datasets.SplitGenerator(
154
+ name=datasets.Split.VALIDATION,
155
+ # These kwargs will be passed to _generate_examples
156
+ gen_kwargs={
157
+ "filepath": os.path.join(data_dir, "dev.jsonl"),
158
+ "split": "dev",
159
+ },
160
+ ),
161
+ datasets.SplitGenerator(
162
+ name=datasets.Split.TEST,
163
+ # These kwargs will be passed to _generate_examples
164
+ gen_kwargs={
165
+ "filepath": os.path.join(data_dir, "test.jsonl"),
166
+ "split": "test",
167
+ },
168
+ ),
169
+ ]
170
+
171
+ # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
172
+ def _generate_examples(self, filepath, split):
173
+ # TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
174
+ # The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
175
+ with open(filepath, encoding="utf-8") as f:
176
+ for key, row in enumerate(f):
177
+ data = json.loads(row)
178
+ if self.config.name == "first_domain":
179
+ # Yields examples as (key, example) tuples
180
+ yield key, {
181
+ "sentence": data["sentence"],
182
+ "option1": data["option1"],
183
+ "answer": "" if split == "test" else data["answer"],
184
+ }
185
+ else:
186
+ yield key, {
187
+ "sentence": data["sentence"],
188
+ "option2": data["option2"],
189
+ "second_domain_answer": (
190
+ "" if split == "test" else data["second_domain_answer"]
191
+ ),
192
+ }
reddit_scraping_nb.ipynb → reddit_scraping_nbX.ipynb RENAMED
@@ -1,558 +1,5 @@
1
  {
2
  "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 9,
6
- "metadata": {},
7
- "outputs": [
8
- {
9
- "name": "stdout",
10
- "output_type": "stream",
11
- "text": [
12
- "Getting posts with params: \n",
13
- "\n",
14
- "\n",
15
- "\n",
16
- "\n",
17
- "\n",
18
- "Got 26 posts\n",
19
- "173viwj: [META] The future of r/programming - None\n",
20
- "1adxu1i: If you use AI to teach you how to code, remember you still need to think for yourself - https://www.theregister.com/2024/01/27/ai_coding_automatic/\n",
21
- "1adz5jw: Resigned from Google back in Sept 2022 and ended up writing a book about the dysfunctional software development practices in today's world. Here's one of the free chapters: Agile as a Micromanagement Tool - https://muromuro.substack.com/p/agile-as-a-micromanagement-tool\n",
22
- "1adw198: How to make your programmers (look like they) work harder - https://badsoftwareadvice.substack.com/p/how-to-make-your-programmers-look\n",
23
- "1aed2j6: The relentless pursuit of cutting-edge JavaScript frameworks inadvertently contributed to a less accessible web - https://www.easylaptopfinder.com/blog/posts/cutting-edge-js-framework-accessibility\n",
24
- "1adfdq2: Nearly 25,000 tech workers were laid off in the first weeks of 2024. Why is that? - https://www.npr.org/2024/01/28/1227326215/nearly-25-000-tech-workers-laid-off-in-the-first-weeks-of-2024-whats-going-on\n",
25
- "1ae3v43: Inside .git - https://jvns.ca/blog/2024/01/26/inside-git/\n",
26
- "1ae3rvx: Process Spawning Performance in Rust - https://kobzol.github.io/rust/2024/01/28/process-spawning-performance-in-rust.html\n",
27
- "1ae3uzh: A look inside `memcmp` on Intel AVX2 hardware - https://xoranth.net/memcmp-avx2/\n",
28
- "1ae19s7: Reading QR codes without a computer - https://qr.blinry.org/\n",
29
- "1ae8ffw: SDK/Python library for Automatic 1111 - https://github.com/saketh12/Auto1111SDK\n",
30
- "1aeaj9w: Introduction to 7 Layers of OSI Model - https://theturkisheconomy.com/introduction-to-7-layers-of-osi-model/\n",
31
- "1ad3n3e: Developers experience burnout, but 70% of them code on weekends - https://shiftmag.dev/developer-lifestye-jetbrains-survey-2189/\n",
32
- "1ae74oe: A Tour of Lisps - https://www.fosskers.ca/en/blog/rounds-of-lisp\n",
33
- "1ae3ux5: A 16-Bit CPU in Excel - https://www.youtube.com/watch?v=5rg7xvTJ8SU\n",
34
- "1adw3xt: Can a simple functional sieve be fast? Optimizing Tromp's algorithm on HVM. - https://gist.github.com/VictorTaelin/a5571afaf5ee565689d2b9a981bd9df8\n",
35
- "1ae1ns4: The Unbearable Weight of Massive JavaScript - https://www.youtube.com/watch?v=f5felHJiACE\n",
36
- "1adxvk3: Komac, the Kotlin program for creating Winget packages, has now been rewritten in Rust - https://github.com/russellbanks/Komac/releases/tag/v2.0.0\n",
37
- "1ae3v2t: UEVR: An Exploration of Advanced Game Hacking Techniques - https://praydog.com/reverse-engineering/2023/07/03/uevr.html\n",
38
- "1ae3uvf: Reverse engineering CMOS, illustrated with a vintage Soviet counter chip - http://www.righto.com/2024/01/reverse-engineering-cmos.html\n",
39
- "1ae97pq: Colin Woodbury - A Tour of the Lisps - https://www.fosskers.ca/en/blog/rounds-of-lisp\n",
40
- "1ae3v1r: Aging Code - https://vadimkravcenko.com/shorts/aging-code/\n",
41
- "1ae3uum: Law for Computer Scientists and Other Folk - https://www.cohubicol.com/assets/uploads/law_for_computer_scientists.pdf\n",
42
- "1ae3stb: How We Built a Standalone Kubernetes Cost-Monitoring Agent - https://www.vantage.sh/blog/how-we-built-a-standalone-kubernetes-cost-monitoring-agent\n",
43
- "1ae3rtt: Two handy GDB breakpoint tricks - https://nullprogram.com/blog/2024/01/28/\n",
44
- "1adr51z: The art of good code review - https://philbooth.me/blog/the-art-of-good-code-review\n",
45
- "Got 26 posts\n",
46
- "Getting posts with params: &after=t3_1adr51z\n",
47
- "\n",
48
- "\n",
49
- "\n",
50
- "\n",
51
- "\n",
52
- "Got 25 posts\n",
53
- "1aeakdw: Initializing MongoDB with JSON Data - https://www.geoglify.com/blog/initial-seed-mongodb\n",
54
- "1aea9ff: Gato GraphQL v2 generates (and compresses) a WP post's featured image using OpenAI/Stable Diffusion + TinyPNG - https://gatographql.com/blog/generate-and-optimize-a-post-featured-image-using-ai-with-the-new-gatographql-v2/\n",
55
- "1ae0nov: GitHub - florylsk/ExecIT: Execute shellcode files with rundll32 - https://github.com/florylsk/ExecIT\n",
56
- "1ae9e00: Anatomy of a Signals Based Reactive Renderer - https://pota.quack.uy/articles/anatomy-of-a-signals-based-reactive-renderer\n",
57
- "1aee1m7: Spring Data JPA: Query Derivation Explained! - https://asyncq.com/spring-data-jpa-query-derivation-explained\n",
58
- "1ae3p4b: Svelte Native: The Svelte Mobile Development Experience - https://svelte-native.technology/\n",
59
- "1ae3p3s: What I talk about when I talk about query optimizer (part 1): IR design - https://xuanwo.io/2024/02-what-i-talk-about-when-i-talk-about-query-optimizer-part-1/\n",
60
- "1adkz5l: Thinking Forth: A Language and Philosophy for Solving Problems - https://www.forth.com/wp-content/uploads/2018/11/thinking-forth-color.pdf\n",
61
- "1ae8vib: How unique are your bundles? - https://shybovycha.github.io/2024/01/04/how-unique-are-your-bundles.html\n",
62
- "1aeg1pn: Leetcode time - https://www.twitch.tv/roccocodes\n",
63
- "1ae307p: Announcing TypeScript 5.4 Beta - https://devblogs.microsoft.com/typescript/announcing-typescript-5-4-beta/\n",
64
- "1ae2f47: Option Soup: the subtle pitfalls of combining compiler flags - https://hacks.mozilla.org/2024/01/option-soup-the-subtle-pitfalls-of-combining-compiler-flags/\n",
65
- "1adttql: Efficient CI/CD Pipeline Triggers: A Step-by-Step Guide for GitLab - https://double-trouble.dev/post/optimal-pipeline-setup/\n",
66
- "1ae79wq: Helios is a distribution of illumos powering the Oxide Rack - https://github.com/oxidecomputer/helios\n",
67
- "1ae76cy: Effortless Emacs Multiple Major Modes with Polymode - https://www.skybluetrades.net/blog/2021/06/2021-06-05-effortless-emacs-mmm-with-polymode/\n",
68
- "1ae76cb: I Just Wanted Emacs to Look Nice - Using 24-Bit Color in Terminals - https://chadaustin.me/2024/01/truecolor-terminal-emacs/\n",
69
- "1ae74fq: The Big Little Guide to Message Queues - https://sudhir.io/the-big-little-guide-to-message-queues\n",
70
- "1ad3j3u: Stack Overflow: 79% of Developers Considering A Career Move - https://www.blobstreaming.org/stack-overflow-79-of-developers-considering-a-career-move/\n",
71
- "1ae63d6: CSS Media Query for Scripting Support - https://blog.stephaniestimac.com/posts/2023/12/css-media-query-scripting\n",
72
- "1ae56fz: Add Auth0 Authentication to Auto-Interactive Blazor Apps - https://a0.to/reddit-authentication-blazor-web-apps\n",
73
- "1ae3v4x: Patching pydantic settings in pytest - https://rednafi.com/python/patch_pydantic_settings_in_pytest/\n",
74
- "1ae3v0l: Zig Roadmap 2024 - https://www.youtube.com/watch?v=5eL_LcxwwHg\n",
75
- "1ae3uyg: Long Term Refactors - https://max.engineer/long-term-refactors\n",
76
- "1ae3uw6: c_std: Implementation of C standard libraries in C - https://github.com/KaisenAmin/c_std\n",
77
- "1ae3utc: Two months in Servo: better inline layout, stable Rust, and more - https://servo.org/blog/2024/01/26/two-months-in-servo/\n",
78
- "Got 25 posts\n",
79
- "Getting posts with params: &after=t3_1ae3utc\n",
80
- "\n",
81
- "\n",
82
- "\n",
83
- "\n",
84
- "\n",
85
- "Got 25 posts\n",
86
- "1ae3ut5: An Introduction To BCn Texture Compression, Part 1: BC4 - https://acefanatic02.github.io/posts/intro_bcn_part1/\n",
87
- "1ae3tqh: The Ur Programming Language Family - http://impredicative.com/ur/\n",
88
- "1ae3tq2: Enhancing trust for SGX enclaves - https://blog.trailofbits.com/2024/01/26/enhancing-trust-for-sgx-enclaves/\n",
89
- "1ae3tpa: Introducing Solid Errors - https://fractaledmind.github.io/2024/01/28/introducing-solid-errors/\n",
90
- "1ae3tnq: Cascading boundary changes in Prolly Trees - https://interjectedfuture.com/lab-notes/lab-note-033-cascading-boundary-changes-in-prolly-trees/\n",
91
- "1ae3sw4: Stem: An interpreted concatenative language with a foreign language interface - https://ret2pop.nullring.xyz/blog/stem.html\n",
92
- "1ae3svh: Client-side pagination with range over functions - https://vladimir.varank.in/notes/2024/01/client-side-pagination-in-go-range-over-function-edition/\n",
93
- "1ae3suu: pg_analytics: Transforming Postgres into a Very Fast Analytical Database - ParadeDB - https://docs.paradedb.com/blog/introducing_analytics\n",
94
- "1ae3ssx: What's New in Go: slices.Concat - https://blog.carlana.net/post/2024/golang-slices-concat/\n",
95
- "1ae3rwv: Ruby's exceptional creatures - https://www.exceptionalcreatures.com/\n",
96
- "1ae3rwe: Python types have an expectations problem - https://medium.com/@sgorawski/python-types-have-an-expectations-problem-ea71a8645ce8\n",
97
- "1ae3rst: Teletext on a BBC Computer in 2024 - https://linuxjedi.co.uk/2024/01/25/teletext-on-a-bbc-computer-in-2024/\n",
98
- "1ae3frt: Using TypeScript code in the browser - https://unyt.land\n",
99
- "1adrtl8: Node.js Performance Monitoring | Your APM is Bluffing - https://www.groundcover.com/blog/nodejs-monitoring\n",
100
- "1ad6pst: Colored Functions Are Good, Actually - https://www.danmailloux.com/blog/colored-functions-are-good-actually\n",
101
- "1ae0d5e: Dolt - A Version Controlled Database - https://www.i-programmer.info/news/84-database/16934-dolt-a-version-controlled-database.html\n",
102
- "1adzter: A public forum to discuss the Open Source AI Definition - Voices of Open Source - https://blog.opensource.org/a-public-forum-to-discuss-the-open-source-ai-definition/\n",
103
- "1adzlx5: Midjourney API - https://www.justimagineapi.org/\n",
104
- "1adxm2o: Apple introduces new options worldwide for streaming game services and apps that provide access to mini apps and games - https://developer.apple.com/news/?id=f1v8pyay\n",
105
- "1ae21h9: How to scrape a website using Node.js and Puppeteer - https://plainenglish.io/community/how-to-scrape-a-website-using-node-js-and-puppeteer-05d48f\n",
106
- "1adwck1: Unleashing Native Imaging Power in GraalVM • Alina Yurenko & Bert Jan Schrijver - https://open.spotify.com/episode/7Cxbd78L76flAGH7GnFCgP?si=0bab71e024da4b36\n",
107
- "1adciay: I created my first useful program - https://github.com/Liftpiloot/wallpaper-ai-gui\n",
108
- "1adpwqj: This is not interview advice: a priority-expiry LRU cache without heaps or trees - https://death.andgravity.com/lru-cache\n",
109
- "1advlup: Adaptive Rate Limiting for API Requests - https://blog.openziti.io/fun-with-adaptive-rate-limiting\n",
110
- "1acztlc: Security and Privacy Failures in Popular 2FA Apps -- \"We identified all general purpose Android TOTP apps in the Google Play Store with at least 100k installs that implemented a backup mechanism (n = 22).\" - https://www.usenix.org/conference/usenixsecurity23/presentation/gilsenan\n",
111
- "Got 25 posts\n",
112
- "Getting posts with params: &after=t3_1acztlc\n",
113
- "\n",
114
- "\n",
115
- "\n",
116
- "\n",
117
- "\n",
118
- "Got 25 posts\n",
119
- "1adu4hr: Defensive and Robust Design in AI Automation - Transferring Defensive Programming principles to AI automation - https://medium.com/@kenny_v/defensive-and-robust-design-in-ai-automation-8e951c8e7fd7\n",
120
- "1ae15fj: 2048 Game in Python and Pygame. Source code is in the description. - https://youtu.be/vBDuQRucpIo\n",
121
- "1ad439r: Modern image formats: JXL and AVIF - https://alexandrehtrb.github.io/posts/2024/01/modern-image-formats-jxl-and-avif/\n",
122
- "1adskoa: Deep Reinforcement Learning Tutorial - https://github.com/EzgiKorkmaz/generalization-reinforcement-learning\n",
123
- "1ae1bi6: MySQL Views: How and why with examples - https://www.dolthub.com/blog/2024-01-26-writing-mysql-views/\n",
124
- "1ae1852: How to Interview programmers - Gladiator style - http://markgreville.ie/2024/01/29/gladiator-style-interviewing/\n",
125
- "1adrqbo: Jasper Report Designer: The Important Report Elements - https://www.oditeksolutions.com/jasper-ireport-designer/\n",
126
- "1adrctg: Notes on Postgres user management - https://telablog.com/notes-on-postgres-user-management\n",
127
- "1ae1qgh: Courses for learn programming - http://scrimba.com\n",
128
- "1adr83a: Elevate, Migrate, Innovate: A Well-Aligned Plan for Data Warehouse Migration + Challenges + How Do We De-Risk It - https://www.azilen.com/blog/data-warehouse-migration-services/\n",
129
- "1adhm8i: The Big List of Design Patterns! - https://www.devleader.ca/2023/12/31/the-big-list-of-design-patterns-everything-you-need-to-know/\n",
130
- "1ae0tdu: How to Build High-Performance Engineering Teams - https://luminousmen.com/post/how-to-build-highperformance-engineering-teams\n",
131
- "1ad6eoq: Simple tricks to level up your technical design docs - https://careercutler.substack.com/p/simple-tricks-to-level-up-your-technical\n",
132
- "1adpxrj: Advent of Mojo: Part 2 - https://medium.com/@p88h/advent-of-mojo-part-2-30b973b0d1ef\n",
133
- "1adpwtm: Composition over Inheritance - https://www.youtube.com/watch?v=HNzP1aLAffM\n",
134
- "1adzcdx: The One Billion Row Challenge Shows That Java Can Process a One Billion Rows File in Two Seconds - https://www.infoq.com/news/2024/01/1brc-fast-java-processing/\n",
135
- "1adsxq9: Coding Challenge - Australian Open Player Ranking - https://curiousdrive.com/codingchallenge/australian-open-player-ranking\n",
136
- "1ae4o8y: Post-cloud-native developers don’t understand basic things anymore - https://matt.sh/htmx-is-a-erlang\n",
137
- "1adsbju: How RevenueCat Manages Caching for Handling over 1.2 Billion Daily API Requests - https://www.infoq.com/news/2024/01/revenuecat-cache-management/\n",
138
- "1adat0v: Improving upon my OpenTelemetry Tracing demo - https://blog.frankel.ch/improve-otel-demo/\n",
139
- "1advlac: Terraform Communities you should know about - https://medium.com/p/55135c119120\n",
140
- "1adpk4r: Best Web Worker Tutorial - https://illacloud.com/blog/web-worker-tutorial\n",
141
- "1adwkxy: Top 8 Data Science Programming Languages for a Robust Career - https://albertchristopherr.medium.com/top-8-data-science-programming-languages-for-a-robust-career-58c99b5abe22\n",
142
- "1adf4j2: Wrote a CLI to perform various actions on CIDR ranges - https://github.com/bschaatsbergen/cidr\n",
143
- "1adepby: A One-Click Developer Experience - https://medium.com/@brendanrobert/postman-suites-a-1-click-developer-testing-experience-d3335f0a0bca\n",
144
- "Got 25 posts\n",
145
- "Getting posts with params: &after=t3_1adepby\n",
146
- "\n",
147
- "\n",
148
- "\n",
149
- "\n",
150
- "\n",
151
- "Got 25 posts\n",
152
- "1adpb0h: Understanding Domain-Driven Design (Part 3) - https://compiler.blog/understanding-domain-driven-design-part-3\n",
153
- "1ae0y4o: How to Stay Sane While Working From Home - https://open.substack.com/pub/roughlywritten/p/how-to-stay-sane-while-working-from?r=9au7z&utm_campaign=post&utm_medium=web&showWelcome=true\n",
154
- "1ado5eo: Jasper Reports Studio: Meet the New Eclipse-Based Report Designer - https://www.oditeksolutions.com/jasper-reports-studio/\n",
155
- "1adruar: Most people don't think simple enough - https://youtu.be/1CSeY10zbqo?si=2KdG7BWcQ-Jdq4Yq\n",
156
- "1ac7cb2: New GitHub Copilot Research Finds 'Downward Pressure on Code Quality' -- Visual Studio Magazine - https://visualstudiomagazine.com/articles/2024/01/25/copilot-research.aspx\n",
157
- "1adczdh: Introducing JavaScript Support in MySQL - https://blogs.oracle.com/mysql/post/introducing-javascript-support-in-mysql\n",
158
- "1ad0ie7: Using LLama.cpp with Elixir and Rustler - https://fly.io/phoenix-files/using-llama-cpp-with-elixir-and-rustler/\n",
159
- "1acxodr: A Practical Guide to GNU sed With Examples - https://thevaluable.dev/sed-cli-practical-guide-examples/\n",
160
- "1adgq1c: Some Junior Developer Productivity Tips - https://codeyurt.com/blog/productivity-tips-for-junior-developers\n",
161
- "1ad1gdz: How 0.1% Companies Do Hyperscaling - https://newsletter.systemdesign.one/p/cell-based-architecture\n",
162
- "1adb3dw: Webhook Testing Without the Headache - https://programmingpercy.medium.com/webhook-testing-without-the-headache-a-developers-sanity-saving-tutorial-d6aea887f582?source=friends_link&sk=74143b9827155a919772d0cea68b8b96\n",
163
- "1aczy54: Essentials of TypeScript Classes - https://refine.dev/blog/typescript-classes/\n",
164
- "1adwpxt: Primeagen announces preview of 🤣-lang (lmao-lang) - https://youtu.be/UzGUjCjGyp8\n",
165
- "1achjol: Python errors as values: Comparing useful patterns from Go and Rust - https://www.inngest.com/blog/python-errors-as-values\n",
166
- "1acprkj: Open source rewrite of Civilization 1 Source Code - OpenCiv1 Project - https://forums.civfanatics.com/threads/open-source-rewrite-of-civilization-1-source-code-openciv1-project.682623/\n",
167
- "1ad88la: Machine learning for Java developers: Algorithms for machine learning - https://www.infoworld.com/article/3224505/machine-learning-for-java-developers.html\n",
168
- "1acyehn: Finding all used Classes, Methods and Functions of a Python Module - https://mostlynerdless.de/blog/2023/12/01/finding-all-used-classes-methods-and-functions-of-a-python-module/\n",
169
- "1ad7ye4: Engineering With Java: Digest #7 - https://javabulletin.substack.com/p/engineering-with-java-digest-7\n",
170
- "1ackd87: Vectorizing Unicode conversions on real RISC-V hardware - https://camel-cdr.github.io/rvv-bench-results/articles/vector-utf.html\n",
171
- "1aceb7u: I looked through attacks in my access logs. Here's what I found - https://nishtahir.com/i-looked-through-attacks-in-my-access-logs-heres-what-i-found/\n",
172
- "1adovd9: Top 1000 Programming GPTs - Ranked by Conversations sourced from OpenAI - https://www.gptsapp.io/trending-gpts/programming-gpts\n",
173
- "1adgnr1: Build Web Apps with VB.NET and XAML - https://youtu.be/ZyctFzWKda8\n",
174
- "1acykjj: Setup scripts for API monitoring - https://www.checklyhq.com/guides/setup-scripts/\n",
175
- "1acbzyi: I abandoned OpenLiteSpeed and went back to good ol’ Nginx - https://arstechnica.com/gadgets/2024/01/i-abandoned-openlitespeed-and-went-back-to-good-ol-nginx/\n",
176
- "1ad0z2w: How to Build a Simple Sentiment Analyzer Using Hugging Face Transformer - https://www.freecodecamp.org/news/how-to-build-a-simple-sentiment-analyzer-using-hugging-face-transformer/\n",
177
- "Got 25 posts\n"
178
- ]
179
- }
180
- ],
181
- "source": [
182
- "\"\"\"This script is used to get many posts from the desired subreddit(s)\"\"\"\n",
183
- "\n",
184
- "import requests\n",
185
- "import time\n",
186
- "import random\n",
187
- "\n",
188
- "subreddit = \"programming\"\n",
189
- "# url = f'https://www.reddit.com/r/{subreddit}/.json?t=all&limit=100'\n",
190
- "url_template = \"https://www.reddit.com/r/{}/.json?t=all{}\"\n",
191
- "\n",
192
- "# headers = {\n",
193
- "# 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'\n",
194
- "# }\n",
195
- "\n",
196
- "headers = {\"User-Agent\": \"Testing Bot Gundam Wing\"}\n",
197
- "\n",
198
- "# response = requests.get(url, headers=headers)\n",
199
- "\n",
200
- "params = \"\"\n",
201
- "\n",
202
- "counter = 5\n",
203
- "post_list = []\n",
204
- "while counter > 0:\n",
205
- " print(f\"Getting posts with params: {params}\")\n",
206
- " print(\"\\n\\n\\n\\n\")\n",
207
- " url = url_template.format(subreddit, params)\n",
208
- " response = requests.get(url, headers=headers)\n",
209
- "\n",
210
- " if response.ok:\n",
211
- " data = response.json()\n",
212
- " # save data to file\n",
213
- " # with open(f\"reddit_{subreddit}_{counter}.json\", \"w\") as f:\n",
214
- " # f.write(response.text)\n",
215
- " posts = data[\"data\"][\"children\"]\n",
216
- " print(f\"Got {len(posts)} posts\")\n",
217
- " for post in posts:\n",
218
- " # print(post[\"data\"][\"title\"])\n",
219
- " pdata = post[\"data\"]\n",
220
- " post_id = pdata[\"id\"]\n",
221
- " title = pdata[\"title\"]\n",
222
- " # url = pdata[\"url\"]\n",
223
- " text = pdata.get(\"selftext\")\n",
224
- " score = pdata[\"score\"]\n",
225
- " author = pdata[\"author\"]\n",
226
- " date = pdata[\"created_utc\"]\n",
227
- " url = pdata.get(\"url_overridden_by_dest\")\n",
228
- " print(f\"{post_id}: {title} - {url}\")\n",
229
- " # print(\"Keys are \", pdata.keys())\n",
230
- " # post_list.append(\n",
231
- " # {\n",
232
- " # \"id\": post_id,\n",
233
- " # \"title\": title,\n",
234
- " # \"text\": text,\n",
235
- " # \"url\": url,\n",
236
- " # \"score\": score,\n",
237
- " # \"author\": author,\n",
238
- " # \"date\": date,\n",
239
- " # \"pdata\": pdata,\n",
240
- " # }\n",
241
- " # )\n",
242
- " post_list.append([post_id, title, text, url, score, author, date, pdata])\n",
243
- " print(f\"Got {len(posts)} posts\")\n",
244
- " # params = f\"?after={data['data']['after']}\"\n",
245
- " params = \"&after=\" + data[\"data\"][\"after\"]\n",
246
- " counter -= 1\n",
247
- " time.sleep(random.randint(1, 45))\n",
248
- " else:\n",
249
- " print(f\"Error: {response.status_code}\")\n"
250
- ]
251
- },
252
- {
253
- "cell_type": "code",
254
- "execution_count": 10,
255
- "metadata": {},
256
- "outputs": [
257
- {
258
- "name": "stdout",
259
- "output_type": "stream",
260
- "text": [
261
- "{'id': '173viwj', 'title': '[META] The future of r/programming', 'text': '# Hello fellow programs!\\n\\n**tl;dr what should r/programming\\'s rules be?** And also a call for additional mods. We\\'ll leave this stickied for a few days to gather feedback.\\n\\nHere are the broad categories of content that we see, along with whether they are **currently** allowed. ✅ means that it\\'s currently allowed, 🚫 means that it\\'s not currently allowed, ⚠️ means that we leave it up if it is already popular but if we catch it young in its life we do try to remove it early.\\n\\n* ✅ Actual programming content. They probably have actual code in them. Language or library writeups, papers, technology descriptions. How an allocator works. How my new fancy allocator I just wrote works. How our startup built our Frobnicator, rocket ship emoji. For many years this was the only category of allowed content.\\n* ✅ Programming news. ChatGPT can write code. A big new CVE just dropped. Curl 8.01 released now with Coffee over IP support.\\n* ✅ Programmer career content. How to become a Staff engineer in 30 days. Habits of the best engineering managers. How to deal with your annoying coworkers, *Jeff*.\\n* ✅ Articles/news interesting *to* programmers but not about programming. Work from home is bullshit. Return to office is bullshit. There\\'s a Steam sale on programming games. Terry Davis has died. How to SCRUMM. App Store commissions are going up. How to hire a more diverse development team. Interviewing programmers is broken.\\n* ⚠️ General technology news. Google buys its last competitor. A self driving car hit a pedestrian. Twitter is collapsing. Oculus accidentally showed your grandmother a penis. Github sued when Copilot produces the complete works of Harry Potter in a code comment. Meta cancels work from home. Gnome dropped a feature I like. How to run Stable Diffusion to generate pictures of, uh, cats, yeah it\\'s definitely just for cats. A bitcoin VR metaversed my AI and now my app store is mobile social local.\\n* 🚫 Politics. The Pirate Party is winning in Sweden. Please vote for net neutrality. Big Tech is being sued in Europe for *gestures broadly*.\\n* 🚫 Gossip. Richard Stallman switches to Windows. Elon Musk farted. Linus Torvalds was a poopy-head on a mailing list. Grace Hopper Conference is now 60% male. The People\\'s Rust Foundation is arguing with the Rust Foundation For The People. Terraform has been forked into Terra and Form. Stack Overflow sucks now. Stack Overflow is good actually.\\n* ✅ Demos with code. I wrote a game, here it is on GitHub\\n* 🚫 Demos without code. I wrote a game, come buy it! Please give me feedback on my startup (totally not an ad nosirree). I stayed up all night writing a commercial text editor, here\\'s the pricing page. I made a DALL-E image generator. I made the fifteenth animation of A* this week, here\\'s a GIF.\\n* 🚫 AskReddit type forum questions. What\\'s your favourite programming language? Tabs or spaces? Does anyone else hate it when.\\n* 🚫 Support questions. How do I write a web crawler? How do I get into programming? Where\\'s my missing semicolon? Please do this obvious homework problem for me. Personally I feel very strongly about not allowing these because they\\'d quickly drown out all of the actual content I come to see, and there are already much more effective places to get them answered anyway. In real life the quality of the ones that we see is also universally very low.\\n* 🚫 Surveys and 🚫 Job postings and anything else that is looking to extract value from a place a lot of programmers hang out without contributing anything itself.\\n* 🚫 Meta posts. DAE think r/programming sucks? Why did you remove my post? Why did you ban this user that is totes not me I swear I\\'m just asking questions. Except this meta post. This one is okay because I\\'m a tyrant that the rules don\\'t apply to (I assume you are saying about me to yourself right now).\\n* 🚫 Images, memes, anything low-effort or low-content. Thankfully we very rarely see any of this so there\\'s not much to remove but like support questions once you have a few of these they tend to totally take over because it\\'s easier to make a meme than to write a paper and also easier to vote on a meme than to read a paper.\\n* ⚠️ Posts that we\\'d normally allow but that are obviously, unquestioningly super low quality like blogspam copy-pasted onto a site with a bazillion ads. It has to be pretty bad before we remove it and even then sometimes these are the first post to get traction about a news event so we leave them up if they\\'re the best discussion going on about the news event. There\\'s a lot of grey area here with CVE announcements in particular: there are a lot of spammy security \"blogs\" that syndicate stories like this.\\n* ⚠️ Posts that are duplicates of other posts or the same news event. We leave up either the first one or the healthiest discussion.\\n* ⚠️ Posts where the title editorialises too heavily or especially is a lie or conspiracy theory.\\n* Comments are only very loosely moderated and it\\'s mostly 🚫 Bots of any kind (Beep boop you misspelled misspelled!) and 🚫 Incivility (You idiot, everybody knows that my favourite toy is better than your favourite toy.) However the number of obvious GPT comment bots is rising and will quickly become untenable for the number of active moderators we have.\\n\\nThere are some topics such as Code of Conduct arguments within projects that I don\\'t know where to place where we\\'ve been doing a civility check on the comments thread and using that to make the decision. Similarly some straddle the line (a link to a StackOverflow post asking for help and the reddit OP is the StackOverflow OP, but there\\'s a lot of technical content and the reddit discussion is healthy). And even most 🚫s above are left up if there\\'s a healthy discussion going already by the time we see it.\\n\\n# So what now?\\n\\nWe need to decide **what r/programming should be about** and we need to write those rules down so that mods can consistently apply them. The rules as written are pretty vague and the way we\\'re moderating in practise is only loosely connected to them. We\\'re looking for feedback on what kind of place r/programming should be so tell us below.\\n\\n**We need additional mods**. If you\\'re interested in helping moderate **please post below, saying why you\\'d be a good mod and what you\\'d would change about the space if you were**. You don\\'t need to be a moderator elsewhere but please do mention it if you are and what we could learn on r/programming that you already know. Currently I think I\\'m the only one going down the new page every morning and removing the rule-breaking posts. (Today these are mostly \"how do I program computer\" or \"can somebody help me fix my printer\", and obvious spam.) This results in a lot of threads complaining about the moderation quality and, well, it\\'s not wrong. I\\'m not rigorously watching the mod queue and I\\'m not trawling comments threads looking for bad actors unless I\\'m in that thread anyway and I don\\'t use reddit every single day. So if we want it to be better we\\'ll need more human power.\\n\\n# FAQ: Why do we need moderation at all? Can\\'t the votes just do it?\\n\\nWe know there is demand for unmoderated spaces in the world, but r/programming isn\\'t that space. This is our theory on why keeping the subreddit on topic is important:\\n\\n* Forums have the interesting property that **whatever is on the front page today is what will be on the front page tomorrow**. When a user comes to the site and sees a set of content, they believe that that\\'s what this website is about. If they like it they\\'ll stay and contribute that kind of content and if they don\\'t like it they won\\'t stay, leaving only the people that liked the content they saw yesterday. So the seed content is important and keeping things on topic is important. If you like r/programming then you need moderation to keep it the way that you like it (or make it be the place you wish it were) because otherwise entropic drift will make it be a different place. And once you have moderation it\\'s going to have a subjective component, that\\'s just the nature of it.\\n* Because of the way reddit works, on a light news day r/programming doesn\\'t get enough daily content for articles to meaningfully compete with each other. Towards the end of the day if I post something to r/programming it will immediately go to the front page of all r/programming subscribers. So while it\\'s true that sub-par and rule-breaking posts already do most of their damage before the mods even see them, the whole theory of posts competing via votes alone doesn\\'t really work in a lower-volume subreddit.\\n* Because of the mechanics of moderation it\\'s not really possible to allow the subreddit to be say 5% support questions. Even if we wanted to allow it to be a small amount of the conten, the individuals whose content was removed would experience and perceive this as a punitive action against them. That means that any category we allow could theoretically completely take over r/programming (like the career posts from last week) so we should only allow types of content that we\\'d be okay with taking it over.\\n\\nPersonally my dream is for r/programming to be the place with the highest quality programming content, where I can go to read something interesting and learn something new every day. That dream is at odds with allowing every piece of blogspam and \"10 ways to convince your boss to give you a raise, #2 will get you fired!\"', 'url': None, 'score': 841, 'author': 'ketralnis', 'date': 1696867416.0, 'pdata': {'approved_at_utc': None, 'subreddit': 'programming', 'selftext': '# Hello fellow programs!\\n\\n**tl;dr what should r/programming\\'s rules be?** And also a call for additional mods. We\\'ll leave this stickied for a few days to gather feedback.\\n\\nHere are the broad categories of content that we see, along with whether they are **currently** allowed. ✅ means that it\\'s currently allowed, 🚫 means that it\\'s not currently allowed, ⚠️ means that we leave it up if it is already popular but if we catch it young in its life we do try to remove it early.\\n\\n* ✅ Actual programming content. They probably have actual code in them. Language or library writeups, papers, technology descriptions. How an allocator works. How my new fancy allocator I just wrote works. How our startup built our Frobnicator, rocket ship emoji. For many years this was the only category of allowed content.\\n* ✅ Programming news. ChatGPT can write code. A big new CVE just dropped. Curl 8.01 released now with Coffee over IP support.\\n* ✅ Programmer career content. How to become a Staff engineer in 30 days. Habits of the best engineering managers. How to deal with your annoying coworkers, *Jeff*.\\n* ✅ Articles/news interesting *to* programmers but not about programming. Work from home is bullshit. Return to office is bullshit. There\\'s a Steam sale on programming games. Terry Davis has died. How to SCRUMM. App Store commissions are going up. How to hire a more diverse development team. Interviewing programmers is broken.\\n* ⚠️ General technology news. Google buys its last competitor. A self driving car hit a pedestrian. Twitter is collapsing. Oculus accidentally showed your grandmother a penis. Github sued when Copilot produces the complete works of Harry Potter in a code comment. Meta cancels work from home. Gnome dropped a feature I like. How to run Stable Diffusion to generate pictures of, uh, cats, yeah it\\'s definitely just for cats. A bitcoin VR metaversed my AI and now my app store is mobile social local.\\n* 🚫 Politics. The Pirate Party is winning in Sweden. Please vote for net neutrality. Big Tech is being sued in Europe for *gestures broadly*.\\n* 🚫 Gossip. Richard Stallman switches to Windows. Elon Musk farted. Linus Torvalds was a poopy-head on a mailing list. Grace Hopper Conference is now 60% male. The People\\'s Rust Foundation is arguing with the Rust Foundation For The People. Terraform has been forked into Terra and Form. Stack Overflow sucks now. Stack Overflow is good actually.\\n* ✅ Demos with code. I wrote a game, here it is on GitHub\\n* 🚫 Demos without code. I wrote a game, come buy it! Please give me feedback on my startup (totally not an ad nosirree). I stayed up all night writing a commercial text editor, here\\'s the pricing page. I made a DALL-E image generator. I made the fifteenth animation of A* this week, here\\'s a GIF.\\n* 🚫 AskReddit type forum questions. What\\'s your favourite programming language? Tabs or spaces? Does anyone else hate it when.\\n* 🚫 Support questions. How do I write a web crawler? How do I get into programming? Where\\'s my missing semicolon? Please do this obvious homework problem for me. Personally I feel very strongly about not allowing these because they\\'d quickly drown out all of the actual content I come to see, and there are already much more effective places to get them answered anyway. In real life the quality of the ones that we see is also universally very low.\\n* 🚫 Surveys and 🚫 Job postings and anything else that is looking to extract value from a place a lot of programmers hang out without contributing anything itself.\\n* 🚫 Meta posts. DAE think r/programming sucks? Why did you remove my post? Why did you ban this user that is totes not me I swear I\\'m just asking questions. Except this meta post. This one is okay because I\\'m a tyrant that the rules don\\'t apply to (I assume you are saying about me to yourself right now).\\n* 🚫 Images, memes, anything low-effort or low-content. Thankfully we very rarely see any of this so there\\'s not much to remove but like support questions once you have a few of these they tend to totally take over because it\\'s easier to make a meme than to write a paper and also easier to vote on a meme than to read a paper.\\n* ⚠️ Posts that we\\'d normally allow but that are obviously, unquestioningly super low quality like blogspam copy-pasted onto a site with a bazillion ads. It has to be pretty bad before we remove it and even then sometimes these are the first post to get traction about a news event so we leave them up if they\\'re the best discussion going on about the news event. There\\'s a lot of grey area here with CVE announcements in particular: there are a lot of spammy security \"blogs\" that syndicate stories like this.\\n* ⚠️ Posts that are duplicates of other posts or the same news event. We leave up either the first one or the healthiest discussion.\\n* ⚠️ Posts where the title editorialises too heavily or especially is a lie or conspiracy theory.\\n* Comments are only very loosely moderated and it\\'s mostly 🚫 Bots of any kind (Beep boop you misspelled misspelled!) and 🚫 Incivility (You idiot, everybody knows that my favourite toy is better than your favourite toy.) However the number of obvious GPT comment bots is rising and will quickly become untenable for the number of active moderators we have.\\n\\nThere are some topics such as Code of Conduct arguments within projects that I don\\'t know where to place where we\\'ve been doing a civility check on the comments thread and using that to make the decision. Similarly some straddle the line (a link to a StackOverflow post asking for help and the reddit OP is the StackOverflow OP, but there\\'s a lot of technical content and the reddit discussion is healthy). And even most 🚫s above are left up if there\\'s a healthy discussion going already by the time we see it.\\n\\n# So what now?\\n\\nWe need to decide **what r/programming should be about** and we need to write those rules down so that mods can consistently apply them. The rules as written are pretty vague and the way we\\'re moderating in practise is only loosely connected to them. We\\'re looking for feedback on what kind of place r/programming should be so tell us below.\\n\\n**We need additional mods**. If you\\'re interested in helping moderate **please post below, saying why you\\'d be a good mod and what you\\'d would change about the space if you were**. You don\\'t need to be a moderator elsewhere but please do mention it if you are and what we could learn on r/programming that you already know. Currently I think I\\'m the only one going down the new page every morning and removing the rule-breaking posts. (Today these are mostly \"how do I program computer\" or \"can somebody help me fix my printer\", and obvious spam.) This results in a lot of threads complaining about the moderation quality and, well, it\\'s not wrong. I\\'m not rigorously watching the mod queue and I\\'m not trawling comments threads looking for bad actors unless I\\'m in that thread anyway and I don\\'t use reddit every single day. So if we want it to be better we\\'ll need more human power.\\n\\n# FAQ: Why do we need moderation at all? Can\\'t the votes just do it?\\n\\nWe know there is demand for unmoderated spaces in the world, but r/programming isn\\'t that space. This is our theory on why keeping the subreddit on topic is important:\\n\\n* Forums have the interesting property that **whatever is on the front page today is what will be on the front page tomorrow**. When a user comes to the site and sees a set of content, they believe that that\\'s what this website is about. If they like it they\\'ll stay and contribute that kind of content and if they don\\'t like it they won\\'t stay, leaving only the people that liked the content they saw yesterday. So the seed content is important and keeping things on topic is important. If you like r/programming then you need moderation to keep it the way that you like it (or make it be the place you wish it were) because otherwise entropic drift will make it be a different place. And once you have moderation it\\'s going to have a subjective component, that\\'s just the nature of it.\\n* Because of the way reddit works, on a light news day r/programming doesn\\'t get enough daily content for articles to meaningfully compete with each other. Towards the end of the day if I post something to r/programming it will immediately go to the front page of all r/programming subscribers. So while it\\'s true that sub-par and rule-breaking posts already do most of their damage before the mods even see them, the whole theory of posts competing via votes alone doesn\\'t really work in a lower-volume subreddit.\\n* Because of the mechanics of moderation it\\'s not really possible to allow the subreddit to be say 5% support questions. Even if we wanted to allow it to be a small amount of the conten, the individuals whose content was removed would experience and perceive this as a punitive action against them. That means that any category we allow could theoretically completely take over r/programming (like the career posts from last week) so we should only allow types of content that we\\'d be okay with taking it over.\\n\\nPersonally my dream is for r/programming to be the place with the highest quality programming content, where I can go to read something interesting and learn something new every day. That dream is at odds with allowing every piece of blogspam and \"10 ways to convince your boss to give you a raise, #2 will get you fired!\"', 'author_fullname': 't2_nn0q', 'saved': False, 'mod_reason_title': None, 'gilded': 0, 'clicked': False, 'title': '[META] The future of r/programming', 'link_flair_richtext': [], 'subreddit_name_prefixed': 'r/programming', 'hidden': False, 'pwls': 6, 'link_flair_css_class': None, 'downs': 0, 'top_awarded_type': None, 'hide_score': False, 'name': 't3_173viwj', 'quarantine': False, 'link_flair_text_color': 'dark', 'upvote_ratio': 0.94, 'author_flair_background_color': None, 'subreddit_type': 'public', 'ups': 841, 'total_awards_received': 0, 'media_embed': {}, 'author_flair_template_id': None, 'is_original_content': False, 'user_reports': [], 'secure_media': None, 'is_reddit_media_domain': False, 'is_meta': False, 'category': None, 'secure_media_embed': {}, 'link_flair_text': None, 'can_mod_post': False, 'score': 841, 'approved_by': None, 'is_created_from_ads_ui': False, 'author_premium': False, 'thumbnail': '', 'edited': 1696868654.0, 'author_flair_css_class': None, 'author_flair_richtext': [], 'gildings': {}, 'content_categories': None, 'is_self': True, 'mod_note': None, 'created': 1696867416.0, 'link_flair_type': 'text', 'wls': 6, 'removed_by_category': None, 'banned_by': None, 'author_flair_type': 'text', 'domain': 'self.programming', 'allow_live_comments': True, 'selftext_html': '<!-- SC_OFF --><div class=\"md\"><h1>Hello fellow programs!</h1>\\n\\n<p><strong>tl;dr what should <a href=\"/r/programming\">r/programming</a>'s rules be?</strong> And also a call for additional mods. We'll leave this stickied for a few days to gather feedback.</p>\\n\\n<p>Here are the broad categories of content that we see, along with whether they are <strong>currently</strong> allowed. ✅ means that it's currently allowed, 🚫 means that it's not currently allowed, ⚠️ means that we leave it up if it is already popular but if we catch it young in its life we do try to remove it early.</p>\\n\\n<ul>\\n<li>✅ Actual programming content. They probably have actual code in them. Language or library writeups, papers, technology descriptions. How an allocator works. How my new fancy allocator I just wrote works. How our startup built our Frobnicator, rocket ship emoji. For many years this was the only category of allowed content.</li>\\n<li>✅ Programming news. ChatGPT can write code. A big new CVE just dropped. Curl 8.01 released now with Coffee over IP support.</li>\\n<li>✅ Programmer career content. How to become a Staff engineer in 30 days. Habits of the best engineering managers. How to deal with your annoying coworkers, <em>Jeff</em>.</li>\\n<li>✅ Articles/news interesting <em>to</em> programmers but not about programming. Work from home is bullshit. Return to office is bullshit. There's a Steam sale on programming games. Terry Davis has died. How to SCRUMM. App Store commissions are going up. How to hire a more diverse development team. Interviewing programmers is broken.</li>\\n<li>⚠️ General technology news. Google buys its last competitor. A self driving car hit a pedestrian. Twitter is collapsing. Oculus accidentally showed your grandmother a penis. Github sued when Copilot produces the complete works of Harry Potter in a code comment. Meta cancels work from home. Gnome dropped a feature I like. How to run Stable Diffusion to generate pictures of, uh, cats, yeah it's definitely just for cats. A bitcoin VR metaversed my AI and now my app store is mobile social local.</li>\\n<li>🚫 Politics. The Pirate Party is winning in Sweden. Please vote for net neutrality. Big Tech is being sued in Europe for <em>gestures broadly</em>.</li>\\n<li>🚫 Gossip. Richard Stallman switches to Windows. Elon Musk farted. Linus Torvalds was a poopy-head on a mailing list. Grace Hopper Conference is now 60% male. The People's Rust Foundation is arguing with the Rust Foundation For The People. Terraform has been forked into Terra and Form. Stack Overflow sucks now. Stack Overflow is good actually.</li>\\n<li>✅ Demos with code. I wrote a game, here it is on GitHub</li>\\n<li>🚫 Demos without code. I wrote a game, come buy it! Please give me feedback on my startup (totally not an ad nosirree). I stayed up all night writing a commercial text editor, here's the pricing page. I made a DALL-E image generator. I made the fifteenth animation of A* this week, here's a GIF.</li>\\n<li>🚫 AskReddit type forum questions. What's your favourite programming language? Tabs or spaces? Does anyone else hate it when.</li>\\n<li>🚫 Support questions. How do I write a web crawler? How do I get into programming? Where's my missing semicolon? Please do this obvious homework problem for me. Personally I feel very strongly about not allowing these because they'd quickly drown out all of the actual content I come to see, and there are already much more effective places to get them answered anyway. In real life the quality of the ones that we see is also universally very low.</li>\\n<li>🚫 Surveys and 🚫 Job postings and anything else that is looking to extract value from a place a lot of programmers hang out without contributing anything itself.</li>\\n<li>🚫 Meta posts. DAE think <a href=\"/r/programming\">r/programming</a> sucks? Why did you remove my post? Why did you ban this user that is totes not me I swear I'm just asking questions. Except this meta post. This one is okay because I'm a tyrant that the rules don't apply to (I assume you are saying about me to yourself right now).</li>\\n<li>🚫 Images, memes, anything low-effort or low-content. Thankfully we very rarely see any of this so there's not much to remove but like support questions once you have a few of these they tend to totally take over because it's easier to make a meme than to write a paper and also easier to vote on a meme than to read a paper.</li>\\n<li>⚠️ Posts that we'd normally allow but that are obviously, unquestioningly super low quality like blogspam copy-pasted onto a site with a bazillion ads. It has to be pretty bad before we remove it and even then sometimes these are the first post to get traction about a news event so we leave them up if they're the best discussion going on about the news event. There's a lot of grey area here with CVE announcements in particular: there are a lot of spammy security "blogs" that syndicate stories like this.</li>\\n<li>⚠️ Posts that are duplicates of other posts or the same news event. We leave up either the first one or the healthiest discussion.</li>\\n<li>⚠️ Posts where the title editorialises too heavily or especially is a lie or conspiracy theory.</li>\\n<li>Comments are only very loosely moderated and it's mostly 🚫 Bots of any kind (Beep boop you misspelled misspelled!) and 🚫 Incivility (You idiot, everybody knows that my favourite toy is better than your favourite toy.) However the number of obvious GPT comment bots is rising and will quickly become untenable for the number of active moderators we have.</li>\\n</ul>\\n\\n<p>There are some topics such as Code of Conduct arguments within projects that I don't know where to place where we've been doing a civility check on the comments thread and using that to make the decision. Similarly some straddle the line (a link to a StackOverflow post asking for help and the reddit OP is the StackOverflow OP, but there's a lot of technical content and the reddit discussion is healthy). And even most 🚫s above are left up if there's a healthy discussion going already by the time we see it.</p>\\n\\n<h1>So what now?</h1>\\n\\n<p>We need to decide <strong>what <a href=\"/r/programming\">r/programming</a> should be about</strong> and we need to write those rules down so that mods can consistently apply them. The rules as written are pretty vague and the way we're moderating in practise is only loosely connected to them. We're looking for feedback on what kind of place <a href=\"/r/programming\">r/programming</a> should be so tell us below.</p>\\n\\n<p><strong>We need additional mods</strong>. If you're interested in helping moderate <strong>please post below, saying why you'd be a good mod and what you'd would change about the space if you were</strong>. You don't need to be a moderator elsewhere but please do mention it if you are and what we could learn on <a href=\"/r/programming\">r/programming</a> that you already know. Currently I think I'm the only one going down the new page every morning and removing the rule-breaking posts. (Today these are mostly "how do I program computer" or "can somebody help me fix my printer", and obvious spam.) This results in a lot of threads complaining about the moderation quality and, well, it's not wrong. I'm not rigorously watching the mod queue and I'm not trawling comments threads looking for bad actors unless I'm in that thread anyway and I don't use reddit every single day. So if we want it to be better we'll need more human power.</p>\\n\\n<h1>FAQ: Why do we need moderation at all? Can't the votes just do it?</h1>\\n\\n<p>We know there is demand for unmoderated spaces in the world, but <a href=\"/r/programming\">r/programming</a> isn't that space. This is our theory on why keeping the subreddit on topic is important:</p>\\n\\n<ul>\\n<li>Forums have the interesting property that <strong>whatever is on the front page today is what will be on the front page tomorrow</strong>. When a user comes to the site and sees a set of content, they believe that that's what this website is about. If they like it they'll stay and contribute that kind of content and if they don't like it they won't stay, leaving only the people that liked the content they saw yesterday. So the seed content is important and keeping things on topic is important. If you like <a href=\"/r/programming\">r/programming</a> then you need moderation to keep it the way that you like it (or make it be the place you wish it were) because otherwise entropic drift will make it be a different place. And once you have moderation it's going to have a subjective component, that's just the nature of it.</li>\\n<li>Because of the way reddit works, on a light news day <a href=\"/r/programming\">r/programming</a> doesn't get enough daily content for articles to meaningfully compete with each other. Towards the end of the day if I post something to <a href=\"/r/programming\">r/programming</a> it will immediately go to the front page of all <a href=\"/r/programming\">r/programming</a> subscribers. So while it's true that sub-par and rule-breaking posts already do most of their damage before the mods even see them, the whole theory of posts competing via votes alone doesn't really work in a lower-volume subreddit.</li>\\n<li>Because of the mechanics of moderation it's not really possible to allow the subreddit to be say 5% support questions. Even if we wanted to allow it to be a small amount of the conten, the individuals whose content was removed would experience and perceive this as a punitive action against them. That means that any category we allow could theoretically completely take over <a href=\"/r/programming\">r/programming</a> (like the career posts from last week) so we should only allow types of content that we'd be okay with taking it over.</li>\\n</ul>\\n\\n<p>Personally my dream is for <a href=\"/r/programming\">r/programming</a> to be the place with the highest quality programming content, where I can go to read something interesting and learn something new every day. That dream is at odds with allowing every piece of blogspam and "10 ways to convince your boss to give you a raise, #2 will get you fired!"</p>\\n</div><!-- SC_ON -->', 'likes': None, 'suggested_sort': None, 'banned_at_utc': None, 'view_count': None, 'archived': False, 'no_follow': False, 'is_crosspostable': False, 'pinned': False, 'over_18': False, 'all_awardings': [], 'awarders': [], 'media_only': False, 'can_gild': False, 'spoiler': False, 'locked': False, 'author_flair_text': None, 'treatment_tags': [], 'visited': False, 'removed_by': None, 'num_reports': None, 'distinguished': 'moderator', 'subreddit_id': 't5_2fwo', 'author_is_blocked': False, 'mod_reason_by': None, 'removal_reason': None, 'link_flair_background_color': '', 'id': '173viwj', 'is_robot_indexable': True, 'report_reasons': None, 'author': 'ketralnis', 'discussion_type': None, 'num_comments': 309, 'send_replies': False, 'whitelist_status': 'all_ads', 'contest_mode': False, 'mod_reports': [], 'author_patreon_flair': False, 'author_flair_text_color': None, 'permalink': '/r/programming/comments/173viwj/meta_the_future_of_rprogramming/', 'parent_whitelist_status': 'all_ads', 'stickied': True, 'url': 'https://www.reddit.com/r/programming/comments/173viwj/meta_the_future_of_rprogramming/', 'subreddit_subscribers': 5875223, 'created_utc': 1696867416.0, 'num_crossposts': 1, 'media': None, 'is_video': False}}\n",
262
- "{'id': '1adxu1i', 'title': 'If you use AI to teach you how to code, remember you still need to think for yourself', 'text': '', 'url': 'https://www.theregister.com/2024/01/27/ai_coding_automatic/', 'score': 507, 'author': 'LinearArray', 'date': 1706541842.0, 'pdata': {'approved_at_utc': None, 'subreddit': 'programming', 'selftext': '', 'author_fullname': 't2_r8ukd8g17', 'saved': False, 'mod_reason_title': None, 'gilded': 0, 'clicked': False, 'title': 'If you use AI to teach you how to code, remember you still need to think for yourself', 'link_flair_richtext': [], 'subreddit_name_prefixed': 'r/programming', 'hidden': False, 'pwls': 6, 'link_flair_css_class': None, 'downs': 0, 'top_awarded_type': None, 'hide_score': False, 'name': 't3_1adxu1i', 'quarantine': False, 'link_flair_text_color': 'dark', 'upvote_ratio': 0.9, 'author_flair_background_color': None, 'subreddit_type': 'public', 'ups': 507, 'total_awards_received': 0, 'media_embed': {}, 'author_flair_template_id': None, 'is_original_content': False, 'user_reports': [], 'secure_media': None, 'is_reddit_media_domain': False, 'is_meta': False, 'category': None, 'secure_media_embed': {}, 'link_flair_text': None, 'can_mod_post': False, 'score': 507, 'approved_by': None, 'is_created_from_ads_ui': False, 'author_premium': True, 'thumbnail': '', 'edited': False, 'author_flair_css_class': None, 'author_flair_richtext': [], 'gildings': {}, 'content_categories': None, 'is_self': False, 'mod_note': None, 'created': 1706541842.0, 'link_flair_type': 'text', 'wls': 6, 'removed_by_category': None, 'banned_by': None, 'author_flair_type': 'text', 'domain': 'theregister.com', 'allow_live_comments': False, 'selftext_html': None, 'likes': None, 'suggested_sort': None, 'banned_at_utc': None, 'url_overridden_by_dest': 'https://www.theregister.com/2024/01/27/ai_coding_automatic/', 'view_count': None, 'archived': False, 'no_follow': False, 'is_crosspostable': False, 'pinned': False, 'over_18': False, 'all_awardings': [], 'awarders': [], 'media_only': False, 'can_gild': False, 'spoiler': False, 'locked': False, 'author_flair_text': None, 'treatment_tags': [], 'visited': False, 'removed_by': None, 'num_reports': None, 'distinguished': None, 'subreddit_id': 't5_2fwo', 'author_is_blocked': False, 'mod_reason_by': None, 'removal_reason': None, 'link_flair_background_color': '', 'id': '1adxu1i', 'is_robot_indexable': True, 'report_reasons': None, 'author': 'LinearArray', 'discussion_type': None, 'num_comments': 181, 'send_replies': True, 'whitelist_status': 'all_ads', 'contest_mode': False, 'mod_reports': [], 'author_patreon_flair': False, 'author_flair_text_color': None, 'permalink': '/r/programming/comments/1adxu1i/if_you_use_ai_to_teach_you_how_to_code_remember/', 'parent_whitelist_status': 'all_ads', 'stickied': False, 'url': 'https://www.theregister.com/2024/01/27/ai_coding_automatic/', 'subreddit_subscribers': 5875223, 'created_utc': 1706541842.0, 'num_crossposts': 0, 'media': None, 'is_video': False}}\n",
263
- "{'id': '1adz5jw', 'title': \"Resigned from Google back in Sept 2022 and ended up writing a book about the dysfunctional software development practices in today's world. Here's one of the free chapters: Agile as a Micromanagement Tool\", 'text': '', 'url': 'https://muromuro.substack.com/p/agile-as-a-micromanagement-tool', 'score': 171, 'author': 'redkit42', 'date': 1706545226.0, 'pdata': {'approved_at_utc': None, 'subreddit': 'programming', 'selftext': '', 'author_fullname': 't2_s5a3v4ie', 'saved': False, 'mod_reason_title': None, 'gilded': 0, 'clicked': False, 'title': \"Resigned from Google back in Sept 2022 and ended up writing a book about the dysfunctional software development practices in today's world. Here's one of the free chapters: Agile as a Micromanagement Tool\", 'link_flair_richtext': [], 'subreddit_name_prefixed': 'r/programming', 'hidden': False, 'pwls': 6, 'link_flair_css_class': None, 'downs': 0, 'top_awarded_type': None, 'hide_score': False, 'name': 't3_1adz5jw', 'quarantine': False, 'link_flair_text_color': 'dark', 'upvote_ratio': 0.86, 'author_flair_background_color': None, 'subreddit_type': 'public', 'ups': 171, 'total_awards_received': 0, 'media_embed': {}, 'author_flair_template_id': None, 'is_original_content': False, 'user_reports': [], 'secure_media': None, 'is_reddit_media_domain': False, 'is_meta': False, 'category': None, 'secure_media_embed': {}, 'link_flair_text': None, 'can_mod_post': False, 'score': 171, 'approved_by': None, 'is_created_from_ads_ui': False, 'author_premium': False, 'thumbnail': '', 'edited': False, 'author_flair_css_class': None, 'author_flair_richtext': [], 'gildings': {}, 'content_categories': None, 'is_self': False, 'mod_note': None, 'created': 1706545226.0, 'link_flair_type': 'text', 'wls': 6, 'removed_by_category': None, 'banned_by': None, 'author_flair_type': 'text', 'domain': 'muromuro.substack.com', 'allow_live_comments': False, 'selftext_html': None, 'likes': None, 'suggested_sort': None, 'banned_at_utc': None, 'url_overridden_by_dest': 'https://muromuro.substack.com/p/agile-as-a-micromanagement-tool', 'view_count': None, 'archived': False, 'no_follow': False, 'is_crosspostable': False, 'pinned': False, 'over_18': False, 'all_awardings': [], 'awarders': [], 'media_only': False, 'can_gild': False, 'spoiler': False, 'locked': False, 'author_flair_text': None, 'treatment_tags': [], 'visited': False, 'removed_by': None, 'num_reports': None, 'distinguished': None, 'subreddit_id': 't5_2fwo', 'author_is_blocked': False, 'mod_reason_by': None, 'removal_reason': None, 'link_flair_background_color': '', 'id': '1adz5jw', 'is_robot_indexable': True, 'report_reasons': None, 'author': 'redkit42', 'discussion_type': None, 'num_comments': 19, 'send_replies': False, 'whitelist_status': 'all_ads', 'contest_mode': False, 'mod_reports': [], 'author_patreon_flair': False, 'author_flair_text_color': None, 'permalink': '/r/programming/comments/1adz5jw/resigned_from_google_back_in_sept_2022_and_ended/', 'parent_whitelist_status': 'all_ads', 'stickied': False, 'url': 'https://muromuro.substack.com/p/agile-as-a-micromanagement-tool', 'subreddit_subscribers': 5875223, 'created_utc': 1706545226.0, 'num_crossposts': 0, 'media': None, 'is_video': False}}\n",
264
- "{'id': '1adw198', 'title': 'How to make your programmers (look like they) work harder', 'text': '', 'url': 'https://badsoftwareadvice.substack.com/p/how-to-make-your-programmers-look', 'score': 179, 'author': 'mixteenth', 'date': 1706537008.0, 'pdata': {'approved_at_utc': None, 'subreddit': 'programming', 'selftext': '', 'author_fullname': 't2_8otysi6h', 'saved': False, 'mod_reason_title': None, 'gilded': 0, 'clicked': False, 'title': 'How to make your programmers (look like they) work harder', 'link_flair_richtext': [], 'subreddit_name_prefixed': 'r/programming', 'hidden': False, 'pwls': 6, 'link_flair_css_class': None, 'downs': 0, 'top_awarded_type': None, 'hide_score': False, 'name': 't3_1adw198', 'quarantine': False, 'link_flair_text_color': 'dark', 'upvote_ratio': 0.89, 'author_flair_background_color': None, 'subreddit_type': 'public', 'ups': 179, 'total_awards_received': 0, 'media_embed': {}, 'author_flair_template_id': None, 'is_original_content': False, 'user_reports': [], 'secure_media': None, 'is_reddit_media_domain': False, 'is_meta': False, 'category': None, 'secure_media_embed': {}, 'link_flair_text': None, 'can_mod_post': False, 'score': 179, 'approved_by': None, 'is_created_from_ads_ui': False, 'author_premium': False, 'thumbnail': '', 'edited': False, 'author_flair_css_class': None, 'author_flair_richtext': [], 'gildings': {}, 'content_categories': None, 'is_self': False, 'mod_note': None, 'created': 1706537008.0, 'link_flair_type': 'text', 'wls': 6, 'removed_by_category': None, 'banned_by': None, 'author_flair_type': 'text', 'domain': 'badsoftwareadvice.substack.com', 'allow_live_comments': False, 'selftext_html': None, 'likes': None, 'suggested_sort': None, 'banned_at_utc': None, 'url_overridden_by_dest': 'https://badsoftwareadvice.substack.com/p/how-to-make-your-programmers-look', 'view_count': None, 'archived': False, 'no_follow': False, 'is_crosspostable': False, 'pinned': False, 'over_18': False, 'all_awardings': [], 'awarders': [], 'media_only': False, 'can_gild': False, 'spoiler': False, 'locked': False, 'author_flair_text': None, 'treatment_tags': [], 'visited': False, 'removed_by': None, 'num_reports': None, 'distinguished': None, 'subreddit_id': 't5_2fwo', 'author_is_blocked': False, 'mod_reason_by': None, 'removal_reason': None, 'link_flair_background_color': '', 'id': '1adw198', 'is_robot_indexable': True, 'report_reasons': None, 'author': 'mixteenth', 'discussion_type': None, 'num_comments': 25, 'send_replies': True, 'whitelist_status': 'all_ads', 'contest_mode': False, 'mod_reports': [], 'author_patreon_flair': False, 'author_flair_text_color': None, 'permalink': '/r/programming/comments/1adw198/how_to_make_your_programmers_look_like_they_work/', 'parent_whitelist_status': 'all_ads', 'stickied': False, 'url': 'https://badsoftwareadvice.substack.com/p/how-to-make-your-programmers-look', 'subreddit_subscribers': 5875223, 'created_utc': 1706537008.0, 'num_crossposts': 1, 'media': None, 'is_video': False}}\n",
265
- "{'id': '1aed2j6', 'title': 'The relentless pursuit of cutting-edge JavaScript frameworks inadvertently contributed to a less accessible web', 'text': '', 'url': 'https://www.easylaptopfinder.com/blog/posts/cutting-edge-js-framework-accessibility', 'score': 16, 'author': 'weakly_held', 'date': 1706580532.0, 'pdata': {'approved_at_utc': None, 'subreddit': 'programming', 'selftext': '', 'author_fullname': 't2_s8doafrqn', 'saved': False, 'mod_reason_title': None, 'gilded': 0, 'clicked': False, 'title': 'The relentless pursuit of cutting-edge JavaScript frameworks inadvertently contributed to a less accessible web', 'link_flair_richtext': [], 'subreddit_name_prefixed': 'r/programming', 'hidden': False, 'pwls': 6, 'link_flair_css_class': None, 'downs': 0, 'top_awarded_type': None, 'hide_score': False, 'name': 't3_1aed2j6', 'quarantine': False, 'link_flair_text_color': 'dark', 'upvote_ratio': 0.78, 'author_flair_background_color': None, 'subreddit_type': 'public', 'ups': 16, 'total_awards_received': 0, 'media_embed': {}, 'author_flair_template_id': None, 'is_original_content': False, 'user_reports': [], 'secure_media': None, 'is_reddit_media_domain': False, 'is_meta': False, 'category': None, 'secure_media_embed': {}, 'link_flair_text': None, 'can_mod_post': False, 'score': 16, 'approved_by': None, 'is_created_from_ads_ui': False, 'author_premium': False, 'thumbnail': '', 'edited': False, 'author_flair_css_class': None, 'author_flair_richtext': [], 'gildings': {}, 'content_categories': None, 'is_self': False, 'mod_note': None, 'created': 1706580532.0, 'link_flair_type': 'text', 'wls': 6, 'removed_by_category': None, 'banned_by': None, 'author_flair_type': 'text', 'domain': 'easylaptopfinder.com', 'allow_live_comments': False, 'selftext_html': None, 'likes': None, 'suggested_sort': None, 'banned_at_utc': None, 'url_overridden_by_dest': 'https://www.easylaptopfinder.com/blog/posts/cutting-edge-js-framework-accessibility', 'view_count': None, 'archived': False, 'no_follow': False, 'is_crosspostable': False, 'pinned': False, 'over_18': False, 'all_awardings': [], 'awarders': [], 'media_only': False, 'can_gild': False, 'spoiler': False, 'locked': False, 'author_flair_text': None, 'treatment_tags': [], 'visited': False, 'removed_by': None, 'num_reports': None, 'distinguished': None, 'subreddit_id': 't5_2fwo', 'author_is_blocked': False, 'mod_reason_by': None, 'removal_reason': None, 'link_flair_background_color': '', 'id': '1aed2j6', 'is_robot_indexable': True, 'report_reasons': None, 'author': 'weakly_held', 'discussion_type': None, 'num_comments': 7, 'send_replies': True, 'whitelist_status': 'all_ads', 'contest_mode': False, 'mod_reports': [], 'author_patreon_flair': False, 'author_flair_text_color': None, 'permalink': '/r/programming/comments/1aed2j6/the_relentless_pursuit_of_cuttingedge_javascript/', 'parent_whitelist_status': 'all_ads', 'stickied': False, 'url': 'https://www.easylaptopfinder.com/blog/posts/cutting-edge-js-framework-accessibility', 'subreddit_subscribers': 5875223, 'created_utc': 1706580532.0, 'num_crossposts': 0, 'media': None, 'is_video': False}}\n"
266
- ]
267
- }
268
- ],
269
- "source": [
270
- "for p in post_list[0:5]:\n",
271
- "\n",
272
- " print(p)"
273
- ]
274
- },
275
- {
276
- "cell_type": "code",
277
- "execution_count": 11,
278
- "metadata": {},
279
- "outputs": [
280
- {
281
- "data": {
282
- "text/plain": [
283
- "{'kind': 't3',\n",
284
- " 'data': {'approved_at_utc': None,\n",
285
- " 'subreddit': 'programming',\n",
286
- " 'selftext': '',\n",
287
- " 'author_fullname': 't2_olskxmrt',\n",
288
- " 'saved': False,\n",
289
- " 'mod_reason_title': None,\n",
290
- " 'gilded': 0,\n",
291
- " 'clicked': False,\n",
292
- " 'title': 'How to Build a Simple Sentiment Analyzer Using Hugging Face Transformer',\n",
293
- " 'link_flair_richtext': [],\n",
294
- " 'subreddit_name_prefixed': 'r/programming',\n",
295
- " 'hidden': False,\n",
296
- " 'pwls': 6,\n",
297
- " 'link_flair_css_class': None,\n",
298
- " 'downs': 0,\n",
299
- " 'top_awarded_type': None,\n",
300
- " 'hide_score': False,\n",
301
- " 'name': 't3_1ad0z2w',\n",
302
- " 'quarantine': False,\n",
303
- " 'link_flair_text_color': 'dark',\n",
304
- " 'upvote_ratio': 0.43,\n",
305
- " 'author_flair_background_color': None,\n",
306
- " 'subreddit_type': 'public',\n",
307
- " 'ups': 0,\n",
308
- " 'total_awards_received': 0,\n",
309
- " 'media_embed': {},\n",
310
- " 'author_flair_template_id': None,\n",
311
- " 'is_original_content': False,\n",
312
- " 'user_reports': [],\n",
313
- " 'secure_media': None,\n",
314
- " 'is_reddit_media_domain': False,\n",
315
- " 'is_meta': False,\n",
316
- " 'category': None,\n",
317
- " 'secure_media_embed': {},\n",
318
- " 'link_flair_text': None,\n",
319
- " 'can_mod_post': False,\n",
320
- " 'score': 0,\n",
321
- " 'approved_by': None,\n",
322
- " 'is_created_from_ads_ui': False,\n",
323
- " 'author_premium': False,\n",
324
- " 'thumbnail': '',\n",
325
- " 'edited': False,\n",
326
- " 'author_flair_css_class': None,\n",
327
- " 'author_flair_richtext': [],\n",
328
- " 'gildings': {},\n",
329
- " 'content_categories': None,\n",
330
- " 'is_self': False,\n",
331
- " 'mod_note': None,\n",
332
- " 'created': 1706442494.0,\n",
333
- " 'link_flair_type': 'text',\n",
334
- " 'wls': 6,\n",
335
- " 'removed_by_category': None,\n",
336
- " 'banned_by': None,\n",
337
- " 'author_flair_type': 'text',\n",
338
- " 'domain': 'freecodecamp.org',\n",
339
- " 'allow_live_comments': False,\n",
340
- " 'selftext_html': None,\n",
341
- " 'likes': None,\n",
342
- " 'suggested_sort': None,\n",
343
- " 'banned_at_utc': None,\n",
344
- " 'url_overridden_by_dest': 'https://www.freecodecamp.org/news/how-to-build-a-simple-sentiment-analyzer-using-hugging-face-transformer/',\n",
345
- " 'view_count': None,\n",
346
- " 'archived': False,\n",
347
- " 'no_follow': True,\n",
348
- " 'is_crosspostable': False,\n",
349
- " 'pinned': False,\n",
350
- " 'over_18': False,\n",
351
- " 'all_awardings': [],\n",
352
- " 'awarders': [],\n",
353
- " 'media_only': False,\n",
354
- " 'can_gild': False,\n",
355
- " 'spoiler': False,\n",
356
- " 'locked': False,\n",
357
- " 'author_flair_text': None,\n",
358
- " 'treatment_tags': [],\n",
359
- " 'visited': False,\n",
360
- " 'removed_by': None,\n",
361
- " 'num_reports': None,\n",
362
- " 'distinguished': None,\n",
363
- " 'subreddit_id': 't5_2fwo',\n",
364
- " 'author_is_blocked': False,\n",
365
- " 'mod_reason_by': None,\n",
366
- " 'removal_reason': None,\n",
367
- " 'link_flair_background_color': '',\n",
368
- " 'id': '1ad0z2w',\n",
369
- " 'is_robot_indexable': True,\n",
370
- " 'report_reasons': None,\n",
371
- " 'author': 'zdouglassimon',\n",
372
- " 'discussion_type': None,\n",
373
- " 'num_comments': 0,\n",
374
- " 'send_replies': True,\n",
375
- " 'whitelist_status': 'all_ads',\n",
376
- " 'contest_mode': False,\n",
377
- " 'mod_reports': [],\n",
378
- " 'author_patreon_flair': False,\n",
379
- " 'author_flair_text_color': None,\n",
380
- " 'permalink': '/r/programming/comments/1ad0z2w/how_to_build_a_simple_sentiment_analyzer_using/',\n",
381
- " 'parent_whitelist_status': 'all_ads',\n",
382
- " 'stickied': False,\n",
383
- " 'url': 'https://www.freecodecamp.org/news/how-to-build-a-simple-sentiment-analyzer-using-hugging-face-transformer/',\n",
384
- " 'subreddit_subscribers': 5875224,\n",
385
- " 'created_utc': 1706442494.0,\n",
386
- " 'num_crossposts': 0,\n",
387
- " 'media': None,\n",
388
- " 'is_video': False}}"
389
- ]
390
- },
391
- "execution_count": 11,
392
- "metadata": {},
393
- "output_type": "execute_result"
394
- }
395
- ],
396
- "source": [
397
- "post"
398
- ]
399
- },
400
- {
401
- "cell_type": "code",
402
- "execution_count": 12,
403
- "metadata": {},
404
- "outputs": [
405
- {
406
- "data": {
407
- "text/plain": [
408
- "{'approved_at_utc': None,\n",
409
- " 'subreddit': 'programming',\n",
410
- " 'selftext': '',\n",
411
- " 'author_fullname': 't2_olskxmrt',\n",
412
- " 'saved': False,\n",
413
- " 'mod_reason_title': None,\n",
414
- " 'gilded': 0,\n",
415
- " 'clicked': False,\n",
416
- " 'title': 'How to Build a Simple Sentiment Analyzer Using Hugging Face Transformer',\n",
417
- " 'link_flair_richtext': [],\n",
418
- " 'subreddit_name_prefixed': 'r/programming',\n",
419
- " 'hidden': False,\n",
420
- " 'pwls': 6,\n",
421
- " 'link_flair_css_class': None,\n",
422
- " 'downs': 0,\n",
423
- " 'top_awarded_type': None,\n",
424
- " 'hide_score': False,\n",
425
- " 'name': 't3_1ad0z2w',\n",
426
- " 'quarantine': False,\n",
427
- " 'link_flair_text_color': 'dark',\n",
428
- " 'upvote_ratio': 0.43,\n",
429
- " 'author_flair_background_color': None,\n",
430
- " 'subreddit_type': 'public',\n",
431
- " 'ups': 0,\n",
432
- " 'total_awards_received': 0,\n",
433
- " 'media_embed': {},\n",
434
- " 'author_flair_template_id': None,\n",
435
- " 'is_original_content': False,\n",
436
- " 'user_reports': [],\n",
437
- " 'secure_media': None,\n",
438
- " 'is_reddit_media_domain': False,\n",
439
- " 'is_meta': False,\n",
440
- " 'category': None,\n",
441
- " 'secure_media_embed': {},\n",
442
- " 'link_flair_text': None,\n",
443
- " 'can_mod_post': False,\n",
444
- " 'score': 0,\n",
445
- " 'approved_by': None,\n",
446
- " 'is_created_from_ads_ui': False,\n",
447
- " 'author_premium': False,\n",
448
- " 'thumbnail': '',\n",
449
- " 'edited': False,\n",
450
- " 'author_flair_css_class': None,\n",
451
- " 'author_flair_richtext': [],\n",
452
- " 'gildings': {},\n",
453
- " 'content_categories': None,\n",
454
- " 'is_self': False,\n",
455
- " 'mod_note': None,\n",
456
- " 'created': 1706442494.0,\n",
457
- " 'link_flair_type': 'text',\n",
458
- " 'wls': 6,\n",
459
- " 'removed_by_category': None,\n",
460
- " 'banned_by': None,\n",
461
- " 'author_flair_type': 'text',\n",
462
- " 'domain': 'freecodecamp.org',\n",
463
- " 'allow_live_comments': False,\n",
464
- " 'selftext_html': None,\n",
465
- " 'likes': None,\n",
466
- " 'suggested_sort': None,\n",
467
- " 'banned_at_utc': None,\n",
468
- " 'url_overridden_by_dest': 'https://www.freecodecamp.org/news/how-to-build-a-simple-sentiment-analyzer-using-hugging-face-transformer/',\n",
469
- " 'view_count': None,\n",
470
- " 'archived': False,\n",
471
- " 'no_follow': True,\n",
472
- " 'is_crosspostable': False,\n",
473
- " 'pinned': False,\n",
474
- " 'over_18': False,\n",
475
- " 'all_awardings': [],\n",
476
- " 'awarders': [],\n",
477
- " 'media_only': False,\n",
478
- " 'can_gild': False,\n",
479
- " 'spoiler': False,\n",
480
- " 'locked': False,\n",
481
- " 'author_flair_text': None,\n",
482
- " 'treatment_tags': [],\n",
483
- " 'visited': False,\n",
484
- " 'removed_by': None,\n",
485
- " 'num_reports': None,\n",
486
- " 'distinguished': None,\n",
487
- " 'subreddit_id': 't5_2fwo',\n",
488
- " 'author_is_blocked': False,\n",
489
- " 'mod_reason_by': None,\n",
490
- " 'removal_reason': None,\n",
491
- " 'link_flair_background_color': '',\n",
492
- " 'id': '1ad0z2w',\n",
493
- " 'is_robot_indexable': True,\n",
494
- " 'report_reasons': None,\n",
495
- " 'author': 'zdouglassimon',\n",
496
- " 'discussion_type': None,\n",
497
- " 'num_comments': 0,\n",
498
- " 'send_replies': True,\n",
499
- " 'whitelist_status': 'all_ads',\n",
500
- " 'contest_mode': False,\n",
501
- " 'mod_reports': [],\n",
502
- " 'author_patreon_flair': False,\n",
503
- " 'author_flair_text_color': None,\n",
504
- " 'permalink': '/r/programming/comments/1ad0z2w/how_to_build_a_simple_sentiment_analyzer_using/',\n",
505
- " 'parent_whitelist_status': 'all_ads',\n",
506
- " 'stickied': False,\n",
507
- " 'url': 'https://www.freecodecamp.org/news/how-to-build-a-simple-sentiment-analyzer-using-hugging-face-transformer/',\n",
508
- " 'subreddit_subscribers': 5875224,\n",
509
- " 'created_utc': 1706442494.0,\n",
510
- " 'num_crossposts': 0,\n",
511
- " 'media': None,\n",
512
- " 'is_video': False}"
513
- ]
514
- },
515
- "execution_count": 12,
516
- "metadata": {},
517
- "output_type": "execute_result"
518
- }
519
- ],
520
- "source": [
521
- "pdata"
522
- ]
523
- },
524
- {
525
- "cell_type": "code",
526
- "execution_count": 13,
527
- "metadata": {},
528
- "outputs": [],
529
- "source": [
530
- "c = 0\n",
531
- "for p in post_list:\n",
532
- " if(\"body\") in p.keys():\n",
533
- " c+=1"
534
- ]
535
- },
536
- {
537
- "cell_type": "code",
538
- "execution_count": 14,
539
- "metadata": {},
540
- "outputs": [
541
- {
542
- "data": {
543
- "text/plain": [
544
- "0"
545
- ]
546
- },
547
- "execution_count": 14,
548
- "metadata": {},
549
- "output_type": "execute_result"
550
- }
551
- ],
552
- "source": [
553
- "c"
554
- ]
555
- },
556
  {
557
  "cell_type": "code",
558
  "execution_count": 20,
@@ -2852,28 +2299,6 @@
2852
  "post_list_copy = post_list.copy()\n"
2853
  ]
2854
  },
2855
- {
2856
- "cell_type": "code",
2857
- "execution_count": 28,
2858
- "metadata": {},
2859
- "outputs": [
2860
- {
2861
- "data": {
2862
- "text/plain": [
2863
- "[1, 2]"
2864
- ]
2865
- },
2866
- "execution_count": 28,
2867
- "metadata": {},
2868
- "output_type": "execute_result"
2869
- }
2870
- ],
2871
- "source": [
2872
- "x = [1,2,3]\n",
2873
- "x.pop()\n",
2874
- "x"
2875
- ]
2876
- },
2877
  {
2878
  "cell_type": "code",
2879
  "execution_count": 29,
 
1
  {
2
  "cells": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  {
4
  "cell_type": "code",
5
  "execution_count": 20,
 
2299
  "post_list_copy = post_list.copy()\n"
2300
  ]
2301
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2302
  {
2303
  "cell_type": "code",
2304
  "execution_count": 29,