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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3,681 | 91801_5 | package nl.geozet.common;_x000D_
_x000D_
import java.io.FileNotFoundException;_x000D_
import java.io.IOException;_x000D_
import java.util.Collections;_x000D_
import java.util.List;_x000D_
import java.util.Properties;_x000D_
import java.util.Vector;_x000D_
_x000D_
import org.apache.log4j.Logger;_x000D_
_x000D_
/**_x000D... | mizanRahman/geozet | geozet-webapp/src/main/java/nl/geozet/common/DataCategorieen.java | 997 | /* Private constructor voor deze utility klasse. */ | block_comment | nl | package nl.geozet.common;_x000D_
_x000D_
import java.io.FileNotFoundException;_x000D_
import java.io.IOException;_x000D_
import java.util.Collections;_x000D_
import java.util.List;_x000D_
import java.util.Properties;_x000D_
import java.util.Vector;_x000D_
_x000D_
import org.apache.log4j.Logger;_x000D_
_x000D_
/**_x000D... | False | 1,369 | 10 | 1,495 | 10 | 1,511 | 9 | 1,495 | 10 | 1,631 | 10 | false | false | false | false | false | true |
3,565 | 18940_13 | package SELMA;
import java.util.*;
import SELMA.SELMATree.SR_Type;
import SELMA.SELMATree.SR_Kind;
import SELMA.SELMATree.SR_Func;
import SELMA.SELMAChecker;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.tree.Tree;
/**
* Implementatie van een symbol table voor de compiler.
*/
public clas... | markflorisson/selma | src/SELMA/SymbolTable.java | 2,003 | /**
* Verlaat een functie scope. Houdt bij of we in een functie zitten of niet, zodat we weten of variabelen globaal zijn of niet.
*/ | block_comment | nl | package SELMA;
import java.util.*;
import SELMA.SELMATree.SR_Type;
import SELMA.SELMATree.SR_Kind;
import SELMA.SELMATree.SR_Func;
import SELMA.SELMAChecker;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.tree.Tree;
/**
* Implementatie van een symbol table voor de compiler.
*/
public clas... | True | 1,608 | 44 | 1,749 | 47 | 1,892 | 38 | 1,749 | 47 | 2,030 | 48 | false | false | false | false | false | true |
3,939 | 105965_2 | package de.dhbwka.java.exercise.classes.swapgame;
import java.awt.Color;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
/**
* Spielfeld
*/
public class Spielfeld {
// #re... | pa-ssch/study-java-exercises | src/de/dhbwka/java/exercise/classes/swapgame/Spielfeld.java | 2,749 | // #region private methods | line_comment | nl | package de.dhbwka.java.exercise.classes.swapgame;
import java.awt.Color;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
/**
* Spielfeld
*/
public class Spielfeld {
// #re... | False | 2,220 | 5 | 2,452 | 5 | 2,475 | 5 | 2,452 | 5 | 2,747 | 5 | false | false | false | false | false | true |
4,782 | 99635_10 | package com.example.AppArt.thaliapp.Calendar.Backend;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import com.example.AppArt.thaliapp.R;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Locale;
/**
* Withholds all knowledge of a T... | yorickvP/ThaliAppMap | app/src/main/java/com/example/AppArt/thaliapp/Calendar/Backend/ThaliaEvent.java | 2,340 | /*****************************************************************
Default Methods
*****************************************************************/ | block_comment | nl | package com.example.AppArt.thaliapp.Calendar.Backend;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import com.example.AppArt.thaliapp.R;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Locale;
/**
* Withholds all knowledge of a T... | False | 1,742 | 9 | 1,902 | 8 | 2,095 | 16 | 1,902 | 8 | 2,329 | 19 | false | false | false | false | false | true |
1,131 | 48566_1 | /*
* Copyright (c) Forge Development LLC and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/
package net.minecraftforge.fml.loading;
import com.mojang.logging.LogUtils;
import cpw.mods.modlauncher.Launcher;
import cpw.mods.modlauncher.api.*;
import net.minecraftforge.fml.loading.moddiscovery.BackgroundSca... | MinecraftForge/MinecraftForge | fmlloader/src/main/java/net/minecraftforge/fml/loading/FMLLoader.java | 2,910 | /*eventBus =*/ | block_comment | nl | /*
* Copyright (c) Forge Development LLC and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/
package net.minecraftforge.fml.loading;
import com.mojang.logging.LogUtils;
import cpw.mods.modlauncher.Launcher;
import cpw.mods.modlauncher.api.*;
import net.minecraftforge.fml.loading.moddiscovery.BackgroundSca... | False | 2,112 | 6 | 2,370 | 6 | 2,503 | 5 | 2,370 | 6 | 2,845 | 6 | false | false | false | false | false | true |
3,391 | 25495_15 | /*
* Copyright (C) 2013 Koen Vlaswinkel
*
* 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 a... | koesie10/phphulp-android | Android/src/nl/phphulp/app/ArticleAdapter.java | 1,074 | // Hier maken we een 'Toast' | line_comment | nl | /*
* Copyright (C) 2013 Koen Vlaswinkel
*
* 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 a... | True | 834 | 8 | 1,015 | 9 | 958 | 8 | 1,015 | 9 | 1,177 | 10 | false | false | false | false | false | true |
154 | 174732_3 | package com.practice.miscellaneous;
import java.util.*;
/**Problem statement:
Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:
Each row must contain the digits 1-9 without repetition.
Each column must contain the digits 1-9 without repetition.
... | AveryCS/data-structures-and-algorithms | src/com/practice/miscellaneous/ValidSudoku.java | 1,847 | //get the end | line_comment | nl | package com.practice.miscellaneous;
import java.util.*;
/**Problem statement:
Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:
Each row must contain the digits 1-9 without repetition.
Each column must contain the digits 1-9 without repetition.
... | False | 1,392 | 4 | 1,511 | 4 | 1,703 | 4 | 1,511 | 4 | 1,833 | 4 | false | false | false | false | false | true |
476 | 52687_6 | package novi.nl.Les11BESpringbootmodelhuiswerk.models;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.util.List;
@Entity
@Table(name = "cimodules")
public class CIModule {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String ... | Ellen-van-Duikeren/BE-spring-boot-model-huiswerk-Les11 | src/main/java/novi/nl/Les11BESpringbootmodelhuiswerk/models/CIModule.java | 493 | // hoort bij OneToMany | line_comment | nl | package novi.nl.Les11BESpringbootmodelhuiswerk.models;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.util.List;
@Entity
@Table(name = "cimodules")
public class CIModule {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String ... | True | 366 | 6 | 426 | 6 | 422 | 5 | 426 | 6 | 501 | 7 | false | false | false | false | false | true |
3,891 | 121895_20 | /**
*
*/
package org.sharks.service.producer;
import java.util.Collection;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.sharks.service.dto.EntityDetails;
import org.sharks.service.dto.EntityDocument;
import org.sharks.service.dto.EntityEntry;
import org.... | openfigis/sharks | sharks-server/sharks-service/src/main/java/org/sharks/service/producer/EntryProducers.java | 1,761 | // // return "werkelijk niks"; | line_comment | nl | /**
*
*/
package org.sharks.service.producer;
import java.util.Collection;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.sharks.service.dto.EntityDetails;
import org.sharks.service.dto.EntityDocument;
import org.sharks.service.dto.EntityEntry;
import org.... | True | 1,326 | 10 | 1,580 | 10 | 1,561 | 8 | 1,580 | 10 | 1,904 | 9 | false | false | false | false | false | true |
1,039 | 146043_0 | public class Main {
public static void main(String args[])
{
Werknemer dieter = new Werknemer("Dieter", "Clauwaert", 1, 1000);
Werknemer jasper = new Werknemer("Jasper", "Cludts", 2, 2000);
Werknemer mats = new Werknemer("Mats", "Kennes", 3, 3000);
Werknemer jonah = new Werknemer("Jonah", "Boons", 4, 4000);
... | MTA-Digital-Broadcast-2/V-Clauwaert-Dieter-Boons-Jonah-Project-MHP | Dieter Clauwaert/Oefeningen Java/Labojava/blz31/Oef6/Main.java | 590 | /*
dieter.salarisVerhogen(10);
jasper.salarisVerhogen(10);
mats.salarisVerhogen(10);
jonah.salarisVerhogen(10);
System.out.println(dieter.voornaam + " verdient " + dieter.getsalaris());
System.out.println(jasper.voornaam + " verdient " + jasper.getsalaris());
System.out.println(mats.voornaam + " verd... | block_comment | nl | public class Main {
public static void main(String args[])
{
Werknemer dieter = new Werknemer("Dieter", "Clauwaert", 1, 1000);
Werknemer jasper = new Werknemer("Jasper", "Cludts", 2, 2000);
Werknemer mats = new Werknemer("Mats", "Kennes", 3, 3000);
Werknemer jonah = new Werknemer("Jonah", "Boons", 4, 4000);
... | False | 519 | 255 | 602 | 294 | 538 | 269 | 602 | 294 | 626 | 314 | true | true | true | true | true | false |
2,549 | 10808_8 | /* Copyright Alexander Drechsel 2012
* Copyright Niels Kamp 2012
* Copyright Kasper Vaessen 2012
* Copyright Niels Visser 2012
*
* This file is part of MusicTable.
*
* MusicTable is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... | diddle/UED | code/src/playback/ToneGrid.java | 1,665 | /**
* Tweede gedeelte van de registratie methode.
* Registreerd het aantal kolomen en initaliseerd de dubbele lijst van noten die allemaal inactief zijn.
* Het grid is na deze methode inactief.
* @param w aantal kolomen de ToneGrid heeft
*/ | block_comment | nl | /* Copyright Alexander Drechsel 2012
* Copyright Niels Kamp 2012
* Copyright Kasper Vaessen 2012
* Copyright Niels Visser 2012
*
* This file is part of MusicTable.
*
* MusicTable is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... | True | 1,321 | 76 | 1,465 | 85 | 1,528 | 68 | 1,465 | 85 | 1,672 | 82 | false | false | false | false | false | true |
551 | 70437_4 | package nl.han.ise.DAO;
import nl.han.ise.ConnectionFactory;
import redis.clients.jedis.Jedis;
import java.sql.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging... | GGWPs/Filmcheques_API | filmcheques_API/src/main/java/nl/han/ise/DAO/RapportageDAO.java | 1,014 | //Functie om een lijst van rapportages op te halen van SQL. | line_comment | nl | package nl.han.ise.DAO;
import nl.han.ise.ConnectionFactory;
import redis.clients.jedis.Jedis;
import java.sql.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging... | True | 741 | 18 | 855 | 18 | 852 | 16 | 855 | 18 | 993 | 18 | false | false | false | false | false | true |
3,017 | 14615_8 | package nl.atd.model;
import java.util.Calendar;
/**
* Auto data object
*
* @author ATD Developers
*
*/
public class Auto {
private String merk;
private String model;
private int bouwjaar;
private Calendar laatsteBeurt;
private String kenteken;
public Auto(String mk, String ml, int bj, Calendar lb) {
... | hu-team/atd-garagesysteem | src/nl/atd/model/Auto.java | 1,041 | /**
* Set Kenteken van auto
*
* @param Nieuw
* kenteken
*/ | block_comment | nl | package nl.atd.model;
import java.util.Calendar;
/**
* Auto data object
*
* @author ATD Developers
*
*/
public class Auto {
private String merk;
private String model;
private int bouwjaar;
private Calendar laatsteBeurt;
private String kenteken;
public Auto(String mk, String ml, int bj, Calendar lb) {
... | True | 829 | 29 | 965 | 26 | 935 | 30 | 965 | 26 | 1,091 | 30 | false | false | false | false | false | true |
1,087 | 103882_3 | package mazestormer.barcode.action;
import static com.google.common.base.Preconditions.checkNotNull;
import mazestormer.player.Player;
import mazestormer.robot.ControllableRobot;
import mazestormer.robot.Pilot;
import mazestormer.state.State;
import mazestormer.state.StateMachine;
import mazestormer.util.Future;
publ... | MattiasBuelens/MazeStormer | MazeStormer-PC/src/mazestormer/barcode/action/DriveOverSeesawAction.java | 832 | /**
* <ol>
* <li>rijd vooruit tot aan een bruin-zwart overgang (van de barcode aan de
* andere kant van de wip)</li>
* <li>informatie over wip aan het ontdekte doolhof toevoegen</li>
* <li>rijd vooruit tot 20 cm over een witte lijn (= eerste bruin-wit
* overgang)</li>
* <li>verwijder eventueel tegels uit ... | block_comment | nl | package mazestormer.barcode.action;
import static com.google.common.base.Preconditions.checkNotNull;
import mazestormer.player.Player;
import mazestormer.robot.ControllableRobot;
import mazestormer.robot.Pilot;
import mazestormer.state.State;
import mazestormer.state.StateMachine;
import mazestormer.util.Future;
publ... | False | 714 | 269 | 810 | 280 | 747 | 254 | 810 | 280 | 930 | 291 | true | true | true | true | true | false |
3,472 | 183748_10 | package com.hva.tsse.juniorleraar.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.hva.tsse.juniorleraar.R;
import com.hva.tsse.juniorleraar.model.Dialogue... | lifelynl/JuniorLeraar | app/src/main/java/com/hva/tsse/juniorleraar/adapter/DialogueCardAdapter.java | 1,388 | // case "Didactisch Bekwaam": | line_comment | nl | package com.hva.tsse.juniorleraar.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.hva.tsse.juniorleraar.R;
import com.hva.tsse.juniorleraar.model.Dialogue... | False | 984 | 11 | 1,186 | 12 | 1,221 | 11 | 1,186 | 12 | 1,363 | 11 | false | false | false | false | false | true |
382 | 38772_0 | package Facade;
public class TestBankAccount {
public static void main(String[] args) {
//nieuwe facade maken en bank account nr 123456 gebruiken met code 1234
BankAccountFacade accessingBank = new BankAccountFacade(123456, 1234);
accessingBank.withDrawCash(50.00);
accessingBank.withDrawCash(900.00);
... | DalderupMaurice/Facade_Pattern_Demo | src/Facade/TestBankAccount.java | 143 | //nieuwe facade maken en bank account nr 123456 gebruiken met code 1234 | line_comment | nl | package Facade;
public class TestBankAccount {
public static void main(String[] args) {
//nieuwe facade<SUF>
BankAccountFacade accessingBank = new BankAccountFacade(123456, 1234);
accessingBank.withDrawCash(50.00);
accessingBank.withDrawCash(900.00);
accessingBank.depositCash(200.00);
accessingB... | True | 143 | 26 | 149 | 29 | 150 | 24 | 149 | 29 | 187 | 27 | false | false | false | false | false | true |
4,471 | 109118_5 | package de._13ducks.spacebatz.server.gamelogic;
import de._13ducks.spacebatz.server.data.Client;
import de._13ducks.spacebatz.server.data.quests.Quest;
import de._13ducks.spacebatz.shared.network.messages.STC.STC_NEW_QUEST;
import de._13ducks.spacebatz.shared.network.messages.STC.STC_QUEST_RESULT;
import java.util.Arr... | tfg13/spacebatz | src/de/_13ducks/spacebatz/server/gamelogic/QuestManager.java | 1,107 | // An Client senden | line_comment | nl | package de._13ducks.spacebatz.server.gamelogic;
import de._13ducks.spacebatz.server.data.Client;
import de._13ducks.spacebatz.server.data.quests.Quest;
import de._13ducks.spacebatz.shared.network.messages.STC.STC_NEW_QUEST;
import de._13ducks.spacebatz.shared.network.messages.STC.STC_QUEST_RESULT;
import java.util.Arr... | False | 837 | 5 | 952 | 5 | 913 | 4 | 952 | 5 | 1,092 | 5 | false | false | false | false | false | true |
4,655 | 127401_1 | package com.mybaggage.controllers;
import com.jfoenix.controls.JFXButton;
import com.mybaggage.Utilities;
import java.io.IOException;
import java.net.URL;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ResourceBundle;
import java.util.logging.Level;
import ja... | vriesr032/MyBaggage | src/main/java/com/mybaggage/controllers/AdminController.java | 1,963 | //Zet waarden leeg en maakt nieuwe objecten via classes. | line_comment | nl | package com.mybaggage.controllers;
import com.jfoenix.controls.JFXButton;
import com.mybaggage.Utilities;
import java.io.IOException;
import java.net.URL;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ResourceBundle;
import java.util.logging.Level;
import ja... | True | 1,377 | 16 | 1,596 | 18 | 1,637 | 14 | 1,596 | 18 | 1,871 | 16 | false | false | false | false | false | true |
482 | 102998_82 | /******************************************************************************
* Product: ADempiere ERP & CRM Smart Business Solution *
* Copyright (C) 2006-2017 ADempiere Foundation, All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
... | EmerisScala/adempiere | base/src/org/compiere/model/I_PA_DashboardContent.java | 3,029 | /** Get onevent */ | block_comment | nl | /******************************************************************************
* Product: ADempiere ERP & CRM Smart Business Solution *
* Copyright (C) 2006-2017 ADempiere Foundation, All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
... | False | 2,230 | 6 | 2,543 | 6 | 2,740 | 7 | 2,543 | 6 | 3,127 | 7 | false | false | false | false | false | true |
4,250 | 117578_8 | package com.thealgorithms.searches;
import com.thealgorithms.devutils.searches.SearchAlgorithm;
import java.util.Arrays;
import java.util.Random;
import java.util.stream.Stream;
/**
* A ternary search algorithm is a technique in computer science for finding the
* minimum or maximum of a unimodal function The algori... | satishppawar/Java | src/main/java/com/thealgorithms/searches/TernarySearch.java | 1,008 | // just generate data | line_comment | nl | package com.thealgorithms.searches;
import com.thealgorithms.devutils.searches.SearchAlgorithm;
import java.util.Arrays;
import java.util.Random;
import java.util.stream.Stream;
/**
* A ternary search algorithm is a technique in computer science for finding the
* minimum or maximum of a unimodal function The algori... | False | 852 | 4 | 933 | 4 | 963 | 4 | 933 | 4 | 1,024 | 4 | false | false | false | false | false | true |
2,185 | 121894_5 | public class Tester {
public Tester() {
// Dit compileert niet; we kunnen er niet van uitgaan dat het Object dat we
// aanmaken werkelijk een String is
// compile-time: linkerkant van het is-gelijkteken
// run-time: rechterkant van het is-gelijkteken
Object demo1 =... | bart314/ITANN | StaticAndDynamicDemo/Tester.java | 268 | // We kunnen de compiler er wel van overtuigen dat we wel degelijk met een | line_comment | nl | public class Tester {
public Tester() {
// Dit compileert niet; we kunnen er niet van uitgaan dat het Object dat we
// aanmaken werkelijk een String is
// compile-time: linkerkant van het is-gelijkteken
// run-time: rechterkant van het is-gelijkteken
Object demo1 =... | True | 226 | 19 | 241 | 22 | 238 | 18 | 241 | 22 | 265 | 19 | false | false | false | false | false | true |
3,778 | 165188_6 | package boeren.com.appsuline.app.bmedical.appsuline.fragments;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.app.Fragment;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.ActionBar;
import andro... | navyon/suline | app/src/main/java/boeren/com/appsuline/app/bmedical/appsuline/fragments/EventProductBestellingEditFragment.java | 3,205 | //Log.e("appsuline del", BaseController.getInstance().getDbManager(getActivity()).getEventsTable().delete(mEvent) + ""); | line_comment | nl | package boeren.com.appsuline.app.bmedical.appsuline.fragments;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.app.Fragment;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.ActionBar;
import andro... | False | 2,188 | 26 | 2,634 | 31 | 2,747 | 29 | 2,634 | 31 | 3,052 | 34 | false | false | false | false | false | true |
2,024 | 79963_3 | import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
public class Solution {
public static List<List<String>> groupStrings(String[] strings){
List<List<String>> allGroups=new ArrayList<List<String>>();
//Use hash string
HashMap<St... | allenwhc/Leetcode | Java/(P)GroupShiftedStrings/src/Solution.java | 861 | //String[] strings={"fpbnsbrkbcyzdmmmoisaa", "cpjtwqcdwbldwwrryuclcngw", "a", "fnuqwejouqzrif", "js", "qcpr", "zghmdiaqmfelr", "iedda", "l", "dgwlvcyubde", "lpt", "qzq", "zkddvitlk", "xbogegswmad", "mkndeyrh", "llofdjckor", "lebzshcb", "firomjjlidqpsdeqyn", "dclpiqbypjpfafukqmjnjg", "lbpabjpcmkyivbtgdwhzlxa", "wmalmuan... | line_comment | nl | import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
public class Solution {
public static List<List<String>> groupStrings(String[] strings){
List<List<String>> allGroups=new ArrayList<List<String>>();
//Use hash string
HashMap<St... | False | 676 | 319 | 793 | 316 | 784 | 300 | 793 | 316 | 896 | 343 | true | true | true | true | true | false |
2,008 | 210934_0 | package mathunited;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletContext;
import javax.xml.transform.Source;
import javax.xml.transform.Templates;
import javax.xml.transform.Transformer;
import ... | algebrakit/mathunited | GAE/Mathunited/src/mathunited/XSLTbean.java | 1,586 | /**
* @author martijn
*/ | block_comment | nl | package mathunited;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletContext;
import javax.xml.transform.Source;
import javax.xml.transform.Templates;
import javax.xml.transform.Transformer;
import ... | False | 1,141 | 8 | 1,317 | 10 | 1,430 | 9 | 1,317 | 10 | 1,570 | 9 | false | false | false | false | false | true |
918 | 160538_1 | package com.PPinera.Torrent_Movies.Activities;
import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout;
import android.view.MenuItem;
import android.view.View;
import android.widg... | KhalidElSayed/Torrent-Movies | src/com/PPinera/Torrent_Movies/Activities/MainActivity.java | 1,127 | /* "open drawer" description */ | block_comment | nl | package com.PPinera.Torrent_Movies.Activities;
import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout;
import android.view.MenuItem;
import android.view.View;
import android.widg... | False | 731 | 7 | 893 | 7 | 939 | 7 | 893 | 7 | 1,082 | 8 | false | false | false | false | false | true |
2,982 | 43439_2 | package techiteasy1121.config;
@Configuration
@EnableWebSecurity
public class SpringSecurityConfig {
/*TODO inject customUserDetailService en jwtRequestFilter*/
// PasswordEncoderBean. Deze kun je overal in je applicatie injecteren waar nodig.
// Je kunt dit ook in een aparte configuratie klasse zetten... | hogeschoolnovi/backend-spring-boot-tech-it-easy-security | src/techiteasy1121/config/SpringSecurityConfig.java | 640 | // Je kunt dit ook in een aparte configuratie klasse zetten. | line_comment | nl | package techiteasy1121.config;
@Configuration
@EnableWebSecurity
public class SpringSecurityConfig {
/*TODO inject customUserDetailService en jwtRequestFilter*/
// PasswordEncoderBean. Deze kun je overal in je applicatie injecteren waar nodig.
// Je kunt<SUF>
@Bean
public PasswordEncoder passwo... | True | 485 | 16 | 527 | 18 | 520 | 13 | 527 | 18 | 628 | 17 | false | false | false | false | false | true |
473 | 1684_13 | /**
* @author Vera Wise
* @author Elias De Hondt
* @since 08/12/2022
*/
// =====================================================================================================================
/*
* Canvas KdG
* @see https://canvas.kdg.be/courses/37158/pages/afspraken-en-deadlines?module_item_id=663060
*
* Githu... | EliasDeHondt/Memo-Race | TODO.java | 1,134 | // (bv. donkerder) krijgen zodat duidelijk is dat de pion deze vakken mag overslaan. | line_comment | nl | /**
* @author Vera Wise
* @author Elias De Hondt
* @since 08/12/2022
*/
// =====================================================================================================================
/*
* Canvas KdG
* @see https://canvas.kdg.be/courses/37158/pages/afspraken-en-deadlines?module_item_id=663060
*
* Githu... | True | 1,019 | 30 | 1,166 | 32 | 948 | 23 | 1,166 | 32 | 1,152 | 34 | false | false | false | false | false | true |
4,152 | 43972_0 | package prog2.util;
import java.util.Random;
public class Noise {
/* Perlin Noise generator genomen en aangepast van https://stackoverflow.com/questions/5531019/perlin-noise-in-java door jt78
* deze wordt gebruikt voor het genereren van mooiere patronen voor de achtergrondtegels */
private final Random r... | renevds/polis | src/prog2/util/Noise.java | 828 | /* Perlin Noise generator genomen en aangepast van https://stackoverflow.com/questions/5531019/perlin-noise-in-java door jt78
* deze wordt gebruikt voor het genereren van mooiere patronen voor de achtergrondtegels */ | block_comment | nl | package prog2.util;
import java.util.Random;
public class Noise {
/* Perlin Noise generator<SUF>*/
private final Random rand_;
private final float roughness_;
private final float[][] grid;
public Noise(Random rand, float roughness, int width, int height) {
roughness_ = roughness / widt... | False | 701 | 60 | 730 | 68 | 732 | 59 | 730 | 68 | 829 | 70 | false | false | false | false | false | true |
89 | 104020_5 | package des;
import java.util.BitSet;
/**
* Author: allight
*/
public class Des {
public static final boolean LITTLE_ENDIAN = true;
public static final boolean BIG_ENDIAN = false;
private static final char HIGH_PART_CHAR_MASK = 0xFF00;
private static final char LOW_PART_CHAR_MASK = 0x00FF;
prote... | Allight7/ru.ifmo.cryptography.des | src/main/java/des/Des.java | 2,310 | // printHex("L" + j, t.getLeft().get(), true, 32); | line_comment | nl | package des;
import java.util.BitSet;
/**
* Author: allight
*/
public class Des {
public static final boolean LITTLE_ENDIAN = true;
public static final boolean BIG_ENDIAN = false;
private static final char HIGH_PART_CHAR_MASK = 0xFF00;
private static final char LOW_PART_CHAR_MASK = 0x00FF;
prote... | False | 1,894 | 21 | 2,120 | 23 | 2,180 | 22 | 2,120 | 23 | 2,389 | 24 | false | false | false | false | false | true |
850 | 36825_1 | package app;
import java.util.Scanner;
import java.io.FileWriter;
import java.io.IOException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class App {
static ChatClient client;
static boolean shouldLog = false;
static String[] kamers = {"Zolder", "Woonkamer", "WC"... | JohnGorter/JavaChatDemo | src/app/App.java | 1,250 | // zolang de gebruiker iets wil, doen we dat | line_comment | nl | package app;
import java.util.Scanner;
import java.io.FileWriter;
import java.io.IOException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class App {
static ChatClient client;
static boolean shouldLog = false;
static String[] kamers = {"Zolder", "Woonkamer", "WC"... | True | 951 | 12 | 1,075 | 15 | 1,139 | 13 | 1,075 | 15 | 1,261 | 15 | false | false | false | false | false | true |
297 | 158361_1 | package me.goowen.kitpvp.modules.kits;
import me.goowen.kitpvp.Kitpvp;
import me.goowen.kitpvp.modules.config.ConfigModule;
import me.goowen.kitpvp.modules.utilities.ItemBuilder;
import org.bukkit.ChatColor;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.inv... | Caaarlowsz/Kitpvp-21 | src/main/java/me/goowen/kitpvp/modules/kits/KitsManager.java | 1,043 | /**
* Haalt de kit op uit de config en zet hem om in een inventory.
* Geeft de zojuist opgehaalde kit aan de speler.
* @param player de speler die de kit moet krijgen.
* @param name de naam van de kit die de speler moet krijgen.
*/ | block_comment | nl | package me.goowen.kitpvp.modules.kits;
import me.goowen.kitpvp.Kitpvp;
import me.goowen.kitpvp.modules.config.ConfigModule;
import me.goowen.kitpvp.modules.utilities.ItemBuilder;
import org.bukkit.ChatColor;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.inv... | True | 806 | 74 | 931 | 79 | 918 | 74 | 931 | 79 | 1,095 | 89 | false | false | false | false | false | true |
2,644 | 55340_6 | //200 gram ongezouten roomboter
//200 gram witte bastard suiker
//400 gram zelfrijzend bakmeel
//1 stuk(s) ei
//8 gram vanillesuiker
//1 snuf zout
//1.5 kilo zoetzure appels
//75 gram kristal suiker
//3 theelepels kaneel
//15 gram paneermeel
public class applePieRecipe {
Ingredients boter = new Ingredients(200,"... | elinefwd/backend1 | src/applePieRecipe.java | 1,244 | //1.5 kilo zoetzure appels | line_comment | nl | //200 gram ongezouten roomboter
//200 gram witte bastard suiker
//400 gram zelfrijzend bakmeel
//1 stuk(s) ei
//8 gram vanillesuiker
//1 snuf zout
//1.5 kilo<SUF>
//75 gram kristal suiker
//3 theelepels kaneel
//15 gram paneermeel
public class applePieRecipe {
Ingredients boter = new Ingredients(200,"gram","onge... | False | 1,082 | 11 | 1,213 | 11 | 1,096 | 9 | 1,213 | 11 | 1,294 | 11 | false | false | false | false | false | true |
527 | 173925_2 | package com.vogella.android.multitouch;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PointF;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.MotionEvent;
import android.view.V... | FinHead/codeexamples-android | com.vogella.android.multitouch/src/com/vogella/android/multitouch/MultitouchView.java | 953 | // get pointer ID | line_comment | nl | package com.vogella.android.multitouch;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PointF;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.MotionEvent;
import android.view.V... | False | 671 | 4 | 843 | 4 | 812 | 4 | 843 | 4 | 1,021 | 4 | false | false | false | false | false | true |
442 | 68696_2 | package nl.novi.uitleg.week2.debuggen;
import java.io.IOException;
public class Excepties {
/**
* Java heeft verschillende ingebouwde excepties, zoals:
*
* 1. ArithmeticException
* 2. ArrayIndexOutOfBoundsException
* 3. FileNotFoundException
* 4. IOException
* 5. NullPointerEx... | EAM26/Lijsten-les3 | src/nl/novi/uitleg/week2/debuggen/Excepties.java | 518 | //int cijfer = 12 / 0; | line_comment | nl | package nl.novi.uitleg.week2.debuggen;
import java.io.IOException;
public class Excepties {
/**
* Java heeft verschillende ingebouwde excepties, zoals:
*
* 1. ArithmeticException
* 2. ArrayIndexOutOfBoundsException
* 3. FileNotFoundException
* 4. IOException
* 5. NullPointerEx... | False | 427 | 13 | 464 | 13 | 465 | 12 | 464 | 13 | 543 | 13 | false | false | false | false | false | true |
72 | 109505_11 | package org.adaway.ui.hosts;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclervi... | AdAway/AdAway | app/src/main/java/org/adaway/ui/hosts/HostsSourcesAdapter.java | 2,301 | // Get delay in hours | line_comment | nl | package org.adaway.ui.hosts;
import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclervi... | False | 1,648 | 5 | 1,876 | 5 | 2,014 | 5 | 1,876 | 5 | 2,218 | 5 | false | false | false | false | false | true |
2,754 | 57593_2 | package com.mycompany.minorigv.gffparser;
import com.mycompany.minorigv.blast.BlastORF;
import com.mycompany.minorigv.blast.ColorORFs;
import com.mycompany.minorigv.sequence.FindORF;
import java.awt.*;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Deze class maakt objecten voor chromosomen/contigs. Oo... | gabeplz/intership-genome-viewer-backup | MinorIGV/src/main/java/com/mycompany/minorigv/gffparser/Chromosome.java | 2,153 | /**
* De constructor.
* @param id Het id van het chromosoom/contig.
* @param features Features zijn het CDS, Exon, Gene, mRNA en Region.
*/ | block_comment | nl | package com.mycompany.minorigv.gffparser;
import com.mycompany.minorigv.blast.BlastORF;
import com.mycompany.minorigv.blast.ColorORFs;
import com.mycompany.minorigv.sequence.FindORF;
import java.awt.*;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Deze class maakt objecten voor chromosomen/contigs. Oo... | True | 1,780 | 46 | 1,913 | 47 | 1,942 | 49 | 1,913 | 47 | 2,174 | 53 | false | false | false | false | false | true |
1,138 | 60692_0 | package nl.allergieradar;
/**
* Meer informatie over views:
* http://www.baeldung.com/jackson-json-view-annotation
*
* @author Peter van Vliet <peter@allergieradar.nl>
* @since 1.0
*/
public class View
{
public static class Internal extends Private {}
public static class Private extends Protected ... | MitchvanWijngaarden/Allergieradarserver | src/main/java/nl/allergieradar/View.java | 128 | /**
* Meer informatie over views:
* http://www.baeldung.com/jackson-json-view-annotation
*
* @author Peter van Vliet <peter@allergieradar.nl>
* @since 1.0
*/ | block_comment | nl | package nl.allergieradar;
/**
* Meer informatie over<SUF>*/
public class View
{
public static class Internal extends Private {}
public static class Private extends Protected {}
public static class Protected extends Public {}
public static class Public {}
}
| False | 99 | 52 | 113 | 62 | 117 | 58 | 113 | 62 | 131 | 65 | false | false | false | false | false | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.