<commit_before>[action_permission_items]
permissionItem1.service = media
permissionItem1.action = add
permissionItem1.partnerId = 0
permissionItem1.param3 = 
permissionItem1.param4 = 
permissionItem1.param5 = 
permissionItem1.tags = 
permissionItem1.permissions = CONTENT_INGEST_ORPHAN_VIDEO, CONTENT_INGEST_ORPHAN_AUDIO, LIVE_STREAM_ADD, CONTENT_INGEST_UPLOAD, CONTENT_MANAGE_BASE, -1>BATCH_BASE, -1>PARTNER_-1_GROUP_*_PERMISSION, BASE_USER_SESSION_PERMISSION, -5>PARTNER_-5_GROUP_*_PERMISSION

permissionItem2.service = media
permissionItem2.action = addcontent
permissionItem2.partnerId = 0
permissionItem2.param3 = 
permissionItem2.param4 = 
permissionItem2.param5 = 
permissionItem2.tags = 
permissionItem2.permissions = CONTENT_INGEST_UPLOAD, -1>BATCH_BASE, -1>PARTNER_-1_GROUP_*_PERMISSION, BASE_USER_SESSION_PERMISSION, -5>PARTNER_-5_GROUP_*_PERMISSION

permissionItem3.service = media
permissionItem3.action = addfrombulk
permissionItem3.partnerId = -1
permissionItem3.param3 = 
permissionItem3.param4 = 
permissionItem3.param5 = 
permissionItem3.tags = 
permissionItem3.permissions = BATCH_BASE, PARTNER_-1_GROUP_*_PERMISSION

permissionItem4.service = media
permissionItem4.action = addfromentry
permissionItem4.partnerId = 0
permissionItem4.param3 = 
permissionItem4.param4 = 
permissionItem4.param5 = 
permissionItem4.tags = 
permissionItem4.permissions = CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem5.service = media
permissionItem5.action = addfromflavorasset
permissionItem5.partnerId = 0
permissionItem5.param3 = 
permissionItem5.param4 = 
permissionItem5.param5 = 
permissionItem5.tags = 
permissionItem5.permissions = CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem6.service = media
permissionItem6.action = addfromrecordedwebcam
permissionItem6.partnerId = 0
permissionItem6.param3 = 
permissionItem6.param4 = 
permissionItem6.param5 = 
permissionItem6.tags = 
permissionItem6.permissions = CONTENT_INGEST_WEBCAM, CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem7.service = media
permissionItem7.action = addfromsearchresult
permissionItem7.partnerId = 0
permissionItem7.param3 = 
permissionItem7.param4 = 
permissionItem7.param5 = 
permissionItem7.tags = 
permissionItem7.permissions = CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem8.service = media
permissionItem8.action = addfromuploadedfile
permissionItem8.partnerId = 0
permissionItem8.param3 = 
permissionItem8.param4 = 
permissionItem8.param5 = 
permissionItem8.tags = 
permissionItem8.permissions = CONTENT_INGEST_UPLOAD, -1>BATCH_BASE, -1>PARTNER_-1_GROUP_*_PERMISSION, BASE_USER_SESSION_PERMISSION

permissionItem9.service = media
permissionItem9.action = addfromurl
permissionItem9.partnerId = 0
permissionItem9.param3 = 
permissionItem9.param4 = 
permissionItem9.param5 = 
permissionItem9.tags = 
permissionItem9.permissions = CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem10.service = media
permissionItem10.action = anonymousrank
permissionItem10.partnerId = 0
permissionItem10.param3 = 
permissionItem10.param4 = 
permissionItem10.param5 = 
permissionItem10.tags = 
permissionItem10.permissions = CONTENT_MODERATE_METADATA, BASE_USER_SESSION_PERMISSION, WIDGET_SESSION_PERMISSION

permissionItem11.service = media
permissionItem11.action = approve
permissionItem11.partnerId = 0
permissionItem11.param3 = 
permissionItem11.param4 = 
permissionItem11.param5 = 
permissionItem11.tags = 
permissionItem11.permissions = CONTENT_MODERATE_APPROVE_REJECT

permissionItem12.service = media
permissionItem12.action = approvereplace
permissionItem12.partnerId = 0
permissionItem12.param3 = 
permissionItem12.param4 = 
permissionItem12.param5 = 
permissionItem12.tags = 
permissionItem12.permissions = CONTENT_INGEST_REPLACE, -1>PARTNER_-1_GROUP_*_PERMISSION

permissionItem13.service = media
permissionItem13.action = cancelreplace
permissionItem13.partnerId = 0
permissionItem13.param3 = 
permissionItem13.param4 = 
permissionItem13.param5 = 
permissionItem13.tags = 
permissionItem13.permissions = CONTENT_INGEST_REPLACE, -1>PARTNER_-1_GROUP_*_PERMISSION

permissionItem14.service = media
permissionItem14.action = convert
permissionItem14.partnerId = 0
permissionItem14.param3 = 
permissionItem14.param4 = 
permissionItem14.param5 = 
permissionItem14.tags = 
permissionItem14.permissions = CONTENT_MANAGE_RECONVERT, BASE_USER_SESSION_PERMISSION

permissionItem15.service = media
permissionItem15.action = count
permissionItem15.partnerId = 0
permissionItem15.param3 = 
permissionItem15.param4 = 
permissionItem15.param5 = 
permissionItem15.tags = 
permissionItem15.permissions = CONTENT_MANAGE_BASE, BASE_USER_SESSION_PERMISSION, WIDGET_SESSION_PERMISSION
<commit_msg>Enable media server to cancel replacement<commit_after>[action_permission_items]
permissionItem1.service = media
permissionItem1.action = add
permissionItem1.partnerId = 0
permissionItem1.param3 = 
permissionItem1.param4 = 
permissionItem1.param5 = 
permissionItem1.tags = 
permissionItem1.permissions = CONTENT_INGEST_ORPHAN_VIDEO, CONTENT_INGEST_ORPHAN_AUDIO, LIVE_STREAM_ADD, CONTENT_INGEST_UPLOAD, CONTENT_MANAGE_BASE, -1>BATCH_BASE, -1>PARTNER_-1_GROUP_*_PERMISSION, BASE_USER_SESSION_PERMISSION, -5>PARTNER_-5_GROUP_*_PERMISSION

permissionItem2.service = media
permissionItem2.action = addcontent
permissionItem2.partnerId = 0
permissionItem2.param3 = 
permissionItem2.param4 = 
permissionItem2.param5 = 
permissionItem2.tags = 
permissionItem2.permissions = CONTENT_INGEST_UPLOAD, -1>BATCH_BASE, -1>PARTNER_-1_GROUP_*_PERMISSION, BASE_USER_SESSION_PERMISSION, -5>PARTNER_-5_GROUP_*_PERMISSION

permissionItem3.service = media
permissionItem3.action = addfrombulk
permissionItem3.partnerId = -1
permissionItem3.param3 = 
permissionItem3.param4 = 
permissionItem3.param5 = 
permissionItem3.tags = 
permissionItem3.permissions = BATCH_BASE, PARTNER_-1_GROUP_*_PERMISSION

permissionItem4.service = media
permissionItem4.action = addfromentry
permissionItem4.partnerId = 0
permissionItem4.param3 = 
permissionItem4.param4 = 
permissionItem4.param5 = 
permissionItem4.tags = 
permissionItem4.permissions = CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem5.service = media
permissionItem5.action = addfromflavorasset
permissionItem5.partnerId = 0
permissionItem5.param3 = 
permissionItem5.param4 = 
permissionItem5.param5 = 
permissionItem5.tags = 
permissionItem5.permissions = CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem6.service = media
permissionItem6.action = addfromrecordedwebcam
permissionItem6.partnerId = 0
permissionItem6.param3 = 
permissionItem6.param4 = 
permissionItem6.param5 = 
permissionItem6.tags = 
permissionItem6.permissions = CONTENT_INGEST_WEBCAM, CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem7.service = media
permissionItem7.action = addfromsearchresult
permissionItem7.partnerId = 0
permissionItem7.param3 = 
permissionItem7.param4 = 
permissionItem7.param5 = 
permissionItem7.tags = 
permissionItem7.permissions = CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem8.service = media
permissionItem8.action = addfromuploadedfile
permissionItem8.partnerId = 0
permissionItem8.param3 = 
permissionItem8.param4 = 
permissionItem8.param5 = 
permissionItem8.tags = 
permissionItem8.permissions = CONTENT_INGEST_UPLOAD, -1>BATCH_BASE, -1>PARTNER_-1_GROUP_*_PERMISSION, BASE_USER_SESSION_PERMISSION

permissionItem9.service = media
permissionItem9.action = addfromurl
permissionItem9.partnerId = 0
permissionItem9.param3 = 
permissionItem9.param4 = 
permissionItem9.param5 = 
permissionItem9.tags = 
permissionItem9.permissions = CONTENT_INGEST_UPLOAD, BASE_USER_SESSION_PERMISSION

permissionItem10.service = media
permissionItem10.action = anonymousrank
permissionItem10.partnerId = 0
permissionItem10.param3 = 
permissionItem10.param4 = 
permissionItem10.param5 = 
permissionItem10.tags = 
permissionItem10.permissions = CONTENT_MODERATE_METADATA, BASE_USER_SESSION_PERMISSION, WIDGET_SESSION_PERMISSION

permissionItem11.service = media
permissionItem11.action = approve
permissionItem11.partnerId = 0
permissionItem11.param3 = 
permissionItem11.param4 = 
permissionItem11.param5 = 
permissionItem11.tags = 
permissionItem11.permissions = CONTENT_MODERATE_APPROVE_REJECT

permissionItem12.service = media
permissionItem12.action = approvereplace
permissionItem12.partnerId = 0
permissionItem12.param3 = 
permissionItem12.param4 = 
permissionItem12.param5 = 
permissionItem12.tags = 
permissionItem12.permissions = CONTENT_INGEST_REPLACE, -1>PARTNER_-1_GROUP_*_PERMISSION

permissionItem13.service = media
permissionItem13.action = cancelreplace
permissionItem13.partnerId = 0
permissionItem13.param3 = 
permissionItem13.param4 = 
permissionItem13.param5 = 
permissionItem13.tags = 
permissionItem13.permissions = CONTENT_INGEST_REPLACE, -1>PARTNER_-1_GROUP_*_PERMISSION, -5>PARTNER_-5_GROUP_*_PERMISSION

permissionItem14.service = media
permissionItem14.action = convert
permissionItem14.partnerId = 0
permissionItem14.param3 = 
permissionItem14.param4 = 
permissionItem14.param5 = 
permissionItem14.tags = 
permissionItem14.permissions = CONTENT_MANAGE_RECONVERT, BASE_USER_SESSION_PERMISSION

permissionItem15.service = media
permissionItem15.action = count
permissionItem15.partnerId = 0
permissionItem15.param3 = 
permissionItem15.param4 = 
permissionItem15.param5 = 
permissionItem15.tags = 
permissionItem15.permissions = CONTENT_MANAGE_BASE, BASE_USER_SESSION_PERMISSION, WIDGET_SESSION_PERMISSION

{'fraction_non_alphanumeric': 0.06555834378920954, 'fraction_numerical': 0.05165202843998327, 'mean_word_length': 7.735159817351598, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7544669', 'n_tokens_mistral': 3287, 'n_tokens_neox': 3158, 'n_words': 426}