21e849c6a29bbc0640793c0d1506de9ca066dfb0,src/python/twitter/pants/__init__.py,,is_java,#Any#,172

Before Change



def is_java(target):
  Returns True if the target has or generates java sources.
  return target.has_label("java")


def is_apt(target):
  Returns True if the target exports an annotation processor.

After Change


def is_java(target):
  Returns True if the target has or generates java sources.

  return isinstance(target, JavaLibrary) or (
    isinstance(target, AnnotationProcessor)) or (
    isinstance(target, JavaProtobufLibrary)) or (
    isinstance(target, JavaTests)) or (
    is_thrift(target))


def is_thrift(target):
  Returns True if the target has thrift IDL sources.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 21e849c6a29bbc0640793c0d1506de9ca066dfb0
Time: 2012-08-17
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/__init__.py
Class Name:
Method Name: is_java


Project Name: pantsbuild/pants
Commit Name: 21e849c6a29bbc0640793c0d1506de9ca066dfb0
Time: 2012-08-17
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/__init__.py
Class Name:
Method Name: is_java


Project Name: pantsbuild/pants
Commit Name: 21e849c6a29bbc0640793c0d1506de9ca066dfb0
Time: 2012-08-17
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/__init__.py
Class Name:
Method Name: is_scala


Project Name: pantsbuild/pants
Commit Name: 21e849c6a29bbc0640793c0d1506de9ca066dfb0
Time: 2012-08-17
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/__init__.py
Class Name:
Method Name: is_test