file_id
stringlengths
5
10
content
stringlengths
57
33.1k
repo
stringlengths
8
77
path
stringlengths
6
174
token_length
int64
19
8.19k
original_comment
stringlengths
7
10.6k
comment_type
stringclasses
2 values
detected_lang
stringclasses
1 value
prompt
stringlengths
21
33.1k
3936_4
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/Logger.java
791
/** * Dodanie konsoli i wysłanie jej zawartości bufora. * Konsola to obiekt JS z zaimplementowaną metodą write() * @param inConsole */
block_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3936_5
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/Logger.java
791
/** * Odłączenie konsoli */
block_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3936_6
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/Logger.java
791
/** * Dodanie tekstu, zostanie wysłany do konsoli lub zapamiętany * w buforze * @param in */
block_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3936_8
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/Logger.java
791
// jest podłączona konsola, więc wywołaj jej metodę write()
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3939_0
public interface Pet { // Interface jest zawsze public a jego metody są zawsze abstract, // więc słowo public w "public interface Pet" można pominąć // podobnie jest ze słowem abstract w metodach, np "abstract void play();" void beFriendly(); // można zapisać jako abstract void beFriendly(), ale w inter...
wiktorwidera/HeadFirstJava3rdEd
Chapter08/src/Pet.java
112
// Interface jest zawsze public a jego metody są zawsze abstract,
line_comment
pl
public interface Pet { // Interface jest <SUF> // więc słowo public w "public interface Pet" można pominąć // podobnie jest ze słowem abstract w metodach, np "abstract void play();" void beFriendly(); // można zapisać jako abstract void beFriendly(), ale w interfejsie metody są zawsze abstract void ...
3939_1
public interface Pet { // Interface jest zawsze public a jego metody są zawsze abstract, // więc słowo public w "public interface Pet" można pominąć // podobnie jest ze słowem abstract w metodach, np "abstract void play();" void beFriendly(); // można zapisać jako abstract void beFriendly(), ale w inter...
wiktorwidera/HeadFirstJava3rdEd
Chapter08/src/Pet.java
112
// więc słowo public w "public interface Pet" można pominąć
line_comment
pl
public interface Pet { // Interface jest zawsze public a jego metody są zawsze abstract, // więc słowo <SUF> // podobnie jest ze słowem abstract w metodach, np "abstract void play();" void beFriendly(); // można zapisać jako abstract void beFriendly(), ale w interfejsie metody są zawsze abstract voi...
3939_2
public interface Pet { // Interface jest zawsze public a jego metody są zawsze abstract, // więc słowo public w "public interface Pet" można pominąć // podobnie jest ze słowem abstract w metodach, np "abstract void play();" void beFriendly(); // można zapisać jako abstract void beFriendly(), ale w inter...
wiktorwidera/HeadFirstJava3rdEd
Chapter08/src/Pet.java
112
// podobnie jest ze słowem abstract w metodach, np "abstract void play();"
line_comment
pl
public interface Pet { // Interface jest zawsze public a jego metody są zawsze abstract, // więc słowo public w "public interface Pet" można pominąć // podobnie jest <SUF> void beFriendly(); // można zapisać jako abstract void beFriendly(), ale w interfejsie metody są zawsze abstract void play(); }
3939_3
public interface Pet { // Interface jest zawsze public a jego metody są zawsze abstract, // więc słowo public w "public interface Pet" można pominąć // podobnie jest ze słowem abstract w metodach, np "abstract void play();" void beFriendly(); // można zapisać jako abstract void beFriendly(), ale w inter...
wiktorwidera/HeadFirstJava3rdEd
Chapter08/src/Pet.java
112
// można zapisać jako abstract void beFriendly(), ale w interfejsie metody są zawsze abstract
line_comment
pl
public interface Pet { // Interface jest zawsze public a jego metody są zawsze abstract, // więc słowo public w "public interface Pet" można pominąć // podobnie jest ze słowem abstract w metodach, np "abstract void play();" void beFriendly(); // można zapisać <SUF> void play(); }
3940_2
/* * Copyright (C) 2019-2021 FratikB0T Contributors * * 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 p...
fratik/FratikB0T
moderation/src/main/java/pl/fratik/moderation/Module.java
4,411
// pgStore to gówno i tylko loguje SQLException
line_comment
pl
/* * Copyright (C) 2019-2021 FratikB0T Contributors * * 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 p...
3941_0
public record Pair<K, V>(K key, V value) { // javafx nie jest częścią openjdk, więc wykorzystamy record }
MichalKozlowskii/java-introduction-course
Lista5/zad3&4/Pair.java
36
// javafx nie jest częścią openjdk, więc wykorzystamy record
line_comment
pl
public record Pair<K, V>(K key, V value) { // javafx nie <SUF> }
3942_0
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//zmienna przechowujaca ilosc bitow przed pojawieniem sie 0
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca <SUF> private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wprowadzanie danych bit po bicie ...
3942_1
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//wynik po zdekodowaniu podanego ciagu
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po <SUF> private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wprowadzanie danych bit po ...
3942_2
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//pomocnik przechowujacy ilosc jedynek skladajacych sie na X
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy <SUF> public void input(int bit) //wprowadzanie danych bit po bicie ...
3942_3
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//wprowadzanie danych bit po bicie
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_4
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//jeśli mamy 1 to dodajemy do ich licznika
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_5
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//jesli zero to mozemy zdekodowac to co znalazlo sie za nim
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_6
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//dekodowanie ciągu jedynek zakonczonego 0, innymi slowy 1 znaku
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_7
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//jesli przed 0 nie pojawila sie ani 1 jedynka nie robimy nic
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_8
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//jesli nie podalismy liczby pomocnikowi, oznacza to że jest to 1 znak - zakodowane 0
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_9
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//podajemy pomocnikowi ile 1 zakodowalo 0
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_10
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//zerujemy licznik jedynek
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_11
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//i dodajemy 0 do wyniku koncowego
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_12
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//jesli podalismy juz pomocnikowi liczbe 1 skladajacych sie na X, mozemy uzyc tej wiadomosci do
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_13
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//zdekodowania ruznych ilosci X na adekwatne znaki i dodac je do wyniku
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_14
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//pole resoult jest prywatne, więc do dostania się do jego wartości posłuży nam funkcja output
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_15
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//resetowanie naszych 3 zmiennych
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_16
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//zdecydowałem sie napisac metode main wykozystujaca wszystkie
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_17
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//objekt wywolujacy dane metody
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3942_18
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
Armillion/Exercises
Java/Decoder/src/decoder/Decoder.java
1,119
//czytamy kod przekazany w 1 argumencie znak za znakiem
line_comment
pl
class Decoder extends DecoderInterface{ private int count; //zmienna przechowujaca ilosc bitow przed pojawieniem sie 0 private String resoult; //wynik po zdekodowaniu podanego ciagu private int helper; //pomocnik przechowujacy ilosc jedynek skladajacych sie na X public void input(int bit) //wpro...
3944_0
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
honestit/spring-intro
projects/honestit-2020-10-11/src/main/java/pl/sda/projects/adverts/config/StartupDataLoader.java
683
// Mamy wygenerowany konstruktor dla wszystkich
line_comment
pl
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
3944_1
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
honestit/spring-intro
projects/honestit-2020-10-11/src/main/java/pl/sda/projects/adverts/config/StartupDataLoader.java
683
// pól typu final przez lomboka (@RequiredArgsConstructor)
line_comment
pl
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
3944_2
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
honestit/spring-intro
projects/honestit-2020-10-11/src/main/java/pl/sda/projects/adverts/config/StartupDataLoader.java
683
// więc nie tworzymy własnego, a jak mamy
line_comment
pl
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
3944_3
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
honestit/spring-intro
projects/honestit-2020-10-11/src/main/java/pl/sda/projects/adverts/config/StartupDataLoader.java
683
// tylko jeden, to Spring automatycznie (magicznie)
line_comment
pl
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
3944_4
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
honestit/spring-intro
projects/honestit-2020-10-11/src/main/java/pl/sda/projects/adverts/config/StartupDataLoader.java
683
// używa go do wstrzykiwania zależności
line_comment
pl
package pl.sda.projects.adverts.config; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.security.crypto.password.PasswordEncoder; import org.spring...
3946_1
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
/** * Klasa wykorzystywana przy kolizjach. Wszystkie siatki są stworzone z trójkątów * @author Macvek * */
block_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_2
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// to jest ważne, że clone()
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_3
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// wylicza współczynnik kierunkowy
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_4
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// wylicza przesunięcie b
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_5
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// X i Y dla którego przecinają się odcinki
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_6
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
/* Test krawędzi * Zaznaczam, że jest to bardzo poglądowy test i nie zastanawiałem się bardzo * nad jego szybkością. Sprawdza brutalnie każdy z każdym. * Modele niewiele trójkątów więc nie powinno to być problemem. * Podobnie jak sprawdzanie krawędzi, które jest też nie koniecznie doskonałe */
block_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_7
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
//X rośnie w prawo, Y rośnie w dół
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_8
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// punkty mniejsze są 0, większe na 1 (na osi X)
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_9
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// test czy nie są w poziomie
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_10
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// oba są w pionie, więc sprawdzamy czy któryś z wierzchołków A jest między A i B w osi Y
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_11
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// inne zderzenie ze ścianą
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_12
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// dla obu odcinków można wyliczyć równanie prostej
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_13
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// a i b to są punkty trójkątów
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_14
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// test kolizji polega na sprawdzeniu czy krawędzie się przecinają
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_16
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// drugi trójkąt to najczęście to o kogo się obił, więc zapamiętaj dla obliczenia odbicia
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_17
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// przesuń obrócony trójkąt
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_18
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// obróć trójkąt
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_19
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// przesuń obrócony trójkąt
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_20
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// obróć trójkąt
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3946_21
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
macvek/Tanks10
src/main/java/tanks10/world/Triangle.java
2,659
// mamy przygotowane oba trójkąty, więc test
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project 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....
3948_1
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
/** * Klasa, której obiekty potrafią tylko jedno: wypisywać przygotowany tekst * na dwa sposoby. Zauważmy że moglibyśmy ją zmodyfikować (użyć dziedziczenia) * tak aby w jakimś sensie dalej wypisywała tekst, ale robiła to w jakiś inny, * szczególny sposób. Taka modyfikacja nie powinna wymagać modyfikacji programu, ...
block_comment
pl
/* * 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...
3948_2
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// Po co text i dlaczego private? Zmienna text jest widoczna dla wszystkich
line_comment
pl
/* * 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...
3948_3
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// funkcji wewnątrz obiektu. W ten sposób obiekt pamięta co ma wypisać.
line_comment
pl
/* * 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...
3948_4
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// Ponieważ jest private, to z nie ma dostępu z zewnątrz, więc wartość text
line_comment
pl
/* * 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...
3948_5
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// nie zmieni się przez przypadkowe użycie. Zauważmy że brak jest static
line_comment
pl
/* * 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...
3948_6
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// - a to oznacza że zmienne tekst są tworzone, za każdym razem jedna, gdy
line_comment
pl
/* * 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...
3948_7
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// są tworzone obiekty klasy HelloWorld. Gdyby było static, to oznaczałoby
line_comment
pl
/* * 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...
3948_8
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// że text jest zmienną przywiązaną do specyfikacji klasy, współdzieloną
line_comment
pl
/* * 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...
3948_9
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// przez wszystkie obiekty klasy HelloWorld.
line_comment
pl
/* * 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...
3948_10
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
/** * Konstruktor, tworzy nowy obiekt klasy HelloWorld. * * @param text tekst jaki ma być użyty w powitaniach. */
block_comment
pl
/* * 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...
3948_11
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
/** * Krótka forma. Tylko tekst powitania i nic więcej. */
block_comment
pl
/* * 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...
3948_12
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
/** * Długa forma. * * Tekst powitania jest wykorzystany kreatywnie. */
block_comment
pl
/* * 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...
3948_13
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// Ciekawostka: Java w obecnej wersji wykorzystuje UTF-8; starsze wersje
line_comment
pl
/* * 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...
3948_14
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// mogą mieć z tym trudności, bo używały UTF-16 jako kodowania kodu
line_comment
pl
/* * 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...
3948_15
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// źródłowego. Ostatecznie to co zobaczymy zależy też od tego jak radzi
line_comment
pl
/* * 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...
3948_16
/* * 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...
slawomirmarczynski/java
start/src/helloworld/HelloWorld.java
1,111
// sobie z kodami znaków okno konsoli, na które są wyprowadzane wyniki.
line_comment
pl
/* * 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...
3949_1
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
/** * Klasa reprezentująca zestaw danych, jakie mają być pokazywane na wykresie. * <p> * Każdy zestaw składa się z ciągu odciętych i ciągu rzędnych oraz określenia * koloru w jakim te dane mają być wykreślane. Oczywiście jest to tylko przykład * i dlatego brak w nim możliwości, które mogłyby być konieczne np. dla ...
block_comment
pl
/* * 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...
3949_2
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
// Dlaczego private? Dlaczego nie final? Dlaczego nie static?
line_comment
pl
/* * 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...
3949_3
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
// Private, bo nie chcemy umożliwiać bezpośredniego dostępu do tych danych.
line_comment
pl
/* * 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...
3949_4
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
// Nie-final, bo być może w przyszłości będziemy zmieniali te wartości.
line_comment
pl
/* * 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...
3949_5
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
// Dlaczego nie static? Bo chcemy móc wstawiać więcej niż jeden wykres.
line_comment
pl
/* * 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...
3949_6
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
/** * Tworzy obiekt klasy DataSet na podstawie otrzymanych danych. Powstający * obiekt dostaje kopię danych, tak więc na zewnątrz nie wypływają na to * co będzie wykreślał program. * * @param x tablica liczb zmiennoprzecinkowych. * @param y tablica liczb zmiennoprzecinkowych, tak sam...
block_comment
pl
/* * 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...
3949_7
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
// tablice są mutable, klonowanie defensywne
line_comment
pl
/* * 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...
3949_8
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
// tablice są mutable, klonowanie defensywne
line_comment
pl
/* * 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...
3949_9
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
// łańcuchy znaków są immutable, klonowanie zbędne
line_comment
pl
/* * 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...
3949_10
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
/** * Zwraca liczbę punktów danych. * * @return liczba punktów danych. */
block_comment
pl
/* * 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...
3949_11
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
/** * Zwraca wartość odciętej. * * @param index numer wierzchołka łamanej, zaczynając od zera. * @return wartość odciętej */
block_comment
pl
/* * 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...
3949_12
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
/** * Zwraca wartość rzędnej. * * @param index numer wierzchołka łamanej, zaczynając od zera. * @return wartość rzędnej. */
block_comment
pl
/* * 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...
3949_13
/* * 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...
slawomirmarczynski/java
swingplot/src/swingplot/DataSet.java
1,350
/** * 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...
block_comment
pl
/* * 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...
3950_11
/* $Id$ */ /*************************************************************************** * (C) Copyright 2003-2011 - Stendhal * *************************************************************************** *************************************************************************** ...
KarajuSs/PolskaGRA
src/games/stendhal/server/maps/quests/MeetHayunn.java
4,093
//www.polskagra.net możesz znaleźć wiele odpowiedzi listy wszelkiego rodzaju zwierząt, potworów i innych wrogów\n Na #http://www.polskagra.net/node/722 możesz znaleźć informacje o punktach doświadczenia i zdobywaniu poziomów\nNa #http://www.polskagra.net możesz poczytać o najlepszych wojownikach\n ";
line_comment
pl
/* $Id$ */ /*************************************************************************** * (C) Copyright 2003-2011 - Stendhal * *************************************************************************** *************************************************************************** ...
3951_1
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
/** * Klasa Sensor jest abstrakcją reprezentującą "jakiś sensor", bez ograniczania * się do konkretnego modelu czy producenta. Ma to dwie korzyści: określa API * i daje polimorfizm. Po prostu nie musimy (gdy to jest niepotrzebne) wiedzieć * z jakimi konkretnymi sensorami pracuje nasz program, wystarczy że są one *...
block_comment
pl
/* * 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...
3951_2
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// Dlaczego name jest prywatne, a value jest protected?
line_comment
pl
/* * 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...
3951_3
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// Zmienna name jest nazwą sensora i jest ustalana w konstruktorze (patrz
line_comment
pl
/* * 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...
3951_4
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// poniżej). Nie ma - taki jest nasz zamysł - żadnej możliwości aby ją
line_comment
pl
/* * 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...
3951_5
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// później zmienić i dlatego jest final. Wykorzystywana będzie jedynie
line_comment
pl
/* * 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...
3951_6
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// w metodzie getName(), która sama też jest final, więc nie będzie można
line_comment
pl
/* * 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...
3951_7
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// jej zmodyfikować. Nie ma więc sensu aby subklasy, takie jak na przykład
line_comment
pl
/* * 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...
3951_8
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// TemperatureSensor, miały dostęp do name. To typowe rozwiązanie, API
line_comment
pl
/* * 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...
3951_9
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// ma "gettera" (po polsku to akcesor), ale nie najbardziej eleganckie.
line_comment
pl
/* * 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...
3951_10
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// Można po prostu zadeklarować name jako public final, a także pozbyć się
line_comment
pl
/* * 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...
3951_11
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// getName(). Dostęp do nazwy będzie nadal możliwy, po prostu będzie ona
line_comment
pl
/* * 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...
3951_12
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// publiczna. I tak samo nie będzie można zmienić nazwy, bo będzie final,
line_comment
pl
/* * 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...
3951_13
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// co uczyni ją read-only, czyli tylko do odczytu. Z drugiej strony
line_comment
pl
/* * 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...
3951_14
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// programiści używający Javy są tak przyzwyczajeni do "getterów", że być
line_comment
pl
/* * 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...
3951_15
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// może łatwiej będzie im używać getName() niż po prostu name.
line_comment
pl
/* * 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...
3951_16
/* * 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...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// Zmienna value jest chroniona i jest typu Object, czyli może reprezentować
line_comment
pl
/* * 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...