code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include "../../../include/libbase64.h"
#include "../../tables/tables.h"
#include "../../codecs.h"
#include "config.h"
#include "../../env.h"
#if HAVE_SSE41
#include <smmintrin.h>
// Only enable inline assembly on supported compilers and on 64-bit CPUs.
#if... | 2301_81045437/base64 | lib/arch/sse41/codec.c | C | bsd | 1,265 |
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include "../../../include/libbase64.h"
#include "../../tables/tables.h"
#include "../../codecs.h"
#include "config.h"
#include "../../env.h"
#if HAVE_SSE42
#include <nmmintrin.h>
// Only enable inline assembly on supported compilers and on 64-bit CPUs.
#if... | 2301_81045437/base64 | lib/arch/sse42/codec.c | C | bsd | 1,265 |
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include "../../../include/libbase64.h"
#include "../../tables/tables.h"
#include "../../codecs.h"
#include "config.h"
#include "../../env.h"
#if HAVE_SSSE3
#include <tmmintrin.h>
// Only enable inline assembly on supported compilers and on 64-bit CPUs.
// ... | 2301_81045437/base64 | lib/arch/ssse3/codec.c | C | bsd | 1,351 |
// The input consists of six character sets in the Base64 alphabet, which we
// need to map back to the 6-bit values they represent. There are three ranges,
// two singles, and then there's the rest.
//
// # From To Add Characters
// 1 [43] [62] +19 +
// 2 [47] [63] +16 /
// ... | 2301_81045437/base64 | lib/arch/ssse3/dec_loop.c | C | bsd | 6,891 |
static BASE64_FORCE_INLINE __m128i
dec_reshuffle (const __m128i in)
{
// in, bits, upper case are most significant bits, lower case are least significant bits
// 00llllll 00kkkkLL 00jjKKKK 00JJJJJJ
// 00iiiiii 00hhhhII 00ggHHHH 00GGGGGG
// 00ffffff 00eeeeFF 00ddEEEE 00DDDDDD
// 00cccccc 00bbbbCC 00aaBBBB 00AAAAAA
... | 2301_81045437/base64 | lib/arch/ssse3/dec_reshuffle.c | C | bsd | 1,118 |
static BASE64_FORCE_INLINE void
enc_loop_ssse3_inner (const uint8_t **s, uint8_t **o)
{
// Load input:
__m128i str = _mm_loadu_si128((__m128i *) *s);
// Reshuffle:
str = enc_reshuffle(str);
// Translate reshuffled bytes to the Base64 alphabet:
str = enc_translate(str);
// Store:
_mm_storeu_si128((__m128i *) ... | 2301_81045437/base64 | lib/arch/ssse3/enc_loop.c | C | bsd | 1,549 |
// Apologies in advance for combining the preprocessor with inline assembly,
// two notoriously gnarly parts of C, but it was necessary to avoid a lot of
// code repetition. The preprocessor is used to template large sections of
// inline assembly that differ only in the registers used. If the code was
// written out b... | 2301_81045437/base64 | lib/arch/ssse3/enc_loop_asm.c | C | bsd | 9,310 |
static BASE64_FORCE_INLINE __m128i
enc_reshuffle (__m128i in)
{
// Input, bytes MSB to LSB:
// 0 0 0 0 l k j i h g f e d c b a
in = _mm_shuffle_epi8(in, _mm_set_epi8(
10, 11, 9, 10,
7, 8, 6, 7,
4, 5, 3, 4,
1, 2, 0, 1));
// in, bytes MSB to LSB:
// k l j k
// h i g h
// e f d e
// b c a b
... | 2301_81045437/base64 | lib/arch/ssse3/enc_reshuffle.c | C | bsd | 1,514 |
static BASE64_FORCE_INLINE __m128i
enc_translate (const __m128i in)
{
// A lookup table containing the absolute offsets for all ranges:
const __m128i lut = _mm_setr_epi8(
65, 71, -4, -4,
-4, -4, -4, -4,
-4, -4, -4, -4,
-19, -16, 0, 0
);
// Translate values 0..63 to the Base64 alphabet. There are fi... | 2301_81045437/base64 | lib/arch/ssse3/enc_translate.c | C | bsd | 1,171 |
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include "../include/libbase64.h"
#include "codecs.h"
#include "config.h"
#include "env.h"
#if (__x86_64__ || __i386__ || _M_X86 || _M_X64)
#define BASE64_X86
#if (HAVE_SSSE3 || HAVE_SSE41 || HAVE_SSE42 || HAVE_AVX... | 2301_81045437/base64 | lib/codec_choose.c | C | bsd | 7,655 |
#include "../include/libbase64.h"
// Function parameters for encoding functions:
#define BASE64_ENC_PARAMS \
( struct base64_state *state \
, const char *src \
, size_t srclen \
, char *out \
, size_t *outlen \
)
// Function parameters for decoding functions:
#define BASE64_DEC_PARAMS \
( struct... | 2301_81045437/base64 | lib/codecs.h | C | bsd | 1,199 |
#ifndef BASE64_ENV_H
#define BASE64_ENV_H
#include <stdint.h>
// This header file contains macro definitions that describe certain aspects of
// the compile-time environment. Compatibility and portability macros go here.
// Define machine endianness. This is for GCC:
#if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
#... | 2301_81045437/base64 | lib/env.h | C | bsd | 2,453 |
#include <stdint.h>
#include <stddef.h>
#ifdef _OPENMP
#include <omp.h>
#endif
#include "../include/libbase64.h"
#include "tables/tables.h"
#include "codecs.h"
#include "env.h"
// These static function pointers are initialized once when the library is
// first used, and remain in use for the remaining lifetime of the... | 2301_81045437/base64 | lib/lib.c | C | bsd | 3,281 |
// This code makes some assumptions on the implementation of
// base64_stream_encode_init(), base64_stream_encode() and base64_stream_decode().
// Basically these assumptions boil down to that when breaking the src into
// parts, out parts can be written without side effects.
// This is met when:
// 1) base64_stream_en... | 2301_81045437/base64 | lib/lib_openmp.c | C | bsd | 4,457 |
.PHONY: all clean
TARGETS := table_dec_32bit.h table_enc_12bit.h table_generator
all: $(TARGETS)
clean:
$(RM) $(TARGETS)
table_dec_32bit.h: table_generator
./$^ > $@
table_enc_12bit.h: table_enc_12bit.py
./$^ > $@
table_generator: table_generator.c
$(CC) $(CFLAGS) -o $@ $^
| 2301_81045437/base64 | lib/tables/Makefile | Makefile | bsd | 284 |
#include <stdint.h>
#define CHAR62 '+'
#define CHAR63 '/'
#define CHARPAD '='
#if BASE64_LITTLE_ENDIAN
/* SPECIAL DECODE TABLES FOR LITTLE ENDIAN (INTEL) CPUS */
const uint32_t base64_table_dec_32bit_d0[256] = {
0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
0xffffffff, 0xffffffff, 0xfffff... | 2301_81045437/base64 | lib/tables/table_dec_32bit.h | C | bsd | 25,258 |
#include <stdint.h>
const uint16_t base64_table_enc_12bit[] = {
#if BASE64_LITTLE_ENDIAN
0x4141U, 0x4241U, 0x4341U, 0x4441U, 0x4541U, 0x4641U, 0x4741U, 0x4841U,
0x4941U, 0x4A41U, 0x4B41U, 0x4C41U, 0x4D41U, 0x4E41U, 0x4F41U, 0x5041U,
0x5141U, 0x5241U, 0x5341U, 0x5441U, 0x5541U, 0x5641U, 0x5741U, 0x5841U,
0x5941U, 0... | 2301_81045437/base64 | lib/tables/table_enc_12bit.h | C | bsd | 74,858 |
#!/usr/bin/python3
def tr(x):
"""Translate a 6-bit value to the Base64 alphabet."""
s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' \
+ 'abcdefghijklmnopqrstuvwxyz' \
+ '0123456789' \
+ '+/'
return ord(s[x])
def table(fn):
"""Generate a 12-bit lookup table."""
ret = []
for n in range(0, 2**... | 2301_81045437/base64 | lib/tables/table_enc_12bit.py | Python | bsd | 1,124 |
/**
*
* Copyright 2005, 2006 Nick Galbreath -- nickg [at] modp [dot] com
* Copyright 2017 Matthieu Darbois
* All rights reserved.
*
* http://modp.com/release/base64
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
*... | 2301_81045437/base64 | lib/tables/table_generator.c | C | bsd | 5,158 |
#include "tables.h"
const uint8_t
base64_table_enc_6bit[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789"
"+/";
// In the lookup table below, note that the value for '=' (character 61) is
// 254, not 255. This character is used for in-band signaling of the end of
// the datastream, and we... | 2301_81045437/base64 | lib/tables/tables.c | C | bsd | 2,051 |
#ifndef BASE64_TABLES_H
#define BASE64_TABLES_H
#include <stdint.h>
#include "../env.h"
// These tables are used by all codecs for fallback plain encoding/decoding:
extern const uint8_t base64_table_enc_6bit[];
extern const uint8_t base64_table_dec_8bit[];
// These tables are used for the 32-bit and 64-bit generic ... | 2301_81045437/base64 | lib/tables/tables.h | C | bsd | 704 |
# Written in 2016 by Henrik Steffen Gaßmann henrik@gassmann.onl
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any warranty.
#
# You should have received a copy ... | 2301_81045437/base64 | test/CMakeLists.txt | CMake | bsd | 1,168 |
CFLAGS += -std=c99 -O3 -Wall -Wextra -pedantic -DBASE64_STATIC_DEFINE
ifdef OPENMP
CFLAGS += -fopenmp
endif
TARGET := $(shell $(CC) -dumpmachine)
ifneq (, $(findstring darwin, $(TARGET)))
BENCH_LDFLAGS=
else ifneq (, $(findstring mingw, $(TARGET)))
BENCH_LDFLAGS=
else
# default to linux, -lrt needed
BENCH_LD... | 2301_81045437/base64 | test/Makefile | Makefile | bsd | 798 |
// For clock_gettime(2):
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199309L
#endif
// For CLOCK_REALTIME on FreeBSD:
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
#endif
// Standard cross-platform includes.
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
// Platform-specific includes.
#if define... | 2301_81045437/base64 | test/benchmark.c | C | bsd | 6,241 |
#!/bin/bash
set -ve
MACHINE=$(uname -m)
export CC=gcc
uname -a
clang --version # make analyse
${CC} --version # make -C test valgrind
for USE_ASSEMBLY in 0 1; do
if [ "${MACHINE}" == "x86_64" ]; then
export SSSE3_CFLAGS="-mssse3 -DBASE64_SSSE3_USE_ASM=${USE_ASSEMBLY}"
export SSE41_CFLAGS="-msse4.1 -DBASE64_SS... | 2301_81045437/base64 | test/ci/analysis.sh | Shell | bsd | 1,092 |
#!/bin/bash
set -ve
MACHINE=$(uname -m)
if [ "${MACHINE}" == "x86_64" ]; then
export SSSE3_CFLAGS=-mssse3
export SSE41_CFLAGS=-msse4.1
export SSE42_CFLAGS=-msse4.2
export AVX_CFLAGS=-mavx
# no AVX2 or AVX512 on GHA macOS
if [ "$(uname -s)" != "Darwin" ]; then
export AVX2_CFLAGS=-mavx2
# Temporarily disable A... | 2301_81045437/base64 | test/ci/test.sh | Shell | bsd | 700 |
#include <string.h>
#include "../include/libbase64.h"
static char *_codecs[] =
{ "AVX2"
, "NEON32"
, "NEON64"
, "plain"
, "SSSE3"
, "SSE41"
, "SSE42"
, "AVX"
, "AVX512"
, NULL
} ;
char **codecs = _codecs;
int
codec_supported (int flags)
{
// Check if given codec is supported by trying to decode a test string:
cha... | 2301_81045437/base64 | test/codec_supported.c | C | bsd | 435 |
extern char **codecs;
int codec_supported (int flags);
| 2301_81045437/base64 | test/codec_supported.h | C | bsd | 56 |
static const char *moby_dick_plain =
"Call me Ishmael. Some years ago--never mind how long precisely--having\n"
"little or no money in my purse, and nothing particular to interest me on\n"
"shore, I thought I would sail about a little and see the watery part of\n"
"the world. It is a way I have of driving off the s... | 2301_81045437/base64 | test/moby_dick.h | C | bsd | 2,841 |
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "../include/libbase64.h"
#include "codec_supported.h"
#include "moby_dick.h"
static char out[2000];
static size_t outlen;
static bool
assert_enc (int flags, const char *src, const char *dst)
{
size_t srclen = strlen(src);
size_... | 2301_81045437/base64 | test/test_base64.c | C | bsd | 9,105 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | include/verilog_math.vh | SystemVerilog | apache-2.0 | 3,923 |
vlib work
vlog -vlog01compat +incdir+../src+../include t_sqrt_generic.v
vsim -voptargs=+acc work.t_sqrt_generic
run -all
| 2301_81045437/verilog | sim/sqrt_generic.do | Stata | apache-2.0 | 121 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | sim/t_button_debounce.v | Verilog | apache-2.0 | 1,473 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | sim/t_pipeline_registers_set.v | Verilog | apache-2.0 | 1,994 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | sim/t_sqrt_generic.v | Verilog | apache-2.0 | 1,976 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | sim/t_sqrt_pipelined.v | Verilog | apache-2.0 | 1,617 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/button_debounce.v | Verilog | apache-2.0 | 2,341 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/cordic_cir.v | Verilog | apache-2.0 | 7,987 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/cordic_hyp.v | Verilog | apache-2.0 | 10,904 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/div_pipelined.v | Verilog | apache-2.0 | 7,386 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/pipeline_registers.v | Verilog | apache-2.0 | 2,741 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/pipeline_registers_set.v | Verilog | apache-2.0 | 2,891 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/ram_infer.v | Verilog | apache-2.0 | 1,723 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/reset.v | Verilog | apache-2.0 | 2,081 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/sign_extender.v | Verilog | apache-2.0 | 1,210 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/sqrt_generic.v | Verilog | apache-2.0 | 3,163 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/sqrt_pipelined.v | Verilog | apache-2.0 | 6,717 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/uart_rx.v | Verilog | apache-2.0 | 4,176 |
// Copyright 2018 Schuyler Eldridge
//
// 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 agreed ... | 2301_81045437/verilog | src/uart_tx.v | Verilog | apache-2.0 | 3,520 |
import os
import streamlit as st
import time
from dotenv import load_dotenv
import random
from langchain_community.document_loaders import TextLoader
from langchain_text_splitters import CharacterTextSplitter
from langchain_community.vectorstores import Chroma
from langchain_community.embeddings import QianfanEmbedding... | 2301_81173397/wenxin-huiyan | main.py | Python | unknown | 32,684 |
@inproceedings{TableDetect,
author = {Faisal Shafait and Ray Smith},
booktitle = {Document Analysis Systems},
editor = {David S. Doermann and Venu Govindaraju and Daniel P. Lopresti and Premkumar Natarajan},
pages = {65--72},
publisher = {ACM},
series = {ACM International Conference Proceeding Series},
ti... | 2301_81045437/tesseract | CITATIONS.bib | BibTeX | apache-2.0 | 2,851 |
#
# tesseract
#
# ##############################################################################
#
# cmake settings
#
# ##############################################################################
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
# In-source builds are disabled.
if("${CMAKE_CURRENT_SOURCE_DIR}" STR... | 2301_81045437/tesseract | CMakeLists.txt | CMake | apache-2.0 | 32,724 |
## run autogen.sh to create Makefile.in from this file
ACLOCAL_AMFLAGS = -I m4
.PHONY: doc html install-langs ScrollView.jar install-jars pdf training
CLEANFILES =
SUBDIRS = . tessdata
EXTRA_DIST = README.md LICENSE
EXTRA_DIST += aclocal.m4 config configure.ac autogen.sh
EXTRA_DIST += tesseract.pc.in doc
if !GRAPHI... | 2301_81045437/tesseract | Makefile.am | Makefile | apache-2.0 | 63,142 |
#!/bin/sh
# 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 agreed to in writing, software
# distributed under ... | 2301_81045437/tesseract | autogen.sh | Shell | apache-2.0 | 4,021 |
# 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 agreed to in writing, software
# distributed under the Licens... | 2301_81045437/tesseract | cmake/BuildFunctions.cmake | CMake | apache-2.0 | 1,041 |
# 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 agreed to in writing, software distributed under the License
# ... | 2301_81045437/tesseract | cmake/CheckFunctions.cmake | CMake | apache-2.0 | 2,447 |
# 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 agreed to in writing, software
# distributed under the Licens... | 2301_81045437/tesseract | cmake/Configure.cmake | CMake | apache-2.0 | 4,216 |
# 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 agreed to in writing, software
# distributed under the Licens... | 2301_81045437/tesseract | cmake/SourceGroups.cmake | CMake | apache-2.0 | 1,429 |
# ===================================================================================
# The Tesseract CMake configuration file
#
# ** File generated automatically, do not modify **
#
# Usage from an external project:
# In your CMakeLists.txt, add these lines:
#
# find_package(Tesseract REQUIRED)
# ... | 2301_81045437/tesseract | cmake/templates/TesseractConfig.cmake.in | CMake | apache-2.0 | 1,710 |
# https://gitlab.kitware.com/cmake/community/wikis/FAQ#can-i-do-make-uninstall-with-cmake
if(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
message(FATAL_ERROR "Cannot find install manifest: @CMAKE_BINARY_DIR@/install_manifest.txt")
endif(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
file(READ "@CMAKE... | 2301_81045437/tesseract | cmake/templates/cmake_uninstall.cmake.in | CMake | apache-2.0 | 1,093 |
# -*-Shell-script-*-
#
# Copyright (c) Luc Vincent
# ----------------------------------------
# Initialization
# ----------------------------------------
AC_PREREQ([2.69])
AC_INIT([tesseract],
[m4_esyscmd_s([test -d .git && git describe --abbrev=4 2>/dev/null || cat VERSION])],
[https://github.com/tess... | 2301_81045437/tesseract | configure.ac | Shell | apache-2.0 | 19,873 |
#!/bin/bash
#
# File: generate_manpages.sh
# Description: Converts .asc files into man pages, etc. for Tesseract.
# Author: eger@google.com (David Eger)
# Created: 9 Feb 2012
#
# (C) Copyright 2012 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this f... | 2301_81045437/tesseract | doc/generate_manpages.sh | Shell | apache-2.0 | 1,298 |
// SPDX-License-Identifier: Apache-2.0
// File: baseapi.h
// Description: Simple API for calling tesseract.
// Author: Ray Smith
//
// (C) Copyright 2006, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You... | 2301_81045437/tesseract | include/tesseract/baseapi.h | C++ | apache-2.0 | 31,766 |
// SPDX-License-Identifier: Apache-2.0
// File: capi.h
// Description: C-API TessBaseAPI
//
// (C) Copyright 2012, Google Inc.
// 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:... | 2301_81045437/tesseract | include/tesseract/capi.h | C | apache-2.0 | 21,096 |
// SPDX-License-Identifier: Apache-2.0
// File: export.h
// Description: Place holder
//
// (C) Copyright 2006, Google Inc.
// 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://w... | 2301_81045437/tesseract | include/tesseract/export.h | C | apache-2.0 | 1,214 |
// SPDX-License-Identifier: Apache-2.0
// File: ltrresultiterator.h
// Description: Iterator for tesseract results in strict left-to-right
// order that avoids using tesseract internal data structures.
// Author: Ray Smith
//
// (C) Copyright 2010, Google Inc.
// Licensed under the Apache Licen... | 2301_81045437/tesseract | include/tesseract/ltrresultiterator.h | C++ | apache-2.0 | 10,291 |
// SPDX-License-Identifier: Apache-2.0
/**********************************************************************
* File: ocrclass.h
* Description: Class definitions and constants for the OCR API.
* Author: Hewlett-Packard Co
*
* (C) Copyright 1996, Hewlett-Packard Co.
** Licensed under the Apache Licens... | 2301_81045437/tesseract | include/tesseract/ocrclass.h | C++ | apache-2.0 | 7,176 |
// SPDX-License-Identifier: Apache-2.0
// File: osdetect.h
// Description: Orientation and script detection.
// Author: Samuel Charron
// Ranjith Unnikrishnan
//
// (C) Copyright 2008, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ex... | 2301_81045437/tesseract | include/tesseract/osdetect.h | C++ | apache-2.0 | 4,511 |
// SPDX-License-Identifier: Apache-2.0
// File: pageiterator.h
// Description: Iterator for tesseract page structure that avoids using
// tesseract internal data structures.
// Author: Ray Smith
//
// (C) Copyright 2010, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "Licens... | 2301_81045437/tesseract | include/tesseract/pageiterator.h | C++ | apache-2.0 | 15,156 |
// SPDX-License-Identifier: Apache-2.0
// File: publictypes.h
// Description: Types used in both the API and internally
// Author: Ray Smith
//
// (C) Copyright 2010, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lic... | 2301_81045437/tesseract | include/tesseract/publictypes.h | C++ | apache-2.0 | 12,068 |
// SPDX-License-Identifier: Apache-2.0
// File: renderer.h
// Description: Rendering interface to inject into TessBaseAPI
//
// (C) Copyright 2011, Google Inc.
// 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 ... | 2301_81045437/tesseract | include/tesseract/renderer.h | C++ | apache-2.0 | 10,417 |
// SPDX-License-Identifier: Apache-2.0
// File: resultiterator.h
// Description: Iterator for tesseract results that is capable of
// iterating in proper reading order over Bi Directional
// (e.g. mixed Hebrew and English) text.
// Author: David Eger
//
// (C) Copyright 2011, Googl... | 2301_81045437/tesseract | include/tesseract/resultiterator.h | C++ | apache-2.0 | 9,484 |
// SPDX-License-Identifier: Apache-2.0
// File: unichar.h
// Description: Unicode character/ligature class.
// Author: Ray Smith
//
// (C) Copyright 2006, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You... | 2301_81045437/tesseract | include/tesseract/unichar.h | C++ | apache-2.0 | 6,305 |
SUBDIRS = com
scrollview_path = @datadir@/tessdata
JAVAC = javac
JAR = jar
if !GRAPHICS_DISABLED
SCROLLVIEW_FILES = \
$(srcdir)/com/google/scrollview/ui/SVAbstractMenuItem.java \
$(srcdir)/com/google/scrollview/ui/SVCheckboxMenuItem.java \
$(srcdir)/com/google/scrollview/ui/SVEmptyMenuItem.java \
$(srcdir)/com/go... | 2301_81045437/tesseract | java/Makefile.am | Makefile | apache-2.0 | 2,978 |
SUBDIRS = google
| 2301_81045437/tesseract | java/com/Makefile.am | Makefile | apache-2.0 | 17 |
SUBDIRS = scrollview
| 2301_81045437/tesseract | java/com/google/Makefile.am | Makefile | apache-2.0 | 21 |
SUBDIRS = events ui
EXTRA_DIST = \
ScrollView.java
| 2301_81045437/tesseract | java/com/google/scrollview/Makefile.am | Makefile | apache-2.0 | 56 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ScrollView.java | Java | apache-2.0 | 17,167 |
SUBDIRS =
EXTRA_DIST = \
SVEvent.java SVEventHandler.java \
SVEventType.java
| 2301_81045437/tesseract | java/com/google/scrollview/events/Makefile.am | Makefile | apache-2.0 | 86 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/events/SVEvent.java | Java | apache-2.0 | 2,942 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/events/SVEventHandler.java | Java | apache-2.0 | 9,825 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/events/SVEventType.java | Java | apache-2.0 | 1,456 |
SUBDIRS =
EXTRA_DIST = \
SVAbstractMenuItem.java \
SVCheckboxMenuItem.java SVEmptyMenuItem.java \
SVImageHandler.java SVMenuBar.java \
SVMenuItem.java SVPopupMenu.java SVSubMenuItem.java SVWindow.java
| 2301_81045437/tesseract | java/com/google/scrollview/ui/Makefile.am | Makefile | apache-2.0 | 218 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ui/SVAbstractMenuItem.java | Java | apache-2.0 | 1,935 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ui/SVCheckboxMenuItem.java | Java | apache-2.0 | 1,939 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ui/SVEmptyMenuItem.java | Java | apache-2.0 | 1,799 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ui/SVImageHandler.java | Java | apache-2.0 | 2,659 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ui/SVMenuBar.java | Java | apache-2.0 | 4,362 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ui/SVMenuItem.java | Java | apache-2.0 | 2,085 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ui/SVPopupMenu.java | Java | apache-2.0 | 4,930 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ui/SVSubMenuItem.java | Java | apache-2.0 | 1,424 |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agree... | 2301_81045437/tesseract | java/com/google/scrollview/ui/SVWindow.java | Java | apache-2.0 | 21,613 |
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTR... | 2301_81045437/tesseract | m4/ax_check_compile_flag.m4 | M4Sugar | apache-2.0 | 2,104 |
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_split_version.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_SPLIT_VERSION
#
# DESCRIPTION
#
# Splits a version number in the f... | 2301_81045437/tesseract | m4/ax_split_version.m4 | M4Sugar | apache-2.0 | 1,274 |
// File: altorenderer.cpp
// Description: ALTO rendering interface
// Author: Jake Sebright
// (C) Copyright 2018
// 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.a... | 2301_81045437/tesseract | src/api/altorenderer.cpp | C++ | apache-2.0 | 8,666 |
/**********************************************************************
* File: baseapi.cpp
* Description: Simple API for calling tesseract.
* Author: Ray Smith
*
* (C) Copyright 2006, Google Inc.
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except i... | 2301_81045437/tesseract | src/api/baseapi.cpp | C++ | apache-2.0 | 82,412 |
///////////////////////////////////////////////////////////////////////
// File: capi.cpp
// Description: C-API TessBaseAPI
//
// (C) Copyright 2012, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtai... | 2301_81045437/tesseract | src/api/capi.cpp | C++ | apache-2.0 | 23,672 |
/**********************************************************************
* File: hocrrenderer.cpp
* Description: Simple API for calling tesseract.
* Author: Ray Smith (original code from baseapi.cpp)
* Author: Stefan Weil (moved to separate file and cleaned code)
*
* (C) Copyright 2006, Google Inc... | 2301_81045437/tesseract | src/api/hocrrenderer.cpp | C++ | apache-2.0 | 20,092 |
/**********************************************************************
* File: lstmboxrenderer.cpp
* Description: Renderer for creating box file for LSTM training.
* based on the tsv renderer.
*
* (C) Copyright 2019, Google Inc.
** Licensed under the Apache License, Version 2.0 (the "License"... | 2301_81045437/tesseract | src/api/lstmboxrenderer.cpp | C++ | apache-2.0 | 4,187 |
// File: pagerenderer.cpp
// Description: PAGE XML rendering interface
// Author: Jan Kamlah
// (C) Copyright 2021
// 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.... | 2301_81045437/tesseract | src/api/pagerenderer.cpp | C++ | apache-2.0 | 37,803 |