This file contains hidden or 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
| from click import command, option, Option, UsageError | |
| class MutuallyExclusiveOption(Option): | |
| def __init__(self, *args, **kwargs): | |
| self.mutually_exclusive = set(kwargs.pop('mutually_exclusive', [])) | |
| help = kwargs.get('help', '') | |
| if self.mutually_exclusive: | |
| ex_str = ', '.join(self.mutually_exclusive) | |
| kwargs['help'] = help + ( |
This file contains hidden or 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
| import os | |
| import re | |
| exts = set(['.java', '.groovy']) | |
| BEGIN_JAVADOC = re.compile('^\s*\/\*\*.*') | |
| END_JAVADOC = re.compile('^\s*\*\/.*') | |
| MISSING_PARAGRAPH = re.compile('^(\s*)\*\s*$') | |
This file contains hidden or 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
| 507,513d506 | |
| < | |
| < // cert auth | |
| < case 'ssh-rsa-cert-v01@openssh.com': | |
| < case 'ssh-dss-cert-v01@openssh.com': | |
| < case 'ecdsa-sha2-nistp256-cert-v01@openssh.com': | |
| < case 'ecdsa-sha2-nistp384-cert-v01@openssh.com': | |
| < case 'ecdsa-sha2-nistp521-cert-v01@openssh.com': | |
| 535c528 | |
| < if (!pubKeyFullType.startsWith(sigFullType)) { |
This file contains hidden or 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
| import org.apache.logging.log4j.LogManager; | |
| import org.apache.logging.log4j.Logger; | |
| public class Log4JTest { | |
| private static final Logger logger = LogManager.getLogger("Log4JTest"); | |
| public static void main(String[] args) { | |
| logger.info("this is a normal message and will appear before and after the fix"); | |
| logger.info("filter -- this message should not appear after LOG4J2-2123"); | |
| } | |
| } |
OlderNewer