Compare commits

...

5 commits

Author SHA1 Message Date
72e0e2a912
add Polish translations
...

to celebrate here's what the best language models think about our language

No, kurwa mać! Znowu cebula droższa niż w Niemczech! A ten Kowalski, no wiadomo, znowu na grzyby poszedł, pewnie ze dwa litry bimbru w lesie wypije i wróci z koszykiem pełnym muchomorów! A potem będzie narzekał, że go wątroba boli! Tylko kiełbasa, grill i piwo mu w głowie! A Polska w ruinie! - gemini-1.5-pro-exp-0801

No chyba że, coś tam w TVN sie zepsuło, bo jak Pan Józef z 'Na Wspólnej' powie, to musi być prawdą! Czas na kawę z laską w 'Żabce', a potem szybko wracać, bo idę na siłkę w 'McFit'. - mistral large 24.07
Cześć, co słychać? Czy wczoraj oglądałeś mecz naNetflixie? [sic] To był ekran! Ale kurwa, jestem bez pieniędzy, więc dziś znowu makarony na obiad. Może jutro się uda i wygram na tym kompie w pracy! - mistral large 24.07
O kurczę, znowu Polak z cebulą na rowerze! Czy oni kiedykolwiek przestają jeść bigos i pić wódkę? - mistral large 2407

Muszę ogarnąć te cholerne papiery do pracy, ale najpierw skoczę na kebsa z ziomkami i potem obejrzę nowy odcinek 'M jak Miłość'. - gpt 4o via chatgpt
Ty, ziomek, po robocie wpadaj na bloki, przynieś kabanosy, oscypki i bigos z Biedry, bo oglądamy Kiepskich, potem pogramy w Wiedźmina i popijemy Żywca, a na deser sernik babci! - gpt 4o via api

Czy mogę dostać jedną piwko Żywiec i jedną shotkę czarnej, bo po tym meczu Legii ci Żydzi z Wisły Kraków nas wyrolowali, a Lewandowski znowu nie strzelił gola, ten debil. Potem idę na after do Mazura, gdzie będą same laski i ciemne, ale nie obchodzi mnie, bo będę tak pijany, że i tak wszystko wygląda mi jak mielonka. Kurwa, muszę kupić nowe opony do swojego auta, bo po tym, jak ci kibole z Legii wywalili mi opony, muszę jechać do mechanika. - llama 3.1 405b

Siema, mordo! Wczoraj była ostra impreza u Janusza na działce. Napiłem się wódeczki, najadłem się kiełbasy i grochówki, a potem z ziomkami pojechaliśmy maluchem na kebsa. Po powrocie jeszcze obejrzeliśmy Puchar Świata w skokach narciarskich, bo Polak musi kibicować Polakom. A, i muszę jeszcze iść do kościoła w niedzielę, bo babcia by mnie z domu wyrzuciła! - claude 3 opus

Kurwa mać, nie mam czasu na te pierogi i wódkę, bo muszę zapieprzać do roboty w Januszexie, a potem na pewno będzie impreza z Sebixami i Karynami, gdzie będziemy narzekać na politykę i emigrację, podczas gdy moja żona Grażyna będzie plotkować o sąsiadach i oglądać Różaniec w telewizji, a mój syn Brajan będzie klepał frytki z ziemniaków i kiełbasy, jednocześnie słuchając Disco Polo i marząc o wyjeździe do Anglii, kurwa jego mać! - claude 3 opus

claude 3.5 sonnet not tested bc too aligned (side effect of a small model)
llama is bad at this language
all were asked to exaggerate
I'd say gemini was the most relatable and chatgpt was really bad
llama was the funniest one, claude (2nd one) second place but with some margin
mistral was the worst (again small model), gpt4os second place
2024-08-05 19:51:57 +02:00
5586f587ed
change some strings and remove unused
.             /\
.         unintended
2024-08-05 18:49:35 +02:00
6dabc59fc5
add no instances notice 2024-08-05 18:34:21 +02:00
907f2cd629
remove useless files 2024-08-05 14:19:27 +02:00
b29da64bfc
make it clear this is not good
yet
2024-08-05 14:17:38 +02:00
12 changed files with 70 additions and 228 deletions

View file

@ -13,7 +13,7 @@ android {
minSdk = 29
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionName = "0.0.0-SNAPSHOT"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {

View file

@ -17,8 +17,8 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import eu.m724.vastapp.R
import eu.m724.vastapp.activity.dashboard.DashboardActivity
import eu.m724.vastapp.activity.dashboard.loading.ui.theme.VastappTheme
import eu.m724.vastapp.activity.login.LoginActivity
import eu.m724.vastapp.ui.theme.VastappTheme
class LoadingActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {

View file

@ -1,11 +0,0 @@
package eu.m724.vastapp.activity.dashboard.loading.ui.theme
import androidx.compose.ui.graphics.Color
val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Color(0xFF7D5260)

View file

@ -1,58 +0,0 @@
package eu.m724.vastapp.activity.dashboard.loading.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
private val DarkColorScheme = darkColorScheme(
primary = Purple80,
secondary = PurpleGrey80,
tertiary = Pink80
)
private val LightColorScheme = lightColorScheme(
primary = Purple40,
secondary = PurpleGrey40,
tertiary = Pink40
/* Other default colors to override
background = Color(0xFFFFFBFE),
surface = Color(0xFFFFFBFE),
onPrimary = Color.White,
onSecondary = Color.White,
onTertiary = Color.White,
onBackground = Color(0xFF1C1B1F),
onSurface = Color(0xFF1C1B1F),
*/
)
@Composable
fun VastappTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
// Dynamic color is available on Android 12+
dynamicColor: Boolean = true,
content: @Composable () -> Unit
) {
val colorScheme = when {
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
val context = LocalContext.current
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
}
darkTheme -> DarkColorScheme
else -> LightColorScheme
}
MaterialTheme(
colorScheme = colorScheme,
typography = Typography,
content = content
)
}

View file

@ -1,34 +0,0 @@
package eu.m724.vastapp.activity.dashboard.loading.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
// Set of Material typography styles to start with
val Typography = Typography(
bodyLarge = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 16.sp,
lineHeight = 24.sp,
letterSpacing = 0.5.sp
)
/* Other default text styles to override
titleLarge = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 22.sp,
lineHeight = 28.sp,
letterSpacing = 0.sp
),
labelSmall = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Medium,
fontSize = 11.sp,
lineHeight = 16.sp,
letterSpacing = 0.5.sp
)
*/
)

View file

@ -2,6 +2,7 @@ package eu.m724.vastapp.activity.dashboard.screen
import androidx.activity.ComponentActivity
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ContextualFlowRow
import androidx.compose.foundation.layout.ExperimentalLayoutApi
@ -30,6 +31,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import eu.m724.vastapp.R
@ -47,6 +49,7 @@ fun InstancesScreen(dashboardViewModel: DashboardViewModel) {
// TODO actually get instances
if (rentedInstances.size > 0) {
ContextualFlowRow(
modifier = Modifier
.fillMaxWidth()
@ -65,6 +68,18 @@ fun InstancesScreen(dashboardViewModel: DashboardViewModel) {
},
)
}
} else {
Box(
modifier = Modifier
.fillMaxWidth()
.height(100.dp),
contentAlignment = Alignment.Center
) {
Text(
text = stringResource(id = R.string.no_instances)
)
}
}
}
// TODO maybe move this?

View file

@ -28,7 +28,7 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import eu.m724.vastapp.R
import eu.m724.vastapp.activity.Opener
import eu.m724.vastapp.activity.termux.ui.theme.VastappTheme
import eu.m724.vastapp.ui.theme.VastappTheme
class TermuxSshActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {

View file

@ -1,11 +0,0 @@
package eu.m724.vastapp.activity.termux.ui.theme
import androidx.compose.ui.graphics.Color
val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Color(0xFF7D5260)

View file

@ -1,58 +0,0 @@
package eu.m724.vastapp.activity.termux.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
private val DarkColorScheme = darkColorScheme(
primary = Purple80,
secondary = PurpleGrey80,
tertiary = Pink80
)
private val LightColorScheme = lightColorScheme(
primary = Purple40,
secondary = PurpleGrey40,
tertiary = Pink40
/* Other default colors to override
background = Color(0xFFFFFBFE),
surface = Color(0xFFFFFBFE),
onPrimary = Color.White,
onSecondary = Color.White,
onTertiary = Color.White,
onBackground = Color(0xFF1C1B1F),
onSurface = Color(0xFF1C1B1F),
*/
)
@Composable
fun VastappTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
// Dynamic color is available on Android 12+
dynamicColor: Boolean = true,
content: @Composable () -> Unit
) {
val colorScheme = when {
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
val context = LocalContext.current
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
}
darkTheme -> DarkColorScheme
else -> LightColorScheme
}
MaterialTheme(
colorScheme = colorScheme,
typography = Typography,
content = content
)
}

View file

@ -1,34 +0,0 @@
package eu.m724.vastapp.activity.termux.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
// Set of Material typography styles to start with
val Typography = Typography(
bodyLarge = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 16.sp,
lineHeight = 24.sp,
letterSpacing = 0.5.sp
)
/* Other default text styles to override
titleLarge = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Normal,
fontSize = 22.sp,
lineHeight = 28.sp,
letterSpacing = 0.sp
),
labelSmall = TextStyle(
fontFamily = FontFamily.Default,
fontWeight = FontWeight.Medium,
fontSize = 11.sp,
lineHeight = 16.sp,
letterSpacing = 0.5.sp
)
*/
)

View file

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="title_activity_dashboard">Kokpit</string>
<string name="title_activity_login">Logowanie</string>
<string name="nav_dashboard">Kokpit</string>
<string name="nav_billing">Płatności</string>
<string name="nav_instances">Maszyny</string>
<string name="nav_help">Pomoc</string>
<string name="balance">Bilans</string>
<string name="greeting">Witaj %1$s!</string>
<string name="time_left">Zostało czasu</string>
<string name="rented_instances">Wynajęte</string>
<string name="time_minutes_short">%1$.2fm</string>
<string name="time_hours_short">%1$.2fg</string>
<string name="time_days_short">%1$.2fd</string>
<string name="api_key">Klucz API</string>
<string name="advanced_options">Zaawansowane</string>
<string name="btn_login">Zaloguj się</string>
<string name="login_checkbox">checkbox dla ciebie</string>
<string name="login_checkbox_20">fajne?</string>
<string name="login_checkbox_angry">checkbox ma focha</string>
<string name="no_options">sory brak</string>
<string name="title_activity_termux_ssh">Błąd Termux</string>
<string name="copied_to_clipboard">Komendę skopiowano do schowka</string>
<string name="termux_install_dropbear">Zainstaluj Dropbear używając komendy:</string>
<string name="open_termux">Otwórz Termux</string>
<string name="termux_not_configured">Termux nie jest skonfigurowany pod działanie z innymi aplikacjami.</string>
<string name="termux_open_instructions">Otwórz instrukcje na github.com</string>
<string name="termux_error">Wystąpił błąd:</string>
<string name="no_instances">Nie wynajmujesz żadnych maszyn</string>
<string name="webview_todo">(kiedyś to będzie tutaj)</string>
<string name="termux_no_ssh">Brakuje klienta SSH na Termux</string>
</resources>

View file

@ -21,14 +21,14 @@
<string name="login_checkbox_20">having fun?</string>
<string name="login_checkbox_angry">checkbox is angry</string>
<string name="no_options">none yet sorry</string>
<string name="command_permission_denied">If you change your mind, do so from settings</string>
<string name="title_activity_termux_ssh">Termux Error</string>
<string name="termux_no_ssh">No ssh client on termux, install dropbear or openssh package</string>
<string name="copied_to_clipboard">Copied command to clipboard</string>
<string name="copied_to_clipboard">Command copied to clipboard</string>
<string name="termux_install_dropbear">Install Dropbear with:</string>
<string name="open_termux">Open Termux</string>
<string name="termux_not_configured">Termux is not configured for usage with other apps.</string>
<string name="termux_open_instructions">Open instructions on github.com</string>
<string name="termux_error">An error occurred:</string>
<string name="webview_todo">(this will be a webview)</string>
<string name="no_instances">You are not renting any instances</string>
<string name="termux_no_ssh">Missing SSH client on Termux</string>
</resources>