path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
reposilite-backend/src/main/kotlin/com/reposilite/statistics/StatsCommand.kt | dzikoysk | 96,474,388 | false | null | /*
* Copyright (c) 2021 dzikoysk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 27 | Kotlin | 85 | 998 | 1d84b2c54465f0c95d79051e3ae29820b14c2f60 | 3,071 | reposilite | Apache License 2.0 |
src/main/kotlin/wotw/server/game/MultiverseEvents.kt | ori-community | 387,772,660 | false | null | package wotw.server.game
import wotw.server.database.model.User
import wotw.server.database.model.World
import wotw.server.database.model.WorldMembership
data class WorldCreatedEvent(
val world: World,
)
data class WorldDeletedEvent(
val worldId: Long,
)
data class PlayerJoinedEvent(
val player: User,
)... | 15 | null | 2 | 4 | f4ddafb928c513e95379c86c561c939bebe9bf94 | 651 | wotw-rando-server | MIT License |
app/src/main/java/com/gwongsi/ododlight/MainActivity.kt | gwong1si4 | 218,705,380 | false | null | package com.gwongsi.ododlight
import android.content.Context
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import com.camerakit.CameraKitView
import android.hardware.camera2... | 0 | Kotlin | 0 | 0 | 723b63f7adce6c341113ca7779220b5a080baec1 | 3,687 | ododLightAndroid | MIT License |
platform/backend/core/src/main/kotlin/io/hamal/core/adapter/Exec.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2265145, "C": 1398401, "TypeScript": 281481, "Lua": 117790, "C++": 40651, "Makefile": 11728, "Java": 7564, "CMake": 2810, "JavaScript": 2640, "CSS": 1567, "Shell": 977, "HTML": 903} | package io.hamal.core.adapter
import io.hamal.lib.domain.GenerateDomainId
import io.hamal.lib.domain._enum.ReqStatus.Submitted
import io.hamal.lib.domain.vo.ExecId
import io.hamal.lib.domain.vo.ReqId
import io.hamal.repository.api.Exec
import io.hamal.repository.api.ExecQueryRepository
import io.hamal.repository.api.E... | 26 | Kotlin | 0 | 0 | 90345f7663444dc8f067861e9ba72ec16350757d | 2,734 | hamal | Creative Commons Zero v1.0 Universal |
petblocks-bukkit-plugin/src/main/kotlin/com/github/shynixn/petblocks/bukkit/logic/business/pathfinder/PathfinderAmbientSound.kt | Archeri2000 | 215,716,277 | true | {"Kotlin": 1612042, "Shell": 4631, "TSQL": 2140, "Dockerfile": 424} | package com.github.shynixn.petblocks.bukkit.logic.business.pathfinder
import com.github.shynixn.petblocks.api.PetBlocksApi
import com.github.shynixn.petblocks.api.business.proxy.PetProxy
import com.github.shynixn.petblocks.api.business.service.LoggingService
import com.github.shynixn.petblocks.api.business.service.Sou... | 0 | null | 0 | 0 | 0e462655ab755a7c7ad291010915f41daaef776d | 1,621 | PetBlocks | Apache License 2.0 |
simplified-books-controller/src/main/java/org/nypl/simplified/books/controller/BookBorrowFailedDismissTask.kt | ray-lee | 292,624,474 | true | {"Git Config": 1, "Gradle": 107, "Java Properties": 5, "Shell": 4, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Markdown": 99, "EditorConfig": 1, "XML": 388, "INI": 96, "Kotlin": 780, "HTML": 9, "JSON": 57, "Java": 165, "CSS": 2, "JavaScript": 2, "YAML": 2, "Gradle Kotlin DSL": 1, "Gemfile.lock": 1, "Ruby": 2} | package org.nypl.simplified.books.controller
import com.io7m.jfunctional.Some
import org.nypl.simplified.books.api.BookID
import org.nypl.simplified.books.book_database.api.BookDatabaseType
import org.nypl.simplified.books.book_registry.BookRegistryType
import org.nypl.simplified.books.book_registry.BookStatus
import ... | 1 | Kotlin | 0 | 0 | d832b391188c86858158ef702f308c6b507ddb61 | 1,233 | Simplified-Android-Core | Apache License 2.0 |
app/src/main/java/io/github/gmathi/novellibrary/network/AndroidCookieJar.kt | gmathi | 92,864,511 | false | null | package io.github.gmathi.novellibrary.network
import android.webkit.CookieManager
import io.github.gmathi.novellibrary.util.DataCenter
import okhttp3.Cookie
import okhttp3.CookieJar
import okhttp3.HttpUrl
import uy.kohesive.injekt.injectLazy
import java.net.URL
class AndroidCookieJar : CookieJar {
private val ma... | 20 | null | 22 | 96 | ff35dc386834db35e761c87089ef595957a6fa86 | 4,052 | NovelLibrary | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/BackgroundType.kt | InsanusMokrassar | 163,152,024 | false | {"Kotlin": 3243076, "Shell": 373} | package dev.inmo.tgbotapi.types
import dev.inmo.micro_utils.common.Progress
import dev.inmo.tgbotapi.types.files.DocumentFile
import dev.inmo.tgbotapi.utils.IntProgress100Serializer
import dev.inmo.tgbotapi.utils.decodeDataAndJson
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
import kotlinx.serialization.... | 13 | Kotlin | 29 | 358 | 482c375327b7087699a4cb8bb06cb09869f07630 | 6,415 | ktgbotapi | Apache License 2.0 |
data/src/desktopMain/kotlin/di/MovieDatabase.kt | rovargas15 | 767,866,342 | false | {"Kotlin": 113842, "HTML": 1086, "Swift": 722, "CSS": 102} | package di
import androidx.room.Room.databaseBuilder
import androidx.sqlite.driver.bundled.BundledSQLiteDriver
import local.database.MovieDatabase
import java.io.File
fun createDatabase(): MovieDatabase {
val dbFile = File(System.getProperty("java.io.tmpdir"), MovieDatabase.DB_FILE_NAME)
return databaseBuilde... | 0 | Kotlin | 0 | 0 | 0e860ea7116b0f208f3ac3c0cd82db71015724c1 | 423 | Movie-kmp | Apache License 2.0 |
News_App/NewsBreeze/app/src/main/java/com/shaun/newsbreeze/presentation/components/BreezeImage.kt | aadityamp01 | 275,898,636 | false | {"Dart": 325447, "Kotlin": 293294, "Java": 124887, "C++": 79060, "CMake": 57342, "HTML": 9428, "Swift": 4398, "C": 4275, "Objective-C": 190} | package com.shaun.newsbreeze.presentation.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.... | 1 | Dart | 57 | 76 | d047d5b4c3321df85c6523c0725028986c898b14 | 1,438 | Androapps | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/modules/market/metrics/MarketMetricsViewModel.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.bankwallet.modules.market.metrics
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import io.horizontalsystems.bankwallet.core.App
import io.horizontalsystems.bankwallet.core.Clearable
import io.horizontalsystems.bankwallet.core.subscribeIO
import io.horizontal... | 128 | Kotlin | 141 | 260 | e6baef3c8530608ad7ed33a8b104382c7a54d55e | 5,192 | unstoppable-wallet-android | MIT License |
AtomicKotlin/Functional Programming/Local Functions/Examples/src/CustomLabel.kt | fatiq123 | 726,462,263 | false | {"Kotlin": 370528, "HTML": 6544, "JavaScript": 5252, "Java": 4416, "CSS": 3780, "Assembly": 94} | // LocalFunctions/CustomLabel.kt
import atomictest.eq
fun main() {
val list = listOf(1, 2, 3, 4, 5)
val value = 3
var result = ""
list.forEach tag@{ // [1]
result += "$it"
if (it == value) return@tag // [2]
}
result eq "12345"
} | 0 | Kotlin | 0 | 0 | 3d351652ebe1dd7ef5f93e054c8f2692c89a144e | 262 | AtomicKotlinCourse | MIT License |
data-class-fragment/src/main/kotlin/sims/michael/gitkspr/dataclassfragment/GenerateDataClassFragmentDataClass.kt | MichaelSims | 632,202,406 | false | {"Kotlin": 378943, "Shell": 1665} | package sims.michael.gitkspr.dataclassfragment
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.SOURCE)
annotation class GenerateDataClassFragmentDataClass(
val testDataDslFactoryFunctionName: String = "",
) {
@Target(AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.RUNTIME)
ann... | 7 | Kotlin | 1 | 0 | b7a4a8fa9443d47491c40b019e5b6d9b34ea984c | 375 | git-kspr | MIT License |
library/core/src/commonMain/kotlin/com/attafitamim/kabin/core/converters/mappers/legacy/StringMapper.kt | tamimattafi | 702,197,843 | false | {"Kotlin": 340835} | package com.attafitamim.kabin.core.converters.mappers.legacy
import app.cash.sqldelight.db.SqlCursor
import com.attafitamim.kabin.core.table.KabinMapper
object StringMapper : KabinMapper<String> {
override fun map(cursor: SqlCursor): String =
cursor.getString(0) ?: ""
}
| 0 | Kotlin | 3 | 50 | b35fd487f1342b354c89dc3557a0e1cfd613d6bf | 285 | kabin | Apache License 2.0 |
src/main/kotlin/club/pisquad/uiharu/github/GithubConfiguration.kt | ThePiSquad | 761,755,140 | false | {"Kotlin": 34139, "Dockerfile": 320} | package club.pisquad.uiharu.github
import club.pisquad.uiharu.AppConfiguration
import com.typesafe.config.Config
object GithubConfiguration : Config by AppConfiguration.getConfig("github") {
} | 2 | Kotlin | 0 | 0 | 7b0be059b83142c128720a17a49721910d443752 | 194 | uiharu | MIT License |
src/main/kotlin/me/serce/solidity/lang/completion/keywords.kt | intellij-solidity | 82,682,728 | false | null | package me.serce.solidity.lang.completion
import com.intellij.codeInsight.completion.*
import com.intellij.codeInsight.lookup.LookupElementBuilder
import com.intellij.openapi.editor.EditorModificationUtil
import com.intellij.openapi.project.DumbAware
import com.intellij.util.ProcessingContext
const val KEYWORD_PRIORI... | 65 | null | 87 | 990 | e417a9f279b8d39bec8d9c68cb19fb23d4c3cddb | 1,751 | intellij-solidity | MIT License |
src/main/kotlin/com/sbl/sulmun2yong/survey/domain/reward/ByUserRewardInfo.kt | SUIN-BUNDANG-LINE | 819,257,518 | false | {"Kotlin": 269239} | package com.sbl.sulmun2yong.survey.domain.reward
/** 사용자 설정(사용자가 직접 추첨 or 추첨을 진행하지 않음) */
data class ByUserRewardInfo(
override val rewards: List<Reward>,
) : RewardInfo {
override val targetParticipantCount = null
override val isImmediateDraw = false
}
| 0 | Kotlin | 1 | 3 | cf5258613f242199b73d8b5d31b14a2a8b095ebd | 267 | Backend | MIT License |
src/docs/cookbook/monitoring/example_tracing.kt | danschultz | 118,152,914 | true | {"Kotlin": 770332, "JavaScript": 133258, "Java": 49492, "Shell": 6237, "HTML": 2067, "CSS": 568} | package cookbook.monitoring
import org.http4k.client.ApacheClient
import org.http4k.core.HttpHandler
import org.http4k.core.HttpMessage
import org.http4k.core.Method.GET
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status.Companion.OK
import org.http4k.core.Uri
import org.http4... | 0 | Kotlin | 0 | 0 | 7ea0046f8a4d256fe490de5d44ea6c5fc3ad2aa6 | 1,849 | http4k | Apache License 2.0 |
lib/src/main/kotlin/it/scoppelletti/spaceship/ads/AdsExt.kt | dscoppelletti | 395,695,274 | false | null | /*
* Copyright (C) 2018 Dario Scoppelletti, <http://www.scoppelletti.it/>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 0 | Kotlin | 0 | 0 | 37a4f832df4aba3a9f7dbd7b5b79c3aacd9aebea | 4,207 | spaceship-ads | Apache License 2.0 |
compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt | JetBrains | 3,432,266 | false | null | // IGNORE_BACKEND_K1: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
// !LANGUAGE: +MultiPlatformProjects
// MODULE: common
// TARGET_PLATFORM: Common
// FILE: commonMain.kt
expect class A() {
fun foo(s: String): String
val bar: String
}
fun test(s: String): String {
val a = A()
return a.foo(s) + a.bar
}
// MO... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 484 | kotlin | Apache License 2.0 |
app/storage/src/main/java/com/fsck/k9/storage/messages/K9MessageStoreFactory.kt | poldi171254 | 365,734,747 | true | {"Java": 3240976, "Kotlin": 1707188, "Shell": 3108} | package com.fsck.k9.storage.messages
import com.fsck.k9.Account
import com.fsck.k9.mailstore.LocalStoreProvider
import com.fsck.k9.mailstore.MessageStore
import com.fsck.k9.mailstore.MessageStoreFactory
import com.fsck.k9.mailstore.NotifierMessageStore
import com.fsck.k9.mailstore.StorageManager
import com.fsck.k9.mes... | 0 | Java | 0 | 0 | 9508c19b2a9c4d1cf9ae32d38c73d46ff44e6b0c | 892 | k-9 | Apache License 2.0 |
src/main/kotlin/com/blr19c/falowp/bot/system/plugin/Plugin.kt | falowp-bot | 736,172,318 | false | {"Kotlin": 229423, "HTML": 3910} | package com.blr19c.falowp.bot.system.plugin
import com.blr19c.falowp.bot.system.api.ApiAuth
import com.blr19c.falowp.bot.system.api.BotApi
import com.blr19c.falowp.bot.system.api.MessageTypeEnum
import com.blr19c.falowp.bot.system.plugin.hook.HookJoinPoint
import com.blr19c.falowp.bot.system.plugin.hook.HookTypeEnum
i... | 0 | Kotlin | 0 | 6 | 4dfb4620ce2ef529bcf27bc1b719587eb668b56e | 9,757 | falowp-bot-system | Apache License 2.0 |
app/src/main/java/com/afauzi/bangungkota/presentation/ui/event/CreateEventActivity.kt | A-fauzi | 687,105,360 | false | {"Kotlin": 105462} | package com.afauzi.bangungkota.presentation.ui.event
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.activity.viewModels
import androidx.core.content.res.ResourcesCompat
import com.afauzi.bangungkota.... | 0 | Kotlin | 0 | 1 | ac498b2dbebb595d6db77738bfa89399196042b8 | 8,744 | NewBangungKota | MIT License |
src/main/kotlin/de/sambalmueslie/openevent/api/MailAPI.kt | Black-Forrest-Development | 542,810,521 | false | null | package de.sambalmueslie.openevent.api
import de.sambalmueslie.openevent.infrastructure.mail.api.MailJob
import de.sambalmueslie.openevent.infrastructure.mail.api.MailJobHistoryEntry
import io.micronaut.data.model.Page
import io.micronaut.data.model.Pageable
import io.micronaut.security.authentication.Authentication
... | 0 | Kotlin | 0 | 1 | 170c860ce1ac4499a8e7ee63cf4134fb38d29924 | 747 | open-event | Apache License 2.0 |
dist/src/main/kotlin/kr/toxicity/hud/manager/DatabaseManagerImpl.kt | toxicity188 | 766,189,896 | false | {"Kotlin": 151540, "Java": 35638} | package kr.toxicity.hud.manager
import kr.toxicity.hud.api.database.HudDatabase
import kr.toxicity.hud.api.database.HudDatabaseConnector
import kr.toxicity.hud.api.hud.Hud
import kr.toxicity.hud.api.manager.DatabaseManager
import kr.toxicity.hud.api.player.HudPlayer
import kr.toxicity.hud.api.popup.Popup
import kr.tox... | 2 | Kotlin | 6 | 32 | ab70cc1a23b85381ab3fb806de5738e931a8a93c | 6,794 | BetterHud | MIT License |
src/main/kotlin/icu/windea/pls/core/library/ParadoxLibraryType.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.core.library
import com.intellij.openapi.project.*
import com.intellij.openapi.roots.*
import com.intellij.openapi.roots.libraries.*
import com.intellij.openapi.roots.libraries.ui.*
import com.intellij.openapi.vfs.*
import icu.windea.pls.*
import icu.windea.pls.model.*
import javax.swing.*
clas... | 2 | null | 2 | 7 | 037b9b4ba467ed49ea221b99efb0a26cd630bb67 | 1,999 | Paradox-Language-Support | MIT License |
app/src/main/java/com/dedsec_x47/trainer/exercisePages/MiniGames.kt | Karthick47v2 | 406,409,965 | false | null | package com.dedsec_x47.trainer.exercisePages
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.dedsec_x47.trainer.databinding.ActivityMiniGamesBinding
import com.unity3d.player.UnityPlayerActivity
class MiniGames : AppCompatActivity() {
private latei... | 1 | Kotlin | 5 | 5 | 87b08726d35780477c8e00f68ae8a4f1d162d715 | 981 | trAIner | MIT License |
src/main/kotlin/no/nav/pensjon/kalkulator/tp/client/esb/EsbTjenestepensjonClient.kt | navikt | 596,104,195 | false | null | package no.nav.pensjon.kalkulator.tp.client.esb
import com.fasterxml.jackson.core.JsonProcessingException
import com.fasterxml.jackson.dataformat.xml.XmlMapper
import mu.KotlinLogging
import no.nav.pensjon.kalkulator.person.Pid
import no.nav.pensjon.kalkulator.tech.security.egress.EgressAccess
import no.nav.pensjon.ka... | 0 | Kotlin | 0 | 0 | 0ca9756e794ebfa1ce12db2e9e05c944ab89e52e | 4,921 | pensjonskalkulator-backend | MIT License |
core/src/main/kotlin/net/corda/core/crypto/internal/ProviderMap.kt | corda | 70,137,417 | false | null | package net.corda.core.crypto.internal
import net.corda.core.DeleteForDJVM
import net.corda.core.crypto.CordaSecurityProvider
import net.corda.core.crypto.Crypto.EDDSA_ED25519_SHA512
import net.corda.core.crypto.Crypto.decodePrivateKey
import net.corda.core.crypto.Crypto.decodePublicKey
import net.corda.core.internal.... | 59 | null | 1090 | 3,971 | 318990cfd90aab455311cc6256d11dc98c26d1df | 3,572 | corda | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/HailSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/HailSharp")
package mui.icons.material
@JsName("default")
external val HailSharp: SvgIconComponent
| 12 | null | 5 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 182 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/com/baulsupp/oksocial/services/transferwise/TransferwiseTestAuthInterceptor.kt | MaTriXy | 129,725,910 | true | {"Kotlin": 426653, "Shell": 9764} | package com.baulsupp.oksocial.services.transferwise
import com.baulsupp.oksocial.authenticator.oauth2.Oauth2ServiceDefinition
import com.baulsupp.oksocial.completion.ApiCompleter
import com.baulsupp.oksocial.completion.BaseUrlCompleter
import com.baulsupp.oksocial.completion.CompletionVariableCache
import com.baulsupp... | 0 | Kotlin | 0 | 0 | c4da9b2858cb9477b96fabb36b31a60f716e3e86 | 1,396 | oksocial | Apache License 2.0 |
frontend/src/jsMain/kotlin/com/monkopedia/konstructor/frontend/koin/KonstructionScope.kt | Monkopedia | 418,215,448 | false | {"Kotlin": 507651, "JavaScript": 159882, "HTML": 1015} | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 0 | Kotlin | 0 | 0 | 38f0c0d9adeba659e5cb7bf6b88a6995a3c7546f | 1,614 | Konstructor | Apache License 2.0 |
app/src/main/java/com/ably/tracking/demo/subscriber/presentation/screen/orderarrived/OrderArrivedScreen.kt | ably | 497,981,253 | false | null | package com.ably.tracking.demo.subscriber.presentation.screen.orderarrived
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Scaf... | 0 | Kotlin | 1 | 1 | 5fc1375679f84889d1e292df344ae174a06ecc1b | 1,746 | asset-tracking-android-customer-app-demo | Apache License 2.0 |
app/src/androidTest/java/com/hydrofish/app/RegisterInstrumentedTest.kt | HydroFish-Waterloo | 748,731,716 | false | {"Kotlin": 273974} | package com.hydrofish.app
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onAllNodesWithText
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.performTextInpu... | 3 | Kotlin | 0 | 0 | eadfc258a70804250726e316fcbde37f50265d5a | 18,840 | HydroFish | MIT License |
app/src/main/kotlin/com/hyperdevs/arch_example/ui/components/commons/StatusBarDisposableEffect.kt | hyperdevs-team | 449,757,130 | false | null | /*
* Copyright 2022 Babelia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 0 | null | 0 | 1 | 4d799865d975b2aba73e88d625fe9a7585e1c9e1 | 2,194 | android-architecture-example | Apache License 2.0 |
src/main/kotlin/no/nav/pensjon/simulator/core/out/OutputPrivatAfp.kt | navikt | 753,551,695 | false | {"Kotlin": 1608776, "Java": 48078, "Dockerfile": 144} | package no.nav.pensjon.simulator.core.out
data class OutputPrivatAfp(
val alder: Int,
val beloep: Int
)
| 2 | Kotlin | 0 | 0 | 32ef34837491247c078a5052e9124fed6e99517d | 113 | pensjonssimulator | MIT License |
proj1/src/main/kotlin/it/gualtierotesta/playwithkotlin/Hello.kt | gualtierotesta | 129,613,223 | false | {"Text": 1, "Ignore List": 1, "EditorConfig": 4, "Markdown": 1, "Maven POM": 2, "Kotlin": 28, "Gradle": 4, "Shell": 2, "Batchfile": 2, "INI": 2, "Java": 2, "Java Properties": 1} | package it.gualtierotesta.playwithkotlin
fun main(args: Array<String>) {
val msg1 = CustomMessage("Ciao")
val msg2 = msg1.copy()
val msg3 = msg1.copy(error = false)
println(msg1)
println(msg2)
println(msg3)
println(msg1 == msg2)
println(msg1 == msg3)
var msg4 = CustomMessage("ci... | 0 | Kotlin | 0 | 0 | 8366bb3aed765fff7fb5203abce9a20177529a8e | 615 | PlayWithKotlin | Apache License 2.0 |
enslig-forsorger/src/main/kotlin/no/nav/familie/kontrakter/ef/søknad/Vedlegg.kt | navikt | 206,793,193 | false | {"Kotlin": 269594} | package no.nav.familie.kontrakter.ef.søknad
data class Vedlegg(val id: String, val navn: String, val tittel: String)
| 3 | Kotlin | 0 | 2 | 0271887ca8cfff51135c4f65e543bb06bf7d7f54 | 118 | familie-kontrakter | MIT License |
src/main/kotlin/com/skillw/rpgmaker/RPGMakerInstance.kt | q210520993 | 802,703,847 | false | {"Kotlin": 210609, "Java": 73654} | package com.skillw.rpgmaker
import com.skillw.rpgmaker.core.map.KeyMap
import com.skillw.rpgmaker.core.manager.Manager
import com.skillw.rpgmaker.core.manager.ManagerData
import com.skillw.rpgmaker.util.safe
import net.luckperms.api.LuckPerms
import taboolib.common5.cbool
import taboolib.module.configuration.Configura... | 0 | Kotlin | 0 | 4 | 17d24b9a7c5134a733636e0965f892850f445666 | 1,002 | RPGMaker | MIT License |
app/src/androidTest/kotlin/com/amsavarthan/tally/data/source/local/AccountDaoTest.kt | amsavarthan | 592,784,968 | false | {"Kotlin": 232629, "HTML": 5928} | package com.amsavarthan.tally.data.source.local
import android.database.sqlite.SQLiteConstraintException
import com.amsavarthan.tally.domain.entity.Account
import com.amsavarthan.tally.domain.entity.AccountType
import com.google.common.truth.Truth.assertThat
import dagger.hilt.android.testing.HiltAndroidRule
import da... | 0 | Kotlin | 0 | 4 | 3d5209573aeb755f3ce3f899add6075a28224c9c | 3,252 | tally | MIT License |
service/src/postgresComponentTest/kotlin/com/lsdconsulting/generatorui/ComponentTestBase.kt | lsd-consulting | 418,193,928 | false | {"Kotlin": 46320, "HTML": 23164, "Shell": 1724} | package com.lsdconsulting.generatorui
import com.github.dockerjava.api.model.ExposedPort
import com.github.dockerjava.api.model.HostConfig
import com.github.dockerjava.api.model.PortBinding
import com.github.dockerjava.api.model.Ports
import com.lsdconsulting.generatorui.repository.TestRepository
import com.zaxxer.hik... | 3 | Kotlin | 0 | 1 | 2dc37beb7f238f1fd2b02dc7bd36f24b8140b3a8 | 3,907 | lsd-distributed-generator-ui | MIT License |
sudoemail/src/main/java/com/sudoplatform/sudoemail/util/Rfc822MessageParser.kt | sudoplatform | 303,299,846 | false | {"Kotlin": 1052952} | /*
* Copyright © 2024 <NAME>, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.sudoplatform.sudoemail.util
import android.os.Parcelable
import com.sudoplatform.sudoemail.types.EmailAttachment
import com.sudoplatform.sudoemail.types.EncryptionStatus
import jakarta.activation.DataHan... | 0 | Kotlin | 0 | 1 | 039e7fd806ad34d5a6b2c563cee2dd4dea69ebcf | 9,324 | sudo-email-android | Apache License 2.0 |
api/src/main/kotlin/com/wnsgml972/strada/security/OAuth2SecuritySpec.kt | Coffee-Street | 289,485,814 | false | {"Kotlin": 267923, "Shell": 2546, "Dockerfile": 174} | package com.wnsgml972.strada.security
import org.springframework.security.config.annotation.web.builders.HttpSecurity
class OAuth2SecuritySpec {
fun configure(http: HttpSecurity) {
http.csrf().disable()
.formLogin().disable()
.logout().disable()
.httpBasic().disable()
... | 2 | Kotlin | 2 | 2 | 24422867afe6c7f547a93f98083f655ecb80c0ed | 360 | strada | MIT License |
sample/src/main/java/com/storage/sample/activity/SettingsActivity.kt | durgav62 | 397,616,572 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "Proguard": 1, "Kotlin": 53, "XML": 19, "Java": 2} | package com.storage.sample.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.storage.sample.fragment.SettingsFragment
/**
* Created on 08/08/21
* @author <NAME>
*/
class SettingsActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 1 | null | 1 | 1 | 1c91d5b36585fcfe989ad87ee930898462881c13 | 502 | scoped-storage | Apache License 2.0 |
app/src/main/java/com/example/tambolaGame/presentation/fragments/ParticipantsWalletFragment.kt | pranmar93 | 266,756,980 | false | null | package com.example.tambolaGame.presentation.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.tambolaGame.MainActivity
import com.example.tambolaGame.MainActivity.Companion.myDevice
impo... | 0 | Kotlin | 0 | 1 | ee93c61b85b896a3745fc2acd9d9e058eaef4224 | 1,897 | TambolaGame | MIT License |
core/src/commonMain/kotlin/com/littlekt/math/geom/Angle.kt | littlektframework | 442,309,478 | false | {"Kotlin": 2170511, "Java": 1717152, "C": 111391} | @file:Suppress("NOTHING_TO_INLINE", "EXTENSION_SHADOWED_BY_MEMBER")
package com.lehaine.littlekt.math.geom
import com.lehaine.littlekt.math.*
import com.lehaine.littlekt.util.internal.umod
import kotlin.jvm.JvmInline
import kotlin.math.absoluteValue
import kotlin.math.atan2
@PublishedApi
internal const val MAX_DEGR... | 14 | Kotlin | 9 | 316 | 100c37feefcfd65038a9cba4886aeb4a7d5632dc | 6,667 | littlekt | Apache License 2.0 |
app/src/main/java/com/breezehungrybee/features/nearbyshops/api/updateaddress/ShopAddressUpdateRepo.kt | DebashisINT | 863,346,668 | false | {"Kotlin": 15849418, "Java": 1029592} | package com.breezehungrybee.features.nearbyshops.api.updateaddress
import com.breezehungrybee.base.BaseResponse
import com.breezehungrybee.features.nearbyshops.model.updateaddress.AddressUpdateRequest
import io.reactivex.Observable
/**
* Created by Pratishruti on 05-02-2018.
*/
class ShopAddressUpdateRepo (val apiS... | 0 | Kotlin | 0 | 0 | c76e59331c57a9188c840b52c72dec40164db090 | 522 | HungryBee | Apache License 2.0 |
base/src/main/java/com/theone/mvvm/base/IViewBinding.kt | Theoneee | 473,409,123 | false | {"Kotlin": 616409, "Java": 410498} | package com.theone.mvvm.base
import android.util.SparseArray
import androidx.annotation.NonNull
import androidx.viewbinding.ViewBinding
import com.theone.mvvm.BR
import com.theone.mvvm.ext.getClazz
// ┏┓ ┏┓
//┏┛┻━━━┛┻┓
//┃ ┃
//┃ ━ ┃
//┃ ┳┛ ┗┳ ┃
//┃ ┃
//┃ ┻ ┃
//┃ ┃
//┗━┓ ┏━┛
// ┃ ┃ ... | 0 | Kotlin | 4 | 6 | 66e7dd671635352c8039bc3bf47a715620347448 | 1,062 | QMUI-MVVM | Apache License 2.0 |
idea/testData/resolve/partialBodyResolve/IfNotIsReturn.kt | JakeWharton | 99,388,807 | false | null | fun foo(p: Any?) {
if (p !is String) {
if (p == null) {
print("null")
return
}
else {
return
}
}
println(<caret>p.length())
} | 0 | null | 30 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 205 | kotlin | Apache License 2.0 |
backend/src/main/kotlin/org/gridiron/backend/persistence/Users.kt | domnikl | 282,521,529 | false | null | package org.gridiron.backend.persistence
import org.jetbrains.exposed.sql.Table
object Users : Table(name = "users") {
val uuid = uuid("uuid")
val email = varchar("email", 180).uniqueIndex()
val username = varchar("login", 70).uniqueIndex()
val password = varchar("password", 100)
val roles = varch... | 15 | Kotlin | 0 | 2 | baae7a92fe6610139e2473276ad1ac599f041165 | 443 | gridiron | Apache License 2.0 |
exact-numbers/src/test/kotlin/xyz/lbres/exactnumbers/exactfraction/binaryMinusTests.kt | lbressler13 | 491,698,766 | false | null | package xyz.lbres.exactnumbers.exactfraction
import kotlin.test.assertEquals
internal fun runMinusTests() {
// zero
var first = ExactFraction(0)
var second = ExactFraction(0)
var expected = ExactFraction(0, 1)
assertEquals(expected, first - second)
first = ExactFraction(4)
second = ExactF... | 0 | Kotlin | 0 | 2 | b839a77a73599b2e156b80ef81defbcd2e4e8a89 | 3,940 | exact-numbers | MIT License |
compose-ui/src/commonMain/kotlin/ru/blays/ficbookReader/ui_components/CustomToolbar/CustomToolbarScrollBehavior.kt | B1ays | 710,470,973 | false | null | package com.istu.schedule.ui.components.toolbar
import androidx.compose.animation.core.AnimationState
import androidx.compose.animation.core.DecayAnimationSpec
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateDecay
import androidx.compose.animation.core.animateTo
import andro... | 1 | null | 1 | 9 | 478a79286c952c7d1e001b4a0d9075e3fccd4f18 | 5,588 | ficbook-reader | MIT License |
sesame-localized-string/src/main/kotlin/me/aartikov/sesame/localizedstring/TextViewExt.kt | aartikov | 292,022,280 | false | null | package me.aartikov.sesame.localizedstring
import android.widget.TextView
/**
* Sets [LocalizedString] value to [TextView].
*/
var TextView.localizedText: LocalizedString?
get() = LocalizedString.raw(text)
set(value) {
text = value?.resolve(context)
}
| 0 | Kotlin | 6 | 98 | 46cca40d702d3a58f00e944836e22af042b048b9 | 276 | Sesame | MIT License |
src/main/kotlin/xyz/magentaize/dynamicdata/list/internal/Switch.kt | Magentaize | 290,133,754 | false | null | package xyz.magentaize.dynamicdata.list.internal
import xyz.magentaize.dynamicdata.kernel.subscribeBy
import xyz.magentaize.dynamicdata.list.ChangeSet
import xyz.magentaize.dynamicdata.list.SourceList
import xyz.magentaize.dynamicdata.list.clear
import xyz.magentaize.dynamicdata.list.populateInto
import io.reactivex.r... | 0 | Kotlin | 0 | 3 | dda522f335a6ab3847cc90ff56e8429c15834800 | 1,046 | dynamicdata-kotlin | MIT License |
src/ad/kata/aoc2021/day05/Point.kt | andrej-dyck | 433,401,789 | false | {"Kotlin": 161613} | package ad.kata.aoc2021.day05
import ad.kata.aoc2021.extensions.splitTrim
data class Point(val x: Int, val y: Int)
data class Vector(val x: Int, val y: Int)
internal operator fun Point.plus(vector: Vector) =
copy(x = x + vector.x, y = y + vector.y)
internal fun String.toPoint() =
removeSurrounding("(", ")")... | 0 | Kotlin | 0 | 0 | 28d374fee4178e5944cb51114c1804d0c55d1052 | 400 | advent-of-code-2021 | MIT License |
mobile/src/main/java/com/damn/anotherglass/extensions/notifications/Converter.kt | inckie | 291,422,816 | false | {"Git Config": 1, "Gradle": 8, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "Proguard": 5, "XML": 46, "Java": 38, "Kotlin": 24, "YAML": 1, "INI": 1} | package com.damn.anotherglass.extensions.notifications
import android.app.Notification
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.os.Build
import android.service.no... | 0 | Java | 0 | 12 | 0732a42e1ffe0e7e0ae86eaf68829b8c2adca7cd | 3,977 | AnotherGlass | MIT License |
transport-eta-android/sms/src/prod/java/com/joaquimley/transporteta/sms/SmsBroadcastReceiverImpl.kt | JoaquimLey | 93,657,822 | false | null | package com.joaquimley.transporteta.sms
import android.content.Context
import android.content.Intent
import android.provider.Telephony
import javax.inject.Inject
/**
* A broadcast receiver who listens for incoming SMS
*/
class SmsBroadcastReceiverImpl @Inject constructor(serviceNumber: String, serviceSmsCondition:... | 34 | Kotlin | 45 | 224 | 7c841a3b4e7f296e5b5e53eab6c7a9e84c2b3c61 | 980 | transport-eta | Apache License 2.0 |
shared/src/commonMain/kotlin/ui/chart/ChartScreen.kt | piappstudio | 696,508,694 | false | {"Kotlin": 145998, "Swift": 941, "Shell": 228} | package ui.chart
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
im... | 0 | Kotlin | 3 | 9 | 22af22bd245fd0765ea95569b6a2101e40825112 | 9,138 | BiggBoss | Apache License 2.0 |
apps/jvm/kotlin-console/src/main/kotlin/eu/sirotin/kotunil/currency/EuroKotlinConsoleTest.kt | vsirotin | 542,600,036 | false | {"Kotlin": 1302807, "Java": 163060, "TypeScript": 75436, "JavaScript": 71916, "HTML": 4559} | package eu.sirotin.kotunil.currency
import eu.sirotin.kotunil.app.kotlin.check
import eu.sirotin.kotunil.specialunits.m3
import eu.sirotin.kotunil.core.div
import eu.sirotin.kotunil.core.times
object EuroKotlinConsoleTest {
fun kotlinConsoleTest() {
check(EUR, Euro())
check(12.EUR, Euro(12.0... | 14 | Kotlin | 4 | 95 | 2ece508f86d04d0e4fce3bc2b94b70a30d97dc33 | 680 | si-units | Apache License 2.0 |
bbfgradle/tmp/results/BACKUP_DIFF/nnmzhkf_FILE.kt | DaniilStepanov | 346,008,310 | false | null | // Bug happens on JVM , JAVA
//File: tmp/tmp0.kt
fun box() = object {}
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 72 | kotlinWithFuzzer | Apache License 2.0 |
analysis/analysis-api/testData/symbols/symbolByPsi/destructuringDeclaration.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE
// DO_NOT_CHECK_SYMBOL_RESTORE_K1
data class P(val x: Int, val y: Int)
fun destruct(): Int {
val (l, r) = P(1, 2)
return l + r
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 177 | kotlin | Apache License 2.0 |
src/main/kotlin/com/flanks255/simplybackpacks/network/NetworkWrapper.kt | kellixon | 166,381,768 | true | {"Kotlin": 33178} | package com.flanks255.simplybackpacks.network
import com.flanks255.simplybackpacks.simplybackpacks
import net.minecraftforge.fml.common.network.NetworkRegistry
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper
import net.minecraftforge.fml.relauncher.Side
object NetworkWrapper {
val wr... | 0 | Kotlin | 0 | 0 | f8fa5337eb28c37f4551e9767155a67092c2f554 | 676 | simplybackpacks | MIT License |
src/main/java/com/rafaelfiume/tictactoe/console/ConsoleGameRunner.kt | rafaelfiume | 46,618,701 | false | null | package com.rafaelfiume.tictactoe.console
import com.rafaelfiume.tictactoe.*
import com.rafaelfiume.tictactoe.TttGame.Factory.newGame
class ConsoleGameRunner(
private val game: Game,
private val input: ConsoleInputReader,
private val renderer: GameRenderer) {
fun start() {
rendere... | 4 | Kotlin | 0 | 1 | e81cf93a9dc7dd033e617a5a2dd9e9531d397e64 | 1,112 | tictactoe | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsciagcareersinductionapi/service/CIAGProfileService.kt | ministryofjustice | 620,258,376 | false | {"Kotlin": 184763, "Dockerfile": 1191} | package uk.gov.justice.digital.hmpps.hmppsciagcareersinductionapi.service
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.hmppsciagcareersinductionapi.data.jsonprofile.CIAGProfileDTO
import uk.gov.justice.digital.hmpps.hmppsciagcareersinductionapi.data.jsonprofile.CIAGProfileListDTO
i... | 0 | Kotlin | 0 | 0 | 62358ea01eaa7430511ad96bf8e01a7fde6406a0 | 3,801 | hmpps-ciag-careers-induction-api | MIT License |
src/main/kotlin/net/starlegacy/feature/nations/NationsBalancing.kt | hafarooki | 437,384,015 | false | null | package net.starlegacy.feature.nations
import net.starlegacy.SLComponent
import net.starlegacy.util.loadConfig
lateinit var NATIONS_BALANCE: NationsBalancing.Config
object NationsBalancing : SLComponent() {
data class Config(
val settlement: Config.Settlements = Settlements(),
val nation: Config.Nations = Natio... | 0 | Kotlin | 5 | 4 | c830eb40180c935e8bfff599da0f9310eeccfb5c | 1,402 | StarLegacy | MIT License |
odinmain/src/main/kotlin/me/odinmain/features/impl/floor7/DragonCheck.kt | odtheking | 657,580,559 | false | null | package me.odinmain.features.impl.floor7
import me.odinmain.events.impl.ChatPacketEvent
import me.odinmain.features.impl.floor7.WitherDragons.sendNotification
import me.odinmain.features.impl.floor7.WitherDragons.sendSpawned
import me.odinmain.features.impl.floor7.WitherDragons.sendTime
import me.odinmain.utils.equals... | 0 | null | 9 | 29 | 31b718797d49dba5da3439080db1b576e26357f1 | 3,169 | OdinClient | MIT License |
app/src/main/java/com/jaygoo/demo/fragments/BaseFragment.kt | Jay-Goo | 81,301,855 | false | null | package com.jaygoo.demo.fragments
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
/**
// _ooOoo_
// o8888888o
// 88" . "88
// (... | 43 | null | 382 | 2,480 | ba46b09113d4632f4c784d44dd5caf115eea77ba | 1,678 | RangeSeekBar | Apache License 2.0 |
sample/src/main/kotlin/org/jraf/android/androidwearcolorpicker/sample/MainActivity.kt | BoD | 32,235,650 | false | null | /*
* This source is part of the
* _____ ___ ____
* __ / / _ \/ _ | / __/___ _______ _
* / // / , _/ __ |/ _/_/ _ \/ __/ _ `/
* \___/_/|_/_/ |_/_/ (_)___/_/ \_, /
* /___/
* repository.
*
* Copyright (C) 2015-present <NAME>BoD<NAME> (<EMAIL>)
*
* Licensed under the Apach... | 0 | Kotlin | 13 | 52 | c1470cefd360edff2642bab4fbc04bef24b51970 | 3,442 | android-wear-color-picker | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/di/Module.kt | frantoribio | 510,270,967 | true | {"Kotlin": 50332} | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 0 | 1 | 69d17ab04d810d0d62f906711dd0054155e21046 | 1,913 | Kotlin-challenge-compose-week4 | Apache License 2.0 |
rtp/src/test/kotlin/org/jitsi/rtp/rtcp/RtcpPacketTest.kt | jitsi | 9,657,943 | false | null | /*
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 170 | null | 989 | 2,900 | b7dba8242cfaa84364bf6988cc097611346505c0 | 2,602 | jitsi-videobridge | Apache License 2.0 |
app/src/main/java/com/example/atomicdesign/ui/components/atom/SecondaryButton.kt | 4mr0m3r0 | 259,181,662 | false | null | package com.anibalbastias.uikitcompose.components.atom
import androidx.compose.foundation.BorderStroke
import androidx.compose.material.MaterialTheme
import androidx.compose.material.OutlinedButton
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Composable... | 0 | null | 1 | 2 | b096114948b0a7d986e788662dcef0a46e5a5823 | 1,367 | composing-atomic-design | MIT License |
Kotlin/extras/games/gameOfFifteen/GameOfFifteen.kt | vimalsubbiah7 | 254,466,514 | true | {"C++": 138303, "Java": 102500, "Python": 73097, "C": 32475, "JavaScript": 30753, "Kotlin": 26122, "Swift": 22216, "C#": 19569, "Go": 15841, "Ruby": 10824, "Haskell": 5956, "Scala": 4198, "Rust": 3485, "Perl": 1926, "Crystal": 812, "Makefile": 727, "Brainfuck": 616, "Racket": 406} | package games.gameOfFifteen
import board.Direction
import board.GameBoard
import board.createGameBoard
import games.game.Game
/*
* Implement the Game of Fifteen (https://en.wikipedia.org/wiki/15_puzzle).
* When you finish, you can play the game by executing 'PlayGameOfFifteen'.
*/
fun newGameOfFifteen(initializer:... | 0 | C++ | 0 | 0 | 1cf249e5bcabb32096ded17d0ea7216968ff7fbe | 2,957 | Algorithms | Apache License 2.0 |
app/src/main/java/arcus/app/pairing/device/customization/waterheater/WaterHeaterModelSerialNumberFragment.kt | arcus-smart-home | 168,191,380 | false | null | /*
* Copyright 2019 Arcus Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 6 | Java | 27 | 27 | 845b23b6ee913c58e009914e920242e29d0b137a | 6,866 | arcusandroid | Apache License 2.0 |
app/src/main/java/com/mertoenjosh/triviaquest/adapters/SelectCategoryItemAdapter.kt | mertoenjosh | 480,945,233 | false | null | package com.mertoenjosh.triviaquest.adapters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import ... | 0 | Kotlin | 0 | 0 | 03651369aa63c512a1c0237d527eb27b9d5b230c | 1,969 | TriviaQuest | MIT License |
api/src/main/kotlin/io/github/dseelp/framecord/api/plugins/repository/Repository.kt | DSeeLP | 378,427,319 | false | null | /*
* Copyright (c) 2021 DSeeLP & FrameCord contributors
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... | 1 | Kotlin | 0 | 0 | 489823eacbe85a88c0b8aadfcc50b5fb122f11dc | 1,676 | FrameCord | MIT License |
app/src/main/java/com/chocolate/triviatitans/presentation/screens/category/CategoryScreen.kt | team-chocolate-cake | 661,943,976 | false | null | package com.chocolate.triviatitans.presentation.screens.category
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import ... | 0 | Kotlin | 3 | 1 | 94e74e9943f25d94a64311d898baf4b07fabfc63 | 3,204 | TriviaTitans | MIT License |
MVVMLibrary/src/main/java/com/see/mvvm/viewmodel/SeeApplication.kt | XiaoSeee | 107,637,882 | false | {"Gradle": 6, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 3, "Markdown": 2, "Proguard": 4, "XML": 41, "Java": 13, "Kotlin": 30} | package com.see.mvvm.viewmodel
import android.app.Application
import androidx.lifecycle.ViewModelStore
import androidx.lifecycle.ViewModelStoreOwner
/**
* 继承 [ViewModelStoreOwner] 用来存放 [androidx.lifecycle.ViewModel]
* @author by XiaoSe on 2020/11/23.
*/
open class SeeApplication : Application(), ViewModelStoreOwne... | 0 | Kotlin | 1 | 0 | 9f0190703a474d9dc72dfb78c7a30f225c9f8b4b | 509 | SeeComponent | Apache License 2.0 |
app/src/main/java/com/example/android/architecture/blueprints/todoapp/util/EspressoIdlingResource.kt | nLoops | 347,321,889 | false | null | package com.example.android.architecture.blueprints.todoapp.util
import androidx.test.espresso.idling.CountingIdlingResource
// How to make a NO-OP for Production code
// https://medium.com/androiddevelopers/android-testing-with-espressos-idling-resources-and-testing-fidelity-8b8647ed57f4
object EspressoIdlingResou... | 0 | Kotlin | 0 | 0 | c9017a31fd04cc5a48355a6b96aa21822bbd9a27 | 1,031 | AndroidTesting | Apache License 2.0 |
app/src/main/java/com/lodz/android/agiledevkt/modules/rv/snap/SnapRvActivity.kt | LZ9 | 137,967,291 | false | {"Kotlin": 2174504} | package com.lodz.android.agiledevkt.modules.rv.snap
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.lodz.android.agiledevkt.R
import com.lod... | 0 | Kotlin | 3 | 11 | 926b9f968a984c42ade94371714ef4caf3ffbccf | 4,174 | AgileDevKt | Apache License 2.0 |
app/src/main/java/com/example/weather/Presentation/MainActivity.kt | BrunoAnndrade | 742,541,348 | false | {"Kotlin": 35695} | package com.example.weather.Presentation
import android.app.Application
import android.content.Context
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.c... | 0 | Kotlin | 0 | 0 | ffd467f77b54341b69aa62cbd1f4e8bea424582e | 20,014 | weather | MIT License |
feature/attraction_gallery/src/main/java/tw/com/deathhit/feature/attraction_gallery/AttractionGalleryViewModel.kt | Deathhit | 748,190,483 | false | {"Kotlin": 197443} | package tw.com.deathhit.feature.attraction_gallery
import android.os.Bundle
import android.os.Parcelable
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.ExperimentalCorou... | 0 | Kotlin | 0 | 0 | d76f4a3f3d3f0310e3a8b551efa11f46c3c54a30 | 3,209 | TaipeiTour | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/frauddetector/CfnDetector.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.frauddetector
import io.cloudshiftdev.awscdk.CfnResource
import io.cloudshiftdev.awscdk.CfnTag
import... | 3 | null | 0 | 4 | e15f2e27e08adeb755ad44b2424c195521a6f5ba | 135,743 | kotlin-cdk-wrapper | Apache License 2.0 |
web/src/main/kotlin/no/nav/su/se/bakover/web/routes/søknadsbehandling/vilkårOgGrunnlag/LeggTilGrunnlagBosituasjonRoutes.kt | navikt | 227,366,088 | false | {"Kotlin": 9236522, "Shell": 4372, "TSQL": 1233, "Dockerfile": 800} | package no.nav.su.se.bakover.web.routes.søknadsbehandling.vilkårOgGrunnlag
import arrow.core.flatMap
import arrow.core.getOrElse
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.call
import io.ktor.server.routing.Route
import io.ktor.server.routing.post
import no.nav.su.se.bakover.common.audit.Audi... | 9 | Kotlin | 1 | 1 | f187a366e1b4ec73bf18f4ebc6a68109494f1c1b | 3,520 | su-se-bakover | MIT License |
scheduler/src/test/kotlin/tech/cuda/woden/scheduler/tracker/JobTrackerTest.kt | cuda-tech | 234,125,581 | false | {"Kotlin": 532433, "JavaScript": 97771, "Vue": 95927, "CSS": 10200, "Dockerfile": 267, "HTML": 208} | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 0 | Kotlin | 0 | 0 | 2efc2de1cad2646ea129637752b15d868ca13c7d | 4,342 | woden-deprecated | Apache License 2.0 |
platform/lvcs-impl/src/com/intellij/history/integration/ui/models/RevisionData.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.history.integration.ui.models
import com.intellij.history.core.LocalHistoryFacade
import com.intellij.history.core.RevisionsCollector
import com.intellij.history.core.changes.Ch... | 251 | null | 5079 | 16,158 | 831d1a4524048aebf64173c1f0b26e04b61c6880 | 5,247 | intellij-community | Apache License 2.0 |
goblin-rpc/src/main/java/org/goblinframework/rpc/module/config/RpcRegistryConfigMXBean.kt | xiaohaiz | 206,246,434 | false | null | package org.goblinframework.rpc.module.config
import org.goblinframework.api.core.SerializerMode
import java.lang.management.PlatformManagedObject
interface RpcRegistryConfigMXBean : PlatformManagedObject {
fun getZookeeper(): String
fun getConnectionTimeout(): Int
fun getSessionTimeout(): Int
fun getSeri... | 0 | null | 6 | 9 | b1db234912ceb23bdd81ac66a3bf61933b717d0b | 347 | goblinframework | Apache License 2.0 |
src/main/kotlin/com/casadodev/interfaces/api/api.package.kt | casadodev | 380,860,209 | false | null | package com.casadodev.interfaces.api
/**
* Interface protocolo HTTP
*/ | 1 | Kotlin | 0 | 1 | 2e7d6ad9c5a457667a0d290d951cb52f137cca7e | 73 | bot-twitch-kotlin | MIT License |
app/src/main/java/com/example/lessons_schedule/subjects/components/DeleteSubjectDialog.kt | RUD0MIR | 597,636,190 | false | {"Kotlin": 75382} | package com.example.lessons_schedule.subjects.components
import android.app.Dialog
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.activityViewModels
import com.example.lessons_schedule.R
import com.example.lessons_schedule.data.model.Subject
import com.example.lessons... | 0 | Kotlin | 0 | 0 | b4ff2a5d4c09e0b4fef40264d5e2ff324c75c507 | 1,232 | lessons-schedule-manager-app | MIT License |
telegram-bot/src/commonMain/kotlin/eu/vendeli/tgbot/types/MessageId.kt | vendelieu | 496,567,172 | false | null | package eu.vendeli.tgbot.types
import eu.vendeli.tgbot.interfaces.MultipleResponse
import kotlinx.serialization.Serializable
/**
* This object represents a unique message identifier.
* @property messageId Unique message identifier
* Api reference: https://core.telegram.org/bots/api#messageid
*/
@Serializable
data ... | 6 | null | 9 | 165 | c1ddf4a42c577410af31249dc650858320668263 | 376 | telegram-bot | Apache License 2.0 |
app/src/main/java/com/degree106/flashlight/MainActivity.kt | degree106 | 350,258,735 | false | null | package com.degree106.flashlight
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.ImageButton
import com.google.android.material.snackbar.Snackbar
class MainActivity : AppCompatActivity() {
private... | 0 | Kotlin | 0 | 0 | d35b114589230f2b67f03e00ca20b33e917605ef | 859 | flashlight | Apache License 2.0 |
src/main/kotlin/org/vitrivr/cottontail/database/queries/planning/nodes/logical/transform/DistanceLogicalOperatorNode.kt | vitrivr | 160,775,368 | false | null | package org.vitrivr.cottontail.database.queries.planning.nodes.logical.transform
import org.vitrivr.cottontail.database.column.ColumnDef
import org.vitrivr.cottontail.database.queries.OperatorNode
import org.vitrivr.cottontail.database.queries.planning.nodes.logical.UnaryLogicalOperatorNode
import org.vitrivr.cottonta... | 8 | Kotlin | 11 | 14 | bd2a7fc1b6add25d43d98e7b5c4187adc758ffb2 | 2,578 | cottontaildb | MIT License |
feature-single-note/src/main/java/com/stslex/feature_single_note/ui/SingleNoteRoute.kt | stslex | 475,504,690 | false | {"Kotlin": 235179} | package com.stslex.feature_single_note.ui
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.safeDrawing
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.runtime.*
import androidx.compose.ui.... | 4 | Kotlin | 0 | 1 | c3e1e1aeebfdbe014af58117e7293ec38af29bfb | 1,758 | CNotes | Apache License 2.0 |
tinyarbrowser/src/main/java/com/kkaun/tinyarbrowser/paintables/GpsSymbol.kt | kkaun | 127,122,428 | false | null | package com.kkaun.tinyarbrowser.paintables
import android.graphics.Canvas
class GpsSymbol(radius: Float, strokeWidth: Float, fill: Boolean, color: Int) : CommonPaintable() {
private var radius = 0f
private var mStrokeWidth = 0f
private var mFill = false
private var mColor = 0
init { set(radius, ... | 0 | Kotlin | 1 | 1 | f43e4ceaed545ce47a40723b4e45abb4b158151a | 839 | tiny_ar_browser | MIT License |
data/RF02081/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF02081"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
15 to ... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 4,820 | Rfam-for-RNArtist | MIT License |
src/main/kotlin/no/nav/familie/ef/sak/opplysninger/søknad/domain/Søknadsverdier.kt | navikt | 206,805,010 | false | null | package no.nav.familie.ef.sak.opplysninger.søknad.domain
import java.time.LocalDateTime
import java.time.YearMonth
data class Søknadsverdier(
val barn: Set<SøknadBarn>,
val fødselsnummer: String,
val medlemskap: Medlemskap,
val sivilstandsplaner: Sivilstandsplaner?,
val bosituasjon: Bosituasjon,
... | 8 | Kotlin | 2 | 0 | 826996ddfeb9a0ec01a8b3525cb5841bd41bd7dd | 1,813 | familie-ef-sak | MIT License |
app/src/main/java/com/example/gowalk/presentation/navigation/screen.kt | moemaair | 711,874,379 | false | {"Kotlin": 53906} | package com.example.gowalk.presentation.navigation
sealed class Screen (val route: String){
object Home: Screen(route = "Home")
object StartWalking : Screen(route = "StartWalking")
} | 0 | Kotlin | 0 | 1 | f7ec78165e469a20b9f2f201b472f051d1cf6467 | 191 | Gowalk | MIT License |
src/main/kotlin/dev/moru3/compsql/datatype/types/numeric/unsigned/USMALLINT.kt | moru348 | 386,672,322 | false | null | package dev.moru3.compsql.datatype.types.numeric.unsigned
import dev.moru3.compsql.datatype.BaseDataType
import java.sql.PreparedStatement
import java.sql.ResultSet
import java.sql.Types
/**
* SmallInt 0 から 65535 までの整数を格納できるSQLの型です。
* これ以上大きな型が必要な場合は INTEGER, UINTEGER を使用します。
* Unsigned: USMALLINT, Non-Unsigned: S... | 0 | Kotlin | 0 | 2 | 5788ede9874caa407729342904a5d05a085194da | 1,573 | CompSQL | MIT License |
sample/src/main/kotlin/io/github/ilyapavlovskii/feature/toggle/sample/compose/MenuItemVerticalGrid.kt | IlyaPavlovskii | 580,842,175 | false | null | package io.github.ilyapavlovskii.feature.toggle.sample.compose
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.items
import androidx.compose.runtime.Composable
import io.github.ilyapavlovskii.feature.toggl... | 0 | Kotlin | 0 | 7 | eccf7715f3da43cd168567e65180a1c142315ee6 | 759 | FeatureToggle | Apache License 2.0 |
feature_profile/api/src/main/java/com/example/feature_profile/api/domain/models/Connection.kt | powerINcode | 299,091,005 | false | null | package com.example.feature_profile.api.domain.models
data class Connection(val name: String, val value: String) | 0 | Kotlin | 0 | 0 | 51de029c527f8c5668a3c6dc69c1fc783ddcc962 | 113 | MviCurrencyTracker | Apache License 2.0 |
app/src/main/java/com/ibashkimi/cryptomarket/data/Result.kt | indritbashkimi | 237,490,799 | false | {"Kotlin": 75293, "Java": 331} | package com.ibashkimi.cryptomarket.data
sealed class ApiResponse<T> {
class Success<T>(val result: T) : ApiResponse<T>()
class Failure<T>(val error: Any? = null) : ApiResponse<T>()
} | 1 | Kotlin | 1 | 1 | f55204467e3d466ab5d735281b40957a7c2f2b8e | 192 | CryptoPare | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.