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
7108_102
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// Wstawianie kontrolek do ramki frame, a ściślej do panelu jaki
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...
7108_103
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// jest wstawiony do ramki frame. Ramka jako taka zawieraj jeszcze
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...
7108_104
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// różne "dekoracje" - czyli np. ikonki, tytuł okienka, ...
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...
7108_105
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// Dopasowujemy do siebie rozmiaru elementów (tak aby każdy był
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...
7108_106
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// nie mniejszy niż preferowana wielkość) i pokazywanie/uruchamianie
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...
7108_107
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
/** * Ustalanie look-and-feel (tzw. laf), czyli jaki mają wygladać kontrolki - * czy mają przypominać te znane z MS Windows, czy raczej takie jakie są na * komputerach Apple, czy może jeszcze inne?! */
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...
7108_108
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// Tablica zawierająca preferowane i tablica zawierające dostępne LaF.
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...
7108_109
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// Są one final, bo nie będą modyfikowane po utworzeniu.
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...
7108_110
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// @todo: dopisać więcej
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...
7108_111
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// Negocjowanie jaki LaF ma być użyty - ponieważ dostępnych LaF jest
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...
7108_112
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// niewiele (kilka, może kilkanaście) i niewiele jest preferowanych LaF
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...
7108_113
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// - to użycie dwóch pętli for (jak poniżej) nie jest aż tak złe... jak
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...
7108_114
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// mogłoby się to wydawać. Przechwytywanie wyjątków (try-catch) jest
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...
7108_115
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// konieczne, ale - poza odnotowaniem że coś się dzieje - nie wymaga
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...
7108_116
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// szczególnych kroków - w najgorszym razie nic się nie uda i pozostanie
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...
7108_117
/* * 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
mousepaint/src/mousepaint/MousePaint.java
5,125
// standardowy wygląd kontrolek - co jest dobrym rozwiązaniem.
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...
7109_2
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
//Wektor wierzchołków w grafie
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_3
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
/** * Funkcja dodająca do grafu nową krawędź nieskierowaną, łączącą wierzchołki b i e oraz zawierająca dodatkowe * informację przekazywane przez zmienną d. * Krawędź nieskierowana jest reprezentowana przez dwie krawędzie skierowane - jedną prowadzącą z wierzchołka b do e * oraz drugą z e do b. ...
block_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_4
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
//System.out.println("@Debug: tworze krawedz b, e: " + b + " " + e);
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_5
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
/** * Funkcja dodająca do grafu nową krawędź skierowaną z wierzchołka b do e, * zawierającą dodatkowe informacje określone przez zmienną d. */
block_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_6
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Dla kazdego wierzcholka w grafie ustawiana jest poczatkowa wartosc zmiennych
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_7
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// t oraz s na -1. zrodlo wyszukiwania ma czas rowny 0
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_8
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Algorytm BFS jest realizowany przy uzyciu kolejki FIFO, do ktorej wstawiane
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_9
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// sa kolejne wierzcholki oczekujace na przetworzenie
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_10
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Do kolejki wstawione zostaje zrodlo
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_11
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Dopoki w kolejce sa jakies wierzcholki...
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_12
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Dla kazdej krawedzi wychodzacej z aktualnie przetwarzanego wierzcholka,
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_13
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// jesli wierzcholek, do ktorego ona prowadzi, nie byl jeszcze wstawiony do
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_14
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// kolejki, wstaw go i wyznacz wartosci zmiennych int t i int s
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_15
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
//Wypisz wynik bfs
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_16
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
/** * Przeszukiwanie grafu w głąb: * Aktualizuje dany graf o czas wejścia czas wyjścia i numer ojca w lesie dsf * * @param e numer wierzchołka od którego rozpoczynamy algorytm dsf */
block_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_17
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Dla wszystkich wierzcholkow z przedzialu [b..e], jesli wierzcholek nie byl
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_18
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Wstaw wierzcholek na stos i ustaw dla niego odpowiedni czas wejscia.
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_19
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Zmienna f wierzcholka sluzy tymczasowo jako licznik nieprzetworzonych
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_20
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// krawedzi wychodzacych z wierzcholka
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_22
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Dopoki stos jest niepusty...
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_25
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Przetworz kolejna krawedz wychodzaca z biezacego wierzcholka lub usun go
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_26
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// ze stosu (gdy nie ma juz wiecej krawedzi)
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_27
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Jesli wierzcholek, do ktorego prowadzi krawedz, nie byl jeszcze odwiedzony, to...
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_29
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Ustaw numer wierzcholka-ojca w drzewie DFS oraz ustaw liczbe nieprzetworzonych
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_30
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// krawedzi wychodzacych z wierzcholka
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_31
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
//nowy stary :) w sensie ze nowy ojciec w dfs
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_32
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
//nowa zmienna wyjścia z węzła która okresla ile trzeba nodów przerobic
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_33
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
// Wstaw wierzcholek na stos i ustaw czas wejscia
line_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_34
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
/** * Klasa reprezentująca krawędź wychodzącą z danego wierzchołka. */
block_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_35
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
/** * @return wierzchołek do którego prowadzi dana krawędź */
block_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_36
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
/** * Klasa reprezentująca wierzchołki w grafie. * Wierzchołek skłąda się z numeru i krawędzi do których można się z niego dostać. */
block_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_37
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
/** * @return ojciec w drzewie przeszukiwania */
block_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7109_38
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
gotoco/AlgorithmsChallanges
java/src/graphs/Graph.java
3,138
/** * @return odległość od wierzchołka przeszukiwania. */
block_comment
pl
package graph; import java.util.ArrayList; import java.util.List; import java.util.Vector; /** * Author: Maciej Grochowski * Contact: mgrochowski@ubirds.eu * Date: 11/8/13 * Time: 3:28 PM * <p/> * This code is a uBirds company property. */ /** * @param <V> vertex class * @param <E> edge class */ public cl...
7117_1
package lekcja6.tekst; import java.util.Arrays; class StringLesson { /** * @formatter:off * * Stringi: * - indexOf, lastIndexOf * - charAt * - substring * - Concatenation: concat oraz + * - format * - join * - replace * - split * - trim ...
AnatomiaKodu/java-od-zera
src/lekcja6/tekst/StringLesson.java
1,789
// start index włącznie, endIndex Wyłącznie
line_comment
pl
package lekcja6.tekst; import java.util.Arrays; class StringLesson { /** * @formatter:off * * Stringi: * - indexOf, lastIndexOf * - charAt * - substring * - Concatenation: concat oraz + * - format * - join * - replace * - split * - trim ...
7130_0
package Tasks; import Common.Print; import Common.User; public class Task_04 { public static void run_task_04() { Print.println("Zadanie 4. Porównaj dwa stringi:"); Print.println("Podaj pierwszy String:"); String str1 = User.get_line(); Print.println("Podaj drugi String:"); ...
s26766-pj/portfolio
POJ/zjazd2/Tasks/Task_04.java
192
// mój intelliJ odradza mi użycia str1==str2
line_comment
pl
package Tasks; import Common.Print; import Common.User; public class Task_04 { public static void run_task_04() { Print.println("Zadanie 4. Porównaj dwa stringi:"); Print.println("Podaj pierwszy String:"); String str1 = User.get_line(); Print.println("Podaj drugi String:"); ...
7133_0
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
Mefjuu94/Projekty
Transfer/Sender/src/FileTransfer.java
633
//"192.168.0.106"; mój komp
line_comment
pl
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
7133_2
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
Mefjuu94/Projekty
Transfer/Sender/src/FileTransfer.java
633
// Odczyt pliku z nadawcy
line_comment
pl
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
7133_3
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
Mefjuu94/Projekty
Transfer/Sender/src/FileTransfer.java
633
// Ustanowienie połączenia z odbiorcą
line_comment
pl
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
7133_4
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
Mefjuu94/Projekty
Transfer/Sender/src/FileTransfer.java
633
// Uzyskanie strumienia wejściowego i wyjściowego
line_comment
pl
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
7133_5
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
Mefjuu94/Projekty
Transfer/Sender/src/FileTransfer.java
633
// Wysyłanie rozmiaru pliku
line_comment
pl
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
7133_6
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
Mefjuu94/Projekty
Transfer/Sender/src/FileTransfer.java
633
// Wysyłanie danych pliku
line_comment
pl
import javax.swing.*; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Socket; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; public class FileTransfer { Panel panel; ...
7135_1
package opp.task04; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Objects; import java.util.Set; import java.util.function.Consumer; import java.util.function.Predicate; import java.util.function.Supplier; import java.util.stream.Collectors; import lombok.AllArgsConstruc...
SzestKam/SdaAdvace126
src/main/java/opp/task04/ListRunner.java
820
// bezpośrednie implementowanie interfejsu funkcyjnego
line_comment
pl
package opp.task04; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Objects; import java.util.Set; import java.util.function.Consumer; import java.util.function.Predicate; import java.util.function.Supplier; import java.util.stream.Collectors; import lombok.AllArgsConstruc...
7139_0
package basicsJava.practice; import java.util.Scanner; /* Napisz program, który „się jąka”, to znaczy pobiera użytkownika tekst (zmienną typu String), a następnie wypisuje podany tekst, w którym każde słowo wypisane jest po dwa razy. Przykładowo, dla wejścia: „To jest mój test” program powinien wypisać „To To ...
Igor-Shishkin/courseSDA
src/main/java/basicsJava/practice/StutteringProgram.java
440
/* Napisz program, który „się jąka”, to znaczy pobiera użytkownika tekst (zmienną typu String), a następnie wypisuje podany tekst, w którym każde słowo wypisane jest po dwa razy. Przykładowo, dla wejścia: „To jest mój test” program powinien wypisać „To To jest jest mój mój test test”. */
block_comment
pl
package basicsJava.practice; import java.util.Scanner; /* Napisz program, który <SUF>*/ public class StutteringProgram { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Enter text:"); String text = in.nextLine().trim(); ...
7142_0
package mediator.employees; public class CEO extends EmployeeBase { public CEO(String name) { super(name); } //Indywidualna "odpowiedź" klasy na requesty przekazywane przez mediator. @Override protected String reactToRequest(String msg) { return "Idc :/"; } //CEO inaczej ...
dehydrogenaza/design-patterns-examples
src/main/java/mediator/employees/CEO.java
291
//Indywidualna "odpowiedź" klasy na requesty przekazywane przez mediator.
line_comment
pl
package mediator.employees; public class CEO extends EmployeeBase { public CEO(String name) { super(name); } //Indywidualna "odpowiedź" <SUF> @Override protected String reactToRequest(String msg) { return "Idc :/"; } //CEO inaczej odpowiada na "critical request" - pozosta...
7142_1
package mediator.employees; public class CEO extends EmployeeBase { public CEO(String name) { super(name); } //Indywidualna "odpowiedź" klasy na requesty przekazywane przez mediator. @Override protected String reactToRequest(String msg) { return "Idc :/"; } //CEO inaczej ...
dehydrogenaza/design-patterns-examples
src/main/java/mediator/employees/CEO.java
291
//CEO inaczej odpowiada na "critical request" - pozostałe klasy dziedziczą metodę po klasie bazowej.
line_comment
pl
package mediator.employees; public class CEO extends EmployeeBase { public CEO(String name) { super(name); } //Indywidualna "odpowiedź" klasy na requesty przekazywane przez mediator. @Override protected String reactToRequest(String msg) { return "Idc :/"; } //CEO inaczej ...
7142_2
package mediator.employees; public class CEO extends EmployeeBase { public CEO(String name) { super(name); } //Indywidualna "odpowiedź" klasy na requesty przekazywane przez mediator. @Override protected String reactToRequest(String msg) { return "Idc :/"; } //CEO inaczej ...
dehydrogenaza/design-patterns-examples
src/main/java/mediator/employees/CEO.java
291
//Metoda charakterystyczna tylko dla klasy CEO. Warto pamiętać, że nie możemy z niej korzystać posługując się typem
line_comment
pl
package mediator.employees; public class CEO extends EmployeeBase { public CEO(String name) { super(name); } //Indywidualna "odpowiedź" klasy na requesty przekazywane przez mediator. @Override protected String reactToRequest(String msg) { return "Idc :/"; } //CEO inaczej ...
7142_3
package mediator.employees; public class CEO extends EmployeeBase { public CEO(String name) { super(name); } //Indywidualna "odpowiedź" klasy na requesty przekazywane przez mediator. @Override protected String reactToRequest(String msg) { return "Idc :/"; } //CEO inaczej ...
dehydrogenaza/design-patterns-examples
src/main/java/mediator/employees/CEO.java
291
// EmployeeBase (trzeba rzutować na CEO).
line_comment
pl
package mediator.employees; public class CEO extends EmployeeBase { public CEO(String name) { super(name); } //Indywidualna "odpowiedź" klasy na requesty przekazywane przez mediator. @Override protected String reactToRequest(String msg) { return "Idc :/"; } //CEO inaczej ...
7145_1
/* LanguageTool, a natural language style checker * Copyright (C) 2005 Daniel Naber (http://www.danielnaber.de) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2...
gulp21/languagetool
languagetool-language-modules/pl/src/main/java/org/languagetool/rules/pl/PolishWordRepeatRule.java
1,228
/** * @author Marcin Miłkowski */
block_comment
pl
/* LanguageTool, a natural language style checker * Copyright (C) 2005 Daniel Naber (http://www.danielnaber.de) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2...
7146_0
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na stronę bez certyfikatu SS...
bojan-wik/SeleniumWithJavaCourse
src/Chapter13_SeleniumExcercises5/HTTPSCertificates.java
726
/** * Zadanie: wejść na stronę bez certyfikatu SSL (http) i zaakceptować ten brak certyfikatu, tak aby przejść do właściwej strony, * żeby móc kontynuować testy. */
block_comment
pl
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na <SUF>*/ public class HTTP...
7146_1
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na stronę bez certyfikatu SS...
bojan-wik/SeleniumWithJavaCourse
src/Chapter13_SeleniumExcercises5/HTTPSCertificates.java
726
/** * Muszę dodać konkretne capabilities do przeglądarki Chrome. * Najpier tworzę instancję klasy DesiredCapabilities, która dzięki metodzie chrome() pozwoli mi customizować przeglądarke Chrome. * Potem na tym obiekcie wywoułuję metode acceptInsecureCerts(), która stanowi capability, o które...
block_comment
pl
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na stronę bez certyfikatu SS...
7146_2
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na stronę bez certyfikatu SS...
bojan-wik/SeleniumWithJavaCourse
src/Chapter13_SeleniumExcercises5/HTTPSCertificates.java
726
/** * Tworzę instancję klasy ChromeOptions (która pozwala na tworzenie lokalnych ustawień dla Chrome) * i potem za pomocą metody merge() 'domergowuję' wcześniej zdefiniowane capabilities - * żeby Chrome akceptował insecure certs */
block_comment
pl
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na stronę bez certyfikatu SS...
7146_3
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na stronę bez certyfikatu SS...
bojan-wik/SeleniumWithJavaCourse
src/Chapter13_SeleniumExcercises5/HTTPSCertificates.java
726
/** * Potem po staremu definuję co zawsze, z tą różnicą, że przy tworzeniu instancj klasy WebDriver, w metodzie ChromeDriver() jako parametr * podaję obiekt klasy ChromeOptions (moje lokalne ustawienia dla Chrome) */
block_comment
pl
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na stronę bez certyfikatu SS...
7146_4
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na stronę bez certyfikatu SS...
bojan-wik/SeleniumWithJavaCourse
src/Chapter13_SeleniumExcercises5/HTTPSCertificates.java
726
/** * W tym momencie mój Chrome bez problemu otwiera mi też strony http, więc nie jestem w stanie przetestować, jak działa to rozwiązanie */
block_comment
pl
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import java.util.concurrent.TimeUnit; /** * Zadanie: wejść na stronę bez certyfikatu SS...
7148_0
package pl.sages.shop; import pl.sages.klasy.Article; import pl.sages.kodolamacz.Employee; import java.util.*; public class Shop { String address; String[] products = generateProducts(); int[] quantities = {5, 10}; List<Employee> employeeList = new ArrayList<>(); Map<Article, Integer> articleMap...
bartektartanus/kodolamacz2017
src/main/java/pl/sages/shop/Shop.java
984
// sprawdzam czy mój artykuł jest w sklepie
line_comment
pl
package pl.sages.shop; import pl.sages.klasy.Article; import pl.sages.kodolamacz.Employee; import java.util.*; public class Shop { String address; String[] products = generateProducts(); int[] quantities = {5, 10}; List<Employee> employeeList = new ArrayList<>(); Map<Article, Integer> articleMap...
7148_2
package pl.sages.shop; import pl.sages.klasy.Article; import pl.sages.kodolamacz.Employee; import java.util.*; public class Shop { String address; String[] products = generateProducts(); int[] quantities = {5, 10}; List<Employee> employeeList = new ArrayList<>(); Map<Article, Integer> articleMap...
bartektartanus/kodolamacz2017
src/main/java/pl/sages/shop/Shop.java
984
// w javie 8 można już zrobić takie rzeczy:
line_comment
pl
package pl.sages.shop; import pl.sages.klasy.Article; import pl.sages.kodolamacz.Employee; import java.util.*; public class Shop { String address; String[] products = generateProducts(); int[] quantities = {5, 10}; List<Employee> employeeList = new ArrayList<>(); Map<Article, Integer> articleMap...
7148_3
package pl.sages.shop; import pl.sages.klasy.Article; import pl.sages.kodolamacz.Employee; import java.util.*; public class Shop { String address; String[] products = generateProducts(); int[] quantities = {5, 10}; List<Employee> employeeList = new ArrayList<>(); Map<Article, Integer> articleMap...
bartektartanus/kodolamacz2017
src/main/java/pl/sages/shop/Shop.java
984
// jak wchodzi zamówienie to na podstawie liczności z zamówienia
line_comment
pl
package pl.sages.shop; import pl.sages.klasy.Article; import pl.sages.kodolamacz.Employee; import java.util.*; public class Shop { String address; String[] products = generateProducts(); int[] quantities = {5, 10}; List<Employee> employeeList = new ArrayList<>(); Map<Article, Integer> articleMap...
7148_4
package pl.sages.shop; import pl.sages.klasy.Article; import pl.sages.kodolamacz.Employee; import java.util.*; public class Shop { String address; String[] products = generateProducts(); int[] quantities = {5, 10}; List<Employee> employeeList = new ArrayList<>(); Map<Article, Integer> articleMap...
bartektartanus/kodolamacz2017
src/main/java/pl/sages/shop/Shop.java
984
// chcemy zaktualizować stan magazynowy w sklepie (tab quantities)
line_comment
pl
package pl.sages.shop; import pl.sages.klasy.Article; import pl.sages.kodolamacz.Employee; import java.util.*; public class Shop { String address; String[] products = generateProducts(); int[] quantities = {5, 10}; List<Employee> employeeList = new ArrayList<>(); Map<Article, Integer> articleMap...
7150_0
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; /** * Jest problem z zaimportowaniem tej klasy - nie importuje automatycznie. Wchodzę ręczenie na https://comm...
bojan-wik/SeleniumWithJavaCourse
src/Chapter13_SeleniumExcercises5/DeleteCookiesAndTakeScreenshot.java
601
/** * Jest problem z zaimportowaniem tej klasy - nie importuje automatycznie. Wchodzę ręczenie na https://commons.apache.org/proper/commons-io/ * pobieram najnowszą, stabilną wersję biblioteki Commons IO i ręcznie dodaję pliki jar do projektu. */
block_comment
pl
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; /** * Jest problem z <SUF>*/ //import org.apache.commons.io.FileUtils; import java.io.File; import java.io.IO...
7150_1
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; /** * Jest problem z zaimportowaniem tej klasy - nie importuje automatycznie. Wchodzę ręczenie na https://comm...
bojan-wik/SeleniumWithJavaCourse
src/Chapter13_SeleniumExcercises5/DeleteCookiesAndTakeScreenshot.java
601
/** * Aby móc zrobić screenshot muszę skonwertować mój obiekt WebDriver (driver) na obiekt screenshot. W tym celu muszę użyć koncepcji * castowania obiektów. Tutaj castuję obiekt WebDriver (driver) na obiekt, który może robić screenshoty (TakesScreenshot). * Screenshot przechowuję w obiekcie ...
block_comment
pl
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; /** * Jest problem z zaimportowaniem tej klasy - nie importuje automatycznie. Wchodzę ręczenie na https://comm...
7150_2
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; /** * Jest problem z zaimportowaniem tej klasy - nie importuje automatycznie. Wchodzę ręczenie na https://comm...
bojan-wik/SeleniumWithJavaCourse
src/Chapter13_SeleniumExcercises5/DeleteCookiesAndTakeScreenshot.java
601
/** * Aby zapisać fizyczny plik na lokalnym dysku muszę skorzystać z klasy FileUtils. Podaję źródło pliku (obiekt klasy File - screenshotFile) * i jego destynację (adres na dysku lokalnym) */
block_comment
pl
package Chapter13_SeleniumExcercises5; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; /** * Jest problem z zaimportowaniem tej klasy - nie importuje automatycznie. Wchodzę ręczenie na https://comm...
7151_0
package module0.exercise06; public class Application { public static void main (String[] args) { ForumUser user = new ForumUser("pkostka","Piotr","Kostka","Male",27, "p.kostka@o2.com"); user.logginIn(); //*zalogowanie user.addPost("Witam, to mój pierwszy post"); //dodanie posta user...
piotr-kostka/piotr-kostka-kodilla-java-bootcamp
kodilla-modules-0-4/src/main/java/module0/exercise06/Application.java
205
//odpowiedz na post
line_comment
pl
package module0.exercise06; public class Application { public static void main (String[] args) { ForumUser user = new ForumUser("pkostka","Piotr","Kostka","Male",27, "p.kostka@o2.com"); user.logginIn(); //*zalogowanie user.addPost("Witam, to mój pierwszy post"); //dodanie posta user...
7151_1
package module0.exercise06; public class Application { public static void main (String[] args) { ForumUser user = new ForumUser("pkostka","Piotr","Kostka","Male",27, "p.kostka@o2.com"); user.logginIn(); //*zalogowanie user.addPost("Witam, to mój pierwszy post"); //dodanie posta user...
piotr-kostka/piotr-kostka-kodilla-java-bootcamp
kodilla-modules-0-4/src/main/java/module0/exercise06/Application.java
205
//dane o koncie
line_comment
pl
package module0.exercise06; public class Application { public static void main (String[] args) { ForumUser user = new ForumUser("pkostka","Piotr","Kostka","Male",27, "p.kostka@o2.com"); user.logginIn(); //*zalogowanie user.addPost("Witam, to mój pierwszy post"); //dodanie posta user...
7155_0
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab5/oolab/src/main/java/agh/ics/oop/Vector2d.java
602
//final -> nie ma możliwości zmiany danych
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> <SUF> final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y + other.y); } publ...
7155_1
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab5/oolab/src/main/java/agh/ics/oop/Vector2d.java
602
//dostaję Object other i zwraca mi bool
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
7155_2
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab5/oolab/src/main/java/agh/ics/oop/Vector2d.java
602
//jeśli mój wektor i other mają ten sam adres
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
7155_3
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab5/oolab/src/main/java/agh/ics/oop/Vector2d.java
602
//jeśli other nie jest zgodny z typem Vector2d
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
7155_5
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab5/oolab/src/main/java/agh/ics/oop/Vector2d.java
602
//odziedziczona metoda z klasy typu object
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
7156_0
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab6/oolab/src/main/java/agh/ics/oop/Vector2d.java
604
//final -> nie ma możliwości zmiany danych
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> <SUF> final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y + other.y); } publ...
7156_1
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab6/oolab/src/main/java/agh/ics/oop/Vector2d.java
604
//dostaję Object other i zwraca mi bool
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
7156_2
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab6/oolab/src/main/java/agh/ics/oop/Vector2d.java
604
//jeśli mój wektor i other mają ten sam adres
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
7156_3
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab6/oolab/src/main/java/agh/ics/oop/Vector2d.java
604
//jeśli other nie jest zgodny z typem Vector2d
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
7156_5
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
Jullija/ProgramowanieObiektowe
lab6/oolab/src/main/java/agh/ics/oop/Vector2d.java
604
//odziedziczona metoda z klasy typu object
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { final int x; //final -> nie ma możliwości zmiany danych final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y +...
7157_0
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
Jullija/ProgramowanieObiektowe
lab7/oolab/src/main/java/agh/ics/oop/Vector2d.java
606
//final -> nie ma możliwości zmiany danych
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> <SUF> public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x + other.x, y + other.y); ...
7157_1
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
Jullija/ProgramowanieObiektowe
lab7/oolab/src/main/java/agh/ics/oop/Vector2d.java
606
//dostaję Object other i zwraca mi bool
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
7157_2
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
Jullija/ProgramowanieObiektowe
lab7/oolab/src/main/java/agh/ics/oop/Vector2d.java
606
//jeśli mój wektor i other mają ten sam adres
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
7157_3
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
Jullija/ProgramowanieObiektowe
lab7/oolab/src/main/java/agh/ics/oop/Vector2d.java
606
//jeśli other nie jest zgodny z typem Vector2d
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
7157_4
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
Jullija/ProgramowanieObiektowe
lab7/oolab/src/main/java/agh/ics/oop/Vector2d.java
606
//zamieniam object other na wektor typu vector2d
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
7157_5
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
Jullija/ProgramowanieObiektowe
lab7/oolab/src/main/java/agh/ics/oop/Vector2d.java
606
//odziedziczona metoda z klasy typu object
line_comment
pl
package agh.ics.oop; import java.util.Objects; public class Vector2d { public final int x; //final -> nie ma możliwości zmiany danych public final int y; public Vector2d(int x, int y) { this.x = x; this.y = y; } public Vector2d add(Vector2d other){ return new Vector2d(x ...
7160_5
package pl.lodz.p.ftims.geocaching.GUI; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.TableLayout; import android.widget.TableRow; import android.widg...
michalsosn/IOGeocaching
android-client/android-client/src/main/java/pl/lodz/p/ftims/geocaching/GUI/Lista_Wskazowek.java
927
// tutaj przydałoby sie przejść do widoku ze szczegółami hinta, nie zrobię już tego
line_comment
pl
package pl.lodz.p.ftims.geocaching.GUI; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.TableLayout; import android.widget.TableRow; import android.widg...
7162_0
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera sie o blokowaniu przeciwnikowi...
Bielas97/Bricks
src/main/java/com/algorytmy/bricks/App.java
1,510
/** * Mój algorytm opiera sie o blokowaniu przeciwnikowi jak najwiecej ruchow * przykladowo jesli mamy plansze * <p> * 0 0 0 0 * 0 0 0 0 * 0 0 0 0 * 0 0 0 0 * <p> * i ustawimy odpowiednio nasz bloczek * <p> * 0 0 0 0 * 0 X X 0 * 0 0 0 0 * 0 0 0 0 * <p> * t...
block_comment
pl
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera <SUF>*/ public class App { ...
7162_2
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera sie o blokowaniu przeciwnikowi...
Bielas97/Bricks
src/main/java/com/algorytmy/bricks/App.java
1,510
/** * nakladka na rozgrywke * * @throws Exception */
block_comment
pl
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera sie o blokowaniu przeciwnikowi...
7162_4
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera sie o blokowaniu przeciwnikowi...
Bielas97/Bricks
src/main/java/com/algorytmy/bricks/App.java
1,510
//System.out.println(System.currentTimeMillis() - s); - sprawdzenie czy mieszcze sie w czasie
line_comment
pl
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera sie o blokowaniu przeciwnikowi...
7162_5
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera sie o blokowaniu przeciwnikowi...
Bielas97/Bricks
src/main/java/com/algorytmy/bricks/App.java
1,510
//dla planszy 5x5 dziala znakomicie
line_comment
pl
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera sie o blokowaniu przeciwnikowi...
7162_6
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera sie o blokowaniu przeciwnikowi...
Bielas97/Bricks
src/main/java/com/algorytmy/bricks/App.java
1,510
//dla planszy 999x999 dziala znacznie wolniej przez wyszukiwanie czy w wierszu lub kolumnie
line_comment
pl
package com.algorytmy.bricks; import com.algorytmy.bricks.algorytm.FindCoordinates; import com.algorytmy.bricks.utils.BST; import com.algorytmy.bricks.utils.LoadMatrix; import com.algorytmy.bricks.utils.MatrixUtil; import java.awt.*; import java.util.Scanner; /** * Mój algorytm opiera sie o blokowaniu przeciwnikowi...