Datasets:
idx int64 0 14.5k | hash stringlengths 32 32 | target stringclasses 1
value | model stringclasses 1
value | language stringclasses 2
values | split stringclasses 1
value | source stringclasses 2
values | code stringlengths 22 80.4k | graphml stringlengths 5.45k 18.1M |
|---|---|---|---|---|---|---|---|---|
22 | 03723fb04307c5dd070d098d942e7218 | human | human | java | test | gh | @Override
public void h76880867()
{
if (h533e8106 != null && h533e8106.h5fe39cba("h26bb595d-ha9a58d8c"))
{
ha9a58d8c();
}
h533e8106 = null;
h34c83614 = null;
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
48 | 3599a3d70035aaed10a34cb58156591b | human | human | java | test | gh | public String hddede50a() {
if (hb23634c6 instanceof h270d5d52) {
h270d5d52 he0f9e332 = (h270d5d52)hb23634c6;
List<hd10c0b43> hf0f4ad24 = he0f9e332.haeb81734();
if (hf0f4ad24 != null && !hf0f4ad24.isEmpty()) {
StringBuilder h72d58be2 = new StringBuilder();
... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
12 | d3c53b9f740e90aa40e3aa5db4a28b4f | human | human | java | test | gh | private h18e4ccc7<hcd77b044> h8328b2d3(
String hbc349019, h00f10cdd h0ba4c2b3) {
h2efd2d6a h41fa888a = h2efd2d6a.he3687e39(h0ba4c2b3.h5127f14d());
String h92b2a4f4 =
hb7b56350.hc5645344(h0ba4c2b3.h8d39bde6().h9ba9b528(0, 1)) + h0ba4c2b3.h8d39bde6().h9ba9b528(1);
heb81bd0b h07f95cd7 = h37386ae0... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
16 | cd555fb595deaf98c9c9f4a61b08b7a2 | human | human | java | test | gh | public h60c3ff88<he83d9196<h44915b0a>> h7a95ece8(final String h4a8d545b, final Integer h6dd156b1) {
return hddd71f90(h4a8d545b, h6dd156b1)
.hdfa2efb1(new hac871ea2<h67087ca3<he83d9196<h44915b0a>>, he83d9196<h44915b0a>>() {
@Override
public he83d9196<h44915b0a> hb3f184... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
9 | 8c9c51dea47df5e9e1672b6dbdab9f6a | human | human | java | test | gh | public void hbc82b1da() {
if( h1fba0bb5 >= hf51d0756 ) {
h1fba0bb5 = 0;
h160da1c3.hbc82b1da();
}
h1dc6a882 hf60c4582 = h5f70b550.hbc82b1da();
hf60c4582.heb0cbd62 = h160da1c3.size-1;
hf60c4582.h652b04df = h1fba0bb5;
hf60c4582.length = 0;
h0f39a863 = hf60c4582;
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
34 | b970625f0de933d5d7773316395f5d05 | human | human | java | test | gh | public double he58eb4a4( int h425ed3ca ) {
ha1056f48 h64ff7b9f = h4a9c9bdf[h425ed3ca];
if( h64ff7b9f == null ) {
return 0;
}
return h64ff7b9f.ha3a26f36;
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
5 | 0af42d19942c0e683922f7c2348297ff | human | human | java | test | gh | public static List<h21fd4cda> h265605f7(
long h4a881ec1, int h652b04df, int h6a8e75aa) {
return h8400327a()
.h265605f7(h4a881ec1, h652b04df, h6a8e75aa);
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
53 | 5a7555b88f7a7a078ccfc33980e2ce07 | human | human | java | test | gh | public hdb394dab<h424f2137> h45a7e447(String he6fb4677, String h4a01e4b9, String ha7a64f96, h424f2137 h48a52ed9, final h1ed06d2f<h424f2137> h7049bc4f) {
return hdb394dab.h712638ae(ha5534a51(he6fb4677, h4a01e4b9, ha7a64f96, h48a52ed9), h7049bc4f);
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
54 | b632f39fe57cd66c9287e59eef1e886f | human | human | java | test | gh | boolean ha2ab693f(hd593954a h0a377624) {
synchronized (hef0d7842) {
if (h55caed82) {
return false;
}
h55caed82 = true;
h76ef3d8c.this.h0a377624 = h0a377624;
hef0d7842.h7d8e5767();
hf6a664a6();
return true;
}
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
61 | cc872b04f1b8ba968d50519e4b6ca9e9 | human | human | java | test | gh | static final h97e7fda6 h471ef2c4(final h58f879ce h31c73092, final long h5045bcac) {
final int h34a8f246 = (int) h31c73092.hf7acd163();
final short ha293e22c = h674ecce9.h4b8ecdfb(h5045bcac);
if (h34a8f246 <= 24) {
return h07b42ba5
.ha14286e6(new long[0], true, ha293e22c, 0, Long.hfc627adb... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
37 | 4ce82a3fd105cb12ebfefafbfdb23f54 | human | human | java | test | gh | @Override
public String hf5f7e77f(long h35c06b50) throws hd8302d64, h7a5d39d3 {
return h48050712.hda89bb42(h3896b6d2(h35c06b50));
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
19 | 48f8588eebf47091bf0b02f1171b13d4 | human | human | java | test | gh | public static h155ee43c h423b42ec(h8e816350 hbde64e3e, h804826b6 ha9212c25) {
h21e5380e.he229783a(ha9212c25, "ha9212c25");
return ha9212c25.h423b42ec(hbde64e3e, h155ee43c.h93beb475);
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
60 | 12757edbe5c18944c31a710ac9425442 | human | human | java | test | gh | public static void hcc4d6082(h2c0a6ca9 h815f1c7b, h2019ef64 hd33ce1c9, he844e5ab hd3237a9c) {
byte[] h5adf05b9 = h815f1c7b.h5d9f98ff();
int hae3c3434 = h15d966f8(hd33ce1c9);
int h2234d156 = h1e208dcc(hd33ce1c9);
int length = hd3237a9c.h95876e1f*hd3237a9c.h4bfc4105;
for (int hfc0c4ef4 = 0; hfc0c4ef4 < hd... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
51 | 60577c684ab99f15051d318f2692c4f7 | human | human | java | test | gh | @Override
public void h159a7781(final String h378f53fd, final String h11ecadcb, final String h8d39bde6,
final hcc7ed4b4 h11a83a45) throws h999ccb6c {
if (h343e2316.hf4f42a8e(h11a83a45) || h635aa63c.hf4f42a8e(h11a83a45)) {
final h13e2be83.h0d6ae2d3 he40c292c = new h13e2be83.h0d6ae2d3(... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
10 | fde96e09102612c76b473e1fa705999a | human | human | java | test | gh | public h96f24e4d hec4c09df(h93d135f6 h579b281e, float h57342012, float h583421a5, float h55341cec) {
return hec4c09df(h579b281e, h57342012, h583421a5, h55341cec, this);
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
63 | 0753ffab990cfca4e5537be96150f24f | human | human | java | test | gh | public h14a0b624 he14d1681(byte[] h42d9fd8f, h1fd59b2b haa70b2cb,
Object he117699c) {
hce792d8e h697299ee = new hce792d8e(h42d9fd8f);
h14a0b624 h9cfca544 = new h14a0b624(h697299ee);
String h7d0e6744 = haa70b2cb.h3b242262();
if (haa70b2cb.hb5456563() == h1586c48d.h41e72127
|| haa70b2cb.hb54... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
14 | 3f2bc9b490a3b2280d4dc1d5ff351e3f | human | human | java | test | gh | public static double[] hec8ecfcf(final h814fa2a9 hdb7521d8, final h814fa2a9 hde752691) {
if ((hdb7521d8 == null) || (hde752691 == null)) { return h209fd5d0.h2b885b82(); }
if (hdb7521d8 == hde752691) { return ha4e0b3d4.h2b885b82(); }
if (hdb7521d8.isEmpty() && hde752691.isEmpty()) { return ha4e0b3d4.h2b... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
2 | 804bf156cd47e68df98d7e5122f06dd9 | human | human | java | test | gh | public static h3b527379 hab2c9348(final String ha941b726, final hdd6e5bb7 h6b1bd097) {
h3b527379 hd472dc59 = h9a0b51a2(ha941b726, h6b1bd097);
if (hd472dc59 == null) {
hd472dc59 = hb42cdfd7(ha941b726, h6b1bd097);
if (hd472dc59 == null && h7fc6a152.length > 0) {
hd4... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
0 | 22582ae960a2cac969fb8af9a2e70603 | human | human | java | test | gh | protected void h4daacaa2() throws h36601758, h9abc2e4e, h45daac50, h48bfebd2, h890c243c, h0601c7a2, h0aab1f06 {
if (h0484ce9d.hd44dab8a() && h36453540.h37fb0d18())
h2b91090f.hcac3d793(this, h36453540, "h4daacaa2");
synchronized(hf0... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
29 | 71173746ffc8012f0932ade14220b8b1 | human | human | java | test | gh | @Override
public habb36251 hb30c4124(long h59405f57,
long h72449e34,
h6a6d5882<habb36251> h3fdd5762) {
int h39b1ddf4 = h92c0b956(h59405f57, h72449e34);
if (h39b1ddf4 == 0) {
return null;
}
List<habb36251> h0cfb5881 = h60b111ac(h59405f57, h72449e34,
h39b1ddf4 - 1, h39b1ddf4, h3fdd5762);
if (!h0c... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
15 | c151403f6501b65fd33866faf08b0e8e | human | human | java | test | gh | @Override
@h6f88bdde(h02f3b39e = false)
public h9a955f11 hd271ad19(long hc964a884) {
return h4e903c1c.h26bb595d(hc964a884);
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
8 | 853b4742428f173c392e37fdfbdd7e8a | human | human | java | test | gh | public <hd10c0b43 extends h1435612b<? super hf88ed30a>> hd10c0b43 h378bd379(hd10c0b43 ha6e741ce, int hadd8edbb, final int hdea2ad80) {
assert (hadd8edbb >= 0 && hadd8edbb <= size()) :
"haec7ae4b " + hadd8edbb + " out h69343c68 h3d56aa08 [" + 0 + ", " + size() + ").";
assert (hdea2ad80 >= 0 && hdea2ad80... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
18 | 9c80ab6805394df9ed44e488ab397684 | human | human | java | test | gh | @Override
public hd150ecc4 h32608848(h70bd5f28 he4350540) {
ha6fa053b();
hea3d3162 h4b4794e6 = (hea3d3162) super.h32608848(he4350540);
he45e3c8c ha6527867 = new he45e3c8c();
h7a696b1d h378f53fd = he4350540.hc39bf2a3();
ha6527867.h479e39d1(h378f53fd.toString());
... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
4 | a6a32d006751480e4cc9beac45efc5fb | human | human | java | test | gh | @Override
public h81e8afc8 h80f97b99(String h278a5432,
h6a6d5882<h81e8afc8> h3fdd5762)
throws heb7703ee {
h81e8afc8 hcb4b1be8 = h10937940(h278a5432,
h3fdd5762);
if (hcb4b1be8 != null) {
return hcb4b1be8;
}
he3ac9e46 he0805f02 = new he3ac9e46(4);
he0805f02.h069982e1(hcc17bad6);
he0805f02.h069... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
38 | 789662e0aa8e415468aa5b467eb735fa | human | human | java | test | gh | public final void hc45b6745() throws h30531241 {
synchronized (he6a91ef5) {
List<h30531241> h9463de1f = new ArrayList<h30531241>();
List<hd0a56144> hfa0ce102 = new ArrayList<hd0a56144>();
for (hd0a56144 h2e7fcbd3 : he6a91ef5) {
try {
hfa0ce... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
26 | e29c48925c8169e2626728a8d93ec221 | human | human | java | test | gh | public h627291b8 hf76374c4(String hd33ce1c9, byte[] h5f407957,
boolean hd3b1af9e)
throws hc6ff7d02 {
h627291b8 h6a311cec;
hd33ce1c9 = he962b194.h36f0db6b(hd33ce1c9);
byte[][] he6e5718f = h43b43ea0.h2bc78e74(hd33ce1c9);
h43b43ea0[] hc766dda9 = new h43b43ea0... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
31 | b6baa1871ae776531e8166e17f043a38 | human | human | java | test | gh | public static void haca58aed(h2c794921 h339b6235) throws h35d0f057,
h664ae148, hbb04621f, hc71ff182 {
String h88288548 = h339b6235.h1df84546();
if ("h315e7eb2".equals(h88288548) || h339b6235.hae9441b2() == 1349174) {
throw new h664ae148(h88288548, h339b6235);
}
if ("h4fb555b5".equals(h88288... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
57 | 0b517105c24f656bfad8a2698770149d | human | human | java | test | gh | public void hefe318aa(h2a5ffc72 hfe30d09f) {
if (hfe30d09f.h60baba96().equals(h8c87107c) && he361153d != null) {
he361153d.h30c707a2();
}
} | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
32 | 5ac2eac34b34c25ff8ff8c587dc2f8fb | human | human | java | test | gh | private static String h8f8a8711(heaa8ef31[] h973b8bb8) {
String[] h00289614 = new String[h973b8bb8.length];
int h090aa9ab = 0;
for (heaa8ef31 h32608848 : h973b8bb8) {
if (h32608848 == null) {
h00289614[h090aa9ab++] = "";
} else {
h00289614[h090aa9ab++] = String.format(hdd6e5bb7.h... | <graphml
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd" xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key id="labelV" for="node" attr.name="labelV" attr.type="string"/>
<key id="labelE" for="ed... |
CDNA-CoDET-M4: Code Authorship Attribution via Code Property Graphs (Enhanced)
Dataset Summary
Note: This is an enhanced version of the original CoDET-M4 dataset by DaniilOr, extended with Code Property Graph (CPG) representations by the CodeDNA team at Singapore Management University.
We built this dataset to tackle LLM code authorship attribution—figuring out exactly which AI model wrote a specific piece of code. While most approaches just analyze the raw source code text as tokens, we found that modeling the actual structure of the code captures deeper, more reliable stylistic fingerprints.
To do this, we converted the code snippets into Code Property Graphs (CPGs), which combine Abstract Syntax Trees (ASTs), Control Flow Graphs (CFGs), and Program Dependence Graphs (PDGs).
The dataset contains ~77K Python and Java samples spanning 6 models (GPT-4o, CodeLlama, Llama 3.1, Nxcode, CodeQwen 1.5) and a human-written baseline. It is provided in two ready-to-use configurations: hetero (complete graph structures) and scalar (22 pre-computed structural metrics).
Dataset Details
Languages & Task
- Programming Languages: Python, Java
- Task: Multi-class code authorship attribution (6-way classification)
- Classes: GPT-4o, CodeLlama, Llama 3.1, Nxcode, CodeQwen 1.5, Human
- Unit of Analysis: Individual functions (not full repositories)
Configurations
CDNA-CoDET-M4 is published as a single Hugging Face dataset with two configurations:
hetero – Heterogeneous Code Property Graphs
Complete graph-structured representations combining AST, CFG, and PDG information extracted via Joern static analysis.
- Graph Representation: Heterogeneous multigraph (multiple edge types: control flow, data flow, syntax)
- Node Features: Syntactic type, source code token sequences, semantic role
- Edge Features: Edge type labels (e.g.,
controlFlow,dataFlow,call) - Examples: 33,342 samples
- Data Size: ~11 GB (dataset), ~23 GB (uncompressed)
scalar – Aggregated Structural Features
Preprocessed summary statistics derived from CPGs, suitable for traditional ML baselines and interpretability studies.
- Feature Set: 22 hand-crafted structural measures (graph density, cyclomatic complexity, fan-in/fan-out, etc.)
- Format: Tabular (numeric vectors alongside code text and metadata)
- Examples: 77,332 samples
- Data Size: ~26 GB (dataset), ~54 GB (uncompressed)
Data Splits
Both configurations follow the same split structure:
| Split | Count | Purpose |
|---|---|---|
| train | ~20,000 per language | Model training |
| validation | ~2,000 per language | Hyperparameter tuning |
| test | ~17,700 per language | Final evaluation |
Note: Exact counts are language-dependent due to filtering during CPG extraction (see Dataset Creation below).
Data Format & Schema
Common Fields (both configurations):
| Field | Type | Description |
|---|---|---|
idx |
int64 | Unique sample identifier |
hash |
string | Content hash (enables deduplication tracking) |
target |
string | Source LLM or "human" |
model |
string | Full model identifier (e.g., "GPT-4o-turbo", "CodeLlama-13B") |
language |
string | "python" or "java" |
split |
string | "train", "validation", or "test" |
source |
string | Generation context or data source |
code |
string | Raw source code (UTF-8) |
graphml |
string | GraphML-serialized CPG (hetero) or empty (scalar) |
Additional Scalar Features (scalar configuration):
| Field | Type | Description |
|---|---|---|
cyclomatic_complexity |
float | McCabe complexity metric |
lines_of_code |
int | Physical LOC |
fan_in |
int | Distinct data sources |
fan_out |
int | Distinct data targets |
graph_density |
float | Edge-to-possible-edge ratio |
| (+17 additional measures) | — | See schema metadata |
Data Format
- File Format: Apache Arrow (columnar, native to Hugging Face Datasets)
- Splits: 22 Arrow shards (hetero), 54 Arrow shards (scalar) for distributed loading
- Compression: LZ4 (optional, configurable at load time)
Dataset Creation
Code Generation & Collection
LLM Prompting: Six state-of-the-art code-generation models prompted independently to generate single-function implementations for diverse domains:
- GPT-4o (OpenAI, multimodal, instruction-tuned)
- CodeLlama (Meta, code-specific pretraining)
- Llama 3.1 (Meta, general-purpose with code capability)
- Nxcode (NxCode-34B, instruction-tuned variant)
- CodeQwen 1.5 (Alibaba, multilingual, code-centric)
- Human reference samples (collected from open-source repositories)
Sampling Strategy: Prompts span 5–10 distinct algorithmic domains (sorting, graph traversal, string manipulation, etc.) to ensure diversity and prevent simple memorization.
Filtering: Samples that fail parsing or produce syntax errors were excluded. C++ samples were deferred due to Joern frontend limitations.
Code Property Graph Extraction
- Tool: Joern static analysis framework (v2.x)
- Extraction Steps:
- Parsing: Language-specific AST construction
- Control Flow: CFG edges (conditional branches, loops)
- Data Flow: PDG edges (variable dependencies, definitions, uses)
- Heterogeneous Integration: Multi-edge-type graph merging
- Normalization:
- Node feature standardization (TF-IDF or learned embeddings for text tokens)
- Edge type stratification (categorical encoding)
- Graph size capping (functions >2000 nodes excluded to avoid memory overflow)
Preprocessing & Feature Engineering
Scalar Feature Computation (for scalar configuration):
- McCabe cyclomatic complexity
- Halstead volume metrics
- Fan-in/fan-out (data dependency analysis)
- Graph density, diameter, average degree
- Lexical complexity measures
Train/Val/Test Split: Stratified random split (80/10/10) per language per model, ensuring no data leakage.
Serialization:
- Hetero: GraphML format (XML-based, lossless graph representation)
- Scalar: Arrow native numeric columns
Data Quality & Provenance
- No Manual Annotation: Ground truth is deterministic (LLM source is known)
- Deduplication: Duplicate code snippets removed via content hashing
- Bias Mitigation: Stratified sampling per model to avoid class imbalance
- Reproducibility: Random seeds fixed; prompts versioned
Intended Use & Limitations
Primary Use Cases
- Research on LLM code fingerprinting: Train and benchmark attribution models across diverse architectures
- Comparative analysis: Study which structural features best discriminate between LLMs
- Structural understanding: Analyze how different LLMs produce distinct CPG patterns
- Baseline establishment: Provide reference results for future work in code authorship
Documented Limitations
C++ Support: Not currently included due to Joern static analyzer limitations. Future versions may cover additional languages.
Single-Function Scope: Dataset contains isolated functions, not full repositories or multi-file projects. Authorship patterns in large codebases may differ significantly.
Synthetic Data Origin: All code is LLM-generated or human open-source, not adversarially crafted or obfuscated. Performance on naturally-written industrial code remains uncertain.
Domain Shift: Test distributions are held-out LLM samples from the same problem domains as training. Cross-domain or cross-language generalization is not directly assessed.
Training Data Overlap: Some LLMs (e.g., CodeQwen, Nxcode) may share instruction-tuning corpora, leading to high correlation and classification confusion. This is documented but not filtered.
Granularity Sensitivity: Reported in prior work (CoDET-M4 baseline) showing ~8.6× accuracy variance depending on whether classification is per-function vs. per-class. This dataset is function-level only.
Evaluation Methodology: Baseline comparisons are macro-averaged F1 scores. Class-imbalanced datasets or rare-model scenarios may exhibit different behavior.
Out of Scope
- Production Forensics: This dataset is not validated for deployment in real-world source-code investigation or legal evidence contexts. Additional domain adaptation and validation are essential.
- Adversarial Robustness: Not tested against code obfuscation, style transfer, or intentional model-spoofing attacks.
- Real-World Human Code: Authorship models trained on this dataset should not be assumed to work on arbitrary production code without retraining or domain adaptation.
Personal Information & Ethical Considerations
Responsible Use Guidelines
- Citation of this dataset should include discussion of its constraints (synthetic origin, single-function scope)
Licensing
This dataset is released under the MIT License.
The MIT License permits free use, modification, and distribution with minimal restrictions. For the full license text, see LICENSE or https://opensource.org/licenses/MIT.
Attribution Requirement: While not legally required by MIT, we request that users cite the dataset and acknowledge the CodeDNA team (see Citation section below).
Citation
If you use CoDET-M4 in published research, please cite:
@dataset{codedna_codetm4,
title = {{CDNA-CoDET-M4}: Code Authorship Attribution via Code Property Graphs},
authors = {Gusta, Avisenna and Yinqi, Gu and Sia, Sim Kim and Mohamed, Dhameem and Shenghua, Ye},
year = {2025},
school = {Singapore Management University, School of Computing and Information Systems},
url = {https://huggingface.co/datasets/mohameddhameem/CDNA-CoDET-M4}
}
Suggested Bibtex (alternative format):
@inproceedings{codedna2025structural,
title = {Structural Fingerprints of Large Language Models: Code Authorship Attribution via Code Property Graph Neural Networks},
authors = {Gusta, Avisenna and Yinqi, Gu and Sia, Sim Kim and Mohamed, Dhameem and Shenghua, Ye},
year = {2025},
school = {Singapore Management University},
note = {Dataset: CoDET-M4},
url = {https://huggingface.co/datasets/mohameddhameem/CDNA-CoDET-M4}
}
Inline Reference:
The CoDET-M4 benchmark (Gusta et al., 2025) provides 77K Python and Java samples from 6 LLMs, structured as Code Property Graphs for research on automated code authorship attribution.
References
- Original CoDET-M4 Dataset: DaniilOr/CoDET-M4 — Source dataset (500K+ samples)
- Joern Static Analysis: https://joern.io/
- Code Property Graphs: Yamaguchi, F., et al. (2014). "Modeling and Discovering Vulnerabilities with Code Property Graphs." IEEE S&P.
- Model Cards: Mitchell, T., et al. (2018). "Model Cards for Model Reporting." arXiv:1810.03993.
- Dataset Cards: https://huggingface.co/docs/datasets/dataset_card
Quick Start
Installation
pip install datasets
Loading the Dataset
from datasets import load_dataset
# Load heterogeneous Code Property Graphs
dataset_hetero = load_dataset("mohameddhameem/CDNA-CoDET-M4", "hetero")
print(dataset_hetero)
# Dataset({
# features: ['idx', 'hash', 'target', 'model', 'language', 'split', 'source', 'code', 'graphml'],
# num_rows: 33342
# })
# Load scalar structural features
dataset_scalar = load_dataset("mohameddhameem/CDNA-CoDET-M4", "scalar")
print(dataset_scalar)
# Dataset({
# features: ['idx', 'hash', 'target', 'model', 'language', 'split', 'source', 'code', ...],
# num_rows: 77332
# })
# Access training split
train_hetero = dataset_hetero['train']
print(train_hetero[0])
# {
# 'code': 'def quicksort(arr):\n ...',
# 'target': 'gpt-4o',
# 'language': 'python',
# 'graphml': '<graphml>...</graphml>'
# }
Filtering & Exploration
# Filter by language
python_samples = dataset_hetero['train'].filter(lambda x: x['language'] == 'python')
# Filter by model
gpt_samples = dataset_hetero['train'].filter(lambda x: x['target'] == 'gpt-4o')
# Count samples per model
from collections import Counter
model_counts = Counter(dataset_hetero['train']['target'])
print(model_counts)
Acknowledgments
This dataset was created as part of the CodeDNA research project at Singapore Management University's School of Computing and Information Systems.
Contributors: Avisenna Gusta, Gu Yinqi, Sim Kim Sia, Mohamed Dhameem, Ye Shenghua
We acknowledge the CoDET-M4 benchmark maintainers and the Joern project for enabling graph-based code analysis.
Last Updated: April 2025
- Downloads last month
- 145
