profile
viewpoint
Vadim Markovtsev vmarkovtsev @athenianco Madrid twitter.com/vadimlearning Former system programmer, now passionate ML engineer. Google Developer Expert in ML. linkedin.com/in/vmarkovtsev data.world/vmarkovtsev

src-d/awesome-machine-learning-on-source-code 5020

Cool links & research papers related to Machine Learning applied to source code (MLonCode)

src-d/enry 434

A faster file programming language detector

src-d/datasets 218

source{d} datasets ("big code") for source code analysis and machine learning on source code

FragileTech/FractalAI 61

Cellular automaton-based calculus for the masses

src-d/borges 52

borges collects and stores Git repositories.

src-d/apollo 50

Advanced similarity and duplicate source code proof of concept for our research efforts.

src-d/gemini 44

Advanced similarity and duplicate source code at scale.

src-d/code2vec 37

MLonCode community effort to implement Learning Distributed Representations of Code (https://arxiv.org/pdf/1803.09473.pdf)

FragileTech/fragile 34

Framework for building algorithms based on FractalAI

go-enry/go-license-detector 29

Reliable project licenses detector.

issue commentsrc-d/hercules

pip3 install labours fails on Linux

I've the same problem on my Ubuntu 20.04 LTS

jesuswasrasta

comment created time in 13 hours

PR opened vcmi/vcmi

Lodestar Grail should work.

When Lodestar Grail is built:

  • Any terrain is native for all creatures of 'Cove' faction. Thus, any hero with only 'Cove' creatures has not terrain movement penalty.
  • Any creature of 'Cove' faction receives +1 attack, +1 defence, +1 speed bonuses in the battle.

When Nomad creature is in the hero army: No terrain penalty when hero is on the sand (according to the FizMiG)

+101 -38

0 comment

11 changed files

pr created time in 20 hours

push eventvcmi/vcmi

Andrii Danylchenko

commit sha ea073c81d353b6b7851e4f71badbba8c30135dbd

2184 - fix battlefield corners unreachable for 2 hex units

view details

push time in a day

startediver56/audiomentations

started time in a day

issue openedsaiarcot895/chromium-ubuntu-build

Really Weird and Complicated Bug Downloading File

NOTE: I have 'Just Black: Midnight Monochrome'

What happens when I download a big file, and I try to close the window, but then Chromium stops me (as per norm) and I click continue downloading. It goes to downloads and when I open a new tab, it's all white!

Steps To Reproduce:

  1. Install Just Back: Midnight Monochrome, By The Chrome Team
  2. Download a Big File, Big Enough that it takes at least 1-2 mins to download.
  3. Try to exit Chromium
  4. Click 'Keep Downloading'
  5. It will open Downloads
  6. Open a New Tab
  7. It Is All White, Instead of Black

created time in a day

pull request commentvcmi/vcmi

2184 - fix battlefield corners unreachable for 2 hex units

It is obviously code duplication. If somebody find a good place for this logic leave a comment. Probably stupid ai can be a part of VCMI_Lib so that we can call it from server-side to perform automatic actions. Or we can have some AI folder to share some AI routines.

nullkiller

comment created time in 2 days

PR opened vcmi/vcmi

2184 - fix battlefield corners unreachable for 2 hex units

This fixes mantis bug when you can hide from AI in a few corners. Works only using 1 hex unit against 2 hex unit

+99 -81

0 comment

4 changed files

pr created time in 2 days

create barnchvcmi/vcmi

branch : 2184-fix-unreachable-corners

created branch time in 2 days

push eventathenianco/athenian-api

Groundskeeper Willie

commit sha 66c0da6356a9f4d2aa923b17aa2be984d4c01720

Bump version: 0.7.12 → 0.7.13

view details

push time in 2 days

created tagathenianco/athenian-api

tagv0.7.13

API layer to glue them all.

created time in 2 days

startedciararogerson/Kaggle_Lyft

started time in 2 days

push eventathenianco/athenian-api

Groundskeeper Willie

commit sha 105d1ba482c98ddd9b1011161b23678505850aaf

Bump version: 0.7.11 → 0.7.12

view details

push time in 2 days

created tagathenianco/athenian-api

tagv0.7.12

API layer to glue them all.

created time in 2 days

issue commentencode/databases

Password containing digits and hashmark cannot be used (MySQL)

Found a workaround by escaping the hashmark (%23 instead of #): mysql://user_name:Xx7%234xxXX77xx@localhost/db_name

rkrell

comment created time in 2 days

issue openedencode/databases

Password containing digits cannot be used (MySQL)

If using a URL like:

mysql://user_name:Xx7#4xxXX77xx@localhost/db_name

I get the following error:

ERROR:    Traceback (most recent call last):
  File "/home/rkrell/work/elentos/elentos-balikobot/lib/python3.7/site-packages/starlette/routing.py", line 526, in lifespan
    async for item in self.lifespan_context(app):
  File "/home/rkrell/work/elentos/elentos-balikobot/lib/python3.7/site-packages/starlette/routing.py", line 467, in default_lifespan
    await self.startup()
  File "/home/rkrell/work/elentos/elentos-balikobot/lib/python3.7/site-packages/starlette/routing.py", line 502, in startup
    await handler()
  File "./main.py", line 154, in startup
    await database.connect()
  File "/home/rkrell/work/elentos/elentos-balikobot/lib/python3.7/site-packages/databases/core.py", line 84, in connect
    await self._backend.connect()
  File "/home/rkrell/work/elentos/elentos-balikobot/lib/python3.7/site-packages/databases/backends/mysql.py", line 63, in connect
    port=self._database_url.port or 3306,
  File "/home/rkrell/work/elentos/elentos-balikobot/lib/python3.7/site-packages/databases/core.py", line 448, in port
    return self.components.port
  File "/usr/lib/python3.7/urllib/parse.py", line 169, in port
    port = int(port, 10)
ValueError: invalid literal for int() with base 10: 'Xx7'

created time in 2 days

startedfossas/spectrometer

started time in 2 days

issue commentsrc-d/datasets

Getting connection refused

Ops, so..... no more data?

stavikpetr

comment created time in 2 days

issue closedencode/databases

Multiple statements in one roundtrip

Is there any way to execute multiple statements in a single roundtrip?

The execute_* and fetch_* all build a single prepared statement which prevents multiple statements in a single SQL string.

For example, lets say we wanted to set a few local variables before executing a query (common use case for row-level security)

import asyncio
from databases import Database

db = Database('postgresql://...')
await db.connect()

result = await db.fetch_one(query="select 1")
# Returns 1 

await db.fetch_one(query="""
    SET LOCAL jwt.claim.role to 'app_admin';
    SHOW jwt.claim.role;
""") 
# Exception: Cannot insert multiple commands into a prepared statement

The example is pretty niche but I think it applies generally for transactions.

async with db.transaction():

    # we don't actually need to flush this and wait for acknowledgement
    # we only care that it executes before the query statement
    await db.execute("SET LOCAL jwt.claim.role to 'app_admin';")

    result = await db.fetch_one(query="SHOW jwt.claim.role")

print(result._row)

closed time in 2 days

olirice

issue commentencode/databases

Multiple statements in one roundtrip

Per closed issue on asyncpg ^

This is not currently possible

olirice

comment created time in 2 days

created tagathenianco/athenian-api

tagv0.7.11

API layer to glue them all.

created time in 3 days

push eventathenianco/athenian-api

Groundskeeper Willie

commit sha fb52fae660f73c0d6c732480bfc7d638cf5e1692

Bump version: 0.7.10 → 0.7.11

view details

push time in 3 days

created tagathenianco/athenian-api

tagv0.7.10

API layer to glue them all.

created time in 3 days

created tagathenianco/athenian-api

tagspec-1.0.127

API layer to glue them all.

created time in 3 days

push eventathenianco/athenian-api

Groundskeeper Willie

commit sha 66d58dc79271c308aee545b5a2e89aa8ef94acc2

Bump version: 0.7.9 → 0.7.10

view details

push time in 3 days

issue commentencode/databases

Documentation lacks guidance on creating database tables

Although tighter integration would be welcome (imagine a method to create a table that does what you did manually above), that seems like the way to go for now, thanks. Now all there's left is to update the documentation.

Lonami

comment created time in 3 days

issue commentencode/databases

Documentation lacks guidance on creating database tables

How about creating temporary tables in runtime?

Lonami

comment created time in 3 days

created tagathenianco/athenian-api

tagv0.7.9

API layer to glue them all.

created time in 4 days

created tagathenianco/athenian-api

tagspec-1.0.126

API layer to glue them all.

created time in 4 days

push eventathenianco/athenian-api

Groundskeeper Willie

commit sha 7cbe11fdf12244ef89b4852cedbf164c5504bb5b

Bump version: 0.7.8 → 0.7.9

view details

push time in 4 days

push eventathenianco/athenian-api

Groundskeeper Willie

commit sha 16a460d2a1ec588c84e1fc00110d95fb0cf803e2

Bump version: 0.7.7 → 0.7.8

view details

push time in 4 days

more