Jump to content

Research:RatingHub/YT/swcclectures2031: Difference between revisions

From LithoGraphica
Reversedragon (talk | contribs)
archive lisp program as-is; cr. 2023-11-06T09:53:06Z
 
Reversedragon (talk | contribs)
m copy or update formatting from YT/revcomintern
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Program ==
{{Contents}}
<h2 class="toc-only">Background</h2>


<pre>;;;; # channel @swcclectures2031
Rating subject: YouTube video channel <strong>[https://invidious.nerdvpn.de/channel/UC01LJMShkDkYpkX_liAy8Tw  @swcclectures2031]</strong><!--
(asdf:load-system "channel-rating")
  note: the link is here for immediate use during each edit, as a simpler page that loads fast. -->
(defpackage :reversedragon3.rating.swcc-lectures
  (:shadowing-import-from :reversedragon3.rating  #:rating)
  (:use :common-lisp))
(in-package :reversedragon3.rating.swcc-lectures)
;; before I forget again - these lectures are from Tsinghua University by Associate Professor Feng Wuzhong at the School of Marxism. I always forget his name for unknown reasons


(defun main ()
* This is a Marxist theory channel.
  (let (likes dislikes num-likes num-dislikes)
* This is a collection of from Tsinghua University, by Associate Professor Feng Wuzhong at the School of Marxism.
  (setq
* This channel's content is approximately first-year university level in difficulty. It may or may not be based on a corresponding university textbook.
      likes (append
* This channel speaks about the history of China and the connection between early Maoism and Deng Xiaoping Thought as well as their differences.
        (list  ; regular
* This channel holds to the position that Deng Xiaoping Thought is not a revisionist Marxism and is a valid form of Marxism.
            'GxbKOjXnE-0
* This channel's videos tend toward being basic overviews of topics rather than being very in-depth. It is recommended to watch the videos at high speed if you either know this form of Chinese or can read the subtitles that fast.
            'TYlLBGbqrxI  "HI-0m8PB_NE" 'TxiNbKDzTIM  'Wa4BL0LI-0o  'ZpNZx2UvLTM  'DcA52cQR-rM
* This channel should be rated for whether it conveys the positions of Deng Xiaoping Thought clearly and to what extent it presents concrete Materialist models of history and society more than whether it matches mainstream Marxism-Leninism. However, if a video says anything about history or material conditions in China on any particular date that is provably false according to some reliable external source, it can be marked NG.
            'HEjODjnfq-o  '6Umh4WBdmTk  'jne1iyQv2No  'vGFUAB3-GRY  '-mXRNDec06E  'DpIlhFUFqPs
* This channel mentions Deng Xiaoping<!--<ref name="unk" />--> in the context of relevant theorists or sources.
            '53IYYrEia9I  'uLoaPivZa6M  'fgsH898PRDw  "c_SdOf-DNEI" '90UKrrp5JG4  'lf3VW9wzl1g
            'LFDmtTIa6UI  'rkI2NEPNOi0  "zt_ca5xr6q0" "4_x4Mv6Utm4" 'Y3a7TRsCbDM  'bP-Vp8gWDd0
            'LfzJnLPwyUw  'HwonrsZ8R7o  'n8Lor36nT8o  'VainzFGFnLA  '62mvMWJHt8g  'cPYoq9Nb2bA


            ;; chapter 4
<dl class="wikitable hue">
            )
{{HueRoster|EP=PPPA|lang=en| {{abbr|SWCC|title=Socialism With Chinese Characteristics}} Lectures }}
        nil)
{{HueRoster|EP=P34| {{E:Q41,07}} | university-level material | popular-level material }}  <!-- en: field  Deng Xiaoping Thought -->
     
{{HueRoster|P=approximate number of entries| 139 }}
      ;;dislikes (append
{{HueRoster|P=overall rating| {{U}} }}
      ;;  nil
{{HueRoster|P=original version| [[Special:PermanentLink/4172|2023-11]] }}
      ;;  nil)
</dl>
      )
 
  (rating likes dislikes)
  ))


(print (main))
== Rating sheet ==


<dl class="wikitable hue data_rating">
{{WorkRating| {{YouTube|Z-ZICRekmCE|asfsdfsdf}} (4 years ago) |G={{U}}|RR=4997|Q=0|N=0| -- }} <!-- full title  / example tests:  {{E:P202/NG}} {{E:P206/G}} {{E:P208/G}} -->
</dl>


;; :: cr. 2023-11-06T09:53:06Z
== Motifs ==
;; :: ed. 2024-04-16T21:57:23Z
;;      date began 'serious review' by chapter
</pre>


== Lisp library ==
{{HueCSS}}<ol class="hue clean">
<!--</li><li {{IF2/IV/class}} value="618">The ruling class will not attack an idea which is dead <ref name="qhz"/>
</li>--></ol>


<pre>;;; toolkit for rating-sheets
== Additional remarks ==
(defpackage :reversedragon3.rating
  (:use :common-lisp)
  ;; (:local-nicknames )
  (:export
      ;; #:nearest-pow10 #:deduplicate
      #:rating #:stylesheet
))
(in-package :reversedragon3.rating)


(defun nearest-pow10 (value)  ; round up to nearest power of 10, such as 70 -> 100
== References / video links ==
  (expt 10 (ceiling (expt value (/ 1 10)))))


(defun deduplicate (list)
<references>
  (let ((known-id (make-hash-table :test 'equal))
<!-- <ref name="zz-ce"><cite class="article">Lenin and Trotsky - what they really stood for</cite> {{YouTube|Z-ZICRekmCE}}</ref>
          result canonical stored)
<ref name="unk">Video unknown.</ref> -->
  (dolist (item list)
</references>
      (setq
        canonical
            (if (stringp item)
              item  (symbol-name item))
        stored (gethash (string-upcase canonical) known-id))
      (cond
        ((equal canonical stored)
            (format t "Item ~a matched known item ~a~%" canonical stored))
        (t
            (setf
              (gethash (string-upcase canonical) known-id) canonical
              result (cons canonical result))
            ))
      (setq  stored nil  canonical nil))
  (reverse result)))


(defun rating (likes dislikes  &optional neutral)
  (setq
      likes    (deduplicate likes)
      dislikes (deduplicate dislikes)
      neutral  (deduplicate neutral))
  (let* (
      (num-likes    (length likes))
      (num-dislikes (length dislikes))
      (total        (+ num-likes num-dislikes (length neutral)))
      (percentage-likes
        (truncate (* (nearest-pow10 total) (/ num-likes total))))
      (percentage-dislikes
        (truncate (* (nearest-pow10 total) (/ num-dislikes total))))
  )
  (list  num-likes num-dislikes  percentage-likes percentage-dislikes)))


(defun stylesheet (videos)
[[Category:Source communication rating sheets]]<!--
  (let ((result
duplication hint:   copy or update rating sheet from [[Special:PermanentLink/NNNN|YT/revcomintern]] -->
      (make-string-output-stream)))
  (format result ".unlikely-dummy-item~%")
  (dolist (item videos)
      (format result
        ", .watch-active-metadata[video-id=\"~A\" i] div, a.ytd-rich-grid-media[href*=\"~A\" i]~%"
        item item))
  (format result "{ background-color: #9f9ff7; }~%~%.watch-active-metadata div * { background-color: transparent !important; }")
  (get-output-stream-string result)))</pre>
 
[Note: it's been a while since this code has been tested, so I do not know if it works.]

Latest revision as of 04:05, 19 March 2026

Background

Rating subject: YouTube video channel @swcclectures2031

  • This is a Marxist theory channel.
  • This is a collection of from Tsinghua University, by Associate Professor Feng Wuzhong at the School of Marxism.
  • This channel's content is approximately first-year university level in difficulty. It may or may not be based on a corresponding university textbook.
  • This channel speaks about the history of China and the connection between early Maoism and Deng Xiaoping Thought as well as their differences.
  • This channel holds to the position that Deng Xiaoping Thought is not a revisionist Marxism and is a valid form of Marxism.
  • This channel's videos tend toward being basic overviews of topics rather than being very in-depth. It is recommended to watch the videos at high speed if you either know this form of Chinese or can read the subtitles that fast.
  • This channel should be rated for whether it conveys the positions of Deng Xiaoping Thought clearly and to what extent it presents concrete Materialist models of history and society more than whether it matches mainstream Marxism-Leninism. However, if a video says anything about history or material conditions in China on any particular date that is provably false according to some reliable external source, it can be marked NG.
  • This channel mentions Deng Xiaoping in the context of relevant theorists or sources.
pronounced P: alias (en) [string]
SWCC Lectures
field, scope, or group [Item]
pronounced 41,07. (Z)pronounced ⧼hue-philosophy-tts-/en⧽ pronounced ⧼hue-philosophy-tts-/en⧽  / Deng Xiaoping Thought1-1-1
university-level material
popular-level material
approximate number of entries
139
overall rating
U / Unknown1-1-1
original version

Rating sheet

contained work
asfsdfsdf (4 years ago)
rating
U / Unknown1-1-1
tests
--
0
available tests
0

Motifs

Additional remarks

References / video links