bug_id
stringlengths
22
44
func_before
stringlengths
101
9.03k
func_after
stringlengths
161
12.3k
traccar-traccar-d797671b2ce6
private Position decodeTransparent(DeviceSession deviceSession, ByteBuf buf) { int type = buf.readUnsignedByte(); if (type == 0xF0) { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); Date time = readDate(buf, ...
private Position decodeTransparent(DeviceSession deviceSession, ByteBuf buf) { int type = buf.readUnsignedByte(); if (type == 0xF0) { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); Date time = readDate(buf, ...
traccar-traccar-779486a30483
protected Object decodeAvrmc( String sentence, Channel channel, SocketAddress remoteAddress) { Parser parser = new Parser(PATTERN_AVRMC, sentence); if (!parser.matches()) { return null; } DeviceSession deviceSession = getDeviceSession(channel, remo...
protected Object decodeAvrmc( String sentence, Channel channel, SocketAddress remoteAddress) { Parser parser = new Parser(PATTERN_AVRMC, sentence); if (!parser.matches()) { return null; } DeviceSession deviceSession = getDeviceSession(channel, remo...
traccar-traccar-4ece72558c80
private List<Position> parseData( Channel channel, SocketAddress remoteAddress, ByteBuf buf, int locationPacketId, String... imei) { List<Position> positions = new LinkedList<>(); if (!connectionless) { buf.readUnsignedInt(); } int codec = buf.readUnsignedByt...
private List<Position> parseData( Channel channel, SocketAddress remoteAddress, ByteBuf buf, int locationPacketId, String... imei) { List<Position> positions = new LinkedList<>(); if (!connectionless) { buf.readUnsignedInt(); } int codec = buf.readUnsignedByt...
jhy-jsoup-6ccd158754e2
private static void appendToAscii(String s, boolean spaceAsPlus, StringBuilder sb) throws UnsupportedEncodingException { for (int i = 0; i < s.length(); i++) { int c = s.codePointAt(i); if (c == ' ') { sb.append(spaceAsPlus ? '+' : "%20"); } else if (c > 1...
private static void appendToAscii(String s, boolean spaceAsPlus, StringBuilder sb) throws UnsupportedEncodingException { for (int i = 0; i < s.length(); i++) { int c = s.codePointAt(i); if (c == ' ') { sb.append(spaceAsPlus ? '+' : "%20"); } else if (c > 1...
snowflakedb-snowflake-jdbc-f2c8eba73535
static boolean isNonRetryableHTTPCode(CloseableHttpResponse response, boolean retryHTTP403) { return response != null && (response.getStatusLine().getStatusCode() < 500 || response.getStatusLine().getStatusCode() >= 600) && response.getStatusLine().getStatusCode()...
static boolean isNonRetryableHTTPCode(CloseableHttpResponse response, boolean retryHTTP403) { return response != null && (response.getStatusLine().getStatusCode() < 500 || response.getStatusLine().getStatusCode() >= 600) && response.getStatusLine().getStatusCode()...
traccar-traccar-4a5b8d79b560
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { String sentence = (String) msg; sentence = sentence.substring(sentence.indexOf('|') + 1, sentence.lastIndexOf('|')); Position position = new Position(); pos...
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { String sentence = (String) msg; sentence = sentence.substring(sentence.indexOf('|') + 1, sentence.lastIndexOf('|')); Position position = new Position(); pos...
traccar-traccar-6631d7c4b352
@Override protected Object decode( ChannelHandlerContext ctx, Channel channel, ByteBuf buf) throws Exception { int endIndex = -1; for (int i = buf.writerIndex() - 1; i >= buf.readerIndex(); i--) { if (buf.getByte(i) == ']') { endIndex = i + 1; ...
@Override protected Object decode( ChannelHandlerContext ctx, Channel channel, ByteBuf buf) throws Exception { int brackets = 0; int endIndex = -1; for (int i = buf.readerIndex(); i < buf.writerIndex(); i++) { byte b = buf.getByte(i); switch (b) { ...
jhy-jsoup-9e5869b6e1e2
void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException { final boolean prettyPrint = out.prettyPrint(); final Element parent = parentNode instanceof Element ? ((Element) parentNode) : null; final boolean normaliseWhite = prettyPrint && !Element.preser...
void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException { final boolean prettyPrint = out.prettyPrint(); final Element parent = parentNode instanceof Element ? ((Element) parentNode) : null; final boolean normaliseWhite = prettyPrint && !Element.preser...
stellar-java-stellar-sdk-15cc6d2c8131
@Override public boolean equals(Object object) { if (!(object instanceof KeyPair)) { return false; } KeyPair other = (KeyPair) object; return this.mPrivateKey.equals(other.mPrivateKey) && this.mPublicKey.equals(other.mPublicKey); }
@Override public boolean equals(Object object) { if (!(object instanceof KeyPair)) { return false; } KeyPair other = (KeyPair) object; return Objects.equal(this.mPrivateKey, other.mPrivateKey) && this.mPublicKey.equals(other.mPublicKey); }
jhy-jsoup-9bb07d2ab43c
protected void replaceChild(Node out, Node in) { Validate.isTrue(out.parentNode == this); Validate.notNull(in); if (in.parentNode != null) in.parentNode.removeChild(in); final int index = out.siblingIndex; ensureChildNodes().set(index, in); in.parentNode =...
protected void replaceChild(Node out, Node in) { Validate.isTrue(out.parentNode == this); Validate.notNull(in); if (out == in) return; if (in.parentNode != null) in.parentNode.removeChild(in); final int index = out.siblingIndex; ensureChildNodes().set(ind...
jhy-jsoup-29be991198d3
void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException { final boolean prettyPrint = out.prettyPrint(); final Element parent = parentNode instanceof Element ? ((Element) parentNode) : null; final boolean normaliseWhite = prettyPrint && !Element.preser...
void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException { final boolean prettyPrint = out.prettyPrint(); final Element parent = parentNode instanceof Element ? ((Element) parentNode) : null; final boolean normaliseWhite = prettyPrint && !Element.preser...
LMAX-Exchange-Simple-DSL-81182e58bd80
void consume(final RepeatingArgGroup groupArg, final Deque<NameValuePair> arguments) { final Map<DslArg, List<String>> valuesByArg = new HashMap<>(); final SimpleArgumentProcessor processor = new SimpleArgumentProcessor(valuesByArg, "Did not supply a value for %s in group " + gro...
void consume(final RepeatingArgGroup groupArg, final Deque<NameValuePair> arguments) { final Map<DslArg, List<String>> valuesByArg = new HashMap<>(); final SimpleArgumentProcessor processor = new SimpleArgumentProcessor(valuesByArg, "Did not supply a value for %s in group " + gro...
jhy-jsoup-111919256590
private boolean isInlineable(Document.OutputSettings out) { if (!tag.isInline()) return false; return (parent() == null || parent().isBlock()) && !isEffectivelyFirst() && !out.outline(); }
private boolean isInlineable(Document.OutputSettings out) { if (!tag.isInline()) return false; return (parent() == null || parent().isBlock()) && !isEffectivelyFirst() && !out.outline() && !isNode("br"); }
traccar-traccar-d244b4bc4999
public String getString(String key, String defaultValue) { if (attributes.containsKey(key)) { Object value = attributes.containsKey(key); return value != null ? value.toString() : null; } else { return defaultValue; } }
public String getString(String key, String defaultValue) { if (attributes.containsKey(key)) { Object value = attributes.get(key); return value != null ? value.toString() : null; } else { return defaultValue; } }
traccar-traccar-4722f9b6b648
private Position decodeIridiumPosition(Channel channel, SocketAddress remoteAddress, ByteBuf buf) { buf.readUnsignedShortLE(); buf.skipBytes(3); buf.readUnsignedIntLE(); DeviceSession deviceSession = getDeviceSession( channel, remoteAddress, buf.readSlice(15).toStr...
private Position decodeIridiumPosition(Channel channel, SocketAddress remoteAddress, ByteBuf buf) { buf.readUnsignedShort(); buf.skipBytes(3); buf.readUnsignedInt(); DeviceSession deviceSession = getDeviceSession( channel, remoteAddress, buf.readSlice(15).toString(...
jhy-jsoup-d126488db626
private String consumeSubQuery() { StringBuilder sq = StringUtil.borrowBuilder(); while (!tq.isEmpty()) { if (tq.matches("(")) sq.append("(").append(tq.chompBalanced('(', ')')).append(")"); else if (tq.matches("[")) sq.append("[").append(tq.cho...
private String consumeSubQuery() { StringBuilder sq = StringUtil.borrowBuilder(); boolean seenNonCombinator = false; while (!tq.isEmpty()) { if (tq.matches("(")) sq.append("(").append(tq.chompBalanced('(', ')')).append(")"); else if (tq.matches("[")) ...
traccar-traccar-6f59f756a7d3
private Position decodePosition( Channel channel, DeviceSession deviceSession, ByteBuf buf, int type, int index, ByteBuf imei) { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); position.set(Position.KEY_INDEX, index); ...
private Position decodePosition( Channel channel, DeviceSession deviceSession, ByteBuf buf, int type, int index, ByteBuf imei) { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); position.set(Position.KEY_INDEX, index); ...
traccar-traccar-105873ab5256
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.readUnsignedByte(); int flags = buf.readUnsignedByte(); buf.readUnsignedShortLE(); buf.readUnsignedShortLE(); ...
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.readUnsignedByte(); int flags = buf.readUnsignedByte(); buf.readUnsignedShortLE(); buf.readUnsignedShortLE(); ...
traccar-traccar-1b8993293646
private Object decodeLocationNew( Channel channel, SocketAddress remoteAddress, String sentence) { Parser parser = new Parser(PATTERN_NEW, sentence); if (!parser.matches()) { return null; } String imei = parser.next(); DeviceSession deviceSession = get...
private Object decodeLocationNew( Channel channel, SocketAddress remoteAddress, String sentence) { Parser parser = new Parser(PATTERN_NEW, sentence); if (!parser.matches()) { return null; } String imei = parser.next(); DeviceSession deviceSession = get...
revelc-formatter-maven-plugin-3e9843d2ab99
@Override protected String doFormat(final String code, final LineEnding ending) throws IOException { final var source = new InputSource(new StringReader(code)); final var parser = new CSSOMParser(new SACParserCSS3()); final var sheet = (CSSStyleSheetImpl) parser.parseStyleSheet(source, n...
@Override protected String doFormat(final String code, final LineEnding ending) throws IOException { final var source = new InputSource(new StringReader(code)); final var parser = new CSSOMParser(new SACParserCSS3()); final var sheet = (CSSStyleSheetImpl) parser.parseStyleSheet(source, n...
traccar-traccar-3b6900a95342
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.readUnsignedByte(); int flags = buf.readUnsignedByte(); buf.readUnsignedShortLE(); buf.readUnsignedShortLE(); ...
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.readUnsignedByte(); int flags = buf.readUnsignedByte(); buf.readUnsignedShortLE(); buf.readUnsignedShortLE(); ...
retel-io-ari-proxy-610e9b6725e1
public static Try<Done> registerCallContext( final ActorRef<CallContextProviderMessage> callContextProvider, final String callContext, final AriCommand ariCommand) { if (!ariCommand.extractCommandType().isCreationCommand()) { return Try.success(Done.done()); } final Option<AriResou...
public static Try<Done> registerCallContext( final ActorRef<CallContextProviderMessage> callContextProvider, final String callContext, final AriCommand ariCommand) { if (!(ariCommand.extractCommandType().isCreationCommand() && "POST".equals(ariCommand.getMethod()))) { return Try.su...
spring-projects-spring-retry-e6091f790c64
public BackOffPolicy build() { if (this.multiplier != null && this.multiplier > 0 || this.multiplierSupplier != null) { ExponentialBackOffPolicy policy; if (Boolean.TRUE.equals(this.random)) { policy = new ExponentialRandomBackOffPolicy(); } else { policy = new ExponentialBackOffPolicy(); } ...
public BackOffPolicy build() { if (this.multiplier != null && this.multiplier > 0 || this.multiplierSupplier != null) { ExponentialBackOffPolicy policy; if (Boolean.TRUE.equals(this.random)) { policy = new ExponentialRandomBackOffPolicy(); } else { policy = new ExponentialBackOffPolicy(); } ...
jhy-jsoup-1e69577e358c
URL build() { try { URI uri = new URI( u.getProtocol(), u.getUserInfo(), IDN.toASCII(decodePart(u.getHost())), u.getPort(), decodePart(u.getPath()), null, null ); String norm...
URL build() { try { URI uri = new URI( u.getProtocol(), u.getUserInfo(), IDN.toASCII(decodePart(u.getHost())), u.getPort(), null, null, null ); StringBuilder normUrl = StringUtil.borrowBuild...
traccar-traccar-b77131f4be38
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.skipBytes(1); manufacturer = buf.readSlice(2).toString(StandardCharsets.US_ASCII); buf.skipBytes(1); int idIndex ...
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.skipBytes(1); manufacturer = buf.readSlice(2).toString(StandardCharsets.US_ASCII); buf.skipBytes(1); int idIndex ...
traccar-traccar-6e5481ebb185
private boolean decodeLbs(Position position, ByteBuf buf, int type, boolean hasLength) { int length = 0; if (hasLength) { length = buf.readUnsignedByte(); if (length == 0) { boolean zeroedData = true; for (int i = buf.readerIndex() + 9; i < buf...
private boolean decodeLbs(Position position, ByteBuf buf, int type, boolean hasLength) { int length = 0; if (hasLength) { length = buf.readUnsignedByte(); if (length == 0) { boolean zeroedData = true; for (int i = buf.readerIndex() + 9; i < buf...
traccar-traccar-413d9a49c41a
private Position decodePosition( Channel channel, SocketAddress remoteAddress, ByteBuf buf, int index) { DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); if (deviceSession == null) { return null; } Position position = new Position(getPro...
private Position decodePosition( Channel channel, SocketAddress remoteAddress, ByteBuf buf, int index) { DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); if (deviceSession == null) { return null; } Position position = new Position(getPro...
traccar-traccar-2749e520c9ea
private Position decodeLocation2(DeviceSession deviceSession, ByteBuf buf, int type) { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); Jt600ProtocolDecoder.decodeBinaryLocation(buf, position); position.setValid(type != MSG_LOCAT...
private Position decodeLocation2(DeviceSession deviceSession, ByteBuf buf, int type) { Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); Jt600ProtocolDecoder.decodeBinaryLocation(buf, position); position.setValid(type != MSG_LOCAT...
traccar-traccar-f92bde208800
private void readBinaryCustomData(Position position, ByteBuf buf, String form) { CellTower cellTower = new CellTower(); String[] keys = form.substring(1).split("%"); for (String key : keys) { switch (key) { case "SA": position.set(Position.KEY_...
private void readBinaryCustomData(Position position, ByteBuf buf, String form) { CellTower cellTower = new CellTower(); String[] keys = form.substring(1).split("%"); for (String key : keys) { switch (key) { case "SA": position.set(Position.KEY_...
traccar-traccar-f4d10160d951
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.readUnsignedByte(); int flags = buf.readUnsignedByte(); buf.readUnsignedShortLE(); buf.readUnsignedShortLE(); ...
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.readUnsignedByte(); int flags = buf.readUnsignedByte(); buf.readUnsignedShortLE(); buf.readUnsignedShortLE(); ...
traccar-traccar-5c26f25b3b0a
private List<Position> decodeBinaryE(Channel channel, SocketAddress remoteAddress, ByteBuf buf) { List<Position> positions = new LinkedList<>(); buf.readerIndex(buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) ',') + 1); String imei = buf.readSlice(15).toString(StandardCharsets.US_AS...
private List<Position> decodeBinaryE(Channel channel, SocketAddress remoteAddress, ByteBuf buf) { List<Position> positions = new LinkedList<>(); buf.readerIndex(buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) ',') + 1); String imei = buf.readSlice(15).toString(StandardCharsets.US_AS...
traccar-traccar-7ce4fb9a628f
protected Object decodePosition(DeviceSession deviceSession, String content) throws Exception { Parser parser = new Parser(PATTERN_POSITION, content); if (!parser.matches()) { return null; } Position position = new Position(getProtocolName()); position.setDeviceId...
protected Object decodePosition(DeviceSession deviceSession, String content) throws Exception { Parser parser = new Parser(PATTERN_POSITION, content); if (!parser.matches()) { return null; } Position position = new Position(getProtocolName()); position.setDeviceId...
jhy-jsoup-e52224fbfe66
@Override void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException { final boolean prettyPrint = out.prettyPrint(); final Element parent = parentNode instanceof Element ? ((Element) parentNode) : null; final boolean normaliseWhite = prettyPrint && !...
@Override void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException { final boolean prettyPrint = out.prettyPrint(); final Element parent = parentNode instanceof Element ? ((Element) parentNode) : null; final boolean normaliseWhite = prettyPrint && !...
xtremexp-UT4X-Converter-e719841eb260
protected String convertScaleAndToT3D(double scaleFactor) { this.convert(); this.scale(scaleFactor); return "Begin Map\nBegin Level\n" + toT3d() + "End Level\nEnd Map"; }
protected String convertScaleAndToT3D(double scaleFactor) { this.convert(); this.scale(scaleFactor); String convT3d = toT3d(); if (convT3d == null) { convT3d = ""; for (T3DActor repActor : this.children) { convT3d += repActor.toT3d(); } } return "Begin Map\nBegin Level\n" + convT3d +...
traccar-traccar-5e18cb586d34
private Object decodeCan(Channel channel, SocketAddress remoteAddress, String sentence) throws ParseException { Position position = new Position(getProtocolName()); int index = 0; String[] values = sentence.split(","); index += 1; index += 1; DeviceSession deviceSes...
private Object decodeCan(Channel channel, SocketAddress remoteAddress, String sentence) throws ParseException { Position position = new Position(getProtocolName()); int index = 0; String[] values = sentence.split(","); index += 1; index += 1; DeviceSession deviceSes...
traccar-traccar-9a1cbeb7b754
private List<Position> decodeBinaryE(Channel channel, SocketAddress remoteAddress, ByteBuf buf) { List<Position> positions = new LinkedList<>(); buf.readerIndex(buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) ',') + 1); String imei = buf.readSlice(15).toString(StandardCharsets.US_AS...
private List<Position> decodeBinaryE(Channel channel, SocketAddress remoteAddress, ByteBuf buf) { List<Position> positions = new LinkedList<>(); buf.readerIndex(buf.indexOf(buf.readerIndex(), buf.writerIndex(), (byte) ',') + 1); String imei = buf.readSlice(15).toString(StandardCharsets.US_AS...
TheAlgorithms-Java-e5c7a08874a6
public static int postfixEvaluate(final String exp) { Stack<Integer> s = new Stack<Integer>(); Scanner tokens = new Scanner(exp); while (tokens.hasNext()) { if (tokens.hasNextInt()) { s.push(tokens.nextInt()); } else { int num2 = s.po...
public static int postfixEvaluate(final String exp) { Stack<Integer> s = new Stack<Integer>(); Scanner tokens = new Scanner(exp); while (tokens.hasNext()) { if (tokens.hasNextInt()) { s.push(tokens.nextInt()); } else { if (s.size() < ...
traccar-traccar-a9c311855a49
@Override protected Object decode(DeviceSession deviceSession, MqttPublishMessage message) throws Exception { JsonObject json; try (ByteBufferInputStream inputStream = new ByteBufferInputStream(message.payload().nioBuffer())) { json = Json.createReader(inputStream).readObject(); ...
@Override protected Object decode(DeviceSession deviceSession, MqttPublishMessage message) throws Exception { JsonObject json; try (ByteBufferInputStream inputStream = new ByteBufferInputStream(message.payload().nioBuffer())) { json = Json.createReader(inputStream).readObject(); ...
jhy-jsoup-45ed00232722
static URL encodeUrl(URL u) { u = punyUrl(u); try { String urlS = u.toExternalForm(); urlS = urlS.replace(" ", "%20"); final URI uri = new URI(urlS); return new URL(uri.toASCIIString()); } catch (URISyntaxException | MalformedURLException e) { ...
static URL encodeUrl(URL u) { u = punyUrl(u); try { URI uri = new URI(u.getProtocol(), u.getUserInfo(), u.getHost(), u.getPort(), u.getPath(), u.getQuery(), u.getRef()); return uri.toURL(); } catch (URISyntaxException | MalformedURLException e) { return u; ...
traccar-traccar-ed3950fbdccf
@Override protected Object encodeCommand(Command command) { ByteBuf content = Unpooled.buffer(); switch (command.getType()) { case Command.TYPE_POSITION_SINGLE: return encodeContent(command.getDeviceId(), GatorProtocolDecoder.MSG_POSITION_REQUEST, content); ...
@Override protected Object encodeCommand(Command command) { ByteBuf content = Unpooled.buffer(); switch (command.getType()) { case Command.TYPE_POSITION_SINGLE: return encodeContent(command.getDeviceId(), GatorProtocolDecoder.MSG_POSITION_REQUEST, content); ...
fusesource-jansi-58260c6ce08c
public static Appendable render(final String input, Appendable target) throws IOException { int i = 0; int j, k; while (true) { j = input.indexOf(BEGIN_TOKEN, i); if (j == -1) { if (i == 0) { target.append(input); ...
public static Appendable render(final String input, Appendable target) throws IOException { int i = 0; int j, k; while (true) { j = input.indexOf(BEGIN_TOKEN, i); if (j == -1) { if (i == 0) { target.append(input); ...
traccar-traccar-782fd787d14b
private Position decode04(Channel channel, SocketAddress remoteAddress, ByteBuf buf) throws ParseException { buf.readUnsignedShortLE(); buf.readUnsignedShortLE(); int index = buf.readUnsignedShortLE(); String id = String.format("%08d%07d", buf.readUnsignedIntLE(), buf.readUnsignedI...
private Position decode04(Channel channel, SocketAddress remoteAddress, ByteBuf buf) throws ParseException { buf.readUnsignedShortLE(); buf.readUnsignedShortLE(); int index = buf.readUnsignedShortLE(); String id = String.format("%08d%07d", buf.readUnsignedIntLE(), buf.readUnsignedI...
jhy-jsoup-f2913bd731f1
void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException { final boolean prettyPrint = out.prettyPrint(); final Element parent = parentNode instanceof Element ? ((Element) parentNode) : null; final boolean normaliseWhite = prettyPrint && !Element.preser...
void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException { final boolean prettyPrint = out.prettyPrint(); final Element parent = parentNode instanceof Element ? ((Element) parentNode) : null; final boolean normaliseWhite = prettyPrint && !Element.preser...
crawler-commons-crawler-commons-2c2cb3bf7a95
private SimpleRobotRules parseContent(String url, byte[] content, String contentType, Collection<String> robotNames, boolean exactUserAgentMatching) { if ((content == null) || (content.length == 0)) { return new SimpleRobotRules(RobotRulesMode.ALLOW_ALL); } int bytesLen = content...
private SimpleRobotRules parseContent(String url, byte[] content, String contentType, Collection<String> robotNames, boolean exactUserAgentMatching) { if ((content == null) || (content.length == 0)) { return new SimpleRobotRules(RobotRulesMode.ALLOW_ALL); } int bytesLen = content...
vmzakharov-dataframe-ec-12af99192d24
@Override public String asStringLiteral() { return '"' + this.value + '"'; }
@Override public String asStringLiteral() { return this.value.indexOf('\"') == -1 ? '"' + this.value + '"' : '\'' + this.value + '\''; }
traccar-traccar-230f629c3dce
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.readUnsignedShort(); String imei = String.format("%015d", buf.readLong()); DeviceSession deviceSession = getDeviceSession(...
@Override protected Object decode( Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ByteBuf buf = (ByteBuf) msg; buf.readUnsignedShort(); String imei = String.format("%015d", buf.readLong()); DeviceSession deviceSession = getDeviceSession(...
traccar-traccar-3642b9520863
private Position decodePosition( Channel channel, SocketAddress remoteAddress, ByteBuf buf, int index) { DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); if (deviceSession == null) { return null; } Position position = new Position(getPro...
private Position decodePosition( Channel channel, SocketAddress remoteAddress, ByteBuf buf, int index) { DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); if (deviceSession == null) { return null; } Position position = new Position(getPro...
traccar-traccar-3dad196b882c
private Position decodePosition( Channel channel, SocketAddress remoteAddress, ByteBuf buf, int index) { DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); if (deviceSession == null) { return null; } Position position = new Position(getPro...
private Position decodePosition( Channel channel, SocketAddress remoteAddress, ByteBuf buf, int index) { DeviceSession deviceSession = getDeviceSession(channel, remoteAddress); if (deviceSession == null) { return null; } Position position = new Position(getPro...