<commit_before>// Databricks notebook source exported at Mon, 22 Feb 2016 07:53:46 UTC
// MAGIC %md
// MAGIC # filter
// MAGIC 
// MAGIC Let us look at the [legend and overview of the visual RDD Api](/#workspace/scalable-data-science/xtraResources/visualRDDApi/guide).

// COMMAND ----------

// MAGIC %md
// MAGIC ![](https://raw.githubusercontent.com/raazesh-sainudiin/scalable-data-science/master/db/visualapi/med/visualapi-19.png)<commit_msg>Update filter.scala<commit_after>// Databricks notebook source exported at Tue, 23 Feb 2016 07:21:07 UTC
// MAGIC %md
// MAGIC # filter
// MAGIC Return a new RDD containing only elements that satisfy a predicate.
// MAGIC 
// MAGIC Let us look at the [legend and overview of the visual RDD Api](/#workspace/scalable-data-science/xtraResources/visualRDDApi/guide).

// COMMAND ----------

// MAGIC %md
// MAGIC ![](https://raw.githubusercontent.com/raazesh-sainudiin/scalable-data-science/master/db/visualapi/med/visualapi-19.png)
{'fraction_non_alphanumeric': 0.1476923076923077, 'fraction_numerical': 0.028717948717948718, 'mean_word_length': 3.5821596244131455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1693579', 'n_tokens_mistral': 371, 'n_tokens_neox': 311, 'n_words': 84}