text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: taichi/transforms/vector_split.cpp
// Split vectors wider than machine vector width into multiple vectors
#include "taichi/ir/ir.h"
#include "taichi/ir/statements.h"
#include "taichi/ir/transforms.h"
#include "taichi/ir/visitors.h"
#include "taichi/program/program.h"
#include <algorithm>
TLANG_NAMESPACE_BE... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/transforms/vector_split.cpp", "license": "mit", "size": 11037} |
### File: taichi/transforms/whole_kernel_cse.cpp
#include "taichi/ir/ir.h"
#include "taichi/ir/analysis.h"
#include "taichi/ir/statements.h"
#include "taichi/ir/transforms.h"
#include "taichi/ir/visitors.h"
#include "taichi/system/profiler.h"
#include <typeindex>
TLANG_NAMESPACE_BEGIN
// A helper class to maintain W... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/transforms/whole_kernel_cse.cpp", "license": "mit", "size": 6316} |
### File: taichi/util/action_recorder.cpp
#include "taichi/util/action_recorder.h"
#include "taichi/util/str.h"
TI_NAMESPACE_BEGIN
std::string ActionArg::serialize() const {
std::string ret = key + ": ";
if (type == argument_type::str) {
ret += lang::c_quoted(val_str);
} else if (type == argument_type::int6... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/action_recorder.cpp", "license": "mit", "size": 1241} |
### File: taichi/util/action_recorder.h
#pragma once
#include <fstream>
#include "taichi/common/core.h"
TI_NAMESPACE_BEGIN
struct ActionArg {
ActionArg(const std::string &key, const std::string &val)
: key(key), val_str(val), type(argument_type::str) {
}
ActionArg(const std::string &key, int64 val)
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/action_recorder.h", "license": "mit", "size": 1334} |
### File: taichi/util/base64.h
#include "taichi/common/core.h"
TI_NAMESPACE_BEGIN
/*
base64.cpp and base64.h
Copyright (C) 2004-2008 René Nyffenegger
This source code is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from t... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/base64.h", "license": "mit", "size": 3917} |
### File: taichi/util/bit.cpp
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*******************************************************************************... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/bit.cpp", "license": "mit", "size": 5334} |
### File: taichi/util/bit.h
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*******************************************************************************/
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/bit.h", "license": "mit", "size": 5443} |
### File: taichi/util/environ_config.h
#pragma once
#include "taichi/common/core.h"
#include <string>
#include <cstdlib>
TLANG_NAMESPACE_BEGIN
static inline int get_environ_config(const std::string &name,
int default_value = 0) {
char *res = std::getenv(name.c_str());
if (re... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/environ_config.h", "license": "mit", "size": 369} |
### File: taichi/util/file_sequence_writer.cpp
#include "llvm/IR/Module.h"
#include "llvm/Support/raw_ostream.h"
#include "taichi/util/file_sequence_writer.h"
TLANG_NAMESPACE_BEGIN
FileSequenceWriter::FileSequenceWriter(std::string filename_template,
std::string file_type)
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/file_sequence_writer.cpp", "license": "mit", "size": 1044} |
### File: taichi/util/file_sequence_writer.h
#pragma once
#include "taichi/lang_util.h"
#include "taichi/ir/transforms.h"
#include "taichi/llvm/llvm_fwd.h"
TLANG_NAMESPACE_BEGIN
class FileSequenceWriter {
public:
FileSequenceWriter(std::string filename_template, std::string file_type);
// returns filename
st... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/file_sequence_writer.h", "license": "mit", "size": 566} |
### File: taichi/util/image_buffer.cpp
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
**********************************************************************... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/image_buffer.cpp", "license": "mit", "size": 8146} |
### File: taichi/util/image_io.cpp
#include "taichi/common/core.h"
#include "taichi/util/image_io.h"
#include "stb_image.h"
#include "stb_image_write.h"
TI_NAMESPACE_BEGIN
void imwrite(const std::string &filename,
size_t ptr,
int resx,
int resy,
int comp) {
void ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/image_io.cpp", "license": "mit", "size": 1454} |
### File: taichi/util/image_io.h
#pragma once
#include <string>
#include <vector>
TI_NAMESPACE_BEGIN
void imwrite(const std::string &filename,
size_t ptr,
int resx,
int resy,
int comp);
std::vector<size_t> imread(const std::string &filename, int comp);
TI_NAMESPACE_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/image_io.h", "license": "mit", "size": 291} |
### File: taichi/util/io.h
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*******************************************************************************/
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/io.h", "license": "mit", "size": 1987} |
### File: taichi/util/line_appender.h
#pragma once
#include <string>
#include "spdlog/spdlog.h"
#include "taichi/common/core.h"
TI_NAMESPACE_BEGIN
class LineAppender {
public:
explicit LineAppender(int indent_size = 2)
: single_indent_(indent_size, ' ') {
}
LineAppender(const LineAppender &) = default... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/line_appender.h", "license": "mit", "size": 1446} |
### File: taichi/util/macros.h
#pragma once
#ifndef STR
#define _STR(...) #__VA_ARGS__
#define STR(...) _STR(__VA_ARGS__)
#endif
#ifndef CAT
#define _CAT(x, y) x##y
#define CAT(x, y) _CAT(x, y)
#endif
#ifndef CAT3
#define _CAT3(x, y, z) x##y##z
#define CAT3(x, y, z) _CAT3(x, y, z)
#endif
#ifndef EXP
#define _EXP(x)... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/macros.h", "license": "mit", "size": 322} |
### File: taichi/util/meta.h
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*******************************************************************************/... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/meta.h", "license": "mit", "size": 3967} |
### File: taichi/util/short_name.cpp
#include "short_name.h"
#include "base64.h"
TI_NAMESPACE_BEGIN
namespace {
const std::string alphatable =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // e.g. `if` is not a good var name, but `If`
// does.
const std::string alnumtable =
"0123456789abcde... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/short_name.cpp", "license": "mit", "size": 644} |
### File: taichi/util/short_name.h
#pragma once
#include <string>
#include "taichi/common/core.h"
TI_NAMESPACE_BEGIN
std::string make_short_name_by_id(int id);
TI_NAMESPACE_END
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/short_name.h", "license": "mit", "size": 146} |
### File: taichi/util/statistics.cpp
#include "statistics.h"
TI_NAMESPACE_BEGIN
Statistics stat;
void Statistics::add(std::string key, Statistics::value_type value) {
counters_[key] += value;
}
void Statistics::print(std::string *output) {
std::vector<std::string> keys;
for (auto const &item : counters_)
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/statistics.cpp", "license": "mit", "size": 617} |
### File: taichi/util/statistics.h
#include <unordered_map>
#include "taichi/common/core.h"
TI_NAMESPACE_BEGIN
class Statistics {
public:
using value_type = float64;
using counters_map = std::unordered_map<std::string, value_type>;
Statistics() = default;
void add(std::string key, value_type value = value... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/statistics.h", "license": "mit", "size": 515} |
### File: taichi/util/str.cpp
#include "taichi/util/str.h"
#include <sstream>
#include "taichi/inc/constants.h"
TLANG_NAMESPACE_BEGIN
std::string c_quoted(std::string const &str) {
// https://zh.cppreference.com/w/cpp/language/escape
std::stringstream ss;
ss << '"';
for (auto const &c : str) {
switch (c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/str.cpp", "license": "mit", "size": 1737} |
### File: taichi/util/str.h
#pragma once
#include <string>
#include <functional>
#include "taichi/lang_util.h"
TLANG_NAMESPACE_BEGIN
// Quote |str| with a pair of ". Escape special characters like \n, \t etc.
std::string c_quoted(std::string const &str);
std::string format_error_message(const std::string &error_me... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/str.h", "license": "mit", "size": 406} |
### File: taichi/util/testing.cpp
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
***************************************************************************... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/testing.cpp", "license": "mit", "size": 817} |
### File: taichi/util/testing.h
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*****************************************************************************... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/testing.h", "license": "mit", "size": 1365} |
### File: taichi/util/zip.cpp
#include "taichi/common/core.h"
#if defined(__GNUC__)
// Ensure we get the 64-bit variants of the CRT's file I/O calls
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE 1
#endif
#endif
#include "miniz.h"
TI_NAMESPACE_BE... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "taichi/util/zip.cpp", "license": "mit", "size": 3529} |
### File: tests/conftest.py
# let pytest see the fixtures
import taichi.testing
taichi_archs = taichi.testing._get_taichi_archs_fixture()
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/Taichi", "path": "tests/conftest.py", "license": "mit", "size": 111} |
### File: tests/cpp/analysis/alias_analysis_test.cpp
#include <algorithm>
#include <memory>
#include <vector>
#include "gtest/gtest.h"
#include "taichi/ir/analysis.h"
#include "taichi/ir/ir_builder.h"
#include "taichi/ir/snode.h"
#include "taichi/ir/statements.h"
namespace taichi {
namespace lang {
namespace irpass {... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/analysis/alias_analysis_test.cpp", "license": "mit", "size": 4076} |
### File: tests/cpp/analysis/value_diff_test.cpp
#include "gtest/gtest.h"
#include "taichi/ir/analysis.h"
#include "taichi/ir/ir_builder.h"
#include "taichi/ir/statements.h"
namespace taichi {
namespace lang {
namespace irpass {
namespace analysis {
TEST(ValueDiffPtrIndex, ConstI32) {
IRBuilder builder;
auto *c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/analysis/value_diff_test.cpp", "license": "mit", "size": 1697} |
### File: tests/cpp/common/core_test.cpp
#include "gtest/gtest.h"
#include "taichi/common/core.h"
namespace taichi {
TEST(CoreTest, Basic) {
EXPECT_EQ(trim_string("hello taichi "), "hello taichi");
}
} // namespace taichi
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/common/core_test.cpp", "license": "mit", "size": 189} |
### File: tests/cpp/common/dict_test.cpp
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
********************************************************************... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/common/dict_test.cpp", "license": "mit", "size": 1035} |
### File: tests/cpp/common/parallel_executor_test.cpp
#include "gtest/gtest.h"
#include "taichi/util/testing.h"
#include "taichi/program/async_engine.h"
namespace taichi {
namespace lang {
TEST(ParallelExecutor, CreateAndDestruct) {
ParallelExecutor exec("test", 10);
}
TEST(ParallelExecutor, ParallelPrint) {
in... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/common/parallel_executor_test.cpp", "license": "mit", "size": 576} |
### File: tests/cpp/common/same_statements_test.cpp
#include "gtest/gtest.h"
#include "taichi/ir/frontend.h"
#include "taichi/ir/transforms.h"
#include "taichi/ir/analysis.h"
#include "taichi/ir/statements.h"
#include "taichi/util/testing.h"
namespace taichi {
namespace lang {
TEST(SameStatements, TestSameBlock) {
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/common/same_statements_test.cpp", "license": "mit", "size": 7435} |
### File: tests/cpp/common/simplify_test.cpp
#include "gtest/gtest.h"
#include "taichi/ir/frontend.h"
#include "taichi/ir/statements.h"
#include "taichi/ir/transforms.h"
#include "taichi/util/testing.h"
namespace taichi {
namespace lang {
// Basic tests within a basic block
TEST(Simplify, SimplifyLinearizedWithTriv... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/common/simplify_test.cpp", "license": "mit", "size": 2161} |
### File: tests/cpp/common/stmt_field_manager_test.cpp
#include "gtest/gtest.h"
#include "taichi/ir/ir.h"
#include "taichi/ir/statements.h"
#include "taichi/util/testing.h"
namespace taichi {
namespace lang {
namespace {
class TestStmt : public Stmt {
private:
Stmt *input;
int a;
float b;
public:
TestStmt... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/common/stmt_field_manager_test.cpp", "license": "mit", "size": 2023} |
### File: tests/cpp/common/type_test.cpp
#include "gtest/gtest.h"
#include "taichi/util/testing.h"
#include "taichi/ir/type.h"
#include "taichi/ir/type_factory.h"
namespace taichi {
namespace lang {
TEST(Type, BitTypes) {
auto i32 = TypeFactory::get_instance()
.get_primitive_type(PrimitiveTypeID::... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/common/type_test.cpp", "license": "mit", "size": 944} |
### File: tests/cpp/ir/algebraic_simplication_test.cpp
#include "gtest/gtest.h"
#include "taichi/ir/frontend.h"
#include "taichi/ir/statements.h"
#include "taichi/ir/transforms.h"
namespace taichi {
namespace lang {
class AlgebraicSimplicationTest : public ::testing::Test {
protected:
void SetUp() override {
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/ir/algebraic_simplication_test.cpp", "license": "mit", "size": 7359} |
### File: tests/cpp/ir/ir_builder_test.cpp
#include "gtest/gtest.h"
#include "taichi/ir/ir_builder.h"
#include "taichi/ir/statements.h"
#include "taichi/program/program.h"
namespace taichi {
namespace lang {
TEST(IRBuilder, Basic) {
IRBuilder builder;
auto *lhs = builder.get_int32(40);
auto *rhs = builder.get_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/ir/ir_builder_test.cpp", "license": "mit", "size": 4152} |
### File: tests/cpp/legacy/benchmark_sfg_edges.cpp
#include <algorithm>
#include <chrono> // std::chrono::system_clock
#include <random> // std::default_random_engine
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/legacy/benchmark_sfg_edges.cpp", "license": "mit", "size": 7634} |
### File: tests/cpp/task/test_exception_handling.cpp
#include "taichi/common/task.h"
#include "taichi/ir/ir.h"
#include "taichi/ir/statements.h"
TLANG_NAMESPACE_BEGIN
// Simulate the AST transforms on the Google Colab Ubuntu kernels to see why it
// crashes
class NodeBase {
public:
std::unique_ptr<NodeBase> ch;
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/task/test_exception_handling.cpp", "license": "mit", "size": 2309} |
### File: tests/cpp/task/test_gui.cpp
// Note: this is not really a test case.
#include "taichi/gui/gui.h"
#include "taichi/common/task.h"
TI_NAMESPACE_BEGIN
auto test_gui = []() {
// GUI gui("GUI Test", 1000, 400, false);
GUI gui("GUI Test", 1000, 400, true, false, 0, false, false);
auto canvas = *gui.canvas;... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/Taichi", "path": "tests/cpp/task/test_gui.cpp", "license": "mit", "size": 1297} |
### File: tests/python/bls_test_template.py
import taichi as ti
import numpy as np
import random
def bls_test_template(dim,
N,
bs,
stencil,
block_dim=None,
scatter=False,
benchmark=0,
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/Taichi", "path": "tests/python/bls_test_template.py", "license": "mit", "size": 7916} |
### File: tests/python/fuse_test_template.py
import taichi as ti
import time
def template_fuse_dense_x2y2z(size=1024**3,
repeat=10,
first_n=100,
benchmark=0,
benchmark_repeat=50):
x = ti.field(t... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/Taichi", "path": "tests/python/fuse_test_template.py", "license": "mit", "size": 2581} |
### File: tests/python/grad_test.py
import taichi as ti
from taichi import approx
def grad_test(tifunc, npfunc=None):
from autograd import grad
if npfunc is None:
npfunc = tifunc
x = ti.field(ti.f32)
y = ti.field(ti.f32)
ti.root.dense(ti.i, 1).place(x, x.grad, y, y.grad)
@ti.kernel
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/Taichi", "path": "tests/python/grad_test.py", "license": "mit", "size": 510} |
### File: src/main/java/com/wustrive/Main.java
package com.wustrive;
import java.util.TreeMap;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.wustrive.aesrsa.util.*;
/**
* Description: AES+RSA签名,加密 验签,解密
*
* @author: wubaoguo
* @email: wustrive2008@gmail.com
* ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/Main.java", "license": "apache-2.0", "size": 5420} |
### File: src/main/java/com/wustrive/aesrsa/util/AES.java
package com.wustrive.aesrsa.util;
import java.io.UnsupportedEncodingException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import java... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/AES.java", "license": "apache-2.0", "size": 5103} |
### File: src/main/java/com/wustrive/aesrsa/util/Base64.java
package com.wustrive.aesrsa.util;
import java.io.UnsupportedEncodingException;
public class Base64 {
/**
* Chunk size per RFC 2045 section 6.8.
*
* <p>The {@value} character limit does not count the trailing CRLF, but counts
* all o... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/Base64.java", "license": "apache-2.0", "size": 19971} |
### File: src/main/java/com/wustrive/aesrsa/util/CheckUtils.java
package com.wustrive.aesrsa.util;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Map;
public class CheckUtils {
public static final String COMMON_FIELD = "flowID,initiator,";
/**
* 验证对象是否为NULL,空字符串,空数组,空的Collection... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/CheckUtils.java", "license": "apache-2.0", "size": 1149} |
### File: src/main/java/com/wustrive/aesrsa/util/ConfigureEncryptAndDecrypt.java
package com.wustrive.aesrsa.util;
public class ConfigureEncryptAndDecrypt {
public static final String CHAR_ENCODING = "UTF-8";
public static final String AES_ALGORITHM = "AES/CBC/PKCS5Padding";
public static final String RSA_ALGORITHM... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/ConfigureEncryptAndDecrypt.java", "license": "apache-2.0", "size": 269} |
### File: src/main/java/com/wustrive/aesrsa/util/ConvertUtils.java
package com.wustrive.aesrsa.util;
import java.io.UnsupportedEncodingException;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.text.DecimalFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
import ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/ConvertUtils.java", "license": "apache-2.0", "size": 10049} |
### File: src/main/java/com/wustrive/aesrsa/util/Digest.java
package com.wustrive.aesrsa.util;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import org.apache.log4j.Logger;
public class Digest {
private static... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/Digest.java", "license": "apache-2.0", "size": 4335} |
### File: src/main/java/com/wustrive/aesrsa/util/EncryUtil.java
package com.wustrive.aesrsa.util;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
import com.alibaba.fastjson.JSON;
import... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/EncryUtil.java", "license": "apache-2.0", "size": 2937} |
### File: src/main/java/com/wustrive/aesrsa/util/EncryptionUtil.java
package com.wustrive.aesrsa.util;
import java.security.MessageDigest;
/**
* Description: 加密工具类
*
* @author: wubaoguo
* @email: wustrive2008@gmail.com
* @date: 2018/9/20 14:28
* @Copyright: 2017-2018 dgztc Inc. All rights reserved.
*/
public c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/EncryptionUtil.java", "license": "apache-2.0", "size": 1828} |
### File: src/main/java/com/wustrive/aesrsa/util/RSA.java
package com.wustrive.aesrsa.util;
/*
--------------------------------------------**********--------------------------------------------
该算法于1977年由美国麻省理工学院MIT(Massachusetts Institute of Technology)的Ronal Rivest,Adi Shamir和Len Adleman三位年轻教授提出,并以三人的姓氏Rivest,Sha... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/RSA.java", "license": "apache-2.0", "size": 6624} |
### File: src/main/java/com/wustrive/aesrsa/util/SecureRandomUtil.java
package com.wustrive.aesrsa.util;
import java.security.SecureRandom;
public class SecureRandomUtil {
public static SecureRandom random = new SecureRandom();
public static String getRandom(int length) {
StringBuilder ret = new StringBuilder... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Java", "repo_name": "heibaifu/aes-rsa-java", "path": "src/main/java/com/wustrive/aesrsa/util/SecureRandomUtil.java", "license": "apache-2.0", "size": 971} |
### File: index.html
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>AdminLTE v4</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
</head>
<body>
<script>window.location.href = './dist/pages/index.html'</script>
</bod... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "heibaicha/AdminLTE", "path": "index.html", "license": "mit", "size": 309} |
### File: src/config/assets.config.mjs
import fs from 'fs-extra'
try {
fs.copySync('./src/assets', './dist/assets')
console.log('Assets copy success!')
} catch (error) {
console.error(error)
}
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "heibaicha/AdminLTE", "path": "src/config/assets.config.mjs", "license": "mit", "size": 161} |
### File: src/config/astro.config.mjs
import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
// https://astro.build/config
export default defineConfig({
build: {
// Example: Generate `page.html` instead of `page/index.html` during build.
format: 'file'
},
markdown: {
shikiConfig: ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "heibaicha/AdminLTE", "path": "src/config/astro.config.mjs", "license": "mit", "size": 517} |
### File: src/config/postcss.config.mjs
export default ctx => {
return {
map: {
inline: false,
annotation: true,
sourcesContent: true
},
plugins: {
autoprefixer: {
cascade: false
},
rtlcss: ctx.env === 'RTL' ? {} : false
}
}
}
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "heibaicha/AdminLTE", "path": "src/config/postcss.config.mjs", "license": "mit", "size": 251} |
### File: src/config/rollup.config.js
const typescript = require('@rollup/plugin-typescript')
const pkg = require('../../package.json')
const year = new Date().getFullYear()
const banner = `/*!
* AdminLTE v${pkg.version} (${pkg.homepage})
* Copyright 2014-${year} ${pkg.author}
* Licensed under MIT (https://github.c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "heibaicha/AdminLTE", "path": "src/config/rollup.config.js", "license": "mit", "size": 512} |
### File: src/html/components/_head.astro
---
const { title, path, isRtl } = Astro.props;
const cssPath = isRtl ? ".rtl" : "";
---
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{title}</title>
<!--begin::Primary Meta Tags-->
<meta name="viewport" content="width=device-width, initial-scal... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/_head.astro", "license": "mit", "size": 1829} |
### File: src/html/components/_scripts.astro
---
const { path } = Astro.props;
const adminlteJsUrl = path + "/js/adminlte.js";
---
<!--begin::Third Party Plugin(OverlayScrollbars)-->
<script src="https://cdn.jsdelivr.net/npm/overlayscrollbars@2.3.0/browser/overlayscrollbars.browser.es6.min.js" integrity="sha256-H2VM7B... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/_scripts.astro", "license": "mit", "size": 1891} |
### File: src/html/components/dashboard/_footer.astro
---
const year = new Date().getFullYear();
---
<!--begin::Footer-->
<footer class="app-footer">
<!--begin::To the end-->
<div class="float-end d-none d-sm-inline">Anything you want</div>
<!--end::To the end-->
<!--begin::Copyright-->
<strong>
Copyrigh... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/dashboard/_footer.astro", "license": "mit", "size": 461} |
### File: src/html/components/dashboard/_sidenav.astro
---
import {convertPathToHtml} from "../../../utils/index.js";
const {path, mainPage, page} = Astro.props;
const htmlPath = convertPathToHtml(path);
---
<!--begin::Sidebar-->
<aside class="app-sidebar bg-body-secondary shadow" data-bs-theme="dark">
<!--begin::Si... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/dashboard/_sidenav.astro", "license": "mit", "size": 19752} |
### File: src/html/components/dashboard/_topbar.astro
---
const { path } = Astro.props;
const distPath = path;
---
<!--begin::Header-->
<nav class="app-header navbar navbar-expand bg-body">
<!--begin::Container-->
<div class="container-fluid">
<!--begin::Start Navbar Links-->
<ul class="navbar-nav">
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/dashboard/_topbar.astro", "license": "mit", "size": 8105} |
### File: src/html/components/docs/browser-support.mdx
AdminLTE comes with the same browser support as Bootstrap 5.
> ##### Excerpt from Bootstrap's official Documentation!
>
> Bootstrap supports the **latest, stable releases** of all major browsers and platforms.
>
> For more details [look here](https://getbootstrap.... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MDX", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/docs/browser-support.mdx", "license": "mit", "size": 681} |
### File: src/html/components/docs/color-mode.mdx
```html
<!--begin::Header-->
<nav class="navbar navbar-expand bg-body">
<!--begin::Container-->
<div class="container-fluid">
<!--begin::Start Navbar links-->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-lte-toggle="si... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MDX", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/docs/color-mode.mdx", "license": "mit", "size": 5013} |
### File: src/html/components/docs/components/main-header.mdx
```html
<!-- Navbar -->
<nav class="app-header navbar navbar-expand bg-body">
<!--begin::Container-->
<div class="container-fluid">
<!-- Start navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-l... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MDX", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/docs/components/main-header.mdx", "license": "mit", "size": 7285} |
### File: src/html/components/docs/components/main-sidebar.mdx
The sidebar used in this page to the left provides an example of what your sidebar would look like. Construction of a sidebar:
```html
<!--begin::Sidebar-->
<aside class="app-sidebar bg-body-secondary shadow" data-bs-theme="dark">
<!--begin::Sidebar Bran... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MDX", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/docs/components/main-sidebar.mdx", "license": "mit", "size": 3858} |
### File: src/html/components/docs/faq.mdx
#### Can AdminLTE be used with WordPress?
AdminLTE is an HTML template that can be used for any purpose. However, it is not made to be easily installed on WordPress. It will require some effort and enough knowledge of the WordPress script to do so.
#### Is there an integrati... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MDX", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/docs/faq.mdx", "license": "mit", "size": 713} |
### File: src/html/components/docs/how-to-contribute.mdx
# Contributing to AdminLTE
Contributions are always **welcome and recommended**! Here is how for beginner's: [Get started with open source click here](https://youtu.be/GbqSvJs-6W4)
1. Contribution Requirements :
* When you contribute, you agree to give a no... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MDX", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/docs/how-to-contribute.mdx", "license": "mit", "size": 2151} |
### File: src/html/components/docs/introduction.mdx
## Quick start
There are multiple ways to install AdminLTE.
### Download & Changelog:
Always Recommended to download from GitHub latest release [AdminLTE 4](https://github.com/ColorlibHQ/AdminLTE/releases/latest) for bug free and latest features.\
Visit the [releas... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MDX", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/docs/introduction.mdx", "license": "mit", "size": 1622} |
### File: src/html/components/docs/license.mdx
AdminLTE is an open source project that is licensed under the [MIT license](https://opensource.org/licenses/MIT). This allows you to do pretty much anything you want as long as you include the copyright in "all copies or substantial portions of the Software." Attribution i... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MDX", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/docs/license.mdx", "license": "mit", "size": 645} |
### File: src/html/components/javascript/treeview.mdx
The Treeview plugin converts a nested list into a tree view where sub menus can be expanded.
##### Usage
This plugin can be used as the data api.
**Data API**
Add `data-lte-toggle="treeview"` to any ul or ol element to activate the plugin.
```html
<ul data-lte-... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "MDX", "repo_name": "heibaicha/AdminLTE", "path": "src/html/components/javascript/treeview.mdx", "license": "mit", "size": 797} |
### File: src/html/pages/UI/general.astro
---
import Head from "../../components/_head.astro";
import Footer from "../../components/dashboard/_footer.astro";
import Topbar from "../../components/dashboard/_topbar.astro";
import Sidenav from "../../components/dashboard/_sidenav.astro";
import Scripts from "../../compone... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/UI/general.astro", "license": "mit", "size": 63292} |
### File: src/html/pages/UI/icons.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";
const... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/UI/icons.astro", "license": "mit", "size": 3187} |
### File: src/html/pages/UI/timeline.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";
co... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/UI/timeline.astro", "license": "mit", "size": 8492} |
### File: src/html/pages/docs/browser-support.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import BrowserSupport from "@components/docs/browser-support.mdx";
import Sidenav from "@components/dash... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/browser-support.astro", "license": "mit", "size": 2200} |
### File: src/html/pages/docs/color-mode.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/color-mode.astro", "license": "mit", "size": 10074} |
### File: src/html/pages/docs/components/main-header.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import MainHeader from "@components/docs/components/main-header.mdx";
import Sidenav from "@compo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/components/main-header.astro", "license": "mit", "size": 13464} |
### File: src/html/pages/docs/components/main-sidebar.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import MainSidebar from "@components/docs/components/main-sidebar.mdx";
import Sidenav from "@co... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/components/main-sidebar.astro", "license": "mit", "size": 2229} |
### File: src/html/pages/docs/faq.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Faq from "@components/docs/faq.mdx";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scrip... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/faq.astro", "license": "mit", "size": 2118} |
### File: src/html/pages/docs/how-to-contribute.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import HowToContribute from "@components/docs/how-to-contribute.mdx";
import Sidenav from "@components... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/how-to-contribute.astro", "license": "mit", "size": 2212} |
### File: src/html/pages/docs/introduction.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/introduction.astro", "license": "mit", "size": 2181} |
### File: src/html/pages/docs/javascript/treeview.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Treeview from "@components/javascript/treeview.mdx";
import Sidenav from "@components/dashboa... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/javascript/treeview.astro", "license": "mit", "size": 2189} |
### File: src/html/pages/docs/layout.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";
co... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/layout.astro", "license": "mit", "size": 4083} |
### File: src/html/pages/docs/license.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import License from "@components/docs/license.mdx";
import Sidenav from "@components/dashboard/_sidenav.astro";
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/docs/license.astro", "license": "mit", "size": 2146} |
### File: src/html/pages/examples/lockscreen.astro
---
import Head from "@components/_head.astro";
import Scripts from "@components/_scripts.astro";
const title = "AdminLTE 4 | Lockscreen";
const path = "../../../dist";
const htmlPath = "..";
const year = new Date().getFullYear();
---
<!DOCTYPE html>
<html lang="en">... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/examples/lockscreen.astro", "license": "mit", "size": 1937} |
### File: src/html/pages/examples/login-v2.astro
---
import Head from "@components/_head.astro";
import Scripts from "@components/_scripts.astro";
const title = "AdminLTE 4 | Login Page v2";
const path = "../../../dist";
const htmlPath = "..";
---
<!DOCTYPE html>
<html lang="en">
<!--begin::Head-->
<head>
<He... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/examples/login-v2.astro", "license": "mit", "size": 3571} |
### File: src/html/pages/examples/login.astro
---
import Head from "@components/_head.astro";
import Scripts from "@components/_scripts.astro";
const title = "AdminLTE 4 | Login Page";
const path = "../../../dist";
const htmlPath = "..";
---
<!DOCTYPE html>
<html lang="en">
<!--begin::Head-->
<head>
<Head tit... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/examples/login.astro", "license": "mit", "size": 3072} |
### File: src/html/pages/examples/register-v2.astro
---
import Head from "@components/_head.astro";
import Scripts from "@components/_scripts.astro";
const title = "AdminLTE 4 | Register Page v2";
const path = "../../../dist";
const htmlPath = "..";
---
<!DOCTYPE html>
<html lang="en">
<!--begin::Head-->
<head>
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/examples/register-v2.astro", "license": "mit", "size": 3951} |
### File: src/html/pages/examples/register.astro
---
import Head from "@components/_head.astro";
import Scripts from "@components/_scripts.astro";
const title = "AdminLTE 4 | Register Page";
const path = "../../../dist";
const htmlPath = "..";
---
<!DOCTYPE html>
<html lang="en">
<!--begin::Head-->
<head>
<He... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/examples/register.astro", "license": "mit", "size": 3269} |
### File: src/html/pages/forms/general.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/forms/general.astro", "license": "mit", "size": 25272} |
### File: src/html/pages/generate/theme.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Scripts from "@components/_scripts.astro";
import { convertPathToHtml } from "../../../utils/index.js";... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/generate/theme.astro", "license": "mit", "size": 17266} |
### File: src/html/pages/index.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";
const ti... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/index.astro", "license": "mit", "size": 29972} |
### File: src/html/pages/index2.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";
const t... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/index2.astro", "license": "mit", "size": 56783} |
### File: src/html/pages/index3.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";
const t... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/index3.astro", "license": "mit", "size": 19525} |
### File: src/html/pages/tables/simple.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/tables/simple.astro", "license": "mit", "size": 19036} |
### File: src/html/pages/widgets/cards.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro";
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/widgets/cards.astro", "license": "mit", "size": 13997} |
### File: src/html/pages/widgets/info-box.astro
---
import Head from "@components/_head.astro";
import Footer from "@components/dashboard/_footer.astro";
import Topbar from "@components/dashboard/_topbar.astro";
import Sidenav from "@components/dashboard/_sidenav.astro";
import Scripts from "@components/_scripts.astro"... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Astro", "repo_name": "heibaicha/AdminLTE", "path": "src/html/pages/widgets/info-box.astro", "license": "mit", "size": 15382} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.