<commit_before>package view_inspector.plugin

import com.android.build.gradle.AppPlugin
import org.aspectj.bridge.IMessage
import org.aspectj.bridge.MessageHandler
import org.aspectj.tools.ajc.Main
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.DependencyResolutionListener
import org.gradle.api.artifacts.ResolvableDependencies
import org.gradle.api.tasks.compile.JavaCompile

class ViewInspectorPlugin implements Plugin<Project> {

  @Override
  void apply(Project project) {
    if (!project.plugins.withType(AppPlugin)) {
      throw new IllegalStateException("'android' plugin required.")
    }

    project.dependencies {
      debugCompile 'com.github.xfumihiro.view-inspector:view-inspector-runtime:0.2.0-SNAPSHOT'

      // Android dependencies
      debugCompile project.rootProject.ext.appcompatV72103

      // AspectJ dependencies
      debugCompile project.rootProject.ext.aspectjRuntime

      // Dagger dependencies
      debugCompile project.rootProject.ext.dagger

      // Third-party dependencies
      debugCompile(project.rootProject.ext.dexmaker) {
        transitive = true
      }
      debugCompile project.rootProject.ext.scalpel
      debugCompile project.rootProject.ext.rxPreference
      debugCompile project.rootProject.ext.autoParcel
    }

    project.extensions.create("viewInspector", ViewInspectorPluginExtension)

    final def log = project.logger
    final def variants = project.android.applicationVariants

    variants.all { variant ->
      if (!variant.buildType.isDebuggable()) {
        log.debug("Skipping non-debuggable build type '${variant.buildType.name}'.")
        return;
      }
<commit_msg>Fix wrong dependency links<commit_after>package view_inspector.plugin

import com.android.build.gradle.AppPlugin
import org.aspectj.bridge.IMessage
import org.aspectj.bridge.MessageHandler
import org.aspectj.tools.ajc.Main
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.DependencyResolutionListener
import org.gradle.api.artifacts.ResolvableDependencies
import org.gradle.api.tasks.compile.JavaCompile

class ViewInspectorPlugin implements Plugin<Project> {

  @Override
  void apply(Project project) {
    if (!project.plugins.withType(AppPlugin)) {
      throw new IllegalStateException("'android' plugin required.")
    }

    project.dependencies {
      debugCompile 'com.github.xfumihiro.view-inspector:view-inspector-runtime:0.2.0-SNAPSHOT'

      // Android dependencies
      debugCompile 'com.android.support:appcompat-v7:21.0.3'

      // AspectJ dependencies
      debugCompile 'org.aspectj:aspectjrt:1.8.6'

      // Dagger dependencies
      debugCompile 'com.google.dagger:dagger:2.0.1'

      // Third-party dependencies
      debugCompile('com.google.dexmaker:dexmaker:1.1') {
        transitive = true
      }
      debugCompile 'com.jakewharton.scalpel:scalpel:1.1.2'
      debugCompile 'com.f2prateek.rx.preferences:rx-preferences:1.0.0'
      debugCompile 'com.github.frankiesardo:auto-parcel:0.3'
    }

    project.extensions.create("viewInspector", ViewInspectorPluginExtension)

    final def log = project.logger
    final def variants = project.android.applicationVariants

    variants.all { variant ->
      if (!variant.buildType.isDebuggable()) {
        log.debug("Skipping non-debuggable build type '${variant.buildType.name}'.")
        return;
      }

{'fraction_non_alphanumeric': 0.09877264757451783, 'fraction_numerical': 0.009643483343074225, 'mean_word_length': 3.701923076923077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '380568', 'n_tokens_mistral': 1057, 'n_tokens_neox': 993, 'n_words': 165}