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
2,501
75359_9
/** * Repraesentiert ein Auto. * */ abstract class Car implements Runnable{ //Repraesentiert einer der vier Himmelsrichtungen, in die das Auto zeigen kann. private Orientations orientation; private int x; private int y; private String name; protected int millisecondsToWait; protected Rac...
danurna/oop7
src/Car.java
1,086
//VB: Rennen hat begonnen
line_comment
nl
/** * Repraesentiert ein Auto. * */ abstract class Car implements Runnable{ //Repraesentiert einer der vier Himmelsrichtungen, in die das Auto zeigen kann. private Orientations orientation; private int x; private int y; private String name; protected int millisecondsToWait; protected Rac...
False
868
8
905
10
982
6
905
10
1,078
8
false
false
false
false
false
true
808
152641_17
package intecbrussel.be.Vaccination;_x000D_ _x000D_ import java.util.*;_x000D_ import java.util.stream.Collectors;_x000D_ _x000D_ public class AnimalShelter {_x000D_ private List<Animal> animals;_x000D_ private int animalId;_x000D_ _x000D_ public AnimalShelter() {_x000D_ this.animals = new ArrayList...
JananJavdan/Vaccination
Vaccination/src/main/java/intecbrussel/be/Vaccination/AnimalShelter.java
2,073
//toewijzen de nummer animal_x000D_
line_comment
nl
package intecbrussel.be.Vaccination;_x000D_ _x000D_ import java.util.*;_x000D_ import java.util.stream.Collectors;_x000D_ _x000D_ public class AnimalShelter {_x000D_ private List<Animal> animals;_x000D_ private int animalId;_x000D_ _x000D_ public AnimalShelter() {_x000D_ this.animals = new ArrayList...
True
2,629
15
2,846
16
2,850
15
2,846
16
3,229
16
false
false
false
false
false
true
891
42237_0
package P2; import java.sql.*; import java.util.ArrayList; import java.util.List; public class ReizigerDAOPsql implements ReizigerDAO { private Connection conn = Main.getConnection(); public ReizigerDAOPsql(Connection conn) throws SQLException { this.conn = conn; } @Override public boole...
JustMilan/DP
src/main/java/P2/ReizigerDAOPsql.java
1,642
// Waarom return je een boolean ipv een list aangezien je de eerste zoveel Reizigers moet teruggeven...?
line_comment
nl
package P2; import java.sql.*; import java.util.ArrayList; import java.util.List; public class ReizigerDAOPsql implements ReizigerDAO { private Connection conn = Main.getConnection(); public ReizigerDAOPsql(Connection conn) throws SQLException { this.conn = conn; } @Override public boole...
False
1,226
30
1,383
33
1,357
21
1,369
33
1,591
32
false
false
false
false
false
true
1,721
202684_3
import java.util.Scanner; public class Main { public static void main(String[] args) { // Here you can try out the combined functionality of your classes TodoList list = new TodoList(); Scanner scanner = new Scanner(System.in); UserInterface ui = new UserInterface(list, scanner)...
Thibault-be/MOOC-Helsinki-Java-2
part08-Part08_05.TodoList/src/main/java/Main.java
174
// list.add("een vierde taak");
line_comment
nl
import java.util.Scanner; public class Main { public static void main(String[] args) { // Here you can try out the combined functionality of your classes TodoList list = new TodoList(); Scanner scanner = new Scanner(System.in); UserInterface ui = new UserInterface(list, scanner)...
False
133
10
160
12
164
11
160
12
187
11
false
false
false
false
false
true
1,554
47470_4
// License: GPL. For details, see LICENSE file. package org.openstreetmap.josm.plugins.nl_pdok_report.utils.api; import java.util.Objects; import javax.json.Json; import javax.json.JsonObjectBuilder; import org.geotools.referencing.CRS; import org.geotools.referencing.operation.transform.IdentityTransform; import or...
SanderH/josm-nl-report
src/main/java/org/openstreetmap/josm/plugins/nl_pdok_report/utils/api/JsonNewReportEncoder.java
1,967
// Optioneel. Let op: alleen gebruiken bij de registratie BRT met TOP10,TOP25,TOP50,TOP100,TOP250,TOP500 of
line_comment
nl
// License: GPL. For details, see LICENSE file. package org.openstreetmap.josm.plugins.nl_pdok_report.utils.api; import java.util.Objects; import javax.json.Json; import javax.json.JsonObjectBuilder; import org.geotools.referencing.CRS; import org.geotools.referencing.operation.transform.IdentityTransform; import or...
False
1,579
44
1,744
49
1,724
43
1,745
49
1,964
52
false
false
false
false
false
true
3,239
99431_5
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
jitsi/jitsi
modules/impl/protocol-irc/src/main/java/net/java/sip/communicator/impl/protocol/irc/Color.java
690
/** * Green. */
block_comment
nl
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
False
530
7
579
7
634
9
579
7
738
9
false
false
false
false
false
true
3,819
27626_0
package semisplay; public interface SearchTree<E extends Comparable<E>> extends Iterable<E> { /** Voeg de gegeven sleutel toe aan de boom als deze er nog niet in zit. * @return true als de sleutel effectief toegevoegd werd. */ boolean add(E e); /** Zoek de gegeven sleutel op in de boom. * @retu...
nielsdos/Semisplay-tree
src/semisplay/SearchTree.java
203
/** Voeg de gegeven sleutel toe aan de boom als deze er nog niet in zit. * @return true als de sleutel effectief toegevoegd werd. */
block_comment
nl
package semisplay; public interface SearchTree<E extends Comparable<E>> extends Iterable<E> { /** Voeg de gegeven<SUF>*/ boolean add(E e); /** Zoek de gegeven sleutel op in de boom. * @return true als de sleutel gevonden werd. */ boolean contains(E e); /** Verwijder de gegeven sleutel uit d...
True
182
43
207
45
184
36
207
45
217
44
false
false
false
false
false
true
646
172943_2
package timeutil; import java.util.LinkedList; import java.util.List; /** * Deze klasse maakt het mogelijk om opeenvolgende tijdsperiodes een naam te * geven, deze op te slaan en deze daarna te printen (via toString). * * Tijdsperiodes worden bepaald door een begintijd en een eindtijd. * * begintijd van een per...
HDauven/S32JSF3
JSF31_w04_KochFractalFX-startup/JSF31KochFractalFX - startup/src/timeutil/TimeStamp.java
1,267
/** * zet begintijdstip. gebruik interne teller voor identificatie van het * tijdstip */
block_comment
nl
package timeutil; import java.util.LinkedList; import java.util.List; /** * Deze klasse maakt het mogelijk om opeenvolgende tijdsperiodes een naam te * geven, deze op te slaan en deze daarna te printen (via toString). * * Tijdsperiodes worden bepaald door een begintijd en een eindtijd. * * begintijd van een per...
True
1,079
32
1,174
30
1,116
25
1,174
30
1,285
32
false
false
false
false
false
true
517
106041_3
/** * Project Zelula * * Contextproject TI2800 * TU Delft - University of Technology * * Authors: * Felix Akkermans, Niels Doekemeijer, Thomas van Helden * Albert ten Napel, Jan Pieter Waagmeester * * https://github.com/FelixAkk/synthbio */ package synthbio.models; import org.json.JSONException; imp...
FelixAkk/synthbio
program/WEB-INF/src/synthbio/models/Position.java
583
/** * getters */
block_comment
nl
/** * Project Zelula * * Contextproject TI2800 * TU Delft - University of Technology * * Authors: * Felix Akkermans, Niels Doekemeijer, Thomas van Helden * Albert ten Napel, Jan Pieter Waagmeester * * https://github.com/FelixAkk/synthbio */ package synthbio.models; import org.json.JSONException; imp...
False
430
7
536
6
532
8
536
6
609
9
false
false
false
false
false
true
3,798
167369_5
/** * NetXMS - open source network management system * Copyright (C) 2003-2022 Victor Kirhenshtein * * This program 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 2 of the License, or * ...
netxms/netxms
src/client/java/netxms-client/src/main/java/org/netxms/client/constants/OSPFNeighborState.java
814
/** * Get enum element by integer value * * @param value integer value * @return enum element corresponding to given integer value or fall-back element for invalid value */
block_comment
nl
/** * NetXMS - open source network management system * Copyright (C) 2003-2022 Victor Kirhenshtein * * This program 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 2 of the License, or * ...
False
639
42
688
39
732
45
688
39
842
45
false
false
false
false
false
true
994
14145_0
public class Werknemer { public String voornaam; public String achternaam; public int werknemerNummer; protected float salaris; public static int aantalWerknemers; public void salarisVerhogen(int percentage) { float verhogingsfactor = (float)percentage/100; salaris += salaris*verhogingsfactor; } p...
LukaVerhoeven/Digital-Broadcast
Werknemer.java
220
//this.var => altijd dataleden
line_comment
nl
public class Werknemer { public String voornaam; public String achternaam; public int werknemerNummer; protected float salaris; public static int aantalWerknemers; public void salarisVerhogen(int percentage) { float verhogingsfactor = (float)percentage/100; salaris += salaris*verhogingsfactor; } p...
False
181
8
224
11
200
9
224
11
230
10
false
false
false
false
false
true
2,480
35814_3
import java.io.File; import java.lang.reflect.Array; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.*; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.Charset; ...
cx1964/cx1964BladMuziek
Klassiek/Chopin_Frédéric/MP1.v002.java
1,466
// resultaat zit nu in een Array van strings
line_comment
nl
import java.io.File; import java.lang.reflect.Array; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.*; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.Charset; ...
True
1,190
11
1,280
11
1,358
9
1,280
11
1,496
12
false
false
false
false
false
true
1,117
18183_3
import java.awt.Rectangle;_x000D_ import java.awt.Graphics;_x000D_ import java.awt.image.BufferedImage;_x000D_ import java.awt.image.ImageObserver;_x000D_ import java.io.File;_x000D_ import javax.imageio.ImageIO;_x000D_ import java.io.IOException;_x000D_ _x000D_ _x000D_ /** De klasse voor een Bitmap item_x000D_ * <P>_...
MichielMertens/OU_JP_MM_EVB
src/BitmapItem.java
794
// geef de bestandsnaam van het plaatje_x000D_
line_comment
nl
import java.awt.Rectangle;_x000D_ import java.awt.Graphics;_x000D_ import java.awt.image.BufferedImage;_x000D_ import java.awt.image.ImageObserver;_x000D_ import java.io.File;_x000D_ import javax.imageio.ImageIO;_x000D_ import java.io.IOException;_x000D_ _x000D_ _x000D_ /** De klasse voor een Bitmap item_x000D_ * <P>_...
True
1,028
19
1,152
20
1,141
17
1,152
20
1,232
20
false
false
false
false
false
true
839
57662_0
package servlets;_x000D_ _x000D_ import java.io.IOException;_x000D_ import java.sql.Connection;_x000D_ import java.util.ArrayList;_x000D_ _x000D_ import javax.servlet.RequestDispatcher;_x000D_ import javax.servlet.ServletException;_x000D_ import javax.servlet.http.HttpServlet;_x000D_ import javax.servlet.http.HttpServl...
Jfeurich/Themaopdracht2
Themaopdracht/src/servlets/ProductServlet.java
1,844
//stuur bij default naar voorraadoverzicht_x000D_
line_comment
nl
package servlets;_x000D_ _x000D_ import java.io.IOException;_x000D_ import java.sql.Connection;_x000D_ import java.util.ArrayList;_x000D_ _x000D_ import javax.servlet.RequestDispatcher;_x000D_ import javax.servlet.ServletException;_x000D_ import javax.servlet.http.HttpServlet;_x000D_ import javax.servlet.http.HttpServl...
True
2,350
18
2,680
19
2,527
18
2,680
19
3,025
19
false
false
false
false
false
true
3,516
88901_3
/** * * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) ...
lucee/Lucee
core/src/main/java/lucee/servlet/pic/PicServlet.java
936
/** * Interpretiert den Script-Name und laedt das entsprechende Bild aus den internen Resourcen. * * @see javax.servlet.http.HttpServlet#service(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */
block_comment
nl
/** * * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) ...
False
721
53
860
68
826
67
860
68
997
76
false
false
false
false
false
true
804
203327_6
package be.ucll.workloadplanner; import static android.content.ContentValues.TAG; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.navigation.NavController; import androidx.navigation.fragment.NavHostFragment; import android.c...
JanVHanssen/WorkloadPlanner
app/src/main/java/be/ucll/workloadplanner/MainActivity.java
1,848
// Instellen van de opties van het menu
line_comment
nl
package be.ucll.workloadplanner; import static android.content.ContentValues.TAG; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.navigation.NavController; import androidx.navigation.fragment.NavHostFragment; import android.c...
True
1,238
10
1,486
10
1,550
10
1,486
10
1,781
10
false
false
false
false
false
true
1,508
37934_2
package nl.sbdeveloper.leastslack; import java.io.IOException; import java.net.URL; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class LeastSlack { private static final Pattern pattern = Pattern.compile("(\\d+)[ \\t]+(\\d+)"); public static void main(String[] arg...
SBDPlugins/LeastSlackTime-OSM
src/main/java/nl/sbdeveloper/leastslack/LeastSlack.java
1,705
// int loop = 0;
line_comment
nl
package nl.sbdeveloper.leastslack; import java.io.IOException; import java.net.URL; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class LeastSlack { private static final Pattern pattern = Pattern.compile("(\\d+)[ \\t]+(\\d+)"); public static void main(String[] arg...
True
1,320
8
1,492
8
1,539
8
1,492
8
1,719
8
false
false
false
false
false
true
1,356
4744_9
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * * @author R. Springer */ public class DemoWorld extends World { // Declareren van CollisionEngine private CollisionEngine ce; // Declareren van TileEngine private TileEngine te; /** * Constructor for o...
ROCMondriaanTIN/project-greenfoot-game-2dook
DemoWorld.java
3,194
// Initialiseren van de CollisionEngine zodat de speler niet door de tile heen kan lopen.
line_comment
nl
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * * @author R. Springer */ public class DemoWorld extends World { // Declareren van CollisionEngine private CollisionEngine ce; // Declareren van TileEngine private TileEngine te; /** * Constructor for o...
True
3,419
24
3,459
24
3,455
20
3,459
24
3,542
25
false
false
false
false
false
true
2,193
55393_3
/* * SPDX-FileCopyrightText: 2021 Atos * SPDX-License-Identifier: EUPL-1.2+ */ package net.atos.client.zgw.drc.model; import static net.atos.client.zgw.shared.util.DateTimeUtil.DATE_TIME_FORMAT_WITH_MILLISECONDS; import java.net.URI; import java.time.LocalDate; import java.time.ZonedDateTime; import java.util.UUI...
bartlukens/zaakafhandelcomponent
src/main/java/net/atos/client/zgw/drc/model/AbstractEnkelvoudigInformatieobject.java
3,539
/** * Het RSIN van de Niet-natuurlijk persoon zijnde de organisatie die het informatieobject heeft gecreeerd of heeft ontvangen * en als eerste in een samenwerkingsketen heeft vastgelegd. */
block_comment
nl
/* * SPDX-FileCopyrightText: 2021 Atos * SPDX-License-Identifier: EUPL-1.2+ */ package net.atos.client.zgw.drc.model; import static net.atos.client.zgw.shared.util.DateTimeUtil.DATE_TIME_FORMAT_WITH_MILLISECONDS; import java.net.URI; import java.time.LocalDate; import java.time.ZonedDateTime; import java.util.UUI...
True
2,944
54
3,230
66
3,088
51
3,231
66
3,615
60
false
false
false
false
false
true
3,248
107719_3
import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.MalformedURLException;...
jobeagle/roomsports
updater/src/Update.java
2,877
/** * RoomSports wieder starten. */
block_comment
nl
import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.MalformedURLException;...
False
2,142
11
2,585
13
2,529
12
2,586
13
3,190
14
false
false
false
false
false
true
644
44589_2
package nl.han.ica.oopd.waterworld; import nl.han.ica.oopg.collision.ICollidableWithGameObjects; import nl.han.ica.oopg.objects.GameObject; import nl.han.ica.oopg.sound.Sound; import processing.core.PGraphics; import java.util.List; /** * @author Ralph Niels * Bel-klasse */ public class Bubble extends GameObject ...
HANICA/waterworld
src/main/java/nl/han/ica/oopd/waterworld/Bubble.java
586
/* De volgende regels zijn in een zelfgekend object nodig om collisiondetectie mogelijk te maken. */
block_comment
nl
package nl.han.ica.oopd.waterworld; import nl.han.ica.oopg.collision.ICollidableWithGameObjects; import nl.han.ica.oopg.objects.GameObject; import nl.han.ica.oopg.sound.Sound; import processing.core.PGraphics; import java.util.List; /** * @author Ralph Niels * Bel-klasse */ public class Bubble extends GameObject ...
True
474
28
520
30
527
25
520
30
600
32
false
false
false
false
false
true
1,577
55900_5
package nl.shadowlink.tools.shadowlib.model.model; import com.jogamp.opengl.GL; import com.jogamp.opengl.GL2; import nl.shadowlink.tools.io.Vector4D; import java.util.ArrayList; /** * @author Shadow-Link */ public class Strip { private ArrayList<Polygon> poly = new ArrayList(); private ArrayList<Vertex> ve...
ShadwLink/Shadow-Mapper
src/main/java/nl/shadowlink/tools/shadowlib/model/model/Strip.java
1,590
// //Message.displayMsgLow("Vertex bestond al in deze strip " + ret);
line_comment
nl
package nl.shadowlink.tools.shadowlib.model.model; import com.jogamp.opengl.GL; import com.jogamp.opengl.GL2; import nl.shadowlink.tools.io.Vector4D; import java.util.ArrayList; /** * @author Shadow-Link */ public class Strip { private ArrayList<Polygon> poly = new ArrayList(); private ArrayList<Vertex> ve...
False
1,269
18
1,409
19
1,521
19
1,409
19
1,622
20
false
false
false
false
false
true
1,020
209269_11
package be.ehb.koalaexpress; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.ProgressBar; import android.w...
MRoeland/KoalaExpress
app/src/main/java/be/ehb/koalaexpress/CheckoutActivity.java
1,762
// 3 seconden wachten vooraleer naar fragment te springen om tijd te geven order op te slaan
line_comment
nl
package be.ehb.koalaexpress; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.ProgressBar; import android.w...
True
1,227
25
1,446
29
1,477
23
1,446
29
1,708
26
false
false
false
false
false
true
4,675
20602_2
import java.util.*; import java.util.stream.*; import java.lang.Math; import java.lang.Exception; public class PrefixTreeApp { // returns up to n candidates start with given prefix public static <T> List<Map.Entry<String, T>> lookup(PrefixTree.Node<T> t, ...
warmchang/AlgoXY-algorithms
datastruct/tree/trie/src/PrefixTreeApp.java
2,711
// T9 reverse map
line_comment
nl
import java.util.*; import java.util.stream.*; import java.lang.Math; import java.lang.Exception; public class PrefixTreeApp { // returns up to n candidates start with given prefix public static <T> List<Map.Entry<String, T>> lookup(PrefixTree.Node<T> t, ...
False
2,022
5
2,304
5
2,494
5
2,304
5
2,695
5
false
false
false
false
false
true
4,291
19807_8
package rekenen; import rekenen.plugins.Plugin; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.Arrays; import java.util.Optional; import java.util.stream.Collectors; /** * PEER TUTORING * P2W3 */ public class Rekenmachine { private final int MAX_AANTAL_PLUGINS = 10...
sgentens/Peer-Tutoring-Sessie7
Sessie7/src/rekenen/Rekenmachine.java
1,405
// double result = plugin.get().bereken(x, y);
line_comment
nl
package rekenen; import rekenen.plugins.Plugin; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.Arrays; import java.util.Optional; import java.util.stream.Collectors; /** * PEER TUTORING * P2W3 */ public class Rekenmachine { private final int MAX_AANTAL_PLUGINS = 10...
True
1,089
14
1,231
16
1,232
16
1,231
16
1,388
16
false
false
false
false
false
true
1,448
172434_16
package com.jess.arms.utils; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.os.Message; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.Rec...
ReepicheepRed/PhotoMark-official
arms/src/main/java/com/jess/arms/utils/UiUtils.java
3,086
/** * 填充view * * @param detailScreen * @return */
block_comment
nl
package com.jess.arms.utils; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.os.Message; import android.support.v7.widget.DefaultItemAnimator; import android.support.v7.widget.Rec...
False
2,327
25
2,523
21
2,762
25
2,523
21
3,240
30
false
false
false
false
false
true
3,993
19056_6
package bozels.gui.panels; import javax.swing.GroupLayout; import javax.swing.GroupLayout.Alignment; import javax.swing.GroupLayout.ParallelGroup; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextFiel...
pietervdvn/Bozels
src/bozels/gui/panels/OneMaterialEditorPanel.java
1,960
/* * VERANTWOORDING: * * Hier een if-else voor de layout is inderdaad lelijk. * Ik heb echter gekozen om deze hier te gebruiken, * omdat op deze manier de layout van het linker- en rechterstuk dezelfde layout kunnen gebruiken. * * Op deze manier zullen de layouts altijd mooi samenblijven...
block_comment
nl
package bozels.gui.panels; import javax.swing.GroupLayout; import javax.swing.GroupLayout.Alignment; import javax.swing.GroupLayout.ParallelGroup; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextFiel...
True
1,371
117
1,652
137
1,601
119
1,652
137
2,113
154
false
false
false
false
false
true
3,892
138253_15
/* * Copyright (C) 2021 B3Partners B.V. */ package nl.b3p.brmo.loader.xml; import nl.b3p.brmo.loader.BrmoFramework; import nl.b3p.brmo.loader.StagingProxy; import nl.b3p.brmo.loader.entity.Bericht; import nl.b3p.brmo.loader.entity.WozBericht; import nl.b3p.brmo.loader.util.RsgbTransformer; import org.apache.commons....
opengeogroep/brmo
brmo-loader/src/main/java/nl/b3p/brmo/loader/xml/WozXMLReader.java
4,086
/*[local-name()='inn.nnpId']"); obRefs = (NodeList) nnpIdXpath.evaluate(wozObjectNode, XPathConstants.NODESET); if (obRefs.getLength() > 0 && !StringUtils.isEmpty(obRefs.item(0).getTextContent())) { return PREFIX_NNP + obRefs.item(0).getTextContent(); } // er komen berichten ...
block_comment
nl
/* * Copyright (C) 2021 B3Partners B.V. */ package nl.b3p.brmo.loader.xml; import nl.b3p.brmo.loader.BrmoFramework; import nl.b3p.brmo.loader.StagingProxy; import nl.b3p.brmo.loader.entity.Bericht; import nl.b3p.brmo.loader.entity.WozBericht; import nl.b3p.brmo.loader.util.RsgbTransformer; import org.apache.commons....
False
3,121
327
3,564
360
3,565
350
3,564
360
4,091
416
true
true
true
true
true
false
3,242
109250_5
/** * Created by alexandru on 7/8/16. */ package jlg.jade.asterix.cat048; import jlg.jade.asterix.VariableLengthAsterixData; import java.util.BitSet; /** * Cat048Item170 - Track Status * Status of monoradar track (PSR and/or SSR updated). */ public class Cat048Item170 extends VariableLengthAsterixData { pri...
jlgconsulting/JADE-JavaAsterixDecoderEncoder
src/main/java/jlg/jade/asterix/cat048/Cat048Item170.java
1,795
// decode DOU - bit 4
line_comment
nl
/** * Created by alexandru on 7/8/16. */ package jlg.jade.asterix.cat048; import jlg.jade.asterix.VariableLengthAsterixData; import java.util.BitSet; /** * Cat048Item170 - Track Status * Status of monoradar track (PSR and/or SSR updated). */ public class Cat048Item170 extends VariableLengthAsterixData { pri...
False
1,362
8
1,463
8
1,518
7
1,463
8
1,778
8
false
false
false
false
false
true
3,283
119538_0
package nl.hanze.hive; import org.junit.jupiter.api.Test; import java.util.HashMap; import static org.junit.jupiter.api.Assertions.*; import static org.mockito.Mockito.spy; public class HiveGameLogic { //1c. Elke speler heeft aan het begin van het spel de beschikking over één // bijenkoningin, twee spinnen...
jparengkuan/Hive_TDD
src/test/java/nl/hanze/hive/HiveGameLogic.java
2,099
//1c. Elke speler heeft aan het begin van het spel de beschikking over één
line_comment
nl
package nl.hanze.hive; import org.junit.jupiter.api.Test; import java.util.HashMap; import static org.junit.jupiter.api.Assertions.*; import static org.mockito.Mockito.spy; public class HiveGameLogic { //1c. Elke<SUF> // bijenkoningin, twee spinnen, twee kevers, drie soldatenmieren en drie // sprinkhan...
True
1,538
21
1,785
24
1,736
19
1,785
24
2,195
22
false
false
false
false
false
true
3,003
18201_15
package novi.basics; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static novi.basics.main2.*; public class Game { private char[] board; private int maxRounds; private Player player1; private Player player2; private int drawCount; private Player active...
hogeschoolnovi/tic-tac-toe-vurgill
src/novi/basics/Game.java
1,791
// het nieuwe speelbord tonen
line_comment
nl
package novi.basics; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static novi.basics.main2.*; public class Game { private char[] board; private int maxRounds; private Player player1; private Player player2; private int drawCount; private Player active...
True
1,489
9
1,620
11
1,578
7
1,620
11
1,815
9
false
false
false
false
false
true
4,283
44571_0
public class DataController { private static DataController instance = null; ModelDiagram md; // mogelijk meerdere diagrammen? private DataController() { } public DataController getInstance() { if(instance == null) instance = new DataController(); return instance; } public ModelDiagram getModel() {...
senkz/PaF-Relationship-helper-for-usecases-and-UML
src/DataController.java
99
// mogelijk meerdere diagrammen?
line_comment
nl
public class DataController { private static DataController instance = null; ModelDiagram md; // mogelijk meerdere<SUF> private DataController() { } public DataController getInstance() { if(instance == null) instance = new DataController(); return instance; } public ModelDiagram getModel() { } ...
True
72
8
88
9
93
6
88
9
106
9
false
false
false
false
false
true
3,470
79029_2
package be; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileWriter; import java.io.IOException; import java.net.URL; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.xml.namespace.QName; import com.exlibris.dps.IEWebServices; import co...
libis/RosettaUpdater
src/be/CreateMetadataEntry.java
1,031
// Schrijf het resultaat naar een bestand. Het kan gebruikt worden om te zien of er geen foutmeldingen zijn opgetreden
line_comment
nl
package be; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileWriter; import java.io.IOException; import java.net.URL; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.xml.namespace.QName; import com.exlibris.dps.IEWebServices; import co...
True
720
32
850
34
917
27
850
34
1,087
36
false
false
false
false
false
true
1,246
107759_4
package field.graphics.core; import static org.lwjgl.opengl.GL11.GL_MODELVIEW; import static org.lwjgl.opengl.GL11.GL_PROJECTION; import static org.lwjgl.opengl.GL11.GL_TEXTURE; import static org.lwjgl.opengl.GL11.glFrustum; import static org.lwjgl.opengl.GL11.glLoadIdentity; import static org.lwjgl.opengl.GL11.glMatr...
OpenEndedGroup/Field
Contents/core/java/field/graphics/core/StereoCamera.java
3,086
// if (FullScreenCanvasSWT.getSide() ==
line_comment
nl
package field.graphics.core; import static org.lwjgl.opengl.GL11.GL_MODELVIEW; import static org.lwjgl.opengl.GL11.GL_PROJECTION; import static org.lwjgl.opengl.GL11.GL_TEXTURE; import static org.lwjgl.opengl.GL11.glFrustum; import static org.lwjgl.opengl.GL11.glLoadIdentity; import static org.lwjgl.opengl.GL11.glMatr...
False
2,347
11
2,850
12
2,705
11
2,850
12
3,325
13
false
false
false
false
false
true
1,021
121263_0
//bestandsnaam: Oef2.java //<-- uitzonderlijke zelf importerende bibliotheek (moet dus niet in staan feitelijk) /** *De klasse Oef2 is een java applicatie * *@author Sophie Moons *@version 1,0 */ import java.lang.*; public class Oef2{ /** *Dit is een main function, hier start het programma *@param args -> hie...
MTA-Digital-Broadcast-2/A-Moons-Sophie-De-Cock-Nicolas-Project-MHP
Sophie Moons/Labo Java/blz19/Oef2.java
263
//bestandsnaam: Oef2.java //<-- uitzonderlijke zelf importerende bibliotheek (moet dus niet in staan feitelijk)
line_comment
nl
//bestandsnaam: Oef2.java<SUF> /** *De klasse Oef2 is een java applicatie * *@author Sophie Moons *@version 1,0 */ import java.lang.*; public class Oef2{ /** *Dit is een main function, hier start het programma *@param args -> hiermee kan een array meegegeven worden via command line */ public static void main...
True
222
35
275
41
233
31
275
41
270
37
false
false
false
false
false
true
4,184
22211_0
package nl.designpatterns.builder; import java.util.Date; public class VacationBuilder { private static VacationBuilder builder = new VacationBuilder(); private VacationBuilder() {} public static VacationBuilder getInstance() { return builder; } private Vacation vacation = new Vacation(); public voi...
rloman/design-patterns
src/main/java/nl/designpatterns/builder/VacationBuilder.java
356
// test normaliter zou ik datum moeten parsen maar dat vind ik nog steeds zuigen in Java.
line_comment
nl
package nl.designpatterns.builder; import java.util.Date; public class VacationBuilder { private static VacationBuilder builder = new VacationBuilder(); private VacationBuilder() {} public static VacationBuilder getInstance() { return builder; } private Vacation vacation = new Vacation(); public voi...
False
260
22
328
28
325
21
328
28
400
25
false
false
false
false
false
true
4,029
18945_0
package codefromvideo.mockito;_x000D_ _x000D_ import java.util.List;_x000D_ _x000D_ public class Winkelmand {_x000D_ _x000D_ public boolean voegProductToeAanWinkelmand(_x000D_ Sessie sessie,_x000D_ Product nieuwProduct) {_x000D_ List<Product> producten = sessie.getProducten();_x000D_...
praegus/intro-unittesten
src/main/java/codefromvideo/mockito/Winkelmand.java
234
// product mag maar 1 keer in winkelmand zitten_x000D_
line_comment
nl
package codefromvideo.mockito;_x000D_ _x000D_ import java.util.List;_x000D_ _x000D_ public class Winkelmand {_x000D_ _x000D_ public boolean voegProductToeAanWinkelmand(_x000D_ Sessie sessie,_x000D_ Product nieuwProduct) {_x000D_ List<Product> producten = sessie.getProducten();_x000D_...
True
341
19
372
24
361
18
372
24
397
22
false
false
false
false
false
true
4,597
10051_3
/* * Copyright 2007 Pieter De Rycke * * This file is part of JMTP. * * JTMP is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or any later version. * * JM...
ultrah/jMTPe
source/java/src/jmtp/PortableDeviceObjectImplWin32.java
2,931
//comexception -> de string werd niet ingesteld
line_comment
nl
/* * Copyright 2007 Pieter De Rycke * * This file is part of JMTP. * * JTMP is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or any later version. * * JM...
True
2,127
10
2,491
12
2,732
11
2,491
12
3,051
11
false
false
false
false
false
true
1,206
71697_2
package com.hollingsworth.arsnouveau.common.entity; import com.hollingsworth.arsnouveau.ArsNouveau; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityClassification; import net.minecraft.entity.EntityType; import net.minecraft.util.ResourceLocation; import net.minecraftforge.event.RegistryEvent; im...
NielsPilgaard/Ars-Nouveau
src/main/java/com/hollingsworth/arsnouveau/common/entity/ModEntities.java
1,353
// int id = 1;
line_comment
nl
package com.hollingsworth.arsnouveau.common.entity; import com.hollingsworth.arsnouveau.ArsNouveau; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityClassification; import net.minecraft.entity.EntityType; import net.minecraft.util.ResourceLocation; import net.minecraftforge.event.RegistryEvent; im...
False
1,032
8
1,178
8
1,182
8
1,178
8
1,375
8
false
false
false
false
false
true
906
124743_29
package com.bai.util; import static java.lang.Integer.parseInt; import com.bai.checkers.CheckerManager; import ghidra.util.exception.InvalidInputException; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; /** * Configuration class. */ public class Config { ...
KeenSecurityLab/BinAbsInspector
src/main/java/com/bai/util/Config.java
3,334
/** * @hidden * @param isGUI */
block_comment
nl
package com.bai.util; import static java.lang.Integer.parseInt; import com.bai.checkers.CheckerManager; import ghidra.util.exception.InvalidInputException; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; /** * Configuration class. */ public class Config { ...
False
2,594
15
2,755
13
3,053
16
2,755
13
3,324
17
false
false
false
false
false
true
1,132
141414_9
/**************************************************************************** Copyright 2009, Colorado School of Mines and others. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apac...
MinesJTK/jtk
core/src/main/java/edu/mines/jtk/sgl/TensorsPanel.java
4,182
// Distance between ellipsoid centers (in samples).
line_comment
nl
/**************************************************************************** Copyright 2009, Colorado School of Mines and others. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apac...
False
3,260
10
3,465
11
3,629
9
3,468
11
4,082
13
false
false
false
false
false
true
1,380
70587_16
package src; import greenfoot.*; import java.util.List; /** * * @author R. Springer */ public class TileEngine { public static int TILE_WIDTH; public static int TILE_HEIGHT; public static int SCREEN_HEIGHT; public static int SCREEN_WIDTH; public static int MAP_WIDTH; public static int MAP_...
ROCMondriaanTIN/project-greenfoot-game-JustDylan23
src/TileEngine.java
2,422
// Toevoegen aan onze lokale array. Makkelijk om de tile op te halen
line_comment
nl
package src; import greenfoot.*; import java.util.List; /** * * @author R. Springer */ public class TileEngine { public static int TILE_WIDTH; public static int TILE_HEIGHT; public static int SCREEN_HEIGHT; public static int SCREEN_WIDTH; public static int MAP_WIDTH; public static int MAP_...
True
1,977
19
2,082
24
2,265
17
2,096
24
2,484
22
false
false
false
false
false
true
2,070
49880_4
/* * Geotoolkit.org - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2014, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * ...
anttileppa/geotoolkit
modules/processing/geotk-processing/src/main/java/org/geotoolkit/processing/coverage/shadedrelief/ShadedReliefDescriptor.java
1,324
/* * Coverage elevation value to meters */
block_comment
nl
/* * Geotoolkit.org - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2014, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * ...
False
983
11
1,140
10
1,122
12
1,140
10
1,358
14
false
false
false
false
false
true
2,839
200247_32
/** * openHAB, the open Home Automation Bus. * Copyright (C) 2010-2013, openHAB.org <admin@openhab.org> * * See the contributors.txt file in the distribution for a * full listing of individual contributors. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU ...
google-code-export/openhab
bundles/binding/org.openhab.binding.novelanheatpump/src/main/java/org/openhab/binding/novelanheatpump/HeatpumpCommandType.java
2,883
// in german Massentrom
line_comment
nl
/** * openHAB, the open Home Automation Bus. * Copyright (C) 2010-2013, openHAB.org <admin@openhab.org> * * See the contributors.txt file in the distribution for a * full listing of individual contributors. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU ...
False
2,269
6
2,689
7
2,490
6
2,689
7
3,216
7
false
false
false
false
false
true
3,714
8823_0
package com.github.monkeywie.proxyee.util; import io.netty.handler.codec.http.HttpHeaderNames; import io.netty.handler.codec.http.HttpHeaders; import io.netty.handler.codec.http.HttpRequest; import io.netty.handler.codec.http.HttpResponse; import io.netty.util.AsciiString; public class HttpUtil { /** * 检测ur...
monkeyWie/proxyee
src/main/java/com/github/monkeywie/proxyee/util/HttpUtil.java
509
/** * 检测url是否匹配 */
block_comment
nl
package com.github.monkeywie.proxyee.util; import io.netty.handler.codec.http.HttpHeaderNames; import io.netty.handler.codec.http.HttpHeaders; import io.netty.handler.codec.http.HttpRequest; import io.netty.handler.codec.http.HttpResponse; import io.netty.util.AsciiString; public class HttpUtil { /** * 检测ur...
False
382
13
421
10
462
11
421
10
524
19
false
false
false
false
false
true
4,134
74020_0
package Controller; import Firebase.FirebaseActionObserver; import Firebase.FirebaseGameObserver; import Firebase.FirebaseGameService; import com.google.cloud.firestore.DocumentChange; import com.google.cloud.firestore.DocumentSnapshot; import com.google.cloud.firestore.QuerySnapshot; import javafx.application.Platfor...
realDragonium/SmallWorld3D
src/main/java/Controller/FirebaseGameController.java
1,106
//Met 3 is het grootste aantal
line_comment
nl
package Controller; import Firebase.FirebaseActionObserver; import Firebase.FirebaseGameObserver; import Firebase.FirebaseGameService; import com.google.cloud.firestore.DocumentChange; import com.google.cloud.firestore.DocumentSnapshot; import com.google.cloud.firestore.QuerySnapshot; import javafx.application.Platfor...
True
824
9
961
11
1,027
8
961
11
1,088
9
false
false
false
false
false
true
1,683
174029_21
package Graph; import java.awt.geom.Point2D; import java.awt.geom.Point2D.Float; import java.io.Serializable; import org.openstreetmap.gui.jmapviewer.Coordinate; import allgemein.Konstanten; public class Kante implements Serializable, Comparable<Kante> { private static final long serialVersionUID = 32254242682435771...
Tandrial/AI-SE-Bsc
SEP_SoSe13/Abnahme/SourceCode/Graph/Kante.java
2,508
// bio = (Knoten) in.readObject();
line_comment
nl
package Graph; import java.awt.geom.Point2D; import java.awt.geom.Point2D.Float; import java.io.Serializable; import org.openstreetmap.gui.jmapviewer.Coordinate; import allgemein.Konstanten; public class Kante implements Serializable, Comparable<Kante> { private static final long serialVersionUID = 32254242682435771...
False
2,029
12
2,505
13
2,271
11
2,505
13
2,644
13
false
false
false
false
false
true
1,546
95112_3
package simu.test;_x000D_ import simu.eduni.distributions.Normal;_x000D_ import simu.framework.Kello;_x000D_ import simu.framework.ITapahtumanTyyppi;_x000D_ import simu.framework.Tapahtuma;_x000D_ _x000D_ import static simu.model.TapahtumanTyyppi.ARR1;_x000D_ import static simu.model.TapahtumanTyyppi.*;_x000D_ _x000D_ ...
Sami-Juhani/AP-Simulation-Java
src/main/java/simu/test/SaapumisprosessiForTest.java
877
//this.generaattori = g;_x000D_
line_comment
nl
package simu.test;_x000D_ import simu.eduni.distributions.Normal;_x000D_ import simu.framework.Kello;_x000D_ import simu.framework.ITapahtumanTyyppi;_x000D_ import simu.framework.Tapahtuma;_x000D_ _x000D_ import static simu.model.TapahtumanTyyppi.ARR1;_x000D_ import static simu.model.TapahtumanTyyppi.*;_x000D_ _x000D_ ...
False
1,163
16
1,254
16
1,173
16
1,254
16
1,318
17
false
false
false
false
false
true
1,073
8369_0
package be.jpendel.application; import be.jpendel.domain.person.Person; import java.util.Collection; import java.util.List; import java.util.stream.Collectors; /* TODO : mark: PersonMapper en PersonDTO moeten volgens mij in de domain layer */ class PersonMapper { private PersonMapper() { } static List<...
MarkDechamps/jpendel
application/src/main/java/be/jpendel/application/PersonMapper.java
233
/* TODO : mark: PersonMapper en PersonDTO moeten volgens mij in de domain layer */
block_comment
nl
package be.jpendel.application; import be.jpendel.domain.person.Person; import java.util.Collection; import java.util.List; import java.util.stream.Collectors; /* TODO : mark:<SUF>*/ class PersonMapper { private PersonMapper() { } static List<PersonDTO> map(Collection<Person> persons) { return ...
True
157
20
202
22
205
19
202
22
232
22
false
false
false
false
false
true
4,172
46346_1
package com.example.plugindemo.activity.category; import java.text.Collator; import android.app.TwsActivity; import android.os.Bundle; import android.widget.AbsListView; import android.widget.ArrayAdapter; import android.widget.ListView; import com.example.plugindemo.R; import com.tencent.tws.assistant.widget.SideBa...
rickdynasty/TwsPluginFramework
TwsPluginDemo/src/main/java/com/example/plugindemo/activity/category/SideBarActivity.java
3,132
// default is 0xFFe5e5e5
line_comment
nl
package com.example.plugindemo.activity.category; import java.text.Collator; import android.app.TwsActivity; import android.os.Bundle; import android.widget.AbsListView; import android.widget.ArrayAdapter; import android.widget.ListView; import com.example.plugindemo.R; import com.tencent.tws.assistant.widget.SideBa...
False
2,689
12
3,045
12
2,659
12
3,046
12
3,293
13
false
false
false
false
false
true
2,942
29048_15
package pca; import cern.colt.matrix.DoubleFactory2D; import cern.colt.matrix.DoubleMatrix1D; import cern.colt.matrix.DoubleMatrix2D; import cern.colt.matrix.impl.DenseDoubleMatrix1D; import cern.colt.matrix.linalg.Algebra; import cern.jet.math.Functions; import util.Log; import util.Log.LogType; import util.TimeCount...
hillday/3DMM
src/pca/PCA.java
2,160
/** @return one eigen value. */
block_comment
nl
package pca; import cern.colt.matrix.DoubleFactory2D; import cern.colt.matrix.DoubleMatrix1D; import cern.colt.matrix.DoubleMatrix2D; import cern.colt.matrix.impl.DenseDoubleMatrix1D; import cern.colt.matrix.linalg.Algebra; import cern.jet.math.Functions; import util.Log; import util.Log.LogType; import util.TimeCount...
True
1,718
8
2,048
8
2,043
8
2,048
8
2,326
8
false
false
false
false
false
true
394
175634_1
package gameEngine.ramses.events; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; public class EventQueueRoom { //static class die een add en resolved event functie heeft. //als een event word geadd word er bij alle eventHandlers gekeken of het hun event is. Zo ja activeer het. //pr...
Darkfafi/JavaFrameworkRDP
src/gameEngine/ramses/events/EventQueueRoom.java
475
//als een event word geadd word er bij alle eventHandlers gekeken of het hun event is. Zo ja activeer het.
line_comment
nl
package gameEngine.ramses.events; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; public class EventQueueRoom { //static class die een add en resolved event functie heeft. //als een<SUF> //private static ArrayList<Event> _allEvents = new ArrayList<Event>(); public static void add...
True
339
28
405
30
405
28
405
30
512
29
false
false
false
false
false
true
958
97801_0
package gui.screens; import domein.DomeinController; import gui.company.CompanyCardComponent; import gui.components.CustomMenu; import gui.components.LanguageBundle; import io.github.palexdev.materialfx.controls.MFXButton; import io.github.palexdev.materialfx.controls.MFXCheckbox; import io.github.palexdev.materialfx....
LaurensDM/Webshop-desktop
src/main/java/gui/screens/SettingScreen.java
1,144
// voeg een listener toe aan de ComboBox om de taal te wijzigen
line_comment
nl
package gui.screens; import domein.DomeinController; import gui.company.CompanyCardComponent; import gui.components.CustomMenu; import gui.components.LanguageBundle; import io.github.palexdev.materialfx.controls.MFXButton; import io.github.palexdev.materialfx.controls.MFXCheckbox; import io.github.palexdev.materialfx....
True
774
17
939
19
981
15
939
19
1,104
18
false
false
false
false
false
true
1,685
55988_1
package com.crm.qa.pages; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import com.crm.qa.base.TestBase; public class EntrepreneursPageFree extends TestBase{ //Page factory OR Object Repository @Fin...
TarunBtn/FreeCRMTestOne
FreeCRMTestOne/src/main/java/com/crm/qa/pages/EntrepreneursPageFree.java
1,319
//input[@placeholder='Zoek een vaardigheid']")
line_comment
nl
package com.crm.qa.pages; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import com.crm.qa.base.TestBase; public class EntrepreneursPageFree extends TestBase{ //Page factory OR Object Repository @Fin...
False
829
15
1,092
15
1,076
11
1,092
15
1,297
15
false
false
false
false
false
true
592
52480_0
package com.digicoachindezorg.digicoachindezorg_backend.config; /* CORS (Cross Origin Resource Sharing) is een instelling die zorgt dat de frontend en de backend met elkaar kunnen communiceren ondanks dat ze op verschillende poorten opereren (b.v. localhost:3000 en localhost:8080). De globale cors configuratie zorgt d...
Gentlemannerss/digicoachindezorg_backend
src/main/java/com/digicoachindezorg/digicoachindezorg_backend/config/GlobalCorsConfiguration.java
323
/* CORS (Cross Origin Resource Sharing) is een instelling die zorgt dat de frontend en de backend met elkaar kunnen communiceren ondanks dat ze op verschillende poorten opereren (b.v. localhost:3000 en localhost:8080). De globale cors configuratie zorgt dat je niet boven elke klasse @CrossOrigin hoeft te zetten. Vergee...
block_comment
nl
package com.digicoachindezorg.digicoachindezorg_backend.config; /* CORS (Cross Origin<SUF>*/ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.co...
True
251
107
298
124
279
98
298
124
323
120
false
false
false
false
false
true
772
24453_2
package edu.ap.spring; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; import ...
IsmatFaizi/studeren-examen
Spring-Redis/src/main/java/edu/ap/spring/RedisApplication.java
524
//Deze gaat de database leeg maken en een message daarin toevoegen
line_comment
nl
package edu.ap.spring; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext; import ...
True
357
17
438
20
460
15
438
20
523
19
false
false
false
false
false
true
2,605
171856_2
/* * Copyright 2014 http://Bither.net * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
dworznik/bither-android
bither-android/src/net/bither/util/UpgradeUtil.java
2,635
//upgrde when version code <9
line_comment
nl
/* * Copyright 2014 http://Bither.net * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
False
1,979
9
2,234
9
2,402
9
2,234
9
2,681
9
false
false
false
false
false
true
2,996
60681_1
package novi.basics; public class Player { //attributen: informatie verzamelen private String name; private char token; private int score; //methoden: acties die de speler uit kan voeren //constructor public Player(String name, char token) { this.name = name; this.token = to...
hogeschoolnovi/tic-tac-toe-Quinten-dev
src/novi/basics/Player.java
201
//methoden: acties die de speler uit kan voeren
line_comment
nl
package novi.basics; public class Player { //attributen: informatie verzamelen private String name; private char token; private int score; //methoden: acties<SUF> //constructor public Player(String name, char token) { this.name = name; this.token = token; score = 0; ...
True
165
14
169
14
192
12
169
14
202
14
false
false
false
false
false
true
2,618
100813_17
/** ** Person.java ** ** Copyright 2011 by Sarah Wise, Mark Coletti, Andrew Crooks, and ** George Mason University. ** ** Licensed under the Academic Free License version 3.0 ** ** See the file "LICENSE" for more information ** ** $Id$ **/ package sim.app.geo.schellingpolygon; import java.util.ArrayList; im...
eclab/mason
contrib/geomason/src/main/java/sim/app/geo/schellingpolygon/Person.java
1,161
//else if( p.geometry.distance( region.geometry ) >= bestDist)
line_comment
nl
/** ** Person.java ** ** Copyright 2011 by Sarah Wise, Mark Coletti, Andrew Crooks, and ** George Mason University. ** ** Licensed under the Academic Free License version 3.0 ** ** See the file "LICENSE" for more information ** ** $Id$ **/ package sim.app.geo.schellingpolygon; import java.util.ArrayList; im...
False
910
15
967
18
1,049
18
967
18
1,161
18
false
false
false
false
false
true
248
178223_2
package dag15; import java.lang.constant.Constable; public class Java17Switch { enum KLEUREN { BLAUW, GEEL, ROOD; } public static void main(String[] args) { int x = 8; switch(x) { default: System.out.println("Wat is dit?"); break; ...
BrightBoost/ocp
src/main/java/dag15/Java17Switch.java
754
// waarde returnen met switch statement en expliciet yield
line_comment
nl
package dag15; import java.lang.constant.Constable; public class Java17Switch { enum KLEUREN { BLAUW, GEEL, ROOD; } public static void main(String[] args) { int x = 8; switch(x) { default: System.out.println("Wat is dit?"); break; ...
True
610
12
672
13
697
12
672
13
754
12
false
false
false
false
false
true
2,453
194301_0
package be.ipeters.brol.cpbelcar.services; import java.time.LocalDate; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap; import org.apache.ibatis.javassist.bytecode.Descriptor.Iterator; import org.springframework.beans.factory.annotation.Autowired; import org.springframe...
cpjjpeters/javafx1
src/main/java/be/ipeters/brol/cpbelcar/services/CarService.java
2,080
/* * bij een nieuwe wagen van een bepaald type dient de stock +1 te worden * tegelijk 4 parts -1 */
block_comment
nl
package be.ipeters.brol.cpbelcar.services; import java.time.LocalDate; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap; import org.apache.ibatis.javassist.bytecode.Descriptor.Iterator; import org.springframework.beans.factory.annotation.Autowired; import org.springframe...
True
1,517
35
1,876
36
1,860
32
1,876
36
2,255
40
false
false
false
false
false
true
2,753
43284_7
import java.nio.BufferOverflowException; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Spel { ArrayList<String> gansKleuren = new ArrayList<>(Arrays.asList("wit", "rood", "groen", "blauw", "geel", "zwart")); //ArrayList<String> gansKleuren = new ArrayList<>(Arrays...
gabeplz/ganzebordStan
src/Spel.java
1,513
// waarneer 2 spelers dezelfde worp hebben moet de laatste speler gooien tot hij een niet eerder gegooide waarde krijgt.
line_comment
nl
import java.nio.BufferOverflowException; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Spel { ArrayList<String> gansKleuren = new ArrayList<>(Arrays.asList("wit", "rood", "groen", "blauw", "geel", "zwart")); //ArrayList<String> gansKleuren = new ArrayList<>(Arrays...
True
1,201
36
1,344
44
1,326
28
1,344
44
1,477
40
false
false
false
false
false
true
299
57243_0
package cheese.squeeze.gameObjects;_x000D_ _x000D_ import java.util.Iterator;_x000D_ import java.util.List;_x000D_ _x000D_ import cheese.squeeze.helpers.AssetLoader;_x000D_ _x000D_ import com.badlogic.gdx.Gdx;_x000D_ import com.badlogic.gdx.math.MathUtils;_x000D_ import com.badlogic.gdx.math.Vector2;_x000D_ _x000D_ //T...
Camambar/CheeseSqueeze
core/src/cheese/squeeze/gameObjects/Mouse.java
1,855
//TODO: direction bijhouden, en veranderen als we aan een gotopoint belanden._x000D_
line_comment
nl
package cheese.squeeze.gameObjects;_x000D_ _x000D_ import java.util.Iterator;_x000D_ import java.util.List;_x000D_ _x000D_ import cheese.squeeze.helpers.AssetLoader;_x000D_ _x000D_ import com.badlogic.gdx.Gdx;_x000D_ import com.badlogic.gdx.math.MathUtils;_x000D_ import com.badlogic.gdx.math.Vector2;_x000D_ _x000D_ //T...
True
2,610
28
2,932
29
2,921
24
2,932
29
3,304
29
false
false
false
false
false
true
2,157
33415_10
package me.devsaki.hentoid.enums; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.util.HashSet; import java.util.Set; import io.objectbox.converter.PropertyConverter; import me.devsaki.hentoid.R; import me.devsaki.hentoid.json.core.JsonSiteSettings; import me.devsaki.hentoid.util...
avluis/Hentoid
app/src/main/java/me/devsaki/hentoid/enums/Site.java
3,408
// Default values overridden in sites.json
line_comment
nl
package me.devsaki.hentoid.enums; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.util.HashSet; import java.util.Set; import io.objectbox.converter.PropertyConverter; import me.devsaki.hentoid.R; import me.devsaki.hentoid.json.core.JsonSiteSettings; import me.devsaki.hentoid.util...
False
2,704
7
2,996
8
3,070
8
2,996
8
3,443
9
false
false
false
false
false
true
1,827
99855_5
package be.valuya.bob.core.reader; import be.valuya.advantaje.core.AdvantajeRecord; import be.valuya.bob.core.domain.BobAccount; import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.Optional; public class BobAccountRecordReader { public BobAccount readAccount(AdvantajeRecord advantajeRe...
Valuya/bobthetinker
bobthetinker-core/src/main/java/be/valuya/bob/core/reader/BobAccountRecordReader.java
3,727
//: (STRING, 120): Eigen vermogen, voorzieningen voor risico's en kosten en schulden op meer dan een jaar
line_comment
nl
package be.valuya.bob.core.reader; import be.valuya.advantaje.core.AdvantajeRecord; import be.valuya.bob.core.domain.BobAccount; import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.Optional; public class BobAccountRecordReader { public BobAccount readAccount(AdvantajeRecord advantajeRe...
True
2,951
32
3,321
37
3,299
28
3,320
36
3,745
35
false
false
false
false
false
true
2,563
69191_0
package nl.han; import java.util.ArrayList; public class Antwoordformulier { private ArrayList<String> gegevenAntwoorden; private int aantalGoed; private Score score; private Long startTijd; public Antwoordformulier(){ gegevenAntwoorden = new ArrayList<>(); score = new Score(); ...
diorcula/OOAD_casestudy-parola
source/src/nl/han/Antwoordformulier.java
293
//Bereken de score met berekening A
line_comment
nl
package nl.han; import java.util.ArrayList; public class Antwoordformulier { private ArrayList<String> gegevenAntwoorden; private int aantalGoed; private Score score; private Long startTijd; public Antwoordformulier(){ gegevenAntwoorden = new ArrayList<>(); score = new Score(); ...
True
242
10
275
11
254
9
275
11
302
11
false
false
false
false
false
true
4,279
118739_2
/* * Copyright 2012-2014 eBay Software Foundation and selendroid committers. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
selendroid/selendroid
selendroid-server/src/main/java/io/selendroid/server/handler/SendKeysToElement.java
608
// default is native events
line_comment
nl
/* * Copyright 2012-2014 eBay Software Foundation and selendroid committers. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
False
462
5
542
5
565
5
542
5
638
5
false
false
false
false
false
true
276
141676_10
/*************************************************************************** * (C) Copyright 2003-2022 - Stendhal * *************************************************************************** *************************************************************************** * ...
C8620/stendhal
src/games/stendhal/server/core/rp/achievement/factory/FriendAchievementFactory.java
1,834
// Annie, Kalavan city gardens
line_comment
nl
/*************************************************************************** * (C) Copyright 2003-2022 - Stendhal * *************************************************************************** *************************************************************************** * ...
False
1,342
7
1,624
10
1,519
7
1,624
10
2,051
9
false
false
false
false
false
true
1,989
192437_0
package com.aivarsliepa.budgetappapi.integrationtests; import com.aivarsliepa.budgetappapi.constants.URLPaths; import com.aivarsliepa.budgetappapi.data.payloads.JwtAuthResponseBody; import com.aivarsliepa.budgetappapi.data.payloads.LoginRequestBody; import com.aivarsliepa.budgetappapi.data.payloads.RegisterRequestBody...
aivarsliepa/budget-app-api
src/test/java/com/aivarsliepa/budgetappapi/integrationtests/AuthTest.java
2,840
// validate jwt is in response
line_comment
nl
package com.aivarsliepa.budgetappapi.integrationtests; import com.aivarsliepa.budgetappapi.constants.URLPaths; import com.aivarsliepa.budgetappapi.data.payloads.JwtAuthResponseBody; import com.aivarsliepa.budgetappapi.data.payloads.LoginRequestBody; import com.aivarsliepa.budgetappapi.data.payloads.RegisterRequestBody...
False
1,784
6
2,202
6
2,278
6
2,202
6
2,777
7
false
false
false
false
false
true
4,752
16548_3
/*-------------------------------------------------------------------------- * Copyright 2008 Taro L. Saito * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
xerial/sqlite-jdbc
src/main/java/org/sqlite/util/OSInfo.java
2,785
// Needed for openjdk7 in Mac
line_comment
nl
/*-------------------------------------------------------------------------- * Copyright 2008 Taro L. Saito * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
False
2,259
8
2,442
9
2,638
8
2,442
9
2,848
9
false
false
false
false
false
true
1,078
145235_18
package tesc1; import java.io.*; import java.lang.String; import java.util.Vector; import absyn.*; import util.*; /** * Label-Parser fuer den Editor. * <p> * @author Michael Suelzer, Christoph Schuette. * @version $Id: TESCLabelParser.java,v 1.5 1999-02-07 11:58:30 swtech20 Exp $ */ class TESCLabelParser ...
MartinSteffen/pest
src/Pest2/TESC1/TESCLabelParser.java
1,009
// gegeben werden behoben.
line_comment
nl
package tesc1; import java.io.*; import java.lang.String; import java.util.Vector; import absyn.*; import util.*; /** * Label-Parser fuer den Editor. * <p> * @author Michael Suelzer, Christoph Schuette. * @version $Id: TESCLabelParser.java,v 1.5 1999-02-07 11:58:30 swtech20 Exp $ */ class TESCLabelParser ...
False
816
9
938
9
928
8
938
9
1,028
9
false
false
false
false
false
true
4,382
131187_8
package week2; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Test; class GlobalTransitionSystemTest { @Test void hasExecutionTest1() { ...
sschivo/ib2302
Opdrachten/src/week2/GlobalTransitionSystemTest.java
2,554
// void parseTest3() {
line_comment
nl
package week2; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.Test; class GlobalTransitionSystemTest { @Test void hasExecutionTest1() { ...
False
2,079
7
2,453
8
2,453
8
2,453
8
2,730
8
false
false
false
false
false
true
1,433
39552_5
package controller; import javafx.fxml.FXML; import javafx.scene.control.Alert; import javafx.scene.control.CheckBox; import javafx.scene.control.ListView; import javafx.scene.control.TextField; import javafx.scene.layout.VBox; import model.Creature; import view.Main; import view.SceneManager; import java.util.ArrayLi...
Rakky88/InitiativeTracker
src/main/java/controller/InitiativeController.java
2,231
/**Met deze methode wordt een creature uit de initiativeList gehaald. * */
block_comment
nl
package controller; import javafx.fxml.FXML; import javafx.scene.control.Alert; import javafx.scene.control.CheckBox; import javafx.scene.control.ListView; import javafx.scene.control.TextField; import javafx.scene.layout.VBox; import model.Creature; import view.Main; import view.SceneManager; import java.util.ArrayLi...
True
1,624
20
1,850
21
1,885
20
1,850
21
2,166
24
false
false
false
false
false
true
3,696
27754_20
/* This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative. The license (Mozilla version 1.0) can be read at the MMBase site. See http://www.MMBase.org/license */ package org.mmbase.util; import java.io.*; import javax.servlet.*; import javax.servlet....
mmbase/mmbase-utils
src/main/java/org/mmbase/util/GenericResponseWrapper.java
4,077
/** * @see javax.servlet.http.HttpServletResponse#sendError(int) */
block_comment
nl
/* This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative. The license (Mozilla version 1.0) can be read at the MMBase site. See http://www.MMBase.org/license */ package org.mmbase.util; import java.io.*; import javax.servlet.*; import javax.servlet....
False
3,196
16
3,382
20
3,773
23
3,382
20
4,067
24
false
false
false
false
false
true
3,335
47139_3
package src.engine.core.tools; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import javax.sound.sampled.*; public class MusicPlayer { // enum for sound effects public enum SoundEffect { //...
kastanileel/CPUCrunchEngine
src/engine/core/tools/MusicPlayer.java
2,123
// number between 0 and 1 (loudest)
line_comment
nl
package src.engine.core.tools; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import javax.sound.sampled.*; public class MusicPlayer { // enum for sound effects public enum SoundEffect { //...
False
1,490
13
1,719
13
1,758
12
1,719
13
2,098
13
false
false
false
false
false
true
2,114
58011_1
/* * [ 1719398 ] First shot at LWPOLYLINE * Peter Hopfgartner - hopfgartner * */ package org.geotools.data.dxf.entities; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.Geometry; import org.locationtech.jts.geom.LinearRing; import java.io.EOFException; import java.io.IOException; impo...
apollo-mapping/geotools
modules/unsupported/dxf/src/main/java/org/geotools/data/dxf/entities/DXFLwPolyline.java
3,599
// geldt voor alle waarden van type
line_comment
nl
/* * [ 1719398 ] First shot at LWPOLYLINE * Peter Hopfgartner - hopfgartner * */ package org.geotools.data.dxf.entities; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.Geometry; import org.locationtech.jts.geom.LinearRing; import java.io.EOFException; import java.io.IOException; impo...
True
2,668
9
2,901
10
3,156
8
2,901
10
3,585
9
false
false
false
false
false
true
1,802
17171_2
package be.ucll.java.ent; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.P...
UcllJavaEnterprise/first-servlet
src/main/java/be/ucll/java/ent/InschrijvingServlet.java
1,157
/* // Create a cookie. Een 'cookie' kan zeer weinig info bevatten en de inhoud die je wil opslaan hou je best onder de 4000 bytes. String encodedStr = URLEncoder.encode(stud_name, StandardCharsets.UTF_8.toString()); Cookie cookie = new Cookie(COOKIE_STUDENT, encodedStr); ...
block_comment
nl
package be.ucll.java.ent; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.P...
True
848
152
986
167
993
159
986
167
1,170
185
false
false
false
false
false
true
636
43016_2
/* Copyright (c) 2018 FIRST. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaimer below) provided that * the following conditions are met: * * Redistributions of source code must retain the above cop...
Guusje2/FTCUnits-SkyStone
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/CraterSide.java
3,502
//TODO: meten startwaarde, gemiddelde pakken vnan een aantal metingen
line_comment
nl
/* Copyright (c) 2018 FIRST. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaimer below) provided that * the following conditions are met: * * Redistributions of source code must retain the above cop...
False
2,637
21
2,911
24
2,946
19
2,911
24
3,596
21
false
false
false
false
false
true
1,752
10815_0
package domain; import java.util.ArrayList; public class BinaryMinHeap<E extends Comparable<E>> { private ArrayList<E> values; private boolean isEmpty() { return values == null || values.size() == 0; } public void print() { if (this.isEmpty()) System.out.println("De heap ...
TomEversdijk/Bomen_en_grafen_oefeningen
week05_Heap/src/domain/BinaryMinHeap.java
498
//TO DO zie oefening 3
line_comment
nl
package domain; import java.util.ArrayList; public class BinaryMinHeap<E extends Comparable<E>> { private ArrayList<E> values; private boolean isEmpty() { return values == null || values.size() == 0; } public void print() { if (this.isEmpty()) System.out.println("De heap ...
True
414
9
468
10
463
8
468
10
522
9
false
false
false
false
false
true
1,596
41419_0
package simonjang.androidmeting; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.net.Uri; import android.support.design.widget.AppBarLayout; import android.support.design.w...
SimonJang/MetingAndroid
app/src/main/java/simonjang/androidmeting/MainActivity.java
781
// Moet deze methode implementeren zodat Fragments kunnen gebruikt worden
line_comment
nl
package simonjang.androidmeting; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.net.Uri; import android.support.design.widget.AppBarLayout; import android.support.design.w...
False
531
17
648
18
668
12
648
18
779
19
false
false
false
false
false
true
1,680
8380_0
/* * CBM interface * Dit document beschrijft de interface van CBM die ten behoeve van Melvin beschikbaar wordt gesteld. . </br></br> De API moet worden uitgevraagd met een token. De token kan met een gebruikersnaam en wachtwoord verkregen worden. De token is tijdelijk geldig, daarna kan een nieuwe token opgevraagd wo...
TOMP-WG/TOMP-REF
tomp_meta/src/main/java/io/swagger/client/ApiCallback.java
580
/* * CBM interface * Dit document beschrijft de interface van CBM die ten behoeve van Melvin beschikbaar wordt gesteld. . </br></br> De API moet worden uitgevraagd met een token. De token kan met een gebruikersnaam en wachtwoord verkregen worden. De token is tijdelijk geldig, daarna kan een nieuwe token opgevraagd wo...
block_comment
nl
/* * CBM interface <SUF>*/ package io.swagger.client; import java.io.IOException; import java.util.Map; import java.util.List; /** * Callback for asynchronous API call. * * @param <T> The return type */ public interface ApiCallback<T> { /** * This is called when the API call fails. * * @par...
True
499
171
542
192
541
164
542
192
596
195
false
false
false
false
false
true
4,689
22086_6
import javax.swing.*; import java.awt.*; class gui { public static void main(String[] args) { //Initialiseer een nieuwe JFrame en configureer de basics, //dus size en de ON_CLOSE operation. JFrame frame = new JFrame("Workshop frame"); frame.setSize(500, 500); frame.setDefaultClo...
wennhao/project3-4
guiold_OUTDATED/gui.java
765
//Drie arrays van knoppen, 1 voor iedere panel.
line_comment
nl
import javax.swing.*; import java.awt.*; class gui { public static void main(String[] args) { //Initialiseer een nieuwe JFrame en configureer de basics, //dus size en de ON_CLOSE operation. JFrame frame = new JFrame("Workshop frame"); frame.setSize(500, 500); frame.setDefaultClo...
True
572
16
636
17
666
14
636
17
778
17
false
false
false
false
false
true
1,426
128601_0
public class main{ public static void main(String[] args) { String halo; main hewan = new main(); System.out.println(simpel()); hewan.kucing(); halo = "ciko"; hewan.anjing(halo); } //method dengan void //itu maksudnya sebuah method yang bernilai hampa //dalam pengembaliannya tidak betuh return ...
RaenaldP/New-Java
Void method/main.java
271
//method dengan void
line_comment
nl
public class main{ public static void main(String[] args) { String halo; main hewan = new main(); System.out.println(simpel()); hewan.kucing(); halo = "ciko"; hewan.anjing(halo); } //method dengan<SUF> //itu maksudnya sebuah method yang bernilai hampa //dalam pengembaliannya tidak betuh return ...
False
199
4
255
4
218
4
255
4
295
5
false
false
false
false
false
true
3,485
179629_6
/* * Copyright (c) 2018 LingoChamp Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
lingochamp/okdownload
okdownload-filedownloader/src/main/java/com/liulishuo/filedownloader/util/FileDownloadUtils.java
3,798
/** * @see Headers#toString() * @see Headers#name(int) * @see Headers#value(int) */
block_comment
nl
/* * Copyright (c) 2018 LingoChamp Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
False
2,912
29
3,169
31
3,458
35
3,169
31
3,843
38
false
false
false
false
false
true