Unnamed: 0
float64
0
859
file_id
stringlengths
5
9
repo
stringlengths
8
57
token_length
int64
60
7.97k
path
stringlengths
8
101
content
stringlengths
168
23.1k
original_comment
stringlengths
14
1.71k
prompt
stringlengths
122
23.1k
Included
stringclasses
2 values
file-tokens-Qwen/Qwen2-7B
float64
51
3.23k
comment-tokens-Qwen/Qwen2-7B
float64
6
607
file-tokens-bigcode/starcoder2-7b
float64
58
3.62k
comment-tokens-bigcode/starcoder2-7b
float64
6
724
file-tokens-google/codegemma-7b
float64
52
3.55k
comment-tokens-google/codegemma-7b
float64
4
537
file-tokens-ibm-granite/granite-8b-code-base
float64
58
3.62k
comment-tokens-ibm-granite/granite-8b-code-base
float64
6
724
file-tokens-meta-llama/CodeLlama-7b-hf
float64
59
4.12k
comment-tokens-meta-llama/CodeLlama-7b-hf
float64
6
671
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
comment_type
stringclasses
2 values
detected_lang
stringclasses
1 value
null
10547_17
zdoonio/SecureClient
1,452
src/com/clients/ClientPD.java
package com.clients; import com.security.IvGenerator; import com.security.KeyAgreementEntity; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.security.NoSuchAlgorithmException; import java.security.spec.InvalidKeySpecException; import javax.crypto.spec.IvParameterSpec; /** * * @author ...
// Alicja enkryptuje wiadomosc.
package com.clients; import com.security.IvGenerator; import com.security.KeyAgreementEntity; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.security.NoSuchAlgorithmException; import java.security.spec.InvalidKeySpecException; import javax.crypto.spec.IvParameterSpec; /** * * @author ...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5286_11
rsp/bak16
535
bak/bakp/cw08/Zad01.java
public class Zad01 { static int fib(int n) { return n <= 2 ? n : fib(n-1) + fib(n-2); } // taki zapis: // return WARUNEK ? A : B; // oznacza to samo co: // if (WARUNEK) // return A; // else // return B; // zamiast tego można napisać: ...
// "%5d" oznacza liczbę dziesiętną (d) na szerokość 5 znaków
public class Zad01 { static int fib(int n) { return n <= 2 ? n : fib(n-1) + fib(n-2); } // taki zapis: // return WARUNEK ? A : B; // oznacza to samo co: // if (WARUNEK) // return A; // else // return B; // zamiast tego można napisać: ...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
8500_1
TomaszKorecki/InvestorAssistant
115
Investor's assistant/src/investor/network/DataType.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package investor.network; /** * * Mamy 4 typy danych: * Indeksy giełdowe, spółki, waluty oraz towary */ public enum DataType { ...
/** * * Mamy 4 typy danych: * Indeksy giełdowe, spółki, waluty oraz towary */
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package investor.network; /** * * Mamy 4 typy <SUF>*/ public enum DataType { WSK, SPOL, FOREX, TWR }
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
3837_14
slawomirmarczynski/java
2,094
minilife/src/minilife/Options.java
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
// DEFAULT_WIDTH i DEFAULT_HEIGHT są wyłącznie po to aby kod źródłowy
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
6281_8
bercik/BIO
4,074
impl/bioc/src/pl/rcebula/preprocessor/Preprocessor.java
/* * Copyright (C) 2016 robert * * 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 3 of the License, or * (at your option) any later version. * * This program is distributed...
// analizujemy pod kątem <fs i <fe
/* * Copyright (C) 2016 robert * * 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 3 of the License, or * (at your option) any later version. * * This program is distributed...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
7278_6
TreeCmp/TreeCmp
1,058
src/main/java/treecmp/spr/UsprHeuristicBaseMetric.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package treecmp.spr; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import pal.io.InputSource; import pal.tree.ReadTree; import pal.tree.SimpleTree; import pal.tree.TreePar...
// zapisuję do stringu i odczytuje bo inaczej powstają błędy
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package treecmp.spr; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import pal.io.InputSource; import pal.tree.ReadTree; import pal.tree.SimpleTree; import pal.tree.TreePar...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
3738_20
sokolowskip/rso
3,252
RSO_projekt/src/messages/MessageParser.java
package messages; import java.util.Arrays; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import bson.BSONDocument; import bson.BSON; import java.lang.String; public class MessageParser { public enum MessageType { OP_REPLY, OP_MSG, OP_UPDATE, OP_INSERT, OP_QUERY, OP_GET_...
//nie wiem co z tym zerem
package messages; import java.util.Arrays; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import bson.BSONDocument; import bson.BSON; import java.lang.String; public class MessageParser { public enum MessageType { OP_REPLY, OP_MSG, OP_UPDATE, OP_INSERT, OP_QUERY, OP_GET_...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
3992_23
slawomirmarczynski/java
1,477
flowcontrol/src/example/flowcontrol/LoopsDemo.java
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
// Jest instrukcja do-while, ale przydaje się rzadziej niż proste while.
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5281_4
Andruszkiewicz/Orion
251
Question.java
package Orion.Model; /** * klasa Question której obiektami są pytania do quizu wiedzy * @author karolinaandruszkiewicz */ public class Question{ /**treść pytania*/ public String question; /**tablica typu String zawierająca wypisywane odpowiedzi*/ public String[] answers; /...
/** * konstruktor bezargumentowy pytania */
package Orion.Model; /** * klasa Question której obiektami są pytania do quizu wiedzy * @author karolinaandruszkiewicz */ public class Question{ /**treść pytania*/ public String question; /**tablica typu String zawierająca wypisywane odpowiedzi*/ public String[] answers; /...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
9402_40
KajtekWisniewski/java-labs
1,698
wyklad/NotatkiW3.java
//zakres 3 pierwsze wyklady //12.04 test na wykladzie 10:10 //pytanie o dzialania na shortach i jaki typ danych zwroci wynik czy cos public class NotatkiW3 { } //operatory //moga byc pojedyncze, podwojne lub potrojne //(type) -> operator rzutowania //instance of //casting primitve values //jesli mamy zmienna wezsze...
//mutowalne, działamy cały czas na jednym obiekcie
//zakres 3 pierwsze wyklady //12.04 test na wykladzie 10:10 //pytanie o dzialania na shortach i jaki typ danych zwroci wynik czy cos public class NotatkiW3 { } //operatory //moga byc pojedyncze, podwojne lub potrojne //(type) -> operator rzutowania //instance of //casting primitve values //jesli mamy zmienna wezsze...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
10599_6
hankav21/Java-podstawy
747
26 Dziedziczenie/polimorfizm/Zoo.java
package polimorfizm; public class Zoo { public static void main(String[] args) { Zwierze z = new Zwierze("Surykatka"); Zwierze p = new Pies("Fafel"); Zwierze k = new Kot("Puszek"); z.dajGlos(); p.dajGlos(); k.dajGlos(); //polimorfizm - pozwala definiowac re...
//dzieki polimorfizmowi mozemy przechowywac na tablicy rozne zwierzeta
package polimorfizm; public class Zoo { public static void main(String[] args) { Zwierze z = new Zwierze("Surykatka"); Zwierze p = new Pies("Fafel"); Zwierze k = new Kot("Puszek"); z.dajGlos(); p.dajGlos(); k.dajGlos(); //polimorfizm - pozwala definiowac re...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
6843_34
mstruzek/geometricsolver
5,427
src/pl/struzek/msketch/Sketch2D.java
package pl.struzek.msketch; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import java.util.TreeMap; import javax.swing.JPanel; import pl.struzek.msketch.matrix.BindMatrix; import pl.struzek.msketc...
// A na koniec relaksacja sprezyn
package pl.struzek.msketch; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import java.util.TreeMap; import javax.swing.JPanel; import pl.struzek.msketch.matrix.BindMatrix; import pl.struzek.msketc...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
8352_22
northpl93/NorthPlatform
5,684
Sources/AntyCheat/src/main/java/pl/north93/northplatform/antycheat/cheat/movement/JumpController.java
package pl.north93.northplatform.antycheat.cheat.movement; import org.bukkit.entity.Player; import org.bukkit.potion.PotionEffect; import org.bukkit.potion.PotionEffectType; import org.bukkit.util.Vector; import pl.north93.northplatform.antycheat.analysis.FalsePositiveProbability; import pl.north93.northplatform.ant...
// Gracz podczas lotu w górę zaczął opadać, to oznacza że mógł osiągnąć maksymalną wysokość skoku.
package pl.north93.northplatform.antycheat.cheat.movement; import org.bukkit.entity.Player; import org.bukkit.potion.PotionEffect; import org.bukkit.potion.PotionEffectType; import org.bukkit.util.Vector; import pl.north93.northplatform.antycheat.analysis.FalsePositiveProbability; import pl.north93.northplatform.ant...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5736_2
bambuchaAdm/bubble-sort
931
src/Sort.java
/** * */ import java.util.Random; /** * @author adam * */ public class Sort { private int [] tab; private Random rand; public Sort(int [] tab) { this.tab=tab; this.rand = new Random(); } /** * Zamienia dwa elementy tablicy */ private void swap(int a,int b) { int temp = tab[a]; tab[a] =...
/** * Sortuje tablice uzywajac bubble sorta, czyli porownoje kolejne elementy, az do momentu, kiedy nie zostanie * dokonana zadna zmiana przy przejsiu tablicy. */
/** * */ import java.util.Random; /** * @author adam * */ public class Sort { private int [] tab; private Random rand; public Sort(int [] tab) { this.tab=tab; this.rand = new Random(); } /** * Zamienia dwa elementy tablicy */ private void swap(int a,int b) { int temp = tab[a]; tab[a] =...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
10255_6
infoshareacademy/java8-exercises
378
src/main/java/_4_streams/_8_final/FinalStreamExercise.java
package _4_streams._8_final; import java.util.List; public class FinalStreamExercise { // TODO: Odpowiedz na następujące pytania: // * Znajdź wszystkie transakcje z 2011 roku i posortuje je wg. ich wartości (od najmniejszych do największych) // * W jakich miastach pracują handlowcy? Nie wyś...
// * Jaka była największa a jaka najmniejsza transakcja?
package _4_streams._8_final; import java.util.List; public class FinalStreamExercise { // TODO: Odpowiedz na następujące pytania: // * Znajdź wszystkie transakcje z 2011 roku i posortuje je wg. ich wartości (od najmniejszych do największych) // * W jakich miastach pracują handlowcy? Nie wyś...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
7300_14
m87/Savanna
5,176
sawanna/Snake.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sawanna; import java.util.HashMap; import java.util.Random; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Bartosz Radliński */ /** * Klasa węża */ class Snake extends Ani...
/** * Inicjalizacja i ustalenie terytorium */
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sawanna; import java.util.HashMap; import java.util.Random; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Bartosz Radliński */ /** * Klasa węża */ class Snake extends Ani...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
3992_16
slawomirmarczynski/java
1,477
flowcontrol/src/example/flowcontrol/LoopsDemo.java
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
// Można więc przerwać kilka zagnieżdżonych pętli na raz,
package example.flowcontrol; import java.util.List; /** * Zastosowanie instrukcji tworzących pętle w języku Java. * <p> * CC-BY-NC-ND 2023 Sławomir Marczyński */ public class LoopsDemo { public static void main(String[] args) { // Pętla for jest trywialna, taka sama jak w C++ i C#. // Oczywiś...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
6242_1
sewerynstawiarski/Learning-Programming-Academy
381
KursYouTube/ColorChooserDemo.java
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class ColorChooserDemo extends JFrame implements ActionListener { JButton button; JLabel label; ColorChooserDemo() { button = new JButton("CLick here to c...
//ustawiasz by ten wybór był kolorem tekstu w label
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class ColorChooserDemo extends JFrame implements ActionListener { JButton button; JLabel label; ColorChooserDemo() { button = new JButton("CLick here to c...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
6970_14
Rzeju/ZDjava132-java-podstawy-programowanie
624
src/zad10/Main.java
package zad10; public class Main { public static void main(String[] args) { //liczba, której cyfyr będziemy sumować int number = 12345; //zmienna pokmocnicza do przechowywania wyniku int result = 0; //kolejna cyfra liczby 'number' double nextDigit; //zmien...
//utworzenie z obiektu typu String tablicy (każda cyfra będzie oddzielnym elementem tej tablicy)
package zad10; public class Main { public static void main(String[] args) { //liczba, której cyfyr będziemy sumować int number = 12345; //zmienna pokmocnicza do przechowywania wyniku int result = 0; //kolejna cyfra liczby 'number' double nextDigit; //zmien...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
3949_13
slawomirmarczynski/java
1,350
swingplot/src/swingplot/DataSet.java
/* * The MIT License * * Copyright (c) 2023 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
/** * Zwraca kod, zapisany w łańcuch znaków, określający w jaki sposób należy * wykreślić linię. * * @return kod, np. "r--o" oznacza czerwoną linię kreskowaną z zaznaczonymi * jako okręgi punktami; kod ten jest zbliżony do tego którego używa * się w programie Matlab i w bib...
/* * The MIT License * * Copyright (c) 2023 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
6281_36
bercik/BIO
4,074
impl/bioc/src/pl/rcebula/preprocessor/Preprocessor.java
/* * Copyright (C) 2016 robert * * 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 3 of the License, or * (at your option) any later version. * * This program is distributed...
// na koniec dodajemy linię <fe
/* * Copyright (C) 2016 robert * * 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 3 of the License, or * (at your option) any later version. * * This program is distributed...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5183_29
bruno-kus/Itewriter_2-0
1,418
src/main/java/com/example/itewriter/area/root/ControlBarFactory.java
//package com.example.itewriter.area.root; import com.example.itewriter.area.tightArea.AreaController; import com.example.itewriter.area.tightArea.MyArea; import javafx.scene.Node; import javafx.scene.control.Button; import javafx.scene.control.Spinner; import javafx.scene.control.SpinnerValueFactory; import javafx.sc...
// i bardzo dobrze!
//package com.example.itewriter.area.root; import com.example.itewriter.area.tightArea.AreaController; import com.example.itewriter.area.tightArea.MyArea; import javafx.scene.Node; import javafx.scene.control.Button; import javafx.scene.control.Spinner; import javafx.scene.control.SpinnerValueFactory; import javafx.sc...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
3951_26
slawomirmarczynski/java
2,769
sensor/src/sensor/sensors/Sensor.java
/* * The MIT License * * Copyright 2023 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
// Dlatego właśnie jest protected. Pech w tym że protected daje dostęp
/* * The MIT License * * Copyright 2023 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5286_2
rsp/bak16
535
bak/bakp/cw08/Zad01.java
public class Zad01 { static int fib(int n) { return n <= 2 ? n : fib(n-1) + fib(n-2); } // taki zapis: // return WARUNEK ? A : B; // oznacza to samo co: // if (WARUNEK) // return A; // else // return B; // zamiast tego można napisać: ...
// zamiast tego można napisać:
public class Zad01 { static int fib(int n) { return n <= 2 ? n : fib(n-1) + fib(n-2); } // taki zapis: // return WARUNEK ? A : B; // oznacza to samo co: // if (WARUNEK) // return A; // else // return B; // zamiast tego <SUF> // stati...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
8292_7
slawomirmarczynski/java
2,614
calculator/src/calculator/Expression.java
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
// W rzeczywistości jest to udogodnienie - bo jeżeli w ten sposób
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
10259_32
PrzemekBarczyk/swing-kalkulator
6,663
src/CalculatorModel.java
import java.awt.Color; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import javax.swing.JButton; public class CalculatorModel { private String operationLabelText; // zawartość JLabel z zapisem przeprowadzonych operacji private String resultLabelText; // zawartość JLabel z aktualnie wp...
// nie trzeba ustawiać flag, bo zostały już ustawione dla poprzedniego znaku
import java.awt.Color; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import javax.swing.JButton; public class CalculatorModel { private String operationLabelText; // zawartość JLabel z zapisem przeprowadzonych operacji private String resultLabelText; // zawartość JLabel z aktualnie wp...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
3732_12
hdpower/zpi
1,294
src/casetool/usecase/LinkPoint.java
package casetool.usecase; import casetool.CaseDiagram; import casetool.Diagram; import casetool.Element; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Rectangle; import java.awt.Stroke; import java.util.Vector; import ja...
// usuń linie i drugi punkt
package casetool.usecase; import casetool.CaseDiagram; import casetool.Diagram; import casetool.Element; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Rectangle; import java.awt.Stroke; import java.util.Vector; import ja...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5772_1
sewerynstawiarski/Learning-Programming-Academy
716
AnimationPanel.java
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class AnimationPanel extends JPanel implements ActionListener { final int PANEL_WIDTH = 440; final int PANEL_HEIGHT = 440; Image enemy; Image background; ...
// maluje tło, wcześniej zadeklarowałeś kolor
package com.HighLand; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class AnimationPanel extends JPanel implements ActionListener { final int PANEL_WIDTH = 440; final int PANEL_HEIGHT = 440; Image enemy; Image background; ...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
6557_100
slawomirmarczynski/java
4,001
calculator/src/calculator/Calculator.java
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
// używanie obiektów było maksymalnie łatwe.
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
3994_113
hubertgabrys/ocr
7,969
src/obrazy/Extraction.java
package obrazy; //<editor-fold defaultstate="collapsed" desc="IMPORT"> import java.awt.image.BufferedImage; import java.util.Arrays; import java.util.Deque; import java.util.LinkedList; //</editor-fold> /** * * @author Hubert */ public class Extraction { //<editor-fold defaultstate="collapsed" desc="By Squares"...
/* * Przeszukujemy dalej otoczenie danego piksela. */
package obrazy; //<editor-fold defaultstate="collapsed" desc="IMPORT"> import java.awt.image.BufferedImage; import java.util.Arrays; import java.util.Deque; import java.util.LinkedList; //</editor-fold> /** * * @author Hubert */ public class Extraction { //<editor-fold defaultstate="collapsed" desc="By Squares"...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
9043_29
hyperion4040/Java-Course-2017
4,207
src/edu/wsb/trzecieSpotkanie/KolekcjeOrazMetody.java
package edu.wsb.trzecieSpotkanie; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; /** * Created by hyperion on 14.06.17. */ public class KolekcjeOrazMetody { /* Do tej pory wszystkie nasze deklaracje zmiennych umieszczaliśmy wewnątrz głównej metody main, która jed...
/* Do tej pory korzystaliśmy z predefiniowanych typów zmiennych jak zmienne proste int lub referencyjne String. Nie zapominając o dużych braciach zmiennych prostych jakie używaliśmy w kolekcjach jak Integer (referencyjna odmiana zmiennej prostej int). W przypadku np. stud...
package edu.wsb.trzecieSpotkanie; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; /** * Created by hyperion on 14.06.17. */ public class KolekcjeOrazMetody { /* Do tej pory wszystkie nasze deklaracje zmiennych umieszczaliśmy wewnątrz głównej metody main, która jed...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
3139_53
nbartlomiej/JavaWars
6,784
src/java/javawars/client/pages/Introduction.java
/* * JavaWars - browser game that teaches Java * Copyright (C) 2008-2009 Bartlomiej N (nbartlomiej@gmail.com) * * This file is part of JavaWars. JavaWars 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 Foundatio...
// w przeciwnym razie(tzn gdy wspolrzedna X \n" +
/* * JavaWars - browser game that teaches Java * Copyright (C) 2008-2009 Bartlomiej N (nbartlomiej@gmail.com) * * This file is part of JavaWars. JavaWars 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 Foundatio...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
7108_64
slawomirmarczynski/java
5,125
mousepaint/src/mousepaint/MousePaint.java
/* * The MIT License * * Copyright 2020 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
// obiektem mającym interfejs MouseListener, czyli umieć obsługiwać
/* * The MIT License * * Copyright 2020 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
9067_3
bartektartanus/kodolamacz2017
864
src/main/java/pl/sages/collection/Tablice.java
package pl.sages.collection; import java.util.Arrays; public class Tablice { // tablica typów prymitywnych int, char, double, boolean int[] liczby = new int[10]; // tablica obiektów // ZAWSZE podczas inicjalizacji tablicy należy określić jej rozmiar String[] napisy = new String[10]; // rozm...
// to się wypisze jako int[] @ hashcode
package pl.sages.collection; import java.util.Arrays; public class Tablice { // tablica typów prymitywnych int, char, double, boolean int[] liczby = new int[10]; // tablica obiektów // ZAWSZE podczas inicjalizacji tablicy należy określić jej rozmiar String[] napisy = new String[10]; // rozm...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
6968_29
SP8EBC/MKS_JG
7,025
src/pl/jeleniagora/mks/gui/CompManagerWindowEditCompetition.java
package pl.jeleniagora.mks.gui; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JLabel; import javax.swing.JOptionPane; import net.miginfocom.swing.MigLayout; import pl.jeleniagora.mks.exceptions.UninitializedCompEx; import pl.jeleniagora.mks.rte.RTE_GUI...
// tworzenie wektora z saneczkarzami z tej konkurencji na podstawie listy czasów
package pl.jeleniagora.mks.gui; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JLabel; import javax.swing.JOptionPane; import net.miginfocom.swing.MigLayout; import pl.jeleniagora.mks.exceptions.UninitializedCompEx; import pl.jeleniagora.mks.rte.RTE_GUI...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
4067_3
hyperion4040/Java-Course-2017
1,310
src/edu/wsb/pierwszeSpotkanie/Operatory.java
package edu.wsb.pierwszeSpotkanie; /** * Created by hyperion on 31.05.17. */ public class Operatory { public static void main(String[] args) { /* Maszyna doskonale radzi sobie z operacjami jak dodawanie, odejmowanie i mnożenie liczb całkowitych, ale już ze liczbami zmiennoprzeci...
/* Ta metoda wypisze wszystkie dostępne aż do końca zakresu zmiennej i widzimy, że nie wyszło dokładnie 0.3 */
package edu.wsb.pierwszeSpotkanie; /** * Created by hyperion on 31.05.17. */ public class Operatory { public static void main(String[] args) { /* Maszyna doskonale radzi sobie z operacjami jak dodawanie, odejmowanie i mnożenie liczb całkowitych, ale już ze liczbami zmiennoprzeci...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
2769_30
rsp/bak16
2,309
bak/bakp/cw08/Lista02.java
class Ogniwo { // zmienne (czyli pola) obiektów klasy Ogniwo: // każde ogniwo może mieć jakąś nazwę // zmienna "nazwa" typu String: private String nazwa; // oraz mieć połączenie z następnym ogniwem w łańcuchu // zmienna "nastepne" typu Ogniwo: private Ogniwo nastepne; // metody obiek...
// w zmiennej następne obiektu ogniwo3 zapisujemy wartość null (czyli brak wartości)
class Ogniwo { // zmienne (czyli pola) obiektów klasy Ogniwo: // każde ogniwo może mieć jakąś nazwę // zmienna "nazwa" typu String: private String nazwa; // oraz mieć połączenie z następnym ogniwem w łańcuchu // zmienna "nastepne" typu Ogniwo: private Ogniwo nastepne; // metody obiek...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
10259_33
PrzemekBarczyk/swing-kalkulator
6,663
src/CalculatorModel.java
import java.awt.Color; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import javax.swing.JButton; public class CalculatorModel { private String operationLabelText; // zawartość JLabel z zapisem przeprowadzonych operacji private String resultLabelText; // zawartość JLabel z aktualnie wp...
// użyto equalsButton i nie podano liczby [=]||[2=]||[2+3=]
import java.awt.Color; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import javax.swing.JButton; public class CalculatorModel { private String operationLabelText; // zawartość JLabel z zapisem przeprowadzonych operacji private String resultLabelText; // zawartość JLabel z aktualnie wp...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
7192_4
a-leandra/checkers-AI
1,880
src/main/java/sztuczna/inteligencja/checkers/andOrTree/AndOrGameTreeNode.java
package sztuczna.inteligencja.checkers.andOrTree; import lombok.Getter; import lombok.Setter; import sztuczna.inteligencja.checkers.Draughtsman; import sztuczna.inteligencja.checkers.training.NeuralNetwork; import java.util.ArrayList; import java.util.List; @Getter @Setter public class AndOrGameTreeNode { List<...
//pkt za damkę
package sztuczna.inteligencja.checkers.andOrTree; import lombok.Getter; import lombok.Setter; import sztuczna.inteligencja.checkers.Draughtsman; import sztuczna.inteligencja.checkers.training.NeuralNetwork; import java.util.ArrayList; import java.util.List; @Getter @Setter public class AndOrGameTreeNode { List<...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5644_13
klolo/java8-stream-free-exercises
6,328
src/main/java/pl/klolo/workshops/logic/WorkShop.java
package pl.klolo.workshops.logic; import pl.klolo.workshops.domain.*; import pl.klolo.workshops.domain.Currency; import pl.klolo.workshops.mock.HoldingMockGenerator; import pl.klolo.workshops.mock.UserMockGenerator; import java.io.IOException; import java.math.BigDecimal; import java.math.MathContext; import java.mat...
/** * Zwraca liczbę kobiet we wszystkich firmach. Powtarzający się fragment kodu tworzący strumień użytkowników umieść * w osobnej metodzie. Predicate określający czy mamy do czynienia z kobietą niech będzie polem statycznym w klasie. */
package pl.klolo.workshops.logic; import pl.klolo.workshops.domain.*; import pl.klolo.workshops.domain.Currency; import pl.klolo.workshops.mock.HoldingMockGenerator; import pl.klolo.workshops.mock.UserMockGenerator; import java.io.IOException; import java.math.BigDecimal; import java.math.MathContext; import java.mat...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
7278_3
TreeCmp/TreeCmp
1,058
src/main/java/treecmp/spr/UsprHeuristicBaseMetric.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package treecmp.spr; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import pal.io.InputSource; import pal.tree.ReadTree; import pal.tree.SimpleTree; import pal.tree.TreePar...
//todo: sprawdzić czy to działa dla nieukorzenionych drzew
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package treecmp.spr; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import pal.io.InputSource; import pal.tree.ReadTree; import pal.tree.SimpleTree; import pal.tree.TreePar...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
6874_10
brzaskun/NetBeansProjects
4,276
npkpir_23/src/java/view/StornoDokView.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package view; import dao.DokDAO; import dao.StornoDokDAO; import embeddable.Mce; import embeddable.Stornodoch; import entity.Dok; import entity.Rozrachunek1; import entity.StornoDok; import error.E; import java.io.IOExc...
//trzeba zeby wprowadzal dokument pusty jednak!!!
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package view; import dao.DokDAO; import dao.StornoDokDAO; import embeddable.Mce; import embeddable.Stornodoch; import entity.Dok; import entity.Rozrachunek1; import entity.StornoDok; import error.E; import java.io.IOExc...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5191_9
bartektartanus/kodolamacz2017
684
src/main/java/pl/sages/klasy/VoiceOfPoland.java
package pl.sages.klasy; public class VoiceOfPoland { public static void sing(Pet pet){ pet.voice(); } public static void sing(Dog dog){ System.out.println("Teraz śpiewa pies"); dog.voice(); System.out.println("Pies skończył śpiewać"); } public static void main(Str...
// i wtedy mam dostęp do metod z klasy kota
package pl.sages.klasy; public class VoiceOfPoland { public static void sing(Pet pet){ pet.voice(); } public static void sing(Dog dog){ System.out.println("Teraz śpiewa pies"); dog.voice(); System.out.println("Pies skończył śpiewać"); } public static void main(Str...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
8506_19
slawomirmarczynski/java
2,274
swingplot/src/swingplot/Plot.java
/* * The MIT License * * Copyright (c) 2023 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
// Bez włączenia antyaliasingu obraz nie jest zbyt ładny, włączamy
/* * The MIT License * * Copyright (c) 2023 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5189_7
timur27/Java-Study
776
tourister/src/main/java/pl/edu/uj/ii/tourister/TouristerApplication.java
package pl.edu.uj.ii.tourister; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import pl.edu.uj.ii.tourister.blablacar.TripAd...
// System.out.println("3: Zaplanować przejazd do wybranego hotelu");
package pl.edu.uj.ii.tourister; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import pl.edu.uj.ii.tourister.blablacar.TripAd...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
9900_19
an-nos/concurrency-lab
1,217
src/lab9/Buffer.java
package lab9; import org.jcsp.lang.*; /** * Buffer class: Manages communication between Producer2 * and Consumer2 classes. */ public class Buffer implements CSProcess { private One2OneChannelInt[] in; // Input from Producer private One2OneChannelInt[] req; // Request for data from Consumer private One2...
// zaimplementuj rozwiazanie 1P1K narysowane na
package lab9; import org.jcsp.lang.*; /** * Buffer class: Manages communication between Producer2 * and Consumer2 classes. */ public class Buffer implements CSProcess { private One2OneChannelInt[] in; // Input from Producer private One2OneChannelInt[] req; // Request for data from Consumer private One2...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
8750_14
michal-bed/el-proyecte-grande-naspolke
1,012
src/main/java/com/company/naspolke/webclient/krs/KrsClient.java
package com.company.naspolke.webclient.krs; import lombok.Data; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.stereotype.Component; import org.springframework.web.reactive.function.client.WebClient; import org.springframework.web.reactive.function.cl...
//<BR>trwa przerwa techniczna w dost&#281;pie do systemu.
package com.company.naspolke.webclient.krs; import lombok.Data; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.stereotype.Component; import org.springframework.web.reactive.function.client.WebClient; import org.springframework.web.reactive.function.cl...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
4989_11
slawomirmarczynski/java
2,414
minilife/src/minilife/Model.java
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
// Dlatego tym razem niepotrzebne jest inicjalizowanie elementów takie
/* * The MIT License * * Copyright 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
4592_7
airlog/giepp
1,170
giepp/src/pl/pisz/airlog/giepp/data/Stats.java
package pl.pisz.airlog.giepp.data; import pl.pisz.airlog.giepp.game.Game; /** Obiekt tej klasy przechowuje informację o wynikach gracza. * money - pieniądze, kótre gracz posiada (nie licząc akcji), domyślnie Game.MONEY_ON_START * restarts - ile razy gracz zaczynał od nowa, domyślnie 0 * maxMoney - ile pieniędzy...
/** Zwraca liczbę pieniędzy gracza (nie licząc akcji) * @return pieniądze jakie posiada gracz (nie licząc akcji)*/
package pl.pisz.airlog.giepp.data; import pl.pisz.airlog.giepp.game.Game; /** Obiekt tej klasy przechowuje informację o wynikach gracza. * money - pieniądze, kótre gracz posiada (nie licząc akcji), domyślnie Game.MONEY_ON_START * restarts - ile razy gracz zaczynał od nowa, domyślnie 0 * maxMoney - ile pieniędzy...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
8160_8
axelGITT/UTP
1,135
UTP2/src/zad1/FloristsTest.java
/** * * @author Weikert Robert S17092 * */ package zad1; public class FloristsTest { // definicja metody sumowania wartosci kwiatów o podanym kolorze static int valueOf(Box box, String color) { int sumaTmp = 0; for (Flower key : box.products.keySet()) { if(key.getKolor() == color) { sumaTmp ...
// że w koszu są kwiaty na które nie ustalono jeszcze ceny?
/** * * @author Weikert Robert S17092 * */ package zad1; public class FloristsTest { // definicja metody sumowania wartosci kwiatów o podanym kolorze static int valueOf(Box box, String color) { int sumaTmp = 0; for (Flower key : box.products.keySet()) { if(key.getKolor() == color) { sumaTmp ...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
3955_7
bluesoft-rnd/aperte-workflow-core
7,459
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter; import...
/* Proces główny względem wstrzymywanego procesu */
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter; import...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
3162_5
michaelmnich/pitest-lib
2,216
SAM-System/src/main/java/org/pitest/mutationtest/sam/ui/console/ConsoleUi.java
package org.pitest.mutationtest.sam.ui.console; import org.pitest.extensions.MutationRandomizerSingleton; import org.pitest.mutationtest.sam.config.FromFileMetaData; import org.pitest.mutationtest.sam.config.IProjectMetaData; import org.pitest.mutationtest.sam.config.ImputMetaData; import org.pitest.mutationtest.sam.c...
//Odpalanie pojedynczej instacji pita projekt pobierany z konfiga z uwzglednienim bayesa
package org.pitest.mutationtest.sam.ui.console; import org.pitest.extensions.MutationRandomizerSingleton; import org.pitest.mutationtest.sam.config.FromFileMetaData; import org.pitest.mutationtest.sam.config.IProjectMetaData; import org.pitest.mutationtest.sam.config.ImputMetaData; import org.pitest.mutationtest.sam.c...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
6663_11
KNJPJATK/GrupaPodstawowa
1,640
Spotkanie 3/src/Spotkanie3.java
public class Spotkanie3 { /** * Sprawdzamy ile jest wystapien podanego znaku w zdaniu. */ public static int szukajLiczbyZnakuWZdaniu(String zdanie, char znak){ int ileZnakowWZdaniu = 0; //licznik wystapien danego znaku for(int i = 0; i < zdanie.length(); i++){ // wycia...
// części pętli for...
public class Spotkanie3 { /** * Sprawdzamy ile jest wystapien podanego znaku w zdaniu. */ public static int szukajLiczbyZnakuWZdaniu(String zdanie, char znak){ int ileZnakowWZdaniu = 0; //licznik wystapien danego znaku for(int i = 0; i < zdanie.length(); i++){ // wycia...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
6401_17
cafebabepl/cafebabe-kebab20
1,368
src/main/java/pl/cafebabe/kebab/service/MenuService.java
package pl.cafebabe.kebab.service; import static pl.cafebabe.kebab.Constants.*; import javax.ejb.EJB; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import org.apache.commons.configuration.Configuration; import org.jongo.Jongo; import com.mongodb.MongoClient; import pl.cafebabe.kebab...
// public Collection<Pozycja> pozycje(@PathParam("grupa") String grupa) throws Exception {
package pl.cafebabe.kebab.service; import static pl.cafebabe.kebab.Constants.*; import javax.ejb.EJB; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import org.apache.commons.configuration.Configuration; import org.jongo.Jongo; import com.mongodb.MongoClient; import pl.cafebabe.kebab...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
3928_3
MiloszCzaniecki/CivilizationArena
544
src/Cywilizacja.java
package src; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import static java.lang.Thread.sleep; public class Cywilizacja { public static void main(String[] args) throws InterruptedException { //próbowałem usilnie dodać jakoś mechanikę sprawdzania do k...
//więc może i jest git
package src; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import static java.lang.Thread.sleep; public class Cywilizacja { public static void main(String[] args) throws InterruptedException { //próbowałem usilnie dodać jakoś mechanikę sprawdzania do k...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
9390_16
PatrykZdz/Bazy_g1_PZ
6,735
Java powtorka.java
ZAD1 //// Najwaznijesze RECORD Z Konstruktorem package Zad1; public record BankAccount(String numerKonta, double saldo) { public BankAccount(String numerKonta) { // Konstruktor this(numerKonta,0); } } /// Record z Metoda package Zad1; public record Car(String brand,String model, double fuelConsumption...
/// Dokonczyc 2 ostatnie
ZAD1 //// Najwaznijesze RECORD Z Konstruktorem package Zad1; public record BankAccount(String numerKonta, double saldo) { public BankAccount(String numerKonta) { // Konstruktor this(numerKonta,0); } } /// Record z Metoda package Zad1; public record Car(String brand,String model, double fuelConsumption...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
5306_28
hubertgabrys/ocr
5,098
src/obrazy/Segmentation.java
package obrazy; //<editor-fold defaultstate="collapsed" desc="IMPORT"> import java.awt.image.BufferedImage; import java.util.Arrays; import java.util.Deque; import java.util.LinkedList; import java.util.List; //</editor-fold> /** * * @author Hubert */ public class Segmentation { //<editor-fold defaultstate="col...
/** * Metoda dokonuje wyodrębnienia liter z tekstu jako osobnych obrazów. * * @param in Obraz wejściowy * @return Tablica 2D przechowująca wyodrębnione litery (jako obrazy) */
package obrazy; //<editor-fold defaultstate="collapsed" desc="IMPORT"> import java.awt.image.BufferedImage; import java.util.Arrays; import java.util.Deque; import java.util.LinkedList; import java.util.List; //</editor-fold> /** * * @author Hubert */ public class Segmentation { //<editor-fold defaultstate="col...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl
null
6935_0
arkadiuszbielewicz/job-scrapper
263
src/main/java/pl/sda/jobOffer/infrastructure/jobScrapper/JustJoinItJobScrapper.java
package pl.sda.jobOffer.infrastructure.jobScrapper; import pl.sda.jobOffer.domain.*; import java.util.List; public class JustJoinItJobScrapper implements JobScrapper { //mock @Override public List<JobOffer> getJobOffers() { return List.of(); } // tutaj będzie ciężej bo chyba musze wej...
// tutaj będzie ciężej bo chyba musze wejść do każdej oferty, nie da się wyciągnąć z listy ogłoszeń
package pl.sda.jobOffer.infrastructure.jobScrapper; import pl.sda.jobOffer.domain.*; import java.util.List; public class JustJoinItJobScrapper implements JobScrapper { //mock @Override public List<JobOffer> getJobOffers() { return List.of(); } // tutaj będzie <SUF> // albo nie: ...
f
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
8343_4
slawomirmarczynski/java
1,857
udp/src/licensecontrolserver/LicenseControlServerThreaded.java
/* * The MIT License * * Copyright 2022 PI_stanowisko_1. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
// oraz sprawdzać czy program serwera ma nadal pracować.
/* * The MIT License * * Copyright 2022 PI_stanowisko_1. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
line_comment
pl
null
8260_7
bartprokop/fiscal-printers
2,139
src/main/java/name/prokop/bart/fps/datamodel/Invoice.java
/* * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIA...
/** * Nowo utworzony paragom */
/* * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIA...
t
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
block_comment
pl