<commit_before>var filter = {objectType: "KalturaMediaEntryFilter"};
filter.nameLike = "foobar";
filter.statusEqual = "2" /* KalturaEntryStatus.READY */;
filter.orderBy = "+createdAt" /* KalturaMediaEntryOrderBy.CREATED_AT_ASC */;
filter.advancedSearch = {objectType: "KalturaAttributeCondition"};
filter.advancedSearch.value = "baz";
var pager = {objectType: "KalturaFilterPager"};
pager.pageSize = 3;

KalturaMediaService.listAction(filter, pager)
  .execute(client, function(success, results) {
    if (!success || (results && results.code && results.message)) {
      console.log('Kaltura Error', success, results);
    } else {
      console.log('Kaltura Result', results);
    }
  });<commit_msg>No point in outputting success when we have an error<commit_after>var filter = {objectType: "KalturaMediaEntryFilter"};
filter.nameLike = "foobar";
filter.statusEqual = "2" /* KalturaEntryStatus.READY */;
filter.orderBy = "+createdAt" /* KalturaMediaEntryOrderBy.CREATED_AT_ASC */;
filter.advancedSearch = {objectType: "KalturaAttributeCondition"};
filter.advancedSearch.value = "baz";
var pager = {objectType: "KalturaFilterPager"};
pager.pageSize = 3;

KalturaMediaService.listAction(filter, pager)
  .execute(client, function(success, results) {
    if (!success || (results && results.code && results.message)) {
      console.log('Kaltura Error', results);
    } else {
      console.log('Kaltura Result', results);
    }
  });
{'fraction_non_alphanumeric': 0.14714086471408647, 'fraction_numerical': 0.002789400278940028, 'mean_word_length': 5.3215859030837, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2251758', 'n_tokens_mistral': 467, 'n_tokens_neox': 450, 'n_words': 90}