This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Dereference { | |
template<typename T> | |
const T& operator()(const T* ptr) const | |
{ | |
return *ptr; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Aspect | |
public final class MethodCounter { | |
private static final InternalLogger LOG = InternalLoggerFactory.getInstance(MethodCounter.class); | |
public MethodCounter() { | |
} | |
@Around( | |
// @checkstyle StringLiteralsConcatenation (2 lines) | |
"(execution(* *(..)) || initialization(*.new(..)))" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Documented | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target({ElementType.METHOD, ElementType.TYPE}) | |
public @interface AnnoCounter { | |
String name() default ""; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def log_start(logger): | |
""" | |
Debug functions | |
""" | |
def decorator(func): | |
@wraps(func) | |
def wrapper(*args, **kwargs): | |
logger.debug('Calling: %s with: args: %s, kwargs:%s' % | |
(func.__name__, args, kwargs)) |