{"commit":"2315d130464fa56ee970161e179e9d688d77886a","old_file":"tlatools\/src-aj\/tlc2\/tool\/distributed\/RMIMethodMonitorAspect.aj","new_file":"tlatools\/src-aj\/tlc2\/tool\/distributed\/RMIMethodMonitorAspect.aj","old_contents":"package tlc2.tool.distributed;\n\npublic aspect RMIMethodMonitorAspect {\n\t\n\t\/\/ catch all method calls to RMI methods\n\tpointcut callToRemoteMethod() : \n\t\t execution(* tlc2.tool.distributed.InternRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..))\n\t\n\tbefore(): (callToRemoteMethod()) {\n\t\tRMIMethodMonitor.entering(thisJoinPoint);\n\t}\n}\n","new_contents":"package tlc2.tool.distributed;\n\npublic aspect RMIMethodMonitorAspect {\n\t\n\t\/\/ catch all method calls to RMI methods\n\tpointcut callToRemoteMethod() : \n\t\t execution(* tlc2.tool.distributed.InternRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..));\n\t\n\tbefore(): (callToRemoteMethod()) {\n\t\tRMIMethodMonitor.entering(thisJoinPoint);\n\t}\n}\n","subject":"Fix syntax error due to missing semicolon","message":"Fix syntax error due to missing semicolon","lang":"AspectJ","license":"mit","repos":"tlaplus\/tlaplus,lemmy\/tlaplus,lemmy\/tlaplus,tlaplus\/tlaplus,lemmy\/tlaplus,lemmy\/tlaplus,tlaplus\/tlaplus,tlaplus\/tlaplus"} {"commit":"d809e567440a5f6e1bd2d1e97926ec7e64fd7b21","old_file":"org.scala-ide.sdt.aspects\/src\/scala\/tools\/eclipse\/contribution\/weaving\/jdt\/core\/CompilationUnitNameAspect.aj","new_file":"org.scala-ide.sdt.aspects\/src\/scala\/tools\/eclipse\/contribution\/weaving\/jdt\/core\/CompilationUnitNameAspect.aj","old_contents":"package scala.tools.eclipse.contribution.weaving.jdt.core;\n\nimport org.eclipse.jdt.internal.core.util.Util;\n\n\/**\n * We override the behaviour of isValidCompilationUnitName() for .scala files.\n * The standard implementation applies Java identifier rules on the prefix of\n * the file name, so that, for example, \"package.scala\" would not be judged\n * valid. See Issue #3266.\n *\/\n@SuppressWarnings(\"restriction\")\npublic aspect CompilationUnitNameAspect {\n\n\tpointcut isValidCompilationUnitName(String name, String sourceLevel, String complianceLevel):\n\t args(name, sourceLevel, complianceLevel) &&\n\t\texecution(boolean Util.isValidCompilationUnitName(String, String, String));\n\n\tboolean around(String name, String sourceLevel, String complianceLevel):\n\t isValidCompilationUnitName(name, sourceLevel, complianceLevel) {\n\t\tif (name != null && name.endsWith(\".scala\"))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn proceed(name, sourceLevel, complianceLevel);\n\t}\n}\n","new_contents":"package scala.tools.eclipse.contribution.weaving.jdt.core;\n\nimport org.eclipse.jdt.internal.core.util.Util;\nimport org.eclipse.jdt.core.JavaConventions;\nimport org.eclipse.core.runtime.IStatus;\nimport org.eclipse.jdt.internal.core.JavaModelStatus;\n\n\/**\n * We override the behaviour of isValidCompilationUnitName() for .scala files.\n * The standard implementation applies Java identifier rules on the prefix of\n * the file name, so that, for example, \"package.scala\" would not be judged\n * valid. See Issues #3266, #1000859.\n *\/\n@SuppressWarnings(\"restriction\")\npublic aspect CompilationUnitNameAspect {\n\n\tprivate static boolean isScalaFileName(String name) {\n\t\treturn name != null && name.length() > 6 && name.endsWith(\".scala\");\n\t}\n\n\tpointcut isValidCompilationUnitName(String name, String sourceLevel, String complianceLevel):\n\t args(name, sourceLevel, complianceLevel) &&\n\t\texecution(boolean Util.isValidCompilationUnitName(String, String, String));\n\n\tboolean around(String name, String sourceLevel, String complianceLevel):\n\t isValidCompilationUnitName(name, sourceLevel, complianceLevel) {\n\t\tif (isScalaFileName(name))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn proceed(name, sourceLevel, complianceLevel);\n\t}\n\n\tpointcut validateCompilationUnitName(String name, String sourceLevel, String complianceLevel):\n\t args(name, sourceLevel, complianceLevel) &&\n\t\texecution(IStatus JavaConventions.validateCompilationUnitName(String, String, String));\n\n\tIStatus around(String name, String sourceLevel, String complianceLevel):\n\t validateCompilationUnitName(name, sourceLevel, complianceLevel) {\n\t\tif (isScalaFileName(name))\n\t\t\treturn JavaModelStatus.VERIFIED_OK;\n\t\telse\n\t\t\treturn proceed(name, sourceLevel, complianceLevel);\n\t}\n}\n","subject":"Add a 2nd pointcut to handle files named \"package.scala\".","message":"Add a 2nd pointcut to handle files named \"package.scala\".\n","lang":"AspectJ","license":"bsd-3-clause","repos":"romanowski\/scala-ide,dragos\/scala-ide,Kwestor\/scala-ide,wpopielarski\/scala-ide,dragos\/scala-ide,wpopielarski\/scala-ide,andrey-ilinykh\/scala-ide,mlangc\/scala-ide,stephenh\/scala-ide,Duhemm\/scala-ide,pilipolio\/scala-ide,romanowski\/scala-ide,mlangc\/scala-ide,dragos\/scala-ide,sschaef\/scala-ide,romanowski\/scala-ide,aleksi-lukkarinen\/scala-ide,wpopielarski\/scala-ide,Kwestor\/scala-ide,Kwestor\/scala-ide,mlangc\/scala-ide,sschaef\/scala-ide,Duhemm\/scala-ide,pilipolio\/scala-ide,pilipolio\/scala-ide,dragos\/scala-ide,sschaef\/scala-ide,scala-ide\/scala-ide,andrey-ilinykh\/scala-ide,wpopielarski\/scala-ide,romanowski\/scala-ide,andrey-ilinykh\/scala-ide,stephenh\/scala-ide,pilipolio\/scala-ide,scala-ide\/scala-ide,mlangc\/scala-ide,aleksi-lukkarinen\/scala-ide,scala-ide\/scala-ide,Duhemm\/scala-ide,Kwestor\/scala-ide,Duhemm\/scala-ide,scala-ide\/scala-ide,stephenh\/scala-ide,aleksi-lukkarinen\/scala-ide,stephenh\/scala-ide,sschaef\/scala-ide,andrey-ilinykh\/scala-ide,aleksi-lukkarinen\/scala-ide"} {"commit":"eb095b3b613e7435ab36361377c49a26fddecf4e","old_file":"tlatools\/src-aj\/tlc2\/tool\/distributed\/RMIMethodMonitorAspect.aj","new_file":"tlatools\/src-aj\/tlc2\/tool\/distributed\/RMIMethodMonitorAspect.aj","old_contents":"package tlc2.tool.distributed;\n\npublic aspect RMIMethodMonitorAspect {\n\t\n\t\/\/ catch all method calls to RMI methods\n\tpointcut callToRemoteMethod() : \n\t\t execution(* tlc2.tool.distributed.InternRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..))\n\t\n\tbefore(): (callToRemoteMethod()) {\n\t\tRMIMethodMonitor.entering(thisJoinPoint);\n\t}\n}\n","new_contents":"package tlc2.tool.distributed;\n\npublic aspect RMIMethodMonitorAspect {\n\t\n\t\/\/ catch all method calls to RMI methods\n\tpointcut callToRemoteMethod() : \n\t\t execution(* tlc2.tool.distributed.InternRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..));\n\t\n\tbefore(): (callToRemoteMethod()) {\n\t\tRMIMethodMonitor.entering(thisJoinPoint);\n\t}\n}\n","subject":"Fix syntax error due to missing semicolon","message":"Fix syntax error due to missing semicolon","lang":"AspectJ","license":"mit","repos":"lemmy\/tlaplus,tlaplus\/tlaplus,tlaplus\/tlaplus,tlaplus\/tlaplus,lemmy\/tlaplus,lemmy\/tlaplus,tlaplus\/tlaplus,lemmy\/tlaplus"} {"commit":"98ef6c6ee72660f6887e5ce648b5b3f369043ea2","old_file":"retro\/aspects\/src\/main\/aspect\/edu\/brown\/cs\/systems\/retro\/aspects\/cpu\/XTraceAPICalls.aj","new_file":"retro\/aspects\/src\/main\/aspect\/edu\/brown\/cs\/systems\/retro\/aspects\/cpu\/XTraceAPICalls.aj","old_contents":"package edu.brown.cs.systems.retro.aspects.cpu;\n\nimport edu.brown.cs.systems.baggage.Baggage;\nimport edu.brown.cs.systems.baggage.DetachedBaggage;\nimport edu.brown.cs.systems.retro.resources.CPUTracking;\nimport edu.brown.cs.systems.retro.resources.Execution;\nimport edu.brown.cs.systems.retro.throttling.ThrottlingPoint;\n\n\/** Intercepts X-Trace API calls in user code. Don't apply these pointcuts to the X-Trace library itself!\n * \n * @author jon *\/\npublic aspect XTraceAPICalls {\n\n before(): call(void Baggage.start(..)) || call(DetachedBaggage Baggage.swap(..)) {\n Execution.CPU.finished(thisJoinPointStaticPart);\n }\n\n after(): call(void Baggage.start(..)) || call(DetachedBaggage Baggage.swap(..)) || call(* Baggage.join(..)) {\n Execution.CPU.starting(thisJoinPointStaticPart);\n }\n\n \/** Whenever the XTraceContext is cleared, log an event to indicate the end of CPU processing bounds *\/\n before(): call(* Baggage.stop(..)) || call(* Baggage.discard(..)) {\n Execution.CPU.finished(thisJoinPointStaticPart);\n }\n\n before(): call(void ThrottlingPoint+.throttle()) {\n CPUTracking.finishTracking(); \/\/ finish and log current cycles\n }\n\n after(): call(void ThrottlingPoint+.throttle()) {\n CPUTracking.startTracking(); \/\/ start tracking cycles\n }\n\n}\n","new_contents":"package edu.brown.cs.systems.retro.aspects.cpu;\n\nimport edu.brown.cs.systems.baggage.Baggage;\nimport edu.brown.cs.systems.baggage.DetachedBaggage;\nimport edu.brown.cs.systems.retro.resources.CPUTracking;\nimport edu.brown.cs.systems.retro.resources.Execution;\nimport edu.brown.cs.systems.retro.throttling.ThrottlingPoint;\n\n\/** Intercepts X-Trace API calls in user code. Don't apply these pointcuts to the X-Trace library itself!\n * \n * @author jon *\/\npublic aspect XTraceAPICalls {\n\n before(): call(void Baggage.start(..)) || call(DetachedBaggage Baggage.swap(..)) {\n Execution.CPU.finished(thisJoinPointStaticPart);\n }\n \n after(): call(void Baggage.start(..)) || call(DetachedBaggage Baggage.swap(..)) {\n Execution.CPU.starting(thisJoinPointStaticPart);\n }\n\n \/** Whenever the XTraceContext is cleared, log an event to indicate the end of CPU processing bounds *\/\n before(): call(* Baggage.stop(..)) || call(* Baggage.discard(..)) {\n Execution.CPU.finished(thisJoinPointStaticPart);\n }\n\n before(): call(void ThrottlingPoint+.throttle()) {\n CPUTracking.finishTracking(); \/\/ finish and log current cycles\n }\n\n after(): call(void ThrottlingPoint+.throttle()) {\n CPUTracking.startTracking(); \/\/ start tracking cycles\n }\n\n}\n","subject":"Tweak X-Trace API call logging","message":"Tweak X-Trace API call logging\n","lang":"AspectJ","license":"bsd-3-clause","repos":"brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework"} {"commit":"4c328973e9e7203e63dc573aa555e4bf35e438e3","old_file":"src\/DubyBootstrap.aj","new_file":"src\/DubyBootstrap.aj","old_contents":"import java.util.ArrayList;\nimport java.util.List;\nimport mirah.lang.ast.Node;\nimport mirah.lang.ast.NodeScanner;\nimport mirah.lang.ast.NodeImpl;\n\n\nclass ChildCollector extends NodeScanner {\n private ArrayList children = new ArrayList();\n\n @Override\n public boolean enterDefault(Node node, Object arg) {\n if (node == arg) {\n return true;\n } else {\n children.add(node);\n return false;\n }\n }\n\n @Override\n public Object enterNullChild(Object arg){\n children.add(null);\n return null;\n }\n\n public ArrayList children() {\n return children;\n }\n}\n\naspect DubyBootsrap {\n declare parents: Node extends duby.lang.compiler.Node;\n\n public List NodeImpl.child_nodes() {\n ChildCollector c = new ChildCollector();\n c.scan(this, this);\n return c.children();\n }\n}","new_contents":"import java.util.ArrayList;\nimport java.util.List;\nimport mirah.lang.ast.Node;\nimport mirah.lang.ast.NodeScanner;\nimport mirah.lang.ast.NodeImpl;\n\n\/* To compile the new AST with duby extensions:\n * ajc -1.5 -inpath dist\/mirah-parser.jar \\\n * -outjar dist\/mirah-parser_with_duby.jar \\\n * -classpath ..\/mirah\/javalib\/mirah-bootstrap.jar:\/Developer\/aspectj1.6\/lib\/aspectjrt.jar \\\n * src\/DubyBootstrap.aj\n *\/\n\nclass ChildCollector extends NodeScanner {\n private ArrayList children = new ArrayList();\n\n @Override\n public boolean enterDefault(Node node, Object arg) {\n if (node == arg) {\n return true;\n } else {\n children.add(node);\n return false;\n }\n }\n\n @Override\n public Object enterNullChild(Object arg){\n children.add(null);\n return null;\n }\n\n public ArrayList children() {\n return children;\n }\n}\n\naspect DubyBootsrap {\n declare parents: Node extends duby.lang.compiler.Node;\n\n public List NodeImpl.child_nodes() {\n ChildCollector c = new ChildCollector();\n c.scan(this, this);\n return c.children();\n }\n}","subject":"Add compilation instructions for mirah-parser_with_duby.jar","message":"Add compilation instructions for mirah-parser_with_duby.jar\n","lang":"AspectJ","license":"apache-2.0","repos":"mirah\/mirah,mirah\/mirah-parser,uujava\/mirah-parser,felixvf\/mirah,mirah\/mirah,mirah\/mirah-parser,felixvf\/mirah-parser,uujava\/mirah-parser,uujava\/mirah-parser,felixvf\/mirah,mirah\/mirah,felixvf\/mirah,mirah\/mirah,mirah\/mirah-parser,felixvf\/mirah,felixvf\/mirah-parser,felixvf\/mirah-parser"} {"commit":"ffee28b2b42fdb7528430b69d2965302ca85469e","old_file":"tlatools\/src-aj\/tlc2\/tool\/distributed\/RMIMethodMonitorAspect.aj","new_file":"tlatools\/src-aj\/tlc2\/tool\/distributed\/RMIMethodMonitorAspect.aj","old_contents":"package tlc2.tool.distributed;\n\npublic aspect RMIMethodMonitorAspect {\n\t\n\t\/\/ catch all method calls to RMI methods\n\tpointcut callToRemoteMethod() : \n\t\t execution(* tlc2.tool.distributed.InternRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..))\n\t\n\tbefore(): (callToRemoteMethod()) {\n\t\tRMIMethodMonitor.entering(thisJoinPoint);\n\t}\n}\n","new_contents":"package tlc2.tool.distributed;\n\npublic aspect RMIMethodMonitorAspect {\n\t\n\t\/\/ catch all method calls to RMI methods\n\tpointcut callToRemoteMethod() : \n\t\t execution(* tlc2.tool.distributed.InternRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCServerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.TLCWorkerRMI.*(..))\n\t\t|| execution(* tlc2.tool.distributed.fp.FPSetRMI.*(..));\n\t\n\tbefore(): (callToRemoteMethod()) {\n\t\tRMIMethodMonitor.entering(thisJoinPoint);\n\t}\n}\n","subject":"Fix syntax error due to missing semicolon","message":"Fix syntax error due to missing semicolon\n\ngit-svn-id: 7acc490bd371dbc82047a939b87dc892fdc31f59@28620 76a6fc44-f60b-0410-a9a8-e67b0e8fc65c\n","lang":"AspectJ","license":"mit","repos":"lemmy\/tlaplus,tlaplus\/tlaplus,lemmy\/tlaplus,tlaplus\/tlaplus,lemmy\/tlaplus,lemmy\/tlaplus,tlaplus\/tlaplus,tlaplus\/tlaplus"} {"commit":"4e8b44b98f74ed9d331a1a9f07810ec5ce6b1ada","old_file":"org.lamport.tla.toolbox.uitest\/src\/org\/lamport\/tla\/toolbox\/test\/threading\/MonitorAspect.aj","new_file":"org.lamport.tla.toolbox.uitest\/src\/org\/lamport\/tla\/toolbox\/test\/threading\/MonitorAspect.aj","old_contents":"package org.lamport.tla.toolbox.test.threading;\n\nimport org.aspectj.lang.annotation.SuppressAjWarnings;\n\n\/**\n * The purpose of this advice is to intercept method execution in the backend\n * code - namely all code in the packages tlc2, tla2sany, tla2tex, pcal and util.\n * \n * It notifies the {@link MonitorAdaptor} about the method execution.\n *\/\npublic aspect MonitorAspect {\n\n\tpublic MonitorAspect() {\n\t\tMonitorAdaptor.setAspect(this);\n\t}\n\t\n\t\/\/ known places where backend call within UI thread are acceptable\n\tpointcut inFilter() : \n\t\twithincode(public boolean org.lamport.tla.toolbox.util.ResourceHelper.isValidSpecName(String));\n\n\t\/\/ catch all method calls (static and object ones)\n\tpointcut callToBackend() : \n\t\t execution(* tlc2..*.*(..))\n\t\t|| execution(* tla2sany..*.*(..))\n\t\t|| execution(* tla2tex..*.*(..))\n\t\t|| execution(* pcal..*.*(..))\n\t\t|| execution(* util..*.*(..));\n\t\n\t\/\/ capture calls to backend, but not within ourself or in filter\n\t@SuppressAjWarnings\n\tbefore(): (callToBackend()\n\t\t\t&& !cflowbelow(callToBackend()) && !cflowbelow(inFilter())) { \n\t\tMonitorAdaptor.enter(thisJoinPoint);\n\t}\n}\n","new_contents":"package org.lamport.tla.toolbox.test.threading;\n\nimport org.aspectj.lang.annotation.SuppressAjWarnings;\n\n\/**\n * The purpose of this advice is to intercept method execution in the backend\n * code - namely all code in the packages tlc2, tla2sany, tla2tex, pcal and util.\n * \n * It notifies the {@link MonitorAdaptor} about the method execution.\n *\/\npublic aspect MonitorAspect {\n\n\tpublic MonitorAspect() {\n\t\tMonitorAdaptor.setAspect(this);\n\t}\n\t\n\t\/\/ known places where backend call within UI thread are acceptable\n\tpointcut inFilter() : \n\t\twithincode(public boolean org.lamport.tla.toolbox.util.ResourceHelper.isValidSpecName(String));\n\n\t\/\/ catch all method calls (static and object ones)\n\tpointcut callToBackend() : \n\t\t execution(* tlc2..*.*(..))\n\t\t|| execution(* tla2sany..*.*(..))\n\t\t|| execution(* tla2tex..*.*(..))\n\t\t|| execution(* pcal..*.*(..))\n\t\t|| execution(* util..*.*(..));\n\t\n\t\/\/ capture calls to backend, but not within ourself or in filter\n\tbefore(): (callToBackend()\n\t\t\t&& !cflowbelow(callToBackend()) && !cflowbelow(inFilter())) { \n\t\tMonitorAdaptor.enter(thisJoinPoint);\n\t}\n}\n","subject":"Remove annotation to remove java5 dependency","message":"Remove annotation to remove java5 dependency\n\ngit-svn-id: 7acc490bd371dbc82047a939b87dc892fdc31f59@22179 76a6fc44-f60b-0410-a9a8-e67b0e8fc65c\n","lang":"AspectJ","license":"mit","repos":"tlaplus\/tlaplus,tlaplus\/tlaplus,lemmy\/tlaplus,lemmy\/tlaplus,lemmy\/tlaplus,lemmy\/tlaplus,tlaplus\/tlaplus,tlaplus\/tlaplus"} {"commit":"f405a6e97b7c3063a2fcaeab1e782eac33765689","old_file":"tracingplane\/aspects\/src\/main\/aspect\/edu\/brown\/cs\/systems\/tracing\/aspects\/TracingPlaneInit.aj","new_file":"tracingplane\/aspects\/src\/main\/aspect\/edu\/brown\/cs\/systems\/tracing\/aspects\/TracingPlaneInit.aj","old_contents":"","new_contents":"package edu.brown.cs.systems.tracing.aspects;\n\nimport edu.brown.cs.systems.baggage.BaggageUtils;\n\n\/**\n * Instruments all main methods\n *\/\npublic aspect TracingPlaneInit {\n \n declare precedence: TracingPlaneInit, *;\n\n before(): execution(public static void main(String[])) {\n BaggageUtils.checkEnvironment(System.getenv());\n }\n\n}\n","subject":"Add aspect to check environment variables for Baggage from main method","message":"Add aspect to check environment variables for Baggage from main method\n","lang":"AspectJ","license":"bsd-3-clause","repos":"brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework,brownsys\/tracing-framework"}