Code Monkey home page Code Monkey logo

ldb's People

Contributors

jens-erdmann avatar mervynzhang avatar mscasso-scanoss avatar perezale avatar scanoss-cs avatar scanossdev avatar superkaiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ldb's Issues

Rename ldb.so

ldb.so has the same name as an existing Samba library:

$ rpm -qfi /usr/lib64/libldb.so.2.2.2
Name        : libldb
Version     : 2.2.2
Release     : 1.fc33
Architecture: x86_64
Install Date: Fri 05 Nov 2021 11:35:13 AM CET
Group       : Unspecified
Size        : 572619
License     : LGPLv3+
Signature   : RSA/SHA256, Fri 29 Oct 2021 05:08:04 PM CEST, Key ID 49fd77499570ff31
Source RPM  : libldb-2.2.2-1.fc33.src.rpm
Build Date  : Fri 29 Oct 2021 02:28:24 PM CEST
Build Host  : buildvm-x86-11.iad2.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://ldb.samba.org/
Bug URL     : https://bugz.fedoraproject.org/libldb
Summary     : A schema-less, ldap like, API and database
Description :
An extensible library that implements an LDAP like API to access remote LDAP
servers, or use local tdb databases.

Data loss may occurred during data importation

When mining 2 local folders(2 components) into KB
step1(url mining): loop: minr -d -u
step2(snippet mining): minr -z mined/
Screenshot from 2023-09-06 10-39-21
step3(importation): minr -i mined
Screenshot from 2023-09-06 10-53-27

The data is missing. (00c53df25d1ff900259e0877741f718d,....:.s......v.Ytest/test_assignors.py)
So what happened during the importation?

when detect folder based on local KB, the client will raise bad_json-xxxx.txt

When I tried to scan local folder based on the local KB, the client will raise exceptions as following:

  • Scanning | | 0/76ERROR: The SCANOSS API returned an invalid JSON: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
  • Scanning |#### | 11/76ERROR: The SCANOSS API returned an invalid JSON: Expecting ',' delimiter or '}': line 1 column 9006 (char 9005)
    Screenshot from 2023-06-19 17-08-04
    Screenshot from 2023-06-19 17-11-29

I found the exceptions returned from API server is related to the functions in the file src/hex.c

  • ldb_uint32_read
  • ldb_uint40_read
  • ldb_uint16_read
    Screenshot from 2023-06-19 17-19-02

The print of the warnings will be returned/reponsed as data embedded in the result with format json. So how can we handle with it?

import to ldb interruption, raise ldb E056 error

I am using the 'minr' tool to import a local project to ldb, I executed 3 commands as follows:

  1. minr -d ... -u /mnt/my_project.zip -o /opt
  2. minr -z /opt/mined
  3. minr -i /opt/mined
    The 3rd command encountered a keyboard interruption, and the import step stopped.
    I re-executed the above 3 commands, but the 3rd command raised an ldb E056 error as follows:

image

The project, /mnt/my_project.zip, cannot be imported anymore.
Is there any solution to my problem?

when detect folder based on local KB, the client will raise bad_json-xxxx.txt

When I tried to scan local folder based on the local KB, the client will raise exceptions as following:

  • Scanning | | 0/76ERROR: The SCANOSS API returned an invalid JSON: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
  • Scanning |#### | 11/76ERROR: The SCANOSS API returned an invalid JSON: Expecting ',' delimiter or '}': line 1 column 9006 (char 9005)
    Screenshot from 2023-06-19 17-08-04
    Screenshot from 2023-06-19 17-11-29

I found the exceptions returned from API server is related to the functions in the file src/hex.c

  • ldb_uint32_read
  • ldb_uint40_read
  • ldb_uint16_read
    Screenshot from 2023-06-19 17-19-02

The print of the warnings will be returned/reponsed as data embedded in the result with format json. So how can we handle with it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.