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 |
|---|---|---|---|---|---|
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/baseapi_thread_test.cc | C++ | apache-2.0 | 8,148 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/bitvector_test.cc | C++ | apache-2.0 | 5,429 |
///////////////////////////////////////////////////////////////////////
// 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 ap... | 2301_81045437/tesseract | unittest/capiexample_c_test.c | C | apache-2.0 | 891 |
///////////////////////////////////////////////////////////////////////
// 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 ap... | 2301_81045437/tesseract | unittest/capiexample_test.cc | C++ | apache-2.0 | 901 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/cleanapi_test.cc | C++ | apache-2.0 | 1,149 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/colpartition_test.cc | C++ | apache-2.0 | 2,056 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/commandlineflags_test.cc | C++ | apache-2.0 | 5,827 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/cycletimer.h | C++ | apache-2.0 | 1,624 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/dawg_test.cc | C++ | apache-2.0 | 4,193 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/denorm_test.cc | C++ | apache-2.0 | 3,606 |
// Copyright 2012 Google Inc. All Rights Reserved.
// Author: rays@google.com (Ray Smith)
///////////////////////////////////////////////////////////////////////
// File: doubleptr.h
// Description: Double-ended pointer that keeps pointing correctly even
// when reallocated or copied.
// Author: ... | 2301_81045437/tesseract | unittest/doubleptr.h | C++ | apache-2.0 | 3,461 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/equationdetect_test.cc | C++ | apache-2.0 | 18,915 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/fileio_test.cc | C++ | apache-2.0 | 1,855 |
#include <allheaders.h>
#include <tesseract/baseapi.h>
#include <libgen.h> // for dirname
#include <cstdio> // for printf
#include <cstdlib> // for std::getenv, std::setenv
#include <string> // for std::string
#ifndef TESSERACT_FUZZER_WIDTH
# define TESSERACT_FUZZER_WIDTH 100
#endif
#ifndef TESSERACT_FUZZER_HE... | 2301_81045437/tesseract | unittest/fuzzers/fuzzer-api.cpp | C++ | apache-2.0 | 2,104 |
#!/bin/bash -eu
# Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 2301_81045437/tesseract | unittest/fuzzers/oss-fuzz-build.sh | Shell | apache-2.0 | 2,155 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/heap_test.cc | C++ | apache-2.0 | 6,958 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/imagedata_test.cc | C++ | apache-2.0 | 5,462 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/include_gunit.h | C++ | apache-2.0 | 2,882 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/indexmapbidi_test.cc | C++ | apache-2.0 | 3,797 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/intfeaturemap_test.cc | C++ | apache-2.0 | 4,973 |
///////////////////////////////////////////////////////////////////////
// File: intsimdmatrix_test.cc
// Author: rays@google.com (Ray Smith)
//
// Copyright 2017 Google Inc. All Rights Reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compli... | 2301_81045437/tesseract | unittest/intsimdmatrix_test.cc | C++ | apache-2.0 | 4,748 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/lang_model_test.cc | C++ | apache-2.0 | 9,910 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/layout_test.cc | C++ | apache-2.0 | 8,718 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/ligature_table_test.cc | C++ | apache-2.0 | 4,112 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/linlsq_test.cc | C++ | apache-2.0 | 4,139 |
// (C) Copyright 2020, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/list_test.cc | C++ | apache-2.0 | 4,005 |
///////////////////////////////////////////////////////////////////////
// File: loadlang_test.cc
// Description: Test loading of All languages and Scripts for Tesseract.
// Tests for All languages and scripts are Disabled by default.
// Force the disabled test to run if required by using the
// --gtest_also_run... | 2301_81045437/tesseract | unittest/loadlang_test.cc | C++ | apache-2.0 | 14,091 |
///////////////////////////////////////////////////////////////////////
// File: log.h
// Description: Include for custom log message for unittest for tesseract.
// based on
// https://stackoverflow.com/questions/16491675/how-to-send-custom-message-in-google-c-testing-framework
//
// Li... | 2301_81045437/tesseract | unittest/log.h | C++ | apache-2.0 | 2,003 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/lstm_recode_test.cc | C++ | apache-2.0 | 1,914 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/lstm_squashed_test.cc | C++ | apache-2.0 | 1,322 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/lstm_test.cc | C++ | apache-2.0 | 9,738 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/lstm_test.h | C++ | apache-2.0 | 7,686 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/lstmtrainer_test.cc | C++ | apache-2.0 | 4,667 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/mastertrainer_test.cc | C++ | apache-2.0 | 12,014 |
///////////////////////////////////////////////////////////////////////
// File: matrix_test.cc
// Author: rays@google.com (Ray Smith)
//
// Copyright 2016 Google Inc. All Rights Reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance wi... | 2301_81045437/tesseract | unittest/matrix_test.cc | C++ | apache-2.0 | 4,615 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/networkio_test.cc | C++ | apache-2.0 | 6,952 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/normstrngs_test.cc | C++ | apache-2.0 | 23,683 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/normstrngs_test.h | C++ | apache-2.0 | 3,357 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/nthitem_test.cc | C++ | apache-2.0 | 3,689 |
///////////////////////////////////////////////////////////////////////
// File: osd_test.cc
// Description: OSD Tests for Tesseract.
// Author: ShreeDevi Kumar
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You ma... | 2301_81045437/tesseract | unittest/osd_test.cc | C++ | apache-2.0 | 5,912 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/pagesegmode_test.cc | C++ | apache-2.0 | 4,036 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/pango_font_info_test.cc | C++ | apache-2.0 | 12,581 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/paragraphs_test.cc | C++ | apache-2.0 | 39,054 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/params_model_test.cc | C++ | apache-2.0 | 2,572 |
///////////////////////////////////////////////////////////////////////
// File: progress_test.cc
// Description: Progress reporting API Test for Tesseract.
// Author: Jaroslaw Kubik
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with ... | 2301_81045437/tesseract | unittest/progress_test.cc | C++ | apache-2.0 | 4,961 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/qrsequence_test.cc | C++ | apache-2.0 | 2,454 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/recodebeam_test.cc | C++ | apache-2.0 | 20,353 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/rect_test.cc | C++ | apache-2.0 | 5,544 |
#include <allheaders.h>
#include <tesseract/baseapi.h>
#include <tesseract/resultiterator.h>
#include <string>
#include "scrollview.h"
#include "include_gunit.h"
#include "log.h" // for LOG
namespace tesseract {
// DEFINE_string(tess_config, "", "config file for tesseract");
// DEFINE_bool(visual_test, false, "Runs... | 2301_81045437/tesseract | unittest/resultiterator_test.cc | C++ | apache-2.0 | 23,360 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/scanutils_test.cc | C++ | apache-2.0 | 3,748 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/shapetable_test.cc | C++ | apache-2.0 | 5,866 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/stats_test.cc | C++ | apache-2.0 | 2,044 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/stridemap_test.cc | C++ | apache-2.0 | 7,276 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/stringrenderer_test.cc | C++ | apache-2.0 | 21,193 |
/* Copyright 2016 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 agreed to in ... | 2301_81045437/tesseract | unittest/syntaxnet/base.h | C++ | apache-2.0 | 1,823 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/tablefind_test.cc | C++ | apache-2.0 | 9,223 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/tablerecog_test.cc | C++ | apache-2.0 | 10,986 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/tabvector_test.cc | C++ | apache-2.0 | 3,797 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/tatweel_test.cc | C++ | apache-2.0 | 3,890 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/textlineprojection_test.cc | C++ | apache-2.0 | 10,609 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/tfile_test.cc | C++ | apache-2.0 | 6,397 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/unichar_test.cc | C++ | apache-2.0 | 1,838 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/unicharcompress_test.cc | C++ | apache-2.0 | 9,095 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/unicharset_test.cc | C++ | apache-2.0 | 5,985 |
/**
* 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 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 t... | 2301_81045437/tesseract | unittest/util/utf8/unicodetext.cc | C++ | apache-2.0 | 15,519 |
/**
* 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 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 t... | 2301_81045437/tesseract | unittest/util/utf8/unicodetext.h | C++ | apache-2.0 | 18,456 |
/**
* 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 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 t... | 2301_81045437/tesseract | unittest/util/utf8/unilib.cc | C++ | apache-2.0 | 2,016 |
/**
* 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 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 t... | 2301_81045437/tesseract | unittest/util/utf8/unilib.h | C++ | apache-2.0 | 2,373 |
/**
* 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 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 t... | 2301_81045437/tesseract | unittest/util/utf8/unilib_utf8_utils.h | C++ | apache-2.0 | 2,435 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/validate_grapheme_test.cc | C++ | apache-2.0 | 8,033 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/validate_indic_test.cc | C++ | apache-2.0 | 10,843 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/validate_khmer_test.cc | C++ | apache-2.0 | 2,088 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/validate_myanmar_test.cc | C++ | apache-2.0 | 2,562 |
// (C) Copyright 2017, 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://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 2301_81045437/tesseract | unittest/validator_test.cc | C++ | apache-2.0 | 3,390 |
#include<stdio.h>
int yuu = 12;//全局参数
int main(){
int yuu = 11;//局部参数
printf("yuu的值为:> %d\n", yuu);
}
| 2301_81127619/any | a1.c | C | unknown | 138 |
#include<stdio.h>
int prts();
int main() {
int sum = 0;
int i = 0;
while (i <= 100) {
sum = sum + i;
i++;
}
printf("1~100 的总和为: %d\n", sum);
prts();
return 0;
}
int prts() {
int sum = 0;
int i;
for (i = 1; i <= 100; i++) {
sum = sum ... | 2301_81127619/any | b1.c | C | unknown | 403 |
#include<stdio.h>
enum day{
as = 1 , aa , ad , af , ag , ar, at //枚举类型
};
int main(){
printf("ax的值为%d\n", ag);//输出部分
return 0;
} | 2301_81127619/any | c10.c | C | unknown | 170 |
#include<stdio.h>
/*----------------------------*/
int main()
{
int num = 0;
printf("input the num:>(0 or 1)");
scanf("%d", &num);//一定要取num的值,否则为初始化的0值
if (num == 1)
{
printf("you are right");
}
else
{
printf("you are wrong");
}
return 0;
} | 2301_81127619/any | c11.c | C | unknown | 344 |
#include<stdio.h>
enum choice
{
DR = 0 , aMIYa , kaltist , theresia , prts , anyothere
};
int Prts = 3;
int main(){
int ro =0;
int num = 0;
int sum = 0;
int choice;
printf("Which one you believe the num ber :> ");
scanf("%d",&choice);
if (choice == 4 )
{
pr... | 2301_81127619/any | c12.c | C | unknown | 445 |
#include<stdio.h>
int main() {
// 定义常量代替枚举值
const int DR = 0;
const int aMIYa = 1;
const int kaltist = 2;
const int theresia = 3;
const int prts = 4;
const int anyothere = 5;
int choice;
printf("Which one you believe (0-5):> ");
scanf("%d", &choice);
// 使用常量... | 2301_81127619/any | c13.c | C | unknown | 610 |
#include<stdio.h>
int main(){
int i = 0;
int sum =0;
while ( i <= 100)
{
sum +=i;
i++;
printf("1~100求和(while循环): %d\n", sum);
/*return 0;
如果在这里循环内部return o 这样循环会在结果为2的时候停止输出,即第一次循环后停止输出。*/
}
return 0;
}
| 2301_81127619/any | c14.c | C | unknown | 371 |
#include<stdio.h>
int main(){
int i = 0;
int sum =0;
do {
sum = sum + i;
i++;
}while (i <= 100);
printf("1~100:> %d", sum);/*do while的用法相较于while的区别为
dowhile循环部分(循环体)会先检验一次,若条件为真则先循环一次,若为假则会终止循环
那么do while 会至少执行一次循环
也就是while会执行0~n次 而 do while 会执行1~n次 */
re... | 2301_81127619/any | c15.c | C | unknown | 470 |
#include<stdio.h>
int prts();
int theresia();
int main(){
int ch;
printf("input any char:>");
ch = getchar();
printf("output char:> %c\n", ch);
while (getchar() !='\n');//清理输入缓冲区,避免prts函数跳过输入
prts();//使用前需先声明
theresia();
return 0;
}
// getchar获取的字符为一个,输出也为一个。
int p... | 2301_81127619/any | c16.c | C | unknown | 1,165 |
#include<stdio.h>
int prts();
int main(){
int sum =0;
int i = 0;
while (i <=100)
{
sum = sum + i;
i++;
}
printf("!~100 will output:> %d\n",sum);
prts();
return 0;
}
/*while循环实现1~100加和。*/
int prts(){
int sum = 0;
int i;
for( i=1 ; i<=100 ; i++){
... | 2301_81127619/any | c17.c | C | unknown | 463 |
#include<stdio.h>
int main(){
int num = 0;
int num1 = 0;
int num2 = 0;
int sum =0;
//sum = num + num1 + num2;如果在这里计算则结果为0,因为结果被提前计算为0
printf("input three num on here :>");
scanf("%d" "%d" "%d" , &num,&num1,&num2);
sum = num + num1 + num2;
printf("sum = %d\n",sum);
retu... | 2301_81127619/any | c2.c | C | unknown | 372 |
#include<stdio.h>
enum day
{
mon =1 , tur , thr , tdr ,fri
};//枚举类型
int main(){
printf("tur = %d\n",tur);
return 0;//输出部分
} | 2301_81127619/any | c3.c | C | unknown | 163 |
#include <stdio.h>
//下面代码,打印结果是什么?为什么?(突出'\0'的重要性)
int main()
{
char arr1[] = "bit";
char arr2[] = { 'b', 'i', 't' };
char arr3[] = { 'b', 'i', 't','\0'};
printf("%s\n", arr1);
printf("%s\n", arr2);
printf("%s\n", arr3);
return 0;
} | 2301_81127619/any | c4.c | C | unknown | 321 |
//问题1:在屏幕上打印一个单引号',怎么做?
//问题2:在屏幕上打印一个字符串,字符串的内容是一个双引号“,怎么做?
#include<stdio.h>
int main()
{
printf("%c\n", '\'');
printf("%s\n", "\"");
return 0;
} | 2301_81127619/any | c5.c | C | unknown | 273 |
//程序输出什么?
#include <stdio.h>
#include<string.h>
int main()
{
printf("%d\n", strlen("abcdef"));
// \62被解析成一个转义字符
printf("%d\n", strlen("c:\test\628\test.c"));
return 0;
} | 2301_81127619/any | c6.c | C | unknown | 228 |
#include <stdio.h>
int Add(int x, int y)
{
return x + y;
}
/*C语言风格注释
int Sub(int x, int y)
{
return x-y;
}
*/
int main()
{
//C++注释风格
//int a = 10;
//调用Add函数,完成加法
printf("%d\n", Add(1, 2));
return 0;
} | 2301_81127619/any | c7.c | C | unknown | 284 |
#include<stdio.h>
int x = 1;
int y = 2;
int add(int x,int y){
return x + y;
}
int main(){
printf("result %d\n",add(x,y));
}//add函数练习
| 2301_81127619/any | c8.c | C | unknown | 161 |
#include<stdio.h>
int main(){
int a = 0;
printf("choose 1 or 2%d\n");
scanf("%d",&a);
if (a == 1);{
printf("esxecrise\n");
}
else;
{
printf("exe");
}
} | 2301_81127619/any | c9.c | C | unknown | 225 |
#!/usr/bin/env bash
git submodule update --init --recursive
| 2301_81045437/zeus-iot | .muse/setup.sh | Shell | gpl-3.0 | 60 |
#!/bin/bash
set -o pipefail
set +e
set -x
# Script trace mode
if [ "${DEBUG_MODE,,}" == "true" ]; then
set -o xtrace
fi
# usage: file_env VAR [DEFAULT]
# as example: file_env 'MYSQL_PASSWORD' 'zabbix'
# (will allow for "$MYSQL_PASSWORD_FILE" to fill in the value of "$MYSQL_PASSWORD" from a file)
# unsets the ... | 2301_81045437/zeus-iot | docker/docker-entrypoint.sh | Shell | gpl-3.0 | 10,802 |
#!/usr/bin/env bash
ROOT_UID=0
release=Centos
basename=$(pwd)
zabbixsrc=$basename/zabbix-5.0.30
INSTALLDIR=/opt/zeus
ZABBIX_HOME=$INSTALLDIR/zabbix
PHP_CONF=/etc/opt/rh/rh-php73
sqldir=$basename/zabbix-5.0.30/database/postgresql
PGDATA=$INSTALLDIR/pgdata
zeusurl=
function logprint() {
if [ $? != 0 ]; then
... | 2301_81045437/zeus-iot | docs/centos/install.sh | Shell | gpl-3.0 | 18,796 |
#!/usr/bin/env bash
set -e
# 初始化系统
function logprint() {
if [ $? != 0 ]; then
echo "$1"
exit
fi
}
# 安装前准备
## 系统环境检测
function syscheck() {
if [ "$(uname)" != Linux ]; then
echo "该脚本只使用 Linux 系统"
exit 1
fi
if [ "$UID" -ne 0 ]; then
... | 2301_81045437/zeus-iot | docs/ubuntu/install.sh | Shell | gpl-3.0 | 11,643 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 2301_81045437/zeus-iot | iot-server/server-bootstrap/src/main/java/com/zmops/zeus/iot/server/starter/IoTServerBootstrap.java | Java | gpl-3.0 | 2,709 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 2301_81045437/zeus-iot | iot-server/server-bootstrap/src/main/java/com/zmops/zeus/iot/server/starter/config/ApplicationConfigLoader.java | Java | gpl-3.0 | 10,104 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 2301_81045437/zeus-iot | iot-server/server-bootstrap/src/main/java/com/zmops/zeus/iot/server/starter/config/ConfigFileNotFoundException.java | Java | gpl-3.0 | 1,120 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 2301_81045437/zeus-iot | iot-server/server-bootstrap/src/main/java/com/zmops/zeus/iot/server/starter/config/ConfigLoader.java | Java | gpl-3.0 | 943 |