Skip to content

Commit

Permalink
Version 3.3.3 fix issues (#144)
Browse files Browse the repository at this point in the history
Version 3.3.3 fix issue

Co-authored-by: tugraph <tugraph@service.alipay.com>
  • Loading branch information
lipanpan03 and tugraph committed Jan 6, 2023
1 parent 86606ad commit a1a7711
Show file tree
Hide file tree
Showing 438 changed files with 5,980 additions and 481 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2022 AntGroup
Copyright 2022 AntGroup CO., Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 0 additions & 4 deletions ci/ut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,4 @@ mv $MY_WORKSPACE/* $MY_WORKSPACE/.[^.]* $WORKSPACE
fi

cd $WORKSPACE
cd $WORKSPACE/testresult/
ls -al
cd $WORKSPACE/testresult/gtest
ls -al
python3 ./ci/lcov_cobertura.py $WORKSPACE/testresult/coverage.info --output $WORKSPACE/testresult/coverage.xml --demangle
11 changes: 11 additions & 0 deletions cpplint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,14 @@ clang-format -i src/algo/algo.cpp
clang-format tool needs to be installed on your own computer by yourself.
clang-format will look for the default configuration file `.clang-format` from the root path, which has been placed in the code repository and describes Google's cpp style.
For more Google's cpp style details, see [English Version](https://google.github.io/styleguide/cppguide.html#Forward_Declarations) or [中文版](https://google-styleguide.readthedocs.io/zh_CN/latest/google-cpp-styleguide/contents.html)

## Attention

If you get errors that cpplint DO NOT recognize the Copyright, just take care of the BOM character with the next command(ueff).
``` bash
find src test include toolkits plugins -name "*.cpp" -o -name "*.h" | grep -v "/lmdb/" | xargs sed -i '' '1s/^\xef\xbb\xbf//'
```
In cpplint/cpplint.py:1850, the code are also modified to ignore BOM marker
``` python
if lines[lineix].replace('\ufeff', '').strip().startswith('/*'):
```
3 changes: 2 additions & 1 deletion cpplint/cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,8 @@ def CleanseRawStrings(raw_lines):
def FindNextMultiLineCommentStart(lines, lineix):
"""Find the beginning marker for a multiline comment."""
while lineix < len(lines):
if lines[lineix].strip().startswith('/*'):
# Modified to ignore the BOM marker before Copyright
if lines[lineix].replace('\ufeff', '').strip().startswith('/*'):
# Only return this marker if the comment goes beyond this line
if lines[lineix].strip().find('*/', 2) < 0:
return lineix
Expand Down
2 changes: 1 addition & 1 deletion deps/tugraph-web
14 changes: 13 additions & 1 deletion include/lgraph/base64_encode.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved.*/
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

/**
* @brief Base64 encode and decode. Simple implementation, to be used with BLOB fields.
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once
#include "lgraph/lgraph_db.h"
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_atomic.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

/**
* @brief Implementation of atomic operations, used in lgraph_traversal.
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_date_time.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

/**
* @brief Implemnets the DateTime, Date and TimeZone classes.
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_db.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once

Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_edge_index_iterator.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once
#include <memory>
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_edge_iterator.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once

Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_exceptions.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once

Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_galaxy.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once

Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_result.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

/**
* Result interface for plugins and built-in procedures. The result of a plugin should be provided
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_rpc_client.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once
#include <vector>
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_traversal.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once

Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_txn.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once
#include <memory>
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_types.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once

Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_utils.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once

Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_vertex_index_iterator.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once
#include <memory>
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/lgraph_vertex_iterator.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

#pragma once
#include <limits>
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/olap_base.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

/**
* This is an implementation of the TuGraph graph analytics engine. The graph analytics engine
Expand Down
14 changes: 13 additions & 1 deletion include/lgraph/olap_on_db.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/* Copyright (c) 2022 AntGroup. All Rights Reserved. */
/**
* Copyright 2022 AntGroup CO., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/

/**
* TuGraph OLAP interface. To implement a plugin that perform graph analytics on TuGraph, user
Expand Down

0 comments on commit a1a7711

Please sign in to comment.