repository
stringclasses
156 values
issue title
stringlengths
1
1.01k
labels
stringclasses
8 values
body
stringlengths
1
270k
tencentapijson
sql generate cache execute maxexecute
Question
image json sql generate cache execute maxexecute depth count max time start duration end
tencentapijson
removecache
Question
abstractsqlexecutor execute get get head head getcache putcache post put delete removecache case get case get case head case head result ishead null this getcacheitem sql position config getcache log I abstractsqlexecutor execute result getcache sql position result removecache
tencentapijson
Duplicate
tencentapijson
get ora 00604 sql 1 ora 01000
Question
jdk apijson 200 get ora 00604 sql 1 ora 01000 java sql sqlexception ora 00604 sql 1 ora 01000 ora 00604 sql 1 ora 01000 ora 00604 sql 1 ora 01000 at oracle jdbc driver t4cttioer processerror t4cttioer java 445 at oracle jdbc driver t4cttioer processerror t4cttioer java 396 at oracle jdbc driver t4c8oall processerror t4c8oall java 879 at oracle jdbc driver t4cttifun receive t4cttifun java 450 at oracle jdbc driver t4cttifun dorpc t4cttifun java 192 at oracle jdbc driver t4c8oall dooall t4c8oall java 531 at oracle jdbc driver t4cpreparedstatement dooall8 t4cpreparedstatement java 207 at oracle jdbc driver t4cpreparedstatement executefordescribe t4cpreparedstatement java 884 at oracle jdbc driver oraclestatement executemaybedescribe oraclestatement java 1167 at oracle jdbc driver oraclestatement doexecutewithtimeout oraclestatement java 1289 at oracle jdbc driver oraclepreparedstatement executeinternal oraclepreparedstatement java 3584 at oracle jdbc driver oraclepreparedstatement executequery oraclepreparedstatement java 3628 at oracle jdbc driver oraclepreparedstatementwrapper executequery oraclepreparedstatementwrapper java 1493 at com zaxxer hikari pool proxypreparedstatement executequery proxypreparedstatement java 52 at com zaxxer hikari pool hikariproxypreparedstatement executequery hikariproxypreparedstatement java at apijson orm abstractsqlexecutor executequery abstractsqlexecutor java 837 at apijson orm abstractsqlexecutor execute abstractsqlexecutor java 233
tencentapijson
apijsondemo druid demodatasourceconfig
Bug
window 10 jdk 1 8 0 17 mysql 5 7 14 apijson 2 9 1 1 apijsondemo druid 2 application yml 3 4 demosqlconfig getdburi getdbaccount getdbpassword 5 2021 08 22 14 39 27 467 info 7028 main com alibaba druid pool druiddatasource datasource 1 inite 2021 08 22 02 39 27 470 abstractsqlexecutor info select connection null 2021 08 22 02 39 27 470 demosqlexecutor debug ds getconnection com mysql cj jdbc connectionimpl 37864b77 com mysql cj jdbc exception communicationsexception communication link failure the last packet send successfully to the server be 0 millisecond ago the driver have not receive any packet from the server at com mysql cj jdbc exception sqlerror createcommunicationsexception sqlerror java 174 at com mysql cj jdbc exception sqlexceptionsmappe translateexception sqlexceptionsmappe java 64 at com mysql cj jdbc connectionimpl createnewio connectionimpl java 836 at com mysql cj jdbc connectionimpl connectionimpl java 456 at com mysql cj jdbc connectionimpl getinstance connectionimpl java 246 at com mysql cj jdbc nonregisteringdriver connect nonregisteringdriver java 198 at java sql drivermanager getconnection drivermanager java 664 at java sql drivermanager getconnection drivermanager java 247 at apijson orm abstractsqlexecutor getconnection abstractsqlexecutor java 740 at apijson demo demosqlexecutor getconnection demosqlexecutor java 57 at apijson orm abstractsqlexecutor getstatement abstractsqlexecutor java 705 at apijson orm abstractsqlexecutor executequery abstractsqlexecutor java 838 at apijson orm abstractsqlexecutor execute abstractsqlexecutor java 233 at apijson orm abstractparser executesql abstractparser java 1614 at apijson orm abstractobjectparser onsqlexecute abstractobjectparser java 845 at apijson orm abstractobjectparser executesql abstractobjectparser java 713 at apijson orm abstractobjectparser executesql abstractobjectparser java 44 at apijson orm abstractparser onobjectparse abstractparser java 903 at apijson orm abstractobjectpars onchildparse abstractobjectparser java 517 at apijson orm abstractobjectparser parse abstractobjectparser java 256 at apijson orm abstractobjectparser parse abstractobjectparser java 44 at apijson orm abstractparser onobjectparse abstractparser java 839 at apijson orm abstractparser onarrayparse abstractparser java 1029 at apijson orm abstractobjectpars onchildparse abstractobjectparser java 497 at apijson orm abstractobjectparser parse abstractobjectparser java 256 at apijson orm abstractobjectparser parse abstractobjectparser java 44 at apijson orm abstractparser onobjectparse abstractparser java 839 at apijson orm abstractparser parseresponse abstractparser java 398 at apijson framework apijsonparser parseresponse apijsonparser java 115 at apijson framework apijsonverifier initaccess apijsonverifi java 164 at apijson framework apijsonverifier initaccess apijsonverifi java 135 at apijson framework apijsonapplication init apijsonapplication java 78 at apijson framework apijsonapplication init apijsonapplication java 50 at apijson demo demoapplication main demoapplication java 69 cause by com mysql cj exception cjcommunicationsexception communication link failure the last packet send successfully to the server be 0 millisecond ago the driver have not receive any packet from the server at sun reflect nativeconstructoraccessorimpl newinstance0 native method at sun reflect nativeconstructoraccessorimpl newinstance nativeconstructoraccessorimpl java 62 at sun reflect delegatingconstructoraccessorimpl newinstance delegatingconstructoraccessorimpl java 45 at java lang reflect constructor newinstance constructor java 423 at com mysql cj exception exceptionfactory createexception exceptionfactory java 61 at com mysql cj exception exceptionfactory createexception exceptionfactory java 105 at com mysql cj exception exceptionfactory createexception exceptionfactory java 151 at com mysql cj exception exceptionfactory createcommunicationsexception exceptionfactory java 167 at com mysql cj protocol a nativesocketconnection connect nativesocketconnection java 89 at com mysql cj nativesession connect nativesession java 144 at com mysql cj jdbc connectionimpl connectonetryonly connectionimpl java 956 at com mysql cj jdbc connectionimpl createnewio connectionimpl java 826 31 more cause by java net connectexception connection refuse connect at java net dualstackplainsocketimpl connect0 native method at java net dualstackplainsocketimpl socketconnect dualstackplainsocketimpl java 79 at java net abstractplainsocketimpl doconnect abstractplainsocketimpl java 350 at java net abstractplainsocketimpl connecttoaddress abstractplainsocketimpl java 206 at java net abstractplainsocketimpl connect abstractplainsocketimpl java 188 at java net plainsocketimpl connect plainsocketimpl java 172 at java net sockssocketimpl connect sockssocketimpl java 392 at java net socket connect socket java 607 at com mysql cj protocol standardsocketfactory connect standardsocketfactory java 155 at com mysql cj protocol a nativesocketconnection connect nativesocketconnection java 63 34 more com mysql cj jdbc exception communicationsexception communication link failure
tencentapijson
post
Enhancement
post 196 issue image
tencentapijson
bug request unique
Bug
window 10 jdk 13 mysql 5 7 apijson 4 7 0 apijsonboot request method post tag register structure privacy phone unique register post register head structure unique phone apijson privacy phone unique phone unique apijson unique abstractverifi verifyrepeat result request structure json user must name refuse i d update i d privacy i d privacy must password phone refuse i d unique phone verify phone phone json privacy phone 13323332339 password mypassord2 user name test verify 5424 tag register unique java sql apijson json privacy phone 13323332339 password mypassord2 user name test i d privacy i d verify 5424 ok false code 500 msg duplicate entry 13323332339 for key phone unique sql generate cache execute maxexecute 1 0 1 200 depth count max 1 5 time start duration end 1627580061511 55 1627580061566 throw java sql sqlintegrityconstraintviolationexception trace unique json privacy ok true code 200 msg success count 1 i d 1627580277720 user ok true code 200 msg success count 1 i d 1627580277720 verify 5424 ok true code 200 msg success sql generate cache execute maxexecute 2 0 2 200 depth count max 1 5 time start duration end 1627580277712 15 1627580277727 image
tencentapijson
bug
Bug
window 10 jdk 13 mysql 5 7 apijson 4 7 0 apijsonboot post moment picturelist url request picturelist verifyurllist verifyurllist current jsonobject image image json moment content userid 1627466921423 picturelist 111 222 tag moment
tencentapijson
bug put key key
Bug
linux cento jdk 1 8 0 17 mysql 5 7 14 apijson 4 7 0 wecom temp f0e2ba60360fce7289b97ee1e727352d moment i d 15 praiseuseridlist 1 tag moment explain true combine image moment i d 15 content test praiseuseridlist 82002 combine praiseuseridlist tag moment explain true abstractobjectparser key image java else if method put value instanceof jsonarray wherelist null wherelist contain key false java else if method put value instanceof jsonarray wherelist null wherelist contain key false stringutil isname key userid 82002 userid 82002 image image image iswhere method put stringutil isname key false
tencentapijson
Question
organization column i d name categorycodelist createtime remark status principleid user column i d realname mobile count organization i d usercount i d organization principleid user realname realname combine
tencentapijson
mysql
Question
mysql 18 sql apijson
tencentapijson
limit 10
Question
window 10 jdk 1 8 0 17 mysql 5 7 24 apijson image 1 sql sql select i d from sys moment limit 10
tencentapijson
apiauto apijsonboot
Question
qq 20210602000721
tencentapijson
1 apijson 2 apijson 3 apijson
Question
1 apijson 2 apijson 3 apijson
tencentapijson
oracle sql
Bug
oracle json image sql image oracle sql sql image sql
tencentapijson
graphql
Duplicate
graphql
tencentapijson
apijson
Question
jdk apijson i d i d apijson db i d apijson
tencentapijson
Question
image application name appkey kdyh type 2 gmt create getnow tag application gmt create getnow response
tencentapijson
Question
jdk apijson taxinfo column tax query 2 page 0 count 10 total total excompanytaxinfo tax 0 excompanytaxinfo tax 0 exxsrinfoviews group userid column sum lrltotal lrltotal sum cjtotal cjtotal sum cjhttotal cjhttotal sum ztotal ztotal sum sfetotal sfetotal time exxsdealinfos group company i d sign org full i d exxsrinfoview xsr org full i d column company i d excompanytaxinfo company i d exxsdealinfos company i d group company i d year column tax query 2 page 0 count 10 total total exxsrinfoview userid 69 username xsr org dept i d 61 xsr org full i d 1 67 lrltotal 70 cjtotal 0 cjhttotal 0 ztotal 0 sfetotal 0 time 2020 09 14 tax tax
tencentapijson
request
Question
jdk apijson image
tencentapijson
out of range value for column i d at row 1
Question
window 10 jdk 1 8 0 41 mysql 8 0 15 apijson apijson demo i d apijson out of range value for column i d at row 1 i d bigint int i d i d bigint i d
tencentapijson
tostre
Bug
method tostre tostre tostre l170 java array tostre
tencentapijson
access
Question
jdk apijson 1 access t task name alia t task t task mysql
tencentapijson
apijson
Question
jdk apijson
tencentapijson
Enhancement
jdk apijson
tencentapijson
oracle
Bug
window 10 jdk 1 8 0 17 oracle 11 2 0 4 0 apijson 4 2 5 apijsondemo oracle image oracle image image
tencentapijson
Question
jdk apijson get 1 zone column line name ln zone name zone i d line name 2 zoneunit zone i d zone zone i d 1 2 unit unit i d unit i d page 1 count 2 total total
tencentapijson
Question
jdk apijson
tencentapijson
i d structure verifyid
Bug
structure jsonobject key i d i d structure delete put i d
tencentapijson
put
Bug
put post upload b1b894d6633e27dc0d8d391e5406f711 jpg
tencentapijson
Bug
mac os jdk 1 8 0 17 mysql 5 7 apijson 3 3 0 1 create table identity certificate i d bigint 20 unsigned not null auto increment mobile varchar 32 not null default comment name varchar 32 not null default comment idcard varchar 32 not null default comment idcard positive url varchar 500 not null default comment idcard negative url varchar 500 not null default comment status int 4 not null default 0 comment 0 1 2 3 primary key i d use btree engine innodb default charset utf8mb4 comment 2 sql select r1 from identity certificate r1 select max i d as i d from identity certificate group by idcard r2 where r1 i d r2 i d 3 apijson query 2 page 0 count 0 identity certificate schema auth column max i d abcid group idcard identity certificate schema auth i d identity certificate abcid total total query 2 page 0 count 0 identity certificate schema auth i d identity certificate abcid total total code 200 msg success sql
tencentapijson
or
Question
or name xxx or i d 1 and status normal sql
tencentapijson
Enhancement
apijson apijson apijson apijson
tencentapijson
count bug
Bug
moment column i d idd query 2 total total json localhost 8080 get image sql qq 20190320103451
tencentapijson
springboot
Enhancement
jdbc undertow tomcat undertow tomcat
tencentapijson
Enhancement
tencentapijson
oracle clob
Bug
window 10 jdk 1 8 0 17 oracle 11 g apijson 2 9 1 apijson get sql create table user i d number 10 not null issys char 1 default n not null mac clob log demosqlexecutor debug abstractpars info getobject parentpath null name null request user i d 893 abstractparser info getpath path null name null abstractparser info getpath return objectpars debug objectparser table null istable false objectparser debug objectparser isempty false tri false drop false abstractparser info getobject parentpath name user request i d 893 abstractparser info getpath path name user abstractpars info getpath return user objectparser debug objectparser table user istable true objectparser debug objectparser isempty false tri false drop false abstractparser info executesql config alia user cachestatic false combine i d content count 1 dbaccount bosnds3 dbpassword abc123 dburi jdbc oracle thin tbo db test idc vgrass com 1521 bostest i d 893 joinstring keyprefix false main true method get page 0 position 0 prepare true preparedvaluelist query 0 schema bosnds3 table user test false type 0 where i d 893 abstractverifi debug verifyrole table user method get role unknown sqlconfig debug getwhereitem key i d sqlconfig info getrealkey savelogic true originkey i d sqlconfig info getrealkey return key i d sqlexecutor debug select starttime 1541579408062 sql select from bosnds3 user where i d 893 and rownum 1 sqlexecutor info select result getcache select from bosnds3 user where i d 893 and rownum 1 0 null demosqlexecutor info select connection null sqlconfig debug getwhereitem key i d sqlconfig info getrealkey savelogic true originkey i d sqlconfig info getrealkey return key i d sqlexecutor debug select while rs next index 0 sqlexecutor debug select while rs next resultmap put 0 result sqlexecutor info select putcache select from bosnds3 user where i d 893 and rownum 1 resultmap resultmap size 1 sqlexecutor debug select endtime 1541579408753 duration 691 return resultmap get 0 abstractparser debug putqueryresult queryresultmap containskey valuepath queryresultmap put path result abstractparser info putqueryresult valuepath user result i d 893 ad client i d 37 ad org i d 27 isactive y modifierid 893 creationdate 2009 01 13 11 48 17 0 modifieddate 2018 10 31 09 33 31 0 ownerid 1 passwordhash bos20 isenable 1 isadmin 1 usertype 1 truename name root description password 753951 email language zh cn be otp n otp length 8 otp second 120 be otp only n issm n be out n issaler y c store i d 71 discountlimit 0 3 isopr n c customer i d 1 c customerup i d 0 sgrade 30 passwordreset n isret y webpos per 1000000001 issys n mac b4519b82bc29afeb2d2205dc3aa7d2ec8279cce8afbcb04d7806342b89b6790b33f13f512203c920f333e3418032e8fa116031436923a1fe6b3010e3c458116313bb0330015e94c8d40ed4f4c866997c1e384a751f9bd75df9ef63cb90662f6c14288441b9da49aaae8e9b0784a81c7b37d774a3eb22602ff89a47b5ac546e338e1b83a30c10a6a346a9efad752f54059797a8562d7626e472037e0d1dc81d665af2b28664ded39693a0b3f6a958fa64db0c6a6e5d795c607fa6d84840dc5711a450360f45ac403f9638715829d6d34dcabe632ac5f47f610d7d56897e7d102b844fa0fcf2b5f59b4a1b6f5ed0661463ecfa0f19af16e1a1efc3da3c00d4414ad434f5aaff6a280a5ab777d7a0191e3b0e2a75eb81682eb5e8bacd0784e387b0ba6f212bf46d9739dd7030054823f668595ef8c19767f933e11f91dd17ba2d4e3f09c3a454bda1c0cf60327c15b8bbfac4fa3ce970370ec8e76fdbcbab187fcf89e59806390068b0098f52ec84c456cbc6cd7df52c29462fb1e6b304255d72d6eb6687da3e57981a5d9857522b8896fa378faafe0728a1ff7c1bd34d82b1f2bfb22b9d542acc589cd1bfc161f9008825b71dd2f94c2614a0df98e22a869a717cd62fbc17d7e61177f36e7e6509de541b7b38ddcf4f9bf1bd158625168c9efba7776238129fe4a5810c5f89ad5d0af815065fe4c694204d9db2a6451fc2e7e54dfee8c805f233223cd907be10d3933f91ea3d4392158a6cba00ece7a2ea88b7840882de70534d469193c6137dcdaae673088e6e97c85ae21c364bec5feed27f741f5d29cd8cc78ffdce6cd74b93a1dbb235faf8f3e284f172b823e5626c9e3d0e8d507f75bd21c356ec4609b118a31382638336a7374532a8a21b379856ef872d5ce6766f00ff268364eb5be93e6f82a94b846c4e36c50e13b97fcb56e26964b96e72581dde12cba13590cdffd2dfc343fb28cdb709ad1ea53f2dbe4ea6abcd0bca0d94c52dae465960ec5dd5faf59442 be sys user y qnvl vip n webpos20 per 111111111111111 objectparser info onchildparse objectparser onparse key user child i d 893 ad client i d 37 ad org i d 27 isactive y modifierid 893 creationdate 2009 01 13 11 48 17 0 modifieddate 2018 10 31 09 33 31 0 ownerid 1 passwordhash bos20 isenable 1 isadmin 1 usertype 1 truename name root description password 753951 email language zh cn be otp n otp length 8 otp second 120 be otp only n issm n be out n issaler y c store i d 71 discountlimit 0 3 isopr n c customer i d 1 c customerup i d 0 sgrade 30 passwordreset n isret y webpos per 1000000001 issys n mac b4519b82bc29afeb2d2205dc3aa7d2ec8279cce8afbcb04d7806342b89b6790b33f13f512203c920f333e3418032e8fa116031436923a1fe6b3010e3c458116313bb0330015e94c8d40ed4f4c866997c1e384a751f9bd75df9ef63cb90662f6c14288441b9da49aaae8e9b0784a81c7b37d774a3eb22602ff89a47b5ac546e338e1b83a30c10a6a346a9efad752f54059797a8562d7626e472037e0d1dc81d665af2b28664ded39693a0b3f6a958fa64db0c6a6e5d795c607fa6d84840dc5711a450360f45ac403f9638715829d6d34dcabe632ac5f47f610d7d56897e7d102b844fa0fcf2b5f59b4a1b6f5ed0661463ecfa0f19af16e1a1efc3da3c00d4414ad434f5aaff6a280a5ab777d7a0191e3b0e2a75eb81682eb5e8bacd0784e387b0ba6f212bf46d9739dd7030054823f668595ef8c19767f933e11f91dd17ba2d4e3f09c3a454bda1c0cf60327c15b8bbfac4fa3ce970370ec8e76fdbcbab187fcf89e59806390068b0098f52ec84c456cbc6cd7df52c29462fb1e6b304255d72d6eb6687da3e57981a5d9857522b8896fa378faafe0728a1ff7c1bd34d82b1f2bfb22b9d542acc589cd1bfc161f9008825b71dd2f94c2614a0df98e22a869a717cd62fbc17d7e61177f36e7e6509de541b7b38ddcf4f9bf1bd158625168c9efba7776238129fe4a5810c5f89ad5d0af815065fe4c694204d9db2a6451fc2e7e54dfee8c805f233223cd907be10d3933f91ea3d4392158a6cba00ece7a2ea88b7840882de70534d469193c6137dcdaae673088e6e97c85ae21c364bec5feed27f741f5d29cd8cc78ffdce6cd74b93a1dbb235faf8f3e284f172b823e5626c9e3d0e8d507f75bd21c356ec4609b118a31382638336a7374532a8a21b379856ef872d5ce6766f00ff268364eb5be93e6f82a94b846c4e36c50e13b97fcb56e26964b96e72581dde12cba13590cdffd2dfc343fb28cdb709ad1ea53f2dbe4ea6abcd0bca0d94c52dae465960ec5dd5faf59442 be sys user y qnvl vip n webpos20 per 111111111111111 abstractparser debug get parseresponse request user i d 893 json error tojsonstre catch write clob error abstractparser debug parse return response null abstractparser debug parseresponse endtime 1541579408815 duration 890 json error tojsonstre catch write clob error
tencentapijson
mysql drivermanager datasource
Enhancement
tencentapijson
linux
Question
jar mvn compile lib mvn compile apijson server apijson server 2 5 5 system project basedir libs apijson server2 5 5 jar mvn package java
tencentapijson
Question
java operation disallow user password
tencentapijson
Question
demo 2 moment userid apijson user userid 70793 moment user i d moment userid 60 mement
tencentapijson
Enhancement
sql xxx count 5 page 0 query 0 xxx column from xxx info delete from xxx bug
tencentapijson
server apijson
Enhancement
3 server java
tencentapijson
war
Question
war war apijson library
tencentapijson
php
Question
php
tencentapijson
Enhancement
mysql
tencentapijson
jar
Enhancement
jar jar
tencentapijson
demo
Question
apijson demo demo apijson curd
tencentapijson
Question
1 2 sql sql
tencentapijson
Question
1 2
tencentapijson
apijson
Question
tencentapijson
tag
Question
code 406 msg tag table count 3 user code 406msg tag table proto object
tencentapijson
node js
Question
node js
tencentapijson
Question
1 2 sql
tencentapijson
issue
Question
graphql 1 sql sql mybatis hibernate 2 api 3 tommylemon
tencentapijson
restful
Question
json api graphql
tencentapijson
Question
tencentapijson
role
Enhancement
user creditcard creditcard java
tencentapijson
Enhancement
java
williamfisetalgorithms
generic segment tree min max range update bug
Bug
the generic segment tree implementation seem to be suffer from two issue when use multiplication range update with min max range query the segment tree doesn t seem to handle overflow well hard to avoid with multiplication update in general or at least the result doesn t match with the test value this may be because the segment tree only capture the min max value in a segment and when this value overflow the true min max be lose not sure how much can be do here perhaps just ensure no overflow can happen in the test update involve negative value aren t be handle I m not certain this can be handle with the current framework I think we may need to keep track of more information it may be worth investigate if a shadow min segment tree or a pair of value on the segment node can be useful for a max segment tree for this situation and vice versa when we encounter a negative value my idea be that for a max segment tree when a negative value be encounter the maximum value would become the minimum value in a min segment tree I don t know if this work but I think it s in the right direction java long ar 2 1 3 4 1 genericsegmenttree st new genericsegmenttree ar genericsegmenttree segmentcombinationfn max genericsegmenttree rangeupdatefn multiplication st rangeupdate1 0 4 1 assertthat st rangequery1 0 4 isequalto 4 negative number be a known issue st rangeupdate1 0 4 2 assertthat st rangequery1 0 4 isequalto 2 return 8 as max but should be 2
williamfisetalgorithms
suffix array improvement
Enhancement
to polish off the suffix array datum structure we still need to add test automate detect alphabet shift size finish nlogn construction x refactor sa class
williamfisetalgorithms
modpow function break
Bug
modpow function in mathematic folder be break in particular the function fail for some negative exponent to debug compare against the biginteger modpow method be a good place to start
williamfisetalgorithms
improve priorityqueue construction to o n with heapify
Enhancement
when a binary heap be create from a primitive array of value we heapify the array to create a binary heap in o n however when a collection be pass into the constructor we lazily add element to the pq result in o nlog n construction let s investigate if we can also heapify the collection constructor o n construction with heapify l29 o nlog n construction without heapify l42
williamfisetalgorithms
empty eulerian path bug
Bug
from a comment I get on youtube that need investigation if the graph have 3 node 0 1 2 and the indegree and outdegree of all the node be 0 then there be an empty eulerian path but the code result in 0 do you think findstartnode can be enhance to handle this edge case relevant video euler path circuit existence euler path circuit algorithm euler path circuit source code code test we should add test for this edge case and or fix the code
williamfisetalgorithms
suffix array lcs break
Bug
investigate the behavior of the lcs method under different k value to determine if it s work properly especially with long string I haven t look into the detail yet but assume the initial approach be still correct and there s just a bug in the code which be quite possible it may be worth investigate to see if we can swap out the current sa implementation with the slow but more stable implementation if that doesn t work I can also swap out the slide window minimum with a min range query segment tree to see if I get a different result
williamfisetalgorithms
cut polygon additional point
Bug
the cut polygon snippet seem to provide additional point when a cut operation be perform which probably shouldn t be there for example when the follow run the additional point 2 2 appear out of nowhere java pt squarepolygon new pt 0 0 new pt 0 4 new pt 4 0 new pt 4 4 pt p1 new pt 1 1 pt p2 new pt 5 5 pt poly1 cut squarepolygon p1 p2 pt poly2 cut squarepolygon p2 p1 system out println first polygon for pt pt poly1 system out println pt print first polygon 4 0 4 0 0 0 0 0 0 0 4 0 2 0 2 0 probably should not be here system out println nsecond polygon for pt pt poly2 system out println pt second polygon 4 0 4 0 0 0 0 0 2 0 2 0 probably should not be here 4 0 0 0 finnlidbetter assign you since make this snippet right perhaps you can offer some insight
williamfisetalgorithms
add dinic with dynamic tree
null
once 30 be complete see if the performance can be improve by use a dynamic tree to obtain o evlogv time complexity
williamfisetalgorithms
miss algorithm
Help Wanted
still need to code up and document usage of how to use the follow algorithm help be of course always appreciate graph theory tree relate centroid decomposition heavy light decomposition distance between two node low common ancestor x tree center s x tree diameter x tree isomorphism canonical form o v e x root tree string aho corasick boyer moore burrow wheeler x long repeat substre s x long common substre s x suffix array lcp kasai algorithm x suffix array string match o mlogn suffix array string match o m logn z algorithm
antlrantlr4
integrate antlr4 into oss fuzz
Question
hi all I have prepare the initial integration of antrl4 into google oss fuzz this will enable continuous fuzzing of this project which will be conduct by google bug that will be find by fuzzing will be report to you after the initial integration of this project into oss fuzz I will continue to add additional fuzz test to improve the code coverage over time the integration require a primary contact someone to deal with the bug report submit by oss fuzz the email address need to belong to an establish project committer and be associate with a google account as per here when a bug be find you will receive an email that will provide you with access to clusterfuzz crash report and fuzzer statistic more than 1 person can be include please let I know who I should include if anyone jazzer be use for fuzze java application jazzer be a coverage guide in process fuzzer for the jvm platform develop by code intelligence it be base on libfuzzer and bring many of its instrumentation power mutation feature to the jvm jazzer have already find several bug in jvm application jazzer finding finding please let I know if you have any question regard fuzzing or the oss fuzz integration
antlrantlr4
literal unicode symbol in grammar
Question
if I generate a lexer for the java target with a grammar that contain literal unicode symbol encode in utf 8 e g lexer grammar lex forall the generate lexer differ when generate on different platform linux window in this case as far as I understand this be because when you do not supply the encoding argument the default locale s encoding be use and so on window the grammar be read in in the wrong encoding and the lexer end up try to lex some mojibake however the lexicon say make sure to use the encoding option on the antlr tool if your grammar file be not in utf 8 format so that antlr read character properly this read to I like it be intend that the global default for grammar encoding be utf 8 so perhaps the documentation could be clarify a bit in this regard
antlrantlr4
feature parsing of binary stream instead of utf 8
Question
antlr should support the parsing of raw binary stream 1 byte per input character alongside utf 8 character have it available as an encoding for example antlr4 encode raw grammar g4 for example to match the byte 0x80 it be not possible right now as u0080 evaluate to 0xc280
antlrantlr4
link to plugin s web site be report as not find by maven linkcheck plugin
Bug
hello we use maven linkcheck plugin to check link on checkstyle s website the plugin report that on page the follow link be not find 404 link on plugin html be generate by apache maven project info report plugin all url be grab from effective pom of plugin here be the code l239 l269 in effective pom xml of maven antlr4 plugin the problematic link be as a result we do not have an ability to change plugin url on that page because those link be specify by plugin developer so please correct the link because there be contradiction between linkcheck and maven antlr4 plugin thank in advance
antlrantlr4
function gettext doesn t work properly
Invalid
hello I have the follow grammar file for antlr4 5 1 grammar test start name name aaa ab system out println gettext x ws skip and java file import org antlr v4 runtime import org antlr v4 runtime tree public class parset public static void main string args throw exception antlrinputstream stream new antlrinputstream aaax abx aaax testlexer lexer new testlexer stream commontokenstream tokens new commontokenstream lexer testparser parser new testparser token parserrulecontext tree parser start function gettext return aaa ok abx wrong x should be match after call the function gettext aaa ok
antlrantlr4
testperformance exclude from bild py
Bug
currently bild py exclude test in testperformance however this exclusion doesn t account for the difference between testperformance in the tool test and the new testperformance that s generate by the runtime test suite 909 at least the latter should be run during the standard test cycle
antlrantlr4
the base visit method return null but the parameter be not null antlr 4
Bug
hi I have a strange probl m with grammar rule with alternative or when I be try to visit it by visitor instance derive from base class for antlr4 visitor the nullreferenceexception be throw I ve also try to call the specific method for the type by switch or if else if if context type declaration gettype typeof csharp4parser classdeccontext visitclassdec but it throw an error that it can not be retype for rule with alternative once the type be parent class at other time it s type be derive child type I do not understand it here be the specific rule antlr type declaration partial type declaration partialdec class declaration classdec struct declaration structdec interface declaration interfacedec enum declaration enumdec delegate declaration delegatedec and here be the visit method call csharp public override list visitabsclasstypedeclaration csharp4parser absclasstypedeclarationcontext context absclasstype ret absclasstype visit context type declaration 0 every visit method return a list if it might be empty it return null when I click on the local during the debug the instance context type declaration be not null but visit context type declaration be null how be it possible do anybody know where be the problem good reguard peta
antlrantlr4
add cli switch in testrig to specify lexer name
Bug
I have a project where a single lexer be use by two different parser phaselexer phaseaparser phasebparser neither testrig nor antlrwork can run my parser because they both try to infer the lexer name from the parser name it would be nice if either a cli switch could be add to specify the lexer or if an option such as lexer name could be add to the grammar file
antlrantlr4
fix crash bug in tokenstreamrewriter
Bug
fix crash bug in tokenstreamrewriter order of operation issue use before delete not vice versa
antlrantlr4
dart fix for 4320 export additional type
Bug
this pr fix 4320 it be require for porting grammar v4 python python3 to go I be block without this change sometimes additional token must be create and emit in the token stream by the lexer the api to do that be in most target except dart this change fix that export pair and multimap use in commontoken creation
antlrantlr4
typescript fix type 4318
Bug
fix 4318
antlrantlr4
remove stray type annotation from python2 runtime
Bug
xpath support still retain python3 type annotation this yield a partial installation when use setuptool on both plain python2 byte compile build bdist linux x86 64 egg antlr4 xpath xpath py to xpath pyc file build bdist linux x86 64 egg antlr4 xpath xpath py line 69 def init self parser parser path str syntaxerror invalid syntax or jython extract antlr4 python2 runtime 4 13 0 py2 7 egg to build jython lib site package syntaxerror mismatch input expect rparen build jython lib site package antlr4 python2 runtime 4 13 0 py2 7 egg antlr4 xpath xpath py 69 29 def init self parser parser path str n
antlrantlr4
upgrade maven bundle plugin fix last reproducible build issue
Bug
after 3809 merge see 4 12 0 release check it be hit by that be fix in this 5 1 9 release of maven bundle plugin
antlrantlr4
feature fix 4150 prevent invalid codegen in go
Bug
fix prevent the use of label start stop exception from generate bad go code close 4150 it might be good to prevent the use of label name that have an internal clash such as start text etc but that be not the case so this patch register start stop and exception as reserve name that must be suffix with it s still go to be a little confusing as on a rule the go code will have getstart which give the build in rule start get start which will return the label reference but this will prevent people raise error about code gen that be not really error
antlrantlr4
antlr 4 12 0 may produce java source with illegal unicode escape under window if a package name begin with u
Bug
this be a regression as 4 11 1 work correctly for file with a package start in u for instance it unibo xxx when use under window antlr 4 12 0 produce a header comment in the form generate from it unibo alchemist model internal biochemistry dsl biochemistrydsl g4 by antlr 4 12 0 this be problematic however as the java compiler report it as error illegal unicode escape here be a gradle scan show the issue quick reproduction can be achieve with the follow git clone cd alchemist git checkout renovate antlr4 gradlew alchemist incarnation biochemistry compilejava the fix should be reasonably easy I d suggest convert backslashe to slash in the header also this would generate the same comment code for all the platform
antlrantlr4
go exponentially bad absymal performance as of
Bug
target information go go get u github com antlr antlr4 runtime go antlr v4 d5dd253 same with plain v4 small possible grammar and code that reproduce the behavior expect parse 19 file should take around 0 2s actual parse 19 file take more than 11 and exponentially more the more file there be happen as of 5 5s get bad with 56df72ca6742 10 see example in attach zip include sample file and grammar issue zip to test old and new behaviour just toggle the comment line in go mod and run go mod tidy go test timeout 30 run testparse issue count 1 edit after remove all lead conditional value summary comment and put they into a hidden channel performance be still a bit low 20 but much much well than whatever that issue be
antlrantlr4
go runtime panic
Bug
chenquan report bug here issuecomment 1279961347 I find this problem in github com antlr antlr4 runtime go antlr v1 4 10 grammar panic interface conversion antlr predictioncontext be antlr emptypredictioncontext not antlr arraypredictioncontext recover panic interface conversion antlr predictioncontext be antlr emptypredictioncontext not antlr arraypredictioncontext recover panic interface conversion antlr predictioncontext be antlr emptypredictioncontext not antlr arraypredictioncontext
antlrantlr4
fix 2016 round 2
Bug
supercede fix 2016 jimidle go target fail this new test test listlabelsonrulerefstartofalt state execute java lang interruptedexception panic interface conversion antlr predictioncontext be antlr emptypredictioncontext not antlr arraypredictioncontext recover panic interface conversion antlr predictioncontext be antlr emptypredictioncontext not antlr arraypredictioncontext goroutine 1 run test parser testparser expression func2 private var folder w1 nr4stn13lq0rvjdkwh7q8cc0000gn t gorunner forkjoinpool 1 worker 7 1661633249352 parser test parser go 299 0xfe panic 0x10ed920 0xc00007bc80 usr local go src runtime panic go 884 0x212 github com antlr antlr4 runtime go antlr merge 0x113ebf0 0xc000014d80 0x113eca0 0xc000012048 0x0 0xfffffffffffffffe user parrt antlr code antlr4 runtime go antlr prediction context go 407 0x351 github com antlr antlr4 runtime go antlr baseatnconfigset add 0xc00002acc0 0x113f068 0xc000130a00 0x0 user parrt antlr code antlr4 runtime go antlr atn config set go 140 0x21f github com antlr antlr4 runtime go antlr parseratnsimulator closurework 0xc000064300 0x113f068 0xc000130a00 0x1140138 0xc00002acc0 0xc00012eb70 0x0 0x75 0xffffffffffffffff 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1030 0xbd github com antlr antlr4 runtime go antlr parseratnsimulator closurecheckingstopstate 0xc000064300 0x113f068 0xc000130a00 0x1140138 0xc00002acc0 0x156ba98 0x40 0x1 0xffffffffffffffff 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1022 0x34a github com antlr antlr4 runtime go antlr parseratnsimulator closurework 0xc000064300 0x113f068 0xc0001309b0 0x1140138 0xc00002acc0 0xc00012ed10 0x0 0x75 0xffffffffffffffff 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1088 0x43d github com antlr antlr4 runtime go antlr parseratnsimulator closurecheckingstopstate 0xc000064300 0x113f068 0xc0001309b0 0x1140138 0xc00002acc0 0x156ba98 0x40 0x1 0xffffffffffffffff 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1022 0x34a github com antlr antlr4 runtime go antlr parseratnsimulator closurework 0xc000064300 0x113f068 0xc000130960 0x1140138 0xc00002acc0 0xc00012eeb0 0x0 0x75 0xffffffffffffffff 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1088 0x43d github com antlr antlr4 runtime go antlr parseratnsimulator closurecheckingstopstate 0xc000064300 0x113f068 0xc000130960 0x1140138 0xc00002acc0 0xc000130320 0x0 0x1 0xffffffffffffffff 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1022 0x34a github com antlr antlr4 runtime go antlr parseratnsimulator closurework 0xc000064300 0x113f068 0xc000130910 0x1140138 0xc00002acc0 0xc00012f0a0 0x0 0xf0 0xffffffffffffffff 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1088 0x43d github com antlr antlr4 runtime go antlr parseratnsimulator closurecheckingstopstate 0xc000064300 0x113f068 0xc000130910 0x1140138 0xc00002acc0 0xc00012f140 0x94 0x1 0xffffffffffffffff 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1022 0x34a github com antlr antlr4 runtime go antlr parseratnsimulator closurecheckingstopstate 0xc000064300 0x113f068 0xc0001308c0 0x1140138 0xc00002acc0 0x156ba98 0x40 0x1 0x0 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1008 0x747 github com antlr antlr4 runtime go antlr parseratnsimulator closurework 0xc000064300 0x113f068 0xc000130870 0x1140138 0xc00002acc0 0xc00012f2e0 0x0 0x75 0x0 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1088 0x43d github com antlr antlr4 runtime go antlr parseratnsimulator closurecheckingstopstate 0xc000064300 0x113f068 0xc000130870 0x1140138 0xc00002acc0 0x156ba98 0x40 0x1 0x0 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1022 0x34a github com antlr antlr4 runtime go antlr parseratnsimulator closurework 0xc000064300 0x113f068 0xc0001305f0 0x1140138 0xc00002acc0 0xc00012f480 0x0 0x75 0x0 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1088 0x43d github com antlr antlr4 runtime go antlr parseratnsimulator closurecheckingstopstate 0xc000064300 0x113f068 0xc0001305f0 0x1140138 0xc00002acc0 0x8 0x50 0x1 0x0 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1022 0x34a github com antlr antlr4 runtime go antlr parseratnsimulator closurework 0xc000064300 0x113f068 0xc0001305a0 0x1140138 0xc00002acc0 0x20 0x0 0x0 0x0 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1088 0x43d github com antlr antlr4 runtime go antlr parseratnsimulator closurecheckingstopstate 0xc000064300 0x113f068 0xc0001305a0 0x1140138 0xc00002acc0 0x1047994 0x40 0x1 0x0 0x0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 1022 0x34a github com antlr antlr4 runtime go antlr parseratnsimulator closure user parrt antlr code antlr4 runtime go antlr parser atn simulator go 969 github com antlr antlr4 runtime go antlr parseratnsimulator computereachset 0xc000064300 0x1140138 0xc00002ab00 0x4 0x1 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 575 0x3d5 github com antlr antlr4 runtime go antlr parseratnsimulator execatnwithfullcontext 0xc000064300 0x1140138 0xc00002a980 0x1140138 0xc00002aa40 0x113f508 0xc00002a2c0 0xc00012fa40 0x29355e48 0xc00006f4f0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 398 0x17f github com antlr antlr4 runtime go antlr parseratnsimulator execatn 0xc000064300 0xc00002a4c0 0xc000106310 0x113f508 0xc00002a2c0 0x1 0x29355e48 0xc00006f4f0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 251 0xa8f github com antlr antlr4 runtime go antlr parseratnsimulator adaptivepredict 0xc000064300 0x113f508 0xc00002a2c0 0x4 0x29355e48 0xc00006f4f0 user parrt antlr code antlr4 runtime go antlr parser atn simulator go 145 0xbef test parser testparser expression 0xc0000122d0 0xc00002a2c0 private var folder w1 nr4stn13lq0rvjdkwh7q8cc0000gn t gorunner forkjoinpool 1 worker 7 1661633249352 parser test parser go 340 0x507 test parser testparser expression private var folder w1 nr4stn13lq0rvjdkwh7q8cc0000gn t gorunner forkjoinpool 1 worker 7 1661633249352 parser test parser go 273 main main private var folder w1 nr4stn13lq0rvjdkwh7q8cc0000gn t gorunner forkjoinpool 1 worker 7 1661633249352 test go 37 0x15c exit status 2 test directory var folders w1 nr4stn13lq0rvjdkwh7q8cc0000gn t gorunner forkjoinpool 1 worker 7 1661633249352
antlrantlr4
fix 2826 go template be incorrect for dynamic scope
Bug
fix replacement for pr 3101 fix 2826 correct code generation template for dynamic scope
antlrantlr4
fix fix for
Bug
fix 3718 implement generic collection and fiux la optimizer o implement collection use generic to solve have conflict in previous implementation of dfastate collection and alt conflict resolution o change alt and config to use correct hash and equal as per java o fix la runtime optimization routine o a few tidy up on comment etc nb there be now extra hash and equal routine that I have to leave there unless I want to go through all the code and rationalize and refactor not worth it if we be go to rewrite the generic collection work for this purpose but the make up of the current struct etc force a few hack that win t be need with well structure send this pr without test for the collection as o they can t be bad than what be there that doesn t work o they be test with real grammar anyway o it be saturday and time to get ready for epl to start in england come on leed
antlrantlr4
py2 fix syntaxerror due to f string
Bug
sign off by travis thieman follow up from fix the f string syntax error in the python 2 setup py file this should make the python 2 runtime installable again from python 2 pip
antlrantlr4
terrible golang performance
Bug
stackoverflow google group example code a simple rule such as 1 eq 2 or 1 eq 2 or 1 eq 2 or 1 eq 2 or 1 eq 2 take exponentially long to parse the more 1 eq 2 or clause there be this do not happen in python by my testing or csharp dart java by stackoverflow comment on my machine of line vs parse time 11 0 5s 12 1 2s 13 3 2s 14 8 1s 15 21 9 16 57 5s give that python doesn t face this issue I can t imagine I m do something terrible in my grammar issue go away if I put paren on thing but that s not a real solution on 4 10 1 first notice with 4 9 1 any help be greatly appreciate surprised I can t find other with this issue
antlrantlr4
javascript runtime bad field name bad comment
Bug
in this so question I take a look at the javascript runtime to see if buildparsetree be define for a parser indeed it be l40 but I notice there be one applied occurrence of the field erroneously spell buildparsetree l137 of course in the warped world of js this be not catch either by compiler or runtime also there be no getbuildparsetree note here l85 and here l120 I realize code review be old school but rely on a terrible programming language like javascript to find error be not go to work
antlrantlr4
cpp disable warning for external project
Bug
when add antlr as an external project the downstream user will generally not be interested in compiler warning emit for antlr itself as they win t be able to do anything about they anyway in their project thus this commit add a new cmake option disable warning that can be use to suppress compiler warning this flag be then subsequently set whenever antlr be use as an externalproject
antlrantlr4
findantlr fix version regex
Bug
the currently use regex only allow for single digit version component for everything but the major version thus when parse e g the version 4 10 1 only the part 4 1 would be match and thus the determined antlr version would be wrong
antlrantlr4
docker build be faild in arm os
Bug
I try to build a docker image use the following procedure describe in the readme but it fail I use arm os git clone cd antlr4 docker docker build t antlr antlr4 the jdk image use in the dockerfile do not support arm so it may be necessary to specify the platform docker build t antlr antlr4 docker build t antlr antlr4 platform linux amd64 it would be well to fix the readme
antlrantlr4
go fix symbol collision in generate lexer and parser
Bug
if a lowercase grammar name be use the function will collide this change ensure they do not by enforce capitalization when necessary
antlrantlr4
the parsefile method of the interpreterdatareader class be miss code line br readline
Bug
target information java the parsefile method of the interpreterdatareader class before check the code if line equal channel name miss code line br readline the source code like this image the code we re expect like this image
antlrantlr4
antlr runtime standard 4 9 3 invalid strong name
Bug
use the late nuget package 4 9 3 I get invalid strong name exception both the netstandard 2 0 and the net45 version do not seem to be correctly sign 4 9 2 seem to be ok verify with sn exe
antlrantlr4
fix for issue 3319
Bug
this be a fix for which be relate to the problem report here issuecomment 951043189 the problem be in the go runtime specifically with atnconfigset s in august 2021 there be a commit for a new hash set implementation for set diff c8d23baf74aa15c0f0d472c90651ccd8755c5acd23dc452e1f42fa5d9d564907 which expose a bug in atnconfigset s that have exist for over 5 year it be only now reveal due to the confluence of that commit the huge test suite of antlr4 grammar in github com antlr grammar v4 now port to 6 or so target and a bug in the github action build for grammar v4 our lucky day the august 2021 commit implement the hash set as a two level hash table with probe the problem occur if one try to add an atnconfig to the table with a nil lexeractionexecutor field when the atnconfig s collide in the hash table this only happen when two state have equal state number module 16 the old code would get a segv at this line of code l167 the solution be to first cast other to othert and then test that it be nil prior to use I add code to test the bug in file atnconfigset test go with this change please read the comment in the file to see how to test
antlrantlr4
go target can not use superclass for the lexer grammar
Bug
I m try to use the superclass option in a lexer grammar it work fine for a parser grammar but for a lexer grammar it fail at runtime with a null pointer dereference in the generated constructor newfoobarlexer for example type csharplexer struct csharplexerbase channelname string modename string todo eof string func newcsharplexer input antlr charstream csharplexer l new csharplexer l baselexer antlr newbaselexer input crash here with null ptr deref return l it crash on l baselexer antlr newbaselexer input specifically on the assignment to l baselexer and not on the call to the constructor antlr newbaselexer input contrast this with the parser code type csharpparser struct csharpparserbase func newcsharpparser input antlr tokenstream csharpparser this new csharpparser this baseparser antlr newbaseparser input return this this code work for the parser the assignment to this baseparser work fine as it s not a null pointer the constructor code for the lexer fail because the type csharplexer struct be wrong it define the struct to contain csharplexerbase whereas in the parser type csharpparser struct the struct contain csharpparserbase not a pointer change the type struct declation for the generate lexer to csharplexerbase instead of csharplexerbase fix the crash and my parser lexer work just fine the problem be here csharplexerbase the line erroneously contain whereas for the parser here l180 it be declare directly
antlrantlr4
revert cpp target no building test sample for external utfcpp
Bug
revert antlr antlr4 3040 this seem to conflict more than expect with previous patch for utfcpp