text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>le except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>.AbstractBlackBoxTestCase; /** * @author Sean Owen */ public final class UPCEANExtensionBlackBox1TestCase extends AbstractBlackBoxTestCase { public UPCEANExtensionBlackBox1TestCase() { super("src/test/resources/blackbox/upcean-extension-1", new MultiFormatReader(), BarcodeFormat.EAN_13); add...
fim
zxing/zxing
java
<|fim_suffix|>stCase { public UPCEBlackBox1TestCase() { super("src/test/resources/blackbox/upce-1", new MultiFormatReader(), BarcodeFormat.UPC_E); addTest(3, 3, 0.0f); addTest(3, 3, 180.0f); } }<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2016 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>ckBox1TestCase() { super("src/test/resources/blackbox/rss14-1", new MultiFormatReader(), BarcodeFormat.RSS_14); addTest(6, 6, 0.0f); addTest(6, 6, 180.0f); } }<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>Builder(); CharSequence dotsAndXs = ZERO.matcher(ONE.matcher(data).replaceAll("X")).replaceAll("."); int current = 0; while (current < dotsAndXs.length()) { sb.append(' '); for (int i = 0; i < 8 && current < dotsAndXs.length(); ++i) { sb.append(dotsAndXs.charAt(current)); ...
fim
zxing/zxing
java
<|fim_suffix|>ta); data = " XXX..X.."; checkWithoutSpaces(data); data = " XX"; checkWithoutSpaces(data); data = " ....XX.. ..XX"; checkWithoutSpaces(data); data = " ....XX.. ..XX..XX ....X.X. ........"; checkWithoutSpaces(data); } private static void checkWithoutSpaces(CharSeque...
fim
zxing/zxing
java
/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_suffix|>rmat.RSS_EXPANDED); addTest(117, 117, 0.0f); addTest(117, 117, 180.0f); } } <|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
fim
zxing/zxing
java
<|fim_suffix|>s Exception { assertCorrectImage2string("12.png", "(01)98898765432106(3103)001750"); } @Test public void testDecodeRow2string13() throws Exception { assertCorrectImage2string("13.png", "(01)90012345678908(3922)795"); } @Test public void testDecodeRow2string14() throws Exception { ...
fim
zxing/zxing
java
<|fim_suffix|> @Test public void testDecodeDataCharacter() throws Exception { BufferedImage image = readImage("3.png"); BinaryBitmap binaryMap = new BinaryBitmap(new GlobalHistogramBinarizer(new BufferedImageLuminanceSource(image))); BitArray row = binaryMap.getBlackRow(binaryMap.getHeight() / 2, null);...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2012 Z<|fim_suffix|> /* * These authors would like to acknowledge the Spanish Ministry of Industry, * Tourism and Trade, for the support in the project TSI020301-2008-2 * "PIRAmIDE: Personalizable Interactions with Resources on AmI-enabled * Mobile Dynamic Environments", led by Tre...
fim
zxing/zxing
java
<|fim_suffix|>I020301-2008-2 * "PIRAmIDE: Personalizable Interactions with Resources on AmI-enabled * Mobile Dynamic Environments", led by Treelogic * ( http://www.treelogic.com/ ): * * http://www.piramidepse.com/ */ package com.google.zxing.oned.rss.expanded; import com.google.zxing.BarcodeFormat; import com...
fim
zxing/zxing
java
<|fim_suffix|>onstructResult(totalPairs); assertEquals("(01)98898765432106(3202)012345(15)991231", result.getText()); } @Test public void testCompleteDecode() throws Exception { OneDReader rssExpandedReader = new RSSExpandedReader(); BinaryBitmap binaryMap = TestCaseUtil.getBinaryBitmap("src/test/re...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2012 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_suffix|>r(binary).parseInformation(); } } <|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lic...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2010 ZXing authors * * Licensed und<|fim_suffix|> applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific lang...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>ase extends AbstractBlackBoxTestCase { public PDF417BlackBox2TestCase() { super("src/test/resources/blackbox/pdf417-2", new MultiFormatReader(), BarcodeFormat.PDF_417); addTest(25, 25, 0, 0, 0.0f); addTest(25, 25, 0, 0, 180.0f); } } <|fim_prefix|>/* * Copyright 2009 ZXing authors * * ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by<|fim_suffix...
fim
zxing/zxing
java
<|fim_suffix|>getImageFileLists() throws IOException { Map<String,List<Path>> result = new HashMap<>(); for (Path file : getImageFiles()) { String testImageFileName = file.getFileName().toString(); String fileBaseName = testImageFileName.substring(0, testImageFileName.indexOf('-')); List<Path>...
fim
zxing/zxing
java
<|fim_suffix|> "X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X \n" + "X X X X X X X X X X X X X X ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>] = location; } } return erasures; } static Random getRandom() { return new Random(0xDEADBEEF); } }<|fim_prefix|>/* * Copyright 2012 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Lic...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2012 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>, null, false); } @Test public void testDimensions() throws Exception { // test https://github.com/zxing/zxing/issues/1831 String input = "0000000001000000022200000003330444400888888881010101010"; testDimensions(input, new Dimensions(1, 30, 7, 10)); testDimensions(input, new Dimen...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2026 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * <|fim_suffix|>AGE_PATH = "src/test/resources/blackbox/triggeringImage1567.jp...
fim
zxing/zxing
java
<|fim_suffix|>r the specific language governing permissions and * limitations under the License. */ package com.google.zxing.qrcode; import com.google.zxing.BarcodeFormat; import com.google.zxing.MultiFormatReader; import com.google.zxing.common.AbstractBlackBoxTestCase; /** * @author Sean Owen */ public final c...
fim
zxing/zxing
java
<|fim_suffix|>kBoxTestCase { public QRCodeBlackBox2TestCase() { super("src/test/resources/blackbox/qrcode-2", new MultiFormatReader(), BarcodeFormat.QR_CODE); addTest(32, 32, 0.0f); addTest(30, 30, 90.0f); addTest(31, 31, 180.0f); addTest(31, 31, 270.0f); } } <|fim_prefix|>/* * Copyright 2008...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia<|fim_suffix|>nds AbstractBlackBoxTestCase { public QRCodeBlackBox3TestCase() { super("src/test/resources/blackbox/qrcode-3", new MultiFormatReader(...
fim
zxing/zxing
java
<|fim_suffix|>kBox4TestCase() { super("src/test/resources/blackbox/qrcode-4", new MultiFormatReader(), BarcodeFormat.QR_CODE); addTest(36, 36, 0.0f); addTest(35, 35, 90.0f); addTest(35, 35, 180.0f); addTest(35, 35, 270.0f); } } <|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by <|fim_suffi...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org<|fim_suffix|> required by applicable law or agreed to in ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use t<|fim_suffix|>() { testMaskAcrossDimensions(7, (i, j) -> ((i + j) % 2 + (i * j) % 3) % 2 == 0); } private static void testMaskAcrossDimensions(int reference, MaskCondition ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m<|fim_suffix|>rite(0x01, 8); // 1 characters builder.write(0x03C1, 13); String result = DecodedBitStreamParser.decode...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia<|fim_suffix|>e com.google.zxing.qrcode.decoder; import org.junit.Assert; import org.junit.Test; /** * @author Sean Owen */ public final class ErrorCor...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>ls(10, Mode.NUMERIC.getCharacterCountBits(Version.getVersionForNumber(5))); assertEquals(12, Mode.NUMERIC.getCharacterCountBits(Version.getVersionForNumber(26))); assertEquals(14, Mode.NUMERIC.getCharacterCountBits(Version.getVersionForNumber(40))); assertEquals(9, Mode.ALPHANUMERIC.getCharact...
fim
zxing/zxing
java
<|fim_suffix|>ignmentPatternCenters().length > 0); } assertEquals(dimension, version.getDimensionForVersion()); assertNotNull(version.getECBlocksForLevel(ErrorCorrectionLevel.H)); assertNotNull(version.getECBlocksForLevel(ErrorCorrectionLevel.L)); assertNotNull(version.getECBlocksForLevel(ErrorCorre...
fim
zxing/zxing
java
<|fim_suffix|> assertEquals(12, v.getSize()); assertEquals(0xff700000L, getUnsignedInt(v)); } @Test public void testNumBytes() { BitArray v = new BitArray(); assertEquals(0, v.getSizeInBytes()); v.appendBit(false); // 1 bit was added in the vector, so 1 byte should be consumed. assertEqu...
fim
zxing/zxing
java
<|fim_suffix|>re from http://www.swetake.com/qr/qr3.html and // http://www.swetake.com/qr/qr9.html @Test public void testGenerateECBytes() { byte[] dataBytes = bytes(32, 65, 205, 69, 41, 220, 46, 128, 236); byte[] ecBytes = Encoder.generateECBytes(dataBytes, 17); int[] expected = { 42, 159, 74...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>estCalculateBCHCode() { // Encoding of type information. // From Appendix C in JISX0510:2004 (p 65) assertEquals(0xdc, MatrixUtil.calculateBCHCode(5, 0x537)); // From http://www.swetake.com/qr/qr6.html assertEquals(0x1c2, MatrixUtil.calculateBCHCode(0x13, 0x537)); // From http://ww...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|> [];updateSearchResults();<|fim_prefix|>mo<|fim_middle|>duleSearchIndex =<|endoftext|>
fim
zxing/zxing
javascript
<|fim_prefix|>packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"com.google.zxing"},{"l":"com.google.zxing.aztec"},{"l":"com.google.zxing.aztec.decoder"},{"l":"com.google.zxing.aztec.detector"},{"l":"com.google.zxing.aztec.encoder"},{"l":"com.google.zxing.client.j2se"},{"l":"com.google.zxing....
fim
zxing/zxing
javascript
<|fim_prefix|>/*! jQuery v3.6.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)...
fim
zxing/zxing
javascript
<|fim_suffix|>ring"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!...
fim
zxing/zxing
javascript
<|fim_suffix|>sults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this....
fim
zxing/zxing
javascript
<|fim_prefix|>/* * Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * publishe...
fim
zxing/zxing
javascript
<|fim_suffix|>sult.length) { notify.html(messages.noResult); } else if (result.length === 1) { notify.html(messages.oneResult); } else { notify.html(messages.manyResults.replace("{0}", result.length)); } resultContainer.empty(); var r = { ...
fim
zxing/zxing
javascript
<|fim_prefix|>/* * Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * publishe...
fim
zxing/zxing
javascript
<|fim_suffix|>eSearchResults();<|fim_prefix|>tagSearchIndex = [{"l":"Constant Field Values","h":"","u":"constant-values.html"},{"l":"Serialized Form"<|fim_middle|>,"h":"","u":"serialized-form.html"}];updat<|endoftext|>
fim
zxing/zxing
javascript
<|fim_prefix|>typeSearchIndex = [{"p":"com.google.zxing.oned.rss.expanded.decoders","l":"AbstractExpandedDecoder"},{"p":"com.google.zxing.oned.rss","l":"AbstractRSSReader"},{"p":"com.google.zxing.client.result","l":"AddressBookAUResultParser"},{"p":"com.google.zxing.client.result","l":"AddressBookDoCoMoResultParser"},{...
fim
zxing/zxing
javascript
<|fim_prefix|>/* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2011 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m<|fim_suffix|>y obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>age(int stride, int height, int[] pixels, URI input, String suffix) throws IOException { BufferedImage result = new BufferedImage(stride, height, ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2011 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>h = PositiveInteger.class) int width = 300; @Parameter(names = "--height", description = "Image height", validateWith = PositiveInteger.class) int height = 300; @Parameter(names = "--error_correction_level", description = "Error correction level for the encoding") String erro...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (th<|fim_suffix|>e(image); BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source)); Result result; try { result = new MultiFormatReader().decode(bitmap); } catch (ReaderException re) {...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2011 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_suffix|>ecode(base64Data); return ImageIO.read(new ByteArrayInputStream(imageBytes)); } } <|fim_prefix|>/* * Copyright 2013 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of th...
fim
zxing/zxing
java
<|fim_suffix|>, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.zxing.client.j2se; i...
fim
zxing/zxing
java
<|fim_suffix|>nfig); if (!ImageIO.write(image, format, stream)) { throw new IOException("Could not write an image of format " + format); } } } <|fim_prefix|>/* * Copyright 2009 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
fim
zxing/zxing
java
<|fim_suffix|>; private static final Pattern TRANSLATE_RESPONSE_PATTERN = Pattern.compile("translatedText\":\\s*\"([^\"]+)\""); private static final Pattern VALUES_DIR_PATTERN = Pattern.compile("values-[a-z]{2}(-[a-zA-Z]{2,3})?"); private static final String APACHE_2_LICENSE = "<!--\n" + " Copyright ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2018 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen<|fim_suffix|> required by applicable law or agreed to in writing, software * distributed under...
fim
zxing/zxing
java
<|fim_suffix|>dLineRunner.main(args); } } <|fim_prefix|>/* * Copyright 2018 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2018 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2017 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2017 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright 2026 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_suffix|>idget; /** * Generator for email address. * * @author Yohann Coppel */ public final class EmailGenerator implements GeneratorSource { private Grid table; private final TextBox email = new TextBox(); public EmailGenerator(ChangeHandler handler, KeyPressHandler keyListener) { email.addSt...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2008 ZXing authors * * Licensed under the Apa<|fim_suffix|>method should be used to get the error message to * display to the user. * * @author Yohann Coppel */ final class GeneratorException extends Exception { GeneratorException(String message) { super(message); } } ...
fim
zxing/zxing
java
<|fim_suffix|>e want to * validate the content. * @throws GeneratorException if the widget contains errors. */ void validate(Widget widget) throws GeneratorException; /** * Called when the generator is selected in the list. Using this method, * the generator should set the focus to the first w...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_suffix|> * @author Yohann Coppel */ public final class PhoneNumberGenerator implements GeneratorSource { private Grid table; private final TextBox number = new TextBox(); public PhoneNumberGenerator(ChangeHandler handler, KeyPressHandler keyListener) { number.addStyleName(StylesDefs.INPUT_FIELD_RE...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java
<|fim_suffix|>se is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.zxing.web.generator.client; /** * Contains class names of cs...
fim
zxing/zxing
java
<|fim_prefix|>/* * Copyright (C) 2008 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
fim
zxing/zxing
java