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 |
|---|---|---|---|---|---|---|---|---|
35817_0 | package com.igorjozefowicz.oop.lab3;
import com.igorjozefowicz.oop.lab3.Transformacja;
import com.igorjozefowicz.oop.lab3.BrakTransformacjiOdwrotnejException;
import com.igorjozefowicz.oop.lab3.Punkt;
public class Skalowanie implements Transformacja{
private final double skalaX,skalaY;
public Skalowanie(doubl... | igorjoz/oop-course | lab3 - Java basics/home/Skalowanie.java | 547 | /*
* W przypadku klasy Skalowanie metoda getTransformacjaOdwrotna
* zgłasza błąd w przypadku braku transformacji odwrotnej
* (z powodu dzielenia przez 0). Błąd ten jest zgłaszany za
* pomocą specjalnej instrukcji throw która to powoduje
* propagacje informacji o błędzie do metod wywołujących
... | block_comment | pl | package com.igorjozefowicz.oop.lab3;
import com.igorjozefowicz.oop.lab3.Transformacja;
import com.igorjozefowicz.oop.lab3.BrakTransformacjiOdwrotnejException;
import com.igorjozefowicz.oop.lab3.Punkt;
public class Skalowanie implements Transformacja{
private final double skalaX,skalaY;
public Skalowanie(doubl... |
35820_0 | package pl.north93.northplatform.api.bungee.proxy.impl;
import static java.util.Collections.synchronizedMap;
import java.net.InetSocketAddress;
import java.util.Iterator;
import java.util.Map;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import lom... | northpl93/NorthPlatform | Sources/API/src/main/java/pl/north93/northplatform/api/bungee/proxy/impl/ProxyServerListImpl.java | 871 | // z jakiegos powodu serwer juz nie istnieje, zabezpieczenie przed ewentualnym NPE | line_comment | pl | package pl.north93.northplatform.api.bungee.proxy.impl;
import static java.util.Collections.synchronizedMap;
import java.net.InetSocketAddress;
import java.util.Iterator;
import java.util.Map;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import lom... |
35822_2 | package HomeWork.Zadanie1.Zadanie3;
import HomeWork.Zadanie1.Zadanie2.CustomerLogger;
import HomeWork.Zadanie1.Zadanie2.SimpleCustomerLogger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@C... | GregsHuub/Spring-exerciises | src/main/java/HomeWork/Zadanie1/Zadanie3/AppConfigurationZad3.java | 179 | // } // zakomentowane z powodu innego konstruktora w MemoryCustomerReposity | line_comment | pl | package HomeWork.Zadanie1.Zadanie3;
import HomeWork.Zadanie1.Zadanie2.CustomerLogger;
import HomeWork.Zadanie1.Zadanie2.SimpleCustomerLogger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@C... |
35834_1 | /*
* Copyright (c) 2008 TouK.pl
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | TouK/gxt-tools | gxt-tools-lib/src/main/java/pl/touk/tola/gwt/client/state/TolaStateManager.java | 852 | /**
* @author Łukasz Kucharski - lkc@touk.pl
*/ | block_comment | pl | /*
* Copyright (c) 2008 TouK.pl
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
35841_1 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* klasa pośrednicząca pomiędzy warstwami DAO oraz kontrolerami
* @author Klotor90
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_2 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* meteda generujaca wiadomość powitalną dla użytkownika
* @param person [Person] użytkownik
* @return [String] wiadomość powitalna
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_3 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda obsługująca uwierzytelnianie użytkownika
* @param user [User] uwierzytelniany użytkownik
* @return [LoginWrapper] wynik będący sukcesem lub porażką z powodu złędnego loginu bądź hasła
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_4 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda obsługująca rejestrację nowego użytkownika
* @param person [Person] dane o nowym użytkowniku
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_5 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda pobierająca dane o danym użytkoniku z bazy danych
* @param user [User] dane użytkownika
* @return [Person] użytkownik, jeżeli istnieje, jeżeli nie, to null
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_6 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | //Person person = getPersonByLogin(user); // Uśmiech prowadzącego :) | line_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_7 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda obsługująca dodanie nowego posta
* @param post [Post] dodawany post
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_8 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda obsługująca dodanie nowego posta z linkiem
* @param post [LinkedPost] dodawany post
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_9 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda ustawiająca obiekt warstwy DAO dla klasy Person
* @param personDAO [PersonDAO] nowy obiekt warstwy DAO
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_10 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda ustawiająca obiekt warstwy DAO dla klasy LinkedPost
* @param linkedPostDAO [LinkedPostDAO] nowy obiekt warstwy DAO
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_11 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda ustawiająca obiekt warstwy DAO dla klasy Post
* @param postDAO [PostDAO] nowy obiekt warstwy DAO
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_12 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda obsługująca wyświetlanie się postów
* @param status [int] status postów
* @return [Strint] wygenerowany kod HTML
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35841_13 | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... | tomesh1991/zti | src/java/service/UniversalService.java | 1,648 | /**
* metoda obsugujca zaakceptowanie posta
* @param ID [int] id posta
*/ | block_comment | pl | /*
* 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 service;
import bean.LinkedPost;
import bean.LoggedUser;
import bean.LoginWrapper;
import bean.Person;
import bean.Post;
impor... |
35842_0 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | //dla kazdego n-gramu wyciagamy kolejny znak i dodajemy go do listy znakow | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35842_1 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | //obliczamy prawdopodobienstwo wystapienia znakow na podstawie zebranych wczesniej n-gramów | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35842_2 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | //dla kazdej mapy n-gramow oblicza liczbe wystapien znaków i dzieli ją przez całkowitą liczbe wystąpień aby otrzymać prawdopodobieństwo | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35842_3 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | //generuje text zaczyna od seeedu | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35842_4 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | //dla każdej iteracji bierze ostatni n-gram i sprawdza czy istnieje mapowanie | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35842_5 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | // jezeli tak to losuje kolejny znak na podstawie prawdopodobieństw i dołącza do tekstu | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35842_6 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | //wybiera znak losowo na podstawie mapy charProbability | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35842_7 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | //generuje losową wartość i porównuje ją z wartosciami skumulowanymi prawdopodobieństwa aby wybrać odpowiedni znak | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35842_8 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | //losowe wybieranie znaku gdy są takie same prawdopodobieństwa | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35842_9 | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... | Fade0/MarkovCodeExample | src/pl/fade/TextGenerator.java | 1,443 | //zwroci ostatni znak jak z jakiegos powodu nie mozna znalezc znaku atkualnego | line_comment | pl | package pl.fade;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class TextGenerator {
private Map<String, List<Character>> nGrams;
private Map<String, Map<Character, Double>> probabilities;
private int n;
public TextGenerator(int n) {
... |
35845_1 | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... | KrzysztofT/rozkladpkp-android | src/org/tyszecki/rozkladpkp/ConnectionListItemAdapter.java | 4,650 | //Obliczenie wielkości pola tekstowego dla odjazdów | line_comment | pl | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... |
35845_2 | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... | KrzysztofT/rozkladpkp-android | src/org/tyszecki/rozkladpkp/ConnectionListItemAdapter.java | 4,650 | //Obliczenie wielkości pola tekstowego dla przyjazdów | line_comment | pl | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... |
35845_3 | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... | KrzysztofT/rozkladpkp-android | src/org/tyszecki/rozkladpkp/ConnectionListItemAdapter.java | 4,650 | //Data lub połączenie | line_comment | pl | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... |
35845_4 | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... | KrzysztofT/rozkladpkp-android | src/org/tyszecki/rozkladpkp/ConnectionListItemAdapter.java | 4,650 | //Data lub połączenie | line_comment | pl | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... |
35845_5 | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... | KrzysztofT/rozkladpkp-android | src/org/tyszecki/rozkladpkp/ConnectionListItemAdapter.java | 4,650 | //+1, ponieważ jeśli scrolling, to 1, a jeśli !scrolling, to też 1 (ostrzeżenie o statycznym) | line_comment | pl | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... |
35845_6 | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... | KrzysztofT/rozkladpkp-android | src/org/tyszecki/rozkladpkp/ConnectionListItemAdapter.java | 4,650 | //Dni są oznaczone liczbami ujemnymi, zaczynając od -1 | line_comment | pl | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... |
35845_7 | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... | KrzysztofT/rozkladpkp-android | src/org/tyszecki/rozkladpkp/ConnectionListItemAdapter.java | 4,650 | //Pierwszy dzień to -1, następny to -2, itd. | line_comment | pl | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... |
35845_8 | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... | KrzysztofT/rozkladpkp-android | src/org/tyszecki/rozkladpkp/ConnectionListItemAdapter.java | 4,650 | //Dodanie numerów połączeń | line_comment | pl | /*******************************************************************************
* This file is part of the RozkladPKP project.
*
* RozkladPKP 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, ... |
35850_0 | /*#14. Kurs Java dla początkujących - Wstęp do klas i obiektów https://www.youtube.com/watch?v=y0EvXmqnkM8&list=PL6aekdNhY7DCM1wGLQCE9eP3kPzu-P7E7&index=15*/
public class task14 { //public powoduje to że poziom dostępu jest dostępny w calym naszym folderze.
public static void main(String[] args)
{
S... | dawidolko/Programming-Java | Courses/Coursee1/task14/src/task14.java | 390 | /*#14. Kurs Java dla początkujących - Wstęp do klas i obiektów https://www.youtube.com/watch?v=y0EvXmqnkM8&list=PL6aekdNhY7DCM1wGLQCE9eP3kPzu-P7E7&index=15*/ | block_comment | pl | /*#14. Kurs Java <SUF>*/
public class task14 { //public powoduje to że poziom dostępu jest dostępny w calym naszym folderze.
public static void main(String[] args)
{
System.out.println(Zwierze.count); // 0 bo jeszcze nie dodalem obiektow.
Zwierze kot = new Zwierze();
kot.glos = "Me... |
35850_1 | /*#14. Kurs Java dla początkujących - Wstęp do klas i obiektów https://www.youtube.com/watch?v=y0EvXmqnkM8&list=PL6aekdNhY7DCM1wGLQCE9eP3kPzu-P7E7&index=15*/
public class task14 { //public powoduje to że poziom dostępu jest dostępny w calym naszym folderze.
public static void main(String[] args)
{
S... | dawidolko/Programming-Java | Courses/Coursee1/task14/src/task14.java | 390 | //public powoduje to że poziom dostępu jest dostępny w calym naszym folderze.
| line_comment | pl | /*#14. Kurs Java dla początkujących - Wstęp do klas i obiektów https://www.youtube.com/watch?v=y0EvXmqnkM8&list=PL6aekdNhY7DCM1wGLQCE9eP3kPzu-P7E7&index=15*/
public class task14 { //public powoduje <SUF>
public static void main(String[] args)
{
System.out.println(Zwierze.count); // 0 bo jeszcze nie d... |
35850_2 | /*#14. Kurs Java dla początkujących - Wstęp do klas i obiektów https://www.youtube.com/watch?v=y0EvXmqnkM8&list=PL6aekdNhY7DCM1wGLQCE9eP3kPzu-P7E7&index=15*/
public class task14 { //public powoduje to że poziom dostępu jest dostępny w calym naszym folderze.
public static void main(String[] args)
{
S... | dawidolko/Programming-Java | Courses/Coursee1/task14/src/task14.java | 390 | // 0 bo jeszcze nie dodalem obiektow.
| line_comment | pl | /*#14. Kurs Java dla początkujących - Wstęp do klas i obiektów https://www.youtube.com/watch?v=y0EvXmqnkM8&list=PL6aekdNhY7DCM1wGLQCE9eP3kPzu-P7E7&index=15*/
public class task14 { //public powoduje to że poziom dostępu jest dostępny w calym naszym folderze.
public static void main(String[] args)
{
S... |
35850_3 | /*#14. Kurs Java dla początkujących - Wstęp do klas i obiektów https://www.youtube.com/watch?v=y0EvXmqnkM8&list=PL6aekdNhY7DCM1wGLQCE9eP3kPzu-P7E7&index=15*/
public class task14 { //public powoduje to że poziom dostępu jest dostępny w calym naszym folderze.
public static void main(String[] args)
{
S... | dawidolko/Programming-Java | Courses/Coursee1/task14/src/task14.java | 390 | //zawsze bedzie jeden chyba ze w liczniku dodam static i zmienie w funkcji main Nazwe klasy
| line_comment | pl | /*#14. Kurs Java dla początkujących - Wstęp do klas i obiektów https://www.youtube.com/watch?v=y0EvXmqnkM8&list=PL6aekdNhY7DCM1wGLQCE9eP3kPzu-P7E7&index=15*/
public class task14 { //public powoduje to że poziom dostępu jest dostępny w calym naszym folderze.
public static void main(String[] args)
{
S... |
35856_0 | package pl.lodz.p.it.ssbd2022.ssbd02.exceptions;
import pl.lodz.p.it.ssbd2022.ssbd02.mok.dto.ErrorDto;
import javax.ws.rs.core.Response;
/**
* Klasa wyjątku reprezentująca nieznalezienie danego powodu zgłoszenia recenzji
*/
public class NoReviewReportCauseFoundException extends BaseApplicationException {
publi... | oskarkurczewski/Shutter.app | src/main/java/pl/lodz/p/it/ssbd2022/ssbd02/exceptions/NoReviewReportCauseFoundException.java | 175 | /**
* Klasa wyjątku reprezentująca nieznalezienie danego powodu zgłoszenia recenzji
*/ | block_comment | pl | package pl.lodz.p.it.ssbd2022.ssbd02.exceptions;
import pl.lodz.p.it.ssbd2022.ssbd02.mok.dto.ErrorDto;
import javax.ws.rs.core.Response;
/**
* Klasa wyjątku reprezentująca <SUF>*/
public class NoReviewReportCauseFoundException extends BaseApplicationException {
public NoReviewReportCauseFoundException(String me... |
35859_1 | /*
* 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... | dawidtelepski/fiscal-printers | src/main/java/name/prokop/bart/fps/drivers/ElzabMera.java | 6,290 | /**
* Sterownik do drukarki ELZAB MERA
*
* @author Bart
*/ | block_comment | pl | /*
* 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... |
35859_3 | /*
* 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... | dawidtelepski/fiscal-printers | src/main/java/name/prokop/bart/fps/drivers/ElzabMera.java | 6,290 | // Koniec wszystkich pozycji sprzedaży | line_comment | pl | /*
* 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... |
35859_4 | /*
* 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... | dawidtelepski/fiscal-printers | src/main/java/name/prokop/bart/fps/drivers/ElzabMera.java | 6,290 | /**
* Sprawdzenie gotowości do pracy
*
* @return drukarka gotowa do wydruku paragonu
* @throws FiscalPrinterException
*/ | block_comment | pl | /*
* 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... |
35859_10 | /*
* 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... | dawidtelepski/fiscal-printers | src/main/java/name/prokop/bart/fps/drivers/ElzabMera.java | 6,290 | /**
* Wysyła linijkę paragonu do drukarki
*
* @param slipLine linijka paragonu
* @throws FiscalPrinterException
*/ | block_comment | pl | /*
* 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... |
35860_0 | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze wykorzystujemy klasę CompanyService do udostępni... | ivanlougan/Job_Offers_Layered_System | src/main/java/com/jobs/CrudApi/company/CompanyController.java | 738 | // W kontrolerze wykorzystujemy klasę CompanyService do udostępnienia danych na temat firmy oraz jej ofert pracy. | line_comment | pl | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze <SUF>
// Metoda getCompanyOffers() ma dosyć rozb... |
35860_1 | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze wykorzystujemy klasę CompanyService do udostępni... | ivanlougan/Job_Offers_Layered_System | src/main/java/com/jobs/CrudApi/company/CompanyController.java | 738 | // Metoda getCompanyOffers() ma dosyć rozbudowany typ zwracany, ponieważ mamy tutaj do czynienia z ciekawą sytuacją. | line_comment | pl | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze wykorzystujemy klasę CompanyService do udostępni... |
35860_2 | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze wykorzystujemy klasę CompanyService do udostępni... | ivanlougan/Job_Offers_Layered_System | src/main/java/com/jobs/CrudApi/company/CompanyController.java | 738 | // Z założenia zwraca ona listę ofert pracy w danej firmie. Kolekcja może być pusta, więc zwrócenie jej z kodem 200 jest jak najbardziej ok. | line_comment | pl | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze wykorzystujemy klasę CompanyService do udostępni... |
35860_3 | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze wykorzystujemy klasę CompanyService do udostępni... | ivanlougan/Job_Offers_Layered_System | src/main/java/com/jobs/CrudApi/company/CompanyController.java | 738 | // Gorzej jeżeli próbujemy pobrać oferty pracy nieistniejącej firmy. W takiej sytuacji powinniśmy zwrócić kod 404. | line_comment | pl | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze wykorzystujemy klasę CompanyService do udostępni... |
35860_4 | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze wykorzystujemy klasę CompanyService do udostępni... | ivanlougan/Job_Offers_Layered_System | src/main/java/com/jobs/CrudApi/company/CompanyController.java | 738 | // Z tego powodu tak złożony typ zwracany ResponseEntity<List<CompanyJobOfferDto>>. | line_comment | pl | package com.jobs.CrudApi.company;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import java.net.URI;
import java.util.List;
// W kontrolerze wykorzystujemy klasę CompanyService do udostępni... |
35862_1 | /*
* 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... | dawidtelepski/fiscal-printers | src/main/java/name/prokop/bart/fps/drivers/ElzabOmega2.java | 5,699 | /**
* Sterownik do drukarki Omega II generacji (sprzedawanych od 1 lipca 2001 roku)
* i MERA
*
* @author Bart
*/ | block_comment | pl | /*
* 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... |
35862_3 | /*
* 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... | dawidtelepski/fiscal-printers | src/main/java/name/prokop/bart/fps/drivers/ElzabOmega2.java | 5,699 | //fp.print(Slip.getTestSlip()); - na razie brak rabatów | line_comment | pl | /*
* 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... |
35862_4 | /*
* 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... | dawidtelepski/fiscal-printers | src/main/java/name/prokop/bart/fps/drivers/ElzabOmega2.java | 5,699 | // Koniec wszystkich pozycji sprzedaży | line_comment | pl | /*
* 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... |
35868_0 | public class Ksiegarnia {
public static void main(String[] args) {
Ksiazka lokomotywa = new Ksiazka();
lokomotywa.tytul = "Lokomotywa";
lokomotywa.autor = "Julian Tuwim";
lokomotywa.ustawCene(29.99);
System.out.println(lokomotywa);
// zakomenotwane, poniewaz te linie powoduja blad kompilacj... | przemyslaw-kruglej/kursjava_przyklady | Rozdzial_09__Klasy/Ksiegarnia.java | 353 | // zakomenotwane, poniewaz te linie powoduja blad kompilacji | line_comment | pl | public class Ksiegarnia {
public static void main(String[] args) {
Ksiazka lokomotywa = new Ksiazka();
lokomotywa.tytul = "Lokomotywa";
lokomotywa.autor = "Julian Tuwim";
lokomotywa.ustawCene(29.99);
System.out.println(lokomotywa);
// zakomenotwane, poniewaz <SUF>
// nie mozna odnosic ... |
35868_1 | public class Ksiegarnia {
public static void main(String[] args) {
Ksiazka lokomotywa = new Ksiazka();
lokomotywa.tytul = "Lokomotywa";
lokomotywa.autor = "Julian Tuwim";
lokomotywa.ustawCene(29.99);
System.out.println(lokomotywa);
// zakomenotwane, poniewaz te linie powoduja blad kompilacj... | przemyslaw-kruglej/kursjava_przyklady | Rozdzial_09__Klasy/Ksiegarnia.java | 353 | // nie mozna odnosic sie do prywatnych pol i metod klasy | line_comment | pl | public class Ksiegarnia {
public static void main(String[] args) {
Ksiazka lokomotywa = new Ksiazka();
lokomotywa.tytul = "Lokomotywa";
lokomotywa.autor = "Julian Tuwim";
lokomotywa.ustawCene(29.99);
System.out.println(lokomotywa);
// zakomenotwane, poniewaz te linie powoduja blad kompilacj... |
35868_3 | public class Ksiegarnia {
public static void main(String[] args) {
Ksiazka lokomotywa = new Ksiazka();
lokomotywa.tytul = "Lokomotywa";
lokomotywa.autor = "Julian Tuwim";
lokomotywa.ustawCene(29.99);
System.out.println(lokomotywa);
// zakomenotwane, poniewaz te linie powoduja blad kompilacj... | przemyslaw-kruglej/kursjava_przyklady | Rozdzial_09__Klasy/Ksiegarnia.java | 353 | // lokomotywa.cena = -10; | line_comment | pl | public class Ksiegarnia {
public static void main(String[] args) {
Ksiazka lokomotywa = new Ksiazka();
lokomotywa.tytul = "Lokomotywa";
lokomotywa.autor = "Julian Tuwim";
lokomotywa.ustawCene(29.99);
System.out.println(lokomotywa);
// zakomenotwane, poniewaz te linie powoduja blad kompilacj... |
35877_2 | package model.baseNodes;
import model.Node;
import model.Program;
import model.tokenNode.TokenNode;
import java.util.Random;
public class WhileLoop extends Node {
public WhileLoop(Node parentNode, String name, boolean isCrossable, Program program) {
super(parentNode, name, isCrossable, program);
... | Pandoors/TinyGP | src/main/java/model/baseNodes/WhileLoop.java | 642 | // TODO: nie powinniśmy pozwalać na puste pętle | line_comment | pl | package model.baseNodes;
import model.Node;
import model.Program;
import model.tokenNode.TokenNode;
import java.util.Random;
public class WhileLoop extends Node {
public WhileLoop(Node parentNode, String name, boolean isCrossable, Program program) {
super(parentNode, name, isCrossable, program);
... |
35878_0 | package pl.honestit.demos.spring.model.entities;
import lombok.*;
import pl.honestit.demos.spring.model.entities.base.ParentEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Objects;
@Entity
@Table(name = "exampl... | honestit/spring-transitions | spring-with-heroku/src/main/java/pl/honestit/demos/spring/model/entities/ChildEntity.java | 489 | /*
Przy metodzie toString należy uważać, bo nie powinniśmy w niej
uwzględniać pól mnogich (kolekcji) ani pól, które są typu innych encji
*/ | block_comment | pl | package pl.honestit.demos.spring.model.entities;
import lombok.*;
import pl.honestit.demos.spring.model.entities.base.ParentEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Objects;
@Entity
@Table(name = "exampl... |
35878_1 | package pl.honestit.demos.spring.model.entities;
import lombok.*;
import pl.honestit.demos.spring.model.entities.base.ParentEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Objects;
@Entity
@Table(name = "exampl... | honestit/spring-transitions | spring-with-heroku/src/main/java/pl/honestit/demos/spring/model/entities/ChildEntity.java | 489 | /*
Metody equals i hashCode nadpisujemy w encjach zawsze ręcznie, z dużą
ostrożnością. Wybieramy do nich tylko pola, które:
- są unikalne
- nie mogą przyjmować wartości null
- nie zmieniają się w czasie życia rekordu (instancji encji)
Przykładem takiego pola może być pole username reprezentując... | block_comment | pl | package pl.honestit.demos.spring.model.entities;
import lombok.*;
import pl.honestit.demos.spring.model.entities.base.ParentEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Objects;
@Entity
@Table(name = "exampl... |
35882_0 | package part07.sub10;
import java.util.Objects;
/**
* Kontrakt dla hashCode
*
* - w jednym programie wartość nie może się zmieniać
*
* - jeśli x.equals(y) zwróci TRUE to x.hashCode() musi być równe y.hashCode()
*
* - jeśli x.equals(y) zwróci FALSE to x.hashCode() może ale nie musi być równe y.hashCode()
... | p-pawel/java-school | przyklady/src/part07/sub10/ObjectHashCode.java | 617 | /**
* Kontrakt dla hashCode
*
* - w jednym programie wartość nie może się zmieniać
*
* - jeśli x.equals(y) zwróci TRUE to x.hashCode() musi być równe y.hashCode()
*
* - jeśli x.equals(y) zwróci FALSE to x.hashCode() może ale nie musi być równe y.hashCode()
* ( hashCode dla dwóch obiektów nie musi być... | block_comment | pl | package part07.sub10;
import java.util.Objects;
/**
* Kontrakt dla hashCode <SUF>*/
public class ObjectHashCode {
public static void main(String[] args) {
Osoba osoba1 = new Osoba("John", "Rambo", "111111111116");
Osoba osoba2 = new Osoba("Elton", "John", "111111111116");
System.out.pri... |
35883_0 | package pl.north93.northplatform.api.global.network.impl.players;
import java.util.function.Consumer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import pl.north93.northplatform.api.global.network.players.IPlayer;
import pl.north93.northplatform.api... | northpl93/NorthPlatform | Sources/API/src/main/java/pl/north93/northplatform/api/global/network/impl/players/PlayerTransactionImpl.java | 597 | // jesli zostanie rzucony wyjątek w callbacku to i tak powinniśmy zwolnić | line_comment | pl | package pl.north93.northplatform.api.global.network.impl.players;
import java.util.function.Consumer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import pl.north93.northplatform.api.global.network.players.IPlayer;
import pl.north93.northplatform.api... |
35885_0 | package pl.coderslab.webexamplejeuw01.get.zad1;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Arrays;
imp... | rafalCL/WebExampleJeuW01 | src/main/java/pl/coderslab/webexamplejeuw01/get/zad1/Get2.java | 545 | // W projekcie stwórz servlet Get2, dostępny pod adresem /get2, który wyświetli listę przesłanych w zapytaniu (request) parametrów i ich wartość (niezależnie od liczby przesłanych parametrów). Wykorzystaj poniższy kod: | line_comment | pl | package pl.coderslab.webexamplejeuw01.get.zad1;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Arrays;
imp... |
35885_3 | package pl.coderslab.webexamplejeuw01.get.zad1;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Arrays;
imp... | rafalCL/WebExampleJeuW01 | src/main/java/pl/coderslab/webexamplejeuw01/get/zad1/Get2.java | 545 | //dla adresu: /get2?car=audi&user=john&age=33&user=mark powinniśmy otrzymać: | line_comment | pl | package pl.coderslab.webexamplejeuw01.get.zad1;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Arrays;
imp... |
35888_0 | package dev.jozefowicz.springsecurity.introduction;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
TODO
1. Stwórz nową klasę konfiguracyjną (rozszerzającą WebSecurityConfigurerAdapter)
2. Skonfiguruj nowe UserDetailsService dla jednego uż... | rjozefowicz/spring-security | day1/multiple-entry-points/src/main/java/dev/jozefowicz/springsecurity/introduction/MultipleEntryPointsApplication.java | 259 | /**
TODO
1. Stwórz nową klasę konfiguracyjną (rozszerzającą WebSecurityConfigurerAdapter)
2. Skonfiguruj nowe UserDetailsService dla jednego użytkownika (np admin-jan/admin00)
3. Skonfiguruj Security dla ścieżek /admin/** jako http basic
4. Ustaw odpowiednią kolejność klas WebSecurityConfigurerAdapter (adnotacja @... | block_comment | pl | package dev.jozefowicz.springsecurity.introduction;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
TODO
1. <SUF>*/
@SpringBootApplication
public class MultipleEntryPointsApplication {
public static void main(String[] args) {
SpringAppl... |
35892_0 | package com.isa.registration;
import com.isa.data.JsonData;
import com.isa.user.Login;
import com.isa.user.User;
import java.util.List;
import java.util.Scanner;
public class Registration {
private static String firstName;
private static String lastName;
private static String login;
private static St... | infoshareacademy/JJDZR12-TheMavenFunners | task-tracker-console-application/src/main/java/com/isa/registration/Registration.java | 795 | // Tu powinniśmy podać kryteria walidacji hasła, np. minimalna długość, wymagane znaki, etc. | line_comment | pl | package com.isa.registration;
import com.isa.data.JsonData;
import com.isa.user.Login;
import com.isa.user.User;
import java.util.List;
import java.util.Scanner;
public class Registration {
private static String firstName;
private static String lastName;
private static String login;
private static St... |
35895_0 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/LongbreakCandidateFactory.java | 591 | /**
* Fabryka osobników będących modelami typu longbreak ze zmienną szerokością
* Data utworzenia: 11.03.16, 14:48
*
* @author Michał Toporowski
*/ | block_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35895_1 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/LongbreakCandidateFactory.java | 591 | // N długości + N-1 szerokości | line_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35895_2 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/LongbreakCandidateFactory.java | 591 | // Losujemy odległości z [0, totalLength] | line_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35895_3 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/LongbreakCandidateFactory.java | 591 | // TODO:: może powinniśmy to jakoś uzmiennić? Jako parametr algorytmu? | line_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35895_4 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/LongbreakCandidateFactory.java | 591 | /*
Założenie: szerokości pasków w zakresie (0, 3w]
*/ | block_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35896_0 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/ShortbreakCandidateFactory.java | 589 | /**
* Fabryka osobników typu Shortbreak
* Data utworzenia: 26.02.16, 10:18
*
* @author Michał Toporowski
*/ | block_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35896_1 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/ShortbreakCandidateFactory.java | 589 | // Losujemy odległości z [0, totalLength] | line_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35896_2 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/ShortbreakCandidateFactory.java | 589 | // TODO:: może powinniśmy to jakoś uzmiennić? Jako parametr algorytmu? | line_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35896_3 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/ShortbreakCandidateFactory.java | 589 | /*
Założenie: szerokości miejsc nieciągłości są mniejsze od szerokości właściwego przewodu
losujemy z przedziału [0, w)
*/ | block_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35896_4 | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... | siekiera/cevolver | src/main/java/pl/edu/pw/elka/mtoporow/cevolver/algorithm/parts/ShortbreakCandidateFactory.java | 589 | // N długości + N szerokości | line_comment | pl | package pl.edu.pw.elka.mtoporow.cevolver.algorithm.parts;
import org.apache.commons.math3.linear.RealVector;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.DataHolder;
import pl.edu.pw.elka.mtoporow.cevolver.algorithm.datasets.MeasurementParams;
import pl.edu.pw.elka.mtoporow.cevolver.lib.model.AbstractCan... |
35898_0 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... | kplichta-pjwstk/students | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 511 | //Definujemy specjalny rodzaj beana, który pozwoli nam obsługiwać wyjątki i tłumaczyć je | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... |
35898_1 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... | kplichta-pjwstk/students | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 511 | //na kody http. Żeby dać znać Springowi, że ten bean będzie się tym zajmował korzystamy z adnotacji: @ControllerAdvice | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... |
35898_2 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... | kplichta-pjwstk/students | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 511 | //Kluczowa adnotacja nad metodą to @ExceptionHandler - informuje springa | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... |
35898_3 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... | kplichta-pjwstk/students | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 511 | //jakie klasy wyjątków mają zostać obsłużone w tej metodzie | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... |
35898_4 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... | kplichta-pjwstk/students | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 511 | //Aby możemy zdefiniować reakcję na wyjątek jak poniżej ustawiając treść body | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... |
35898_5 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... | kplichta-pjwstk/students | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 511 | //odpowiedzi oraz jej status przez adnotacje | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... |
35898_6 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... | kplichta-pjwstk/students | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 511 | // Zakomentowana alternatywna wersja tego zapisu - dla jednego Exceptiona powinniśmy mieć | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... |
35898_7 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... | kplichta-pjwstk/students | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 511 | // jeden exception handler a więc jeśli chcecie korzystać z metody poniżej musicie zakomentować metodę powyżej | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotati... |
35902_0 | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... | p-karbownik/spdb | src/main/java/pl/edu/pw/spdb/dal/DatabaseServiceImpl.java | 2,269 | /***
* Funkcja która przygotowuje zapytanie pod wyszukanie nakrótszej trasy - zamienia znaki zapytania z FIND_ROUTE_SQL
* na odpowiednie wartości podane przy jej wywołaniu
* @param startId - id punktu startu
* @param endId - id punktu końcowego
* @param maxSpeed - maksymalna prędkość pojazdu
... | block_comment | pl | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... |
35902_1 | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... | p-karbownik/spdb | src/main/java/pl/edu/pw/spdb/dal/DatabaseServiceImpl.java | 2,269 | /***
* Funkcja parsuje jeden rekord z ResultSet otrzymanego po wykonaniu zapytania FIND_ROTE_SQL na RouteSegment -
* wyciąga porzebne informacje oraz oblicza długość segmentu w km
* @param result - rekord otrzymany z zaytania
* @return RouteSegment
*/ | block_comment | pl | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... |
35902_2 | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... | p-karbownik/spdb | src/main/java/pl/edu/pw/spdb/dal/DatabaseServiceImpl.java | 2,269 | /***
* Funkcja zwraca połączenie z bazą danych
* @return java.sql.Connection
*/ | block_comment | pl | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... |
35902_3 | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... | p-karbownik/spdb | src/main/java/pl/edu/pw/spdb/dal/DatabaseServiceImpl.java | 2,269 | /***
* Funkcja wyszukująca początek lub koniec trasy na podstawie punktu, parametr isStartPoin pozwala nam określić
* którego zapytania powinniśmy użyć - NEAREST_START_ID_SQL czy NEAREST_END_ID_SQL
* @param point - punkt wbrany w GUI po którym wyszukujemy najbliższego początku trasy
* @param isStar... | block_comment | pl | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... |
35902_4 | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... | p-karbownik/spdb | src/main/java/pl/edu/pw/spdb/dal/DatabaseServiceImpl.java | 2,269 | /***
* Funkcja wyszukująca najlepszą trasę dla zadanych parametrów przy użyciu zdefiniowanego wsześniej zapytania FIND_ROUTE_SQL
* @param startId - id punktu początkowego
* @param endId - id punktu końcowego
* @param maxSpeed - maksymalna prędkość pojazdu
* @param distanceWeight - waga wpływają... | block_comment | pl | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... |
35902_5 | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... | p-karbownik/spdb | src/main/java/pl/edu/pw/spdb/dal/DatabaseServiceImpl.java | 2,269 | /***
* Funkcja wykonująca przygotowane zapytanie - jej zadaniem jest także zmierzenie czasu potrzebnego do wykonania
* okreslonego zapytania
* @param statement - przygotowane zapytanie
* @return ResultSet - wynik wykonania zapytania SQL
*/ | block_comment | pl | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... |
35902_6 | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... | p-karbownik/spdb | src/main/java/pl/edu/pw/spdb/dal/DatabaseServiceImpl.java | 2,269 | /***
* Funkcja której zadaniem jest przeparsować otrzymane wyniki z wykonania zapytania FIND_ROUTE_SQL
* @param result - wynik otrzymany z bazy
* @param maxSpeed - maksymalna prędkość pojazdu, potrzebna do wyliczenia czasu potrzebnego na pokonanie odcinka drogi
* @return Route - klasa zawierająca in... | block_comment | pl | package pl.edu.pw.spdb.dal;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import pl.edu.pw.spdb.model.Point;
import pl.edu.pw.spdb.model.Route;
import pl.edu.pw.spdb.model.RouteSegm... |
35904_0 | package pl.sdacademy.java.hibernate.workshop11;
import jakarta.persistence.EntityManager;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.Persistence;
import pl.sdacademy.java.hibernate.common.sakila.Country;
import pl.sdacademy.java.hibernate.utils.ApplicationPropertiesProvider;
import ja... | AdrianSzydlowski/sda-zdjava124 | hibernate/src/main/java/pl/sdacademy/java/hibernate/workshop11/Workshop11.java | 639 | /*
Przygotuj metodę usuwającą kraj według podanego id, zwracającą true jeśli istniał i false jeśli nie (find(...) zwróci null).
Użyj EntityManager.remove(...) na zarządzanym obiekcie.
Obsłuż wyjątek PersistenceException – np. wycofanie transakcji i rzucenie wyjątku dalej.
Przetestuj następujące scena... | block_comment | pl | package pl.sdacademy.java.hibernate.workshop11;
import jakarta.persistence.EntityManager;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.Persistence;
import pl.sdacademy.java.hibernate.common.sakila.Country;
import pl.sdacademy.java.hibernate.utils.ApplicationPropertiesProvider;
import ja... |
35904_1 | package pl.sdacademy.java.hibernate.workshop11;
import jakarta.persistence.EntityManager;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.Persistence;
import pl.sdacademy.java.hibernate.common.sakila.Country;
import pl.sdacademy.java.hibernate.utils.ApplicationPropertiesProvider;
import ja... | AdrianSzydlowski/sda-zdjava124 | hibernate/src/main/java/pl/sdacademy/java/hibernate/workshop11/Workshop11.java | 639 | // Nie powinniśmy wychodzić z metody w trakcie otwartej transakcji! | line_comment | pl | package pl.sdacademy.java.hibernate.workshop11;
import jakarta.persistence.EntityManager;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.Persistence;
import pl.sdacademy.java.hibernate.common.sakila.Country;
import pl.sdacademy.java.hibernate.utils.ApplicationPropertiesProvider;
import ja... |
35906_0 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... | MaksymilianGalas/projektMPR | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 679 | //Definujemy specjalny rodzaj beana, który pozwoli nam obsługiwać wyjątki i tłumaczyć je | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... |
35906_1 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... | MaksymilianGalas/projektMPR | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 679 | //na kody http. Żeby dać znać Springowi, że ten bean będzie się tym zajmował korzystamy z adnotacji: @ControllerAdvice | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... |
35906_2 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... | MaksymilianGalas/projektMPR | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 679 | //Kluczowa adnotacja nad metodą to @ExceptionHandler - informuje springa | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... |
35906_3 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... | MaksymilianGalas/projektMPR | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 679 | //jakie klasy wyjątków mają zostać obsłużone w tej metodzie | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... |
35906_4 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... | MaksymilianGalas/projektMPR | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 679 | //Aby możemy zdefiniować reakcję na wyjątek jak poniżej ustawiając treść body | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... |
35906_5 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... | MaksymilianGalas/projektMPR | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 679 | //odpowiedzi oraz jej status przez adnotacje | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... |
35906_6 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... | MaksymilianGalas/projektMPR | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 679 | // Zakomentowana alternatywna wersja tego zapisu - dla jednego Exceptiona powinniśmy mieć | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... |
35906_7 | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... | MaksymilianGalas/projektMPR | src/main/java/com/example/students/exception/ExceptionResponseControllerAdvice.java | 679 | // jeden exception handler a więc jeśli chcecie korzystać z metody poniżej musicie zakomentować metodę powyżej | line_comment | pl | package com.example.students.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBo... |
35907_0 | package com.projects.ams.rest;
import com.projects.ams.model.domain.User;
import com.projects.ams.model.repositories.UserRepository;
import com.projects.ams.rest.converters.UserConverter;
import com.projects.ams.rest.request.CreateUserRequest;
import org.springframework.http.HttpStatus;
import org.springframework.sec... | honestit/spring-intro-2021-03 | projects/ams/src/main/java/com/projects/ams/rest/UsersController.java | 1,015 | // Kontroler w stylu REST odwołuje się do zasobu, który obsługuje. | line_comment | pl | package com.projects.ams.rest;
import com.projects.ams.model.domain.User;
import com.projects.ams.model.repositories.UserRepository;
import com.projects.ams.rest.converters.UserConverter;
import com.projects.ams.rest.request.CreateUserRequest;
import org.springframework.http.HttpStatus;
import org.springframework.sec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.