index int64 1 4.83k | file_id stringlengths 5 9 | content stringlengths 167 16.5k | repo stringlengths 7 82 | path stringlengths 8 164 | token_length int64 72 4.23k | original_comment stringlengths 11 2.7k | comment_type stringclasses 2
values | detected_lang stringclasses 1
value | prompt stringlengths 142 16.5k | Inclusion stringclasses 4
values | file-tokens-Qwen/Qwen2-7B int64 64 3.93k | comment-tokens-Qwen/Qwen2-7B int64 4 972 | file-tokens-bigcode/starcoder2-7b int64 74 3.98k | comment-tokens-bigcode/starcoder2-7b int64 4 959 | file-tokens-google/codegemma-7b int64 56 3.99k | comment-tokens-google/codegemma-7b int64 3 953 | file-tokens-ibm-granite/granite-8b-code-base int64 74 3.98k | comment-tokens-ibm-granite/granite-8b-code-base int64 4 959 | file-tokens-meta-llama/CodeLlama-7b-hf int64 77 4.12k | comment-tokens-meta-llama/CodeLlama-7b-hf int64 4 1.11k | excluded-based-on-tokenizer-Qwen/Qwen2-7B bool 2
classes | excluded-based-on-tokenizer-bigcode/starcoder2-7b bool 2
classes | excluded-based-on-tokenizer-google/codegemma-7b bool 2
classes | excluded-based-on-tokenizer-ibm-granite/granite-8b-code-base bool 2
classes | excluded-based-on-tokenizer-meta-llama/CodeLlama-7b-hf bool 2
classes | include-for-inference bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,188 | 73378_4 | package staticfactory;
import java.util.ArrayList;
import java.util.Iterator;
// instance controlled class
public class ManagedResource {
static ArrayList<ManagedResource> instances = new ArrayList<>();
static final int MAX_POOL_SIZE = 10;
private ManagedResource () {
System.out.println("Creating managed resou... | bart314/practicum.2.3 | week4/staticfactory/ManagedResource.java | 433 | // (dit is uiteraard een slechts realisatie, alleen voor de demonstratie) | line_comment | nl | package staticfactory;
import java.util.ArrayList;
import java.util.Iterator;
// instance controlled class
public class ManagedResource {
static ArrayList<ManagedResource> instances = new ArrayList<>();
static final int MAX_POOL_SIZE = 10;
private ManagedResource () {
System.out.println("Creating managed resou... | False | 338 | 21 | 414 | 23 | 395 | 17 | 414 | 23 | 487 | 22 | false | false | false | false | false | true |
1,030 | 172967_3 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hellotvxlet;
import org.havi.ui.*;
import java.awt.*;
import org.dvb.ui.*;
/**
*
* @author student
*/
public class Sprite extends HComponent {
private Image spaceship;
private MediaTracker mtrack;... | MTA-Digital-Broadcast-2/K-De-Maeyer-Didier-Schuddinck-Sam-Project-MHP | Didier De Maeyer/blz47/Oef1/HelloTVXlet/src/hellotvxlet/Sprite.java | 367 | // wacht tot alle bitmaps geladen zijn | line_comment | nl | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hellotvxlet;
import org.havi.ui.*;
import java.awt.*;
import org.dvb.ui.*;
/**
*
* @author student
*/
public class Sprite extends HComponent {
private Image spaceship;
private MediaTracker mtrack;... | True | 271 | 10 | 313 | 11 | 330 | 8 | 313 | 11 | 369 | 10 | false | false | false | false | false | true |
600 | 11641_4 | import java.util.ArrayList;_x000D_
_x000D_
/**_x000D_
* Presentation houdt de slides in de presentatie bij._x000D_
* <p>_x000D_
* In the Presentation's world, page numbers go from 0 to n-1 * <p>_x000D_
* This program is distributed under the terms of the accompanying_x000D_
* COPYRIGHT.txt file (which is NOT the G... | GertSallaerts/jabbertest | Presentation.java | 935 | // het slidenummer van de huidige Slide_x000D_ | line_comment | nl | import java.util.ArrayList;_x000D_
_x000D_
/**_x000D_
* Presentation houdt de slides in de presentatie bij._x000D_
* <p>_x000D_
* In the Presentation's world, page numbers go from 0 to n-1 * <p>_x000D_
* This program is distributed under the terms of the accompanying_x000D_
* COPYRIGHT.txt file (which is NOT the G... | True | 1,280 | 17 | 1,460 | 19 | 1,393 | 16 | 1,460 | 19 | 1,552 | 20 | false | false | false | false | false | true |
2,850 | 65568_3 | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.spellchecker.xml;
import com.intellij.codeInspection.SuppressQuickFix;
import com.intellij.openapi.util.TextRange;
import com.intellij.openapi.util.text.StringUtil;
import com.i... | google/intellij-community | xml/impl/src/com/intellij/spellchecker/xml/XmlSpellcheckingStrategy.java | 2,180 | // do not inspect colors like #00aaFF | line_comment | nl | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.spellchecker.xml;
import com.intellij.codeInspection.SuppressQuickFix;
import com.intellij.openapi.util.TextRange;
import com.intellij.openapi.util.text.StringUtil;
import com.i... | False | 1,502 | 11 | 1,692 | 11 | 1,810 | 11 | 1,692 | 11 | 2,114 | 11 | false | false | false | false | false | true |
4,476 | 193877_8 | /**
* This file is part of RefactorGuidance project. Which explores possibilities to generate context based
* instructions on how to refactor a piece of Java code. This applied in an education setting (bachelor SE students)
*
* Copyright (C) 2018, Patrick de Beer, p.debeer@fontys.nl
*
* This progr... | the-refactorers/RefactorGuidanceTool | src/main/java/analysis/context/ContextDetectorSetBuilder.java | 2,084 | // intern weet op te vragen. | line_comment | nl | /**
* This file is part of RefactorGuidance project. Which explores possibilities to generate context based
* instructions on how to refactor a piece of Java code. This applied in an education setting (bachelor SE students)
*
* Copyright (C) 2018, Patrick de Beer, p.debeer@fontys.nl
*
* This progr... | False | 1,646 | 9 | 1,755 | 10 | 1,835 | 7 | 1,755 | 10 | 2,099 | 9 | false | false | false | false | false | true |
645 | 69594_0 | package AbsentieLijst.userInterfaceLaag;_x000D_
_x000D_
import AbsentieLijst.*;_x000D_
import javafx.collections.FXCollections;_x000D_
import javafx.collections.ObservableList;_x000D_
import javafx.event.ActionEvent;_x000D_
import javafx.fxml.FXMLLoader;_x000D_
import javafx.scene.Parent;_x000D_
import javafx.scene.Sce... | HBO-ICT-GP-SD/Laatsteversie | AbsentieLijst/src/AbsentieLijst/userInterfaceLaag/ToekomstigAfmeldenController.java | 1,160 | //afgemeld_lijst in de les_x000D_ | line_comment | nl | package AbsentieLijst.userInterfaceLaag;_x000D_
_x000D_
import AbsentieLijst.*;_x000D_
import javafx.collections.FXCollections;_x000D_
import javafx.collections.ObservableList;_x000D_
import javafx.event.ActionEvent;_x000D_
import javafx.fxml.FXMLLoader;_x000D_
import javafx.scene.Parent;_x000D_
import javafx.scene.Sce... | True | 1,461 | 16 | 1,586 | 17 | 1,603 | 16 | 1,586 | 17 | 1,762 | 17 | false | false | false | false | false | true |
4,535 | 10292_3 | package be.kuleuven.cs.distrinet.jnome.core.type;
import java.util.ArrayList;
import java.util.List;
import org.aikodi.chameleon.core.element.Element;
import org.aikodi.chameleon.core.lookup.LookupException;
import org.aikodi.chameleon.core.validation.Valid;
import org.aikodi.chameleon.core.validation.Verification;
i... | tivervac/jnome | src/be/kuleuven/cs/distrinet/jnome/core/type/PureWildcard.java | 1,478 | // TypeVariable concept invoeren, en lowerbound,... verplaatsen naar daar? Deze is context sensitive. Hoewel, dat | line_comment | nl | package be.kuleuven.cs.distrinet.jnome.core.type;
import java.util.ArrayList;
import java.util.List;
import org.aikodi.chameleon.core.element.Element;
import org.aikodi.chameleon.core.lookup.LookupException;
import org.aikodi.chameleon.core.validation.Valid;
import org.aikodi.chameleon.core.validation.Verification;
i... | False | 1,117 | 28 | 1,317 | 32 | 1,313 | 25 | 1,317 | 32 | 1,513 | 30 | false | false | false | false | false | true |
4,516 | 147808_16 | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | time-series-machine-learning/tsml-java | src/main/java/statistics/simulators/MatrixProfileModelVersion1.java | 3,086 | // System.out.println("Error var ="+error.getVariance()); | line_comment | nl | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | False | 2,361 | 15 | 2,635 | 17 | 2,844 | 17 | 2,635 | 17 | 3,061 | 18 | false | false | false | false | false | true |
222 | 167130_0 | package keezen;
import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class Decks implements Serializable{
Kaart[] drawPile;
Kaart[] discardPile;
public Decks (){
}
public Kaart[] getDrawPile(){
return drawPile;
}
public void setAantalKaarten(in... | Bobster94/Keezen | src/keezen/Decks.java | 459 | /*public class Decks implements Serializable {
Kaart[] drawPile;
Kaart[] discardPile;
public Decks (int aantalKaarten){
drawPile = new Kaart[aantalKaarten];
discardPile = new Kaart[aantalKaarten];
}
public Kaart[] getDrawPile() {
return drawPile;
}
public void setDrawPile(Kaart[] drawPile) {
this.drawPi... | block_comment | nl | package keezen;
import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class Decks implements Serializable{
Kaart[] drawPile;
Kaart[] discardPile;
public Decks (){
}
public Kaart[] getDrawPile(){
return drawPile;
}
public void setAantalKaarten(in... | False | 342 | 157 | 420 | 186 | 367 | 162 | 420 | 186 | 474 | 208 | false | false | false | false | false | true |
556 | 77274_2 | package com.jypec.wavelet.liftingTransforms;
import com.jypec.util.arrays.ArrayTransforms;
import com.jypec.wavelet.Wavelet;
import com.jypec.wavelet.kernelTransforms.cdf97.KernelCdf97WaveletTransform;
/**
* CDF 9 7 adaptation from:
* https://github.com/VadimKirilchuk/jawelet/wiki/CDF-9-7-Discrete-Wavelet-Transform... | GRSEB9S/Jypec | src/com/jypec/wavelet/liftingTransforms/LiftingCdf97WaveletTransform.java | 1,512 | // Predict inner values | line_comment | nl | package com.jypec.wavelet.liftingTransforms;
import com.jypec.util.arrays.ArrayTransforms;
import com.jypec.wavelet.Wavelet;
import com.jypec.wavelet.kernelTransforms.cdf97.KernelCdf97WaveletTransform;
/**
* CDF 9 7 adaptation from:
* https://github.com/VadimKirilchuk/jawelet/wiki/CDF-9-7-Discrete-Wavelet-Transform... | False | 1,313 | 4 | 1,421 | 4 | 1,427 | 4 | 1,421 | 4 | 1,623 | 5 | false | false | false | false | false | true |
4,470 | 18288_9 | /*
* Copyright 2008, 2009, 2010, 2011:
* Tobias Fleig (tfg[AT]online[DOT]de),
* Michael Haas (mekhar[AT]gmx[DOT]de),
* Johannes Kattinger (johanneskattinger[AT]gmx[DOT]de)
*
* - All rights reserved -
*
*
* This file is part of Centuries of Rage.
*
* Centuries of Rage is free software: you can redis... | tfg13/Centuries-of-Rage | src/de/_13ducks/cor/game/server/ServerCore.java | 3,501 | // Alle Module geladen, starten | line_comment | nl | /*
* Copyright 2008, 2009, 2010, 2011:
* Tobias Fleig (tfg[AT]online[DOT]de),
* Michael Haas (mekhar[AT]gmx[DOT]de),
* Johannes Kattinger (johanneskattinger[AT]gmx[DOT]de)
*
* - All rights reserved -
*
*
* This file is part of Centuries of Rage.
*
* Centuries of Rage is free software: you can redis... | True | 2,732 | 8 | 3,026 | 9 | 3,095 | 6 | 3,026 | 9 | 3,534 | 8 | false | false | false | false | false | true |
501 | 15652_9 | /* Generated By:JavaCC: Do not edit this line. SimpleCharStream.java Version 5.0 */
/* JavaCCOptions:STATIC=true,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package fhv;
/**
* An implementation of interface CharStream, where the stream is assumed to
* contain only ASCII characters (without unicode processing).
*/
publ... | FHV-ITM13/Just-Language | Justy_Wachter/src/fhv/SimpleCharStream.java | 3,932 | /** Get token beginning column number. */ | block_comment | nl | /* Generated By:JavaCC: Do not edit this line. SimpleCharStream.java Version 5.0 */
/* JavaCCOptions:STATIC=true,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package fhv;
/**
* An implementation of interface CharStream, where the stream is assumed to
* contain only ASCII characters (without unicode processing).
*/
publ... | False | 3,180 | 8 | 3,372 | 8 | 3,750 | 8 | 3,372 | 8 | 3,978 | 8 | false | false | false | false | false | true |
3,832 | 169507_0 | package nl.njtromp.adventofcode_2020;
import java.util.Arrays;
public class Infi {
static long aantalPakjes(long lengteZijkant) {
return
3 * lengteZijkant * lengteZijkant + // Middenstuk horizontaal
4 * sommatie(lengteZijkant) + // Schuine zijden (4 halve driehoeken)
... | njtromp/AdventOfCode-2020 | src/main/java/nl/njtromp/adventofcode_2020/Infi.java | 436 | // Schuine zijden (4 halve driehoeken) | line_comment | nl | package nl.njtromp.adventofcode_2020;
import java.util.Arrays;
public class Infi {
static long aantalPakjes(long lengteZijkant) {
return
3 * lengteZijkant * lengteZijkant + // Middenstuk horizontaal
4 * sommatie(lengteZijkant) + // Schuine zijden<SUF>
... | True | 416 | 15 | 461 | 17 | 420 | 12 | 461 | 17 | 465 | 14 | false | false | false | false | false | true |
1,893 | 30813_5 | package shapes;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import properties.Property;
import utility.MeasureFetcher;
import utility.Util;
import be.kuleuven.cs.oss.polymorphicviews.plugin.PolymorphicChartParameters;
public abstract c... | WoutV/OSS_1415 | sonar-polymorphic-views/src/main/java/shapes/ShapeGenerator.java | 1,195 | //TODO hoe werkt dees eigenlijk. vage opgave | line_comment | nl | package shapes;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import properties.Property;
import utility.MeasureFetcher;
import utility.Util;
import be.kuleuven.cs.oss.polymorphicviews.plugin.PolymorphicChartParameters;
public abstract c... | False | 937 | 15 | 1,078 | 16 | 1,099 | 12 | 1,078 | 16 | 1,275 | 17 | false | false | false | false | false | true |
1,859 | 150349_0 | /* avondvierdaagse.java
*
* Pieter Eendebak
* eendebak at math uu nl
*
*/
import java.util.StringTokenizer;
import java.io.*;
import java.util.Arrays;
import java.util.Comparator;
import java.lang.Math;
class Mud {
public long x, y;
}
class MudCompare implements Comparator{
public int compare(Object a, Obje... | WISVCH/chipcie-website | static/archive/2004/nkp/c/oplossing.java | 782 | /* avondvierdaagse.java
*
* Pieter Eendebak
* eendebak at math uu nl
*
*/ | block_comment | nl | /* avondvierdaagse.java
*<SUF>*/
import java.util.StringTokenizer;
import java.io.*;
import java.util.Arrays;
import java.util.Comparator;
import java.lang.Math;
class Mud {
public long x, y;
}
class MudCompare implements Comparator{
public int compare(Object a, Object b) {
Mud A = (Mud)a;
Mud B = (Mud)b;
... | False | 600 | 30 | 721 | 34 | 720 | 29 | 721 | 34 | 847 | 34 | false | false | false | false | false | true |
2,133 | 202595_10 | Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in
diagonal order as shown in the below image.
Example:
Input:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
Output: [1,2,4,7,5,3,6,8,9]
INTUITION,
go along to diaonals and incrememnt but i-1, j+1
to do in reverse order, sto... | armankhondker/best-leetcode-resources | leetcode-solutions/diagonalMatrixPrint.java | 1,455 | //copy this elemeent | line_comment | nl | Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix in
diagonal order as shown in the below image.
Example:
Input:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
Output: [1,2,4,7,5,3,6,8,9]
INTUITION,
go along to diaonals and incrememnt but i-1, j+1
to do in reverse order, sto... | False | 1,213 | 7 | 1,293 | 7 | 1,374 | 7 | 1,293 | 7 | 1,445 | 7 | false | false | false | false | false | true |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3