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
19468_28
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//na koniec rysuje UI:
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_29
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
/*- Rysowanie: -*/
block_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_30
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
/** * Rysuje rozgrywke. */
block_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_31
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//pobieramy pojazd gracza
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_32
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//obliczamy nad jakim punktem mapy bedzie znajdowac sie kamera:
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_33
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//rysujemy wycinek mapy (tlo):
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_34
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//rysujemy samochod gracza:
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_36
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//czy jest na ekranie?
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_38
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
/** * Wypelnia ekran fragmentem trasy obserwowanym przez kamere znajdujaca sie * nad zadanymi wspolrzednymi trasy. * @param canvas Obiekt Canvas na ktorym bedzie wykonywane rysowanie * @param camPos Wspolrzedne trasy, nad ktorymi zawieszona jest kamera */
block_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_39
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//XXX: co to znaczy "immutable bitmap"?! Prawdopodobnie kod nizej jest wysoce nieefektywny
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_40
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//poniewaz tworzone sa kopie bitmapy. Jezeli tak jest w istocie, trzeba by napisac funkcje
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_41
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//blit() kopiujaca bezposrednio piksele z bitmapy planszy na canvas (albo cos podobnego i wydajnego).
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_46
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
/** * Rysowanie obiektow - wersja przeciazana dla typu Car.<br><br> * Oprocz rysowania samochodu dokonywana jest takze jego animacja. * @param car Rysowany obiekt samochodu. * @param canvas Canvas na ktorym rysowany jest obiekt. * @param screenPos Wspolrzedne piksela w ktorych znajduje sie srodek samocho...
block_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_47
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//zapisuje macierz przekrztalcen
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_48
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//przygotowuje Canvas do rysowania samochodu:
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_49
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//krok II: przesuwa samochod na wlasciwa pozycje na ekranie
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19468_51
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
racerTC/racerTC
src/com/games/racertc/gameplay/graphics/Presentation.java
3,472
//przywraca macierz przekrztalcen
line_comment
pl
package com.games.racertc.gameplay.graphics; import java.util.ListIterator; import com.games.racertc.objects.Car; import com.games.racertc.objects.GameObject; import com.games.racertc.tracks.Track; import com.games.racertc.ui.UIManager; import com.games.racertc.utility.Vec2D; import android.content.res.Res...
19470_1
package org.tyszecki.rozkladpkp.servers; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.zip.GZIPInputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.clien...
KrzysztofT/rozkladpkp-android
src/org/tyszecki/rozkladpkp/servers/HafasServer.java
1,135
//!!!! ufff... dodanie tego parametru zwiększa wielokrotnie wydajność systemu.
line_comment
pl
package org.tyszecki.rozkladpkp.servers; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.zip.GZIPInputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.clien...
19470_2
package org.tyszecki.rozkladpkp.servers; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.zip.GZIPInputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.clien...
KrzysztofT/rozkladpkp-android
src/org/tyszecki/rozkladpkp/servers/HafasServer.java
1,135
//Bez niego program wolniej działa, a serwer Sitkola jest DDOSowany :)
line_comment
pl
package org.tyszecki.rozkladpkp.servers; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.zip.GZIPInputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.clien...
19470_4
package org.tyszecki.rozkladpkp.servers; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.zip.GZIPInputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.clien...
KrzysztofT/rozkladpkp-android
src/org/tyszecki/rozkladpkp/servers/HafasServer.java
1,135
//Jeśli nie ma połączeń i jest to pierwsze żądanie, to znaczy że połączeń nie ma w ogóle
line_comment
pl
package org.tyszecki.rozkladpkp.servers; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.zip.GZIPInputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.clien...
19470_5
package org.tyszecki.rozkladpkp.servers; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.zip.GZIPInputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.clien...
KrzysztofT/rozkladpkp-android
src/org/tyszecki/rozkladpkp/servers/HafasServer.java
1,135
//dla wybranych kryteriów, albo stacja jest nieczynna (jeśli nie ma filtrów). Jeśli jest to pierwsze żądanie, to ld == null
line_comment
pl
package org.tyszecki.rozkladpkp.servers; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.zip.GZIPInputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.clien...
19471_0
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
arturgesiarz/Evolution_Project
DarwinWorld/src/main/java/oop/model/maps/AbstractWorldMap.java
1,906
// najpiew musimy sprawdzic czy nie chcemy wyjsc poza lewy/prawy koniec
line_comment
pl
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
19471_1
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
arturgesiarz/Evolution_Project
DarwinWorld/src/main/java/oop/model/maps/AbstractWorldMap.java
1,906
// moge polozyc dane zwierze na mapie - inne obiekty bede osobno dodawal w innych metodach
line_comment
pl
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
19471_2
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
arturgesiarz/Evolution_Project
DarwinWorld/src/main/java/oop/model/maps/AbstractWorldMap.java
1,906
// pozyskuje liste zwierzat bedacych na tej samej pozycji
line_comment
pl
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
19471_3
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
arturgesiarz/Evolution_Project
DarwinWorld/src/main/java/oop/model/maps/AbstractWorldMap.java
1,906
// to znaczy ze tylko jeden element jest pod tym indeksem ktory zostanie zmieniony i tak, a wiec nastapi usuowanie calosci
line_comment
pl
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
19471_4
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
arturgesiarz/Evolution_Project
DarwinWorld/src/main/java/oop/model/maps/AbstractWorldMap.java
1,906
// znaczy to ze jest wiecej indeksow pod tym
line_comment
pl
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
19471_5
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
arturgesiarz/Evolution_Project
DarwinWorld/src/main/java/oop/model/maps/AbstractWorldMap.java
1,906
// usuwam aktualne zwierze z starej listy
line_comment
pl
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
19471_6
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
arturgesiarz/Evolution_Project
DarwinWorld/src/main/java/oop/model/maps/AbstractWorldMap.java
1,906
// znaczy ze juz sa jakies zwierzeta na tym polu to po prostu dodaje zwierze do aktualnej listy
line_comment
pl
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
19471_7
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
arturgesiarz/Evolution_Project
DarwinWorld/src/main/java/oop/model/maps/AbstractWorldMap.java
1,906
// znaczy ze nie ma zadnych zwierzat,a wiec tworze nowa liste jedno-elementowa
line_comment
pl
package oop.model.maps; import oop.model.*; import oop.model.animal.Animal; import oop.model.displayers.MapChangeListener; import oop.model.util.MapParameters; import oop.model.util.MapVisualizer; import java.util.*; import static java.lang.Math.max; import static java.lang.Math.min; public abstract class AbstractWo...
19472_0
package day_23; import java.util.List; /** * Mikołaj chce wysłać przygotowane prezenty za pomocą Paczkomatu. Ma wymiary skrytki * i chciałby wiedzieć czy każdy z podanych prezentów się do niej zmieści (każdy osobno). * Znajdź i wypisz w konsoli prezenty, które nie zmieszczą się w skrytce Paczkomatu. * Prezent nie...
przeprogramowany/christmas-challenge-2023
src/day_23/Solution.java
809
/** * Mikołaj chce wysłać przygotowane prezenty za pomocą Paczkomatu. Ma wymiary skrytki * i chciałby wiedzieć czy każdy z podanych prezentów się do niej zmieści (każdy osobno). * Znajdź i wypisz w konsoli prezenty, które nie zmieszczą się w skrytce Paczkomatu. * Prezent nie zmieści się wtedy, gdy dany wymiar jest ...
block_comment
pl
package day_23; import java.util.List; /** * Mikołaj chce wysłać <SUF>*/ public class Solution { private static final Integer BOX_SIZE_X = 20; private static final Integer BOX_SIZE_Y = 30; private static final Integer BOX_SIZE_Z = 15; private static final Integer SMALLEST_SIZE_INDEX = 0; privat...
19474_2
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
//Wywolanie kamery - nie dziala na emulatorze
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19474_4
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
// jesli zostal przechwycony jakis id, to znaczy ze jestemy w trybie edycji poziomu, a nie jego tworzenia
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19474_5
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
// ladujemy do interfejsu wartosci z rekordu tabeli Level
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19474_8
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
//jako glowna emocja pokazuje sie stara (mimo usuniecia), az do ponownego wyboru
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19474_9
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
//trzeba cos zmienic w spinnerze?
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19474_10
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
// po przekazaniu informacji, ze mamy juz jakies id (czyli jest to edycja i jakis rekord ma byc nadpisany), zerujemy id, na wypadek,
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19474_11
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
// gdyby user jeszcze raz wlaczyl zapisz - wtedy z braku id-ka uzna, ze to tworzenie nowego poziomu i stworzy nowy rekord
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19474_13
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
//TODO gdy mamy zaznaczone wszystkie i jedno się odznaczy to przesyła ostatnio zaznaczoną emocję
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19474_14
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
// Birgiel. Dodanie emocji wybranych, gdy lvl byl tworzony
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19474_15
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
autyzm-pg/friendly-emotions
appConfig/src/main/java/pg/autyzm/przyjazneemocje/LevelConfiguration.java
3,951
// przerabiamy krotkie id na dlugie (path)
line_comment
pl
package pg.autyzm.przyjazneemocje; import android.content.Intent; import android.database.Cursor; import android.util.ArrayMap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget....
19477_1
package compositemenu; import java.util.*; //s 369 public class CompositeIterator implements Iterator { Stack stack = new Stack(); public CompositeIterator(Iterator iterator) { stack.push(iterator); } public Object next() { int i = 0; if (hasNext()) { Iterator iterator = (...
tomekl007/designPatterns
CompositeMenu/src/compositemenu/CompositeIterator.java
393
//jeśli nie to znaczy że jest ItemMenu
line_comment
pl
package compositemenu; import java.util.*; //s 369 public class CompositeIterator implements Iterator { Stack stack = new Stack(); public CompositeIterator(Iterator iterator) { stack.push(iterator); } public Object next() { int i = 0; if (hasNext()) { Iterator iterator = (...
19479_1
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
/** * Entity, które obsługuje kolizje */
block_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_2
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// wektor o długości 1
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_3
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// grupa obiektów tworzących trójkąty
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_4
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// RADIANY a NIE stopnie !!! :)
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_5
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// reakcja na kolizje
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_6
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// czy może reagować na input
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_7
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
//1 ruch do przodu, -1 ruch do tylu, 0 - stop
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_8
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
//1 w prawo, -1 lewo
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_9
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// Ustala co ile klatek ma być wysyłany update tego elementu (bez względu na zmiany)
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_10
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// Prototyp obsługi kolizji, narazie zderzenie to cofniecie ruchu i stop
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_11
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// True oznacza, że wykonano ruch
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_12
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// dla wektora kierunkowego [0,1]
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_13
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// ja dotknąłem other
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_14
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// other dotknął mnie
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_15
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// sprawdza czy koliduje z innym obiektem
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_16
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// Sprawdzamy odległości na osiach
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_17
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// Jeżeli odległośc między punktami jest większa niż odcinek między nimi to znaczy, że się nie stykają
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_18
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// sprawdzenie kolizji poprzez trójkąty
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19479_19
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
macvek/Tanks10
src/main/java/tanks10/world/entity/Box.java
2,311
// jeden z obiektów nie posiada siatki więc zakończ tutaj sprawdzanie
line_comment
pl
/* This file is part of Tanks10 Project (https://github.com/macvek/Tanks10). Tanks10 Project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version....
19482_2
/* * Copyright (c) 2009-2014, ZawodyWeb Team * All rights reserved. * * This file is distributable under the Simplified BSD license. See the terms * of the Simplified BSD license in the documentation provided with this file. */ package pl.umk.mat.zawodyweb.www.ranking; import java.sql.Timestamp; import java.util...
faramir/ZawodyWeb
www/src/main/java/pl/umk/mat/zawodyweb/www/ranking/RankingPA.java
4,770
/* * // jeśli mają tyle samo punktów, // ale punkty nie różnią się * wśród zrobionych, // znaczy, że różnią się wśród niezrobionych(?) * lub tych z 0 // nie dajemy takim lepszego miejsca. * * if (this.vPoints.size() < u2.vPoints.size()) { return 1; } else...
block_comment
pl
/* * Copyright (c) 2009-2014, ZawodyWeb Team * All rights reserved. * * This file is distributable under the Simplified BSD license. See the terms * of the Simplified BSD license in the documentation provided with this file. */ package pl.umk.mat.zawodyweb.www.ranking; import java.sql.Timestamp; import java.util...
19482_6
/* * Copyright (c) 2009-2014, ZawodyWeb Team * All rights reserved. * * This file is distributable under the Simplified BSD license. See the terms * of the Simplified BSD license in the documentation provided with this file. */ package pl.umk.mat.zawodyweb.www.ranking; import java.sql.Timestamp; import java.util...
faramir/ZawodyWeb
www/src/main/java/pl/umk/mat/zawodyweb/www/ranking/RankingPA.java
4,770
/* * Tworzenie rankingu z danych */
block_comment
pl
/* * Copyright (c) 2009-2014, ZawodyWeb Team * All rights reserved. * * This file is distributable under the Simplified BSD license. See the terms * of the Simplified BSD license in the documentation provided with this file. */ package pl.umk.mat.zawodyweb.www.ranking; import java.sql.Timestamp; import java.util...
19482_7
/* * Copyright (c) 2009-2014, ZawodyWeb Team * All rights reserved. * * This file is distributable under the Simplified BSD license. See the terms * of the Simplified BSD license in the documentation provided with this file. */ package pl.umk.mat.zawodyweb.www.ranking; import java.sql.Timestamp; import java.util...
faramir/ZawodyWeb
www/src/main/java/pl/umk/mat/zawodyweb/www/ranking/RankingPA.java
4,770
/* * nazwy kolumn i CSSy */
block_comment
pl
/* * Copyright (c) 2009-2014, ZawodyWeb Team * All rights reserved. * * This file is distributable under the Simplified BSD license. See the terms * of the Simplified BSD license in the documentation provided with this file. */ package pl.umk.mat.zawodyweb.www.ranking; import java.sql.Timestamp; import java.util...
19482_8
/* * Copyright (c) 2009-2014, ZawodyWeb Team * All rights reserved. * * This file is distributable under the Simplified BSD license. See the terms * of the Simplified BSD license in the documentation provided with this file. */ package pl.umk.mat.zawodyweb.www.ranking; import java.sql.Timestamp; import java.util...
faramir/ZawodyWeb
www/src/main/java/pl/umk/mat/zawodyweb/www/ranking/RankingPA.java
4,770
/* * tabelka z rankingiem */
block_comment
pl
/* * Copyright (c) 2009-2014, ZawodyWeb Team * All rights reserved. * * This file is distributable under the Simplified BSD license. See the terms * of the Simplified BSD license in the documentation provided with this file. */ package pl.umk.mat.zawodyweb.www.ranking; import java.sql.Timestamp; import java.util...
19483_0
import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.image.BufferStrategy; /*** * Zadanie 1: * - w konstruktorze zainicjalizuj zmienne centerX, centerY tak aby ich wartość pozwalała na narysowanie prostokąta na środku ekranu * - aby otr...
mikolaj-stoch/JPWPZadaniaRPG
GameLoop_zadania/src/Game3.java
2,073
/*** * Zadanie 1: * - w konstruktorze zainicjalizuj zmienne centerX, centerY tak aby ich wartość pozwalała na narysowanie prostokąta na środku ekranu * - aby otrzymać wysokość(szerokość) panelu użyj metody panel.getHeight() * - następnie w metodzie render() zmodyfikuj g.fillRect(), przykładowo odczyt szerokości...
block_comment
pl
import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.image.BufferStrategy; /*** * Zadanie 1: <SUF>*/ public class Game3 implements Runnable, KeyListener { private final int DESIRED_FPS = 60; private boolean running = true; ...
19483_3
import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.image.BufferStrategy; /*** * Zadanie 1: * - w konstruktorze zainicjalizuj zmienne centerX, centerY tak aby ich wartość pozwalała na narysowanie prostokąta na środku ekranu * - aby otr...
mikolaj-stoch/JPWPZadaniaRPG
GameLoop_zadania/src/Game3.java
2,073
//initObstacles() //zadanie opcjonalne
line_comment
pl
import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.image.BufferStrategy; /*** * Zadanie 1: * - w konstruktorze zainicjalizuj zmienne centerX, centerY tak aby ich wartość pozwalała na narysowanie prostokąta na środku ekranu * - aby otr...
19483_7
import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.image.BufferStrategy; /*** * Zadanie 1: * - w konstruktorze zainicjalizuj zmienne centerX, centerY tak aby ich wartość pozwalała na narysowanie prostokąta na środku ekranu * - aby otr...
mikolaj-stoch/JPWPZadaniaRPG
GameLoop_zadania/src/Game3.java
2,073
//analogicznie do przykładu powyżej
line_comment
pl
import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.image.BufferStrategy; /*** * Zadanie 1: * - w konstruktorze zainicjalizuj zmienne centerX, centerY tak aby ich wartość pozwalała na narysowanie prostokąta na środku ekranu * - aby otr...
19486_0
package pl.com.nic.android.tlen; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.w...
pelotasplus/Tlenoid.android
app/src/main/java/pl/com/nic/android/tlen/PresenceSetting.java
1,069
/* przekazane parametry -- zostalismy przeslani przez menu * zmiany prezencji. */
block_comment
pl
package pl.com.nic.android.tlen; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.w...
19486_1
package pl.com.nic.android.tlen; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.w...
pelotasplus/Tlenoid.android
app/src/main/java/pl/com/nic/android/tlen/PresenceSetting.java
1,069
/* w przypadku braku paramtru znaczy ze ktos nas wywoluje przez * okno konfiguracji. */
block_comment
pl
package pl.com.nic.android.tlen; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.w...
19490_0
package com.coresaken.multiplication.activity.game; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.os.CountDownTimer; import android.view.MotionEvent; import android.view.View; import android...
SebastianGalan76/Multiplication-Math-Games
java/activity/game/GameLavaActivity.java
3,100
//Jeśli equation == 0, to znaczy, że musi to być lekcja lub poprawka i pobieramy losowe rówanie
line_comment
pl
package com.coresaken.multiplication.activity.game; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.os.CountDownTimer; import android.view.MotionEvent; import android.view.View; import android...
19490_1
package com.coresaken.multiplication.activity.game; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.os.CountDownTimer; import android.view.MotionEvent; import android.view.View; import android...
SebastianGalan76/Multiplication-Math-Games
java/activity/game/GameLavaActivity.java
3,100
//Jeśli obecna odpowiedź jest pierwszym wyborem
line_comment
pl
package com.coresaken.multiplication.activity.game; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.os.CountDownTimer; import android.view.MotionEvent; import android.view.View; import android...
19491_2
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// obiekt wymagany dla leksera
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_3
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// wypełnij jakimś mockowym plikiem
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_4
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// sprawdź czy typu id
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_5
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// sprawdź czy zgadza się z jakimś definem
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_7
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// pobierz wszystkie tokeny z define
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_9
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// dodaj wszystkie tokeny z define do outputTokens
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_10
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// sprawdź czy token to nie id
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_11
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// sprawdź czy jest define o takim samym id
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_12
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// sprawdź czy nowy define nie jest taki sam jak początkowy
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_13
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// rozwiń w tym miejscu i dodaj do tokenów
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_14
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// inaczej dodaj do tokenów
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_15
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// inaczej dodaj do tokenów
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_16
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// Prawdopodobnie można tutaj zoptymalizować dodając:
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_18
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// "ostatni" nawias zamykający
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_19
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// sprawdzamy, czy rzeczywiście ostatni
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_20
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// nawias zamykający pojawił się nie na końcu całego wyrażenia
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_21
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// jeżeli counter jest różny od zera, to znaczy, że brakuje nawiasu zamykającego lub otwierającego
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_22
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// (wtedy zwróć false)
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_23
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// dodajemy długość tokenu
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_24
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// jeżeli taki o typie null to dodajemy jeden
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_25
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// inaczej pobieramy wartość, konwertujemy do stringa i pobieramy długość
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19491_26
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
bercik/BIO
impl/bioc/src/pl/rcebula/preprocessor/ResolveDefines.java
2,945
// inaczej wszystko O.K.
line_comment
pl
/* * Copyright (C) 2016 robert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed...
19492_1
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
czyzq/PSZT_Projekt_organizmu
src/com/pszt_organism/MiPlusLambda.java
2,084
//tak wlasciwie min to zawsze 0 a max o bedzie 2*potegaDwojki*m-1
line_comment
pl
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
19492_2
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
czyzq/PSZT_Projekt_organizmu
src/com/pszt_organism/MiPlusLambda.java
2,084
//tablica prawdopodobienstwa takiej dlugosci jak wektor, bo prawdopodobienstwo zanegowania bitu ma by 1/dl_wektora
line_comment
pl
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
19492_3
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
czyzq/PSZT_Projekt_organizmu
src/com/pszt_organism/MiPlusLambda.java
2,084
//gdzies bedzie 1 i jezeli ja sie wylosuje to znaczy ze gen ma byc negowany
line_comment
pl
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
19492_5
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
czyzq/PSZT_Projekt_organizmu
src/com/pszt_organism/MiPlusLambda.java
2,084
//jezeli losowy index z prawdopodobienstwa jest 1 to gen o indeksie w mutuje
line_comment
pl
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
19492_8
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
czyzq/PSZT_Projekt_organizmu
src/com/pszt_organism/MiPlusLambda.java
2,084
//krzyżowanie z 1 locusem, wybieranym losowo
line_comment
pl
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
19492_9
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
czyzq/PSZT_Projekt_organizmu
src/com/pszt_organism/MiPlusLambda.java
2,084
//krzyzowanie z 2 locusami, wybieranymi losowo
line_comment
pl
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
19492_10
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...
czyzq/PSZT_Projekt_organizmu
src/com/pszt_organism/MiPlusLambda.java
2,084
//dwa rozne locusy
line_comment
pl
package com.pszt_organism; import java.util.ArrayList; import java.util.Map; import java.util.concurrent.ThreadLocalRandom; /** * Created by konrad on 14.05.2017. */ public class MiPlusLambda { private ArrayList <int[]> listaPopulacjaMi = new ArrayList<>(); private int max ; private int lambda; ...