Info

Testing and Issues

You can test this entry and submit issues during the testing period of the ML Competition contest.

Entries with serious issues will not be able to win the contest, but even minor issues might be important for overall results.

Voting

Comments

Please ensure you've adhered to all prior setup steps from the README.md before proceeding.

I truly appreciate your understanding and patience in this matter. If you have any further questions, please let me know.

Best regards.
Once you've resolved the library issue, you can test the functionality using the following code snippet:

```python
from libtglang import tglang_detect_programming_language

sample_code = """
[CODE]
"""
result = tglang_detect_programming_language(sample_code)
print(result)
```
For optimal efficiency in measuring prediction times, I suggest the following method:
```python
from time import time

prediction_times= [
(time() - start_time) * 1000
for sample in texts
for start_time, _ in [(time(), tglang_detect_programming_language(sample))]
]
```
To determine the programming language predictions for each code sample in the texts list, consider:
```python
predictions = [tglang_detect_programming_language(sample) for sample in texts]
```
I'd like to kindly highlight the advantages of using list comprehensions in Python, especially in terms of speed compared to traditional for-loops. I trust the above examples aptly demonstrate this, and I encourage their use for enhanced performance.

Thank you for your understanding and cooperation.

Warm regards.
You have not added any comments yet...
by rating

Issues

Fair Leopard Nov 7, 2023 at 18:53
Unfortunately, this submission has been disqualified as we were unable to rebuild or run it.
10
Fair Quokka Oct 26, 2023 at 23:21
This is an important message regarding your submission. The following issues have been discovered during preliminary testing:
symbol lookup error: ./libtglang.so: undefined symbol: PyExc_SystemError

You can provide further clarifications within the next 24 hours. 
Mindful Mantis Oct 27, 2023 at 07:22
Hello,

I hope this message finds you well. I've been made aware of a challenge with the `libtglang.so` library, stemming from an `undefined symbol: Py_Version` error. This issue is commonly triggered by a disparity in Python versions between the one I used for compilation and your current environment.


To address this:
- I'd recommend revisiting the README.md in `submission.zip` for comprehensive compilation guidance.
- Begin by accessing the `src` directory inside `submission.zip`.
- Next, compile `libtglang.pyx` with the given `setup.py`:
```bash
python setup.py build_ext --inplace
```

Upon compilation, you'll find a directory named something akin to `build/lib.linux-x86_64-cpython-3X`. This contains the recompiled `.so` file for your Python version. Please move this to the primary extracted directory, rename it as `libtglang.so`, and overwrite the original.
Nobody added any issues yet...